@wowok/wowok 2.2.14 → 2.2.16

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.
Files changed (71) hide show
  1. package/LICENSE +19 -131
  2. package/dist/cjs/index.d.ts +1 -1
  3. package/dist/cjs/jsonRpc/client.d.ts +2 -2
  4. package/dist/cjs/jsonRpc/types/chain.d.ts +3 -3
  5. package/dist/cjs/jsonRpc/types/generated.d.ts +249 -271
  6. package/dist/cjs/jsonRpc/types/generated_old.d.ts +954 -0
  7. package/dist/cjs/jsonRpc/types/generated_old.js +1 -0
  8. package/dist/cjs/jsonRpc/types/params.d.ts +2 -2
  9. package/dist/cjs/w/call/arbitration.js +1 -1
  10. package/dist/cjs/w/call/base.d.ts +1 -0
  11. package/dist/cjs/w/call/base.js +1 -1
  12. package/dist/cjs/w/call/contact.js +1 -1
  13. package/dist/cjs/w/call/demand.js +1 -1
  14. package/dist/cjs/w/call/guard.js +1 -1
  15. package/dist/cjs/w/call/machine.js +1 -1
  16. package/dist/cjs/w/call/personal.js +1 -1
  17. package/dist/cjs/w/call/repository.js +1 -1
  18. package/dist/cjs/w/call/reward.js +1 -1
  19. package/dist/cjs/w/call/service.js +1 -1
  20. package/dist/cjs/w/call/treasury.js +1 -1
  21. package/dist/cjs/w/local/account.d.ts +2 -0
  22. package/dist/cjs/w/local/account.js +1 -1
  23. package/dist/cjs/w/local/cache.js +1 -1
  24. package/dist/cjs/w/local/index.js +1 -1
  25. package/dist/cjs/w/local/local.d.ts +3 -0
  26. package/dist/cjs/w/local/local.js +1 -1
  27. package/dist/cjs/w/local/storage.js +1 -1
  28. package/dist/cjs/w/local/util.js +1 -1
  29. package/dist/cjs/w/local/wip.js +1 -1
  30. package/dist/cjs/w/messenger/messenger-api.js +1 -1
  31. package/dist/cjs/w/messenger/messenger.js +1 -1
  32. package/dist/cjs/w/messenger/pq/crypto.js +1 -1
  33. package/dist/cjs/w/messenger/storage.js +1 -1
  34. package/dist/cjs/w/query/object.js +1 -1
  35. package/dist/esm/index.d.ts +1 -1
  36. package/dist/esm/jsonRpc/client.d.ts +2 -2
  37. package/dist/esm/jsonRpc/types/chain.d.ts +3 -3
  38. package/dist/esm/jsonRpc/types/generated.d.ts +249 -271
  39. package/dist/esm/jsonRpc/types/generated_old.d.ts +954 -0
  40. package/dist/esm/jsonRpc/types/generated_old.js +1 -0
  41. package/dist/esm/jsonRpc/types/params.d.ts +2 -2
  42. package/dist/esm/w/call/arbitration.js +1 -1
  43. package/dist/esm/w/call/base.d.ts +1 -0
  44. package/dist/esm/w/call/base.js +1 -1
  45. package/dist/esm/w/call/contact.js +1 -1
  46. package/dist/esm/w/call/demand.js +1 -1
  47. package/dist/esm/w/call/guard.js +1 -1
  48. package/dist/esm/w/call/machine.js +1 -1
  49. package/dist/esm/w/call/personal.js +1 -1
  50. package/dist/esm/w/call/repository.js +1 -1
  51. package/dist/esm/w/call/reward.js +1 -1
  52. package/dist/esm/w/call/service.js +1 -1
  53. package/dist/esm/w/call/treasury.js +1 -1
  54. package/dist/esm/w/local/account.d.ts +2 -0
  55. package/dist/esm/w/local/account.js +1 -1
  56. package/dist/esm/w/local/cache.js +1 -1
  57. package/dist/esm/w/local/index.js +1 -1
  58. package/dist/esm/w/local/local.d.ts +3 -0
  59. package/dist/esm/w/local/local.js +1 -1
  60. package/dist/esm/w/local/storage.js +1 -1
  61. package/dist/esm/w/local/util.js +1 -1
  62. package/dist/esm/w/local/wip.js +1 -1
  63. package/dist/esm/w/messenger/messenger-api.js +1 -1
  64. package/dist/esm/w/messenger/messenger.js +1 -1
  65. package/dist/esm/w/messenger/pq/crypto.js +1 -1
  66. package/dist/esm/w/messenger/storage.js +1 -1
  67. package/dist/esm/w/query/object.js +1 -1
  68. package/package.json +1 -3
  69. package/NOTICE +0 -114
  70. package/THIRD_PARTY_LICENSES/APACHE_LICENSE.txt +0 -196
  71. package/THIRD_PARTY_LICENSES/MIT_LICENSE.txt +0 -58
