@cmts-dev/carmentis-sdk-core 1.1.0 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/carmentis-sdk-core.cjs +4 -9
- package/dist/carmentis-sdk-core.cjs.map +1 -1
- package/dist/carmentis-sdk-core.d.ts +200 -119
- package/dist/carmentis-sdk-core.es +2748 -4272
- package/dist/carmentis-sdk-core.es.map +1 -1
- package/package.json +3 -3
|
@@ -114,7 +114,7 @@ export declare class AbciQueryEncoder {
|
|
|
114
114
|
height: number;
|
|
115
115
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
116
116
|
timestamp: number;
|
|
117
|
-
|
|
117
|
+
gas: number;
|
|
118
118
|
gasPrice: number;
|
|
119
119
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
120
120
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -130,7 +130,7 @@ export declare class AbciQueryEncoder {
|
|
|
130
130
|
height: number;
|
|
131
131
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
132
132
|
timestamp: number;
|
|
133
|
-
|
|
133
|
+
gas: number;
|
|
134
134
|
gasPrice: number;
|
|
135
135
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
136
136
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -174,9 +174,10 @@ export declare class AbciQueryEncoder {
|
|
|
174
174
|
maximumNodeStakingAmountInAtomics: number;
|
|
175
175
|
unstakingDelayInDays: number;
|
|
176
176
|
maxBlockSizeInBytes: number;
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
retentionPolicy: {
|
|
178
|
+
retentionRatio: number;
|
|
179
179
|
maximumNumberOfDays: number;
|
|
180
|
+
dayDivisor: number;
|
|
180
181
|
}[];
|
|
181
182
|
abciVersion: number;
|
|
182
183
|
};
|
|
@@ -373,6 +374,8 @@ export declare class AbciQueryEncoder {
|
|
|
373
374
|
height: number;
|
|
374
375
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
375
376
|
type: number;
|
|
377
|
+
publicReference: string;
|
|
378
|
+
privateReference: string;
|
|
376
379
|
timestamp: number;
|
|
377
380
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
378
381
|
amount: number;
|
|
@@ -437,6 +440,8 @@ export declare class AbciQueryEncoder {
|
|
|
437
440
|
height: number;
|
|
438
441
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
439
442
|
type: number;
|
|
443
|
+
publicReference: string;
|
|
444
|
+
privateReference: string;
|
|
440
445
|
timestamp: number;
|
|
441
446
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
442
447
|
amount: number;
|
|
@@ -800,7 +805,7 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
800
805
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
801
806
|
}, undefined>;
|
|
802
807
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
803
|
-
readonly
|
|
808
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
804
809
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
805
810
|
readonly bodyHash: val.InstanceSchema<{
|
|
806
811
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -852,7 +857,7 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
852
857
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
853
858
|
}, undefined>;
|
|
854
859
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
855
|
-
readonly
|
|
860
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
856
861
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
857
862
|
readonly bodyHash: val.InstanceSchema<{
|
|
858
863
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -952,9 +957,10 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
952
957
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
953
958
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
954
959
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
955
|
-
readonly
|
|
956
|
-
readonly
|
|
960
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
961
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
957
962
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
963
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
958
964
|
}, undefined>, undefined>;
|
|
959
965
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
960
966
|
}, undefined>;
|
|
@@ -1536,6 +1542,8 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
1536
1542
|
readonly typeId: 12;
|
|
1537
1543
|
}>]>;
|
|
1538
1544
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
1545
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
1546
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
1539
1547
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
1540
1548
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
1541
1549
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -1727,6 +1735,8 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
1727
1735
|
readonly typeId: 12;
|
|
1728
1736
|
}>]>;
|
|
1729
1737
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
1738
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
1739
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
1730
1740
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
1731
1741
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
1732
1742
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -1800,10 +1810,10 @@ export declare abstract class AbstractProvider implements IProvider {
|
|
|
1800
1810
|
loadVirtualBlockchain(vbId: Hash): Promise<VirtualBlockchain>;
|
|
1801
1811
|
loadMicroblockByMicroblockHash(microblockHash: Hash): Promise<Microblock>;
|
|
1802
1812
|
getCurrentFeesFormula(): Promise<IFeesFormula>;
|
|
1803
|
-
|
|
1813
|
+
computeMicroblockGas(mb: Microblock, options?: {
|
|
1804
1814
|
signatureSchemeId?: SignatureSchemeId;
|
|
1805
1815
|
referenceTimestampInSeconds?: number;
|
|
1806
|
-
}): Promise<
|
|
1816
|
+
}): Promise<number>;
|
|
1807
1817
|
abstract getVirtualBlockchainStatus(virtualBlockchainId: Uint8Array): Promise<VirtualBlockchainStatus | null>;
|
|
1808
1818
|
abstract getAccountIdFromPublicKey(publicKey: PublicSignatureKey): Promise<Hash>;
|
|
1809
1819
|
abstract getListOfMicroblockBody(microblockHashes: Uint8Array[]): Promise<MicroblockBody[]>;
|
|
@@ -2027,6 +2037,8 @@ export declare const AccountHistoryAbciResponseSchema: val.ObjectSchema<{
|
|
|
2027
2037
|
readonly typeId: 12;
|
|
2028
2038
|
}>]>;
|
|
2029
2039
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
2040
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
2041
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
2030
2042
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2031
2043
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2032
2044
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2071,6 +2083,8 @@ export declare const AccountHistoryEntrySchema: val.ObjectSchema<{
|
|
|
2071
2083
|
readonly typeId: 12;
|
|
2072
2084
|
}>]>;
|
|
2073
2085
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
2086
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
2087
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
2074
2088
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2075
2089
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2076
2090
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2112,6 +2126,8 @@ export declare const AccountHistorySchema: val.ArraySchema<val.ObjectSchema<{
|
|
|
2112
2126
|
readonly typeId: 12;
|
|
2113
2127
|
}>]>;
|
|
2114
2128
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
2129
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
2130
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
2115
2131
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2116
2132
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2117
2133
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2807,6 +2823,8 @@ export declare const AccountUpdatesAbciResponseSchema: val.ObjectSchema<{
|
|
|
2807
2823
|
readonly typeId: 12;
|
|
2808
2824
|
}>]>;
|
|
2809
2825
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
2826
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
2827
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
2810
2828
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2811
2829
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2812
2830
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2942,6 +2960,8 @@ export declare const AccountUpdateSchema: val.ObjectSchema<{
|
|
|
2942
2960
|
readonly typeId: 12;
|
|
2943
2961
|
}>]>;
|
|
2944
2962
|
readonly type: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>, val.MaxValueAction<number, 255, undefined>]>;
|
|
2963
|
+
readonly publicReference: val.StringSchema<undefined>;
|
|
2964
|
+
readonly privateReference: val.StringSchema<undefined>;
|
|
2945
2965
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2946
2966
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2947
2967
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -4490,6 +4510,18 @@ export declare class BalanceAvailability {
|
|
|
4490
4510
|
plannedSlashingTimestamp: number;
|
|
4491
4511
|
};
|
|
4492
4512
|
} | undefined;
|
|
4513
|
+
getNodeStakingLockOrFail(nodeId: Uint8Array): {
|
|
4514
|
+
type: LockType.NodeStaking;
|
|
4515
|
+
lockedAmountInAtomics: number;
|
|
4516
|
+
parameters: {
|
|
4517
|
+
validatorNodeId: Uint8Array<ArrayBufferLike>;
|
|
4518
|
+
plannedUnlockAmountInAtomics: number;
|
|
4519
|
+
plannedUnlockTimestamp: number;
|
|
4520
|
+
slashed: boolean;
|
|
4521
|
+
plannedSlashingAmountInAtomics: number;
|
|
4522
|
+
plannedSlashingTimestamp: number;
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4493
4525
|
getNodeStakingLockAmount(nodeAccountId: Uint8Array): number;
|
|
4494
4526
|
hasEscrowLocks(): boolean;
|
|
4495
4527
|
getEscrowLocks(): {
|
|
@@ -4534,9 +4566,9 @@ export declare class BalanceAvailability {
|
|
|
4534
4566
|
*/
|
|
4535
4567
|
addEscrowedTokens(lockedAmountInAtomics: number, escrowParameters: EscrowParameters): void;
|
|
4536
4568
|
/**
|
|
4537
|
-
*
|
|
4569
|
+
* Removes an escrow lock, given its identifier.
|
|
4538
4570
|
*/
|
|
4539
|
-
|
|
4571
|
+
removeEscrowLock(escrowIdentifier: Uint8Array): number;
|
|
4540
4572
|
/**
|
|
4541
4573
|
* Stakes a given amount of tokens for a given node.
|
|
4542
4574
|
* If a staking is already defined for this node, the new amount is added to the current staked amount.
|
|
@@ -4940,9 +4972,10 @@ export declare class BlockchainUtils {
|
|
|
4940
4972
|
maximumNodeStakingAmountInAtomics: number;
|
|
4941
4973
|
unstakingDelayInDays: number;
|
|
4942
4974
|
maxBlockSizeInBytes: number;
|
|
4943
|
-
|
|
4944
|
-
|
|
4975
|
+
retentionPolicy: {
|
|
4976
|
+
retentionRatio: number;
|
|
4945
4977
|
maximumNumberOfDays: number;
|
|
4978
|
+
dayDivisor: number;
|
|
4946
4979
|
}[];
|
|
4947
4980
|
abciVersion: number;
|
|
4948
4981
|
};
|
|
@@ -5106,7 +5139,7 @@ export declare class BlockchainUtils {
|
|
|
5106
5139
|
height: number;
|
|
5107
5140
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
5108
5141
|
timestamp: number;
|
|
5109
|
-
|
|
5142
|
+
gas: number;
|
|
5110
5143
|
gasPrice: number;
|
|
5111
5144
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
5112
5145
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -6058,7 +6091,7 @@ export declare namespace ECO {
|
|
|
6058
6091
|
MAXIMUM_GAS_PRICE,
|
|
6059
6092
|
FIXED_GAS_FEE,
|
|
6060
6093
|
GAS_PER_BYTE,
|
|
6061
|
-
|
|
6094
|
+
GAS_ATOMS_PER_GAS,
|
|
6062
6095
|
BK_PLUS,
|
|
6063
6096
|
BK_PAID_TX_FEES,
|
|
6064
6097
|
BK_PAID_BLOCK_FEES,
|
|
@@ -6456,6 +6489,7 @@ export declare class FirstFeesFormula implements IFeesFormula {
|
|
|
6456
6489
|
private static DEFAULT_GAS_PRICE;
|
|
6457
6490
|
constructor(provider: IProvider);
|
|
6458
6491
|
computeFees(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds?: number): Promise<CMTSToken>;
|
|
6492
|
+
computeGas(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds?: number): Promise<number>;
|
|
6459
6493
|
private getAdditionalCosts;
|
|
6460
6494
|
/**
|
|
6461
6495
|
* Computes the total size in bytes of the provided microblock, excluding the last section
|
|
@@ -6481,9 +6515,9 @@ declare function fromNumericPath(irObject: any, numericPath: any): string;
|
|
|
6481
6515
|
|
|
6482
6516
|
declare function fromParents(parents: any): string;
|
|
6483
6517
|
|
|
6484
|
-
export declare const
|
|
6518
|
+
export declare const GAS_ATOMS_PER_GAS = 100000;
|
|
6485
6519
|
|
|
6486
|
-
export declare const
|
|
6520
|
+
export declare const GAS_PER_BYTE = 1;
|
|
6487
6521
|
|
|
6488
6522
|
declare function generateKeyPair(seed: any): {
|
|
6489
6523
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
@@ -7012,6 +7046,10 @@ export declare interface IFeesFormula {
|
|
|
7012
7046
|
*
|
|
7013
7047
|
*/
|
|
7014
7048
|
computeFees(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds: number): Promise<CMTSToken>;
|
|
7049
|
+
/**
|
|
7050
|
+
* Compute the gas for a given microblock.
|
|
7051
|
+
*/
|
|
7052
|
+
computeGas(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds: number): Promise<number>;
|
|
7015
7053
|
}
|
|
7016
7054
|
|
|
7017
7055
|
export declare interface IInternalProvider {
|
|
@@ -7285,10 +7323,10 @@ export declare interface IProvider {
|
|
|
7285
7323
|
* Note that the protocol parameters are defined in the internal state of the protocol virtual blockchain.
|
|
7286
7324
|
*/
|
|
7287
7325
|
getProtocolState(): Promise<ProtocolInternalState>;
|
|
7288
|
-
|
|
7326
|
+
computeMicroblockGas(mb: Microblock, options?: {
|
|
7289
7327
|
signatureSchemeId?: SignatureSchemeId;
|
|
7290
7328
|
referenceTimestampInSeconds?: number;
|
|
7291
|
-
}): Promise<
|
|
7329
|
+
}): Promise<number>;
|
|
7292
7330
|
}
|
|
7293
7331
|
|
|
7294
7332
|
declare function isAllowedTransfer(accountType: number, transferType: number): number;
|
|
@@ -7340,10 +7378,33 @@ export declare type JsonData = string | number | boolean | null | JsonData[] | {
|
|
|
7340
7378
|
[key: string]: JsonData;
|
|
7341
7379
|
};
|
|
7342
7380
|
|
|
7381
|
+
/**
|
|
7382
|
+
* Formats JSON with a specific format for Uint8Array's so that they are more readable
|
|
7383
|
+
*/
|
|
7384
|
+
declare function jsonPrettify(json: unknown, indent?: number): string;
|
|
7385
|
+
|
|
7343
7386
|
export declare const JsonSchema: val.GenericSchema<JsonData>;
|
|
7344
7387
|
|
|
7388
|
+
/**
|
|
7389
|
+
* Helper class for encoding and exporting signature keys as JWK (JSON Web Key).
|
|
7390
|
+
*/
|
|
7345
7391
|
export declare class JwkSignatureEncoder {
|
|
7392
|
+
/**
|
|
7393
|
+
* Exports a public signature key into a CryptoKey format for usage in cryptographic operations.
|
|
7394
|
+
*
|
|
7395
|
+
* @param {PublicSignatureKey} publicKey - The public signature key to be exported. Must be of type `Ed25519PublicSignatureKey`.
|
|
7396
|
+
* @return {Promise<CryptoKey>} A promise that resolves to the exported CryptoKey. The key will be in the EdDSA algorithm format.
|
|
7397
|
+
* @throws {Error} If the provided public key is of an unsupported type.
|
|
7398
|
+
*/
|
|
7346
7399
|
static exportPublicSignatureKey(publicKey: PublicSignatureKey): Promise<CryptoKey>;
|
|
7400
|
+
/**
|
|
7401
|
+
* Exports a private signature key in a format compatible with cryptographic operations.
|
|
7402
|
+
* The method supports the `Ed25519PrivateSignatureKey` type and derives the corresponding public key in the process.
|
|
7403
|
+
*
|
|
7404
|
+
* @param {PrivateSignatureKey} privateKey - The private signature key to be exported. Must be an instance of `Ed25519PrivateSignatureKey`.
|
|
7405
|
+
* @return {Promise<CryptoKey>} A promise that resolves with the exported private key as a `CryptoKey` object.
|
|
7406
|
+
* @throws {Error} If the provided key is of an unsupported type.
|
|
7407
|
+
*/
|
|
7347
7408
|
static exportPrivateSignatureKey(privateKey: PrivateSignatureKey): Promise<CryptoKey>;
|
|
7348
7409
|
}
|
|
7349
7410
|
|
|
@@ -7512,7 +7573,7 @@ export declare class MemoryProvider implements IInternalProvider {
|
|
|
7512
7573
|
height: number;
|
|
7513
7574
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
7514
7575
|
timestamp: number;
|
|
7515
|
-
|
|
7576
|
+
gas: number;
|
|
7516
7577
|
gasPrice: number;
|
|
7517
7578
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
7518
7579
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -8019,23 +8080,17 @@ export declare class Microblock {
|
|
|
8019
8080
|
getTimestamp(): number;
|
|
8020
8081
|
/**
|
|
8021
8082
|
* Returns the gas in the header.
|
|
8022
|
-
* @deprecated No more gas in contained in the header. Use getMaxFees instead.
|
|
8023
|
-
*/
|
|
8024
|
-
getGas(): CMTSToken;
|
|
8025
|
-
/**
|
|
8026
|
-
*
|
|
8027
8083
|
*/
|
|
8028
|
-
|
|
8084
|
+
getGas(): number;
|
|
8029
8085
|
/**
|
|
8030
|
-
*
|
|
8031
|
-
* @param maxFees
|
|
8086
|
+
* Get the fees in tokens
|
|
8032
8087
|
*/
|
|
8033
|
-
|
|
8088
|
+
getFees(): CMTSToken;
|
|
8034
8089
|
/**
|
|
8035
|
-
*
|
|
8090
|
+
* Assign the gas.
|
|
8036
8091
|
* @param gas
|
|
8037
8092
|
*/
|
|
8038
|
-
setGas(gas:
|
|
8093
|
+
setGas(gas: number): void;
|
|
8039
8094
|
setHeight(number: number): void;
|
|
8040
8095
|
setGasPrice(gasPrice: CMTSToken): void;
|
|
8041
8096
|
getGasPrice(): CMTSToken;
|
|
@@ -8101,8 +8156,9 @@ export declare class Microblock {
|
|
|
8101
8156
|
* @param {PrivateSignatureKey} privateKey - The private key used to sign the data.
|
|
8102
8157
|
* @param {boolean} includeGas - A flag indicating whether gas-related data should be included in the signature.
|
|
8103
8158
|
* @return {Uint8Array} The generated digital signature as a byte array.
|
|
8159
|
+
* @private
|
|
8104
8160
|
*/
|
|
8105
|
-
sign
|
|
8161
|
+
private sign;
|
|
8106
8162
|
/**
|
|
8107
8163
|
* Verifies the signature of the last signature section using the provided public key.
|
|
8108
8164
|
*
|
|
@@ -8250,7 +8306,7 @@ export declare const MicroblockAnchoringAbciResponseSchema: val.ObjectSchema<{
|
|
|
8250
8306
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
8251
8307
|
}, undefined>;
|
|
8252
8308
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
8253
|
-
readonly
|
|
8309
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
8254
8310
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
8255
8311
|
readonly bodyHash: val.InstanceSchema<{
|
|
8256
8312
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -8352,9 +8408,10 @@ export declare const MicroblockBodyItemSchema: val.ObjectSchema<{
|
|
|
8352
8408
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
8353
8409
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
8354
8410
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
8355
|
-
readonly
|
|
8356
|
-
readonly
|
|
8411
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
8412
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
8357
8413
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
8414
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
8358
8415
|
}, undefined>, undefined>;
|
|
8359
8416
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
8360
8417
|
}, undefined>;
|
|
@@ -8915,9 +8972,10 @@ export declare const MicroblockBodysAbciResponseSchema: val.ObjectSchema<{
|
|
|
8915
8972
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
8916
8973
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
8917
8974
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
8918
|
-
readonly
|
|
8919
|
-
readonly
|
|
8975
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
8976
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
8920
8977
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
8978
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
8921
8979
|
}, undefined>, undefined>;
|
|
8922
8980
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
8923
8981
|
}, undefined>;
|
|
@@ -9462,9 +9520,10 @@ export declare const MicroblockBodySchema: val.ObjectSchema<{
|
|
|
9462
9520
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
9463
9521
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
9464
9522
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
9465
|
-
readonly
|
|
9466
|
-
readonly
|
|
9523
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
9524
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
9467
9525
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
9526
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
9468
9527
|
}, undefined>, undefined>;
|
|
9469
9528
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
9470
9529
|
}, undefined>;
|
|
@@ -10044,13 +10103,11 @@ export declare const MicroblockHeaderSchema: val.ObjectSchema<{
|
|
|
10044
10103
|
*/
|
|
10045
10104
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10046
10105
|
/**
|
|
10047
|
-
* The
|
|
10048
|
-
*
|
|
10049
|
-
* It is computed as: max_fees = f(mb, vbContext) * gasPrice for some function f (defined by the protocol).
|
|
10106
|
+
* The computed gas for this microblock.
|
|
10050
10107
|
*/
|
|
10051
|
-
readonly
|
|
10108
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10052
10109
|
/**
|
|
10053
|
-
* The gas price is used to convert gas to fees by multiplying it with the gas
|
|
10110
|
+
* The gas price is used to convert gas to fees by multiplying it with the gas.
|
|
10054
10111
|
*/
|
|
10055
10112
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10056
10113
|
/**
|
|
@@ -10113,7 +10170,7 @@ export declare const MicroblockInformationAbciResponseSchema: val.ObjectSchema<{
|
|
|
10113
10170
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10114
10171
|
}, undefined>;
|
|
10115
10172
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10116
|
-
readonly
|
|
10173
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10117
10174
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10118
10175
|
readonly bodyHash: val.InstanceSchema<{
|
|
10119
10176
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10167,7 +10224,7 @@ export declare const MicroblockInformationSchema: val.ObjectSchema<{
|
|
|
10167
10224
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10168
10225
|
}, undefined>;
|
|
10169
10226
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10170
|
-
readonly
|
|
10227
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10171
10228
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10172
10229
|
readonly bodyHash: val.InstanceSchema<{
|
|
10173
10230
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10223,7 +10280,7 @@ export declare const MicroblockStructSchema: val.ObjectSchema<{
|
|
|
10223
10280
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10224
10281
|
}, undefined>;
|
|
10225
10282
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10226
|
-
readonly
|
|
10283
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10227
10284
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10228
10285
|
readonly bodyHash: val.InstanceSchema<{
|
|
10229
10286
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10307,9 +10364,10 @@ export declare const MicroblockStructSchema: val.ObjectSchema<{
|
|
|
10307
10364
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
10308
10365
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
10309
10366
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
10310
|
-
readonly
|
|
10311
|
-
readonly
|
|
10367
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
10368
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
10312
10369
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
10370
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
10313
10371
|
}, undefined>, undefined>;
|
|
10314
10372
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
10315
10373
|
}, undefined>;
|
|
@@ -11148,7 +11206,7 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11148
11206
|
height: number;
|
|
11149
11207
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
11150
11208
|
timestamp: number;
|
|
11151
|
-
|
|
11209
|
+
gas: number;
|
|
11152
11210
|
gasPrice: number;
|
|
11153
11211
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
11154
11212
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -11227,6 +11285,8 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11227
11285
|
height: number;
|
|
11228
11286
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
11229
11287
|
type: number;
|
|
11288
|
+
publicReference: string;
|
|
11289
|
+
privateReference: string;
|
|
11230
11290
|
timestamp: number;
|
|
11231
11291
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
11232
11292
|
amount: number;
|
|
@@ -11979,28 +12039,6 @@ declare const PositiveInt: val.SchemaWithPipe<readonly [val.NumberSchema<undefin
|
|
|
11979
12039
|
|
|
11980
12040
|
declare type PositiveInt = val.InferOutput<typeof PositiveInt>;
|
|
11981
12041
|
|
|
11982
|
-
export declare type PriceBreakdown = val.InferOutput<typeof PriceBreakdownSchema>;
|
|
11983
|
-
|
|
11984
|
-
export declare const PriceBreakdownSchema: val.ObjectSchema<{
|
|
11985
|
-
readonly numberOfDays: val.NumberSchema<undefined>;
|
|
11986
|
-
readonly pricingRate: val.NumberSchema<undefined>;
|
|
11987
|
-
readonly priceInAtomics: val.NumberSchema<undefined>;
|
|
11988
|
-
}, undefined>;
|
|
11989
|
-
|
|
11990
|
-
export declare type PriceCategory = val.InferOutput<typeof PriceCategorySchema>;
|
|
11991
|
-
|
|
11992
|
-
export declare const PriceCategorySchema: val.ObjectSchema<{
|
|
11993
|
-
readonly pricingRate: val.NumberSchema<undefined>;
|
|
11994
|
-
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
11995
|
-
}, undefined>;
|
|
11996
|
-
|
|
11997
|
-
export declare type PriceStructure = val.InferOutput<typeof PriceStructureSchema>;
|
|
11998
|
-
|
|
11999
|
-
export declare const PriceStructureSchema: val.ArraySchema<val.ObjectSchema<{
|
|
12000
|
-
readonly pricingRate: val.NumberSchema<undefined>;
|
|
12001
|
-
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12002
|
-
}, undefined>, undefined>;
|
|
12003
|
-
|
|
12004
12042
|
export declare type PrimitiveValue = val.InferOutput<typeof PrimitiveValueSchema>;
|
|
12005
12043
|
|
|
12006
12044
|
declare const PrimitiveValueSchema: val.UnionSchema<[val.StringSchema<undefined>, val.NumberSchema<undefined>, val.BooleanSchema<undefined>, val.NullSchema<undefined>], undefined>;
|
|
@@ -12527,9 +12565,10 @@ export declare class ProtocolInternalState implements IInternalState {
|
|
|
12527
12565
|
maximumNodeStakingAmountInAtomics: number;
|
|
12528
12566
|
unstakingDelayInDays: number;
|
|
12529
12567
|
maxBlockSizeInBytes: number;
|
|
12530
|
-
|
|
12531
|
-
|
|
12568
|
+
retentionPolicy: {
|
|
12569
|
+
retentionRatio: number;
|
|
12532
12570
|
maximumNumberOfDays: number;
|
|
12571
|
+
dayDivisor: number;
|
|
12533
12572
|
}[];
|
|
12534
12573
|
abciVersion: number;
|
|
12535
12574
|
};
|
|
@@ -12542,9 +12581,10 @@ export declare class ProtocolInternalState implements IInternalState {
|
|
|
12542
12581
|
getMinimumNodeStakingAmountInAtomics(): number;
|
|
12543
12582
|
getMaximumNodeStakingAmountInAtomics(): number;
|
|
12544
12583
|
getUnstakingDelayInDays(): number;
|
|
12545
|
-
|
|
12546
|
-
|
|
12584
|
+
getRetentionPolicy(): {
|
|
12585
|
+
retentionRatio: number;
|
|
12547
12586
|
maximumNumberOfDays: number;
|
|
12587
|
+
dayDivisor: number;
|
|
12548
12588
|
}[];
|
|
12549
12589
|
toObject(): ProtocolVBInternalStateObject;
|
|
12550
12590
|
getFeesCalculationVersion(): number;
|
|
@@ -12585,9 +12625,10 @@ export declare const ProtocolUpdateSchema: val.ObjectSchema<{
|
|
|
12585
12625
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12586
12626
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12587
12627
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12588
|
-
readonly
|
|
12589
|
-
readonly
|
|
12628
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12629
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12590
12630
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12631
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12591
12632
|
}, undefined>, undefined>;
|
|
12592
12633
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12593
12634
|
}, undefined>;
|
|
@@ -12614,9 +12655,10 @@ export declare const ProtocolUpdateSectionSchema: val.ObjectSchema<{
|
|
|
12614
12655
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12615
12656
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12616
12657
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12617
|
-
readonly
|
|
12618
|
-
readonly
|
|
12658
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12659
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12619
12660
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12661
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12620
12662
|
}, undefined>, undefined>;
|
|
12621
12663
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12622
12664
|
}, undefined>;
|
|
@@ -12640,9 +12682,10 @@ export declare const ProtocolVariablesSchema: val.ObjectSchema<{
|
|
|
12640
12682
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12641
12683
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12642
12684
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12643
|
-
readonly
|
|
12644
|
-
readonly
|
|
12685
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12686
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12645
12687
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12688
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12646
12689
|
}, undefined>, undefined>;
|
|
12647
12690
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12648
12691
|
}, undefined>;
|
|
@@ -12678,9 +12721,10 @@ export declare class ProtocolVb extends VirtualBlockchain<ProtocolInternalState>
|
|
|
12678
12721
|
maximumNodeStakingAmountInAtomics: number;
|
|
12679
12722
|
unstakingDelayInDays: number;
|
|
12680
12723
|
maxBlockSizeInBytes: number;
|
|
12681
|
-
|
|
12682
|
-
|
|
12724
|
+
retentionPolicy: {
|
|
12725
|
+
retentionRatio: number;
|
|
12683
12726
|
maximumNumberOfDays: number;
|
|
12727
|
+
dayDivisor: number;
|
|
12684
12728
|
}[];
|
|
12685
12729
|
abciVersion: number;
|
|
12686
12730
|
};
|
|
@@ -12703,9 +12747,10 @@ export declare class ProtocolVb extends VirtualBlockchain<ProtocolInternalState>
|
|
|
12703
12747
|
maximumNodeStakingAmountInAtomics: number;
|
|
12704
12748
|
unstakingDelayInDays: number;
|
|
12705
12749
|
maxBlockSizeInBytes: number;
|
|
12706
|
-
|
|
12707
|
-
|
|
12750
|
+
retentionPolicy: {
|
|
12751
|
+
retentionRatio: number;
|
|
12708
12752
|
maximumNumberOfDays: number;
|
|
12753
|
+
dayDivisor: number;
|
|
12709
12754
|
}[];
|
|
12710
12755
|
abciVersion: number;
|
|
12711
12756
|
};
|
|
@@ -12746,9 +12791,10 @@ export declare const ProtocolVBInternalStateObjectSchema: val.ObjectSchema<{
|
|
|
12746
12791
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12747
12792
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12748
12793
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12749
|
-
readonly
|
|
12750
|
-
readonly
|
|
12794
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12795
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12751
12796
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12797
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12752
12798
|
}, undefined>, undefined>;
|
|
12753
12799
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12754
12800
|
}, undefined>;
|
|
@@ -12771,9 +12817,10 @@ export declare const ProtocolVBInternalStateObjectSchema: val.ObjectSchema<{
|
|
|
12771
12817
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12772
12818
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12773
12819
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12774
|
-
readonly
|
|
12775
|
-
readonly
|
|
12820
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12821
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12776
12822
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12823
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12777
12824
|
}, undefined>, undefined>;
|
|
12778
12825
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12779
12826
|
}, undefined>;
|
|
@@ -12809,9 +12856,10 @@ export declare const ProtocolVirtualBlockchainStateSchema: val.ObjectSchema<{
|
|
|
12809
12856
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12810
12857
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12811
12858
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12812
|
-
readonly
|
|
12813
|
-
readonly
|
|
12859
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12860
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12814
12861
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12862
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12815
12863
|
}, undefined>, undefined>;
|
|
12816
12864
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12817
12865
|
}, undefined>;
|
|
@@ -12834,9 +12882,10 @@ export declare const ProtocolVirtualBlockchainStateSchema: val.ObjectSchema<{
|
|
|
12834
12882
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12835
12883
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12836
12884
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12837
|
-
readonly
|
|
12838
|
-
readonly
|
|
12885
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12886
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12839
12887
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12888
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12840
12889
|
}, undefined>, undefined>;
|
|
12841
12890
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12842
12891
|
}, undefined>;
|
|
@@ -12879,7 +12928,7 @@ export declare class Provider extends AbstractProvider {
|
|
|
12879
12928
|
height: number;
|
|
12880
12929
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
12881
12930
|
timestamp: number;
|
|
12882
|
-
|
|
12931
|
+
gas: number;
|
|
12883
12932
|
gasPrice: number;
|
|
12884
12933
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
12885
12934
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -12941,9 +12990,10 @@ export declare class Provider extends AbstractProvider {
|
|
|
12941
12990
|
maximumNodeStakingAmountInAtomics: number;
|
|
12942
12991
|
unstakingDelayInDays: number;
|
|
12943
12992
|
maxBlockSizeInBytes: number;
|
|
12944
|
-
|
|
12945
|
-
|
|
12993
|
+
retentionPolicy: {
|
|
12994
|
+
retentionRatio: number;
|
|
12946
12995
|
maximumNumberOfDays: number;
|
|
12996
|
+
dayDivisor: number;
|
|
12947
12997
|
}[];
|
|
12948
12998
|
abciVersion: number;
|
|
12949
12999
|
};
|
|
@@ -13396,6 +13446,38 @@ export declare const RequestedAccountUpdateSchema: val.ObjectSchema<{
|
|
|
13396
13446
|
}, undefined>;
|
|
13397
13447
|
}, undefined>;
|
|
13398
13448
|
|
|
13449
|
+
export declare type RetentionCostBreakdown = val.InferOutput<typeof RetentionCostBreakdownSchema>;
|
|
13450
|
+
|
|
13451
|
+
export declare const RetentionCostBreakdownSchema: val.ObjectSchema<{
|
|
13452
|
+
readonly numberOfDays: val.NumberSchema<undefined>;
|
|
13453
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13454
|
+
readonly costInGasAtoms: val.NumberSchema<undefined>;
|
|
13455
|
+
}, undefined>;
|
|
13456
|
+
|
|
13457
|
+
export declare class RetentionCostCalculator {
|
|
13458
|
+
private readonly retentionPolicy;
|
|
13459
|
+
constructor(retentionPolicy: RetentionPolicy);
|
|
13460
|
+
getNumberOfDaysOfStorage(blockTimestamp: number, expirationDay: number): number;
|
|
13461
|
+
getStorageCost(baseCostInGasAtoms: number, numberOfDays: number): number;
|
|
13462
|
+
getBreakdown(baseCostInGasAtoms: number, numberOfDays: number): RetentionCostBreakdown[];
|
|
13463
|
+
}
|
|
13464
|
+
|
|
13465
|
+
export declare type RetentionPolicy = val.InferOutput<typeof RetentionPolicySchema>;
|
|
13466
|
+
|
|
13467
|
+
export declare const RetentionPolicySchema: val.ArraySchema<val.ObjectSchema<{
|
|
13468
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13469
|
+
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13470
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13471
|
+
}, undefined>, undefined>;
|
|
13472
|
+
|
|
13473
|
+
export declare type RetentionTier = val.InferOutput<typeof RetentionTierSchema>;
|
|
13474
|
+
|
|
13475
|
+
export declare const RetentionTierSchema: val.ObjectSchema<{
|
|
13476
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13477
|
+
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13478
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13479
|
+
}, undefined>;
|
|
13480
|
+
|
|
13399
13481
|
export declare const RPCNodeStatusResponseSchema: val.ObjectSchema<{
|
|
13400
13482
|
readonly jsonrpc: val.LiteralSchema<"2.0", undefined>;
|
|
13401
13483
|
readonly id: val.NumberSchema<undefined>;
|
|
@@ -13876,9 +13958,10 @@ export declare const SectionSchema: val.VariantSchema<"type", [val.ObjectSchema<
|
|
|
13876
13958
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
13877
13959
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
13878
13960
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
13879
|
-
readonly
|
|
13880
|
-
readonly
|
|
13961
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
13962
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13881
13963
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13964
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13882
13965
|
}, undefined>, undefined>;
|
|
13883
13966
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
13884
13967
|
}, undefined>;
|
|
@@ -14575,14 +14658,6 @@ export declare const SignatureSectionSchema: val.ObjectSchema<{
|
|
|
14575
14658
|
}>]>;
|
|
14576
14659
|
}, undefined>;
|
|
14577
14660
|
|
|
14578
|
-
export declare class StoragePriceManager {
|
|
14579
|
-
private readonly priceStructure;
|
|
14580
|
-
constructor(priceStructure: PriceStructure);
|
|
14581
|
-
getNumberOfDaysOfStorage(blockTimestamp: number, expirationDay: number): number;
|
|
14582
|
-
getStoragePrice(basePrice: CMTSToken, numberOfDays: number): CMTSToken;
|
|
14583
|
-
getBreakdown(basePrice: CMTSToken, numberOfDays: number): PriceBreakdown[];
|
|
14584
|
-
}
|
|
14585
|
-
|
|
14586
14661
|
export declare const STRING = 2;
|
|
14587
14662
|
|
|
14588
14663
|
export declare function string(options?: StringOptions): val.SchemaWithPipe<readonly [val.StringSchema<undefined>, val.CustomSchema<string, `Expected size is ${number} bytes`>, val.MetadataAction<string, {
|
|
@@ -14651,7 +14726,7 @@ export declare class StructureChecker {
|
|
|
14651
14726
|
* @return void
|
|
14652
14727
|
* @throws An error if the count of sections does not meet the specified constraint.
|
|
14653
14728
|
*/
|
|
14654
|
-
expects(constraint: SectionConstraint, type: SectionType):
|
|
14729
|
+
expects(constraint: SectionConstraint, type: SectionType): number;
|
|
14655
14730
|
/**
|
|
14656
14731
|
* Groups elements based on the provided group constraint and a list of type constraints.
|
|
14657
14732
|
*
|
|
@@ -14706,9 +14781,10 @@ export declare class StructureChecker {
|
|
|
14706
14781
|
maximumNodeStakingAmountInAtomics: number;
|
|
14707
14782
|
unstakingDelayInDays: number;
|
|
14708
14783
|
maxBlockSizeInBytes: number;
|
|
14709
|
-
|
|
14710
|
-
|
|
14784
|
+
retentionPolicy: {
|
|
14785
|
+
retentionRatio: number;
|
|
14711
14786
|
maximumNumberOfDays: number;
|
|
14787
|
+
dayDivisor: number;
|
|
14712
14788
|
}[];
|
|
14713
14789
|
abciVersion: number;
|
|
14714
14790
|
};
|
|
@@ -15252,6 +15328,7 @@ export declare const Utils: {
|
|
|
15252
15328
|
intToByteArray: typeof intToByteArray;
|
|
15253
15329
|
byteArrayToInt: typeof byteArrayToInt;
|
|
15254
15330
|
getGenesisEpochInTimestamp: typeof getInitialTimestampInSeconds;
|
|
15331
|
+
jsonPrettify: typeof jsonPrettify;
|
|
15255
15332
|
};
|
|
15256
15333
|
|
|
15257
15334
|
export declare const ValidatorNodeApprovalSectionSchema: val.ObjectSchema<{
|
|
@@ -15978,9 +16055,10 @@ export declare const VirtualBlockchainStateSchema: val.VariantSchema<"type", [va
|
|
|
15978
16055
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
15979
16056
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
15980
16057
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
15981
|
-
readonly
|
|
15982
|
-
readonly
|
|
16058
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16059
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
15983
16060
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16061
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
15984
16062
|
}, undefined>, undefined>;
|
|
15985
16063
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
15986
16064
|
}, undefined>;
|
|
@@ -16003,9 +16081,10 @@ export declare const VirtualBlockchainStateSchema: val.VariantSchema<"type", [va
|
|
|
16003
16081
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16004
16082
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16005
16083
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16006
|
-
readonly
|
|
16007
|
-
readonly
|
|
16084
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16085
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16008
16086
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16087
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16009
16088
|
}, undefined>, undefined>;
|
|
16010
16089
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16011
16090
|
}, undefined>;
|
|
@@ -16266,9 +16345,10 @@ export declare const VirtualBlockchainStatusSchema: val.ObjectSchema<{
|
|
|
16266
16345
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16267
16346
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16268
16347
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16269
|
-
readonly
|
|
16270
|
-
readonly
|
|
16348
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16349
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16271
16350
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16351
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16272
16352
|
}, undefined>, undefined>;
|
|
16273
16353
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16274
16354
|
}, undefined>;
|
|
@@ -16291,9 +16371,10 @@ export declare const VirtualBlockchainStatusSchema: val.ObjectSchema<{
|
|
|
16291
16371
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16292
16372
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16293
16373
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16294
|
-
readonly
|
|
16295
|
-
readonly
|
|
16374
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16375
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16296
16376
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16377
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16297
16378
|
}, undefined>, undefined>;
|
|
16298
16379
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16299
16380
|
}, undefined>;
|