@sentio/sdk 1.37.0-rc.1 → 1.37.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/lib/builtin/index.d.ts +0 -2
  2. package/lib/builtin/index.js +1 -3
  3. package/lib/builtin/index.js.map +1 -1
  4. package/lib/core/eth-plugin.js +12 -15
  5. package/lib/core/eth-plugin.js.map +1 -1
  6. package/lib/core/index.d.ts +0 -4
  7. package/lib/core/index.js +1 -9
  8. package/lib/core/index.js.map +1 -1
  9. package/lib/core/numberish.d.ts +1 -1
  10. package/lib/core/numberish.js +5 -13
  11. package/lib/core/numberish.js.map +1 -1
  12. package/lib/core/sui-plugin.js +1 -1
  13. package/lib/core/sui-plugin.js.map +1 -1
  14. package/lib/index.d.ts +1 -1
  15. package/lib/index.js +3 -14
  16. package/lib/index.js.map +1 -1
  17. package/lib/service.d.ts +0 -4
  18. package/lib/service.js +40 -71
  19. package/lib/service.js.map +1 -1
  20. package/package.json +5 -15
  21. package/src/builtin/index.ts +1 -4
  22. package/src/core/eth-plugin.ts +5 -8
  23. package/src/core/index.ts +0 -5
  24. package/src/core/numberish.ts +8 -15
  25. package/src/core/sui-plugin.ts +2 -2
  26. package/src/index.ts +3 -1
  27. package/src/service.ts +13 -71
  28. package/lib/aptos/api.d.ts +0 -2
  29. package/lib/aptos/api.js +0 -14
  30. package/lib/aptos/api.js.map +0 -1
  31. package/lib/aptos/aptos-plugin.d.ts +0 -14
  32. package/lib/aptos/aptos-plugin.js +0 -185
  33. package/lib/aptos/aptos-plugin.js.map +0 -1
  34. package/lib/aptos/aptos-processor.d.ts +0 -75
  35. package/lib/aptos/aptos-processor.js +0 -193
  36. package/lib/aptos/aptos-processor.js.map +0 -1
  37. package/lib/aptos/context.d.ts +0 -22
  38. package/lib/aptos/context.js +0 -65
  39. package/lib/aptos/context.js.map +0 -1
  40. package/lib/aptos/index.d.ts +0 -9
  41. package/lib/aptos/index.js +0 -34
  42. package/lib/aptos/index.js.map +0 -1
  43. package/lib/aptos/models.d.ts +0 -23
  44. package/lib/aptos/models.js +0 -3
  45. package/lib/aptos/models.js.map +0 -1
  46. package/lib/aptos/network.d.ts +0 -14
  47. package/lib/aptos/network.js +0 -46
  48. package/lib/aptos/network.js.map +0 -1
  49. package/lib/aptos/runtime.d.ts +0 -2
  50. package/lib/aptos/runtime.js +0 -16
  51. package/lib/aptos/runtime.js.map +0 -1
  52. package/lib/aptos/type-registry.d.ts +0 -21
  53. package/lib/aptos/type-registry.js +0 -156
  54. package/lib/aptos/type-registry.js.map +0 -1
  55. package/lib/aptos/types.d.ts +0 -9
  56. package/lib/aptos/types.js +0 -135
  57. package/lib/aptos/types.js.map +0 -1
  58. package/lib/aptos/types.test.d.ts +0 -1
  59. package/lib/aptos/types.test.js.map +0 -1
  60. package/lib/aptos/utils.d.ts +0 -7
  61. package/lib/aptos/utils.js +0 -27
  62. package/lib/aptos/utils.js.map +0 -1
  63. package/lib/aptos-codegen/codegen.d.ts +0 -23
  64. package/lib/aptos-codegen/codegen.js +0 -364
  65. package/lib/aptos-codegen/codegen.js.map +0 -1
  66. package/lib/aptos-codegen/typegen.d.ts +0 -17
  67. package/lib/aptos-codegen/typegen.js +0 -142
  68. package/lib/aptos-codegen/typegen.js.map +0 -1
  69. package/lib/builtin/aptos/0x1.d.ts +0 -1913
  70. package/lib/builtin/aptos/0x1.js +0 -2748
  71. package/lib/builtin/aptos/0x1.js.map +0 -1
  72. package/lib/builtin/aptos/0x3.d.ts +0 -482
  73. package/lib/builtin/aptos/0x3.js +0 -526
  74. package/lib/builtin/aptos/0x3.js.map +0 -1
  75. package/lib/builtin/aptos/index.d.ts +0 -2
  76. package/lib/builtin/aptos/index.js +0 -29
  77. package/lib/builtin/aptos/index.js.map +0 -1
  78. package/lib/builtin/solana/index.d.ts +0 -2
  79. package/lib/builtin/solana/index.js +0 -19
  80. package/lib/builtin/solana/index.js.map +0 -1
  81. package/lib/builtin/solana/spl-token-processor.d.ts +0 -39
  82. package/lib/builtin/solana/spl-token-processor.js +0 -258
  83. package/lib/builtin/solana/spl-token-processor.js.map +0 -1
  84. package/lib/builtin/solana/types.d.ts +0 -427
  85. package/lib/builtin/solana/types.js +0 -203
  86. package/lib/builtin/solana/types.js.map +0 -1
  87. package/lib/builtin/solana/wormhole-processor.d.ts +0 -16
  88. package/lib/builtin/solana/wormhole-processor.js +0 -195
  89. package/lib/builtin/solana/wormhole-processor.js.map +0 -1
  90. package/lib/core/solana-context.d.ts +0 -11
  91. package/lib/core/solana-context.js +0 -34
  92. package/lib/core/solana-context.js.map +0 -1
  93. package/lib/core/solana-options.d.ts +0 -8
  94. package/lib/core/solana-options.js +0 -13
  95. package/lib/core/solana-options.js.map +0 -1
  96. package/lib/core/solana-plugin.d.ts +0 -9
  97. package/lib/core/solana-plugin.js +0 -79
  98. package/lib/core/solana-plugin.js.map +0 -1
  99. package/lib/core/solana-processor.d.ts +0 -40
  100. package/lib/core/solana-processor.js +0 -80
  101. package/lib/core/solana-processor.js.map +0 -1
  102. package/lib/solana-codegen/codegen.d.ts +0 -1
  103. package/lib/solana-codegen/codegen.js +0 -113
  104. package/lib/solana-codegen/codegen.js.map +0 -1
  105. package/lib/test-abi-code-gen.d.ts +0 -2
  106. package/lib/test-abi-code-gen.js +0 -20
  107. package/lib/test-abi-code-gen.js.map +0 -1
  108. package/src/abis/aptos/0x1.json +0 -9205
  109. package/src/abis/aptos/0x3.json +0 -1515
  110. package/src/aptos/api.ts +0 -11
  111. package/src/aptos/aptos-plugin.ts +0 -216
  112. package/src/aptos/aptos-processor.ts +0 -305
  113. package/src/aptos/context.ts +0 -74
  114. package/src/aptos/index.ts +0 -10
  115. package/src/aptos/models.ts +0 -34
  116. package/src/aptos/network.ts +0 -42
  117. package/src/aptos/runtime.ts +0 -13
  118. package/src/aptos/type-registry.ts +0 -187
  119. package/src/aptos/types.ts +0 -149
  120. package/src/aptos/utils.ts +0 -26
  121. package/src/aptos-codegen/codegen.ts +0 -428
  122. package/src/aptos-codegen/tsconfig.json +0 -9
  123. package/src/aptos-codegen/typegen.ts +0 -153
  124. package/src/builtin/aptos/0x1.ts +0 -4210
  125. package/src/builtin/aptos/0x3.ts +0 -888
  126. package/src/builtin/aptos/index.ts +0 -2
  127. package/src/builtin/solana/index.ts +0 -2
  128. package/src/builtin/solana/spl-token-processor.ts +0 -298
  129. package/src/builtin/solana/types.ts +0 -279
  130. package/src/builtin/solana/wormhole-processor.ts +0 -178
  131. package/src/core/solana-context.ts +0 -34
  132. package/src/core/solana-options.ts +0 -8
  133. package/src/core/solana-plugin.ts +0 -97
  134. package/src/core/solana-processor.ts +0 -102
  135. package/src/solana-codegen/codegen.ts +0 -116
  136. package/src/test-abi-code-gen.ts +0 -16
