@cmts-dev/carmentis-sdk-core 1.1.1 → 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 -4
- package/dist/carmentis-sdk-core.cjs.map +1 -1
- package/dist/carmentis-sdk-core.d.ts +182 -146
- package/dist/carmentis-sdk-core.es +3857 -3859
- package/dist/carmentis-sdk-core.es.map +1 -1
- package/package.json +1 -1
|
@@ -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,10 +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
|
-
|
|
180
|
+
dayDivisor: number;
|
|
181
181
|
}[];
|
|
182
182
|
abciVersion: number;
|
|
183
183
|
};
|
|
@@ -374,6 +374,8 @@ export declare class AbciQueryEncoder {
|
|
|
374
374
|
height: number;
|
|
375
375
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
376
376
|
type: number;
|
|
377
|
+
publicReference: string;
|
|
378
|
+
privateReference: string;
|
|
377
379
|
timestamp: number;
|
|
378
380
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
379
381
|
amount: number;
|
|
@@ -438,6 +440,8 @@ export declare class AbciQueryEncoder {
|
|
|
438
440
|
height: number;
|
|
439
441
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
440
442
|
type: number;
|
|
443
|
+
publicReference: string;
|
|
444
|
+
privateReference: string;
|
|
441
445
|
timestamp: number;
|
|
442
446
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
443
447
|
amount: number;
|
|
@@ -801,7 +805,7 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
801
805
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
802
806
|
}, undefined>;
|
|
803
807
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
804
|
-
readonly
|
|
808
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
805
809
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
806
810
|
readonly bodyHash: val.InstanceSchema<{
|
|
807
811
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -853,7 +857,7 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
853
857
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
854
858
|
}, undefined>;
|
|
855
859
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
856
|
-
readonly
|
|
860
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
857
861
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
858
862
|
readonly bodyHash: val.InstanceSchema<{
|
|
859
863
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -953,10 +957,10 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
953
957
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
954
958
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
955
959
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
956
|
-
readonly
|
|
957
|
-
readonly
|
|
960
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
961
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
958
962
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
959
|
-
readonly
|
|
963
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
960
964
|
}, undefined>, undefined>;
|
|
961
965
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
962
966
|
}, undefined>;
|
|
@@ -1538,6 +1542,8 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
1538
1542
|
readonly typeId: 12;
|
|
1539
1543
|
}>]>;
|
|
1540
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>;
|
|
1541
1547
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
1542
1548
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
1543
1549
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -1729,6 +1735,8 @@ export declare const AbciResponseSchema: val.VariantSchema<"responseType", [val.
|
|
|
1729
1735
|
readonly typeId: 12;
|
|
1730
1736
|
}>]>;
|
|
1731
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>;
|
|
1732
1740
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
1733
1741
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
1734
1742
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -1802,10 +1810,10 @@ export declare abstract class AbstractProvider implements IProvider {
|
|
|
1802
1810
|
loadVirtualBlockchain(vbId: Hash): Promise<VirtualBlockchain>;
|
|
1803
1811
|
loadMicroblockByMicroblockHash(microblockHash: Hash): Promise<Microblock>;
|
|
1804
1812
|
getCurrentFeesFormula(): Promise<IFeesFormula>;
|
|
1805
|
-
|
|
1813
|
+
computeMicroblockGas(mb: Microblock, options?: {
|
|
1806
1814
|
signatureSchemeId?: SignatureSchemeId;
|
|
1807
1815
|
referenceTimestampInSeconds?: number;
|
|
1808
|
-
}): Promise<
|
|
1816
|
+
}): Promise<number>;
|
|
1809
1817
|
abstract getVirtualBlockchainStatus(virtualBlockchainId: Uint8Array): Promise<VirtualBlockchainStatus | null>;
|
|
1810
1818
|
abstract getAccountIdFromPublicKey(publicKey: PublicSignatureKey): Promise<Hash>;
|
|
1811
1819
|
abstract getListOfMicroblockBody(microblockHashes: Uint8Array[]): Promise<MicroblockBody[]>;
|
|
@@ -2029,6 +2037,8 @@ export declare const AccountHistoryAbciResponseSchema: val.ObjectSchema<{
|
|
|
2029
2037
|
readonly typeId: 12;
|
|
2030
2038
|
}>]>;
|
|
2031
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>;
|
|
2032
2042
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2033
2043
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2034
2044
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2073,6 +2083,8 @@ export declare const AccountHistoryEntrySchema: val.ObjectSchema<{
|
|
|
2073
2083
|
readonly typeId: 12;
|
|
2074
2084
|
}>]>;
|
|
2075
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>;
|
|
2076
2088
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2077
2089
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2078
2090
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2114,6 +2126,8 @@ export declare const AccountHistorySchema: val.ArraySchema<val.ObjectSchema<{
|
|
|
2114
2126
|
readonly typeId: 12;
|
|
2115
2127
|
}>]>;
|
|
2116
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>;
|
|
2117
2131
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2118
2132
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2119
2133
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2809,6 +2823,8 @@ export declare const AccountUpdatesAbciResponseSchema: val.ObjectSchema<{
|
|
|
2809
2823
|
readonly typeId: 12;
|
|
2810
2824
|
}>]>;
|
|
2811
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>;
|
|
2812
2828
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2813
2829
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2814
2830
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -2944,6 +2960,8 @@ export declare const AccountUpdateSchema: val.ObjectSchema<{
|
|
|
2944
2960
|
readonly typeId: 12;
|
|
2945
2961
|
}>]>;
|
|
2946
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>;
|
|
2947
2965
|
readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
|
|
2948
2966
|
readonly linkedAccount: val.SchemaWithPipe<readonly [val.InstanceSchema<{
|
|
2949
2967
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -4548,9 +4566,9 @@ export declare class BalanceAvailability {
|
|
|
4548
4566
|
*/
|
|
4549
4567
|
addEscrowedTokens(lockedAmountInAtomics: number, escrowParameters: EscrowParameters): void;
|
|
4550
4568
|
/**
|
|
4551
|
-
*
|
|
4569
|
+
* Removes an escrow lock, given its identifier.
|
|
4552
4570
|
*/
|
|
4553
|
-
|
|
4571
|
+
removeEscrowLock(escrowIdentifier: Uint8Array): number;
|
|
4554
4572
|
/**
|
|
4555
4573
|
* Stakes a given amount of tokens for a given node.
|
|
4556
4574
|
* If a staking is already defined for this node, the new amount is added to the current staked amount.
|
|
@@ -4954,10 +4972,10 @@ export declare class BlockchainUtils {
|
|
|
4954
4972
|
maximumNodeStakingAmountInAtomics: number;
|
|
4955
4973
|
unstakingDelayInDays: number;
|
|
4956
4974
|
maxBlockSizeInBytes: number;
|
|
4957
|
-
|
|
4958
|
-
|
|
4975
|
+
retentionPolicy: {
|
|
4976
|
+
retentionRatio: number;
|
|
4959
4977
|
maximumNumberOfDays: number;
|
|
4960
|
-
|
|
4978
|
+
dayDivisor: number;
|
|
4961
4979
|
}[];
|
|
4962
4980
|
abciVersion: number;
|
|
4963
4981
|
};
|
|
@@ -5121,7 +5139,7 @@ export declare class BlockchainUtils {
|
|
|
5121
5139
|
height: number;
|
|
5122
5140
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
5123
5141
|
timestamp: number;
|
|
5124
|
-
|
|
5142
|
+
gas: number;
|
|
5125
5143
|
gasPrice: number;
|
|
5126
5144
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
5127
5145
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -6073,7 +6091,7 @@ export declare namespace ECO {
|
|
|
6073
6091
|
MAXIMUM_GAS_PRICE,
|
|
6074
6092
|
FIXED_GAS_FEE,
|
|
6075
6093
|
GAS_PER_BYTE,
|
|
6076
|
-
|
|
6094
|
+
GAS_ATOMS_PER_GAS,
|
|
6077
6095
|
BK_PLUS,
|
|
6078
6096
|
BK_PAID_TX_FEES,
|
|
6079
6097
|
BK_PAID_BLOCK_FEES,
|
|
@@ -6471,6 +6489,7 @@ export declare class FirstFeesFormula implements IFeesFormula {
|
|
|
6471
6489
|
private static DEFAULT_GAS_PRICE;
|
|
6472
6490
|
constructor(provider: IProvider);
|
|
6473
6491
|
computeFees(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds?: number): Promise<CMTSToken>;
|
|
6492
|
+
computeGas(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds?: number): Promise<number>;
|
|
6474
6493
|
private getAdditionalCosts;
|
|
6475
6494
|
/**
|
|
6476
6495
|
* Computes the total size in bytes of the provided microblock, excluding the last section
|
|
@@ -6496,9 +6515,9 @@ declare function fromNumericPath(irObject: any, numericPath: any): string;
|
|
|
6496
6515
|
|
|
6497
6516
|
declare function fromParents(parents: any): string;
|
|
6498
6517
|
|
|
6499
|
-
export declare const
|
|
6518
|
+
export declare const GAS_ATOMS_PER_GAS = 100000;
|
|
6500
6519
|
|
|
6501
|
-
export declare const
|
|
6520
|
+
export declare const GAS_PER_BYTE = 1;
|
|
6502
6521
|
|
|
6503
6522
|
declare function generateKeyPair(seed: any): {
|
|
6504
6523
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
@@ -7027,6 +7046,10 @@ export declare interface IFeesFormula {
|
|
|
7027
7046
|
*
|
|
7028
7047
|
*/
|
|
7029
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>;
|
|
7030
7053
|
}
|
|
7031
7054
|
|
|
7032
7055
|
export declare interface IInternalProvider {
|
|
@@ -7300,10 +7323,10 @@ export declare interface IProvider {
|
|
|
7300
7323
|
* Note that the protocol parameters are defined in the internal state of the protocol virtual blockchain.
|
|
7301
7324
|
*/
|
|
7302
7325
|
getProtocolState(): Promise<ProtocolInternalState>;
|
|
7303
|
-
|
|
7326
|
+
computeMicroblockGas(mb: Microblock, options?: {
|
|
7304
7327
|
signatureSchemeId?: SignatureSchemeId;
|
|
7305
7328
|
referenceTimestampInSeconds?: number;
|
|
7306
|
-
}): Promise<
|
|
7329
|
+
}): Promise<number>;
|
|
7307
7330
|
}
|
|
7308
7331
|
|
|
7309
7332
|
declare function isAllowedTransfer(accountType: number, transferType: number): number;
|
|
@@ -7362,8 +7385,26 @@ declare function jsonPrettify(json: unknown, indent?: number): string;
|
|
|
7362
7385
|
|
|
7363
7386
|
export declare const JsonSchema: val.GenericSchema<JsonData>;
|
|
7364
7387
|
|
|
7388
|
+
/**
|
|
7389
|
+
* Helper class for encoding and exporting signature keys as JWK (JSON Web Key).
|
|
7390
|
+
*/
|
|
7365
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
|
+
*/
|
|
7366
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
|
+
*/
|
|
7367
7408
|
static exportPrivateSignatureKey(privateKey: PrivateSignatureKey): Promise<CryptoKey>;
|
|
7368
7409
|
}
|
|
7369
7410
|
|
|
@@ -7532,7 +7573,7 @@ export declare class MemoryProvider implements IInternalProvider {
|
|
|
7532
7573
|
height: number;
|
|
7533
7574
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
7534
7575
|
timestamp: number;
|
|
7535
|
-
|
|
7576
|
+
gas: number;
|
|
7536
7577
|
gasPrice: number;
|
|
7537
7578
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
7538
7579
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -8039,23 +8080,17 @@ export declare class Microblock {
|
|
|
8039
8080
|
getTimestamp(): number;
|
|
8040
8081
|
/**
|
|
8041
8082
|
* Returns the gas in the header.
|
|
8042
|
-
* @deprecated No more gas in contained in the header. Use getMaxFees instead.
|
|
8043
|
-
*/
|
|
8044
|
-
getGas(): CMTSToken;
|
|
8045
|
-
/**
|
|
8046
|
-
*
|
|
8047
8083
|
*/
|
|
8048
|
-
|
|
8084
|
+
getGas(): number;
|
|
8049
8085
|
/**
|
|
8050
|
-
*
|
|
8051
|
-
* @param maxFees
|
|
8086
|
+
* Get the fees in tokens
|
|
8052
8087
|
*/
|
|
8053
|
-
|
|
8088
|
+
getFees(): CMTSToken;
|
|
8054
8089
|
/**
|
|
8055
|
-
*
|
|
8090
|
+
* Assign the gas.
|
|
8056
8091
|
* @param gas
|
|
8057
8092
|
*/
|
|
8058
|
-
setGas(gas:
|
|
8093
|
+
setGas(gas: number): void;
|
|
8059
8094
|
setHeight(number: number): void;
|
|
8060
8095
|
setGasPrice(gasPrice: CMTSToken): void;
|
|
8061
8096
|
getGasPrice(): CMTSToken;
|
|
@@ -8121,8 +8156,9 @@ export declare class Microblock {
|
|
|
8121
8156
|
* @param {PrivateSignatureKey} privateKey - The private key used to sign the data.
|
|
8122
8157
|
* @param {boolean} includeGas - A flag indicating whether gas-related data should be included in the signature.
|
|
8123
8158
|
* @return {Uint8Array} The generated digital signature as a byte array.
|
|
8159
|
+
* @private
|
|
8124
8160
|
*/
|
|
8125
|
-
sign
|
|
8161
|
+
private sign;
|
|
8126
8162
|
/**
|
|
8127
8163
|
* Verifies the signature of the last signature section using the provided public key.
|
|
8128
8164
|
*
|
|
@@ -8270,7 +8306,7 @@ export declare const MicroblockAnchoringAbciResponseSchema: val.ObjectSchema<{
|
|
|
8270
8306
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
8271
8307
|
}, undefined>;
|
|
8272
8308
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
8273
|
-
readonly
|
|
8309
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
8274
8310
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
8275
8311
|
readonly bodyHash: val.InstanceSchema<{
|
|
8276
8312
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -8372,10 +8408,10 @@ export declare const MicroblockBodyItemSchema: val.ObjectSchema<{
|
|
|
8372
8408
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
8373
8409
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
8374
8410
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
8375
|
-
readonly
|
|
8376
|
-
readonly
|
|
8411
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
8412
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
8377
8413
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
8378
|
-
readonly
|
|
8414
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
8379
8415
|
}, undefined>, undefined>;
|
|
8380
8416
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
8381
8417
|
}, undefined>;
|
|
@@ -8936,10 +8972,10 @@ export declare const MicroblockBodysAbciResponseSchema: val.ObjectSchema<{
|
|
|
8936
8972
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
8937
8973
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
8938
8974
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
8939
|
-
readonly
|
|
8940
|
-
readonly
|
|
8975
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
8976
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
8941
8977
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
8942
|
-
readonly
|
|
8978
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
8943
8979
|
}, undefined>, undefined>;
|
|
8944
8980
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
8945
8981
|
}, undefined>;
|
|
@@ -9484,10 +9520,10 @@ export declare const MicroblockBodySchema: val.ObjectSchema<{
|
|
|
9484
9520
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
9485
9521
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
9486
9522
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
9487
|
-
readonly
|
|
9488
|
-
readonly
|
|
9523
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
9524
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
9489
9525
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
9490
|
-
readonly
|
|
9526
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
9491
9527
|
}, undefined>, undefined>;
|
|
9492
9528
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
9493
9529
|
}, undefined>;
|
|
@@ -10067,13 +10103,11 @@ export declare const MicroblockHeaderSchema: val.ObjectSchema<{
|
|
|
10067
10103
|
*/
|
|
10068
10104
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10069
10105
|
/**
|
|
10070
|
-
* The
|
|
10071
|
-
*
|
|
10072
|
-
* 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.
|
|
10073
10107
|
*/
|
|
10074
|
-
readonly
|
|
10108
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10075
10109
|
/**
|
|
10076
|
-
* 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.
|
|
10077
10111
|
*/
|
|
10078
10112
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10079
10113
|
/**
|
|
@@ -10136,7 +10170,7 @@ export declare const MicroblockInformationAbciResponseSchema: val.ObjectSchema<{
|
|
|
10136
10170
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10137
10171
|
}, undefined>;
|
|
10138
10172
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10139
|
-
readonly
|
|
10173
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10140
10174
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10141
10175
|
readonly bodyHash: val.InstanceSchema<{
|
|
10142
10176
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10190,7 +10224,7 @@ export declare const MicroblockInformationSchema: val.ObjectSchema<{
|
|
|
10190
10224
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10191
10225
|
}, undefined>;
|
|
10192
10226
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10193
|
-
readonly
|
|
10227
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10194
10228
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10195
10229
|
readonly bodyHash: val.InstanceSchema<{
|
|
10196
10230
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10246,7 +10280,7 @@ export declare const MicroblockStructSchema: val.ObjectSchema<{
|
|
|
10246
10280
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10247
10281
|
}, undefined>;
|
|
10248
10282
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10249
|
-
readonly
|
|
10283
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10250
10284
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10251
10285
|
readonly bodyHash: val.InstanceSchema<{
|
|
10252
10286
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10330,10 +10364,10 @@ export declare const MicroblockStructSchema: val.ObjectSchema<{
|
|
|
10330
10364
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
10331
10365
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
10332
10366
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
10333
|
-
readonly
|
|
10334
|
-
readonly
|
|
10367
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
10368
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
10335
10369
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
10336
|
-
readonly
|
|
10370
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
10337
10371
|
}, undefined>, undefined>;
|
|
10338
10372
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
10339
10373
|
}, undefined>;
|
|
@@ -11172,7 +11206,7 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11172
11206
|
height: number;
|
|
11173
11207
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
11174
11208
|
timestamp: number;
|
|
11175
|
-
|
|
11209
|
+
gas: number;
|
|
11176
11210
|
gasPrice: number;
|
|
11177
11211
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
11178
11212
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -11251,6 +11285,8 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11251
11285
|
height: number;
|
|
11252
11286
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
11253
11287
|
type: number;
|
|
11288
|
+
publicReference: string;
|
|
11289
|
+
privateReference: string;
|
|
11254
11290
|
timestamp: number;
|
|
11255
11291
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
11256
11292
|
amount: number;
|
|
@@ -12003,30 +12039,6 @@ declare const PositiveInt: val.SchemaWithPipe<readonly [val.NumberSchema<undefin
|
|
|
12003
12039
|
|
|
12004
12040
|
declare type PositiveInt = val.InferOutput<typeof PositiveInt>;
|
|
12005
12041
|
|
|
12006
|
-
export declare type PriceBreakdown = val.InferOutput<typeof PriceBreakdownSchema>;
|
|
12007
|
-
|
|
12008
|
-
export declare const PriceBreakdownSchema: val.ObjectSchema<{
|
|
12009
|
-
readonly numberOfDays: val.NumberSchema<undefined>;
|
|
12010
|
-
readonly pricingRate: val.NumberSchema<undefined>;
|
|
12011
|
-
readonly priceInAtomics: val.NumberSchema<undefined>;
|
|
12012
|
-
}, undefined>;
|
|
12013
|
-
|
|
12014
|
-
export declare type PriceCategory = val.InferOutput<typeof PriceCategorySchema>;
|
|
12015
|
-
|
|
12016
|
-
export declare const PriceCategorySchema: val.ObjectSchema<{
|
|
12017
|
-
readonly pricingRate: val.NumberSchema<undefined>;
|
|
12018
|
-
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12019
|
-
readonly divisor: val.NumberSchema<undefined>;
|
|
12020
|
-
}, undefined>;
|
|
12021
|
-
|
|
12022
|
-
export declare type PriceStructure = val.InferOutput<typeof PriceStructureSchema>;
|
|
12023
|
-
|
|
12024
|
-
export declare const PriceStructureSchema: val.ArraySchema<val.ObjectSchema<{
|
|
12025
|
-
readonly pricingRate: val.NumberSchema<undefined>;
|
|
12026
|
-
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12027
|
-
readonly divisor: val.NumberSchema<undefined>;
|
|
12028
|
-
}, undefined>, undefined>;
|
|
12029
|
-
|
|
12030
12042
|
export declare type PrimitiveValue = val.InferOutput<typeof PrimitiveValueSchema>;
|
|
12031
12043
|
|
|
12032
12044
|
declare const PrimitiveValueSchema: val.UnionSchema<[val.StringSchema<undefined>, val.NumberSchema<undefined>, val.BooleanSchema<undefined>, val.NullSchema<undefined>], undefined>;
|
|
@@ -12553,10 +12565,10 @@ export declare class ProtocolInternalState implements IInternalState {
|
|
|
12553
12565
|
maximumNodeStakingAmountInAtomics: number;
|
|
12554
12566
|
unstakingDelayInDays: number;
|
|
12555
12567
|
maxBlockSizeInBytes: number;
|
|
12556
|
-
|
|
12557
|
-
|
|
12568
|
+
retentionPolicy: {
|
|
12569
|
+
retentionRatio: number;
|
|
12558
12570
|
maximumNumberOfDays: number;
|
|
12559
|
-
|
|
12571
|
+
dayDivisor: number;
|
|
12560
12572
|
}[];
|
|
12561
12573
|
abciVersion: number;
|
|
12562
12574
|
};
|
|
@@ -12569,10 +12581,10 @@ export declare class ProtocolInternalState implements IInternalState {
|
|
|
12569
12581
|
getMinimumNodeStakingAmountInAtomics(): number;
|
|
12570
12582
|
getMaximumNodeStakingAmountInAtomics(): number;
|
|
12571
12583
|
getUnstakingDelayInDays(): number;
|
|
12572
|
-
|
|
12573
|
-
|
|
12584
|
+
getRetentionPolicy(): {
|
|
12585
|
+
retentionRatio: number;
|
|
12574
12586
|
maximumNumberOfDays: number;
|
|
12575
|
-
|
|
12587
|
+
dayDivisor: number;
|
|
12576
12588
|
}[];
|
|
12577
12589
|
toObject(): ProtocolVBInternalStateObject;
|
|
12578
12590
|
getFeesCalculationVersion(): number;
|
|
@@ -12613,10 +12625,10 @@ export declare const ProtocolUpdateSchema: val.ObjectSchema<{
|
|
|
12613
12625
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12614
12626
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12615
12627
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12616
|
-
readonly
|
|
12617
|
-
readonly
|
|
12628
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12629
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12618
12630
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12619
|
-
readonly
|
|
12631
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12620
12632
|
}, undefined>, undefined>;
|
|
12621
12633
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12622
12634
|
}, undefined>;
|
|
@@ -12643,10 +12655,10 @@ export declare const ProtocolUpdateSectionSchema: val.ObjectSchema<{
|
|
|
12643
12655
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12644
12656
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12645
12657
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12646
|
-
readonly
|
|
12647
|
-
readonly
|
|
12658
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12659
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12648
12660
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12649
|
-
readonly
|
|
12661
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12650
12662
|
}, undefined>, undefined>;
|
|
12651
12663
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12652
12664
|
}, undefined>;
|
|
@@ -12670,10 +12682,10 @@ export declare const ProtocolVariablesSchema: val.ObjectSchema<{
|
|
|
12670
12682
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12671
12683
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12672
12684
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12673
|
-
readonly
|
|
12674
|
-
readonly
|
|
12685
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12686
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12675
12687
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12676
|
-
readonly
|
|
12688
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12677
12689
|
}, undefined>, undefined>;
|
|
12678
12690
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12679
12691
|
}, undefined>;
|
|
@@ -12709,10 +12721,10 @@ export declare class ProtocolVb extends VirtualBlockchain<ProtocolInternalState>
|
|
|
12709
12721
|
maximumNodeStakingAmountInAtomics: number;
|
|
12710
12722
|
unstakingDelayInDays: number;
|
|
12711
12723
|
maxBlockSizeInBytes: number;
|
|
12712
|
-
|
|
12713
|
-
|
|
12724
|
+
retentionPolicy: {
|
|
12725
|
+
retentionRatio: number;
|
|
12714
12726
|
maximumNumberOfDays: number;
|
|
12715
|
-
|
|
12727
|
+
dayDivisor: number;
|
|
12716
12728
|
}[];
|
|
12717
12729
|
abciVersion: number;
|
|
12718
12730
|
};
|
|
@@ -12735,10 +12747,10 @@ export declare class ProtocolVb extends VirtualBlockchain<ProtocolInternalState>
|
|
|
12735
12747
|
maximumNodeStakingAmountInAtomics: number;
|
|
12736
12748
|
unstakingDelayInDays: number;
|
|
12737
12749
|
maxBlockSizeInBytes: number;
|
|
12738
|
-
|
|
12739
|
-
|
|
12750
|
+
retentionPolicy: {
|
|
12751
|
+
retentionRatio: number;
|
|
12740
12752
|
maximumNumberOfDays: number;
|
|
12741
|
-
|
|
12753
|
+
dayDivisor: number;
|
|
12742
12754
|
}[];
|
|
12743
12755
|
abciVersion: number;
|
|
12744
12756
|
};
|
|
@@ -12779,10 +12791,10 @@ export declare const ProtocolVBInternalStateObjectSchema: val.ObjectSchema<{
|
|
|
12779
12791
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12780
12792
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12781
12793
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12782
|
-
readonly
|
|
12783
|
-
readonly
|
|
12794
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12795
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12784
12796
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12785
|
-
readonly
|
|
12797
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12786
12798
|
}, undefined>, undefined>;
|
|
12787
12799
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12788
12800
|
}, undefined>;
|
|
@@ -12805,10 +12817,10 @@ export declare const ProtocolVBInternalStateObjectSchema: val.ObjectSchema<{
|
|
|
12805
12817
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12806
12818
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12807
12819
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12808
|
-
readonly
|
|
12809
|
-
readonly
|
|
12820
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12821
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12810
12822
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12811
|
-
readonly
|
|
12823
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12812
12824
|
}, undefined>, undefined>;
|
|
12813
12825
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12814
12826
|
}, undefined>;
|
|
@@ -12844,10 +12856,10 @@ export declare const ProtocolVirtualBlockchainStateSchema: val.ObjectSchema<{
|
|
|
12844
12856
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12845
12857
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12846
12858
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12847
|
-
readonly
|
|
12848
|
-
readonly
|
|
12859
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12860
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12849
12861
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12850
|
-
readonly
|
|
12862
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12851
12863
|
}, undefined>, undefined>;
|
|
12852
12864
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12853
12865
|
}, undefined>;
|
|
@@ -12870,10 +12882,10 @@ export declare const ProtocolVirtualBlockchainStateSchema: val.ObjectSchema<{
|
|
|
12870
12882
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12871
12883
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12872
12884
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12873
|
-
readonly
|
|
12874
|
-
readonly
|
|
12885
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12886
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12875
12887
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12876
|
-
readonly
|
|
12888
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12877
12889
|
}, undefined>, undefined>;
|
|
12878
12890
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12879
12891
|
}, undefined>;
|
|
@@ -12916,7 +12928,7 @@ export declare class Provider extends AbstractProvider {
|
|
|
12916
12928
|
height: number;
|
|
12917
12929
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
12918
12930
|
timestamp: number;
|
|
12919
|
-
|
|
12931
|
+
gas: number;
|
|
12920
12932
|
gasPrice: number;
|
|
12921
12933
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
12922
12934
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -12978,10 +12990,10 @@ export declare class Provider extends AbstractProvider {
|
|
|
12978
12990
|
maximumNodeStakingAmountInAtomics: number;
|
|
12979
12991
|
unstakingDelayInDays: number;
|
|
12980
12992
|
maxBlockSizeInBytes: number;
|
|
12981
|
-
|
|
12982
|
-
|
|
12993
|
+
retentionPolicy: {
|
|
12994
|
+
retentionRatio: number;
|
|
12983
12995
|
maximumNumberOfDays: number;
|
|
12984
|
-
|
|
12996
|
+
dayDivisor: number;
|
|
12985
12997
|
}[];
|
|
12986
12998
|
abciVersion: number;
|
|
12987
12999
|
};
|
|
@@ -13434,6 +13446,38 @@ export declare const RequestedAccountUpdateSchema: val.ObjectSchema<{
|
|
|
13434
13446
|
}, undefined>;
|
|
13435
13447
|
}, undefined>;
|
|
13436
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
|
+
|
|
13437
13481
|
export declare const RPCNodeStatusResponseSchema: val.ObjectSchema<{
|
|
13438
13482
|
readonly jsonrpc: val.LiteralSchema<"2.0", undefined>;
|
|
13439
13483
|
readonly id: val.NumberSchema<undefined>;
|
|
@@ -13914,10 +13958,10 @@ export declare const SectionSchema: val.VariantSchema<"type", [val.ObjectSchema<
|
|
|
13914
13958
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
13915
13959
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
13916
13960
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
13917
|
-
readonly
|
|
13918
|
-
readonly
|
|
13961
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
13962
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13919
13963
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13920
|
-
readonly
|
|
13964
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13921
13965
|
}, undefined>, undefined>;
|
|
13922
13966
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
13923
13967
|
}, undefined>;
|
|
@@ -14614,14 +14658,6 @@ export declare const SignatureSectionSchema: val.ObjectSchema<{
|
|
|
14614
14658
|
}>]>;
|
|
14615
14659
|
}, undefined>;
|
|
14616
14660
|
|
|
14617
|
-
export declare class StoragePriceManager {
|
|
14618
|
-
private readonly priceStructure;
|
|
14619
|
-
constructor(priceStructure: PriceStructure);
|
|
14620
|
-
getNumberOfDaysOfStorage(blockTimestamp: number, expirationDay: number): number;
|
|
14621
|
-
getStoragePrice(basePrice: CMTSToken, numberOfDays: number): CMTSToken;
|
|
14622
|
-
getBreakdown(basePrice: CMTSToken, numberOfDays: number): PriceBreakdown[];
|
|
14623
|
-
}
|
|
14624
|
-
|
|
14625
14661
|
export declare const STRING = 2;
|
|
14626
14662
|
|
|
14627
14663
|
export declare function string(options?: StringOptions): val.SchemaWithPipe<readonly [val.StringSchema<undefined>, val.CustomSchema<string, `Expected size is ${number} bytes`>, val.MetadataAction<string, {
|
|
@@ -14690,7 +14726,7 @@ export declare class StructureChecker {
|
|
|
14690
14726
|
* @return void
|
|
14691
14727
|
* @throws An error if the count of sections does not meet the specified constraint.
|
|
14692
14728
|
*/
|
|
14693
|
-
expects(constraint: SectionConstraint, type: SectionType):
|
|
14729
|
+
expects(constraint: SectionConstraint, type: SectionType): number;
|
|
14694
14730
|
/**
|
|
14695
14731
|
* Groups elements based on the provided group constraint and a list of type constraints.
|
|
14696
14732
|
*
|
|
@@ -14745,10 +14781,10 @@ export declare class StructureChecker {
|
|
|
14745
14781
|
maximumNodeStakingAmountInAtomics: number;
|
|
14746
14782
|
unstakingDelayInDays: number;
|
|
14747
14783
|
maxBlockSizeInBytes: number;
|
|
14748
|
-
|
|
14749
|
-
|
|
14784
|
+
retentionPolicy: {
|
|
14785
|
+
retentionRatio: number;
|
|
14750
14786
|
maximumNumberOfDays: number;
|
|
14751
|
-
|
|
14787
|
+
dayDivisor: number;
|
|
14752
14788
|
}[];
|
|
14753
14789
|
abciVersion: number;
|
|
14754
14790
|
};
|
|
@@ -16019,10 +16055,10 @@ export declare const VirtualBlockchainStateSchema: val.VariantSchema<"type", [va
|
|
|
16019
16055
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16020
16056
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16021
16057
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16022
|
-
readonly
|
|
16023
|
-
readonly
|
|
16058
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16059
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16024
16060
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16025
|
-
readonly
|
|
16061
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16026
16062
|
}, undefined>, undefined>;
|
|
16027
16063
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16028
16064
|
}, undefined>;
|
|
@@ -16045,10 +16081,10 @@ export declare const VirtualBlockchainStateSchema: val.VariantSchema<"type", [va
|
|
|
16045
16081
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16046
16082
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16047
16083
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16048
|
-
readonly
|
|
16049
|
-
readonly
|
|
16084
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16085
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16050
16086
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16051
|
-
readonly
|
|
16087
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16052
16088
|
}, undefined>, undefined>;
|
|
16053
16089
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16054
16090
|
}, undefined>;
|
|
@@ -16309,10 +16345,10 @@ export declare const VirtualBlockchainStatusSchema: val.ObjectSchema<{
|
|
|
16309
16345
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16310
16346
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16311
16347
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16312
|
-
readonly
|
|
16313
|
-
readonly
|
|
16348
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16349
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16314
16350
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16315
|
-
readonly
|
|
16351
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16316
16352
|
}, undefined>, undefined>;
|
|
16317
16353
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16318
16354
|
}, undefined>;
|
|
@@ -16335,10 +16371,10 @@ export declare const VirtualBlockchainStatusSchema: val.ObjectSchema<{
|
|
|
16335
16371
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16336
16372
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16337
16373
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16338
|
-
readonly
|
|
16339
|
-
readonly
|
|
16374
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16375
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16340
16376
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16341
|
-
readonly
|
|
16377
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16342
16378
|
}, undefined>, undefined>;
|
|
16343
16379
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16344
16380
|
}, undefined>;
|