@@ -0,0 +1,954 @@
1
+ export interface Balance {
2
+ coinObjectCount: number;
3
+ coinType: string;
4
+ lockedBalance: {
5
+ [key: string]: string;
6
+ };
7
+ totalBalance: string;
8
+ }
9
+ export interface BalanceChange {
10
+ amount: string;
11
+ coinType: string;
12
+ owner: ObjectOwner;
13
+ }
14
+ export interface Checkpoint {
15
+ checkpointCommitments: CheckpointCommitment[];
16
+ digest: string;
17
+ endOfEpochData?: EndOfEpochData | null;
18
+ epoch: string;
19
+ epochRollingGasCostSummary: GasCostSummary;
20
+ networkTotalTransactions: string;
21
+ previousDigest?: string | null;
22
+ sequenceNumber: string;
23
+ timestampMs: string;
24
+ transactions: string[];
25
+ validatorSignature: string;
26
+ }
27
+ export type CheckpointCommitment = {
28
+ ECMHLiveObjectSetDigest: ECMHLiveObjectSetDigest;
29
+ };
30
+ export type CheckpointId = string | string;
31
+ export interface Claim {
32
+ indexMod4: number;
33
+ value: string;
34
+ }
35
+ export interface CoinStruct {
36
+ balance: string;
37
+ coinObjectId: string;
38
+ coinType: string;
39
+ digest: string;
40
+ previousTransaction: string;
41
+ version: string;
42
+ }
43
+ export interface CommitteeInfo {
44
+ epoch: string;
45
+ validators: [string, string][];
46
+ }
47
+ export type CompressedSignature = {
48
+ Ed25519: string;
49
+ } | {
50
+ Secp256k1: string;
51
+ } | {
52
+ Secp256r1: string;
53
+ } | {
54
+ Falcon512: string;
55
+ };
56
+ export type ConsensusDeterminedVersionAssignments = {
57
+ CancelledTransactions: [string, [string, string][]][];
58
+ } | {
59
+ CancelledTransactionsV2: [string, [[string, string], string][]][];
60
+ };
61
+ export type WowParsedData = {
62
+ dataType: "moveObject";
63
+ fields: MoveStruct;
64
+ hasPublicTransfer: boolean;
65
+ type: string;
66
+ } | {
67
+ dataType: "package";
68
+ disassembled: {
69
+ [key: string]: unknown;
70
+ };
71
+ };
72
+ export interface DelegatedStake {
73
+ stakes: StakeObject[];
74
+ stakingPool: string;
75
+ validatorAddress: string;
76
+ }
77
+ export interface DevInspectArgs {
78
+ gasBudget?: string | null;
79
+ gasObjects?: [string, string, string][] | null;
80
+ gasSponsor?: string | null;
81
+ showRawTxnDataAndEffects?: boolean | null;
82
+ skipChecks?: boolean | null;
83
+ }
84
+ export interface DevInspectResults {
85
+ effects: TransactionEffects;
86
+ error?: string | null;
87
+ events: WowEvent[];
88
+ rawEffects?: number[];
89
+ rawTxnData?: number[];
90
+ results?: WowExecutionResult[] | null;
91
+ }
92
+ export interface DisplayFieldsResponse {
93
+ data?: {
94
+ [key: string]: string;
95
+ } | null;
96
+ error?: ObjectResponseError | null;
97
+ }
98
+ export interface DryRunTransactionBlockResponse {
99
+ balanceChanges: BalanceChange[];
100
+ effects: TransactionEffects;
101
+ events: WowEvent[];
102
+ executionErrorSource?: string | null;
103
+ input: TransactionBlockData;
104
+ objectChanges: WowObjectChange[];
105
+ suggestedGasPrice?: string | null;
106
+ }
107
+ export type DynamicFieldInfo = {
108
+ digest: string;
109
+ name: DynamicFieldName;
110
+ objectId: string;
111
+ objectType: string;
112
+ type: DynamicFieldType;
113
+ version: string;
114
+ bcsEncoding: "base64";
115
+ bcsName: string;
116
+ } | {
117
+ digest: string;
118
+ name: DynamicFieldName;
119
+ objectId: string;
120
+ objectType: string;
121
+ type: DynamicFieldType;
122
+ version: string;
123
+ bcsEncoding: "base58";
124
+ bcsName: string;
125
+ };
126
+ export interface DynamicFieldName {
127
+ type: string;
128
+ value: unknown;
129
+ }
130
+ export type DynamicFieldType = "DynamicField" | "DynamicObject";
131
+ export interface ECMHLiveObjectSetDigest {
132
+ digest: number[];
133
+ }
134
+ export interface EndOfEpochData {
135
+ epochCommitments: CheckpointCommitment[];
136
+ nextEpochCommittee: [string, string][];
137
+ nextEpochProtocolVersion: string;
138
+ }
139
+ export type WowEvent = {
140
+ id: EventId;
141
+ packageId: string;
142
+ parsedJson: unknown;
143
+ sender: string;
144
+ timestampMs?: string | null;
145
+ transactionModule: string;
146
+ type: string;
147
+ bcs: string;
148
+ bcsEncoding: "base64";
149
+ } | {
150
+ id: EventId;
151
+ packageId: string;
152
+ parsedJson: unknown;
153
+ sender: string;
154
+ timestampMs?: string | null;
155
+ transactionModule: string;
156
+ type: string;
157
+ bcs: string;
158
+ bcsEncoding: "base58";
159
+ };
160
+ export type WowEventFilter = {
161
+ All: [];
162
+ } | {
163
+ Any: WowEventFilter[];
164
+ } | {
165
+ Sender: string;
166
+ } | {
167
+ Transaction: string;
168
+ } | {
169
+ MoveModule: {
170
+ module: string;
171
+ package: string;
172
+ };
173
+ } | {
174
+ MoveEventType: string;
175
+ } | {
176
+ MoveEventModule: {
177
+ module: string;
178
+ package: string;
179
+ };
180
+ } | {
181
+ TimeRange: {
182
+ endTime: string;
183
+ startTime: string;
184
+ };
185
+ };
186
+ export interface EventId {
187
+ eventSeq: string;
188
+ txDigest: string;
189
+ }
190
+ export type ExecuteTransactionRequestType = "WaitForEffectsCert" | "WaitForLocalExecution";
191
+ export type ExecutionStatus = {
192
+ status: "success" | "failure";
193
+ error?: string;
194
+ };
195
+ export interface GasCostSummary {
196
+ computationCost: string;
197
+ nonRefundableStorageFee: string;
198
+ storageCost: string;
199
+ storageRebate: string;
200
+ }
201
+ export interface SuiGasData {
202
+ budget: string;
203
+ owner: string;
204
+ payment: WowObjectRef[];
205
+ price: string;
206
+ }
207
+ export interface GetPastObjectRequest {
208
+ objectId: string;
209
+ version: string;
210
+ }
211
+ export type InputObjectKind = {
212
+ MovePackage: string;
213
+ } | {
214
+ ImmOrOwnedMoveObject: WowObjectRef;
215
+ } | {
216
+ SharedMoveObject: {
217
+ id: string;
218
+ initial_shared_version: string;
219
+ mutable?: boolean;
220
+ };
221
+ };
222
+ export interface MoveCallParams {
223
+ arguments: unknown[];
224
+ function: string;
225
+ module: string;
226
+ packageObjectId: string;
227
+ typeArguments?: string[];
228
+ }
229
+ export type WowMoveFunctionArgType = "Pure" | {
230
+ Object: ObjectValueKind;
231
+ };
232
+ export type MoveStruct = MoveValue[] | {
233
+ fields: {
234
+ [key: string]: MoveValue;
235
+ };
236
+ type: string;
237
+ } | {
238
+ [key: string]: MoveValue;
239
+ };
240
+ export type MoveValue = number | boolean | string | MoveValue[] | string | {
241
+ id: string;
242
+ } | MoveStruct | null | MoveVariant;
243
+ export interface MoveVariant {
244
+ fields: {
245
+ [key: string]: MoveValue;
246
+ };
247
+ type: string;
248
+ variant: string;
249
+ }
250
+ export interface MultiSig {
251
+ bitmap: number;
252
+ multisig_pk: MultiSigPublicKey;
253
+ sigs: CompressedSignature[];
254
+ }
255
+ export interface MultiSigLegacy {
256
+ bitmap: string;
257
+ multisig_pk: MultiSigPublicKeyLegacy;
258
+ sigs: CompressedSignature[];
259
+ }
260
+ export interface MultiSigPublicKey {
261
+ pk_map: [PublicKey, number][];
262
+ threshold: number;
263
+ }
264
+ export interface MultiSigPublicKeyLegacy {
265
+ pk_map: [PublicKey, number][];
266
+ threshold: number;
267
+ }
268
+ export type WowObjectChange = {
269
+ digest: string;
270
+ modules: string[];
271
+ packageId: string;
272
+ type: "published";
273
+ version: string;
274
+ } | {
275
+ digest: string;
276
+ objectId: string;
277
+ objectType: string;
278
+ recipient: ObjectOwner;
279
+ sender: string;
280
+ type: "transferred";
281
+ version: string;
282
+ } | {
283
+ digest: string;
284
+ objectId: string;
285
+ objectType: string;
286
+ owner: ObjectOwner;
287
+ previousVersion: string;
288
+ sender: string;
289
+ type: "mutated";
290
+ version: string;
291
+ } | {
292
+ objectId: string;
293
+ objectType: string;
294
+ sender: string;
295
+ type: "deleted";
296
+ version: string;
297
+ } | {
298
+ objectId: string;
299
+ objectType: string;
300
+ sender: string;
301
+ type: "wrapped";
302
+ version: string;
303
+ } | {
304
+ digest: string;
305
+ objectId: string;
306
+ objectType: string;
307
+ owner: ObjectOwner;
308
+ sender: string;
309
+ type: "created";
310
+ version: string;
311
+ };
312
+ export interface WowObjectData {
313
+ bcs?: RawData | null;
314
+ content?: WowParsedData | null;
315
+ digest: string;
316
+ display?: DisplayFieldsResponse | null;
317
+ objectId: string;
318
+ owner?: ObjectOwner | null;
319
+ previousTransaction?: string | null;
320
+ storageRebate?: string | null;
321
+ type?: string | null;
322
+ version: string;
323
+ }
324
+ export interface WowObjectDataOptions {
325
+ showBcs?: boolean;
326
+ showContent?: boolean;
327
+ showDisplay?: boolean;
328
+ showOwner?: boolean;
329
+ showPreviousTransaction?: boolean;
330
+ showStorageRebate?: boolean;
331
+ showType?: boolean;
332
+ }
333
+ export type ObjectRead = {
334
+ details: WowObjectData;
335
+ status: "VersionFound";
336
+ } | {
337
+ details: string;
338
+ status: "ObjectNotExists";
339
+ } | {
340
+ details: WowObjectRef;
341
+ status: "ObjectDeleted";
342
+ } | {
343
+ details: [string, string];
344
+ status: "VersionNotFound";
345
+ } | {
346
+ details: {
347
+ asked_version: string;
348
+ latest_version: string;
349
+ object_id: string;
350
+ };
351
+ status: "VersionTooHigh";
352
+ };
353
+ export interface WowObjectRef {
354
+ digest: string;
355
+ objectId: string;
356
+ version: string;
357
+ }
358
+ export type ObjectResponseError = {
359
+ code: "notExists";
360
+ object_id: string;
361
+ } | {
362
+ code: "dynamicFieldNotFound";
363
+ parent_object_id: string;
364
+ } | {
365
+ code: "deleted";
366
+ digest: string;
367
+ object_id: string;
368
+ version: string;
369
+ } | {
370
+ code: "unknown";
371
+ } | {
372
+ code: "displayError";
373
+ error: string;
374
+ };
375
+ export interface WowObjectResponseQuery {
376
+ filter?: WowObjectDataFilter | null;
377
+ options?: WowObjectDataOptions | null;
378
+ }
379
+ export type ObjectValueKind = "ByImmutableReference" | "ByMutableReference" | "ByValue";
380
+ export interface OwnedObjectRef {
381
+ owner: ObjectOwner;
382
+ reference: WowObjectRef;
383
+ }
384
+ export type ObjectOwner = {
385
+ AddressOwner: string;
386
+ } | {
387
+ ObjectOwner: string;
388
+ } | {
389
+ Shared: {
390
+ initial_shared_version: string;
391
+ };
392
+ } | "Immutable" | {
393
+ ConsensusAddressOwner: {
394
+ owner: string;
395
+ start_version: string;
396
+ };
397
+ };
398
+ export interface PaginatedCheckpoints {
399
+ data: Checkpoint[];
400
+ hasNextPage: boolean;
401
+ nextCursor?: string | null;
402
+ }
403
+ export interface PaginatedCoins {
404
+ data: CoinStruct[];
405
+ hasNextPage: boolean;
406
+ nextCursor?: string | null;
407
+ }
408
+ export interface PaginatedDynamicFieldInfos {
409
+ data: DynamicFieldInfo[];
410
+ hasNextPage: boolean;
411
+ nextCursor?: string | null;
412
+ }
413
+ export interface PaginatedEvents {
414
+ data: WowEvent[];
415
+ hasNextPage: boolean;
416
+ nextCursor?: EventId | null;
417
+ }
418
+ export interface PaginatedStrings {
419
+ data: string[];
420
+ hasNextPage: boolean;
421
+ nextCursor?: string | null;
422
+ }
423
+ export interface PaginatedObjectsResponse {
424
+ data: WowObjectResponse[];
425
+ hasNextPage: boolean;
426
+ nextCursor?: string | null;
427
+ }
428
+ export interface PaginatedTransactionResponse {
429
+ data: WowTransactionBlockResponse[];
430
+ hasNextPage: boolean;
431
+ nextCursor?: string | null;
432
+ }
433
+ export interface ProtocolConfig {
434
+ attributes: {
435
+ [key: string]: ProtocolConfigValue | null;
436
+ };
437
+ featureFlags: {
438
+ [key: string]: boolean;
439
+ };
440
+ maxSupportedProtocolVersion: string;
441
+ minSupportedProtocolVersion: string;
442
+ protocolVersion: string;
443
+ }
444
+ export type ProtocolConfigValue = {
445
+ u16: string;
446
+ } | {
447
+ u32: string;
448
+ } | {
449
+ u64: string;
450
+ } | {
451
+ f64: string;
452
+ } | {
453
+ bool: string;
454
+ };
455
+ export type PublicKey = {
456
+ Ed25519: string;
457
+ } | {
458
+ Secp256k1: string;
459
+ } | {
460
+ Secp256r1: string;
461
+ } | {
462
+ Falcon512: string;
463
+ };
464
+ export type RPCTransactionRequestParams = {
465
+ transferObjectRequestParams: TransferObjectParams;
466
+ } | {
467
+ moveCallRequestParams: MoveCallParams;
468
+ };
469
+ export type RawData = {
470
+ bcsBytes: string;
471
+ dataType: "moveObject";
472
+ hasPublicTransfer: boolean;
473
+ type: string;
474
+ version: string;
475
+ } | {
476
+ dataType: "package";
477
+ id: string;
478
+ linkageTable: {
479
+ [key: string]: UpgradeInfo;
480
+ };
481
+ moduleMap: {
482
+ [key: string]: string;
483
+ };
484
+ typeOriginTable: TypeOrigin[];
485
+ version: string;
486
+ };
487
+ export type Signature = {
488
+ Ed25519SuiSignature: string;
489
+ } | {
490
+ Secp256k1SuiSignature: string;
491
+ } | {
492
+ Secp256r1SuiSignature: string;
493
+ } | {
494
+ Falcon512WowSignature: string;
495
+ };
496
+ export type StakeObject = {
497
+ principal: string;
498
+ stakeActiveEpoch: string;
499
+ stakeRequestEpoch: string;
500
+ stakedSuiId: string;
501
+ status: "Pending";
502
+ } | {
503
+ principal: string;
504
+ stakeActiveEpoch: string;
505
+ stakeRequestEpoch: string;
506
+ stakedSuiId: string;
507
+ estimatedReward: string;
508
+ status: "Active";
509
+ } | {
510
+ principal: string;
511
+ stakeActiveEpoch: string;
512
+ stakeRequestEpoch: string;
513
+ stakedSuiId: string;
514
+ status: "Unstaked";
515
+ };
516
+ export type WowArgument = "GasCoin" | {
517
+ Input: number;
518
+ } | {
519
+ Result: number;
520
+ } | {
521
+ NestedResult: [number, number];
522
+ };
523
+ export type WowCallArg = {
524
+ type: "object";
525
+ digest: string;
526
+ objectId: string;
527
+ objectType: "immOrOwnedObject";
528
+ version: string;
529
+ } | {
530
+ type: "object";
531
+ initialSharedVersion: string;
532
+ mutable: boolean;
533
+ objectId: string;
534
+ objectType: "sharedObject";
535
+ } | {
536
+ type: "object";
537
+ digest: string;
538
+ objectId: string;
539
+ objectType: "receiving";
540
+ version: string;
541
+ } | {
542
+ type: "pure";
543
+ value: unknown;
544
+ valueType?: string | null;
545
+ };
546
+ export interface WowChangeEpoch {
547
+ computation_charge: string;
548
+ epoch: string;
549
+ epoch_start_timestamp_ms: string;
550
+ storage_charge: string;
551
+ storage_rebate: string;
552
+ }
553
+ export interface CoinMetadata {
554
+ decimals: number;
555
+ description: string;
556
+ iconUrl?: string | null;
557
+ id?: string | null;
558
+ name: string;
559
+ symbol: string;
560
+ }
561
+ export type WowEndOfEpochTransactionKind = "RandomnessStateCreate" | "CoinDenyListStateCreate" | "StoreExecutionTimeObservations" | "AccumulatorRootCreate" | {
562
+ ChangeEpoch: WowChangeEpoch;
563
+ } | {
564
+ BridgeStateCreate: string;
565
+ } | {
566
+ BridgeCommitteeUpdate: string;
567
+ };
568
+ export interface WowExecutionResult {
569
+ mutableReferenceOutputs?: [WowArgument, number[], string][];
570
+ returnValues?: [number[], string][];
571
+ }
572
+ export type WowMoveAbility = "Copy" | "Drop" | "Store" | "Key";
573
+ export interface WowMoveAbilitySet {
574
+ abilities: WowMoveAbility[];
575
+ }
576
+ export interface WowMoveAbort {
577
+ error_code?: string | null;
578
+ function?: string | null;
579
+ line?: number | null;
580
+ module_id?: string | null;
581
+ }
582
+ export interface WowMoveModuleId {
583
+ address: string;
584
+ name: string;
585
+ }
586
+ export interface WowMoveNormalizedEnum {
587
+ abilities: WowMoveAbilitySet;
588
+ typeParameters: WowMoveStructTypeParameter[];
589
+ variantDeclarationOrder?: string[] | null;
590
+ variants: {
591
+ [key: string]: WowMoveNormalizedField[];
592
+ };
593
+ }
594
+ export interface WowMoveNormalizedField {
595
+ name: string;
596
+ type: WowMoveNormalizedType;
597
+ }
598
+ export interface WowMoveNormalizedFunction {
599
+ isEntry: boolean;
600
+ parameters: WowMoveNormalizedType[];
601
+ return: WowMoveNormalizedType[];
602
+ typeParameters: WowMoveAbilitySet[];
603
+ visibility: WowMoveVisibility;
604
+ }
605
+ export interface WowMoveNormalizedModule {
606
+ address: string;
607
+ enums?: {
608
+ [key: string]: WowMoveNormalizedEnum;
609
+ };
610
+ exposedFunctions: {
611
+ [key: string]: WowMoveNormalizedFunction;
612
+ };
613
+ fileFormatVersion: number;
614
+ friends: WowMoveModuleId[];
615
+ name: string;
616
+ structs: {
617
+ [key: string]: WowMoveNormalizedStruct;
618
+ };
619
+ }
620
+ export interface WowMoveNormalizedStruct {
621
+ abilities: WowMoveAbilitySet;
622
+ fields: WowMoveNormalizedField[];
623
+ typeParameters: WowMoveStructTypeParameter[];
624
+ }
625
+ export type WowMoveNormalizedType = "Bool" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "Address" | "Signer" | {
626
+ Struct: {
627
+ address: string;
628
+ module: string;
629
+ name: string;
630
+ typeArguments: WowMoveNormalizedType[];
631
+ };
632
+ } | {
633
+ Vector: WowMoveNormalizedType;
634
+ } | {
635
+ TypeParameter: number;
636
+ } | {
637
+ Reference: WowMoveNormalizedType;
638
+ } | {
639
+ MutableReference: WowMoveNormalizedType;
640
+ };
641
+ export interface WowMoveStructTypeParameter {
642
+ constraints: WowMoveAbilitySet;
643
+ isPhantom: boolean;
644
+ }
645
+ export type WowMoveVisibility = "Private" | "Public" | "Friend";
646
+ export type WowObjectDataFilter = {
647
+ MatchAll: WowObjectDataFilter[];
648
+ } | {
649
+ MatchAny: WowObjectDataFilter[];
650
+ } | {
651
+ MatchNone: WowObjectDataFilter[];
652
+ } | {
653
+ Package: string;
654
+ } | {
655
+ MoveModule: {
656
+ module: string;
657
+ package: string;
658
+ };
659
+ } | {
660
+ StructType: string;
661
+ } | {
662
+ AddressOwner: string;
663
+ } | {
664
+ ObjectOwner: string;
665
+ } | {
666
+ ObjectId: string;
667
+ } | {
668
+ ObjectIds: string[];
669
+ } | {
670
+ Version: string;
671
+ };
672
+ export interface WowObjectResponse {
673
+ data?: WowObjectData | null;
674
+ error?: ObjectResponseError | null;
675
+ }
676
+ export interface MoveCallWowTransaction {
677
+ arguments?: WowArgument[];
678
+ function: string;
679
+ module: string;
680
+ package: string;
681
+ type_arguments?: string[];
682
+ }
683
+ export interface WowSystemStateSummary {
684
+ activeValidators: SuiValidatorSummary[];
685
+ atRiskValidators: [string, string][];
686
+ epoch: string;
687
+ epochDurationMs: string;
688
+ epochStartTimestampMs: string;
689
+ inactivePoolsId: string;
690
+ inactivePoolsSize: string;
691
+ maxValidatorCount: string;
692
+ minValidatorJoiningStake: string;
693
+ pendingActiveValidatorsId: string;
694
+ pendingActiveValidatorsSize: string;
695
+ pendingRemovals: string[];
696
+ protocolVersion: string;
697
+ referenceGasPrice: string;
698
+ safeMode: boolean;
699
+ safeModeComputationRewards: string;
700
+ safeModeNonRefundableStorageFee: string;
701
+ safeModeStorageRebates: string;
702
+ safeModeStorageRewards: string;
703
+ stakeSubsidyBalance: string;
704
+ stakeSubsidyCurrentDistributionAmount: string;
705
+ stakeSubsidyDecreaseRate: number;
706
+ stakeSubsidyDistributionCounter: string;
707
+ stakeSubsidyPeriodLength: string;
708
+ stakeSubsidyStartEpoch: string;
709
+ stakingPoolMappingsId: string;
710
+ stakingPoolMappingsSize: string;
711
+ storageFundNonRefundableBalance: string;
712
+ storageFundTotalObjectStorageRebates: string;
713
+ systemStateVersion: string;
714
+ totalStake: string;
715
+ validatorCandidatesId: string;
716
+ validatorCandidatesSize: string;
717
+ validatorLowStakeGracePeriod: string;
718
+ validatorLowStakeThreshold: string;
719
+ validatorReportRecords: [string, string[]][];
720
+ validatorVeryLowStakeThreshold: string;
721
+ }
722
+ export type WowTransaction = {
723
+ MoveCall: MoveCallWowTransaction;
724
+ } | {
725
+ TransferObjects: [WowArgument[], WowArgument];
726
+ } | {
727
+ SplitCoins: [WowArgument, WowArgument[]];
728
+ } | {
729
+ MergeCoins: [WowArgument, WowArgument[]];
730
+ } | {
731
+ Publish: string[];
732
+ } | {
733
+ Upgrade: [string[], string, WowArgument];
734
+ } | {
735
+ MakeMoveVec: [string | null, WowArgument[]];
736
+ };
737
+ export type WowTransactionBlockBuilderMode = "Commit" | "DevInspect";
738
+ export interface SuiValidatorSummary {
739
+ commissionRate: string;
740
+ description: string;
741
+ exchangeRatesId: string;
742
+ exchangeRatesSize: string;
743
+ gasPrice: string;
744
+ imageUrl: string;
745
+ name: string;
746
+ netAddress: string;
747
+ networkPubkeyBytes: string;
748
+ nextEpochCommissionRate: string;
749
+ nextEpochGasPrice: string;
750
+ nextEpochNetAddress?: string | null;
751
+ nextEpochNetworkPubkeyBytes?: string | null;
752
+ nextEpochP2pAddress?: string | null;
753
+ nextEpochPrimaryAddress?: string | null;
754
+ nextEpochProofOfPossession?: string | null;
755
+ nextEpochProtocolPubkeyBytes?: string | null;
756
+ nextEpochStake: string;
757
+ nextEpochWorkerAddress?: string | null;
758
+ nextEpochWorkerPubkeyBytes?: string | null;
759
+ operationCapId: string;
760
+ p2pAddress: string;
761
+ pendingPoolTokenWithdraw: string;
762
+ pendingStake: string;
763
+ pendingTotalSuiWithdraw: string;
764
+ poolTokenBalance: string;
765
+ primaryAddress: string;
766
+ projectUrl: string;
767
+ proofOfPossessionBytes: string;
768
+ protocolPubkeyBytes: string;
769
+ rewardsPool: string;
770
+ stakingPoolActivationEpoch?: string | null;
771
+ stakingPoolDeactivationEpoch?: string | null;
772
+ stakingPoolId: string;
773
+ stakingPoolWowBalance: string;
774
+ wowAddress: string;
775
+ votingPower: string;
776
+ workerAddress: string;
777
+ workerPubkeyBytes: string;
778
+ }
779
+ export interface CoinSupply {
780
+ value: string;
781
+ }
782
+ export interface WowTransactionBlock {
783
+ data: TransactionBlockData;
784
+ txSignatures: string[];
785
+ }
786
+ export interface TransactionBlockBytes {
787
+ gas: WowObjectRef[];
788
+ inputObjects: InputObjectKind[];
789
+ txBytes: string;
790
+ }
791
+ export type TransactionBlockData = {
792
+ gasData: SuiGasData;
793
+ messageVersion: "v1";
794
+ sender: string;
795
+ transaction: WowTransactionBlockKind;
796
+ };
797
+ export type TransactionEffects = {
798
+ abortError?: WowMoveAbort | null;
799
+ created?: OwnedObjectRef[];
800
+ deleted?: WowObjectRef[];
801
+ dependencies?: string[];
802
+ eventsDigest?: string | null;
803
+ executedEpoch: string;
804
+ gasObject: OwnedObjectRef;
805
+ gasUsed: GasCostSummary;
806
+ messageVersion: "v1";
807
+ modifiedAtVersions?: TransactionBlockEffectsModifiedAtVersions[];
808
+ mutated?: OwnedObjectRef[];
809
+ sharedObjects?: WowObjectRef[];
810
+ status: ExecutionStatus;
811
+ transactionDigest: string;
812
+ unwrapped?: OwnedObjectRef[];
813
+ unwrappedThenDeleted?: WowObjectRef[];
814
+ wrapped?: WowObjectRef[];
815
+ };
816
+ export interface TransactionBlockEffectsModifiedAtVersions {
817
+ objectId: string;
818
+ sequenceNumber: string;
819
+ }
820
+ export type WowTransactionBlockKind = {
821
+ computation_charge: string;
822
+ epoch: string;
823
+ epoch_start_timestamp_ms: string;
824
+ kind: "ChangeEpoch";
825
+ storage_charge: string;
826
+ storage_rebate: string;
827
+ } | {
828
+ kind: "Genesis";
829
+ objects: string[];
830
+ } | {
831
+ commit_timestamp_ms: string;
832
+ epoch: string;
833
+ kind: "ConsensusCommitPrologue";
834
+ round: string;
835
+ } | {
836
+ inputs: WowCallArg[];
837
+ kind: "ProgrammableTransaction";
838
+ transactions: WowTransaction[];
839
+ } | {
840
+ epoch: string;
841
+ kind: "RandomnessStateUpdate";
842
+ random_bytes: number[];
843
+ randomness_round: string;
844
+ } | {
845
+ kind: "EndOfEpochTransaction";
846
+ transactions: WowEndOfEpochTransactionKind[];
847
+ } | {
848
+ commit_timestamp_ms: string;
849
+ consensus_commit_digest: string;
850
+ epoch: string;
851
+ kind: "ConsensusCommitPrologueV2";
852
+ round: string;
853
+ } | {
854
+ commit_timestamp_ms: string;
855
+ consensus_commit_digest: string;
856
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
857
+ epoch: string;
858
+ kind: "ConsensusCommitPrologueV3";
859
+ round: string;
860
+ sub_dag_index?: string | null;
861
+ } | {
862
+ additional_state_digest: string;
863
+ commit_timestamp_ms: string;
864
+ consensus_commit_digest: string;
865
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
866
+ epoch: string;
867
+ kind: "ConsensusCommitPrologueV4";
868
+ round: string;
869
+ sub_dag_index?: string | null;
870
+ } | {
871
+ inputs: WowCallArg[];
872
+ kind: "ProgrammableSystemTransaction";
873
+ transactions: WowTransaction[];
874
+ };
875
+ export interface WowTransactionBlockResponse {
876
+ balanceChanges?: BalanceChange[] | null;
877
+ checkpoint?: string | null;
878
+ confirmedLocalExecution?: boolean | null;
879
+ digest: string;
880
+ effects?: TransactionEffects | null;
881
+ errors?: string[];
882
+ events?: WowEvent[] | null;
883
+ objectChanges?: WowObjectChange[] | null;
884
+ rawEffects?: number[];
885
+ rawTransaction?: string;
886
+ timestampMs?: string | null;
887
+ transaction?: WowTransactionBlock | null;
888
+ }
889
+ export interface WowTransactionBlockResponseOptions {
890
+ showBalanceChanges?: boolean;
891
+ showEffects?: boolean;
892
+ showEvents?: boolean;
893
+ showInput?: boolean;
894
+ showObjectChanges?: boolean;
895
+ showRawEffects?: boolean;
896
+ showRawInput?: boolean;
897
+ }
898
+ export interface WowTransactionBlockResponseQuery {
899
+ filter?: TransactionFilter | null;
900
+ options?: WowTransactionBlockResponseOptions | null;
901
+ }
902
+ export type TransactionFilter = {
903
+ Checkpoint: string;
904
+ } | {
905
+ MoveFunction: {
906
+ function?: string | null;
907
+ module?: string | null;
908
+ package: string;
909
+ };
910
+ } | {
911
+ InputObject: string;
912
+ } | {
913
+ ChangedObject: string;
914
+ } | {
915
+ AffectedObject: string;
916
+ } | {
917
+ FromAddress: string;
918
+ } | {
919
+ ToAddress: string;
920
+ } | {
921
+ FromAndToAddress: {
922
+ from: string;
923
+ to: string;
924
+ };
925
+ } | {
926
+ FromOrToAddress: {
927
+ addr: string;
928
+ };
929
+ } | {
930
+ TransactionKind: string;
931
+ } | {
932
+ TransactionKindIn: string[];
933
+ };
934
+ export interface TransferObjectParams {
935
+ objectId: string;
936
+ recipient: string;
937
+ }
938
+ export interface TypeOrigin {
939
+ datatype_name: string;
940
+ module_name: string;
941
+ package: string;
942
+ }
943
+ export interface UpgradeInfo {
944
+ upgraded_id: string;
945
+ upgraded_version: string;
946
+ }
947
+ export interface ValidatorApy {
948
+ address: string;
949
+ apy: number;
950
+ }
951
+ export interface ValidatorsApy {
952
+ apys: ValidatorApy[];
953
+ epoch: string;
954
+ }