This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Extends the mainnet preset | |
| PRESET_BASE: 'mainnet' | |
| CONFIG_NAME: 'agora-devnet' | |
| # Genesis | |
| # --------------------------------------------------------------- | |
| MIN_GENESIS_ACTIVE_VALIDATOR_COUNT: 16 | |
| # 2022년 May 9일 Monday AM 6:00:00 UTC | |
| MIN_GENESIS_TIME: 1653021000 | |
| # Genesis fork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************* | |
| Contains extra tests for the `crypto` library | |
| Those tests do not belong to the crypto library, but ensures that it | |
| integrates correctly with utilities we use. | |
| Copyright: | |
| Copyright (c) 2019 BOS Platform Foundation Korea | |
| All rights reserved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************* | |
| Contains networking tests with a variety of different validator node counts. | |
| Copyright: | |
| Copyright (c) 2019-2021 BOSAGORA Foundation | |
| All rights reserved. | |
| License: | |
| MIT License. See LICENSE for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module agora.test.Serialization; | |
| version (unittest): | |
| import agora.crypto.Types; | |
| import agora.utils.Test; | |
| import agora.consensus.data.Params; | |
| import agora.consensus.data.Transaction; | |
| import agora.consensus.data.Block; | |
| import agora.serialization.Serializer; | |
| import agora.test.Base; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module agora.test.Serialization; | |
| version (unittest): | |
| import agora.crypto.Types; | |
| import agora.utils.Test; | |
| import agora.consensus.data.Params; | |
| import agora.consensus.data.Transaction; | |
| import agora.consensus.data.Block; | |
| import agora.serialization.Serializer; | |
| import agora.test.Base; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const BOA_DECIMAL = boasdk.JSBI.BigInt(10000000); | |
| const BOA_ZERO = boasdk.JSBI.BigInt(0); | |
| function AmountToString(amount: boasdk.JSBI, comma: boolean = false): string | |
| { | |
| const share = boasdk.JSBI.divide(amount, BOA_DECIMAL); | |
| const remain = boasdk.JSBI.remainder(amount, BOA_DECIMAL); | |
| const tx_share = (comma) ? share.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",") : share.toString(); | |
| if (boasdk.JSBI.equal(remain, BOA_ZERO)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Attaching to localtest_node-5_1, localtest_node-3_1, localtest_node-0_1, localtest_node-7_1, localtest_node-4_1, localtest_node-2_1, localtest_node-6_1 | |
| node-0_1 | 2021-01-26 01:26:36,900 Info [agora.node.Ledger] - Last known block: #0 (0x5a96a9276526cdf9a52e100ed59a24ca5e5d3940db85b1080c66573877a86be8534937aece796354bcee3d6cee0895553e82d53f7dbaec9a3d9e0f578ba98163) | |
| node-5_1 | 2021-01-26 01:26:36,517 Info [agora.node.Ledger] - Last known block: #0 (0x5a96a9276526cdf9a52e100ed59a24ca5e5d3940db85b1080c66573877a86be8534937aece796354bcee3d6cee0895553e82d53f7dbaec9a3d9e0f578ba98163) | |
| node-3_1 | 2021-01-26 01:26:36,698 Info [agora.node.Ledger] - Last known block: #0 (0x5a96a9276526cdf9a52e100ed59a24ca5e5d3940db85b1080c66573877a86be8534937aece796354bcee3d6cee0895553e82d53f7dbaec9a3d9e0f578ba98163) | |
| node-7_1 | 2021-01-26 01:26:36,931 Info [agora.node.Ledger] - Last known block: #0 (0x5a96a9276526cdf9a52e100ed59a24ca5e5d3940db85b1080c66573877a86be8534937aece796354bcee3d6cee0895553e82d53f7dbaec9a3d9e0f578ba98163) | |
| node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "header": { | |
| "prev_block": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | |
| "height": "0", | |
| "merkle_root": "0xb12632add7615e2c4203f5ec5747c26e4fc7f333f95333ddfa4121a66b84499d35e5ce022ab667791549654b97a26e86054b0764ec23ee0cd3830de8f3f73364", | |
| "validators": "[0]", | |
| "signature": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | |
| "enrollments": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "header": { | |
| "prev_block": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | |
| "height": "0", | |
| "merkle_root": "0xb12632add7615e2c4203f5ec5747c26e4fc7f333f95333ddfa4121a66b84499d35e5ce022ab667791549654b97a26e86054b0764ec23ee0cd3830de8f3f73364", | |
| "validators": "[]", | |
| "signature": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | |
| "enrollments": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unittest | |
| { | |
| import agora.common.crypto.Key; | |
| auto address = `GDD5RFGBIUAFCOXQA246BOUPHCK7ZL2NSHDU7DVAPNPTJJKVPJMNLQFW`; | |
| PublicKey pubkey = PublicKey.fromString(address); | |
| () | |
| { | |
| Output[1] outputs = [ Output(Amount(100), pubkey) ]; | |
| Transaction tx = { outputs: outputs[] }; |
NewerOlder