Skip to content

Commit 703ffdb

Browse files
committed
Add license header to all source files. Fix duniter#1217
1 parent cde67e4 commit 703ffdb

File tree

297 files changed

+3861
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+3861
-0
lines changed

app/ProcessCpuProfiler.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
const SAMPLING_PERIOD = 150 // milliseconds
215
const MAX_SAMPLES_DISTANCE = 20 * 1000000 // seconds
316

app/cli.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
const Command = require('commander').Command;
215
const pjson = require('../package.json');
316
const duniter = require('../index');

app/lib/blockchain/BasicBlockchain.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215
import {BlockchainOperator} from "./interfaces/BlockchainOperator"
316

app/lib/blockchain/DuniterBlockchain.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {MiscIndexedBlockchain} from "./MiscIndexedBlockchain"
215
import {IindexEntry, IndexEntry, Indexer, MindexEntry, SindexEntry} from "../indexer"
316
import {BlockchainOperator} from "./interfaces/BlockchainOperator"

app/lib/blockchain/IndexedBlockchain.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215
import {BasicBlockchain} from "./BasicBlockchain"
316
import {IndexOperator} from "./interfaces/IndexOperator"

app/lib/blockchain/MiscIndexedBlockchain.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215
import {IndexedBlockchain} from "./IndexedBlockchain"
316
import {SQLIndex} from "./SqlIndex"

app/lib/blockchain/SqlBlockchain.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215
import {BlockchainOperator} from "./interfaces/BlockchainOperator"
316

app/lib/blockchain/SqlIndex.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215
import {IndexOperator} from "./interfaces/IndexOperator"
316
import {AbstractIndex} from "../dal/sqliteDAL/AbstractIndex";

app/lib/blockchain/Switcher.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {BlockDTO} from "../dto/BlockDTO"
215
export interface SwitchBlock {
316

app/lib/blockchain/interfaces/BlockchainOperator.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215

316
export interface BlockchainOperator {

app/lib/blockchain/interfaces/IndexOperator.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict"
215

316
export interface IndexOperator {

app/lib/common-libs/buid.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict";
215
const BLOCK_UID = /^(0|[1-9]\d{0,18})-[A-F0-9]{64}$/;
316

app/lib/common-libs/constants.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
"use strict";
215

316
const CURRENCY = "[a-zA-Z0-9-_ ]{2,50}"

app/lib/common-libs/crypto/base58.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
const bs58 = require('bs58')
215

316
export const Base58encode = (bytes:any) => bs58.encode(bytes)

app/lib/common-libs/crypto/keyring.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {Base58decode, Base58encode} from "./base58"
215
import {decodeBase64, decodeUTF8, encodeBase64} from "./nacl-util"
316

app/lib/common-libs/crypto/nacl-util.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
declare function escape(s:string): string;
215
declare function unescape(s:string): string;
316

app/lib/common-libs/dos2unix.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
export function dos2unix(str:string) {
215
return str.replace(/\r\n/g, '\n')
316
}

app/lib/common-libs/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import * as rawer from './rawer'
215
import {Base58decode, Base58encode} from "./crypto/base58"
316
import {unlock as txunlock} from "./txunlock"

app/lib/common-libs/parsers/GenericParser.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {CommonConstants} from "../../../lib/common-libs/constants"
215
import * as stream from "stream"
316
import {hashf} from "../../../lib/common"

app/lib/common-libs/parsers/block.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {CommonConstants} from "../../../lib/common-libs/constants"
215
import {GenericParser} from "./GenericParser"
316
import {hashf} from "../../../lib/common"

app/lib/common-libs/parsers/certification.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {CommonConstants} from "../../../lib/common-libs/constants"
215
import {GenericParser} from "./GenericParser"
316
import {rawer} from "../../../lib/common-libs/index"

app/lib/common-libs/parsers/identity.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {GenericParser} from "./GenericParser"
215
import {CommonConstants} from "../../../lib/common-libs/constants"
316
import {hashf} from "../../../lib/common"

app/lib/common-libs/parsers/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Source file from duniter: Crypto-currency software to manage libre currency such as Ğ1
2+
// Copyright (C) 2018 Cedric Moreau <[email protected]>
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
114
import {BlockParser} from "./block"
215
import {CertificationParser} from "./certification"
316
import {IdentityParser} from "./identity"

0 commit comments

Comments
 (0)