@sentio/sdk 1.20.2 → 1.21.1

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