@sentio/sdk 2.13.0-rc.1 → 2.13.0-rc.11

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 (144) hide show
  1. package/lib/aptos/aptos-chain-adapter.d.ts +14 -0
  2. package/lib/aptos/aptos-chain-adapter.js +69 -0
  3. package/lib/aptos/aptos-chain-adapter.js.map +1 -0
  4. package/lib/aptos/aptos-plugin.js +5 -2
  5. package/lib/aptos/aptos-plugin.js.map +1 -1
  6. package/lib/aptos/aptos-processor.d.ts +7 -7
  7. package/lib/aptos/aptos-processor.js +15 -22
  8. package/lib/aptos/aptos-processor.js.map +1 -1
  9. package/lib/aptos/builtin/0x1.d.ts +1138 -493
  10. package/lib/aptos/builtin/0x1.js +1939 -1458
  11. package/lib/aptos/builtin/0x1.js.map +1 -1
  12. package/lib/aptos/builtin/0x3.d.ts +227 -104
  13. package/lib/aptos/builtin/0x3.js +373 -333
  14. package/lib/aptos/builtin/0x3.js.map +1 -1
  15. package/lib/aptos/codegen/codegen.d.ts +1 -1
  16. package/lib/aptos/codegen/codegen.js +6 -47
  17. package/lib/aptos/codegen/codegen.js.map +1 -1
  18. package/lib/aptos/codegen/run.js +1 -1
  19. package/lib/aptos/codegen/run.js.map +1 -1
  20. package/lib/aptos/context.d.ts +3 -0
  21. package/lib/aptos/context.js +5 -0
  22. package/lib/aptos/context.js.map +1 -1
  23. package/lib/aptos/ext/aptos-dex.d.ts +2 -1
  24. package/lib/aptos/ext/aptos-dex.js +1 -2
  25. package/lib/aptos/ext/aptos-dex.js.map +1 -1
  26. package/lib/aptos/index.d.ts +2 -0
  27. package/lib/aptos/index.js +2 -0
  28. package/lib/aptos/index.js.map +1 -1
  29. package/lib/aptos/models.d.ts +3 -11
  30. package/lib/aptos/models.js.map +1 -1
  31. package/lib/aptos/module-client.js +1 -1
  32. package/lib/aptos/module-client.js.map +1 -1
  33. package/lib/aptos/move-coder.d.ts +10 -10
  34. package/lib/aptos/move-coder.js +37 -18
  35. package/lib/aptos/move-coder.js.map +1 -1
  36. package/lib/aptos/utils.d.ts +2 -2
  37. package/lib/aptos/utils.js +10 -7
  38. package/lib/aptos/utils.js.map +1 -1
  39. package/lib/eth/base-processor-template.d.ts +4 -3
  40. package/lib/eth/base-processor-template.js +7 -7
  41. package/lib/eth/base-processor-template.js.map +1 -1
  42. package/lib/eth/base-processor.d.ts +9 -8
  43. package/lib/eth/base-processor.js +13 -11
  44. package/lib/eth/base-processor.js.map +1 -1
  45. package/lib/eth/eth-plugin.js +8 -5
  46. package/lib/eth/eth-plugin.js.map +1 -1
  47. package/lib/eth/eth.d.ts +9 -2
  48. package/lib/eth/eth.js +23 -1
  49. package/lib/eth/eth.js.map +1 -1
  50. package/lib/move/abstract-codegen.d.ts +11 -11
  51. package/lib/move/abstract-codegen.js +59 -22
  52. package/lib/move/abstract-codegen.js.map +1 -1
  53. package/lib/move/abstract-move-coder.d.ts +19 -25
  54. package/lib/move/abstract-move-coder.js +74 -51
  55. package/lib/move/abstract-move-coder.js.map +1 -1
  56. package/lib/move/chain-adapter.d.ts +11 -0
  57. package/lib/move/chain-adapter.js +3 -0
  58. package/lib/move/chain-adapter.js.map +1 -0
  59. package/lib/move/index.d.ts +1 -0
  60. package/lib/move/index.js +1 -0
  61. package/lib/move/index.js.map +1 -1
  62. package/lib/move/types.d.ts +31 -1
  63. package/lib/move/types.js +75 -16
  64. package/lib/move/types.js.map +1 -1
  65. package/lib/move/utils.js +6 -1
  66. package/lib/move/utils.js.map +1 -1
  67. package/lib/sui/builtin/0x1.d.ts +37 -18
  68. package/lib/sui/builtin/0x1.js +58 -32
  69. package/lib/sui/builtin/0x1.js.map +1 -1
  70. package/lib/sui/builtin/0x2.d.ts +275 -125
  71. package/lib/sui/builtin/0x2.js +463 -322
  72. package/lib/sui/builtin/0x2.js.map +1 -1
  73. package/lib/sui/builtin/0x3.d.ts +135 -60
  74. package/lib/sui/builtin/0x3.js +229 -272
  75. package/lib/sui/builtin/0x3.js.map +1 -1
  76. package/lib/sui/codegen/codegen.d.ts +1 -1
  77. package/lib/sui/codegen/codegen.js +10 -36
  78. package/lib/sui/codegen/codegen.js.map +1 -1
  79. package/lib/sui/codegen/run.js +1 -1
  80. package/lib/sui/codegen/run.js.map +1 -1
  81. package/lib/sui/context.d.ts +5 -1
  82. package/lib/sui/context.js +8 -1
  83. package/lib/sui/context.js.map +1 -1
  84. package/lib/sui/index.d.ts +1 -0
  85. package/lib/sui/index.js +1 -0
  86. package/lib/sui/index.js.map +1 -1
  87. package/lib/sui/models.d.ts +3 -11
  88. package/lib/sui/models.js.map +1 -1
  89. package/lib/sui/move-coder.d.ts +15 -15
  90. package/lib/sui/move-coder.js +43 -39
  91. package/lib/sui/move-coder.js.map +1 -1
  92. package/lib/sui/sui-chain-adapter.d.ts +14 -0
  93. package/lib/sui/sui-chain-adapter.js +69 -0
  94. package/lib/sui/sui-chain-adapter.js.map +1 -0
  95. package/lib/sui/sui-plugin.js +4 -2
  96. package/lib/sui/sui-plugin.js.map +1 -1
  97. package/lib/sui/sui-processor.d.ts +6 -3
  98. package/lib/sui/sui-processor.js +23 -14
  99. package/lib/sui/sui-processor.js.map +1 -1
  100. package/lib/sui/utils.d.ts +3 -3
  101. package/lib/sui/utils.js +20 -5
  102. package/lib/sui/utils.js.map +1 -1
  103. package/lib/testing/sui-facet.d.ts +2 -2
  104. package/lib/testing/sui-facet.js +16 -26
  105. package/lib/testing/sui-facet.js.map +1 -1
  106. package/package.json +4 -4
  107. package/src/aptos/aptos-chain-adapter.ts +81 -0
  108. package/src/aptos/aptos-plugin.ts +5 -2
  109. package/src/aptos/aptos-processor.ts +35 -31
  110. package/src/aptos/builtin/0x1.ts +2742 -500
  111. package/src/aptos/builtin/0x3.ts +529 -106
  112. package/src/aptos/codegen/codegen.ts +13 -57
  113. package/src/aptos/codegen/run.ts +1 -1
  114. package/src/aptos/context.ts +5 -0
  115. package/src/aptos/ext/aptos-dex.ts +4 -12
  116. package/src/aptos/index.ts +4 -0
  117. package/src/aptos/models.ts +3 -13
  118. package/src/aptos/module-client.ts +1 -1
  119. package/src/aptos/move-coder.ts +48 -25
  120. package/src/aptos/utils.ts +11 -8
  121. package/src/eth/base-processor-template.ts +20 -10
  122. package/src/eth/base-processor.ts +45 -25
  123. package/src/eth/eth-plugin.ts +9 -6
  124. package/src/eth/eth.ts +31 -2
  125. package/src/move/abstract-codegen.ts +74 -37
  126. package/src/move/abstract-move-coder.ts +87 -75
  127. package/src/move/chain-adapter.ts +17 -0
  128. package/src/move/index.ts +1 -0
  129. package/src/move/types.ts +97 -17
  130. package/src/move/utils.ts +6 -1
  131. package/src/sui/builtin/0x1.ts +75 -20
  132. package/src/sui/builtin/0x2.ts +670 -126
  133. package/src/sui/builtin/0x3.ts +326 -61
  134. package/src/sui/codegen/codegen.ts +17 -43
  135. package/src/sui/codegen/run.ts +1 -1
  136. package/src/sui/context.ts +9 -1
  137. package/src/sui/index.ts +1 -0
  138. package/src/sui/models.ts +3 -13
  139. package/src/sui/move-coder.ts +58 -53
  140. package/src/sui/sui-chain-adapter.ts +86 -0
  141. package/src/sui/sui-plugin.ts +4 -2
  142. package/src/sui/sui-processor.ts +39 -26
  143. package/src/sui/utils.ts +25 -5
  144. package/src/testing/sui-facet.ts +15 -30
@@ -1,19 +1,25 @@
1
- import { CallFilter } from "@sentio/sdk/move";
1
+ import { CallFilter, TypeDescriptor } from "@sentio/sdk/move";
2
2
  import { MoveCoder, AptosBindOptions, AptosBaseProcessor, TypedEventInstance, TypedFunctionPayload, AptosContext } from "@sentio/sdk/aptos";
3
3
  import { MoveFetchConfig } from "@sentio/protos";
4
4
  import { Address } from "@sentio/sdk/aptos";
