@cmts-dev/carmentis-sdk-core 1.1.1 → 1.1.4
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 +3 -3
- package/dist/carmentis-sdk-core.cjs.map +1 -1
- package/dist/carmentis-sdk-core.d.ts +279 -150
- package/dist/carmentis-sdk-core.es +1279 -1268
- package/dist/carmentis-sdk-core.es.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
|
@@ -7373,7 +7414,7 @@ export declare abstract class KeyDerivationFunction {
|
|
|
7373
7414
|
deriveKeyNoSalt(inputKeyingMaterial: Uint8Array, info: Uint8Array, keyLength: number): Uint8Array;
|
|
7374
7415
|
}
|
|
7375
7416
|
|
|
7376
|
-
declare enum KeyDerivationFunctionSchemeId {
|
|
7417
|
+
export declare enum KeyDerivationFunctionSchemeId {
|
|
7377
7418
|
HKDF = 0
|
|
7378
7419
|
}
|
|
7379
7420
|
|
|
@@ -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>;
|
|
@@ -7810,6 +7851,25 @@ export declare enum MerkleLeafTypeEnum {
|
|
|
7810
7851
|
Maskable = 6
|
|
7811
7852
|
}
|
|
7812
7853
|
|
|
7854
|
+
export declare class MerkleRecord {
|
|
7855
|
+
private channelMap;
|
|
7856
|
+
private recordByChannels;
|
|
7857
|
+
private publicChannels;
|
|
7858
|
+
constructor();
|
|
7859
|
+
static fromRecordByChannels(recordByChannels: RecordByChannels, peppers?: Map<number, Uint8Array> | undefined): MerkleRecord;
|
|
7860
|
+
private setChannelsFromRecordByChannels;
|
|
7861
|
+
private storeChannel;
|
|
7862
|
+
getPublicChannels(): Set<number>;
|
|
7863
|
+
getLeavesByChannelMap(): Map<any, any>;
|
|
7864
|
+
getRecordByChannels(): RecordByChannels;
|
|
7865
|
+
getChannelIds(): number[];
|
|
7866
|
+
getChannelPepper(channelId: number): Uint8Array<ArrayBufferLike>;
|
|
7867
|
+
getChannelRootHash(channelId: number): Uint8Array<ArrayBufferLike>;
|
|
7868
|
+
private getChannel;
|
|
7869
|
+
private flatItemsToPositionedLeaves;
|
|
7870
|
+
private flatItemToLeaf;
|
|
7871
|
+
}
|
|
7872
|
+
|
|
7813
7873
|
export declare class MerkleTree {
|
|
7814
7874
|
leaves: Uint8Array[];
|
|
7815
7875
|
nLeaves: number;
|
|
@@ -8039,23 +8099,17 @@ export declare class Microblock {
|
|
|
8039
8099
|
getTimestamp(): number;
|
|
8040
8100
|
/**
|
|
8041
8101
|
* 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
8102
|
*/
|
|
8048
|
-
|
|
8103
|
+
getGas(): number;
|
|
8049
8104
|
/**
|
|
8050
|
-
*
|
|
8051
|
-
* @param maxFees
|
|
8105
|
+
* Get the fees in tokens
|
|
8052
8106
|
*/
|
|
8053
|
-
|
|
8107
|
+
getFees(): CMTSToken;
|
|
8054
8108
|
/**
|
|
8055
|
-
*
|
|
8109
|
+
* Assign the gas.
|
|
8056
8110
|
* @param gas
|
|
8057
8111
|
*/
|
|
8058
|
-
setGas(gas:
|
|
8112
|
+
setGas(gas: number): void;
|
|
8059
8113
|
setHeight(number: number): void;
|
|
8060
8114
|
setGasPrice(gasPrice: CMTSToken): void;
|
|
8061
8115
|
getGasPrice(): CMTSToken;
|
|
@@ -8121,8 +8175,9 @@ export declare class Microblock {
|
|
|
8121
8175
|
* @param {PrivateSignatureKey} privateKey - The private key used to sign the data.
|
|
8122
8176
|
* @param {boolean} includeGas - A flag indicating whether gas-related data should be included in the signature.
|
|
8123
8177
|
* @return {Uint8Array} The generated digital signature as a byte array.
|
|
8178
|
+
* @private
|
|
8124
8179
|
*/
|
|
8125
|
-
sign
|
|
8180
|
+
private sign;
|
|
8126
8181
|
/**
|
|
8127
8182
|
* Verifies the signature of the last signature section using the provided public key.
|
|
8128
8183
|
*
|
|
@@ -8270,7 +8325,7 @@ export declare const MicroblockAnchoringAbciResponseSchema: val.ObjectSchema<{
|
|
|
8270
8325
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
8271
8326
|
}, undefined>;
|
|
8272
8327
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
8273
|
-
readonly
|
|
8328
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
8274
8329
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
8275
8330
|
readonly bodyHash: val.InstanceSchema<{
|
|
8276
8331
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -8372,10 +8427,10 @@ export declare const MicroblockBodyItemSchema: val.ObjectSchema<{
|
|
|
8372
8427
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
8373
8428
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
8374
8429
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
8375
|
-
readonly
|
|
8376
|
-
readonly
|
|
8430
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
8431
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
8377
8432
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
8378
|
-
readonly
|
|
8433
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
8379
8434
|
}, undefined>, undefined>;
|
|
8380
8435
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
8381
8436
|
}, undefined>;
|
|
@@ -8936,10 +8991,10 @@ export declare const MicroblockBodysAbciResponseSchema: val.ObjectSchema<{
|
|
|
8936
8991
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
8937
8992
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
8938
8993
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
8939
|
-
readonly
|
|
8940
|
-
readonly
|
|
8994
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
8995
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
8941
8996
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
8942
|
-
readonly
|
|
8997
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
8943
8998
|
}, undefined>, undefined>;
|
|
8944
8999
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
8945
9000
|
}, undefined>;
|
|
@@ -9484,10 +9539,10 @@ export declare const MicroblockBodySchema: val.ObjectSchema<{
|
|
|
9484
9539
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
9485
9540
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
9486
9541
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
9487
|
-
readonly
|
|
9488
|
-
readonly
|
|
9542
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
9543
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
9489
9544
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
9490
|
-
readonly
|
|
9545
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
9491
9546
|
}, undefined>, undefined>;
|
|
9492
9547
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
9493
9548
|
}, undefined>;
|
|
@@ -10067,13 +10122,11 @@ export declare const MicroblockHeaderSchema: val.ObjectSchema<{
|
|
|
10067
10122
|
*/
|
|
10068
10123
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10069
10124
|
/**
|
|
10070
|
-
* The
|
|
10071
|
-
*
|
|
10072
|
-
* It is computed as: max_fees = f(mb, vbContext) * gasPrice for some function f (defined by the protocol).
|
|
10125
|
+
* The computed gas for this microblock.
|
|
10073
10126
|
*/
|
|
10074
|
-
readonly
|
|
10127
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10075
10128
|
/**
|
|
10076
|
-
* The gas price is used to convert gas to fees by multiplying it with the gas
|
|
10129
|
+
* The gas price is used to convert gas to fees by multiplying it with the gas.
|
|
10077
10130
|
*/
|
|
10078
10131
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10079
10132
|
/**
|
|
@@ -10136,7 +10189,7 @@ export declare const MicroblockInformationAbciResponseSchema: val.ObjectSchema<{
|
|
|
10136
10189
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10137
10190
|
}, undefined>;
|
|
10138
10191
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10139
|
-
readonly
|
|
10192
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10140
10193
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10141
10194
|
readonly bodyHash: val.InstanceSchema<{
|
|
10142
10195
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10190,7 +10243,7 @@ export declare const MicroblockInformationSchema: val.ObjectSchema<{
|
|
|
10190
10243
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10191
10244
|
}, undefined>;
|
|
10192
10245
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10193
|
-
readonly
|
|
10246
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10194
10247
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10195
10248
|
readonly bodyHash: val.InstanceSchema<{
|
|
10196
10249
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10246,7 +10299,7 @@ export declare const MicroblockStructSchema: val.ObjectSchema<{
|
|
|
10246
10299
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
10247
10300
|
}, undefined>;
|
|
10248
10301
|
readonly timestamp: val.NumberSchema<undefined>;
|
|
10249
|
-
readonly
|
|
10302
|
+
readonly gas: val.NumberSchema<undefined>;
|
|
10250
10303
|
readonly gasPrice: val.NumberSchema<undefined>;
|
|
10251
10304
|
readonly bodyHash: val.InstanceSchema<{
|
|
10252
10305
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
|
|
@@ -10330,10 +10383,10 @@ export declare const MicroblockStructSchema: val.ObjectSchema<{
|
|
|
10330
10383
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
10331
10384
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
10332
10385
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
10333
|
-
readonly
|
|
10334
|
-
readonly
|
|
10386
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
10387
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
10335
10388
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
10336
|
-
readonly
|
|
10389
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
10337
10390
|
}, undefined>, undefined>;
|
|
10338
10391
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
10339
10392
|
}, undefined>;
|
|
@@ -11172,7 +11225,7 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11172
11225
|
height: number;
|
|
11173
11226
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
11174
11227
|
timestamp: number;
|
|
11175
|
-
|
|
11228
|
+
gas: number;
|
|
11176
11229
|
gasPrice: number;
|
|
11177
11230
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
11178
11231
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -11251,6 +11304,8 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11251
11304
|
height: number;
|
|
11252
11305
|
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
11253
11306
|
type: number;
|
|
11307
|
+
publicReference: string;
|
|
11308
|
+
privateReference: string;
|
|
11254
11309
|
timestamp: number;
|
|
11255
11310
|
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
11256
11311
|
amount: number;
|
|
@@ -11660,6 +11715,25 @@ export declare const OnChainItemSchema: val.ObjectSchema<{
|
|
|
11660
11715
|
}, undefined>], undefined>, undefined>;
|
|
11661
11716
|
}, undefined>;
|
|
11662
11717
|
|
|
11718
|
+
export declare class OnChainRecord {
|
|
11719
|
+
private encoder;
|
|
11720
|
+
private channelMap;
|
|
11721
|
+
private publicChannels;
|
|
11722
|
+
constructor();
|
|
11723
|
+
static fromMerkleRecord(merkleRecord: MerkleRecord): OnChainRecord;
|
|
11724
|
+
private logger;
|
|
11725
|
+
private setChannelsFromMerkleRecord;
|
|
11726
|
+
getChannelIds(): number[];
|
|
11727
|
+
getOnChainData(channelId: number, pack?: boolean): {
|
|
11728
|
+
isPublic: boolean;
|
|
11729
|
+
merkleRootHash: Uint8Array<ArrayBufferLike>;
|
|
11730
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
11731
|
+
};
|
|
11732
|
+
addOnChainData(channelId: number, isPublic: boolean, rootHash: Uint8Array, encodedData: Uint8Array): void;
|
|
11733
|
+
toMerkleRecord(checkHashes?: boolean): MerkleRecord;
|
|
11734
|
+
private getChannel;
|
|
11735
|
+
}
|
|
11736
|
+
|
|
11663
11737
|
export declare interface OnMicroblockInsertionEventListener {
|
|
11664
11738
|
onMicroblockInserted(virtualBlockchain: VirtualBlockchain, microblock: Microblock): void | Promise<void>;
|
|
11665
11739
|
}
|
|
@@ -11833,7 +11907,7 @@ export declare abstract class PasswordBasedKeyDerivationFunction {
|
|
|
11833
11907
|
deriveKeyNoSalt(password: string, keyLength: number): Uint8Array;
|
|
11834
11908
|
}
|
|
11835
11909
|
|
|
11836
|
-
declare enum PasswordBasedKeyDerivationFunctionSchemeId {
|
|
11910
|
+
export declare enum PasswordBasedKeyDerivationFunctionSchemeId {
|
|
11837
11911
|
PBKDF2 = 0,
|
|
11838
11912
|
SCRYPT = 1
|
|
11839
11913
|
}
|
|
@@ -12003,30 +12077,6 @@ declare const PositiveInt: val.SchemaWithPipe<readonly [val.NumberSchema<undefin
|
|
|
12003
12077
|
|
|
12004
12078
|
declare type PositiveInt = val.InferOutput<typeof PositiveInt>;
|
|
12005
12079
|
|
|
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
12080
|
export declare type PrimitiveValue = val.InferOutput<typeof PrimitiveValueSchema>;
|
|
12031
12081
|
|
|
12032
12082
|
declare const PrimitiveValueSchema: val.UnionSchema<[val.StringSchema<undefined>, val.NumberSchema<undefined>, val.BooleanSchema<undefined>, val.NullSchema<undefined>], undefined>;
|
|
@@ -12308,6 +12358,30 @@ declare const ProofMicroblockSchema: val.ObjectSchema<{
|
|
|
12308
12358
|
}, undefined>, undefined>;
|
|
12309
12359
|
}, undefined>;
|
|
12310
12360
|
|
|
12361
|
+
export declare class ProofRecord {
|
|
12362
|
+
private channelMap;
|
|
12363
|
+
private fieldMap;
|
|
12364
|
+
private publicChannels;
|
|
12365
|
+
constructor();
|
|
12366
|
+
static fromMerkleRecord(merkleRecord: MerkleRecord): ProofRecord;
|
|
12367
|
+
static fromProofChannels(proofChannels: ProofChannel[]): ProofRecord;
|
|
12368
|
+
private setChannelsFromMerkleRecord;
|
|
12369
|
+
private setChannelsFromProofChannels;
|
|
12370
|
+
toJson(withDisclosureTypes?: boolean): JsonData;
|
|
12371
|
+
private buildTrees;
|
|
12372
|
+
private buildWitnesses;
|
|
12373
|
+
private buildFieldMap;
|
|
12374
|
+
private getLeafByPath;
|
|
12375
|
+
private getFieldByPath;
|
|
12376
|
+
private getChannel;
|
|
12377
|
+
removeField(path: Path): void;
|
|
12378
|
+
setFieldToHashed(path: Path): void;
|
|
12379
|
+
setFieldToMasked(path: Path): void;
|
|
12380
|
+
getRootHashAsBinary(channelId: number): Uint8Array<ArrayBufferLike>;
|
|
12381
|
+
getRootHashAsHexString(channelId: number): string;
|
|
12382
|
+
toProofChannels(): ProofChannel[];
|
|
12383
|
+
}
|
|
12384
|
+
|
|
12311
12385
|
export declare type ProofSignatureCommitment = val.InferOutput<typeof ProofSignatureCommitmentSchema>;
|
|
12312
12386
|
|
|
12313
12387
|
declare const ProofSignatureCommitmentSchema: val.ObjectSchema<{
|
|
@@ -12553,10 +12627,10 @@ export declare class ProtocolInternalState implements IInternalState {
|
|
|
12553
12627
|
maximumNodeStakingAmountInAtomics: number;
|
|
12554
12628
|
unstakingDelayInDays: number;
|
|
12555
12629
|
maxBlockSizeInBytes: number;
|
|
12556
|
-
|
|
12557
|
-
|
|
12630
|
+
retentionPolicy: {
|
|
12631
|
+
retentionRatio: number;
|
|
12558
12632
|
maximumNumberOfDays: number;
|
|
12559
|
-
|
|
12633
|
+
dayDivisor: number;
|
|
12560
12634
|
}[];
|
|
12561
12635
|
abciVersion: number;
|
|
12562
12636
|
};
|
|
@@ -12569,10 +12643,10 @@ export declare class ProtocolInternalState implements IInternalState {
|
|
|
12569
12643
|
getMinimumNodeStakingAmountInAtomics(): number;
|
|
12570
12644
|
getMaximumNodeStakingAmountInAtomics(): number;
|
|
12571
12645
|
getUnstakingDelayInDays(): number;
|
|
12572
|
-
|
|
12573
|
-
|
|
12646
|
+
getRetentionPolicy(): {
|
|
12647
|
+
retentionRatio: number;
|
|
12574
12648
|
maximumNumberOfDays: number;
|
|
12575
|
-
|
|
12649
|
+
dayDivisor: number;
|
|
12576
12650
|
}[];
|
|
12577
12651
|
toObject(): ProtocolVBInternalStateObject;
|
|
12578
12652
|
getFeesCalculationVersion(): number;
|
|
@@ -12613,10 +12687,10 @@ export declare const ProtocolUpdateSchema: val.ObjectSchema<{
|
|
|
12613
12687
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12614
12688
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12615
12689
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12616
|
-
readonly
|
|
12617
|
-
readonly
|
|
12690
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12691
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12618
12692
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12619
|
-
readonly
|
|
12693
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12620
12694
|
}, undefined>, undefined>;
|
|
12621
12695
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12622
12696
|
}, undefined>;
|
|
@@ -12643,10 +12717,10 @@ export declare const ProtocolUpdateSectionSchema: val.ObjectSchema<{
|
|
|
12643
12717
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12644
12718
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12645
12719
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12646
|
-
readonly
|
|
12647
|
-
readonly
|
|
12720
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12721
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12648
12722
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12649
|
-
readonly
|
|
12723
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12650
12724
|
}, undefined>, undefined>;
|
|
12651
12725
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12652
12726
|
}, undefined>;
|
|
@@ -12670,10 +12744,10 @@ export declare const ProtocolVariablesSchema: val.ObjectSchema<{
|
|
|
12670
12744
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12671
12745
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12672
12746
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12673
|
-
readonly
|
|
12674
|
-
readonly
|
|
12747
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12748
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12675
12749
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12676
|
-
readonly
|
|
12750
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12677
12751
|
}, undefined>, undefined>;
|
|
12678
12752
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12679
12753
|
}, undefined>;
|
|
@@ -12709,10 +12783,10 @@ export declare class ProtocolVb extends VirtualBlockchain<ProtocolInternalState>
|
|
|
12709
12783
|
maximumNodeStakingAmountInAtomics: number;
|
|
12710
12784
|
unstakingDelayInDays: number;
|
|
12711
12785
|
maxBlockSizeInBytes: number;
|
|
12712
|
-
|
|
12713
|
-
|
|
12786
|
+
retentionPolicy: {
|
|
12787
|
+
retentionRatio: number;
|
|
12714
12788
|
maximumNumberOfDays: number;
|
|
12715
|
-
|
|
12789
|
+
dayDivisor: number;
|
|
12716
12790
|
}[];
|
|
12717
12791
|
abciVersion: number;
|
|
12718
12792
|
};
|
|
@@ -12735,10 +12809,10 @@ export declare class ProtocolVb extends VirtualBlockchain<ProtocolInternalState>
|
|
|
12735
12809
|
maximumNodeStakingAmountInAtomics: number;
|
|
12736
12810
|
unstakingDelayInDays: number;
|
|
12737
12811
|
maxBlockSizeInBytes: number;
|
|
12738
|
-
|
|
12739
|
-
|
|
12812
|
+
retentionPolicy: {
|
|
12813
|
+
retentionRatio: number;
|
|
12740
12814
|
maximumNumberOfDays: number;
|
|
12741
|
-
|
|
12815
|
+
dayDivisor: number;
|
|
12742
12816
|
}[];
|
|
12743
12817
|
abciVersion: number;
|
|
12744
12818
|
};
|
|
@@ -12779,10 +12853,10 @@ export declare const ProtocolVBInternalStateObjectSchema: val.ObjectSchema<{
|
|
|
12779
12853
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12780
12854
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12781
12855
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12782
|
-
readonly
|
|
12783
|
-
readonly
|
|
12856
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12857
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12784
12858
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12785
|
-
readonly
|
|
12859
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12786
12860
|
}, undefined>, undefined>;
|
|
12787
12861
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12788
12862
|
}, undefined>;
|
|
@@ -12805,10 +12879,10 @@ export declare const ProtocolVBInternalStateObjectSchema: val.ObjectSchema<{
|
|
|
12805
12879
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12806
12880
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12807
12881
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12808
|
-
readonly
|
|
12809
|
-
readonly
|
|
12882
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12883
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12810
12884
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12811
|
-
readonly
|
|
12885
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12812
12886
|
}, undefined>, undefined>;
|
|
12813
12887
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12814
12888
|
}, undefined>;
|
|
@@ -12844,10 +12918,10 @@ export declare const ProtocolVirtualBlockchainStateSchema: val.ObjectSchema<{
|
|
|
12844
12918
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12845
12919
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12846
12920
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12847
|
-
readonly
|
|
12848
|
-
readonly
|
|
12921
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12922
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12849
12923
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12850
|
-
readonly
|
|
12924
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12851
12925
|
}, undefined>, undefined>;
|
|
12852
12926
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12853
12927
|
}, undefined>;
|
|
@@ -12870,10 +12944,10 @@ export declare const ProtocolVirtualBlockchainStateSchema: val.ObjectSchema<{
|
|
|
12870
12944
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
12871
12945
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
12872
12946
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
12873
|
-
readonly
|
|
12874
|
-
readonly
|
|
12947
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
12948
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
12875
12949
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
12876
|
-
readonly
|
|
12950
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
12877
12951
|
}, undefined>, undefined>;
|
|
12878
12952
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
12879
12953
|
}, undefined>;
|
|
@@ -12916,7 +12990,7 @@ export declare class Provider extends AbstractProvider {
|
|
|
12916
12990
|
height: number;
|
|
12917
12991
|
previousHash: Uint8Array<ArrayBufferLike>;
|
|
12918
12992
|
timestamp: number;
|
|
12919
|
-
|
|
12993
|
+
gas: number;
|
|
12920
12994
|
gasPrice: number;
|
|
12921
12995
|
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
12922
12996
|
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
@@ -12978,10 +13052,10 @@ export declare class Provider extends AbstractProvider {
|
|
|
12978
13052
|
maximumNodeStakingAmountInAtomics: number;
|
|
12979
13053
|
unstakingDelayInDays: number;
|
|
12980
13054
|
maxBlockSizeInBytes: number;
|
|
12981
|
-
|
|
12982
|
-
|
|
13055
|
+
retentionPolicy: {
|
|
13056
|
+
retentionRatio: number;
|
|
12983
13057
|
maximumNumberOfDays: number;
|
|
12984
|
-
|
|
13058
|
+
dayDivisor: number;
|
|
12985
13059
|
}[];
|
|
12986
13060
|
abciVersion: number;
|
|
12987
13061
|
};
|
|
@@ -13190,6 +13264,13 @@ export declare interface PublicEncryptionKey {
|
|
|
13190
13264
|
export declare interface PublicEncryptionKeyEncoderInterface extends EncoderInterface<AbstractPublicEncryptionKey, string> {
|
|
13191
13265
|
}
|
|
13192
13266
|
|
|
13267
|
+
/**
|
|
13268
|
+
* @deprecated Will be removed soon!
|
|
13269
|
+
*/
|
|
13270
|
+
export declare enum PublicKeyEncryptionAlgorithmId {
|
|
13271
|
+
ML_KEM_768_AES_256_GCM = 0
|
|
13272
|
+
}
|
|
13273
|
+
|
|
13193
13274
|
export declare interface PublicKeyEncryptionScheme {
|
|
13194
13275
|
/**
|
|
13195
13276
|
* Returns the identifier of the scheme.
|
|
@@ -13197,7 +13278,7 @@ export declare interface PublicKeyEncryptionScheme {
|
|
|
13197
13278
|
getSchemeId(): PublicKeyEncryptionSchemeId;
|
|
13198
13279
|
}
|
|
13199
13280
|
|
|
13200
|
-
declare enum PublicKeyEncryptionSchemeId {
|
|
13281
|
+
export declare enum PublicKeyEncryptionSchemeId {
|
|
13201
13282
|
ML_KEM_768_AES_256_GCM = 0
|
|
13202
13283
|
}
|
|
13203
13284
|
|
|
@@ -13340,6 +13421,7 @@ declare class Record_2 {
|
|
|
13340
13421
|
private buildArrayItem;
|
|
13341
13422
|
private buildObjectItem;
|
|
13342
13423
|
}
|
|
13424
|
+
export { Record_2 as Record }
|
|
13343
13425
|
|
|
13344
13426
|
export declare const RECORD_DESCRIPTION: Schema;
|
|
13345
13427
|
|
|
@@ -13434,6 +13516,38 @@ export declare const RequestedAccountUpdateSchema: val.ObjectSchema<{
|
|
|
13434
13516
|
}, undefined>;
|
|
13435
13517
|
}, undefined>;
|
|
13436
13518
|
|
|
13519
|
+
export declare type RetentionCostBreakdown = val.InferOutput<typeof RetentionCostBreakdownSchema>;
|
|
13520
|
+
|
|
13521
|
+
export declare const RetentionCostBreakdownSchema: val.ObjectSchema<{
|
|
13522
|
+
readonly numberOfDays: val.NumberSchema<undefined>;
|
|
13523
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13524
|
+
readonly costInGasAtoms: val.NumberSchema<undefined>;
|
|
13525
|
+
}, undefined>;
|
|
13526
|
+
|
|
13527
|
+
export declare class RetentionCostCalculator {
|
|
13528
|
+
private readonly retentionPolicy;
|
|
13529
|
+
constructor(retentionPolicy: RetentionPolicy);
|
|
13530
|
+
getNumberOfDaysOfStorage(blockTimestamp: number, expirationDay: number): number;
|
|
13531
|
+
getStorageCost(baseCostInGasAtoms: number, numberOfDays: number): number;
|
|
13532
|
+
getBreakdown(baseCostInGasAtoms: number, numberOfDays: number): RetentionCostBreakdown[];
|
|
13533
|
+
}
|
|
13534
|
+
|
|
13535
|
+
export declare type RetentionPolicy = val.InferOutput<typeof RetentionPolicySchema>;
|
|
13536
|
+
|
|
13537
|
+
export declare const RetentionPolicySchema: val.ArraySchema<val.ObjectSchema<{
|
|
13538
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13539
|
+
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13540
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13541
|
+
}, undefined>, undefined>;
|
|
13542
|
+
|
|
13543
|
+
export declare type RetentionTier = val.InferOutput<typeof RetentionTierSchema>;
|
|
13544
|
+
|
|
13545
|
+
export declare const RetentionTierSchema: val.ObjectSchema<{
|
|
13546
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13547
|
+
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13548
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13549
|
+
}, undefined>;
|
|
13550
|
+
|
|
13437
13551
|
export declare const RPCNodeStatusResponseSchema: val.ObjectSchema<{
|
|
13438
13552
|
readonly jsonrpc: val.LiteralSchema<"2.0", undefined>;
|
|
13439
13553
|
readonly id: val.NumberSchema<undefined>;
|
|
@@ -13914,10 +14028,10 @@ export declare const SectionSchema: val.VariantSchema<"type", [val.ObjectSchema<
|
|
|
13914
14028
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
13915
14029
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
13916
14030
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
13917
|
-
readonly
|
|
13918
|
-
readonly
|
|
14031
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
14032
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
13919
14033
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
13920
|
-
readonly
|
|
14034
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
13921
14035
|
}, undefined>, undefined>;
|
|
13922
14036
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
13923
14037
|
}, undefined>;
|
|
@@ -14490,6 +14604,21 @@ export declare const SIGNATURE_SCHEMA: {
|
|
|
14490
14604
|
}[];
|
|
14491
14605
|
};
|
|
14492
14606
|
|
|
14607
|
+
/**
|
|
14608
|
+
* @deprecated Will be removed soon!
|
|
14609
|
+
*/
|
|
14610
|
+
export declare enum SignatureAlgorithmId {
|
|
14611
|
+
SECP256K1 = 0,
|
|
14612
|
+
ML_DSA_65 = 1
|
|
14613
|
+
}
|
|
14614
|
+
|
|
14615
|
+
export declare class SignatureCacheDisabled implements SignatureCacheInterface {
|
|
14616
|
+
constructor();
|
|
14617
|
+
has(entry: SignatureCacheEntry): Promise<boolean>;
|
|
14618
|
+
get(entry: SignatureCacheEntry): Promise<boolean>;
|
|
14619
|
+
set(entry: SignatureCacheEntry, result: boolean): Promise<void>;
|
|
14620
|
+
}
|
|
14621
|
+
|
|
14493
14622
|
export declare class SignatureCacheEntry {
|
|
14494
14623
|
private key;
|
|
14495
14624
|
constructor(signatureAlgorithm: number, publicKeyString: string, messageHashString: string);
|
|
@@ -14502,6 +14631,14 @@ export declare interface SignatureCacheInterface {
|
|
|
14502
14631
|
set(entry: SignatureCacheEntry, result: boolean): void;
|
|
14503
14632
|
}
|
|
14504
14633
|
|
|
14634
|
+
export declare class SignatureCacheMonothread implements SignatureCacheInterface {
|
|
14635
|
+
private map;
|
|
14636
|
+
constructor();
|
|
14637
|
+
has(entry: SignatureCacheEntry): Promise<boolean>;
|
|
14638
|
+
get(entry: SignatureCacheEntry): Promise<boolean | undefined>;
|
|
14639
|
+
set(entry: SignatureCacheEntry, result: boolean): Promise<void>;
|
|
14640
|
+
}
|
|
14641
|
+
|
|
14505
14642
|
/**
|
|
14506
14643
|
* An interface for encoding and decoding cryptographic signature keys and signatures.
|
|
14507
14644
|
*
|
|
@@ -14588,7 +14725,7 @@ export declare interface SignatureScheme {
|
|
|
14588
14725
|
* - ML_DSA_65: Represents the ML-DSA-65 signature algorithm.
|
|
14589
14726
|
* - PKMS_SECP256K1: Represents the P(roxy)KMS-based SECP256K1 signature algorithm.
|
|
14590
14727
|
*/
|
|
14591
|
-
declare enum SignatureSchemeId {
|
|
14728
|
+
export declare enum SignatureSchemeId {
|
|
14592
14729
|
SECP256K1 = 0,
|
|
14593
14730
|
ML_DSA_65 = 1,
|
|
14594
14731
|
PKMS_SECP256K1 = 2,
|
|
@@ -14614,14 +14751,6 @@ export declare const SignatureSectionSchema: val.ObjectSchema<{
|
|
|
14614
14751
|
}>]>;
|
|
14615
14752
|
}, undefined>;
|
|
14616
14753
|
|
|
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
14754
|
export declare const STRING = 2;
|
|
14626
14755
|
|
|
14627
14756
|
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 +14819,7 @@ export declare class StructureChecker {
|
|
|
14690
14819
|
* @return void
|
|
14691
14820
|
* @throws An error if the count of sections does not meet the specified constraint.
|
|
14692
14821
|
*/
|
|
14693
|
-
expects(constraint: SectionConstraint, type: SectionType):
|
|
14822
|
+
expects(constraint: SectionConstraint, type: SectionType): number;
|
|
14694
14823
|
/**
|
|
14695
14824
|
* Groups elements based on the provided group constraint and a list of type constraints.
|
|
14696
14825
|
*
|
|
@@ -14745,10 +14874,10 @@ export declare class StructureChecker {
|
|
|
14745
14874
|
maximumNodeStakingAmountInAtomics: number;
|
|
14746
14875
|
unstakingDelayInDays: number;
|
|
14747
14876
|
maxBlockSizeInBytes: number;
|
|
14748
|
-
|
|
14749
|
-
|
|
14877
|
+
retentionPolicy: {
|
|
14878
|
+
retentionRatio: number;
|
|
14750
14879
|
maximumNumberOfDays: number;
|
|
14751
|
-
|
|
14880
|
+
dayDivisor: number;
|
|
14752
14881
|
}[];
|
|
14753
14882
|
abciVersion: number;
|
|
14754
14883
|
};
|
|
@@ -16019,10 +16148,10 @@ export declare const VirtualBlockchainStateSchema: val.VariantSchema<"type", [va
|
|
|
16019
16148
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16020
16149
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16021
16150
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16022
|
-
readonly
|
|
16023
|
-
readonly
|
|
16151
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16152
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16024
16153
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16025
|
-
readonly
|
|
16154
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16026
16155
|
}, undefined>, undefined>;
|
|
16027
16156
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16028
16157
|
}, undefined>;
|
|
@@ -16045,10 +16174,10 @@ export declare const VirtualBlockchainStateSchema: val.VariantSchema<"type", [va
|
|
|
16045
16174
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16046
16175
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16047
16176
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16048
|
-
readonly
|
|
16049
|
-
readonly
|
|
16177
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16178
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16050
16179
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16051
|
-
readonly
|
|
16180
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16052
16181
|
}, undefined>, undefined>;
|
|
16053
16182
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16054
16183
|
}, undefined>;
|
|
@@ -16309,10 +16438,10 @@ export declare const VirtualBlockchainStatusSchema: val.ObjectSchema<{
|
|
|
16309
16438
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16310
16439
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16311
16440
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16312
|
-
readonly
|
|
16313
|
-
readonly
|
|
16441
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16442
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16314
16443
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16315
|
-
readonly
|
|
16444
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16316
16445
|
}, undefined>, undefined>;
|
|
16317
16446
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16318
16447
|
}, undefined>;
|
|
@@ -16335,10 +16464,10 @@ export declare const VirtualBlockchainStatusSchema: val.ObjectSchema<{
|
|
|
16335
16464
|
readonly maximumNodeStakingAmountInAtomics: val.NumberSchema<undefined>;
|
|
16336
16465
|
readonly unstakingDelayInDays: val.NumberSchema<undefined>;
|
|
16337
16466
|
readonly maxBlockSizeInBytes: val.NumberSchema<undefined>;
|
|
16338
|
-
readonly
|
|
16339
|
-
readonly
|
|
16467
|
+
readonly retentionPolicy: val.ArraySchema<val.ObjectSchema<{
|
|
16468
|
+
readonly retentionRatio: val.NumberSchema<undefined>;
|
|
16340
16469
|
readonly maximumNumberOfDays: val.NumberSchema<undefined>;
|
|
16341
|
-
readonly
|
|
16470
|
+
readonly dayDivisor: val.NumberSchema<undefined>;
|
|
16342
16471
|
}, undefined>, undefined>;
|
|
16343
16472
|
readonly abciVersion: val.NumberSchema<undefined>;
|
|
16344
16473
|
}, undefined>;
|