@typemove/aptos 1.2.4-rc.1 → 1.2.4-rc3

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 (140) hide show
  1. package/dist/cjs/account-resource-client.d.ts +35 -0
  2. package/dist/cjs/account-resource-client.d.ts.map +1 -0
  3. package/dist/cjs/account-resource-client.js +44 -0
  4. package/dist/cjs/account-resource-client.js.map +1 -0
  5. package/dist/cjs/account-resource-client.test.d.ts +2 -0
  6. package/dist/cjs/account-resource-client.test.d.ts.map +1 -0
  7. package/dist/cjs/account-resource-client.test.js.map +1 -0
  8. package/dist/cjs/aptos-chain-adapter.d.ts +16 -0
  9. package/dist/cjs/aptos-chain-adapter.d.ts.map +1 -0
  10. package/dist/cjs/aptos-chain-adapter.js +82 -0
  11. package/dist/cjs/aptos-chain-adapter.js.map +1 -0
  12. package/dist/cjs/builtin/0x1.d.ts +3796 -0
  13. package/dist/cjs/builtin/0x1.d.ts.map +1 -0
  14. package/dist/cjs/builtin/0x1.js +5019 -0
  15. package/dist/cjs/builtin/0x1.js.map +1 -0
  16. package/dist/cjs/builtin/0x3.d.ts +652 -0
  17. package/dist/cjs/builtin/0x3.d.ts.map +1 -0
  18. package/dist/cjs/builtin/0x3.js +584 -0
  19. package/dist/cjs/builtin/0x3.js.map +1 -0
  20. package/dist/cjs/builtin/index.d.ts +3 -0
  21. package/dist/cjs/builtin/index.d.ts.map +1 -0
  22. package/dist/cjs/builtin/index.js +10 -0
  23. package/dist/cjs/builtin/index.js.map +1 -0
  24. package/dist/cjs/client.test.d.ts +2 -0
  25. package/dist/cjs/client.test.d.ts.map +1 -0
  26. package/dist/cjs/client.test.js.map +1 -0
  27. package/dist/cjs/codegen/codegen.d.ts +14 -0
  28. package/dist/cjs/codegen/codegen.d.ts.map +1 -0
  29. package/dist/cjs/codegen/codegen.js +116 -0
  30. package/dist/cjs/codegen/codegen.js.map +1 -0
  31. package/dist/cjs/codegen/index.d.ts +2 -0
  32. package/dist/cjs/codegen/index.d.ts.map +1 -0
  33. package/dist/cjs/codegen/index.js +5 -0
  34. package/dist/cjs/codegen/index.js.map +1 -0
  35. package/dist/cjs/codegen/types.test.d.ts +2 -0
  36. package/dist/cjs/codegen/types.test.d.ts.map +1 -0
  37. package/dist/cjs/codegen/types.test.js.map +1 -0
  38. package/dist/cjs/index.d.ts +5 -0
  39. package/dist/cjs/index.d.ts.map +1 -0
  40. package/dist/cjs/index.js +12 -0
  41. package/dist/cjs/index.js.map +1 -0
  42. package/dist/cjs/models.d.ts +11 -0
  43. package/dist/cjs/models.d.ts.map +1 -0
  44. package/dist/cjs/models.js +3 -0
  45. package/dist/cjs/models.js.map +1 -0
  46. package/dist/cjs/move-coder.d.ts +15 -0
  47. package/dist/cjs/move-coder.d.ts.map +1 -0
  48. package/dist/cjs/move-coder.js +76 -0
  49. package/dist/cjs/move-coder.js.map +1 -0
  50. package/dist/cjs/move-types.d.ts +12 -0
  51. package/dist/cjs/move-types.d.ts.map +1 -0
  52. package/dist/cjs/move-types.js +3 -0
  53. package/dist/cjs/move-types.js.map +1 -0
  54. package/dist/cjs/to-internal.d.ts +7 -0
  55. package/dist/cjs/to-internal.d.ts.map +1 -0
  56. package/dist/cjs/to-internal.js +60 -0
  57. package/dist/cjs/to-internal.js.map +1 -0
  58. package/dist/esm/account-resource-client.d.ts +35 -0
  59. package/dist/esm/account-resource-client.d.ts.map +1 -0
  60. package/dist/esm/account-resource-client.js +40 -0
  61. package/dist/esm/account-resource-client.js.map +1 -0
  62. package/dist/esm/account-resource-client.test.d.ts +2 -0
  63. package/dist/esm/account-resource-client.test.d.ts.map +1 -0
  64. package/dist/esm/account-resource-client.test.js.map +1 -0
  65. package/dist/esm/aptos-chain-adapter.d.ts +16 -0
  66. package/dist/esm/aptos-chain-adapter.d.ts.map +1 -0
  67. package/dist/esm/aptos-chain-adapter.js +78 -0
  68. package/dist/esm/aptos-chain-adapter.js.map +1 -0
  69. package/dist/esm/builtin/0x1.d.ts +3796 -0
  70. package/dist/esm/builtin/0x1.d.ts.map +1 -0
  71. package/dist/esm/builtin/0x1.js +5014 -0
  72. package/dist/esm/builtin/0x1.js.map +1 -0
  73. package/dist/esm/builtin/0x3.d.ts +652 -0
  74. package/dist/esm/builtin/0x3.d.ts.map +1 -0
  75. package/dist/esm/builtin/0x3.js +579 -0
  76. package/dist/esm/builtin/0x3.js.map +1 -0
  77. package/dist/esm/builtin/index.d.ts +3 -0
  78. package/dist/esm/builtin/index.d.ts.map +1 -0
  79. package/dist/esm/builtin/index.js +6 -0
  80. package/dist/esm/builtin/index.js.map +1 -0
  81. package/dist/esm/client.test.d.ts +2 -0
  82. package/dist/esm/client.test.d.ts.map +1 -0
  83. package/dist/esm/client.test.js.map +1 -0
  84. package/dist/esm/codegen/codegen.d.ts +14 -0
  85. package/dist/esm/codegen/codegen.d.ts.map +1 -0
  86. package/dist/esm/codegen/codegen.js +110 -0
  87. package/dist/esm/codegen/codegen.js.map +1 -0
  88. package/dist/esm/codegen/index.d.ts +2 -0
  89. package/dist/esm/codegen/index.d.ts.map +1 -0
  90. package/dist/esm/codegen/index.js +2 -0
  91. package/dist/esm/codegen/index.js.map +1 -0
  92. package/dist/esm/codegen/run.d.ts +2 -0
  93. package/dist/esm/codegen/run.d.ts.map +1 -0
  94. package/dist/esm/codegen/run.js.map +1 -0
  95. package/dist/esm/codegen/types.test.d.ts +2 -0
  96. package/dist/esm/codegen/types.test.d.ts.map +1 -0
  97. package/dist/esm/codegen/types.test.js.map +1 -0
  98. package/dist/esm/index.d.ts +5 -0
  99. package/dist/esm/index.d.ts.map +1 -0
  100. package/dist/esm/index.js +5 -0
  101. package/dist/esm/index.js.map +1 -0
  102. package/dist/esm/models.d.ts +11 -0
  103. package/dist/esm/models.d.ts.map +1 -0
  104. package/dist/esm/models.js +2 -0
  105. package/dist/esm/models.js.map +1 -0
  106. package/dist/esm/move-coder.d.ts +15 -0
  107. package/dist/esm/move-coder.d.ts.map +1 -0
  108. package/dist/esm/move-coder.js +71 -0
  109. package/dist/esm/move-coder.js.map +1 -0
  110. package/dist/esm/move-types.d.ts +12 -0
  111. package/dist/esm/move-types.d.ts.map +1 -0
  112. package/dist/esm/move-types.js +2 -0
  113. package/dist/esm/move-types.js.map +1 -0
  114. package/dist/esm/to-internal.d.ts +7 -0
  115. package/dist/esm/to-internal.d.ts.map +1 -0
  116. package/dist/esm/to-internal.js +53 -0
  117. package/dist/esm/to-internal.js.map +1 -0
  118. package/package.json +3 -3
  119. package/src/abis/0x1.json +15625 -0
  120. package/src/abis/0x3.json +2262 -0
  121. package/src/account-resource-client.ts +58 -0
  122. package/src/aptos-chain-adapter.ts +102 -0
  123. package/src/builtin/0x1.ts +9847 -0
  124. package/src/builtin/0x3.ts +1366 -0
  125. package/src/builtin/index.ts +5 -0
  126. package/src/codegen/codegen.ts +132 -0
  127. package/src/codegen/index.ts +1 -0
  128. package/src/codegen/run.ts +33 -0
  129. package/src/index.ts +4 -0
  130. package/src/models.ts +18 -0
  131. package/src/move-coder.ts +85 -0
  132. package/src/move-types.ts +13 -0
  133. package/src/tests/abis/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.json +3265 -0
  134. package/src/tests/abis/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.json +637 -0
  135. package/src/tests/abis/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.json +3717 -0
  136. package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts +2668 -0
  137. package/src/tests/types/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.ts +89 -0
  138. package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts +2093 -0
  139. package/src/tests/types/index.ts +6 -0
  140. package/src/to-internal.ts +64 -0
