Skip to content

Commit 3054919

Browse files
committed
Generate separate bincode for 1.8.1 and 2.0.0
1 parent 55a3a2d commit 3054919

File tree

14 files changed

+3601
-314
lines changed

14 files changed

+3601
-314
lines changed

1.8.1/generated_bincode.d.ts

Lines changed: 1880 additions & 0 deletions
Large diffs are not rendered by default.

1.8.1/generated_bincode.js

Lines changed: 1378 additions & 0 deletions
Large diffs are not rendered by default.

generated_bincode.d.ts renamed to 2.0.0/generated_bincode.d.ts

Lines changed: 50 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,16 @@ export abstract class AuthorizedActionTakers {
6464
static decode(bc: BinCode): AuthorizedActionTakers;
6565
}
6666
namespace AuthorizedActionTakers {
67-
/**
68-
* default
69-
*
70-
* @function
71-
*/
72-
/** @function */
67+
/** default */
68+
const NoOne: () => AuthorizedActionTakers;
69+
const ContractOwner: () => AuthorizedActionTakers;
7370
/** @function */
7471
interface Identity extends AuthorizedActionTakers {
7572
[0]: Identifier;
7673
}
7774
/** @ignore */
7875
const Identity: (f0: Identifier) => AuthorizedActionTakers.Identity;
79-
/** @function */
76+
const MainGroup: () => AuthorizedActionTakers;
8077
/** @function */
8178
interface Group extends AuthorizedActionTakers {
8279
[0]: GroupContractPosition;
@@ -2183,15 +2180,12 @@ export abstract class KeyType {
21832180
static decode(bc: BinCode): KeyType;
21842181
}
21852182
namespace KeyType {
2186-
/**
2187-
* default
2188-
*
2189-
* @function
2190-
*/
2191-
/** @function */
2192-
/** @function */
2193-
/** @function */
2194-
/** @function */
2183+
/** default */
2184+
const ECDSA_SECP256K1: () => KeyType;
2185+
const BLS12_381: () => KeyType;
2186+
const ECDSA_HASH160: () => KeyType;
2187+
const BIP13_SCRIPT_HASH: () => KeyType;
2188+
const EDDSA_25519_HASH160: () => KeyType;
21952189
}
21962190

21972191
/** platform_version_path_bounds "dpp.state_transition_serialization_versions.masternode_vote_state_transition" */
@@ -2271,13 +2265,10 @@ export abstract class Pooling {
22712265
static decode(bc: BinCode): Pooling;
22722266
}
22732267
namespace Pooling {
2274-
/**
2275-
* default
2276-
*
2277-
* @function
2278-
*/
2279-
/** @function */
2280-
/** @function */
2268+
/** default */
2269+
const Never: () => Pooling;
2270+
const IfAvailable: () => Pooling;
2271+
const Standard: () => Pooling;
22812272
}
22822273

22832274
export type PrivateEncryptedNote = [RootEncryptionKeyIndex, DerivationEncryptionKeyIndex, Uint8Array];
@@ -2301,39 +2292,20 @@ namespace Purpose {
23012292
/**
23022293
* at least one authentication key must be registered for all security levels
23032294
* default
2304-
*
2305-
* @function
2306-
*/
2307-
/**
2308-
* this key cannot be used for signing documents
2309-
*
2310-
* @function
2311-
*/
2312-
/**
2313-
* this key cannot be used for signing documents
2314-
*
2315-
* @function
2316-
*/
2317-
/**
2318-
* this key is used to sign credit transfer and withdrawal state transitions
2319-
*
2320-
* @function
2321-
*/
2322-
/**
2323-
* this key cannot be used for signing documents
2324-
*
2325-
* @function
2326-
*/
2327-
/**
2328-
* this key cannot be used for signing documents
2329-
*
2330-
* @function
2331-
*/
2332-
/**
2333-
* this key is used to prove ownership of a masternode or evonode
2334-
*
2335-
* @function
23362295
*/
2296+
const AUTHENTICATION: () => Purpose;
2297+
/** this key cannot be used for signing documents */
2298+
const ENCRYPTION: () => Purpose;
2299+
/** this key cannot be used for signing documents */
2300+
const DECRYPTION: () => Purpose;
2301+
/** this key is used to sign credit transfer and withdrawal state transitions */
2302+
const TRANSFER: () => Purpose;
2303+
/** this key cannot be used for signing documents */
2304+
const SYSTEM: () => Purpose;
2305+
/** this key cannot be used for signing documents */
2306+
const VOTING: () => Purpose;
2307+
/** this key is used to prove ownership of a masternode or evonode */
2308+
const OWNER: () => Purpose;
23372309
}
23382310

23392311
/**
@@ -2557,11 +2529,8 @@ namespace Value {
25572529
}
25582530
/** @ignore */
25592531
const Bool: (f0: boolean) => Value.Bool;
2560-
/**
2561-
* Null
2562-
*
2563-
* @function
2564-
*/
2532+
/** Null */
2533+
const Null: () => Value;
25652534
/**
25662535
* An array
25672536
*
@@ -2653,12 +2622,9 @@ namespace ResourceVoteChoice {
26532622
}
26542623
/** @ignore */
26552624
const TowardsIdentity: (f0: Identifier) => ResourceVoteChoice.TowardsIdentity;
2656-
/**
2657-
* default
2658-
*
2659-
* @function
2660-
*/
2661-
/** @function */
2625+
/** default */
2626+
const Abstain: () => ResourceVoteChoice;
2627+
const Lock: () => ResourceVoteChoice;
26622628
}
26632629

26642630
interface ResourceVoteV0 {
@@ -2776,14 +2742,11 @@ export abstract class SecurityLevel {
27762742
static decode(bc: BinCode): SecurityLevel;
27772743
}
27782744
namespace SecurityLevel {
2779-
/** @function */
2780-
/** @function */
2781-
/**
2782-
* default
2783-
*
2784-
* @function
2785-
*/
2786-
/** @function */
2745+
const MASTER: () => SecurityLevel;
2746+
const CRITICAL: () => SecurityLevel;
2747+
/** default */
2748+
const HIGH: () => SecurityLevel;
2749+
const MEDIUM: () => SecurityLevel;
27872750
}
27882751

27892752
export type SenderKeyIndex = number;
@@ -2880,9 +2843,9 @@ export abstract class StorageKeyRequirements {
28802843
static decode(bc: BinCode): StorageKeyRequirements;
28812844
}
28822845
namespace StorageKeyRequirements {
2883-
/** @function */
2884-
/** @function */
2885-
/** @function */
2846+
const Unique: () => StorageKeyRequirements;
2847+
const Multiple: () => StorageKeyRequirements;
2848+
const MultipleReferenceToLatest: () => StorageKeyRequirements;
28862849
}
28872850

28882851
export type TimestampMillis = bigint;
@@ -3099,11 +3062,8 @@ export abstract class TokenConfigurationChangeItem {
30993062
static decode(bc: BinCode): TokenConfigurationChangeItem;
31003063
}
31013064
namespace TokenConfigurationChangeItem {
3102-
/**
3103-
* default
3104-
*
3105-
* @function
3106-
*/
3065+
/** default */
3066+
const TokenConfigurationNoChange: () => TokenConfigurationChangeItem;
31073067
/** @function */
31083068
interface Conventions extends TokenConfigurationChangeItem {
31093069
[0]: TokenConfigurationConvention;
@@ -3469,9 +3429,8 @@ namespace TokenDistributionRecipient {
34693429
/**
34703430
* Distribute to the contract Owner
34713431
* default
3472-
*
3473-
* @function
34743432
*/
3433+
const ContractOwner: () => TokenDistributionRecipient;
34753434
/**
34763435
* Distribute to a single identity
34773436
*
@@ -3485,9 +3444,8 @@ namespace TokenDistributionRecipient {
34853444
/**
34863445
* Distribute tokens by participation
34873446
* This distribution can only happen when choosing epoch based distribution
3488-
*
3489-
* @function
34903447
*/
3448+
const EvonodesByParticipation: () => TokenDistributionRecipient;
34913449
}
34923450

34933451
/** @ignore */
@@ -3557,14 +3515,10 @@ namespace TokenDistributionType {
35573515
/**
35583516
* A pre-programmed distribution scheduled for a specific time.
35593517
* default
3560-
*
3561-
* @function
3562-
*/
3563-
/**
3564-
* A perpetual distribution that occurs at regular intervals.
3565-
*
3566-
* @function
35673518
*/
3519+
const PreProgrammed: () => TokenDistributionType;
3520+
/** A perpetual distribution that occurs at regular intervals. */
3521+
const Perpetual: () => TokenDistributionType;
35683522
}
35693523

35703524
/** @ignore */
@@ -3582,12 +3536,9 @@ export abstract class TokenEmergencyAction {
35823536
static decode(bc: BinCode): TokenEmergencyAction;
35833537
}
35843538
namespace TokenEmergencyAction {
3585-
/**
3586-
* default
3587-
*
3588-
* @function
3589-
*/
3590-
/** @function */
3539+
/** default */
3540+
const Pause: () => TokenEmergencyAction;
3541+
const Resume: () => TokenEmergencyAction;
35913542
}
35923543

35933544
/** @ignore */
File renamed without changes.

0 commit comments

Comments
 (0)