@@ -1,4210 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- /* Generated modules for account 0x1 */
6
-
7
- import { aptos } from "@sentio/sdk";
8
- import { Address, MoveModule } from "aptos-sdk/src/generated";
9
-
10
- export namespace acl {
11
- export class ACL {
12
- static TYPE_QNAME = "0x1::acl::ACL";
13
- list: Address[];
14
- }
15
-
16
- export function loadTypes(_r: aptos.TypeRegistry) {
17
- loadAllTypes(_r);
18
- }
19
- export const ABI: MoveModule = JSON.parse(
20
- '{"address":"0x1","name":"acl","friends":[],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::acl::ACL","address"],"return":[]},{"name":"assert_contains","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::acl::ACL","address"],"return":[]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::acl::ACL","address"],"return":["bool"]},{"name":"empty","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::acl::ACL"]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::acl::ACL","address"],"return":[]}],"structs":[{"name":"ACL","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"list","type":"vector<address>"}]}]}'
21
- );
22
- }
23
-
24
- export namespace any {
25
- export class Any {
26
- static TYPE_QNAME = "0x1::any::Any";
27
- type_name: string;
28
- data: string;
29
- }
30
-
31
- export function loadTypes(_r: aptos.TypeRegistry) {
32
- loadAllTypes(_r);
33
- }
34
- export const ABI: MoveModule = JSON.parse(
35
- '{"address":"0x1","name":"any","friends":["0x1::copyable_any"],"exposed_functions":[{"name":"pack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["T0"],"return":["0x1::any::Any"]},{"name":"type_name","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::any::Any"],"return":["&0x1::string::String"]},{"name":"unpack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::any::Any"],"return":["T0"]}],"structs":[{"name":"Any","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"type_name","type":"0x1::string::String"},{"name":"data","type":"vector<u8>"}]}]}'
36
- );
37
- }
38
-
39
- export namespace bcs {
40
- export function loadTypes(_r: aptos.TypeRegistry) {
41
- loadAllTypes(_r);
42
- }
43
- export const ABI: MoveModule = JSON.parse(
44
- '{"address":"0x1","name":"bcs","friends":[],"exposed_functions":[{"name":"to_bytes","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&T0"],"return":["vector<u8>"]}],"structs":[]}'
45
- );
46
- }
47
-
48
- export class code extends aptos.AptosBaseProcessor {
49
- constructor(options: aptos.AptosBindOptions) {
50
- super("code", options);
51
- }
52
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
53
- address: "0x1",
54
- network: aptos.AptosNetwork.MAIN_NET,
55
- };
56
-
57
- static bind(options: Partial<aptos.AptosBindOptions> = {}): code {
58
- return new code({ ...code.DEFAULT_OPTIONS, ...options });
59
- }
60
-
61
- onEntryPublishPackageTxn(
62
- func: (
63
- call: code.PublishPackageTxnPayload,
64
- ctx: aptos.AptosContext
65
- ) => void,
66
- filter?: aptos.CallFilter
67
- ): code {
68
- this.onEntryFunctionCall(func, {
69
- ...filter,
70
- function: "code::publish_package_txn",
71
- });
72
- return this;
73
- }
74
-
75
- loadTypesInternal(registry: aptos.TypeRegistry) {
76
- loadAllTypes(registry);
77
- }
78
- }
79
-
80
- export namespace code {
81
- export class AllowedDep {
82
- static TYPE_QNAME = "0x1::code::AllowedDep";
83
- account: Address;
84
- module_name: string;
85
- }
86
-
87
- export class ModuleMetadata {
88
- static TYPE_QNAME = "0x1::code::ModuleMetadata";
89
- name: string;
90
- source: string;
91
- source_map: string;
92
- extension: option.Option<copyable_any.Any>;
93
- }
94
-
95
- export class PackageDep {
96
- static TYPE_QNAME = "0x1::code::PackageDep";
97
- account: Address;
98
- package_name: string;
99
- }
100
-
101
- export class PackageMetadata {
102
- static TYPE_QNAME = "0x1::code::PackageMetadata";
103
- name: string;
104
- upgrade_policy: code.UpgradePolicy;
105
- upgrade_number: bigint;
106
- source_digest: string;
107
- manifest: string;
108
- modules: code.ModuleMetadata[];
109
- deps: code.PackageDep[];
110
- extension: option.Option<copyable_any.Any>;
111
- }
112
-
113
- export class PackageRegistry {
114
- static TYPE_QNAME = "0x1::code::PackageRegistry";
115
- packages: code.PackageMetadata[];
116
- }
117
-
118
- export class UpgradePolicy {
119
- static TYPE_QNAME = "0x1::code::UpgradePolicy";
120
- policy: number;
121
- }
122
-
123
- export interface PublishPackageTxnPayload
124
- extends aptos.TypedEntryFunctionPayload<[string, string[]]> {
125
- arguments_typed: [string, string[]];
126
- type_arguments: [];
127
- }
128
-
129
- export function loadTypes(_r: aptos.TypeRegistry) {
130
- loadAllTypes(_r);
131
- }
132
- export const ABI: MoveModule = JSON.parse(
133
- '{"address":"0x1","name":"code","friends":[],"exposed_functions":[{"name":"can_change_upgrade_policy_to","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::code::UpgradePolicy","0x1::code::UpgradePolicy"],"return":["bool"]},{"name":"publish_package","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::code::PackageMetadata","vector<vector<u8>>"],"return":[]},{"name":"publish_package_txn","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<vector<u8>>"],"return":[]},{"name":"upgrade_policy_arbitrary","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::code::UpgradePolicy"]},{"name":"upgrade_policy_compat","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::code::UpgradePolicy"]},{"name":"upgrade_policy_immutable","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::code::UpgradePolicy"]}],"structs":[{"name":"AllowedDep","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"module_name","type":"0x1::string::String"}]},{"name":"ModuleMetadata","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"name","type":"0x1::string::String"},{"name":"source","type":"vector<u8>"},{"name":"source_map","type":"vector<u8>"},{"name":"extension","type":"0x1::option::Option<0x1::copyable_any::Any>"}]},{"name":"PackageDep","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"package_name","type":"0x1::string::String"}]},{"name":"PackageMetadata","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"name","type":"0x1::string::String"},{"name":"upgrade_policy","type":"0x1::code::UpgradePolicy"},{"name":"upgrade_number","type":"u64"},{"name":"source_digest","type":"0x1::string::String"},{"name":"manifest","type":"vector<u8>"},{"name":"modules","type":"vector<0x1::code::ModuleMetadata>"},{"name":"deps","type":"vector<0x1::code::PackageDep>"},{"name":"extension","type":"0x1::option::Option<0x1::copyable_any::Any>"}]},{"name":"PackageRegistry","is_native":false,"abilities":["drop","store","key"],"generic_type_params":[],"fields":[{"name":"packages","type":"vector<0x1::code::PackageMetadata>"}]},{"name":"UpgradePolicy","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"policy","type":"u8"}]}]}'
134
- );
135
- }
136
-
137
- export class coin extends aptos.AptosBaseProcessor {
138
- constructor(options: aptos.AptosBindOptions) {
139
- super("coin", options);
140
- }
141
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
142
- address: "0x1",
143
- network: aptos.AptosNetwork.MAIN_NET,
144
- };
145
-
146
- static bind(options: Partial<aptos.AptosBindOptions> = {}): coin {
147
- return new coin({ ...coin.DEFAULT_OPTIONS, ...options });
148
- }
149
-
150
- onEntryFreezeCoinStore(
151
- func: (call: coin.FreezeCoinStorePayload, ctx: aptos.AptosContext) => void,
152
- filter?: aptos.CallFilter
153
- ): coin {
154
- this.onEntryFunctionCall(func, {
155
- ...filter,
156
- function: "coin::freeze_coin_store",
157
- });
158
- return this;
159
- }
160
-
161
- onEntryTransfer(
162
- func: (call: coin.TransferPayload, ctx: aptos.AptosContext) => void,
163
- filter?: aptos.CallFilter
164
- ): coin {
165
- this.onEntryFunctionCall(func, {
166
- ...filter,
167
- function: "coin::transfer",
168
- });
169
- return this;
170
- }
171
-
172
- onEntryUnfreezeCoinStore(
173
- func: (
174
- call: coin.UnfreezeCoinStorePayload,
175
- ctx: aptos.AptosContext
176
- ) => void,
177
- filter?: aptos.CallFilter
178
- ): coin {
179
- this.onEntryFunctionCall(func, {
180
- ...filter,
181
- function: "coin::unfreeze_coin_store",
182
- });
183
- return this;
184
- }
185
-
186
- onEntryUpgradeSupply(
187
- func: (call: coin.UpgradeSupplyPayload, ctx: aptos.AptosContext) => void,
188
- filter?: aptos.CallFilter
189
- ): coin {
190
- this.onEntryFunctionCall(func, {
191
- ...filter,
192
- function: "coin::upgrade_supply",
193
- });
194
- return this;
195
- }
196
-
197
- onEventDepositEvent(
198
- func: (event: coin.DepositEventInstance, ctx: aptos.AptosContext) => void
199
- ): coin {
200
- this.onEvent(func, {
201
- type: "coin::DepositEvent",
202
- });
203
- return this;
204
- }
205
-
206
- onEventWithdrawEvent(
207
- func: (event: coin.WithdrawEventInstance, ctx: aptos.AptosContext) => void
208
- ): coin {
209
- this.onEvent(func, {
210
- type: "coin::WithdrawEvent",
211
- });
212
- return this;
213
- }
214
-
215
- loadTypesInternal(registry: aptos.TypeRegistry) {
216
- loadAllTypes(registry);
217
- }
218
- }
219
-
220
- export namespace coin {
221
- export class BurnCapability<T0> {
222
- static TYPE_QNAME = "0x1::coin::BurnCapability";
223
- dummy_field: Boolean;
224
- }
225
-
226
- export class Coin<T0> {
227
- static TYPE_QNAME = "0x1::coin::Coin";
228
- value: bigint;
229
- }
230
-
231
- export class CoinInfo<T0> {
232
- static TYPE_QNAME = "0x1::coin::CoinInfo";
233
- name: string;
234
- symbol: string;
235
- decimals: number;
236
- supply: option.Option<optional_aggregator.OptionalAggregator>;
237
- }
238
-
239
- export class CoinStore<T0> {
240
- static TYPE_QNAME = "0x1::coin::CoinStore";
241
- coin: coin.Coin<T0>;
242
- frozen: Boolean;
243
- deposit_events: event.EventHandle<coin.DepositEvent>;
244
- withdraw_events: event.EventHandle<coin.WithdrawEvent>;
245
- }
246
-
247
- export class DepositEvent {
248
- static TYPE_QNAME = "0x1::coin::DepositEvent";
249
- amount: bigint;
250
- }
251
-
252
- export interface DepositEventInstance
253
- extends aptos.TypedEventInstance<DepositEvent> {
254
- data_typed: DepositEvent;
255
- type_arguments: [];
256
- }
257
-
258
- export class FreezeCapability<T0> {
259
- static TYPE_QNAME = "0x1::coin::FreezeCapability";
260
- dummy_field: Boolean;
261
- }
262
-
263
- export class MintCapability<T0> {
264
- static TYPE_QNAME = "0x1::coin::MintCapability";
265
- dummy_field: Boolean;
266
- }
267
-
268
- export class SupplyConfig {
269
- static TYPE_QNAME = "0x1::coin::SupplyConfig";
270
- allow_upgrades: Boolean;
271
- }
272
-
273
- export class WithdrawEvent {
274
- static TYPE_QNAME = "0x1::coin::WithdrawEvent";
275
- amount: bigint;
276
- }
277
-
278
- export interface WithdrawEventInstance
279
- extends aptos.TypedEventInstance<WithdrawEvent> {
280
- data_typed: WithdrawEvent;
281
- type_arguments: [];
282
- }
283
-
284
- export interface FreezeCoinStorePayload<T0 = any>
285
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
286
- arguments_typed: [Address, Address];
287
- type_arguments: [string];
288
- }
289
-
290
- export interface TransferPayload<T0 = any>
291
- extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
292
- arguments_typed: [Address, bigint];
293
- type_arguments: [string];
294
- }
295
-
296
- export interface UnfreezeCoinStorePayload<T0 = any>
297
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
298
- arguments_typed: [Address, Address];
299
- type_arguments: [string];
300
- }
301
-
302
- export interface UpgradeSupplyPayload<T0 = any>
303
- extends aptos.TypedEntryFunctionPayload<[]> {
304
- arguments_typed: [];
305
- type_arguments: [string];
306
- }
307
-
308
- export function loadTypes(_r: aptos.TypeRegistry) {
309
- loadAllTypes(_r);
310
- }
311
- export const ABI: MoveModule = JSON.parse(
312
- '{"address":"0x1","name":"coin","friends":["0x1::aptos_coin","0x1::genesis"],"exposed_functions":[{"name":"allow_supply_upgrades","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","bool"],"return":[]},{"name":"balance","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address"],"return":["u64"]},{"name":"burn","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::Coin<T0>","&0x1::coin::BurnCapability<T0>"],"return":[]},{"name":"burn_from","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","u64","&0x1::coin::BurnCapability<T0>"],"return":[]},{"name":"decimals","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["u8"]},{"name":"deposit","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x1::coin::Coin<T0>"],"return":[]},{"name":"destroy_burn_cap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::BurnCapability<T0>"],"return":[]},{"name":"destroy_freeze_cap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::FreezeCapability<T0>"],"return":[]},{"name":"destroy_mint_cap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::MintCapability<T0>"],"return":[]},{"name":"destroy_zero","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::Coin<T0>"],"return":[]},{"name":"extract","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::coin::Coin<T0>","u64"],"return":["0x1::coin::Coin<T0>"]},{"name":"extract_all","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::coin::Coin<T0>"],"return":["0x1::coin::Coin<T0>"]},{"name":"freeze_coin_store","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["address","&0x1::coin::FreezeCapability<T0>"],"return":[]},{"name":"initialize","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String","0x1::string::String","u8","bool"],"return":["0x1::coin::BurnCapability<T0>","0x1::coin::FreezeCapability<T0>","0x1::coin::MintCapability<T0>"]},{"name":"initialize_supply_config","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"initialize_with_parallelizable_supply","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String","0x1::string::String","u8","bool"],"return":["0x1::coin::BurnCapability<T0>","0x1::coin::FreezeCapability<T0>","0x1::coin::MintCapability<T0>"]},{"name":"is_account_registered","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address"],"return":["bool"]},{"name":"is_coin_initialized","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["bool"]},{"name":"merge","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::coin::Coin<T0>","0x1::coin::Coin<T0>"],"return":[]},{"name":"mint","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["u64","&0x1::coin::MintCapability<T0>"],"return":["0x1::coin::Coin<T0>"]},{"name":"name","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::string::String"]},{"name":"register","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer"],"return":[]},{"name":"supply","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::option::Option<u128>"]},{"name":"symbol","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::string::String"]},{"name":"transfer","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","u64"],"return":[]},{"name":"unfreeze_coin_store","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["address","&0x1::coin::FreezeCapability<T0>"],"return":[]},{"name":"upgrade_supply","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer"],"return":[]},{"name":"value","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::coin::Coin<T0>"],"return":["u64"]},{"name":"withdraw","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64"],"return":["0x1::coin::Coin<T0>"]},{"name":"zero","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::coin::Coin<T0>"]}],"structs":[{"name":"BurnCapability","is_native":false,"abilities":["copy","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"Coin","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"value","type":"u64"}]},{"name":"CoinInfo","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"name","type":"0x1::string::String"},{"name":"symbol","type":"0x1::string::String"},{"name":"decimals","type":"u8"},{"name":"supply","type":"0x1::option::Option<0x1::optional_aggregator::OptionalAggregator>"}]},{"name":"CoinStore","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"coin","type":"0x1::coin::Coin<T0>"},{"name":"frozen","type":"bool"},{"name":"deposit_events","type":"0x1::event::EventHandle<0x1::coin::DepositEvent>"},{"name":"withdraw_events","type":"0x1::event::EventHandle<0x1::coin::WithdrawEvent>"}]},{"name":"DepositEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"amount","type":"u64"}]},{"name":"FreezeCapability","is_native":false,"abilities":["copy","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"MintCapability","is_native":false,"abilities":["copy","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"SupplyConfig","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"allow_upgrades","type":"bool"}]},{"name":"WithdrawEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"amount","type":"u64"}]}]}'
313
- );
314
- }
315
-
316
- export namespace guid {
317
- export class GUID {
318
- static TYPE_QNAME = "0x1::guid::GUID";
319
- id: guid.ID;
320
- }
321
-
322
- export class ID {
323
- static TYPE_QNAME = "0x1::guid::ID";
324
- creation_num: bigint;
325
- addr: Address;
326
- }
327
-
328
- export function loadTypes(_r: aptos.TypeRegistry) {
329
- loadAllTypes(_r);
330
- }
331
- export const ABI: MoveModule = JSON.parse(
332
- '{"address":"0x1","name":"guid","friends":["0x1::account"],"exposed_functions":[{"name":"create","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address","&mut u64"],"return":["0x1::guid::GUID"]},{"name":"create_id","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","u64"],"return":["0x1::guid::ID"]},{"name":"creation_num","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID"],"return":["u64"]},{"name":"creator_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID"],"return":["address"]},{"name":"eq_id","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID","&0x1::guid::ID"],"return":["bool"]},{"name":"id","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID"],"return":["0x1::guid::ID"]},{"name":"id_creation_num","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::ID"],"return":["u64"]},{"name":"id_creator_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::ID"],"return":["address"]}],"structs":[{"name":"GUID","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x1::guid::ID"}]},{"name":"ID","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"creation_num","type":"u64"},{"name":"addr","type":"address"}]}]}'
333
- );
334
- }
335
-
336
- export namespace hash {
337
- export function loadTypes(_r: aptos.TypeRegistry) {
338
- loadAllTypes(_r);
339
- }
340
- export const ABI: MoveModule = JSON.parse(
341
- '{"address":"0x1","name":"hash","friends":[],"exposed_functions":[{"name":"sha2_256","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["vector<u8>"]},{"name":"sha3_256","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["vector<u8>"]}],"structs":[]}'
342
- );
343
- }
344
-
345
- export namespace util {
346
- export function loadTypes(_r: aptos.TypeRegistry) {
347
- loadAllTypes(_r);
348
- }
349
- export const ABI: MoveModule = JSON.parse(
350
- '{"address":"0x1","name":"util","friends":["0x1::code","0x1::gas_schedule"],"exposed_functions":[{"name":"address_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["address"]},{"name":"from_bytes","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["vector<u8>"],"return":["T0"]}],"structs":[]}'
351
- );
352
- }
353
-
354
- export class block extends aptos.AptosBaseProcessor {
355
- constructor(options: aptos.AptosBindOptions) {
356
- super("block", options);
357
- }
358
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
359
- address: "0x1",
360
- network: aptos.AptosNetwork.MAIN_NET,
361
- };
362
-
363
- static bind(options: Partial<aptos.AptosBindOptions> = {}): block {
364
- return new block({ ...block.DEFAULT_OPTIONS, ...options });
365
- }
366
-
367
- onEventNewBlockEvent(
368
- func: (event: block.NewBlockEventInstance, ctx: aptos.AptosContext) => void
369
- ): block {
370
- this.onEvent(func, {
371
- type: "block::NewBlockEvent",
372
- });
373
- return this;
374
- }
375
-
376
- onEventUpdateEpochIntervalEvent(
377
- func: (
378
- event: block.UpdateEpochIntervalEventInstance,
379
- ctx: aptos.AptosContext
380
- ) => void
381
- ): block {
382
- this.onEvent(func, {
383
- type: "block::UpdateEpochIntervalEvent",
384
- });
385
- return this;
386
- }
387
-
388
- loadTypesInternal(registry: aptos.TypeRegistry) {
389
- loadAllTypes(registry);
390
- }
391
- }
392
-
393
- export namespace block {
394
- export class BlockResource {
395
- static TYPE_QNAME = "0x1::block::BlockResource";
396
- height: bigint;
397
- epoch_interval: bigint;
398
- new_block_events: event.EventHandle<block.NewBlockEvent>;
399
- update_epoch_interval_events: event.EventHandle<block.UpdateEpochIntervalEvent>;
400
- }
401
-
402
- export class NewBlockEvent {
403
- static TYPE_QNAME = "0x1::block::NewBlockEvent";
404
- hash: Address;
405
- epoch: bigint;
406
- round: bigint;
407
- height: bigint;
408
- previous_block_votes_bitvec: string;
409
- proposer: Address;
410
- failed_proposer_indices: bigint[];
411
- time_microseconds: bigint;
412
- }
413
-
414
- export interface NewBlockEventInstance
415
- extends aptos.TypedEventInstance<NewBlockEvent> {
416
- data_typed: NewBlockEvent;
417
- type_arguments: [];
418
- }
419
-
420
- export class UpdateEpochIntervalEvent {
421
- static TYPE_QNAME = "0x1::block::UpdateEpochIntervalEvent";
422
- old_epoch_interval: bigint;
423
- new_epoch_interval: bigint;
424
- }
425
-
426
- export interface UpdateEpochIntervalEventInstance
427
- extends aptos.TypedEventInstance<UpdateEpochIntervalEvent> {
428
- data_typed: UpdateEpochIntervalEvent;
429
- type_arguments: [];
430
- }
431
-
432
- export function loadTypes(_r: aptos.TypeRegistry) {
433
- loadAllTypes(_r);
434
- }
435
- export const ABI: MoveModule = JSON.parse(
436
- '{"address":"0x1","name":"block","friends":["0x1::genesis"],"exposed_functions":[{"name":"emit_writeset_block_event","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"get_current_block_height","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"get_epoch_interval_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"update_epoch_interval_microsecs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]}],"structs":[{"name":"BlockResource","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"height","type":"u64"},{"name":"epoch_interval","type":"u64"},{"name":"new_block_events","type":"0x1::event::EventHandle<0x1::block::NewBlockEvent>"},{"name":"update_epoch_interval_events","type":"0x1::event::EventHandle<0x1::block::UpdateEpochIntervalEvent>"}]},{"name":"NewBlockEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"hash","type":"address"},{"name":"epoch","type":"u64"},{"name":"round","type":"u64"},{"name":"height","type":"u64"},{"name":"previous_block_votes_bitvec","type":"vector<u8>"},{"name":"proposer","type":"address"},{"name":"failed_proposer_indices","type":"vector<u64>"},{"name":"time_microseconds","type":"u64"}]},{"name":"UpdateEpochIntervalEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_epoch_interval","type":"u64"},{"name":"new_epoch_interval","type":"u64"}]}]}'
437
- );
438
- }
439
-
440
- export namespace debug {
441
- export function loadTypes(_r: aptos.TypeRegistry) {
442
- loadAllTypes(_r);
443
- }
444
- export const ABI: MoveModule = JSON.parse(
445
- '{"address":"0x1","name":"debug","friends":[],"exposed_functions":[{"name":"print","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&T0"],"return":[]},{"name":"print_stack_trace","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":[]}],"structs":[]}'
446
- );
447
- }
448
-
449
- export namespace error {
450
- export function loadTypes(_r: aptos.TypeRegistry) {
451
- loadAllTypes(_r);
452
- }
453
- export const ABI: MoveModule = JSON.parse(
454
- '{"address":"0x1","name":"error","friends":[],"exposed_functions":[{"name":"aborted","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"already_exists","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"canonical","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"internal","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"invalid_argument","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"invalid_state","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"not_found","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"not_implemented","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"out_of_range","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"permission_denied","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"resource_exhausted","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"unauthenticated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"unavailable","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]}],"structs":[]}'
455
- );
456
- }
457
-
458
- export namespace event {
459
- export class EventHandle<T0> {
460
- static TYPE_QNAME = "0x1::event::EventHandle";
461
- counter: bigint;
462
- guid: guid.GUID;
463
- }
464
-
465
- export function loadTypes(_r: aptos.TypeRegistry) {
466
- loadAllTypes(_r);
467
- }
468
- export const ABI: MoveModule = JSON.parse(
469
- '{"address":"0x1","name":"event","friends":["0x1::account"],"exposed_functions":[{"name":"counter","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&0x1::event::EventHandle<T0>"],"return":["u64"]},{"name":"destroy_handle","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["0x1::event::EventHandle<T0>"],"return":[]},{"name":"emit_event","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&mut 0x1::event::EventHandle<T0>","T0"],"return":[]},{"name":"guid","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&0x1::event::EventHandle<T0>"],"return":["&0x1::guid::GUID"]},{"name":"new_event_handle","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["0x1::guid::GUID"],"return":["0x1::event::EventHandle<T0>"]}],"structs":[{"name":"EventHandle","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["drop","store"]}],"fields":[{"name":"counter","type":"u64"},{"name":"guid","type":"0x1::guid::GUID"}]}]}'
470
- );
471
- }
472
-
473
- export class stake extends aptos.AptosBaseProcessor {
474
- constructor(options: aptos.AptosBindOptions) {
475
- super("stake", options);
476
- }
477
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
478
- address: "0x1",
479
- network: aptos.AptosNetwork.MAIN_NET,
480
- };
481
-
482
- static bind(options: Partial<aptos.AptosBindOptions> = {}): stake {
483
- return new stake({ ...stake.DEFAULT_OPTIONS, ...options });
484
- }
485
-
486
- onEntryAddStake(
487
- func: (call: stake.AddStakePayload, ctx: aptos.AptosContext) => void,
488
- filter?: aptos.CallFilter
489
- ): stake {
490
- this.onEntryFunctionCall(func, {
491
- ...filter,
492
- function: "stake::add_stake",
493
- });
494
- return this;
495
- }
496
-
497
- onEntryIncreaseLockup(
498
- func: (call: stake.IncreaseLockupPayload, ctx: aptos.AptosContext) => void,
499
- filter?: aptos.CallFilter
500
- ): stake {
501
- this.onEntryFunctionCall(func, {
502
- ...filter,
503
- function: "stake::increase_lockup",
504
- });
505
- return this;
506
- }
507
-
508
- onEntryInitializeStakeOwner(
509
- func: (
510
- call: stake.InitializeStakeOwnerPayload,
511
- ctx: aptos.AptosContext
512
- ) => void,
513
- filter?: aptos.CallFilter
514
- ): stake {
515
- this.onEntryFunctionCall(func, {
516
- ...filter,
517
- function: "stake::initialize_stake_owner",
518
- });
519
- return this;
520
- }
521
-
522
- onEntryInitializeValidator(
523
- func: (
524
- call: stake.InitializeValidatorPayload,
525
- ctx: aptos.AptosContext
526
- ) => void,
527
- filter?: aptos.CallFilter
528
- ): stake {
529
- this.onEntryFunctionCall(func, {
530
- ...filter,
531
- function: "stake::initialize_validator",
532
- });
533
- return this;
534
- }
535
-
536
- onEntryJoinValidatorSet(
537
- func: (
538
- call: stake.JoinValidatorSetPayload,
539
- ctx: aptos.AptosContext
540
- ) => void,
541
- filter?: aptos.CallFilter
542
- ): stake {
543
- this.onEntryFunctionCall(func, {
544
- ...filter,
545
- function: "stake::join_validator_set",
546
- });
547
- return this;
548
- }
549
-
550
- onEntryLeaveValidatorSet(
551
- func: (
552
- call: stake.LeaveValidatorSetPayload,
553
- ctx: aptos.AptosContext
554
- ) => void,
555
- filter?: aptos.CallFilter
556
- ): stake {
557
- this.onEntryFunctionCall(func, {
558
- ...filter,
559
- function: "stake::leave_validator_set",
560
- });
561
- return this;
562
- }
563
-
564
- onEntryReactivateStake(
565
- func: (call: stake.ReactivateStakePayload, ctx: aptos.AptosContext) => void,
566
- filter?: aptos.CallFilter
567
- ): stake {
568
- this.onEntryFunctionCall(func, {
569
- ...filter,
570
- function: "stake::reactivate_stake",
571
- });
572
- return this;
573
- }
574
-
575
- onEntryRotateConsensusKey(
576
- func: (
577
- call: stake.RotateConsensusKeyPayload,
578
- ctx: aptos.AptosContext
579
- ) => void,
580
- filter?: aptos.CallFilter
581
- ): stake {
582
- this.onEntryFunctionCall(func, {
583
- ...filter,
584
- function: "stake::rotate_consensus_key",
585
- });
586
- return this;
587
- }
588
-
589
- onEntrySetDelegatedVoter(
590
- func: (
591
- call: stake.SetDelegatedVoterPayload,
592
- ctx: aptos.AptosContext
593
- ) => void,
594
- filter?: aptos.CallFilter
595
- ): stake {
596
- this.onEntryFunctionCall(func, {
597
- ...filter,
598
- function: "stake::set_delegated_voter",
599
- });
600
- return this;
601
- }
602
-
603
- onEntrySetOperator(
604
- func: (call: stake.SetOperatorPayload, ctx: aptos.AptosContext) => void,
605
- filter?: aptos.CallFilter
606
- ): stake {
607
- this.onEntryFunctionCall(func, {
608
- ...filter,
609
- function: "stake::set_operator",
610
- });
611
- return this;
612
- }
613
-
614
- onEntryUnlock(
615
- func: (call: stake.UnlockPayload, ctx: aptos.AptosContext) => void,
616
- filter?: aptos.CallFilter
617
- ): stake {
618
- this.onEntryFunctionCall(func, {
619
- ...filter,
620
- function: "stake::unlock",
621
- });
622
- return this;
623
- }
624
-
625
- onEntryUpdateNetworkAndFullnodeAddresses(
626
- func: (
627
- call: stake.UpdateNetworkAndFullnodeAddressesPayload,
628
- ctx: aptos.AptosContext
629
- ) => void,
630
- filter?: aptos.CallFilter
631
- ): stake {
632
- this.onEntryFunctionCall(func, {
633
- ...filter,
634
- function: "stake::update_network_and_fullnode_addresses",
635
- });
636
- return this;
637
- }
638
-
639
- onEntryWithdraw(
640
- func: (call: stake.WithdrawPayload, ctx: aptos.AptosContext) => void,
641
- filter?: aptos.CallFilter
642
- ): stake {
643
- this.onEntryFunctionCall(func, {
644
- ...filter,
645
- function: "stake::withdraw",
646
- });
647
- return this;
648
- }
649
-
650
- onEventRegisterValidatorCandidateEvent(
651
- func: (
652
- event: stake.RegisterValidatorCandidateEventInstance,
653
- ctx: aptos.AptosContext
654
- ) => void
655
- ): stake {
656
- this.onEvent(func, {
657
- type: "stake::RegisterValidatorCandidateEvent",
658
- });
659
- return this;
660
- }
661
-
662
- onEventSetOperatorEvent(
663
- func: (
664
- event: stake.SetOperatorEventInstance,
665
- ctx: aptos.AptosContext
666
- ) => void
667
- ): stake {
668
- this.onEvent(func, {
669
- type: "stake::SetOperatorEvent",
670
- });
671
- return this;
672
- }
673
-
674
- onEventAddStakeEvent(
675
- func: (event: stake.AddStakeEventInstance, ctx: aptos.AptosContext) => void
676
- ): stake {
677
- this.onEvent(func, {
678
- type: "stake::AddStakeEvent",
679
- });
680
- return this;
681
- }
682
-
683
- onEventReactivateStakeEvent(
684
- func: (
685
- event: stake.ReactivateStakeEventInstance,
686
- ctx: aptos.AptosContext
687
- ) => void
688
- ): stake {
689
- this.onEvent(func, {
690
- type: "stake::ReactivateStakeEvent",
691
- });
692
- return this;
693
- }
694
-
695
- onEventRotateConsensusKeyEvent(
696
- func: (
697
- event: stake.RotateConsensusKeyEventInstance,
698
- ctx: aptos.AptosContext
699
- ) => void
700
- ): stake {
701
- this.onEvent(func, {
702
- type: "stake::RotateConsensusKeyEvent",
703
- });
704
- return this;
705
- }
706
-
707
- onEventUpdateNetworkAndFullnodeAddressesEvent(
708
- func: (
709
- event: stake.UpdateNetworkAndFullnodeAddressesEventInstance,
710
- ctx: aptos.AptosContext
711
- ) => void
712
- ): stake {
713
- this.onEvent(func, {
714
- type: "stake::UpdateNetworkAndFullnodeAddressesEvent",
715
- });
716
- return this;
717
- }
718
-
719
- onEventIncreaseLockupEvent(
720
- func: (
721
- event: stake.IncreaseLockupEventInstance,
722
- ctx: aptos.AptosContext
723
- ) => void
724
- ): stake {
725
- this.onEvent(func, {
726
- type: "stake::IncreaseLockupEvent",
727
- });
728
- return this;
729
- }
730
-
731
- onEventJoinValidatorSetEvent(
732
- func: (
733
- event: stake.JoinValidatorSetEventInstance,
734
- ctx: aptos.AptosContext
735
- ) => void
736
- ): stake {
737
- this.onEvent(func, {
738
- type: "stake::JoinValidatorSetEvent",
739
- });
740
- return this;
741
- }
742
-
743
- onEventDistributeRewardsEvent(
744
- func: (
745
- event: stake.DistributeRewardsEventInstance,
746
- ctx: aptos.AptosContext
747
- ) => void
748
- ): stake {
749
- this.onEvent(func, {
750
- type: "stake::DistributeRewardsEvent",
751
- });
752
- return this;
753
- }
754
-
755
- onEventUnlockStakeEvent(
756
- func: (
757
- event: stake.UnlockStakeEventInstance,
758
- ctx: aptos.AptosContext
759
- ) => void
760
- ): stake {
761
- this.onEvent(func, {
762
- type: "stake::UnlockStakeEvent",
763
- });
764
- return this;
765
- }
766
-
767
- onEventWithdrawStakeEvent(
768
- func: (
769
- event: stake.WithdrawStakeEventInstance,
770
- ctx: aptos.AptosContext
771
- ) => void
772
- ): stake {
773
- this.onEvent(func, {
774
- type: "stake::WithdrawStakeEvent",
775
- });
776
- return this;
777
- }
778
-
779
- onEventLeaveValidatorSetEvent(
780
- func: (
781
- event: stake.LeaveValidatorSetEventInstance,
782
- ctx: aptos.AptosContext
783
- ) => void
784
- ): stake {
785
- this.onEvent(func, {
786
- type: "stake::LeaveValidatorSetEvent",
787
- });
788
- return this;
789
- }
790
-
791
- loadTypesInternal(registry: aptos.TypeRegistry) {
792
- loadAllTypes(registry);
793
- }
794
- }
795
-
796
- export namespace stake {
797
- export class AddStakeEvent {
798
- static TYPE_QNAME = "0x1::stake::AddStakeEvent";
799
- pool_address: Address;
800
- amount_added: bigint;
801
- }
802
-
803
- export interface AddStakeEventInstance
804
- extends aptos.TypedEventInstance<AddStakeEvent> {
805
- data_typed: AddStakeEvent;
806
- type_arguments: [];
807
- }
808
-
809
- export class AllowedValidators {
810
- static TYPE_QNAME = "0x1::stake::AllowedValidators";
811
- accounts: Address[];
812
- }
813
-
814
- export class AptosCoinCapabilities {
815
- static TYPE_QNAME = "0x1::stake::AptosCoinCapabilities";
816
- mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
817
- }
818
-
819
- export class DistributeRewardsEvent {
820
- static TYPE_QNAME = "0x1::stake::DistributeRewardsEvent";
821
- pool_address: Address;
822
- rewards_amount: bigint;
823
- }
824
-
825
- export interface DistributeRewardsEventInstance
826
- extends aptos.TypedEventInstance<DistributeRewardsEvent> {
827
- data_typed: DistributeRewardsEvent;
828
- type_arguments: [];
829
- }
830
-
831
- export class IncreaseLockupEvent {
832
- static TYPE_QNAME = "0x1::stake::IncreaseLockupEvent";
833
- pool_address: Address;
834
- old_locked_until_secs: bigint;
835
- new_locked_until_secs: bigint;
836
- }
837
-
838
- export interface IncreaseLockupEventInstance
839
- extends aptos.TypedEventInstance<IncreaseLockupEvent> {
840
- data_typed: IncreaseLockupEvent;
841
- type_arguments: [];
842
- }
843
-
844
- export class IndividualValidatorPerformance {
845
- static TYPE_QNAME = "0x1::stake::IndividualValidatorPerformance";
846
- successful_proposals: bigint;
847
- failed_proposals: bigint;
848
- }
849
-
850
- export class JoinValidatorSetEvent {
851
- static TYPE_QNAME = "0x1::stake::JoinValidatorSetEvent";
852
- pool_address: Address;
853
- }
854
-
855
- export interface JoinValidatorSetEventInstance
856
- extends aptos.TypedEventInstance<JoinValidatorSetEvent> {
857
- data_typed: JoinValidatorSetEvent;
858
- type_arguments: [];
859
- }
860
-
861
- export class LeaveValidatorSetEvent {
862
- static TYPE_QNAME = "0x1::stake::LeaveValidatorSetEvent";
863
- pool_address: Address;
864
- }
865
-
866
- export interface LeaveValidatorSetEventInstance
867
- extends aptos.TypedEventInstance<LeaveValidatorSetEvent> {
868
- data_typed: LeaveValidatorSetEvent;
869
- type_arguments: [];
870
- }
871
-
872
- export class OwnerCapability {
873
- static TYPE_QNAME = "0x1::stake::OwnerCapability";
874
- pool_address: Address;
875
- }
876
-
877
- export class ReactivateStakeEvent {
878
- static TYPE_QNAME = "0x1::stake::ReactivateStakeEvent";
879
- pool_address: Address;
880
- amount: bigint;
881
- }
882
-
883
- export interface ReactivateStakeEventInstance
884
- extends aptos.TypedEventInstance<ReactivateStakeEvent> {
885
- data_typed: ReactivateStakeEvent;
886
- type_arguments: [];
887
- }
888
-
889
- export class RegisterValidatorCandidateEvent {
890
- static TYPE_QNAME = "0x1::stake::RegisterValidatorCandidateEvent";
891
- pool_address: Address;
892
- }
893
-
894
- export interface RegisterValidatorCandidateEventInstance
895
- extends aptos.TypedEventInstance<RegisterValidatorCandidateEvent> {
896
- data_typed: RegisterValidatorCandidateEvent;
897
- type_arguments: [];
898
- }
899
-
900
- export class RotateConsensusKeyEvent {
901
- static TYPE_QNAME = "0x1::stake::RotateConsensusKeyEvent";
902
- pool_address: Address;
903
- old_consensus_pubkey: string;
904
- new_consensus_pubkey: string;
905
- }
906
-
907
- export interface RotateConsensusKeyEventInstance
908
- extends aptos.TypedEventInstance<RotateConsensusKeyEvent> {
909
- data_typed: RotateConsensusKeyEvent;
910
- type_arguments: [];
911
- }
912
-
913
- export class SetOperatorEvent {
914
- static TYPE_QNAME = "0x1::stake::SetOperatorEvent";
915
- pool_address: Address;
916
- old_operator: Address;
917
- new_operator: Address;
918
- }
919
-
920
- export interface SetOperatorEventInstance
921
- extends aptos.TypedEventInstance<SetOperatorEvent> {
922
- data_typed: SetOperatorEvent;
923
- type_arguments: [];
924
- }
925
-
926
- export class StakePool {
927
- static TYPE_QNAME = "0x1::stake::StakePool";
928
- active: coin.Coin<aptos_coin.AptosCoin>;
929
- inactive: coin.Coin<aptos_coin.AptosCoin>;
930
- pending_active: coin.Coin<aptos_coin.AptosCoin>;
931
- pending_inactive: coin.Coin<aptos_coin.AptosCoin>;
932
- locked_until_secs: bigint;
933
- operator_address: Address;
934
- delegated_voter: Address;
935
- initialize_validator_events: event.EventHandle<stake.RegisterValidatorCandidateEvent>;
936
- set_operator_events: event.EventHandle<stake.SetOperatorEvent>;
937
- add_stake_events: event.EventHandle<stake.AddStakeEvent>;
938
- reactivate_stake_events: event.EventHandle<stake.ReactivateStakeEvent>;
939
- rotate_consensus_key_events: event.EventHandle<stake.RotateConsensusKeyEvent>;
940
- update_network_and_fullnode_addresses_events: event.EventHandle<stake.UpdateNetworkAndFullnodeAddressesEvent>;
941
- increase_lockup_events: event.EventHandle<stake.IncreaseLockupEvent>;
942
- join_validator_set_events: event.EventHandle<stake.JoinValidatorSetEvent>;
943
- distribute_rewards_events: event.EventHandle<stake.DistributeRewardsEvent>;
944
- unlock_stake_events: event.EventHandle<stake.UnlockStakeEvent>;
945
- withdraw_stake_events: event.EventHandle<stake.WithdrawStakeEvent>;
946
- leave_validator_set_events: event.EventHandle<stake.LeaveValidatorSetEvent>;
947
- }
948
-
949
- export class UnlockStakeEvent {
950
- static TYPE_QNAME = "0x1::stake::UnlockStakeEvent";
951
- pool_address: Address;
952
- amount_unlocked: bigint;
953
- }
954
-
955
- export interface UnlockStakeEventInstance
956
- extends aptos.TypedEventInstance<UnlockStakeEvent> {
957
- data_typed: UnlockStakeEvent;
958
- type_arguments: [];
959
- }
960
-
961
- export class UpdateNetworkAndFullnodeAddressesEvent {
962
- static TYPE_QNAME = "0x1::stake::UpdateNetworkAndFullnodeAddressesEvent";
963
- pool_address: Address;
964
- old_network_addresses: string;
965
- new_network_addresses: string;
966
- old_fullnode_addresses: string;
967
- new_fullnode_addresses: string;
968
- }
969
-
970
- export interface UpdateNetworkAndFullnodeAddressesEventInstance
971
- extends aptos.TypedEventInstance<UpdateNetworkAndFullnodeAddressesEvent> {
972
- data_typed: UpdateNetworkAndFullnodeAddressesEvent;
973
- type_arguments: [];
974
- }
975
-
976
- export class ValidatorConfig {
977
- static TYPE_QNAME = "0x1::stake::ValidatorConfig";
978
- consensus_pubkey: string;
979
- network_addresses: string;
980
- fullnode_addresses: string;
981
- validator_index: bigint;
982
- }
983
-
984
- export class ValidatorInfo {
985
- static TYPE_QNAME = "0x1::stake::ValidatorInfo";
986
- addr: Address;
987
- voting_power: bigint;
988
- config: stake.ValidatorConfig;
989
- }
990
-
991
- export class ValidatorPerformance {
992
- static TYPE_QNAME = "0x1::stake::ValidatorPerformance";
993
- validators: stake.IndividualValidatorPerformance[];
994
- }
995
-
996
- export class ValidatorSet {
997
- static TYPE_QNAME = "0x1::stake::ValidatorSet";
998
- consensus_scheme: number;
999
- active_validators: stake.ValidatorInfo[];
1000
- pending_inactive: stake.ValidatorInfo[];
1001
- pending_active: stake.ValidatorInfo[];
1002
- total_voting_power: bigint;
1003
- total_joining_power: bigint;
1004
- }
1005
-
1006
- export class WithdrawStakeEvent {
1007
- static TYPE_QNAME = "0x1::stake::WithdrawStakeEvent";
1008
- pool_address: Address;
1009
- amount_withdrawn: bigint;
1010
- }
1011
-
1012
- export interface WithdrawStakeEventInstance
1013
- extends aptos.TypedEventInstance<WithdrawStakeEvent> {
1014
- data_typed: WithdrawStakeEvent;
1015
- type_arguments: [];
1016
- }
1017
-
1018
- export interface AddStakePayload
1019
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
1020
- arguments_typed: [bigint];
1021
- type_arguments: [];
1022
- }
1023
-
1024
- export interface IncreaseLockupPayload
1025
- extends aptos.TypedEntryFunctionPayload<[]> {
1026
- arguments_typed: [];
1027
- type_arguments: [];
1028
- }
1029
-
1030
- export interface InitializeStakeOwnerPayload
1031
- extends aptos.TypedEntryFunctionPayload<[bigint, Address, Address]> {
1032
- arguments_typed: [bigint, Address, Address];
1033
- type_arguments: [];
1034
- }
1035
-
1036
- export interface InitializeValidatorPayload
1037
- extends aptos.TypedEntryFunctionPayload<[string, string, string, string]> {
1038
- arguments_typed: [string, string, string, string];
1039
- type_arguments: [];
1040
- }
1041
-
1042
- export interface JoinValidatorSetPayload
1043
- extends aptos.TypedEntryFunctionPayload<[Address]> {
1044
- arguments_typed: [Address];
1045
- type_arguments: [];
1046
- }
1047
-
1048
- export interface LeaveValidatorSetPayload
1049
- extends aptos.TypedEntryFunctionPayload<[Address]> {
1050
- arguments_typed: [Address];
1051
- type_arguments: [];
1052
- }
1053
-
1054
- export interface ReactivateStakePayload
1055
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
1056
- arguments_typed: [bigint];
1057
- type_arguments: [];
1058
- }
1059
-
1060
- export interface RotateConsensusKeyPayload
1061
- extends aptos.TypedEntryFunctionPayload<[Address, string, string]> {
1062
- arguments_typed: [Address, string, string];
1063
- type_arguments: [];
1064
- }
1065
-
1066
- export interface SetDelegatedVoterPayload
1067
- extends aptos.TypedEntryFunctionPayload<[Address]> {
1068
- arguments_typed: [Address];
1069
- type_arguments: [];
1070
- }
1071
-
1072
- export interface SetOperatorPayload
1073
- extends aptos.TypedEntryFunctionPayload<[Address]> {
1074
- arguments_typed: [Address];
1075
- type_arguments: [];
1076
- }
1077
-
1078
- export interface UnlockPayload
1079
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
1080
- arguments_typed: [bigint];
1081
- type_arguments: [];
1082
- }
1083
-
1084
- export interface UpdateNetworkAndFullnodeAddressesPayload
1085
- extends aptos.TypedEntryFunctionPayload<[Address, string, string]> {
1086
- arguments_typed: [Address, string, string];
1087
- type_arguments: [];
1088
- }
1089
-
1090
- export interface WithdrawPayload
1091
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
1092
- arguments_typed: [bigint];
1093
- type_arguments: [];
1094
- }
1095
-
1096
- export function loadTypes(_r: aptos.TypeRegistry) {
1097
- loadAllTypes(_r);
1098
- }
1099
- export const ABI: MoveModule = JSON.parse(
1100
- '{"address":"0x1","name":"stake","friends":["0x1::block","0x1::genesis","0x1::reconfiguration"],"exposed_functions":[{"name":"add_stake","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"add_stake_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"],"return":[]},{"name":"configure_allowed_validators","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"deposit_owner_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::stake::OwnerCapability"],"return":[]},{"name":"destroy_owner_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::stake::OwnerCapability"],"return":[]},{"name":"extract_owner_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["0x1::stake::OwnerCapability"]},{"name":"get_current_epoch_proposal_counts","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64","u64"]},{"name":"get_current_epoch_voting_power","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_delegated_voter","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]},{"name":"get_lockup_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_operator","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]},{"name":"get_owned_pool_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability"],"return":["address"]},{"name":"get_remaining_lockup_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_stake","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64","u64","u64","u64"]},{"name":"get_validator_config","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["vector<u8>","vector<u8>","vector<u8>"]},{"name":"get_validator_index","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_validator_state","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"increase_lockup","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"increase_lockup_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability"],"return":[]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"initialize_stake_owner","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64","address","address"],"return":[]},{"name":"initialize_validator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<u8>","vector<u8>","vector<u8>"],"return":[]},{"name":"is_current_epoch_validator","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"join_validator_set","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"join_validator_set_internal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"leave_validator_set","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"on_new_epoch","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":[]},{"name":"reactivate_stake","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"reactivate_stake_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","u64"],"return":[]},{"name":"remove_validators","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","&vector<address>"],"return":[]},{"name":"rotate_consensus_key","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<u8>","vector<u8>"],"return":[]},{"name":"set_delegated_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_delegated_voter_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","address"],"return":[]},{"name":"set_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_operator_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","address"],"return":[]},{"name":"stake_pool_exists","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"store_aptos_coin_mint_cap","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"],"return":[]},{"name":"unlock","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"unlock_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","&0x1::stake::OwnerCapability"],"return":[]},{"name":"update_network_and_fullnode_addresses","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<u8>","vector<u8>"],"return":[]},{"name":"update_performance_statistics","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["0x1::option::Option<u64>","vector<u64>"],"return":[]},{"name":"withdraw","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"withdraw_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","u64"],"return":["0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"]}],"structs":[{"name":"AddStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount_added","type":"u64"}]},{"name":"AllowedValidators","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"accounts","type":"vector<address>"}]},{"name":"AptosCoinCapabilities","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"mint_cap","type":"0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"}]},{"name":"DistributeRewardsEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"rewards_amount","type":"u64"}]},{"name":"IncreaseLockupEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_locked_until_secs","type":"u64"},{"name":"new_locked_until_secs","type":"u64"}]},{"name":"IndividualValidatorPerformance","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"successful_proposals","type":"u64"},{"name":"failed_proposals","type":"u64"}]},{"name":"JoinValidatorSetEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"LeaveValidatorSetEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"OwnerCapability","is_native":false,"abilities":["store","key"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"ReactivateStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"RegisterValidatorCandidateEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"RotateConsensusKeyEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_consensus_pubkey","type":"vector<u8>"},{"name":"new_consensus_pubkey","type":"vector<u8>"}]},{"name":"SetOperatorEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_operator","type":"address"},{"name":"new_operator","type":"address"}]},{"name":"StakePool","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"active","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"inactive","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"pending_active","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"pending_inactive","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"locked_until_secs","type":"u64"},{"name":"operator_address","type":"address"},{"name":"delegated_voter","type":"address"},{"name":"initialize_validator_events","type":"0x1::event::EventHandle<0x1::stake::RegisterValidatorCandidateEvent>"},{"name":"set_operator_events","type":"0x1::event::EventHandle<0x1::stake::SetOperatorEvent>"},{"name":"add_stake_events","type":"0x1::event::EventHandle<0x1::stake::AddStakeEvent>"},{"name":"reactivate_stake_events","type":"0x1::event::EventHandle<0x1::stake::ReactivateStakeEvent>"},{"name":"rotate_consensus_key_events","type":"0x1::event::EventHandle<0x1::stake::RotateConsensusKeyEvent>"},{"name":"update_network_and_fullnode_addresses_events","type":"0x1::event::EventHandle<0x1::stake::UpdateNetworkAndFullnodeAddressesEvent>"},{"name":"increase_lockup_events","type":"0x1::event::EventHandle<0x1::stake::IncreaseLockupEvent>"},{"name":"join_validator_set_events","type":"0x1::event::EventHandle<0x1::stake::JoinValidatorSetEvent>"},{"name":"distribute_rewards_events","type":"0x1::event::EventHandle<0x1::stake::DistributeRewardsEvent>"},{"name":"unlock_stake_events","type":"0x1::event::EventHandle<0x1::stake::UnlockStakeEvent>"},{"name":"withdraw_stake_events","type":"0x1::event::EventHandle<0x1::stake::WithdrawStakeEvent>"},{"name":"leave_validator_set_events","type":"0x1::event::EventHandle<0x1::stake::LeaveValidatorSetEvent>"}]},{"name":"UnlockStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount_unlocked","type":"u64"}]},{"name":"UpdateNetworkAndFullnodeAddressesEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_network_addresses","type":"vector<u8>"},{"name":"new_network_addresses","type":"vector<u8>"},{"name":"old_fullnode_addresses","type":"vector<u8>"},{"name":"new_fullnode_addresses","type":"vector<u8>"}]},{"name":"ValidatorConfig","is_native":false,"abilities":["copy","drop","store","key"],"generic_type_params":[],"fields":[{"name":"consensus_pubkey","type":"vector<u8>"},{"name":"network_addresses","type":"vector<u8>"},{"name":"fullnode_addresses","type":"vector<u8>"},{"name":"validator_index","type":"u64"}]},{"name":"ValidatorInfo","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"addr","type":"address"},{"name":"voting_power","type":"u64"},{"name":"config","type":"0x1::stake::ValidatorConfig"}]},{"name":"ValidatorPerformance","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"validators","type":"vector<0x1::stake::IndividualValidatorPerformance>"}]},{"name":"ValidatorSet","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"consensus_scheme","type":"u8"},{"name":"active_validators","type":"vector<0x1::stake::ValidatorInfo>"},{"name":"pending_inactive","type":"vector<0x1::stake::ValidatorInfo>"},{"name":"pending_active","type":"vector<0x1::stake::ValidatorInfo>"},{"name":"total_voting_power","type":"u128"},{"name":"total_joining_power","type":"u128"}]},{"name":"WithdrawStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount_withdrawn","type":"u64"}]}]}'
1101
- );
1102
- }
1103
-
1104
- export namespace table {
1105
- export class Box<T0> {
1106
- static TYPE_QNAME = "0x1::table::Box";
1107
- val: T0;
1108
- }
1109
-
1110
- export class Table<T0, T1> {
1111
- static TYPE_QNAME = "0x1::table::Table";
1112
- handle: Address;
1113
- }
1114
-
1115
- export function loadTypes(_r: aptos.TypeRegistry) {
1116
- loadAllTypes(_r);
1117
- }
1118
- export const ABI: MoveModule = JSON.parse(
1119
- '{"address":"0x1","name":"table","friends":["0x1::table_with_length"],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table::Table<T0, T1>","T0","T1"],"return":[]},{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table::Table<T0, T1>","T0"],"return":["&T1"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table::Table<T0, T1>","T0"],"return":["&mut T1"]},{"name":"borrow_mut_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["drop"]}],"params":["&mut 0x1::table::Table<T0, T1>","T0","T1"],"return":["&mut T1"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table::Table<T0, T1>","T0"],"return":["bool"]},{"name":"destroy","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["0x1::table::Table<T0, T1>"],"return":[]},{"name":"new","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["store"]}],"params":[],"return":["0x1::table::Table<T0, T1>"]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table::Table<T0, T1>","T0"],"return":["T1"]},{"name":"upsert","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["drop"]}],"params":["&mut 0x1::table::Table<T0, T1>","T0","T1"],"return":[]}],"structs":[{"name":"Box","is_native":false,"abilities":["drop","store","key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"val","type":"T0"}]},{"name":"Table","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"fields":[{"name":"handle","type":"address"}]}]}'
1120
- );
1121
- }
1122
-
1123
- export namespace math64 {
1124
- export function loadTypes(_r: aptos.TypeRegistry) {
1125
- loadAllTypes(_r);
1126
- }
1127
- export const ABI: MoveModule = JSON.parse(
1128
- '{"address":"0x1","name":"math64","friends":[],"exposed_functions":[{"name":"average","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"max","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"min","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"pow","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]}],"structs":[]}'
1129
- );
1130
- }
1131
-
1132
- export namespace option {
1133
- export class Option<T0> {
1134
- static TYPE_QNAME = "0x1::option::Option";
1135
- vec: T0[] | string;
1136
- }
1137
-
1138
- export function loadTypes(_r: aptos.TypeRegistry) {
1139
- loadAllTypes(_r);
1140
- }
1141
- export const ABI: MoveModule = JSON.parse(
1142
- '{"address":"0x1","name":"option","friends":[],"exposed_functions":[{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>"],"return":["&T0"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>"],"return":["&mut T0"]},{"name":"borrow_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>","&T0"],"return":["&T0"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>","&T0"],"return":["bool"]},{"name":"destroy_none","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::option::Option<T0>"],"return":[]},{"name":"destroy_some","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::option::Option<T0>"],"return":["T0"]},{"name":"destroy_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["0x1::option::Option<T0>","T0"],"return":["T0"]},{"name":"extract","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>"],"return":["T0"]},{"name":"fill","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>","T0"],"return":[]},{"name":"get_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]}],"params":["&0x1::option::Option<T0>","T0"],"return":["T0"]},{"name":"is_none","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>"],"return":["bool"]},{"name":"is_some","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>"],"return":["bool"]},{"name":"none","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::option::Option<T0>"]},{"name":"some","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["T0"],"return":["0x1::option::Option<T0>"]},{"name":"swap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>","T0"],"return":["T0"]},{"name":"swap_or_fill","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>","T0"],"return":["0x1::option::Option<T0>"]},{"name":"to_vec","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::option::Option<T0>"],"return":["vector<T0>"]}],"structs":[{"name":"Option","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"vec","type":"vector<T0>"}]}]}'
1143
- );
1144
- }
1145
-
1146
- export namespace signer {
1147
- export function loadTypes(_r: aptos.TypeRegistry) {
1148
- loadAllTypes(_r);
1149
- }
1150
- export const ABI: MoveModule = JSON.parse(
1151
- '{"address":"0x1","name":"signer","friends":[],"exposed_functions":[{"name":"address_of","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["address"]},{"name":"borrow_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["&address"]}],"structs":[]}'
1152
- );
1153
- }
1154
-
1155
- export namespace string {
1156
- export class String {
1157
- static TYPE_QNAME = "0x1::string::String";
1158
- bytes: string;
1159
- }
1160
-
1161
- export function loadTypes(_r: aptos.TypeRegistry) {
1162
- loadAllTypes(_r);
1163
- }
1164
- export const ABI: MoveModule = JSON.parse(
1165
- '{"address":"0x1","name":"string","friends":[],"exposed_functions":[{"name":"append","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::string::String","0x1::string::String"],"return":[]},{"name":"append_utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::string::String","vector<u8>"],"return":[]},{"name":"bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["&vector<u8>"]},{"name":"index_of","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String","&0x1::string::String"],"return":["u64"]},{"name":"insert","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::string::String","u64","0x1::string::String"],"return":[]},{"name":"internal_check_utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&vector<u8>"],"return":["bool"]},{"name":"is_empty","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["bool"]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["u64"]},{"name":"sub_string","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String","u64","u64"],"return":["0x1::string::String"]},{"name":"try_utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::string::String>"]},{"name":"utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::string::String"]}],"structs":[{"name":"String","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
1166
- );
1167
- }
1168
-
1169
- export namespace vector {
1170
- export function loadTypes(_r: aptos.TypeRegistry) {
1171
- loadAllTypes(_r);
1172
- }
1173
- export const ABI: MoveModule = JSON.parse(
1174
- '{"address":"0x1","name":"vector","friends":[],"exposed_functions":[{"name":"append","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","vector<T0>"],"return":[]},{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>","u64"],"return":["&T0"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64"],"return":["&mut T0"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>","&T0"],"return":["bool"]},{"name":"destroy_empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["vector<T0>"],"return":[]},{"name":"empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["vector<T0>"]},{"name":"index_of","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>","&T0"],"return":["bool","u64"]},{"name":"is_empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>"],"return":["bool"]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>"],"return":["u64"]},{"name":"pop_back","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>"],"return":["T0"]},{"name":"push_back","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","T0"],"return":[]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64"],"return":["T0"]},{"name":"reverse","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>"],"return":[]},{"name":"singleton","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["T0"],"return":["vector<T0>"]},{"name":"swap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64","u64"],"return":[]},{"name":"swap_remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64"],"return":["T0"]}],"structs":[]}'
1175
- );
1176
- }
1177
-
1178
- export class voting extends aptos.AptosBaseProcessor {
1179
- constructor(options: aptos.AptosBindOptions) {
1180
- super("voting", options);
1181
- }
1182
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
1183
- address: "0x1",
1184
- network: aptos.AptosNetwork.MAIN_NET,
1185
- };
1186
-
1187
- static bind(options: Partial<aptos.AptosBindOptions> = {}): voting {
1188
- return new voting({ ...voting.DEFAULT_OPTIONS, ...options });
1189
- }
1190
-
1191
- onEventCreateProposalEvent(
1192
- func: (
1193
- event: voting.CreateProposalEventInstance,
1194
- ctx: aptos.AptosContext
1195
- ) => void
1196
- ): voting {
1197
- this.onEvent(func, {
1198
- type: "voting::CreateProposalEvent",
1199
- });
1200
- return this;
1201
- }
1202
-
1203
- onEventRegisterForumEvent(
1204
- func: (
1205
- event: voting.RegisterForumEventInstance,
1206
- ctx: aptos.AptosContext
1207
- ) => void
1208
- ): voting {
1209
- this.onEvent(func, {
1210
- type: "voting::RegisterForumEvent",
1211
- });
1212
- return this;
1213
- }
1214
-
1215
- onEventResolveProposal(
1216
- func: (
1217
- event: voting.ResolveProposalInstance,
1218
- ctx: aptos.AptosContext
1219
- ) => void
1220
- ): voting {
1221
- this.onEvent(func, {
1222
- type: "voting::ResolveProposal",
1223
- });
1224
- return this;
1225
- }
1226
-
1227
- onEventVoteEvent(
1228
- func: (event: voting.VoteEventInstance, ctx: aptos.AptosContext) => void
1229
- ): voting {
1230
- this.onEvent(func, {
1231
- type: "voting::VoteEvent",
1232
- });
1233
- return this;
1234
- }
1235
-
1236
- loadTypesInternal(registry: aptos.TypeRegistry) {
1237
- loadAllTypes(registry);
1238
- }
1239
- }
1240
-
1241
- export namespace voting {
1242
- export class CreateProposalEvent {
1243
- static TYPE_QNAME = "0x1::voting::CreateProposalEvent";
1244
- proposal_id: bigint;
1245
- early_resolution_vote_threshold: option.Option<bigint>;
1246
- execution_hash: string;
1247
- expiration_secs: bigint;
1248
- metadata: simple_map.SimpleMap<string, string>;
1249
- min_vote_threshold: bigint;
1250
- }
1251
-
1252
- export interface CreateProposalEventInstance
1253
- extends aptos.TypedEventInstance<CreateProposalEvent> {
1254
- data_typed: CreateProposalEvent;
1255
- type_arguments: [];
1256
- }
1257
-
1258
- export class Proposal<T0> {
1259
- static TYPE_QNAME = "0x1::voting::Proposal";
1260
- proposer: Address;
1261
- execution_content: option.Option<T0>;
1262
- metadata: simple_map.SimpleMap<string, string>;
1263
- creation_time_secs: bigint;
1264
- execution_hash: string;
1265
- min_vote_threshold: bigint;
1266
- expiration_secs: bigint;
1267
- early_resolution_vote_threshold: option.Option<bigint>;
1268
- yes_votes: bigint;
1269
- no_votes: bigint;
1270
- is_resolved: Boolean;
1271
- resolution_time_secs: bigint;
1272
- }
1273
-
1274
- export class RegisterForumEvent {
1275
- static TYPE_QNAME = "0x1::voting::RegisterForumEvent";
1276
- hosting_account: Address;
1277
- proposal_type_info: type_info.TypeInfo;
1278
- }
1279
-
1280
- export interface RegisterForumEventInstance
1281
- extends aptos.TypedEventInstance<RegisterForumEvent> {
1282
- data_typed: RegisterForumEvent;
1283
- type_arguments: [];
1284
- }
1285
-
1286
- export class ResolveProposal {
1287
- static TYPE_QNAME = "0x1::voting::ResolveProposal";
1288
- proposal_id: bigint;
1289
- yes_votes: bigint;
1290
- no_votes: bigint;
1291
- resolved_early: Boolean;
1292
- }
1293
-
1294
- export interface ResolveProposalInstance
1295
- extends aptos.TypedEventInstance<ResolveProposal> {
1296
- data_typed: ResolveProposal;
1297
- type_arguments: [];
1298
- }
1299
-
1300
- export class VoteEvent {
1301
- static TYPE_QNAME = "0x1::voting::VoteEvent";
1302
- proposal_id: bigint;
1303
- num_votes: bigint;
1304
- }
1305
-
1306
- export interface VoteEventInstance
1307
- extends aptos.TypedEventInstance<VoteEvent> {
1308
- data_typed: VoteEvent;
1309
- type_arguments: [];
1310
- }
1311
-
1312
- export class VotingEvents {
1313
- static TYPE_QNAME = "0x1::voting::VotingEvents";
1314
- create_proposal_events: event.EventHandle<voting.CreateProposalEvent>;
1315
- register_forum_events: event.EventHandle<voting.RegisterForumEvent>;
1316
- resolve_proposal_events: event.EventHandle<voting.ResolveProposal>;
1317
- vote_events: event.EventHandle<voting.VoteEvent>;
1318
- }
1319
-
1320
- export class VotingForum<T0> {
1321
- static TYPE_QNAME = "0x1::voting::VotingForum";
1322
- proposals: table.Table<bigint, voting.Proposal<T0>>;
1323
- events: voting.VotingEvents;
1324
- next_proposal_id: bigint;
1325
- }
1326
-
1327
- export function loadTypes(_r: aptos.TypeRegistry) {
1328
- loadAllTypes(_r);
1329
- }
1330
- export const ABI: MoveModule = JSON.parse(
1331
- '{"address":"0x1","name":"voting","friends":[],"exposed_functions":[{"name":"can_be_resolved_early","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["&0x1::voting::Proposal<T0>"],"return":["bool"]},{"name":"create_proposal","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","address","T0","vector<u8>","u128","u64","0x1::option::Option<u128>","0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"],"return":["u64"]},{"name":"get_execution_hash","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["vector<u8>"]},{"name":"get_proposal_expiration_secs","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["u64"]},{"name":"get_proposal_state","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["u64"]},{"name":"is_resolved","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["bool"]},{"name":"is_voting_closed","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["bool"]},{"name":"register","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["&signer"],"return":[]},{"name":"resolve","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["T0"]},{"name":"vote","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["&T0","address","u64","u64","bool"],"return":[]}],"structs":[{"name":"CreateProposalEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"early_resolution_vote_threshold","type":"0x1::option::Option<u128>"},{"name":"execution_hash","type":"vector<u8>"},{"name":"expiration_secs","type":"u64"},{"name":"metadata","type":"0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"},{"name":"min_vote_threshold","type":"u128"}]},{"name":"Proposal","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["store"]}],"fields":[{"name":"proposer","type":"address"},{"name":"execution_content","type":"0x1::option::Option<T0>"},{"name":"metadata","type":"0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"},{"name":"creation_time_secs","type":"u64"},{"name":"execution_hash","type":"vector<u8>"},{"name":"min_vote_threshold","type":"u128"},{"name":"expiration_secs","type":"u64"},{"name":"early_resolution_vote_threshold","type":"0x1::option::Option<u128>"},{"name":"yes_votes","type":"u128"},{"name":"no_votes","type":"u128"},{"name":"is_resolved","type":"bool"},{"name":"resolution_time_secs","type":"u64"}]},{"name":"RegisterForumEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"hosting_account","type":"address"},{"name":"proposal_type_info","type":"0x1::type_info::TypeInfo"}]},{"name":"ResolveProposal","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"yes_votes","type":"u128"},{"name":"no_votes","type":"u128"},{"name":"resolved_early","type":"bool"}]},{"name":"VoteEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"num_votes","type":"u64"}]},{"name":"VotingEvents","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"create_proposal_events","type":"0x1::event::EventHandle<0x1::voting::CreateProposalEvent>"},{"name":"register_forum_events","type":"0x1::event::EventHandle<0x1::voting::RegisterForumEvent>"},{"name":"resolve_proposal_events","type":"0x1::event::EventHandle<0x1::voting::ResolveProposal>"},{"name":"vote_events","type":"0x1::event::EventHandle<0x1::voting::VoteEvent>"}]},{"name":"VotingForum","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":["store"]}],"fields":[{"name":"proposals","type":"0x1::table::Table<u64, 0x1::voting::Proposal<T0>>"},{"name":"events","type":"0x1::voting::VotingEvents"},{"name":"next_proposal_id","type":"u64"}]}]}'
1332
- );
1333
- }
1334
-
1335
- export class account extends aptos.AptosBaseProcessor {
1336
- constructor(options: aptos.AptosBindOptions) {
1337
- super("account", options);
1338
- }
1339
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
1340
- address: "0x1",
1341
- network: aptos.AptosNetwork.MAIN_NET,
1342
- };
1343
-
1344
- static bind(options: Partial<aptos.AptosBindOptions> = {}): account {
1345
- return new account({ ...account.DEFAULT_OPTIONS, ...options });
1346
- }
1347
-
1348
- onEntryOfferSignerCapability(
1349
- func: (
1350
- call: account.OfferSignerCapabilityPayload,
1351
- ctx: aptos.AptosContext
1352
- ) => void,
1353
- filter?: aptos.CallFilter
1354
- ): account {
1355
- this.onEntryFunctionCall(func, {
1356
- ...filter,
1357
- function: "account::offer_signer_capability",
1358
- });
1359
- return this;
1360
- }
1361
-
1362
- onEntryRevokeSignerCapability(
1363
- func: (
1364
- call: account.RevokeSignerCapabilityPayload,
1365
- ctx: aptos.AptosContext
1366
- ) => void,
1367
- filter?: aptos.CallFilter
1368
- ): account {
1369
- this.onEntryFunctionCall(func, {
1370
- ...filter,
1371
- function: "account::revoke_signer_capability",
1372
- });
1373
- return this;
1374
- }
1375
-
1376
- onEntryRotateAuthenticationKey(
1377
- func: (
1378
- call: account.RotateAuthenticationKeyPayload,
1379
- ctx: aptos.AptosContext
1380
- ) => void,
1381
- filter?: aptos.CallFilter
1382
- ): account {
1383
- this.onEntryFunctionCall(func, {
1384
- ...filter,
1385
- function: "account::rotate_authentication_key",
1386
- });
1387
- return this;
1388
- }
1389
-
1390
- onEventCoinRegisterEvent(
1391
- func: (
1392
- event: account.CoinRegisterEventInstance,
1393
- ctx: aptos.AptosContext
1394
- ) => void
1395
- ): account {
1396
- this.onEvent(func, {
1397
- type: "account::CoinRegisterEvent",
1398
- });
1399
- return this;
1400
- }
1401
-
1402
- onEventKeyRotationEvent(
1403
- func: (
1404
- event: account.KeyRotationEventInstance,
1405
- ctx: aptos.AptosContext
1406
- ) => void
1407
- ): account {
1408
- this.onEvent(func, {
1409
- type: "account::KeyRotationEvent",
1410
- });
1411
- return this;
1412
- }
1413
-
1414
- loadTypesInternal(registry: aptos.TypeRegistry) {
1415
- loadAllTypes(registry);
1416
- }
1417
- }
1418
-
1419
- export namespace account {
1420
- export class Account {
1421
- static TYPE_QNAME = "0x1::account::Account";
1422
- authentication_key: string;
1423
- sequence_number: bigint;
1424
- guid_creation_num: bigint;
1425
- coin_register_events: event.EventHandle<account.CoinRegisterEvent>;
1426
- key_rotation_events: event.EventHandle<account.KeyRotationEvent>;
1427
- rotation_capability_offer: account.CapabilityOffer<account.RotationCapability>;
1428
- signer_capability_offer: account.CapabilityOffer<account.SignerCapability>;
1429
- }
1430
-
1431
- export class CapabilityOffer<T0> {
1432
- static TYPE_QNAME = "0x1::account::CapabilityOffer";
1433
- for: option.Option<Address>;
1434
- }
1435
-
1436
- export class CoinRegisterEvent {
1437
- static TYPE_QNAME = "0x1::account::CoinRegisterEvent";
1438
- type_info: type_info.TypeInfo;
1439
- }
1440
-
1441
- export interface CoinRegisterEventInstance
1442
- extends aptos.TypedEventInstance<CoinRegisterEvent> {
1443
- data_typed: CoinRegisterEvent;
1444
- type_arguments: [];
1445
- }
1446
-
1447
- export class KeyRotationEvent {
1448
- static TYPE_QNAME = "0x1::account::KeyRotationEvent";
1449
- old_authentication_key: string;
1450
- new_authentication_key: string;
1451
- }
1452
-
1453
- export interface KeyRotationEventInstance
1454
- extends aptos.TypedEventInstance<KeyRotationEvent> {
1455
- data_typed: KeyRotationEvent;
1456
- type_arguments: [];
1457
- }
1458
-
1459
- export class OriginatingAddress {
1460
- static TYPE_QNAME = "0x1::account::OriginatingAddress";
1461
- address_map: table.Table<Address, Address>;
1462
- }
1463
-
1464
- export class RotationCapability {
1465
- static TYPE_QNAME = "0x1::account::RotationCapability";
1466
- account: Address;
1467
- }
1468
-
1469
- export class RotationCapabilityOfferProofChallenge {
1470
- static TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallenge";
1471
- sequence_number: bigint;
1472
- recipient_address: Address;
1473
- }
1474
-
1475
- export class RotationProofChallenge {
1476
- static TYPE_QNAME = "0x1::account::RotationProofChallenge";
1477
- sequence_number: bigint;
1478
- originator: Address;
1479
- current_auth_key: Address;
1480
- new_public_key: string;
1481
- }
1482
-
1483
- export class SignerCapability {
1484
- static TYPE_QNAME = "0x1::account::SignerCapability";
1485
- account: Address;
1486
- }
1487
-
1488
- export class SignerCapabilityOfferProofChallenge {
1489
- static TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallenge";
1490
- sequence_number: bigint;
1491
- recipient_address: Address;
1492
- }
1493
-
1494
- export class SignerCapabilityOfferProofChallengeV2 {
1495
- static TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallengeV2";
1496
- sequence_number: bigint;
1497
- source_address: Address;
1498
- recipient_address: Address;
1499
- }
1500
-
1501
- export interface OfferSignerCapabilityPayload
1502
- extends aptos.TypedEntryFunctionPayload<[string, number, string, Address]> {
1503
- arguments_typed: [string, number, string, Address];
1504
- type_arguments: [];
1505
- }
1506
-
1507
- export interface RevokeSignerCapabilityPayload
1508
- extends aptos.TypedEntryFunctionPayload<[Address]> {
1509
- arguments_typed: [Address];
1510
- type_arguments: [];
1511
- }
1512
-
1513
- export interface RotateAuthenticationKeyPayload
1514
- extends aptos.TypedEntryFunctionPayload<
1515
- [number, string, number, string, string, string]
1516
- > {
1517
- arguments_typed: [number, string, number, string, string, string];
1518
- type_arguments: [];
1519
- }
1520
-
1521
- export function loadTypes(_r: aptos.TypeRegistry) {
1522
- loadAllTypes(_r);
1523
- }
1524
- export const ABI: MoveModule = JSON.parse(
1525
- '{"address":"0x1","name":"account","friends":["0x1::aptos_account","0x1::coin","0x1::genesis","0x1::resource_account","0x1::transaction_validation"],"exposed_functions":[{"name":"create_account","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address"],"return":["signer"]},{"name":"create_authorized_signer","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":["signer"]},{"name":"create_framework_reserved_account","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address"],"return":["signer","0x1::account::SignerCapability"]},{"name":"create_guid","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["0x1::guid::GUID"]},{"name":"create_resource_account","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":["signer","0x1::account::SignerCapability"]},{"name":"create_resource_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&address","vector<u8>"],"return":["address"]},{"name":"create_signer_with_capability","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::account::SignerCapability"],"return":["signer"]},{"name":"exists_at","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"get_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["vector<u8>"]},{"name":"get_guid_next_creation_num","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_sequence_number","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_signer_capability_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::account::SignerCapability"],"return":["address"]},{"name":"increment_sequence_number","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address"],"return":[]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"new_event_handle","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&signer"],"return":["0x1::event::EventHandle<T0>"]},{"name":"offer_signer_capability","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","u8","vector<u8>","address"],"return":[]},{"name":"register_coin","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address"],"return":[]},{"name":"revoke_signer_capability","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"rotate_authentication_key","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u8","vector<u8>","u8","vector<u8>","vector<u8>","vector<u8>"],"return":[]},{"name":"rotate_authentication_key_internal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":[]}],"structs":[{"name":"Account","is_native":false,"abilities":["store","key"],"generic_type_params":[],"fields":[{"name":"authentication_key","type":"vector<u8>"},{"name":"sequence_number","type":"u64"},{"name":"guid_creation_num","type":"u64"},{"name":"coin_register_events","type":"0x1::event::EventHandle<0x1::account::CoinRegisterEvent>"},{"name":"key_rotation_events","type":"0x1::event::EventHandle<0x1::account::KeyRotationEvent>"},{"name":"rotation_capability_offer","type":"0x1::account::CapabilityOffer<0x1::account::RotationCapability>"},{"name":"signer_capability_offer","type":"0x1::account::CapabilityOffer<0x1::account::SignerCapability>"}]},{"name":"CapabilityOffer","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"for","type":"0x1::option::Option<address>"}]},{"name":"CoinRegisterEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"type_info","type":"0x1::type_info::TypeInfo"}]},{"name":"KeyRotationEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_authentication_key","type":"vector<u8>"},{"name":"new_authentication_key","type":"vector<u8>"}]},{"name":"OriginatingAddress","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"address_map","type":"0x1::table::Table<address, address>"}]},{"name":"RotationCapability","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"}]},{"name":"RotationCapabilityOfferProofChallenge","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"recipient_address","type":"address"}]},{"name":"RotationProofChallenge","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"originator","type":"address"},{"name":"current_auth_key","type":"address"},{"name":"new_public_key","type":"vector<u8>"}]},{"name":"SignerCapability","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"}]},{"name":"SignerCapabilityOfferProofChallenge","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"recipient_address","type":"address"}]},{"name":"SignerCapabilityOfferProofChallengeV2","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"source_address","type":"address"},{"name":"recipient_address","type":"address"}]}]}'
1526
- );
1527
- }
1528
-
1529
- export namespace ed25519 {
1530
- export class Signature {
1531
- static TYPE_QNAME = "0x1::ed25519::Signature";
1532
- bytes: string;
1533
- }
1534
-
1535
- export class SignedMessage<T0> {
1536
- static TYPE_QNAME = "0x1::ed25519::SignedMessage";
1537
- type_info: type_info.TypeInfo;
1538
- inner: T0;
1539
- }
1540
-
1541
- export class UnvalidatedPublicKey {
1542
- static TYPE_QNAME = "0x1::ed25519::UnvalidatedPublicKey";
1543
- bytes: string;
1544
- }
1545
-
1546
- export class ValidatedPublicKey {
1547
- static TYPE_QNAME = "0x1::ed25519::ValidatedPublicKey";
1548
- bytes: string;
1549
- }
1550
-
1551
- export function loadTypes(_r: aptos.TypeRegistry) {
1552
- loadAllTypes(_r);
1553
- }
1554
- export const ABI: MoveModule = JSON.parse(
1555
- '{"address":"0x1","name":"ed25519","friends":[],"exposed_functions":[{"name":"new_signature_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::ed25519::Signature"]},{"name":"new_signed_message","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["T0"],"return":["0x1::ed25519::SignedMessage<T0>"]},{"name":"new_unvalidated_public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::ed25519::UnvalidatedPublicKey"]},{"name":"new_validated_public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ed25519::ValidatedPublicKey>"]},{"name":"public_key_into_unvalidated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::ed25519::ValidatedPublicKey"],"return":["0x1::ed25519::UnvalidatedPublicKey"]},{"name":"public_key_to_unvalidated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::ValidatedPublicKey"],"return":["0x1::ed25519::UnvalidatedPublicKey"]},{"name":"public_key_validate","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::UnvalidatedPublicKey"],"return":["0x1::option::Option<0x1::ed25519::ValidatedPublicKey>"]},{"name":"signature_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::Signature"],"return":["vector<u8>"]},{"name":"signature_verify_strict","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::Signature","&0x1::ed25519::UnvalidatedPublicKey","vector<u8>"],"return":["bool"]},{"name":"signature_verify_strict_t","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["&0x1::ed25519::Signature","&0x1::ed25519::UnvalidatedPublicKey","T0"],"return":["bool"]},{"name":"unvalidated_public_key_to_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::UnvalidatedPublicKey"],"return":["vector<u8>"]},{"name":"unvalidated_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::UnvalidatedPublicKey"],"return":["vector<u8>"]},{"name":"validated_public_key_to_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::ValidatedPublicKey"],"return":["vector<u8>"]},{"name":"validated_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::ValidatedPublicKey"],"return":["vector<u8>"]}],"structs":[{"name":"Signature","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"SignedMessage","is_native":false,"abilities":["drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"type_info","type":"0x1::type_info::TypeInfo"},{"name":"inner","type":"T0"}]},{"name":"UnvalidatedPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"ValidatedPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
1556
- );
1557
- }
1558
-
1559
- export namespace genesis {
1560
- export class AccountMap {
1561
- static TYPE_QNAME = "0x1::genesis::AccountMap";
1562
- account_address: Address;
1563
- balance: bigint;
1564
- }
1565
-
1566
- export class EmployeeAccountMap {
1567
- static TYPE_QNAME = "0x1::genesis::EmployeeAccountMap";
1568
- accounts: Address[];
1569
- validator: genesis.ValidatorConfigurationWithCommission;
1570
- vesting_schedule_numerator: bigint[];
1571
- vesting_schedule_denominator: bigint;
1572
- beneficiary_resetter: Address;
1573
- }
1574
-
1575
- export class ValidatorConfiguration {
1576
- static TYPE_QNAME = "0x1::genesis::ValidatorConfiguration";
1577
- owner_address: Address;
1578
- operator_address: Address;
1579
- voter_address: Address;
1580
- stake_amount: bigint;
1581
- consensus_pubkey: string;
1582
- proof_of_possession: string;
1583
- network_addresses: string;
1584
- full_node_network_addresses: string;
1585
- }
1586
-
1587
- export class ValidatorConfigurationWithCommission {
1588
- static TYPE_QNAME = "0x1::genesis::ValidatorConfigurationWithCommission";
1589
- validator_config: genesis.ValidatorConfiguration;
1590
- commission_percentage: bigint;
1591
- join_during_genesis: Boolean;
1592
- }
1593
-
1594
- export function loadTypes(_r: aptos.TypeRegistry) {
1595
- loadAllTypes(_r);
1596
- }
1597
- export const ABI: MoveModule = JSON.parse(
1598
- '{"address":"0x1","name":"genesis","friends":[],"exposed_functions":[],"structs":[{"name":"AccountMap","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"account_address","type":"address"},{"name":"balance","type":"u64"}]},{"name":"EmployeeAccountMap","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"accounts","type":"vector<address>"},{"name":"validator","type":"0x1::genesis::ValidatorConfigurationWithCommission"},{"name":"vesting_schedule_numerator","type":"vector<u64>"},{"name":"vesting_schedule_denominator","type":"u64"},{"name":"beneficiary_resetter","type":"address"}]},{"name":"ValidatorConfiguration","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"owner_address","type":"address"},{"name":"operator_address","type":"address"},{"name":"voter_address","type":"address"},{"name":"stake_amount","type":"u64"},{"name":"consensus_pubkey","type":"vector<u8>"},{"name":"proof_of_possession","type":"vector<u8>"},{"name":"network_addresses","type":"vector<u8>"},{"name":"full_node_network_addresses","type":"vector<u8>"}]},{"name":"ValidatorConfigurationWithCommission","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"validator_config","type":"0x1::genesis::ValidatorConfiguration"},{"name":"commission_percentage","type":"u64"},{"name":"join_during_genesis","type":"bool"}]}]}'
1599
- );
1600
- }
1601
-
1602
- export namespace math128 {
1603
- export function loadTypes(_r: aptos.TypeRegistry) {
1604
- loadAllTypes(_r);
1605
- }
1606
- export const ABI: MoveModule = JSON.parse(
1607
- '{"address":"0x1","name":"math128","friends":[],"exposed_functions":[{"name":"average","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]},{"name":"max","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]},{"name":"min","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]},{"name":"pow","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]}],"structs":[]}'
1608
- );
1609
- }
1610
-
1611
- export class version extends aptos.AptosBaseProcessor {
1612
- constructor(options: aptos.AptosBindOptions) {
1613
- super("version", options);
1614
- }
1615
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
1616
- address: "0x1",
1617
- network: aptos.AptosNetwork.MAIN_NET,
1618
- };
1619
-
1620
- static bind(options: Partial<aptos.AptosBindOptions> = {}): version {
1621
- return new version({ ...version.DEFAULT_OPTIONS, ...options });
1622
- }
1623
-
1624
- onEntrySetVersion(
1625
- func: (call: version.SetVersionPayload, ctx: aptos.AptosContext) => void,
1626
- filter?: aptos.CallFilter
1627
- ): version {
1628
- this.onEntryFunctionCall(func, {
1629
- ...filter,
1630
- function: "version::set_version",
1631
- });
1632
- return this;
1633
- }
1634
-
1635
- loadTypesInternal(registry: aptos.TypeRegistry) {
1636
- loadAllTypes(registry);
1637
- }
1638
- }
1639
-
1640
- export namespace version {
1641
- export class SetVersionCapability {
1642
- static TYPE_QNAME = "0x1::version::SetVersionCapability";
1643
- dummy_field: Boolean;
1644
- }
1645
-
1646
- export class Version {
1647
- static TYPE_QNAME = "0x1::version::Version";
1648
- major: bigint;
1649
- }
1650
-
1651
- export interface SetVersionPayload
1652
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
1653
- arguments_typed: [bigint];
1654
- type_arguments: [];
1655
- }
1656
-
1657
- export function loadTypes(_r: aptos.TypeRegistry) {
1658
- loadAllTypes(_r);
1659
- }
1660
- export const ABI: MoveModule = JSON.parse(
1661
- '{"address":"0x1","name":"version","friends":["0x1::genesis"],"exposed_functions":[{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"set_version","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]}],"structs":[{"name":"SetVersionCapability","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"Version","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"major","type":"u64"}]}]}'
1662
- );
1663
- }
1664
-
1665
- export class vesting extends aptos.AptosBaseProcessor {
1666
- constructor(options: aptos.AptosBindOptions) {
1667
- super("vesting", options);
1668
- }
1669
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
1670
- address: "0x1",
1671
- network: aptos.AptosNetwork.MAIN_NET,
1672
- };
1673
-
1674
- static bind(options: Partial<aptos.AptosBindOptions> = {}): vesting {
1675
- return new vesting({ ...vesting.DEFAULT_OPTIONS, ...options });
1676
- }
1677
-
1678
- onEntryAdminWithdraw(
1679
- func: (call: vesting.AdminWithdrawPayload, ctx: aptos.AptosContext) => void,
1680
- filter?: aptos.CallFilter
1681
- ): vesting {
1682
- this.onEntryFunctionCall(func, {
1683
- ...filter,
1684
- function: "vesting::admin_withdraw",
1685
- });
1686
- return this;
1687
- }
1688
-
1689
- onEntryDistribute(
1690
- func: (call: vesting.DistributePayload, ctx: aptos.AptosContext) => void,
1691
- filter?: aptos.CallFilter
1692
- ): vesting {
1693
- this.onEntryFunctionCall(func, {
1694
- ...filter,
1695
- function: "vesting::distribute",
1696
- });
1697
- return this;
1698
- }
1699
-
1700
- onEntryResetBeneficiary(
1701
- func: (
1702
- call: vesting.ResetBeneficiaryPayload,
1703
- ctx: aptos.AptosContext
1704
- ) => void,
1705
- filter?: aptos.CallFilter
1706
- ): vesting {
1707
- this.onEntryFunctionCall(func, {
1708
- ...filter,
1709
- function: "vesting::reset_beneficiary",
1710
- });
1711
- return this;
1712
- }
1713
-
1714
- onEntryResetLockup(
1715
- func: (call: vesting.ResetLockupPayload, ctx: aptos.AptosContext) => void,
1716
- filter?: aptos.CallFilter
1717
- ): vesting {
1718
- this.onEntryFunctionCall(func, {
1719
- ...filter,
1720
- function: "vesting::reset_lockup",
1721
- });
1722
- return this;
1723
- }
1724
-
1725
- onEntrySetBeneficiary(
1726
- func: (
1727
- call: vesting.SetBeneficiaryPayload,
1728
- ctx: aptos.AptosContext
1729
- ) => void,
1730
- filter?: aptos.CallFilter
1731
- ): vesting {
1732
- this.onEntryFunctionCall(func, {
1733
- ...filter,
1734
- function: "vesting::set_beneficiary",
1735
- });
1736
- return this;
1737
- }
1738
-
1739
- onEntrySetBeneficiaryResetter(
1740
- func: (
1741
- call: vesting.SetBeneficiaryResetterPayload,
1742
- ctx: aptos.AptosContext
1743
- ) => void,
1744
- filter?: aptos.CallFilter
1745
- ): vesting {
1746
- this.onEntryFunctionCall(func, {
1747
- ...filter,
1748
- function: "vesting::set_beneficiary_resetter",
1749
- });
1750
- return this;
1751
- }
1752
-
1753
- onEntrySetManagementRole(
1754
- func: (
1755
- call: vesting.SetManagementRolePayload,
1756
- ctx: aptos.AptosContext
1757
- ) => void,
1758
- filter?: aptos.CallFilter
1759
- ): vesting {
1760
- this.onEntryFunctionCall(func, {
1761
- ...filter,
1762
- function: "vesting::set_management_role",
1763
- });
1764
- return this;
1765
- }
1766
-
1767
- onEntryTerminateVestingContract(
1768
- func: (
1769
- call: vesting.TerminateVestingContractPayload,
1770
- ctx: aptos.AptosContext
1771
- ) => void,
1772
- filter?: aptos.CallFilter
1773
- ): vesting {
1774
- this.onEntryFunctionCall(func, {
1775
- ...filter,
1776
- function: "vesting::terminate_vesting_contract",
1777
- });
1778
- return this;
1779
- }
1780
-
1781
- onEntryUnlockRewards(
1782
- func: (call: vesting.UnlockRewardsPayload, ctx: aptos.AptosContext) => void,
1783
- filter?: aptos.CallFilter
1784
- ): vesting {
1785
- this.onEntryFunctionCall(func, {
1786
- ...filter,
1787
- function: "vesting::unlock_rewards",
1788
- });
1789
- return this;
1790
- }
1791
-
1792
- onEntryUpdateOperator(
1793
- func: (
1794
- call: vesting.UpdateOperatorPayload,
1795
- ctx: aptos.AptosContext
1796
- ) => void,
1797
- filter?: aptos.CallFilter
1798
- ): vesting {
1799
- this.onEntryFunctionCall(func, {
1800
- ...filter,
1801
- function: "vesting::update_operator",
1802
- });
1803
- return this;
1804
- }
1805
-
1806
- onEntryUpdateOperatorWithSameCommission(
1807
- func: (
1808
- call: vesting.UpdateOperatorWithSameCommissionPayload,
1809
- ctx: aptos.AptosContext
1810
- ) => void,
1811
- filter?: aptos.CallFilter
1812
- ): vesting {
1813
- this.onEntryFunctionCall(func, {
1814
- ...filter,
1815
- function: "vesting::update_operator_with_same_commission",
1816
- });
1817
- return this;
1818
- }
1819
-
1820
- onEntryUpdateVoter(
1821
- func: (call: vesting.UpdateVoterPayload, ctx: aptos.AptosContext) => void,
1822
- filter?: aptos.CallFilter
1823
- ): vesting {
1824
- this.onEntryFunctionCall(func, {
1825
- ...filter,
1826
- function: "vesting::update_voter",
1827
- });
1828
- return this;
1829
- }
1830
-
1831
- onEntryVest(
1832
- func: (call: vesting.VestPayload, ctx: aptos.AptosContext) => void,
1833
- filter?: aptos.CallFilter
1834
- ): vesting {
1835
- this.onEntryFunctionCall(func, {
1836
- ...filter,
1837
- function: "vesting::vest",
1838
- });
1839
- return this;
1840
- }
1841
-
1842
- onEventCreateVestingContractEvent(
1843
- func: (
1844
- event: vesting.CreateVestingContractEventInstance,
1845
- ctx: aptos.AptosContext
1846
- ) => void
1847
- ): vesting {
1848
- this.onEvent(func, {
1849
- type: "vesting::CreateVestingContractEvent",
1850
- });
1851
- return this;
1852
- }
1853
-
1854
- onEventUpdateOperatorEvent(
1855
- func: (
1856
- event: vesting.UpdateOperatorEventInstance,
1857
- ctx: aptos.AptosContext
1858
- ) => void
1859
- ): vesting {
1860
- this.onEvent(func, {
1861
- type: "vesting::UpdateOperatorEvent",
1862
- });
1863
- return this;
1864
- }
1865
-
1866
- onEventUpdateVoterEvent(
1867
- func: (
1868
- event: vesting.UpdateVoterEventInstance,
1869
- ctx: aptos.AptosContext
1870
- ) => void
1871
- ): vesting {
1872
- this.onEvent(func, {
1873
- type: "vesting::UpdateVoterEvent",
1874
- });
1875
- return this;
1876
- }
1877
-
1878
- onEventResetLockupEvent(
1879
- func: (
1880
- event: vesting.ResetLockupEventInstance,
1881
- ctx: aptos.AptosContext
1882
- ) => void
1883
- ): vesting {
1884
- this.onEvent(func, {
1885
- type: "vesting::ResetLockupEvent",
1886
- });
1887
- return this;
1888
- }
1889
-
1890
- onEventSetBeneficiaryEvent(
1891
- func: (
1892
- event: vesting.SetBeneficiaryEventInstance,
1893
- ctx: aptos.AptosContext
1894
- ) => void
1895
- ): vesting {
1896
- this.onEvent(func, {
1897
- type: "vesting::SetBeneficiaryEvent",
1898
- });
1899
- return this;
1900
- }
1901
-
1902
- onEventUnlockRewardsEvent(
1903
- func: (
1904
- event: vesting.UnlockRewardsEventInstance,
1905
- ctx: aptos.AptosContext
1906
- ) => void
1907
- ): vesting {
1908
- this.onEvent(func, {
1909
- type: "vesting::UnlockRewardsEvent",
1910
- });
1911
- return this;
1912
- }
1913
-
1914
- onEventVestEvent(
1915
- func: (event: vesting.VestEventInstance, ctx: aptos.AptosContext) => void
1916
- ): vesting {
1917
- this.onEvent(func, {
1918
- type: "vesting::VestEvent",
1919
- });
1920
- return this;
1921
- }
1922
-
1923
- onEventDistributeEvent(
1924
- func: (
1925
- event: vesting.DistributeEventInstance,
1926
- ctx: aptos.AptosContext
1927
- ) => void
1928
- ): vesting {
1929
- this.onEvent(func, {
1930
- type: "vesting::DistributeEvent",
1931
- });
1932
- return this;
1933
- }
1934
-
1935
- onEventTerminateEvent(
1936
- func: (
1937
- event: vesting.TerminateEventInstance,
1938
- ctx: aptos.AptosContext
1939
- ) => void
1940
- ): vesting {
1941
- this.onEvent(func, {
1942
- type: "vesting::TerminateEvent",
1943
- });
1944
- return this;
1945
- }
1946
-
1947
- onEventAdminWithdrawEvent(
1948
- func: (
1949
- event: vesting.AdminWithdrawEventInstance,
1950
- ctx: aptos.AptosContext
1951
- ) => void
1952
- ): vesting {
1953
- this.onEvent(func, {
1954
- type: "vesting::AdminWithdrawEvent",
1955
- });
1956
- return this;
1957
- }
1958
-
1959
- loadTypesInternal(registry: aptos.TypeRegistry) {
1960
- loadAllTypes(registry);
1961
- }
1962
- }
1963
-
1964
- export namespace vesting {
1965
- export class AdminStore {
1966
- static TYPE_QNAME = "0x1::vesting::AdminStore";
1967
- vesting_contracts: Address[];
1968
- nonce: bigint;
1969
- create_events: event.EventHandle<vesting.CreateVestingContractEvent>;
1970
- }
1971
-
1972
- export class AdminWithdrawEvent {
1973
- static TYPE_QNAME = "0x1::vesting::AdminWithdrawEvent";
1974
- admin: Address;
1975
- vesting_contract_address: Address;
1976
- amount: bigint;
1977
- }
1978
-
1979
- export interface AdminWithdrawEventInstance
1980
- extends aptos.TypedEventInstance<AdminWithdrawEvent> {
1981
- data_typed: AdminWithdrawEvent;
1982
- type_arguments: [];
1983
- }
1984
-
1985
- export class CreateVestingContractEvent {
1986
- static TYPE_QNAME = "0x1::vesting::CreateVestingContractEvent";
1987
- operator: Address;
1988
- voter: Address;
1989
- grant_amount: bigint;
1990
- withdrawal_address: Address;
1991
- vesting_contract_address: Address;
1992
- staking_pool_address: Address;
1993
- commission_percentage: bigint;
1994
- }
1995
-
1996
- export interface CreateVestingContractEventInstance
1997
- extends aptos.TypedEventInstance<CreateVestingContractEvent> {
1998
- data_typed: CreateVestingContractEvent;
1999
- type_arguments: [];
2000
- }
2001
-
2002
- export class DistributeEvent {
2003
- static TYPE_QNAME = "0x1::vesting::DistributeEvent";
2004
- admin: Address;
2005
- vesting_contract_address: Address;
2006
- amount: bigint;
2007
- }
2008
-
2009
- export interface DistributeEventInstance
2010
- extends aptos.TypedEventInstance<DistributeEvent> {
2011
- data_typed: DistributeEvent;
2012
- type_arguments: [];
2013
- }
2014
-
2015
- export class ResetLockupEvent {
2016
- static TYPE_QNAME = "0x1::vesting::ResetLockupEvent";
2017
- admin: Address;
2018
- vesting_contract_address: Address;
2019
- staking_pool_address: Address;
2020
- new_lockup_expiration_secs: bigint;
2021
- }
2022
-
2023
- export interface ResetLockupEventInstance
2024
- extends aptos.TypedEventInstance<ResetLockupEvent> {
2025
- data_typed: ResetLockupEvent;
2026
- type_arguments: [];
2027
- }
2028
-
2029
- export class SetBeneficiaryEvent {
2030
- static TYPE_QNAME = "0x1::vesting::SetBeneficiaryEvent";
2031
- admin: Address;
2032
- vesting_contract_address: Address;
2033
- shareholder: Address;
2034
- old_beneficiary: Address;
2035
- new_beneficiary: Address;
2036
- }
2037
-
2038
- export interface SetBeneficiaryEventInstance
2039
- extends aptos.TypedEventInstance<SetBeneficiaryEvent> {
2040
- data_typed: SetBeneficiaryEvent;
2041
- type_arguments: [];
2042
- }
2043
-
2044
- export class StakingInfo {
2045
- static TYPE_QNAME = "0x1::vesting::StakingInfo";
2046
- pool_address: Address;
2047
- operator: Address;
2048
- voter: Address;
2049
- commission_percentage: bigint;
2050
- }
2051
-
2052
- export class TerminateEvent {
2053
- static TYPE_QNAME = "0x1::vesting::TerminateEvent";
2054
- admin: Address;
2055
- vesting_contract_address: Address;
2056
- }
2057
-
2058
- export interface TerminateEventInstance
2059
- extends aptos.TypedEventInstance<TerminateEvent> {
2060
- data_typed: TerminateEvent;
2061
- type_arguments: [];
2062
- }
2063
-
2064
- export class UnlockRewardsEvent {
2065
- static TYPE_QNAME = "0x1::vesting::UnlockRewardsEvent";
2066
- admin: Address;
2067
- vesting_contract_address: Address;
2068
- staking_pool_address: Address;
2069
- amount: bigint;
2070
- }
2071
-
2072
- export interface UnlockRewardsEventInstance
2073
- extends aptos.TypedEventInstance<UnlockRewardsEvent> {
2074
- data_typed: UnlockRewardsEvent;
2075
- type_arguments: [];
2076
- }
2077
-
2078
- export class UpdateOperatorEvent {
2079
- static TYPE_QNAME = "0x1::vesting::UpdateOperatorEvent";
2080
- admin: Address;
2081
- vesting_contract_address: Address;
2082
- staking_pool_address: Address;
2083
- old_operator: Address;
2084
- new_operator: Address;
2085
- commission_percentage: bigint;
2086
- }
2087
-
2088
- export interface UpdateOperatorEventInstance
2089
- extends aptos.TypedEventInstance<UpdateOperatorEvent> {
2090
- data_typed: UpdateOperatorEvent;
2091
- type_arguments: [];
2092
- }
2093
-
2094
- export class UpdateVoterEvent {
2095
- static TYPE_QNAME = "0x1::vesting::UpdateVoterEvent";
2096
- admin: Address;
2097
- vesting_contract_address: Address;
2098
- staking_pool_address: Address;
2099
- old_voter: Address;
2100
- new_voter: Address;
2101
- }
2102
-
2103
- export interface UpdateVoterEventInstance
2104
- extends aptos.TypedEventInstance<UpdateVoterEvent> {
2105
- data_typed: UpdateVoterEvent;
2106
- type_arguments: [];
2107
- }
2108
-
2109
- export class VestEvent {
2110
- static TYPE_QNAME = "0x1::vesting::VestEvent";
2111
- admin: Address;
2112
- vesting_contract_address: Address;
2113
- staking_pool_address: Address;
2114
- period_vested: bigint;
2115
- amount: bigint;
2116
- }
2117
-
2118
- export interface VestEventInstance
2119
- extends aptos.TypedEventInstance<VestEvent> {
2120
- data_typed: VestEvent;
2121
- type_arguments: [];
2122
- }
2123
-
2124
- export class VestingAccountManagement {
2125
- static TYPE_QNAME = "0x1::vesting::VestingAccountManagement";
2126
- roles: simple_map.SimpleMap<string, Address>;
2127
- }
2128
-
2129
- export class VestingContract {
2130
- static TYPE_QNAME = "0x1::vesting::VestingContract";
2131
- state: bigint;
2132
- admin: Address;
2133
- grant_pool: pool_u64.Pool;
2134
- beneficiaries: simple_map.SimpleMap<Address, Address>;
2135
- vesting_schedule: vesting.VestingSchedule;
2136
- withdrawal_address: Address;
2137
- staking: vesting.StakingInfo;
2138
- remaining_grant: bigint;
2139
- signer_cap: account.SignerCapability;
2140
- update_operator_events: event.EventHandle<vesting.UpdateOperatorEvent>;
2141
- update_voter_events: event.EventHandle<vesting.UpdateVoterEvent>;
2142
- reset_lockup_events: event.EventHandle<vesting.ResetLockupEvent>;
2143
- set_beneficiary_events: event.EventHandle<vesting.SetBeneficiaryEvent>;
2144
- unlock_rewards_events: event.EventHandle<vesting.UnlockRewardsEvent>;
2145
- vest_events: event.EventHandle<vesting.VestEvent>;
2146
- distribute_events: event.EventHandle<vesting.DistributeEvent>;
2147
- terminate_events: event.EventHandle<vesting.TerminateEvent>;
2148
- admin_withdraw_events: event.EventHandle<vesting.AdminWithdrawEvent>;
2149
- }
2150
-
2151
- export class VestingSchedule {
2152
- static TYPE_QNAME = "0x1::vesting::VestingSchedule";
2153
- schedule: fixed_point32.FixedPoint32[];
2154
- start_timestamp_secs: bigint;
2155
- period_duration: bigint;
2156
- last_vested_period: bigint;
2157
- }
2158
-
2159
- export interface AdminWithdrawPayload
2160
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2161
- arguments_typed: [Address];
2162
- type_arguments: [];
2163
- }
2164
-
2165
- export interface DistributePayload
2166
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2167
- arguments_typed: [Address];
2168
- type_arguments: [];
2169
- }
2170
-
2171
- export interface ResetBeneficiaryPayload
2172
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
2173
- arguments_typed: [Address, Address];
2174
- type_arguments: [];
2175
- }
2176
-
2177
- export interface ResetLockupPayload
2178
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2179
- arguments_typed: [Address];
2180
- type_arguments: [];
2181
- }
2182
-
2183
- export interface SetBeneficiaryPayload
2184
- extends aptos.TypedEntryFunctionPayload<[Address, Address, Address]> {
2185
- arguments_typed: [Address, Address, Address];
2186
- type_arguments: [];
2187
- }
2188
-
2189
- export interface SetBeneficiaryResetterPayload
2190
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
2191
- arguments_typed: [Address, Address];
2192
- type_arguments: [];
2193
- }
2194
-
2195
- export interface SetManagementRolePayload
2196
- extends aptos.TypedEntryFunctionPayload<[Address, string, Address]> {
2197
- arguments_typed: [Address, string, Address];
2198
- type_arguments: [];
2199
- }
2200
-
2201
- export interface TerminateVestingContractPayload
2202
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2203
- arguments_typed: [Address];
2204
- type_arguments: [];
2205
- }
2206
-
2207
- export interface UnlockRewardsPayload
2208
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2209
- arguments_typed: [Address];
2210
- type_arguments: [];
2211
- }
2212
-
2213
- export interface UpdateOperatorPayload
2214
- extends aptos.TypedEntryFunctionPayload<[Address, Address, bigint]> {
2215
- arguments_typed: [Address, Address, bigint];
2216
- type_arguments: [];
2217
- }
2218
-
2219
- export interface UpdateOperatorWithSameCommissionPayload
2220
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
2221
- arguments_typed: [Address, Address];
2222
- type_arguments: [];
2223
- }
2224
-
2225
- export interface UpdateVoterPayload
2226
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
2227
- arguments_typed: [Address, Address];
2228
- type_arguments: [];
2229
- }
2230
-
2231
- export interface VestPayload
2232
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2233
- arguments_typed: [Address];
2234
- type_arguments: [];
2235
- }
2236
-
2237
- export function loadTypes(_r: aptos.TypeRegistry) {
2238
- loadAllTypes(_r);
2239
- }
2240
- export const ABI: MoveModule = JSON.parse(
2241
- '{"address":"0x1","name":"vesting","friends":["0x1::genesis"],"exposed_functions":[{"name":"admin_withdraw","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"beneficiary","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["address"]},{"name":"create_vesting_contract","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","&vector<address>","0x1::simple_map::SimpleMap<address, 0x1::coin::Coin<0x1::aptos_coin::AptosCoin>>","0x1::vesting::VestingSchedule","address","address","address","u64","vector<u8>"],"return":["address"]},{"name":"create_vesting_schedule","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<0x1::fixed_point32::FixedPoint32>","u64","u64"],"return":["0x1::vesting::VestingSchedule"]},{"name":"distribute","visibility":"public","is_entry":true,"generic_type_params":[],"params":["address"],"return":[]},{"name":"get_role_holder","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["address"]},{"name":"get_vesting_account_signer","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":["signer"]},{"name":"operator","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]},{"name":"operator_commission_percentage","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"remaining_grant","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"reset_beneficiary","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"reset_lockup","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_beneficiary","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address","address"],"return":[]},{"name":"set_beneficiary_resetter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"set_management_role","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","0x1::string::String","address"],"return":[]},{"name":"stake_pool_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]},{"name":"terminate_vesting_contract","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"unlock_rewards","visibility":"public","is_entry":true,"generic_type_params":[],"params":["address"],"return":[]},{"name":"update_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address","u64"],"return":[]},{"name":"update_operator_with_same_commission","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"update_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"vest","visibility":"public","is_entry":true,"generic_type_params":[],"params":["address"],"return":[]},{"name":"vesting_contracts","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["vector<address>"]},{"name":"vesting_start_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"voter","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]}],"structs":[{"name":"AdminStore","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"vesting_contracts","type":"vector<address>"},{"name":"nonce","type":"u64"},{"name":"create_events","type":"0x1::event::EventHandle<0x1::vesting::CreateVestingContractEvent>"}]},{"name":"AdminWithdrawEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"CreateVestingContractEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"voter","type":"address"},{"name":"grant_amount","type":"u64"},{"name":"withdrawal_address","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"staking_pool_address","type":"address"},{"name":"commission_percentage","type":"u64"}]},{"name":"DistributeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"ResetLockupEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"staking_pool_address","type":"address"},{"name":"new_lockup_expiration_secs","type":"u64"}]},{"name":"SetBeneficiaryEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"shareholder","type":"address"},{"name":"old_beneficiary","type":"address"},{"name":"new_beneficiary","type":"address"}]},{"name":"StakingInfo","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"operator","type":"address"},{"name":"voter","type":"address"},{"name":"commission_percentage","type":"u64"}]},{"name":"TerminateEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"}]},{"name":"UnlockRewardsEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"staking_pool_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"UpdateOperatorEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"staking_pool_address","type":"address"},{"name":"old_operator","type":"address"},{"name":"new_operator","type":"address"},{"name":"commission_percentage","type":"u64"}]},{"name":"UpdateVoterEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"staking_pool_address","type":"address"},{"name":"old_voter","type":"address"},{"name":"new_voter","type":"address"}]},{"name":"VestEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"admin","type":"address"},{"name":"vesting_contract_address","type":"address"},{"name":"staking_pool_address","type":"address"},{"name":"period_vested","type":"u64"},{"name":"amount","type":"u64"}]},{"name":"VestingAccountManagement","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"roles","type":"0x1::simple_map::SimpleMap<0x1::string::String, address>"}]},{"name":"VestingContract","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"state","type":"u64"},{"name":"admin","type":"address"},{"name":"grant_pool","type":"0x1::pool_u64::Pool"},{"name":"beneficiaries","type":"0x1::simple_map::SimpleMap<address, address>"},{"name":"vesting_schedule","type":"0x1::vesting::VestingSchedule"},{"name":"withdrawal_address","type":"address"},{"name":"staking","type":"0x1::vesting::StakingInfo"},{"name":"remaining_grant","type":"u64"},{"name":"signer_cap","type":"0x1::account::SignerCapability"},{"name":"update_operator_events","type":"0x1::event::EventHandle<0x1::vesting::UpdateOperatorEvent>"},{"name":"update_voter_events","type":"0x1::event::EventHandle<0x1::vesting::UpdateVoterEvent>"},{"name":"reset_lockup_events","type":"0x1::event::EventHandle<0x1::vesting::ResetLockupEvent>"},{"name":"set_beneficiary_events","type":"0x1::event::EventHandle<0x1::vesting::SetBeneficiaryEvent>"},{"name":"unlock_rewards_events","type":"0x1::event::EventHandle<0x1::vesting::UnlockRewardsEvent>"},{"name":"vest_events","type":"0x1::event::EventHandle<0x1::vesting::VestEvent>"},{"name":"distribute_events","type":"0x1::event::EventHandle<0x1::vesting::DistributeEvent>"},{"name":"terminate_events","type":"0x1::event::EventHandle<0x1::vesting::TerminateEvent>"},{"name":"admin_withdraw_events","type":"0x1::event::EventHandle<0x1::vesting::AdminWithdrawEvent>"}]},{"name":"VestingSchedule","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"schedule","type":"vector<0x1::fixed_point32::FixedPoint32>"},{"name":"start_timestamp_secs","type":"u64"},{"name":"period_duration","type":"u64"},{"name":"last_vested_period","type":"u64"}]}]}'
2242
- );
2243
- }
2244
-
2245
- export namespace bls12381 {
2246
- export class AggrOrMultiSignature {
2247
- static TYPE_QNAME = "0x1::bls12381::AggrOrMultiSignature";
2248
- bytes: string;
2249
- }
2250
-
2251
- export class AggrPublicKeysWithPoP {
2252
- static TYPE_QNAME = "0x1::bls12381::AggrPublicKeysWithPoP";
2253
- bytes: string;
2254
- }
2255
-
2256
- export class ProofOfPossession {
2257
- static TYPE_QNAME = "0x1::bls12381::ProofOfPossession";
2258
- bytes: string;
2259
- }
2260
-
2261
- export class PublicKey {
2262
- static TYPE_QNAME = "0x1::bls12381::PublicKey";
2263
- bytes: string;
2264
- }
2265
-
2266
- export class PublicKeyWithPoP {
2267
- static TYPE_QNAME = "0x1::bls12381::PublicKeyWithPoP";
2268
- bytes: string;
2269
- }
2270
-
2271
- export class Signature {
2272
- static TYPE_QNAME = "0x1::bls12381::Signature";
2273
- bytes: string;
2274
- }
2275
-
2276
- export function loadTypes(_r: aptos.TypeRegistry) {
2277
- loadAllTypes(_r);
2278
- }
2279
- export const ABI: MoveModule = JSON.parse(
2280
- '{"address":"0x1","name":"bls12381","friends":[],"exposed_functions":[{"name":"aggr_or_multi_signature_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::bls12381::AggrOrMultiSignature"]},{"name":"aggr_or_multi_signature_subgroup_check","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::AggrOrMultiSignature"],"return":["bool"]},{"name":"aggr_or_multi_signature_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::AggrOrMultiSignature"],"return":["vector<u8>"]},{"name":"aggregate_pubkey_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::AggrPublicKeysWithPoP"],"return":["vector<u8>"]},{"name":"aggregate_pubkeys","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<0x1::bls12381::PublicKeyWithPoP>"],"return":["0x1::bls12381::AggrPublicKeysWithPoP"]},{"name":"aggregate_signatures","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<0x1::bls12381::Signature>"],"return":["0x1::option::Option<0x1::bls12381::AggrOrMultiSignature>"]},{"name":"proof_of_possession_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::bls12381::ProofOfPossession"]},{"name":"proof_of_possession_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::ProofOfPossession"],"return":["vector<u8>"]},{"name":"public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::bls12381::PublicKey>"]},{"name":"public_key_from_bytes_with_pop","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>","&0x1::bls12381::ProofOfPossession"],"return":["0x1::option::Option<0x1::bls12381::PublicKeyWithPoP>"]},{"name":"public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::PublicKey"],"return":["vector<u8>"]},{"name":"public_key_with_pop_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::PublicKeyWithPoP"],"return":["vector<u8>"]},{"name":"signature_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::bls12381::Signature"]},{"name":"signature_subgroup_check","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::Signature"],"return":["bool"]},{"name":"signature_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::Signature"],"return":["vector<u8>"]},{"name":"verify_aggregate_signature","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::AggrOrMultiSignature","vector<0x1::bls12381::PublicKeyWithPoP>","vector<vector<u8>>"],"return":["bool"]},{"name":"verify_multisignature","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::AggrOrMultiSignature","&0x1::bls12381::AggrPublicKeysWithPoP","vector<u8>"],"return":["bool"]},{"name":"verify_normal_signature","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::Signature","&0x1::bls12381::PublicKey","vector<u8>"],"return":["bool"]},{"name":"verify_signature_share","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bls12381::Signature","&0x1::bls12381::PublicKeyWithPoP","vector<u8>"],"return":["bool"]}],"structs":[{"name":"AggrOrMultiSignature","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"AggrPublicKeysWithPoP","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"ProofOfPossession","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"PublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"PublicKeyWithPoP","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"Signature","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
2281
- );
2282
- }
2283
-
2284
- export namespace chain_id {
2285
- export class ChainId {
2286
- static TYPE_QNAME = "0x1::chain_id::ChainId";
2287
- id: number;
2288
- }
2289
-
2290
- export function loadTypes(_r: aptos.TypeRegistry) {
2291
- loadAllTypes(_r);
2292
- }
2293
- export const ABI: MoveModule = JSON.parse(
2294
- '{"address":"0x1","name":"chain_id","friends":["0x1::genesis"],"exposed_functions":[{"name":"get","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u8"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","u8"],"return":[]}],"structs":[{"name":"ChainId","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"id","type":"u8"}]}]}'
2295
- );
2296
- }
2297
-
2298
- export namespace features {
2299
- export class Features {
2300
- static TYPE_QNAME = "0x1::features::Features";
2301
- features: string;
2302
- }
2303
-
2304
- export function loadTypes(_r: aptos.TypeRegistry) {
2305
- loadAllTypes(_r);
2306
- }
2307
- export const ABI: MoveModule = JSON.parse(
2308
- '{"address":"0x1","name":"features","friends":[],"exposed_functions":[{"name":"change_feature_flags","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u64>","vector<u64>"],"return":[]},{"name":"code_dependency_check_enabled","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["bool"]},{"name":"treat_friend_as_private","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["bool"]}],"structs":[{"name":"Features","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"features","type":"vector<u8>"}]}]}'
2309
- );
2310
- }
2311
-
2312
- export namespace from_bcs {
2313
- export function loadTypes(_r: aptos.TypeRegistry) {
2314
- loadAllTypes(_r);
2315
- }
2316
- export const ABI: MoveModule = JSON.parse(
2317
- '{"address":"0x1","name":"from_bcs","friends":["0x1::any","0x1::copyable_any"],"exposed_functions":[{"name":"from_bytes","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["vector<u8>"],"return":["T0"]},{"name":"to_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["address"]},{"name":"to_bool","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["bool"]},{"name":"to_string","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::string::String"]},{"name":"to_u128","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["u128"]},{"name":"to_u64","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["u64"]},{"name":"to_u8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["u8"]}],"structs":[]}'
2318
- );
2319
- }
2320
-
2321
- export namespace pool_u64 {
2322
- export class Pool {
2323
- static TYPE_QNAME = "0x1::pool_u64::Pool";
2324
- shareholders_limit: bigint;
2325
- total_coins: bigint;
2326
- total_shares: bigint;
2327
- shares: simple_map.SimpleMap<Address, bigint>;
2328
- shareholders: Address[];
2329
- scaling_factor: bigint;
2330
- }
2331
-
2332
- export function loadTypes(_r: aptos.TypeRegistry) {
2333
- loadAllTypes(_r);
2334
- }
2335
- export const ABI: MoveModule = JSON.parse(
2336
- '{"address":"0x1","name":"pool_u64","friends":[],"exposed_functions":[{"name":"amount_to_shares","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","u64"],"return":["u64"]},{"name":"amount_to_shares_with_total_coins","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","u64","u64"],"return":["u64"]},{"name":"balance","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","address"],"return":["u64"]},{"name":"buy_in","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::pool_u64::Pool","address","u64"],"return":["u64"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","address"],"return":["bool"]},{"name":"create","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["0x1::pool_u64::Pool"]},{"name":"create_with_scaling_factor","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["0x1::pool_u64::Pool"]},{"name":"destroy_empty","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::pool_u64::Pool"],"return":[]},{"name":"multiply_then_divide","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","u64","u64","u64"],"return":["u64"]},{"name":"redeem_shares","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::pool_u64::Pool","address","u64"],"return":["u64"]},{"name":"shareholders","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool"],"return":["vector<address>"]},{"name":"shareholders_count","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool"],"return":["u64"]},{"name":"shares","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","address"],"return":["u64"]},{"name":"shares_to_amount","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","u64"],"return":["u64"]},{"name":"shares_to_amount_with_total_coins","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool","u64","u64"],"return":["u64"]},{"name":"total_coins","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool"],"return":["u64"]},{"name":"total_shares","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::pool_u64::Pool"],"return":["u64"]},{"name":"transfer_shares","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::pool_u64::Pool","address","address","u64"],"return":[]},{"name":"update_total_coins","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::pool_u64::Pool","u64"],"return":[]}],"structs":[{"name":"Pool","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"shareholders_limit","type":"u64"},{"name":"total_coins","type":"u64"},{"name":"total_shares","type":"u64"},{"name":"shares","type":"0x1::simple_map::SimpleMap<address, u64>"},{"name":"shareholders","type":"vector<address>"},{"name":"scaling_factor","type":"u64"}]}]}'
2337
- );
2338
- }
2339
-
2340
- export namespace secp256k1 {
2341
- export class ECDSARawPublicKey {
2342
- static TYPE_QNAME = "0x1::secp256k1::ECDSARawPublicKey";
2343
- bytes: string;
2344
- }
2345
-
2346
- export class ECDSASignature {
2347
- static TYPE_QNAME = "0x1::secp256k1::ECDSASignature";
2348
- bytes: string;
2349
- }
2350
-
2351
- export function loadTypes(_r: aptos.TypeRegistry) {
2352
- loadAllTypes(_r);
2353
- }
2354
- export const ABI: MoveModule = JSON.parse(
2355
- '{"address":"0x1","name":"secp256k1","friends":[],"exposed_functions":[{"name":"ecdsa_raw_public_key_from_64_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::secp256k1::ECDSARawPublicKey"]},{"name":"ecdsa_raw_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::secp256k1::ECDSARawPublicKey"],"return":["vector<u8>"]},{"name":"ecdsa_recover","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>","u8","&0x1::secp256k1::ECDSASignature"],"return":["0x1::option::Option<0x1::secp256k1::ECDSARawPublicKey>"]},{"name":"ecdsa_signature_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::secp256k1::ECDSASignature"]},{"name":"ecdsa_signature_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::secp256k1::ECDSASignature"],"return":["vector<u8>"]}],"structs":[{"name":"ECDSARawPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"ECDSASignature","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
2356
- );
2357
- }
2358
-
2359
- export namespace timestamp {
2360
- export class CurrentTimeMicroseconds {
2361
- static TYPE_QNAME = "0x1::timestamp::CurrentTimeMicroseconds";
2362
- microseconds: bigint;
2363
- }
2364
-
2365
- export function loadTypes(_r: aptos.TypeRegistry) {
2366
- loadAllTypes(_r);
2367
- }
2368
- export const ABI: MoveModule = JSON.parse(
2369
- '{"address":"0x1","name":"timestamp","friends":["0x1::genesis"],"exposed_functions":[{"name":"now_microseconds","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"now_seconds","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"set_time_has_started","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"update_global_time","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]}],"structs":[{"name":"CurrentTimeMicroseconds","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"microseconds","type":"u64"}]}]}'
2370
- );
2371
- }
2372
-
2373
- export namespace type_info {
2374
- export class TypeInfo {
2375
- static TYPE_QNAME = "0x1::type_info::TypeInfo";
2376
- account_address: Address;
2377
- module_name: string;
2378
- struct_name: string;
2379
- }
2380
-
2381
- export function loadTypes(_r: aptos.TypeRegistry) {
2382
- loadAllTypes(_r);
2383
- }
2384
- export const ABI: MoveModule = JSON.parse(
2385
- '{"address":"0x1","name":"type_info","friends":[],"exposed_functions":[{"name":"account_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::type_info::TypeInfo"],"return":["address"]},{"name":"module_name","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::type_info::TypeInfo"],"return":["vector<u8>"]},{"name":"struct_name","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::type_info::TypeInfo"],"return":["vector<u8>"]},{"name":"type_name","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::string::String"]},{"name":"type_of","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::type_info::TypeInfo"]}],"structs":[{"name":"TypeInfo","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"account_address","type":"address"},{"name":"module_name","type":"vector<u8>"},{"name":"struct_name","type":"vector<u8>"}]}]}'
2386
- );
2387
- }
2388
-
2389
- export namespace aggregator {
2390
- export class Aggregator {
2391
- static TYPE_QNAME = "0x1::aggregator::Aggregator";
2392
- handle: Address;
2393
- key: Address;
2394
- limit: bigint;
2395
- }
2396
-
2397
- export function loadTypes(_r: aptos.TypeRegistry) {
2398
- loadAllTypes(_r);
2399
- }
2400
- export const ABI: MoveModule = JSON.parse(
2401
- '{"address":"0x1","name":"aggregator","friends":[],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::aggregator::Aggregator","u128"],"return":[]},{"name":"destroy","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::aggregator::Aggregator"],"return":[]},{"name":"limit","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::aggregator::Aggregator"],"return":["u128"]},{"name":"read","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::aggregator::Aggregator"],"return":["u128"]},{"name":"sub","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::aggregator::Aggregator","u128"],"return":[]}],"structs":[{"name":"Aggregator","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"handle","type":"address"},{"name":"key","type":"address"},{"name":"limit","type":"u128"}]}]}'
2402
- );
2403
- }
2404
-
2405
- export class aptos_coin extends aptos.AptosBaseProcessor {
2406
- constructor(options: aptos.AptosBindOptions) {
2407
- super("aptos_coin", options);
2408
- }
2409
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
2410
- address: "0x1",
2411
- network: aptos.AptosNetwork.MAIN_NET,
2412
- };
2413
-
2414
- static bind(options: Partial<aptos.AptosBindOptions> = {}): aptos_coin {
2415
- return new aptos_coin({ ...aptos_coin.DEFAULT_OPTIONS, ...options });
2416
- }
2417
-
2418
- onEntryClaimMintCapability(
2419
- func: (
2420
- call: aptos_coin.ClaimMintCapabilityPayload,
2421
- ctx: aptos.AptosContext
2422
- ) => void,
2423
- filter?: aptos.CallFilter
2424
- ): aptos_coin {
2425
- this.onEntryFunctionCall(func, {
2426
- ...filter,
2427
- function: "aptos_coin::claim_mint_capability",
2428
- });
2429
- return this;
2430
- }
2431
-
2432
- onEntryDelegateMintCapability(
2433
- func: (
2434
- call: aptos_coin.DelegateMintCapabilityPayload,
2435
- ctx: aptos.AptosContext
2436
- ) => void,
2437
- filter?: aptos.CallFilter
2438
- ): aptos_coin {
2439
- this.onEntryFunctionCall(func, {
2440
- ...filter,
2441
- function: "aptos_coin::delegate_mint_capability",
2442
- });
2443
- return this;
2444
- }
2445
-
2446
- onEntryMint(
2447
- func: (call: aptos_coin.MintPayload, ctx: aptos.AptosContext) => void,
2448
- filter?: aptos.CallFilter
2449
- ): aptos_coin {
2450
- this.onEntryFunctionCall(func, {
2451
- ...filter,
2452
- function: "aptos_coin::mint",
2453
- });
2454
- return this;
2455
- }
2456
-
2457
- loadTypesInternal(registry: aptos.TypeRegistry) {
2458
- loadAllTypes(registry);
2459
- }
2460
- }
2461
-
2462
- export namespace aptos_coin {
2463
- export class AptosCoin {
2464
- static TYPE_QNAME = "0x1::aptos_coin::AptosCoin";
2465
- dummy_field: Boolean;
2466
- }
2467
-
2468
- export class DelegatedMintCapability {
2469
- static TYPE_QNAME = "0x1::aptos_coin::DelegatedMintCapability";
2470
- to: Address;
2471
- }
2472
-
2473
- export class Delegations {
2474
- static TYPE_QNAME = "0x1::aptos_coin::Delegations";
2475
- inner: aptos_coin.DelegatedMintCapability[];
2476
- }
2477
-
2478
- export class MintCapStore {
2479
- static TYPE_QNAME = "0x1::aptos_coin::MintCapStore";
2480
- mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
2481
- }
2482
-
2483
- export interface ClaimMintCapabilityPayload
2484
- extends aptos.TypedEntryFunctionPayload<[]> {
2485
- arguments_typed: [];
2486
- type_arguments: [];
2487
- }
2488
-
2489
- export interface DelegateMintCapabilityPayload
2490
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
2491
- arguments_typed: [Address, Address];
2492
- type_arguments: [];
2493
- }
2494
-
2495
- export interface MintPayload
2496
- extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
2497
- arguments_typed: [Address, bigint];
2498
- type_arguments: [];
2499
- }
2500
-
2501
- export function loadTypes(_r: aptos.TypeRegistry) {
2502
- loadAllTypes(_r);
2503
- }
2504
- export const ABI: MoveModule = JSON.parse(
2505
- '{"address":"0x1","name":"aptos_coin","friends":["0x1::genesis"],"exposed_functions":[{"name":"claim_mint_capability","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"configure_accounts_for_test","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","&signer","0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"],"return":[]},{"name":"delegate_mint_capability","visibility":"public","is_entry":true,"generic_type_params":[],"params":["signer","address"],"return":[]},{"name":"destroy_mint_cap","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"has_mint_capability","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["bool"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["0x1::coin::BurnCapability<0x1::aptos_coin::AptosCoin>","0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"]},{"name":"mint","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]}],"structs":[{"name":"AptosCoin","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"DelegatedMintCapability","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"to","type":"address"}]},{"name":"Delegations","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"inner","type":"vector<0x1::aptos_coin::DelegatedMintCapability>"}]},{"name":"MintCapStore","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"mint_cap","type":"0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"}]}]}'
2506
- );
2507
- }
2508
-
2509
- export namespace aptos_hash {
2510
- export function loadTypes(_r: aptos.TypeRegistry) {
2511
- loadAllTypes(_r);
2512
- }
2513
- export const ABI: MoveModule = JSON.parse(
2514
- '{"address":"0x1","name":"aptos_hash","friends":[],"exposed_functions":[{"name":"keccak256","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["vector<u8>"]},{"name":"sip_hash","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["u64"]},{"name":"sip_hash_from_value","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&T0"],"return":["u64"]}],"structs":[]}'
2515
- );
2516
- }
2517
-
2518
- export namespace bit_vector {
2519
- export class BitVector {
2520
- static TYPE_QNAME = "0x1::bit_vector::BitVector";
2521
- length: bigint;
2522
- bit_field: Boolean[];
2523
- }
2524
-
2525
- export function loadTypes(_r: aptos.TypeRegistry) {
2526
- loadAllTypes(_r);
2527
- }
2528
- export const ABI: MoveModule = JSON.parse(
2529
- '{"address":"0x1","name":"bit_vector","friends":[],"exposed_functions":[{"name":"is_index_set","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bit_vector::BitVector","u64"],"return":["bool"]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bit_vector::BitVector"],"return":["u64"]},{"name":"longest_set_sequence_starting_at","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::bit_vector::BitVector","u64"],"return":["u64"]},{"name":"new","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["0x1::bit_vector::BitVector"]},{"name":"set","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::bit_vector::BitVector","u64"],"return":[]},{"name":"shift_left","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::bit_vector::BitVector","u64"],"return":[]},{"name":"unset","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::bit_vector::BitVector","u64"],"return":[]}],"structs":[{"name":"BitVector","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"length","type":"u64"},{"name":"bit_field","type":"vector<bool>"}]}]}'
2530
- );
2531
- }
2532
-
2533
- export namespace capability {
2534
- export class Cap<T0> {
2535
- static TYPE_QNAME = "0x1::capability::Cap";
2536
- root: Address;
2537
- }
2538
-
2539
- export class CapDelegateState<T0> {
2540
- static TYPE_QNAME = "0x1::capability::CapDelegateState";
2541
- root: Address;
2542
- }
2543
-
2544
- export class CapState<T0> {
2545
- static TYPE_QNAME = "0x1::capability::CapState";
2546
- delegates: Address[];
2547
- }
2548
-
2549
- export class LinearCap<T0> {
2550
- static TYPE_QNAME = "0x1::capability::LinearCap";
2551
- root: Address;
2552
- }
2553
-
2554
- export function loadTypes(_r: aptos.TypeRegistry) {
2555
- loadAllTypes(_r);
2556
- }
2557
- export const ABI: MoveModule = JSON.parse(
2558
- '{"address":"0x1","name":"capability","friends":[],"exposed_functions":[{"name":"acquire","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","&T0"],"return":["0x1::capability::Cap<T0>"]},{"name":"acquire_linear","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","&T0"],"return":["0x1::capability::LinearCap<T0>"]},{"name":"create","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","&T0"],"return":[]},{"name":"delegate","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::capability::Cap<T0>","&T0","&signer"],"return":[]},{"name":"linear_root_addr","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::capability::LinearCap<T0>","&T0"],"return":["address"]},{"name":"revoke","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::capability::Cap<T0>","&T0","address"],"return":[]},{"name":"root_addr","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::capability::Cap<T0>","&T0"],"return":["address"]}],"structs":[{"name":"Cap","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"root","type":"address"}]},{"name":"CapDelegateState","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"root","type":"address"}]},{"name":"CapState","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"delegates","type":"vector<address>"}]},{"name":"LinearCap","is_native":false,"abilities":["drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"root","type":"address"}]}]}'
2559
- );
2560
- }
2561
-
2562
- export namespace comparator {
2563
- export class Result {
2564
- static TYPE_QNAME = "0x1::comparator::Result";
2565
- inner: number;
2566
- }
2567
-
2568
- export function loadTypes(_r: aptos.TypeRegistry) {
2569
- loadAllTypes(_r);
2570
- }
2571
- export const ABI: MoveModule = JSON.parse(
2572
- '{"address":"0x1","name":"comparator","friends":[],"exposed_functions":[{"name":"compare","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&T0","&T0"],"return":["0x1::comparator::Result"]},{"name":"compare_u8_vector","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>","vector<u8>"],"return":["0x1::comparator::Result"]},{"name":"is_equal","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::comparator::Result"],"return":["bool"]},{"name":"is_greater_than","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::comparator::Result"],"return":["bool"]},{"name":"is_smaller_than","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::comparator::Result"],"return":["bool"]}],"structs":[{"name":"Result","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"inner","type":"u8"}]}]}'
2573
- );
2574
- }
2575
-
2576
- export namespace simple_map {
2577
- export class Element<T0, T1> {
2578
- static TYPE_QNAME = "0x1::simple_map::Element";
2579
- key: T0;
2580
- value: T1;
2581
- }
2582
-
2583
- export class SimpleMap<T0, T1> {
2584
- static TYPE_QNAME = "0x1::simple_map::SimpleMap";
2585
- data: simple_map.Element<T0, T1>[];
2586
- }
2587
-
2588
- export function loadTypes(_r: aptos.TypeRegistry) {
2589
- loadAllTypes(_r);
2590
- }
2591
- export const ABI: MoveModule = JSON.parse(
2592
- '{"address":"0x1","name":"simple_map","friends":[],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["&mut 0x1::simple_map::SimpleMap<T0, T1>","T0","T1"],"return":[]},{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["&0x1::simple_map::SimpleMap<T0, T1>","&T0"],"return":["&T1"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["&mut 0x1::simple_map::SimpleMap<T0, T1>","&T0"],"return":["&mut T1"]},{"name":"contains_key","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["&0x1::simple_map::SimpleMap<T0, T1>","&T0"],"return":["bool"]},{"name":"create","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":[],"return":["0x1::simple_map::SimpleMap<T0, T1>"]},{"name":"destroy_empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["0x1::simple_map::SimpleMap<T0, T1>"],"return":[]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["&0x1::simple_map::SimpleMap<T0, T1>"],"return":["u64"]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]},{"constraints":["store"]}],"params":["&mut 0x1::simple_map::SimpleMap<T0, T1>","&T0"],"return":["T0","T1"]}],"structs":[{"name":"Element","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]},{"constraints":[]}],"fields":[{"name":"key","type":"T0"},{"name":"value","type":"T1"}]},{"name":"SimpleMap","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]},{"constraints":[]}],"fields":[{"name":"data","type":"vector<0x1::simple_map::Element<T0, T1>>"}]}]}'
2593
- );
2594
- }
2595
-
2596
- export namespace storage_gas {
2597
- export class GasCurve {
2598
- static TYPE_QNAME = "0x1::storage_gas::GasCurve";
2599
- min_gas: bigint;
2600
- max_gas: bigint;
2601
- points: storage_gas.Point[];
2602
- }
2603
-
2604
- export class Point {
2605
- static TYPE_QNAME = "0x1::storage_gas::Point";
2606
- x: bigint;
2607
- y: bigint;
2608
- }
2609
-
2610
- export class StorageGas {
2611
- static TYPE_QNAME = "0x1::storage_gas::StorageGas";
2612
- per_item_read: bigint;
2613
- per_item_create: bigint;
2614
- per_item_write: bigint;
2615
- per_byte_read: bigint;
2616
- per_byte_create: bigint;
2617
- per_byte_write: bigint;
2618
- }
2619
-
2620
- export class StorageGasConfig {
2621
- static TYPE_QNAME = "0x1::storage_gas::StorageGasConfig";
2622
- item_config: storage_gas.UsageGasConfig;
2623
- byte_config: storage_gas.UsageGasConfig;
2624
- }
2625
-
2626
- export class UsageGasConfig {
2627
- static TYPE_QNAME = "0x1::storage_gas::UsageGasConfig";
2628
- target_usage: bigint;
2629
- read_curve: storage_gas.GasCurve;
2630
- create_curve: storage_gas.GasCurve;
2631
- write_curve: storage_gas.GasCurve;
2632
- }
2633
-
2634
- export function loadTypes(_r: aptos.TypeRegistry) {
2635
- loadAllTypes(_r);
2636
- }
2637
- export const ABI: MoveModule = JSON.parse(
2638
- '{"address":"0x1","name":"storage_gas","friends":["0x1::gas_schedule","0x1::genesis","0x1::reconfiguration"],"exposed_functions":[{"name":"base_8192_exponential_curve","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["0x1::storage_gas::GasCurve"]},{"name":"initialize","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"new_gas_curve","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64","vector<0x1::storage_gas::Point>"],"return":["0x1::storage_gas::GasCurve"]},{"name":"new_point","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["0x1::storage_gas::Point"]},{"name":"new_storage_gas_config","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::storage_gas::UsageGasConfig","0x1::storage_gas::UsageGasConfig"],"return":["0x1::storage_gas::StorageGasConfig"]},{"name":"new_usage_gas_config","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","0x1::storage_gas::GasCurve","0x1::storage_gas::GasCurve","0x1::storage_gas::GasCurve"],"return":["0x1::storage_gas::UsageGasConfig"]},{"name":"on_reconfig","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":[]},{"name":"set_config","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::storage_gas::StorageGasConfig"],"return":[]}],"structs":[{"name":"GasCurve","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"min_gas","type":"u64"},{"name":"max_gas","type":"u64"},{"name":"points","type":"vector<0x1::storage_gas::Point>"}]},{"name":"Point","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"x","type":"u64"},{"name":"y","type":"u64"}]},{"name":"StorageGas","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"per_item_read","type":"u64"},{"name":"per_item_create","type":"u64"},{"name":"per_item_write","type":"u64"},{"name":"per_byte_read","type":"u64"},{"name":"per_byte_create","type":"u64"},{"name":"per_byte_write","type":"u64"}]},{"name":"StorageGasConfig","is_native":false,"abilities":["copy","drop","key"],"generic_type_params":[],"fields":[{"name":"item_config","type":"0x1::storage_gas::UsageGasConfig"},{"name":"byte_config","type":"0x1::storage_gas::UsageGasConfig"}]},{"name":"UsageGasConfig","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"target_usage","type":"u64"},{"name":"read_curve","type":"0x1::storage_gas::GasCurve"},{"name":"create_curve","type":"0x1::storage_gas::GasCurve"},{"name":"write_curve","type":"0x1::storage_gas::GasCurve"}]}]}'
2639
- );
2640
- }
2641
-
2642
- export namespace chain_status {
2643
- export class GenesisEndMarker {
2644
- static TYPE_QNAME = "0x1::chain_status::GenesisEndMarker";
2645
- dummy_field: Boolean;
2646
- }
2647
-
2648
- export function loadTypes(_r: aptos.TypeRegistry) {
2649
- loadAllTypes(_r);
2650
- }
2651
- export const ABI: MoveModule = JSON.parse(
2652
- '{"address":"0x1","name":"chain_status","friends":["0x1::genesis"],"exposed_functions":[{"name":"assert_genesis","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":[]},{"name":"assert_operating","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":[]},{"name":"is_genesis","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["bool"]},{"name":"is_operating","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["bool"]},{"name":"set_genesis_end","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]}],"structs":[{"name":"GenesisEndMarker","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]}]}'
2653
- );
2654
- }
2655
-
2656
- export namespace copyable_any {
2657
- export class Any {
2658
- static TYPE_QNAME = "0x1::copyable_any::Any";
2659
- type_name: string;
2660
- data: string;
2661
- }
2662
-
2663
- export function loadTypes(_r: aptos.TypeRegistry) {
2664
- loadAllTypes(_r);
2665
- }
2666
- export const ABI: MoveModule = JSON.parse(
2667
- '{"address":"0x1","name":"copyable_any","friends":[],"exposed_functions":[{"name":"pack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop","store"]}],"params":["T0"],"return":["0x1::copyable_any::Any"]},{"name":"type_name","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::copyable_any::Any"],"return":["&0x1::string::String"]},{"name":"unpack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::copyable_any::Any"],"return":["T0"]}],"structs":[{"name":"Any","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"type_name","type":"0x1::string::String"},{"name":"data","type":"vector<u8>"}]}]}'
2668
- );
2669
- }
2670
-
2671
- export namespace gas_schedule {
2672
- export class GasEntry {
2673
- static TYPE_QNAME = "0x1::gas_schedule::GasEntry";
2674
- key: string;
2675
- val: bigint;
2676
- }
2677
-
2678
- export class GasSchedule {
2679
- static TYPE_QNAME = "0x1::gas_schedule::GasSchedule";
2680
- entries: gas_schedule.GasEntry[];
2681
- }
2682
-
2683
- export class GasScheduleV2 {
2684
- static TYPE_QNAME = "0x1::gas_schedule::GasScheduleV2";
2685
- feature_version: bigint;
2686
- entries: gas_schedule.GasEntry[];
2687
- }
2688
-
2689
- export function loadTypes(_r: aptos.TypeRegistry) {
2690
- loadAllTypes(_r);
2691
- }
2692
- export const ABI: MoveModule = JSON.parse(
2693
- '{"address":"0x1","name":"gas_schedule","friends":["0x1::genesis"],"exposed_functions":[{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":[]},{"name":"set_gas_schedule","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":[]},{"name":"set_storage_gas_config","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::storage_gas::StorageGasConfig"],"return":[]}],"structs":[{"name":"GasEntry","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"key","type":"0x1::string::String"},{"name":"val","type":"u64"}]},{"name":"GasSchedule","is_native":false,"abilities":["copy","drop","key"],"generic_type_params":[],"fields":[{"name":"entries","type":"vector<0x1::gas_schedule::GasEntry>"}]},{"name":"GasScheduleV2","is_native":false,"abilities":["copy","drop","key"],"generic_type_params":[],"fields":[{"name":"feature_version","type":"u64"},{"name":"entries","type":"vector<0x1::gas_schedule::GasEntry>"}]}]}'
2694
- );
2695
- }
2696
-
2697
- export class managed_coin extends aptos.AptosBaseProcessor {
2698
- constructor(options: aptos.AptosBindOptions) {
2699
- super("managed_coin", options);
2700
- }
2701
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
2702
- address: "0x1",
2703
- network: aptos.AptosNetwork.MAIN_NET,
2704
- };
2705
-
2706
- static bind(options: Partial<aptos.AptosBindOptions> = {}): managed_coin {
2707
- return new managed_coin({ ...managed_coin.DEFAULT_OPTIONS, ...options });
2708
- }
2709
-
2710
- onEntryBurn(
2711
- func: (call: managed_coin.BurnPayload, ctx: aptos.AptosContext) => void,
2712
- filter?: aptos.CallFilter
2713
- ): managed_coin {
2714
- this.onEntryFunctionCall(func, {
2715
- ...filter,
2716
- function: "managed_coin::burn",
2717
- });
2718
- return this;
2719
- }
2720
-
2721
- onEntryInitialize(
2722
- func: (
2723
- call: managed_coin.InitializePayload,
2724
- ctx: aptos.AptosContext
2725
- ) => void,
2726
- filter?: aptos.CallFilter
2727
- ): managed_coin {
2728
- this.onEntryFunctionCall(func, {
2729
- ...filter,
2730
- function: "managed_coin::initialize",
2731
- });
2732
- return this;
2733
- }
2734
-
2735
- onEntryMint(
2736
- func: (call: managed_coin.MintPayload, ctx: aptos.AptosContext) => void,
2737
- filter?: aptos.CallFilter
2738
- ): managed_coin {
2739
- this.onEntryFunctionCall(func, {
2740
- ...filter,
2741
- function: "managed_coin::mint",
2742
- });
2743
- return this;
2744
- }
2745
-
2746
- onEntryRegister(
2747
- func: (call: managed_coin.RegisterPayload, ctx: aptos.AptosContext) => void,
2748
- filter?: aptos.CallFilter
2749
- ): managed_coin {
2750
- this.onEntryFunctionCall(func, {
2751
- ...filter,
2752
- function: "managed_coin::register",
2753
- });
2754
- return this;
2755
- }
2756
-
2757
- loadTypesInternal(registry: aptos.TypeRegistry) {
2758
- loadAllTypes(registry);
2759
- }
2760
- }
2761
-
2762
- export namespace managed_coin {
2763
- export class Capabilities<T0> {
2764
- static TYPE_QNAME = "0x1::managed_coin::Capabilities";
2765
- burn_cap: coin.BurnCapability<T0>;
2766
- freeze_cap: coin.FreezeCapability<T0>;
2767
- mint_cap: coin.MintCapability<T0>;
2768
- }
2769
-
2770
- export interface BurnPayload<T0 = any>
2771
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
2772
- arguments_typed: [bigint];
2773
- type_arguments: [string];
2774
- }
2775
-
2776
- export interface InitializePayload<T0 = any>
2777
- extends aptos.TypedEntryFunctionPayload<[string, string, number, Boolean]> {
2778
- arguments_typed: [string, string, number, Boolean];
2779
- type_arguments: [string];
2780
- }
2781
-
2782
- export interface MintPayload<T0 = any>
2783
- extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
2784
- arguments_typed: [Address, bigint];
2785
- type_arguments: [string];
2786
- }
2787
-
2788
- export interface RegisterPayload<T0 = any>
2789
- extends aptos.TypedEntryFunctionPayload<[]> {
2790
- arguments_typed: [];
2791
- type_arguments: [string];
2792
- }
2793
-
2794
- export function loadTypes(_r: aptos.TypeRegistry) {
2795
- loadAllTypes(_r);
2796
- }
2797
- export const ABI: MoveModule = JSON.parse(
2798
- '{"address":"0x1","name":"managed_coin","friends":[],"exposed_functions":[{"name":"burn","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64"],"return":[]},{"name":"initialize","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<u8>","vector<u8>","u8","bool"],"return":[]},{"name":"mint","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","u64"],"return":[]},{"name":"register","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer"],"return":[]}],"structs":[{"name":"Capabilities","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"burn_cap","type":"0x1::coin::BurnCapability<T0>"},{"name":"freeze_cap","type":"0x1::coin::FreezeCapability<T0>"},{"name":"mint_cap","type":"0x1::coin::MintCapability<T0>"}]}]}'
2799
- );
2800
- }
2801
-
2802
- export namespace ristretto255 {
2803
- export class CompressedRistretto {
2804
- static TYPE_QNAME = "0x1::ristretto255::CompressedRistretto";
2805
- data: string;
2806
- }
2807
-
2808
- export class RistrettoPoint {
2809
- static TYPE_QNAME = "0x1::ristretto255::RistrettoPoint";
2810
- handle: bigint;
2811
- }
2812
-
2813
- export class Scalar {
2814
- static TYPE_QNAME = "0x1::ristretto255::Scalar";
2815
- data: string;
2816
- }
2817
-
2818
- export function loadTypes(_r: aptos.TypeRegistry) {
2819
- loadAllTypes(_r);
2820
- }
2821
- export const ABI: MoveModule = JSON.parse(
2822
- '{"address":"0x1","name":"ristretto255","friends":[],"exposed_functions":[{"name":"basepoint","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"basepoint_compressed","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::ristretto255::CompressedRistretto"]},{"name":"basepoint_double_mul","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar","&0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"basepoint_mul","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"multi_scalar_mul","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&vector<0x1::ristretto255::RistrettoPoint>","&vector<0x1::ristretto255::Scalar>"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"new_compressed_point_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ristretto255::CompressedRistretto>"]},{"name":"new_point_from_64_uniform_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ristretto255::RistrettoPoint>"]},{"name":"new_point_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ristretto255::RistrettoPoint>"]},{"name":"new_point_from_sha512","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"new_scalar_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ristretto255::Scalar>"]},{"name":"new_scalar_from_sha512","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::ristretto255::Scalar"]},{"name":"new_scalar_from_u128","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128"],"return":["0x1::ristretto255::Scalar"]},{"name":"new_scalar_from_u64","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["0x1::ristretto255::Scalar"]},{"name":"new_scalar_from_u8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u8"],"return":["0x1::ristretto255::Scalar"]},{"name":"new_scalar_reduced_from_32_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ristretto255::Scalar>"]},{"name":"new_scalar_uniform_from_64_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ristretto255::Scalar>"]},{"name":"point_add","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::RistrettoPoint"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"point_add_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::RistrettoPoint"],"return":["&mut 0x1::ristretto255::RistrettoPoint"]},{"name":"point_compress","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::RistrettoPoint"],"return":["0x1::ristretto255::CompressedRistretto"]},{"name":"point_decompress","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::CompressedRistretto"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"point_equals","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::RistrettoPoint"],"return":["bool"]},{"name":"point_identity","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"point_identity_compressed","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::ristretto255::CompressedRistretto"]},{"name":"point_mul","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"point_mul_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::Scalar"],"return":["&mut 0x1::ristretto255::RistrettoPoint"]},{"name":"point_neg","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::RistrettoPoint"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"point_neg_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::RistrettoPoint"],"return":["&mut 0x1::ristretto255::RistrettoPoint"]},{"name":"point_sub","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::RistrettoPoint"],"return":["0x1::ristretto255::RistrettoPoint"]},{"name":"point_sub_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::RistrettoPoint","&0x1::ristretto255::RistrettoPoint"],"return":["&mut 0x1::ristretto255::RistrettoPoint"]},{"name":"point_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::CompressedRistretto"],"return":["vector<u8>"]},{"name":"scalar_add","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::Scalar"]},{"name":"scalar_add_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["&mut 0x1::ristretto255::Scalar"]},{"name":"scalar_equals","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["bool"]},{"name":"scalar_invert","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar"],"return":["0x1::option::Option<0x1::ristretto255::Scalar>"]},{"name":"scalar_is_one","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar"],"return":["bool"]},{"name":"scalar_is_zero","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar"],"return":["bool"]},{"name":"scalar_mul","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::Scalar"]},{"name":"scalar_mul_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["&mut 0x1::ristretto255::Scalar"]},{"name":"scalar_neg","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::Scalar"]},{"name":"scalar_neg_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::Scalar"],"return":["&mut 0x1::ristretto255::Scalar"]},{"name":"scalar_one","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::ristretto255::Scalar"]},{"name":"scalar_sub","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["0x1::ristretto255::Scalar"]},{"name":"scalar_sub_assign","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::ristretto255::Scalar","&0x1::ristretto255::Scalar"],"return":["&mut 0x1::ristretto255::Scalar"]},{"name":"scalar_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ristretto255::Scalar"],"return":["vector<u8>"]},{"name":"scalar_zero","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::ristretto255::Scalar"]}],"structs":[{"name":"CompressedRistretto","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"data","type":"vector<u8>"}]},{"name":"RistrettoPoint","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"handle","type":"u64"}]},{"name":"Scalar","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"data","type":"vector<u8>"}]}]}'
2823
- );
2824
- }
2825
-
2826
- export class aptos_account extends aptos.AptosBaseProcessor {
2827
- constructor(options: aptos.AptosBindOptions) {
2828
- super("aptos_account", options);
2829
- }
2830
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
2831
- address: "0x1",
2832
- network: aptos.AptosNetwork.MAIN_NET,
2833
- };
2834
-
2835
- static bind(options: Partial<aptos.AptosBindOptions> = {}): aptos_account {
2836
- return new aptos_account({ ...aptos_account.DEFAULT_OPTIONS, ...options });
2837
- }
2838
-
2839
- onEntryCreateAccount(
2840
- func: (
2841
- call: aptos_account.CreateAccountPayload,
2842
- ctx: aptos.AptosContext
2843
- ) => void,
2844
- filter?: aptos.CallFilter
2845
- ): aptos_account {
2846
- this.onEntryFunctionCall(func, {
2847
- ...filter,
2848
- function: "aptos_account::create_account",
2849
- });
2850
- return this;
2851
- }
2852
-
2853
- onEntryTransfer(
2854
- func: (
2855
- call: aptos_account.TransferPayload,
2856
- ctx: aptos.AptosContext
2857
- ) => void,
2858
- filter?: aptos.CallFilter
2859
- ): aptos_account {
2860
- this.onEntryFunctionCall(func, {
2861
- ...filter,
2862
- function: "aptos_account::transfer",
2863
- });
2864
- return this;
2865
- }
2866
-
2867
- loadTypesInternal(registry: aptos.TypeRegistry) {
2868
- loadAllTypes(registry);
2869
- }
2870
- }
2871
-
2872
- export namespace aptos_account {
2873
- export interface CreateAccountPayload
2874
- extends aptos.TypedEntryFunctionPayload<[Address]> {
2875
- arguments_typed: [Address];
2876
- type_arguments: [];
2877
- }
2878
-
2879
- export interface TransferPayload
2880
- extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
2881
- arguments_typed: [Address, bigint];
2882
- type_arguments: [];
2883
- }
2884
-
2885
- export function loadTypes(_r: aptos.TypeRegistry) {
2886
- loadAllTypes(_r);
2887
- }
2888
- export const ABI: MoveModule = JSON.parse(
2889
- '{"address":"0x1","name":"aptos_account","friends":["0x1::genesis","0x1::resource_account"],"exposed_functions":[{"name":"assert_account_exists","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":[]},{"name":"assert_account_is_registered_for_apt","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":[]},{"name":"create_account","visibility":"public","is_entry":true,"generic_type_params":[],"params":["address"],"return":[]},{"name":"transfer","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]}],"structs":[]}'
2890
- );
2891
- }
2892
-
2893
- export namespace fixed_point32 {
2894
- export class FixedPoint32 {
2895
- static TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
2896
- value: bigint;
2897
- }
2898
-
2899
- export function loadTypes(_r: aptos.TypeRegistry) {
2900
- loadAllTypes(_r);
2901
- }
2902
- export const ABI: MoveModule = JSON.parse(
2903
- '{"address":"0x1","name":"fixed_point32","friends":[],"exposed_functions":[{"name":"create_from_rational","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["0x1::fixed_point32::FixedPoint32"]},{"name":"create_from_raw_value","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["0x1::fixed_point32::FixedPoint32"]},{"name":"divide_u64","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","0x1::fixed_point32::FixedPoint32"],"return":["u64"]},{"name":"get_raw_value","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::fixed_point32::FixedPoint32"],"return":["u64"]},{"name":"is_zero","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::fixed_point32::FixedPoint32"],"return":["bool"]},{"name":"multiply_u64","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","0x1::fixed_point32::FixedPoint32"],"return":["u64"]}],"structs":[{"name":"FixedPoint32","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"value","type":"u64"}]}]}'
2904
- );
2905
- }
2906
-
2907
- export namespace multi_ed25519 {
2908
- export class Signature {
2909
- static TYPE_QNAME = "0x1::multi_ed25519::Signature";
2910
- bytes: string;
2911
- }
2912
-
2913
- export class UnvalidatedPublicKey {
2914
- static TYPE_QNAME = "0x1::multi_ed25519::UnvalidatedPublicKey";
2915
- bytes: string;
2916
- }
2917
-
2918
- export class ValidatedPublicKey {
2919
- static TYPE_QNAME = "0x1::multi_ed25519::ValidatedPublicKey";
2920
- bytes: string;
2921
- }
2922
-
2923
- export function loadTypes(_r: aptos.TypeRegistry) {
2924
- loadAllTypes(_r);
2925
- }
2926
- export const ABI: MoveModule = JSON.parse(
2927
- '{"address":"0x1","name":"multi_ed25519","friends":[],"exposed_functions":[{"name":"new_signature_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::multi_ed25519::Signature"]},{"name":"new_unvalidated_public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::multi_ed25519::UnvalidatedPublicKey"]},{"name":"new_validated_public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::multi_ed25519::ValidatedPublicKey>"]},{"name":"public_key_into_unvalidated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::multi_ed25519::ValidatedPublicKey"],"return":["0x1::multi_ed25519::UnvalidatedPublicKey"]},{"name":"public_key_to_unvalidated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::ValidatedPublicKey"],"return":["0x1::multi_ed25519::UnvalidatedPublicKey"]},{"name":"public_key_validate","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::UnvalidatedPublicKey"],"return":["0x1::option::Option<0x1::multi_ed25519::ValidatedPublicKey>"]},{"name":"signature_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::Signature"],"return":["vector<u8>"]},{"name":"signature_verify_strict","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::Signature","&0x1::multi_ed25519::UnvalidatedPublicKey","vector<u8>"],"return":["bool"]},{"name":"signature_verify_strict_t","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["&0x1::multi_ed25519::Signature","&0x1::multi_ed25519::UnvalidatedPublicKey","T0"],"return":["bool"]},{"name":"unvalidated_public_key_to_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::UnvalidatedPublicKey"],"return":["vector<u8>"]},{"name":"unvalidated_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::UnvalidatedPublicKey"],"return":["vector<u8>"]},{"name":"validated_public_key_to_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::ValidatedPublicKey"],"return":["vector<u8>"]},{"name":"validated_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::multi_ed25519::ValidatedPublicKey"],"return":["vector<u8>"]}],"structs":[{"name":"Signature","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"UnvalidatedPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"ValidatedPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
2928
- );
2929
- }
2930
-
2931
- export class staking_proxy extends aptos.AptosBaseProcessor {
2932
- constructor(options: aptos.AptosBindOptions) {
2933
- super("staking_proxy", options);
2934
- }
2935
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
2936
- address: "0x1",
2937
- network: aptos.AptosNetwork.MAIN_NET,
2938
- };
2939
-
2940
- static bind(options: Partial<aptos.AptosBindOptions> = {}): staking_proxy {
2941
- return new staking_proxy({ ...staking_proxy.DEFAULT_OPTIONS, ...options });
2942
- }
2943
-
2944
- onEntrySetOperator(
2945
- func: (
2946
- call: staking_proxy.SetOperatorPayload,
2947
- ctx: aptos.AptosContext
2948
- ) => void,
2949
- filter?: aptos.CallFilter
2950
- ): staking_proxy {
2951
- this.onEntryFunctionCall(func, {
2952
- ...filter,
2953
- function: "staking_proxy::set_operator",
2954
- });
2955
- return this;
2956
- }
2957
-
2958
- onEntrySetStakePoolOperator(
2959
- func: (
2960
- call: staking_proxy.SetStakePoolOperatorPayload,
2961
- ctx: aptos.AptosContext
2962
- ) => void,
2963
- filter?: aptos.CallFilter
2964
- ): staking_proxy {
2965
- this.onEntryFunctionCall(func, {
2966
- ...filter,
2967
- function: "staking_proxy::set_stake_pool_operator",
2968
- });
2969
- return this;
2970
- }
2971
-
2972
- onEntrySetStakePoolVoter(
2973
- func: (
2974
- call: staking_proxy.SetStakePoolVoterPayload,
2975
- ctx: aptos.AptosContext
2976
- ) => void,
2977
- filter?: aptos.CallFilter
2978
- ): staking_proxy {
2979
- this.onEntryFunctionCall(func, {
2980
- ...filter,
2981
- function: "staking_proxy::set_stake_pool_voter",
2982
- });
2983
- return this;
2984
- }
2985
-
2986
- onEntrySetStakingContractOperator(
2987
- func: (
2988
- call: staking_proxy.SetStakingContractOperatorPayload,
2989
- ctx: aptos.AptosContext
2990
- ) => void,
2991
- filter?: aptos.CallFilter
2992
- ): staking_proxy {
2993
- this.onEntryFunctionCall(func, {
2994
- ...filter,
2995
- function: "staking_proxy::set_staking_contract_operator",
2996
- });
2997
- return this;
2998
- }
2999
-
3000
- onEntrySetStakingContractVoter(
3001
- func: (
3002
- call: staking_proxy.SetStakingContractVoterPayload,
3003
- ctx: aptos.AptosContext
3004
- ) => void,
3005
- filter?: aptos.CallFilter
3006
- ): staking_proxy {
3007
- this.onEntryFunctionCall(func, {
3008
- ...filter,
3009
- function: "staking_proxy::set_staking_contract_voter",
3010
- });
3011
- return this;
3012
- }
3013
-
3014
- onEntrySetVestingContractOperator(
3015
- func: (
3016
- call: staking_proxy.SetVestingContractOperatorPayload,
3017
- ctx: aptos.AptosContext
3018
- ) => void,
3019
- filter?: aptos.CallFilter
3020
- ): staking_proxy {
3021
- this.onEntryFunctionCall(func, {
3022
- ...filter,
3023
- function: "staking_proxy::set_vesting_contract_operator",
3024
- });
3025
- return this;
3026
- }
3027
-
3028
- onEntrySetVestingContractVoter(
3029
- func: (
3030
- call: staking_proxy.SetVestingContractVoterPayload,
3031
- ctx: aptos.AptosContext
3032
- ) => void,
3033
- filter?: aptos.CallFilter
3034
- ): staking_proxy {
3035
- this.onEntryFunctionCall(func, {
3036
- ...filter,
3037
- function: "staking_proxy::set_vesting_contract_voter",
3038
- });
3039
- return this;
3040
- }
3041
-
3042
- onEntrySetVoter(
3043
- func: (
3044
- call: staking_proxy.SetVoterPayload,
3045
- ctx: aptos.AptosContext
3046
- ) => void,
3047
- filter?: aptos.CallFilter
3048
- ): staking_proxy {
3049
- this.onEntryFunctionCall(func, {
3050
- ...filter,
3051
- function: "staking_proxy::set_voter",
3052
- });
3053
- return this;
3054
- }
3055
-
3056
- loadTypesInternal(registry: aptos.TypeRegistry) {
3057
- loadAllTypes(registry);
3058
- }
3059
- }
3060
-
3061
- export namespace staking_proxy {
3062
- export interface SetOperatorPayload
3063
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3064
- arguments_typed: [Address, Address];
3065
- type_arguments: [];
3066
- }
3067
-
3068
- export interface SetStakePoolOperatorPayload
3069
- extends aptos.TypedEntryFunctionPayload<[Address]> {
3070
- arguments_typed: [Address];
3071
- type_arguments: [];
3072
- }
3073
-
3074
- export interface SetStakePoolVoterPayload
3075
- extends aptos.TypedEntryFunctionPayload<[Address]> {
3076
- arguments_typed: [Address];
3077
- type_arguments: [];
3078
- }
3079
-
3080
- export interface SetStakingContractOperatorPayload
3081
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3082
- arguments_typed: [Address, Address];
3083
- type_arguments: [];
3084
- }
3085
-
3086
- export interface SetStakingContractVoterPayload
3087
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3088
- arguments_typed: [Address, Address];
3089
- type_arguments: [];
3090
- }
3091
-
3092
- export interface SetVestingContractOperatorPayload
3093
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3094
- arguments_typed: [Address, Address];
3095
- type_arguments: [];
3096
- }
3097
-
3098
- export interface SetVestingContractVoterPayload
3099
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3100
- arguments_typed: [Address, Address];
3101
- type_arguments: [];
3102
- }
3103
-
3104
- export interface SetVoterPayload
3105
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3106
- arguments_typed: [Address, Address];
3107
- type_arguments: [];
3108
- }
3109
-
3110
- export function loadTypes(_r: aptos.TypeRegistry) {
3111
- loadAllTypes(_r);
3112
- }
3113
- export const ABI: MoveModule = JSON.parse(
3114
- '{"address":"0x1","name":"staking_proxy","friends":[],"exposed_functions":[{"name":"set_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"set_stake_pool_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_stake_pool_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_staking_contract_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"set_staking_contract_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"set_vesting_contract_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"set_vesting_contract_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"set_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]}],"structs":[]}'
3115
- );
3116
- }
3117
-
3118
- export namespace state_storage {
3119
- export class GasParameter {
3120
- static TYPE_QNAME = "0x1::state_storage::GasParameter";
3121
- usage: state_storage.Usage;
3122
- }
3123
-
3124
- export class StateStorageUsage {
3125
- static TYPE_QNAME = "0x1::state_storage::StateStorageUsage";
3126
- epoch: bigint;
3127
- usage: state_storage.Usage;
3128
- }
3129
-
3130
- export class Usage {
3131
- static TYPE_QNAME = "0x1::state_storage::Usage";
3132
- items: bigint;
3133
- bytes: bigint;
3134
- }
3135
-
3136
- export function loadTypes(_r: aptos.TypeRegistry) {
3137
- loadAllTypes(_r);
3138
- }
3139
- export const ABI: MoveModule = JSON.parse(
3140
- '{"address":"0x1","name":"state_storage","friends":["0x1::block","0x1::genesis","0x1::reconfiguration","0x1::storage_gas"],"exposed_functions":[{"name":"current_items_and_bytes","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":["u64","u64"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"on_new_block","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["u64"],"return":[]},{"name":"on_reconfig","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":[]}],"structs":[{"name":"GasParameter","is_native":false,"abilities":["store","key"],"generic_type_params":[],"fields":[{"name":"usage","type":"0x1::state_storage::Usage"}]},{"name":"StateStorageUsage","is_native":false,"abilities":["store","key"],"generic_type_params":[],"fields":[{"name":"epoch","type":"u64"},{"name":"usage","type":"0x1::state_storage::Usage"}]},{"name":"Usage","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"items","type":"u64"},{"name":"bytes","type":"u64"}]}]}'
3141
- );
3142
- }
3143
-
3144
- export namespace staking_config {
3145
- export class StakingConfig {
3146
- static TYPE_QNAME = "0x1::staking_config::StakingConfig";
3147
- minimum_stake: bigint;
3148
- maximum_stake: bigint;
3149
- recurring_lockup_duration_secs: bigint;
3150
- allow_validator_set_change: Boolean;
3151
- rewards_rate: bigint;
3152
- rewards_rate_denominator: bigint;
3153
- voting_power_increase_limit: bigint;
3154
- }
3155
-
3156
- export function loadTypes(_r: aptos.TypeRegistry) {
3157
- loadAllTypes(_r);
3158
- }
3159
- export const ABI: MoveModule = JSON.parse(
3160
- '{"address":"0x1","name":"staking_config","friends":["0x1::genesis"],"exposed_functions":[{"name":"get","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::staking_config::StakingConfig"]},{"name":"get_allow_validator_set_change","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::staking_config::StakingConfig"],"return":["bool"]},{"name":"get_recurring_lockup_duration","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::staking_config::StakingConfig"],"return":["u64"]},{"name":"get_required_stake","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::staking_config::StakingConfig"],"return":["u64","u64"]},{"name":"get_reward_rate","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::staking_config::StakingConfig"],"return":["u64","u64"]},{"name":"get_voting_power_increase_limit","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::staking_config::StakingConfig"],"return":["u64"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","u64","u64","u64","bool","u64","u64","u64"],"return":[]},{"name":"update_recurring_lockup_duration_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"update_required_stake","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u64","u64"],"return":[]},{"name":"update_rewards_rate","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u64","u64"],"return":[]},{"name":"update_voting_power_increase_limit","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]}],"structs":[{"name":"StakingConfig","is_native":false,"abilities":["copy","drop","key"],"generic_type_params":[],"fields":[{"name":"minimum_stake","type":"u64"},{"name":"maximum_stake","type":"u64"},{"name":"recurring_lockup_duration_secs","type":"u64"},{"name":"allow_validator_set_change","type":"bool"},{"name":"rewards_rate","type":"u64"},{"name":"rewards_rate_denominator","type":"u64"},{"name":"voting_power_increase_limit","type":"u64"}]}]}'
3161
- );
3162
- }
3163
-
3164
- export class reconfiguration extends aptos.AptosBaseProcessor {
3165
- constructor(options: aptos.AptosBindOptions) {
3166
- super("reconfiguration", options);
3167
- }
3168
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
3169
- address: "0x1",
3170
- network: aptos.AptosNetwork.MAIN_NET,
3171
- };
3172
-
3173
- static bind(options: Partial<aptos.AptosBindOptions> = {}): reconfiguration {
3174
- return new reconfiguration({
3175
- ...reconfiguration.DEFAULT_OPTIONS,
3176
- ...options,
3177
- });
3178
- }
3179
-
3180
- onEventNewEpochEvent(
3181
- func: (
3182
- event: reconfiguration.NewEpochEventInstance,
3183
- ctx: aptos.AptosContext
3184
- ) => void
3185
- ): reconfiguration {
3186
- this.onEvent(func, {
3187
- type: "reconfiguration::NewEpochEvent",
3188
- });
3189
- return this;
3190
- }
3191
-
3192
- loadTypesInternal(registry: aptos.TypeRegistry) {
3193
- loadAllTypes(registry);
3194
- }
3195
- }
3196
-
3197
- export namespace reconfiguration {
3198
- export class Configuration {
3199
- static TYPE_QNAME = "0x1::reconfiguration::Configuration";
3200
- epoch: bigint;
3201
- last_reconfiguration_time: bigint;
3202
- events: event.EventHandle<reconfiguration.NewEpochEvent>;
3203
- }
3204
-
3205
- export class DisableReconfiguration {
3206
- static TYPE_QNAME = "0x1::reconfiguration::DisableReconfiguration";
3207
- dummy_field: Boolean;
3208
- }
3209
-
3210
- export class NewEpochEvent {
3211
- static TYPE_QNAME = "0x1::reconfiguration::NewEpochEvent";
3212
- epoch: bigint;
3213
- }
3214
-
3215
- export interface NewEpochEventInstance
3216
- extends aptos.TypedEventInstance<NewEpochEvent> {
3217
- data_typed: NewEpochEvent;
3218
- type_arguments: [];
3219
- }
3220
-
3221
- export function loadTypes(_r: aptos.TypeRegistry) {
3222
- loadAllTypes(_r);
3223
- }
3224
- export const ABI: MoveModule = JSON.parse(
3225
- '{"address":"0x1","name":"reconfiguration","friends":["0x1::aptos_governance","0x1::block","0x1::consensus_config","0x1::features","0x1::gas_schedule","0x1::genesis","0x1::version"],"exposed_functions":[{"name":"current_epoch","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"last_reconfiguration_time","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"reconfigure","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":[]}],"structs":[{"name":"Configuration","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"epoch","type":"u64"},{"name":"last_reconfiguration_time","type":"u64"},{"name":"events","type":"0x1::event::EventHandle<0x1::reconfiguration::NewEpochEvent>"}]},{"name":"DisableReconfiguration","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"NewEpochEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"epoch","type":"u64"}]}]}'
3226
- );
3227
- }
3228
-
3229
- export namespace transaction_fee {
3230
- export class AptosCoinCapabilities {
3231
- static TYPE_QNAME = "0x1::transaction_fee::AptosCoinCapabilities";
3232
- burn_cap: coin.BurnCapability<aptos_coin.AptosCoin>;
3233
- }
3234
-
3235
- export function loadTypes(_r: aptos.TypeRegistry) {
3236
- loadAllTypes(_r);
3237
- }
3238
- export const ABI: MoveModule = JSON.parse(
3239
- '{"address":"0x1","name":"transaction_fee","friends":["0x1::genesis","0x1::transaction_validation"],"exposed_functions":[{"name":"burn_fee","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address","u64"],"return":[]},{"name":"store_aptos_coin_burn_cap","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::coin::BurnCapability<0x1::aptos_coin::AptosCoin>"],"return":[]}],"structs":[{"name":"AptosCoinCapabilities","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"burn_cap","type":"0x1::coin::BurnCapability<0x1::aptos_coin::AptosCoin>"}]}]}'
3240
- );
3241
- }
3242
-
3243
- export class aptos_governance extends aptos.AptosBaseProcessor {
3244
- constructor(options: aptos.AptosBindOptions) {
3245
- super("aptos_governance", options);
3246
- }
3247
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
3248
- address: "0x1",
3249
- network: aptos.AptosNetwork.MAIN_NET,
3250
- };
3251
-
3252
- static bind(options: Partial<aptos.AptosBindOptions> = {}): aptos_governance {
3253
- return new aptos_governance({
3254
- ...aptos_governance.DEFAULT_OPTIONS,
3255
- ...options,
3256
- });
3257
- }
3258
-
3259
- onEntryAddApprovedScriptHashScript(
3260
- func: (
3261
- call: aptos_governance.AddApprovedScriptHashScriptPayload,
3262
- ctx: aptos.AptosContext
3263
- ) => void,
3264
- filter?: aptos.CallFilter
3265
- ): aptos_governance {
3266
- this.onEntryFunctionCall(func, {
3267
- ...filter,
3268
- function: "aptos_governance::add_approved_script_hash_script",
3269
- });
3270
- return this;
3271
- }
3272
-
3273
- onEntryCreateProposal(
3274
- func: (
3275
- call: aptos_governance.CreateProposalPayload,
3276
- ctx: aptos.AptosContext
3277
- ) => void,
3278
- filter?: aptos.CallFilter
3279
- ): aptos_governance {
3280
- this.onEntryFunctionCall(func, {
3281
- ...filter,
3282
- function: "aptos_governance::create_proposal",
3283
- });
3284
- return this;
3285
- }
3286
-
3287
- onEntryVote(
3288
- func: (call: aptos_governance.VotePayload, ctx: aptos.AptosContext) => void,
3289
- filter?: aptos.CallFilter
3290
- ): aptos_governance {
3291
- this.onEntryFunctionCall(func, {
3292
- ...filter,
3293
- function: "aptos_governance::vote",
3294
- });
3295
- return this;
3296
- }
3297
-
3298
- onEventCreateProposalEvent(
3299
- func: (
3300
- event: aptos_governance.CreateProposalEventInstance,
3301
- ctx: aptos.AptosContext
3302
- ) => void
3303
- ): aptos_governance {
3304
- this.onEvent(func, {
3305
- type: "aptos_governance::CreateProposalEvent",
3306
- });
3307
- return this;
3308
- }
3309
-
3310
- onEventUpdateConfigEvent(
3311
- func: (
3312
- event: aptos_governance.UpdateConfigEventInstance,
3313
- ctx: aptos.AptosContext
3314
- ) => void
3315
- ): aptos_governance {
3316
- this.onEvent(func, {
3317
- type: "aptos_governance::UpdateConfigEvent",
3318
- });
3319
- return this;
3320
- }
3321
-
3322
- onEventVoteEvent(
3323
- func: (
3324
- event: aptos_governance.VoteEventInstance,
3325
- ctx: aptos.AptosContext
3326
- ) => void
3327
- ): aptos_governance {
3328
- this.onEvent(func, {
3329
- type: "aptos_governance::VoteEvent",
3330
- });
3331
- return this;
3332
- }
3333
-
3334
- loadTypesInternal(registry: aptos.TypeRegistry) {
3335
- loadAllTypes(registry);
3336
- }
3337
- }
3338
-
3339
- export namespace aptos_governance {
3340
- export class ApprovedExecutionHashes {
3341
- static TYPE_QNAME = "0x1::aptos_governance::ApprovedExecutionHashes";
3342
- hashes: simple_map.SimpleMap<bigint, string>;
3343
- }
3344
-
3345
- export class CreateProposalEvent {
3346
- static TYPE_QNAME = "0x1::aptos_governance::CreateProposalEvent";
3347
- proposer: Address;
3348
- stake_pool: Address;
3349
- proposal_id: bigint;
3350
- execution_hash: string;
3351
- proposal_metadata: simple_map.SimpleMap<string, string>;
3352
- }
3353
-
3354
- export interface CreateProposalEventInstance
3355
- extends aptos.TypedEventInstance<CreateProposalEvent> {
3356
- data_typed: CreateProposalEvent;
3357
- type_arguments: [];
3358
- }
3359
-
3360
- export class GovernanceConfig {
3361
- static TYPE_QNAME = "0x1::aptos_governance::GovernanceConfig";
3362
- min_voting_threshold: bigint;
3363
- required_proposer_stake: bigint;
3364
- voting_duration_secs: bigint;
3365
- }
3366
-
3367
- export class GovernanceEvents {
3368
- static TYPE_QNAME = "0x1::aptos_governance::GovernanceEvents";
3369
- create_proposal_events: event.EventHandle<aptos_governance.CreateProposalEvent>;
3370
- update_config_events: event.EventHandle<aptos_governance.UpdateConfigEvent>;
3371
- vote_events: event.EventHandle<aptos_governance.VoteEvent>;
3372
- }
3373
-
3374
- export class GovernanceResponsbility {
3375
- static TYPE_QNAME = "0x1::aptos_governance::GovernanceResponsbility";
3376
- signer_caps: simple_map.SimpleMap<Address, account.SignerCapability>;
3377
- }
3378
-
3379
- export class RecordKey {
3380
- static TYPE_QNAME = "0x1::aptos_governance::RecordKey";
3381
- stake_pool: Address;
3382
- proposal_id: bigint;
3383
- }
3384
-
3385
- export class UpdateConfigEvent {
3386
- static TYPE_QNAME = "0x1::aptos_governance::UpdateConfigEvent";
3387
- min_voting_threshold: bigint;
3388
- required_proposer_stake: bigint;
3389
- voting_duration_secs: bigint;
3390
- }
3391
-
3392
- export interface UpdateConfigEventInstance
3393
- extends aptos.TypedEventInstance<UpdateConfigEvent> {
3394
- data_typed: UpdateConfigEvent;
3395
- type_arguments: [];
3396
- }
3397
-
3398
- export class VoteEvent {
3399
- static TYPE_QNAME = "0x1::aptos_governance::VoteEvent";
3400
- proposal_id: bigint;
3401
- voter: Address;
3402
- stake_pool: Address;
3403
- num_votes: bigint;
3404
- should_pass: Boolean;
3405
- }
3406
-
3407
- export interface VoteEventInstance
3408
- extends aptos.TypedEventInstance<VoteEvent> {
3409
- data_typed: VoteEvent;
3410
- type_arguments: [];
3411
- }
3412
-
3413
- export class VotingRecords {
3414
- static TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
3415
- votes: table.Table<aptos_governance.RecordKey, Boolean>;
3416
- }
3417
-
3418
- export interface AddApprovedScriptHashScriptPayload
3419
- extends aptos.TypedEntryFunctionPayload<[bigint]> {
3420
- arguments_typed: [bigint];
3421
- type_arguments: [];
3422
- }
3423
-
3424
- export interface CreateProposalPayload
3425
- extends aptos.TypedEntryFunctionPayload<[Address, string, string, string]> {
3426
- arguments_typed: [Address, string, string, string];
3427
- type_arguments: [];
3428
- }
3429
-
3430
- export interface VotePayload
3431
- extends aptos.TypedEntryFunctionPayload<[Address, bigint, Boolean]> {
3432
- arguments_typed: [Address, bigint, Boolean];
3433
- type_arguments: [];
3434
- }
3435
-
3436
- export function loadTypes(_r: aptos.TypeRegistry) {
3437
- loadAllTypes(_r);
3438
- }
3439
- export const ABI: MoveModule = JSON.parse(
3440
- '{"address":"0x1","name":"aptos_governance","friends":[],"exposed_functions":[{"name":"add_approved_script_hash","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":[]},{"name":"add_approved_script_hash_script","visibility":"public","is_entry":true,"generic_type_params":[],"params":["u64"],"return":[]},{"name":"create_proposal","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<u8>","vector<u8>","vector<u8>"],"return":[]},{"name":"get_min_voting_threshold","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u128"]},{"name":"get_required_proposer_stake","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"get_signer_testnet_only","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":["signer"]},{"name":"get_voting_duration_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"reconfigure","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"remove_approved_hash","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":[]},{"name":"resolve","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","address"],"return":["signer"]},{"name":"store_signer_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address","0x1::account::SignerCapability"],"return":[]},{"name":"update_governance_config","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u128","u64","u64"],"return":[]},{"name":"vote","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","u64","bool"],"return":[]}],"structs":[{"name":"ApprovedExecutionHashes","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"hashes","type":"0x1::simple_map::SimpleMap<u64, vector<u8>>"}]},{"name":"CreateProposalEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposer","type":"address"},{"name":"stake_pool","type":"address"},{"name":"proposal_id","type":"u64"},{"name":"execution_hash","type":"vector<u8>"},{"name":"proposal_metadata","type":"0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"}]},{"name":"GovernanceConfig","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"min_voting_threshold","type":"u128"},{"name":"required_proposer_stake","type":"u64"},{"name":"voting_duration_secs","type":"u64"}]},{"name":"GovernanceEvents","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"create_proposal_events","type":"0x1::event::EventHandle<0x1::aptos_governance::CreateProposalEvent>"},{"name":"update_config_events","type":"0x1::event::EventHandle<0x1::aptos_governance::UpdateConfigEvent>"},{"name":"vote_events","type":"0x1::event::EventHandle<0x1::aptos_governance::VoteEvent>"}]},{"name":"GovernanceResponsbility","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"signer_caps","type":"0x1::simple_map::SimpleMap<address, 0x1::account::SignerCapability>"}]},{"name":"RecordKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"stake_pool","type":"address"},{"name":"proposal_id","type":"u64"}]},{"name":"UpdateConfigEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"min_voting_threshold","type":"u128"},{"name":"required_proposer_stake","type":"u64"},{"name":"voting_duration_secs","type":"u64"}]},{"name":"VoteEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"voter","type":"address"},{"name":"stake_pool","type":"address"},{"name":"num_votes","type":"u64"},{"name":"should_pass","type":"bool"}]},{"name":"VotingRecords","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"votes","type":"0x1::table::Table<0x1::aptos_governance::RecordKey, bool>"}]}]}'
3441
- );
3442
- }
3443
-
3444
- export namespace consensus_config {
3445
- export class ConsensusConfig {
3446
- static TYPE_QNAME = "0x1::consensus_config::ConsensusConfig";
3447
- config: string;
3448
- }
3449
-
3450
- export function loadTypes(_r: aptos.TypeRegistry) {
3451
- loadAllTypes(_r);
3452
- }
3453
- export const ABI: MoveModule = JSON.parse(
3454
- '{"address":"0x1","name":"consensus_config","friends":["0x1::genesis"],"exposed_functions":[{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":[]},{"name":"set","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":[]}],"structs":[{"name":"ConsensusConfig","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"config","type":"vector<u8>"}]}]}'
3455
- );
3456
- }
3457
-
3458
- export class resource_account extends aptos.AptosBaseProcessor {
3459
- constructor(options: aptos.AptosBindOptions) {
3460
- super("resource_account", options);
3461
- }
3462
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
3463
- address: "0x1",
3464
- network: aptos.AptosNetwork.MAIN_NET,
3465
- };
3466
-
3467
- static bind(options: Partial<aptos.AptosBindOptions> = {}): resource_account {
3468
- return new resource_account({
3469
- ...resource_account.DEFAULT_OPTIONS,
3470
- ...options,
3471
- });
3472
- }
3473
-
3474
- onEntryCreateResourceAccount(
3475
- func: (
3476
- call: resource_account.CreateResourceAccountPayload,
3477
- ctx: aptos.AptosContext
3478
- ) => void,
3479
- filter?: aptos.CallFilter
3480
- ): resource_account {
3481
- this.onEntryFunctionCall(func, {
3482
- ...filter,
3483
- function: "resource_account::create_resource_account",
3484
- });
3485
- return this;
3486
- }
3487
-
3488
- onEntryCreateResourceAccountAndFund(
3489
- func: (
3490
- call: resource_account.CreateResourceAccountAndFundPayload,
3491
- ctx: aptos.AptosContext
3492
- ) => void,
3493
- filter?: aptos.CallFilter
3494
- ): resource_account {
3495
- this.onEntryFunctionCall(func, {
3496
- ...filter,
3497
- function: "resource_account::create_resource_account_and_fund",
3498
- });
3499
- return this;
3500
- }
3501
-
3502
- onEntryCreateResourceAccountAndPublishPackage(
3503
- func: (
3504
- call: resource_account.CreateResourceAccountAndPublishPackagePayload,
3505
- ctx: aptos.AptosContext
3506
- ) => void,
3507
- filter?: aptos.CallFilter
3508
- ): resource_account {
3509
- this.onEntryFunctionCall(func, {
3510
- ...filter,
3511
- function: "resource_account::create_resource_account_and_publish_package",
3512
- });
3513
- return this;
3514
- }
3515
-
3516
- loadTypesInternal(registry: aptos.TypeRegistry) {
3517
- loadAllTypes(registry);
3518
- }
3519
- }
3520
-
3521
- export namespace resource_account {
3522
- export class Container {
3523
- static TYPE_QNAME = "0x1::resource_account::Container";
3524
- store: simple_map.SimpleMap<Address, account.SignerCapability>;
3525
- }
3526
-
3527
- export interface CreateResourceAccountPayload
3528
- extends aptos.TypedEntryFunctionPayload<[string, string]> {
3529
- arguments_typed: [string, string];
3530
- type_arguments: [];
3531
- }
3532
-
3533
- export interface CreateResourceAccountAndFundPayload
3534
- extends aptos.TypedEntryFunctionPayload<[string, string, bigint]> {
3535
- arguments_typed: [string, string, bigint];
3536
- type_arguments: [];
3537
- }
3538
-
3539
- export interface CreateResourceAccountAndPublishPackagePayload
3540
- extends aptos.TypedEntryFunctionPayload<[string, string, string[]]> {
3541
- arguments_typed: [string, string, string[]];
3542
- type_arguments: [];
3543
- }
3544
-
3545
- export function loadTypes(_r: aptos.TypeRegistry) {
3546
- loadAllTypes(_r);
3547
- }
3548
- export const ABI: MoveModule = JSON.parse(
3549
- '{"address":"0x1","name":"resource_account","friends":[],"exposed_functions":[{"name":"create_resource_account","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<u8>"],"return":[]},{"name":"create_resource_account_and_fund","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<u8>","u64"],"return":[]},{"name":"create_resource_account_and_publish_package","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<u8>","vector<vector<u8>>"],"return":[]},{"name":"retrieve_resource_account_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":["0x1::account::SignerCapability"]}],"structs":[{"name":"Container","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"store","type":"0x1::simple_map::SimpleMap<address, 0x1::account::SignerCapability>"}]}]}'
3550
- );
3551
- }
3552
-
3553
- export class staking_contract extends aptos.AptosBaseProcessor {
3554
- constructor(options: aptos.AptosBindOptions) {
3555
- super("staking_contract", options);
3556
- }
3557
- static DEFAULT_OPTIONS: aptos.AptosBindOptions = {
3558
- address: "0x1",
3559
- network: aptos.AptosNetwork.MAIN_NET,
3560
- };
3561
-
3562
- static bind(options: Partial<aptos.AptosBindOptions> = {}): staking_contract {
3563
- return new staking_contract({
3564
- ...staking_contract.DEFAULT_OPTIONS,
3565
- ...options,
3566
- });
3567
- }
3568
-
3569
- onEntryAddStake(
3570
- func: (
3571
- call: staking_contract.AddStakePayload,
3572
- ctx: aptos.AptosContext
3573
- ) => void,
3574
- filter?: aptos.CallFilter
3575
- ): staking_contract {
3576
- this.onEntryFunctionCall(func, {
3577
- ...filter,
3578
- function: "staking_contract::add_stake",
3579
- });
3580
- return this;
3581
- }
3582
-
3583
- onEntryCreateStakingContract(
3584
- func: (
3585
- call: staking_contract.CreateStakingContractPayload,
3586
- ctx: aptos.AptosContext
3587
- ) => void,
3588
- filter?: aptos.CallFilter
3589
- ): staking_contract {
3590
- this.onEntryFunctionCall(func, {
3591
- ...filter,
3592
- function: "staking_contract::create_staking_contract",
3593
- });
3594
- return this;
3595
- }
3596
-
3597
- onEntryDistribute(
3598
- func: (
3599
- call: staking_contract.DistributePayload,
3600
- ctx: aptos.AptosContext
3601
- ) => void,
3602
- filter?: aptos.CallFilter
3603
- ): staking_contract {
3604
- this.onEntryFunctionCall(func, {
3605
- ...filter,
3606
- function: "staking_contract::distribute",
3607
- });
3608
- return this;
3609
- }
3610
-
3611
- onEntryRequestCommission(
3612
- func: (
3613
- call: staking_contract.RequestCommissionPayload,
3614
- ctx: aptos.AptosContext
3615
- ) => void,
3616
- filter?: aptos.CallFilter
3617
- ): staking_contract {
3618
- this.onEntryFunctionCall(func, {
3619
- ...filter,
3620
- function: "staking_contract::request_commission",
3621
- });
3622
- return this;
3623
- }
3624
-
3625
- onEntryResetLockup(
3626
- func: (
3627
- call: staking_contract.ResetLockupPayload,
3628
- ctx: aptos.AptosContext
3629
- ) => void,
3630
- filter?: aptos.CallFilter
3631
- ): staking_contract {
3632
- this.onEntryFunctionCall(func, {
3633
- ...filter,
3634
- function: "staking_contract::reset_lockup",
3635
- });
3636
- return this;
3637
- }
3638
-
3639
- onEntrySwitchOperator(
3640
- func: (
3641
- call: staking_contract.SwitchOperatorPayload,
3642
- ctx: aptos.AptosContext
3643
- ) => void,
3644
- filter?: aptos.CallFilter
3645
- ): staking_contract {
3646
- this.onEntryFunctionCall(func, {
3647
- ...filter,
3648
- function: "staking_contract::switch_operator",
3649
- });
3650
- return this;
3651
- }
3652
-
3653
- onEntrySwitchOperatorWithSameCommission(
3654
- func: (
3655
- call: staking_contract.SwitchOperatorWithSameCommissionPayload,
3656
- ctx: aptos.AptosContext
3657
- ) => void,
3658
- filter?: aptos.CallFilter
3659
- ): staking_contract {
3660
- this.onEntryFunctionCall(func, {
3661
- ...filter,
3662
- function: "staking_contract::switch_operator_with_same_commission",
3663
- });
3664
- return this;
3665
- }
3666
-
3667
- onEntryUnlockRewards(
3668
- func: (
3669
- call: staking_contract.UnlockRewardsPayload,
3670
- ctx: aptos.AptosContext
3671
- ) => void,
3672
- filter?: aptos.CallFilter
3673
- ): staking_contract {
3674
- this.onEntryFunctionCall(func, {
3675
- ...filter,
3676
- function: "staking_contract::unlock_rewards",
3677
- });
3678
- return this;
3679
- }
3680
-
3681
- onEntryUnlockStake(
3682
- func: (
3683
- call: staking_contract.UnlockStakePayload,
3684
- ctx: aptos.AptosContext
3685
- ) => void,
3686
- filter?: aptos.CallFilter
3687
- ): staking_contract {
3688
- this.onEntryFunctionCall(func, {
3689
- ...filter,
3690
- function: "staking_contract::unlock_stake",
3691
- });
3692
- return this;
3693
- }
3694
-
3695
- onEntryUpdateVoter(
3696
- func: (
3697
- call: staking_contract.UpdateVoterPayload,
3698
- ctx: aptos.AptosContext
3699
- ) => void,
3700
- filter?: aptos.CallFilter
3701
- ): staking_contract {
3702
- this.onEntryFunctionCall(func, {
3703
- ...filter,
3704
- function: "staking_contract::update_voter",
3705
- });
3706
- return this;
3707
- }
3708
-
3709
- onEventCreateStakingContractEvent(
3710
- func: (
3711
- event: staking_contract.CreateStakingContractEventInstance,
3712
- ctx: aptos.AptosContext
3713
- ) => void
3714
- ): staking_contract {
3715
- this.onEvent(func, {
3716
- type: "staking_contract::CreateStakingContractEvent",
3717
- });
3718
- return this;
3719
- }
3720
-
3721
- onEventUpdateVoterEvent(
3722
- func: (
3723
- event: staking_contract.UpdateVoterEventInstance,
3724
- ctx: aptos.AptosContext
3725
- ) => void
3726
- ): staking_contract {
3727
- this.onEvent(func, {
3728
- type: "staking_contract::UpdateVoterEvent",
3729
- });
3730
- return this;
3731
- }
3732
-
3733
- onEventResetLockupEvent(
3734
- func: (
3735
- event: staking_contract.ResetLockupEventInstance,
3736
- ctx: aptos.AptosContext
3737
- ) => void
3738
- ): staking_contract {
3739
- this.onEvent(func, {
3740
- type: "staking_contract::ResetLockupEvent",
3741
- });
3742
- return this;
3743
- }
3744
-
3745
- onEventAddStakeEvent(
3746
- func: (
3747
- event: staking_contract.AddStakeEventInstance,
3748
- ctx: aptos.AptosContext
3749
- ) => void
3750
- ): staking_contract {
3751
- this.onEvent(func, {
3752
- type: "staking_contract::AddStakeEvent",
3753
- });
3754
- return this;
3755
- }
3756
-
3757
- onEventRequestCommissionEvent(
3758
- func: (
3759
- event: staking_contract.RequestCommissionEventInstance,
3760
- ctx: aptos.AptosContext
3761
- ) => void
3762
- ): staking_contract {
3763
- this.onEvent(func, {
3764
- type: "staking_contract::RequestCommissionEvent",
3765
- });
3766
- return this;
3767
- }
3768
-
3769
- onEventUnlockStakeEvent(
3770
- func: (
3771
- event: staking_contract.UnlockStakeEventInstance,
3772
- ctx: aptos.AptosContext
3773
- ) => void
3774
- ): staking_contract {
3775
- this.onEvent(func, {
3776
- type: "staking_contract::UnlockStakeEvent",
3777
- });
3778
- return this;
3779
- }
3780
-
3781
- onEventSwitchOperatorEvent(
3782
- func: (
3783
- event: staking_contract.SwitchOperatorEventInstance,
3784
- ctx: aptos.AptosContext
3785
- ) => void
3786
- ): staking_contract {
3787
- this.onEvent(func, {
3788
- type: "staking_contract::SwitchOperatorEvent",
3789
- });
3790
- return this;
3791
- }
3792
-
3793
- onEventAddDistributionEvent(
3794
- func: (
3795
- event: staking_contract.AddDistributionEventInstance,
3796
- ctx: aptos.AptosContext
3797
- ) => void
3798
- ): staking_contract {
3799
- this.onEvent(func, {
3800
- type: "staking_contract::AddDistributionEvent",
3801
- });
3802
- return this;
3803
- }
3804
-
3805
- onEventDistributeEvent(
3806
- func: (
3807
- event: staking_contract.DistributeEventInstance,
3808
- ctx: aptos.AptosContext
3809
- ) => void
3810
- ): staking_contract {
3811
- this.onEvent(func, {
3812
- type: "staking_contract::DistributeEvent",
3813
- });
3814
- return this;
3815
- }
3816
-
3817
- loadTypesInternal(registry: aptos.TypeRegistry) {
3818
- loadAllTypes(registry);
3819
- }
3820
- }
3821
-
3822
- export namespace staking_contract {
3823
- export class AddDistributionEvent {
3824
- static TYPE_QNAME = "0x1::staking_contract::AddDistributionEvent";
3825
- operator: Address;
3826
- pool_address: Address;
3827
- amount: bigint;
3828
- }
3829
-
3830
- export interface AddDistributionEventInstance
3831
- extends aptos.TypedEventInstance<AddDistributionEvent> {
3832
- data_typed: AddDistributionEvent;
3833
- type_arguments: [];
3834
- }
3835
-
3836
- export class AddStakeEvent {
3837
- static TYPE_QNAME = "0x1::staking_contract::AddStakeEvent";
3838
- operator: Address;
3839
- pool_address: Address;
3840
- amount: bigint;
3841
- }
3842
-
3843
- export interface AddStakeEventInstance
3844
- extends aptos.TypedEventInstance<AddStakeEvent> {
3845
- data_typed: AddStakeEvent;
3846
- type_arguments: [];
3847
- }
3848
-
3849
- export class CreateStakingContractEvent {
3850
- static TYPE_QNAME = "0x1::staking_contract::CreateStakingContractEvent";
3851
- operator: Address;
3852
- voter: Address;
3853
- pool_address: Address;
3854
- principal: bigint;
3855
- commission_percentage: bigint;
3856
- }
3857
-
3858
- export interface CreateStakingContractEventInstance
3859
- extends aptos.TypedEventInstance<CreateStakingContractEvent> {
3860
- data_typed: CreateStakingContractEvent;
3861
- type_arguments: [];
3862
- }
3863
-
3864
- export class DistributeEvent {
3865
- static TYPE_QNAME = "0x1::staking_contract::DistributeEvent";
3866
- operator: Address;
3867
- pool_address: Address;
3868
- recipient: Address;
3869
- amount: bigint;
3870
- }
3871
-
3872
- export interface DistributeEventInstance
3873
- extends aptos.TypedEventInstance<DistributeEvent> {
3874
- data_typed: DistributeEvent;
3875
- type_arguments: [];
3876
- }
3877
-
3878
- export class RequestCommissionEvent {
3879
- static TYPE_QNAME = "0x1::staking_contract::RequestCommissionEvent";
3880
- operator: Address;
3881
- pool_address: Address;
3882
- accumulated_rewards: bigint;
3883
- commission_amount: bigint;
3884
- }
3885
-
3886
- export interface RequestCommissionEventInstance
3887
- extends aptos.TypedEventInstance<RequestCommissionEvent> {
3888
- data_typed: RequestCommissionEvent;
3889
- type_arguments: [];
3890
- }
3891
-
3892
- export class ResetLockupEvent {
3893
- static TYPE_QNAME = "0x1::staking_contract::ResetLockupEvent";
3894
- operator: Address;
3895
- pool_address: Address;
3896
- }
3897
-
3898
- export interface ResetLockupEventInstance
3899
- extends aptos.TypedEventInstance<ResetLockupEvent> {
3900
- data_typed: ResetLockupEvent;
3901
- type_arguments: [];
3902
- }
3903
-
3904
- export class StakingContract {
3905
- static TYPE_QNAME = "0x1::staking_contract::StakingContract";
3906
- principal: bigint;
3907
- pool_address: Address;
3908
- owner_cap: stake.OwnerCapability;
3909
- commission_percentage: bigint;
3910
- distribution_pool: pool_u64.Pool;
3911
- signer_cap: account.SignerCapability;
3912
- }
3913
-
3914
- export class Store {
3915
- static TYPE_QNAME = "0x1::staking_contract::Store";
3916
- staking_contracts: simple_map.SimpleMap<
3917
- Address,
3918
- staking_contract.StakingContract
3919
- >;
3920
- create_staking_contract_events: event.EventHandle<staking_contract.CreateStakingContractEvent>;
3921
- update_voter_events: event.EventHandle<staking_contract.UpdateVoterEvent>;
3922
- reset_lockup_events: event.EventHandle<staking_contract.ResetLockupEvent>;
3923
- add_stake_events: event.EventHandle<staking_contract.AddStakeEvent>;
3924
- request_commission_events: event.EventHandle<staking_contract.RequestCommissionEvent>;
3925
- unlock_stake_events: event.EventHandle<staking_contract.UnlockStakeEvent>;
3926
- switch_operator_events: event.EventHandle<staking_contract.SwitchOperatorEvent>;
3927
- add_distribution_events: event.EventHandle<staking_contract.AddDistributionEvent>;
3928
- distribute_events: event.EventHandle<staking_contract.DistributeEvent>;
3929
- }
3930
-
3931
- export class SwitchOperatorEvent {
3932
- static TYPE_QNAME = "0x1::staking_contract::SwitchOperatorEvent";
3933
- old_operator: Address;
3934
- new_operator: Address;
3935
- pool_address: Address;
3936
- }
3937
-
3938
- export interface SwitchOperatorEventInstance
3939
- extends aptos.TypedEventInstance<SwitchOperatorEvent> {
3940
- data_typed: SwitchOperatorEvent;
3941
- type_arguments: [];
3942
- }
3943
-
3944
- export class UnlockStakeEvent {
3945
- static TYPE_QNAME = "0x1::staking_contract::UnlockStakeEvent";
3946
- operator: Address;
3947
- pool_address: Address;
3948
- amount: bigint;
3949
- commission_paid: bigint;
3950
- }
3951
-
3952
- export interface UnlockStakeEventInstance
3953
- extends aptos.TypedEventInstance<UnlockStakeEvent> {
3954
- data_typed: UnlockStakeEvent;
3955
- type_arguments: [];
3956
- }
3957
-
3958
- export class UpdateVoterEvent {
3959
- static TYPE_QNAME = "0x1::staking_contract::UpdateVoterEvent";
3960
- operator: Address;
3961
- pool_address: Address;
3962
- old_voter: Address;
3963
- new_voter: Address;
3964
- }
3965
-
3966
- export interface UpdateVoterEventInstance
3967
- extends aptos.TypedEventInstance<UpdateVoterEvent> {
3968
- data_typed: UpdateVoterEvent;
3969
- type_arguments: [];
3970
- }
3971
-
3972
- export interface AddStakePayload
3973
- extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
3974
- arguments_typed: [Address, bigint];
3975
- type_arguments: [];
3976
- }
3977
-
3978
- export interface CreateStakingContractPayload
3979
- extends aptos.TypedEntryFunctionPayload<
3980
- [Address, Address, bigint, bigint, string]
3981
- > {
3982
- arguments_typed: [Address, Address, bigint, bigint, string];
3983
- type_arguments: [];
3984
- }
3985
-
3986
- export interface DistributePayload
3987
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3988
- arguments_typed: [Address, Address];
3989
- type_arguments: [];
3990
- }
3991
-
3992
- export interface RequestCommissionPayload
3993
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
3994
- arguments_typed: [Address, Address];
3995
- type_arguments: [];
3996
- }
3997
-
3998
- export interface ResetLockupPayload
3999
- extends aptos.TypedEntryFunctionPayload<[Address]> {
4000
- arguments_typed: [Address];
4001
- type_arguments: [];
4002
- }
4003
-
4004
- export interface SwitchOperatorPayload
4005
- extends aptos.TypedEntryFunctionPayload<[Address, Address, bigint]> {
4006
- arguments_typed: [Address, Address, bigint];
4007
- type_arguments: [];
4008
- }
4009
-
4010
- export interface SwitchOperatorWithSameCommissionPayload
4011
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
4012
- arguments_typed: [Address, Address];
4013
- type_arguments: [];
4014
- }
4015
-
4016
- export interface UnlockRewardsPayload
4017
- extends aptos.TypedEntryFunctionPayload<[Address]> {
4018
- arguments_typed: [Address];
4019
- type_arguments: [];
4020
- }
4021
-
4022
- export interface UnlockStakePayload
4023
- extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
4024
- arguments_typed: [Address, bigint];
4025
- type_arguments: [];
4026
- }
4027
-
4028
- export interface UpdateVoterPayload
4029
- extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
4030
- arguments_typed: [Address, Address];
4031
- type_arguments: [];
4032
- }
4033
-
4034
- export function loadTypes(_r: aptos.TypeRegistry) {
4035
- loadAllTypes(_r);
4036
- }
4037
- export const ABI: MoveModule = JSON.parse(
4038
- '{"address":"0x1","name":"staking_contract","friends":[],"exposed_functions":[{"name":"add_stake","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]},{"name":"commission_percentage","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["u64"]},{"name":"create_staking_contract","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address","u64","u64","vector<u8>"],"return":[]},{"name":"create_staking_contract_with_coins","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address","address","0x1::coin::Coin<0x1::aptos_coin::AptosCoin>","u64","vector<u8>"],"return":["address"]},{"name":"distribute","visibility":"public","is_entry":true,"generic_type_params":[],"params":["address","address"],"return":[]},{"name":"last_recorded_principal","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["u64"]},{"name":"pending_distribution_counts","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["u64"]},{"name":"request_commission","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"reset_lockup","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"stake_pool_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["address"]},{"name":"staking_contract_amounts","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["u64","u64","u64"]},{"name":"staking_contract_exists","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","address"],"return":["bool"]},{"name":"switch_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address","u64"],"return":[]},{"name":"switch_operator_with_same_commission","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]},{"name":"unlock_rewards","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"unlock_stake","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","u64"],"return":[]},{"name":"update_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","address"],"return":[]}],"structs":[{"name":"AddDistributionEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"AddStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"CreateStakingContractEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"voter","type":"address"},{"name":"pool_address","type":"address"},{"name":"principal","type":"u64"},{"name":"commission_percentage","type":"u64"}]},{"name":"DistributeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"},{"name":"recipient","type":"address"},{"name":"amount","type":"u64"}]},{"name":"RequestCommissionEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"},{"name":"accumulated_rewards","type":"u64"},{"name":"commission_amount","type":"u64"}]},{"name":"ResetLockupEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"}]},{"name":"StakingContract","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"principal","type":"u64"},{"name":"pool_address","type":"address"},{"name":"owner_cap","type":"0x1::stake::OwnerCapability"},{"name":"commission_percentage","type":"u64"},{"name":"distribution_pool","type":"0x1::pool_u64::Pool"},{"name":"signer_cap","type":"0x1::account::SignerCapability"}]},{"name":"Store","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"staking_contracts","type":"0x1::simple_map::SimpleMap<address, 0x1::staking_contract::StakingContract>"},{"name":"create_staking_contract_events","type":"0x1::event::EventHandle<0x1::staking_contract::CreateStakingContractEvent>"},{"name":"update_voter_events","type":"0x1::event::EventHandle<0x1::staking_contract::UpdateVoterEvent>"},{"name":"reset_lockup_events","type":"0x1::event::EventHandle<0x1::staking_contract::ResetLockupEvent>"},{"name":"add_stake_events","type":"0x1::event::EventHandle<0x1::staking_contract::AddStakeEvent>"},{"name":"request_commission_events","type":"0x1::event::EventHandle<0x1::staking_contract::RequestCommissionEvent>"},{"name":"unlock_stake_events","type":"0x1::event::EventHandle<0x1::staking_contract::UnlockStakeEvent>"},{"name":"switch_operator_events","type":"0x1::event::EventHandle<0x1::staking_contract::SwitchOperatorEvent>"},{"name":"add_distribution_events","type":"0x1::event::EventHandle<0x1::staking_contract::AddDistributionEvent>"},{"name":"distribute_events","type":"0x1::event::EventHandle<0x1::staking_contract::DistributeEvent>"}]},{"name":"SwitchOperatorEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_operator","type":"address"},{"name":"new_operator","type":"address"},{"name":"pool_address","type":"address"}]},{"name":"UnlockStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"},{"name":"amount","type":"u64"},{"name":"commission_paid","type":"u64"}]},{"name":"UpdateVoterEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"operator","type":"address"},{"name":"pool_address","type":"address"},{"name":"old_voter","type":"address"},{"name":"new_voter","type":"address"}]}]}'
4039
- );
4040
- }
4041
-
4042
- export namespace system_addresses {
4043
- export function loadTypes(_r: aptos.TypeRegistry) {
4044
- loadAllTypes(_r);
4045
- }
4046
- export const ABI: MoveModule = JSON.parse(
4047
- '{"address":"0x1","name":"system_addresses","friends":[],"exposed_functions":[{"name":"assert_aptos_framework","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"assert_core_resource","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"assert_core_resource_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":[]},{"name":"assert_framework_reserved_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"assert_vm","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"is_aptos_framework_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"is_core_resource_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"is_framework_reserved_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"is_reserved_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"is_vm","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["bool"]},{"name":"is_vm_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]}],"structs":[]}'
4048
- );
4049
- }
4050
-
4051
- export namespace table_with_length {
4052
- export class TableWithLength<T0, T1> {
4053
- static TYPE_QNAME = "0x1::table_with_length::TableWithLength";
4054
- inner: table.Table<T0, T1>;
4055
- length: bigint;
4056
- }
4057
-
4058
- export function loadTypes(_r: aptos.TypeRegistry) {
4059
- loadAllTypes(_r);
4060
- }
4061
- export const ABI: MoveModule = JSON.parse(
4062
- '{"address":"0x1","name":"table_with_length","friends":[],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table_with_length::TableWithLength<T0, T1>","T0","T1"],"return":[]},{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table_with_length::TableWithLength<T0, T1>","T0"],"return":["&T1"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table_with_length::TableWithLength<T0, T1>","T0"],"return":["&mut T1"]},{"name":"borrow_mut_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["drop"]}],"params":["&mut 0x1::table_with_length::TableWithLength<T0, T1>","T0","T1"],"return":["&mut T1"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table_with_length::TableWithLength<T0, T1>","T0"],"return":["bool"]},{"name":"destroy_empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["0x1::table_with_length::TableWithLength<T0, T1>"],"return":[]},{"name":"empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table_with_length::TableWithLength<T0, T1>"],"return":["bool"]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table_with_length::TableWithLength<T0, T1>"],"return":["u64"]},{"name":"new","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["store"]}],"params":[],"return":["0x1::table_with_length::TableWithLength<T0, T1>"]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table_with_length::TableWithLength<T0, T1>","T0"],"return":["T1"]},{"name":"upsert","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["drop"]}],"params":["&mut 0x1::table_with_length::TableWithLength<T0, T1>","T0","T1"],"return":[]}],"structs":[{"name":"TableWithLength","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"fields":[{"name":"inner","type":"0x1::table::Table<T0, T1>"},{"name":"length","type":"u64"}]}]}'
4063
- );
4064
- }
4065
-
4066
- export namespace aggregator_factory {
4067
- export class AggregatorFactory {
4068
- static TYPE_QNAME = "0x1::aggregator_factory::AggregatorFactory";
4069
- phantom_table: table.Table<Address, bigint>;
4070
- }
4071
-
4072
- export function loadTypes(_r: aptos.TypeRegistry) {
4073
- loadAllTypes(_r);
4074
- }
4075
- export const ABI: MoveModule = JSON.parse(
4076
- '{"address":"0x1","name":"aggregator_factory","friends":["0x1::genesis","0x1::optional_aggregator"],"exposed_functions":[{"name":"create_aggregator","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u128"],"return":["0x1::aggregator::Aggregator"]},{"name":"create_aggregator_internal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["u128"],"return":["0x1::aggregator::Aggregator"]},{"name":"initialize_aggregator_factory","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]}],"structs":[{"name":"AggregatorFactory","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"phantom_table","type":"0x1::table::Table<address, u128>"}]}]}'
4077
- );
4078
- }
4079
-
4080
- export namespace governance_proposal {
4081
- export class GovernanceProposal {
4082
- static TYPE_QNAME = "0x1::governance_proposal::GovernanceProposal";
4083
- dummy_field: Boolean;
4084
- }
4085
-
4086
- export function loadTypes(_r: aptos.TypeRegistry) {
4087
- loadAllTypes(_r);
4088
- }
4089
- export const ABI: MoveModule = JSON.parse(
4090
- '{"address":"0x1","name":"governance_proposal","friends":["0x1::aptos_governance"],"exposed_functions":[{"name":"create_empty_proposal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::governance_proposal::GovernanceProposal"]},{"name":"create_proposal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::governance_proposal::GovernanceProposal"]}],"structs":[{"name":"GovernanceProposal","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]}]}'
4091
- );
4092
- }
4093
-
4094
- export namespace optional_aggregator {
4095
- export class Integer {
4096
- static TYPE_QNAME = "0x1::optional_aggregator::Integer";
4097
- value: bigint;
4098
- limit: bigint;
4099
- }
4100
-
4101
- export class OptionalAggregator {
4102
- static TYPE_QNAME = "0x1::optional_aggregator::OptionalAggregator";
4103
- aggregator: option.Option<aggregator.Aggregator>;
4104
- integer: option.Option<optional_aggregator.Integer>;
4105
- }
4106
-
4107
- export function loadTypes(_r: aptos.TypeRegistry) {
4108
- loadAllTypes(_r);
4109
- }
4110
- export const ABI: MoveModule = JSON.parse(
4111
- '{"address":"0x1","name":"optional_aggregator","friends":["0x1::coin"],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::optional_aggregator::OptionalAggregator","u128"],"return":[]},{"name":"destroy","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::optional_aggregator::OptionalAggregator"],"return":[]},{"name":"is_parallelizable","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::optional_aggregator::OptionalAggregator"],"return":["bool"]},{"name":"new","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["u128","bool"],"return":["0x1::optional_aggregator::OptionalAggregator"]},{"name":"read","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::optional_aggregator::OptionalAggregator"],"return":["u128"]},{"name":"sub","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::optional_aggregator::OptionalAggregator","u128"],"return":[]},{"name":"switch","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::optional_aggregator::OptionalAggregator"],"return":[]}],"structs":[{"name":"Integer","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"value","type":"u128"},{"name":"limit","type":"u128"}]},{"name":"OptionalAggregator","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"aggregator","type":"0x1::option::Option<0x1::aggregator::Aggregator>"},{"name":"integer","type":"0x1::option::Option<0x1::optional_aggregator::Integer>"}]}]}'
4112
- );
4113
- }
4114
-
4115
- export namespace transaction_context {
4116
- export function loadTypes(_r: aptos.TypeRegistry) {
4117
- loadAllTypes(_r);
4118
- }
4119
- export const ABI: MoveModule = JSON.parse(
4120
- '{"address":"0x1","name":"transaction_context","friends":[],"exposed_functions":[{"name":"get_script_hash","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["vector<u8>"]}],"structs":[]}'
4121
- );
4122
- }
4123
-
4124
- export namespace transaction_validation {
4125
- export class TransactionValidation {
4126
- static TYPE_QNAME = "0x1::transaction_validation::TransactionValidation";
4127
- module_addr: Address;
4128
- module_name: string;
4129
- script_prologue_name: string;
4130
- module_prologue_name: string;
4131
- multi_agent_prologue_name: string;
4132
- user_epilogue_name: string;
4133
- }
4134
-
4135
- export function loadTypes(_r: aptos.TypeRegistry) {
4136
- loadAllTypes(_r);
4137
- }
4138
- export const ABI: MoveModule = JSON.parse(
4139
- '{"address":"0x1","name":"transaction_validation","friends":["0x1::genesis"],"exposed_functions":[{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>","vector<u8>","vector<u8>","vector<u8>"],"return":[]}],"structs":[{"name":"TransactionValidation","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"module_addr","type":"address"},{"name":"module_name","type":"vector<u8>"},{"name":"script_prologue_name","type":"vector<u8>"},{"name":"module_prologue_name","type":"vector<u8>"},{"name":"multi_agent_prologue_name","type":"vector<u8>"},{"name":"user_epilogue_name","type":"vector<u8>"}]}]}'
4140
- );
4141
- }
4142
-
4143
- export function loadAllTypes(_r: aptos.TypeRegistry) {
4144
- _r.load(acl.ABI);
4145
- _r.load(any.ABI);
4146
- _r.load(bcs.ABI);
4147
- _r.load(code.ABI);
4148
- _r.load(coin.ABI);
4149
- _r.load(guid.ABI);
4150
- _r.load(hash.ABI);
4151
- _r.load(util.ABI);
4152
- _r.load(block.ABI);
4153
- _r.load(debug.ABI);
4154
- _r.load(error.ABI);
4155
- _r.load(event.ABI);
4156
- _r.load(stake.ABI);
4157
- _r.load(table.ABI);
4158
- _r.load(math64.ABI);
4159
- _r.load(option.ABI);
4160
- _r.load(signer.ABI);
4161
- _r.load(string.ABI);
4162
- _r.load(vector.ABI);
4163
- _r.load(voting.ABI);
4164
- _r.load(account.ABI);
4165
- _r.load(ed25519.ABI);
4166
- _r.load(genesis.ABI);
4167
- _r.load(math128.ABI);
4168
- _r.load(version.ABI);
4169
- _r.load(vesting.ABI);
4170
- _r.load(bls12381.ABI);
4171
- _r.load(chain_id.ABI);
4172
- _r.load(features.ABI);
4173
- _r.load(from_bcs.ABI);
4174
- _r.load(pool_u64.ABI);
4175
- _r.load(secp256k1.ABI);
4176
- _r.load(timestamp.ABI);
4177
- _r.load(type_info.ABI);
4178
- _r.load(aggregator.ABI);
4179
- _r.load(aptos_coin.ABI);
4180
- _r.load(aptos_hash.ABI);
4181
- _r.load(bit_vector.ABI);
4182
- _r.load(capability.ABI);
4183
- _r.load(comparator.ABI);
4184
- _r.load(simple_map.ABI);
4185
- _r.load(storage_gas.ABI);
4186
- _r.load(chain_status.ABI);
4187
- _r.load(copyable_any.ABI);
4188
- _r.load(gas_schedule.ABI);
4189
- _r.load(managed_coin.ABI);
4190
- _r.load(ristretto255.ABI);
4191
- _r.load(aptos_account.ABI);
4192
- _r.load(fixed_point32.ABI);
4193
- _r.load(multi_ed25519.ABI);
4194
- _r.load(staking_proxy.ABI);
4195
- _r.load(state_storage.ABI);
4196
- _r.load(staking_config.ABI);
4197
- _r.load(reconfiguration.ABI);
4198
- _r.load(transaction_fee.ABI);
4199
- _r.load(aptos_governance.ABI);
4200
- _r.load(consensus_config.ABI);
4201
- _r.load(resource_account.ABI);
4202
- _r.load(staking_contract.ABI);
4203
- _r.load(system_addresses.ABI);
4204
- _r.load(table_with_length.ABI);
4205
- _r.load(aggregator_factory.ABI);
4206
- _r.load(governance_proposal.ABI);
4207
- _r.load(optional_aggregator.ABI);
4208
- _r.load(transaction_context.ABI);
4209
- _r.load(transaction_validation.ABI);
4210
- }