@@ -0,0 +1,3796 @@
1
+ import { TypeDescriptor } from "@typemove/move";
2
+ import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
3
+ import { Address } from "@typemove/aptos";
4
+ import { AptosClient, AptosAccount, Types, OptionalTransactionArgs } from "aptos";
5
+ export declare namespace acl {
6
+ interface ACL {
7
+ list: Address[];
8
+ }
9
+ namespace ACL {
10
+ const TYPE_QNAME = "0x1::acl::ACL";
11
+ function type(): TypeDescriptor<ACL>;
12
+ }
13
+ interface ACLInstance extends TypedEventInstance<ACL> {
14
+ data_decoded: ACL;
15
+ type_arguments: [];
16
+ }
17
+ namespace entry { }
18
+ namespace view { }
19
+ }
20
+ export declare namespace any_ {
21
+ interface Any {
22
+ type_name: string;
23
+ data: string;
24
+ }
25
+ namespace Any {
26
+ const TYPE_QNAME = "0x1::any::Any";
27
+ function type(): TypeDescriptor<Any>;
28
+ }
29
+ interface AnyInstance extends TypedEventInstance<Any> {
30
+ data_decoded: Any;
31
+ type_arguments: [];
32
+ }
33
+ namespace entry { }
34
+ namespace view { }
35
+ }
36
+ export declare namespace bcs {
37
+ namespace entry { }
38
+ namespace view { }
39
+ }
40
+ export declare namespace code {
41
+ interface AllowedDep {
42
+ account: Address;
43
+ module_name: string;
44
+ }
45
+ namespace AllowedDep {
46
+ const TYPE_QNAME = "0x1::code::AllowedDep";
47
+ function type(): TypeDescriptor<AllowedDep>;
48
+ }
49
+ interface ModuleMetadata {
50
+ name: string;
51
+ source: string;
52
+ source_map: string;
53
+ extension: option.Option<copyable_any.Any>;
54
+ }
55
+ namespace ModuleMetadata {
56
+ const TYPE_QNAME = "0x1::code::ModuleMetadata";
57
+ function type(): TypeDescriptor<ModuleMetadata>;
58
+ }
59
+ interface ModuleMetadataInstance extends TypedEventInstance<ModuleMetadata> {
60
+ data_decoded: ModuleMetadata;
61
+ type_arguments: [];
62
+ }
63
+ interface PackageDep {
64
+ account: Address;
65
+ package_name: string;
66
+ }
67
+ namespace PackageDep {
68
+ const TYPE_QNAME = "0x1::code::PackageDep";
69
+ function type(): TypeDescriptor<PackageDep>;
70
+ }
71
+ interface PackageDepInstance extends TypedEventInstance<PackageDep> {
72
+ data_decoded: PackageDep;
73
+ type_arguments: [];
74
+ }
75
+ interface PackageMetadata {
76
+ name: string;
77
+ upgrade_policy: code.UpgradePolicy;
78
+ upgrade_number: bigint;
79
+ source_digest: string;
80
+ manifest: string;
81
+ modules: code.ModuleMetadata[];
82
+ deps: code.PackageDep[];
83
+ extension: option.Option<copyable_any.Any>;
84
+ }
85
+ namespace PackageMetadata {
86
+ const TYPE_QNAME = "0x1::code::PackageMetadata";
87
+ function type(): TypeDescriptor<PackageMetadata>;
88
+ }
89
+ interface PackageMetadataInstance extends TypedEventInstance<PackageMetadata> {
90
+ data_decoded: PackageMetadata;
91
+ type_arguments: [];
92
+ }
93
+ interface PackageRegistry {
94
+ packages: code.PackageMetadata[];
95
+ }
96
+ namespace PackageRegistry {
97
+ const TYPE_QNAME = "0x1::code::PackageRegistry";
98
+ function type(): TypeDescriptor<PackageRegistry>;
99
+ }
100
+ interface PackageRegistryInstance extends TypedEventInstance<PackageRegistry> {
101
+ data_decoded: PackageRegistry;
102
+ type_arguments: [];
103
+ }
104
+ interface UpgradePolicy {
105
+ policy: number;
106
+ }
107
+ namespace UpgradePolicy {
108
+ const TYPE_QNAME = "0x1::code::UpgradePolicy";
109
+ function type(): TypeDescriptor<UpgradePolicy>;
110
+ }
111
+ interface UpgradePolicyInstance extends TypedEventInstance<UpgradePolicy> {
112
+ data_decoded: UpgradePolicy;
113
+ type_arguments: [];
114
+ }
115
+ namespace entry {
116
+ function publishPackageTxn(client: AptosClient, account: AptosAccount, request: {
117
+ type_arguments: [];
118
+ arguments: [string, string[]];
119
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
120
+ }
121
+ namespace view { }
122
+ }
123
+ export declare namespace coin {
124
+ interface AggregatableCoin<T0> {
125
+ value: aggregator.Aggregator;
126
+ }
127
+ namespace AggregatableCoin {
128
+ const TYPE_QNAME = "0x1::coin::AggregatableCoin";
129
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<AggregatableCoin<T0>>;
130
+ }
131
+ interface BurnCapability<T0> {
132
+ dummy_field: Boolean;
133
+ }
134
+ namespace BurnCapability {
135
+ const TYPE_QNAME = "0x1::coin::BurnCapability";
136
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<BurnCapability<T0>>;
137
+ }
138
+ interface Coin<T0> {
139
+ value: bigint;
140
+ }
141
+ namespace Coin {
142
+ const TYPE_QNAME = "0x1::coin::Coin";
143
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Coin<T0>>;
144
+ }
145
+ interface CoinInfo<T0> {
146
+ name: string;
147
+ symbol: string;
148
+ decimals: number;
149
+ supply: option.Option<optional_aggregator.OptionalAggregator>;
150
+ }
151
+ namespace CoinInfo {
152
+ const TYPE_QNAME = "0x1::coin::CoinInfo";
153
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CoinInfo<T0>>;
154
+ }
155
+ interface CoinStore<T0> {
156
+ coin: coin.Coin<T0>;
157
+ frozen: Boolean;
158
+ deposit_events: event.EventHandle<coin.DepositEvent>;
159
+ withdraw_events: event.EventHandle<coin.WithdrawEvent>;
160
+ }
161
+ namespace CoinStore {
162
+ const TYPE_QNAME = "0x1::coin::CoinStore";
163
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CoinStore<T0>>;
164
+ }
165
+ interface DepositEvent {
166
+ amount: bigint;
167
+ }
168
+ namespace DepositEvent {
169
+ const TYPE_QNAME = "0x1::coin::DepositEvent";
170
+ function type(): TypeDescriptor<DepositEvent>;
171
+ }
172
+ interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
173
+ data_decoded: DepositEvent;
174
+ type_arguments: [];
175
+ }
176
+ interface FreezeCapability<T0> {
177
+ dummy_field: Boolean;
178
+ }
179
+ namespace FreezeCapability {
180
+ const TYPE_QNAME = "0x1::coin::FreezeCapability";
181
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<FreezeCapability<T0>>;
182
+ }
183
+ interface MintCapability<T0> {
184
+ dummy_field: Boolean;
185
+ }
186
+ namespace MintCapability {
187
+ const TYPE_QNAME = "0x1::coin::MintCapability";
188
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<MintCapability<T0>>;
189
+ }
190
+ interface SupplyConfig {
191
+ allow_upgrades: Boolean;
192
+ }
193
+ namespace SupplyConfig {
194
+ const TYPE_QNAME = "0x1::coin::SupplyConfig";
195
+ function type(): TypeDescriptor<SupplyConfig>;
196
+ }
197
+ interface WithdrawEvent {
198
+ amount: bigint;
199
+ }
200
+ namespace WithdrawEvent {
201
+ const TYPE_QNAME = "0x1::coin::WithdrawEvent";
202
+ function type(): TypeDescriptor<WithdrawEvent>;
203
+ }
204
+ interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
205
+ data_decoded: WithdrawEvent;
206
+ type_arguments: [];
207
+ }
208
+ namespace entry {
209
+ function freezeCoinStore<T0 = any>(client: AptosClient, account: AptosAccount, request: {
210
+ type_arguments: [string];
211
+ arguments: [Address, Address];
212
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
213
+ function transfer<T0 = any>(client: AptosClient, account: AptosAccount, request: {
214
+ type_arguments: [string];
215
+ arguments: [Address, bigint];
216
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
217
+ function unfreezeCoinStore<T0 = any>(client: AptosClient, account: AptosAccount, request: {
218
+ type_arguments: [string];
219
+ arguments: [Address, Address];
220
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
221
+ function upgradeSupply<T0 = any>(client: AptosClient, account: AptosAccount, request: {
222
+ type_arguments: [string];
223
+ arguments: [];
224
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
225
+ }
226
+ namespace view {
227
+ function balance<T0 = any>(client: AptosClient, request: {
228
+ type_arguments: [string];
229
+ arguments: [Address];
230
+ }, version?: bigint): Promise<[bigint]>;
231
+ function decimals<T0 = any>(client: AptosClient, request: {
232
+ type_arguments: [string];
233
+ }, version?: bigint): Promise<[number]>;
234
+ function isAccountRegistered<T0 = any>(client: AptosClient, request: {
235
+ type_arguments: [string];
236
+ arguments: [Address];
237
+ }, version?: bigint): Promise<[Boolean]>;
238
+ function isCoinInitialized<T0 = any>(client: AptosClient, request: {
239
+ type_arguments: [string];
240
+ }, version?: bigint): Promise<[Boolean]>;
241
+ function name<T0 = any>(client: AptosClient, request: {
242
+ type_arguments: [string];
243
+ }, version?: bigint): Promise<[string]>;
244
+ function supply<T0 = any>(client: AptosClient, request: {
245
+ type_arguments: [string];
246
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
247
+ function symbol<T0 = any>(client: AptosClient, request: {
248
+ type_arguments: [string];
249
+ }, version?: bigint): Promise<[string]>;
250
+ }
251
+ }
252
+ export declare namespace guid {
253
+ interface GUID {
254
+ id: guid.ID;
255
+ }
256
+ namespace GUID {
257
+ const TYPE_QNAME = "0x1::guid::GUID";
258
+ function type(): TypeDescriptor<GUID>;
259
+ }
260
+ interface GUIDInstance extends TypedEventInstance<GUID> {
261
+ data_decoded: GUID;
262
+ type_arguments: [];
263
+ }
264
+ interface ID {
265
+ creation_num: bigint;
266
+ addr: Address;
267
+ }
268
+ namespace ID {
269
+ const TYPE_QNAME = "0x1::guid::ID";
270
+ function type(): TypeDescriptor<ID>;
271
+ }
272
+ interface IDInstance extends TypedEventInstance<ID> {
273
+ data_decoded: ID;
274
+ type_arguments: [];
275
+ }
276
+ namespace entry { }
277
+ namespace view { }
278
+ }
279
+ export declare namespace hash {
280
+ namespace entry { }
281
+ namespace view { }
282
+ }
283
+ export declare namespace util {
284
+ namespace entry { }
285
+ namespace view { }
286
+ }
287
+ export declare namespace block {
288
+ interface BlockResource {
289
+ height: bigint;
290
+ epoch_interval: bigint;
291
+ new_block_events: event.EventHandle<block.NewBlockEvent>;
292
+ update_epoch_interval_events: event.EventHandle<block.UpdateEpochIntervalEvent>;
293
+ }
294
+ namespace BlockResource {
295
+ const TYPE_QNAME = "0x1::block::BlockResource";
296
+ function type(): TypeDescriptor<BlockResource>;
297
+ }
298
+ interface NewBlockEvent {
299
+ hash: Address;
300
+ epoch: bigint;
301
+ round: bigint;
302
+ height: bigint;
303
+ previous_block_votes_bitvec: string;
304
+ proposer: Address;
305
+ failed_proposer_indices: bigint[];
306
+ time_microseconds: bigint;
307
+ }
308
+ namespace NewBlockEvent {
309
+ const TYPE_QNAME = "0x1::block::NewBlockEvent";
310
+ function type(): TypeDescriptor<NewBlockEvent>;
311
+ }
312
+ interface NewBlockEventInstance extends TypedEventInstance<NewBlockEvent> {
313
+ data_decoded: NewBlockEvent;
314
+ type_arguments: [];
315
+ }
316
+ interface UpdateEpochIntervalEvent {
317
+ old_epoch_interval: bigint;
318
+ new_epoch_interval: bigint;
319
+ }
320
+ namespace UpdateEpochIntervalEvent {
321
+ const TYPE_QNAME = "0x1::block::UpdateEpochIntervalEvent";
322
+ function type(): TypeDescriptor<UpdateEpochIntervalEvent>;
323
+ }
324
+ interface UpdateEpochIntervalEventInstance extends TypedEventInstance<UpdateEpochIntervalEvent> {
325
+ data_decoded: UpdateEpochIntervalEvent;
326
+ type_arguments: [];
327
+ }
328
+ namespace entry { }
329
+ namespace view {
330
+ function getCurrentBlockHeight(client: AptosClient, version?: bigint): Promise<[bigint]>;
331
+ function getEpochIntervalSecs(client: AptosClient, version?: bigint): Promise<[bigint]>;
332
+ }
333
+ }
334
+ export declare namespace debug {
335
+ namespace entry { }
336
+ namespace view { }
337
+ }
338
+ export declare namespace error {
339
+ namespace entry { }
340
+ namespace view { }
341
+ }
342
+ export declare namespace event {
343
+ interface EventHandle<T0> {
344
+ counter: bigint;
345
+ guid: guid.GUID;
346
+ }
347
+ namespace EventHandle {
348
+ const TYPE_QNAME = "0x1::event::EventHandle";
349
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<EventHandle<T0>>;
350
+ }
351
+ namespace entry { }
352
+ namespace view { }
353
+ }
354
+ export declare namespace stake {
355
+ interface AddStakeEvent {
356
+ pool_address: Address;
357
+ amount_added: bigint;
358
+ }
359
+ namespace AddStakeEvent {
360
+ const TYPE_QNAME = "0x1::stake::AddStakeEvent";
361
+ function type(): TypeDescriptor<AddStakeEvent>;
362
+ }
363
+ interface AddStakeEventInstance extends TypedEventInstance<AddStakeEvent> {
364
+ data_decoded: AddStakeEvent;
365
+ type_arguments: [];
366
+ }
367
+ interface AllowedValidators {
368
+ accounts: Address[];
369
+ }
370
+ namespace AllowedValidators {
371
+ const TYPE_QNAME = "0x1::stake::AllowedValidators";
372
+ function type(): TypeDescriptor<AllowedValidators>;
373
+ }
374
+ interface AptosCoinCapabilities {
375
+ mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
376
+ }
377
+ namespace AptosCoinCapabilities {
378
+ const TYPE_QNAME = "0x1::stake::AptosCoinCapabilities";
379
+ function type(): TypeDescriptor<AptosCoinCapabilities>;
380
+ }
381
+ interface DistributeRewardsEvent {
382
+ pool_address: Address;
383
+ rewards_amount: bigint;
384
+ }
385
+ namespace DistributeRewardsEvent {
386
+ const TYPE_QNAME = "0x1::stake::DistributeRewardsEvent";
387
+ function type(): TypeDescriptor<DistributeRewardsEvent>;
388
+ }
389
+ interface DistributeRewardsEventInstance extends TypedEventInstance<DistributeRewardsEvent> {
390
+ data_decoded: DistributeRewardsEvent;
391
+ type_arguments: [];
392
+ }
393
+ interface IncreaseLockupEvent {
394
+ pool_address: Address;
395
+ old_locked_until_secs: bigint;
396
+ new_locked_until_secs: bigint;
397
+ }
398
+ namespace IncreaseLockupEvent {
399
+ const TYPE_QNAME = "0x1::stake::IncreaseLockupEvent";
400
+ function type(): TypeDescriptor<IncreaseLockupEvent>;
401
+ }
402
+ interface IncreaseLockupEventInstance extends TypedEventInstance<IncreaseLockupEvent> {
403
+ data_decoded: IncreaseLockupEvent;
404
+ type_arguments: [];
405
+ }
406
+ interface IndividualValidatorPerformance {
407
+ successful_proposals: bigint;
408
+ failed_proposals: bigint;
409
+ }
410
+ namespace IndividualValidatorPerformance {
411
+ const TYPE_QNAME = "0x1::stake::IndividualValidatorPerformance";
412
+ function type(): TypeDescriptor<IndividualValidatorPerformance>;
413
+ }
414
+ interface IndividualValidatorPerformanceInstance extends TypedEventInstance<IndividualValidatorPerformance> {
415
+ data_decoded: IndividualValidatorPerformance;
416
+ type_arguments: [];
417
+ }
418
+ interface JoinValidatorSetEvent {
419
+ pool_address: Address;
420
+ }
421
+ namespace JoinValidatorSetEvent {
422
+ const TYPE_QNAME = "0x1::stake::JoinValidatorSetEvent";
423
+ function type(): TypeDescriptor<JoinValidatorSetEvent>;
424
+ }
425
+ interface JoinValidatorSetEventInstance extends TypedEventInstance<JoinValidatorSetEvent> {
426
+ data_decoded: JoinValidatorSetEvent;
427
+ type_arguments: [];
428
+ }
429
+ interface LeaveValidatorSetEvent {
430
+ pool_address: Address;
431
+ }
432
+ namespace LeaveValidatorSetEvent {
433
+ const TYPE_QNAME = "0x1::stake::LeaveValidatorSetEvent";
434
+ function type(): TypeDescriptor<LeaveValidatorSetEvent>;
435
+ }
436
+ interface LeaveValidatorSetEventInstance extends TypedEventInstance<LeaveValidatorSetEvent> {
437
+ data_decoded: LeaveValidatorSetEvent;
438
+ type_arguments: [];
439
+ }
440
+ interface OwnerCapability {
441
+ pool_address: Address;
442
+ }
443
+ namespace OwnerCapability {
444
+ const TYPE_QNAME = "0x1::stake::OwnerCapability";
445
+ function type(): TypeDescriptor<OwnerCapability>;
446
+ }
447
+ interface ReactivateStakeEvent {
448
+ pool_address: Address;
449
+ amount: bigint;
450
+ }
451
+ namespace ReactivateStakeEvent {
452
+ const TYPE_QNAME = "0x1::stake::ReactivateStakeEvent";
453
+ function type(): TypeDescriptor<ReactivateStakeEvent>;
454
+ }
455
+ interface ReactivateStakeEventInstance extends TypedEventInstance<ReactivateStakeEvent> {
456
+ data_decoded: ReactivateStakeEvent;
457
+ type_arguments: [];
458
+ }
459
+ interface RegisterValidatorCandidateEvent {
460
+ pool_address: Address;
461
+ }
462
+ namespace RegisterValidatorCandidateEvent {
463
+ const TYPE_QNAME = "0x1::stake::RegisterValidatorCandidateEvent";
464
+ function type(): TypeDescriptor<RegisterValidatorCandidateEvent>;
465
+ }
466
+ interface RegisterValidatorCandidateEventInstance extends TypedEventInstance<RegisterValidatorCandidateEvent> {
467
+ data_decoded: RegisterValidatorCandidateEvent;
468
+ type_arguments: [];
469
+ }
470
+ interface RotateConsensusKeyEvent {
471
+ pool_address: Address;
472
+ old_consensus_pubkey: string;
473
+ new_consensus_pubkey: string;
474
+ }
475
+ namespace RotateConsensusKeyEvent {
476
+ const TYPE_QNAME = "0x1::stake::RotateConsensusKeyEvent";
477
+ function type(): TypeDescriptor<RotateConsensusKeyEvent>;
478
+ }
479
+ interface RotateConsensusKeyEventInstance extends TypedEventInstance<RotateConsensusKeyEvent> {
480
+ data_decoded: RotateConsensusKeyEvent;
481
+ type_arguments: [];
482
+ }
483
+ interface SetOperatorEvent {
484
+ pool_address: Address;
485
+ old_operator: Address;
486
+ new_operator: Address;
487
+ }
488
+ namespace SetOperatorEvent {
489
+ const TYPE_QNAME = "0x1::stake::SetOperatorEvent";
490
+ function type(): TypeDescriptor<SetOperatorEvent>;
491
+ }
492
+ interface SetOperatorEventInstance extends TypedEventInstance<SetOperatorEvent> {
493
+ data_decoded: SetOperatorEvent;
494
+ type_arguments: [];
495
+ }
496
+ interface StakePool {
497
+ active: coin.Coin<aptos_coin.AptosCoin>;
498
+ inactive: coin.Coin<aptos_coin.AptosCoin>;
499
+ pending_active: coin.Coin<aptos_coin.AptosCoin>;
500
+ pending_inactive: coin.Coin<aptos_coin.AptosCoin>;
501
+ locked_until_secs: bigint;
502
+ operator_address: Address;
503
+ delegated_voter: Address;
504
+ initialize_validator_events: event.EventHandle<stake.RegisterValidatorCandidateEvent>;
505
+ set_operator_events: event.EventHandle<stake.SetOperatorEvent>;
506
+ add_stake_events: event.EventHandle<stake.AddStakeEvent>;
507
+ reactivate_stake_events: event.EventHandle<stake.ReactivateStakeEvent>;
508
+ rotate_consensus_key_events: event.EventHandle<stake.RotateConsensusKeyEvent>;
509
+ update_network_and_fullnode_addresses_events: event.EventHandle<stake.UpdateNetworkAndFullnodeAddressesEvent>;
510
+ increase_lockup_events: event.EventHandle<stake.IncreaseLockupEvent>;
511
+ join_validator_set_events: event.EventHandle<stake.JoinValidatorSetEvent>;
512
+ distribute_rewards_events: event.EventHandle<stake.DistributeRewardsEvent>;
513
+ unlock_stake_events: event.EventHandle<stake.UnlockStakeEvent>;
514
+ withdraw_stake_events: event.EventHandle<stake.WithdrawStakeEvent>;
515
+ leave_validator_set_events: event.EventHandle<stake.LeaveValidatorSetEvent>;
516
+ }
517
+ namespace StakePool {
518
+ const TYPE_QNAME = "0x1::stake::StakePool";
519
+ function type(): TypeDescriptor<StakePool>;
520
+ }
521
+ interface UnlockStakeEvent {
522
+ pool_address: Address;
523
+ amount_unlocked: bigint;
524
+ }
525
+ namespace UnlockStakeEvent {
526
+ const TYPE_QNAME = "0x1::stake::UnlockStakeEvent";
527
+ function type(): TypeDescriptor<UnlockStakeEvent>;
528
+ }
529
+ interface UnlockStakeEventInstance extends TypedEventInstance<UnlockStakeEvent> {
530
+ data_decoded: UnlockStakeEvent;
531
+ type_arguments: [];
532
+ }
533
+ interface UpdateNetworkAndFullnodeAddressesEvent {
534
+ pool_address: Address;
535
+ old_network_addresses: string;
536
+ new_network_addresses: string;
537
+ old_fullnode_addresses: string;
538
+ new_fullnode_addresses: string;
539
+ }
540
+ namespace UpdateNetworkAndFullnodeAddressesEvent {
541
+ const TYPE_QNAME = "0x1::stake::UpdateNetworkAndFullnodeAddressesEvent";
542
+ function type(): TypeDescriptor<UpdateNetworkAndFullnodeAddressesEvent>;
543
+ }
544
+ interface UpdateNetworkAndFullnodeAddressesEventInstance extends TypedEventInstance<UpdateNetworkAndFullnodeAddressesEvent> {
545
+ data_decoded: UpdateNetworkAndFullnodeAddressesEvent;
546
+ type_arguments: [];
547
+ }
548
+ interface ValidatorConfig {
549
+ consensus_pubkey: string;
550
+ network_addresses: string;
551
+ fullnode_addresses: string;
552
+ validator_index: bigint;
553
+ }
554
+ namespace ValidatorConfig {
555
+ const TYPE_QNAME = "0x1::stake::ValidatorConfig";
556
+ function type(): TypeDescriptor<ValidatorConfig>;
557
+ }
558
+ interface ValidatorConfigInstance extends TypedEventInstance<ValidatorConfig> {
559
+ data_decoded: ValidatorConfig;
560
+ type_arguments: [];
561
+ }
562
+ interface ValidatorFees {
563
+ fees_table: table.Table<Address, coin.Coin<aptos_coin.AptosCoin>>;
564
+ }
565
+ namespace ValidatorFees {
566
+ const TYPE_QNAME = "0x1::stake::ValidatorFees";
567
+ function type(): TypeDescriptor<ValidatorFees>;
568
+ }
569
+ interface ValidatorInfo {
570
+ addr: Address;
571
+ voting_power: bigint;
572
+ config: stake.ValidatorConfig;
573
+ }
574
+ namespace ValidatorInfo {
575
+ const TYPE_QNAME = "0x1::stake::ValidatorInfo";
576
+ function type(): TypeDescriptor<ValidatorInfo>;
577
+ }
578
+ interface ValidatorInfoInstance extends TypedEventInstance<ValidatorInfo> {
579
+ data_decoded: ValidatorInfo;
580
+ type_arguments: [];
581
+ }
582
+ interface ValidatorPerformance {
583
+ validators: stake.IndividualValidatorPerformance[];
584
+ }
585
+ namespace ValidatorPerformance {
586
+ const TYPE_QNAME = "0x1::stake::ValidatorPerformance";
587
+ function type(): TypeDescriptor<ValidatorPerformance>;
588
+ }
589
+ interface ValidatorSet {
590
+ consensus_scheme: number;
591
+ active_validators: stake.ValidatorInfo[];
592
+ pending_inactive: stake.ValidatorInfo[];
593
+ pending_active: stake.ValidatorInfo[];
594
+ total_voting_power: bigint;
595
+ total_joining_power: bigint;
596
+ }
597
+ namespace ValidatorSet {
598
+ const TYPE_QNAME = "0x1::stake::ValidatorSet";
599
+ function type(): TypeDescriptor<ValidatorSet>;
600
+ }
601
+ interface WithdrawStakeEvent {
602
+ pool_address: Address;
603
+ amount_withdrawn: bigint;
604
+ }
605
+ namespace WithdrawStakeEvent {
606
+ const TYPE_QNAME = "0x1::stake::WithdrawStakeEvent";
607
+ function type(): TypeDescriptor<WithdrawStakeEvent>;
608
+ }
609
+ interface WithdrawStakeEventInstance extends TypedEventInstance<WithdrawStakeEvent> {
610
+ data_decoded: WithdrawStakeEvent;
611
+ type_arguments: [];
612
+ }
613
+ namespace entry {
614
+ function addStake(client: AptosClient, account: AptosAccount, request: {
615
+ type_arguments: [];
616
+ arguments: [bigint];
617
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
618
+ function increaseLockup(client: AptosClient, account: AptosAccount, request: {
619
+ type_arguments: [];
620
+ arguments: [];
621
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
622
+ function initializeStakeOwner(client: AptosClient, account: AptosAccount, request: {
623
+ type_arguments: [];
624
+ arguments: [bigint, Address, Address];
625
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
626
+ function initializeValidator(client: AptosClient, account: AptosAccount, request: {
627
+ type_arguments: [];
628
+ arguments: [string, string, string, string];
629
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
630
+ function joinValidatorSet(client: AptosClient, account: AptosAccount, request: {
631
+ type_arguments: [];
632
+ arguments: [Address];
633
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
634
+ function leaveValidatorSet(client: AptosClient, account: AptosAccount, request: {
635
+ type_arguments: [];
636
+ arguments: [Address];
637
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
638
+ function reactivateStake(client: AptosClient, account: AptosAccount, request: {
639
+ type_arguments: [];
640
+ arguments: [bigint];
641
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
642
+ function rotateConsensusKey(client: AptosClient, account: AptosAccount, request: {
643
+ type_arguments: [];
644
+ arguments: [Address, string, string];
645
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
646
+ function setDelegatedVoter(client: AptosClient, account: AptosAccount, request: {
647
+ type_arguments: [];
648
+ arguments: [Address];
649
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
650
+ function setOperator(client: AptosClient, account: AptosAccount, request: {
651
+ type_arguments: [];
652
+ arguments: [Address];
653
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
654
+ function unlock(client: AptosClient, account: AptosAccount, request: {
655
+ type_arguments: [];
656
+ arguments: [bigint];
657
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
658
+ function updateNetworkAndFullnodeAddresses(client: AptosClient, account: AptosAccount, request: {
659
+ type_arguments: [];
660
+ arguments: [Address, string, string];
661
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
662
+ function withdraw(client: AptosClient, account: AptosAccount, request: {
663
+ type_arguments: [];
664
+ arguments: [bigint];
665
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
666
+ }
667
+ namespace view {
668
+ function getCurrentEpochProposalCounts(client: AptosClient, request: {
669
+ arguments: [bigint];
670
+ }, version?: bigint): Promise<[bigint, bigint]>;
671
+ function getCurrentEpochVotingPower(client: AptosClient, request: {
672
+ arguments: [Address];
673
+ }, version?: bigint): Promise<[bigint]>;
674
+ function getDelegatedVoter(client: AptosClient, request: {
675
+ arguments: [Address];
676
+ }, version?: bigint): Promise<[Address]>;
677
+ function getLockupSecs(client: AptosClient, request: {
678
+ arguments: [Address];
679
+ }, version?: bigint): Promise<[bigint]>;
680
+ function getOperator(client: AptosClient, request: {
681
+ arguments: [Address];
682
+ }, version?: bigint): Promise<[Address]>;
683
+ function getRemainingLockupSecs(client: AptosClient, request: {
684
+ arguments: [Address];
685
+ }, version?: bigint): Promise<[bigint]>;
686
+ function getStake(client: AptosClient, request: {
687
+ arguments: [Address];
688
+ }, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
689
+ function getValidatorConfig(client: AptosClient, request: {
690
+ arguments: [Address];
691
+ }, version?: bigint): Promise<[string, string, string]>;
692
+ function getValidatorIndex(client: AptosClient, request: {
693
+ arguments: [Address];
694
+ }, version?: bigint): Promise<[bigint]>;
695
+ function getValidatorState(client: AptosClient, request: {
696
+ arguments: [Address];
697
+ }, version?: bigint): Promise<[bigint]>;
698
+ function stakePoolExists(client: AptosClient, request: {
699
+ arguments: [Address];
700
+ }, version?: bigint): Promise<[Boolean]>;
701
+ }
702
+ }
703
+ export declare namespace table {
704
+ interface Box<T0> {
705
+ val: T0;
706
+ }
707
+ namespace Box {
708
+ const TYPE_QNAME = "0x1::table::Box";
709
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Box<T0>>;
710
+ }
711
+ interface BoxInstance extends TypedEventInstance<Box<any>> {
712
+ data_decoded: Box<any>;
713
+ type_arguments: [string];
714
+ }
715
+ interface Table<T0, T1> {
716
+ handle: Address;
717
+ }
718
+ namespace Table {
719
+ const TYPE_QNAME = "0x1::table::Table";
720
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Table<T0, T1>>;
721
+ }
722
+ namespace entry { }
723
+ namespace view { }
724
+ }
725
+ export declare namespace math64 {
726
+ namespace entry { }
727
+ namespace view { }
728
+ }
729
+ export declare namespace object_ {
730
+ interface ConstructorRef {
731
+ self: Address;
732
+ can_delete: Boolean;
733
+ }
734
+ namespace ConstructorRef {
735
+ const TYPE_QNAME = "0x1::object::ConstructorRef";
736
+ function type(): TypeDescriptor<ConstructorRef>;
737
+ }
738
+ interface DeleteRef {
739
+ self: Address;
740
+ }
741
+ namespace DeleteRef {
742
+ const TYPE_QNAME = "0x1::object::DeleteRef";
743
+ function type(): TypeDescriptor<DeleteRef>;
744
+ }
745
+ interface DeleteRefInstance extends TypedEventInstance<DeleteRef> {
746
+ data_decoded: DeleteRef;
747
+ type_arguments: [];
748
+ }
749
+ interface DeriveRef {
750
+ self: Address;
751
+ }
752
+ namespace DeriveRef {
753
+ const TYPE_QNAME = "0x1::object::DeriveRef";
754
+ function type(): TypeDescriptor<DeriveRef>;
755
+ }
756
+ interface DeriveRefInstance extends TypedEventInstance<DeriveRef> {
757
+ data_decoded: DeriveRef;
758
+ type_arguments: [];
759
+ }
760
+ interface ExtendRef {
761
+ self: Address;
762
+ }
763
+ namespace ExtendRef {
764
+ const TYPE_QNAME = "0x1::object::ExtendRef";
765
+ function type(): TypeDescriptor<ExtendRef>;
766
+ }
767
+ interface ExtendRefInstance extends TypedEventInstance<ExtendRef> {
768
+ data_decoded: ExtendRef;
769
+ type_arguments: [];
770
+ }
771
+ interface LinearTransferRef {
772
+ self: Address;
773
+ owner: Address;
774
+ }
775
+ namespace LinearTransferRef {
776
+ const TYPE_QNAME = "0x1::object::LinearTransferRef";
777
+ function type(): TypeDescriptor<LinearTransferRef>;
778
+ }
779
+ interface Object<T0> {
780
+ inner: Address;
781
+ }
782
+ namespace Object {
783
+ const TYPE_QNAME = "0x1::object::Object";
784
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Object<T0>>;
785
+ }
786
+ interface ObjectInstance extends TypedEventInstance<Object<any>> {
787
+ data_decoded: Object<any>;
788
+ type_arguments: [string];
789
+ }
790
+ interface ObjectCore {
791
+ guid_creation_num: bigint;
792
+ owner: Address;
793
+ allow_ungated_transfer: Boolean;
794
+ transfer_events: event.EventHandle<object_.TransferEvent>;
795
+ }
796
+ namespace ObjectCore {
797
+ const TYPE_QNAME = "0x1::object::ObjectCore";
798
+ function type(): TypeDescriptor<ObjectCore>;
799
+ }
800
+ interface ObjectGroup {
801
+ dummy_field: Boolean;
802
+ }
803
+ namespace ObjectGroup {
804
+ const TYPE_QNAME = "0x1::object::ObjectGroup";
805
+ function type(): TypeDescriptor<ObjectGroup>;
806
+ }
807
+ interface TransferEvent {
808
+ object: Address;
809
+ from: Address;
810
+ to: Address;
811
+ }
812
+ namespace TransferEvent {
813
+ const TYPE_QNAME = "0x1::object::TransferEvent";
814
+ function type(): TypeDescriptor<TransferEvent>;
815
+ }
816
+ interface TransferEventInstance extends TypedEventInstance<TransferEvent> {
817
+ data_decoded: TransferEvent;
818
+ type_arguments: [];
819
+ }
820
+ interface TransferRef {
821
+ self: Address;
822
+ }
823
+ namespace TransferRef {
824
+ const TYPE_QNAME = "0x1::object::TransferRef";
825
+ function type(): TypeDescriptor<TransferRef>;
826
+ }
827
+ interface TransferRefInstance extends TypedEventInstance<TransferRef> {
828
+ data_decoded: TransferRef;
829
+ type_arguments: [];
830
+ }
831
+ namespace entry {
832
+ function transfer<T0 = any>(client: AptosClient, account: AptosAccount, request: {
833
+ type_arguments: [string];
834
+ arguments: [object_.Object<T0>, Address];
835
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
836
+ function transferCall(client: AptosClient, account: AptosAccount, request: {
837
+ type_arguments: [];
838
+ arguments: [Address, Address];
839
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
840
+ function transferToObject<T0 = any, T1 = any>(client: AptosClient, account: AptosAccount, request: {
841
+ type_arguments: [string, string];
842
+ arguments: [object_.Object<T0>, object_.Object<T1>];
843
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
844
+ }
845
+ namespace view { }
846
+ }
847
+ export declare namespace option {
848
+ interface Option<T0> {
849
+ vec: T0[] | string;
850
+ }
851
+ namespace Option {
852
+ const TYPE_QNAME = "0x1::option::Option";
853
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Option<T0>>;
854
+ }
855
+ interface OptionInstance extends TypedEventInstance<Option<any>> {
856
+ data_decoded: Option<any>;
857
+ type_arguments: [string];
858
+ }
859
+ namespace entry { }
860
+ namespace view { }
861
+ }
862
+ export declare namespace signer {
863
+ namespace entry { }
864
+ namespace view { }
865
+ }
866
+ export declare namespace string_ {
867
+ interface String {
868
+ bytes: string;
869
+ }
870
+ namespace String {
871
+ const TYPE_QNAME = "0x1::string::String";
872
+ function type(): TypeDescriptor<String>;
873
+ }
874
+ interface StringInstance extends TypedEventInstance<String> {
875
+ data_decoded: String;
876
+ type_arguments: [];
877
+ }
878
+ namespace entry { }
879
+ namespace view { }
880
+ }
881
+ export declare namespace vector {
882
+ namespace entry { }
883
+ namespace view { }
884
+ }
885
+ export declare namespace voting {
886
+ interface CreateProposalEvent {
887
+ proposal_id: bigint;
888
+ early_resolution_vote_threshold: option.Option<bigint>;
889
+ execution_hash: string;
890
+ expiration_secs: bigint;
891
+ metadata: simple_map.SimpleMap<string, string>;
892
+ min_vote_threshold: bigint;
893
+ }
894
+ namespace CreateProposalEvent {
895
+ const TYPE_QNAME = "0x1::voting::CreateProposalEvent";
896
+ function type(): TypeDescriptor<CreateProposalEvent>;
897
+ }
898
+ interface CreateProposalEventInstance extends TypedEventInstance<CreateProposalEvent> {
899
+ data_decoded: CreateProposalEvent;
900
+ type_arguments: [];
901
+ }
902
+ interface Proposal<T0> {
903
+ proposer: Address;
904
+ execution_content: option.Option<T0>;
905
+ metadata: simple_map.SimpleMap<string, string>;
906
+ creation_time_secs: bigint;
907
+ execution_hash: string;
908
+ min_vote_threshold: bigint;
909
+ expiration_secs: bigint;
910
+ early_resolution_vote_threshold: option.Option<bigint>;
911
+ yes_votes: bigint;
912
+ no_votes: bigint;
913
+ is_resolved: Boolean;
914
+ resolution_time_secs: bigint;
915
+ }
916
+ namespace Proposal {
917
+ const TYPE_QNAME = "0x1::voting::Proposal";
918
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Proposal<T0>>;
919
+ }
920
+ interface RegisterForumEvent {
921
+ hosting_account: Address;
922
+ proposal_type_info: type_info.TypeInfo;
923
+ }
924
+ namespace RegisterForumEvent {
925
+ const TYPE_QNAME = "0x1::voting::RegisterForumEvent";
926
+ function type(): TypeDescriptor<RegisterForumEvent>;
927
+ }
928
+ interface RegisterForumEventInstance extends TypedEventInstance<RegisterForumEvent> {
929
+ data_decoded: RegisterForumEvent;
930
+ type_arguments: [];
931
+ }
932
+ interface ResolveProposal {
933
+ proposal_id: bigint;
934
+ yes_votes: bigint;
935
+ no_votes: bigint;
936
+ resolved_early: Boolean;
937
+ }
938
+ namespace ResolveProposal {
939
+ const TYPE_QNAME = "0x1::voting::ResolveProposal";
940
+ function type(): TypeDescriptor<ResolveProposal>;
941
+ }
942
+ interface ResolveProposalInstance extends TypedEventInstance<ResolveProposal> {
943
+ data_decoded: ResolveProposal;
944
+ type_arguments: [];
945
+ }
946
+ interface VoteEvent {
947
+ proposal_id: bigint;
948
+ num_votes: bigint;
949
+ }
950
+ namespace VoteEvent {
951
+ const TYPE_QNAME = "0x1::voting::VoteEvent";
952
+ function type(): TypeDescriptor<VoteEvent>;
953
+ }
954
+ interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
955
+ data_decoded: VoteEvent;
956
+ type_arguments: [];
957
+ }
958
+ interface VotingEvents {
959
+ create_proposal_events: event.EventHandle<voting.CreateProposalEvent>;
960
+ register_forum_events: event.EventHandle<voting.RegisterForumEvent>;
961
+ resolve_proposal_events: event.EventHandle<voting.ResolveProposal>;
962
+ vote_events: event.EventHandle<voting.VoteEvent>;
963
+ }
964
+ namespace VotingEvents {
965
+ const TYPE_QNAME = "0x1::voting::VotingEvents";
966
+ function type(): TypeDescriptor<VotingEvents>;
967
+ }
968
+ interface VotingForum<T0> {
969
+ proposals: table.Table<bigint, voting.Proposal<T0>>;
970
+ events: voting.VotingEvents;
971
+ next_proposal_id: bigint;
972
+ }
973
+ namespace VotingForum {
974
+ const TYPE_QNAME = "0x1::voting::VotingForum";
975
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<VotingForum<T0>>;
976
+ }
977
+ namespace entry { }
978
+ namespace view {
979
+ function getEarlyResolutionVoteThreshold<T0 = any>(client: AptosClient, request: {
980
+ type_arguments: [string];
981
+ arguments: [Address, bigint];
982
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
983
+ function getExecutionHash<T0 = any>(client: AptosClient, request: {
984
+ type_arguments: [string];
985
+ arguments: [Address, bigint];
986
+ }, version?: bigint): Promise<[string]>;
987
+ function getMinVoteThreshold<T0 = any>(client: AptosClient, request: {
988
+ type_arguments: [string];
989
+ arguments: [Address, bigint];
990
+ }, version?: bigint): Promise<[bigint]>;
991
+ function getProposalCreationSecs<T0 = any>(client: AptosClient, request: {
992
+ type_arguments: [string];
993
+ arguments: [Address, bigint];
994
+ }, version?: bigint): Promise<[bigint]>;
995
+ function getProposalExpirationSecs<T0 = any>(client: AptosClient, request: {
996
+ type_arguments: [string];
997
+ arguments: [Address, bigint];
998
+ }, version?: bigint): Promise<[bigint]>;
999
+ function getProposalState<T0 = any>(client: AptosClient, request: {
1000
+ type_arguments: [string];
1001
+ arguments: [Address, bigint];
1002
+ }, version?: bigint): Promise<[bigint]>;
1003
+ function getVotes<T0 = any>(client: AptosClient, request: {
1004
+ type_arguments: [string];
1005
+ arguments: [Address, bigint];
1006
+ }, version?: bigint): Promise<[bigint, bigint]>;
1007
+ function isMultiStepProposalInExecution<T0 = any>(client: AptosClient, request: {
1008
+ type_arguments: [string];
1009
+ arguments: [Address, bigint];
1010
+ }, version?: bigint): Promise<[Boolean]>;
1011
+ function isResolved<T0 = any>(client: AptosClient, request: {
1012
+ type_arguments: [string];
1013
+ arguments: [Address, bigint];
1014
+ }, version?: bigint): Promise<[Boolean]>;
1015
+ function isVotingClosed<T0 = any>(client: AptosClient, request: {
1016
+ type_arguments: [string];
1017
+ arguments: [Address, bigint];
1018
+ }, version?: bigint): Promise<[Boolean]>;
1019
+ function nextProposalId<T0 = any>(client: AptosClient, request: {
1020
+ type_arguments: [string];
1021
+ arguments: [Address];
1022
+ }, version?: bigint): Promise<[bigint]>;
1023
+ }
1024
+ }
1025
+ export declare namespace account {
1026
+ interface Account {
1027
+ authentication_key: string;
1028
+ sequence_number: bigint;
1029
+ guid_creation_num: bigint;
1030
+ coin_register_events: event.EventHandle<account.CoinRegisterEvent>;
1031
+ key_rotation_events: event.EventHandle<account.KeyRotationEvent>;
1032
+ rotation_capability_offer: account.CapabilityOffer<account.RotationCapability>;
1033
+ signer_capability_offer: account.CapabilityOffer<account.SignerCapability>;
1034
+ }
1035
+ namespace Account {
1036
+ const TYPE_QNAME = "0x1::account::Account";
1037
+ function type(): TypeDescriptor<Account>;
1038
+ }
1039
+ interface CapabilityOffer<T0> {
1040
+ for: option.Option<Address>;
1041
+ }
1042
+ namespace CapabilityOffer {
1043
+ const TYPE_QNAME = "0x1::account::CapabilityOffer";
1044
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CapabilityOffer<T0>>;
1045
+ }
1046
+ interface CoinRegisterEvent {
1047
+ type_info: type_info.TypeInfo;
1048
+ }
1049
+ namespace CoinRegisterEvent {
1050
+ const TYPE_QNAME = "0x1::account::CoinRegisterEvent";
1051
+ function type(): TypeDescriptor<CoinRegisterEvent>;
1052
+ }
1053
+ interface CoinRegisterEventInstance extends TypedEventInstance<CoinRegisterEvent> {
1054
+ data_decoded: CoinRegisterEvent;
1055
+ type_arguments: [];
1056
+ }
1057
+ interface KeyRotationEvent {
1058
+ old_authentication_key: string;
1059
+ new_authentication_key: string;
1060
+ }
1061
+ namespace KeyRotationEvent {
1062
+ const TYPE_QNAME = "0x1::account::KeyRotationEvent";
1063
+ function type(): TypeDescriptor<KeyRotationEvent>;
1064
+ }
1065
+ interface KeyRotationEventInstance extends TypedEventInstance<KeyRotationEvent> {
1066
+ data_decoded: KeyRotationEvent;
1067
+ type_arguments: [];
1068
+ }
1069
+ interface OriginatingAddress {
1070
+ address_map: table.Table<Address, Address>;
1071
+ }
1072
+ namespace OriginatingAddress {
1073
+ const TYPE_QNAME = "0x1::account::OriginatingAddress";
1074
+ function type(): TypeDescriptor<OriginatingAddress>;
1075
+ }
1076
+ interface RotationCapability {
1077
+ account: Address;
1078
+ }
1079
+ namespace RotationCapability {
1080
+ const TYPE_QNAME = "0x1::account::RotationCapability";
1081
+ function type(): TypeDescriptor<RotationCapability>;
1082
+ }
1083
+ interface RotationCapabilityInstance extends TypedEventInstance<RotationCapability> {
1084
+ data_decoded: RotationCapability;
1085
+ type_arguments: [];
1086
+ }
1087
+ interface RotationCapabilityOfferProofChallenge {
1088
+ sequence_number: bigint;
1089
+ recipient_address: Address;
1090
+ }
1091
+ namespace RotationCapabilityOfferProofChallenge {
1092
+ const TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallenge";
1093
+ function type(): TypeDescriptor<RotationCapabilityOfferProofChallenge>;
1094
+ }
1095
+ interface RotationCapabilityOfferProofChallengeV2 {
1096
+ chain_id: number;
1097
+ sequence_number: bigint;
1098
+ source_address: Address;
1099
+ recipient_address: Address;
1100
+ }
1101
+ namespace RotationCapabilityOfferProofChallengeV2 {
1102
+ const TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallengeV2";
1103
+ function type(): TypeDescriptor<RotationCapabilityOfferProofChallengeV2>;
1104
+ }
1105
+ interface RotationProofChallenge {
1106
+ sequence_number: bigint;
1107
+ originator: Address;
1108
+ current_auth_key: Address;
1109
+ new_public_key: string;
1110
+ }
1111
+ namespace RotationProofChallenge {
1112
+ const TYPE_QNAME = "0x1::account::RotationProofChallenge";
1113
+ function type(): TypeDescriptor<RotationProofChallenge>;
1114
+ }
1115
+ interface SignerCapability {
1116
+ account: Address;
1117
+ }
1118
+ namespace SignerCapability {
1119
+ const TYPE_QNAME = "0x1::account::SignerCapability";
1120
+ function type(): TypeDescriptor<SignerCapability>;
1121
+ }
1122
+ interface SignerCapabilityInstance extends TypedEventInstance<SignerCapability> {
1123
+ data_decoded: SignerCapability;
1124
+ type_arguments: [];
1125
+ }
1126
+ interface SignerCapabilityOfferProofChallenge {
1127
+ sequence_number: bigint;
1128
+ recipient_address: Address;
1129
+ }
1130
+ namespace SignerCapabilityOfferProofChallenge {
1131
+ const TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallenge";
1132
+ function type(): TypeDescriptor<SignerCapabilityOfferProofChallenge>;
1133
+ }
1134
+ interface SignerCapabilityOfferProofChallengeV2 {
1135
+ sequence_number: bigint;
1136
+ source_address: Address;
1137
+ recipient_address: Address;
1138
+ }
1139
+ namespace SignerCapabilityOfferProofChallengeV2 {
1140
+ const TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallengeV2";
1141
+ function type(): TypeDescriptor<SignerCapabilityOfferProofChallengeV2>;
1142
+ }
1143
+ namespace entry {
1144
+ function offerRotationCapability(client: AptosClient, account: AptosAccount, request: {
1145
+ type_arguments: [];
1146
+ arguments: [string, number, string, Address];
1147
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1148
+ function offerSignerCapability(client: AptosClient, account: AptosAccount, request: {
1149
+ type_arguments: [];
1150
+ arguments: [string, number, string, Address];
1151
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1152
+ function revokeAnyRotationCapability(client: AptosClient, account: AptosAccount, request: {
1153
+ type_arguments: [];
1154
+ arguments: [];
1155
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1156
+ function revokeAnySignerCapability(client: AptosClient, account: AptosAccount, request: {
1157
+ type_arguments: [];
1158
+ arguments: [];
1159
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1160
+ function revokeRotationCapability(client: AptosClient, account: AptosAccount, request: {
1161
+ type_arguments: [];
1162
+ arguments: [Address];
1163
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1164
+ function revokeSignerCapability(client: AptosClient, account: AptosAccount, request: {
1165
+ type_arguments: [];
1166
+ arguments: [Address];
1167
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1168
+ function rotateAuthenticationKey(client: AptosClient, account: AptosAccount, request: {
1169
+ type_arguments: [];
1170
+ arguments: [number, string, number, string, string, string];
1171
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1172
+ function rotateAuthenticationKeyWithRotationCapability(client: AptosClient, account: AptosAccount, request: {
1173
+ type_arguments: [];
1174
+ arguments: [Address, number, string, string];
1175
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1176
+ }
1177
+ namespace view {
1178
+ function existsAt(client: AptosClient, request: {
1179
+ arguments: [Address];
1180
+ }, version?: bigint): Promise<[Boolean]>;
1181
+ function getAuthenticationKey(client: AptosClient, request: {
1182
+ arguments: [Address];
1183
+ }, version?: bigint): Promise<[string]>;
1184
+ function getGuidNextCreationNum(client: AptosClient, request: {
1185
+ arguments: [Address];
1186
+ }, version?: bigint): Promise<[bigint]>;
1187
+ function getSequenceNumber(client: AptosClient, request: {
1188
+ arguments: [Address];
1189
+ }, version?: bigint): Promise<[bigint]>;
1190
+ function getSignerCapabilityOfferFor(client: AptosClient, request: {
1191
+ arguments: [Address];
1192
+ }, version?: bigint): Promise<[Address]>;
1193
+ function isSignerCapabilityOffered(client: AptosClient, request: {
1194
+ arguments: [Address];
1195
+ }, version?: bigint): Promise<[Boolean]>;
1196
+ }
1197
+ }
1198
+ export declare namespace ed25519 {
1199
+ interface Signature {
1200
+ bytes: string;
1201
+ }
1202
+ namespace Signature {
1203
+ const TYPE_QNAME = "0x1::ed25519::Signature";
1204
+ function type(): TypeDescriptor<Signature>;
1205
+ }
1206
+ interface SignatureInstance extends TypedEventInstance<Signature> {
1207
+ data_decoded: Signature;
1208
+ type_arguments: [];
1209
+ }
1210
+ interface SignedMessage<T0> {
1211
+ type_info: type_info.TypeInfo;
1212
+ inner: T0;
1213
+ }
1214
+ namespace SignedMessage {
1215
+ const TYPE_QNAME = "0x1::ed25519::SignedMessage";
1216
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SignedMessage<T0>>;
1217
+ }
1218
+ interface UnvalidatedPublicKey {
1219
+ bytes: string;
1220
+ }
1221
+ namespace UnvalidatedPublicKey {
1222
+ const TYPE_QNAME = "0x1::ed25519::UnvalidatedPublicKey";
1223
+ function type(): TypeDescriptor<UnvalidatedPublicKey>;
1224
+ }
1225
+ interface UnvalidatedPublicKeyInstance extends TypedEventInstance<UnvalidatedPublicKey> {
1226
+ data_decoded: UnvalidatedPublicKey;
1227
+ type_arguments: [];
1228
+ }
1229
+ interface ValidatedPublicKey {
1230
+ bytes: string;
1231
+ }
1232
+ namespace ValidatedPublicKey {
1233
+ const TYPE_QNAME = "0x1::ed25519::ValidatedPublicKey";
1234
+ function type(): TypeDescriptor<ValidatedPublicKey>;
1235
+ }
1236
+ interface ValidatedPublicKeyInstance extends TypedEventInstance<ValidatedPublicKey> {
1237
+ data_decoded: ValidatedPublicKey;
1238
+ type_arguments: [];
1239
+ }
1240
+ namespace entry { }
1241
+ namespace view { }
1242
+ }
1243
+ export declare namespace genesis {
1244
+ interface AccountMap {
1245
+ account_address: Address;
1246
+ balance: bigint;
1247
+ }
1248
+ namespace AccountMap {
1249
+ const TYPE_QNAME = "0x1::genesis::AccountMap";
1250
+ function type(): TypeDescriptor<AccountMap>;
1251
+ }
1252
+ interface EmployeeAccountMap {
1253
+ accounts: Address[];
1254
+ validator: genesis.ValidatorConfigurationWithCommission;
1255
+ vesting_schedule_numerator: bigint[];
1256
+ vesting_schedule_denominator: bigint;
1257
+ beneficiary_resetter: Address;
1258
+ }
1259
+ namespace EmployeeAccountMap {
1260
+ const TYPE_QNAME = "0x1::genesis::EmployeeAccountMap";
1261
+ function type(): TypeDescriptor<EmployeeAccountMap>;
1262
+ }
1263
+ interface ValidatorConfiguration {
1264
+ owner_address: Address;
1265
+ operator_address: Address;
1266
+ voter_address: Address;
1267
+ stake_amount: bigint;
1268
+ consensus_pubkey: string;
1269
+ proof_of_possession: string;
1270
+ network_addresses: string;
1271
+ full_node_network_addresses: string;
1272
+ }
1273
+ namespace ValidatorConfiguration {
1274
+ const TYPE_QNAME = "0x1::genesis::ValidatorConfiguration";
1275
+ function type(): TypeDescriptor<ValidatorConfiguration>;
1276
+ }
1277
+ interface ValidatorConfigurationWithCommission {
1278
+ validator_config: genesis.ValidatorConfiguration;
1279
+ commission_percentage: bigint;
1280
+ join_during_genesis: Boolean;
1281
+ }
1282
+ namespace ValidatorConfigurationWithCommission {
1283
+ const TYPE_QNAME = "0x1::genesis::ValidatorConfigurationWithCommission";
1284
+ function type(): TypeDescriptor<ValidatorConfigurationWithCommission>;
1285
+ }
1286
+ namespace entry { }
1287
+ namespace view { }
1288
+ }
1289
+ export declare namespace math128 {
1290
+ namespace entry { }
1291
+ namespace view { }
1292
+ }
1293
+ export declare namespace version {
1294
+ interface SetVersionCapability {
1295
+ dummy_field: Boolean;
1296
+ }
1297
+ namespace SetVersionCapability {
1298
+ const TYPE_QNAME = "0x1::version::SetVersionCapability";
1299
+ function type(): TypeDescriptor<SetVersionCapability>;
1300
+ }
1301
+ interface Version {
1302
+ major: bigint;
1303
+ }
1304
+ namespace Version {
1305
+ const TYPE_QNAME = "0x1::version::Version";
1306
+ function type(): TypeDescriptor<Version>;
1307
+ }
1308
+ namespace entry {
1309
+ function setVersion(client: AptosClient, account: AptosAccount, request: {
1310
+ type_arguments: [];
1311
+ arguments: [bigint];
1312
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1313
+ }
1314
+ namespace view { }
1315
+ }
1316
+ export declare namespace vesting {
1317
+ interface AdminStore {
1318
+ vesting_contracts: Address[];
1319
+ nonce: bigint;
1320
+ create_events: event.EventHandle<vesting.CreateVestingContractEvent>;
1321
+ }
1322
+ namespace AdminStore {
1323
+ const TYPE_QNAME = "0x1::vesting::AdminStore";
1324
+ function type(): TypeDescriptor<AdminStore>;
1325
+ }
1326
+ interface AdminWithdrawEvent {
1327
+ admin: Address;
1328
+ vesting_contract_address: Address;
1329
+ amount: bigint;
1330
+ }
1331
+ namespace AdminWithdrawEvent {
1332
+ const TYPE_QNAME = "0x1::vesting::AdminWithdrawEvent";
1333
+ function type(): TypeDescriptor<AdminWithdrawEvent>;
1334
+ }
1335
+ interface AdminWithdrawEventInstance extends TypedEventInstance<AdminWithdrawEvent> {
1336
+ data_decoded: AdminWithdrawEvent;
1337
+ type_arguments: [];
1338
+ }
1339
+ interface CreateVestingContractEvent {
1340
+ operator: Address;
1341
+ voter: Address;
1342
+ grant_amount: bigint;
1343
+ withdrawal_address: Address;
1344
+ vesting_contract_address: Address;
1345
+ staking_pool_address: Address;
1346
+ commission_percentage: bigint;
1347
+ }
1348
+ namespace CreateVestingContractEvent {
1349
+ const TYPE_QNAME = "0x1::vesting::CreateVestingContractEvent";
1350
+ function type(): TypeDescriptor<CreateVestingContractEvent>;
1351
+ }
1352
+ interface CreateVestingContractEventInstance extends TypedEventInstance<CreateVestingContractEvent> {
1353
+ data_decoded: CreateVestingContractEvent;
1354
+ type_arguments: [];
1355
+ }
1356
+ interface DistributeEvent {
1357
+ admin: Address;
1358
+ vesting_contract_address: Address;
1359
+ amount: bigint;
1360
+ }
1361
+ namespace DistributeEvent {
1362
+ const TYPE_QNAME = "0x1::vesting::DistributeEvent";
1363
+ function type(): TypeDescriptor<DistributeEvent>;
1364
+ }
1365
+ interface DistributeEventInstance extends TypedEventInstance<DistributeEvent> {
1366
+ data_decoded: DistributeEvent;
1367
+ type_arguments: [];
1368
+ }
1369
+ interface ResetLockupEvent {
1370
+ admin: Address;
1371
+ vesting_contract_address: Address;
1372
+ staking_pool_address: Address;
1373
+ new_lockup_expiration_secs: bigint;
1374
+ }
1375
+ namespace ResetLockupEvent {
1376
+ const TYPE_QNAME = "0x1::vesting::ResetLockupEvent";
1377
+ function type(): TypeDescriptor<ResetLockupEvent>;
1378
+ }
1379
+ interface ResetLockupEventInstance extends TypedEventInstance<ResetLockupEvent> {
1380
+ data_decoded: ResetLockupEvent;
1381
+ type_arguments: [];
1382
+ }
1383
+ interface SetBeneficiaryEvent {
1384
+ admin: Address;
1385
+ vesting_contract_address: Address;
1386
+ shareholder: Address;
1387
+ old_beneficiary: Address;
1388
+ new_beneficiary: Address;
1389
+ }
1390
+ namespace SetBeneficiaryEvent {
1391
+ const TYPE_QNAME = "0x1::vesting::SetBeneficiaryEvent";
1392
+ function type(): TypeDescriptor<SetBeneficiaryEvent>;
1393
+ }
1394
+ interface SetBeneficiaryEventInstance extends TypedEventInstance<SetBeneficiaryEvent> {
1395
+ data_decoded: SetBeneficiaryEvent;
1396
+ type_arguments: [];
1397
+ }
1398
+ interface StakingInfo {
1399
+ pool_address: Address;
1400
+ operator: Address;
1401
+ voter: Address;
1402
+ commission_percentage: bigint;
1403
+ }
1404
+ namespace StakingInfo {
1405
+ const TYPE_QNAME = "0x1::vesting::StakingInfo";
1406
+ function type(): TypeDescriptor<StakingInfo>;
1407
+ }
1408
+ interface TerminateEvent {
1409
+ admin: Address;
1410
+ vesting_contract_address: Address;
1411
+ }
1412
+ namespace TerminateEvent {
1413
+ const TYPE_QNAME = "0x1::vesting::TerminateEvent";
1414
+ function type(): TypeDescriptor<TerminateEvent>;
1415
+ }
1416
+ interface TerminateEventInstance extends TypedEventInstance<TerminateEvent> {
1417
+ data_decoded: TerminateEvent;
1418
+ type_arguments: [];
1419
+ }
1420
+ interface UnlockRewardsEvent {
1421
+ admin: Address;
1422
+ vesting_contract_address: Address;
1423
+ staking_pool_address: Address;
1424
+ amount: bigint;
1425
+ }
1426
+ namespace UnlockRewardsEvent {
1427
+ const TYPE_QNAME = "0x1::vesting::UnlockRewardsEvent";
1428
+ function type(): TypeDescriptor<UnlockRewardsEvent>;
1429
+ }
1430
+ interface UnlockRewardsEventInstance extends TypedEventInstance<UnlockRewardsEvent> {
1431
+ data_decoded: UnlockRewardsEvent;
1432
+ type_arguments: [];
1433
+ }
1434
+ interface UpdateOperatorEvent {
1435
+ admin: Address;
1436
+ vesting_contract_address: Address;
1437
+ staking_pool_address: Address;
1438
+ old_operator: Address;
1439
+ new_operator: Address;
1440
+ commission_percentage: bigint;
1441
+ }
1442
+ namespace UpdateOperatorEvent {
1443
+ const TYPE_QNAME = "0x1::vesting::UpdateOperatorEvent";
1444
+ function type(): TypeDescriptor<UpdateOperatorEvent>;
1445
+ }
1446
+ interface UpdateOperatorEventInstance extends TypedEventInstance<UpdateOperatorEvent> {
1447
+ data_decoded: UpdateOperatorEvent;
1448
+ type_arguments: [];
1449
+ }
1450
+ interface UpdateVoterEvent {
1451
+ admin: Address;
1452
+ vesting_contract_address: Address;
1453
+ staking_pool_address: Address;
1454
+ old_voter: Address;
1455
+ new_voter: Address;
1456
+ }
1457
+ namespace UpdateVoterEvent {
1458
+ const TYPE_QNAME = "0x1::vesting::UpdateVoterEvent";
1459
+ function type(): TypeDescriptor<UpdateVoterEvent>;
1460
+ }
1461
+ interface UpdateVoterEventInstance extends TypedEventInstance<UpdateVoterEvent> {
1462
+ data_decoded: UpdateVoterEvent;
1463
+ type_arguments: [];
1464
+ }
1465
+ interface VestEvent {
1466
+ admin: Address;
1467
+ vesting_contract_address: Address;
1468
+ staking_pool_address: Address;
1469
+ period_vested: bigint;
1470
+ amount: bigint;
1471
+ }
1472
+ namespace VestEvent {
1473
+ const TYPE_QNAME = "0x1::vesting::VestEvent";
1474
+ function type(): TypeDescriptor<VestEvent>;
1475
+ }
1476
+ interface VestEventInstance extends TypedEventInstance<VestEvent> {
1477
+ data_decoded: VestEvent;
1478
+ type_arguments: [];
1479
+ }
1480
+ interface VestingAccountManagement {
1481
+ roles: simple_map.SimpleMap<string, Address>;
1482
+ }
1483
+ namespace VestingAccountManagement {
1484
+ const TYPE_QNAME = "0x1::vesting::VestingAccountManagement";
1485
+ function type(): TypeDescriptor<VestingAccountManagement>;
1486
+ }
1487
+ interface VestingContract {
1488
+ state: bigint;
1489
+ admin: Address;
1490
+ grant_pool: pool_u64.Pool;
1491
+ beneficiaries: simple_map.SimpleMap<Address, Address>;
1492
+ vesting_schedule: vesting.VestingSchedule;
1493
+ withdrawal_address: Address;
1494
+ staking: vesting.StakingInfo;
1495
+ remaining_grant: bigint;
1496
+ signer_cap: account.SignerCapability;
1497
+ update_operator_events: event.EventHandle<vesting.UpdateOperatorEvent>;
1498
+ update_voter_events: event.EventHandle<vesting.UpdateVoterEvent>;
1499
+ reset_lockup_events: event.EventHandle<vesting.ResetLockupEvent>;
1500
+ set_beneficiary_events: event.EventHandle<vesting.SetBeneficiaryEvent>;
1501
+ unlock_rewards_events: event.EventHandle<vesting.UnlockRewardsEvent>;
1502
+ vest_events: event.EventHandle<vesting.VestEvent>;
1503
+ distribute_events: event.EventHandle<vesting.DistributeEvent>;
1504
+ terminate_events: event.EventHandle<vesting.TerminateEvent>;
1505
+ admin_withdraw_events: event.EventHandle<vesting.AdminWithdrawEvent>;
1506
+ }
1507
+ namespace VestingContract {
1508
+ const TYPE_QNAME = "0x1::vesting::VestingContract";
1509
+ function type(): TypeDescriptor<VestingContract>;
1510
+ }
1511
+ interface VestingSchedule {
1512
+ schedule: fixed_point32.FixedPoint32[];
1513
+ start_timestamp_secs: bigint;
1514
+ period_duration: bigint;
1515
+ last_vested_period: bigint;
1516
+ }
1517
+ namespace VestingSchedule {
1518
+ const TYPE_QNAME = "0x1::vesting::VestingSchedule";
1519
+ function type(): TypeDescriptor<VestingSchedule>;
1520
+ }
1521
+ interface VestingScheduleInstance extends TypedEventInstance<VestingSchedule> {
1522
+ data_decoded: VestingSchedule;
1523
+ type_arguments: [];
1524
+ }
1525
+ namespace entry {
1526
+ function adminWithdraw(client: AptosClient, account: AptosAccount, request: {
1527
+ type_arguments: [];
1528
+ arguments: [Address];
1529
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1530
+ function distribute(client: AptosClient, account: AptosAccount, request: {
1531
+ type_arguments: [];
1532
+ arguments: [Address];
1533
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1534
+ function distributeMany(client: AptosClient, account: AptosAccount, request: {
1535
+ type_arguments: [];
1536
+ arguments: [Address[]];
1537
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1538
+ function resetBeneficiary(client: AptosClient, account: AptosAccount, request: {
1539
+ type_arguments: [];
1540
+ arguments: [Address, Address];
1541
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1542
+ function resetLockup(client: AptosClient, account: AptosAccount, request: {
1543
+ type_arguments: [];
1544
+ arguments: [Address];
1545
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1546
+ function setBeneficiary(client: AptosClient, account: AptosAccount, request: {
1547
+ type_arguments: [];
1548
+ arguments: [Address, Address, Address];
1549
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1550
+ function setBeneficiaryResetter(client: AptosClient, account: AptosAccount, request: {
1551
+ type_arguments: [];
1552
+ arguments: [Address, Address];
1553
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1554
+ function setManagementRole(client: AptosClient, account: AptosAccount, request: {
1555
+ type_arguments: [];
1556
+ arguments: [Address, string, Address];
1557
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1558
+ function terminateVestingContract(client: AptosClient, account: AptosAccount, request: {
1559
+ type_arguments: [];
1560
+ arguments: [Address];
1561
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1562
+ function unlockRewards(client: AptosClient, account: AptosAccount, request: {
1563
+ type_arguments: [];
1564
+ arguments: [Address];
1565
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1566
+ function unlockRewardsMany(client: AptosClient, account: AptosAccount, request: {
1567
+ type_arguments: [];
1568
+ arguments: [Address[]];
1569
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1570
+ function updateOperator(client: AptosClient, account: AptosAccount, request: {
1571
+ type_arguments: [];
1572
+ arguments: [Address, Address, bigint];
1573
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1574
+ function updateOperatorWithSameCommission(client: AptosClient, account: AptosAccount, request: {
1575
+ type_arguments: [];
1576
+ arguments: [Address, Address];
1577
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1578
+ function updateVoter(client: AptosClient, account: AptosAccount, request: {
1579
+ type_arguments: [];
1580
+ arguments: [Address, Address];
1581
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1582
+ function vest(client: AptosClient, account: AptosAccount, request: {
1583
+ type_arguments: [];
1584
+ arguments: [Address];
1585
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1586
+ function vestMany(client: AptosClient, account: AptosAccount, request: {
1587
+ type_arguments: [];
1588
+ arguments: [Address[]];
1589
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1590
+ }
1591
+ namespace view {
1592
+ function accumulatedRewards(client: AptosClient, request: {
1593
+ arguments: [Address, Address];
1594
+ }, version?: bigint): Promise<[bigint]>;
1595
+ function beneficiary(client: AptosClient, request: {
1596
+ arguments: [Address, Address];
1597
+ }, version?: bigint): Promise<[Address]>;
1598
+ function operator(client: AptosClient, request: {
1599
+ arguments: [Address];
1600
+ }, version?: bigint): Promise<[Address]>;
1601
+ function operatorCommissionPercentage(client: AptosClient, request: {
1602
+ arguments: [Address];
1603
+ }, version?: bigint): Promise<[bigint]>;
1604
+ function periodDurationSecs(client: AptosClient, request: {
1605
+ arguments: [Address];
1606
+ }, version?: bigint): Promise<[bigint]>;
1607
+ function remainingGrant(client: AptosClient, request: {
1608
+ arguments: [Address];
1609
+ }, version?: bigint): Promise<[bigint]>;
1610
+ function shareholder(client: AptosClient, request: {
1611
+ arguments: [Address, Address];
1612
+ }, version?: bigint): Promise<[Address]>;
1613
+ function shareholders(client: AptosClient, request: {
1614
+ arguments: [Address];
1615
+ }, version?: bigint): Promise<[Address[]]>;
1616
+ function stakePoolAddress(client: AptosClient, request: {
1617
+ arguments: [Address];
1618
+ }, version?: bigint): Promise<[Address]>;
1619
+ function totalAccumulatedRewards(client: AptosClient, request: {
1620
+ arguments: [Address];
1621
+ }, version?: bigint): Promise<[bigint]>;
1622
+ function vestingContracts(client: AptosClient, request: {
1623
+ arguments: [Address];
1624
+ }, version?: bigint): Promise<[Address[]]>;
1625
+ function vestingSchedule(client: AptosClient, request: {
1626
+ arguments: [Address];
1627
+ }, version?: bigint): Promise<[vesting.VestingSchedule]>;
1628
+ function vestingStartSecs(client: AptosClient, request: {
1629
+ arguments: [Address];
1630
+ }, version?: bigint): Promise<[bigint]>;
1631
+ function voter(client: AptosClient, request: {
1632
+ arguments: [Address];
1633
+ }, version?: bigint): Promise<[Address]>;
1634
+ }
1635
+ }
1636
+ export declare namespace bls12381 {
1637
+ interface AggrOrMultiSignature {
1638
+ bytes: string;
1639
+ }
1640
+ namespace AggrOrMultiSignature {
1641
+ const TYPE_QNAME = "0x1::bls12381::AggrOrMultiSignature";
1642
+ function type(): TypeDescriptor<AggrOrMultiSignature>;
1643
+ }
1644
+ interface AggrOrMultiSignatureInstance extends TypedEventInstance<AggrOrMultiSignature> {
1645
+ data_decoded: AggrOrMultiSignature;
1646
+ type_arguments: [];
1647
+ }
1648
+ interface AggrPublicKeysWithPoP {
1649
+ bytes: string;
1650
+ }
1651
+ namespace AggrPublicKeysWithPoP {
1652
+ const TYPE_QNAME = "0x1::bls12381::AggrPublicKeysWithPoP";
1653
+ function type(): TypeDescriptor<AggrPublicKeysWithPoP>;
1654
+ }
1655
+ interface AggrPublicKeysWithPoPInstance extends TypedEventInstance<AggrPublicKeysWithPoP> {
1656
+ data_decoded: AggrPublicKeysWithPoP;
1657
+ type_arguments: [];
1658
+ }
1659
+ interface ProofOfPossession {
1660
+ bytes: string;
1661
+ }
1662
+ namespace ProofOfPossession {
1663
+ const TYPE_QNAME = "0x1::bls12381::ProofOfPossession";
1664
+ function type(): TypeDescriptor<ProofOfPossession>;
1665
+ }
1666
+ interface ProofOfPossessionInstance extends TypedEventInstance<ProofOfPossession> {
1667
+ data_decoded: ProofOfPossession;
1668
+ type_arguments: [];
1669
+ }
1670
+ interface PublicKey {
1671
+ bytes: string;
1672
+ }
1673
+ namespace PublicKey {
1674
+ const TYPE_QNAME = "0x1::bls12381::PublicKey";
1675
+ function type(): TypeDescriptor<PublicKey>;
1676
+ }
1677
+ interface PublicKeyInstance extends TypedEventInstance<PublicKey> {
1678
+ data_decoded: PublicKey;
1679
+ type_arguments: [];
1680
+ }
1681
+ interface PublicKeyWithPoP {
1682
+ bytes: string;
1683
+ }
1684
+ namespace PublicKeyWithPoP {
1685
+ const TYPE_QNAME = "0x1::bls12381::PublicKeyWithPoP";
1686
+ function type(): TypeDescriptor<PublicKeyWithPoP>;
1687
+ }
1688
+ interface PublicKeyWithPoPInstance extends TypedEventInstance<PublicKeyWithPoP> {
1689
+ data_decoded: PublicKeyWithPoP;
1690
+ type_arguments: [];
1691
+ }
1692
+ interface Signature {
1693
+ bytes: string;
1694
+ }
1695
+ namespace Signature {
1696
+ const TYPE_QNAME = "0x1::bls12381::Signature";
1697
+ function type(): TypeDescriptor<Signature>;
1698
+ }
1699
+ interface SignatureInstance extends TypedEventInstance<Signature> {
1700
+ data_decoded: Signature;
1701
+ type_arguments: [];
1702
+ }
1703
+ namespace entry { }
1704
+ namespace view { }
1705
+ }
1706
+ export declare namespace chain_id {
1707
+ interface ChainId {
1708
+ id: number;
1709
+ }
1710
+ namespace ChainId {
1711
+ const TYPE_QNAME = "0x1::chain_id::ChainId";
1712
+ function type(): TypeDescriptor<ChainId>;
1713
+ }
1714
+ namespace entry { }
1715
+ namespace view {
1716
+ function get(client: AptosClient, version?: bigint): Promise<[number]>;
1717
+ }
1718
+ }
1719
+ export declare namespace features {
1720
+ interface Features {
1721
+ features: string;
1722
+ }
1723
+ namespace Features {
1724
+ const TYPE_QNAME = "0x1::features::Features";
1725
+ function type(): TypeDescriptor<Features>;
1726
+ }
1727
+ namespace entry { }
1728
+ namespace view { }
1729
+ }
1730
+ export declare namespace from_bcs {
1731
+ namespace entry { }
1732
+ namespace view { }
1733
+ }
1734
+ export declare namespace pool_u64 {
1735
+ interface Pool {
1736
+ shareholders_limit: bigint;
1737
+ total_coins: bigint;
1738
+ total_shares: bigint;
1739
+ shares: simple_map.SimpleMap<Address, bigint>;
1740
+ shareholders: Address[];
1741
+ scaling_factor: bigint;
1742
+ }
1743
+ namespace Pool {
1744
+ const TYPE_QNAME = "0x1::pool_u64::Pool";
1745
+ function type(): TypeDescriptor<Pool>;
1746
+ }
1747
+ namespace entry { }
1748
+ namespace view { }
1749
+ }
1750
+ export declare namespace secp256k1 {
1751
+ interface ECDSARawPublicKey {
1752
+ bytes: string;
1753
+ }
1754
+ namespace ECDSARawPublicKey {
1755
+ const TYPE_QNAME = "0x1::secp256k1::ECDSARawPublicKey";
1756
+ function type(): TypeDescriptor<ECDSARawPublicKey>;
1757
+ }
1758
+ interface ECDSARawPublicKeyInstance extends TypedEventInstance<ECDSARawPublicKey> {
1759
+ data_decoded: ECDSARawPublicKey;
1760
+ type_arguments: [];
1761
+ }
1762
+ interface ECDSASignature {
1763
+ bytes: string;
1764
+ }
1765
+ namespace ECDSASignature {
1766
+ const TYPE_QNAME = "0x1::secp256k1::ECDSASignature";
1767
+ function type(): TypeDescriptor<ECDSASignature>;
1768
+ }
1769
+ interface ECDSASignatureInstance extends TypedEventInstance<ECDSASignature> {
1770
+ data_decoded: ECDSASignature;
1771
+ type_arguments: [];
1772
+ }
1773
+ namespace entry { }
1774
+ namespace view { }
1775
+ }
1776
+ export declare namespace timestamp {
1777
+ interface CurrentTimeMicroseconds {
1778
+ microseconds: bigint;
1779
+ }
1780
+ namespace CurrentTimeMicroseconds {
1781
+ const TYPE_QNAME = "0x1::timestamp::CurrentTimeMicroseconds";
1782
+ function type(): TypeDescriptor<CurrentTimeMicroseconds>;
1783
+ }
1784
+ namespace entry { }
1785
+ namespace view {
1786
+ function nowMicroseconds(client: AptosClient, version?: bigint): Promise<[bigint]>;
1787
+ function nowSeconds(client: AptosClient, version?: bigint): Promise<[bigint]>;
1788
+ }
1789
+ }
1790
+ export declare namespace type_info {
1791
+ interface TypeInfo {
1792
+ account_address: Address;
1793
+ module_name: string;
1794
+ struct_name: string;
1795
+ }
1796
+ namespace TypeInfo {
1797
+ const TYPE_QNAME = "0x1::type_info::TypeInfo";
1798
+ function type(): TypeDescriptor<TypeInfo>;
1799
+ }
1800
+ interface TypeInfoInstance extends TypedEventInstance<TypeInfo> {
1801
+ data_decoded: TypeInfo;
1802
+ type_arguments: [];
1803
+ }
1804
+ namespace entry { }
1805
+ namespace view { }
1806
+ }
1807
+ export declare namespace aggregator {
1808
+ interface Aggregator {
1809
+ handle: Address;
1810
+ key: Address;
1811
+ limit: bigint;
1812
+ }
1813
+ namespace Aggregator {
1814
+ const TYPE_QNAME = "0x1::aggregator::Aggregator";
1815
+ function type(): TypeDescriptor<Aggregator>;
1816
+ }
1817
+ namespace entry { }
1818
+ namespace view { }
1819
+ }
1820
+ export declare namespace aptos_coin {
1821
+ interface AptosCoin {
1822
+ dummy_field: Boolean;
1823
+ }
1824
+ namespace AptosCoin {
1825
+ const TYPE_QNAME = "0x1::aptos_coin::AptosCoin";
1826
+ function type(): TypeDescriptor<AptosCoin>;
1827
+ }
1828
+ interface DelegatedMintCapability {
1829
+ to: Address;
1830
+ }
1831
+ namespace DelegatedMintCapability {
1832
+ const TYPE_QNAME = "0x1::aptos_coin::DelegatedMintCapability";
1833
+ function type(): TypeDescriptor<DelegatedMintCapability>;
1834
+ }
1835
+ interface Delegations {
1836
+ inner: aptos_coin.DelegatedMintCapability[];
1837
+ }
1838
+ namespace Delegations {
1839
+ const TYPE_QNAME = "0x1::aptos_coin::Delegations";
1840
+ function type(): TypeDescriptor<Delegations>;
1841
+ }
1842
+ interface MintCapStore {
1843
+ mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
1844
+ }
1845
+ namespace MintCapStore {
1846
+ const TYPE_QNAME = "0x1::aptos_coin::MintCapStore";
1847
+ function type(): TypeDescriptor<MintCapStore>;
1848
+ }
1849
+ namespace entry {
1850
+ function claimMintCapability(client: AptosClient, account: AptosAccount, request: {
1851
+ type_arguments: [];
1852
+ arguments: [];
1853
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1854
+ function delegateMintCapability(client: AptosClient, account: AptosAccount, request: {
1855
+ type_arguments: [];
1856
+ arguments: [Address, Address];
1857
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1858
+ function mint(client: AptosClient, account: AptosAccount, request: {
1859
+ type_arguments: [];
1860
+ arguments: [Address, bigint];
1861
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
1862
+ }
1863
+ namespace view { }
1864
+ }
1865
+ export declare namespace aptos_hash {
1866
+ namespace entry { }
1867
+ namespace view { }
1868
+ }
1869
+ export declare namespace big_vector {
1870
+ interface BigVector<T0> {
1871
+ buckets: table_with_length.TableWithLength<bigint, T0[] | string>;
1872
+ end_index: bigint;
1873
+ bucket_size: bigint;
1874
+ }
1875
+ namespace BigVector {
1876
+ const TYPE_QNAME = "0x1::big_vector::BigVector";
1877
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<BigVector<T0>>;
1878
+ }
1879
+ namespace entry { }
1880
+ namespace view { }
1881
+ }
1882
+ export declare namespace bit_vector {
1883
+ interface BitVector {
1884
+ length: bigint;
1885
+ bit_field: Boolean[];
1886
+ }
1887
+ namespace BitVector {
1888
+ const TYPE_QNAME = "0x1::bit_vector::BitVector";
1889
+ function type(): TypeDescriptor<BitVector>;
1890
+ }
1891
+ interface BitVectorInstance extends TypedEventInstance<BitVector> {
1892
+ data_decoded: BitVector;
1893
+ type_arguments: [];
1894
+ }
1895
+ namespace entry { }
1896
+ namespace view { }
1897
+ }
1898
+ export declare namespace capability {
1899
+ interface Cap<T0> {
1900
+ root: Address;
1901
+ }
1902
+ namespace Cap {
1903
+ const TYPE_QNAME = "0x1::capability::Cap";
1904
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Cap<T0>>;
1905
+ }
1906
+ interface CapDelegateState<T0> {
1907
+ root: Address;
1908
+ }
1909
+ namespace CapDelegateState {
1910
+ const TYPE_QNAME = "0x1::capability::CapDelegateState";
1911
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CapDelegateState<T0>>;
1912
+ }
1913
+ interface CapState<T0> {
1914
+ delegates: Address[];
1915
+ }
1916
+ namespace CapState {
1917
+ const TYPE_QNAME = "0x1::capability::CapState";
1918
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<CapState<T0>>;
1919
+ }
1920
+ interface LinearCap<T0> {
1921
+ root: Address;
1922
+ }
1923
+ namespace LinearCap {
1924
+ const TYPE_QNAME = "0x1::capability::LinearCap";
1925
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<LinearCap<T0>>;
1926
+ }
1927
+ namespace entry { }
1928
+ namespace view { }
1929
+ }
1930
+ export declare namespace comparator {
1931
+ interface Result {
1932
+ inner: number;
1933
+ }
1934
+ namespace Result {
1935
+ const TYPE_QNAME = "0x1::comparator::Result";
1936
+ function type(): TypeDescriptor<Result>;
1937
+ }
1938
+ namespace entry { }
1939
+ namespace view { }
1940
+ }
1941
+ export declare namespace math_fixed {
1942
+ namespace entry { }
1943
+ namespace view { }
1944
+ }
1945
+ export declare namespace simple_map {
1946
+ interface Element<T0, T1> {
1947
+ key: T0;
1948
+ value: T1;
1949
+ }
1950
+ namespace Element {
1951
+ const TYPE_QNAME = "0x1::simple_map::Element";
1952
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Element<T0, T1>>;
1953
+ }
1954
+ interface ElementInstance extends TypedEventInstance<Element<any, any>> {
1955
+ data_decoded: Element<any, any>;
1956
+ type_arguments: [string, string];
1957
+ }
1958
+ interface SimpleMap<T0, T1> {
1959
+ data: simple_map.Element<T0, T1>[];
1960
+ }
1961
+ namespace SimpleMap {
1962
+ const TYPE_QNAME = "0x1::simple_map::SimpleMap";
1963
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<SimpleMap<T0, T1>>;
1964
+ }
1965
+ interface SimpleMapInstance extends TypedEventInstance<SimpleMap<any, any>> {
1966
+ data_decoded: SimpleMap<any, any>;
1967
+ type_arguments: [string, string];
1968
+ }
1969
+ namespace entry { }
1970
+ namespace view { }
1971
+ }
1972
+ export declare namespace smart_table {
1973
+ interface Entry<T0, T1> {
1974
+ hash: bigint;
1975
+ key: T0;
1976
+ value: T1;
1977
+ }
1978
+ namespace Entry {
1979
+ const TYPE_QNAME = "0x1::smart_table::Entry";
1980
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Entry<T0, T1>>;
1981
+ }
1982
+ interface EntryInstance extends TypedEventInstance<Entry<any, any>> {
1983
+ data_decoded: Entry<any, any>;
1984
+ type_arguments: [string, string];
1985
+ }
1986
+ interface SmartTable<T0, T1> {
1987
+ buckets: table_with_length.TableWithLength<bigint, smart_table.Entry<T0, T1>[]>;
1988
+ num_buckets: bigint;
1989
+ level: number;
1990
+ size: bigint;
1991
+ split_load_threshold: number;
1992
+ target_bucket_size: bigint;
1993
+ }
1994
+ namespace SmartTable {
1995
+ const TYPE_QNAME = "0x1::smart_table::SmartTable";
1996
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<SmartTable<T0, T1>>;
1997
+ }
1998
+ namespace entry { }
1999
+ namespace view { }
2000
+ }
2001
+ export declare namespace storage_gas {
2002
+ interface GasCurve {
2003
+ min_gas: bigint;
2004
+ max_gas: bigint;
2005
+ points: storage_gas.Point[];
2006
+ }
2007
+ namespace GasCurve {
2008
+ const TYPE_QNAME = "0x1::storage_gas::GasCurve";
2009
+ function type(): TypeDescriptor<GasCurve>;
2010
+ }
2011
+ interface GasCurveInstance extends TypedEventInstance<GasCurve> {
2012
+ data_decoded: GasCurve;
2013
+ type_arguments: [];
2014
+ }
2015
+ interface Point {
2016
+ x: bigint;
2017
+ y: bigint;
2018
+ }
2019
+ namespace Point {
2020
+ const TYPE_QNAME = "0x1::storage_gas::Point";
2021
+ function type(): TypeDescriptor<Point>;
2022
+ }
2023
+ interface PointInstance extends TypedEventInstance<Point> {
2024
+ data_decoded: Point;
2025
+ type_arguments: [];
2026
+ }
2027
+ interface StorageGas {
2028
+ per_item_read: bigint;
2029
+ per_item_create: bigint;
2030
+ per_item_write: bigint;
2031
+ per_byte_read: bigint;
2032
+ per_byte_create: bigint;
2033
+ per_byte_write: bigint;
2034
+ }
2035
+ namespace StorageGas {
2036
+ const TYPE_QNAME = "0x1::storage_gas::StorageGas";
2037
+ function type(): TypeDescriptor<StorageGas>;
2038
+ }
2039
+ interface StorageGasConfig {
2040
+ item_config: storage_gas.UsageGasConfig;
2041
+ byte_config: storage_gas.UsageGasConfig;
2042
+ }
2043
+ namespace StorageGasConfig {
2044
+ const TYPE_QNAME = "0x1::storage_gas::StorageGasConfig";
2045
+ function type(): TypeDescriptor<StorageGasConfig>;
2046
+ }
2047
+ interface UsageGasConfig {
2048
+ target_usage: bigint;
2049
+ read_curve: storage_gas.GasCurve;
2050
+ create_curve: storage_gas.GasCurve;
2051
+ write_curve: storage_gas.GasCurve;
2052
+ }
2053
+ namespace UsageGasConfig {
2054
+ const TYPE_QNAME = "0x1::storage_gas::UsageGasConfig";
2055
+ function type(): TypeDescriptor<UsageGasConfig>;
2056
+ }
2057
+ interface UsageGasConfigInstance extends TypedEventInstance<UsageGasConfig> {
2058
+ data_decoded: UsageGasConfig;
2059
+ type_arguments: [];
2060
+ }
2061
+ namespace entry { }
2062
+ namespace view { }
2063
+ }
2064
+ export declare namespace chain_status {
2065
+ interface GenesisEndMarker {
2066
+ dummy_field: Boolean;
2067
+ }
2068
+ namespace GenesisEndMarker {
2069
+ const TYPE_QNAME = "0x1::chain_status::GenesisEndMarker";
2070
+ function type(): TypeDescriptor<GenesisEndMarker>;
2071
+ }
2072
+ namespace entry { }
2073
+ namespace view {
2074
+ function isGenesis(client: AptosClient, version?: bigint): Promise<[Boolean]>;
2075
+ function isOperating(client: AptosClient, version?: bigint): Promise<[Boolean]>;
2076
+ }
2077
+ }
2078
+ export declare namespace copyable_any {
2079
+ interface Any {
2080
+ type_name: string;
2081
+ data: string;
2082
+ }
2083
+ namespace Any {
2084
+ const TYPE_QNAME = "0x1::copyable_any::Any";
2085
+ function type(): TypeDescriptor<Any>;
2086
+ }
2087
+ interface AnyInstance extends TypedEventInstance<Any> {
2088
+ data_decoded: Any;
2089
+ type_arguments: [];
2090
+ }
2091
+ namespace entry { }
2092
+ namespace view { }
2093
+ }
2094
+ export declare namespace gas_schedule {
2095
+ interface GasEntry {
2096
+ key: string;
2097
+ val: bigint;
2098
+ }
2099
+ namespace GasEntry {
2100
+ const TYPE_QNAME = "0x1::gas_schedule::GasEntry";
2101
+ function type(): TypeDescriptor<GasEntry>;
2102
+ }
2103
+ interface GasEntryInstance extends TypedEventInstance<GasEntry> {
2104
+ data_decoded: GasEntry;
2105
+ type_arguments: [];
2106
+ }
2107
+ interface GasSchedule {
2108
+ entries: gas_schedule.GasEntry[];
2109
+ }
2110
+ namespace GasSchedule {
2111
+ const TYPE_QNAME = "0x1::gas_schedule::GasSchedule";
2112
+ function type(): TypeDescriptor<GasSchedule>;
2113
+ }
2114
+ interface GasScheduleV2 {
2115
+ feature_version: bigint;
2116
+ entries: gas_schedule.GasEntry[];
2117
+ }
2118
+ namespace GasScheduleV2 {
2119
+ const TYPE_QNAME = "0x1::gas_schedule::GasScheduleV2";
2120
+ function type(): TypeDescriptor<GasScheduleV2>;
2121
+ }
2122
+ namespace entry { }
2123
+ namespace view { }
2124
+ }
2125
+ export declare namespace managed_coin {
2126
+ interface Capabilities<T0> {
2127
+ burn_cap: coin.BurnCapability<T0>;
2128
+ freeze_cap: coin.FreezeCapability<T0>;
2129
+ mint_cap: coin.MintCapability<T0>;
2130
+ }
2131
+ namespace Capabilities {
2132
+ const TYPE_QNAME = "0x1::managed_coin::Capabilities";
2133
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Capabilities<T0>>;
2134
+ }
2135
+ namespace entry {
2136
+ function burn<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2137
+ type_arguments: [string];
2138
+ arguments: [bigint];
2139
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2140
+ function initialize<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2141
+ type_arguments: [string];
2142
+ arguments: [string, string, number, Boolean];
2143
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2144
+ function mint<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2145
+ type_arguments: [string];
2146
+ arguments: [Address, bigint];
2147
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2148
+ function register<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2149
+ type_arguments: [string];
2150
+ arguments: [];
2151
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2152
+ }
2153
+ namespace view { }
2154
+ }
2155
+ export declare namespace math_fixed64 {
2156
+ namespace entry { }
2157
+ namespace view { }
2158
+ }
2159
+ export declare namespace ristretto255 {
2160
+ interface CompressedRistretto {
2161
+ data: string;
2162
+ }
2163
+ namespace CompressedRistretto {
2164
+ const TYPE_QNAME = "0x1::ristretto255::CompressedRistretto";
2165
+ function type(): TypeDescriptor<CompressedRistretto>;
2166
+ }
2167
+ interface CompressedRistrettoInstance extends TypedEventInstance<CompressedRistretto> {
2168
+ data_decoded: CompressedRistretto;
2169
+ type_arguments: [];
2170
+ }
2171
+ interface RistrettoPoint {
2172
+ handle: bigint;
2173
+ }
2174
+ namespace RistrettoPoint {
2175
+ const TYPE_QNAME = "0x1::ristretto255::RistrettoPoint";
2176
+ function type(): TypeDescriptor<RistrettoPoint>;
2177
+ }
2178
+ interface Scalar {
2179
+ data: string;
2180
+ }
2181
+ namespace Scalar {
2182
+ const TYPE_QNAME = "0x1::ristretto255::Scalar";
2183
+ function type(): TypeDescriptor<Scalar>;
2184
+ }
2185
+ interface ScalarInstance extends TypedEventInstance<Scalar> {
2186
+ data_decoded: Scalar;
2187
+ type_arguments: [];
2188
+ }
2189
+ namespace entry { }
2190
+ namespace view { }
2191
+ }
2192
+ export declare namespace smart_vector {
2193
+ interface SmartVector<T0> {
2194
+ inline_vec: T0[] | string;
2195
+ big_vec: option.Option<big_vector.BigVector<T0>>;
2196
+ inline_capacity: option.Option<bigint>;
2197
+ bucket_size: option.Option<bigint>;
2198
+ }
2199
+ namespace SmartVector {
2200
+ const TYPE_QNAME = "0x1::smart_vector::SmartVector";
2201
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<SmartVector<T0>>;
2202
+ }
2203
+ namespace entry { }
2204
+ namespace view { }
2205
+ }
2206
+ export declare namespace string_utils {
2207
+ interface Cons<T0, T1> {
2208
+ car: T0;
2209
+ cdr: T1;
2210
+ }
2211
+ namespace Cons {
2212
+ const TYPE_QNAME = "0x1::string_utils::Cons";
2213
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<Cons<T0, T1>>;
2214
+ }
2215
+ interface ConsInstance extends TypedEventInstance<Cons<any, any>> {
2216
+ data_decoded: Cons<any, any>;
2217
+ type_arguments: [string, string];
2218
+ }
2219
+ interface FakeCons<T0, T1> {
2220
+ car: T0;
2221
+ cdr: T1;
2222
+ }
2223
+ namespace FakeCons {
2224
+ const TYPE_QNAME = "0x1::string_utils::FakeCons";
2225
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<FakeCons<T0, T1>>;
2226
+ }
2227
+ interface FakeConsInstance extends TypedEventInstance<FakeCons<any, any>> {
2228
+ data_decoded: FakeCons<any, any>;
2229
+ type_arguments: [string, string];
2230
+ }
2231
+ interface NIL {
2232
+ dummy_field: Boolean;
2233
+ }
2234
+ namespace NIL {
2235
+ const TYPE_QNAME = "0x1::string_utils::NIL";
2236
+ function type(): TypeDescriptor<NIL>;
2237
+ }
2238
+ interface NILInstance extends TypedEventInstance<NIL> {
2239
+ data_decoded: NIL;
2240
+ type_arguments: [];
2241
+ }
2242
+ namespace entry { }
2243
+ namespace view { }
2244
+ }
2245
+ export declare namespace aptos_account {
2246
+ interface DirectCoinTransferConfigUpdatedEvent {
2247
+ new_allow_direct_transfers: Boolean;
2248
+ }
2249
+ namespace DirectCoinTransferConfigUpdatedEvent {
2250
+ const TYPE_QNAME = "0x1::aptos_account::DirectCoinTransferConfigUpdatedEvent";
2251
+ function type(): TypeDescriptor<DirectCoinTransferConfigUpdatedEvent>;
2252
+ }
2253
+ interface DirectCoinTransferConfigUpdatedEventInstance extends TypedEventInstance<DirectCoinTransferConfigUpdatedEvent> {
2254
+ data_decoded: DirectCoinTransferConfigUpdatedEvent;
2255
+ type_arguments: [];
2256
+ }
2257
+ interface DirectTransferConfig {
2258
+ allow_arbitrary_coin_transfers: Boolean;
2259
+ update_coin_transfer_events: event.EventHandle<aptos_account.DirectCoinTransferConfigUpdatedEvent>;
2260
+ }
2261
+ namespace DirectTransferConfig {
2262
+ const TYPE_QNAME = "0x1::aptos_account::DirectTransferConfig";
2263
+ function type(): TypeDescriptor<DirectTransferConfig>;
2264
+ }
2265
+ namespace entry {
2266
+ function batchTransfer(client: AptosClient, account: AptosAccount, request: {
2267
+ type_arguments: [];
2268
+ arguments: [Address[], bigint[]];
2269
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2270
+ function batchTransferCoins<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2271
+ type_arguments: [string];
2272
+ arguments: [Address[], bigint[]];
2273
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2274
+ function createAccount(client: AptosClient, account: AptosAccount, request: {
2275
+ type_arguments: [];
2276
+ arguments: [Address];
2277
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2278
+ function setAllowDirectCoinTransfers(client: AptosClient, account: AptosAccount, request: {
2279
+ type_arguments: [];
2280
+ arguments: [Boolean];
2281
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2282
+ function transfer(client: AptosClient, account: AptosAccount, request: {
2283
+ type_arguments: [];
2284
+ arguments: [Address, bigint];
2285
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2286
+ function transferCoins<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2287
+ type_arguments: [string];
2288
+ arguments: [Address, bigint];
2289
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2290
+ }
2291
+ namespace view {
2292
+ function canReceiveDirectCoinTransfers(client: AptosClient, request: {
2293
+ arguments: [Address];
2294
+ }, version?: bigint): Promise<[Boolean]>;
2295
+ }
2296
+ }
2297
+ export declare namespace create_signer {
2298
+ namespace entry { }
2299
+ namespace view { }
2300
+ }
2301
+ export declare namespace fixed_point32 {
2302
+ interface FixedPoint32 {
2303
+ value: bigint;
2304
+ }
2305
+ namespace FixedPoint32 {
2306
+ const TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
2307
+ function type(): TypeDescriptor<FixedPoint32>;
2308
+ }
2309
+ interface FixedPoint32Instance extends TypedEventInstance<FixedPoint32> {
2310
+ data_decoded: FixedPoint32;
2311
+ type_arguments: [];
2312
+ }
2313
+ namespace entry { }
2314
+ namespace view { }
2315
+ }
2316
+ export declare namespace fixed_point64 {
2317
+ interface FixedPoint64 {
2318
+ value: bigint;
2319
+ }
2320
+ namespace FixedPoint64 {
2321
+ const TYPE_QNAME = "0x1::fixed_point64::FixedPoint64";
2322
+ function type(): TypeDescriptor<FixedPoint64>;
2323
+ }
2324
+ interface FixedPoint64Instance extends TypedEventInstance<FixedPoint64> {
2325
+ data_decoded: FixedPoint64;
2326
+ type_arguments: [];
2327
+ }
2328
+ namespace entry { }
2329
+ namespace view { }
2330
+ }
2331
+ export declare namespace multi_ed25519 {
2332
+ interface Signature {
2333
+ bytes: string;
2334
+ }
2335
+ namespace Signature {
2336
+ const TYPE_QNAME = "0x1::multi_ed25519::Signature";
2337
+ function type(): TypeDescriptor<Signature>;
2338
+ }
2339
+ interface SignatureInstance extends TypedEventInstance<Signature> {
2340
+ data_decoded: Signature;
2341
+ type_arguments: [];
2342
+ }
2343
+ interface UnvalidatedPublicKey {
2344
+ bytes: string;
2345
+ }
2346
+ namespace UnvalidatedPublicKey {
2347
+ const TYPE_QNAME = "0x1::multi_ed25519::UnvalidatedPublicKey";
2348
+ function type(): TypeDescriptor<UnvalidatedPublicKey>;
2349
+ }
2350
+ interface UnvalidatedPublicKeyInstance extends TypedEventInstance<UnvalidatedPublicKey> {
2351
+ data_decoded: UnvalidatedPublicKey;
2352
+ type_arguments: [];
2353
+ }
2354
+ interface ValidatedPublicKey {
2355
+ bytes: string;
2356
+ }
2357
+ namespace ValidatedPublicKey {
2358
+ const TYPE_QNAME = "0x1::multi_ed25519::ValidatedPublicKey";
2359
+ function type(): TypeDescriptor<ValidatedPublicKey>;
2360
+ }
2361
+ interface ValidatedPublicKeyInstance extends TypedEventInstance<ValidatedPublicKey> {
2362
+ data_decoded: ValidatedPublicKey;
2363
+ type_arguments: [];
2364
+ }
2365
+ namespace entry { }
2366
+ namespace view { }
2367
+ }
2368
+ export declare namespace staking_proxy {
2369
+ namespace entry {
2370
+ function setOperator(client: AptosClient, account: AptosAccount, request: {
2371
+ type_arguments: [];
2372
+ arguments: [Address, Address];
2373
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2374
+ function setStakePoolOperator(client: AptosClient, account: AptosAccount, request: {
2375
+ type_arguments: [];
2376
+ arguments: [Address];
2377
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2378
+ function setStakePoolVoter(client: AptosClient, account: AptosAccount, request: {
2379
+ type_arguments: [];
2380
+ arguments: [Address];
2381
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2382
+ function setStakingContractOperator(client: AptosClient, account: AptosAccount, request: {
2383
+ type_arguments: [];
2384
+ arguments: [Address, Address];
2385
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2386
+ function setStakingContractVoter(client: AptosClient, account: AptosAccount, request: {
2387
+ type_arguments: [];
2388
+ arguments: [Address, Address];
2389
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2390
+ function setVestingContractOperator(client: AptosClient, account: AptosAccount, request: {
2391
+ type_arguments: [];
2392
+ arguments: [Address, Address];
2393
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2394
+ function setVestingContractVoter(client: AptosClient, account: AptosAccount, request: {
2395
+ type_arguments: [];
2396
+ arguments: [Address, Address];
2397
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2398
+ function setVoter(client: AptosClient, account: AptosAccount, request: {
2399
+ type_arguments: [];
2400
+ arguments: [Address, Address];
2401
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2402
+ }
2403
+ namespace view { }
2404
+ }
2405
+ export declare namespace state_storage {
2406
+ interface GasParameter {
2407
+ usage: state_storage.Usage;
2408
+ }
2409
+ namespace GasParameter {
2410
+ const TYPE_QNAME = "0x1::state_storage::GasParameter";
2411
+ function type(): TypeDescriptor<GasParameter>;
2412
+ }
2413
+ interface StateStorageUsage {
2414
+ epoch: bigint;
2415
+ usage: state_storage.Usage;
2416
+ }
2417
+ namespace StateStorageUsage {
2418
+ const TYPE_QNAME = "0x1::state_storage::StateStorageUsage";
2419
+ function type(): TypeDescriptor<StateStorageUsage>;
2420
+ }
2421
+ interface Usage {
2422
+ items: bigint;
2423
+ bytes: bigint;
2424
+ }
2425
+ namespace Usage {
2426
+ const TYPE_QNAME = "0x1::state_storage::Usage";
2427
+ function type(): TypeDescriptor<Usage>;
2428
+ }
2429
+ interface UsageInstance extends TypedEventInstance<Usage> {
2430
+ data_decoded: Usage;
2431
+ type_arguments: [];
2432
+ }
2433
+ namespace entry { }
2434
+ namespace view { }
2435
+ }
2436
+ export declare namespace crypto_algebra {
2437
+ interface Element<T0> {
2438
+ handle: bigint;
2439
+ }
2440
+ namespace Element {
2441
+ const TYPE_QNAME = "0x1::crypto_algebra::Element";
2442
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Element<T0>>;
2443
+ }
2444
+ namespace entry { }
2445
+ namespace view { }
2446
+ }
2447
+ export declare namespace fungible_asset {
2448
+ interface BurnRef {
2449
+ metadata: object_.Object<fungible_asset.Metadata>;
2450
+ }
2451
+ namespace BurnRef {
2452
+ const TYPE_QNAME = "0x1::fungible_asset::BurnRef";
2453
+ function type(): TypeDescriptor<BurnRef>;
2454
+ }
2455
+ interface BurnRefInstance extends TypedEventInstance<BurnRef> {
2456
+ data_decoded: BurnRef;
2457
+ type_arguments: [];
2458
+ }
2459
+ interface DepositEvent {
2460
+ amount: bigint;
2461
+ }
2462
+ namespace DepositEvent {
2463
+ const TYPE_QNAME = "0x1::fungible_asset::DepositEvent";
2464
+ function type(): TypeDescriptor<DepositEvent>;
2465
+ }
2466
+ interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
2467
+ data_decoded: DepositEvent;
2468
+ type_arguments: [];
2469
+ }
2470
+ interface FrozenEvent {
2471
+ frozen: Boolean;
2472
+ }
2473
+ namespace FrozenEvent {
2474
+ const TYPE_QNAME = "0x1::fungible_asset::FrozenEvent";
2475
+ function type(): TypeDescriptor<FrozenEvent>;
2476
+ }
2477
+ interface FrozenEventInstance extends TypedEventInstance<FrozenEvent> {
2478
+ data_decoded: FrozenEvent;
2479
+ type_arguments: [];
2480
+ }
2481
+ interface FungibleAsset {
2482
+ metadata: object_.Object<fungible_asset.Metadata>;
2483
+ amount: bigint;
2484
+ }
2485
+ namespace FungibleAsset {
2486
+ const TYPE_QNAME = "0x1::fungible_asset::FungibleAsset";
2487
+ function type(): TypeDescriptor<FungibleAsset>;
2488
+ }
2489
+ interface FungibleAssetEvents {
2490
+ deposit_events: event.EventHandle<fungible_asset.DepositEvent>;
2491
+ withdraw_events: event.EventHandle<fungible_asset.WithdrawEvent>;
2492
+ frozen_events: event.EventHandle<fungible_asset.FrozenEvent>;
2493
+ }
2494
+ namespace FungibleAssetEvents {
2495
+ const TYPE_QNAME = "0x1::fungible_asset::FungibleAssetEvents";
2496
+ function type(): TypeDescriptor<FungibleAssetEvents>;
2497
+ }
2498
+ interface FungibleStore {
2499
+ metadata: object_.Object<fungible_asset.Metadata>;
2500
+ balance: bigint;
2501
+ frozen: Boolean;
2502
+ }
2503
+ namespace FungibleStore {
2504
+ const TYPE_QNAME = "0x1::fungible_asset::FungibleStore";
2505
+ function type(): TypeDescriptor<FungibleStore>;
2506
+ }
2507
+ interface Metadata {
2508
+ name: string;
2509
+ symbol: string;
2510
+ decimals: number;
2511
+ icon_uri: string;
2512
+ project_uri: string;
2513
+ }
2514
+ namespace Metadata {
2515
+ const TYPE_QNAME = "0x1::fungible_asset::Metadata";
2516
+ function type(): TypeDescriptor<Metadata>;
2517
+ }
2518
+ interface MintRef {
2519
+ metadata: object_.Object<fungible_asset.Metadata>;
2520
+ }
2521
+ namespace MintRef {
2522
+ const TYPE_QNAME = "0x1::fungible_asset::MintRef";
2523
+ function type(): TypeDescriptor<MintRef>;
2524
+ }
2525
+ interface MintRefInstance extends TypedEventInstance<MintRef> {
2526
+ data_decoded: MintRef;
2527
+ type_arguments: [];
2528
+ }
2529
+ interface Supply {
2530
+ current: bigint;
2531
+ maximum: option.Option<bigint>;
2532
+ }
2533
+ namespace Supply {
2534
+ const TYPE_QNAME = "0x1::fungible_asset::Supply";
2535
+ function type(): TypeDescriptor<Supply>;
2536
+ }
2537
+ interface TransferRef {
2538
+ metadata: object_.Object<fungible_asset.Metadata>;
2539
+ }
2540
+ namespace TransferRef {
2541
+ const TYPE_QNAME = "0x1::fungible_asset::TransferRef";
2542
+ function type(): TypeDescriptor<TransferRef>;
2543
+ }
2544
+ interface TransferRefInstance extends TypedEventInstance<TransferRef> {
2545
+ data_decoded: TransferRef;
2546
+ type_arguments: [];
2547
+ }
2548
+ interface WithdrawEvent {
2549
+ amount: bigint;
2550
+ }
2551
+ namespace WithdrawEvent {
2552
+ const TYPE_QNAME = "0x1::fungible_asset::WithdrawEvent";
2553
+ function type(): TypeDescriptor<WithdrawEvent>;
2554
+ }
2555
+ interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
2556
+ data_decoded: WithdrawEvent;
2557
+ type_arguments: [];
2558
+ }
2559
+ namespace entry {
2560
+ function transfer<T0 = any>(client: AptosClient, account: AptosAccount, request: {
2561
+ type_arguments: [string];
2562
+ arguments: [object_.Object<T0>, object_.Object<T0>, bigint];
2563
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2564
+ }
2565
+ namespace view {
2566
+ function balance<T0 = any>(client: AptosClient, request: {
2567
+ type_arguments: [string];
2568
+ arguments: [object_.Object<T0>];
2569
+ }, version?: bigint): Promise<[bigint]>;
2570
+ function decimals<T0 = any>(client: AptosClient, request: {
2571
+ type_arguments: [string];
2572
+ arguments: [object_.Object<T0>];
2573
+ }, version?: bigint): Promise<[number]>;
2574
+ function isFrozen<T0 = any>(client: AptosClient, request: {
2575
+ type_arguments: [string];
2576
+ arguments: [object_.Object<T0>];
2577
+ }, version?: bigint): Promise<[Boolean]>;
2578
+ function maximum<T0 = any>(client: AptosClient, request: {
2579
+ type_arguments: [string];
2580
+ arguments: [object_.Object<T0>];
2581
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
2582
+ function name<T0 = any>(client: AptosClient, request: {
2583
+ type_arguments: [string];
2584
+ arguments: [object_.Object<T0>];
2585
+ }, version?: bigint): Promise<[string]>;
2586
+ function storeExists(client: AptosClient, request: {
2587
+ arguments: [Address];
2588
+ }, version?: bigint): Promise<[Boolean]>;
2589
+ function storeMetadata<T0 = any>(client: AptosClient, request: {
2590
+ type_arguments: [string];
2591
+ arguments: [object_.Object<T0>];
2592
+ }, version?: bigint): Promise<[object_.Object<fungible_asset.Metadata>]>;
2593
+ function supply<T0 = any>(client: AptosClient, request: {
2594
+ type_arguments: [string];
2595
+ arguments: [object_.Object<T0>];
2596
+ }, version?: bigint): Promise<[option.Option<bigint>]>;
2597
+ function symbol<T0 = any>(client: AptosClient, request: {
2598
+ type_arguments: [string];
2599
+ arguments: [object_.Object<T0>];
2600
+ }, version?: bigint): Promise<[string]>;
2601
+ }
2602
+ }
2603
+ export declare namespace staking_config {
2604
+ interface StakingConfig {
2605
+ minimum_stake: bigint;
2606
+ maximum_stake: bigint;
2607
+ recurring_lockup_duration_secs: bigint;
2608
+ allow_validator_set_change: Boolean;
2609
+ rewards_rate: bigint;
2610
+ rewards_rate_denominator: bigint;
2611
+ voting_power_increase_limit: bigint;
2612
+ }
2613
+ namespace StakingConfig {
2614
+ const TYPE_QNAME = "0x1::staking_config::StakingConfig";
2615
+ function type(): TypeDescriptor<StakingConfig>;
2616
+ }
2617
+ interface StakingRewardsConfig {
2618
+ rewards_rate: fixed_point64.FixedPoint64;
2619
+ min_rewards_rate: fixed_point64.FixedPoint64;
2620
+ rewards_rate_period_in_secs: bigint;
2621
+ last_rewards_rate_period_start_in_secs: bigint;
2622
+ rewards_rate_decrease_rate: fixed_point64.FixedPoint64;
2623
+ }
2624
+ namespace StakingRewardsConfig {
2625
+ const TYPE_QNAME = "0x1::staking_config::StakingRewardsConfig";
2626
+ function type(): TypeDescriptor<StakingRewardsConfig>;
2627
+ }
2628
+ namespace entry { }
2629
+ namespace view { }
2630
+ }
2631
+ export declare namespace delegation_pool {
2632
+ interface AddStakeEvent {
2633
+ pool_address: Address;
2634
+ delegator_address: Address;
2635
+ amount_added: bigint;
2636
+ add_stake_fee: bigint;
2637
+ }
2638
+ namespace AddStakeEvent {
2639
+ const TYPE_QNAME = "0x1::delegation_pool::AddStakeEvent";
2640
+ function type(): TypeDescriptor<AddStakeEvent>;
2641
+ }
2642
+ interface AddStakeEventInstance extends TypedEventInstance<AddStakeEvent> {
2643
+ data_decoded: AddStakeEvent;
2644
+ type_arguments: [];
2645
+ }
2646
+ interface DelegationPool {
2647
+ active_shares: pool_u64_unbound.Pool;
2648
+ observed_lockup_cycle: delegation_pool.ObservedLockupCycle;
2649
+ inactive_shares: table.Table<delegation_pool.ObservedLockupCycle, pool_u64_unbound.Pool>;
2650
+ pending_withdrawals: table.Table<Address, delegation_pool.ObservedLockupCycle>;
2651
+ stake_pool_signer_cap: account.SignerCapability;
2652
+ total_coins_inactive: bigint;
2653
+ operator_commission_percentage: bigint;
2654
+ add_stake_events: event.EventHandle<delegation_pool.AddStakeEvent>;
2655
+ reactivate_stake_events: event.EventHandle<delegation_pool.ReactivateStakeEvent>;
2656
+ unlock_stake_events: event.EventHandle<delegation_pool.UnlockStakeEvent>;
2657
+ withdraw_stake_events: event.EventHandle<delegation_pool.WithdrawStakeEvent>;
2658
+ distribute_commission_events: event.EventHandle<delegation_pool.DistributeCommissionEvent>;
2659
+ }
2660
+ namespace DelegationPool {
2661
+ const TYPE_QNAME = "0x1::delegation_pool::DelegationPool";
2662
+ function type(): TypeDescriptor<DelegationPool>;
2663
+ }
2664
+ interface DelegationPoolOwnership {
2665
+ pool_address: Address;
2666
+ }
2667
+ namespace DelegationPoolOwnership {
2668
+ const TYPE_QNAME = "0x1::delegation_pool::DelegationPoolOwnership";
2669
+ function type(): TypeDescriptor<DelegationPoolOwnership>;
2670
+ }
2671
+ interface DistributeCommissionEvent {
2672
+ pool_address: Address;
2673
+ operator: Address;
2674
+ commission_active: bigint;
2675
+ commission_pending_inactive: bigint;
2676
+ }
2677
+ namespace DistributeCommissionEvent {
2678
+ const TYPE_QNAME = "0x1::delegation_pool::DistributeCommissionEvent";
2679
+ function type(): TypeDescriptor<DistributeCommissionEvent>;
2680
+ }
2681
+ interface DistributeCommissionEventInstance extends TypedEventInstance<DistributeCommissionEvent> {
2682
+ data_decoded: DistributeCommissionEvent;
2683
+ type_arguments: [];
2684
+ }
2685
+ interface ObservedLockupCycle {
2686
+ index: bigint;
2687
+ }
2688
+ namespace ObservedLockupCycle {
2689
+ const TYPE_QNAME = "0x1::delegation_pool::ObservedLockupCycle";
2690
+ function type(): TypeDescriptor<ObservedLockupCycle>;
2691
+ }
2692
+ interface ObservedLockupCycleInstance extends TypedEventInstance<ObservedLockupCycle> {
2693
+ data_decoded: ObservedLockupCycle;
2694
+ type_arguments: [];
2695
+ }
2696
+ interface ReactivateStakeEvent {
2697
+ pool_address: Address;
2698
+ delegator_address: Address;
2699
+ amount_reactivated: bigint;
2700
+ }
2701
+ namespace ReactivateStakeEvent {
2702
+ const TYPE_QNAME = "0x1::delegation_pool::ReactivateStakeEvent";
2703
+ function type(): TypeDescriptor<ReactivateStakeEvent>;
2704
+ }
2705
+ interface ReactivateStakeEventInstance extends TypedEventInstance<ReactivateStakeEvent> {
2706
+ data_decoded: ReactivateStakeEvent;
2707
+ type_arguments: [];
2708
+ }
2709
+ interface UnlockStakeEvent {
2710
+ pool_address: Address;
2711
+ delegator_address: Address;
2712
+ amount_unlocked: bigint;
2713
+ }
2714
+ namespace UnlockStakeEvent {
2715
+ const TYPE_QNAME = "0x1::delegation_pool::UnlockStakeEvent";
2716
+ function type(): TypeDescriptor<UnlockStakeEvent>;
2717
+ }
2718
+ interface UnlockStakeEventInstance extends TypedEventInstance<UnlockStakeEvent> {
2719
+ data_decoded: UnlockStakeEvent;
2720
+ type_arguments: [];
2721
+ }
2722
+ interface WithdrawStakeEvent {
2723
+ pool_address: Address;
2724
+ delegator_address: Address;
2725
+ amount_withdrawn: bigint;
2726
+ }
2727
+ namespace WithdrawStakeEvent {
2728
+ const TYPE_QNAME = "0x1::delegation_pool::WithdrawStakeEvent";
2729
+ function type(): TypeDescriptor<WithdrawStakeEvent>;
2730
+ }
2731
+ interface WithdrawStakeEventInstance extends TypedEventInstance<WithdrawStakeEvent> {
2732
+ data_decoded: WithdrawStakeEvent;
2733
+ type_arguments: [];
2734
+ }
2735
+ namespace entry {
2736
+ function addStake(client: AptosClient, account: AptosAccount, request: {
2737
+ type_arguments: [];
2738
+ arguments: [Address, bigint];
2739
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2740
+ function initializeDelegationPool(client: AptosClient, account: AptosAccount, request: {
2741
+ type_arguments: [];
2742
+ arguments: [bigint, string];
2743
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2744
+ function reactivateStake(client: AptosClient, account: AptosAccount, request: {
2745
+ type_arguments: [];
2746
+ arguments: [Address, bigint];
2747
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2748
+ function setDelegatedVoter(client: AptosClient, account: AptosAccount, request: {
2749
+ type_arguments: [];
2750
+ arguments: [Address];
2751
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2752
+ function setOperator(client: AptosClient, account: AptosAccount, request: {
2753
+ type_arguments: [];
2754
+ arguments: [Address];
2755
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2756
+ function synchronizeDelegationPool(client: AptosClient, account: AptosAccount, request: {
2757
+ type_arguments: [];
2758
+ arguments: [Address];
2759
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2760
+ function unlock(client: AptosClient, account: AptosAccount, request: {
2761
+ type_arguments: [];
2762
+ arguments: [Address, bigint];
2763
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2764
+ function withdraw(client: AptosClient, account: AptosAccount, request: {
2765
+ type_arguments: [];
2766
+ arguments: [Address, bigint];
2767
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2768
+ }
2769
+ namespace view {
2770
+ function canWithdrawPendingInactive(client: AptosClient, request: {
2771
+ arguments: [Address];
2772
+ }, version?: bigint): Promise<[Boolean]>;
2773
+ function delegationPoolExists(client: AptosClient, request: {
2774
+ arguments: [Address];
2775
+ }, version?: bigint): Promise<[Boolean]>;
2776
+ function getAddStakeFee(client: AptosClient, request: {
2777
+ arguments: [Address, bigint];
2778
+ }, version?: bigint): Promise<[bigint]>;
2779
+ function getDelegationPoolStake(client: AptosClient, request: {
2780
+ arguments: [Address];
2781
+ }, version?: bigint): Promise<[bigint, bigint, bigint, bigint]>;
2782
+ function getOwnedPoolAddress(client: AptosClient, request: {
2783
+ arguments: [Address];
2784
+ }, version?: bigint): Promise<[Address]>;
2785
+ function getPendingWithdrawal(client: AptosClient, request: {
2786
+ arguments: [Address, Address];
2787
+ }, version?: bigint): Promise<[Boolean, bigint]>;
2788
+ function getStake(client: AptosClient, request: {
2789
+ arguments: [Address, Address];
2790
+ }, version?: bigint): Promise<[bigint, bigint, bigint]>;
2791
+ function observedLockupCycle(client: AptosClient, request: {
2792
+ arguments: [Address];
2793
+ }, version?: bigint): Promise<[bigint]>;
2794
+ function operatorCommissionPercentage(client: AptosClient, request: {
2795
+ arguments: [Address];
2796
+ }, version?: bigint): Promise<[bigint]>;
2797
+ function ownerCapExists(client: AptosClient, request: {
2798
+ arguments: [Address];
2799
+ }, version?: bigint): Promise<[Boolean]>;
2800
+ function shareholdersCountActivePool(client: AptosClient, request: {
2801
+ arguments: [Address];
2802
+ }, version?: bigint): Promise<[bigint]>;
2803
+ }
2804
+ }
2805
+ export declare namespace reconfiguration {
2806
+ interface Configuration {
2807
+ epoch: bigint;
2808
+ last_reconfiguration_time: bigint;
2809
+ events: event.EventHandle<reconfiguration.NewEpochEvent>;
2810
+ }
2811
+ namespace Configuration {
2812
+ const TYPE_QNAME = "0x1::reconfiguration::Configuration";
2813
+ function type(): TypeDescriptor<Configuration>;
2814
+ }
2815
+ interface DisableReconfiguration {
2816
+ dummy_field: Boolean;
2817
+ }
2818
+ namespace DisableReconfiguration {
2819
+ const TYPE_QNAME = "0x1::reconfiguration::DisableReconfiguration";
2820
+ function type(): TypeDescriptor<DisableReconfiguration>;
2821
+ }
2822
+ interface NewEpochEvent {
2823
+ epoch: bigint;
2824
+ }
2825
+ namespace NewEpochEvent {
2826
+ const TYPE_QNAME = "0x1::reconfiguration::NewEpochEvent";
2827
+ function type(): TypeDescriptor<NewEpochEvent>;
2828
+ }
2829
+ interface NewEpochEventInstance extends TypedEventInstance<NewEpochEvent> {
2830
+ data_decoded: NewEpochEvent;
2831
+ type_arguments: [];
2832
+ }
2833
+ namespace entry { }
2834
+ namespace view { }
2835
+ }
2836
+ export declare namespace transaction_fee {
2837
+ interface AptosCoinCapabilities {
2838
+ burn_cap: coin.BurnCapability<aptos_coin.AptosCoin>;
2839
+ }
2840
+ namespace AptosCoinCapabilities {
2841
+ const TYPE_QNAME = "0x1::transaction_fee::AptosCoinCapabilities";
2842
+ function type(): TypeDescriptor<AptosCoinCapabilities>;
2843
+ }
2844
+ interface CollectedFeesPerBlock {
2845
+ amount: coin.AggregatableCoin<aptos_coin.AptosCoin>;
2846
+ proposer: option.Option<Address>;
2847
+ burn_percentage: number;
2848
+ }
2849
+ namespace CollectedFeesPerBlock {
2850
+ const TYPE_QNAME = "0x1::transaction_fee::CollectedFeesPerBlock";
2851
+ function type(): TypeDescriptor<CollectedFeesPerBlock>;
2852
+ }
2853
+ namespace entry { }
2854
+ namespace view { }
2855
+ }
2856
+ export declare namespace aptos_governance {
2857
+ interface ApprovedExecutionHashes {
2858
+ hashes: simple_map.SimpleMap<bigint, string>;
2859
+ }
2860
+ namespace ApprovedExecutionHashes {
2861
+ const TYPE_QNAME = "0x1::aptos_governance::ApprovedExecutionHashes";
2862
+ function type(): TypeDescriptor<ApprovedExecutionHashes>;
2863
+ }
2864
+ interface CreateProposalEvent {
2865
+ proposer: Address;
2866
+ stake_pool: Address;
2867
+ proposal_id: bigint;
2868
+ execution_hash: string;
2869
+ proposal_metadata: simple_map.SimpleMap<string, string>;
2870
+ }
2871
+ namespace CreateProposalEvent {
2872
+ const TYPE_QNAME = "0x1::aptos_governance::CreateProposalEvent";
2873
+ function type(): TypeDescriptor<CreateProposalEvent>;
2874
+ }
2875
+ interface CreateProposalEventInstance extends TypedEventInstance<CreateProposalEvent> {
2876
+ data_decoded: CreateProposalEvent;
2877
+ type_arguments: [];
2878
+ }
2879
+ interface GovernanceConfig {
2880
+ min_voting_threshold: bigint;
2881
+ required_proposer_stake: bigint;
2882
+ voting_duration_secs: bigint;
2883
+ }
2884
+ namespace GovernanceConfig {
2885
+ const TYPE_QNAME = "0x1::aptos_governance::GovernanceConfig";
2886
+ function type(): TypeDescriptor<GovernanceConfig>;
2887
+ }
2888
+ interface GovernanceEvents {
2889
+ create_proposal_events: event.EventHandle<aptos_governance.CreateProposalEvent>;
2890
+ update_config_events: event.EventHandle<aptos_governance.UpdateConfigEvent>;
2891
+ vote_events: event.EventHandle<aptos_governance.VoteEvent>;
2892
+ }
2893
+ namespace GovernanceEvents {
2894
+ const TYPE_QNAME = "0x1::aptos_governance::GovernanceEvents";
2895
+ function type(): TypeDescriptor<GovernanceEvents>;
2896
+ }
2897
+ interface GovernanceResponsbility {
2898
+ signer_caps: simple_map.SimpleMap<Address, account.SignerCapability>;
2899
+ }
2900
+ namespace GovernanceResponsbility {
2901
+ const TYPE_QNAME = "0x1::aptos_governance::GovernanceResponsbility";
2902
+ function type(): TypeDescriptor<GovernanceResponsbility>;
2903
+ }
2904
+ interface RecordKey {
2905
+ stake_pool: Address;
2906
+ proposal_id: bigint;
2907
+ }
2908
+ namespace RecordKey {
2909
+ const TYPE_QNAME = "0x1::aptos_governance::RecordKey";
2910
+ function type(): TypeDescriptor<RecordKey>;
2911
+ }
2912
+ interface RecordKeyInstance extends TypedEventInstance<RecordKey> {
2913
+ data_decoded: RecordKey;
2914
+ type_arguments: [];
2915
+ }
2916
+ interface UpdateConfigEvent {
2917
+ min_voting_threshold: bigint;
2918
+ required_proposer_stake: bigint;
2919
+ voting_duration_secs: bigint;
2920
+ }
2921
+ namespace UpdateConfigEvent {
2922
+ const TYPE_QNAME = "0x1::aptos_governance::UpdateConfigEvent";
2923
+ function type(): TypeDescriptor<UpdateConfigEvent>;
2924
+ }
2925
+ interface UpdateConfigEventInstance extends TypedEventInstance<UpdateConfigEvent> {
2926
+ data_decoded: UpdateConfigEvent;
2927
+ type_arguments: [];
2928
+ }
2929
+ interface VoteEvent {
2930
+ proposal_id: bigint;
2931
+ voter: Address;
2932
+ stake_pool: Address;
2933
+ num_votes: bigint;
2934
+ should_pass: Boolean;
2935
+ }
2936
+ namespace VoteEvent {
2937
+ const TYPE_QNAME = "0x1::aptos_governance::VoteEvent";
2938
+ function type(): TypeDescriptor<VoteEvent>;
2939
+ }
2940
+ interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
2941
+ data_decoded: VoteEvent;
2942
+ type_arguments: [];
2943
+ }
2944
+ interface VotingRecords {
2945
+ votes: table.Table<aptos_governance.RecordKey, Boolean>;
2946
+ }
2947
+ namespace VotingRecords {
2948
+ const TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
2949
+ function type(): TypeDescriptor<VotingRecords>;
2950
+ }
2951
+ namespace entry {
2952
+ function addApprovedScriptHashScript(client: AptosClient, account: AptosAccount, request: {
2953
+ type_arguments: [];
2954
+ arguments: [bigint];
2955
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2956
+ function createProposal(client: AptosClient, account: AptosAccount, request: {
2957
+ type_arguments: [];
2958
+ arguments: [Address, string, string, string];
2959
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2960
+ function createProposalV2(client: AptosClient, account: AptosAccount, request: {
2961
+ type_arguments: [];
2962
+ arguments: [Address, string, string, string, Boolean];
2963
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2964
+ function vote(client: AptosClient, account: AptosAccount, request: {
2965
+ type_arguments: [];
2966
+ arguments: [Address, bigint, Boolean];
2967
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
2968
+ }
2969
+ namespace view {
2970
+ function getMinVotingThreshold(client: AptosClient, version?: bigint): Promise<[bigint]>;
2971
+ function getRequiredProposerStake(client: AptosClient, version?: bigint): Promise<[bigint]>;
2972
+ function getVotingDurationSecs(client: AptosClient, version?: bigint): Promise<[bigint]>;
2973
+ }
2974
+ }
2975
+ export declare namespace bls12381_algebra {
2976
+ interface FormatFq12LscLsb {
2977
+ dummy_field: Boolean;
2978
+ }
2979
+ namespace FormatFq12LscLsb {
2980
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatFq12LscLsb";
2981
+ function type(): TypeDescriptor<FormatFq12LscLsb>;
2982
+ }
2983
+ interface FormatFrLsb {
2984
+ dummy_field: Boolean;
2985
+ }
2986
+ namespace FormatFrLsb {
2987
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatFrLsb";
2988
+ function type(): TypeDescriptor<FormatFrLsb>;
2989
+ }
2990
+ interface FormatFrMsb {
2991
+ dummy_field: Boolean;
2992
+ }
2993
+ namespace FormatFrMsb {
2994
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatFrMsb";
2995
+ function type(): TypeDescriptor<FormatFrMsb>;
2996
+ }
2997
+ interface FormatG1Compr {
2998
+ dummy_field: Boolean;
2999
+ }
3000
+ namespace FormatG1Compr {
3001
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG1Compr";
3002
+ function type(): TypeDescriptor<FormatG1Compr>;
3003
+ }
3004
+ interface FormatG1Uncompr {
3005
+ dummy_field: Boolean;
3006
+ }
3007
+ namespace FormatG1Uncompr {
3008
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG1Uncompr";
3009
+ function type(): TypeDescriptor<FormatG1Uncompr>;
3010
+ }
3011
+ interface FormatG2Compr {
3012
+ dummy_field: Boolean;
3013
+ }
3014
+ namespace FormatG2Compr {
3015
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG2Compr";
3016
+ function type(): TypeDescriptor<FormatG2Compr>;
3017
+ }
3018
+ interface FormatG2Uncompr {
3019
+ dummy_field: Boolean;
3020
+ }
3021
+ namespace FormatG2Uncompr {
3022
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatG2Uncompr";
3023
+ function type(): TypeDescriptor<FormatG2Uncompr>;
3024
+ }
3025
+ interface FormatGt {
3026
+ dummy_field: Boolean;
3027
+ }
3028
+ namespace FormatGt {
3029
+ const TYPE_QNAME = "0x1::bls12381_algebra::FormatGt";
3030
+ function type(): TypeDescriptor<FormatGt>;
3031
+ }
3032
+ interface Fq12 {
3033
+ dummy_field: Boolean;
3034
+ }
3035
+ namespace Fq12 {
3036
+ const TYPE_QNAME = "0x1::bls12381_algebra::Fq12";
3037
+ function type(): TypeDescriptor<Fq12>;
3038
+ }
3039
+ interface Fr {
3040
+ dummy_field: Boolean;
3041
+ }
3042
+ namespace Fr {
3043
+ const TYPE_QNAME = "0x1::bls12381_algebra::Fr";
3044
+ function type(): TypeDescriptor<Fr>;
3045
+ }
3046
+ interface G1 {
3047
+ dummy_field: Boolean;
3048
+ }
3049
+ namespace G1 {
3050
+ const TYPE_QNAME = "0x1::bls12381_algebra::G1";
3051
+ function type(): TypeDescriptor<G1>;
3052
+ }
3053
+ interface G2 {
3054
+ dummy_field: Boolean;
3055
+ }
3056
+ namespace G2 {
3057
+ const TYPE_QNAME = "0x1::bls12381_algebra::G2";
3058
+ function type(): TypeDescriptor<G2>;
3059
+ }
3060
+ interface Gt {
3061
+ dummy_field: Boolean;
3062
+ }
3063
+ namespace Gt {
3064
+ const TYPE_QNAME = "0x1::bls12381_algebra::Gt";
3065
+ function type(): TypeDescriptor<Gt>;
3066
+ }
3067
+ interface HashG1XmdSha256SswuRo {
3068
+ dummy_field: Boolean;
3069
+ }
3070
+ namespace HashG1XmdSha256SswuRo {
3071
+ const TYPE_QNAME = "0x1::bls12381_algebra::HashG1XmdSha256SswuRo";
3072
+ function type(): TypeDescriptor<HashG1XmdSha256SswuRo>;
3073
+ }
3074
+ interface HashG2XmdSha256SswuRo {
3075
+ dummy_field: Boolean;
3076
+ }
3077
+ namespace HashG2XmdSha256SswuRo {
3078
+ const TYPE_QNAME = "0x1::bls12381_algebra::HashG2XmdSha256SswuRo";
3079
+ function type(): TypeDescriptor<HashG2XmdSha256SswuRo>;
3080
+ }
3081
+ namespace entry { }
3082
+ namespace view { }
3083
+ }
3084
+ export declare namespace consensus_config {
3085
+ interface ConsensusConfig {
3086
+ config: string;
3087
+ }
3088
+ namespace ConsensusConfig {
3089
+ const TYPE_QNAME = "0x1::consensus_config::ConsensusConfig";
3090
+ function type(): TypeDescriptor<ConsensusConfig>;
3091
+ }
3092
+ namespace entry { }
3093
+ namespace view { }
3094
+ }
3095
+ export declare namespace execution_config {
3096
+ interface ExecutionConfig {
3097
+ config: string;
3098
+ }
3099
+ namespace ExecutionConfig {
3100
+ const TYPE_QNAME = "0x1::execution_config::ExecutionConfig";
3101
+ function type(): TypeDescriptor<ExecutionConfig>;
3102
+ }
3103
+ namespace entry { }
3104
+ namespace view { }
3105
+ }
3106
+ export declare namespace multisig_account {
3107
+ interface AddOwnersEvent {
3108
+ owners_added: Address[];
3109
+ }
3110
+ namespace AddOwnersEvent {
3111
+ const TYPE_QNAME = "0x1::multisig_account::AddOwnersEvent";
3112
+ function type(): TypeDescriptor<AddOwnersEvent>;
3113
+ }
3114
+ interface AddOwnersEventInstance extends TypedEventInstance<AddOwnersEvent> {
3115
+ data_decoded: AddOwnersEvent;
3116
+ type_arguments: [];
3117
+ }
3118
+ interface CreateTransactionEvent {
3119
+ creator: Address;
3120
+ sequence_number: bigint;
3121
+ transaction: multisig_account.MultisigTransaction;
3122
+ }
3123
+ namespace CreateTransactionEvent {
3124
+ const TYPE_QNAME = "0x1::multisig_account::CreateTransactionEvent";
3125
+ function type(): TypeDescriptor<CreateTransactionEvent>;
3126
+ }
3127
+ interface CreateTransactionEventInstance extends TypedEventInstance<CreateTransactionEvent> {
3128
+ data_decoded: CreateTransactionEvent;
3129
+ type_arguments: [];
3130
+ }
3131
+ interface ExecuteRejectedTransactionEvent {
3132
+ sequence_number: bigint;
3133
+ num_rejections: bigint;
3134
+ executor: Address;
3135
+ }
3136
+ namespace ExecuteRejectedTransactionEvent {
3137
+ const TYPE_QNAME = "0x1::multisig_account::ExecuteRejectedTransactionEvent";
3138
+ function type(): TypeDescriptor<ExecuteRejectedTransactionEvent>;
3139
+ }
3140
+ interface ExecuteRejectedTransactionEventInstance extends TypedEventInstance<ExecuteRejectedTransactionEvent> {
3141
+ data_decoded: ExecuteRejectedTransactionEvent;
3142
+ type_arguments: [];
3143
+ }
3144
+ interface ExecutionError {
3145
+ abort_location: string;
3146
+ error_type: string;
3147
+ error_code: bigint;
3148
+ }
3149
+ namespace ExecutionError {
3150
+ const TYPE_QNAME = "0x1::multisig_account::ExecutionError";
3151
+ function type(): TypeDescriptor<ExecutionError>;
3152
+ }
3153
+ interface ExecutionErrorInstance extends TypedEventInstance<ExecutionError> {
3154
+ data_decoded: ExecutionError;
3155
+ type_arguments: [];
3156
+ }
3157
+ interface MetadataUpdatedEvent {
3158
+ old_metadata: simple_map.SimpleMap<string, string>;
3159
+ new_metadata: simple_map.SimpleMap<string, string>;
3160
+ }
3161
+ namespace MetadataUpdatedEvent {
3162
+ const TYPE_QNAME = "0x1::multisig_account::MetadataUpdatedEvent";
3163
+ function type(): TypeDescriptor<MetadataUpdatedEvent>;
3164
+ }
3165
+ interface MetadataUpdatedEventInstance extends TypedEventInstance<MetadataUpdatedEvent> {
3166
+ data_decoded: MetadataUpdatedEvent;
3167
+ type_arguments: [];
3168
+ }
3169
+ interface MultisigAccount {
3170
+ owners: Address[];
3171
+ num_signatures_required: bigint;
3172
+ transactions: table.Table<bigint, multisig_account.MultisigTransaction>;
3173
+ last_executed_sequence_number: bigint;
3174
+ next_sequence_number: bigint;
3175
+ signer_cap: option.Option<account.SignerCapability>;
3176
+ metadata: simple_map.SimpleMap<string, string>;
3177
+ add_owners_events: event.EventHandle<multisig_account.AddOwnersEvent>;
3178
+ remove_owners_events: event.EventHandle<multisig_account.RemoveOwnersEvent>;
3179
+ update_signature_required_events: event.EventHandle<multisig_account.UpdateSignaturesRequiredEvent>;
3180
+ create_transaction_events: event.EventHandle<multisig_account.CreateTransactionEvent>;
3181
+ vote_events: event.EventHandle<multisig_account.VoteEvent>;
3182
+ execute_rejected_transaction_events: event.EventHandle<multisig_account.ExecuteRejectedTransactionEvent>;
3183
+ execute_transaction_events: event.EventHandle<multisig_account.TransactionExecutionSucceededEvent>;
3184
+ transaction_execution_failed_events: event.EventHandle<multisig_account.TransactionExecutionFailedEvent>;
3185
+ metadata_updated_events: event.EventHandle<multisig_account.MetadataUpdatedEvent>;
3186
+ }
3187
+ namespace MultisigAccount {
3188
+ const TYPE_QNAME = "0x1::multisig_account::MultisigAccount";
3189
+ function type(): TypeDescriptor<MultisigAccount>;
3190
+ }
3191
+ interface MultisigAccountCreationMessage {
3192
+ chain_id: number;
3193
+ account_address: Address;
3194
+ sequence_number: bigint;
3195
+ owners: Address[];
3196
+ num_signatures_required: bigint;
3197
+ }
3198
+ namespace MultisigAccountCreationMessage {
3199
+ const TYPE_QNAME = "0x1::multisig_account::MultisigAccountCreationMessage";
3200
+ function type(): TypeDescriptor<MultisigAccountCreationMessage>;
3201
+ }
3202
+ interface MultisigTransaction {
3203
+ payload: option.Option<string>;
3204
+ payload_hash: option.Option<string>;
3205
+ votes: simple_map.SimpleMap<Address, Boolean>;
3206
+ creator: Address;
3207
+ creation_time_secs: bigint;
3208
+ }
3209
+ namespace MultisigTransaction {
3210
+ const TYPE_QNAME = "0x1::multisig_account::MultisigTransaction";
3211
+ function type(): TypeDescriptor<MultisigTransaction>;
3212
+ }
3213
+ interface MultisigTransactionInstance extends TypedEventInstance<MultisigTransaction> {
3214
+ data_decoded: MultisigTransaction;
3215
+ type_arguments: [];
3216
+ }
3217
+ interface RemoveOwnersEvent {
3218
+ owners_removed: Address[];
3219
+ }
3220
+ namespace RemoveOwnersEvent {
3221
+ const TYPE_QNAME = "0x1::multisig_account::RemoveOwnersEvent";
3222
+ function type(): TypeDescriptor<RemoveOwnersEvent>;
3223
+ }
3224
+ interface RemoveOwnersEventInstance extends TypedEventInstance<RemoveOwnersEvent> {
3225
+ data_decoded: RemoveOwnersEvent;
3226
+ type_arguments: [];
3227
+ }
3228
+ interface TransactionExecutionFailedEvent {
3229
+ executor: Address;
3230
+ sequence_number: bigint;
3231
+ transaction_payload: string;
3232
+ num_approvals: bigint;
3233
+ execution_error: multisig_account.ExecutionError;
3234
+ }
3235
+ namespace TransactionExecutionFailedEvent {
3236
+ const TYPE_QNAME = "0x1::multisig_account::TransactionExecutionFailedEvent";
3237
+ function type(): TypeDescriptor<TransactionExecutionFailedEvent>;
3238
+ }
3239
+ interface TransactionExecutionFailedEventInstance extends TypedEventInstance<TransactionExecutionFailedEvent> {
3240
+ data_decoded: TransactionExecutionFailedEvent;
3241
+ type_arguments: [];
3242
+ }
3243
+ interface TransactionExecutionSucceededEvent {
3244
+ executor: Address;
3245
+ sequence_number: bigint;
3246
+ transaction_payload: string;
3247
+ num_approvals: bigint;
3248
+ }
3249
+ namespace TransactionExecutionSucceededEvent {
3250
+ const TYPE_QNAME = "0x1::multisig_account::TransactionExecutionSucceededEvent";
3251
+ function type(): TypeDescriptor<TransactionExecutionSucceededEvent>;
3252
+ }
3253
+ interface TransactionExecutionSucceededEventInstance extends TypedEventInstance<TransactionExecutionSucceededEvent> {
3254
+ data_decoded: TransactionExecutionSucceededEvent;
3255
+ type_arguments: [];
3256
+ }
3257
+ interface UpdateSignaturesRequiredEvent {
3258
+ old_num_signatures_required: bigint;
3259
+ new_num_signatures_required: bigint;
3260
+ }
3261
+ namespace UpdateSignaturesRequiredEvent {
3262
+ const TYPE_QNAME = "0x1::multisig_account::UpdateSignaturesRequiredEvent";
3263
+ function type(): TypeDescriptor<UpdateSignaturesRequiredEvent>;
3264
+ }
3265
+ interface UpdateSignaturesRequiredEventInstance extends TypedEventInstance<UpdateSignaturesRequiredEvent> {
3266
+ data_decoded: UpdateSignaturesRequiredEvent;
3267
+ type_arguments: [];
3268
+ }
3269
+ interface VoteEvent {
3270
+ owner: Address;
3271
+ sequence_number: bigint;
3272
+ approved: Boolean;
3273
+ }
3274
+ namespace VoteEvent {
3275
+ const TYPE_QNAME = "0x1::multisig_account::VoteEvent";
3276
+ function type(): TypeDescriptor<VoteEvent>;
3277
+ }
3278
+ interface VoteEventInstance extends TypedEventInstance<VoteEvent> {
3279
+ data_decoded: VoteEvent;
3280
+ type_arguments: [];
3281
+ }
3282
+ namespace entry {
3283
+ function addOwner(client: AptosClient, account: AptosAccount, request: {
3284
+ type_arguments: [];
3285
+ arguments: [Address];
3286
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3287
+ function addOwners(client: AptosClient, account: AptosAccount, request: {
3288
+ type_arguments: [];
3289
+ arguments: [Address[]];
3290
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3291
+ function approveTransaction(client: AptosClient, account: AptosAccount, request: {
3292
+ type_arguments: [];
3293
+ arguments: [Address, bigint];
3294
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3295
+ function create(client: AptosClient, account: AptosAccount, request: {
3296
+ type_arguments: [];
3297
+ arguments: [bigint, string[], string[]];
3298
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3299
+ function createTransaction(client: AptosClient, account: AptosAccount, request: {
3300
+ type_arguments: [];
3301
+ arguments: [Address, string];
3302
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3303
+ function createTransactionWithHash(client: AptosClient, account: AptosAccount, request: {
3304
+ type_arguments: [];
3305
+ arguments: [Address, string];
3306
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3307
+ function createWithExistingAccount(client: AptosClient, account: AptosAccount, request: {
3308
+ type_arguments: [];
3309
+ arguments: [
3310
+ Address,
3311
+ Address[],
3312
+ bigint,
3313
+ number,
3314
+ string,
3315
+ string,
3316
+ string[],
3317
+ string[]
3318
+ ];
3319
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3320
+ function createWithOwners(client: AptosClient, account: AptosAccount, request: {
3321
+ type_arguments: [];
3322
+ arguments: [Address[], bigint, string[], string[]];
3323
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3324
+ function executeRejectedTransaction(client: AptosClient, account: AptosAccount, request: {
3325
+ type_arguments: [];
3326
+ arguments: [Address];
3327
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3328
+ function rejectTransaction(client: AptosClient, account: AptosAccount, request: {
3329
+ type_arguments: [];
3330
+ arguments: [Address, bigint];
3331
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3332
+ function removeOwner(client: AptosClient, account: AptosAccount, request: {
3333
+ type_arguments: [];
3334
+ arguments: [Address];
3335
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3336
+ function removeOwners(client: AptosClient, account: AptosAccount, request: {
3337
+ type_arguments: [];
3338
+ arguments: [Address[]];
3339
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3340
+ function updateMetadata(client: AptosClient, account: AptosAccount, request: {
3341
+ type_arguments: [];
3342
+ arguments: [string[], string[]];
3343
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3344
+ function updateSignaturesRequired(client: AptosClient, account: AptosAccount, request: {
3345
+ type_arguments: [];
3346
+ arguments: [bigint];
3347
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3348
+ function voteTransanction(client: AptosClient, account: AptosAccount, request: {
3349
+ type_arguments: [];
3350
+ arguments: [Address, bigint, Boolean];
3351
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3352
+ }
3353
+ namespace view {
3354
+ function canBeExecuted(client: AptosClient, request: {
3355
+ arguments: [Address, bigint];
3356
+ }, version?: bigint): Promise<[Boolean]>;
3357
+ function canBeRejected(client: AptosClient, request: {
3358
+ arguments: [Address, bigint];
3359
+ }, version?: bigint): Promise<[Boolean]>;
3360
+ function getNextMultisigAccountAddress(client: AptosClient, request: {
3361
+ arguments: [Address];
3362
+ }, version?: bigint): Promise<[Address]>;
3363
+ function getNextTransactionPayload(client: AptosClient, request: {
3364
+ arguments: [Address, string];
3365
+ }, version?: bigint): Promise<[string]>;
3366
+ function getPendingTransactions(client: AptosClient, request: {
3367
+ arguments: [Address];
3368
+ }, version?: bigint): Promise<[multisig_account.MultisigTransaction[]]>;
3369
+ function getTransaction(client: AptosClient, request: {
3370
+ arguments: [Address, bigint];
3371
+ }, version?: bigint): Promise<[multisig_account.MultisigTransaction]>;
3372
+ function lastResolvedSequenceNumber(client: AptosClient, request: {
3373
+ arguments: [Address];
3374
+ }, version?: bigint): Promise<[bigint]>;
3375
+ function metadata(client: AptosClient, request: {
3376
+ arguments: [Address];
3377
+ }, version?: bigint): Promise<[simple_map.SimpleMap<string, string>]>;
3378
+ function nextSequenceNumber(client: AptosClient, request: {
3379
+ arguments: [Address];
3380
+ }, version?: bigint): Promise<[bigint]>;
3381
+ function numSignaturesRequired(client: AptosClient, request: {
3382
+ arguments: [Address];
3383
+ }, version?: bigint): Promise<[bigint]>;
3384
+ function owners(client: AptosClient, request: {
3385
+ arguments: [Address];
3386
+ }, version?: bigint): Promise<[Address[]]>;
3387
+ function vote(client: AptosClient, request: {
3388
+ arguments: [Address, bigint, Address];
3389
+ }, version?: bigint): Promise<[Boolean, Boolean]>;
3390
+ }
3391
+ }
3392
+ export declare namespace pool_u64_unbound {
3393
+ interface Pool {
3394
+ total_coins: bigint;
3395
+ total_shares: bigint;
3396
+ shares: table_with_length.TableWithLength<Address, bigint>;
3397
+ scaling_factor: bigint;
3398
+ }
3399
+ namespace Pool {
3400
+ const TYPE_QNAME = "0x1::pool_u64_unbound::Pool";
3401
+ function type(): TypeDescriptor<Pool>;
3402
+ }
3403
+ namespace entry { }
3404
+ namespace view { }
3405
+ }
3406
+ export declare namespace resource_account {
3407
+ interface Container {
3408
+ store: simple_map.SimpleMap<Address, account.SignerCapability>;
3409
+ }
3410
+ namespace Container {
3411
+ const TYPE_QNAME = "0x1::resource_account::Container";
3412
+ function type(): TypeDescriptor<Container>;
3413
+ }
3414
+ namespace entry {
3415
+ function createResourceAccount(client: AptosClient, account: AptosAccount, request: {
3416
+ type_arguments: [];
3417
+ arguments: [string, string];
3418
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3419
+ function createResourceAccountAndFund(client: AptosClient, account: AptosAccount, request: {
3420
+ type_arguments: [];
3421
+ arguments: [string, string, bigint];
3422
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3423
+ function createResourceAccountAndPublishPackage(client: AptosClient, account: AptosAccount, request: {
3424
+ type_arguments: [];
3425
+ arguments: [string, string, string[]];
3426
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3427
+ }
3428
+ namespace view { }
3429
+ }
3430
+ export declare namespace staking_contract {
3431
+ interface AddDistributionEvent {
3432
+ operator: Address;
3433
+ pool_address: Address;
3434
+ amount: bigint;
3435
+ }
3436
+ namespace AddDistributionEvent {
3437
+ const TYPE_QNAME = "0x1::staking_contract::AddDistributionEvent";
3438
+ function type(): TypeDescriptor<AddDistributionEvent>;
3439
+ }
3440
+ interface AddDistributionEventInstance extends TypedEventInstance<AddDistributionEvent> {
3441
+ data_decoded: AddDistributionEvent;
3442
+ type_arguments: [];
3443
+ }
3444
+ interface AddStakeEvent {
3445
+ operator: Address;
3446
+ pool_address: Address;
3447
+ amount: bigint;
3448
+ }
3449
+ namespace AddStakeEvent {
3450
+ const TYPE_QNAME = "0x1::staking_contract::AddStakeEvent";
3451
+ function type(): TypeDescriptor<AddStakeEvent>;
3452
+ }
3453
+ interface AddStakeEventInstance extends TypedEventInstance<AddStakeEvent> {
3454
+ data_decoded: AddStakeEvent;
3455
+ type_arguments: [];
3456
+ }
3457
+ interface CreateStakingContractEvent {
3458
+ operator: Address;
3459
+ voter: Address;
3460
+ pool_address: Address;
3461
+ principal: bigint;
3462
+ commission_percentage: bigint;
3463
+ }
3464
+ namespace CreateStakingContractEvent {
3465
+ const TYPE_QNAME = "0x1::staking_contract::CreateStakingContractEvent";
3466
+ function type(): TypeDescriptor<CreateStakingContractEvent>;
3467
+ }
3468
+ interface CreateStakingContractEventInstance extends TypedEventInstance<CreateStakingContractEvent> {
3469
+ data_decoded: CreateStakingContractEvent;
3470
+ type_arguments: [];
3471
+ }
3472
+ interface DistributeEvent {
3473
+ operator: Address;
3474
+ pool_address: Address;
3475
+ recipient: Address;
3476
+ amount: bigint;
3477
+ }
3478
+ namespace DistributeEvent {
3479
+ const TYPE_QNAME = "0x1::staking_contract::DistributeEvent";
3480
+ function type(): TypeDescriptor<DistributeEvent>;
3481
+ }
3482
+ interface DistributeEventInstance extends TypedEventInstance<DistributeEvent> {
3483
+ data_decoded: DistributeEvent;
3484
+ type_arguments: [];
3485
+ }
3486
+ interface RequestCommissionEvent {
3487
+ operator: Address;
3488
+ pool_address: Address;
3489
+ accumulated_rewards: bigint;
3490
+ commission_amount: bigint;
3491
+ }
3492
+ namespace RequestCommissionEvent {
3493
+ const TYPE_QNAME = "0x1::staking_contract::RequestCommissionEvent";
3494
+ function type(): TypeDescriptor<RequestCommissionEvent>;
3495
+ }
3496
+ interface RequestCommissionEventInstance extends TypedEventInstance<RequestCommissionEvent> {
3497
+ data_decoded: RequestCommissionEvent;
3498
+ type_arguments: [];
3499
+ }
3500
+ interface ResetLockupEvent {
3501
+ operator: Address;
3502
+ pool_address: Address;
3503
+ }
3504
+ namespace ResetLockupEvent {
3505
+ const TYPE_QNAME = "0x1::staking_contract::ResetLockupEvent";
3506
+ function type(): TypeDescriptor<ResetLockupEvent>;
3507
+ }
3508
+ interface ResetLockupEventInstance extends TypedEventInstance<ResetLockupEvent> {
3509
+ data_decoded: ResetLockupEvent;
3510
+ type_arguments: [];
3511
+ }
3512
+ interface StakingContract {
3513
+ principal: bigint;
3514
+ pool_address: Address;
3515
+ owner_cap: stake.OwnerCapability;
3516
+ commission_percentage: bigint;
3517
+ distribution_pool: pool_u64.Pool;
3518
+ signer_cap: account.SignerCapability;
3519
+ }
3520
+ namespace StakingContract {
3521
+ const TYPE_QNAME = "0x1::staking_contract::StakingContract";
3522
+ function type(): TypeDescriptor<StakingContract>;
3523
+ }
3524
+ interface StakingGroupContainer {
3525
+ dummy_field: Boolean;
3526
+ }
3527
+ namespace StakingGroupContainer {
3528
+ const TYPE_QNAME = "0x1::staking_contract::StakingGroupContainer";
3529
+ function type(): TypeDescriptor<StakingGroupContainer>;
3530
+ }
3531
+ interface StakingGroupUpdateCommissionEvent {
3532
+ update_commission_events: event.EventHandle<staking_contract.UpdateCommissionEvent>;
3533
+ }
3534
+ namespace StakingGroupUpdateCommissionEvent {
3535
+ const TYPE_QNAME = "0x1::staking_contract::StakingGroupUpdateCommissionEvent";
3536
+ function type(): TypeDescriptor<StakingGroupUpdateCommissionEvent>;
3537
+ }
3538
+ interface Store {
3539
+ staking_contracts: simple_map.SimpleMap<Address, staking_contract.StakingContract>;
3540
+ create_staking_contract_events: event.EventHandle<staking_contract.CreateStakingContractEvent>;
3541
+ update_voter_events: event.EventHandle<staking_contract.UpdateVoterEvent>;
3542
+ reset_lockup_events: event.EventHandle<staking_contract.ResetLockupEvent>;
3543
+ add_stake_events: event.EventHandle<staking_contract.AddStakeEvent>;
3544
+ request_commission_events: event.EventHandle<staking_contract.RequestCommissionEvent>;
3545
+ unlock_stake_events: event.EventHandle<staking_contract.UnlockStakeEvent>;
3546
+ switch_operator_events: event.EventHandle<staking_contract.SwitchOperatorEvent>;
3547
+ add_distribution_events: event.EventHandle<staking_contract.AddDistributionEvent>;
3548
+ distribute_events: event.EventHandle<staking_contract.DistributeEvent>;
3549
+ }
3550
+ namespace Store {
3551
+ const TYPE_QNAME = "0x1::staking_contract::Store";
3552
+ function type(): TypeDescriptor<Store>;
3553
+ }
3554
+ interface SwitchOperatorEvent {
3555
+ old_operator: Address;
3556
+ new_operator: Address;
3557
+ pool_address: Address;
3558
+ }
3559
+ namespace SwitchOperatorEvent {
3560
+ const TYPE_QNAME = "0x1::staking_contract::SwitchOperatorEvent";
3561
+ function type(): TypeDescriptor<SwitchOperatorEvent>;
3562
+ }
3563
+ interface SwitchOperatorEventInstance extends TypedEventInstance<SwitchOperatorEvent> {
3564
+ data_decoded: SwitchOperatorEvent;
3565
+ type_arguments: [];
3566
+ }
3567
+ interface UnlockStakeEvent {
3568
+ operator: Address;
3569
+ pool_address: Address;
3570
+ amount: bigint;
3571
+ commission_paid: bigint;
3572
+ }
3573
+ namespace UnlockStakeEvent {
3574
+ const TYPE_QNAME = "0x1::staking_contract::UnlockStakeEvent";
3575
+ function type(): TypeDescriptor<UnlockStakeEvent>;
3576
+ }
3577
+ interface UnlockStakeEventInstance extends TypedEventInstance<UnlockStakeEvent> {
3578
+ data_decoded: UnlockStakeEvent;
3579
+ type_arguments: [];
3580
+ }
3581
+ interface UpdateCommissionEvent {
3582
+ staker: Address;
3583
+ operator: Address;
3584
+ old_commission_percentage: bigint;
3585
+ new_commission_percentage: bigint;
3586
+ }
3587
+ namespace UpdateCommissionEvent {
3588
+ const TYPE_QNAME = "0x1::staking_contract::UpdateCommissionEvent";
3589
+ function type(): TypeDescriptor<UpdateCommissionEvent>;
3590
+ }
3591
+ interface UpdateCommissionEventInstance extends TypedEventInstance<UpdateCommissionEvent> {
3592
+ data_decoded: UpdateCommissionEvent;
3593
+ type_arguments: [];
3594
+ }
3595
+ interface UpdateVoterEvent {
3596
+ operator: Address;
3597
+ pool_address: Address;
3598
+ old_voter: Address;
3599
+ new_voter: Address;
3600
+ }
3601
+ namespace UpdateVoterEvent {
3602
+ const TYPE_QNAME = "0x1::staking_contract::UpdateVoterEvent";
3603
+ function type(): TypeDescriptor<UpdateVoterEvent>;
3604
+ }
3605
+ interface UpdateVoterEventInstance extends TypedEventInstance<UpdateVoterEvent> {
3606
+ data_decoded: UpdateVoterEvent;
3607
+ type_arguments: [];
3608
+ }
3609
+ namespace entry {
3610
+ function addStake(client: AptosClient, account: AptosAccount, request: {
3611
+ type_arguments: [];
3612
+ arguments: [Address, bigint];
3613
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3614
+ function createStakingContract(client: AptosClient, account: AptosAccount, request: {
3615
+ type_arguments: [];
3616
+ arguments: [Address, Address, bigint, bigint, string];
3617
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3618
+ function distribute(client: AptosClient, account: AptosAccount, request: {
3619
+ type_arguments: [];
3620
+ arguments: [Address, Address];
3621
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3622
+ function requestCommission(client: AptosClient, account: AptosAccount, request: {
3623
+ type_arguments: [];
3624
+ arguments: [Address, Address];
3625
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3626
+ function resetLockup(client: AptosClient, account: AptosAccount, request: {
3627
+ type_arguments: [];
3628
+ arguments: [Address];
3629
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3630
+ function switchOperator(client: AptosClient, account: AptosAccount, request: {
3631
+ type_arguments: [];
3632
+ arguments: [Address, Address, bigint];
3633
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3634
+ function switchOperatorWithSameCommission(client: AptosClient, account: AptosAccount, request: {
3635
+ type_arguments: [];
3636
+ arguments: [Address, Address];
3637
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3638
+ function unlockRewards(client: AptosClient, account: AptosAccount, request: {
3639
+ type_arguments: [];
3640
+ arguments: [Address];
3641
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3642
+ function unlockStake(client: AptosClient, account: AptosAccount, request: {
3643
+ type_arguments: [];
3644
+ arguments: [Address, bigint];
3645
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3646
+ function updateCommision(client: AptosClient, account: AptosAccount, request: {
3647
+ type_arguments: [];
3648
+ arguments: [Address, bigint];
3649
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3650
+ function updateVoter(client: AptosClient, account: AptosAccount, request: {
3651
+ type_arguments: [];
3652
+ arguments: [Address, Address];
3653
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3654
+ }
3655
+ namespace view {
3656
+ function commissionPercentage(client: AptosClient, request: {
3657
+ arguments: [Address, Address];
3658
+ }, version?: bigint): Promise<[bigint]>;
3659
+ function lastRecordedPrincipal(client: AptosClient, request: {
3660
+ arguments: [Address, Address];
3661
+ }, version?: bigint): Promise<[bigint]>;
3662
+ function pendingDistributionCounts(client: AptosClient, request: {
3663
+ arguments: [Address, Address];
3664
+ }, version?: bigint): Promise<[bigint]>;
3665
+ function stakePoolAddress(client: AptosClient, request: {
3666
+ arguments: [Address, Address];
3667
+ }, version?: bigint): Promise<[Address]>;
3668
+ function stakingContractAmounts(client: AptosClient, request: {
3669
+ arguments: [Address, Address];
3670
+ }, version?: bigint): Promise<[bigint, bigint, bigint]>;
3671
+ function stakingContractExists(client: AptosClient, request: {
3672
+ arguments: [Address, Address];
3673
+ }, version?: bigint): Promise<[Boolean]>;
3674
+ }
3675
+ }
3676
+ export declare namespace system_addresses {
3677
+ namespace entry { }
3678
+ namespace view { }
3679
+ }
3680
+ export declare namespace table_with_length {
3681
+ interface TableWithLength<T0, T1> {
3682
+ inner: table.Table<T0, T1>;
3683
+ length: bigint;
3684
+ }
3685
+ namespace TableWithLength {
3686
+ const TYPE_QNAME = "0x1::table_with_length::TableWithLength";
3687
+ function type<T0, T1>(arg0?: TypeDescriptor<T0>, arg1?: TypeDescriptor<T1>): TypeDescriptor<TableWithLength<T0, T1>>;
3688
+ }
3689
+ namespace entry { }
3690
+ namespace view { }
3691
+ }
3692
+ export declare namespace aggregator_factory {
3693
+ interface AggregatorFactory {
3694
+ phantom_table: table.Table<Address, bigint>;
3695
+ }
3696
+ namespace AggregatorFactory {
3697
+ const TYPE_QNAME = "0x1::aggregator_factory::AggregatorFactory";
3698
+ function type(): TypeDescriptor<AggregatorFactory>;
3699
+ }
3700
+ namespace entry { }
3701
+ namespace view { }
3702
+ }
3703
+ export declare namespace governance_proposal {
3704
+ interface GovernanceProposal {
3705
+ dummy_field: Boolean;
3706
+ }
3707
+ namespace GovernanceProposal {
3708
+ const TYPE_QNAME = "0x1::governance_proposal::GovernanceProposal";
3709
+ function type(): TypeDescriptor<GovernanceProposal>;
3710
+ }
3711
+ interface GovernanceProposalInstance extends TypedEventInstance<GovernanceProposal> {
3712
+ data_decoded: GovernanceProposal;
3713
+ type_arguments: [];
3714
+ }
3715
+ namespace entry { }
3716
+ namespace view { }
3717
+ }
3718
+ export declare namespace optional_aggregator {
3719
+ interface Integer {
3720
+ value: bigint;
3721
+ limit: bigint;
3722
+ }
3723
+ namespace Integer {
3724
+ const TYPE_QNAME = "0x1::optional_aggregator::Integer";
3725
+ function type(): TypeDescriptor<Integer>;
3726
+ }
3727
+ interface OptionalAggregator {
3728
+ aggregator: option.Option<aggregator.Aggregator>;
3729
+ integer: option.Option<optional_aggregator.Integer>;
3730
+ }
3731
+ namespace OptionalAggregator {
3732
+ const TYPE_QNAME = "0x1::optional_aggregator::OptionalAggregator";
3733
+ function type(): TypeDescriptor<OptionalAggregator>;
3734
+ }
3735
+ namespace entry { }
3736
+ namespace view { }
3737
+ }
3738
+ export declare namespace transaction_context {
3739
+ namespace entry { }
3740
+ namespace view { }
3741
+ }
3742
+ export declare namespace primary_fungible_store {
3743
+ interface DeriveRefPod {
3744
+ metadata_derive_ref: object_.DeriveRef;
3745
+ }
3746
+ namespace DeriveRefPod {
3747
+ const TYPE_QNAME = "0x1::primary_fungible_store::DeriveRefPod";
3748
+ function type(): TypeDescriptor<DeriveRefPod>;
3749
+ }
3750
+ namespace entry {
3751
+ function transfer<T0 = any>(client: AptosClient, account: AptosAccount, request: {
3752
+ type_arguments: [string];
3753
+ arguments: [object_.Object<T0>, Address, bigint];
3754
+ }, extraArgs?: OptionalTransactionArgs): Promise<Types.PendingTransaction>;
3755
+ }
3756
+ namespace view {
3757
+ function balance<T0 = any>(client: AptosClient, request: {
3758
+ type_arguments: [string];
3759
+ arguments: [Address, object_.Object<T0>];
3760
+ }, version?: bigint): Promise<[bigint]>;
3761
+ function isFrozen<T0 = any>(client: AptosClient, request: {
3762
+ type_arguments: [string];
3763
+ arguments: [Address, object_.Object<T0>];
3764
+ }, version?: bigint): Promise<[Boolean]>;
3765
+ function primaryStore<T0 = any>(client: AptosClient, request: {
3766
+ type_arguments: [string];
3767
+ arguments: [Address, object_.Object<T0>];
3768
+ }, version?: bigint): Promise<[object_.Object<fungible_asset.FungibleStore>]>;
3769
+ function primaryStoreAddress<T0 = any>(client: AptosClient, request: {
3770
+ type_arguments: [string];
3771
+ arguments: [Address, object_.Object<T0>];
3772
+ }, version?: bigint): Promise<[Address]>;
3773
+ function primaryStoreExists<T0 = any>(client: AptosClient, request: {
3774
+ type_arguments: [string];
3775
+ arguments: [Address, object_.Object<T0>];
3776
+ }, version?: bigint): Promise<[Boolean]>;
3777
+ }
3778
+ }
3779
+ export declare namespace transaction_validation {
3780
+ interface TransactionValidation {
3781
+ module_addr: Address;
3782
+ module_name: string;
3783
+ script_prologue_name: string;
3784
+ module_prologue_name: string;
3785
+ multi_agent_prologue_name: string;
3786
+ user_epilogue_name: string;
3787
+ }
3788
+ namespace TransactionValidation {
3789
+ const TYPE_QNAME = "0x1::transaction_validation::TransactionValidation";
3790
+ function type(): TypeDescriptor<TransactionValidation>;
3791
+ }
3792
+ namespace entry { }
3793
+ namespace view { }
3794
+ }
3795
+ export declare function loadAllTypes(coder: MoveCoder): void;
3796
+ //# sourceMappingURL=0x1.d.ts.map