@sentio/sdk 1.26.2 → 1.26.4
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.
- package/lib/aptos/types.d.ts +2 -2
- package/lib/aptos/types.js +6 -6
- package/lib/aptos/types.js.map +1 -1
- package/lib/aptos-codegen/codegen.js +53 -15
- package/lib/aptos-codegen/codegen.js.map +1 -1
- package/lib/builtin/aptos/0x1.d.ts +260 -255
- package/lib/builtin/aptos/0x1.js +428 -422
- package/lib/builtin/aptos/0x1.js.map +1 -1
- package/lib/builtin/aptos/0x3.d.ts +39 -39
- package/lib/builtin/aptos/0x3.js +66 -66
- package/lib/builtin/aptos/0x3.js.map +1 -1
- package/lib/core/exporter.d.ts +4 -9
- package/lib/core/exporter.js +8 -8
- package/lib/core/exporter.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +2 -9
- package/lib/gen/processor/protos/processor.js +15 -54
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/service.js +2 -3
- package/lib/service.js.map +1 -1
- package/lib/tests/erc20.js +1 -5
- package/lib/tests/erc20.js.map +1 -1
- package/lib/tests/types/aptos/souffle.d.ts +16 -16
- package/lib/tests/types/aptos/souffle.js +26 -26
- package/lib/tests/types/aptos/souffle.js.map +1 -1
- package/package.json +1 -1
- package/src/aptos/types.ts +6 -6
- package/src/aptos-codegen/codegen.ts +64 -17
- package/src/builtin/aptos/0x1.ts +472 -454
- package/src/builtin/aptos/0x3.ts +78 -78
- package/src/core/exporter.ts +9 -14
- package/src/gen/processor/protos/processor.ts +15 -59
- package/src/service.ts +2 -3
- package/src/tests/erc20.ts +1 -5
- package/src/tests/types/aptos/souffle.ts +26 -26
package/src/builtin/aptos/0x1.ts
CHANGED
|
@@ -9,12 +9,12 @@ import { Address, MoveModule } from "aptos-sdk/src/generated";
|
|
|
9
9
|
|
|
10
10
|
export namespace acl {
|
|
11
11
|
export class ACL {
|
|
12
|
-
static
|
|
12
|
+
static TYPE_QNAME = "0x1::acl::ACL";
|
|
13
13
|
list: Address[];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export function loadTypes(
|
|
17
|
-
loadAllTypes(
|
|
16
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
17
|
+
loadAllTypes(_r);
|
|
18
18
|
}
|
|
19
19
|
export const ABI: MoveModule = JSON.parse(
|
|
20
20
|
'{"address":"0x1","name":"acl","friends":[],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::acl::ACL","address"],"return":[]},{"name":"assert_contains","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::acl::ACL","address"],"return":[]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::acl::ACL","address"],"return":["bool"]},{"name":"empty","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::acl::ACL"]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::acl::ACL","address"],"return":[]}],"structs":[{"name":"ACL","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"list","type":"vector<address>"}]}]}'
|
|
@@ -23,13 +23,13 @@ export namespace acl {
|
|
|
23
23
|
|
|
24
24
|
export namespace any {
|
|
25
25
|
export class Any {
|
|
26
|
-
static
|
|
26
|
+
static TYPE_QNAME = "0x1::any::Any";
|
|
27
27
|
type_name: string;
|
|
28
28
|
data: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export function loadTypes(
|
|
32
|
-
loadAllTypes(
|
|
31
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
32
|
+
loadAllTypes(_r);
|
|
33
33
|
}
|
|
34
34
|
export const ABI: MoveModule = JSON.parse(
|
|
35
35
|
'{"address":"0x1","name":"any","friends":["0x1::copyable_any"],"exposed_functions":[{"name":"pack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["T0"],"return":["0x1::any::Any"]},{"name":"type_name","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::any::Any"],"return":["&0x1::string::String"]},{"name":"unpack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::any::Any"],"return":["T0"]}],"structs":[{"name":"Any","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"type_name","type":"0x1::string::String"},{"name":"data","type":"vector<u8>"}]}]}'
|
|
@@ -37,8 +37,8 @@ export namespace any {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export namespace bcs {
|
|
40
|
-
export function loadTypes(
|
|
41
|
-
loadAllTypes(
|
|
40
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
41
|
+
loadAllTypes(_r);
|
|
42
42
|
}
|
|
43
43
|
export const ABI: MoveModule = JSON.parse(
|
|
44
44
|
'{"address":"0x1","name":"bcs","friends":[],"exposed_functions":[{"name":"to_bytes","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&T0"],"return":["vector<u8>"]}],"structs":[]}'
|
|
@@ -79,13 +79,13 @@ export class code extends aptos.AptosBaseProcessor {
|
|
|
79
79
|
|
|
80
80
|
export namespace code {
|
|
81
81
|
export class AllowedDep {
|
|
82
|
-
static
|
|
82
|
+
static TYPE_QNAME = "0x1::code::AllowedDep";
|
|
83
83
|
account: Address;
|
|
84
84
|
module_name: string;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export class ModuleMetadata {
|
|
88
|
-
static
|
|
88
|
+
static TYPE_QNAME = "0x1::code::ModuleMetadata";
|
|
89
89
|
name: string;
|
|
90
90
|
source: string;
|
|
91
91
|
source_map: string;
|
|
@@ -93,13 +93,13 @@ export namespace code {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export class PackageDep {
|
|
96
|
-
static
|
|
96
|
+
static TYPE_QNAME = "0x1::code::PackageDep";
|
|
97
97
|
account: Address;
|
|
98
98
|
package_name: string;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export class PackageMetadata {
|
|
102
|
-
static
|
|
102
|
+
static TYPE_QNAME = "0x1::code::PackageMetadata";
|
|
103
103
|
name: string;
|
|
104
104
|
upgrade_policy: code.UpgradePolicy;
|
|
105
105
|
upgrade_number: bigint;
|
|
@@ -111,12 +111,12 @@ export namespace code {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export class PackageRegistry {
|
|
114
|
-
static
|
|
114
|
+
static TYPE_QNAME = "0x1::code::PackageRegistry";
|
|
115
115
|
packages: code.PackageMetadata[];
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export class UpgradePolicy {
|
|
119
|
-
static
|
|
119
|
+
static TYPE_QNAME = "0x1::code::UpgradePolicy";
|
|
120
120
|
policy: number;
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -126,8 +126,8 @@ export namespace code {
|
|
|
126
126
|
type_arguments: [];
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
export function loadTypes(
|
|
130
|
-
loadAllTypes(
|
|
129
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
130
|
+
loadAllTypes(_r);
|
|
131
131
|
}
|
|
132
132
|
export const ABI: MoveModule = JSON.parse(
|
|
133
133
|
'{"address":"0x1","name":"code","friends":[],"exposed_functions":[{"name":"can_change_upgrade_policy_to","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::code::UpgradePolicy","0x1::code::UpgradePolicy"],"return":["bool"]},{"name":"publish_package","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::code::PackageMetadata","vector<vector<u8>>"],"return":[]},{"name":"publish_package_txn","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<vector<u8>>"],"return":[]},{"name":"upgrade_policy_arbitrary","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::code::UpgradePolicy"]},{"name":"upgrade_policy_compat","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::code::UpgradePolicy"]},{"name":"upgrade_policy_immutable","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["0x1::code::UpgradePolicy"]}],"structs":[{"name":"AllowedDep","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"module_name","type":"0x1::string::String"}]},{"name":"ModuleMetadata","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"name","type":"0x1::string::String"},{"name":"source","type":"vector<u8>"},{"name":"source_map","type":"vector<u8>"},{"name":"extension","type":"0x1::option::Option<0x1::copyable_any::Any>"}]},{"name":"PackageDep","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"package_name","type":"0x1::string::String"}]},{"name":"PackageMetadata","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"name","type":"0x1::string::String"},{"name":"upgrade_policy","type":"0x1::code::UpgradePolicy"},{"name":"upgrade_number","type":"u64"},{"name":"source_digest","type":"0x1::string::String"},{"name":"manifest","type":"vector<u8>"},{"name":"modules","type":"vector<0x1::code::ModuleMetadata>"},{"name":"deps","type":"vector<0x1::code::PackageDep>"},{"name":"extension","type":"0x1::option::Option<0x1::copyable_any::Any>"}]},{"name":"PackageRegistry","is_native":false,"abilities":["drop","store","key"],"generic_type_params":[],"fields":[{"name":"packages","type":"vector<0x1::code::PackageMetadata>"}]},{"name":"UpgradePolicy","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"policy","type":"u8"}]}]}'
|
|
@@ -219,17 +219,17 @@ export class coin extends aptos.AptosBaseProcessor {
|
|
|
219
219
|
|
|
220
220
|
export namespace coin {
|
|
221
221
|
export class BurnCapability<T0> {
|
|
222
|
-
static
|
|
222
|
+
static TYPE_QNAME = "0x1::coin::BurnCapability";
|
|
223
223
|
dummy_field: Boolean;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
export class Coin<T0> {
|
|
227
|
-
static
|
|
227
|
+
static TYPE_QNAME = "0x1::coin::Coin";
|
|
228
228
|
value: bigint;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
export class CoinInfo<T0> {
|
|
232
|
-
static
|
|
232
|
+
static TYPE_QNAME = "0x1::coin::CoinInfo";
|
|
233
233
|
name: string;
|
|
234
234
|
symbol: string;
|
|
235
235
|
decimals: number;
|
|
@@ -237,7 +237,7 @@ export namespace coin {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
export class CoinStore<T0> {
|
|
240
|
-
static
|
|
240
|
+
static TYPE_QNAME = "0x1::coin::CoinStore";
|
|
241
241
|
coin: coin.Coin<T0>;
|
|
242
242
|
frozen: Boolean;
|
|
243
243
|
deposit_events: event.EventHandle<coin.DepositEvent>;
|
|
@@ -245,7 +245,7 @@ export namespace coin {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
export class DepositEvent {
|
|
248
|
-
static
|
|
248
|
+
static TYPE_QNAME = "0x1::coin::DepositEvent";
|
|
249
249
|
amount: bigint;
|
|
250
250
|
}
|
|
251
251
|
|
|
@@ -256,22 +256,22 @@ export namespace coin {
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
export class FreezeCapability<T0> {
|
|
259
|
-
static
|
|
259
|
+
static TYPE_QNAME = "0x1::coin::FreezeCapability";
|
|
260
260
|
dummy_field: Boolean;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
export class MintCapability<T0> {
|
|
264
|
-
static
|
|
264
|
+
static TYPE_QNAME = "0x1::coin::MintCapability";
|
|
265
265
|
dummy_field: Boolean;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
export class SupplyConfig {
|
|
269
|
-
static
|
|
269
|
+
static TYPE_QNAME = "0x1::coin::SupplyConfig";
|
|
270
270
|
allow_upgrades: Boolean;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
export class WithdrawEvent {
|
|
274
|
-
static
|
|
274
|
+
static TYPE_QNAME = "0x1::coin::WithdrawEvent";
|
|
275
275
|
amount: bigint;
|
|
276
276
|
}
|
|
277
277
|
|
|
@@ -305,8 +305,8 @@ export namespace coin {
|
|
|
305
305
|
type_arguments: [string];
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
export function loadTypes(
|
|
309
|
-
loadAllTypes(
|
|
308
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
309
|
+
loadAllTypes(_r);
|
|
310
310
|
}
|
|
311
311
|
export const ABI: MoveModule = JSON.parse(
|
|
312
312
|
'{"address":"0x1","name":"coin","friends":["0x1::aptos_coin","0x1::genesis"],"exposed_functions":[{"name":"allow_supply_upgrades","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","bool"],"return":[]},{"name":"balance","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address"],"return":["u64"]},{"name":"burn","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::Coin<T0>","&0x1::coin::BurnCapability<T0>"],"return":[]},{"name":"burn_from","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","u64","&0x1::coin::BurnCapability<T0>"],"return":[]},{"name":"decimals","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["u8"]},{"name":"deposit","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x1::coin::Coin<T0>"],"return":[]},{"name":"destroy_burn_cap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::BurnCapability<T0>"],"return":[]},{"name":"destroy_freeze_cap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::FreezeCapability<T0>"],"return":[]},{"name":"destroy_mint_cap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::MintCapability<T0>"],"return":[]},{"name":"destroy_zero","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::coin::Coin<T0>"],"return":[]},{"name":"extract","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::coin::Coin<T0>","u64"],"return":["0x1::coin::Coin<T0>"]},{"name":"extract_all","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::coin::Coin<T0>"],"return":["0x1::coin::Coin<T0>"]},{"name":"freeze_coin_store","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["address","&0x1::coin::FreezeCapability<T0>"],"return":[]},{"name":"initialize","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String","0x1::string::String","u8","bool"],"return":["0x1::coin::BurnCapability<T0>","0x1::coin::FreezeCapability<T0>","0x1::coin::MintCapability<T0>"]},{"name":"initialize_supply_config","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"initialize_with_parallelizable_supply","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String","0x1::string::String","u8","bool"],"return":["0x1::coin::BurnCapability<T0>","0x1::coin::FreezeCapability<T0>","0x1::coin::MintCapability<T0>"]},{"name":"is_account_registered","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address"],"return":["bool"]},{"name":"is_coin_initialized","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["bool"]},{"name":"merge","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::coin::Coin<T0>","0x1::coin::Coin<T0>"],"return":[]},{"name":"mint","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["u64","&0x1::coin::MintCapability<T0>"],"return":["0x1::coin::Coin<T0>"]},{"name":"name","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::string::String"]},{"name":"register","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer"],"return":[]},{"name":"supply","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::option::Option<u128>"]},{"name":"symbol","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::string::String"]},{"name":"transfer","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","u64"],"return":[]},{"name":"unfreeze_coin_store","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["address","&0x1::coin::FreezeCapability<T0>"],"return":[]},{"name":"upgrade_supply","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer"],"return":[]},{"name":"value","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::coin::Coin<T0>"],"return":["u64"]},{"name":"withdraw","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64"],"return":["0x1::coin::Coin<T0>"]},{"name":"zero","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::coin::Coin<T0>"]}],"structs":[{"name":"BurnCapability","is_native":false,"abilities":["copy","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"Coin","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"value","type":"u64"}]},{"name":"CoinInfo","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"name","type":"0x1::string::String"},{"name":"symbol","type":"0x1::string::String"},{"name":"decimals","type":"u8"},{"name":"supply","type":"0x1::option::Option<0x1::optional_aggregator::OptionalAggregator>"}]},{"name":"CoinStore","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"coin","type":"0x1::coin::Coin<T0>"},{"name":"frozen","type":"bool"},{"name":"deposit_events","type":"0x1::event::EventHandle<0x1::coin::DepositEvent>"},{"name":"withdraw_events","type":"0x1::event::EventHandle<0x1::coin::WithdrawEvent>"}]},{"name":"DepositEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"amount","type":"u64"}]},{"name":"FreezeCapability","is_native":false,"abilities":["copy","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"MintCapability","is_native":false,"abilities":["copy","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"SupplyConfig","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"allow_upgrades","type":"bool"}]},{"name":"WithdrawEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"amount","type":"u64"}]}]}'
|
|
@@ -315,18 +315,18 @@ export namespace coin {
|
|
|
315
315
|
|
|
316
316
|
export namespace guid {
|
|
317
317
|
export class GUID {
|
|
318
|
-
static
|
|
318
|
+
static TYPE_QNAME = "0x1::guid::GUID";
|
|
319
319
|
id: guid.ID;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
export class ID {
|
|
323
|
-
static
|
|
323
|
+
static TYPE_QNAME = "0x1::guid::ID";
|
|
324
324
|
creation_num: bigint;
|
|
325
325
|
addr: Address;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
export function loadTypes(
|
|
329
|
-
loadAllTypes(
|
|
328
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
329
|
+
loadAllTypes(_r);
|
|
330
330
|
}
|
|
331
331
|
export const ABI: MoveModule = JSON.parse(
|
|
332
332
|
'{"address":"0x1","name":"guid","friends":["0x1::account"],"exposed_functions":[{"name":"create","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address","&mut u64"],"return":["0x1::guid::GUID"]},{"name":"create_id","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address","u64"],"return":["0x1::guid::ID"]},{"name":"creation_num","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID"],"return":["u64"]},{"name":"creator_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID"],"return":["address"]},{"name":"eq_id","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID","&0x1::guid::ID"],"return":["bool"]},{"name":"id","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::GUID"],"return":["0x1::guid::ID"]},{"name":"id_creation_num","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::ID"],"return":["u64"]},{"name":"id_creator_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::guid::ID"],"return":["address"]}],"structs":[{"name":"GUID","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x1::guid::ID"}]},{"name":"ID","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"creation_num","type":"u64"},{"name":"addr","type":"address"}]}]}'
|
|
@@ -334,8 +334,8 @@ export namespace guid {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
export namespace hash {
|
|
337
|
-
export function loadTypes(
|
|
338
|
-
loadAllTypes(
|
|
337
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
338
|
+
loadAllTypes(_r);
|
|
339
339
|
}
|
|
340
340
|
export const ABI: MoveModule = JSON.parse(
|
|
341
341
|
'{"address":"0x1","name":"hash","friends":[],"exposed_functions":[{"name":"sha2_256","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["vector<u8>"]},{"name":"sha3_256","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["vector<u8>"]}],"structs":[]}'
|
|
@@ -343,8 +343,8 @@ export namespace hash {
|
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
export namespace util {
|
|
346
|
-
export function loadTypes(
|
|
347
|
-
loadAllTypes(
|
|
346
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
347
|
+
loadAllTypes(_r);
|
|
348
348
|
}
|
|
349
349
|
export const ABI: MoveModule = JSON.parse(
|
|
350
350
|
'{"address":"0x1","name":"util","friends":["0x1::code","0x1::gas_schedule"],"exposed_functions":[{"name":"address_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["address"]},{"name":"from_bytes","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["vector<u8>"],"return":["T0"]}],"structs":[]}'
|
|
@@ -392,7 +392,7 @@ export class block extends aptos.AptosBaseProcessor {
|
|
|
392
392
|
|
|
393
393
|
export namespace block {
|
|
394
394
|
export class BlockResource {
|
|
395
|
-
static
|
|
395
|
+
static TYPE_QNAME = "0x1::block::BlockResource";
|
|
396
396
|
height: bigint;
|
|
397
397
|
epoch_interval: bigint;
|
|
398
398
|
new_block_events: event.EventHandle<block.NewBlockEvent>;
|
|
@@ -400,7 +400,7 @@ export namespace block {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
export class NewBlockEvent {
|
|
403
|
-
static
|
|
403
|
+
static TYPE_QNAME = "0x1::block::NewBlockEvent";
|
|
404
404
|
hash: Address;
|
|
405
405
|
epoch: bigint;
|
|
406
406
|
round: bigint;
|
|
@@ -418,7 +418,7 @@ export namespace block {
|
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
export class UpdateEpochIntervalEvent {
|
|
421
|
-
static
|
|
421
|
+
static TYPE_QNAME = "0x1::block::UpdateEpochIntervalEvent";
|
|
422
422
|
old_epoch_interval: bigint;
|
|
423
423
|
new_epoch_interval: bigint;
|
|
424
424
|
}
|
|
@@ -429,8 +429,8 @@ export namespace block {
|
|
|
429
429
|
type_arguments: [];
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
export function loadTypes(
|
|
433
|
-
loadAllTypes(
|
|
432
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
433
|
+
loadAllTypes(_r);
|
|
434
434
|
}
|
|
435
435
|
export const ABI: MoveModule = JSON.parse(
|
|
436
436
|
'{"address":"0x1","name":"block","friends":["0x1::genesis"],"exposed_functions":[{"name":"emit_writeset_block_event","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"get_current_block_height","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"get_epoch_interval_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":["u64"]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"update_epoch_interval_microsecs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]}],"structs":[{"name":"BlockResource","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"height","type":"u64"},{"name":"epoch_interval","type":"u64"},{"name":"new_block_events","type":"0x1::event::EventHandle<0x1::block::NewBlockEvent>"},{"name":"update_epoch_interval_events","type":"0x1::event::EventHandle<0x1::block::UpdateEpochIntervalEvent>"}]},{"name":"NewBlockEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"hash","type":"address"},{"name":"epoch","type":"u64"},{"name":"round","type":"u64"},{"name":"height","type":"u64"},{"name":"previous_block_votes_bitvec","type":"vector<u8>"},{"name":"proposer","type":"address"},{"name":"failed_proposer_indices","type":"vector<u64>"},{"name":"time_microseconds","type":"u64"}]},{"name":"UpdateEpochIntervalEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_epoch_interval","type":"u64"},{"name":"new_epoch_interval","type":"u64"}]}]}'
|
|
@@ -438,8 +438,8 @@ export namespace block {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
export namespace debug {
|
|
441
|
-
export function loadTypes(
|
|
442
|
-
loadAllTypes(
|
|
441
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
442
|
+
loadAllTypes(_r);
|
|
443
443
|
}
|
|
444
444
|
export const ABI: MoveModule = JSON.parse(
|
|
445
445
|
'{"address":"0x1","name":"debug","friends":[],"exposed_functions":[{"name":"print","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&T0"],"return":[]},{"name":"print_stack_trace","visibility":"public","is_entry":false,"generic_type_params":[],"params":[],"return":[]}],"structs":[]}'
|
|
@@ -447,8 +447,8 @@ export namespace debug {
|
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
export namespace error {
|
|
450
|
-
export function loadTypes(
|
|
451
|
-
loadAllTypes(
|
|
450
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
451
|
+
loadAllTypes(_r);
|
|
452
452
|
}
|
|
453
453
|
export const ABI: MoveModule = JSON.parse(
|
|
454
454
|
'{"address":"0x1","name":"error","friends":[],"exposed_functions":[{"name":"aborted","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"already_exists","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"canonical","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"internal","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"invalid_argument","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"invalid_state","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"not_found","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"not_implemented","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"out_of_range","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"permission_denied","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"resource_exhausted","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"unauthenticated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]},{"name":"unavailable","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64"]}],"structs":[]}'
|
|
@@ -457,13 +457,13 @@ export namespace error {
|
|
|
457
457
|
|
|
458
458
|
export namespace event {
|
|
459
459
|
export class EventHandle<T0> {
|
|
460
|
-
static
|
|
460
|
+
static TYPE_QNAME = "0x1::event::EventHandle";
|
|
461
461
|
counter: bigint;
|
|
462
462
|
guid: guid.GUID;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
export function loadTypes(
|
|
466
|
-
loadAllTypes(
|
|
465
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
466
|
+
loadAllTypes(_r);
|
|
467
467
|
}
|
|
468
468
|
export const ABI: MoveModule = JSON.parse(
|
|
469
469
|
'{"address":"0x1","name":"event","friends":["0x1::account"],"exposed_functions":[{"name":"counter","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&0x1::event::EventHandle<T0>"],"return":["u64"]},{"name":"destroy_handle","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["0x1::event::EventHandle<T0>"],"return":[]},{"name":"emit_event","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&mut 0x1::event::EventHandle<T0>","T0"],"return":[]},{"name":"guid","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&0x1::event::EventHandle<T0>"],"return":["&0x1::guid::GUID"]},{"name":"new_event_handle","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["0x1::guid::GUID"],"return":["0x1::event::EventHandle<T0>"]}],"structs":[{"name":"EventHandle","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["drop","store"]}],"fields":[{"name":"counter","type":"u64"},{"name":"guid","type":"0x1::guid::GUID"}]}]}'
|
|
@@ -647,107 +647,107 @@ export class stake extends aptos.AptosBaseProcessor {
|
|
|
647
647
|
return this;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
|
|
651
|
-
func: (
|
|
650
|
+
onEventRegisterValidatorCandidateEvent(
|
|
651
|
+
func: (
|
|
652
|
+
event: stake.RegisterValidatorCandidateEventInstance,
|
|
653
|
+
ctx: aptos.AptosContext
|
|
654
|
+
) => void
|
|
652
655
|
): stake {
|
|
653
656
|
this.onEvent(func, {
|
|
654
|
-
type: "stake::
|
|
657
|
+
type: "stake::RegisterValidatorCandidateEvent",
|
|
655
658
|
});
|
|
656
659
|
return this;
|
|
657
660
|
}
|
|
658
661
|
|
|
659
|
-
|
|
662
|
+
onEventSetOperatorEvent(
|
|
660
663
|
func: (
|
|
661
|
-
event: stake.
|
|
664
|
+
event: stake.SetOperatorEventInstance,
|
|
662
665
|
ctx: aptos.AptosContext
|
|
663
666
|
) => void
|
|
664
667
|
): stake {
|
|
665
668
|
this.onEvent(func, {
|
|
666
|
-
type: "stake::
|
|
669
|
+
type: "stake::SetOperatorEvent",
|
|
667
670
|
});
|
|
668
671
|
return this;
|
|
669
672
|
}
|
|
670
673
|
|
|
671
|
-
|
|
672
|
-
func: (
|
|
673
|
-
event: stake.IncreaseLockupEventInstance,
|
|
674
|
-
ctx: aptos.AptosContext
|
|
675
|
-
) => void
|
|
674
|
+
onEventAddStakeEvent(
|
|
675
|
+
func: (event: stake.AddStakeEventInstance, ctx: aptos.AptosContext) => void
|
|
676
676
|
): stake {
|
|
677
677
|
this.onEvent(func, {
|
|
678
|
-
type: "stake::
|
|
678
|
+
type: "stake::AddStakeEvent",
|
|
679
679
|
});
|
|
680
680
|
return this;
|
|
681
681
|
}
|
|
682
682
|
|
|
683
|
-
|
|
683
|
+
onEventReactivateStakeEvent(
|
|
684
684
|
func: (
|
|
685
|
-
event: stake.
|
|
685
|
+
event: stake.ReactivateStakeEventInstance,
|
|
686
686
|
ctx: aptos.AptosContext
|
|
687
687
|
) => void
|
|
688
688
|
): stake {
|
|
689
689
|
this.onEvent(func, {
|
|
690
|
-
type: "stake::
|
|
690
|
+
type: "stake::ReactivateStakeEvent",
|
|
691
691
|
});
|
|
692
692
|
return this;
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
-
|
|
695
|
+
onEventRotateConsensusKeyEvent(
|
|
696
696
|
func: (
|
|
697
|
-
event: stake.
|
|
697
|
+
event: stake.RotateConsensusKeyEventInstance,
|
|
698
698
|
ctx: aptos.AptosContext
|
|
699
699
|
) => void
|
|
700
700
|
): stake {
|
|
701
701
|
this.onEvent(func, {
|
|
702
|
-
type: "stake::
|
|
702
|
+
type: "stake::RotateConsensusKeyEvent",
|
|
703
703
|
});
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
|
|
707
|
+
onEventUpdateNetworkAndFullnodeAddressesEvent(
|
|
708
708
|
func: (
|
|
709
|
-
event: stake.
|
|
709
|
+
event: stake.UpdateNetworkAndFullnodeAddressesEventInstance,
|
|
710
710
|
ctx: aptos.AptosContext
|
|
711
711
|
) => void
|
|
712
712
|
): stake {
|
|
713
713
|
this.onEvent(func, {
|
|
714
|
-
type: "stake::
|
|
714
|
+
type: "stake::UpdateNetworkAndFullnodeAddressesEvent",
|
|
715
715
|
});
|
|
716
716
|
return this;
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
onEventIncreaseLockupEvent(
|
|
720
720
|
func: (
|
|
721
|
-
event: stake.
|
|
721
|
+
event: stake.IncreaseLockupEventInstance,
|
|
722
722
|
ctx: aptos.AptosContext
|
|
723
723
|
) => void
|
|
724
724
|
): stake {
|
|
725
725
|
this.onEvent(func, {
|
|
726
|
-
type: "stake::
|
|
726
|
+
type: "stake::IncreaseLockupEvent",
|
|
727
727
|
});
|
|
728
728
|
return this;
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
-
|
|
731
|
+
onEventJoinValidatorSetEvent(
|
|
732
732
|
func: (
|
|
733
|
-
event: stake.
|
|
733
|
+
event: stake.JoinValidatorSetEventInstance,
|
|
734
734
|
ctx: aptos.AptosContext
|
|
735
735
|
) => void
|
|
736
736
|
): stake {
|
|
737
737
|
this.onEvent(func, {
|
|
738
|
-
type: "stake::
|
|
738
|
+
type: "stake::JoinValidatorSetEvent",
|
|
739
739
|
});
|
|
740
740
|
return this;
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
|
|
743
|
+
onEventDistributeRewardsEvent(
|
|
744
744
|
func: (
|
|
745
|
-
event: stake.
|
|
745
|
+
event: stake.DistributeRewardsEventInstance,
|
|
746
746
|
ctx: aptos.AptosContext
|
|
747
747
|
) => void
|
|
748
748
|
): stake {
|
|
749
749
|
this.onEvent(func, {
|
|
750
|
-
type: "stake::
|
|
750
|
+
type: "stake::DistributeRewardsEvent",
|
|
751
751
|
});
|
|
752
752
|
return this;
|
|
753
753
|
}
|
|
@@ -764,26 +764,26 @@ export class stake extends aptos.AptosBaseProcessor {
|
|
|
764
764
|
return this;
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
-
|
|
767
|
+
onEventWithdrawStakeEvent(
|
|
768
768
|
func: (
|
|
769
|
-
event: stake.
|
|
769
|
+
event: stake.WithdrawStakeEventInstance,
|
|
770
770
|
ctx: aptos.AptosContext
|
|
771
771
|
) => void
|
|
772
772
|
): stake {
|
|
773
773
|
this.onEvent(func, {
|
|
774
|
-
type: "stake::
|
|
774
|
+
type: "stake::WithdrawStakeEvent",
|
|
775
775
|
});
|
|
776
776
|
return this;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
|
|
779
|
+
onEventLeaveValidatorSetEvent(
|
|
780
780
|
func: (
|
|
781
|
-
event: stake.
|
|
781
|
+
event: stake.LeaveValidatorSetEventInstance,
|
|
782
782
|
ctx: aptos.AptosContext
|
|
783
783
|
) => void
|
|
784
784
|
): stake {
|
|
785
785
|
this.onEvent(func, {
|
|
786
|
-
type: "stake::
|
|
786
|
+
type: "stake::LeaveValidatorSetEvent",
|
|
787
787
|
});
|
|
788
788
|
return this;
|
|
789
789
|
}
|
|
@@ -795,7 +795,7 @@ export class stake extends aptos.AptosBaseProcessor {
|
|
|
795
795
|
|
|
796
796
|
export namespace stake {
|
|
797
797
|
export class AddStakeEvent {
|
|
798
|
-
static
|
|
798
|
+
static TYPE_QNAME = "0x1::stake::AddStakeEvent";
|
|
799
799
|
pool_address: Address;
|
|
800
800
|
amount_added: bigint;
|
|
801
801
|
}
|
|
@@ -807,17 +807,17 @@ export namespace stake {
|
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
export class AllowedValidators {
|
|
810
|
-
static
|
|
810
|
+
static TYPE_QNAME = "0x1::stake::AllowedValidators";
|
|
811
811
|
accounts: Address[];
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
export class AptosCoinCapabilities {
|
|
815
|
-
static
|
|
815
|
+
static TYPE_QNAME = "0x1::stake::AptosCoinCapabilities";
|
|
816
816
|
mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
export class DistributeRewardsEvent {
|
|
820
|
-
static
|
|
820
|
+
static TYPE_QNAME = "0x1::stake::DistributeRewardsEvent";
|
|
821
821
|
pool_address: Address;
|
|
822
822
|
rewards_amount: bigint;
|
|
823
823
|
}
|
|
@@ -829,7 +829,7 @@ export namespace stake {
|
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
export class IncreaseLockupEvent {
|
|
832
|
-
static
|
|
832
|
+
static TYPE_QNAME = "0x1::stake::IncreaseLockupEvent";
|
|
833
833
|
pool_address: Address;
|
|
834
834
|
old_locked_until_secs: bigint;
|
|
835
835
|
new_locked_until_secs: bigint;
|
|
@@ -842,13 +842,13 @@ export namespace stake {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
export class IndividualValidatorPerformance {
|
|
845
|
-
static
|
|
845
|
+
static TYPE_QNAME = "0x1::stake::IndividualValidatorPerformance";
|
|
846
846
|
successful_proposals: bigint;
|
|
847
847
|
failed_proposals: bigint;
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
export class JoinValidatorSetEvent {
|
|
851
|
-
static
|
|
851
|
+
static TYPE_QNAME = "0x1::stake::JoinValidatorSetEvent";
|
|
852
852
|
pool_address: Address;
|
|
853
853
|
}
|
|
854
854
|
|
|
@@ -859,7 +859,7 @@ export namespace stake {
|
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
export class LeaveValidatorSetEvent {
|
|
862
|
-
static
|
|
862
|
+
static TYPE_QNAME = "0x1::stake::LeaveValidatorSetEvent";
|
|
863
863
|
pool_address: Address;
|
|
864
864
|
}
|
|
865
865
|
|
|
@@ -870,12 +870,12 @@ export namespace stake {
|
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
export class OwnerCapability {
|
|
873
|
-
static
|
|
873
|
+
static TYPE_QNAME = "0x1::stake::OwnerCapability";
|
|
874
874
|
pool_address: Address;
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
export class ReactivateStakeEvent {
|
|
878
|
-
static
|
|
878
|
+
static TYPE_QNAME = "0x1::stake::ReactivateStakeEvent";
|
|
879
879
|
pool_address: Address;
|
|
880
880
|
amount: bigint;
|
|
881
881
|
}
|
|
@@ -887,7 +887,7 @@ export namespace stake {
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
export class RegisterValidatorCandidateEvent {
|
|
890
|
-
static
|
|
890
|
+
static TYPE_QNAME = "0x1::stake::RegisterValidatorCandidateEvent";
|
|
891
891
|
pool_address: Address;
|
|
892
892
|
}
|
|
893
893
|
|
|
@@ -898,7 +898,7 @@ export namespace stake {
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
export class RotateConsensusKeyEvent {
|
|
901
|
-
static
|
|
901
|
+
static TYPE_QNAME = "0x1::stake::RotateConsensusKeyEvent";
|
|
902
902
|
pool_address: Address;
|
|
903
903
|
old_consensus_pubkey: string;
|
|
904
904
|
new_consensus_pubkey: string;
|
|
@@ -911,7 +911,7 @@ export namespace stake {
|
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
export class SetOperatorEvent {
|
|
914
|
-
static
|
|
914
|
+
static TYPE_QNAME = "0x1::stake::SetOperatorEvent";
|
|
915
915
|
pool_address: Address;
|
|
916
916
|
old_operator: Address;
|
|
917
917
|
new_operator: Address;
|
|
@@ -924,7 +924,7 @@ export namespace stake {
|
|
|
924
924
|
}
|
|
925
925
|
|
|
926
926
|
export class StakePool {
|
|
927
|
-
static
|
|
927
|
+
static TYPE_QNAME = "0x1::stake::StakePool";
|
|
928
928
|
active: coin.Coin<aptos_coin.AptosCoin>;
|
|
929
929
|
inactive: coin.Coin<aptos_coin.AptosCoin>;
|
|
930
930
|
pending_active: coin.Coin<aptos_coin.AptosCoin>;
|
|
@@ -947,7 +947,7 @@ export namespace stake {
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
export class UnlockStakeEvent {
|
|
950
|
-
static
|
|
950
|
+
static TYPE_QNAME = "0x1::stake::UnlockStakeEvent";
|
|
951
951
|
pool_address: Address;
|
|
952
952
|
amount_unlocked: bigint;
|
|
953
953
|
}
|
|
@@ -959,7 +959,7 @@ export namespace stake {
|
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
export class UpdateNetworkAndFullnodeAddressesEvent {
|
|
962
|
-
static
|
|
962
|
+
static TYPE_QNAME = "0x1::stake::UpdateNetworkAndFullnodeAddressesEvent";
|
|
963
963
|
pool_address: Address;
|
|
964
964
|
old_network_addresses: string;
|
|
965
965
|
new_network_addresses: string;
|
|
@@ -974,7 +974,7 @@ export namespace stake {
|
|
|
974
974
|
}
|
|
975
975
|
|
|
976
976
|
export class ValidatorConfig {
|
|
977
|
-
static
|
|
977
|
+
static TYPE_QNAME = "0x1::stake::ValidatorConfig";
|
|
978
978
|
consensus_pubkey: string;
|
|
979
979
|
network_addresses: string;
|
|
980
980
|
fullnode_addresses: string;
|
|
@@ -982,19 +982,19 @@ export namespace stake {
|
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
export class ValidatorInfo {
|
|
985
|
-
static
|
|
985
|
+
static TYPE_QNAME = "0x1::stake::ValidatorInfo";
|
|
986
986
|
addr: Address;
|
|
987
987
|
voting_power: bigint;
|
|
988
988
|
config: stake.ValidatorConfig;
|
|
989
989
|
}
|
|
990
990
|
|
|
991
991
|
export class ValidatorPerformance {
|
|
992
|
-
static
|
|
992
|
+
static TYPE_QNAME = "0x1::stake::ValidatorPerformance";
|
|
993
993
|
validators: stake.IndividualValidatorPerformance[];
|
|
994
994
|
}
|
|
995
995
|
|
|
996
996
|
export class ValidatorSet {
|
|
997
|
-
static
|
|
997
|
+
static TYPE_QNAME = "0x1::stake::ValidatorSet";
|
|
998
998
|
consensus_scheme: number;
|
|
999
999
|
active_validators: stake.ValidatorInfo[];
|
|
1000
1000
|
pending_inactive: stake.ValidatorInfo[];
|
|
@@ -1004,7 +1004,7 @@ export namespace stake {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
export class WithdrawStakeEvent {
|
|
1007
|
-
static
|
|
1007
|
+
static TYPE_QNAME = "0x1::stake::WithdrawStakeEvent";
|
|
1008
1008
|
pool_address: Address;
|
|
1009
1009
|
amount_withdrawn: bigint;
|
|
1010
1010
|
}
|
|
@@ -1093,8 +1093,8 @@ export namespace stake {
|
|
|
1093
1093
|
type_arguments: [];
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
export function loadTypes(
|
|
1097
|
-
loadAllTypes(
|
|
1096
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1097
|
+
loadAllTypes(_r);
|
|
1098
1098
|
}
|
|
1099
1099
|
export const ABI: MoveModule = JSON.parse(
|
|
1100
1100
|
'{"address":"0x1","name":"stake","friends":["0x1::block","0x1::genesis","0x1::reconfiguration"],"exposed_functions":[{"name":"add_stake","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"add_stake_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"],"return":[]},{"name":"configure_allowed_validators","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"deposit_owner_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::stake::OwnerCapability"],"return":[]},{"name":"destroy_owner_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::stake::OwnerCapability"],"return":[]},{"name":"extract_owner_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["0x1::stake::OwnerCapability"]},{"name":"get_current_epoch_proposal_counts","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64"],"return":["u64","u64"]},{"name":"get_current_epoch_voting_power","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_delegated_voter","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]},{"name":"get_lockup_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_operator","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["address"]},{"name":"get_owned_pool_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability"],"return":["address"]},{"name":"get_remaining_lockup_secs","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_stake","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64","u64","u64","u64"]},{"name":"get_validator_config","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["vector<u8>","vector<u8>","vector<u8>"]},{"name":"get_validator_index","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_validator_state","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"increase_lockup","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"increase_lockup_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability"],"return":[]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"initialize_stake_owner","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64","address","address"],"return":[]},{"name":"initialize_validator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","vector<u8>","vector<u8>","vector<u8>"],"return":[]},{"name":"is_current_epoch_validator","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"join_validator_set","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"join_validator_set_internal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"leave_validator_set","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"on_new_epoch","visibility":"friend","is_entry":false,"generic_type_params":[],"params":[],"return":[]},{"name":"reactivate_stake","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"reactivate_stake_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","u64"],"return":[]},{"name":"remove_validators","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","&vector<address>"],"return":[]},{"name":"rotate_consensus_key","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<u8>","vector<u8>"],"return":[]},{"name":"set_delegated_voter","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_delegated_voter_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","address"],"return":[]},{"name":"set_operator","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"set_operator_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","address"],"return":[]},{"name":"stake_pool_exists","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"store_aptos_coin_mint_cap","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"],"return":[]},{"name":"unlock","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"unlock_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","&0x1::stake::OwnerCapability"],"return":[]},{"name":"update_network_and_fullnode_addresses","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<u8>","vector<u8>"],"return":[]},{"name":"update_performance_statistics","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["0x1::option::Option<u64>","vector<u64>"],"return":[]},{"name":"withdraw","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"withdraw_with_cap","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::stake::OwnerCapability","u64"],"return":["0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"]}],"structs":[{"name":"AddStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount_added","type":"u64"}]},{"name":"AllowedValidators","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"accounts","type":"vector<address>"}]},{"name":"AptosCoinCapabilities","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"mint_cap","type":"0x1::coin::MintCapability<0x1::aptos_coin::AptosCoin>"}]},{"name":"DistributeRewardsEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"rewards_amount","type":"u64"}]},{"name":"IncreaseLockupEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_locked_until_secs","type":"u64"},{"name":"new_locked_until_secs","type":"u64"}]},{"name":"IndividualValidatorPerformance","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"successful_proposals","type":"u64"},{"name":"failed_proposals","type":"u64"}]},{"name":"JoinValidatorSetEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"LeaveValidatorSetEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"OwnerCapability","is_native":false,"abilities":["store","key"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"ReactivateStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount","type":"u64"}]},{"name":"RegisterValidatorCandidateEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"}]},{"name":"RotateConsensusKeyEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_consensus_pubkey","type":"vector<u8>"},{"name":"new_consensus_pubkey","type":"vector<u8>"}]},{"name":"SetOperatorEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_operator","type":"address"},{"name":"new_operator","type":"address"}]},{"name":"StakePool","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"active","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"inactive","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"pending_active","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"pending_inactive","type":"0x1::coin::Coin<0x1::aptos_coin::AptosCoin>"},{"name":"locked_until_secs","type":"u64"},{"name":"operator_address","type":"address"},{"name":"delegated_voter","type":"address"},{"name":"initialize_validator_events","type":"0x1::event::EventHandle<0x1::stake::RegisterValidatorCandidateEvent>"},{"name":"set_operator_events","type":"0x1::event::EventHandle<0x1::stake::SetOperatorEvent>"},{"name":"add_stake_events","type":"0x1::event::EventHandle<0x1::stake::AddStakeEvent>"},{"name":"reactivate_stake_events","type":"0x1::event::EventHandle<0x1::stake::ReactivateStakeEvent>"},{"name":"rotate_consensus_key_events","type":"0x1::event::EventHandle<0x1::stake::RotateConsensusKeyEvent>"},{"name":"update_network_and_fullnode_addresses_events","type":"0x1::event::EventHandle<0x1::stake::UpdateNetworkAndFullnodeAddressesEvent>"},{"name":"increase_lockup_events","type":"0x1::event::EventHandle<0x1::stake::IncreaseLockupEvent>"},{"name":"join_validator_set_events","type":"0x1::event::EventHandle<0x1::stake::JoinValidatorSetEvent>"},{"name":"distribute_rewards_events","type":"0x1::event::EventHandle<0x1::stake::DistributeRewardsEvent>"},{"name":"unlock_stake_events","type":"0x1::event::EventHandle<0x1::stake::UnlockStakeEvent>"},{"name":"withdraw_stake_events","type":"0x1::event::EventHandle<0x1::stake::WithdrawStakeEvent>"},{"name":"leave_validator_set_events","type":"0x1::event::EventHandle<0x1::stake::LeaveValidatorSetEvent>"}]},{"name":"UnlockStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount_unlocked","type":"u64"}]},{"name":"UpdateNetworkAndFullnodeAddressesEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"old_network_addresses","type":"vector<u8>"},{"name":"new_network_addresses","type":"vector<u8>"},{"name":"old_fullnode_addresses","type":"vector<u8>"},{"name":"new_fullnode_addresses","type":"vector<u8>"}]},{"name":"ValidatorConfig","is_native":false,"abilities":["copy","drop","store","key"],"generic_type_params":[],"fields":[{"name":"consensus_pubkey","type":"vector<u8>"},{"name":"network_addresses","type":"vector<u8>"},{"name":"fullnode_addresses","type":"vector<u8>"},{"name":"validator_index","type":"u64"}]},{"name":"ValidatorInfo","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"addr","type":"address"},{"name":"voting_power","type":"u64"},{"name":"config","type":"0x1::stake::ValidatorConfig"}]},{"name":"ValidatorPerformance","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"validators","type":"vector<0x1::stake::IndividualValidatorPerformance>"}]},{"name":"ValidatorSet","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"consensus_scheme","type":"u8"},{"name":"active_validators","type":"vector<0x1::stake::ValidatorInfo>"},{"name":"pending_inactive","type":"vector<0x1::stake::ValidatorInfo>"},{"name":"pending_active","type":"vector<0x1::stake::ValidatorInfo>"},{"name":"total_voting_power","type":"u128"},{"name":"total_joining_power","type":"u128"}]},{"name":"WithdrawStakeEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"pool_address","type":"address"},{"name":"amount_withdrawn","type":"u64"}]}]}'
|
|
@@ -1103,17 +1103,17 @@ export namespace stake {
|
|
|
1103
1103
|
|
|
1104
1104
|
export namespace table {
|
|
1105
1105
|
export class Box<T0> {
|
|
1106
|
-
static
|
|
1106
|
+
static TYPE_QNAME = "0x1::table::Box";
|
|
1107
1107
|
val: T0;
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
1110
|
export class Table<T0, T1> {
|
|
1111
|
-
static
|
|
1111
|
+
static TYPE_QNAME = "0x1::table::Table";
|
|
1112
1112
|
handle: Address;
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
|
-
export function loadTypes(
|
|
1116
|
-
loadAllTypes(
|
|
1115
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1116
|
+
loadAllTypes(_r);
|
|
1117
1117
|
}
|
|
1118
1118
|
export const ABI: MoveModule = JSON.parse(
|
|
1119
1119
|
'{"address":"0x1","name":"table","friends":["0x1::table_with_length"],"exposed_functions":[{"name":"add","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table::Table<T0, T1>","T0","T1"],"return":[]},{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table::Table<T0, T1>","T0"],"return":["&T1"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table::Table<T0, T1>","T0"],"return":["&mut T1"]},{"name":"borrow_mut_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["drop"]}],"params":["&mut 0x1::table::Table<T0, T1>","T0","T1"],"return":["&mut T1"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&0x1::table::Table<T0, T1>","T0"],"return":["bool"]},{"name":"destroy","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["0x1::table::Table<T0, T1>"],"return":[]},{"name":"new","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["store"]}],"params":[],"return":["0x1::table::Table<T0, T1>"]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"params":["&mut 0x1::table::Table<T0, T1>","T0"],"return":["T1"]},{"name":"upsert","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":["drop"]}],"params":["&mut 0x1::table::Table<T0, T1>","T0","T1"],"return":[]}],"structs":[{"name":"Box","is_native":false,"abilities":["drop","store","key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"val","type":"T0"}]},{"name":"Table","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["copy","drop"]},{"constraints":[]}],"fields":[{"name":"handle","type":"address"}]}]}'
|
|
@@ -1121,8 +1121,8 @@ export namespace table {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
|
|
1123
1123
|
export namespace math64 {
|
|
1124
|
-
export function loadTypes(
|
|
1125
|
-
loadAllTypes(
|
|
1124
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1125
|
+
loadAllTypes(_r);
|
|
1126
1126
|
}
|
|
1127
1127
|
export const ABI: MoveModule = JSON.parse(
|
|
1128
1128
|
'{"address":"0x1","name":"math64","friends":[],"exposed_functions":[{"name":"average","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"max","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"min","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]},{"name":"pow","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u64","u64"],"return":["u64"]}],"structs":[]}'
|
|
@@ -1131,12 +1131,12 @@ export namespace math64 {
|
|
|
1131
1131
|
|
|
1132
1132
|
export namespace option {
|
|
1133
1133
|
export class Option<T0> {
|
|
1134
|
-
static
|
|
1134
|
+
static TYPE_QNAME = "0x1::option::Option";
|
|
1135
1135
|
vec: T0[] | string;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
export function loadTypes(
|
|
1139
|
-
loadAllTypes(
|
|
1138
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1139
|
+
loadAllTypes(_r);
|
|
1140
1140
|
}
|
|
1141
1141
|
export const ABI: MoveModule = JSON.parse(
|
|
1142
1142
|
'{"address":"0x1","name":"option","friends":[],"exposed_functions":[{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>"],"return":["&T0"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>"],"return":["&mut T0"]},{"name":"borrow_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>","&T0"],"return":["&T0"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>","&T0"],"return":["bool"]},{"name":"destroy_none","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::option::Option<T0>"],"return":[]},{"name":"destroy_some","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::option::Option<T0>"],"return":["T0"]},{"name":"destroy_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["0x1::option::Option<T0>","T0"],"return":["T0"]},{"name":"extract","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>"],"return":["T0"]},{"name":"fill","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>","T0"],"return":[]},{"name":"get_with_default","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["copy","drop"]}],"params":["&0x1::option::Option<T0>","T0"],"return":["T0"]},{"name":"is_none","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>"],"return":["bool"]},{"name":"is_some","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&0x1::option::Option<T0>"],"return":["bool"]},{"name":"none","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["0x1::option::Option<T0>"]},{"name":"some","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["T0"],"return":["0x1::option::Option<T0>"]},{"name":"swap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>","T0"],"return":["T0"]},{"name":"swap_or_fill","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut 0x1::option::Option<T0>","T0"],"return":["0x1::option::Option<T0>"]},{"name":"to_vec","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::option::Option<T0>"],"return":["vector<T0>"]}],"structs":[{"name":"Option","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"vec","type":"vector<T0>"}]}]}'
|
|
@@ -1144,8 +1144,8 @@ export namespace option {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
1146
|
export namespace signer {
|
|
1147
|
-
export function loadTypes(
|
|
1148
|
-
loadAllTypes(
|
|
1147
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1148
|
+
loadAllTypes(_r);
|
|
1149
1149
|
}
|
|
1150
1150
|
export const ABI: MoveModule = JSON.parse(
|
|
1151
1151
|
'{"address":"0x1","name":"signer","friends":[],"exposed_functions":[{"name":"address_of","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["address"]},{"name":"borrow_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["&address"]}],"structs":[]}'
|
|
@@ -1154,12 +1154,12 @@ export namespace signer {
|
|
|
1154
1154
|
|
|
1155
1155
|
export namespace string {
|
|
1156
1156
|
export class String {
|
|
1157
|
-
static
|
|
1157
|
+
static TYPE_QNAME = "0x1::string::String";
|
|
1158
1158
|
bytes: string;
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
|
-
export function loadTypes(
|
|
1162
|
-
loadAllTypes(
|
|
1161
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1162
|
+
loadAllTypes(_r);
|
|
1163
1163
|
}
|
|
1164
1164
|
export const ABI: MoveModule = JSON.parse(
|
|
1165
1165
|
'{"address":"0x1","name":"string","friends":[],"exposed_functions":[{"name":"append","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::string::String","0x1::string::String"],"return":[]},{"name":"append_utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::string::String","vector<u8>"],"return":[]},{"name":"bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["&vector<u8>"]},{"name":"index_of","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String","&0x1::string::String"],"return":["u64"]},{"name":"insert","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&mut 0x1::string::String","u64","0x1::string::String"],"return":[]},{"name":"internal_check_utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&vector<u8>"],"return":["bool"]},{"name":"is_empty","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["bool"]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["u64"]},{"name":"sub_string","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::string::String","u64","u64"],"return":["0x1::string::String"]},{"name":"try_utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::string::String>"]},{"name":"utf8","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::string::String"]}],"structs":[{"name":"String","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
|
|
@@ -1167,8 +1167,8 @@ export namespace string {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
export namespace vector {
|
|
1170
|
-
export function loadTypes(
|
|
1171
|
-
loadAllTypes(
|
|
1170
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1171
|
+
loadAllTypes(_r);
|
|
1172
1172
|
}
|
|
1173
1173
|
export const ABI: MoveModule = JSON.parse(
|
|
1174
1174
|
'{"address":"0x1","name":"vector","friends":[],"exposed_functions":[{"name":"append","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","vector<T0>"],"return":[]},{"name":"borrow","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>","u64"],"return":["&T0"]},{"name":"borrow_mut","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64"],"return":["&mut T0"]},{"name":"contains","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>","&T0"],"return":["bool"]},{"name":"destroy_empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["vector<T0>"],"return":[]},{"name":"empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":[],"return":["vector<T0>"]},{"name":"index_of","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>","&T0"],"return":["bool","u64"]},{"name":"is_empty","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>"],"return":["bool"]},{"name":"length","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&vector<T0>"],"return":["u64"]},{"name":"pop_back","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>"],"return":["T0"]},{"name":"push_back","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","T0"],"return":[]},{"name":"remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64"],"return":["T0"]},{"name":"reverse","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>"],"return":[]},{"name":"singleton","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["T0"],"return":["vector<T0>"]},{"name":"swap","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64","u64"],"return":[]},{"name":"swap_remove","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&mut vector<T0>","u64"],"return":["T0"]}],"structs":[]}'
|
|
@@ -1212,6 +1212,18 @@ export class voting extends aptos.AptosBaseProcessor {
|
|
|
1212
1212
|
return this;
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
+
onEventResolveProposal(
|
|
1216
|
+
func: (
|
|
1217
|
+
event: voting.ResolveProposalInstance,
|
|
1218
|
+
ctx: aptos.AptosContext
|
|
1219
|
+
) => void
|
|
1220
|
+
): voting {
|
|
1221
|
+
this.onEvent(func, {
|
|
1222
|
+
type: "voting::ResolveProposal",
|
|
1223
|
+
});
|
|
1224
|
+
return this;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1215
1227
|
onEventVoteEvent(
|
|
1216
1228
|
func: (event: voting.VoteEventInstance, ctx: aptos.AptosContext) => void
|
|
1217
1229
|
): voting {
|
|
@@ -1228,7 +1240,7 @@ export class voting extends aptos.AptosBaseProcessor {
|
|
|
1228
1240
|
|
|
1229
1241
|
export namespace voting {
|
|
1230
1242
|
export class CreateProposalEvent {
|
|
1231
|
-
static
|
|
1243
|
+
static TYPE_QNAME = "0x1::voting::CreateProposalEvent";
|
|
1232
1244
|
proposal_id: bigint;
|
|
1233
1245
|
early_resolution_vote_threshold: option.Option<bigint>;
|
|
1234
1246
|
execution_hash: string;
|
|
@@ -1244,7 +1256,7 @@ export namespace voting {
|
|
|
1244
1256
|
}
|
|
1245
1257
|
|
|
1246
1258
|
export class Proposal<T0> {
|
|
1247
|
-
static
|
|
1259
|
+
static TYPE_QNAME = "0x1::voting::Proposal";
|
|
1248
1260
|
proposer: Address;
|
|
1249
1261
|
execution_content: option.Option<T0>;
|
|
1250
1262
|
metadata: simple_map.SimpleMap<string, string>;
|
|
@@ -1260,7 +1272,7 @@ export namespace voting {
|
|
|
1260
1272
|
}
|
|
1261
1273
|
|
|
1262
1274
|
export class RegisterForumEvent {
|
|
1263
|
-
static
|
|
1275
|
+
static TYPE_QNAME = "0x1::voting::RegisterForumEvent";
|
|
1264
1276
|
hosting_account: Address;
|
|
1265
1277
|
proposal_type_info: type_info.TypeInfo;
|
|
1266
1278
|
}
|
|
@@ -1272,15 +1284,21 @@ export namespace voting {
|
|
|
1272
1284
|
}
|
|
1273
1285
|
|
|
1274
1286
|
export class ResolveProposal {
|
|
1275
|
-
static
|
|
1287
|
+
static TYPE_QNAME = "0x1::voting::ResolveProposal";
|
|
1276
1288
|
proposal_id: bigint;
|
|
1277
1289
|
yes_votes: bigint;
|
|
1278
1290
|
no_votes: bigint;
|
|
1279
1291
|
resolved_early: Boolean;
|
|
1280
1292
|
}
|
|
1281
1293
|
|
|
1294
|
+
export interface ResolveProposalInstance
|
|
1295
|
+
extends aptos.TypedEventInstance<ResolveProposal> {
|
|
1296
|
+
data_typed: ResolveProposal;
|
|
1297
|
+
type_arguments: [];
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1282
1300
|
export class VoteEvent {
|
|
1283
|
-
static
|
|
1301
|
+
static TYPE_QNAME = "0x1::voting::VoteEvent";
|
|
1284
1302
|
proposal_id: bigint;
|
|
1285
1303
|
num_votes: bigint;
|
|
1286
1304
|
}
|
|
@@ -1292,7 +1310,7 @@ export namespace voting {
|
|
|
1292
1310
|
}
|
|
1293
1311
|
|
|
1294
1312
|
export class VotingEvents {
|
|
1295
|
-
static
|
|
1313
|
+
static TYPE_QNAME = "0x1::voting::VotingEvents";
|
|
1296
1314
|
create_proposal_events: event.EventHandle<voting.CreateProposalEvent>;
|
|
1297
1315
|
register_forum_events: event.EventHandle<voting.RegisterForumEvent>;
|
|
1298
1316
|
resolve_proposal_events: event.EventHandle<voting.ResolveProposal>;
|
|
@@ -1300,14 +1318,14 @@ export namespace voting {
|
|
|
1300
1318
|
}
|
|
1301
1319
|
|
|
1302
1320
|
export class VotingForum<T0> {
|
|
1303
|
-
static
|
|
1321
|
+
static TYPE_QNAME = "0x1::voting::VotingForum";
|
|
1304
1322
|
proposals: table.Table<bigint, voting.Proposal<T0>>;
|
|
1305
1323
|
events: voting.VotingEvents;
|
|
1306
1324
|
next_proposal_id: bigint;
|
|
1307
1325
|
}
|
|
1308
1326
|
|
|
1309
|
-
export function loadTypes(
|
|
1310
|
-
loadAllTypes(
|
|
1327
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1328
|
+
loadAllTypes(_r);
|
|
1311
1329
|
}
|
|
1312
1330
|
export const ABI: MoveModule = JSON.parse(
|
|
1313
1331
|
'{"address":"0x1","name":"voting","friends":[],"exposed_functions":[{"name":"can_be_resolved_early","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["&0x1::voting::Proposal<T0>"],"return":["bool"]},{"name":"create_proposal","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","address","T0","vector<u8>","u128","u64","0x1::option::Option<u128>","0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"],"return":["u64"]},{"name":"get_execution_hash","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["vector<u8>"]},{"name":"get_proposal_expiration_secs","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["u64"]},{"name":"get_proposal_state","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["u64"]},{"name":"is_resolved","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["bool"]},{"name":"is_voting_closed","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["bool"]},{"name":"register","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["&signer"],"return":[]},{"name":"resolve","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["address","u64"],"return":["T0"]},{"name":"vote","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["store"]}],"params":["&T0","address","u64","u64","bool"],"return":[]}],"structs":[{"name":"CreateProposalEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"early_resolution_vote_threshold","type":"0x1::option::Option<u128>"},{"name":"execution_hash","type":"vector<u8>"},{"name":"expiration_secs","type":"u64"},{"name":"metadata","type":"0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"},{"name":"min_vote_threshold","type":"u128"}]},{"name":"Proposal","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":["store"]}],"fields":[{"name":"proposer","type":"address"},{"name":"execution_content","type":"0x1::option::Option<T0>"},{"name":"metadata","type":"0x1::simple_map::SimpleMap<0x1::string::String, vector<u8>>"},{"name":"creation_time_secs","type":"u64"},{"name":"execution_hash","type":"vector<u8>"},{"name":"min_vote_threshold","type":"u128"},{"name":"expiration_secs","type":"u64"},{"name":"early_resolution_vote_threshold","type":"0x1::option::Option<u128>"},{"name":"yes_votes","type":"u128"},{"name":"no_votes","type":"u128"},{"name":"is_resolved","type":"bool"},{"name":"resolution_time_secs","type":"u64"}]},{"name":"RegisterForumEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"hosting_account","type":"address"},{"name":"proposal_type_info","type":"0x1::type_info::TypeInfo"}]},{"name":"ResolveProposal","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"yes_votes","type":"u128"},{"name":"no_votes","type":"u128"},{"name":"resolved_early","type":"bool"}]},{"name":"VoteEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"proposal_id","type":"u64"},{"name":"num_votes","type":"u64"}]},{"name":"VotingEvents","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"create_proposal_events","type":"0x1::event::EventHandle<0x1::voting::CreateProposalEvent>"},{"name":"register_forum_events","type":"0x1::event::EventHandle<0x1::voting::RegisterForumEvent>"},{"name":"resolve_proposal_events","type":"0x1::event::EventHandle<0x1::voting::ResolveProposal>"},{"name":"vote_events","type":"0x1::event::EventHandle<0x1::voting::VoteEvent>"}]},{"name":"VotingForum","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":["store"]}],"fields":[{"name":"proposals","type":"0x1::table::Table<u64, 0x1::voting::Proposal<T0>>"},{"name":"events","type":"0x1::voting::VotingEvents"},{"name":"next_proposal_id","type":"u64"}]}]}'
|
|
@@ -1400,7 +1418,7 @@ export class account extends aptos.AptosBaseProcessor {
|
|
|
1400
1418
|
|
|
1401
1419
|
export namespace account {
|
|
1402
1420
|
export class Account {
|
|
1403
|
-
static
|
|
1421
|
+
static TYPE_QNAME = "0x1::account::Account";
|
|
1404
1422
|
authentication_key: string;
|
|
1405
1423
|
sequence_number: bigint;
|
|
1406
1424
|
guid_creation_num: bigint;
|
|
@@ -1411,12 +1429,12 @@ export namespace account {
|
|
|
1411
1429
|
}
|
|
1412
1430
|
|
|
1413
1431
|
export class CapabilityOffer<T0> {
|
|
1414
|
-
static
|
|
1432
|
+
static TYPE_QNAME = "0x1::account::CapabilityOffer";
|
|
1415
1433
|
for: option.Option<Address>;
|
|
1416
1434
|
}
|
|
1417
1435
|
|
|
1418
1436
|
export class CoinRegisterEvent {
|
|
1419
|
-
static
|
|
1437
|
+
static TYPE_QNAME = "0x1::account::CoinRegisterEvent";
|
|
1420
1438
|
type_info: type_info.TypeInfo;
|
|
1421
1439
|
}
|
|
1422
1440
|
|
|
@@ -1427,7 +1445,7 @@ export namespace account {
|
|
|
1427
1445
|
}
|
|
1428
1446
|
|
|
1429
1447
|
export class KeyRotationEvent {
|
|
1430
|
-
static
|
|
1448
|
+
static TYPE_QNAME = "0x1::account::KeyRotationEvent";
|
|
1431
1449
|
old_authentication_key: string;
|
|
1432
1450
|
new_authentication_key: string;
|
|
1433
1451
|
}
|
|
@@ -1439,23 +1457,23 @@ export namespace account {
|
|
|
1439
1457
|
}
|
|
1440
1458
|
|
|
1441
1459
|
export class OriginatingAddress {
|
|
1442
|
-
static
|
|
1460
|
+
static TYPE_QNAME = "0x1::account::OriginatingAddress";
|
|
1443
1461
|
address_map: table.Table<Address, Address>;
|
|
1444
1462
|
}
|
|
1445
1463
|
|
|
1446
1464
|
export class RotationCapability {
|
|
1447
|
-
static
|
|
1465
|
+
static TYPE_QNAME = "0x1::account::RotationCapability";
|
|
1448
1466
|
account: Address;
|
|
1449
1467
|
}
|
|
1450
1468
|
|
|
1451
1469
|
export class RotationCapabilityOfferProofChallenge {
|
|
1452
|
-
static
|
|
1470
|
+
static TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallenge";
|
|
1453
1471
|
sequence_number: bigint;
|
|
1454
1472
|
recipient_address: Address;
|
|
1455
1473
|
}
|
|
1456
1474
|
|
|
1457
1475
|
export class RotationProofChallenge {
|
|
1458
|
-
static
|
|
1476
|
+
static TYPE_QNAME = "0x1::account::RotationProofChallenge";
|
|
1459
1477
|
sequence_number: bigint;
|
|
1460
1478
|
originator: Address;
|
|
1461
1479
|
current_auth_key: Address;
|
|
@@ -1463,18 +1481,18 @@ export namespace account {
|
|
|
1463
1481
|
}
|
|
1464
1482
|
|
|
1465
1483
|
export class SignerCapability {
|
|
1466
|
-
static
|
|
1484
|
+
static TYPE_QNAME = "0x1::account::SignerCapability";
|
|
1467
1485
|
account: Address;
|
|
1468
1486
|
}
|
|
1469
1487
|
|
|
1470
1488
|
export class SignerCapabilityOfferProofChallenge {
|
|
1471
|
-
static
|
|
1489
|
+
static TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallenge";
|
|
1472
1490
|
sequence_number: bigint;
|
|
1473
1491
|
recipient_address: Address;
|
|
1474
1492
|
}
|
|
1475
1493
|
|
|
1476
1494
|
export class SignerCapabilityOfferProofChallengeV2 {
|
|
1477
|
-
static
|
|
1495
|
+
static TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallengeV2";
|
|
1478
1496
|
sequence_number: bigint;
|
|
1479
1497
|
source_address: Address;
|
|
1480
1498
|
recipient_address: Address;
|
|
@@ -1500,8 +1518,8 @@ export namespace account {
|
|
|
1500
1518
|
type_arguments: [];
|
|
1501
1519
|
}
|
|
1502
1520
|
|
|
1503
|
-
export function loadTypes(
|
|
1504
|
-
loadAllTypes(
|
|
1521
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1522
|
+
loadAllTypes(_r);
|
|
1505
1523
|
}
|
|
1506
1524
|
export const ABI: MoveModule = JSON.parse(
|
|
1507
1525
|
'{"address":"0x1","name":"account","friends":["0x1::aptos_account","0x1::coin","0x1::genesis","0x1::resource_account","0x1::transaction_validation"],"exposed_functions":[{"name":"create_account","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address"],"return":["signer"]},{"name":"create_authorized_signer","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","address"],"return":["signer"]},{"name":"create_framework_reserved_account","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address"],"return":["signer","0x1::account::SignerCapability"]},{"name":"create_guid","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":["0x1::guid::GUID"]},{"name":"create_resource_account","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":["signer","0x1::account::SignerCapability"]},{"name":"create_resource_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&address","vector<u8>"],"return":["address"]},{"name":"create_signer_with_capability","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::account::SignerCapability"],"return":["signer"]},{"name":"exists_at","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"get_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["vector<u8>"]},{"name":"get_guid_next_creation_num","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_sequence_number","visibility":"public","is_entry":false,"generic_type_params":[],"params":["address"],"return":["u64"]},{"name":"get_signer_capability_address","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::account::SignerCapability"],"return":["address"]},{"name":"increment_sequence_number","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["address"],"return":[]},{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"new_event_handle","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["&signer"],"return":["0x1::event::EventHandle<T0>"]},{"name":"offer_signer_capability","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<u8>","u8","vector<u8>","address"],"return":[]},{"name":"register_coin","visibility":"friend","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address"],"return":[]},{"name":"revoke_signer_capability","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address"],"return":[]},{"name":"rotate_authentication_key","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u8","vector<u8>","u8","vector<u8>","vector<u8>","vector<u8>"],"return":[]},{"name":"rotate_authentication_key_internal","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","vector<u8>"],"return":[]}],"structs":[{"name":"Account","is_native":false,"abilities":["store","key"],"generic_type_params":[],"fields":[{"name":"authentication_key","type":"vector<u8>"},{"name":"sequence_number","type":"u64"},{"name":"guid_creation_num","type":"u64"},{"name":"coin_register_events","type":"0x1::event::EventHandle<0x1::account::CoinRegisterEvent>"},{"name":"key_rotation_events","type":"0x1::event::EventHandle<0x1::account::KeyRotationEvent>"},{"name":"rotation_capability_offer","type":"0x1::account::CapabilityOffer<0x1::account::RotationCapability>"},{"name":"signer_capability_offer","type":"0x1::account::CapabilityOffer<0x1::account::SignerCapability>"}]},{"name":"CapabilityOffer","is_native":false,"abilities":["store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"for","type":"0x1::option::Option<address>"}]},{"name":"CoinRegisterEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"type_info","type":"0x1::type_info::TypeInfo"}]},{"name":"KeyRotationEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_authentication_key","type":"vector<u8>"},{"name":"new_authentication_key","type":"vector<u8>"}]},{"name":"OriginatingAddress","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"address_map","type":"0x1::table::Table<address, address>"}]},{"name":"RotationCapability","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"}]},{"name":"RotationCapabilityOfferProofChallenge","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"recipient_address","type":"address"}]},{"name":"RotationProofChallenge","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"originator","type":"address"},{"name":"current_auth_key","type":"address"},{"name":"new_public_key","type":"vector<u8>"}]},{"name":"SignerCapability","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"}]},{"name":"SignerCapabilityOfferProofChallenge","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"recipient_address","type":"address"}]},{"name":"SignerCapabilityOfferProofChallengeV2","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"sequence_number","type":"u64"},{"name":"source_address","type":"address"},{"name":"recipient_address","type":"address"}]}]}'
|
|
@@ -1510,28 +1528,28 @@ export namespace account {
|
|
|
1510
1528
|
|
|
1511
1529
|
export namespace ed25519 {
|
|
1512
1530
|
export class Signature {
|
|
1513
|
-
static
|
|
1531
|
+
static TYPE_QNAME = "0x1::ed25519::Signature";
|
|
1514
1532
|
bytes: string;
|
|
1515
1533
|
}
|
|
1516
1534
|
|
|
1517
1535
|
export class SignedMessage<T0> {
|
|
1518
|
-
static
|
|
1536
|
+
static TYPE_QNAME = "0x1::ed25519::SignedMessage";
|
|
1519
1537
|
type_info: type_info.TypeInfo;
|
|
1520
1538
|
inner: T0;
|
|
1521
1539
|
}
|
|
1522
1540
|
|
|
1523
1541
|
export class UnvalidatedPublicKey {
|
|
1524
|
-
static
|
|
1542
|
+
static TYPE_QNAME = "0x1::ed25519::UnvalidatedPublicKey";
|
|
1525
1543
|
bytes: string;
|
|
1526
1544
|
}
|
|
1527
1545
|
|
|
1528
1546
|
export class ValidatedPublicKey {
|
|
1529
|
-
static
|
|
1547
|
+
static TYPE_QNAME = "0x1::ed25519::ValidatedPublicKey";
|
|
1530
1548
|
bytes: string;
|
|
1531
1549
|
}
|
|
1532
1550
|
|
|
1533
|
-
export function loadTypes(
|
|
1534
|
-
loadAllTypes(
|
|
1551
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1552
|
+
loadAllTypes(_r);
|
|
1535
1553
|
}
|
|
1536
1554
|
export const ABI: MoveModule = JSON.parse(
|
|
1537
1555
|
'{"address":"0x1","name":"ed25519","friends":[],"exposed_functions":[{"name":"new_signature_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::ed25519::Signature"]},{"name":"new_signed_message","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["T0"],"return":["0x1::ed25519::SignedMessage<T0>"]},{"name":"new_unvalidated_public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::ed25519::UnvalidatedPublicKey"]},{"name":"new_validated_public_key_from_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["vector<u8>"],"return":["0x1::option::Option<0x1::ed25519::ValidatedPublicKey>"]},{"name":"public_key_into_unvalidated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["0x1::ed25519::ValidatedPublicKey"],"return":["0x1::ed25519::UnvalidatedPublicKey"]},{"name":"public_key_to_unvalidated","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::ValidatedPublicKey"],"return":["0x1::ed25519::UnvalidatedPublicKey"]},{"name":"public_key_validate","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::UnvalidatedPublicKey"],"return":["0x1::option::Option<0x1::ed25519::ValidatedPublicKey>"]},{"name":"signature_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::Signature"],"return":["vector<u8>"]},{"name":"signature_verify_strict","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::Signature","&0x1::ed25519::UnvalidatedPublicKey","vector<u8>"],"return":["bool"]},{"name":"signature_verify_strict_t","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop"]}],"params":["&0x1::ed25519::Signature","&0x1::ed25519::UnvalidatedPublicKey","T0"],"return":["bool"]},{"name":"unvalidated_public_key_to_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::UnvalidatedPublicKey"],"return":["vector<u8>"]},{"name":"unvalidated_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::UnvalidatedPublicKey"],"return":["vector<u8>"]},{"name":"validated_public_key_to_authentication_key","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::ValidatedPublicKey"],"return":["vector<u8>"]},{"name":"validated_public_key_to_bytes","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::ed25519::ValidatedPublicKey"],"return":["vector<u8>"]}],"structs":[{"name":"Signature","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"SignedMessage","is_native":false,"abilities":["drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"type_info","type":"0x1::type_info::TypeInfo"},{"name":"inner","type":"T0"}]},{"name":"UnvalidatedPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]},{"name":"ValidatedPublicKey","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"bytes","type":"vector<u8>"}]}]}'
|
|
@@ -1540,13 +1558,13 @@ export namespace ed25519 {
|
|
|
1540
1558
|
|
|
1541
1559
|
export namespace genesis {
|
|
1542
1560
|
export class AccountMap {
|
|
1543
|
-
static
|
|
1561
|
+
static TYPE_QNAME = "0x1::genesis::AccountMap";
|
|
1544
1562
|
account_address: Address;
|
|
1545
1563
|
balance: bigint;
|
|
1546
1564
|
}
|
|
1547
1565
|
|
|
1548
1566
|
export class EmployeeAccountMap {
|
|
1549
|
-
static
|
|
1567
|
+
static TYPE_QNAME = "0x1::genesis::EmployeeAccountMap";
|
|
1550
1568
|
accounts: Address[];
|
|
1551
1569
|
validator: genesis.ValidatorConfigurationWithCommission;
|
|
1552
1570
|
vesting_schedule_numerator: bigint[];
|
|
@@ -1555,7 +1573,7 @@ export namespace genesis {
|
|
|
1555
1573
|
}
|
|
1556
1574
|
|
|
1557
1575
|
export class ValidatorConfiguration {
|
|
1558
|
-
static
|
|
1576
|
+
static TYPE_QNAME = "0x1::genesis::ValidatorConfiguration";
|
|
1559
1577
|
owner_address: Address;
|
|
1560
1578
|
operator_address: Address;
|
|
1561
1579
|
voter_address: Address;
|
|
@@ -1567,14 +1585,14 @@ export namespace genesis {
|
|
|
1567
1585
|
}
|
|
1568
1586
|
|
|
1569
1587
|
export class ValidatorConfigurationWithCommission {
|
|
1570
|
-
static
|
|
1588
|
+
static TYPE_QNAME = "0x1::genesis::ValidatorConfigurationWithCommission";
|
|
1571
1589
|
validator_config: genesis.ValidatorConfiguration;
|
|
1572
1590
|
commission_percentage: bigint;
|
|
1573
1591
|
join_during_genesis: Boolean;
|
|
1574
1592
|
}
|
|
1575
1593
|
|
|
1576
|
-
export function loadTypes(
|
|
1577
|
-
loadAllTypes(
|
|
1594
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1595
|
+
loadAllTypes(_r);
|
|
1578
1596
|
}
|
|
1579
1597
|
export const ABI: MoveModule = JSON.parse(
|
|
1580
1598
|
'{"address":"0x1","name":"genesis","friends":[],"exposed_functions":[],"structs":[{"name":"AccountMap","is_native":false,"abilities":["drop"],"generic_type_params":[],"fields":[{"name":"account_address","type":"address"},{"name":"balance","type":"u64"}]},{"name":"EmployeeAccountMap","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"accounts","type":"vector<address>"},{"name":"validator","type":"0x1::genesis::ValidatorConfigurationWithCommission"},{"name":"vesting_schedule_numerator","type":"vector<u64>"},{"name":"vesting_schedule_denominator","type":"u64"},{"name":"beneficiary_resetter","type":"address"}]},{"name":"ValidatorConfiguration","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"owner_address","type":"address"},{"name":"operator_address","type":"address"},{"name":"voter_address","type":"address"},{"name":"stake_amount","type":"u64"},{"name":"consensus_pubkey","type":"vector<u8>"},{"name":"proof_of_possession","type":"vector<u8>"},{"name":"network_addresses","type":"vector<u8>"},{"name":"full_node_network_addresses","type":"vector<u8>"}]},{"name":"ValidatorConfigurationWithCommission","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"validator_config","type":"0x1::genesis::ValidatorConfiguration"},{"name":"commission_percentage","type":"u64"},{"name":"join_during_genesis","type":"bool"}]}]}'
|
|
@@ -1582,8 +1600,8 @@ export namespace genesis {
|
|
|
1582
1600
|
}
|
|
1583
1601
|
|
|
1584
1602
|
export namespace math128 {
|
|
1585
|
-
export function loadTypes(
|
|
1586
|
-
loadAllTypes(
|
|
1603
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1604
|
+
loadAllTypes(_r);
|
|
1587
1605
|
}
|
|
1588
1606
|
export const ABI: MoveModule = JSON.parse(
|
|
1589
1607
|
'{"address":"0x1","name":"math128","friends":[],"exposed_functions":[{"name":"average","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]},{"name":"max","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]},{"name":"min","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]},{"name":"pow","visibility":"public","is_entry":false,"generic_type_params":[],"params":["u128","u128"],"return":["u128"]}],"structs":[]}'
|
|
@@ -1621,12 +1639,12 @@ export class version extends aptos.AptosBaseProcessor {
|
|
|
1621
1639
|
|
|
1622
1640
|
export namespace version {
|
|
1623
1641
|
export class SetVersionCapability {
|
|
1624
|
-
static
|
|
1642
|
+
static TYPE_QNAME = "0x1::version::SetVersionCapability";
|
|
1625
1643
|
dummy_field: Boolean;
|
|
1626
1644
|
}
|
|
1627
1645
|
|
|
1628
1646
|
export class Version {
|
|
1629
|
-
static
|
|
1647
|
+
static TYPE_QNAME = "0x1::version::Version";
|
|
1630
1648
|
major: bigint;
|
|
1631
1649
|
}
|
|
1632
1650
|
|
|
@@ -1636,8 +1654,8 @@ export namespace version {
|
|
|
1636
1654
|
type_arguments: [];
|
|
1637
1655
|
}
|
|
1638
1656
|
|
|
1639
|
-
export function loadTypes(
|
|
1640
|
-
loadAllTypes(
|
|
1657
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
1658
|
+
loadAllTypes(_r);
|
|
1641
1659
|
}
|
|
1642
1660
|
export const ABI: MoveModule = JSON.parse(
|
|
1643
1661
|
'{"address":"0x1","name":"version","friends":["0x1::genesis"],"exposed_functions":[{"name":"initialize","visibility":"friend","is_entry":false,"generic_type_params":[],"params":["&signer","u64"],"return":[]},{"name":"set_version","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","u64"],"return":[]}],"structs":[{"name":"SetVersionCapability","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"dummy_field","type":"bool"}]},{"name":"Version","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"major","type":"u64"}]}]}'
|
|
@@ -1821,38 +1839,38 @@ export class vesting extends aptos.AptosBaseProcessor {
|
|
|
1821
1839
|
return this;
|
|
1822
1840
|
}
|
|
1823
1841
|
|
|
1824
|
-
|
|
1842
|
+
onEventCreateVestingContractEvent(
|
|
1825
1843
|
func: (
|
|
1826
|
-
event: vesting.
|
|
1844
|
+
event: vesting.CreateVestingContractEventInstance,
|
|
1827
1845
|
ctx: aptos.AptosContext
|
|
1828
1846
|
) => void
|
|
1829
1847
|
): vesting {
|
|
1830
1848
|
this.onEvent(func, {
|
|
1831
|
-
type: "vesting::
|
|
1849
|
+
type: "vesting::CreateVestingContractEvent",
|
|
1832
1850
|
});
|
|
1833
1851
|
return this;
|
|
1834
1852
|
}
|
|
1835
1853
|
|
|
1836
|
-
|
|
1854
|
+
onEventUpdateOperatorEvent(
|
|
1837
1855
|
func: (
|
|
1838
|
-
event: vesting.
|
|
1856
|
+
event: vesting.UpdateOperatorEventInstance,
|
|
1839
1857
|
ctx: aptos.AptosContext
|
|
1840
1858
|
) => void
|
|
1841
1859
|
): vesting {
|
|
1842
1860
|
this.onEvent(func, {
|
|
1843
|
-
type: "vesting::
|
|
1861
|
+
type: "vesting::UpdateOperatorEvent",
|
|
1844
1862
|
});
|
|
1845
1863
|
return this;
|
|
1846
1864
|
}
|
|
1847
1865
|
|
|
1848
|
-
|
|
1866
|
+
onEventUpdateVoterEvent(
|
|
1849
1867
|
func: (
|
|
1850
|
-
event: vesting.
|
|
1868
|
+
event: vesting.UpdateVoterEventInstance,
|
|
1851
1869
|
ctx: aptos.AptosContext
|
|
1852
1870
|
) => void
|
|
1853
1871
|
): vesting {
|
|
1854
1872
|
this.onEvent(func, {
|
|
1855
|
-
type: "vesting::
|
|
1873
|
+
type: "vesting::UpdateVoterEvent",
|
|
1856
1874
|
});
|
|
1857
1875
|
return this;
|
|
1858
1876
|
}
|
|
@@ -1881,59 +1899,59 @@ export class vesting extends aptos.AptosBaseProcessor {
|
|
|
1881
1899
|
return this;
|
|
1882
1900
|
}
|
|
1883
1901
|
|
|
1884
|
-
|
|
1902
|
+
onEventUnlockRewardsEvent(
|
|
1885
1903
|
func: (
|
|
1886
|
-
event: vesting.
|
|
1904
|
+
event: vesting.UnlockRewardsEventInstance,
|
|
1887
1905
|
ctx: aptos.AptosContext
|
|
1888
1906
|
) => void
|
|
1889
1907
|
): vesting {
|
|
1890
1908
|
this.onEvent(func, {
|
|
1891
|
-
type: "vesting::
|
|
1909
|
+
type: "vesting::UnlockRewardsEvent",
|
|
1892
1910
|
});
|
|
1893
1911
|
return this;
|
|
1894
1912
|
}
|
|
1895
1913
|
|
|
1896
|
-
|
|
1897
|
-
func: (
|
|
1898
|
-
event: vesting.UnlockRewardsEventInstance,
|
|
1899
|
-
ctx: aptos.AptosContext
|
|
1900
|
-
) => void
|
|
1914
|
+
onEventVestEvent(
|
|
1915
|
+
func: (event: vesting.VestEventInstance, ctx: aptos.AptosContext) => void
|
|
1901
1916
|
): vesting {
|
|
1902
1917
|
this.onEvent(func, {
|
|
1903
|
-
type: "vesting::
|
|
1918
|
+
type: "vesting::VestEvent",
|
|
1904
1919
|
});
|
|
1905
1920
|
return this;
|
|
1906
1921
|
}
|
|
1907
1922
|
|
|
1908
|
-
|
|
1923
|
+
onEventDistributeEvent(
|
|
1909
1924
|
func: (
|
|
1910
|
-
event: vesting.
|
|
1925
|
+
event: vesting.DistributeEventInstance,
|
|
1911
1926
|
ctx: aptos.AptosContext
|
|
1912
1927
|
) => void
|
|
1913
1928
|
): vesting {
|
|
1914
1929
|
this.onEvent(func, {
|
|
1915
|
-
type: "vesting::
|
|
1930
|
+
type: "vesting::DistributeEvent",
|
|
1916
1931
|
});
|
|
1917
1932
|
return this;
|
|
1918
1933
|
}
|
|
1919
1934
|
|
|
1920
|
-
|
|
1935
|
+
onEventTerminateEvent(
|
|
1921
1936
|
func: (
|
|
1922
|
-
event: vesting.
|
|
1937
|
+
event: vesting.TerminateEventInstance,
|
|
1923
1938
|
ctx: aptos.AptosContext
|
|
1924
1939
|
) => void
|
|
1925
1940
|
): vesting {
|
|
1926
1941
|
this.onEvent(func, {
|
|
1927
|
-
type: "vesting::
|
|
1942
|
+
type: "vesting::TerminateEvent",
|
|
1928
1943
|
});
|
|
1929
1944
|
return this;
|
|
1930
1945
|
}
|
|
1931
1946
|
|
|
1932
|
-
|
|
1933
|
-
func: (
|
|
1947
|
+
onEventAdminWithdrawEvent(
|
|
1948
|
+
func: (
|
|
1949
|
+
event: vesting.AdminWithdrawEventInstance,
|
|
1950
|
+
ctx: aptos.AptosContext
|
|
1951
|
+
) => void
|
|
1934
1952
|
): vesting {
|
|
1935
1953
|
this.onEvent(func, {
|
|
1936
|
-
type: "vesting::
|
|
1954
|
+
type: "vesting::AdminWithdrawEvent",
|
|
1937
1955
|
});
|
|
1938
1956
|
return this;
|
|
1939
1957
|
}
|
|
@@ -1945,14 +1963,14 @@ export class vesting extends aptos.AptosBaseProcessor {
|
|
|
1945
1963
|
|
|
1946
1964
|
export namespace vesting {
|
|
1947
1965
|
export class AdminStore {
|
|
1948
|
-
static
|
|
1966
|
+
static TYPE_QNAME = "0x1::vesting::AdminStore";
|
|
1949
1967
|
vesting_contracts: Address[];
|
|
1950
1968
|
nonce: bigint;
|
|
1951
1969
|
create_events: event.EventHandle<vesting.CreateVestingContractEvent>;
|
|
1952
1970
|
}
|
|
1953
1971
|
|
|
1954
1972
|
export class AdminWithdrawEvent {
|
|
1955
|
-
static
|
|
1973
|
+
static TYPE_QNAME = "0x1::vesting::AdminWithdrawEvent";
|
|
1956
1974
|
admin: Address;
|
|
1957
1975
|
vesting_contract_address: Address;
|
|
1958
1976
|
amount: bigint;
|
|
@@ -1965,7 +1983,7 @@ export namespace vesting {
|
|
|
1965
1983
|
}
|
|
1966
1984
|
|
|
1967
1985
|
export class CreateVestingContractEvent {
|
|
1968
|
-
static
|
|
1986
|
+
static TYPE_QNAME = "0x1::vesting::CreateVestingContractEvent";
|
|
1969
1987
|
operator: Address;
|
|
1970
1988
|
voter: Address;
|
|
1971
1989
|
grant_amount: bigint;
|
|
@@ -1982,7 +2000,7 @@ export namespace vesting {
|
|
|
1982
2000
|
}
|
|
1983
2001
|
|
|
1984
2002
|
export class DistributeEvent {
|
|
1985
|
-
static
|
|
2003
|
+
static TYPE_QNAME = "0x1::vesting::DistributeEvent";
|
|
1986
2004
|
admin: Address;
|
|
1987
2005
|
vesting_contract_address: Address;
|
|
1988
2006
|
amount: bigint;
|
|
@@ -1995,7 +2013,7 @@ export namespace vesting {
|
|
|
1995
2013
|
}
|
|
1996
2014
|
|
|
1997
2015
|
export class ResetLockupEvent {
|
|
1998
|
-
static
|
|
2016
|
+
static TYPE_QNAME = "0x1::vesting::ResetLockupEvent";
|
|
1999
2017
|
admin: Address;
|
|
2000
2018
|
vesting_contract_address: Address;
|
|
2001
2019
|
staking_pool_address: Address;
|
|
@@ -2009,7 +2027,7 @@ export namespace vesting {
|
|
|
2009
2027
|
}
|
|
2010
2028
|
|
|
2011
2029
|
export class SetBeneficiaryEvent {
|
|
2012
|
-
static
|
|
2030
|
+
static TYPE_QNAME = "0x1::vesting::SetBeneficiaryEvent";
|
|
2013
2031
|
admin: Address;
|
|
2014
2032
|
vesting_contract_address: Address;
|
|
2015
2033
|
shareholder: Address;
|
|
@@ -2024,7 +2042,7 @@ export namespace vesting {
|
|
|
2024
2042
|
}
|
|
2025
2043
|
|
|
2026
2044
|
export class StakingInfo {
|
|
2027
|
-
static
|
|
2045
|
+
static TYPE_QNAME = "0x1::vesting::StakingInfo";
|
|
2028
2046
|
pool_address: Address;
|
|
2029
2047
|
operator: Address;
|
|
2030
2048
|
voter: Address;
|
|
@@ -2032,7 +2050,7 @@ export namespace vesting {
|
|
|
2032
2050
|
}
|
|
2033
2051
|
|
|
2034
2052
|
export class TerminateEvent {
|
|
2035
|
-
static
|
|
2053
|
+
static TYPE_QNAME = "0x1::vesting::TerminateEvent";
|
|
2036
2054
|
admin: Address;
|
|
2037
2055
|
vesting_contract_address: Address;
|
|
2038
2056
|
}
|
|
@@ -2044,7 +2062,7 @@ export namespace vesting {
|
|
|
2044
2062
|
}
|
|
2045
2063
|
|
|
2046
2064
|
export class UnlockRewardsEvent {
|
|
2047
|
-
static
|
|
2065
|
+
static TYPE_QNAME = "0x1::vesting::UnlockRewardsEvent";
|
|
2048
2066
|
admin: Address;
|
|
2049
2067
|
vesting_contract_address: Address;
|
|
2050
2068
|
staking_pool_address: Address;
|
|
@@ -2058,7 +2076,7 @@ export namespace vesting {
|
|
|
2058
2076
|
}
|
|
2059
2077
|
|
|
2060
2078
|
export class UpdateOperatorEvent {
|
|
2061
|
-
static
|
|
2079
|
+
static TYPE_QNAME = "0x1::vesting::UpdateOperatorEvent";
|
|
2062
2080
|
admin: Address;
|
|
2063
2081
|
vesting_contract_address: Address;
|
|
2064
2082
|
staking_pool_address: Address;
|
|
@@ -2074,7 +2092,7 @@ export namespace vesting {
|
|
|
2074
2092
|
}
|
|
2075
2093
|
|
|
2076
2094
|
export class UpdateVoterEvent {
|
|
2077
|
-
static
|
|
2095
|
+
static TYPE_QNAME = "0x1::vesting::UpdateVoterEvent";
|
|
2078
2096
|
admin: Address;
|
|
2079
2097
|
vesting_contract_address: Address;
|
|
2080
2098
|
staking_pool_address: Address;
|
|
@@ -2089,7 +2107,7 @@ export namespace vesting {
|
|
|
2089
2107
|
}
|
|
2090
2108
|
|
|
2091
2109
|
export class VestEvent {
|
|
2092
|
-
static
|
|
2110
|
+
static TYPE_QNAME = "0x1::vesting::VestEvent";
|
|
2093
2111
|
admin: Address;
|
|
2094
2112
|
vesting_contract_address: Address;
|
|
2095
2113
|
staking_pool_address: Address;
|
|
@@ -2104,12 +2122,12 @@ export namespace vesting {
|
|
|
2104
2122
|
}
|
|
2105
2123
|
|
|
2106
2124
|
export class VestingAccountManagement {
|
|
2107
|
-
static
|
|
2125
|
+
static TYPE_QNAME = "0x1::vesting::VestingAccountManagement";
|
|
2108
2126
|
roles: simple_map.SimpleMap<string, Address>;
|
|
2109
2127
|
}
|
|
2110
2128
|
|
|
2111
2129
|
export class VestingContract {
|
|
2112
|
-
static
|
|
2130
|
+
static TYPE_QNAME = "0x1::vesting::VestingContract";
|
|
2113
2131
|
state: bigint;
|
|
2114
2132
|
admin: Address;
|
|
2115
2133
|
grant_pool: pool_u64.Pool;
|
|
@@ -2131,7 +2149,7 @@ export namespace vesting {
|
|
|
2131
2149
|
}
|
|
2132
2150
|
|
|
2133
2151
|
export class VestingSchedule {
|
|
2134
|
-
static
|
|
2152
|
+
static TYPE_QNAME = "0x1::vesting::VestingSchedule";
|
|
2135
2153
|
schedule: fixed_point32.FixedPoint32[];
|
|
2136
2154
|
start_timestamp_secs: bigint;
|
|
2137
2155
|
period_duration: bigint;
|
|
@@ -2215,8 +2233,8 @@ export namespace vesting {
|
|
|
2215
2233
|
type_arguments: [];
|
|
2216
2234
|
}
|
|
2217
2235
|
|
|
2218
|
-
export function loadTypes(
|
|
2219
|
-
loadAllTypes(
|
|
2236
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2237
|
+
loadAllTypes(_r);
|
|
2220
2238
|
}
|
|
2221
2239
|
export const ABI: MoveModule = JSON.parse(
|
|
2222
2240
|
'{"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"}]}]}'
|
|
@@ -2225,37 +2243,37 @@ export namespace vesting {
|
|
|
2225
2243
|
|
|
2226
2244
|
export namespace bls12381 {
|
|
2227
2245
|
export class AggrOrMultiSignature {
|
|
2228
|
-
static
|
|
2246
|
+
static TYPE_QNAME = "0x1::bls12381::AggrOrMultiSignature";
|
|
2229
2247
|
bytes: string;
|
|
2230
2248
|
}
|
|
2231
2249
|
|
|
2232
2250
|
export class AggrPublicKeysWithPoP {
|
|
2233
|
-
static
|
|
2251
|
+
static TYPE_QNAME = "0x1::bls12381::AggrPublicKeysWithPoP";
|
|
2234
2252
|
bytes: string;
|
|
2235
2253
|
}
|
|
2236
2254
|
|
|
2237
2255
|
export class ProofOfPossession {
|
|
2238
|
-
static
|
|
2256
|
+
static TYPE_QNAME = "0x1::bls12381::ProofOfPossession";
|
|
2239
2257
|
bytes: string;
|
|
2240
2258
|
}
|
|
2241
2259
|
|
|
2242
2260
|
export class PublicKey {
|
|
2243
|
-
static
|
|
2261
|
+
static TYPE_QNAME = "0x1::bls12381::PublicKey";
|
|
2244
2262
|
bytes: string;
|
|
2245
2263
|
}
|
|
2246
2264
|
|
|
2247
2265
|
export class PublicKeyWithPoP {
|
|
2248
|
-
static
|
|
2266
|
+
static TYPE_QNAME = "0x1::bls12381::PublicKeyWithPoP";
|
|
2249
2267
|
bytes: string;
|
|
2250
2268
|
}
|
|
2251
2269
|
|
|
2252
2270
|
export class Signature {
|
|
2253
|
-
static
|
|
2271
|
+
static TYPE_QNAME = "0x1::bls12381::Signature";
|
|
2254
2272
|
bytes: string;
|
|
2255
2273
|
}
|
|
2256
2274
|
|
|
2257
|
-
export function loadTypes(
|
|
2258
|
-
loadAllTypes(
|
|
2275
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2276
|
+
loadAllTypes(_r);
|
|
2259
2277
|
}
|
|
2260
2278
|
export const ABI: MoveModule = JSON.parse(
|
|
2261
2279
|
'{"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>"}]}]}'
|
|
@@ -2264,12 +2282,12 @@ export namespace bls12381 {
|
|
|
2264
2282
|
|
|
2265
2283
|
export namespace chain_id {
|
|
2266
2284
|
export class ChainId {
|
|
2267
|
-
static
|
|
2285
|
+
static TYPE_QNAME = "0x1::chain_id::ChainId";
|
|
2268
2286
|
id: number;
|
|
2269
2287
|
}
|
|
2270
2288
|
|
|
2271
|
-
export function loadTypes(
|
|
2272
|
-
loadAllTypes(
|
|
2289
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2290
|
+
loadAllTypes(_r);
|
|
2273
2291
|
}
|
|
2274
2292
|
export const ABI: MoveModule = JSON.parse(
|
|
2275
2293
|
'{"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"}]}]}'
|
|
@@ -2278,12 +2296,12 @@ export namespace chain_id {
|
|
|
2278
2296
|
|
|
2279
2297
|
export namespace features {
|
|
2280
2298
|
export class Features {
|
|
2281
|
-
static
|
|
2299
|
+
static TYPE_QNAME = "0x1::features::Features";
|
|
2282
2300
|
features: string;
|
|
2283
2301
|
}
|
|
2284
2302
|
|
|
2285
|
-
export function loadTypes(
|
|
2286
|
-
loadAllTypes(
|
|
2303
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2304
|
+
loadAllTypes(_r);
|
|
2287
2305
|
}
|
|
2288
2306
|
export const ABI: MoveModule = JSON.parse(
|
|
2289
2307
|
'{"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>"}]}]}'
|
|
@@ -2291,8 +2309,8 @@ export namespace features {
|
|
|
2291
2309
|
}
|
|
2292
2310
|
|
|
2293
2311
|
export namespace from_bcs {
|
|
2294
|
-
export function loadTypes(
|
|
2295
|
-
loadAllTypes(
|
|
2312
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2313
|
+
loadAllTypes(_r);
|
|
2296
2314
|
}
|
|
2297
2315
|
export const ABI: MoveModule = JSON.parse(
|
|
2298
2316
|
'{"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":[]}'
|
|
@@ -2301,7 +2319,7 @@ export namespace from_bcs {
|
|
|
2301
2319
|
|
|
2302
2320
|
export namespace pool_u64 {
|
|
2303
2321
|
export class Pool {
|
|
2304
|
-
static
|
|
2322
|
+
static TYPE_QNAME = "0x1::pool_u64::Pool";
|
|
2305
2323
|
shareholders_limit: bigint;
|
|
2306
2324
|
total_coins: bigint;
|
|
2307
2325
|
total_shares: bigint;
|
|
@@ -2310,8 +2328,8 @@ export namespace pool_u64 {
|
|
|
2310
2328
|
scaling_factor: bigint;
|
|
2311
2329
|
}
|
|
2312
2330
|
|
|
2313
|
-
export function loadTypes(
|
|
2314
|
-
loadAllTypes(
|
|
2331
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2332
|
+
loadAllTypes(_r);
|
|
2315
2333
|
}
|
|
2316
2334
|
export const ABI: MoveModule = JSON.parse(
|
|
2317
2335
|
'{"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"}]}]}'
|
|
@@ -2320,17 +2338,17 @@ export namespace pool_u64 {
|
|
|
2320
2338
|
|
|
2321
2339
|
export namespace secp256k1 {
|
|
2322
2340
|
export class ECDSARawPublicKey {
|
|
2323
|
-
static
|
|
2341
|
+
static TYPE_QNAME = "0x1::secp256k1::ECDSARawPublicKey";
|
|
2324
2342
|
bytes: string;
|
|
2325
2343
|
}
|
|
2326
2344
|
|
|
2327
2345
|
export class ECDSASignature {
|
|
2328
|
-
static
|
|
2346
|
+
static TYPE_QNAME = "0x1::secp256k1::ECDSASignature";
|
|
2329
2347
|
bytes: string;
|
|
2330
2348
|
}
|
|
2331
2349
|
|
|
2332
|
-
export function loadTypes(
|
|
2333
|
-
loadAllTypes(
|
|
2350
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2351
|
+
loadAllTypes(_r);
|
|
2334
2352
|
}
|
|
2335
2353
|
export const ABI: MoveModule = JSON.parse(
|
|
2336
2354
|
'{"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>"}]}]}'
|
|
@@ -2339,12 +2357,12 @@ export namespace secp256k1 {
|
|
|
2339
2357
|
|
|
2340
2358
|
export namespace timestamp {
|
|
2341
2359
|
export class CurrentTimeMicroseconds {
|
|
2342
|
-
static
|
|
2360
|
+
static TYPE_QNAME = "0x1::timestamp::CurrentTimeMicroseconds";
|
|
2343
2361
|
microseconds: bigint;
|
|
2344
2362
|
}
|
|
2345
2363
|
|
|
2346
|
-
export function loadTypes(
|
|
2347
|
-
loadAllTypes(
|
|
2364
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2365
|
+
loadAllTypes(_r);
|
|
2348
2366
|
}
|
|
2349
2367
|
export const ABI: MoveModule = JSON.parse(
|
|
2350
2368
|
'{"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"}]}]}'
|
|
@@ -2353,14 +2371,14 @@ export namespace timestamp {
|
|
|
2353
2371
|
|
|
2354
2372
|
export namespace type_info {
|
|
2355
2373
|
export class TypeInfo {
|
|
2356
|
-
static
|
|
2374
|
+
static TYPE_QNAME = "0x1::type_info::TypeInfo";
|
|
2357
2375
|
account_address: Address;
|
|
2358
2376
|
module_name: string;
|
|
2359
2377
|
struct_name: string;
|
|
2360
2378
|
}
|
|
2361
2379
|
|
|
2362
|
-
export function loadTypes(
|
|
2363
|
-
loadAllTypes(
|
|
2380
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2381
|
+
loadAllTypes(_r);
|
|
2364
2382
|
}
|
|
2365
2383
|
export const ABI: MoveModule = JSON.parse(
|
|
2366
2384
|
'{"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>"}]}]}'
|
|
@@ -2369,14 +2387,14 @@ export namespace type_info {
|
|
|
2369
2387
|
|
|
2370
2388
|
export namespace aggregator {
|
|
2371
2389
|
export class Aggregator {
|
|
2372
|
-
static
|
|
2390
|
+
static TYPE_QNAME = "0x1::aggregator::Aggregator";
|
|
2373
2391
|
handle: Address;
|
|
2374
2392
|
key: Address;
|
|
2375
2393
|
limit: bigint;
|
|
2376
2394
|
}
|
|
2377
2395
|
|
|
2378
|
-
export function loadTypes(
|
|
2379
|
-
loadAllTypes(
|
|
2396
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2397
|
+
loadAllTypes(_r);
|
|
2380
2398
|
}
|
|
2381
2399
|
export const ABI: MoveModule = JSON.parse(
|
|
2382
2400
|
'{"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"}]}]}'
|
|
@@ -2442,22 +2460,22 @@ export class aptos_coin extends aptos.AptosBaseProcessor {
|
|
|
2442
2460
|
|
|
2443
2461
|
export namespace aptos_coin {
|
|
2444
2462
|
export class AptosCoin {
|
|
2445
|
-
static
|
|
2463
|
+
static TYPE_QNAME = "0x1::aptos_coin::AptosCoin";
|
|
2446
2464
|
dummy_field: Boolean;
|
|
2447
2465
|
}
|
|
2448
2466
|
|
|
2449
2467
|
export class DelegatedMintCapability {
|
|
2450
|
-
static
|
|
2468
|
+
static TYPE_QNAME = "0x1::aptos_coin::DelegatedMintCapability";
|
|
2451
2469
|
to: Address;
|
|
2452
2470
|
}
|
|
2453
2471
|
|
|
2454
2472
|
export class Delegations {
|
|
2455
|
-
static
|
|
2473
|
+
static TYPE_QNAME = "0x1::aptos_coin::Delegations";
|
|
2456
2474
|
inner: aptos_coin.DelegatedMintCapability[];
|
|
2457
2475
|
}
|
|
2458
2476
|
|
|
2459
2477
|
export class MintCapStore {
|
|
2460
|
-
static
|
|
2478
|
+
static TYPE_QNAME = "0x1::aptos_coin::MintCapStore";
|
|
2461
2479
|
mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
|
|
2462
2480
|
}
|
|
2463
2481
|
|
|
@@ -2479,8 +2497,8 @@ export namespace aptos_coin {
|
|
|
2479
2497
|
type_arguments: [];
|
|
2480
2498
|
}
|
|
2481
2499
|
|
|
2482
|
-
export function loadTypes(
|
|
2483
|
-
loadAllTypes(
|
|
2500
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2501
|
+
loadAllTypes(_r);
|
|
2484
2502
|
}
|
|
2485
2503
|
export const ABI: MoveModule = JSON.parse(
|
|
2486
2504
|
'{"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>"}]}]}'
|
|
@@ -2488,8 +2506,8 @@ export namespace aptos_coin {
|
|
|
2488
2506
|
}
|
|
2489
2507
|
|
|
2490
2508
|
export namespace aptos_hash {
|
|
2491
|
-
export function loadTypes(
|
|
2492
|
-
loadAllTypes(
|
|
2509
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2510
|
+
loadAllTypes(_r);
|
|
2493
2511
|
}
|
|
2494
2512
|
export const ABI: MoveModule = JSON.parse(
|
|
2495
2513
|
'{"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":[]}'
|
|
@@ -2498,13 +2516,13 @@ export namespace aptos_hash {
|
|
|
2498
2516
|
|
|
2499
2517
|
export namespace bit_vector {
|
|
2500
2518
|
export class BitVector {
|
|
2501
|
-
static
|
|
2519
|
+
static TYPE_QNAME = "0x1::bit_vector::BitVector";
|
|
2502
2520
|
length: bigint;
|
|
2503
2521
|
bit_field: Boolean[];
|
|
2504
2522
|
}
|
|
2505
2523
|
|
|
2506
|
-
export function loadTypes(
|
|
2507
|
-
loadAllTypes(
|
|
2524
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2525
|
+
loadAllTypes(_r);
|
|
2508
2526
|
}
|
|
2509
2527
|
export const ABI: MoveModule = JSON.parse(
|
|
2510
2528
|
'{"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>"}]}]}'
|
|
@@ -2513,27 +2531,27 @@ export namespace bit_vector {
|
|
|
2513
2531
|
|
|
2514
2532
|
export namespace capability {
|
|
2515
2533
|
export class Cap<T0> {
|
|
2516
|
-
static
|
|
2534
|
+
static TYPE_QNAME = "0x1::capability::Cap";
|
|
2517
2535
|
root: Address;
|
|
2518
2536
|
}
|
|
2519
2537
|
|
|
2520
2538
|
export class CapDelegateState<T0> {
|
|
2521
|
-
static
|
|
2539
|
+
static TYPE_QNAME = "0x1::capability::CapDelegateState";
|
|
2522
2540
|
root: Address;
|
|
2523
2541
|
}
|
|
2524
2542
|
|
|
2525
2543
|
export class CapState<T0> {
|
|
2526
|
-
static
|
|
2544
|
+
static TYPE_QNAME = "0x1::capability::CapState";
|
|
2527
2545
|
delegates: Address[];
|
|
2528
2546
|
}
|
|
2529
2547
|
|
|
2530
2548
|
export class LinearCap<T0> {
|
|
2531
|
-
static
|
|
2549
|
+
static TYPE_QNAME = "0x1::capability::LinearCap";
|
|
2532
2550
|
root: Address;
|
|
2533
2551
|
}
|
|
2534
2552
|
|
|
2535
|
-
export function loadTypes(
|
|
2536
|
-
loadAllTypes(
|
|
2553
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2554
|
+
loadAllTypes(_r);
|
|
2537
2555
|
}
|
|
2538
2556
|
export const ABI: MoveModule = JSON.parse(
|
|
2539
2557
|
'{"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"}]}]}'
|
|
@@ -2542,12 +2560,12 @@ export namespace capability {
|
|
|
2542
2560
|
|
|
2543
2561
|
export namespace comparator {
|
|
2544
2562
|
export class Result {
|
|
2545
|
-
static
|
|
2563
|
+
static TYPE_QNAME = "0x1::comparator::Result";
|
|
2546
2564
|
inner: number;
|
|
2547
2565
|
}
|
|
2548
2566
|
|
|
2549
|
-
export function loadTypes(
|
|
2550
|
-
loadAllTypes(
|
|
2567
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2568
|
+
loadAllTypes(_r);
|
|
2551
2569
|
}
|
|
2552
2570
|
export const ABI: MoveModule = JSON.parse(
|
|
2553
2571
|
'{"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"}]}]}'
|
|
@@ -2556,18 +2574,18 @@ export namespace comparator {
|
|
|
2556
2574
|
|
|
2557
2575
|
export namespace simple_map {
|
|
2558
2576
|
export class Element<T0, T1> {
|
|
2559
|
-
static
|
|
2577
|
+
static TYPE_QNAME = "0x1::simple_map::Element";
|
|
2560
2578
|
key: T0;
|
|
2561
2579
|
value: T1;
|
|
2562
2580
|
}
|
|
2563
2581
|
|
|
2564
2582
|
export class SimpleMap<T0, T1> {
|
|
2565
|
-
static
|
|
2583
|
+
static TYPE_QNAME = "0x1::simple_map::SimpleMap";
|
|
2566
2584
|
data: simple_map.Element<T0, T1>[];
|
|
2567
2585
|
}
|
|
2568
2586
|
|
|
2569
|
-
export function loadTypes(
|
|
2570
|
-
loadAllTypes(
|
|
2587
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2588
|
+
loadAllTypes(_r);
|
|
2571
2589
|
}
|
|
2572
2590
|
export const ABI: MoveModule = JSON.parse(
|
|
2573
2591
|
'{"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>>"}]}]}'
|
|
@@ -2576,20 +2594,20 @@ export namespace simple_map {
|
|
|
2576
2594
|
|
|
2577
2595
|
export namespace storage_gas {
|
|
2578
2596
|
export class GasCurve {
|
|
2579
|
-
static
|
|
2597
|
+
static TYPE_QNAME = "0x1::storage_gas::GasCurve";
|
|
2580
2598
|
min_gas: bigint;
|
|
2581
2599
|
max_gas: bigint;
|
|
2582
2600
|
points: storage_gas.Point[];
|
|
2583
2601
|
}
|
|
2584
2602
|
|
|
2585
2603
|
export class Point {
|
|
2586
|
-
static
|
|
2604
|
+
static TYPE_QNAME = "0x1::storage_gas::Point";
|
|
2587
2605
|
x: bigint;
|
|
2588
2606
|
y: bigint;
|
|
2589
2607
|
}
|
|
2590
2608
|
|
|
2591
2609
|
export class StorageGas {
|
|
2592
|
-
static
|
|
2610
|
+
static TYPE_QNAME = "0x1::storage_gas::StorageGas";
|
|
2593
2611
|
per_item_read: bigint;
|
|
2594
2612
|
per_item_create: bigint;
|
|
2595
2613
|
per_item_write: bigint;
|
|
@@ -2599,21 +2617,21 @@ export namespace storage_gas {
|
|
|
2599
2617
|
}
|
|
2600
2618
|
|
|
2601
2619
|
export class StorageGasConfig {
|
|
2602
|
-
static
|
|
2620
|
+
static TYPE_QNAME = "0x1::storage_gas::StorageGasConfig";
|
|
2603
2621
|
item_config: storage_gas.UsageGasConfig;
|
|
2604
2622
|
byte_config: storage_gas.UsageGasConfig;
|
|
2605
2623
|
}
|
|
2606
2624
|
|
|
2607
2625
|
export class UsageGasConfig {
|
|
2608
|
-
static
|
|
2626
|
+
static TYPE_QNAME = "0x1::storage_gas::UsageGasConfig";
|
|
2609
2627
|
target_usage: bigint;
|
|
2610
2628
|
read_curve: storage_gas.GasCurve;
|
|
2611
2629
|
create_curve: storage_gas.GasCurve;
|
|
2612
2630
|
write_curve: storage_gas.GasCurve;
|
|
2613
2631
|
}
|
|
2614
2632
|
|
|
2615
|
-
export function loadTypes(
|
|
2616
|
-
loadAllTypes(
|
|
2633
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2634
|
+
loadAllTypes(_r);
|
|
2617
2635
|
}
|
|
2618
2636
|
export const ABI: MoveModule = JSON.parse(
|
|
2619
2637
|
'{"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"}]}]}'
|
|
@@ -2622,12 +2640,12 @@ export namespace storage_gas {
|
|
|
2622
2640
|
|
|
2623
2641
|
export namespace chain_status {
|
|
2624
2642
|
export class GenesisEndMarker {
|
|
2625
|
-
static
|
|
2643
|
+
static TYPE_QNAME = "0x1::chain_status::GenesisEndMarker";
|
|
2626
2644
|
dummy_field: Boolean;
|
|
2627
2645
|
}
|
|
2628
2646
|
|
|
2629
|
-
export function loadTypes(
|
|
2630
|
-
loadAllTypes(
|
|
2647
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2648
|
+
loadAllTypes(_r);
|
|
2631
2649
|
}
|
|
2632
2650
|
export const ABI: MoveModule = JSON.parse(
|
|
2633
2651
|
'{"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"}]}]}'
|
|
@@ -2636,13 +2654,13 @@ export namespace chain_status {
|
|
|
2636
2654
|
|
|
2637
2655
|
export namespace copyable_any {
|
|
2638
2656
|
export class Any {
|
|
2639
|
-
static
|
|
2657
|
+
static TYPE_QNAME = "0x1::copyable_any::Any";
|
|
2640
2658
|
type_name: string;
|
|
2641
2659
|
data: string;
|
|
2642
2660
|
}
|
|
2643
2661
|
|
|
2644
|
-
export function loadTypes(
|
|
2645
|
-
loadAllTypes(
|
|
2662
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2663
|
+
loadAllTypes(_r);
|
|
2646
2664
|
}
|
|
2647
2665
|
export const ABI: MoveModule = JSON.parse(
|
|
2648
2666
|
'{"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>"}]}]}'
|
|
@@ -2651,24 +2669,24 @@ export namespace copyable_any {
|
|
|
2651
2669
|
|
|
2652
2670
|
export namespace gas_schedule {
|
|
2653
2671
|
export class GasEntry {
|
|
2654
|
-
static
|
|
2672
|
+
static TYPE_QNAME = "0x1::gas_schedule::GasEntry";
|
|
2655
2673
|
key: string;
|
|
2656
2674
|
val: bigint;
|
|
2657
2675
|
}
|
|
2658
2676
|
|
|
2659
2677
|
export class GasSchedule {
|
|
2660
|
-
static
|
|
2678
|
+
static TYPE_QNAME = "0x1::gas_schedule::GasSchedule";
|
|
2661
2679
|
entries: gas_schedule.GasEntry[];
|
|
2662
2680
|
}
|
|
2663
2681
|
|
|
2664
2682
|
export class GasScheduleV2 {
|
|
2665
|
-
static
|
|
2683
|
+
static TYPE_QNAME = "0x1::gas_schedule::GasScheduleV2";
|
|
2666
2684
|
feature_version: bigint;
|
|
2667
2685
|
entries: gas_schedule.GasEntry[];
|
|
2668
2686
|
}
|
|
2669
2687
|
|
|
2670
|
-
export function loadTypes(
|
|
2671
|
-
loadAllTypes(
|
|
2688
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2689
|
+
loadAllTypes(_r);
|
|
2672
2690
|
}
|
|
2673
2691
|
export const ABI: MoveModule = JSON.parse(
|
|
2674
2692
|
'{"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>"}]}]}'
|
|
@@ -2742,7 +2760,7 @@ export class managed_coin extends aptos.AptosBaseProcessor {
|
|
|
2742
2760
|
|
|
2743
2761
|
export namespace managed_coin {
|
|
2744
2762
|
export class Capabilities<T0> {
|
|
2745
|
-
static
|
|
2763
|
+
static TYPE_QNAME = "0x1::managed_coin::Capabilities";
|
|
2746
2764
|
burn_cap: coin.BurnCapability<T0>;
|
|
2747
2765
|
freeze_cap: coin.FreezeCapability<T0>;
|
|
2748
2766
|
mint_cap: coin.MintCapability<T0>;
|
|
@@ -2771,8 +2789,8 @@ export namespace managed_coin {
|
|
|
2771
2789
|
type_arguments: [string];
|
|
2772
2790
|
}
|
|
2773
2791
|
|
|
2774
|
-
export function loadTypes(
|
|
2775
|
-
loadAllTypes(
|
|
2792
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2793
|
+
loadAllTypes(_r);
|
|
2776
2794
|
}
|
|
2777
2795
|
export const ABI: MoveModule = JSON.parse(
|
|
2778
2796
|
'{"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>"}]}]}'
|
|
@@ -2781,22 +2799,22 @@ export namespace managed_coin {
|
|
|
2781
2799
|
|
|
2782
2800
|
export namespace ristretto255 {
|
|
2783
2801
|
export class CompressedRistretto {
|
|
2784
|
-
static
|
|
2802
|
+
static TYPE_QNAME = "0x1::ristretto255::CompressedRistretto";
|
|
2785
2803
|
data: string;
|
|
2786
2804
|
}
|
|
2787
2805
|
|
|
2788
2806
|
export class RistrettoPoint {
|
|
2789
|
-
static
|
|
2807
|
+
static TYPE_QNAME = "0x1::ristretto255::RistrettoPoint";
|
|
2790
2808
|
handle: bigint;
|
|
2791
2809
|
}
|
|
2792
2810
|
|
|
2793
2811
|
export class Scalar {
|
|
2794
|
-
static
|
|
2812
|
+
static TYPE_QNAME = "0x1::ristretto255::Scalar";
|
|
2795
2813
|
data: string;
|
|
2796
2814
|
}
|
|
2797
2815
|
|
|
2798
|
-
export function loadTypes(
|
|
2799
|
-
loadAllTypes(
|
|
2816
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2817
|
+
loadAllTypes(_r);
|
|
2800
2818
|
}
|
|
2801
2819
|
export const ABI: MoveModule = JSON.parse(
|
|
2802
2820
|
'{"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>"}]}]}'
|
|
@@ -2862,8 +2880,8 @@ export namespace aptos_account {
|
|
|
2862
2880
|
type_arguments: [];
|
|
2863
2881
|
}
|
|
2864
2882
|
|
|
2865
|
-
export function loadTypes(
|
|
2866
|
-
loadAllTypes(
|
|
2883
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2884
|
+
loadAllTypes(_r);
|
|
2867
2885
|
}
|
|
2868
2886
|
export const ABI: MoveModule = JSON.parse(
|
|
2869
2887
|
'{"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":[]}'
|
|
@@ -2872,12 +2890,12 @@ export namespace aptos_account {
|
|
|
2872
2890
|
|
|
2873
2891
|
export namespace fixed_point32 {
|
|
2874
2892
|
export class FixedPoint32 {
|
|
2875
|
-
static
|
|
2893
|
+
static TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
|
|
2876
2894
|
value: bigint;
|
|
2877
2895
|
}
|
|
2878
2896
|
|
|
2879
|
-
export function loadTypes(
|
|
2880
|
-
loadAllTypes(
|
|
2897
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2898
|
+
loadAllTypes(_r);
|
|
2881
2899
|
}
|
|
2882
2900
|
export const ABI: MoveModule = JSON.parse(
|
|
2883
2901
|
'{"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"}]}]}'
|
|
@@ -2886,22 +2904,22 @@ export namespace fixed_point32 {
|
|
|
2886
2904
|
|
|
2887
2905
|
export namespace multi_ed25519 {
|
|
2888
2906
|
export class Signature {
|
|
2889
|
-
static
|
|
2907
|
+
static TYPE_QNAME = "0x1::multi_ed25519::Signature";
|
|
2890
2908
|
bytes: string;
|
|
2891
2909
|
}
|
|
2892
2910
|
|
|
2893
2911
|
export class UnvalidatedPublicKey {
|
|
2894
|
-
static
|
|
2912
|
+
static TYPE_QNAME = "0x1::multi_ed25519::UnvalidatedPublicKey";
|
|
2895
2913
|
bytes: string;
|
|
2896
2914
|
}
|
|
2897
2915
|
|
|
2898
2916
|
export class ValidatedPublicKey {
|
|
2899
|
-
static
|
|
2917
|
+
static TYPE_QNAME = "0x1::multi_ed25519::ValidatedPublicKey";
|
|
2900
2918
|
bytes: string;
|
|
2901
2919
|
}
|
|
2902
2920
|
|
|
2903
|
-
export function loadTypes(
|
|
2904
|
-
loadAllTypes(
|
|
2921
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
2922
|
+
loadAllTypes(_r);
|
|
2905
2923
|
}
|
|
2906
2924
|
export const ABI: MoveModule = JSON.parse(
|
|
2907
2925
|
'{"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>"}]}]}'
|
|
@@ -3087,8 +3105,8 @@ export namespace staking_proxy {
|
|
|
3087
3105
|
type_arguments: [];
|
|
3088
3106
|
}
|
|
3089
3107
|
|
|
3090
|
-
export function loadTypes(
|
|
3091
|
-
loadAllTypes(
|
|
3108
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3109
|
+
loadAllTypes(_r);
|
|
3092
3110
|
}
|
|
3093
3111
|
export const ABI: MoveModule = JSON.parse(
|
|
3094
3112
|
'{"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":[]}'
|
|
@@ -3097,24 +3115,24 @@ export namespace staking_proxy {
|
|
|
3097
3115
|
|
|
3098
3116
|
export namespace state_storage {
|
|
3099
3117
|
export class GasParameter {
|
|
3100
|
-
static
|
|
3118
|
+
static TYPE_QNAME = "0x1::state_storage::GasParameter";
|
|
3101
3119
|
usage: state_storage.Usage;
|
|
3102
3120
|
}
|
|
3103
3121
|
|
|
3104
3122
|
export class StateStorageUsage {
|
|
3105
|
-
static
|
|
3123
|
+
static TYPE_QNAME = "0x1::state_storage::StateStorageUsage";
|
|
3106
3124
|
epoch: bigint;
|
|
3107
3125
|
usage: state_storage.Usage;
|
|
3108
3126
|
}
|
|
3109
3127
|
|
|
3110
3128
|
export class Usage {
|
|
3111
|
-
static
|
|
3129
|
+
static TYPE_QNAME = "0x1::state_storage::Usage";
|
|
3112
3130
|
items: bigint;
|
|
3113
3131
|
bytes: bigint;
|
|
3114
3132
|
}
|
|
3115
3133
|
|
|
3116
|
-
export function loadTypes(
|
|
3117
|
-
loadAllTypes(
|
|
3134
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3135
|
+
loadAllTypes(_r);
|
|
3118
3136
|
}
|
|
3119
3137
|
export const ABI: MoveModule = JSON.parse(
|
|
3120
3138
|
'{"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"}]}]}'
|
|
@@ -3123,7 +3141,7 @@ export namespace state_storage {
|
|
|
3123
3141
|
|
|
3124
3142
|
export namespace staking_config {
|
|
3125
3143
|
export class StakingConfig {
|
|
3126
|
-
static
|
|
3144
|
+
static TYPE_QNAME = "0x1::staking_config::StakingConfig";
|
|
3127
3145
|
minimum_stake: bigint;
|
|
3128
3146
|
maximum_stake: bigint;
|
|
3129
3147
|
recurring_lockup_duration_secs: bigint;
|
|
@@ -3133,8 +3151,8 @@ export namespace staking_config {
|
|
|
3133
3151
|
voting_power_increase_limit: bigint;
|
|
3134
3152
|
}
|
|
3135
3153
|
|
|
3136
|
-
export function loadTypes(
|
|
3137
|
-
loadAllTypes(
|
|
3154
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3155
|
+
loadAllTypes(_r);
|
|
3138
3156
|
}
|
|
3139
3157
|
export const ABI: MoveModule = JSON.parse(
|
|
3140
3158
|
'{"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"}]}]}'
|
|
@@ -3176,19 +3194,19 @@ export class reconfiguration extends aptos.AptosBaseProcessor {
|
|
|
3176
3194
|
|
|
3177
3195
|
export namespace reconfiguration {
|
|
3178
3196
|
export class Configuration {
|
|
3179
|
-
static
|
|
3197
|
+
static TYPE_QNAME = "0x1::reconfiguration::Configuration";
|
|
3180
3198
|
epoch: bigint;
|
|
3181
3199
|
last_reconfiguration_time: bigint;
|
|
3182
3200
|
events: event.EventHandle<reconfiguration.NewEpochEvent>;
|
|
3183
3201
|
}
|
|
3184
3202
|
|
|
3185
3203
|
export class DisableReconfiguration {
|
|
3186
|
-
static
|
|
3204
|
+
static TYPE_QNAME = "0x1::reconfiguration::DisableReconfiguration";
|
|
3187
3205
|
dummy_field: Boolean;
|
|
3188
3206
|
}
|
|
3189
3207
|
|
|
3190
3208
|
export class NewEpochEvent {
|
|
3191
|
-
static
|
|
3209
|
+
static TYPE_QNAME = "0x1::reconfiguration::NewEpochEvent";
|
|
3192
3210
|
epoch: bigint;
|
|
3193
3211
|
}
|
|
3194
3212
|
|
|
@@ -3198,8 +3216,8 @@ export namespace reconfiguration {
|
|
|
3198
3216
|
type_arguments: [];
|
|
3199
3217
|
}
|
|
3200
3218
|
|
|
3201
|
-
export function loadTypes(
|
|
3202
|
-
loadAllTypes(
|
|
3219
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3220
|
+
loadAllTypes(_r);
|
|
3203
3221
|
}
|
|
3204
3222
|
export const ABI: MoveModule = JSON.parse(
|
|
3205
3223
|
'{"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"}]}]}'
|
|
@@ -3208,12 +3226,12 @@ export namespace reconfiguration {
|
|
|
3208
3226
|
|
|
3209
3227
|
export namespace transaction_fee {
|
|
3210
3228
|
export class AptosCoinCapabilities {
|
|
3211
|
-
static
|
|
3229
|
+
static TYPE_QNAME = "0x1::transaction_fee::AptosCoinCapabilities";
|
|
3212
3230
|
burn_cap: coin.BurnCapability<aptos_coin.AptosCoin>;
|
|
3213
3231
|
}
|
|
3214
3232
|
|
|
3215
|
-
export function loadTypes(
|
|
3216
|
-
loadAllTypes(
|
|
3233
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3234
|
+
loadAllTypes(_r);
|
|
3217
3235
|
}
|
|
3218
3236
|
export const ABI: MoveModule = JSON.parse(
|
|
3219
3237
|
'{"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>"}]}]}'
|
|
@@ -3318,12 +3336,12 @@ export class aptos_governance extends aptos.AptosBaseProcessor {
|
|
|
3318
3336
|
|
|
3319
3337
|
export namespace aptos_governance {
|
|
3320
3338
|
export class ApprovedExecutionHashes {
|
|
3321
|
-
static
|
|
3339
|
+
static TYPE_QNAME = "0x1::aptos_governance::ApprovedExecutionHashes";
|
|
3322
3340
|
hashes: simple_map.SimpleMap<bigint, string>;
|
|
3323
3341
|
}
|
|
3324
3342
|
|
|
3325
3343
|
export class CreateProposalEvent {
|
|
3326
|
-
static
|
|
3344
|
+
static TYPE_QNAME = "0x1::aptos_governance::CreateProposalEvent";
|
|
3327
3345
|
proposer: Address;
|
|
3328
3346
|
stake_pool: Address;
|
|
3329
3347
|
proposal_id: bigint;
|
|
@@ -3338,32 +3356,32 @@ export namespace aptos_governance {
|
|
|
3338
3356
|
}
|
|
3339
3357
|
|
|
3340
3358
|
export class GovernanceConfig {
|
|
3341
|
-
static
|
|
3359
|
+
static TYPE_QNAME = "0x1::aptos_governance::GovernanceConfig";
|
|
3342
3360
|
min_voting_threshold: bigint;
|
|
3343
3361
|
required_proposer_stake: bigint;
|
|
3344
3362
|
voting_duration_secs: bigint;
|
|
3345
3363
|
}
|
|
3346
3364
|
|
|
3347
3365
|
export class GovernanceEvents {
|
|
3348
|
-
static
|
|
3366
|
+
static TYPE_QNAME = "0x1::aptos_governance::GovernanceEvents";
|
|
3349
3367
|
create_proposal_events: event.EventHandle<aptos_governance.CreateProposalEvent>;
|
|
3350
3368
|
update_config_events: event.EventHandle<aptos_governance.UpdateConfigEvent>;
|
|
3351
3369
|
vote_events: event.EventHandle<aptos_governance.VoteEvent>;
|
|
3352
3370
|
}
|
|
3353
3371
|
|
|
3354
3372
|
export class GovernanceResponsbility {
|
|
3355
|
-
static
|
|
3373
|
+
static TYPE_QNAME = "0x1::aptos_governance::GovernanceResponsbility";
|
|
3356
3374
|
signer_caps: simple_map.SimpleMap<Address, account.SignerCapability>;
|
|
3357
3375
|
}
|
|
3358
3376
|
|
|
3359
3377
|
export class RecordKey {
|
|
3360
|
-
static
|
|
3378
|
+
static TYPE_QNAME = "0x1::aptos_governance::RecordKey";
|
|
3361
3379
|
stake_pool: Address;
|
|
3362
3380
|
proposal_id: bigint;
|
|
3363
3381
|
}
|
|
3364
3382
|
|
|
3365
3383
|
export class UpdateConfigEvent {
|
|
3366
|
-
static
|
|
3384
|
+
static TYPE_QNAME = "0x1::aptos_governance::UpdateConfigEvent";
|
|
3367
3385
|
min_voting_threshold: bigint;
|
|
3368
3386
|
required_proposer_stake: bigint;
|
|
3369
3387
|
voting_duration_secs: bigint;
|
|
@@ -3376,7 +3394,7 @@ export namespace aptos_governance {
|
|
|
3376
3394
|
}
|
|
3377
3395
|
|
|
3378
3396
|
export class VoteEvent {
|
|
3379
|
-
static
|
|
3397
|
+
static TYPE_QNAME = "0x1::aptos_governance::VoteEvent";
|
|
3380
3398
|
proposal_id: bigint;
|
|
3381
3399
|
voter: Address;
|
|
3382
3400
|
stake_pool: Address;
|
|
@@ -3391,7 +3409,7 @@ export namespace aptos_governance {
|
|
|
3391
3409
|
}
|
|
3392
3410
|
|
|
3393
3411
|
export class VotingRecords {
|
|
3394
|
-
static
|
|
3412
|
+
static TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
|
|
3395
3413
|
votes: table.Table<aptos_governance.RecordKey, Boolean>;
|
|
3396
3414
|
}
|
|
3397
3415
|
|
|
@@ -3413,8 +3431,8 @@ export namespace aptos_governance {
|
|
|
3413
3431
|
type_arguments: [];
|
|
3414
3432
|
}
|
|
3415
3433
|
|
|
3416
|
-
export function loadTypes(
|
|
3417
|
-
loadAllTypes(
|
|
3434
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3435
|
+
loadAllTypes(_r);
|
|
3418
3436
|
}
|
|
3419
3437
|
export const ABI: MoveModule = JSON.parse(
|
|
3420
3438
|
'{"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>"}]}]}'
|
|
@@ -3423,12 +3441,12 @@ export namespace aptos_governance {
|
|
|
3423
3441
|
|
|
3424
3442
|
export namespace consensus_config {
|
|
3425
3443
|
export class ConsensusConfig {
|
|
3426
|
-
static
|
|
3444
|
+
static TYPE_QNAME = "0x1::consensus_config::ConsensusConfig";
|
|
3427
3445
|
config: string;
|
|
3428
3446
|
}
|
|
3429
3447
|
|
|
3430
|
-
export function loadTypes(
|
|
3431
|
-
loadAllTypes(
|
|
3448
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3449
|
+
loadAllTypes(_r);
|
|
3432
3450
|
}
|
|
3433
3451
|
export const ABI: MoveModule = JSON.parse(
|
|
3434
3452
|
'{"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>"}]}]}'
|
|
@@ -3500,7 +3518,7 @@ export class resource_account extends aptos.AptosBaseProcessor {
|
|
|
3500
3518
|
|
|
3501
3519
|
export namespace resource_account {
|
|
3502
3520
|
export class Container {
|
|
3503
|
-
static
|
|
3521
|
+
static TYPE_QNAME = "0x1::resource_account::Container";
|
|
3504
3522
|
store: simple_map.SimpleMap<Address, account.SignerCapability>;
|
|
3505
3523
|
}
|
|
3506
3524
|
|
|
@@ -3522,8 +3540,8 @@ export namespace resource_account {
|
|
|
3522
3540
|
type_arguments: [];
|
|
3523
3541
|
}
|
|
3524
3542
|
|
|
3525
|
-
export function loadTypes(
|
|
3526
|
-
loadAllTypes(
|
|
3543
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
3544
|
+
loadAllTypes(_r);
|
|
3527
3545
|
}
|
|
3528
3546
|
export const ABI: MoveModule = JSON.parse(
|
|
3529
3547
|
'{"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>"}]}]}'
|
|
@@ -3686,50 +3704,50 @@ export class staking_contract extends aptos.AptosBaseProcessor {
|
|
|
3686
3704
|
return this;
|
|
3687
3705
|
}
|
|
3688
3706
|
|
|
3689
|
-
|
|
3707
|
+
onEventCreateStakingContractEvent(
|
|
3690
3708
|
func: (
|
|
3691
|
-
event: staking_contract.
|
|
3709
|
+
event: staking_contract.CreateStakingContractEventInstance,
|
|
3692
3710
|
ctx: aptos.AptosContext
|
|
3693
3711
|
) => void
|
|
3694
3712
|
): staking_contract {
|
|
3695
3713
|
this.onEvent(func, {
|
|
3696
|
-
type: "staking_contract::
|
|
3714
|
+
type: "staking_contract::CreateStakingContractEvent",
|
|
3697
3715
|
});
|
|
3698
3716
|
return this;
|
|
3699
3717
|
}
|
|
3700
3718
|
|
|
3701
|
-
|
|
3719
|
+
onEventUpdateVoterEvent(
|
|
3702
3720
|
func: (
|
|
3703
|
-
event: staking_contract.
|
|
3721
|
+
event: staking_contract.UpdateVoterEventInstance,
|
|
3704
3722
|
ctx: aptos.AptosContext
|
|
3705
3723
|
) => void
|
|
3706
3724
|
): staking_contract {
|
|
3707
3725
|
this.onEvent(func, {
|
|
3708
|
-
type: "staking_contract::
|
|
3726
|
+
type: "staking_contract::UpdateVoterEvent",
|
|
3709
3727
|
});
|
|
3710
3728
|
return this;
|
|
3711
3729
|
}
|
|
3712
3730
|
|
|
3713
|
-
|
|
3731
|
+
onEventResetLockupEvent(
|
|
3714
3732
|
func: (
|
|
3715
|
-
event: staking_contract.
|
|
3733
|
+
event: staking_contract.ResetLockupEventInstance,
|
|
3716
3734
|
ctx: aptos.AptosContext
|
|
3717
3735
|
) => void
|
|
3718
3736
|
): staking_contract {
|
|
3719
3737
|
this.onEvent(func, {
|
|
3720
|
-
type: "staking_contract::
|
|
3738
|
+
type: "staking_contract::ResetLockupEvent",
|
|
3721
3739
|
});
|
|
3722
3740
|
return this;
|
|
3723
3741
|
}
|
|
3724
3742
|
|
|
3725
|
-
|
|
3743
|
+
onEventAddStakeEvent(
|
|
3726
3744
|
func: (
|
|
3727
|
-
event: staking_contract.
|
|
3745
|
+
event: staking_contract.AddStakeEventInstance,
|
|
3728
3746
|
ctx: aptos.AptosContext
|
|
3729
3747
|
) => void
|
|
3730
3748
|
): staking_contract {
|
|
3731
3749
|
this.onEvent(func, {
|
|
3732
|
-
type: "staking_contract::
|
|
3750
|
+
type: "staking_contract::AddStakeEvent",
|
|
3733
3751
|
});
|
|
3734
3752
|
return this;
|
|
3735
3753
|
}
|
|
@@ -3746,14 +3764,14 @@ export class staking_contract extends aptos.AptosBaseProcessor {
|
|
|
3746
3764
|
return this;
|
|
3747
3765
|
}
|
|
3748
3766
|
|
|
3749
|
-
|
|
3767
|
+
onEventUnlockStakeEvent(
|
|
3750
3768
|
func: (
|
|
3751
|
-
event: staking_contract.
|
|
3769
|
+
event: staking_contract.UnlockStakeEventInstance,
|
|
3752
3770
|
ctx: aptos.AptosContext
|
|
3753
3771
|
) => void
|
|
3754
3772
|
): staking_contract {
|
|
3755
3773
|
this.onEvent(func, {
|
|
3756
|
-
type: "staking_contract::
|
|
3774
|
+
type: "staking_contract::UnlockStakeEvent",
|
|
3757
3775
|
});
|
|
3758
3776
|
return this;
|
|
3759
3777
|
}
|
|
@@ -3770,26 +3788,26 @@ export class staking_contract extends aptos.AptosBaseProcessor {
|
|
|
3770
3788
|
return this;
|
|
3771
3789
|
}
|
|
3772
3790
|
|
|
3773
|
-
|
|
3791
|
+
onEventAddDistributionEvent(
|
|
3774
3792
|
func: (
|
|
3775
|
-
event: staking_contract.
|
|
3793
|
+
event: staking_contract.AddDistributionEventInstance,
|
|
3776
3794
|
ctx: aptos.AptosContext
|
|
3777
3795
|
) => void
|
|
3778
3796
|
): staking_contract {
|
|
3779
3797
|
this.onEvent(func, {
|
|
3780
|
-
type: "staking_contract::
|
|
3798
|
+
type: "staking_contract::AddDistributionEvent",
|
|
3781
3799
|
});
|
|
3782
3800
|
return this;
|
|
3783
3801
|
}
|
|
3784
3802
|
|
|
3785
|
-
|
|
3803
|
+
onEventDistributeEvent(
|
|
3786
3804
|
func: (
|
|
3787
|
-
event: staking_contract.
|
|
3805
|
+
event: staking_contract.DistributeEventInstance,
|
|
3788
3806
|
ctx: aptos.AptosContext
|
|
3789
3807
|
) => void
|
|
3790
3808
|
): staking_contract {
|
|
3791
3809
|
this.onEvent(func, {
|
|
3792
|
-
type: "staking_contract::
|
|
3810
|
+
type: "staking_contract::DistributeEvent",
|
|
3793
3811
|
});
|
|
3794
3812
|
return this;
|
|
3795
3813
|
}
|
|
@@ -3801,7 +3819,7 @@ export class staking_contract extends aptos.AptosBaseProcessor {
|
|
|
3801
3819
|
|
|
3802
3820
|
export namespace staking_contract {
|
|
3803
3821
|
export class AddDistributionEvent {
|
|
3804
|
-
static
|
|
3822
|
+
static TYPE_QNAME = "0x1::staking_contract::AddDistributionEvent";
|
|
3805
3823
|
operator: Address;
|
|
3806
3824
|
pool_address: Address;
|
|
3807
3825
|
amount: bigint;
|
|
@@ -3814,7 +3832,7 @@ export namespace staking_contract {
|
|
|
3814
3832
|
}
|
|
3815
3833
|
|
|
3816
3834
|
export class AddStakeEvent {
|
|
3817
|
-
static
|
|
3835
|
+
static TYPE_QNAME = "0x1::staking_contract::AddStakeEvent";
|
|
3818
3836
|
operator: Address;
|
|
3819
3837
|
pool_address: Address;
|
|
3820
3838
|
amount: bigint;
|
|
@@ -3827,7 +3845,7 @@ export namespace staking_contract {
|
|
|
3827
3845
|
}
|
|
3828
3846
|
|
|
3829
3847
|
export class CreateStakingContractEvent {
|
|
3830
|
-
static
|
|
3848
|
+
static TYPE_QNAME = "0x1::staking_contract::CreateStakingContractEvent";
|
|
3831
3849
|
operator: Address;
|
|
3832
3850
|
voter: Address;
|
|
3833
3851
|
pool_address: Address;
|
|
@@ -3842,7 +3860,7 @@ export namespace staking_contract {
|
|
|
3842
3860
|
}
|
|
3843
3861
|
|
|
3844
3862
|
export class DistributeEvent {
|
|
3845
|
-
static
|
|
3863
|
+
static TYPE_QNAME = "0x1::staking_contract::DistributeEvent";
|
|
3846
3864
|
operator: Address;
|
|
3847
3865
|
pool_address: Address;
|
|
3848
3866
|
recipient: Address;
|
|
@@ -3856,7 +3874,7 @@ export namespace staking_contract {
|
|
|
3856
3874
|
}
|
|
3857
3875
|
|
|
3858
3876
|
export class RequestCommissionEvent {
|
|
3859
|
-
static
|
|
3877
|
+
static TYPE_QNAME = "0x1::staking_contract::RequestCommissionEvent";
|
|
3860
3878
|
operator: Address;
|
|
3861
3879
|
pool_address: Address;
|
|
3862
3880
|
accumulated_rewards: bigint;
|
|
@@ -3870,7 +3888,7 @@ export namespace staking_contract {
|
|
|
3870
3888
|
}
|
|
3871
3889
|
|
|
3872
3890
|
export class ResetLockupEvent {
|
|
3873
|
-
static
|
|
3891
|
+
static TYPE_QNAME = "0x1::staking_contract::ResetLockupEvent";
|
|
3874
3892
|
operator: Address;
|
|
3875
3893
|
pool_address: Address;
|
|
3876
3894
|
}
|
|
@@ -3882,7 +3900,7 @@ export namespace staking_contract {
|
|
|
3882
3900
|
}
|
|
3883
3901
|
|
|
3884
3902
|
export class StakingContract {
|
|
3885
|
-
static
|
|
3903
|
+
static TYPE_QNAME = "0x1::staking_contract::StakingContract";
|
|
3886
3904
|
principal: bigint;
|
|
3887
3905
|
pool_address: Address;
|
|
3888
3906
|
owner_cap: stake.OwnerCapability;
|
|
@@ -3892,7 +3910,7 @@ export namespace staking_contract {
|
|
|
3892
3910
|
}
|
|
3893
3911
|
|
|
3894
3912
|
export class Store {
|
|
3895
|
-
static
|
|
3913
|
+
static TYPE_QNAME = "0x1::staking_contract::Store";
|
|
3896
3914
|
staking_contracts: simple_map.SimpleMap<
|
|
3897
3915
|
Address,
|
|
3898
3916
|
staking_contract.StakingContract
|
|
@@ -3909,7 +3927,7 @@ export namespace staking_contract {
|
|
|
3909
3927
|
}
|
|
3910
3928
|
|
|
3911
3929
|
export class SwitchOperatorEvent {
|
|
3912
|
-
static
|
|
3930
|
+
static TYPE_QNAME = "0x1::staking_contract::SwitchOperatorEvent";
|
|
3913
3931
|
old_operator: Address;
|
|
3914
3932
|
new_operator: Address;
|
|
3915
3933
|
pool_address: Address;
|
|
@@ -3922,7 +3940,7 @@ export namespace staking_contract {
|
|
|
3922
3940
|
}
|
|
3923
3941
|
|
|
3924
3942
|
export class UnlockStakeEvent {
|
|
3925
|
-
static
|
|
3943
|
+
static TYPE_QNAME = "0x1::staking_contract::UnlockStakeEvent";
|
|
3926
3944
|
operator: Address;
|
|
3927
3945
|
pool_address: Address;
|
|
3928
3946
|
amount: bigint;
|
|
@@ -3936,7 +3954,7 @@ export namespace staking_contract {
|
|
|
3936
3954
|
}
|
|
3937
3955
|
|
|
3938
3956
|
export class UpdateVoterEvent {
|
|
3939
|
-
static
|
|
3957
|
+
static TYPE_QNAME = "0x1::staking_contract::UpdateVoterEvent";
|
|
3940
3958
|
operator: Address;
|
|
3941
3959
|
pool_address: Address;
|
|
3942
3960
|
old_voter: Address;
|
|
@@ -4011,8 +4029,8 @@ export namespace staking_contract {
|
|
|
4011
4029
|
type_arguments: [];
|
|
4012
4030
|
}
|
|
4013
4031
|
|
|
4014
|
-
export function loadTypes(
|
|
4015
|
-
loadAllTypes(
|
|
4032
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4033
|
+
loadAllTypes(_r);
|
|
4016
4034
|
}
|
|
4017
4035
|
export const ABI: MoveModule = JSON.parse(
|
|
4018
4036
|
'{"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"}]}]}'
|
|
@@ -4020,8 +4038,8 @@ export namespace staking_contract {
|
|
|
4020
4038
|
}
|
|
4021
4039
|
|
|
4022
4040
|
export namespace system_addresses {
|
|
4023
|
-
export function loadTypes(
|
|
4024
|
-
loadAllTypes(
|
|
4041
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4042
|
+
loadAllTypes(_r);
|
|
4025
4043
|
}
|
|
4026
4044
|
export const ABI: MoveModule = JSON.parse(
|
|
4027
4045
|
'{"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":[]}'
|
|
@@ -4030,13 +4048,13 @@ export namespace system_addresses {
|
|
|
4030
4048
|
|
|
4031
4049
|
export namespace table_with_length {
|
|
4032
4050
|
export class TableWithLength<T0, T1> {
|
|
4033
|
-
static
|
|
4051
|
+
static TYPE_QNAME = "0x1::table_with_length::TableWithLength";
|
|
4034
4052
|
inner: table.Table<T0, T1>;
|
|
4035
4053
|
length: bigint;
|
|
4036
4054
|
}
|
|
4037
4055
|
|
|
4038
|
-
export function loadTypes(
|
|
4039
|
-
loadAllTypes(
|
|
4056
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4057
|
+
loadAllTypes(_r);
|
|
4040
4058
|
}
|
|
4041
4059
|
export const ABI: MoveModule = JSON.parse(
|
|
4042
4060
|
'{"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"}]}]}'
|
|
@@ -4045,12 +4063,12 @@ export namespace table_with_length {
|
|
|
4045
4063
|
|
|
4046
4064
|
export namespace aggregator_factory {
|
|
4047
4065
|
export class AggregatorFactory {
|
|
4048
|
-
static
|
|
4066
|
+
static TYPE_QNAME = "0x1::aggregator_factory::AggregatorFactory";
|
|
4049
4067
|
phantom_table: table.Table<Address, bigint>;
|
|
4050
4068
|
}
|
|
4051
4069
|
|
|
4052
|
-
export function loadTypes(
|
|
4053
|
-
loadAllTypes(
|
|
4070
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4071
|
+
loadAllTypes(_r);
|
|
4054
4072
|
}
|
|
4055
4073
|
export const ABI: MoveModule = JSON.parse(
|
|
4056
4074
|
'{"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>"}]}]}'
|
|
@@ -4059,12 +4077,12 @@ export namespace aggregator_factory {
|
|
|
4059
4077
|
|
|
4060
4078
|
export namespace governance_proposal {
|
|
4061
4079
|
export class GovernanceProposal {
|
|
4062
|
-
static
|
|
4080
|
+
static TYPE_QNAME = "0x1::governance_proposal::GovernanceProposal";
|
|
4063
4081
|
dummy_field: Boolean;
|
|
4064
4082
|
}
|
|
4065
4083
|
|
|
4066
|
-
export function loadTypes(
|
|
4067
|
-
loadAllTypes(
|
|
4084
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4085
|
+
loadAllTypes(_r);
|
|
4068
4086
|
}
|
|
4069
4087
|
export const ABI: MoveModule = JSON.parse(
|
|
4070
4088
|
'{"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"}]}]}'
|
|
@@ -4073,19 +4091,19 @@ export namespace governance_proposal {
|
|
|
4073
4091
|
|
|
4074
4092
|
export namespace optional_aggregator {
|
|
4075
4093
|
export class Integer {
|
|
4076
|
-
static
|
|
4094
|
+
static TYPE_QNAME = "0x1::optional_aggregator::Integer";
|
|
4077
4095
|
value: bigint;
|
|
4078
4096
|
limit: bigint;
|
|
4079
4097
|
}
|
|
4080
4098
|
|
|
4081
4099
|
export class OptionalAggregator {
|
|
4082
|
-
static
|
|
4100
|
+
static TYPE_QNAME = "0x1::optional_aggregator::OptionalAggregator";
|
|
4083
4101
|
aggregator: option.Option<aggregator.Aggregator>;
|
|
4084
4102
|
integer: option.Option<optional_aggregator.Integer>;
|
|
4085
4103
|
}
|
|
4086
4104
|
|
|
4087
|
-
export function loadTypes(
|
|
4088
|
-
loadAllTypes(
|
|
4105
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4106
|
+
loadAllTypes(_r);
|
|
4089
4107
|
}
|
|
4090
4108
|
export const ABI: MoveModule = JSON.parse(
|
|
4091
4109
|
'{"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>"}]}]}'
|
|
@@ -4093,8 +4111,8 @@ export namespace optional_aggregator {
|
|
|
4093
4111
|
}
|
|
4094
4112
|
|
|
4095
4113
|
export namespace transaction_context {
|
|
4096
|
-
export function loadTypes(
|
|
4097
|
-
loadAllTypes(
|
|
4114
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4115
|
+
loadAllTypes(_r);
|
|
4098
4116
|
}
|
|
4099
4117
|
export const ABI: MoveModule = JSON.parse(
|
|
4100
4118
|
'{"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":[]}'
|
|
@@ -4103,7 +4121,7 @@ export namespace transaction_context {
|
|
|
4103
4121
|
|
|
4104
4122
|
export namespace transaction_validation {
|
|
4105
4123
|
export class TransactionValidation {
|
|
4106
|
-
static
|
|
4124
|
+
static TYPE_QNAME = "0x1::transaction_validation::TransactionValidation";
|
|
4107
4125
|
module_addr: Address;
|
|
4108
4126
|
module_name: string;
|
|
4109
4127
|
script_prologue_name: string;
|
|
@@ -4112,79 +4130,79 @@ export namespace transaction_validation {
|
|
|
4112
4130
|
user_epilogue_name: string;
|
|
4113
4131
|
}
|
|
4114
4132
|
|
|
4115
|
-
export function loadTypes(
|
|
4116
|
-
loadAllTypes(
|
|
4133
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
4134
|
+
loadAllTypes(_r);
|
|
4117
4135
|
}
|
|
4118
4136
|
export const ABI: MoveModule = JSON.parse(
|
|
4119
4137
|
'{"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>"}]}]}'
|
|
4120
4138
|
);
|
|
4121
4139
|
}
|
|
4122
4140
|
|
|
4123
|
-
function loadAllTypes(
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4141
|
+
function loadAllTypes(_r: aptos.TypeRegistry) {
|
|
4142
|
+
_r.load(acl.ABI);
|
|
4143
|
+
_r.load(any.ABI);
|
|
4144
|
+
_r.load(bcs.ABI);
|
|
4145
|
+
_r.load(code.ABI);
|
|
4146
|
+
_r.load(coin.ABI);
|
|
4147
|
+
_r.load(guid.ABI);
|
|
4148
|
+
_r.load(hash.ABI);
|
|
4149
|
+
_r.load(util.ABI);
|
|
4150
|
+
_r.load(block.ABI);
|
|
4151
|
+
_r.load(debug.ABI);
|
|
4152
|
+
_r.load(error.ABI);
|
|
4153
|
+
_r.load(event.ABI);
|
|
4154
|
+
_r.load(stake.ABI);
|
|
4155
|
+
_r.load(table.ABI);
|
|
4156
|
+
_r.load(math64.ABI);
|
|
4157
|
+
_r.load(option.ABI);
|
|
4158
|
+
_r.load(signer.ABI);
|
|
4159
|
+
_r.load(string.ABI);
|
|
4160
|
+
_r.load(vector.ABI);
|
|
4161
|
+
_r.load(voting.ABI);
|
|
4162
|
+
_r.load(account.ABI);
|
|
4163
|
+
_r.load(ed25519.ABI);
|
|
4164
|
+
_r.load(genesis.ABI);
|
|
4165
|
+
_r.load(math128.ABI);
|
|
4166
|
+
_r.load(version.ABI);
|
|
4167
|
+
_r.load(vesting.ABI);
|
|
4168
|
+
_r.load(bls12381.ABI);
|
|
4169
|
+
_r.load(chain_id.ABI);
|
|
4170
|
+
_r.load(features.ABI);
|
|
4171
|
+
_r.load(from_bcs.ABI);
|
|
4172
|
+
_r.load(pool_u64.ABI);
|
|
4173
|
+
_r.load(secp256k1.ABI);
|
|
4174
|
+
_r.load(timestamp.ABI);
|
|
4175
|
+
_r.load(type_info.ABI);
|
|
4176
|
+
_r.load(aggregator.ABI);
|
|
4177
|
+
_r.load(aptos_coin.ABI);
|
|
4178
|
+
_r.load(aptos_hash.ABI);
|
|
4179
|
+
_r.load(bit_vector.ABI);
|
|
4180
|
+
_r.load(capability.ABI);
|
|
4181
|
+
_r.load(comparator.ABI);
|
|
4182
|
+
_r.load(simple_map.ABI);
|
|
4183
|
+
_r.load(storage_gas.ABI);
|
|
4184
|
+
_r.load(chain_status.ABI);
|
|
4185
|
+
_r.load(copyable_any.ABI);
|
|
4186
|
+
_r.load(gas_schedule.ABI);
|
|
4187
|
+
_r.load(managed_coin.ABI);
|
|
4188
|
+
_r.load(ristretto255.ABI);
|
|
4189
|
+
_r.load(aptos_account.ABI);
|
|
4190
|
+
_r.load(fixed_point32.ABI);
|
|
4191
|
+
_r.load(multi_ed25519.ABI);
|
|
4192
|
+
_r.load(staking_proxy.ABI);
|
|
4193
|
+
_r.load(state_storage.ABI);
|
|
4194
|
+
_r.load(staking_config.ABI);
|
|
4195
|
+
_r.load(reconfiguration.ABI);
|
|
4196
|
+
_r.load(transaction_fee.ABI);
|
|
4197
|
+
_r.load(aptos_governance.ABI);
|
|
4198
|
+
_r.load(consensus_config.ABI);
|
|
4199
|
+
_r.load(resource_account.ABI);
|
|
4200
|
+
_r.load(staking_contract.ABI);
|
|
4201
|
+
_r.load(system_addresses.ABI);
|
|
4202
|
+
_r.load(table_with_length.ABI);
|
|
4203
|
+
_r.load(aggregator_factory.ABI);
|
|
4204
|
+
_r.load(governance_proposal.ABI);
|
|
4205
|
+
_r.load(optional_aggregator.ABI);
|
|
4206
|
+
_r.load(transaction_context.ABI);
|
|
4207
|
+
_r.load(transaction_validation.ABI);
|
|
4190
4208
|
}
|