@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
@@ -1,3 +1,18 @@
1
+ export interface AccumulatorEvent {
2
+ accumulatorObj: string;
3
+ address: string;
4
+ operation: AccumulatorOperation;
5
+ ty: string;
6
+ value: AccumulatorValue;
7
+ }
8
+ export type AccumulatorOperation = "merge" | "split";
9
+ export type AccumulatorValue = {
10
+ integer: string;
11
+ } | {
12
+ integerTuple: [string, string];
13
+ } | {
14
+ eventDigest: [string, string];
15
+ };
1
16
  export interface Balance {
2
17
  coinObjectCount: number;
3
18
  coinType: string;
@@ -22,16 +37,14 @@ export interface Checkpoint {
22
37
  sequenceNumber: string;
23
38
  timestampMs: string;
24
39
  transactions: string[];
25
- validatorSignature: string;
40
+ validatorSignatures: string;
26
41
  }
27
42
  export type CheckpointCommitment = {
28
43
  ECMHLiveObjectSetDigest: ECMHLiveObjectSetDigest;
44
+ } | {
45
+ CheckpointArtifactsDigest: string;
29
46
  };
30
47
  export type CheckpointId = string | string;
31
- export interface Claim {
32
- indexMod4: number;
33
- value: string;
34
- }
35
48
  export interface CoinStruct {
36
49
  balance: string;
37
50
  coinObjectId: string;
@@ -45,12 +58,6 @@ export interface CommitteeInfo {
45
58
  validators: [string, string][];
46
59
  }
47
60
  export type CompressedSignature = {
48
- Ed25519: string;
49
- } | {
50
- Secp256k1: string;
51
- } | {
52
- Secp256r1: string;
53
- } | {
54
61
  Falcon512: string;
55
62
  };
56
63
  export type ConsensusDeterminedVersionAssignments = {
@@ -87,7 +94,7 @@ export interface DevInspectResults {
87
94
  events: WowEvent[];
88
95
  rawEffects?: number[];
89
96
  rawTxnData?: number[];
90
- results?: SuiExecutionResult[] | null;
97
+ results?: WowExecutionResult[] | null;
91
98
  }
92
99
  export interface DisplayFieldsResponse {
93
100
  data?: {
@@ -137,28 +144,14 @@ export interface EndOfEpochData {
137
144
  nextEpochProtocolVersion: string;
138
145
  }
139
146
  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
147
  bcs: string;
148
148
  bcsEncoding: "base64";
149
149
  } | {
150
- id: EventId;
151
- packageId: string;
152
- parsedJson: unknown;
153
- sender: string;
154
- timestampMs?: string | null;
155
- transactionModule: string;
156
- type: string;
157
150
  bcs: string;
158
151
  bcsEncoding: "base58";
159
152
  };
160
153
  export type WowEventFilter = {
161
- All: [];
154
+ All: unknown[];
162
155
  } | {
163
156
  Any: WowEventFilter[];
164
157
  } | {
@@ -189,8 +182,10 @@ export interface EventId {
189
182
  }
190
183
  export type ExecuteTransactionRequestType = "WaitForEffectsCert" | "WaitForLocalExecution";
191
184
  export type ExecutionStatus = {
192
- status: "success" | "failure";
193
- error?: string;
185
+ status: "success";
186
+ } | {
187
+ error: string;
188
+ status: "failure";
194
189
  };
195
190
  export interface GasCostSummary {
196
191
  computationCost: string;
@@ -237,9 +232,9 @@ export type MoveStruct = MoveValue[] | {
237
232
  } | {
238
233
  [key: string]: MoveValue;
239
234
  };
240
- export type MoveValue = number | boolean | string | MoveValue[] | string | {
235
+ export type MoveValue = number | boolean | string | MoveValue[] | {
241
236
  id: string;
242
- } | MoveStruct | null | MoveVariant;
237
+ } | MoveStruct | MoveVariant;
243
238
  export interface MoveVariant {
244
239
  fields: {
245
240
  [key: string]: MoveValue;
@@ -415,8 +410,8 @@ export interface PaginatedEvents {
415
410
  hasNextPage: boolean;
416
411
  nextCursor?: EventId | null;
417
412
  }
418
- export interface PaginatedStrings {
419
- data: string[];
413
+ export interface PaginatedTransactionResponse {
414
+ data: WowTransactionBlockResponse[];
420
415
  hasNextPage: boolean;
421
416
  nextCursor?: string | null;
422
417
  }
@@ -425,11 +420,6 @@ export interface PaginatedObjectsResponse {
425
420
  hasNextPage: boolean;
426
421
  nextCursor?: string | null;
427
422
  }
428
- export interface PaginatedTransactionResponse {
429
- data: WowTransactionBlockResponse[];
430
- hasNextPage: boolean;
431
- nextCursor?: string | null;
432
- }
433
423
  export interface ProtocolConfig {
434
424
  attributes: {
435
425
  [key: string]: ProtocolConfigValue | null;
@@ -454,10 +444,6 @@ export type ProtocolConfigValue = {
454
444
  };
455
445
  export type PublicKey = {
456
446
  Ed25519: string;
457
- } | {
458
- Secp256k1: string;
459
- } | {
460
- Secp256r1: string;
461
447
  } | {
462
448
  Falcon512: string;
463
449
  };
@@ -485,55 +471,211 @@ export type RawData = {
485
471
  version: string;
486
472
  };
487
473
  export type Signature = {
488
- Ed25519SuiSignature: string;
489
- } | {
490
- Secp256k1SuiSignature: string;
491
- } | {
492
- Secp256r1SuiSignature: string;
493
- } | {
494
- Falcon512SuiSignature: string;
474
+ Falcon512WowSignature: string;
495
475
  };
496
476
  export type StakeObject = {
497
- principal: string;
498
- stakeActiveEpoch: string;
499
- stakeRequestEpoch: string;
500
- stakedSuiId: string;
501
477
  status: "Pending";
502
478
  } | {
503
- principal: string;
504
- stakeActiveEpoch: string;
505
- stakeRequestEpoch: string;
506
- stakedSuiId: string;
507
479
  estimatedReward: string;
508
480
  status: "Active";
509
481
  } | {
510
- principal: string;
511
- stakeActiveEpoch: string;
512
- stakeRequestEpoch: string;
513
- stakedSuiId: string;
514
482
  status: "Unstaked";
515
483
  };
516
- export type SuiArgument = "GasCoin" | {
484
+ export interface CoinSupply {
485
+ value: string;
486
+ }
487
+ export interface WowTransactionBlock {
488
+ data: TransactionBlockData;
489
+ txSignatures: string[];
490
+ }
491
+ export interface TransactionBlockBytes {
492
+ gas: WowObjectRef[];
493
+ inputObjects: InputObjectKind[];
494
+ txBytes: string;
495
+ }
496
+ export type TransactionBlockData = {
497
+ gasData: SuiGasData;
498
+ messageVersion: "v1";
499
+ sender: string;
500
+ transaction: WowTransactionBlockKind;
501
+ };
502
+ export type TransactionEffects = {
503
+ abortError?: WowMoveAbort | null;
504
+ accumulatorEvents?: AccumulatorEvent[];
505
+ created?: OwnedObjectRef[];
506
+ deleted?: WowObjectRef[];
507
+ dependencies?: string[];
508
+ eventsDigest?: string | null;
509
+ executedEpoch: string;
510
+ gasObject: OwnedObjectRef;
511
+ gasUsed: GasCostSummary;
512
+ messageVersion: "v1";
513
+ modifiedAtVersions?: TransactionBlockEffectsModifiedAtVersions[];
514
+ mutated?: OwnedObjectRef[];
515
+ sharedObjects?: WowObjectRef[];
516
+ status: ExecutionStatus;
517
+ transactionDigest: string;
518
+ unwrapped?: OwnedObjectRef[];
519
+ unwrappedThenDeleted?: WowObjectRef[];
520
+ wrapped?: WowObjectRef[];
521
+ };
522
+ export interface TransactionBlockEffectsModifiedAtVersions {
523
+ objectId: string;
524
+ sequenceNumber: string;
525
+ }
526
+ export type WowTransactionBlockKind = {
527
+ computation_charge: string;
528
+ epoch: string;
529
+ epoch_start_timestamp_ms: string;
530
+ kind: "ChangeEpoch";
531
+ storage_charge: string;
532
+ storage_rebate: string;
533
+ } | {
534
+ kind: "Genesis";
535
+ objects: string[];
536
+ } | {
537
+ commit_timestamp_ms: string;
538
+ epoch: string;
539
+ kind: "ConsensusCommitPrologue";
540
+ round: string;
541
+ } | {
542
+ inputs: WowCallArg[];
543
+ kind: "ProgrammableTransaction";
544
+ transactions: WowTransaction[];
545
+ } | {
546
+ epoch: string;
547
+ kind: "RandomnessStateUpdate";
548
+ random_bytes: number[];
549
+ randomness_round: string;
550
+ } | {
551
+ kind: "EndOfEpochTransaction";
552
+ transactions: WowEndOfEpochTransactionKind[];
553
+ } | {
554
+ commit_timestamp_ms: string;
555
+ consensus_commit_digest: string;
556
+ epoch: string;
557
+ kind: "ConsensusCommitPrologueV2";
558
+ round: string;
559
+ } | {
560
+ commit_timestamp_ms: string;
561
+ consensus_commit_digest: string;
562
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
563
+ epoch: string;
564
+ kind: "ConsensusCommitPrologueV3";
565
+ round: string;
566
+ sub_dag_index?: string | null;
567
+ } | {
568
+ additional_state_digest: string;
569
+ commit_timestamp_ms: string;
570
+ consensus_commit_digest: string;
571
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
572
+ epoch: string;
573
+ kind: "ConsensusCommitPrologueV4";
574
+ round: string;
575
+ sub_dag_index?: string | null;
576
+ } | {
577
+ inputs: WowCallArg[];
578
+ kind: "ProgrammableSystemTransaction";
579
+ transactions: WowTransaction[];
580
+ };
581
+ export interface WowTransactionBlockResponse {
582
+ balanceChanges?: BalanceChange[] | null;
583
+ checkpoint?: string | null;
584
+ confirmedLocalExecution?: boolean | null;
585
+ digest: string;
586
+ effects?: TransactionEffects | null;
587
+ errors?: string[];
588
+ events?: WowEvent[] | null;
589
+ objectChanges?: WowObjectChange[] | null;
590
+ rawEffects?: number[];
591
+ rawTransaction?: string;
592
+ timestampMs?: string | null;
593
+ transaction?: WowTransactionBlock | null;
594
+ }
595
+ export interface WowTransactionBlockResponseOptions {
596
+ showBalanceChanges?: boolean;
597
+ showEffects?: boolean;
598
+ showEvents?: boolean;
599
+ showInput?: boolean;
600
+ showObjectChanges?: boolean;
601
+ showRawEffects?: boolean;
602
+ showRawInput?: boolean;
603
+ }
604
+ export interface WowTransactionBlockResponseQuery {
605
+ filter?: TransactionFilter | null;
606
+ options?: WowTransactionBlockResponseOptions | null;
607
+ }
608
+ export type TransactionFilter = {
609
+ Checkpoint: string;
610
+ } | {
611
+ MoveFunction: {
612
+ function?: string | null;
613
+ module?: string | null;
614
+ package: string;
615
+ };
616
+ } | {
617
+ InputObject: string;
618
+ } | {
619
+ ChangedObject: string;
620
+ } | {
621
+ AffectedObject: string;
622
+ } | {
623
+ FromAddress: string;
624
+ } | {
625
+ ToAddress: string;
626
+ } | {
627
+ FromAndToAddress: {
628
+ from: string;
629
+ to: string;
630
+ };
631
+ } | {
632
+ FromOrToAddress: {
633
+ addr: string;
634
+ };
635
+ } | {
636
+ TransactionKind: string;
637
+ } | {
638
+ TransactionKindIn: string[];
639
+ };
640
+ export interface TransferObjectParams {
641
+ objectId: string;
642
+ recipient: string;
643
+ }
644
+ export interface TypeOrigin {
645
+ datatype_name: string;
646
+ module_name: string;
647
+ package: string;
648
+ }
649
+ export interface UpgradeInfo {
650
+ upgraded_id: string;
651
+ upgraded_version: string;
652
+ }
653
+ export interface ValidatorApy {
654
+ address: string;
655
+ apy: number;
656
+ }
657
+ export interface ValidatorApys {
658
+ apys: ValidatorApy[];
659
+ epoch: string;
660
+ }
661
+ export type WowArgument = "GasCoin" | {
517
662
  Input: number;
518
663
  } | {
519
664
  Result: number;
520
665
  } | {
521
666
  NestedResult: [number, number];
522
667
  };
523
- export type SuiCallArg = {
524
- type: "object";
668
+ export type WowCallArg = {
525
669
  digest: string;
526
670
  objectId: string;
527
671
  objectType: "immOrOwnedObject";
528
672
  version: string;
529
673
  } | {
530
- type: "object";
531
674
  initialSharedVersion: string;
532
675
  mutable: boolean;
533
676
  objectId: string;
534
677
  objectType: "sharedObject";
535
678
  } | {
536
- type: "object";
537
679
  digest: string;
538
680
  objectId: string;
539
681
  objectType: "receiving";
@@ -542,8 +684,13 @@ export type SuiCallArg = {
542
684
  type: "pure";
543
685
  value: unknown;
544
686
  valueType?: string | null;
687
+ } | {
688
+ reservation: WowReservation;
689
+ type: "fundsWithdrawal";
690
+ typeArg: WowWithdrawalTypeArg;
691
+ withdrawFrom: WowWithdrawFrom;
545
692
  };
546
- export interface SuiChangeEpoch {
693
+ export interface WowChangeEpoch {
547
694
  computation_charge: string;
548
695
  epoch: string;
549
696
  epoch_start_timestamp_ms: string;
@@ -558,40 +705,40 @@ export interface CoinMetadata {
558
705
  name: string;
559
706
  symbol: string;
560
707
  }
561
- export type SuiEndOfEpochTransactionKind = "RandomnessStateCreate" | "CoinDenyListStateCreate" | "StoreExecutionTimeObservations" | "AccumulatorRootCreate" | {
562
- ChangeEpoch: SuiChangeEpoch;
708
+ export type WowEndOfEpochTransactionKind = "RandomnessStateCreate" | "CoinDenyListStateCreate" | "StoreExecutionTimeObservations" | "AccumulatorRootCreate" | "CoinRegistryCreate" | "DisplayRegistryCreate" | {
709
+ ChangeEpoch: WowChangeEpoch;
563
710
  } | {
564
711
  BridgeStateCreate: string;
565
712
  } | {
566
713
  BridgeCommitteeUpdate: string;
567
714
  };
568
- export interface SuiExecutionResult {
569
- mutableReferenceOutputs?: [SuiArgument, number[], string][];
715
+ export interface WowExecutionResult {
716
+ mutableReferenceOutputs?: [WowArgument, number[], string][];
570
717
  returnValues?: [number[], string][];
571
718
  }
572
- export type SuiMoveAbility = "Copy" | "Drop" | "Store" | "Key";
719
+ export type WowMoveAbility = "Copy" | "Drop" | "Store" | "Key";
573
720
  export interface WowMoveAbilitySet {
574
- abilities: SuiMoveAbility[];
721
+ abilities: WowMoveAbility[];
575
722
  }
576
- export interface SuiMoveAbort {
723
+ export interface WowMoveAbort {
577
724
  error_code?: string | null;
578
725
  function?: string | null;
579
726
  line?: number | null;
580
727
  module_id?: string | null;
581
728
  }
582
- export interface SuiMoveModuleId {
729
+ export interface WowMoveModuleId {
583
730
  address: string;
584
731
  name: string;
585
732
  }
586
- export interface SuiMoveNormalizedEnum {
733
+ export interface WowMoveNormalizedEnum {
587
734
  abilities: WowMoveAbilitySet;
588
- typeParameters: SuiMoveStructTypeParameter[];
735
+ typeParameters: WowMoveStructTypeParameter[];
589
736
  variantDeclarationOrder?: string[] | null;
590
737
  variants: {
591
- [key: string]: SuiMoveNormalizedField[];
738
+ [key: string]: WowMoveNormalizedField[];
592
739
  };
593
740
  }
594
- export interface SuiMoveNormalizedField {
741
+ export interface WowMoveNormalizedField {
595
742
  name: string;
596
743
  type: WowMoveNormalizedType;
597
744
  }
@@ -605,13 +752,13 @@ export interface WowMoveNormalizedFunction {
605
752
  export interface WowMoveNormalizedModule {
606
753
  address: string;
607
754
  enums?: {
608
- [key: string]: SuiMoveNormalizedEnum;
755
+ [key: string]: WowMoveNormalizedEnum;
609
756
  };
610
757
  exposedFunctions: {
611
758
  [key: string]: WowMoveNormalizedFunction;
612
759
  };
613
760
  fileFormatVersion: number;
614
- friends: SuiMoveModuleId[];
761
+ friends: WowMoveModuleId[];
615
762
  name: string;
616
763
  structs: {
617
764
  [key: string]: WowMoveNormalizedStruct;
@@ -619,8 +766,8 @@ export interface WowMoveNormalizedModule {
619
766
  }
620
767
  export interface WowMoveNormalizedStruct {
621
768
  abilities: WowMoveAbilitySet;
622
- fields: SuiMoveNormalizedField[];
623
- typeParameters: SuiMoveStructTypeParameter[];
769
+ fields: WowMoveNormalizedField[];
770
+ typeParameters: WowMoveStructTypeParameter[];
624
771
  }
625
772
  export type WowMoveNormalizedType = "Bool" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "Address" | "Signer" | {
626
773
  Struct: {
@@ -638,7 +785,7 @@ export type WowMoveNormalizedType = "Bool" | "U8" | "U16" | "U32" | "U64" | "U12
638
785
  } | {
639
786
  MutableReference: WowMoveNormalizedType;
640
787
  };
641
- export interface SuiMoveStructTypeParameter {
788
+ export interface WowMoveStructTypeParameter {
642
789
  constraints: WowMoveAbilitySet;
643
790
  isPhantom: boolean;
644
791
  }
@@ -673,13 +820,16 @@ export interface WowObjectResponse {
673
820
  data?: WowObjectData | null;
674
821
  error?: ObjectResponseError | null;
675
822
  }
676
- export interface MoveCallSuiTransaction {
677
- arguments?: SuiArgument[];
823
+ export interface MoveCallWowTransaction {
824
+ arguments?: WowArgument[];
678
825
  function: string;
679
826
  module: string;
680
827
  package: string;
681
828
  type_arguments?: string[];
682
829
  }
830
+ export type WowReservation = "entireBalance" | {
831
+ maxAmountU64: string;
832
+ };
683
833
  export interface WowSystemStateSummary {
684
834
  activeValidators: SuiValidatorSummary[];
685
835
  atRiskValidators: [string, string][];
@@ -719,22 +869,22 @@ export interface WowSystemStateSummary {
719
869
  validatorReportRecords: [string, string[]][];
720
870
  validatorVeryLowStakeThreshold: string;
721
871
  }
722
- export type SuiTransaction = {
723
- MoveCall: MoveCallSuiTransaction;
872
+ export type WowTransaction = {
873
+ MoveCall: MoveCallWowTransaction;
724
874
  } | {
725
- TransferObjects: [SuiArgument[], SuiArgument];
875
+ TransferObjects: [WowArgument[], WowArgument];
726
876
  } | {
727
- SplitCoins: [SuiArgument, SuiArgument[]];
877
+ SplitCoins: [WowArgument, WowArgument[]];
728
878
  } | {
729
- MergeCoins: [SuiArgument, SuiArgument[]];
879
+ MergeCoins: [WowArgument, WowArgument[]];
730
880
  } | {
731
881
  Publish: string[];
732
882
  } | {
733
- Upgrade: [string[], string, SuiArgument];
883
+ Upgrade: [string[], string, WowArgument];
734
884
  } | {
735
- MakeMoveVec: [string | null, SuiArgument[]];
885
+ MakeMoveVec: [string | null, WowArgument[]];
736
886
  };
737
- export type SuiTransactionBlockBuilderMode = "Commit" | "DevInspect";
887
+ export type WowTransactionBlockBuilderMode = "Commit" | "DevInspect";
738
888
  export interface SuiValidatorSummary {
739
889
  commissionRate: string;
740
890
  description: string;
@@ -760,7 +910,7 @@ export interface SuiValidatorSummary {
760
910
  p2pAddress: string;
761
911
  pendingPoolTokenWithdraw: string;
762
912
  pendingStake: string;
763
- pendingTotalSuiWithdraw: string;
913
+ pendingTotalWowWithdraw: string;
764
914
  poolTokenBalance: string;
765
915
  primaryAddress: string;
766
916
  projectUrl: string;
@@ -771,184 +921,12 @@ export interface SuiValidatorSummary {
771
921
  stakingPoolDeactivationEpoch?: string | null;
772
922
  stakingPoolId: string;
773
923
  stakingPoolWowBalance: string;
774
- wowAddress: string;
775
924
  votingPower: string;
776
925
  workerAddress: string;
777
926
  workerPubkeyBytes: string;
927
+ wowAddress: string;
778
928
  }
779
- export interface CoinSupply {
780
- value: string;
781
- }
782
- export interface SuiTransactionBlock {
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: SuiTransactionBlockKind;
796
- };
797
- export type TransactionEffects = {
798
- abortError?: SuiMoveAbort | 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 SuiTransactionBlockKind = {
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: SuiCallArg[];
837
- kind: "ProgrammableTransaction";
838
- transactions: SuiTransaction[];
839
- } | {
840
- epoch: string;
841
- kind: "RandomnessStateUpdate";
842
- random_bytes: number[];
843
- randomness_round: string;
844
- } | {
845
- kind: "EndOfEpochTransaction";
846
- transactions: SuiEndOfEpochTransactionKind[];
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: SuiCallArg[];
872
- kind: "ProgrammableSystemTransaction";
873
- transactions: SuiTransaction[];
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?: SuiTransactionBlock | 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[];
929
+ export type WowWithdrawFrom = "sender" | "sponsor";
930
+ export type WowWithdrawalTypeArg = {
931
+ balance: string;
933
932
  };
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
- }