@cmts-dev/carmentis-sdk-core 1.2.1 → 1.2.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.
|
@@ -5,455 +5,10 @@ import { PrivKey } from '@noble/secp256k1';
|
|
|
5
5
|
import * as val from 'valibot';
|
|
6
6
|
|
|
7
7
|
export declare class AbciQueryEncoder {
|
|
8
|
-
static encodeAbciRequest(request: AbciRequest):
|
|
9
|
-
static decodeAbciRequest(request: Uint8Array):
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
requestType: import("../common").AbciRequestType.GET_BLOCK_INFORMATION;
|
|
13
|
-
height: number;
|
|
14
|
-
} | {
|
|
15
|
-
requestType: import("../common").AbciRequestType.GET_BLOCK_CONTENT;
|
|
16
|
-
height: number;
|
|
17
|
-
} | {
|
|
18
|
-
requestType: import("../common").AbciRequestType.GET_VIRTUAL_BLOCKCHAIN_STATE;
|
|
19
|
-
virtualBlockchainId: Uint8Array<ArrayBufferLike>;
|
|
20
|
-
} | {
|
|
21
|
-
requestType: import("../common").AbciRequestType.GET_VIRTUAL_BLOCKCHAIN_UPDATE;
|
|
22
|
-
virtualBlockchainId: Uint8Array<ArrayBufferLike>;
|
|
23
|
-
knownHeight: number;
|
|
24
|
-
} | {
|
|
25
|
-
requestType: import("../common").AbciRequestType.GET_MICROBLOCK_INFORMATION;
|
|
26
|
-
hash: Uint8Array<ArrayBufferLike>;
|
|
27
|
-
} | {
|
|
28
|
-
requestType: import("../common").AbciRequestType.AWAIT_MICROBLOCK_ANCHORING;
|
|
29
|
-
hash: Uint8Array<ArrayBufferLike>;
|
|
30
|
-
} | {
|
|
31
|
-
requestType: import("../common").AbciRequestType.GET_MICROBLOCK_BODYS;
|
|
32
|
-
hashes: Uint8Array<ArrayBufferLike>[];
|
|
33
|
-
} | {
|
|
34
|
-
requestType: import("../common").AbciRequestType.GET_ACCOUNT_STATE;
|
|
35
|
-
accountHash: Uint8Array<ArrayBufferLike>;
|
|
36
|
-
} | {
|
|
37
|
-
requestType: import("../common").AbciRequestType.GET_ACCOUNT_HISTORY;
|
|
38
|
-
accountHash: Uint8Array<ArrayBufferLike>;
|
|
39
|
-
lastHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
40
|
-
maxRecords: number;
|
|
41
|
-
} | {
|
|
42
|
-
requestType: import("../common").AbciRequestType.GET_ACCOUNT_BY_PUBLIC_KEY_HASH;
|
|
43
|
-
publicKeyHash: Uint8Array<ArrayBufferLike>;
|
|
44
|
-
} | {
|
|
45
|
-
requestType: import("../common").AbciRequestType.GET_VALIDATOR_NODE_BY_ADDRESS;
|
|
46
|
-
address: Uint8Array<ArrayBufferLike>;
|
|
47
|
-
} | {
|
|
48
|
-
requestType: import("../common").AbciRequestType.GET_OBJECT_LIST;
|
|
49
|
-
type: number;
|
|
50
|
-
} | {
|
|
51
|
-
requestType: import("../common").AbciRequestType.GET_GENESIS_SNAPSHOT;
|
|
52
|
-
} | {
|
|
53
|
-
requestType: import("../common").AbciRequestType.GET_RAW_BLOCK_CONTENT;
|
|
54
|
-
height: number;
|
|
55
|
-
partIndex: number;
|
|
56
|
-
} | {
|
|
57
|
-
requestType: import("../common").AbciRequestType.GET_BLOCK_MODIFIED_ACCOUNTS;
|
|
58
|
-
height: number;
|
|
59
|
-
} | {
|
|
60
|
-
requestType: import("../common").AbciRequestType.GET_ACCOUNT_UPDATES;
|
|
61
|
-
list: {
|
|
62
|
-
accountHash: Uint8Array<ArrayBufferLike>;
|
|
63
|
-
lastKnownHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
64
|
-
}[];
|
|
65
|
-
};
|
|
66
|
-
static encodeAbciResponse(response: AbciResponse): Buffer<ArrayBufferLike>;
|
|
67
|
-
static decodeAbciResponse(response: Uint8Array): {
|
|
68
|
-
responseType: import("../common").AbciResponseType.ERROR;
|
|
69
|
-
error: string;
|
|
70
|
-
} | {
|
|
71
|
-
responseType: import("../common").AbciResponseType.CHAIN_INFORMATION;
|
|
72
|
-
height: number;
|
|
73
|
-
lastBlockTimestamp: number;
|
|
74
|
-
microblockCount: number;
|
|
75
|
-
objectCounts: number[];
|
|
76
|
-
} | {
|
|
77
|
-
responseType: import("../common").AbciResponseType.BLOCK_INFORMATION;
|
|
78
|
-
hash: Uint8Array<ArrayBufferLike>;
|
|
79
|
-
timestamp: number;
|
|
80
|
-
proposerAddress: Uint8Array<ArrayBufferLike>;
|
|
81
|
-
size: number;
|
|
82
|
-
microblockCount: number;
|
|
83
|
-
} | {
|
|
84
|
-
responseType: import("../common").AbciResponseType.BLOCK_CONTENT;
|
|
85
|
-
microblocks: {
|
|
86
|
-
hash: Uint8Array<ArrayBufferLike>;
|
|
87
|
-
vbId: Uint8Array<ArrayBufferLike>;
|
|
88
|
-
vbType: number;
|
|
89
|
-
height: number;
|
|
90
|
-
size: number;
|
|
91
|
-
sectionCount: number;
|
|
92
|
-
}[];
|
|
93
|
-
} | {
|
|
94
|
-
responseType: import("../common").AbciResponseType.RAW_BLOCK_CONTENT;
|
|
95
|
-
partIndex: number;
|
|
96
|
-
numberOfParts: number;
|
|
97
|
-
serializedMicroblocks: Uint8Array<ArrayBufferLike>[];
|
|
98
|
-
} | {
|
|
99
|
-
responseType: import("../common").AbciResponseType.VIRTUAL_BLOCKCHAIN_STATE;
|
|
100
|
-
serializedVirtualBlockchainState: Uint8Array<ArrayBufferLike>;
|
|
101
|
-
} | {
|
|
102
|
-
responseType: import("../common").AbciResponseType.VIRTUAL_BLOCKCHAIN_UPDATE;
|
|
103
|
-
exists: boolean;
|
|
104
|
-
changed: boolean;
|
|
105
|
-
serializedVirtualBlockchainState: Uint8Array<ArrayBufferLike>;
|
|
106
|
-
serializedHeaders: Uint8Array<ArrayBufferLike>[];
|
|
107
|
-
} | {
|
|
108
|
-
virtualBlockchainId: Uint8Array<ArrayBufferLike>;
|
|
109
|
-
virtualBlockchainType: number;
|
|
110
|
-
header: {
|
|
111
|
-
magicString: "CMTS";
|
|
112
|
-
protocolVersion: number;
|
|
113
|
-
microblockType: number;
|
|
114
|
-
height: number;
|
|
115
|
-
previousHash: Uint8Array<ArrayBufferLike>;
|
|
116
|
-
timestamp: number;
|
|
117
|
-
gas: number;
|
|
118
|
-
gasPrice: number;
|
|
119
|
-
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
120
|
-
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
121
|
-
};
|
|
122
|
-
responseType: import("../common").AbciResponseType.MICROBLOCK_INFORMATION;
|
|
123
|
-
} | {
|
|
124
|
-
virtualBlockchainId: Uint8Array<ArrayBufferLike>;
|
|
125
|
-
virtualBlockchainType: number;
|
|
126
|
-
header: {
|
|
127
|
-
magicString: "CMTS";
|
|
128
|
-
protocolVersion: number;
|
|
129
|
-
microblockType: number;
|
|
130
|
-
height: number;
|
|
131
|
-
previousHash: Uint8Array<ArrayBufferLike>;
|
|
132
|
-
timestamp: number;
|
|
133
|
-
gas: number;
|
|
134
|
-
gasPrice: number;
|
|
135
|
-
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
136
|
-
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
137
|
-
};
|
|
138
|
-
responseType: import("../common").AbciResponseType.MICROBLOCK_ANCHORING;
|
|
139
|
-
} | {
|
|
140
|
-
responseType: import("../common").AbciResponseType.MICROBLOCK_BODYS;
|
|
141
|
-
list: {
|
|
142
|
-
microblockHash: Uint8Array<ArrayBufferLike>;
|
|
143
|
-
microblockBody: {
|
|
144
|
-
sections: (({
|
|
145
|
-
type: import("../common").SectionType.CUSTOM;
|
|
146
|
-
} & {
|
|
147
|
-
[key: string]: unknown;
|
|
148
|
-
}) | {
|
|
149
|
-
type: import("../common").SectionType.SIGNATURE;
|
|
150
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
151
|
-
schemeId: number;
|
|
152
|
-
} | {
|
|
153
|
-
type: import("../common").SectionType.AUXILIARY_SIGNATURE;
|
|
154
|
-
tag: string;
|
|
155
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
156
|
-
schemeId: number;
|
|
157
|
-
} | {
|
|
158
|
-
type: import("../common").SectionType.ALLOWED_ADDITIONAL_WRITER;
|
|
159
|
-
allowedWriterAccountId: Uint8Array<ArrayBufferLike>;
|
|
160
|
-
} | {
|
|
161
|
-
type: import("../common").SectionType.PROTOCOL_CREATION;
|
|
162
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
163
|
-
} | {
|
|
164
|
-
protocolVersion: number;
|
|
165
|
-
protocolVersionName: string;
|
|
166
|
-
changeLog: string;
|
|
167
|
-
protocolVariables: {
|
|
168
|
-
protocolVersionName: string;
|
|
169
|
-
protocolVersion: number;
|
|
170
|
-
feesCalculationVersion: number;
|
|
171
|
-
globalStateUpdaterVersion: number;
|
|
172
|
-
applicationLedgerInternalStateUpdaterVersion: number;
|
|
173
|
-
applicationInternalStateUpdaterVersion: number;
|
|
174
|
-
organizationInternalStateUpdaterVersion: number;
|
|
175
|
-
validatorNodeInternalStateUpdaterVersion: number;
|
|
176
|
-
accountInternalStateUpdaterVersion: number;
|
|
177
|
-
protocolInternalStateUpdaterVersion: number;
|
|
178
|
-
minimumNodeStakingAmountInAtomics: number;
|
|
179
|
-
maximumNodeStakingAmountInAtomics: number;
|
|
180
|
-
unstakingDelayInDays: number;
|
|
181
|
-
maxBlockSizeInBytes: number;
|
|
182
|
-
retentionPolicy: {
|
|
183
|
-
retentionRatio: number;
|
|
184
|
-
maximumNumberOfDays: number;
|
|
185
|
-
dayDivisor: number;
|
|
186
|
-
}[];
|
|
187
|
-
abciVersion: number;
|
|
188
|
-
};
|
|
189
|
-
type: import("../common").SectionType.PROTOCOL_UPDATE;
|
|
190
|
-
} | {
|
|
191
|
-
type: import("../common").SectionType.PROTOCOL_VARIABLES;
|
|
192
|
-
protocolVariables: any;
|
|
193
|
-
} | {
|
|
194
|
-
type: import("../common").SectionType.ACCOUNT_PUBLIC_KEY;
|
|
195
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
196
|
-
schemeId: number;
|
|
197
|
-
} | {
|
|
198
|
-
type: import("../common").SectionType.ACCOUNT_TOKEN_ISSUANCE;
|
|
199
|
-
amount: number;
|
|
200
|
-
} | {
|
|
201
|
-
type: import("../common").SectionType.ACCOUNT_CREATION;
|
|
202
|
-
sellerAccount: Uint8Array<ArrayBufferLike>;
|
|
203
|
-
amount: number;
|
|
204
|
-
} | {
|
|
205
|
-
type: import("../common").SectionType.ACCOUNT_TRANSFER;
|
|
206
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
207
|
-
amount: number;
|
|
208
|
-
publicReference: string;
|
|
209
|
-
privateReference: string;
|
|
210
|
-
} | {
|
|
211
|
-
type: import("../common").SectionType.ACCOUNT_VESTING_TRANSFER;
|
|
212
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
213
|
-
amount: number;
|
|
214
|
-
publicReference: string;
|
|
215
|
-
privateReference: string;
|
|
216
|
-
cliffDurationDays: number;
|
|
217
|
-
vestingDurationDays: number;
|
|
218
|
-
} | {
|
|
219
|
-
type: import("../common").SectionType.ACCOUNT_ESCROW_TRANSFER;
|
|
220
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
221
|
-
amount: number;
|
|
222
|
-
publicReference: string;
|
|
223
|
-
privateReference: string;
|
|
224
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
225
|
-
agentAccount: Uint8Array<ArrayBufferLike>;
|
|
226
|
-
durationDays: number;
|
|
227
|
-
} | {
|
|
228
|
-
type: import("../common").SectionType.ACCOUNT_ESCROW_SETTLEMENT;
|
|
229
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
230
|
-
confirmed: boolean;
|
|
231
|
-
} | {
|
|
232
|
-
type: import("../common").SectionType.ACCOUNT_STAKE;
|
|
233
|
-
amount: number;
|
|
234
|
-
objectType: number;
|
|
235
|
-
objectIdentifier: Uint8Array<ArrayBufferLike>;
|
|
236
|
-
} | {
|
|
237
|
-
type: import("../common").SectionType.ACCOUNT_UNSTAKE;
|
|
238
|
-
amount: number;
|
|
239
|
-
objectType: number;
|
|
240
|
-
objectIdentifier: Uint8Array<ArrayBufferLike>;
|
|
241
|
-
} | {
|
|
242
|
-
type: import("../common").SectionType.VN_CREATION;
|
|
243
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
244
|
-
} | {
|
|
245
|
-
type: import("../common").SectionType.VN_COMETBFT_PUBLIC_KEY_DECLARATION;
|
|
246
|
-
cometPublicKeyType: string;
|
|
247
|
-
cometPublicKey: string;
|
|
248
|
-
} | {
|
|
249
|
-
type: import("../common").SectionType.VN_RPC_ENDPOINT;
|
|
250
|
-
rpcEndpoint: string;
|
|
251
|
-
} | {
|
|
252
|
-
type: import("../common").SectionType.VN_APPROVAL;
|
|
253
|
-
status: boolean;
|
|
254
|
-
} | {
|
|
255
|
-
type: import("../common").SectionType.VN_SLASHING_CANCELLATION;
|
|
256
|
-
reason: string;
|
|
257
|
-
} | {
|
|
258
|
-
type: import("../common").SectionType.ORG_CREATION;
|
|
259
|
-
accountId: Uint8Array<ArrayBufferLike>;
|
|
260
|
-
} | {
|
|
261
|
-
type: import("../common").SectionType.ORG_DESCRIPTION;
|
|
262
|
-
name: string;
|
|
263
|
-
city: string;
|
|
264
|
-
countryCode: string;
|
|
265
|
-
website: string;
|
|
266
|
-
misc?: {
|
|
267
|
-
[x: string]: string;
|
|
268
|
-
} | undefined;
|
|
269
|
-
} | {
|
|
270
|
-
type: import("../common").SectionType.APP_CREATION;
|
|
271
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
272
|
-
} | {
|
|
273
|
-
type: import("../common").SectionType.APP_DESCRIPTION;
|
|
274
|
-
name: string;
|
|
275
|
-
logoUrl: string;
|
|
276
|
-
homepageUrl: string;
|
|
277
|
-
description: string;
|
|
278
|
-
misc?: {
|
|
279
|
-
[x: string]: string;
|
|
280
|
-
} | undefined;
|
|
281
|
-
} | {
|
|
282
|
-
type: import("../common").SectionType.APP_LEDGER_ALLOWED_SIG_SCHEMES;
|
|
283
|
-
schemeIds: number[];
|
|
284
|
-
} | {
|
|
285
|
-
type: import("../common").SectionType.APP_LEDGER_ALLOWED_PKE_SCHEMES;
|
|
286
|
-
schemeIds: number[];
|
|
287
|
-
} | {
|
|
288
|
-
type: import("../common").SectionType.APP_LEDGER_CREATION;
|
|
289
|
-
applicationId: Uint8Array<ArrayBufferLike>;
|
|
290
|
-
} | {
|
|
291
|
-
type: import("../common").SectionType.APP_LEDGER_ACTOR_CREATION;
|
|
292
|
-
id: number;
|
|
293
|
-
actorType: number;
|
|
294
|
-
name: string;
|
|
295
|
-
} | {
|
|
296
|
-
type: import("../common").SectionType.APP_LEDGER_CHANNEL_CREATION;
|
|
297
|
-
id: number;
|
|
298
|
-
isPrivate: boolean;
|
|
299
|
-
creatorId: number;
|
|
300
|
-
name: string;
|
|
301
|
-
} | {
|
|
302
|
-
type: import("../common").SectionType.APP_LEDGER_SHARED_SECRET;
|
|
303
|
-
hostId: number;
|
|
304
|
-
guestId: number;
|
|
305
|
-
encryptedSharedKey: Uint8Array<ArrayBufferLike>;
|
|
306
|
-
} | {
|
|
307
|
-
type: import("../common").SectionType.APP_LEDGER_CHANNEL_INVITATION;
|
|
308
|
-
channelId: number;
|
|
309
|
-
hostId: number;
|
|
310
|
-
guestId: number;
|
|
311
|
-
encryptedChannelKey: Uint8Array<ArrayBufferLike>;
|
|
312
|
-
} | {
|
|
313
|
-
type: import("../common").SectionType.APP_LEDGER_ACTOR_SUBSCRIPTION;
|
|
314
|
-
actorId: number;
|
|
315
|
-
actorType: number;
|
|
316
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
317
|
-
signatureSchemeId: number;
|
|
318
|
-
signaturePublicKey: Uint8Array<ArrayBufferLike>;
|
|
319
|
-
pkeSchemeId: number;
|
|
320
|
-
pkePublicKey: Uint8Array<ArrayBufferLike>;
|
|
321
|
-
} | {
|
|
322
|
-
type: import("../common").SectionType.APP_LEDGER_PUBLIC_CHANNEL_DATA;
|
|
323
|
-
channelId: number;
|
|
324
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
325
|
-
} | {
|
|
326
|
-
type: import("../common").SectionType.APP_LEDGER_PRIVATE_CHANNEL_DATA;
|
|
327
|
-
channelId: number;
|
|
328
|
-
merkleRootHash: Uint8Array<ArrayBufferLike>;
|
|
329
|
-
encryptedData: Uint8Array<ArrayBufferLike>;
|
|
330
|
-
} | {
|
|
331
|
-
type: import("../common").SectionType.APP_LEDGER_AUTHOR;
|
|
332
|
-
authorId: number;
|
|
333
|
-
} | {
|
|
334
|
-
type: import("../common").SectionType.APP_LEDGER_ENDORSEMENT_REQUEST;
|
|
335
|
-
endorserId: number;
|
|
336
|
-
message: string;
|
|
337
|
-
})[];
|
|
338
|
-
};
|
|
339
|
-
}[];
|
|
340
|
-
} | {
|
|
341
|
-
responseType: import("../common").AbciResponseType.ACCOUNT_STATE;
|
|
342
|
-
height: number;
|
|
343
|
-
balance: number;
|
|
344
|
-
lastHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
345
|
-
locks: ({
|
|
346
|
-
type: import("../common").LockType.Escrow;
|
|
347
|
-
lockedAmountInAtomics: number;
|
|
348
|
-
parameters: {
|
|
349
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
350
|
-
fundEmitterAccountId: Uint8Array<ArrayBufferLike>;
|
|
351
|
-
transferAuthorizerAccountId: Uint8Array<ArrayBufferLike>;
|
|
352
|
-
startTimestamp: number;
|
|
353
|
-
durationDays: number;
|
|
354
|
-
};
|
|
355
|
-
} | {
|
|
356
|
-
type: import("../common").LockType.Vesting;
|
|
357
|
-
lockedAmountInAtomics: number;
|
|
358
|
-
parameters: {
|
|
359
|
-
initialVestedAmountInAtomics: number;
|
|
360
|
-
cliffStartTimestamp: number;
|
|
361
|
-
cliffDurationDays: number;
|
|
362
|
-
vestingDurationDays: number;
|
|
363
|
-
};
|
|
364
|
-
} | {
|
|
365
|
-
type: import("../common").LockType.NodeStaking;
|
|
366
|
-
lockedAmountInAtomics: number;
|
|
367
|
-
parameters: {
|
|
368
|
-
validatorNodeId: Uint8Array<ArrayBufferLike>;
|
|
369
|
-
plannedUnlockAmountInAtomics: number;
|
|
370
|
-
plannedUnlockTimestamp: number;
|
|
371
|
-
slashed: boolean;
|
|
372
|
-
plannedSlashingAmountInAtomics: number;
|
|
373
|
-
plannedSlashingTimestamp: number;
|
|
374
|
-
};
|
|
375
|
-
})[];
|
|
376
|
-
} | {
|
|
377
|
-
responseType: import("../common").AbciResponseType.ACCOUNT_HISTORY;
|
|
378
|
-
list: {
|
|
379
|
-
height: number;
|
|
380
|
-
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
381
|
-
type: number;
|
|
382
|
-
publicReference: string;
|
|
383
|
-
privateReference: string;
|
|
384
|
-
timestamp: number;
|
|
385
|
-
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
386
|
-
amount: number;
|
|
387
|
-
chainReference: Uint8Array<ArrayBufferLike>;
|
|
388
|
-
}[];
|
|
389
|
-
} | {
|
|
390
|
-
responseType: import("../common").AbciResponseType.ACCOUNT_BY_PUBLIC_KEY_HASH;
|
|
391
|
-
accountHash: Uint8Array<ArrayBufferLike>;
|
|
392
|
-
} | {
|
|
393
|
-
responseType: import("../common").AbciResponseType.VALIDATOR_NODE_BY_ADDRESS;
|
|
394
|
-
validatorNodeHash: Uint8Array<ArrayBufferLike>;
|
|
395
|
-
} | {
|
|
396
|
-
responseType: import("../common").AbciResponseType.OBJECT_LIST;
|
|
397
|
-
list: Uint8Array<ArrayBufferLike>[];
|
|
398
|
-
} | {
|
|
399
|
-
responseType: import("../common").AbciResponseType.GENESIS_SNAPSHOT;
|
|
400
|
-
base64EncodedChunks: string[];
|
|
401
|
-
} | {
|
|
402
|
-
responseType: import("../common").AbciResponseType.BLOCK_MODIFIED_ACCOUNTS;
|
|
403
|
-
modifiedAccounts: Uint8Array<ArrayBufferLike>[];
|
|
404
|
-
} | {
|
|
405
|
-
responseType: import("../common").AbciResponseType.ACCOUNT_UPDATES;
|
|
406
|
-
list: {
|
|
407
|
-
accountHash: Uint8Array<ArrayBufferLike>;
|
|
408
|
-
currentState: {
|
|
409
|
-
height: number;
|
|
410
|
-
balance: number;
|
|
411
|
-
lastHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
412
|
-
locks: ({
|
|
413
|
-
type: import("../common").LockType.Escrow;
|
|
414
|
-
lockedAmountInAtomics: number;
|
|
415
|
-
parameters: {
|
|
416
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
417
|
-
fundEmitterAccountId: Uint8Array<ArrayBufferLike>;
|
|
418
|
-
transferAuthorizerAccountId: Uint8Array<ArrayBufferLike>;
|
|
419
|
-
startTimestamp: number;
|
|
420
|
-
durationDays: number;
|
|
421
|
-
};
|
|
422
|
-
} | {
|
|
423
|
-
type: import("../common").LockType.Vesting;
|
|
424
|
-
lockedAmountInAtomics: number;
|
|
425
|
-
parameters: {
|
|
426
|
-
initialVestedAmountInAtomics: number;
|
|
427
|
-
cliffStartTimestamp: number;
|
|
428
|
-
cliffDurationDays: number;
|
|
429
|
-
vestingDurationDays: number;
|
|
430
|
-
};
|
|
431
|
-
} | {
|
|
432
|
-
type: import("../common").LockType.NodeStaking;
|
|
433
|
-
lockedAmountInAtomics: number;
|
|
434
|
-
parameters: {
|
|
435
|
-
validatorNodeId: Uint8Array<ArrayBufferLike>;
|
|
436
|
-
plannedUnlockAmountInAtomics: number;
|
|
437
|
-
plannedUnlockTimestamp: number;
|
|
438
|
-
slashed: boolean;
|
|
439
|
-
plannedSlashingAmountInAtomics: number;
|
|
440
|
-
plannedSlashingTimestamp: number;
|
|
441
|
-
};
|
|
442
|
-
})[];
|
|
443
|
-
};
|
|
444
|
-
historyUpdate: {
|
|
445
|
-
height: number;
|
|
446
|
-
previousHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
447
|
-
type: number;
|
|
448
|
-
publicReference: string;
|
|
449
|
-
privateReference: string;
|
|
450
|
-
timestamp: number;
|
|
451
|
-
linkedAccount: Uint8Array<ArrayBufferLike>;
|
|
452
|
-
amount: number;
|
|
453
|
-
chainReference: Uint8Array<ArrayBufferLike>;
|
|
454
|
-
}[];
|
|
455
|
-
}[];
|
|
456
|
-
};
|
|
8
|
+
static encodeAbciRequest(request: AbciRequest): Uint8Array;
|
|
9
|
+
static decodeAbciRequest(request: Uint8Array): AbciRequest;
|
|
10
|
+
static encodeAbciResponse(response: AbciResponse): Uint8Array;
|
|
11
|
+
static decodeAbciResponse(response: Uint8Array): AbciResponse;
|
|
457
12
|
}
|
|
458
13
|
|
|
459
14
|
export declare type AbciRequest = val.InferOutput<typeof AbciRequestSchema>;
|
|
@@ -4967,11 +4522,8 @@ export declare class BlockchainUtils {
|
|
|
4967
4522
|
Extracts the 'previousHash' field from a microblock header in binary format.
|
|
4968
4523
|
*/
|
|
4969
4524
|
static previousHashFromHeader(serializedHeader: Uint8Array): Uint8Array<ArrayBufferLike>;
|
|
4970
|
-
static encodeVirtualBlockchainInfo(virtualBlockchainInfo: VirtualBlockchainInfo): Uint8Array
|
|
4971
|
-
static decodeVirtualBlockchainInfo(serializedInfo: Uint8Array):
|
|
4972
|
-
virtualBlockchainType: number;
|
|
4973
|
-
virtualBlockchainId: Uint8Array<ArrayBufferLike>;
|
|
4974
|
-
};
|
|
4525
|
+
static encodeVirtualBlockchainInfo(virtualBlockchainInfo: VirtualBlockchainInfo): Uint8Array;
|
|
4526
|
+
static decodeVirtualBlockchainInfo(serializedInfo: Uint8Array): VirtualBlockchainInfo;
|
|
4975
4527
|
/**
|
|
4976
4528
|
*
|
|
4977
4529
|
* @param vbState
|
|
@@ -4984,218 +4536,12 @@ export declare class BlockchainUtils {
|
|
|
4984
4536
|
* @return {VirtualBlockchainState} The decoded virtual blockchain state object.
|
|
4985
4537
|
*/
|
|
4986
4538
|
static decodeVirtualBlockchainState(serializedVirtualBlockchainState: Uint8Array): VirtualBlockchainState;
|
|
4987
|
-
static encodeMicroblockBody(body: MicroblockBody): Uint8Array
|
|
4988
|
-
static decodeMicroblockBody(serializedBody: Uint8Array):
|
|
4989
|
-
sections: (({
|
|
4990
|
-
type: import("../common").SectionType.CUSTOM;
|
|
4991
|
-
} & {
|
|
4992
|
-
[key: string]: unknown;
|
|
4993
|
-
}) | {
|
|
4994
|
-
type: import("../common").SectionType.SIGNATURE;
|
|
4995
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
4996
|
-
schemeId: number;
|
|
4997
|
-
} | {
|
|
4998
|
-
type: import("../common").SectionType.AUXILIARY_SIGNATURE;
|
|
4999
|
-
tag: string;
|
|
5000
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
5001
|
-
schemeId: number;
|
|
5002
|
-
} | {
|
|
5003
|
-
type: import("../common").SectionType.ALLOWED_ADDITIONAL_WRITER;
|
|
5004
|
-
allowedWriterAccountId: Uint8Array<ArrayBufferLike>;
|
|
5005
|
-
} | {
|
|
5006
|
-
type: import("../common").SectionType.PROTOCOL_CREATION;
|
|
5007
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
5008
|
-
} | {
|
|
5009
|
-
protocolVersion: number;
|
|
5010
|
-
protocolVersionName: string;
|
|
5011
|
-
changeLog: string;
|
|
5012
|
-
protocolVariables: {
|
|
5013
|
-
protocolVersionName: string;
|
|
5014
|
-
protocolVersion: number;
|
|
5015
|
-
feesCalculationVersion: number;
|
|
5016
|
-
globalStateUpdaterVersion: number;
|
|
5017
|
-
applicationLedgerInternalStateUpdaterVersion: number;
|
|
5018
|
-
applicationInternalStateUpdaterVersion: number;
|
|
5019
|
-
organizationInternalStateUpdaterVersion: number;
|
|
5020
|
-
validatorNodeInternalStateUpdaterVersion: number;
|
|
5021
|
-
accountInternalStateUpdaterVersion: number;
|
|
5022
|
-
protocolInternalStateUpdaterVersion: number;
|
|
5023
|
-
minimumNodeStakingAmountInAtomics: number;
|
|
5024
|
-
maximumNodeStakingAmountInAtomics: number;
|
|
5025
|
-
unstakingDelayInDays: number;
|
|
5026
|
-
maxBlockSizeInBytes: number;
|
|
5027
|
-
retentionPolicy: {
|
|
5028
|
-
retentionRatio: number;
|
|
5029
|
-
maximumNumberOfDays: number;
|
|
5030
|
-
dayDivisor: number;
|
|
5031
|
-
}[];
|
|
5032
|
-
abciVersion: number;
|
|
5033
|
-
};
|
|
5034
|
-
type: import("../common").SectionType.PROTOCOL_UPDATE;
|
|
5035
|
-
} | {
|
|
5036
|
-
type: import("../common").SectionType.PROTOCOL_VARIABLES;
|
|
5037
|
-
protocolVariables: any;
|
|
5038
|
-
} | {
|
|
5039
|
-
type: import("../common").SectionType.ACCOUNT_PUBLIC_KEY;
|
|
5040
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
5041
|
-
schemeId: number;
|
|
5042
|
-
} | {
|
|
5043
|
-
type: import("../common").SectionType.ACCOUNT_TOKEN_ISSUANCE;
|
|
5044
|
-
amount: number;
|
|
5045
|
-
} | {
|
|
5046
|
-
type: import("../common").SectionType.ACCOUNT_CREATION;
|
|
5047
|
-
sellerAccount: Uint8Array<ArrayBufferLike>;
|
|
5048
|
-
amount: number;
|
|
5049
|
-
} | {
|
|
5050
|
-
type: import("../common").SectionType.ACCOUNT_TRANSFER;
|
|
5051
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
5052
|
-
amount: number;
|
|
5053
|
-
publicReference: string;
|
|
5054
|
-
privateReference: string;
|
|
5055
|
-
} | {
|
|
5056
|
-
type: import("../common").SectionType.ACCOUNT_VESTING_TRANSFER;
|
|
5057
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
5058
|
-
amount: number;
|
|
5059
|
-
publicReference: string;
|
|
5060
|
-
privateReference: string;
|
|
5061
|
-
cliffDurationDays: number;
|
|
5062
|
-
vestingDurationDays: number;
|
|
5063
|
-
} | {
|
|
5064
|
-
type: import("../common").SectionType.ACCOUNT_ESCROW_TRANSFER;
|
|
5065
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
5066
|
-
amount: number;
|
|
5067
|
-
publicReference: string;
|
|
5068
|
-
privateReference: string;
|
|
5069
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
5070
|
-
agentAccount: Uint8Array<ArrayBufferLike>;
|
|
5071
|
-
durationDays: number;
|
|
5072
|
-
} | {
|
|
5073
|
-
type: import("../common").SectionType.ACCOUNT_ESCROW_SETTLEMENT;
|
|
5074
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
5075
|
-
confirmed: boolean;
|
|
5076
|
-
} | {
|
|
5077
|
-
type: import("../common").SectionType.ACCOUNT_STAKE;
|
|
5078
|
-
amount: number;
|
|
5079
|
-
objectType: number;
|
|
5080
|
-
objectIdentifier: Uint8Array<ArrayBufferLike>;
|
|
5081
|
-
} | {
|
|
5082
|
-
type: import("../common").SectionType.ACCOUNT_UNSTAKE;
|
|
5083
|
-
amount: number;
|
|
5084
|
-
objectType: number;
|
|
5085
|
-
objectIdentifier: Uint8Array<ArrayBufferLike>;
|
|
5086
|
-
} | {
|
|
5087
|
-
type: import("../common").SectionType.VN_CREATION;
|
|
5088
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
5089
|
-
} | {
|
|
5090
|
-
type: import("../common").SectionType.VN_COMETBFT_PUBLIC_KEY_DECLARATION;
|
|
5091
|
-
cometPublicKeyType: string;
|
|
5092
|
-
cometPublicKey: string;
|
|
5093
|
-
} | {
|
|
5094
|
-
type: import("../common").SectionType.VN_RPC_ENDPOINT;
|
|
5095
|
-
rpcEndpoint: string;
|
|
5096
|
-
} | {
|
|
5097
|
-
type: import("../common").SectionType.VN_APPROVAL;
|
|
5098
|
-
status: boolean;
|
|
5099
|
-
} | {
|
|
5100
|
-
type: import("../common").SectionType.VN_SLASHING_CANCELLATION;
|
|
5101
|
-
reason: string;
|
|
5102
|
-
} | {
|
|
5103
|
-
type: import("../common").SectionType.ORG_CREATION;
|
|
5104
|
-
accountId: Uint8Array<ArrayBufferLike>;
|
|
5105
|
-
} | {
|
|
5106
|
-
type: import("../common").SectionType.ORG_DESCRIPTION;
|
|
5107
|
-
name: string;
|
|
5108
|
-
city: string;
|
|
5109
|
-
countryCode: string;
|
|
5110
|
-
website: string;
|
|
5111
|
-
misc?: {
|
|
5112
|
-
[x: string]: string;
|
|
5113
|
-
} | undefined;
|
|
5114
|
-
} | {
|
|
5115
|
-
type: import("../common").SectionType.APP_CREATION;
|
|
5116
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
5117
|
-
} | {
|
|
5118
|
-
type: import("../common").SectionType.APP_DESCRIPTION;
|
|
5119
|
-
name: string;
|
|
5120
|
-
logoUrl: string;
|
|
5121
|
-
homepageUrl: string;
|
|
5122
|
-
description: string;
|
|
5123
|
-
misc?: {
|
|
5124
|
-
[x: string]: string;
|
|
5125
|
-
} | undefined;
|
|
5126
|
-
} | {
|
|
5127
|
-
type: import("../common").SectionType.APP_LEDGER_ALLOWED_SIG_SCHEMES;
|
|
5128
|
-
schemeIds: number[];
|
|
5129
|
-
} | {
|
|
5130
|
-
type: import("../common").SectionType.APP_LEDGER_ALLOWED_PKE_SCHEMES;
|
|
5131
|
-
schemeIds: number[];
|
|
5132
|
-
} | {
|
|
5133
|
-
type: import("../common").SectionType.APP_LEDGER_CREATION;
|
|
5134
|
-
applicationId: Uint8Array<ArrayBufferLike>;
|
|
5135
|
-
} | {
|
|
5136
|
-
type: import("../common").SectionType.APP_LEDGER_ACTOR_CREATION;
|
|
5137
|
-
id: number;
|
|
5138
|
-
actorType: number;
|
|
5139
|
-
name: string;
|
|
5140
|
-
} | {
|
|
5141
|
-
type: import("../common").SectionType.APP_LEDGER_CHANNEL_CREATION;
|
|
5142
|
-
id: number;
|
|
5143
|
-
isPrivate: boolean;
|
|
5144
|
-
creatorId: number;
|
|
5145
|
-
name: string;
|
|
5146
|
-
} | {
|
|
5147
|
-
type: import("../common").SectionType.APP_LEDGER_SHARED_SECRET;
|
|
5148
|
-
hostId: number;
|
|
5149
|
-
guestId: number;
|
|
5150
|
-
encryptedSharedKey: Uint8Array<ArrayBufferLike>;
|
|
5151
|
-
} | {
|
|
5152
|
-
type: import("../common").SectionType.APP_LEDGER_CHANNEL_INVITATION;
|
|
5153
|
-
channelId: number;
|
|
5154
|
-
hostId: number;
|
|
5155
|
-
guestId: number;
|
|
5156
|
-
encryptedChannelKey: Uint8Array<ArrayBufferLike>;
|
|
5157
|
-
} | {
|
|
5158
|
-
type: import("../common").SectionType.APP_LEDGER_ACTOR_SUBSCRIPTION;
|
|
5159
|
-
actorId: number;
|
|
5160
|
-
actorType: number;
|
|
5161
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
5162
|
-
signatureSchemeId: number;
|
|
5163
|
-
signaturePublicKey: Uint8Array<ArrayBufferLike>;
|
|
5164
|
-
pkeSchemeId: number;
|
|
5165
|
-
pkePublicKey: Uint8Array<ArrayBufferLike>;
|
|
5166
|
-
} | {
|
|
5167
|
-
type: import("../common").SectionType.APP_LEDGER_PUBLIC_CHANNEL_DATA;
|
|
5168
|
-
channelId: number;
|
|
5169
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
5170
|
-
} | {
|
|
5171
|
-
type: import("../common").SectionType.APP_LEDGER_PRIVATE_CHANNEL_DATA;
|
|
5172
|
-
channelId: number;
|
|
5173
|
-
merkleRootHash: Uint8Array<ArrayBufferLike>;
|
|
5174
|
-
encryptedData: Uint8Array<ArrayBufferLike>;
|
|
5175
|
-
} | {
|
|
5176
|
-
type: import("../common").SectionType.APP_LEDGER_AUTHOR;
|
|
5177
|
-
authorId: number;
|
|
5178
|
-
} | {
|
|
5179
|
-
type: import("../common").SectionType.APP_LEDGER_ENDORSEMENT_REQUEST;
|
|
5180
|
-
endorserId: number;
|
|
5181
|
-
message: string;
|
|
5182
|
-
})[];
|
|
5183
|
-
};
|
|
4539
|
+
static encodeMicroblockBody(body: MicroblockBody): Uint8Array;
|
|
4540
|
+
static decodeMicroblockBody(serializedBody: Uint8Array): MicroblockBody;
|
|
5184
4541
|
static encodeSection(section: Section): Uint8Array<ArrayBufferLike>;
|
|
5185
4542
|
static decodeSection(serializedSection: Uint8Array): Section;
|
|
5186
|
-
static encodeMicroblockHeader(header: MicroblockHeader): Uint8Array
|
|
5187
|
-
static decodeMicroblockHeader(serializedHeader: Uint8Array):
|
|
5188
|
-
magicString: "CMTS";
|
|
5189
|
-
protocolVersion: number;
|
|
5190
|
-
microblockType: number;
|
|
5191
|
-
height: number;
|
|
5192
|
-
previousHash: Uint8Array<ArrayBufferLike>;
|
|
5193
|
-
timestamp: number;
|
|
5194
|
-
gas: number;
|
|
5195
|
-
gasPrice: number;
|
|
5196
|
-
bodyHash: Uint8Array<ArrayBufferLike>;
|
|
5197
|
-
feesPayerAccount: Uint8Array<ArrayBufferLike>;
|
|
5198
|
-
};
|
|
4543
|
+
static encodeMicroblockHeader(header: MicroblockHeader): Uint8Array;
|
|
4544
|
+
static decodeMicroblockHeader(serializedHeader: Uint8Array): MicroblockHeader;
|
|
5199
4545
|
static encodeEscrowParameters(escrowParameters: EscrowParameters): Uint8Array<ArrayBufferLike>;
|
|
5200
4546
|
static decodeEscrowParameters(serializedEscrowParameters: Uint8Array): EscrowParameters;
|
|
5201
4547
|
static encodeEscrowLock(escrowLock: EscrowLock): Uint8Array<ArrayBufferLike>;
|
|
@@ -11399,43 +10745,7 @@ export declare class NetworkProvider implements IExternalProvider {
|
|
|
11399
10745
|
responseType: AbciResponseType.VALIDATOR_NODE_BY_ADDRESS;
|
|
11400
10746
|
validatorNodeHash: Uint8Array<ArrayBufferLike>;
|
|
11401
10747
|
}>;
|
|
11402
|
-
getAccountState(accountHash: Uint8Array): Promise<
|
|
11403
|
-
responseType: AbciResponseType.ACCOUNT_STATE;
|
|
11404
|
-
height: number;
|
|
11405
|
-
balance: number;
|
|
11406
|
-
lastHistoryHash: Uint8Array<ArrayBufferLike>;
|
|
11407
|
-
locks: ({
|
|
11408
|
-
type: import("../common").LockType.Escrow;
|
|
11409
|
-
lockedAmountInAtomics: number;
|
|
11410
|
-
parameters: {
|
|
11411
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
11412
|
-
fundEmitterAccountId: Uint8Array<ArrayBufferLike>;
|
|
11413
|
-
transferAuthorizerAccountId: Uint8Array<ArrayBufferLike>;
|
|
11414
|
-
startTimestamp: number;
|
|
11415
|
-
durationDays: number;
|
|
11416
|
-
};
|
|
11417
|
-
} | {
|
|
11418
|
-
type: import("../common").LockType.Vesting;
|
|
11419
|
-
lockedAmountInAtomics: number;
|
|
11420
|
-
parameters: {
|
|
11421
|
-
initialVestedAmountInAtomics: number;
|
|
11422
|
-
cliffStartTimestamp: number;
|
|
11423
|
-
cliffDurationDays: number;
|
|
11424
|
-
vestingDurationDays: number;
|
|
11425
|
-
};
|
|
11426
|
-
} | {
|
|
11427
|
-
type: import("../common").LockType.NodeStaking;
|
|
11428
|
-
lockedAmountInAtomics: number;
|
|
11429
|
-
parameters: {
|
|
11430
|
-
validatorNodeId: Uint8Array<ArrayBufferLike>;
|
|
11431
|
-
plannedUnlockAmountInAtomics: number;
|
|
11432
|
-
plannedUnlockTimestamp: number;
|
|
11433
|
-
slashed: boolean;
|
|
11434
|
-
plannedSlashingAmountInAtomics: number;
|
|
11435
|
-
plannedSlashingTimestamp: number;
|
|
11436
|
-
};
|
|
11437
|
-
})[];
|
|
11438
|
-
}>;
|
|
10748
|
+
getAccountState(accountHash: Uint8Array): Promise<AccountStateAbciResponse>;
|
|
11439
10749
|
getAccountHistory(accountHash: Uint8Array, lastHistoryHash: Uint8Array, maxRecords: number): Promise<{
|
|
11440
10750
|
responseType: AbciResponseType.ACCOUNT_HISTORY;
|
|
11441
10751
|
list: {
|
|
@@ -13156,202 +12466,7 @@ export declare class Provider extends AbstractProvider {
|
|
|
13156
12466
|
getAllApplicationIds(): Promise<Hash[]>;
|
|
13157
12467
|
getObjectList(type: VirtualBlockchainType): Promise<ObjectListAbciResponse>;
|
|
13158
12468
|
getMicroblockInformation(hash: Uint8Array): Promise<MicroblockInformation | null>;
|
|
13159
|
-
getListOfMicroblockBody(hashes: Uint8Array[]): Promise<
|
|
13160
|
-
sections: (({
|
|
13161
|
-
type: import("../common").SectionType.CUSTOM;
|
|
13162
|
-
} & {
|
|
13163
|
-
[key: string]: unknown;
|
|
13164
|
-
}) | {
|
|
13165
|
-
type: import("../common").SectionType.SIGNATURE;
|
|
13166
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
13167
|
-
schemeId: number;
|
|
13168
|
-
} | {
|
|
13169
|
-
type: import("../common").SectionType.AUXILIARY_SIGNATURE;
|
|
13170
|
-
tag: string;
|
|
13171
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
13172
|
-
schemeId: number;
|
|
13173
|
-
} | {
|
|
13174
|
-
type: import("../common").SectionType.ALLOWED_ADDITIONAL_WRITER;
|
|
13175
|
-
allowedWriterAccountId: Uint8Array<ArrayBufferLike>;
|
|
13176
|
-
} | {
|
|
13177
|
-
type: import("../common").SectionType.PROTOCOL_CREATION;
|
|
13178
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
13179
|
-
} | {
|
|
13180
|
-
protocolVersion: number;
|
|
13181
|
-
protocolVersionName: string;
|
|
13182
|
-
changeLog: string;
|
|
13183
|
-
protocolVariables: {
|
|
13184
|
-
protocolVersionName: string;
|
|
13185
|
-
protocolVersion: number;
|
|
13186
|
-
feesCalculationVersion: number;
|
|
13187
|
-
globalStateUpdaterVersion: number;
|
|
13188
|
-
applicationLedgerInternalStateUpdaterVersion: number;
|
|
13189
|
-
applicationInternalStateUpdaterVersion: number;
|
|
13190
|
-
organizationInternalStateUpdaterVersion: number;
|
|
13191
|
-
validatorNodeInternalStateUpdaterVersion: number;
|
|
13192
|
-
accountInternalStateUpdaterVersion: number;
|
|
13193
|
-
protocolInternalStateUpdaterVersion: number;
|
|
13194
|
-
minimumNodeStakingAmountInAtomics: number;
|
|
13195
|
-
maximumNodeStakingAmountInAtomics: number;
|
|
13196
|
-
unstakingDelayInDays: number;
|
|
13197
|
-
maxBlockSizeInBytes: number;
|
|
13198
|
-
retentionPolicy: {
|
|
13199
|
-
retentionRatio: number;
|
|
13200
|
-
maximumNumberOfDays: number;
|
|
13201
|
-
dayDivisor: number;
|
|
13202
|
-
}[];
|
|
13203
|
-
abciVersion: number;
|
|
13204
|
-
};
|
|
13205
|
-
type: import("../common").SectionType.PROTOCOL_UPDATE;
|
|
13206
|
-
} | {
|
|
13207
|
-
type: import("../common").SectionType.PROTOCOL_VARIABLES;
|
|
13208
|
-
protocolVariables: any;
|
|
13209
|
-
} | {
|
|
13210
|
-
type: import("../common").SectionType.ACCOUNT_PUBLIC_KEY;
|
|
13211
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
13212
|
-
schemeId: number;
|
|
13213
|
-
} | {
|
|
13214
|
-
type: import("../common").SectionType.ACCOUNT_TOKEN_ISSUANCE;
|
|
13215
|
-
amount: number;
|
|
13216
|
-
} | {
|
|
13217
|
-
type: import("../common").SectionType.ACCOUNT_CREATION;
|
|
13218
|
-
sellerAccount: Uint8Array<ArrayBufferLike>;
|
|
13219
|
-
amount: number;
|
|
13220
|
-
} | {
|
|
13221
|
-
type: import("../common").SectionType.ACCOUNT_TRANSFER;
|
|
13222
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
13223
|
-
amount: number;
|
|
13224
|
-
publicReference: string;
|
|
13225
|
-
privateReference: string;
|
|
13226
|
-
} | {
|
|
13227
|
-
type: import("../common").SectionType.ACCOUNT_VESTING_TRANSFER;
|
|
13228
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
13229
|
-
amount: number;
|
|
13230
|
-
publicReference: string;
|
|
13231
|
-
privateReference: string;
|
|
13232
|
-
cliffDurationDays: number;
|
|
13233
|
-
vestingDurationDays: number;
|
|
13234
|
-
} | {
|
|
13235
|
-
type: import("../common").SectionType.ACCOUNT_ESCROW_TRANSFER;
|
|
13236
|
-
account: Uint8Array<ArrayBufferLike>;
|
|
13237
|
-
amount: number;
|
|
13238
|
-
publicReference: string;
|
|
13239
|
-
privateReference: string;
|
|
13240
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
13241
|
-
agentAccount: Uint8Array<ArrayBufferLike>;
|
|
13242
|
-
durationDays: number;
|
|
13243
|
-
} | {
|
|
13244
|
-
type: import("../common").SectionType.ACCOUNT_ESCROW_SETTLEMENT;
|
|
13245
|
-
escrowIdentifier: Uint8Array<ArrayBufferLike>;
|
|
13246
|
-
confirmed: boolean;
|
|
13247
|
-
} | {
|
|
13248
|
-
type: import("../common").SectionType.ACCOUNT_STAKE;
|
|
13249
|
-
amount: number;
|
|
13250
|
-
objectType: number;
|
|
13251
|
-
objectIdentifier: Uint8Array<ArrayBufferLike>;
|
|
13252
|
-
} | {
|
|
13253
|
-
type: import("../common").SectionType.ACCOUNT_UNSTAKE;
|
|
13254
|
-
amount: number;
|
|
13255
|
-
objectType: number;
|
|
13256
|
-
objectIdentifier: Uint8Array<ArrayBufferLike>;
|
|
13257
|
-
} | {
|
|
13258
|
-
type: import("../common").SectionType.VN_CREATION;
|
|
13259
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
13260
|
-
} | {
|
|
13261
|
-
type: import("../common").SectionType.VN_COMETBFT_PUBLIC_KEY_DECLARATION;
|
|
13262
|
-
cometPublicKeyType: string;
|
|
13263
|
-
cometPublicKey: string;
|
|
13264
|
-
} | {
|
|
13265
|
-
type: import("../common").SectionType.VN_RPC_ENDPOINT;
|
|
13266
|
-
rpcEndpoint: string;
|
|
13267
|
-
} | {
|
|
13268
|
-
type: import("../common").SectionType.VN_APPROVAL;
|
|
13269
|
-
status: boolean;
|
|
13270
|
-
} | {
|
|
13271
|
-
type: import("../common").SectionType.VN_SLASHING_CANCELLATION;
|
|
13272
|
-
reason: string;
|
|
13273
|
-
} | {
|
|
13274
|
-
type: import("../common").SectionType.ORG_CREATION;
|
|
13275
|
-
accountId: Uint8Array<ArrayBufferLike>;
|
|
13276
|
-
} | {
|
|
13277
|
-
type: import("../common").SectionType.ORG_DESCRIPTION;
|
|
13278
|
-
name: string;
|
|
13279
|
-
city: string;
|
|
13280
|
-
countryCode: string;
|
|
13281
|
-
website: string;
|
|
13282
|
-
misc?: {
|
|
13283
|
-
[x: string]: string;
|
|
13284
|
-
} | undefined;
|
|
13285
|
-
} | {
|
|
13286
|
-
type: import("../common").SectionType.APP_CREATION;
|
|
13287
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
13288
|
-
} | {
|
|
13289
|
-
type: import("../common").SectionType.APP_DESCRIPTION;
|
|
13290
|
-
name: string;
|
|
13291
|
-
logoUrl: string;
|
|
13292
|
-
homepageUrl: string;
|
|
13293
|
-
description: string;
|
|
13294
|
-
misc?: {
|
|
13295
|
-
[x: string]: string;
|
|
13296
|
-
} | undefined;
|
|
13297
|
-
} | {
|
|
13298
|
-
type: import("../common").SectionType.APP_LEDGER_ALLOWED_SIG_SCHEMES;
|
|
13299
|
-
schemeIds: number[];
|
|
13300
|
-
} | {
|
|
13301
|
-
type: import("../common").SectionType.APP_LEDGER_ALLOWED_PKE_SCHEMES;
|
|
13302
|
-
schemeIds: number[];
|
|
13303
|
-
} | {
|
|
13304
|
-
type: import("../common").SectionType.APP_LEDGER_CREATION;
|
|
13305
|
-
applicationId: Uint8Array<ArrayBufferLike>;
|
|
13306
|
-
} | {
|
|
13307
|
-
type: import("../common").SectionType.APP_LEDGER_ACTOR_CREATION;
|
|
13308
|
-
id: number;
|
|
13309
|
-
actorType: number;
|
|
13310
|
-
name: string;
|
|
13311
|
-
} | {
|
|
13312
|
-
type: import("../common").SectionType.APP_LEDGER_CHANNEL_CREATION;
|
|
13313
|
-
id: number;
|
|
13314
|
-
isPrivate: boolean;
|
|
13315
|
-
creatorId: number;
|
|
13316
|
-
name: string;
|
|
13317
|
-
} | {
|
|
13318
|
-
type: import("../common").SectionType.APP_LEDGER_SHARED_SECRET;
|
|
13319
|
-
hostId: number;
|
|
13320
|
-
guestId: number;
|
|
13321
|
-
encryptedSharedKey: Uint8Array<ArrayBufferLike>;
|
|
13322
|
-
} | {
|
|
13323
|
-
type: import("../common").SectionType.APP_LEDGER_CHANNEL_INVITATION;
|
|
13324
|
-
channelId: number;
|
|
13325
|
-
hostId: number;
|
|
13326
|
-
guestId: number;
|
|
13327
|
-
encryptedChannelKey: Uint8Array<ArrayBufferLike>;
|
|
13328
|
-
} | {
|
|
13329
|
-
type: import("../common").SectionType.APP_LEDGER_ACTOR_SUBSCRIPTION;
|
|
13330
|
-
actorId: number;
|
|
13331
|
-
actorType: number;
|
|
13332
|
-
organizationId: Uint8Array<ArrayBufferLike>;
|
|
13333
|
-
signatureSchemeId: number;
|
|
13334
|
-
signaturePublicKey: Uint8Array<ArrayBufferLike>;
|
|
13335
|
-
pkeSchemeId: number;
|
|
13336
|
-
pkePublicKey: Uint8Array<ArrayBufferLike>;
|
|
13337
|
-
} | {
|
|
13338
|
-
type: import("../common").SectionType.APP_LEDGER_PUBLIC_CHANNEL_DATA;
|
|
13339
|
-
channelId: number;
|
|
13340
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
13341
|
-
} | {
|
|
13342
|
-
type: import("../common").SectionType.APP_LEDGER_PRIVATE_CHANNEL_DATA;
|
|
13343
|
-
channelId: number;
|
|
13344
|
-
merkleRootHash: Uint8Array<ArrayBufferLike>;
|
|
13345
|
-
encryptedData: Uint8Array<ArrayBufferLike>;
|
|
13346
|
-
} | {
|
|
13347
|
-
type: import("../common").SectionType.APP_LEDGER_AUTHOR;
|
|
13348
|
-
authorId: number;
|
|
13349
|
-
} | {
|
|
13350
|
-
type: import("../common").SectionType.APP_LEDGER_ENDORSEMENT_REQUEST;
|
|
13351
|
-
endorserId: number;
|
|
13352
|
-
message: string;
|
|
13353
|
-
})[];
|
|
13354
|
-
}[]>;
|
|
12469
|
+
getListOfMicroblockBody(hashes: Uint8Array[]): Promise<MicroblockBody[]>;
|
|
13355
12470
|
getMicroblockBody(microblockHash: Hash): Promise<MicroblockBody | null>;
|
|
13356
12471
|
getMicroblockHeader(microblockHash: Hash): Promise<MicroblockHeader | null>;
|
|
13357
12472
|
getVirtualBlockchainIdContainingMicroblock(microblockHash: Hash): Promise<Hash>;
|
|
@@ -16787,36 +15902,10 @@ export declare class WalletCrypto {
|
|
|
16787
15902
|
|
|
16788
15903
|
export declare class WalletInteractiveAnchoringEncoder {
|
|
16789
15904
|
private static encoder;
|
|
16790
|
-
static encodeRequest(request: WalletInteractiveAnchoringRequest):
|
|
16791
|
-
static decodeRequest(request: Uint8Array):
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
} | {
|
|
16795
|
-
type: import("../common").WalletInteractiveAnchoringRequestType.ACTOR_KEY;
|
|
16796
|
-
anchorRequestId: string;
|
|
16797
|
-
actorSignaturePublicKey: string;
|
|
16798
|
-
actorPkePublicKey: string;
|
|
16799
|
-
} | {
|
|
16800
|
-
type: import("../common").WalletInteractiveAnchoringRequestType.APPROVAL_SIGNATURE;
|
|
16801
|
-
anchorRequestId: string;
|
|
16802
|
-
b64Signature: string;
|
|
16803
|
-
};
|
|
16804
|
-
static encodeResponse(response: WalletInteractiveAnchoringResponse): Buffer<ArrayBufferLike>;
|
|
16805
|
-
static decodeResponse(response: Uint8Array): {
|
|
16806
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.ERROR;
|
|
16807
|
-
errorMessage: string;
|
|
16808
|
-
} | {
|
|
16809
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.ACTOR_KEY_REQUIRED;
|
|
16810
|
-
b64GenesisSeed: string;
|
|
16811
|
-
} | {
|
|
16812
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.APPROVAL_DATA;
|
|
16813
|
-
b64SerializedMicroblock: string;
|
|
16814
|
-
} | {
|
|
16815
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.APPROVAL_SIGNATURE;
|
|
16816
|
-
b64VbHash: string;
|
|
16817
|
-
b64MbHash: string;
|
|
16818
|
-
height: number;
|
|
16819
|
-
};
|
|
15905
|
+
static encodeRequest(request: WalletInteractiveAnchoringRequest): Uint8Array;
|
|
15906
|
+
static decodeRequest(request: Uint8Array): WalletInteractiveAnchoringRequest;
|
|
15907
|
+
static encodeResponse(response: WalletInteractiveAnchoringResponse): Uint8Array;
|
|
15908
|
+
static decodeResponse(response: Uint8Array): WalletInteractiveAnchoringResponse;
|
|
16820
15909
|
}
|
|
16821
15910
|
|
|
16822
15911
|
export declare type WalletInteractiveAnchoringRequest = val.InferOutput<typeof WalletInteractiveAnchoringRequestSchema>;
|
|
@@ -16921,34 +16010,8 @@ export declare enum WalletInteractiveAnchoringResponseType {
|
|
|
16921
16010
|
}
|
|
16922
16011
|
|
|
16923
16012
|
export declare class WalletInteractiveAnchoringValidation {
|
|
16924
|
-
static validateRequest(request: object):
|
|
16925
|
-
|
|
16926
|
-
anchorRequestId: string;
|
|
16927
|
-
} | {
|
|
16928
|
-
type: import("../common").WalletInteractiveAnchoringRequestType.ACTOR_KEY;
|
|
16929
|
-
anchorRequestId: string;
|
|
16930
|
-
actorSignaturePublicKey: string;
|
|
16931
|
-
actorPkePublicKey: string;
|
|
16932
|
-
} | {
|
|
16933
|
-
type: import("../common").WalletInteractiveAnchoringRequestType.APPROVAL_SIGNATURE;
|
|
16934
|
-
anchorRequestId: string;
|
|
16935
|
-
b64Signature: string;
|
|
16936
|
-
};
|
|
16937
|
-
static validateResponse(response: object): {
|
|
16938
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.ERROR;
|
|
16939
|
-
errorMessage: string;
|
|
16940
|
-
} | {
|
|
16941
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.ACTOR_KEY_REQUIRED;
|
|
16942
|
-
b64GenesisSeed: string;
|
|
16943
|
-
} | {
|
|
16944
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.APPROVAL_DATA;
|
|
16945
|
-
b64SerializedMicroblock: string;
|
|
16946
|
-
} | {
|
|
16947
|
-
type: import("../common").WalletInteractiveAnchoringResponseType.APPROVAL_SIGNATURE;
|
|
16948
|
-
b64VbHash: string;
|
|
16949
|
-
b64MbHash: string;
|
|
16950
|
-
height: number;
|
|
16951
|
-
};
|
|
16013
|
+
static validateRequest(request: object): WalletInteractiveAnchoringRequest;
|
|
16014
|
+
static validateResponse(response: object): WalletInteractiveAnchoringResponse;
|
|
16952
16015
|
}
|
|
16953
16016
|
|
|
16954
16017
|
export declare type WalletRequest = val.InferOutput<typeof WalletRequestSchema>;
|