5
5
  export declare namespace acl {
6
- class ACL {
7
- static TYPE_QNAME: string;
6
+ interface ACL {
8
7
  list: Address[];
9
8
  }
9
+ namespace ACL {
10
+ const TYPE_QNAME = "0x1::acl::ACL";
11
+ function type(): TypeDescriptor<ACL>;
12
+ }
10
13
  }
11
14
  export declare namespace any_ {
12
- class Any {
13
- static TYPE_QNAME: string;
15
+ interface Any {
14
16
  type_name: string;
15
17
  data: string;
16
18
  }
19
+ namespace Any {
20
+ const TYPE_QNAME = "0x1::any::Any";
21
+ function type(): TypeDescriptor<Any>;
22
+ }
17
23
  }
18
24
  export declare namespace bcs { }
19
25
  export declare class code extends AptosBaseProcessor {
@@ -23,25 +29,33 @@ export declare class code extends AptosBaseProcessor {
23
29
  onEntryPublishPackageTxn(func: (call: code.PublishPackageTxnPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): code;
24
30
  }
25
31
  export declare namespace code {
26
- class AllowedDep {
27
- static TYPE_QNAME: string;
32
+ interface AllowedDep {
28
33
  account: Address;
29
34
  module_name: string;
30
35
  }
31
- class ModuleMetadata {
32
- static TYPE_QNAME: string;
36
+ namespace AllowedDep {
37
+ const TYPE_QNAME = "0x1::code::AllowedDep";
38
+ function type(): TypeDescriptor<AllowedDep>;
39
+ }
40
+ interface ModuleMetadata {
33
41
  name: string;
34
42
  source: string;
35
43
  source_map: string;
36
44
  extension: option.Option<copyable_any.Any>;
37
45
  }
38
- class PackageDep {
39
- static TYPE_QNAME: string;
46
+ namespace ModuleMetadata {
47
+ const TYPE_QNAME = "0x1::code::ModuleMetadata";
48
+ function type(): TypeDescriptor<ModuleMetadata>;
49
+ }
50
+ interface PackageDep {
40
51
  account: Address;
41
52
  package_name: string;
42
53
  }
43
- class PackageMetadata {
44
- static TYPE_QNAME: string;
54
+ namespace PackageDep {
55
+ const TYPE_QNAME = "0x1::code::PackageDep";
56
+ function type(): TypeDescriptor<PackageDep>;
57
+ }
58
+ interface PackageMetadata {
45
59
  name: string;
46
60
  upgrade_policy: code.UpgradePolicy;
47
61
  upgrade_number: bigint;
@@ -51,14 +65,24 @@ export declare namespace code {
51
65
  deps: code.PackageDep[];
52
66
  extension: option.Option<copyable_any.Any>;
53
67
  }
54
- class PackageRegistry {
55
- static TYPE_QNAME: string;
68
+ namespace PackageMetadata {
69
+ const TYPE_QNAME = "0x1::code::PackageMetadata";
70
+ function type(): TypeDescriptor<PackageMetadata>;
71
+ }
72
+ interface PackageRegistry {
56
73
  packages: code.PackageMetadata[];
57
74
  }
58
- class UpgradePolicy {
59
- static TYPE_QNAME: string;
75
+ namespace PackageRegistry {
76
+ const TYPE_QNAME = "0x1::code::PackageRegistry";
77
+ function type(): TypeDescriptor<PackageRegistry>;
78
+ }
79
+ interface UpgradePolicy {
60
80
  policy: number;
61
81
  }
82
+ namespace UpgradePolicy {
83
+ const TYPE_QNAME = "0x1::code::UpgradePolicy";
84
+ function type(): TypeDescriptor<UpgradePolicy>;
85
+ }
62
86
  interface PublishPackageTxnPayload extends TypedFunctionPayload<[string, string[]]> {
63
87
  arguments_decoded: [string, string[]];
64
88
  type_arguments: [];
@@ -72,60 +96,90 @@ export declare class coin extends AptosBaseProcessor {
72
96
  onEntryTransfer(func: (call: coin.TransferPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
73
97
  onEntryUnfreezeCoinStore(func: (call: coin.UnfreezeCoinStorePayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
74
98
  onEntryUpgradeSupply(func: (call: coin.UpgradeSupplyPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): coin;
75
- onEventDepositEvent(func: (event: coin.DepositEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): coin;
76
- onEventWithdrawEvent(func: (event: coin.WithdrawEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): coin;
99
+ onEventDepositEvent(func: (event: coin.DepositEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): coin;
100
+ onEventWithdrawEvent(func: (event: coin.WithdrawEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): coin;
77
101
  }
78
102
  export declare namespace coin {
79
- class AggregatableCoin<T0> {
80
- static TYPE_QNAME: string;
103
+ interface AggregatableCoin<T0> {
81
104
  value: aggregator.Aggregator;
82
105
  }
83
- class BurnCapability<T0> {
84
- static TYPE_QNAME: string;
106
+ namespace AggregatableCoin {
107
+ const TYPE_QNAME = "0x1::coin::AggregatableCoin";
108
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<AggregatableCoin<T0>>;
109
+ }
110
+ interface BurnCapability<T0> {
85
111
  dummy_field: Boolean;
86
112
  }
87
- class Coin<T0> {
88
- static TYPE_QNAME: string;
113
+ namespace BurnCapability {
114
+ const TYPE_QNAME = "0x1::coin::BurnCapability";
115
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<BurnCapability<T0>>;
116
+ }
117
+ interface Coin<T0> {
89
118
  value: bigint;
90
119
  }
91
- class CoinInfo<T0> {
92
- static TYPE_QNAME: string;
120
+ namespace Coin {
121
+ const TYPE_QNAME = "0x1::coin::Coin";
122
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Coin<T0>>;
123
+ }
124
+ interface CoinInfo<T0> {
93
125
  name: string;
94
126
  symbol: string;
95
127
  decimals: number;
96
128
  supply: option.Option<optional_aggregator.OptionalAggregator>;
97
129
  }
98
- class CoinStore<T0> {
99
- static TYPE_QNAME: string;
130
+ namespace CoinInfo {
131
+ const TYPE_QNAME = "0x1::coin::CoinInfo";
132
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CoinInfo<T0>>;
133
+ }
134
+ interface CoinStore<T0> {
100
135
  coin: coin.Coin<T0>;
101
136
  frozen: Boolean;
102
137
  deposit_events: event.EventHandle<coin.DepositEvent>;
103
138
  withdraw_events: event.EventHandle<coin.WithdrawEvent>;
104
139
  }
105
- class DepositEvent {
106
- static TYPE_QNAME: string;
140
+ namespace CoinStore {
141
+ const TYPE_QNAME = "0x1::coin::CoinStore";
142
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CoinStore<T0>>;
143
+ }
144
+ interface DepositEvent {
107
145
  amount: bigint;
108
146
  }
147
+ namespace DepositEvent {
148
+ const TYPE_QNAME = "0x1::coin::DepositEvent";
149
+ function type(): TypeDescriptor<DepositEvent>;
150
+ }
109
151
  interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
110
152
  data_decoded: DepositEvent;
111
153
  type_arguments: [];
112
154
  }
113
- class FreezeCapability<T0> {
114
- static TYPE_QNAME: string;
155
+ interface FreezeCapability<T0> {
115
156
  dummy_field: Boolean;
116
157
  }
117
- class MintCapability<T0> {
118
- static TYPE_QNAME: string;
158
+ namespace FreezeCapability {
159
+ const TYPE_QNAME = "0x1::coin::FreezeCapability";
160
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<FreezeCapability<T0>>;
161
+ }
162
+ interface MintCapability<T0> {
119
163
  dummy_field: Boolean;
120
164
  }
121
- class SupplyConfig {
122
- static TYPE_QNAME: string;
165
+ namespace MintCapability {
166
+ const TYPE_QNAME = "0x1::coin::MintCapability";
167
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<MintCapability<T0>>;
168
+ }
169
+ interface SupplyConfig {
123
170
  allow_upgrades: Boolean;
124
171
  }
125
- class WithdrawEvent {
126
- static TYPE_QNAME: string;
172
+ namespace SupplyConfig {
173
+ const TYPE_QNAME = "0x1::coin::SupplyConfig";
174
+ function type(): TypeDescriptor<SupplyConfig>;
175
+ }
176
+ interface WithdrawEvent {
127
177
  amount: bigint;
128
178
  }
179
+ namespace WithdrawEvent {
180
+ const TYPE_QNAME = "0x1::coin::WithdrawEvent";
181
+ function type(): TypeDescriptor<WithdrawEvent>;
182
+ }
129
183
  interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
130
184
  data_decoded: WithdrawEvent;
131
185
  type_arguments: [];
@@ -148,15 +202,21 @@ export declare namespace coin {
148
202
  }
149
203
  }
150
204
  export declare namespace guid {
151
- class GUID {
152
- static TYPE_QNAME: string;
205
+ interface GUID {
153
206
  id: guid.ID;
154
207
  }
155
- class ID {
156
- static TYPE_QNAME: string;
208
+ namespace GUID {
209
+ const TYPE_QNAME = "0x1::guid::GUID";
210
+ function type(): TypeDescriptor<GUID>;
211
+ }
212
+ interface ID {
157
213
  creation_num: bigint;
158
214
  addr: Address;
159
215
  }
216
+ namespace ID {
217
+ const TYPE_QNAME = "0x1::guid::ID";
218
+ function type(): TypeDescriptor<ID>;
219
+ }
160
220
  }
161
221
  export declare namespace hash { }
162
222
  export declare namespace util { }
@@ -164,19 +224,21 @@ export declare class block extends AptosBaseProcessor {
164
224
  constructor(options: AptosBindOptions);
165
225
  static DEFAULT_OPTIONS: AptosBindOptions;
166
226
  static bind(options?: Partial<AptosBindOptions>): block;
167
- onEventNewBlockEvent(func: (event: block.NewBlockEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): block;
168
- onEventUpdateEpochIntervalEvent(func: (event: block.UpdateEpochIntervalEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): block;
227
+ onEventNewBlockEvent(func: (event: block.NewBlockEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): block;
228
+ onEventUpdateEpochIntervalEvent(func: (event: block.UpdateEpochIntervalEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): block;
169
229
  }
170
230
  export declare namespace block {
171
- class BlockResource {
172
- static TYPE_QNAME: string;
231
+ interface BlockResource {
173
232
  height: bigint;
174
233
  epoch_interval: bigint;
175
234
  new_block_events: event.EventHandle<block.NewBlockEvent>;
176
235
  update_epoch_interval_events: event.EventHandle<block.UpdateEpochIntervalEvent>;
177
236
  }
178
- class NewBlockEvent {
179
- static TYPE_QNAME: string;
237
+ namespace BlockResource {
238
+ const TYPE_QNAME = "0x1::block::BlockResource";
239
+ function type(): TypeDescriptor<BlockResource>;
240
+ }
241
+ interface NewBlockEvent {
180
242
  hash: Address;
181
243
  epoch: bigint;
182
244
  round: bigint;
@@ -186,15 +248,22 @@ export declare namespace block {
186
248
  failed_proposer_indices: bigint[];
187
249
  time_microseconds: bigint;
188
250
  }
251
+ namespace NewBlockEvent {
252
+ const TYPE_QNAME = "0x1::block::NewBlockEvent";
253
+ function type(): TypeDescriptor<NewBlockEvent>;
254
+ }
189
255
  interface NewBlockEventInstance extends TypedEventInstance<NewBlockEvent> {
190
256
  data_decoded: NewBlockEvent;
191
257
  type_arguments: [];
192
258
  }
193
- class UpdateEpochIntervalEvent {
194
- static TYPE_QNAME: string;
259
+ interface UpdateEpochIntervalEvent {
195
260
  old_epoch_interval: bigint;
196
261
  new_epoch_interval: bigint;
197
262
  }
263
+ namespace UpdateEpochIntervalEvent {
264
+ const TYPE_QNAME = "0x1::block::UpdateEpochIntervalEvent";
265
+ function type(): TypeDescriptor<UpdateEpochIntervalEvent>;
266
+ }
198
267
  interface UpdateEpochIntervalEventInstance extends TypedEventInstance<UpdateEpochIntervalEvent> {
199
268
  data_decoded: UpdateEpochIntervalEvent;
200
269
  type_arguments: [];
@@ -203,11 +272,14 @@ export declare namespace block {
203
272
  export declare namespace debug { }
204
273
  export declare namespace error { }
205
274
  export declare namespace event {
206
- class EventHandle<T0> {
207
- static TYPE_QNAME: string;
275
+ interface EventHandle<T0> {
208
276
  counter: bigint;
209
277
  guid: guid.GUID;
210
278
  }
279
+ namespace EventHandle {
280
+ const TYPE_QNAME = "0x1::event::EventHandle";
281
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<EventHandle<T0>>;
282
+ }
211
283
  }
212
284
  export declare class stake extends AptosBaseProcessor {
213
285
  constructor(options: AptosBindOptions);
@@ -226,120 +298,158 @@ export declare class stake extends AptosBaseProcessor {
226
298
  onEntryUnlock(func: (call: stake.UnlockPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): stake;
227
299
  onEntryUpdateNetworkAndFullnodeAddresses(func: (call: stake.UpdateNetworkAndFullnodeAddressesPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): stake;
228
300
  onEntryWithdraw(func: (call: stake.WithdrawPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): stake;
229
- onEventRegisterValidatorCandidateEvent(func: (event: stake.RegisterValidatorCandidateEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
230
- onEventSetOperatorEvent(func: (event: stake.SetOperatorEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
231
- onEventAddStakeEvent(func: (event: stake.AddStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
232
- onEventReactivateStakeEvent(func: (event: stake.ReactivateStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
233
- onEventRotateConsensusKeyEvent(func: (event: stake.RotateConsensusKeyEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
234
- onEventUpdateNetworkAndFullnodeAddressesEvent(func: (event: stake.UpdateNetworkAndFullnodeAddressesEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
235
- onEventIncreaseLockupEvent(func: (event: stake.IncreaseLockupEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
236
- onEventJoinValidatorSetEvent(func: (event: stake.JoinValidatorSetEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
237
- onEventDistributeRewardsEvent(func: (event: stake.DistributeRewardsEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
238
- onEventUnlockStakeEvent(func: (event: stake.UnlockStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
239
- onEventWithdrawStakeEvent(func: (event: stake.WithdrawStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
240
- onEventLeaveValidatorSetEvent(func: (event: stake.LeaveValidatorSetEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): stake;
301
+ onEventRegisterValidatorCandidateEvent(func: (event: stake.RegisterValidatorCandidateEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
302
+ onEventSetOperatorEvent(func: (event: stake.SetOperatorEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
303
+ onEventAddStakeEvent(func: (event: stake.AddStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
304
+ onEventReactivateStakeEvent(func: (event: stake.ReactivateStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
305
+ onEventRotateConsensusKeyEvent(func: (event: stake.RotateConsensusKeyEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
306
+ onEventUpdateNetworkAndFullnodeAddressesEvent(func: (event: stake.UpdateNetworkAndFullnodeAddressesEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
307
+ onEventIncreaseLockupEvent(func: (event: stake.IncreaseLockupEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
308
+ onEventJoinValidatorSetEvent(func: (event: stake.JoinValidatorSetEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
309
+ onEventDistributeRewardsEvent(func: (event: stake.DistributeRewardsEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
310
+ onEventUnlockStakeEvent(func: (event: stake.UnlockStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
311
+ onEventWithdrawStakeEvent(func: (event: stake.WithdrawStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
312
+ onEventLeaveValidatorSetEvent(func: (event: stake.LeaveValidatorSetEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): stake;
241
313
  }
242
314
  export declare namespace stake {
243
- class AddStakeEvent {
244
- static TYPE_QNAME: string;
315
+ interface AddStakeEvent {
245
316
  pool_address: Address;
246
317
  amount_added: bigint;
247
318
  }
319
+ namespace AddStakeEvent {
320
+ const TYPE_QNAME = "0x1::stake::AddStakeEvent";
321
+ function type(): TypeDescriptor<AddStakeEvent>;
322
+ }
248
323
  interface AddStakeEventInstance extends TypedEventInstance<AddStakeEvent> {
249
324
  data_decoded: AddStakeEvent;
250
325
  type_arguments: [];
251
326
  }
252
- class AllowedValidators {
253
- static TYPE_QNAME: string;
327
+ interface AllowedValidators {
254
328
  accounts: Address[];
255
329
  }
256
- class AptosCoinCapabilities {
257
- static TYPE_QNAME: string;
330
+ namespace AllowedValidators {
331
+ const TYPE_QNAME = "0x1::stake::AllowedValidators";
332
+ function type(): TypeDescriptor<AllowedValidators>;
333
+ }
334
+ interface AptosCoinCapabilities {
258
335
  mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
259
336
  }
260
- class DistributeRewardsEvent {
261
- static TYPE_QNAME: string;
337
+ namespace AptosCoinCapabilities {
338
+ const TYPE_QNAME = "0x1::stake::AptosCoinCapabilities";
339
+ function type(): TypeDescriptor<AptosCoinCapabilities>;
340
+ }
341
+ interface DistributeRewardsEvent {
262
342
  pool_address: Address;
263
343
  rewards_amount: bigint;
264
344
  }
345
+ namespace DistributeRewardsEvent {
346
+ const TYPE_QNAME = "0x1::stake::DistributeRewardsEvent";
347
+ function type(): TypeDescriptor<DistributeRewardsEvent>;
348
+ }
265
349
  interface DistributeRewardsEventInstance extends TypedEventInstance<DistributeRewardsEvent> {
266
350
  data_decoded: DistributeRewardsEvent;
267
351
  type_arguments: [];
268
352
  }
269
- class IncreaseLockupEvent {
270
- static TYPE_QNAME: string;
353
+ interface IncreaseLockupEvent {
271
354
  pool_address: Address;
272
355
  old_locked_until_secs: bigint;
273
356
  new_locked_until_secs: bigint;
274
357
  }
358
+ namespace IncreaseLockupEvent {
359
+ const TYPE_QNAME = "0x1::stake::IncreaseLockupEvent";
360
+ function type(): TypeDescriptor<IncreaseLockupEvent>;
361
+ }
275
362
  interface IncreaseLockupEventInstance extends TypedEventInstance<IncreaseLockupEvent> {
276
363
  data_decoded: IncreaseLockupEvent;
277
364
  type_arguments: [];
278
365
  }
279
- class IndividualValidatorPerformance {
280
- static TYPE_QNAME: string;
366
+ interface IndividualValidatorPerformance {
281
367
  successful_proposals: bigint;
282
368
  failed_proposals: bigint;
283
369
  }
284
- class JoinValidatorSetEvent {
285
- static TYPE_QNAME: string;
370
+ namespace IndividualValidatorPerformance {
371
+ const TYPE_QNAME = "0x1::stake::IndividualValidatorPerformance";
372
+ function type(): TypeDescriptor<IndividualValidatorPerformance>;
373
+ }
374
+ interface JoinValidatorSetEvent {
286
375
  pool_address: Address;
287
376
  }
377
+ namespace JoinValidatorSetEvent {
378
+ const TYPE_QNAME = "0x1::stake::JoinValidatorSetEvent";
379
+ function type(): TypeDescriptor<JoinValidatorSetEvent>;
380
+ }
288
381
  interface JoinValidatorSetEventInstance extends TypedEventInstance<JoinValidatorSetEvent> {
289
382
  data_decoded: JoinValidatorSetEvent;
290
383
  type_arguments: [];
291
384
  }
292
- class LeaveValidatorSetEvent {
293
- static TYPE_QNAME: string;
385
+ interface LeaveValidatorSetEvent {
294
386
  pool_address: Address;
295
387
  }
388
+ namespace LeaveValidatorSetEvent {
389
+ const TYPE_QNAME = "0x1::stake::LeaveValidatorSetEvent";
390
+ function type(): TypeDescriptor<LeaveValidatorSetEvent>;
391
+ }
296
392
  interface LeaveValidatorSetEventInstance extends TypedEventInstance<LeaveValidatorSetEvent> {
297
393
  data_decoded: LeaveValidatorSetEvent;
298
394
  type_arguments: [];
299
395
  }
300
- class OwnerCapability {
301
- static TYPE_QNAME: string;
396
+ interface OwnerCapability {
302
397
  pool_address: Address;
303
398
  }
304
- class ReactivateStakeEvent {
305
- static TYPE_QNAME: string;
399
+ namespace OwnerCapability {
400
+ const TYPE_QNAME = "0x1::stake::OwnerCapability";
401
+ function type(): TypeDescriptor<OwnerCapability>;
402
+ }
403
+ interface ReactivateStakeEvent {
306
404
  pool_address: Address;
307
405
  amount: bigint;
308
406
  }
407
+ namespace ReactivateStakeEvent {
408
+ const TYPE_QNAME = "0x1::stake::ReactivateStakeEvent";
409
+ function type(): TypeDescriptor<ReactivateStakeEvent>;
410
+ }
309
411
  interface ReactivateStakeEventInstance extends TypedEventInstance<ReactivateStakeEvent> {
310
412
  data_decoded: ReactivateStakeEvent;
311
413
  type_arguments: [];
312
414
  }
313
- class RegisterValidatorCandidateEvent {
314
- static TYPE_QNAME: string;
415
+ interface RegisterValidatorCandidateEvent {
315
416
  pool_address: Address;
316
417
  }
418
+ namespace RegisterValidatorCandidateEvent {
419
+ const TYPE_QNAME = "0x1::stake::RegisterValidatorCandidateEvent";
420
+ function type(): TypeDescriptor<RegisterValidatorCandidateEvent>;
421
+ }
317
422
  interface RegisterValidatorCandidateEventInstance extends TypedEventInstance<RegisterValidatorCandidateEvent> {
318
423
  data_decoded: RegisterValidatorCandidateEvent;
319
424
  type_arguments: [];
320
425
  }
321
- class RotateConsensusKeyEvent {
322
- static TYPE_QNAME: string;
426
+ interface RotateConsensusKeyEvent {
323
427
  pool_address: Address;
324
428
  old_consensus_pubkey: string;
325
429
  new_consensus_pubkey: string;
326
430
  }
431
+ namespace RotateConsensusKeyEvent {
432
+ const TYPE_QNAME = "0x1::stake::RotateConsensusKeyEvent";
433
+ function type(): TypeDescriptor<RotateConsensusKeyEvent>;
434
+ }
327
435
  interface RotateConsensusKeyEventInstance extends TypedEventInstance<RotateConsensusKeyEvent> {
328
436
  data_decoded: RotateConsensusKeyEvent;
329
437
  type_arguments: [];
330
438
  }
331
- class SetOperatorEvent {
332
- static TYPE_QNAME: string;
439
+ interface SetOperatorEvent {
333
440
  pool_address: Address;
334
441
  old_operator: Address;
335
442
  new_operator: Address;
336
443
  }
444
+ namespace SetOperatorEvent {
445
+ const TYPE_QNAME = "0x1::stake::SetOperatorEvent";
446
+ function type(): TypeDescriptor<SetOperatorEvent>;
447
+ }
337
448
  interface SetOperatorEventInstance extends TypedEventInstance<SetOperatorEvent> {
338
449
  data_decoded: SetOperatorEvent;
339
450
  type_arguments: [];
340
451
  }
341
- class StakePool {
342
- static TYPE_QNAME: string;
452
+ interface StakePool {
343
453
  active: coin.Coin<aptos_coin.AptosCoin>;
344
454
  inactive: coin.Coin<aptos_coin.AptosCoin>;
345
455
  pending_active: coin.Coin<aptos_coin.AptosCoin>;
@@ -360,50 +470,71 @@ export declare namespace stake {
360
470
  withdraw_stake_events: event.EventHandle<stake.WithdrawStakeEvent>;
361
471
  leave_validator_set_events: event.EventHandle<stake.LeaveValidatorSetEvent>;
362
472
  }
363
- class UnlockStakeEvent {
364
- static TYPE_QNAME: string;
473
+ namespace StakePool {
474
+ const TYPE_QNAME = "0x1::stake::StakePool";
475
+ function type(): TypeDescriptor<StakePool>;
476
+ }
477
+ interface UnlockStakeEvent {
365
478
  pool_address: Address;
366
479
  amount_unlocked: bigint;
367
480
  }
481
+ namespace UnlockStakeEvent {
482
+ const TYPE_QNAME = "0x1::stake::UnlockStakeEvent";
483
+ function type(): TypeDescriptor<UnlockStakeEvent>;
484
+ }
368
485
  interface UnlockStakeEventInstance extends TypedEventInstance<UnlockStakeEvent> {
369
486
  data_decoded: UnlockStakeEvent;
370
487
  type_arguments: [];
371
488
  }
372
- class UpdateNetworkAndFullnodeAddressesEvent {
373
- static TYPE_QNAME: string;
489
+ interface UpdateNetworkAndFullnodeAddressesEvent {
374
490
  pool_address: Address;
375
491
  old_network_addresses: string;
376
492
  new_network_addresses: string;
377
493
  old_fullnode_addresses: string;
378
494
  new_fullnode_addresses: string;
379
495
  }
496
+ namespace UpdateNetworkAndFullnodeAddressesEvent {
497
+ const TYPE_QNAME = "0x1::stake::UpdateNetworkAndFullnodeAddressesEvent";
498
+ function type(): TypeDescriptor<UpdateNetworkAndFullnodeAddressesEvent>;
499
+ }
380
500
  interface UpdateNetworkAndFullnodeAddressesEventInstance extends TypedEventInstance<UpdateNetworkAndFullnodeAddressesEvent> {
381
501
  data_decoded: UpdateNetworkAndFullnodeAddressesEvent;
382
502
  type_arguments: [];
383
503
  }
384
- class ValidatorConfig {
385
- static TYPE_QNAME: string;
504
+ interface ValidatorConfig {
386
505
  consensus_pubkey: string;
387
506
  network_addresses: string;
388
507
  fullnode_addresses: string;
389
508
  validator_index: bigint;
390
509
  }
391
- class ValidatorFees {
392
- static TYPE_QNAME: string;
510
+ namespace ValidatorConfig {
511
+ const TYPE_QNAME = "0x1::stake::ValidatorConfig";
512
+ function type(): TypeDescriptor<ValidatorConfig>;
513
+ }
514
+ interface ValidatorFees {
393
515
  fees_table: table.Table<Address, coin.Coin<aptos_coin.AptosCoin>>;
394
516
  }
395
- class ValidatorInfo {
396
- static TYPE_QNAME: string;
517
+ namespace ValidatorFees {
518
+ const TYPE_QNAME = "0x1::stake::ValidatorFees";
519
+ function type(): TypeDescriptor<ValidatorFees>;
520
+ }
521
+ interface ValidatorInfo {
397
522
  addr: Address;
398
523
  voting_power: bigint;
399
524
  config: stake.ValidatorConfig;
400
525
  }
401
- class ValidatorPerformance {
402
- static TYPE_QNAME: string;
526
+ namespace ValidatorInfo {
527
+ const TYPE_QNAME = "0x1::stake::ValidatorInfo";
528
+ function type(): TypeDescriptor<ValidatorInfo>;
529
+ }
530
+ interface ValidatorPerformance {
403
531
  validators: stake.IndividualValidatorPerformance[];
404
532
  }
405
- class ValidatorSet {
406
- static TYPE_QNAME: string;
533
+ namespace ValidatorPerformance {
534
+ const TYPE_QNAME = "0x1::stake::ValidatorPerformance";
535
+ function type(): TypeDescriptor<ValidatorPerformance>;
536
+ }
537
+ interface ValidatorSet {
407
538
  consensus_scheme: number;
408
539
  active_validators: stake.ValidatorInfo[];
409
540
  pending_inactive: stake.ValidatorInfo[];
@@ -411,11 +542,18 @@ export declare namespace stake {
411
542
  total_voting_power: bigint;
412
543
  total_joining_power: bigint;
413
544
  }
414
- class WithdrawStakeEvent {
415
- static TYPE_QNAME: string;
545
+ namespace ValidatorSet {
546
+ const TYPE_QNAME = "0x1::stake::ValidatorSet";
547
+ function type(): TypeDescriptor<ValidatorSet>;
548
+ }
549
+ interface WithdrawStakeEvent {
416
550
  pool_address: Address;
417
551
  amount_withdrawn: bigint;
418
552
  }
553
+ namespace WithdrawStakeEvent {
554
+ const TYPE_QNAME = "0x1::stake::WithdrawStakeEvent";
555
+ function type(): TypeDescriptor<WithdrawStakeEvent>;
556
+ }
419
557
  interface WithdrawStakeEventInstance extends TypedEventInstance<WithdrawStakeEvent> {
420
558
  data_decoded: WithdrawStakeEvent;
421
559
  type_arguments: [];
@@ -474,14 +612,20 @@ export declare namespace stake {
474
612
  }
475
613
  }
476
614
  export declare namespace table {
477
- class Box<T0> {
478
- static TYPE_QNAME: string;
615
+ interface Box<T0> {
479
616
  val: T0;
480
617
  }
481
- class Table<T0, T1> {
482
- static TYPE_QNAME: string;
618
+ namespace Box {
619
+ const TYPE_QNAME = "0x1::table::Box";
620
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Box<T0>>;
621
+ }
622
+ interface Table<T0, T1> {
483
623
  handle: Address;
484
624
  }
625
+ namespace Table {
626
+ const TYPE_QNAME = "0x1::table::Table";
627
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Table<T0, T1>>;
628
+ }
485
629
  }
486
630
  export declare namespace math64 { }
487
631
  export declare class object_ extends AptosBaseProcessor {
@@ -489,87 +633,119 @@ export declare class object_ extends AptosBaseProcessor {
489
633
  static DEFAULT_OPTIONS: AptosBindOptions;
490
634
  static bind(options?: Partial<AptosBindOptions>): object_;
491
635
  onEntryTransferCall(func: (call: object_.TransferCallPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): object_;
492
- onEventTransferEvent(func: (event: object_.TransferEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): object_;
636
+ onEventTransferEvent(func: (event: object_.TransferEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): object_;
493
637
  }
494
638
  export declare namespace object_ {
495
- class ConstructorRef {
496
- static TYPE_QNAME: string;
639
+ interface ConstructorRef {
497
640
  self: Address;
498
641
  can_delete: Boolean;
499
642
  }
500
- class DeleteRef {
501
- static TYPE_QNAME: string;
643
+ namespace ConstructorRef {
644
+ const TYPE_QNAME = "0x1::object::ConstructorRef";
645
+ function type(): TypeDescriptor<ConstructorRef>;
646
+ }
647
+ interface DeleteRef {
502
648
  self: Address;
503
649
  }
504
- class ExtendRef {
505
- static TYPE_QNAME: string;
650
+ namespace DeleteRef {
651
+ const TYPE_QNAME = "0x1::object::DeleteRef";
652
+ function type(): TypeDescriptor<DeleteRef>;
653
+ }
654
+ interface ExtendRef {
506
655
  self: Address;
507
656
  }
508
- class LinearTransferRef {
509
- static TYPE_QNAME: string;
657
+ namespace ExtendRef {
658
+ const TYPE_QNAME = "0x1::object::ExtendRef";
659
+ function type(): TypeDescriptor<ExtendRef>;
660
+ }
661
+ interface LinearTransferRef {
510
662
  self: Address;
511
663
  owner: Address;
512
664
  }
513
- class Object<T0> {
514
- static TYPE_QNAME: string;
665
+ namespace LinearTransferRef {
666
+ const TYPE_QNAME = "0x1::object::LinearTransferRef";
667
+ function type(): TypeDescriptor<LinearTransferRef>;
668
+ }
669
+ interface Object<T0> {
515
670
  inner: Address;
516
671
  }
517
- class ObjectCore {
518
- static TYPE_QNAME: string;
672
+ namespace Object {
673
+ const TYPE_QNAME = "0x1::object::Object";
674
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Object<T0>>;
675
+ }
676
+ interface ObjectCore {
519
677
  guid_creation_num: bigint;
520
678
  owner: Address;
521
679
  allow_ungated_transfer: Boolean;
522
680
  transfer_events: event.EventHandle<object_.TransferEvent>;
523
681
  }
524
- class ObjectGroup {
525
- static TYPE_QNAME: string;
682
+ namespace ObjectCore {
683
+ const TYPE_QNAME = "0x1::object::ObjectCore";
684
+ function type(): TypeDescriptor<ObjectCore>;
685
+ }
686
+ interface ObjectGroup {
526
687
  dummy_field: Boolean;
527
688
  }
528
- class TransferEvent {
529
- static TYPE_QNAME: string;
689
+ namespace ObjectGroup {
690
+ const TYPE_QNAME = "0x1::object::ObjectGroup";
691
+ function type(): TypeDescriptor<ObjectGroup>;
692
+ }
693
+ interface TransferEvent {
530
694
  object: Address;
531
695
  from: Address;
532
696
  to: Address;
533
697
  }
698
+ namespace TransferEvent {
699
+ const TYPE_QNAME = "0x1::object::TransferEvent";
700
+ function type(): TypeDescriptor<TransferEvent>;
701
+ }
534
702
  interface TransferEventInstance extends TypedEventInstance<TransferEvent> {
535
703
  data_decoded: TransferEvent;
536
704
  type_arguments: [];
537
705
  }
538
- class TransferRef {
539
- static TYPE_QNAME: string;
706
+ interface TransferRef {
540
707
  self: Address;
541
708
  }
709
+ namespace TransferRef {
710
+ const TYPE_QNAME = "0x1::object::TransferRef";
711
+ function type(): TypeDescriptor<TransferRef>;
712
+ }
542
713
  interface TransferCallPayload extends TypedFunctionPayload<[Address, Address]> {
543
714
  arguments_decoded: [Address, Address];
544
715
  type_arguments: [];
545
716
  }
546
717
  }
547
718
  export declare namespace option {
548
- class Option<T0> {
549
- static TYPE_QNAME: string;
719
+ interface Option<T0> {
550
720
  vec: T0[] | string;
551
721
  }
722
+ namespace Option {
723
+ const TYPE_QNAME = "0x1::option::Option";
724
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Option<T0>>;
725
+ }
552
726
  }
553
727
  export declare namespace signer { }
554
728
  export declare namespace string_ {
555
- class String {
556
- static TYPE_QNAME: string;
729
+ interface String {
557
730
  bytes: string;
558
731
  }
732
+ namespace String {
733
+ const TYPE_QNAME = "0x1::string::String";
734
+ function type(): TypeDescriptor<String>;
735
+ }
559
736
  }
560
737
  export declare namespace vector { }
561
738
  export declare class voting extends AptosBaseProcessor {
562
739
  constructor(options: AptosBindOptions);
563
740
  static DEFAULT_OPTIONS: AptosBindOptions;
564
741
  static bind(options?: Partial<AptosBindOptions>): voting;
565
- onEventCreateProposalEvent(func: (event: voting.CreateProposalEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): voting;
566
- onEventRegisterForumEvent(func: (event: voting.RegisterForumEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): voting;
567
- onEventResolveProposal(func: (event: voting.ResolveProposalInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): voting;
568
- onEventVoteEvent(func: (event: voting.VoteEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): voting;
742
+ onEventCreateProposalEvent(func: (event: voting.CreateProposalEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): voting;
743
+ onEventRegisterForumEvent(func: (event: voting.RegisterForumEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): voting;
744
+ onEventResolveProposal(func: (event: voting.ResolveProposalInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): voting;
745
+ onEventVoteEvent(func: (event: voting.VoteEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): voting;
569
746
  }
570
747
  export declare namespace voting {
571
- class CreateProposalEvent {
572
- static TYPE_QNAME: string;
748
+ interface CreateProposalEvent {
573
749
  proposal_id: bigint;
574
750
  early_resolution_vote_threshold: option.Option<bigint>;
575
751
  execution_hash: string;
@@ -577,12 +753,15 @@ export declare namespace voting {
577
753
  metadata: simple_map.SimpleMap<string, string>;
578
754
  min_vote_threshold: bigint;
579
755
  }
756
+ namespace CreateProposalEvent {
757
+ const TYPE_QNAME = "0x1::voting::CreateProposalEvent";
758
+ function type(): TypeDescriptor<CreateProposalEvent>;
759
+ }
580
760
  interface CreateProposalEventInstance extends TypedEventInstance<CreateProposalEvent> {
581
761
  data_decoded: CreateProposalEvent;
582
762
  type_arguments: [];
583
763
  }
584
- class Proposal<T0> {
585
- static TYPE_QNAME: string;
764
+ interface Proposal<T0> {
586
765
  proposer: Address;
587
766
  execution_content: option.Option<T0>;
588
767
  metadata: simple_map.SimpleMap<string, string>;
@@ -596,48 +775,67 @@ export declare namespace voting {
596
775
  is_resolved: Boolean;
597
776
  resolution_time_secs: bigint;
598
777
  }
599
- class RegisterForumEvent {
600
- static TYPE_QNAME: string;
778
+ namespace Proposal {
779
+ const TYPE_QNAME = "0x1::voting::Proposal";
780
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Proposal<T0>>;
781
+ }
782
+ interface RegisterForumEvent {
601
783
  hosting_account: Address;
602
784
  proposal_type_info: type_info.TypeInfo;
603
785
  }
786
+ namespace RegisterForumEvent {
787
+ const TYPE_QNAME = "0x1::voting::RegisterForumEvent";
788
+ function type(): TypeDescriptor<RegisterForumEvent>;
789
+ }
604
790
  interface RegisterForumEventInstance extends TypedEventInstance<RegisterForumEvent> {
605
791
  data_decoded: RegisterForumEvent;
606
792
  type_arguments: [];
607
793
  }
608
- class ResolveProposal {
609
- static TYPE_QNAME: string;
794
+ interface ResolveProposal {
610
795
  proposal_id: bigint;
611
796
  yes_votes: bigint;
612
797
  no_votes: bigint;
613
798
  resolved_early: Boolean;
614
799
  }
800
+ namespace ResolveProposal {
801
+ const TYPE_QNAME = "0x1::voting::ResolveProposal";
802
+ function type(): TypeDescriptor<ResolveProposal>;
803
+ }
615
804
  interface ResolveProposalInstance extends TypedEventInstance<ResolveProposal> {
616
805
  data_decoded: ResolveProposal;
617
806
  type_arguments: [];
618
807
  }
619
- class VoteEvent {
620
- static TYPE_QNAME: string;
808
+ interface VoteEvent {
621
809
  proposal_id: bigint;
622
810
  num_votes: bigint;
623
811
  }
812
+ namespace VoteEvent {
813
+ const TYPE_QNAME = "0x1::voting::VoteEvent";
814
+ function type(): TypeDescriptor<VoteEvent>;
815
+ }
624
816
  interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
625
817
  data_decoded: VoteEvent;
626
818
  type_arguments: [];
627
819
  }
628
- class VotingEvents {
629
- static TYPE_QNAME: string;
820
+ interface VotingEvents {
630
821
  create_proposal_events: event.EventHandle<voting.CreateProposalEvent>;
631
822
  register_forum_events: event.EventHandle<voting.RegisterForumEvent>;
632
823
  resolve_proposal_events: event.EventHandle<voting.ResolveProposal>;
633
824
  vote_events: event.EventHandle<voting.VoteEvent>;
634
825
  }
635
- class VotingForum<T0> {
636
- static TYPE_QNAME: string;
826
+ namespace VotingEvents {
827
+ const TYPE_QNAME = "0x1::voting::VotingEvents";
828
+ function type(): TypeDescriptor<VotingEvents>;
829
+ }
830
+ interface VotingForum<T0> {
637
831
  proposals: table.Table<bigint, voting.Proposal<T0>>;
638
832
  events: voting.VotingEvents;
639
833
  next_proposal_id: bigint;
640
834
  }
835
+ namespace VotingForum {
836
+ const TYPE_QNAME = "0x1::voting::VotingForum";
837
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<VotingForum<T0>>;
838
+ }
641
839
  }
642
840
  export declare class account extends AptosBaseProcessor {
643
841
  constructor(options: AptosBindOptions);
@@ -651,12 +849,11 @@ export declare class account extends AptosBaseProcessor {
651
849
  onEntryRevokeSignerCapability(func: (call: account.RevokeSignerCapabilityPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): account;
652
850
  onEntryRotateAuthenticationKey(func: (call: account.RotateAuthenticationKeyPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): account;
653
851
  onEntryRotateAuthenticationKeyWithRotationCapability(func: (call: account.RotateAuthenticationKeyWithRotationCapabilityPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): account;
654
- onEventCoinRegisterEvent(func: (event: account.CoinRegisterEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): account;
655
- onEventKeyRotationEvent(func: (event: account.KeyRotationEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): account;
852
+ onEventCoinRegisterEvent(func: (event: account.CoinRegisterEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): account;
853
+ onEventKeyRotationEvent(func: (event: account.KeyRotationEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): account;
656
854
  }
657
855
  export declare namespace account {
658
- class Account {
659
- static TYPE_QNAME: string;
856
+ interface Account {
660
857
  authentication_key: string;
661
858
  sequence_number: bigint;
662
859
  guid_creation_num: bigint;
@@ -665,69 +862,106 @@ export declare namespace account {
665
862
  rotation_capability_offer: account.CapabilityOffer<account.RotationCapability>;
666
863
  signer_capability_offer: account.CapabilityOffer<account.SignerCapability>;
667
864
  }
668
- class CapabilityOffer<T0> {
669
- static TYPE_QNAME: string;
865
+ namespace Account {
866
+ const TYPE_QNAME = "0x1::account::Account";
867
+ function type(): TypeDescriptor<Account>;
868
+ }
869
+ interface CapabilityOffer<T0> {
670
870
  for: option.Option<Address>;
671
871
  }
672
- class CoinRegisterEvent {
673
- static TYPE_QNAME: string;
872
+ namespace CapabilityOffer {
873
+ const TYPE_QNAME = "0x1::account::CapabilityOffer";
874
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CapabilityOffer<T0>>;
875
+ }
876
+ interface CoinRegisterEvent {
674
877
  type_info: type_info.TypeInfo;
675
878
  }
879
+ namespace CoinRegisterEvent {
880
+ const TYPE_QNAME = "0x1::account::CoinRegisterEvent";
881
+ function type(): TypeDescriptor<CoinRegisterEvent>;
882
+ }
676
883
  interface CoinRegisterEventInstance extends TypedEventInstance<CoinRegisterEvent> {
677
884
  data_decoded: CoinRegisterEvent;
678
885
  type_arguments: [];
679
886
  }
680
- class KeyRotationEvent {
681
- static TYPE_QNAME: string;
887
+ interface KeyRotationEvent {
682
888
  old_authentication_key: string;
683
889
  new_authentication_key: string;
684
890
  }
891
+ namespace KeyRotationEvent {
892
+ const TYPE_QNAME = "0x1::account::KeyRotationEvent";
893
+ function type(): TypeDescriptor<KeyRotationEvent>;
894
+ }
685
895
  interface KeyRotationEventInstance extends TypedEventInstance<KeyRotationEvent> {
686
896
  data_decoded: KeyRotationEvent;
687
897
  type_arguments: [];
688
898
  }
689
- class OriginatingAddress {
690
- static TYPE_QNAME: string;
899
+ interface OriginatingAddress {
691
900
  address_map: table.Table<Address, Address>;
692
901
  }
693
- class RotationCapability {
694
- static TYPE_QNAME: string;
902
+ namespace OriginatingAddress {
903
+ const TYPE_QNAME = "0x1::account::OriginatingAddress";
904
+ function type(): TypeDescriptor<OriginatingAddress>;
905
+ }
906
+ interface RotationCapability {
695
907
  account: Address;
696
908
  }
697
- class RotationCapabilityOfferProofChallenge {
698
- static TYPE_QNAME: string;
909
+ namespace RotationCapability {
910
+ const TYPE_QNAME = "0x1::account::RotationCapability";
911
+ function type(): TypeDescriptor<RotationCapability>;
912
+ }
913
+ interface RotationCapabilityOfferProofChallenge {
699
914
  sequence_number: bigint;
700
915
  recipient_address: Address;
701
916
  }
702
- class RotationCapabilityOfferProofChallengeV2 {
703
- static TYPE_QNAME: string;
917
+ namespace RotationCapabilityOfferProofChallenge {
918
+ const TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallenge";
919
+ function type(): TypeDescriptor<RotationCapabilityOfferProofChallenge>;
920
+ }
921
+ interface RotationCapabilityOfferProofChallengeV2 {
704
922
  chain_id: number;
705
923
  sequence_number: bigint;
706
924
  source_address: Address;
707
925
  recipient_address: Address;
708
926
  }
709
- class RotationProofChallenge {
710
- static TYPE_QNAME: string;
927
+ namespace RotationCapabilityOfferProofChallengeV2 {
928
+ const TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallengeV2";
929
+ function type(): TypeDescriptor<RotationCapabilityOfferProofChallengeV2>;
930
+ }
931
+ interface RotationProofChallenge {
711
932
  sequence_number: bigint;
712
933
  originator: Address;
713
934
  current_auth_key: Address;
714
935
  new_public_key: string;
715
936
  }
716
- class SignerCapability {
717
- static TYPE_QNAME: string;
937
+ namespace RotationProofChallenge {
938
+ const TYPE_QNAME = "0x1::account::RotationProofChallenge";
939
+ function type(): TypeDescriptor<RotationProofChallenge>;
940
+ }
941
+ interface SignerCapability {
718
942
  account: Address;
719
943
  }
720
- class SignerCapabilityOfferProofChallenge {
721
- static TYPE_QNAME: string;
944
+ namespace SignerCapability {
945
+ const TYPE_QNAME = "0x1::account::SignerCapability";
946
+ function type(): TypeDescriptor<SignerCapability>;
947
+ }
948
+ interface SignerCapabilityOfferProofChallenge {
722
949
  sequence_number: bigint;
723
950
  recipient_address: Address;
724
951
  }
725
- class SignerCapabilityOfferProofChallengeV2 {
726
- static TYPE_QNAME: string;
952
+ namespace SignerCapabilityOfferProofChallenge {
953
+ const TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallenge";
954
+ function type(): TypeDescriptor<SignerCapabilityOfferProofChallenge>;
955
+ }
956
+ interface SignerCapabilityOfferProofChallengeV2 {
727
957
  sequence_number: bigint;
728
958
  source_address: Address;
729
959
  recipient_address: Address;
730
960
  }
961
+ namespace SignerCapabilityOfferProofChallengeV2 {
962
+ const TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallengeV2";
963
+ function type(): TypeDescriptor<SignerCapabilityOfferProofChallengeV2>;
964
+ }
731
965
  interface OfferRotationCapabilityPayload extends TypedFunctionPayload<[string, number, string, Address]> {
732
966
  arguments_decoded: [string, number, string, Address];
733
967
  type_arguments: [];
@@ -769,40 +1003,57 @@ export declare namespace account {
769
1003
  }
770
1004
  }
771
1005
  export declare namespace ed25519 {
772
- class Signature {
773
- static TYPE_QNAME: string;
1006
+ interface Signature {
774
1007
  bytes: string;
775
1008
  }
776
- class SignedMessage<T0> {
777
- static TYPE_QNAME: string;
1009
+ namespace Signature {
1010
+ const TYPE_QNAME = "0x1::ed25519::Signature";
1011
+ function type(): TypeDescriptor<Signature>;
1012
+ }
1013
+ interface SignedMessage<T0> {
778
1014
  type_info: type_info.TypeInfo;
779
1015
  inner: T0;
780
1016
  }
781
- class UnvalidatedPublicKey {
782
- static TYPE_QNAME: string;
1017
+ namespace SignedMessage {
1018
+ const TYPE_QNAME = "0x1::ed25519::SignedMessage";
1019
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SignedMessage<T0>>;
1020
+ }
1021
+ interface UnvalidatedPublicKey {
783
1022
  bytes: string;
784
1023
  }
785
- class ValidatedPublicKey {
786
- static TYPE_QNAME: string;
1024
+ namespace UnvalidatedPublicKey {
1025
+ const TYPE_QNAME = "0x1::ed25519::UnvalidatedPublicKey";
1026
+ function type(): TypeDescriptor<UnvalidatedPublicKey>;
1027
+ }
1028
+ interface ValidatedPublicKey {
787
1029
  bytes: string;
788
1030
  }
1031
+ namespace ValidatedPublicKey {
1032
+ const TYPE_QNAME = "0x1::ed25519::ValidatedPublicKey";
1033
+ function type(): TypeDescriptor<ValidatedPublicKey>;
1034
+ }
789
1035
  }
790
1036
  export declare namespace genesis {
791
- class AccountMap {
792
- static TYPE_QNAME: string;
1037
+ interface AccountMap {
793
1038
  account_address: Address;
794
1039
  balance: bigint;
795
1040
  }
796
- class EmployeeAccountMap {
797
- static TYPE_QNAME: string;
1041
+ namespace AccountMap {
1042
+ const TYPE_QNAME = "0x1::genesis::AccountMap";
1043
+ function type(): TypeDescriptor<AccountMap>;
1044
+ }
1045
+ interface EmployeeAccountMap {
798
1046
  accounts: Address[];
799
1047
  validator: genesis.ValidatorConfigurationWithCommission;
800
1048
  vesting_schedule_numerator: bigint[];
801
1049
  vesting_schedule_denominator: bigint;
802
1050
  beneficiary_resetter: Address;
803
1051
  }
804
- class ValidatorConfiguration {
805
- static TYPE_QNAME: string;
1052
+ namespace EmployeeAccountMap {
1053
+ const TYPE_QNAME = "0x1::genesis::EmployeeAccountMap";
1054
+ function type(): TypeDescriptor<EmployeeAccountMap>;
1055
+ }
1056
+ interface ValidatorConfiguration {
806
1057
  owner_address: Address;
807
1058
  operator_address: Address;
808
1059
  voter_address: Address;
@@ -812,12 +1063,19 @@ export declare namespace genesis {
812
1063
  network_addresses: string;
813
1064
  full_node_network_addresses: string;
814
1065
  }
815
- class ValidatorConfigurationWithCommission {
816
- static TYPE_QNAME: string;
1066
+ namespace ValidatorConfiguration {
1067
+ const TYPE_QNAME = "0x1::genesis::ValidatorConfiguration";
1068
+ function type(): TypeDescriptor<ValidatorConfiguration>;
1069
+ }
1070
+ interface ValidatorConfigurationWithCommission {
817
1071
  validator_config: genesis.ValidatorConfiguration;
818
1072
  commission_percentage: bigint;
819
1073
  join_during_genesis: Boolean;
820
1074
  }
1075
+ namespace ValidatorConfigurationWithCommission {
1076
+ const TYPE_QNAME = "0x1::genesis::ValidatorConfigurationWithCommission";
1077
+ function type(): TypeDescriptor<ValidatorConfigurationWithCommission>;
1078
+ }
821
1079
  }
822
1080
  export declare namespace math128 { }
823
1081
  export declare class version extends AptosBaseProcessor {
@@ -827,14 +1085,20 @@ export declare class version extends AptosBaseProcessor {
827
1085
  onEntrySetVersion(func: (call: version.SetVersionPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): version;
828
1086
  }
829
1087
  export declare namespace version {
830
- class SetVersionCapability {
831
- static TYPE_QNAME: string;
1088
+ interface SetVersionCapability {
832
1089
  dummy_field: Boolean;
833
1090
  }
834
- class Version {
835
- static TYPE_QNAME: string;
1091
+ namespace SetVersionCapability {
1092
+ const TYPE_QNAME = "0x1::version::SetVersionCapability";
1093
+ function type(): TypeDescriptor<SetVersionCapability>;
1094
+ }
1095
+ interface Version {
836
1096
  major: bigint;
837
1097
  }
1098
+ namespace Version {
1099
+ const TYPE_QNAME = "0x1::version::Version";
1100
+ function type(): TypeDescriptor<Version>;
1101
+ }
838
1102
  interface SetVersionPayload extends TypedFunctionPayload<[bigint]> {
839
1103
  arguments_decoded: [bigint];
840
1104
  type_arguments: [];
@@ -860,36 +1124,41 @@ export declare class vesting extends AptosBaseProcessor {
860
1124
  onEntryUpdateVoter(func: (call: vesting.UpdateVoterPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): vesting;
861
1125
  onEntryVest(func: (call: vesting.VestPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): vesting;
862
1126
  onEntryVestMany(func: (call: vesting.VestManyPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): vesting;
863
- onEventCreateVestingContractEvent(func: (event: vesting.CreateVestingContractEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
864
- onEventUpdateOperatorEvent(func: (event: vesting.UpdateOperatorEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
865
- onEventUpdateVoterEvent(func: (event: vesting.UpdateVoterEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
866
- onEventResetLockupEvent(func: (event: vesting.ResetLockupEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
867
- onEventSetBeneficiaryEvent(func: (event: vesting.SetBeneficiaryEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
868
- onEventUnlockRewardsEvent(func: (event: vesting.UnlockRewardsEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
869
- onEventVestEvent(func: (event: vesting.VestEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
870
- onEventDistributeEvent(func: (event: vesting.DistributeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
871
- onEventTerminateEvent(func: (event: vesting.TerminateEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
872
- onEventAdminWithdrawEvent(func: (event: vesting.AdminWithdrawEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): vesting;
1127
+ onEventCreateVestingContractEvent(func: (event: vesting.CreateVestingContractEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1128
+ onEventUpdateOperatorEvent(func: (event: vesting.UpdateOperatorEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1129
+ onEventUpdateVoterEvent(func: (event: vesting.UpdateVoterEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1130
+ onEventResetLockupEvent(func: (event: vesting.ResetLockupEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1131
+ onEventSetBeneficiaryEvent(func: (event: vesting.SetBeneficiaryEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1132
+ onEventUnlockRewardsEvent(func: (event: vesting.UnlockRewardsEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1133
+ onEventVestEvent(func: (event: vesting.VestEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1134
+ onEventDistributeEvent(func: (event: vesting.DistributeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1135
+ onEventTerminateEvent(func: (event: vesting.TerminateEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
1136
+ onEventAdminWithdrawEvent(func: (event: vesting.AdminWithdrawEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): vesting;
873
1137
  }
874
1138
  export declare namespace vesting {
875
- class AdminStore {
876
- static TYPE_QNAME: string;
1139
+ interface AdminStore {
877
1140
  vesting_contracts: Address[];
878
1141
  nonce: bigint;
879
1142
  create_events: event.EventHandle<vesting.CreateVestingContractEvent>;
880
1143
  }
881
- class AdminWithdrawEvent {
882
- static TYPE_QNAME: string;
1144
+ namespace AdminStore {
1145
+ const TYPE_QNAME = "0x1::vesting::AdminStore";
1146
+ function type(): TypeDescriptor<AdminStore>;
1147
+ }
1148
+ interface AdminWithdrawEvent {
883
1149
  admin: Address;
884
1150
  vesting_contract_address: Address;
885
1151
  amount: bigint;
886
1152
  }
1153
+ namespace AdminWithdrawEvent {
1154
+ const TYPE_QNAME = "0x1::vesting::AdminWithdrawEvent";
1155
+ function type(): TypeDescriptor<AdminWithdrawEvent>;
1156
+ }
887
1157
  interface AdminWithdrawEventInstance extends TypedEventInstance<AdminWithdrawEvent> {
888
1158
  data_decoded: AdminWithdrawEvent;
889
1159
  type_arguments: [];
890
1160
  }
891
- class CreateVestingContractEvent {
892
- static TYPE_QNAME: string;
1161
+ interface CreateVestingContractEvent {
893
1162
  operator: Address;
894
1163
  voter: Address;
895
1164
  grant_amount: bigint;
@@ -898,72 +1167,93 @@ export declare namespace vesting {
898
1167
  staking_pool_address: Address;
899
1168
  commission_percentage: bigint;
900
1169
  }
1170
+ namespace CreateVestingContractEvent {
1171
+ const TYPE_QNAME = "0x1::vesting::CreateVestingContractEvent";
1172
+ function type(): TypeDescriptor<CreateVestingContractEvent>;
1173
+ }
901
1174
  interface CreateVestingContractEventInstance extends TypedEventInstance<CreateVestingContractEvent> {
902
1175
  data_decoded: CreateVestingContractEvent;
903
1176
  type_arguments: [];
904
1177
  }
905
- class DistributeEvent {
906
- static TYPE_QNAME: string;
1178
+ interface DistributeEvent {
907
1179
  admin: Address;
908
1180
  vesting_contract_address: Address;
909
1181
  amount: bigint;
910
1182
  }
1183
+ namespace DistributeEvent {
1184
+ const TYPE_QNAME = "0x1::vesting::DistributeEvent";
1185
+ function type(): TypeDescriptor<DistributeEvent>;
1186
+ }
911
1187
  interface DistributeEventInstance extends TypedEventInstance<DistributeEvent> {
912
1188
  data_decoded: DistributeEvent;
913
1189
  type_arguments: [];
914
1190
  }
915
- class ResetLockupEvent {
916
- static TYPE_QNAME: string;
1191
+ interface ResetLockupEvent {
917
1192
  admin: Address;
918
1193
  vesting_contract_address: Address;
919
1194
  staking_pool_address: Address;
920
1195
  new_lockup_expiration_secs: bigint;
921
1196
  }
1197
+ namespace ResetLockupEvent {
1198
+ const TYPE_QNAME = "0x1::vesting::ResetLockupEvent";
1199
+ function type(): TypeDescriptor<ResetLockupEvent>;
1200
+ }
922
1201
  interface ResetLockupEventInstance extends TypedEventInstance<ResetLockupEvent> {
923
1202
  data_decoded: ResetLockupEvent;
924
1203
  type_arguments: [];
925
1204
  }
926
- class SetBeneficiaryEvent {
927
- static TYPE_QNAME: string;
1205
+ interface SetBeneficiaryEvent {
928
1206
  admin: Address;
929
1207
  vesting_contract_address: Address;
930
1208
  shareholder: Address;
931
1209
  old_beneficiary: Address;
932
1210
  new_beneficiary: Address;
933
1211
  }
1212
+ namespace SetBeneficiaryEvent {
1213
+ const TYPE_QNAME = "0x1::vesting::SetBeneficiaryEvent";
1214
+ function type(): TypeDescriptor<SetBeneficiaryEvent>;
1215
+ }
934
1216
  interface SetBeneficiaryEventInstance extends TypedEventInstance<SetBeneficiaryEvent> {
935
1217
  data_decoded: SetBeneficiaryEvent;
936
1218
  type_arguments: [];
937
1219
  }
938
- class StakingInfo {
939
- static TYPE_QNAME: string;
1220
+ interface StakingInfo {
940
1221
  pool_address: Address;
941
1222
  operator: Address;
942
1223
  voter: Address;
943
1224
  commission_percentage: bigint;
944
1225
  }
945
- class TerminateEvent {
946
- static TYPE_QNAME: string;
1226
+ namespace StakingInfo {
1227
+ const TYPE_QNAME = "0x1::vesting::StakingInfo";
1228
+ function type(): TypeDescriptor<StakingInfo>;
1229
+ }
1230
+ interface TerminateEvent {
947
1231
  admin: Address;
948
1232
  vesting_contract_address: Address;
949
1233
  }
1234
+ namespace TerminateEvent {
1235
+ const TYPE_QNAME = "0x1::vesting::TerminateEvent";
1236
+ function type(): TypeDescriptor<TerminateEvent>;
1237
+ }
950
1238
  interface TerminateEventInstance extends TypedEventInstance<TerminateEvent> {
951
1239
  data_decoded: TerminateEvent;
952
1240
  type_arguments: [];
953
1241
  }
954
- class UnlockRewardsEvent {
955
- static TYPE_QNAME: string;
1242
+ interface UnlockRewardsEvent {
956
1243
  admin: Address;
957
1244
  vesting_contract_address: Address;
958
1245
  staking_pool_address: Address;
959
1246
  amount: bigint;
960
1247
  }
1248
+ namespace UnlockRewardsEvent {
1249
+ const TYPE_QNAME = "0x1::vesting::UnlockRewardsEvent";
1250
+ function type(): TypeDescriptor<UnlockRewardsEvent>;
1251
+ }
961
1252
  interface UnlockRewardsEventInstance extends TypedEventInstance<UnlockRewardsEvent> {
962
1253
  data_decoded: UnlockRewardsEvent;
963
1254
  type_arguments: [];
964
1255
  }
965
- class UpdateOperatorEvent {
966
- static TYPE_QNAME: string;
1256
+ interface UpdateOperatorEvent {
967
1257
  admin: Address;
968
1258
  vesting_contract_address: Address;
969
1259
  staking_pool_address: Address;
@@ -971,40 +1261,52 @@ export declare namespace vesting {
971
1261
  new_operator: Address;
972
1262
  commission_percentage: bigint;
973
1263
  }
1264
+ namespace UpdateOperatorEvent {
1265
+ const TYPE_QNAME = "0x1::vesting::UpdateOperatorEvent";
1266
+ function type(): TypeDescriptor<UpdateOperatorEvent>;
1267
+ }
974
1268
  interface UpdateOperatorEventInstance extends TypedEventInstance<UpdateOperatorEvent> {
975
1269
  data_decoded: UpdateOperatorEvent;
976
1270
  type_arguments: [];
977
1271
  }
978
- class UpdateVoterEvent {
979
- static TYPE_QNAME: string;
1272
+ interface UpdateVoterEvent {
980
1273
  admin: Address;
981
1274
  vesting_contract_address: Address;
982
1275
  staking_pool_address: Address;
983
1276
  old_voter: Address;
984
1277
  new_voter: Address;
985
1278
  }
1279
+ namespace UpdateVoterEvent {
1280
+ const TYPE_QNAME = "0x1::vesting::UpdateVoterEvent";
1281
+ function type(): TypeDescriptor<UpdateVoterEvent>;
1282
+ }
986
1283
  interface UpdateVoterEventInstance extends TypedEventInstance<UpdateVoterEvent> {
987
1284
  data_decoded: UpdateVoterEvent;
988
1285
  type_arguments: [];
989
1286
  }
990
- class VestEvent {
991
- static TYPE_QNAME: string;
1287
+ interface VestEvent {
992
1288
  admin: Address;
993
1289
  vesting_contract_address: Address;
994
1290
  staking_pool_address: Address;
995
1291
  period_vested: bigint;
996
1292
  amount: bigint;
997
1293
  }
1294
+ namespace VestEvent {
1295
+ const TYPE_QNAME = "0x1::vesting::VestEvent";
1296
+ function type(): TypeDescriptor<VestEvent>;
1297
+ }
998
1298
  interface VestEventInstance extends TypedEventInstance<VestEvent> {
999
1299
  data_decoded: VestEvent;
1000
1300
  type_arguments: [];
1001
1301
  }
1002
- class VestingAccountManagement {
1003
- static TYPE_QNAME: string;
1302
+ interface VestingAccountManagement {
1004
1303
  roles: simple_map.SimpleMap<string, Address>;
1005
1304
  }
1006
- class VestingContract {
1007
- static TYPE_QNAME: string;
1305
+ namespace VestingAccountManagement {
1306
+ const TYPE_QNAME = "0x1::vesting::VestingAccountManagement";
1307
+ function type(): TypeDescriptor<VestingAccountManagement>;
1308
+ }
1309
+ interface VestingContract {
1008
1310
  state: bigint;
1009
1311
  admin: Address;
1010
1312
  grant_pool: pool_u64.Pool;
@@ -1024,13 +1326,20 @@ export declare namespace vesting {
1024
1326
  terminate_events: event.EventHandle<vesting.TerminateEvent>;
1025
1327
  admin_withdraw_events: event.EventHandle<vesting.AdminWithdrawEvent>;
1026
1328
  }
1027
- class VestingSchedule {
1028
- static TYPE_QNAME: string;
1329
+ namespace VestingContract {
1330
+ const TYPE_QNAME = "0x1::vesting::VestingContract";
1331
+ function type(): TypeDescriptor<VestingContract>;
1332
+ }
1333
+ interface VestingSchedule {
1029
1334
  schedule: fixed_point32.FixedPoint32[];
1030
1335
  start_timestamp_secs: bigint;
1031
1336
  period_duration: bigint;
1032
1337
  last_vested_period: bigint;
1033
1338
  }
1339
+ namespace VestingSchedule {
1340
+ const TYPE_QNAME = "0x1::vesting::VestingSchedule";
1341
+ function type(): TypeDescriptor<VestingSchedule>;
1342
+ }
1034
1343
  interface AdminWithdrawPayload extends TypedFunctionPayload<[Address]> {
1035
1344
  arguments_decoded: [Address];
1036
1345
  type_arguments: [];
@@ -1097,47 +1406,70 @@ export declare namespace vesting {
1097
1406
  }
1098
1407
  }
1099
1408
  export declare namespace bls12381 {
1100
- class AggrOrMultiSignature {
1101
- static TYPE_QNAME: string;
1409
+ interface AggrOrMultiSignature {
1102
1410
  bytes: string;
1103
1411
  }
1104
- class AggrPublicKeysWithPoP {
1105
- static TYPE_QNAME: string;
1412
+ namespace AggrOrMultiSignature {
1413
+ const TYPE_QNAME = "0x1::bls12381::AggrOrMultiSignature";
1414
+ function type(): TypeDescriptor<AggrOrMultiSignature>;
1415
+ }
1416
+ interface AggrPublicKeysWithPoP {
1106
1417
  bytes: string;
1107
1418
  }
1108
- class ProofOfPossession {
1109
- static TYPE_QNAME: string;
1419
+ namespace AggrPublicKeysWithPoP {
1420
+ const TYPE_QNAME = "0x1::bls12381::AggrPublicKeysWithPoP";
1421
+ function type(): TypeDescriptor<AggrPublicKeysWithPoP>;
1422
+ }
1423
+ interface ProofOfPossession {
1110
1424
  bytes: string;
1111
1425
  }
1112
- class PublicKey {
1113
- static TYPE_QNAME: string;
1426
+ namespace ProofOfPossession {
1427
+ const TYPE_QNAME = "0x1::bls12381::ProofOfPossession";
1428
+ function type(): TypeDescriptor<ProofOfPossession>;
1429
+ }
1430
+ interface PublicKey {
1114
1431
  bytes: string;
1115
1432
  }
1116
- class PublicKeyWithPoP {
1117
- static TYPE_QNAME: string;
1433
+ namespace PublicKey {
1434
+ const TYPE_QNAME = "0x1::bls12381::PublicKey";
1435
+ function type(): TypeDescriptor<PublicKey>;
1436
+ }
1437
+ interface PublicKeyWithPoP {
1118
1438
  bytes: string;
1119
1439
  }
1120
- class Signature {
1121
- static TYPE_QNAME: string;
1440
+ namespace PublicKeyWithPoP {
1441
+ const TYPE_QNAME = "0x1::bls12381::PublicKeyWithPoP";
1442
+ function type(): TypeDescriptor<PublicKeyWithPoP>;
1443
+ }
1444
+ interface Signature {
1122
1445
  bytes: string;
1123
1446
  }
1447
+ namespace Signature {
1448
+ const TYPE_QNAME = "0x1::bls12381::Signature";
1449
+ function type(): TypeDescriptor<Signature>;
1450
+ }
1124
1451
  }
1125
1452
  export declare namespace chain_id {
1126
- class ChainId {
1127
- static TYPE_QNAME: string;
1453
+ interface ChainId {
1128
1454
  id: number;
1129
1455
  }
1456
+ namespace ChainId {
1457
+ const TYPE_QNAME = "0x1::chain_id::ChainId";
1458
+ function type(): TypeDescriptor<ChainId>;
1459
+ }
1130
1460
  }
1131
1461
  export declare namespace features {
1132
- class Features {
1133
- static TYPE_QNAME: string;
1462
+ interface Features {
1134
1463
  features: string;
1135
1464
  }
1465
+ namespace Features {
1466
+ const TYPE_QNAME = "0x1::features::Features";
1467
+ function type(): TypeDescriptor<Features>;
1468
+ }
1136
1469
  }
1137
1470
  export declare namespace from_bcs { }
1138
1471
  export declare namespace pool_u64 {
1139
- class Pool {
1140
- static TYPE_QNAME: string;
1472
+ interface Pool {
1141
1473
  shareholders_limit: bigint;
1142
1474
  total_coins: bigint;
1143
1475
  total_shares: bigint;
@@ -1145,38 +1477,57 @@ export declare namespace pool_u64 {
1145
1477
  shareholders: Address[];
1146
1478
  scaling_factor: bigint;
1147
1479
  }
1480
+ namespace Pool {
1481
+ const TYPE_QNAME = "0x1::pool_u64::Pool";
1482
+ function type(): TypeDescriptor<Pool>;
1483
+ }
1148
1484
  }
1149
1485
  export declare namespace secp256k1 {
1150
- class ECDSARawPublicKey {
1151
- static TYPE_QNAME: string;
1486
+ interface ECDSARawPublicKey {
1152
1487
  bytes: string;
1153
1488
  }
1154
- class ECDSASignature {
1155
- static TYPE_QNAME: string;
1489
+ namespace ECDSARawPublicKey {
1490
+ const TYPE_QNAME = "0x1::secp256k1::ECDSARawPublicKey";
1491
+ function type(): TypeDescriptor<ECDSARawPublicKey>;
1492
+ }
1493
+ interface ECDSASignature {
1156
1494
  bytes: string;
1157
1495
  }
1496
+ namespace ECDSASignature {
1497
+ const TYPE_QNAME = "0x1::secp256k1::ECDSASignature";
1498
+ function type(): TypeDescriptor<ECDSASignature>;
1499
+ }
1158
1500
  }
1159
1501
  export declare namespace timestamp {
1160
- class CurrentTimeMicroseconds {
1161
- static TYPE_QNAME: string;
1502
+ interface CurrentTimeMicroseconds {
1162
1503
  microseconds: bigint;
1163
1504
  }
1505
+ namespace CurrentTimeMicroseconds {
1506
+ const TYPE_QNAME = "0x1::timestamp::CurrentTimeMicroseconds";
1507
+ function type(): TypeDescriptor<CurrentTimeMicroseconds>;
1508
+ }
1164
1509
  }
1165
1510
  export declare namespace type_info {
1166
- class TypeInfo {
1167
- static TYPE_QNAME: string;
1511
+ interface TypeInfo {
1168
1512
  account_address: Address;
1169
1513
  module_name: string;
1170
1514
  struct_name: string;
1171
1515
  }
1516
+ namespace TypeInfo {
1517
+ const TYPE_QNAME = "0x1::type_info::TypeInfo";
1518
+ function type(): TypeDescriptor<TypeInfo>;
1519
+ }
1172
1520
  }
1173
1521
  export declare namespace aggregator {
1174
- class Aggregator {
1175
- static TYPE_QNAME: string;
1522
+ interface Aggregator {
1176
1523
  handle: Address;
1177
1524
  key: Address;
1178
1525
  limit: bigint;
1179
1526
  }
1527
+ namespace Aggregator {
1528
+ const TYPE_QNAME = "0x1::aggregator::Aggregator";
1529
+ function type(): TypeDescriptor<Aggregator>;
1530
+ }
1180
1531
  }
1181
1532
  export declare class aptos_coin extends AptosBaseProcessor {
1182
1533
  constructor(options: AptosBindOptions);
@@ -1187,22 +1538,34 @@ export declare class aptos_coin extends AptosBaseProcessor {
1187
1538
  onEntryMint(func: (call: aptos_coin.MintPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_coin;
1188
1539
  }
1189
1540
  export declare namespace aptos_coin {
1190
- class AptosCoin {
1191
- static TYPE_QNAME: string;
1541
+ interface AptosCoin {
1192
1542
  dummy_field: Boolean;
1193
1543
  }
1194
- class DelegatedMintCapability {
1195
- static TYPE_QNAME: string;
1544
+ namespace AptosCoin {
1545
+ const TYPE_QNAME = "0x1::aptos_coin::AptosCoin";
1546
+ function type(): TypeDescriptor<AptosCoin>;
1547
+ }
1548
+ interface DelegatedMintCapability {
1196
1549
  to: Address;
1197
1550
  }
1198
- class Delegations {
1199
- static TYPE_QNAME: string;
1551
+ namespace DelegatedMintCapability {
1552
+ const TYPE_QNAME = "0x1::aptos_coin::DelegatedMintCapability";
1553
+ function type(): TypeDescriptor<DelegatedMintCapability>;
1554
+ }
1555
+ interface Delegations {
1200
1556
  inner: aptos_coin.DelegatedMintCapability[];
1201
1557
  }
1202
- class MintCapStore {
1203
- static TYPE_QNAME: string;
1558
+ namespace Delegations {
1559
+ const TYPE_QNAME = "0x1::aptos_coin::Delegations";
1560
+ function type(): TypeDescriptor<Delegations>;
1561
+ }
1562
+ interface MintCapStore {
1204
1563
  mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
1205
1564
  }
1565
+ namespace MintCapStore {
1566
+ const TYPE_QNAME = "0x1::aptos_coin::MintCapStore";
1567
+ function type(): TypeDescriptor<MintCapStore>;
1568
+ }
1206
1569
  interface ClaimMintCapabilityPayload extends TypedFunctionPayload<[]> {
1207
1570
  arguments_decoded: [];
1208
1571
  type_arguments: [];
@@ -1218,65 +1581,94 @@ export declare namespace aptos_coin {
1218
1581
  }
1219
1582
  export declare namespace aptos_hash { }
1220
1583
  export declare namespace big_vector {
1221
- class BigVector<T0> {
1222
- static TYPE_QNAME: string;
1584
+ interface BigVector<T0> {
1223
1585
  buckets: table_with_length.TableWithLength<bigint, T0[] | string>;
1224
1586
  end_index: bigint;
1225
1587
  bucket_size: bigint;
1226
1588
  }
1589
+ namespace BigVector {
1590
+ const TYPE_QNAME = "0x1::big_vector::BigVector";
1591
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<BigVector<T0>>;
1592
+ }
1227
1593
  }
1228
1594
  export declare namespace bit_vector {
1229
- class BitVector {
1230
- static TYPE_QNAME: string;
1595
+ interface BitVector {
1231
1596
  length: bigint;
1232
1597
  bit_field: Boolean[];
1233
1598
  }
1599
+ namespace BitVector {
1600
+ const TYPE_QNAME = "0x1::bit_vector::BitVector";
1601
+ function type(): TypeDescriptor<BitVector>;
1602
+ }
1234
1603
  }
1235
1604
  export declare namespace capability {
1236
- class Cap<T0> {
1237
- static TYPE_QNAME: string;
1605
+ interface Cap<T0> {
1238
1606
  root: Address;
1239
1607
  }
1240
- class CapDelegateState<T0> {
1241
- static TYPE_QNAME: string;
1608
+ namespace Cap {
1609
+ const TYPE_QNAME = "0x1::capability::Cap";
1610
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Cap<T0>>;
1611
+ }
1612
+ interface CapDelegateState<T0> {
1242
1613
  root: Address;
1243
1614
  }
1244
- class CapState<T0> {
1245
- static TYPE_QNAME: string;
1615
+ namespace CapDelegateState {
1616
+ const TYPE_QNAME = "0x1::capability::CapDelegateState";
1617
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CapDelegateState<T0>>;
1618
+ }
1619
+ interface CapState<T0> {
1246
1620
  delegates: Address[];
1247
1621
  }
1248
- class LinearCap<T0> {
1249
- static TYPE_QNAME: string;
1622
+ namespace CapState {
1623
+ const TYPE_QNAME = "0x1::capability::CapState";
1624
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CapState<T0>>;
1625
+ }
1626
+ interface LinearCap<T0> {
1250
1627
  root: Address;
1251
1628
  }
1629
+ namespace LinearCap {
1630
+ const TYPE_QNAME = "0x1::capability::LinearCap";
1631
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<LinearCap<T0>>;
1632
+ }
1252
1633
  }
1253
1634
  export declare namespace comparator {
1254
- class Result {
1255
- static TYPE_QNAME: string;
1635
+ interface Result {
1256
1636
  inner: number;
1257
1637
  }
1638
+ namespace Result {
1639
+ const TYPE_QNAME = "0x1::comparator::Result";
1640
+ function type(): TypeDescriptor<Result>;
1641
+ }
1258
1642
  }
1259
1643
  export declare namespace math_fixed { }
1260
1644
  export declare namespace simple_map {
1261
- class Element<T0, T1> {
1262
- static TYPE_QNAME: string;
1645
+ interface Element<T0, T1> {
1263
1646
  key: T0;
1264
1647
  value: T1;
1265
1648
  }
1266
- class SimpleMap<T0, T1> {
1267
- static TYPE_QNAME: string;
1649
+ namespace Element {
1650
+ const TYPE_QNAME = "0x1::simple_map::Element";
1651
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Element<T0, T1>>;
1652
+ }
1653
+ interface SimpleMap<T0, T1> {
1268
1654
  data: simple_map.Element<T0, T1>[];
1269
1655
  }
1656
+ namespace SimpleMap {
1657
+ const TYPE_QNAME = "0x1::simple_map::SimpleMap";
1658
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<SimpleMap<T0, T1>>;
1659
+ }
1270
1660
  }
1271
1661
  export declare namespace smart_table {
1272
- class Entry<T0, T1> {
1273
- static TYPE_QNAME: string;
1662
+ interface Entry<T0, T1> {
1274
1663
  hash: bigint;
1275
1664
  key: T0;
1276
1665
  value: T1;
1277
1666
  }
1278
- class SmartTable<T0, T1> {
1279
- static TYPE_QNAME: string;
1667
+ namespace Entry {
1668
+ const TYPE_QNAME = "0x1::smart_table::Entry";
1669
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Entry<T0, T1>>;
1670
+ }
1671
+ interface SmartTable<T0, T1> {
1280
1672
  buckets: table_with_length.TableWithLength<bigint, smart_table.Entry<T0, T1>[]>;
1281
1673
  num_buckets: bigint;
1282
1674
  level: number;
@@ -1284,21 +1676,30 @@ export declare namespace smart_table {
1284
1676
  split_load_threshold: number;
1285
1677
  target_bucket_size: bigint;
1286
1678
  }
1679
+ namespace SmartTable {
1680
+ const TYPE_QNAME = "0x1::smart_table::SmartTable";
1681
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<SmartTable<T0, T1>>;
1682
+ }
1287
1683
  }
1288
1684
  export declare namespace storage_gas {
1289
- class GasCurve {
1290
- static TYPE_QNAME: string;
1685
+ interface GasCurve {
1291
1686
  min_gas: bigint;
1292
1687
  max_gas: bigint;
1293
1688
  points: storage_gas.Point[];
1294
1689
  }
1295
- class Point {
1296
- static TYPE_QNAME: string;
1690
+ namespace GasCurve {
1691
+ const TYPE_QNAME = "0x1::storage_gas::GasCurve";
1692
+ function type(): TypeDescriptor<GasCurve>;
1693
+ }
1694
+ interface Point {
1297
1695
  x: bigint;
1298
1696
  y: bigint;
1299
1697
  }
1300
- class StorageGas {
1301
- static TYPE_QNAME: string;
1698
+ namespace Point {
1699
+ const TYPE_QNAME = "0x1::storage_gas::Point";
1700
+ function type(): TypeDescriptor<Point>;
1701
+ }
1702
+ interface StorageGas {
1302
1703
  per_item_read: bigint;
1303
1704
  per_item_create: bigint;
1304
1705
  per_item_write: bigint;
@@ -1306,47 +1707,72 @@ export declare namespace storage_gas {
1306
1707
  per_byte_create: bigint;
1307
1708
  per_byte_write: bigint;
1308
1709
  }
1309
- class StorageGasConfig {
1310
- static TYPE_QNAME: string;
1710
+ namespace StorageGas {
1711
+ const TYPE_QNAME = "0x1::storage_gas::StorageGas";
1712
+ function type(): TypeDescriptor<StorageGas>;
1713
+ }
1714
+ interface StorageGasConfig {
1311
1715
  item_config: storage_gas.UsageGasConfig;
1312
1716
  byte_config: storage_gas.UsageGasConfig;
1313
1717
  }
1314
- class UsageGasConfig {
1315
- static TYPE_QNAME: string;
1718
+ namespace StorageGasConfig {
1719
+ const TYPE_QNAME = "0x1::storage_gas::StorageGasConfig";
1720
+ function type(): TypeDescriptor<StorageGasConfig>;
1721
+ }
1722
+ interface UsageGasConfig {
1316
1723
  target_usage: bigint;
1317
1724
  read_curve: storage_gas.GasCurve;
1318
1725
  create_curve: storage_gas.GasCurve;
1319
1726
  write_curve: storage_gas.GasCurve;
1320
1727
  }
1728
+ namespace UsageGasConfig {
1729
+ const TYPE_QNAME = "0x1::storage_gas::UsageGasConfig";
1730
+ function type(): TypeDescriptor<UsageGasConfig>;
1731
+ }
1321
1732
  }
1322
1733
  export declare namespace chain_status {
1323
- class GenesisEndMarker {
1324
- static TYPE_QNAME: string;
1734
+ interface GenesisEndMarker {
1325
1735
  dummy_field: Boolean;
1326
1736
  }
1737
+ namespace GenesisEndMarker {
1738
+ const TYPE_QNAME = "0x1::chain_status::GenesisEndMarker";
1739
+ function type(): TypeDescriptor<GenesisEndMarker>;
1740
+ }
1327
1741
  }
1328
1742
  export declare namespace copyable_any {
1329
- class Any {
1330
- static TYPE_QNAME: string;
1743
+ interface Any {
1331
1744
  type_name: string;
1332
1745
  data: string;
1333
1746
  }
1747
+ namespace Any {
1748
+ const TYPE_QNAME = "0x1::copyable_any::Any";
1749
+ function type(): TypeDescriptor<Any>;
1750
+ }
1334
1751
  }
1335
1752
  export declare namespace gas_schedule {
1336
- class GasEntry {
1337
- static TYPE_QNAME: string;
1753
+ interface GasEntry {
1338
1754
  key: string;
1339
1755
  val: bigint;
1340
1756
  }
1341
- class GasSchedule {
1342
- static TYPE_QNAME: string;
1757
+ namespace GasEntry {
1758
+ const TYPE_QNAME = "0x1::gas_schedule::GasEntry";
1759
+ function type(): TypeDescriptor<GasEntry>;
1760
+ }
1761
+ interface GasSchedule {
1343
1762
  entries: gas_schedule.GasEntry[];
1344
1763
  }
1345
- class GasScheduleV2 {
1346
- static TYPE_QNAME: string;
1764
+ namespace GasSchedule {
1765
+ const TYPE_QNAME = "0x1::gas_schedule::GasSchedule";
1766
+ function type(): TypeDescriptor<GasSchedule>;
1767
+ }
1768
+ interface GasScheduleV2 {
1347
1769
  feature_version: bigint;
1348
1770
  entries: gas_schedule.GasEntry[];
1349
1771
  }
1772
+ namespace GasScheduleV2 {
1773
+ const TYPE_QNAME = "0x1::gas_schedule::GasScheduleV2";
1774
+ function type(): TypeDescriptor<GasScheduleV2>;
1775
+ }
1350
1776
  }
1351
1777
  export declare class managed_coin extends AptosBaseProcessor {
1352
1778
  constructor(options: AptosBindOptions);
@@ -1358,12 +1784,15 @@ export declare class managed_coin extends AptosBaseProcessor {
1358
1784
  onEntryRegister(func: (call: managed_coin.RegisterPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): managed_coin;
1359
1785
  }
1360
1786
  export declare namespace managed_coin {
1361
- class Capabilities<T0> {
1362
- static TYPE_QNAME: string;
1787
+ interface Capabilities<T0> {
1363
1788
  burn_cap: coin.BurnCapability<T0>;
1364
1789
  freeze_cap: coin.FreezeCapability<T0>;
1365
1790
  mint_cap: coin.MintCapability<T0>;
1366
1791
  }
1792
+ namespace Capabilities {
1793
+ const TYPE_QNAME = "0x1::managed_coin::Capabilities";
1794
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Capabilities<T0>>;
1795
+ }
1367
1796
  interface BurnPayload<T0 = any> extends TypedFunctionPayload<[bigint]> {
1368
1797
  arguments_decoded: [bigint];
1369
1798
  type_arguments: [string];
@@ -1382,27 +1811,39 @@ export declare namespace managed_coin {
1382
1811
  }
1383
1812
  }
1384
1813
  export declare namespace ristretto255 {
1385
- class CompressedRistretto {
1386
- static TYPE_QNAME: string;
1814
+ interface CompressedRistretto {
1387
1815
  data: string;
1388
1816
  }
1389
- class RistrettoPoint {
1390
- static TYPE_QNAME: string;
1817
+ namespace CompressedRistretto {
1818
+ const TYPE_QNAME = "0x1::ristretto255::CompressedRistretto";
1819
+ function type(): TypeDescriptor<CompressedRistretto>;
1820
+ }
1821
+ interface RistrettoPoint {
1391
1822
  handle: bigint;
1392
1823
  }
1393
- class Scalar {
1394
- static TYPE_QNAME: string;
1824
+ namespace RistrettoPoint {
1825
+ const TYPE_QNAME = "0x1::ristretto255::RistrettoPoint";
1826
+ function type(): TypeDescriptor<RistrettoPoint>;
1827
+ }
1828
+ interface Scalar {
1395
1829
  data: string;
1396
1830
  }
1831
+ namespace Scalar {
1832
+ const TYPE_QNAME = "0x1::ristretto255::Scalar";
1833
+ function type(): TypeDescriptor<Scalar>;
1834
+ }
1397
1835
  }
1398
1836
  export declare namespace smart_vector {
1399
- class SmartVector<T0> {
1400
- static TYPE_QNAME: string;
1837
+ interface SmartVector<T0> {
1401
1838
  inline_vec: T0[] | string;
1402
1839
  big_vec: big_vector.BigVector<T0>[];
1403
1840
  inline_capacity: option.Option<bigint>;
1404
1841
  bucket_size: option.Option<bigint>;
1405
1842
  }
1843
+ namespace SmartVector {
1844
+ const TYPE_QNAME = "0x1::smart_vector::SmartVector";
1845
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SmartVector<T0>>;
1846
+ }
1406
1847
  }
1407
1848
  export declare class aptos_account extends AptosBaseProcessor {
1408
1849
  constructor(options: AptosBindOptions);
@@ -1414,22 +1855,28 @@ export declare class aptos_account extends AptosBaseProcessor {
1414
1855
  onEntrySetAllowDirectCoinTransfers(func: (call: aptos_account.SetAllowDirectCoinTransfersPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_account;
1415
1856
  onEntryTransfer(func: (call: aptos_account.TransferPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_account;
1416
1857
  onEntryTransferCoins(func: (call: aptos_account.TransferCoinsPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_account;
1417
- onEventDirectCoinTransferConfigUpdatedEvent(func: (event: aptos_account.DirectCoinTransferConfigUpdatedEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): aptos_account;
1858
+ onEventDirectCoinTransferConfigUpdatedEvent(func: (event: aptos_account.DirectCoinTransferConfigUpdatedEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): aptos_account;
1418
1859
  }
1419
1860
  export declare namespace aptos_account {
1420
- class DirectCoinTransferConfigUpdatedEvent {
1421
- static TYPE_QNAME: string;
1861
+ interface DirectCoinTransferConfigUpdatedEvent {
1422
1862
  new_allow_direct_transfers: Boolean;
1423
1863
  }
1864
+ namespace DirectCoinTransferConfigUpdatedEvent {
1865
+ const TYPE_QNAME = "0x1::aptos_account::DirectCoinTransferConfigUpdatedEvent";
1866
+ function type(): TypeDescriptor<DirectCoinTransferConfigUpdatedEvent>;
1867
+ }
1424
1868
  interface DirectCoinTransferConfigUpdatedEventInstance extends TypedEventInstance<DirectCoinTransferConfigUpdatedEvent> {
1425
1869
  data_decoded: DirectCoinTransferConfigUpdatedEvent;
1426
1870
  type_arguments: [];
1427
1871
  }
1428
- class DirectTransferConfig {
1429
- static TYPE_QNAME: string;
1872
+ interface DirectTransferConfig {
1430
1873
  allow_arbitrary_coin_transfers: Boolean;
1431
1874
  update_coin_transfer_events: event.EventHandle<aptos_account.DirectCoinTransferConfigUpdatedEvent>;
1432
1875
  }
1876
+ namespace DirectTransferConfig {
1877
+ const TYPE_QNAME = "0x1::aptos_account::DirectTransferConfig";
1878
+ function type(): TypeDescriptor<DirectTransferConfig>;
1879
+ }
1433
1880
  interface BatchTransferPayload extends TypedFunctionPayload<[Address[], bigint[]]> {
1434
1881
  arguments_decoded: [Address[], bigint[]];
1435
1882
  type_arguments: [];
@@ -1457,24 +1904,36 @@ export declare namespace aptos_account {
1457
1904
  }
1458
1905
  export declare namespace create_signer { }
1459
1906
  export declare namespace fixed_point32 {
1460
- class FixedPoint32 {
1461
- static TYPE_QNAME: string;
1907
+ interface FixedPoint32 {
1462
1908
  value: bigint;
1463
1909
  }
1910
+ namespace FixedPoint32 {
1911
+ const TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
1912
+ function type(): TypeDescriptor<FixedPoint32>;
1913
+ }
1464
1914
  }
1465
1915
  export declare namespace multi_ed25519 {
1466
- class Signature {
1467
- static TYPE_QNAME: string;
1916
+ interface Signature {
1468
1917
  bytes: string;
1469
1918
  }
1470
- class UnvalidatedPublicKey {
1471
- static TYPE_QNAME: string;
1919
+ namespace Signature {
1920
+ const TYPE_QNAME = "0x1::multi_ed25519::Signature";
1921
+ function type(): TypeDescriptor<Signature>;
1922
+ }
1923
+ interface UnvalidatedPublicKey {
1472
1924
  bytes: string;
1473
1925
  }
1474
- class ValidatedPublicKey {
1475
- static TYPE_QNAME: string;
1926
+ namespace UnvalidatedPublicKey {
1927
+ const TYPE_QNAME = "0x1::multi_ed25519::UnvalidatedPublicKey";
1928
+ function type(): TypeDescriptor<UnvalidatedPublicKey>;
1929
+ }
1930
+ interface ValidatedPublicKey {
1476
1931
  bytes: string;
1477
1932
  }
1933
+ namespace ValidatedPublicKey {
1934
+ const TYPE_QNAME = "0x1::multi_ed25519::ValidatedPublicKey";
1935
+ function type(): TypeDescriptor<ValidatedPublicKey>;
1936
+ }
1478
1937
  }
1479
1938
  export declare class staking_proxy extends AptosBaseProcessor {
1480
1939
  constructor(options: AptosBindOptions);
@@ -1524,24 +1983,32 @@ export declare namespace staking_proxy {
1524
1983
  }
1525
1984
  }
1526
1985
  export declare namespace state_storage {
1527
- class GasParameter {
1528
- static TYPE_QNAME: string;
1986
+ interface GasParameter {
1529
1987
  usage: state_storage.Usage;
1530
1988
  }
1531
- class StateStorageUsage {
1532
- static TYPE_QNAME: string;
1989
+ namespace GasParameter {
1990
+ const TYPE_QNAME = "0x1::state_storage::GasParameter";
1991
+ function type(): TypeDescriptor<GasParameter>;
1992
+ }
1993
+ interface StateStorageUsage {
1533
1994
  epoch: bigint;
1534
1995
  usage: state_storage.Usage;
1535
1996
  }
1536
- class Usage {
1537
- static TYPE_QNAME: string;
1997
+ namespace StateStorageUsage {
1998
+ const TYPE_QNAME = "0x1::state_storage::StateStorageUsage";
1999
+ function type(): TypeDescriptor<StateStorageUsage>;
2000
+ }
2001
+ interface Usage {
1538
2002
  items: bigint;
1539
2003
  bytes: bigint;
1540
2004
  }
2005
+ namespace Usage {
2006
+ const TYPE_QNAME = "0x1::state_storage::Usage";
2007
+ function type(): TypeDescriptor<Usage>;
2008
+ }
1541
2009
  }
1542
2010
  export declare namespace staking_config {
1543
- class StakingConfig {
1544
- static TYPE_QNAME: string;
2011
+ interface StakingConfig {
1545
2012
  minimum_stake: bigint;
1546
2013
  maximum_stake: bigint;
1547
2014
  recurring_lockup_duration_secs: bigint;
@@ -1550,6 +2017,10 @@ export declare namespace staking_config {
1550
2017
  rewards_rate_denominator: bigint;
1551
2018
  voting_power_increase_limit: bigint;
1552
2019
  }
2020
+ namespace StakingConfig {
2021
+ const TYPE_QNAME = "0x1::staking_config::StakingConfig";
2022
+ function type(): TypeDescriptor<StakingConfig>;
2023
+ }
1553
2024
  }
1554
2025
  export declare class delegation_pool extends AptosBaseProcessor {
1555
2026
  constructor(options: AptosBindOptions);
@@ -1563,26 +2034,28 @@ export declare class delegation_pool extends AptosBaseProcessor {
1563
2034
  onEntrySynchronizeDelegationPool(func: (call: delegation_pool.SynchronizeDelegationPoolPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
1564
2035
  onEntryUnlock(func: (call: delegation_pool.UnlockPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
1565
2036
  onEntryWithdraw(func: (call: delegation_pool.WithdrawPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
1566
- onEventAddStakeEvent(func: (event: delegation_pool.AddStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): delegation_pool;
1567
- onEventReactivateStakeEvent(func: (event: delegation_pool.ReactivateStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): delegation_pool;
1568
- onEventUnlockStakeEvent(func: (event: delegation_pool.UnlockStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): delegation_pool;
1569
- onEventWithdrawStakeEvent(func: (event: delegation_pool.WithdrawStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): delegation_pool;
1570
- onEventDistributeCommissionEvent(func: (event: delegation_pool.DistributeCommissionEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): delegation_pool;
2037
+ onEventAddStakeEvent(func: (event: delegation_pool.AddStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
2038
+ onEventReactivateStakeEvent(func: (event: delegation_pool.ReactivateStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
2039
+ onEventUnlockStakeEvent(func: (event: delegation_pool.UnlockStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
2040
+ onEventWithdrawStakeEvent(func: (event: delegation_pool.WithdrawStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
2041
+ onEventDistributeCommissionEvent(func: (event: delegation_pool.DistributeCommissionEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): delegation_pool;
1571
2042
  }
1572
2043
  export declare namespace delegation_pool {
1573
- class AddStakeEvent {
1574
- static TYPE_QNAME: string;
2044
+ interface AddStakeEvent {
1575
2045
  pool_address: Address;
1576
2046
  delegator_address: Address;
1577
2047
  amount_added: bigint;
1578
2048
  add_stake_fee: bigint;
1579
2049
  }
2050
+ namespace AddStakeEvent {
2051
+ const TYPE_QNAME = "0x1::delegation_pool::AddStakeEvent";
2052
+ function type(): TypeDescriptor<AddStakeEvent>;
2053
+ }
1580
2054
  interface AddStakeEventInstance extends TypedEventInstance<AddStakeEvent> {
1581
2055
  data_decoded: AddStakeEvent;
1582
2056
  type_arguments: [];
1583
2057
  }
1584
- class DelegationPool {
1585
- static TYPE_QNAME: string;
2058
+ interface DelegationPool {
1586
2059
  active_shares: pool_u64_unbound.Pool;
1587
2060
  observed_lockup_cycle: delegation_pool.ObservedLockupCycle;
1588
2061
  inactive_shares: table.Table<delegation_pool.ObservedLockupCycle, pool_u64_unbound.Pool>;
@@ -1596,51 +2069,73 @@ export declare namespace delegation_pool {
1596
2069
  withdraw_stake_events: event.EventHandle<delegation_pool.WithdrawStakeEvent>;
1597
2070
  distribute_commission_events: event.EventHandle<delegation_pool.DistributeCommissionEvent>;
1598
2071
  }
1599
- class DelegationPoolOwnership {
1600
- static TYPE_QNAME: string;
2072
+ namespace DelegationPool {
2073
+ const TYPE_QNAME = "0x1::delegation_pool::DelegationPool";
2074
+ function type(): TypeDescriptor<DelegationPool>;
2075
+ }
2076
+ interface DelegationPoolOwnership {
1601
2077
  pool_address: Address;
1602
2078
  }
1603
- class DistributeCommissionEvent {
1604
- static TYPE_QNAME: string;
2079
+ namespace DelegationPoolOwnership {
2080
+ const TYPE_QNAME = "0x1::delegation_pool::DelegationPoolOwnership";
2081
+ function type(): TypeDescriptor<DelegationPoolOwnership>;
2082
+ }
2083
+ interface DistributeCommissionEvent {
1605
2084
  pool_address: Address;
1606
2085
  operator: Address;
1607
2086
  commission_active: bigint;
1608
2087
  commission_pending_inactive: bigint;
1609
2088
  }
2089
+ namespace DistributeCommissionEvent {
2090
+ const TYPE_QNAME = "0x1::delegation_pool::DistributeCommissionEvent";
2091
+ function type(): TypeDescriptor<DistributeCommissionEvent>;
2092
+ }
1610
2093
  interface DistributeCommissionEventInstance extends TypedEventInstance<DistributeCommissionEvent> {
1611
2094
  data_decoded: DistributeCommissionEvent;
1612
2095
  type_arguments: [];
1613
2096
  }
1614
- class ObservedLockupCycle {
1615
- static TYPE_QNAME: string;
2097
+ interface ObservedLockupCycle {
1616
2098
  index: bigint;
1617
2099
  }
1618
- class ReactivateStakeEvent {
1619
- static TYPE_QNAME: string;
2100
+ namespace ObservedLockupCycle {
2101
+ const TYPE_QNAME = "0x1::delegation_pool::ObservedLockupCycle";
2102
+ function type(): TypeDescriptor<ObservedLockupCycle>;
2103
+ }
2104
+ interface ReactivateStakeEvent {
1620
2105
  pool_address: Address;
1621
2106
  delegator_address: Address;
1622
2107
  amount_reactivated: bigint;
1623
2108
  }
2109
+ namespace ReactivateStakeEvent {
2110
+ const TYPE_QNAME = "0x1::delegation_pool::ReactivateStakeEvent";
2111
+ function type(): TypeDescriptor<ReactivateStakeEvent>;
2112
+ }
1624
2113
  interface ReactivateStakeEventInstance extends TypedEventInstance<ReactivateStakeEvent> {
1625
2114
  data_decoded: ReactivateStakeEvent;
1626
2115
  type_arguments: [];
1627
2116
  }
1628
- class UnlockStakeEvent {
1629
- static TYPE_QNAME: string;
2117
+ interface UnlockStakeEvent {
1630
2118
  pool_address: Address;
1631
2119
  delegator_address: Address;
1632
2120
  amount_unlocked: bigint;
1633
2121
  }
2122
+ namespace UnlockStakeEvent {
2123
+ const TYPE_QNAME = "0x1::delegation_pool::UnlockStakeEvent";
2124
+ function type(): TypeDescriptor<UnlockStakeEvent>;
2125
+ }
1634
2126
  interface UnlockStakeEventInstance extends TypedEventInstance<UnlockStakeEvent> {
1635
2127
  data_decoded: UnlockStakeEvent;
1636
2128
  type_arguments: [];
1637
2129
  }
1638
- class WithdrawStakeEvent {
1639
- static TYPE_QNAME: string;
2130
+ interface WithdrawStakeEvent {
1640
2131
  pool_address: Address;
1641
2132
  delegator_address: Address;
1642
2133
  amount_withdrawn: bigint;
1643
2134
  }
2135
+ namespace WithdrawStakeEvent {
2136
+ const TYPE_QNAME = "0x1::delegation_pool::WithdrawStakeEvent";
2137
+ function type(): TypeDescriptor<WithdrawStakeEvent>;
2138
+ }
1644
2139
  interface WithdrawStakeEventInstance extends TypedEventInstance<WithdrawStakeEvent> {
1645
2140
  data_decoded: WithdrawStakeEvent;
1646
2141
  type_arguments: [];
@@ -1682,39 +2177,54 @@ export declare class reconfiguration extends AptosBaseProcessor {
1682
2177
  constructor(options: AptosBindOptions);
1683
2178
  static DEFAULT_OPTIONS: AptosBindOptions;
1684
2179
  static bind(options?: Partial<AptosBindOptions>): reconfiguration;
1685
- onEventNewEpochEvent(func: (event: reconfiguration.NewEpochEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): reconfiguration;
2180
+ onEventNewEpochEvent(func: (event: reconfiguration.NewEpochEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): reconfiguration;
1686
2181
  }
1687
2182
  export declare namespace reconfiguration {
1688
- class Configuration {
1689
- static TYPE_QNAME: string;
2183
+ interface Configuration {
1690
2184
  epoch: bigint;
1691
2185
  last_reconfiguration_time: bigint;
1692
2186
  events: event.EventHandle<reconfiguration.NewEpochEvent>;
1693
2187
  }
1694
- class DisableReconfiguration {
1695
- static TYPE_QNAME: string;
2188
+ namespace Configuration {
2189
+ const TYPE_QNAME = "0x1::reconfiguration::Configuration";
2190
+ function type(): TypeDescriptor<Configuration>;
2191
+ }
2192
+ interface DisableReconfiguration {
1696
2193
  dummy_field: Boolean;
1697
2194
  }
1698
- class NewEpochEvent {
1699
- static TYPE_QNAME: string;
2195
+ namespace DisableReconfiguration {
2196
+ const TYPE_QNAME = "0x1::reconfiguration::DisableReconfiguration";
2197
+ function type(): TypeDescriptor<DisableReconfiguration>;
2198
+ }
2199
+ interface NewEpochEvent {
1700
2200
  epoch: bigint;
1701
2201
  }
2202
+ namespace NewEpochEvent {
2203
+ const TYPE_QNAME = "0x1::reconfiguration::NewEpochEvent";
2204
+ function type(): TypeDescriptor<NewEpochEvent>;
2205
+ }
1702
2206
  interface NewEpochEventInstance extends TypedEventInstance<NewEpochEvent> {
1703
2207
  data_decoded: NewEpochEvent;
1704
2208
  type_arguments: [];
1705
2209
  }
1706
2210
  }
1707
2211
  export declare namespace transaction_fee {
1708
- class AptosCoinCapabilities {
1709
- static TYPE_QNAME: string;
2212
+ interface AptosCoinCapabilities {
1710
2213
  burn_cap: coin.BurnCapability<aptos_coin.AptosCoin>;
1711
2214
  }
1712
- class CollectedFeesPerBlock {
1713
- static TYPE_QNAME: string;
2215
+ namespace AptosCoinCapabilities {
2216
+ const TYPE_QNAME = "0x1::transaction_fee::AptosCoinCapabilities";
2217
+ function type(): TypeDescriptor<AptosCoinCapabilities>;
2218
+ }
2219
+ interface CollectedFeesPerBlock {
1714
2220
  amount: coin.AggregatableCoin<aptos_coin.AptosCoin>;
1715
2221
  proposer: option.Option<Address>;
1716
2222
  burn_percentage: number;
1717
2223
  }
2224
+ namespace CollectedFeesPerBlock {
2225
+ const TYPE_QNAME = "0x1::transaction_fee::CollectedFeesPerBlock";
2226
+ function type(): TypeDescriptor<CollectedFeesPerBlock>;
2227
+ }
1718
2228
  }
1719
2229
  export declare class aptos_governance extends AptosBaseProcessor {
1720
2230
  constructor(options: AptosBindOptions);
@@ -1724,74 +2234,101 @@ export declare class aptos_governance extends AptosBaseProcessor {
1724
2234
  onEntryCreateProposal(func: (call: aptos_governance.CreateProposalPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_governance;
1725
2235
  onEntryCreateProposalV2(func: (call: aptos_governance.CreateProposalV2Payload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_governance;
1726
2236
  onEntryVote(func: (call: aptos_governance.VotePayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): aptos_governance;
1727
- onEventCreateProposalEvent(func: (event: aptos_governance.CreateProposalEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): aptos_governance;
1728
- onEventUpdateConfigEvent(func: (event: aptos_governance.UpdateConfigEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): aptos_governance;
1729
- onEventVoteEvent(func: (event: aptos_governance.VoteEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): aptos_governance;
2237
+ onEventCreateProposalEvent(func: (event: aptos_governance.CreateProposalEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): aptos_governance;
2238
+ onEventUpdateConfigEvent(func: (event: aptos_governance.UpdateConfigEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): aptos_governance;
2239
+ onEventVoteEvent(func: (event: aptos_governance.VoteEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): aptos_governance;
1730
2240
  }
1731
2241
  export declare namespace aptos_governance {
1732
- class ApprovedExecutionHashes {
1733
- static TYPE_QNAME: string;
2242
+ interface ApprovedExecutionHashes {
1734
2243
  hashes: simple_map.SimpleMap<bigint, string>;
1735
2244
  }
1736
- class CreateProposalEvent {
1737
- static TYPE_QNAME: string;
2245
+ namespace ApprovedExecutionHashes {
2246
+ const TYPE_QNAME = "0x1::aptos_governance::ApprovedExecutionHashes";
2247
+ function type(): TypeDescriptor<ApprovedExecutionHashes>;
2248
+ }
2249
+ interface CreateProposalEvent {
1738
2250
  proposer: Address;
1739
2251
  stake_pool: Address;
1740
2252
  proposal_id: bigint;
1741
2253
  execution_hash: string;
1742
2254
  proposal_metadata: simple_map.SimpleMap<string, string>;
1743
2255
  }
2256
+ namespace CreateProposalEvent {
2257
+ const TYPE_QNAME = "0x1::aptos_governance::CreateProposalEvent";
2258
+ function type(): TypeDescriptor<CreateProposalEvent>;
2259
+ }
1744
2260
  interface CreateProposalEventInstance extends TypedEventInstance<CreateProposalEvent> {
1745
2261
  data_decoded: CreateProposalEvent;
1746
2262
  type_arguments: [];
1747
2263
  }
1748
- class GovernanceConfig {
1749
- static TYPE_QNAME: string;
2264
+ interface GovernanceConfig {
1750
2265
  min_voting_threshold: bigint;
1751
2266
  required_proposer_stake: bigint;
1752
2267
  voting_duration_secs: bigint;
1753
2268
  }
1754
- class GovernanceEvents {
1755
- static TYPE_QNAME: string;
2269
+ namespace GovernanceConfig {
2270
+ const TYPE_QNAME = "0x1::aptos_governance::GovernanceConfig";
2271
+ function type(): TypeDescriptor<GovernanceConfig>;
2272
+ }
2273
+ interface GovernanceEvents {
1756
2274
  create_proposal_events: event.EventHandle<aptos_governance.CreateProposalEvent>;
1757
2275
  update_config_events: event.EventHandle<aptos_governance.UpdateConfigEvent>;
1758
2276
  vote_events: event.EventHandle<aptos_governance.VoteEvent>;
1759
2277
  }
1760
- class GovernanceResponsbility {
1761
- static TYPE_QNAME: string;
2278
+ namespace GovernanceEvents {
2279
+ const TYPE_QNAME = "0x1::aptos_governance::GovernanceEvents";
2280
+ function type(): TypeDescriptor<GovernanceEvents>;
2281
+ }
2282
+ interface GovernanceResponsbility {
1762
2283
  signer_caps: simple_map.SimpleMap<Address, account.SignerCapability>;
1763
2284
  }
1764
- class RecordKey {
1765
- static TYPE_QNAME: string;
2285
+ namespace GovernanceResponsbility {
2286
+ const TYPE_QNAME = "0x1::aptos_governance::GovernanceResponsbility";
2287
+ function type(): TypeDescriptor<GovernanceResponsbility>;
2288
+ }
2289
+ interface RecordKey {
1766
2290
  stake_pool: Address;
1767
2291
  proposal_id: bigint;
1768
2292
  }
1769
- class UpdateConfigEvent {
1770
- static TYPE_QNAME: string;
2293
+ namespace RecordKey {
2294
+ const TYPE_QNAME = "0x1::aptos_governance::RecordKey";
2295
+ function type(): TypeDescriptor<RecordKey>;
2296
+ }
2297
+ interface UpdateConfigEvent {
1771
2298
  min_voting_threshold: bigint;
1772
2299
  required_proposer_stake: bigint;
1773
2300
  voting_duration_secs: bigint;
1774
2301
  }
2302
+ namespace UpdateConfigEvent {
2303
+ const TYPE_QNAME = "0x1::aptos_governance::UpdateConfigEvent";
2304
+ function type(): TypeDescriptor<UpdateConfigEvent>;
2305
+ }
1775
2306
  interface UpdateConfigEventInstance extends TypedEventInstance<UpdateConfigEvent> {
1776
2307
  data_decoded: UpdateConfigEvent;
1777
2308
  type_arguments: [];
1778
2309
  }
1779
- class VoteEvent {
1780
- static TYPE_QNAME: string;
2310
+ interface VoteEvent {
1781
2311
  proposal_id: bigint;
1782
2312
  voter: Address;
1783
2313
  stake_pool: Address;
1784
2314
  num_votes: bigint;
1785
2315
  should_pass: Boolean;
1786
2316
  }
2317
+ namespace VoteEvent {
2318
+ const TYPE_QNAME = "0x1::aptos_governance::VoteEvent";
2319
+ function type(): TypeDescriptor<VoteEvent>;
2320
+ }
1787
2321
  interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
1788
2322
  data_decoded: VoteEvent;
1789
2323
  type_arguments: [];
1790
2324
  }
1791
- class VotingRecords {
1792
- static TYPE_QNAME: string;
2325
+ interface VotingRecords {
1793
2326
  votes: table.Table<aptos_governance.RecordKey, Boolean>;
1794
2327
  }
2328
+ namespace VotingRecords {
2329
+ const TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
2330
+ function type(): TypeDescriptor<VotingRecords>;
2331
+ }
1795
2332
  interface AddApprovedScriptHashScriptPayload extends TypedFunctionPayload<[bigint]> {
1796
2333
  arguments_decoded: [bigint];
1797
2334
  type_arguments: [];
@@ -1810,10 +2347,13 @@ export declare namespace aptos_governance {
1810
2347
  }
1811
2348
  }
1812
2349
  export declare namespace consensus_config {
1813
- class ConsensusConfig {
1814
- static TYPE_QNAME: string;
2350
+ interface ConsensusConfig {
1815
2351
  config: string;
1816
2352
  }
2353
+ namespace ConsensusConfig {
2354
+ const TYPE_QNAME = "0x1::consensus_config::ConsensusConfig";
2355
+ function type(): TypeDescriptor<ConsensusConfig>;
2356
+ }
1817
2357
  }
1818
2358
  export declare class multisig_account extends AptosBaseProcessor {
1819
2359
  constructor(options: AptosBindOptions);
@@ -1834,62 +2374,76 @@ export declare class multisig_account extends AptosBaseProcessor {
1834
2374
  onEntryUpdateMetadata(func: (call: multisig_account.UpdateMetadataPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
1835
2375
  onEntryUpdateSignaturesRequired(func: (call: multisig_account.UpdateSignaturesRequiredPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
1836
2376
  onEntryVoteTransanction(func: (call: multisig_account.VoteTransanctionPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
1837
- onEventAddOwnersEvent(func: (event: multisig_account.AddOwnersEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1838
- onEventRemoveOwnersEvent(func: (event: multisig_account.RemoveOwnersEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1839
- onEventUpdateSignaturesRequiredEvent(func: (event: multisig_account.UpdateSignaturesRequiredEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1840
- onEventCreateTransactionEvent(func: (event: multisig_account.CreateTransactionEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1841
- onEventVoteEvent(func: (event: multisig_account.VoteEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1842
- onEventExecuteRejectedTransactionEvent(func: (event: multisig_account.ExecuteRejectedTransactionEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1843
- onEventTransactionExecutionSucceededEvent(func: (event: multisig_account.TransactionExecutionSucceededEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1844
- onEventTransactionExecutionFailedEvent(func: (event: multisig_account.TransactionExecutionFailedEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
1845
- onEventMetadataUpdatedEvent(func: (event: multisig_account.MetadataUpdatedEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): multisig_account;
2377
+ onEventAddOwnersEvent(func: (event: multisig_account.AddOwnersEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2378
+ onEventRemoveOwnersEvent(func: (event: multisig_account.RemoveOwnersEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2379
+ onEventUpdateSignaturesRequiredEvent(func: (event: multisig_account.UpdateSignaturesRequiredEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2380
+ onEventCreateTransactionEvent(func: (event: multisig_account.CreateTransactionEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2381
+ onEventVoteEvent(func: (event: multisig_account.VoteEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2382
+ onEventExecuteRejectedTransactionEvent(func: (event: multisig_account.ExecuteRejectedTransactionEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2383
+ onEventTransactionExecutionSucceededEvent(func: (event: multisig_account.TransactionExecutionSucceededEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2384
+ onEventTransactionExecutionFailedEvent(func: (event: multisig_account.TransactionExecutionFailedEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
2385
+ onEventMetadataUpdatedEvent(func: (event: multisig_account.MetadataUpdatedEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): multisig_account;
1846
2386
  }
1847
2387
  export declare namespace multisig_account {
1848
- class AddOwnersEvent {
1849
- static TYPE_QNAME: string;
2388
+ interface AddOwnersEvent {
1850
2389
  owners_added: Address[];
1851
2390
  }
2391
+ namespace AddOwnersEvent {
2392
+ const TYPE_QNAME = "0x1::multisig_account::AddOwnersEvent";
2393
+ function type(): TypeDescriptor<AddOwnersEvent>;
2394
+ }
1852
2395
  interface AddOwnersEventInstance extends TypedEventInstance<AddOwnersEvent> {
1853
2396
  data_decoded: AddOwnersEvent;
1854
2397
  type_arguments: [];
1855
2398
  }
1856
- class CreateTransactionEvent {
1857
- static TYPE_QNAME: string;
2399
+ interface CreateTransactionEvent {
1858
2400
  creator: Address;
1859
2401
  sequence_number: bigint;
1860
2402
  transaction: multisig_account.MultisigTransaction;
1861
2403
  }
2404
+ namespace CreateTransactionEvent {
2405
+ const TYPE_QNAME = "0x1::multisig_account::CreateTransactionEvent";
2406
+ function type(): TypeDescriptor<CreateTransactionEvent>;
2407
+ }
1862
2408
  interface CreateTransactionEventInstance extends TypedEventInstance<CreateTransactionEvent> {
1863
2409
  data_decoded: CreateTransactionEvent;
1864
2410
  type_arguments: [];
1865
2411
  }
1866
- class ExecuteRejectedTransactionEvent {
1867
- static TYPE_QNAME: string;
2412
+ interface ExecuteRejectedTransactionEvent {
1868
2413
  sequence_number: bigint;
1869
2414
  num_rejections: bigint;
1870
2415
  executor: Address;
1871
2416
  }
2417
+ namespace ExecuteRejectedTransactionEvent {
2418
+ const TYPE_QNAME = "0x1::multisig_account::ExecuteRejectedTransactionEvent";
2419
+ function type(): TypeDescriptor<ExecuteRejectedTransactionEvent>;
2420
+ }
1872
2421
  interface ExecuteRejectedTransactionEventInstance extends TypedEventInstance<ExecuteRejectedTransactionEvent> {
1873
2422
  data_decoded: ExecuteRejectedTransactionEvent;
1874
2423
  type_arguments: [];
1875
2424
  }
1876
- class ExecutionError {
1877
- static TYPE_QNAME: string;
2425
+ interface ExecutionError {
1878
2426
  abort_location: string;
1879
2427
  error_type: string;
1880
2428
  error_code: bigint;
1881
2429
  }
1882
- class MetadataUpdatedEvent {
1883
- static TYPE_QNAME: string;
2430
+ namespace ExecutionError {
2431
+ const TYPE_QNAME = "0x1::multisig_account::ExecutionError";
2432
+ function type(): TypeDescriptor<ExecutionError>;
2433
+ }
2434
+ interface MetadataUpdatedEvent {
1884
2435
  old_metadata: simple_map.SimpleMap<string, string>;
1885
2436
  new_metadata: simple_map.SimpleMap<string, string>;
1886
2437
  }
2438
+ namespace MetadataUpdatedEvent {
2439
+ const TYPE_QNAME = "0x1::multisig_account::MetadataUpdatedEvent";
2440
+ function type(): TypeDescriptor<MetadataUpdatedEvent>;
2441
+ }
1887
2442
  interface MetadataUpdatedEventInstance extends TypedEventInstance<MetadataUpdatedEvent> {
1888
2443
  data_decoded: MetadataUpdatedEvent;
1889
2444
  type_arguments: [];
1890
2445
  }
1891
- class MultisigAccount {
1892
- static TYPE_QNAME: string;
2446
+ interface MultisigAccount {
1893
2447
  owners: Address[];
1894
2448
  num_signatures_required: bigint;
1895
2449
  transactions: table.Table<bigint, multisig_account.MultisigTransaction>;
@@ -1907,68 +2461,93 @@ export declare namespace multisig_account {
1907
2461
  transaction_execution_failed_events: event.EventHandle<multisig_account.TransactionExecutionFailedEvent>;
1908
2462
  metadata_updated_events: event.EventHandle<multisig_account.MetadataUpdatedEvent>;
1909
2463
  }
1910
- class MultisigAccountCreationMessage {
1911
- static TYPE_QNAME: string;
2464
+ namespace MultisigAccount {
2465
+ const TYPE_QNAME = "0x1::multisig_account::MultisigAccount";
2466
+ function type(): TypeDescriptor<MultisigAccount>;
2467
+ }
2468
+ interface MultisigAccountCreationMessage {
1912
2469
  chain_id: number;
1913
2470
  account_address: Address;
1914
2471
  sequence_number: bigint;
1915
2472
  owners: Address[];
1916
2473
  num_signatures_required: bigint;
1917
2474
  }
1918
- class MultisigTransaction {
1919
- static TYPE_QNAME: string;
2475
+ namespace MultisigAccountCreationMessage {
2476
+ const TYPE_QNAME = "0x1::multisig_account::MultisigAccountCreationMessage";
2477
+ function type(): TypeDescriptor<MultisigAccountCreationMessage>;
2478
+ }
2479
+ interface MultisigTransaction {
1920
2480
  payload: option.Option<string>;
1921
2481
  payload_hash: option.Option<string>;
1922
2482
  votes: simple_map.SimpleMap<Address, Boolean>;
1923
2483
  creator: Address;
1924
2484
  creation_time_secs: bigint;
1925
2485
  }
1926
- class RemoveOwnersEvent {
1927
- static TYPE_QNAME: string;
2486
+ namespace MultisigTransaction {
2487
+ const TYPE_QNAME = "0x1::multisig_account::MultisigTransaction";
2488
+ function type(): TypeDescriptor<MultisigTransaction>;
2489
+ }
2490
+ interface RemoveOwnersEvent {
1928
2491
  owners_removed: Address[];
1929
2492
  }
2493
+ namespace RemoveOwnersEvent {
2494
+ const TYPE_QNAME = "0x1::multisig_account::RemoveOwnersEvent";
2495
+ function type(): TypeDescriptor<RemoveOwnersEvent>;
2496
+ }
1930
2497
  interface RemoveOwnersEventInstance extends TypedEventInstance<RemoveOwnersEvent> {
1931
2498
  data_decoded: RemoveOwnersEvent;
1932
2499
  type_arguments: [];
1933
2500
  }
1934
- class TransactionExecutionFailedEvent {
1935
- static TYPE_QNAME: string;
2501
+ interface TransactionExecutionFailedEvent {
1936
2502
  executor: Address;
1937
2503
  sequence_number: bigint;
1938
2504
  transaction_payload: string;
1939
2505
  num_approvals: bigint;
1940
2506
  execution_error: multisig_account.ExecutionError;
1941
2507
  }
2508
+ namespace TransactionExecutionFailedEvent {
2509
+ const TYPE_QNAME = "0x1::multisig_account::TransactionExecutionFailedEvent";
2510
+ function type(): TypeDescriptor<TransactionExecutionFailedEvent>;
2511
+ }
1942
2512
  interface TransactionExecutionFailedEventInstance extends TypedEventInstance<TransactionExecutionFailedEvent> {
1943
2513
  data_decoded: TransactionExecutionFailedEvent;
1944
2514
  type_arguments: [];
1945
2515
  }
1946
- class TransactionExecutionSucceededEvent {
1947
- static TYPE_QNAME: string;
2516
+ interface TransactionExecutionSucceededEvent {
1948
2517
  executor: Address;
1949
2518
  sequence_number: bigint;
1950
2519
  transaction_payload: string;
1951
2520
  num_approvals: bigint;
1952
2521
  }
2522
+ namespace TransactionExecutionSucceededEvent {
2523
+ const TYPE_QNAME = "0x1::multisig_account::TransactionExecutionSucceededEvent";
2524
+ function type(): TypeDescriptor<TransactionExecutionSucceededEvent>;
2525
+ }
1953
2526
  interface TransactionExecutionSucceededEventInstance extends TypedEventInstance<TransactionExecutionSucceededEvent> {
1954
2527
  data_decoded: TransactionExecutionSucceededEvent;
1955
2528
  type_arguments: [];
1956
2529
  }
1957
- class UpdateSignaturesRequiredEvent {
1958
- static TYPE_QNAME: string;
2530
+ interface UpdateSignaturesRequiredEvent {
1959
2531
  old_num_signatures_required: bigint;
1960
2532
  new_num_signatures_required: bigint;
1961
2533
  }
2534
+ namespace UpdateSignaturesRequiredEvent {
2535
+ const TYPE_QNAME = "0x1::multisig_account::UpdateSignaturesRequiredEvent";
2536
+ function type(): TypeDescriptor<UpdateSignaturesRequiredEvent>;
2537
+ }
1962
2538
  interface UpdateSignaturesRequiredEventInstance extends TypedEventInstance<UpdateSignaturesRequiredEvent> {
1963
2539
  data_decoded: UpdateSignaturesRequiredEvent;
1964
2540
  type_arguments: [];
1965
2541
  }
1966
- class VoteEvent {
1967
- static TYPE_QNAME: string;
2542
+ interface VoteEvent {
1968
2543
  owner: Address;
1969
2544
  sequence_number: bigint;
1970
2545
  approved: Boolean;
1971
2546
  }
2547
+ namespace VoteEvent {
2548
+ const TYPE_QNAME = "0x1::multisig_account::VoteEvent";
2549
+ function type(): TypeDescriptor<VoteEvent>;
2550
+ }
1972
2551
  interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
1973
2552
  data_decoded: VoteEvent;
1974
2553
  type_arguments: [];
@@ -2053,13 +2632,16 @@ export declare namespace multisig_account {
2053
2632
  }
2054
2633
  }
2055
2634
  export declare namespace pool_u64_unbound {
2056
- class Pool {
2057
- static TYPE_QNAME: string;
2635
+ interface Pool {
2058
2636
  total_coins: bigint;
2059
2637
  total_shares: bigint;
2060
2638
  shares: table_with_length.TableWithLength<Address, bigint>;
2061
2639
  scaling_factor: bigint;
2062
2640
  }
2641
+ namespace Pool {
2642
+ const TYPE_QNAME = "0x1::pool_u64_unbound::Pool";
2643
+ function type(): TypeDescriptor<Pool>;
2644
+ }
2063
2645
  }
2064
2646
  export declare class resource_account extends AptosBaseProcessor {
2065
2647
  constructor(options: AptosBindOptions);
@@ -2070,10 +2652,13 @@ export declare class resource_account extends AptosBaseProcessor {
2070
2652
  onEntryCreateResourceAccountAndPublishPackage(func: (call: resource_account.CreateResourceAccountAndPublishPackagePayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): resource_account;
2071
2653
  }
2072
2654
  export declare namespace resource_account {
2073
- class Container {
2074
- static TYPE_QNAME: string;
2655
+ interface Container {
2075
2656
  store: simple_map.SimpleMap<Address, account.SignerCapability>;
2076
2657
  }
2658
+ namespace Container {
2659
+ const TYPE_QNAME = "0x1::resource_account::Container";
2660
+ function type(): TypeDescriptor<Container>;
2661
+ }
2077
2662
  interface CreateResourceAccountPayload extends TypedFunctionPayload<[string, string]> {
2078
2663
  arguments_decoded: [string, string];
2079
2664
  type_arguments: [];
@@ -2102,83 +2687,100 @@ export declare class staking_contract extends AptosBaseProcessor {
2102
2687
  onEntryUnlockStake(func: (call: staking_contract.UnlockStakePayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2103
2688
  onEntryUpdateCommision(func: (call: staking_contract.UpdateCommisionPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2104
2689
  onEntryUpdateVoter(func: (call: staking_contract.UpdateVoterPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2105
- onEventUpdateCommissionEvent(func: (event: staking_contract.UpdateCommissionEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2106
- onEventCreateStakingContractEvent(func: (event: staking_contract.CreateStakingContractEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2107
- onEventUpdateVoterEvent(func: (event: staking_contract.UpdateVoterEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2108
- onEventResetLockupEvent(func: (event: staking_contract.ResetLockupEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2109
- onEventAddStakeEvent(func: (event: staking_contract.AddStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2110
- onEventRequestCommissionEvent(func: (event: staking_contract.RequestCommissionEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2111
- onEventUnlockStakeEvent(func: (event: staking_contract.UnlockStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2112
- onEventSwitchOperatorEvent(func: (event: staking_contract.SwitchOperatorEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2113
- onEventAddDistributionEvent(func: (event: staking_contract.AddDistributionEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2114
- onEventDistributeEvent(func: (event: staking_contract.DistributeEventInstance, ctx: AptosContext) => void, fetchConfig?: MoveFetchConfig): staking_contract;
2690
+ onEventUpdateCommissionEvent(func: (event: staking_contract.UpdateCommissionEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2691
+ onEventCreateStakingContractEvent(func: (event: staking_contract.CreateStakingContractEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2692
+ onEventUpdateVoterEvent(func: (event: staking_contract.UpdateVoterEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2693
+ onEventResetLockupEvent(func: (event: staking_contract.ResetLockupEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2694
+ onEventAddStakeEvent(func: (event: staking_contract.AddStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2695
+ onEventRequestCommissionEvent(func: (event: staking_contract.RequestCommissionEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2696
+ onEventUnlockStakeEvent(func: (event: staking_contract.UnlockStakeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2697
+ onEventSwitchOperatorEvent(func: (event: staking_contract.SwitchOperatorEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2698
+ onEventAddDistributionEvent(func: (event: staking_contract.AddDistributionEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2699
+ onEventDistributeEvent(func: (event: staking_contract.DistributeEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): staking_contract;
2115
2700
  }
2116
2701
  export declare namespace staking_contract {
2117
- class AddDistributionEvent {
2118
- static TYPE_QNAME: string;
2702
+ interface AddDistributionEvent {
2119
2703
  operator: Address;
2120
2704
  pool_address: Address;
2121
2705
  amount: bigint;
2122
2706
  }
2707
+ namespace AddDistributionEvent {
2708
+ const TYPE_QNAME = "0x1::staking_contract::AddDistributionEvent";
2709
+ function type(): TypeDescriptor<AddDistributionEvent>;
2710
+ }
2123
2711
  interface AddDistributionEventInstance extends TypedEventInstance<AddDistributionEvent> {
2124
2712
  data_decoded: AddDistributionEvent;
2125
2713
  type_arguments: [];
2126
2714
  }
2127
- class AddStakeEvent {
2128
- static TYPE_QNAME: string;
2715
+ interface AddStakeEvent {
2129
2716
  operator: Address;
2130
2717
  pool_address: Address;
2131
2718
  amount: bigint;
2132
2719
  }
2720
+ namespace AddStakeEvent {
2721
+ const TYPE_QNAME = "0x1::staking_contract::AddStakeEvent";
2722
+ function type(): TypeDescriptor<AddStakeEvent>;
2723
+ }
2133
2724
  interface AddStakeEventInstance extends TypedEventInstance<AddStakeEvent> {
2134
2725
  data_decoded: AddStakeEvent;
2135
2726
  type_arguments: [];
2136
2727
  }
2137
- class CreateStakingContractEvent {
2138
- static TYPE_QNAME: string;
2728
+ interface CreateStakingContractEvent {
2139
2729
  operator: Address;
2140
2730
  voter: Address;
2141
2731
  pool_address: Address;
2142
2732
  principal: bigint;
2143
2733
  commission_percentage: bigint;
2144
2734
  }
2735
+ namespace CreateStakingContractEvent {
2736
+ const TYPE_QNAME = "0x1::staking_contract::CreateStakingContractEvent";
2737
+ function type(): TypeDescriptor<CreateStakingContractEvent>;
2738
+ }
2145
2739
  interface CreateStakingContractEventInstance extends TypedEventInstance<CreateStakingContractEvent> {
2146
2740
  data_decoded: CreateStakingContractEvent;
2147
2741
  type_arguments: [];
2148
2742
  }
2149
- class DistributeEvent {
2150
- static TYPE_QNAME: string;
2743
+ interface DistributeEvent {
2151
2744
  operator: Address;
2152
2745
  pool_address: Address;
2153
2746
  recipient: Address;
2154
2747
  amount: bigint;
2155
2748
  }
2749
+ namespace DistributeEvent {
2750
+ const TYPE_QNAME = "0x1::staking_contract::DistributeEvent";
2751
+ function type(): TypeDescriptor<DistributeEvent>;
2752
+ }
2156
2753
  interface DistributeEventInstance extends TypedEventInstance<DistributeEvent> {
2157
2754
  data_decoded: DistributeEvent;
2158
2755
  type_arguments: [];
2159
2756
  }
2160
- class RequestCommissionEvent {
2161
- static TYPE_QNAME: string;
2757
+ interface RequestCommissionEvent {
2162
2758
  operator: Address;
2163
2759
  pool_address: Address;
2164
2760
  accumulated_rewards: bigint;
2165
2761
  commission_amount: bigint;
2166
2762
  }
2763
+ namespace RequestCommissionEvent {
2764
+ const TYPE_QNAME = "0x1::staking_contract::RequestCommissionEvent";
2765
+ function type(): TypeDescriptor<RequestCommissionEvent>;
2766
+ }
2167
2767
  interface RequestCommissionEventInstance extends TypedEventInstance<RequestCommissionEvent> {
2168
2768
  data_decoded: RequestCommissionEvent;
2169
2769
  type_arguments: [];
2170
2770
  }
2171
- class ResetLockupEvent {
2172
- static TYPE_QNAME: string;
2771
+ interface ResetLockupEvent {
2173
2772
  operator: Address;
2174
2773
  pool_address: Address;
2175
2774
  }
2775
+ namespace ResetLockupEvent {
2776
+ const TYPE_QNAME = "0x1::staking_contract::ResetLockupEvent";
2777
+ function type(): TypeDescriptor<ResetLockupEvent>;
2778
+ }
2176
2779
  interface ResetLockupEventInstance extends TypedEventInstance<ResetLockupEvent> {
2177
2780
  data_decoded: ResetLockupEvent;
2178
2781
  type_arguments: [];
2179
2782
  }
2180
- class StakingContract {
2181
- static TYPE_QNAME: string;
2783
+ interface StakingContract {
2182
2784
  principal: bigint;
2183
2785
  pool_address: Address;
2184
2786
  owner_cap: stake.OwnerCapability;
@@ -2186,16 +2788,25 @@ export declare namespace staking_contract {
2186
2788
  distribution_pool: pool_u64.Pool;
2187
2789
  signer_cap: account.SignerCapability;
2188
2790
  }
2189
- class StakingGroupContainer {
2190
- static TYPE_QNAME: string;
2791
+ namespace StakingContract {
2792
+ const TYPE_QNAME = "0x1::staking_contract::StakingContract";
2793
+ function type(): TypeDescriptor<StakingContract>;
2794
+ }
2795
+ interface StakingGroupContainer {
2191
2796
  dummy_field: Boolean;
2192
2797
  }
2193
- class StakingGroupUpdateCommissionEvent {
2194
- static TYPE_QNAME: string;
2798
+ namespace StakingGroupContainer {
2799
+ const TYPE_QNAME = "0x1::staking_contract::StakingGroupContainer";
2800
+ function type(): TypeDescriptor<StakingGroupContainer>;
2801
+ }
2802
+ interface StakingGroupUpdateCommissionEvent {
2195
2803
  update_commission_events: event.EventHandle<staking_contract.UpdateCommissionEvent>;
2196
2804
  }
2197
- class Store {
2198
- static TYPE_QNAME: string;
2805
+ namespace StakingGroupUpdateCommissionEvent {
2806
+ const TYPE_QNAME = "0x1::staking_contract::StakingGroupUpdateCommissionEvent";
2807
+ function type(): TypeDescriptor<StakingGroupUpdateCommissionEvent>;
2808
+ }
2809
+ interface Store {
2199
2810
  staking_contracts: simple_map.SimpleMap<Address, staking_contract.StakingContract>;
2200
2811
  create_staking_contract_events: event.EventHandle<staking_contract.CreateStakingContractEvent>;
2201
2812
  update_voter_events: event.EventHandle<staking_contract.UpdateVoterEvent>;
@@ -2207,45 +2818,61 @@ export declare namespace staking_contract {
2207
2818
  add_distribution_events: event.EventHandle<staking_contract.AddDistributionEvent>;
2208
2819
  distribute_events: event.EventHandle<staking_contract.DistributeEvent>;
2209
2820
  }
2210
- class SwitchOperatorEvent {
2211
- static TYPE_QNAME: string;
2821
+ namespace Store {
2822
+ const TYPE_QNAME = "0x1::staking_contract::Store";
2823
+ function type(): TypeDescriptor<Store>;
2824
+ }
2825
+ interface SwitchOperatorEvent {
2212
2826
  old_operator: Address;
2213
2827
  new_operator: Address;
2214
2828
  pool_address: Address;
2215
2829
  }
2830
+ namespace SwitchOperatorEvent {
2831
+ const TYPE_QNAME = "0x1::staking_contract::SwitchOperatorEvent";
2832
+ function type(): TypeDescriptor<SwitchOperatorEvent>;
2833
+ }
2216
2834
  interface SwitchOperatorEventInstance extends TypedEventInstance<SwitchOperatorEvent> {
2217
2835
  data_decoded: SwitchOperatorEvent;
2218
2836
  type_arguments: [];
2219
2837
  }
2220
- class UnlockStakeEvent {
2221
- static TYPE_QNAME: string;
2838
+ interface UnlockStakeEvent {
2222
2839
  operator: Address;
2223
2840
  pool_address: Address;
2224
2841
  amount: bigint;
2225
2842
  commission_paid: bigint;
2226
2843
  }
2844
+ namespace UnlockStakeEvent {
2845
+ const TYPE_QNAME = "0x1::staking_contract::UnlockStakeEvent";
2846
+ function type(): TypeDescriptor<UnlockStakeEvent>;
2847
+ }
2227
2848
  interface UnlockStakeEventInstance extends TypedEventInstance<UnlockStakeEvent> {
2228
2849
  data_decoded: UnlockStakeEvent;
2229
2850
  type_arguments: [];
2230
2851
  }
2231
- class UpdateCommissionEvent {
2232
- static TYPE_QNAME: string;
2852
+ interface UpdateCommissionEvent {
2233
2853
  staker: Address;
2234
2854
  operator: Address;
2235
2855
  old_commission_percentage: bigint;
2236
2856
  new_commission_percentage: bigint;
2237
2857
  }
2858
+ namespace UpdateCommissionEvent {
2859
+ const TYPE_QNAME = "0x1::staking_contract::UpdateCommissionEvent";
2860
+ function type(): TypeDescriptor<UpdateCommissionEvent>;
2861
+ }
2238
2862
  interface UpdateCommissionEventInstance extends TypedEventInstance<UpdateCommissionEvent> {
2239
2863
  data_decoded: UpdateCommissionEvent;
2240
2864
  type_arguments: [];
2241
2865
  }
2242
- class UpdateVoterEvent {
2243
- static TYPE_QNAME: string;
2866
+ interface UpdateVoterEvent {
2244
2867
  operator: Address;
2245
2868
  pool_address: Address;
2246
2869
  old_voter: Address;
2247
2870
  new_voter: Address;
2248
2871
  }
2872
+ namespace UpdateVoterEvent {
2873
+ const TYPE_QNAME = "0x1::staking_contract::UpdateVoterEvent";
2874
+ function type(): TypeDescriptor<UpdateVoterEvent>;
2875
+ }
2249
2876
  interface UpdateVoterEventInstance extends TypedEventInstance<UpdateVoterEvent> {
2250
2877
  data_decoded: UpdateVoterEvent;
2251
2878
  type_arguments: [];
@@ -2297,40 +2924,54 @@ export declare namespace staking_contract {
2297
2924
  }
2298
2925
  export declare namespace system_addresses { }
2299
2926
  export declare namespace table_with_length {
2300
- class TableWithLength<T0, T1> {
2301
- static TYPE_QNAME: string;
2927
+ interface TableWithLength<T0, T1> {
2302
2928
  inner: table.Table<T0, T1>;
2303
2929
  length: bigint;
2304
2930
  }
2931
+ namespace TableWithLength {
2932
+ const TYPE_QNAME = "0x1::table_with_length::TableWithLength";
2933
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<TableWithLength<T0, T1>>;
2934
+ }
2305
2935
  }
2306
2936
  export declare namespace aggregator_factory {
2307
- class AggregatorFactory {
2308
- static TYPE_QNAME: string;
2937
+ interface AggregatorFactory {
2309
2938
  phantom_table: table.Table<Address, bigint>;
2310
2939
  }
2940
+ namespace AggregatorFactory {
2941
+ const TYPE_QNAME = "0x1::aggregator_factory::AggregatorFactory";
2942
+ function type(): TypeDescriptor<AggregatorFactory>;
2943
+ }
2311
2944
  }
2312
2945
  export declare namespace governance_proposal {
2313
- class GovernanceProposal {
2314
- static TYPE_QNAME: string;
2946
+ interface GovernanceProposal {
2315
2947
  dummy_field: Boolean;
2316
2948
  }
2949
+ namespace GovernanceProposal {
2950
+ const TYPE_QNAME = "0x1::governance_proposal::GovernanceProposal";
2951
+ function type(): TypeDescriptor<GovernanceProposal>;
2952
+ }
2317
2953
  }
2318
2954
  export declare namespace optional_aggregator {
2319
- class Integer {
2320
- static TYPE_QNAME: string;
2955
+ interface Integer {
2321
2956
  value: bigint;
2322
2957
  limit: bigint;
2323
2958
  }
2324
- class OptionalAggregator {
2325
- static TYPE_QNAME: string;
2959
+ namespace Integer {
2960
+ const TYPE_QNAME = "0x1::optional_aggregator::Integer";
2961
+ function type(): TypeDescriptor<Integer>;
2962
+ }
2963
+ interface OptionalAggregator {
2326
2964
  aggregator: option.Option<aggregator.Aggregator>;
2327
2965
  integer: option.Option<optional_aggregator.Integer>;
2328
2966
  }
2967
+ namespace OptionalAggregator {
2968
+ const TYPE_QNAME = "0x1::optional_aggregator::OptionalAggregator";
2969
+ function type(): TypeDescriptor<OptionalAggregator>;
2970
+ }
2329
2971
  }
2330
2972
  export declare namespace transaction_context { }
2331
2973
  export declare namespace transaction_validation {
2332
- class TransactionValidation {
2333
- static TYPE_QNAME: string;
2974
+ interface TransactionValidation {
2334
2975
  module_addr: Address;
2335
2976
  module_name: string;
2336
2977
  script_prologue_name: string;
@@ -2338,5 +2979,9 @@ export declare namespace transaction_validation {
2338
2979
  multi_agent_prologue_name: string;
2339
2980
  user_epilogue_name: string;
2340
2981
  }
2982
+ namespace TransactionValidation {
2983
+ const TYPE_QNAME = "0x1::transaction_validation::TransactionValidation";
2984
+ function type(): TypeDescriptor<TransactionValidation>;
2985
+ }
2341
2986
  }
2342
2987
  export declare function loadAllTypes(coder: MoveCoder): void;