forked from bitpay/bitcore-lib
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add tests for typings and fix bugs (#284)
- Loading branch information
Showing
15 changed files
with
2,073 additions
and
598 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Ensure exports of basic types | ||
import type { | ||
Address, | ||
BloomFilter, | ||
HDPrivateKey, | ||
HDPublicKey, | ||
Message, | ||
Network, | ||
Opcode, | ||
PrivateKey, | ||
PublicKey, | ||
Unit, | ||
URI, | ||
InstantLock, | ||
Block, | ||
BlockHeader, | ||
MerkleBlock, | ||
PartialMerkleTree, | ||
BufferWriter, | ||
BufferReader, | ||
ChainLock, | ||
BN, | ||
Point, | ||
Signature, | ||
Hash, | ||
QuorumEntry, | ||
SimplifiedMNList, | ||
SimplifiedMNListDiff, | ||
SimplifiedMNListEntry, | ||
SimplifiedMNListStore, | ||
GovObject, | ||
Proposal, | ||
Trigger, | ||
Mnemonic, | ||
Script, | ||
Input, | ||
MultiSigInput, | ||
MultiSigScriptHashInput, | ||
AbstractPayload, | ||
CoinbasePayload, | ||
CommitmentTxPayload, | ||
ProRegTxPayload, | ||
ProUpRegTxPayload, | ||
ProUpRevTxPayload, | ||
ProUpServTxPayload, | ||
SubTxCloseAccountPayload, | ||
SubTxRegisterPayload, | ||
SubTxResetKeyPayload, | ||
SubTxTopupPayload, | ||
SubTxTransitionPayload, | ||
Output, | ||
Transaction, | ||
TransactionSignature, | ||
UnspentOutput, | ||
ChainLockSigMessage | ||
} from ".."; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true | ||
}, | ||
"include": ["typings/**/*.ts"] | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
export type LLMQ_TYPES = { | ||
// 50 members, 30 (60%) threshold, one per hour (24 blocks) | ||
LLMQ_TYPE_50_60: 1, | ||
|
||
// 400 members, 240 (60%) threshold, one every 12 hours (288 blocks) | ||
LLMQ_TYPE_400_60: 2, | ||
|
||
// 400 members, 340 (85%) threshold, one every 24 hours (576 blocks) | ||
LLMQ_TYPE_400_85: 3, | ||
|
||
// 100 members, 67 (67%) threshold, one every 24 hours (576 blocks) | ||
LLMQ_TYPE_100_67: 4, | ||
|
||
// 60 members, 45 (75%) threshold, one every 12 hours | ||
LLMQ_TYPE_60_75: 5, | ||
|
||
// 25 members, 67 (67%) threshold, one per hour | ||
LLMQ_TYPE_25_67: 6, | ||
|
||
// 3 members, 2 (66%) threshold, one per hour (24 blocks) | ||
// Params might differ when -llmqtestparams is used | ||
LLMQ_TYPE_LLMQ_TEST: 100, | ||
|
||
// 12 members, 6 (60%) threshold, one per hour (24 blocks) | ||
// Params might differ when -llmqdevnetparams is used | ||
LLMQ_TYPE_LLMQ_DEVNET: 101, | ||
|
||
// 3 members, 2 (66%) threshold, one per hour. | ||
// Params might differ when -llmqtestparams is used | ||
LLMQ_TYPE_TEST_V17: 102, | ||
|
||
// 4 members, 2 (66%) threshold, one per hour. | ||
// Params might differ when -llmqtestparams is used | ||
LLMQ_TYPE_TEST_DIP0024: 103, | ||
|
||
// 3 members, 2 (66%) threshold, one per hour. | ||
// Params might differ when -llmqtestinstantsendparams is used | ||
LLMQ_TYPE_TEST_INSTANTSEND: 104, | ||
|
||
// 8 members, 4 (50%) threshold, one per hour. | ||
// Params might differ when -llmqdevnetparams is used | ||
// for devnets only. rotated version (v2) for devnets | ||
LLMQ_DEVNET_DIP0024: 105, | ||
// for testing only | ||
// 3 members, 2 (67%) threshold, one per hour. | ||
LLMQ_TEST_PLATFORM: 106, | ||
// for devnet testing only | ||
// 12 members, 8 (67%) threshold, one per hour | ||
LLMQ_DEVNET_PLATFORM: 107, | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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