@sentio/sdk 1.37.0-rc.2 → 1.37.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/builtin/index.d.ts +0 -2
- package/lib/builtin/index.js +1 -3
- package/lib/builtin/index.js.map +1 -1
- package/lib/core/eth-plugin.js +12 -15
- package/lib/core/eth-plugin.js.map +1 -1
- package/lib/core/index.d.ts +0 -4
- package/lib/core/index.js +1 -9
- package/lib/core/index.js.map +1 -1
- package/lib/core/sui-plugin.js +1 -1
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -14
- package/lib/index.js.map +1 -1
- package/lib/service.d.ts +0 -4
- package/lib/service.js +40 -71
- package/lib/service.js.map +1 -1
- package/package.json +5 -16
- package/src/builtin/index.ts +1 -4
- package/src/core/eth-plugin.ts +5 -8
- package/src/core/index.ts +0 -5
- package/src/core/sui-plugin.ts +2 -2
- package/src/index.ts +3 -1
- package/src/service.ts +13 -71
- package/lib/aptos/api.d.ts +0 -2
- package/lib/aptos/api.js +0 -14
- package/lib/aptos/api.js.map +0 -1
- package/lib/aptos/aptos-plugin.d.ts +0 -14
- package/lib/aptos/aptos-plugin.js +0 -185
- package/lib/aptos/aptos-plugin.js.map +0 -1
- package/lib/aptos/aptos-processor.d.ts +0 -75
- package/lib/aptos/aptos-processor.js +0 -193
- package/lib/aptos/aptos-processor.js.map +0 -1
- package/lib/aptos/context.d.ts +0 -22
- package/lib/aptos/context.js +0 -65
- package/lib/aptos/context.js.map +0 -1
- package/lib/aptos/index.d.ts +0 -9
- package/lib/aptos/index.js +0 -34
- package/lib/aptos/index.js.map +0 -1
- package/lib/aptos/models.d.ts +0 -23
- package/lib/aptos/models.js +0 -3
- package/lib/aptos/models.js.map +0 -1
- package/lib/aptos/network.d.ts +0 -14
- package/lib/aptos/network.js +0 -46
- package/lib/aptos/network.js.map +0 -1
- package/lib/aptos/runtime.d.ts +0 -2
- package/lib/aptos/runtime.js +0 -16
- package/lib/aptos/runtime.js.map +0 -1
- package/lib/aptos/type-registry.d.ts +0 -21
- package/lib/aptos/type-registry.js +0 -156
- package/lib/aptos/type-registry.js.map +0 -1
- package/lib/aptos/types.d.ts +0 -9
- package/lib/aptos/types.js +0 -135
- package/lib/aptos/types.js.map +0 -1
- package/lib/aptos/types.test.d.ts +0 -1
- package/lib/aptos/types.test.js.map +0 -1
- package/lib/aptos/utils.d.ts +0 -7
- package/lib/aptos/utils.js +0 -27
- package/lib/aptos/utils.js.map +0 -1
- package/lib/aptos-codegen/codegen.d.ts +0 -23
- package/lib/aptos-codegen/codegen.js +0 -364
- package/lib/aptos-codegen/codegen.js.map +0 -1
- package/lib/aptos-codegen/typegen.d.ts +0 -17
- package/lib/aptos-codegen/typegen.js +0 -142
- package/lib/aptos-codegen/typegen.js.map +0 -1
- package/lib/builtin/aptos/0x1.d.ts +0 -1913
- package/lib/builtin/aptos/0x1.js +0 -2748
- package/lib/builtin/aptos/0x1.js.map +0 -1
- package/lib/builtin/aptos/0x3.d.ts +0 -482
- package/lib/builtin/aptos/0x3.js +0 -526
- package/lib/builtin/aptos/0x3.js.map +0 -1
- package/lib/builtin/aptos/index.d.ts +0 -2
- package/lib/builtin/aptos/index.js +0 -29
- package/lib/builtin/aptos/index.js.map +0 -1
- package/lib/builtin/solana/index.d.ts +0 -2
- package/lib/builtin/solana/index.js +0 -19
- package/lib/builtin/solana/index.js.map +0 -1
- package/lib/builtin/solana/spl-token-processor.d.ts +0 -39
- package/lib/builtin/solana/spl-token-processor.js +0 -258
- package/lib/builtin/solana/spl-token-processor.js.map +0 -1
- package/lib/builtin/solana/types.d.ts +0 -427
- package/lib/builtin/solana/types.js +0 -203
- package/lib/builtin/solana/types.js.map +0 -1
- package/lib/builtin/solana/wormhole-processor.d.ts +0 -12
- package/lib/builtin/solana/wormhole-processor.js +0 -268
- package/lib/builtin/solana/wormhole-processor.js.map +0 -1
- package/lib/core/solana-context.d.ts +0 -11
- package/lib/core/solana-context.js +0 -34
- package/lib/core/solana-context.js.map +0 -1
- package/lib/core/solana-options.d.ts +0 -8
- package/lib/core/solana-options.js +0 -13
- package/lib/core/solana-options.js.map +0 -1
- package/lib/core/solana-plugin.d.ts +0 -9
- package/lib/core/solana-plugin.js +0 -79
- package/lib/core/solana-plugin.js.map +0 -1
- package/lib/core/solana-processor.d.ts +0 -40
- package/lib/core/solana-processor.js +0 -80
- package/lib/core/solana-processor.js.map +0 -1
- package/lib/solana-codegen/codegen.d.ts +0 -1
- package/lib/solana-codegen/codegen.js +0 -124
- package/lib/solana-codegen/codegen.js.map +0 -1
- package/lib/test-abi-code-gen.d.ts +0 -2
- package/lib/test-abi-code-gen.js +0 -20
- package/lib/test-abi-code-gen.js.map +0 -1
- package/src/abis/aptos/0x1.json +0 -9205
- package/src/abis/aptos/0x3.json +0 -1515
- package/src/aptos/api.ts +0 -11
- package/src/aptos/aptos-plugin.ts +0 -216
- package/src/aptos/aptos-processor.ts +0 -305
- package/src/aptos/context.ts +0 -74
- package/src/aptos/index.ts +0 -10
- package/src/aptos/models.ts +0 -34
- package/src/aptos/network.ts +0 -42
- package/src/aptos/runtime.ts +0 -13
- package/src/aptos/type-registry.ts +0 -187
- package/src/aptos/types.ts +0 -149
- package/src/aptos/utils.ts +0 -26
- package/src/aptos-codegen/codegen.ts +0 -428
- package/src/aptos-codegen/tsconfig.json +0 -9
- package/src/aptos-codegen/typegen.ts +0 -153
- package/src/builtin/aptos/0x1.ts +0 -4210
- package/src/builtin/aptos/0x3.ts +0 -888
- package/src/builtin/aptos/index.ts +0 -2
- package/src/builtin/solana/index.ts +0 -2
- package/src/builtin/solana/spl-token-processor.ts +0 -298
- package/src/builtin/solana/types.ts +0 -279
- package/src/builtin/solana/wormhole-processor.ts +0 -269
- package/src/core/solana-context.ts +0 -34
- package/src/core/solana-options.ts +0 -8
- package/src/core/solana-plugin.ts +0 -97
- package/src/core/solana-processor.ts +0 -102
- package/src/solana-codegen/codegen.ts +0 -129
- package/src/test-abi-code-gen.ts +0 -16
package/lib/builtin/aptos/0x1.js
DELETED
|
@@ -1,2748 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.multi_ed25519 = exports.fixed_point32 = exports.aptos_account = exports.ristretto255 = exports.managed_coin = exports.gas_schedule = exports.copyable_any = exports.chain_status = exports.storage_gas = exports.simple_map = exports.comparator = exports.capability = exports.bit_vector = exports.aptos_hash = exports.aptos_coin = exports.aggregator = exports.type_info = exports.timestamp = exports.secp256k1 = exports.pool_u64 = exports.from_bcs = exports.features = exports.chain_id = exports.bls12381 = exports.vesting = exports.version = exports.math128 = exports.genesis = exports.ed25519 = exports.account = exports.voting = exports.vector = exports.string = exports.signer = exports.option = exports.math64 = exports.table = exports.stake = exports.event = exports.error = exports.debug = exports.block = exports.util = exports.hash = exports.guid = exports.coin = exports.code = exports.bcs = exports.any = exports.acl = void 0;
|
|
7
|
-
exports.loadAllTypes = exports.transaction_validation = exports.transaction_context = exports.optional_aggregator = exports.governance_proposal = exports.aggregator_factory = exports.table_with_length = exports.system_addresses = exports.staking_contract = exports.resource_account = exports.consensus_config = exports.aptos_governance = exports.transaction_fee = exports.reconfiguration = exports.staking_config = exports.state_storage = exports.staking_proxy = void 0;
|
|
8
|
-
/* Generated modules for account 0x1 */
|
|
9
|
-
const sdk_1 = require("@sentio/sdk");
|
|
10
|
-
var acl;
|
|
11
|
-
(function (acl) {
|
|
12
|
-
class ACL {
|
|
13
|
-
static TYPE_QNAME = "0x1::acl::ACL";
|
|
14
|
-
list;
|
|
15
|
-
}
|
|
16
|
-
acl.ACL = ACL;
|
|
17
|
-
function loadTypes(_r) {
|
|
18
|
-
loadAllTypes(_r);
|
|
19
|
-
}
|
|
20
|
-
acl.loadTypes = loadTypes;
|
|
21
|
-
acl.ABI = JSON.parse('{"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>"}]}]}');
|
|
22
|
-
})(acl = exports.acl || (exports.acl = {}));
|
|
23
|
-
var any;
|
|
24
|
-
(function (any) {
|
|
25
|
-
class Any {
|
|
26
|
-
static TYPE_QNAME = "0x1::any::Any";
|
|
27
|
-
type_name;
|
|
28
|
-
data;
|
|
29
|
-
}
|
|
30
|
-
any.Any = Any;
|
|
31
|
-
function loadTypes(_r) {
|
|
32
|
-
loadAllTypes(_r);
|
|
33
|
-
}
|
|
34
|
-
any.loadTypes = loadTypes;
|
|
35
|
-
any.ABI = JSON.parse('{"address":"0x1","name":"any","friends":["0x1::copyable_any"],"exposed_functions":[{"name":"pack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":["drop","store"]}],"params":["T0"],"return":["0x1::any::Any"]},{"name":"type_name","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&0x1::any::Any"],"return":["&0x1::string::String"]},{"name":"unpack","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["0x1::any::Any"],"return":["T0"]}],"structs":[{"name":"Any","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"type_name","type":"0x1::string::String"},{"name":"data","type":"vector<u8>"}]}]}');
|
|
36
|
-
})(any = exports.any || (exports.any = {}));
|
|
37
|
-
var bcs;
|
|
38
|
-
(function (bcs) {
|
|
39
|
-
function loadTypes(_r) {
|
|
40
|
-
loadAllTypes(_r);
|
|
41
|
-
}
|
|
42
|
-
bcs.loadTypes = loadTypes;
|
|
43
|
-
bcs.ABI = JSON.parse('{"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":[]}');
|
|
44
|
-
})(bcs = exports.bcs || (exports.bcs = {}));
|
|
45
|
-
class code extends sdk_1.aptos.AptosBaseProcessor {
|
|
46
|
-
constructor(options) {
|
|
47
|
-
super("code", options);
|
|
48
|
-
}
|
|
49
|
-
static DEFAULT_OPTIONS = {
|
|
50
|
-
address: "0x1",
|
|
51
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
52
|
-
};
|
|
53
|
-
static bind(options = {}) {
|
|
54
|
-
return new code({ ...code.DEFAULT_OPTIONS, ...options });
|
|
55
|
-
}
|
|
56
|
-
onEntryPublishPackageTxn(func, filter) {
|
|
57
|
-
this.onEntryFunctionCall(func, {
|
|
58
|
-
...filter,
|
|
59
|
-
function: "code::publish_package_txn",
|
|
60
|
-
});
|
|
61
|
-
return this;
|
|
62
|
-
}
|
|
63
|
-
loadTypesInternal(registry) {
|
|
64
|
-
loadAllTypes(registry);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.code = code;
|
|
68
|
-
(function (code) {
|
|
69
|
-
class AllowedDep {
|
|
70
|
-
static TYPE_QNAME = "0x1::code::AllowedDep";
|
|
71
|
-
account;
|
|
72
|
-
module_name;
|
|
73
|
-
}
|
|
74
|
-
code.AllowedDep = AllowedDep;
|
|
75
|
-
class ModuleMetadata {
|
|
76
|
-
static TYPE_QNAME = "0x1::code::ModuleMetadata";
|
|
77
|
-
name;
|
|
78
|
-
source;
|
|
79
|
-
source_map;
|
|
80
|
-
extension;
|
|
81
|
-
}
|
|
82
|
-
code.ModuleMetadata = ModuleMetadata;
|
|
83
|
-
class PackageDep {
|
|
84
|
-
static TYPE_QNAME = "0x1::code::PackageDep";
|
|
85
|
-
account;
|
|
86
|
-
package_name;
|
|
87
|
-
}
|
|
88
|
-
code.PackageDep = PackageDep;
|
|
89
|
-
class PackageMetadata {
|
|
90
|
-
static TYPE_QNAME = "0x1::code::PackageMetadata";
|
|
91
|
-
name;
|
|
92
|
-
upgrade_policy;
|
|
93
|
-
upgrade_number;
|
|
94
|
-
source_digest;
|
|
95
|
-
manifest;
|
|
96
|
-
modules;
|
|
97
|
-
deps;
|
|
98
|
-
extension;
|
|
99
|
-
}
|
|
100
|
-
code.PackageMetadata = PackageMetadata;
|
|
101
|
-
class PackageRegistry {
|
|
102
|
-
static TYPE_QNAME = "0x1::code::PackageRegistry";
|
|
103
|
-
packages;
|
|
104
|
-
}
|
|
105
|
-
code.PackageRegistry = PackageRegistry;
|
|
106
|
-
class UpgradePolicy {
|
|
107
|
-
static TYPE_QNAME = "0x1::code::UpgradePolicy";
|
|
108
|
-
policy;
|
|
109
|
-
}
|
|
110
|
-
code.UpgradePolicy = UpgradePolicy;
|
|
111
|
-
function loadTypes(_r) {
|
|
112
|
-
loadAllTypes(_r);
|
|
113
|
-
}
|
|
114
|
-
code.loadTypes = loadTypes;
|
|
115
|
-
code.ABI = JSON.parse('{"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"}]}]}');
|
|
116
|
-
})(code = exports.code || (exports.code = {}));
|
|
117
|
-
class coin extends sdk_1.aptos.AptosBaseProcessor {
|
|
118
|
-
constructor(options) {
|
|
119
|
-
super("coin", options);
|
|
120
|
-
}
|
|
121
|
-
static DEFAULT_OPTIONS = {
|
|
122
|
-
address: "0x1",
|
|
123
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
124
|
-
};
|
|
125
|
-
static bind(options = {}) {
|
|
126
|
-
return new coin({ ...coin.DEFAULT_OPTIONS, ...options });
|
|
127
|
-
}
|
|
128
|
-
onEntryFreezeCoinStore(func, filter) {
|
|
129
|
-
this.onEntryFunctionCall(func, {
|
|
130
|
-
...filter,
|
|
131
|
-
function: "coin::freeze_coin_store",
|
|
132
|
-
});
|
|
133
|
-
return this;
|
|
134
|
-
}
|
|
135
|
-
onEntryTransfer(func, filter) {
|
|
136
|
-
this.onEntryFunctionCall(func, {
|
|
137
|
-
...filter,
|
|
138
|
-
function: "coin::transfer",
|
|
139
|
-
});
|
|
140
|
-
return this;
|
|
141
|
-
}
|
|
142
|
-
onEntryUnfreezeCoinStore(func, filter) {
|
|
143
|
-
this.onEntryFunctionCall(func, {
|
|
144
|
-
...filter,
|
|
145
|
-
function: "coin::unfreeze_coin_store",
|
|
146
|
-
});
|
|
147
|
-
return this;
|
|
148
|
-
}
|
|
149
|
-
onEntryUpgradeSupply(func, filter) {
|
|
150
|
-
this.onEntryFunctionCall(func, {
|
|
151
|
-
...filter,
|
|
152
|
-
function: "coin::upgrade_supply",
|
|
153
|
-
});
|
|
154
|
-
return this;
|
|
155
|
-
}
|
|
156
|
-
onEventDepositEvent(func) {
|
|
157
|
-
this.onEvent(func, {
|
|
158
|
-
type: "coin::DepositEvent",
|
|
159
|
-
});
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
|
-
onEventWithdrawEvent(func) {
|
|
163
|
-
this.onEvent(func, {
|
|
164
|
-
type: "coin::WithdrawEvent",
|
|
165
|
-
});
|
|
166
|
-
return this;
|
|
167
|
-
}
|
|
168
|
-
loadTypesInternal(registry) {
|
|
169
|
-
loadAllTypes(registry);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
exports.coin = coin;
|
|
173
|
-
(function (coin) {
|
|
174
|
-
class BurnCapability {
|
|
175
|
-
static TYPE_QNAME = "0x1::coin::BurnCapability";
|
|
176
|
-
dummy_field;
|
|
177
|
-
}
|
|
178
|
-
coin.BurnCapability = BurnCapability;
|
|
179
|
-
class Coin {
|
|
180
|
-
static TYPE_QNAME = "0x1::coin::Coin";
|
|
181
|
-
value;
|
|
182
|
-
}
|
|
183
|
-
coin.Coin = Coin;
|
|
184
|
-
class CoinInfo {
|
|
185
|
-
static TYPE_QNAME = "0x1::coin::CoinInfo";
|
|
186
|
-
name;
|
|
187
|
-
symbol;
|
|
188
|
-
decimals;
|
|
189
|
-
supply;
|
|
190
|
-
}
|
|
191
|
-
coin.CoinInfo = CoinInfo;
|
|
192
|
-
class CoinStore {
|
|
193
|
-
static TYPE_QNAME = "0x1::coin::CoinStore";
|
|
194
|
-
coin;
|
|
195
|
-
frozen;
|
|
196
|
-
deposit_events;
|
|
197
|
-
withdraw_events;
|
|
198
|
-
}
|
|
199
|
-
coin.CoinStore = CoinStore;
|
|
200
|
-
class DepositEvent {
|
|
201
|
-
static TYPE_QNAME = "0x1::coin::DepositEvent";
|
|
202
|
-
amount;
|
|
203
|
-
}
|
|
204
|
-
coin.DepositEvent = DepositEvent;
|
|
205
|
-
class FreezeCapability {
|
|
206
|
-
static TYPE_QNAME = "0x1::coin::FreezeCapability";
|
|
207
|
-
dummy_field;
|
|
208
|
-
}
|
|
209
|
-
coin.FreezeCapability = FreezeCapability;
|
|
210
|
-
class MintCapability {
|
|
211
|
-
static TYPE_QNAME = "0x1::coin::MintCapability";
|
|
212
|
-
dummy_field;
|
|
213
|
-
}
|
|
214
|
-
coin.MintCapability = MintCapability;
|
|
215
|
-
class SupplyConfig {
|
|
216
|
-
static TYPE_QNAME = "0x1::coin::SupplyConfig";
|
|
217
|
-
allow_upgrades;
|
|
218
|
-
}
|
|
219
|
-
coin.SupplyConfig = SupplyConfig;
|
|
220
|
-
class WithdrawEvent {
|
|
221
|
-
static TYPE_QNAME = "0x1::coin::WithdrawEvent";
|
|
222
|
-
amount;
|
|
223
|
-
}
|
|
224
|
-
coin.WithdrawEvent = WithdrawEvent;
|
|
225
|
-
function loadTypes(_r) {
|
|
226
|
-
loadAllTypes(_r);
|
|
227
|
-
}
|
|
228
|
-
coin.loadTypes = loadTypes;
|
|
229
|
-
coin.ABI = JSON.parse('{"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"}]}]}');
|
|
230
|
-
})(coin = exports.coin || (exports.coin = {}));
|
|
231
|
-
var guid;
|
|
232
|
-
(function (guid) {
|
|
233
|
-
class GUID {
|
|
234
|
-
static TYPE_QNAME = "0x1::guid::GUID";
|
|
235
|
-
id;
|
|
236
|
-
}
|
|
237
|
-
guid.GUID = GUID;
|
|
238
|
-
class ID {
|
|
239
|
-
static TYPE_QNAME = "0x1::guid::ID";
|
|
240
|
-
creation_num;
|
|
241
|
-
addr;
|
|
242
|
-
}
|
|
243
|
-
guid.ID = ID;
|
|
244
|
-
function loadTypes(_r) {
|
|
245
|
-
loadAllTypes(_r);
|
|
246
|
-
}
|
|
247
|
-
guid.loadTypes = loadTypes;
|
|
248
|
-
guid.ABI = JSON.parse('{"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"}]}]}');
|
|
249
|
-
})(guid = exports.guid || (exports.guid = {}));
|
|
250
|
-
var hash;
|
|
251
|
-
(function (hash) {
|
|
252
|
-
function loadTypes(_r) {
|
|
253
|
-
loadAllTypes(_r);
|
|
254
|
-
}
|
|
255
|
-
hash.loadTypes = loadTypes;
|
|
256
|
-
hash.ABI = JSON.parse('{"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":[]}');
|
|
257
|
-
})(hash = exports.hash || (exports.hash = {}));
|
|
258
|
-
var util;
|
|
259
|
-
(function (util) {
|
|
260
|
-
function loadTypes(_r) {
|
|
261
|
-
loadAllTypes(_r);
|
|
262
|
-
}
|
|
263
|
-
util.loadTypes = loadTypes;
|
|
264
|
-
util.ABI = JSON.parse('{"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":[]}');
|
|
265
|
-
})(util = exports.util || (exports.util = {}));
|
|
266
|
-
class block extends sdk_1.aptos.AptosBaseProcessor {
|
|
267
|
-
constructor(options) {
|
|
268
|
-
super("block", options);
|
|
269
|
-
}
|
|
270
|
-
static DEFAULT_OPTIONS = {
|
|
271
|
-
address: "0x1",
|
|
272
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
273
|
-
};
|
|
274
|
-
static bind(options = {}) {
|
|
275
|
-
return new block({ ...block.DEFAULT_OPTIONS, ...options });
|
|
276
|
-
}
|
|
277
|
-
onEventNewBlockEvent(func) {
|
|
278
|
-
this.onEvent(func, {
|
|
279
|
-
type: "block::NewBlockEvent",
|
|
280
|
-
});
|
|
281
|
-
return this;
|
|
282
|
-
}
|
|
283
|
-
onEventUpdateEpochIntervalEvent(func) {
|
|
284
|
-
this.onEvent(func, {
|
|
285
|
-
type: "block::UpdateEpochIntervalEvent",
|
|
286
|
-
});
|
|
287
|
-
return this;
|
|
288
|
-
}
|
|
289
|
-
loadTypesInternal(registry) {
|
|
290
|
-
loadAllTypes(registry);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
exports.block = block;
|
|
294
|
-
(function (block) {
|
|
295
|
-
class BlockResource {
|
|
296
|
-
static TYPE_QNAME = "0x1::block::BlockResource";
|
|
297
|
-
height;
|
|
298
|
-
epoch_interval;
|
|
299
|
-
new_block_events;
|
|
300
|
-
update_epoch_interval_events;
|
|
301
|
-
}
|
|
302
|
-
block.BlockResource = BlockResource;
|
|
303
|
-
class NewBlockEvent {
|
|
304
|
-
static TYPE_QNAME = "0x1::block::NewBlockEvent";
|
|
305
|
-
hash;
|
|
306
|
-
epoch;
|
|
307
|
-
round;
|
|
308
|
-
height;
|
|
309
|
-
previous_block_votes_bitvec;
|
|
310
|
-
proposer;
|
|
311
|
-
failed_proposer_indices;
|
|
312
|
-
time_microseconds;
|
|
313
|
-
}
|
|
314
|
-
block.NewBlockEvent = NewBlockEvent;
|
|
315
|
-
class UpdateEpochIntervalEvent {
|
|
316
|
-
static TYPE_QNAME = "0x1::block::UpdateEpochIntervalEvent";
|
|
317
|
-
old_epoch_interval;
|
|
318
|
-
new_epoch_interval;
|
|
319
|
-
}
|
|
320
|
-
block.UpdateEpochIntervalEvent = UpdateEpochIntervalEvent;
|
|
321
|
-
function loadTypes(_r) {
|
|
322
|
-
loadAllTypes(_r);
|
|
323
|
-
}
|
|
324
|
-
block.loadTypes = loadTypes;
|
|
325
|
-
block.ABI = JSON.parse('{"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"}]}]}');
|
|
326
|
-
})(block = exports.block || (exports.block = {}));
|
|
327
|
-
var debug;
|
|
328
|
-
(function (debug) {
|
|
329
|
-
function loadTypes(_r) {
|
|
330
|
-
loadAllTypes(_r);
|
|
331
|
-
}
|
|
332
|
-
debug.loadTypes = loadTypes;
|
|
333
|
-
debug.ABI = JSON.parse('{"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":[]}');
|
|
334
|
-
})(debug = exports.debug || (exports.debug = {}));
|
|
335
|
-
var error;
|
|
336
|
-
(function (error) {
|
|
337
|
-
function loadTypes(_r) {
|
|
338
|
-
loadAllTypes(_r);
|
|
339
|
-
}
|
|
340
|
-
error.loadTypes = loadTypes;
|
|
341
|
-
error.ABI = JSON.parse('{"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":[]}');
|
|
342
|
-
})(error = exports.error || (exports.error = {}));
|
|
343
|
-
var event;
|
|
344
|
-
(function (event) {
|
|
345
|
-
class EventHandle {
|
|
346
|
-
static TYPE_QNAME = "0x1::event::EventHandle";
|
|
347
|
-
counter;
|
|
348
|
-
guid;
|
|
349
|
-
}
|
|
350
|
-
event.EventHandle = EventHandle;
|
|
351
|
-
function loadTypes(_r) {
|
|
352
|
-
loadAllTypes(_r);
|
|
353
|
-
}
|
|
354
|
-
event.loadTypes = loadTypes;
|
|
355
|
-
event.ABI = JSON.parse('{"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"}]}]}');
|
|
356
|
-
})(event = exports.event || (exports.event = {}));
|
|
357
|
-
class stake extends sdk_1.aptos.AptosBaseProcessor {
|
|
358
|
-
constructor(options) {
|
|
359
|
-
super("stake", options);
|
|
360
|
-
}
|
|
361
|
-
static DEFAULT_OPTIONS = {
|
|
362
|
-
address: "0x1",
|
|
363
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
364
|
-
};
|
|
365
|
-
static bind(options = {}) {
|
|
366
|
-
return new stake({ ...stake.DEFAULT_OPTIONS, ...options });
|
|
367
|
-
}
|
|
368
|
-
onEntryAddStake(func, filter) {
|
|
369
|
-
this.onEntryFunctionCall(func, {
|
|
370
|
-
...filter,
|
|
371
|
-
function: "stake::add_stake",
|
|
372
|
-
});
|
|
373
|
-
return this;
|
|
374
|
-
}
|
|
375
|
-
onEntryIncreaseLockup(func, filter) {
|
|
376
|
-
this.onEntryFunctionCall(func, {
|
|
377
|
-
...filter,
|
|
378
|
-
function: "stake::increase_lockup",
|
|
379
|
-
});
|
|
380
|
-
return this;
|
|
381
|
-
}
|
|
382
|
-
onEntryInitializeStakeOwner(func, filter) {
|
|
383
|
-
this.onEntryFunctionCall(func, {
|
|
384
|
-
...filter,
|
|
385
|
-
function: "stake::initialize_stake_owner",
|
|
386
|
-
});
|
|
387
|
-
return this;
|
|
388
|
-
}
|
|
389
|
-
onEntryInitializeValidator(func, filter) {
|
|
390
|
-
this.onEntryFunctionCall(func, {
|
|
391
|
-
...filter,
|
|
392
|
-
function: "stake::initialize_validator",
|
|
393
|
-
});
|
|
394
|
-
return this;
|
|
395
|
-
}
|
|
396
|
-
onEntryJoinValidatorSet(func, filter) {
|
|
397
|
-
this.onEntryFunctionCall(func, {
|
|
398
|
-
...filter,
|
|
399
|
-
function: "stake::join_validator_set",
|
|
400
|
-
});
|
|
401
|
-
return this;
|
|
402
|
-
}
|
|
403
|
-
onEntryLeaveValidatorSet(func, filter) {
|
|
404
|
-
this.onEntryFunctionCall(func, {
|
|
405
|
-
...filter,
|
|
406
|
-
function: "stake::leave_validator_set",
|
|
407
|
-
});
|
|
408
|
-
return this;
|
|
409
|
-
}
|
|
410
|
-
onEntryReactivateStake(func, filter) {
|
|
411
|
-
this.onEntryFunctionCall(func, {
|
|
412
|
-
...filter,
|
|
413
|
-
function: "stake::reactivate_stake",
|
|
414
|
-
});
|
|
415
|
-
return this;
|
|
416
|
-
}
|
|
417
|
-
onEntryRotateConsensusKey(func, filter) {
|
|
418
|
-
this.onEntryFunctionCall(func, {
|
|
419
|
-
...filter,
|
|
420
|
-
function: "stake::rotate_consensus_key",
|
|
421
|
-
});
|
|
422
|
-
return this;
|
|
423
|
-
}
|
|
424
|
-
onEntrySetDelegatedVoter(func, filter) {
|
|
425
|
-
this.onEntryFunctionCall(func, {
|
|
426
|
-
...filter,
|
|
427
|
-
function: "stake::set_delegated_voter",
|
|
428
|
-
});
|
|
429
|
-
return this;
|
|
430
|
-
}
|
|
431
|
-
onEntrySetOperator(func, filter) {
|
|
432
|
-
this.onEntryFunctionCall(func, {
|
|
433
|
-
...filter,
|
|
434
|
-
function: "stake::set_operator",
|
|
435
|
-
});
|
|
436
|
-
return this;
|
|
437
|
-
}
|
|
438
|
-
onEntryUnlock(func, filter) {
|
|
439
|
-
this.onEntryFunctionCall(func, {
|
|
440
|
-
...filter,
|
|
441
|
-
function: "stake::unlock",
|
|
442
|
-
});
|
|
443
|
-
return this;
|
|
444
|
-
}
|
|
445
|
-
onEntryUpdateNetworkAndFullnodeAddresses(func, filter) {
|
|
446
|
-
this.onEntryFunctionCall(func, {
|
|
447
|
-
...filter,
|
|
448
|
-
function: "stake::update_network_and_fullnode_addresses",
|
|
449
|
-
});
|
|
450
|
-
return this;
|
|
451
|
-
}
|
|
452
|
-
onEntryWithdraw(func, filter) {
|
|
453
|
-
this.onEntryFunctionCall(func, {
|
|
454
|
-
...filter,
|
|
455
|
-
function: "stake::withdraw",
|
|
456
|
-
});
|
|
457
|
-
return this;
|
|
458
|
-
}
|
|
459
|
-
onEventRegisterValidatorCandidateEvent(func) {
|
|
460
|
-
this.onEvent(func, {
|
|
461
|
-
type: "stake::RegisterValidatorCandidateEvent",
|
|
462
|
-
});
|
|
463
|
-
return this;
|
|
464
|
-
}
|
|
465
|
-
onEventSetOperatorEvent(func) {
|
|
466
|
-
this.onEvent(func, {
|
|
467
|
-
type: "stake::SetOperatorEvent",
|
|
468
|
-
});
|
|
469
|
-
return this;
|
|
470
|
-
}
|
|
471
|
-
onEventAddStakeEvent(func) {
|
|
472
|
-
this.onEvent(func, {
|
|
473
|
-
type: "stake::AddStakeEvent",
|
|
474
|
-
});
|
|
475
|
-
return this;
|
|
476
|
-
}
|
|
477
|
-
onEventReactivateStakeEvent(func) {
|
|
478
|
-
this.onEvent(func, {
|
|
479
|
-
type: "stake::ReactivateStakeEvent",
|
|
480
|
-
});
|
|
481
|
-
return this;
|
|
482
|
-
}
|
|
483
|
-
onEventRotateConsensusKeyEvent(func) {
|
|
484
|
-
this.onEvent(func, {
|
|
485
|
-
type: "stake::RotateConsensusKeyEvent",
|
|
486
|
-
});
|
|
487
|
-
return this;
|
|
488
|
-
}
|
|
489
|
-
onEventUpdateNetworkAndFullnodeAddressesEvent(func) {
|
|
490
|
-
this.onEvent(func, {
|
|
491
|
-
type: "stake::UpdateNetworkAndFullnodeAddressesEvent",
|
|
492
|
-
});
|
|
493
|
-
return this;
|
|
494
|
-
}
|
|
495
|
-
onEventIncreaseLockupEvent(func) {
|
|
496
|
-
this.onEvent(func, {
|
|
497
|
-
type: "stake::IncreaseLockupEvent",
|
|
498
|
-
});
|
|
499
|
-
return this;
|
|
500
|
-
}
|
|
501
|
-
onEventJoinValidatorSetEvent(func) {
|
|
502
|
-
this.onEvent(func, {
|
|
503
|
-
type: "stake::JoinValidatorSetEvent",
|
|
504
|
-
});
|
|
505
|
-
return this;
|
|
506
|
-
}
|
|
507
|
-
onEventDistributeRewardsEvent(func) {
|
|
508
|
-
this.onEvent(func, {
|
|
509
|
-
type: "stake::DistributeRewardsEvent",
|
|
510
|
-
});
|
|
511
|
-
return this;
|
|
512
|
-
}
|
|
513
|
-
onEventUnlockStakeEvent(func) {
|
|
514
|
-
this.onEvent(func, {
|
|
515
|
-
type: "stake::UnlockStakeEvent",
|
|
516
|
-
});
|
|
517
|
-
return this;
|
|
518
|
-
}
|
|
519
|
-
onEventWithdrawStakeEvent(func) {
|
|
520
|
-
this.onEvent(func, {
|
|
521
|
-
type: "stake::WithdrawStakeEvent",
|
|
522
|
-
});
|
|
523
|
-
return this;
|
|
524
|
-
}
|
|
525
|
-
onEventLeaveValidatorSetEvent(func) {
|
|
526
|
-
this.onEvent(func, {
|
|
527
|
-
type: "stake::LeaveValidatorSetEvent",
|
|
528
|
-
});
|
|
529
|
-
return this;
|
|
530
|
-
}
|
|
531
|
-
loadTypesInternal(registry) {
|
|
532
|
-
loadAllTypes(registry);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
exports.stake = stake;
|
|
536
|
-
(function (stake) {
|
|
537
|
-
class AddStakeEvent {
|
|
538
|
-
static TYPE_QNAME = "0x1::stake::AddStakeEvent";
|
|
539
|
-
pool_address;
|
|
540
|
-
amount_added;
|
|
541
|
-
}
|
|
542
|
-
stake.AddStakeEvent = AddStakeEvent;
|
|
543
|
-
class AllowedValidators {
|
|
544
|
-
static TYPE_QNAME = "0x1::stake::AllowedValidators";
|
|
545
|
-
accounts;
|
|
546
|
-
}
|
|
547
|
-
stake.AllowedValidators = AllowedValidators;
|
|
548
|
-
class AptosCoinCapabilities {
|
|
549
|
-
static TYPE_QNAME = "0x1::stake::AptosCoinCapabilities";
|
|
550
|
-
mint_cap;
|
|
551
|
-
}
|
|
552
|
-
stake.AptosCoinCapabilities = AptosCoinCapabilities;
|
|
553
|
-
class DistributeRewardsEvent {
|
|
554
|
-
static TYPE_QNAME = "0x1::stake::DistributeRewardsEvent";
|
|
555
|
-
pool_address;
|
|
556
|
-
rewards_amount;
|
|
557
|
-
}
|
|
558
|
-
stake.DistributeRewardsEvent = DistributeRewardsEvent;
|
|
559
|
-
class IncreaseLockupEvent {
|
|
560
|
-
static TYPE_QNAME = "0x1::stake::IncreaseLockupEvent";
|
|
561
|
-
pool_address;
|
|
562
|
-
old_locked_until_secs;
|
|
563
|
-
new_locked_until_secs;
|
|
564
|
-
}
|
|
565
|
-
stake.IncreaseLockupEvent = IncreaseLockupEvent;
|
|
566
|
-
class IndividualValidatorPerformance {
|
|
567
|
-
static TYPE_QNAME = "0x1::stake::IndividualValidatorPerformance";
|
|
568
|
-
successful_proposals;
|
|
569
|
-
failed_proposals;
|
|
570
|
-
}
|
|
571
|
-
stake.IndividualValidatorPerformance = IndividualValidatorPerformance;
|
|
572
|
-
class JoinValidatorSetEvent {
|
|
573
|
-
static TYPE_QNAME = "0x1::stake::JoinValidatorSetEvent";
|
|
574
|
-
pool_address;
|
|
575
|
-
}
|
|
576
|
-
stake.JoinValidatorSetEvent = JoinValidatorSetEvent;
|
|
577
|
-
class LeaveValidatorSetEvent {
|
|
578
|
-
static TYPE_QNAME = "0x1::stake::LeaveValidatorSetEvent";
|
|
579
|
-
pool_address;
|
|
580
|
-
}
|
|
581
|
-
stake.LeaveValidatorSetEvent = LeaveValidatorSetEvent;
|
|
582
|
-
class OwnerCapability {
|
|
583
|
-
static TYPE_QNAME = "0x1::stake::OwnerCapability";
|
|
584
|
-
pool_address;
|
|
585
|
-
}
|
|
586
|
-
stake.OwnerCapability = OwnerCapability;
|
|
587
|
-
class ReactivateStakeEvent {
|
|
588
|
-
static TYPE_QNAME = "0x1::stake::ReactivateStakeEvent";
|
|
589
|
-
pool_address;
|
|
590
|
-
amount;
|
|
591
|
-
}
|
|
592
|
-
stake.ReactivateStakeEvent = ReactivateStakeEvent;
|
|
593
|
-
class RegisterValidatorCandidateEvent {
|
|
594
|
-
static TYPE_QNAME = "0x1::stake::RegisterValidatorCandidateEvent";
|
|
595
|
-
pool_address;
|
|
596
|
-
}
|
|
597
|
-
stake.RegisterValidatorCandidateEvent = RegisterValidatorCandidateEvent;
|
|
598
|
-
class RotateConsensusKeyEvent {
|
|
599
|
-
static TYPE_QNAME = "0x1::stake::RotateConsensusKeyEvent";
|
|
600
|
-
pool_address;
|
|
601
|
-
old_consensus_pubkey;
|
|
602
|
-
new_consensus_pubkey;
|
|
603
|
-
}
|
|
604
|
-
stake.RotateConsensusKeyEvent = RotateConsensusKeyEvent;
|
|
605
|
-
class SetOperatorEvent {
|
|
606
|
-
static TYPE_QNAME = "0x1::stake::SetOperatorEvent";
|
|
607
|
-
pool_address;
|
|
608
|
-
old_operator;
|
|
609
|
-
new_operator;
|
|
610
|
-
}
|
|
611
|
-
stake.SetOperatorEvent = SetOperatorEvent;
|
|
612
|
-
class StakePool {
|
|
613
|
-
static TYPE_QNAME = "0x1::stake::StakePool";
|
|
614
|
-
active;
|
|
615
|
-
inactive;
|
|
616
|
-
pending_active;
|
|
617
|
-
pending_inactive;
|
|
618
|
-
locked_until_secs;
|
|
619
|
-
operator_address;
|
|
620
|
-
delegated_voter;
|
|
621
|
-
initialize_validator_events;
|
|
622
|
-
set_operator_events;
|
|
623
|
-
add_stake_events;
|
|
624
|
-
reactivate_stake_events;
|
|
625
|
-
rotate_consensus_key_events;
|
|
626
|
-
update_network_and_fullnode_addresses_events;
|
|
627
|
-
increase_lockup_events;
|
|
628
|
-
join_validator_set_events;
|
|
629
|
-
distribute_rewards_events;
|
|
630
|
-
unlock_stake_events;
|
|
631
|
-
withdraw_stake_events;
|
|
632
|
-
leave_validator_set_events;
|
|
633
|
-
}
|
|
634
|
-
stake.StakePool = StakePool;
|
|
635
|
-
class UnlockStakeEvent {
|
|
636
|
-
static TYPE_QNAME = "0x1::stake::UnlockStakeEvent";
|
|
637
|
-
pool_address;
|
|
638
|
-
amount_unlocked;
|
|
639
|
-
}
|
|
640
|
-
stake.UnlockStakeEvent = UnlockStakeEvent;
|
|
641
|
-
class UpdateNetworkAndFullnodeAddressesEvent {
|
|
642
|
-
static TYPE_QNAME = "0x1::stake::UpdateNetworkAndFullnodeAddressesEvent";
|
|
643
|
-
pool_address;
|
|
644
|
-
old_network_addresses;
|
|
645
|
-
new_network_addresses;
|
|
646
|
-
old_fullnode_addresses;
|
|
647
|
-
new_fullnode_addresses;
|
|
648
|
-
}
|
|
649
|
-
stake.UpdateNetworkAndFullnodeAddressesEvent = UpdateNetworkAndFullnodeAddressesEvent;
|
|
650
|
-
class ValidatorConfig {
|
|
651
|
-
static TYPE_QNAME = "0x1::stake::ValidatorConfig";
|
|
652
|
-
consensus_pubkey;
|
|
653
|
-
network_addresses;
|
|
654
|
-
fullnode_addresses;
|
|
655
|
-
validator_index;
|
|
656
|
-
}
|
|
657
|
-
stake.ValidatorConfig = ValidatorConfig;
|
|
658
|
-
class ValidatorInfo {
|
|
659
|
-
static TYPE_QNAME = "0x1::stake::ValidatorInfo";
|
|
660
|
-
addr;
|
|
661
|
-
voting_power;
|
|
662
|
-
config;
|
|
663
|
-
}
|
|
664
|
-
stake.ValidatorInfo = ValidatorInfo;
|
|
665
|
-
class ValidatorPerformance {
|
|
666
|
-
static TYPE_QNAME = "0x1::stake::ValidatorPerformance";
|
|
667
|
-
validators;
|
|
668
|
-
}
|
|
669
|
-
stake.ValidatorPerformance = ValidatorPerformance;
|
|
670
|
-
class ValidatorSet {
|
|
671
|
-
static TYPE_QNAME = "0x1::stake::ValidatorSet";
|
|
672
|
-
consensus_scheme;
|
|
673
|
-
active_validators;
|
|
674
|
-
pending_inactive;
|
|
675
|
-
pending_active;
|
|
676
|
-
total_voting_power;
|
|
677
|
-
total_joining_power;
|
|
678
|
-
}
|
|
679
|
-
stake.ValidatorSet = ValidatorSet;
|
|
680
|
-
class WithdrawStakeEvent {
|
|
681
|
-
static TYPE_QNAME = "0x1::stake::WithdrawStakeEvent";
|
|
682
|
-
pool_address;
|
|
683
|
-
amount_withdrawn;
|
|
684
|
-
}
|
|
685
|
-
stake.WithdrawStakeEvent = WithdrawStakeEvent;
|
|
686
|
-
function loadTypes(_r) {
|
|
687
|
-
loadAllTypes(_r);
|
|
688
|
-
}
|
|
689
|
-
stake.loadTypes = loadTypes;
|
|
690
|
-
stake.ABI = JSON.parse('{"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"}]}]}');
|
|
691
|
-
})(stake = exports.stake || (exports.stake = {}));
|
|
692
|
-
var table;
|
|
693
|
-
(function (table) {
|
|
694
|
-
class Box {
|
|
695
|
-
static TYPE_QNAME = "0x1::table::Box";
|
|
696
|
-
val;
|
|
697
|
-
}
|
|
698
|
-
table.Box = Box;
|
|
699
|
-
class Table {
|
|
700
|
-
static TYPE_QNAME = "0x1::table::Table";
|
|
701
|
-
handle;
|
|
702
|
-
}
|
|
703
|
-
table.Table = Table;
|
|
704
|
-
function loadTypes(_r) {
|
|
705
|
-
loadAllTypes(_r);
|
|
706
|
-
}
|
|
707
|
-
table.loadTypes = loadTypes;
|
|
708
|
-
table.ABI = JSON.parse('{"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"}]}]}');
|
|
709
|
-
})(table = exports.table || (exports.table = {}));
|
|
710
|
-
var math64;
|
|
711
|
-
(function (math64) {
|
|
712
|
-
function loadTypes(_r) {
|
|
713
|
-
loadAllTypes(_r);
|
|
714
|
-
}
|
|
715
|
-
math64.loadTypes = loadTypes;
|
|
716
|
-
math64.ABI = JSON.parse('{"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":[]}');
|
|
717
|
-
})(math64 = exports.math64 || (exports.math64 = {}));
|
|
718
|
-
var option;
|
|
719
|
-
(function (option) {
|
|
720
|
-
class Option {
|
|
721
|
-
static TYPE_QNAME = "0x1::option::Option";
|
|
722
|
-
vec;
|
|
723
|
-
}
|
|
724
|
-
option.Option = Option;
|
|
725
|
-
function loadTypes(_r) {
|
|
726
|
-
loadAllTypes(_r);
|
|
727
|
-
}
|
|
728
|
-
option.loadTypes = loadTypes;
|
|
729
|
-
option.ABI = JSON.parse('{"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>"}]}]}');
|
|
730
|
-
})(option = exports.option || (exports.option = {}));
|
|
731
|
-
var signer;
|
|
732
|
-
(function (signer) {
|
|
733
|
-
function loadTypes(_r) {
|
|
734
|
-
loadAllTypes(_r);
|
|
735
|
-
}
|
|
736
|
-
signer.loadTypes = loadTypes;
|
|
737
|
-
signer.ABI = JSON.parse('{"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":[]}');
|
|
738
|
-
})(signer = exports.signer || (exports.signer = {}));
|
|
739
|
-
var string;
|
|
740
|
-
(function (string) {
|
|
741
|
-
class String {
|
|
742
|
-
static TYPE_QNAME = "0x1::string::String";
|
|
743
|
-
bytes;
|
|
744
|
-
}
|
|
745
|
-
string.String = String;
|
|
746
|
-
function loadTypes(_r) {
|
|
747
|
-
loadAllTypes(_r);
|
|
748
|
-
}
|
|
749
|
-
string.loadTypes = loadTypes;
|
|
750
|
-
string.ABI = JSON.parse('{"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>"}]}]}');
|
|
751
|
-
})(string = exports.string || (exports.string = {}));
|
|
752
|
-
var vector;
|
|
753
|
-
(function (vector) {
|
|
754
|
-
function loadTypes(_r) {
|
|
755
|
-
loadAllTypes(_r);
|
|
756
|
-
}
|
|
757
|
-
vector.loadTypes = loadTypes;
|
|
758
|
-
vector.ABI = JSON.parse('{"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":[]}');
|
|
759
|
-
})(vector = exports.vector || (exports.vector = {}));
|
|
760
|
-
class voting extends sdk_1.aptos.AptosBaseProcessor {
|
|
761
|
-
constructor(options) {
|
|
762
|
-
super("voting", options);
|
|
763
|
-
}
|
|
764
|
-
static DEFAULT_OPTIONS = {
|
|
765
|
-
address: "0x1",
|
|
766
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
767
|
-
};
|
|
768
|
-
static bind(options = {}) {
|
|
769
|
-
return new voting({ ...voting.DEFAULT_OPTIONS, ...options });
|
|
770
|
-
}
|
|
771
|
-
onEventCreateProposalEvent(func) {
|
|
772
|
-
this.onEvent(func, {
|
|
773
|
-
type: "voting::CreateProposalEvent",
|
|
774
|
-
});
|
|
775
|
-
return this;
|
|
776
|
-
}
|
|
777
|
-
onEventRegisterForumEvent(func) {
|
|
778
|
-
this.onEvent(func, {
|
|
779
|
-
type: "voting::RegisterForumEvent",
|
|
780
|
-
});
|
|
781
|
-
return this;
|
|
782
|
-
}
|
|
783
|
-
onEventResolveProposal(func) {
|
|
784
|
-
this.onEvent(func, {
|
|
785
|
-
type: "voting::ResolveProposal",
|
|
786
|
-
});
|
|
787
|
-
return this;
|
|
788
|
-
}
|
|
789
|
-
onEventVoteEvent(func) {
|
|
790
|
-
this.onEvent(func, {
|
|
791
|
-
type: "voting::VoteEvent",
|
|
792
|
-
});
|
|
793
|
-
return this;
|
|
794
|
-
}
|
|
795
|
-
loadTypesInternal(registry) {
|
|
796
|
-
loadAllTypes(registry);
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
exports.voting = voting;
|
|
800
|
-
(function (voting) {
|
|
801
|
-
class CreateProposalEvent {
|
|
802
|
-
static TYPE_QNAME = "0x1::voting::CreateProposalEvent";
|
|
803
|
-
proposal_id;
|
|
804
|
-
early_resolution_vote_threshold;
|
|
805
|
-
execution_hash;
|
|
806
|
-
expiration_secs;
|
|
807
|
-
metadata;
|
|
808
|
-
min_vote_threshold;
|
|
809
|
-
}
|
|
810
|
-
voting.CreateProposalEvent = CreateProposalEvent;
|
|
811
|
-
class Proposal {
|
|
812
|
-
static TYPE_QNAME = "0x1::voting::Proposal";
|
|
813
|
-
proposer;
|
|
814
|
-
execution_content;
|
|
815
|
-
metadata;
|
|
816
|
-
creation_time_secs;
|
|
817
|
-
execution_hash;
|
|
818
|
-
min_vote_threshold;
|
|
819
|
-
expiration_secs;
|
|
820
|
-
early_resolution_vote_threshold;
|
|
821
|
-
yes_votes;
|
|
822
|
-
no_votes;
|
|
823
|
-
is_resolved;
|
|
824
|
-
resolution_time_secs;
|
|
825
|
-
}
|
|
826
|
-
voting.Proposal = Proposal;
|
|
827
|
-
class RegisterForumEvent {
|
|
828
|
-
static TYPE_QNAME = "0x1::voting::RegisterForumEvent";
|
|
829
|
-
hosting_account;
|
|
830
|
-
proposal_type_info;
|
|
831
|
-
}
|
|
832
|
-
voting.RegisterForumEvent = RegisterForumEvent;
|
|
833
|
-
class ResolveProposal {
|
|
834
|
-
static TYPE_QNAME = "0x1::voting::ResolveProposal";
|
|
835
|
-
proposal_id;
|
|
836
|
-
yes_votes;
|
|
837
|
-
no_votes;
|
|
838
|
-
resolved_early;
|
|
839
|
-
}
|
|
840
|
-
voting.ResolveProposal = ResolveProposal;
|
|
841
|
-
class VoteEvent {
|
|
842
|
-
static TYPE_QNAME = "0x1::voting::VoteEvent";
|
|
843
|
-
proposal_id;
|
|
844
|
-
num_votes;
|
|
845
|
-
}
|
|
846
|
-
voting.VoteEvent = VoteEvent;
|
|
847
|
-
class VotingEvents {
|
|
848
|
-
static TYPE_QNAME = "0x1::voting::VotingEvents";
|
|
849
|
-
create_proposal_events;
|
|
850
|
-
register_forum_events;
|
|
851
|
-
resolve_proposal_events;
|
|
852
|
-
vote_events;
|
|
853
|
-
}
|
|
854
|
-
voting.VotingEvents = VotingEvents;
|
|
855
|
-
class VotingForum {
|
|
856
|
-
static TYPE_QNAME = "0x1::voting::VotingForum";
|
|
857
|
-
proposals;
|
|
858
|
-
events;
|
|
859
|
-
next_proposal_id;
|
|
860
|
-
}
|
|
861
|
-
voting.VotingForum = VotingForum;
|
|
862
|
-
function loadTypes(_r) {
|
|
863
|
-
loadAllTypes(_r);
|
|
864
|
-
}
|
|
865
|
-
voting.loadTypes = loadTypes;
|
|
866
|
-
voting.ABI = JSON.parse('{"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"}]}]}');
|
|
867
|
-
})(voting = exports.voting || (exports.voting = {}));
|
|
868
|
-
class account extends sdk_1.aptos.AptosBaseProcessor {
|
|
869
|
-
constructor(options) {
|
|
870
|
-
super("account", options);
|
|
871
|
-
}
|
|
872
|
-
static DEFAULT_OPTIONS = {
|
|
873
|
-
address: "0x1",
|
|
874
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
875
|
-
};
|
|
876
|
-
static bind(options = {}) {
|
|
877
|
-
return new account({ ...account.DEFAULT_OPTIONS, ...options });
|
|
878
|
-
}
|
|
879
|
-
onEntryOfferSignerCapability(func, filter) {
|
|
880
|
-
this.onEntryFunctionCall(func, {
|
|
881
|
-
...filter,
|
|
882
|
-
function: "account::offer_signer_capability",
|
|
883
|
-
});
|
|
884
|
-
return this;
|
|
885
|
-
}
|
|
886
|
-
onEntryRevokeSignerCapability(func, filter) {
|
|
887
|
-
this.onEntryFunctionCall(func, {
|
|
888
|
-
...filter,
|
|
889
|
-
function: "account::revoke_signer_capability",
|
|
890
|
-
});
|
|
891
|
-
return this;
|
|
892
|
-
}
|
|
893
|
-
onEntryRotateAuthenticationKey(func, filter) {
|
|
894
|
-
this.onEntryFunctionCall(func, {
|
|
895
|
-
...filter,
|
|
896
|
-
function: "account::rotate_authentication_key",
|
|
897
|
-
});
|
|
898
|
-
return this;
|
|
899
|
-
}
|
|
900
|
-
onEventCoinRegisterEvent(func) {
|
|
901
|
-
this.onEvent(func, {
|
|
902
|
-
type: "account::CoinRegisterEvent",
|
|
903
|
-
});
|
|
904
|
-
return this;
|
|
905
|
-
}
|
|
906
|
-
onEventKeyRotationEvent(func) {
|
|
907
|
-
this.onEvent(func, {
|
|
908
|
-
type: "account::KeyRotationEvent",
|
|
909
|
-
});
|
|
910
|
-
return this;
|
|
911
|
-
}
|
|
912
|
-
loadTypesInternal(registry) {
|
|
913
|
-
loadAllTypes(registry);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
exports.account = account;
|
|
917
|
-
(function (account) {
|
|
918
|
-
class Account {
|
|
919
|
-
static TYPE_QNAME = "0x1::account::Account";
|
|
920
|
-
authentication_key;
|
|
921
|
-
sequence_number;
|
|
922
|
-
guid_creation_num;
|
|
923
|
-
coin_register_events;
|
|
924
|
-
key_rotation_events;
|
|
925
|
-
rotation_capability_offer;
|
|
926
|
-
signer_capability_offer;
|
|
927
|
-
}
|
|
928
|
-
account.Account = Account;
|
|
929
|
-
class CapabilityOffer {
|
|
930
|
-
static TYPE_QNAME = "0x1::account::CapabilityOffer";
|
|
931
|
-
for;
|
|
932
|
-
}
|
|
933
|
-
account.CapabilityOffer = CapabilityOffer;
|
|
934
|
-
class CoinRegisterEvent {
|
|
935
|
-
static TYPE_QNAME = "0x1::account::CoinRegisterEvent";
|
|
936
|
-
type_info;
|
|
937
|
-
}
|
|
938
|
-
account.CoinRegisterEvent = CoinRegisterEvent;
|
|
939
|
-
class KeyRotationEvent {
|
|
940
|
-
static TYPE_QNAME = "0x1::account::KeyRotationEvent";
|
|
941
|
-
old_authentication_key;
|
|
942
|
-
new_authentication_key;
|
|
943
|
-
}
|
|
944
|
-
account.KeyRotationEvent = KeyRotationEvent;
|
|
945
|
-
class OriginatingAddress {
|
|
946
|
-
static TYPE_QNAME = "0x1::account::OriginatingAddress";
|
|
947
|
-
address_map;
|
|
948
|
-
}
|
|
949
|
-
account.OriginatingAddress = OriginatingAddress;
|
|
950
|
-
class RotationCapability {
|
|
951
|
-
static TYPE_QNAME = "0x1::account::RotationCapability";
|
|
952
|
-
account;
|
|
953
|
-
}
|
|
954
|
-
account.RotationCapability = RotationCapability;
|
|
955
|
-
class RotationCapabilityOfferProofChallenge {
|
|
956
|
-
static TYPE_QNAME = "0x1::account::RotationCapabilityOfferProofChallenge";
|
|
957
|
-
sequence_number;
|
|
958
|
-
recipient_address;
|
|
959
|
-
}
|
|
960
|
-
account.RotationCapabilityOfferProofChallenge = RotationCapabilityOfferProofChallenge;
|
|
961
|
-
class RotationProofChallenge {
|
|
962
|
-
static TYPE_QNAME = "0x1::account::RotationProofChallenge";
|
|
963
|
-
sequence_number;
|
|
964
|
-
originator;
|
|
965
|
-
current_auth_key;
|
|
966
|
-
new_public_key;
|
|
967
|
-
}
|
|
968
|
-
account.RotationProofChallenge = RotationProofChallenge;
|
|
969
|
-
class SignerCapability {
|
|
970
|
-
static TYPE_QNAME = "0x1::account::SignerCapability";
|
|
971
|
-
account;
|
|
972
|
-
}
|
|
973
|
-
account.SignerCapability = SignerCapability;
|
|
974
|
-
class SignerCapabilityOfferProofChallenge {
|
|
975
|
-
static TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallenge";
|
|
976
|
-
sequence_number;
|
|
977
|
-
recipient_address;
|
|
978
|
-
}
|
|
979
|
-
account.SignerCapabilityOfferProofChallenge = SignerCapabilityOfferProofChallenge;
|
|
980
|
-
class SignerCapabilityOfferProofChallengeV2 {
|
|
981
|
-
static TYPE_QNAME = "0x1::account::SignerCapabilityOfferProofChallengeV2";
|
|
982
|
-
sequence_number;
|
|
983
|
-
source_address;
|
|
984
|
-
recipient_address;
|
|
985
|
-
}
|
|
986
|
-
account.SignerCapabilityOfferProofChallengeV2 = SignerCapabilityOfferProofChallengeV2;
|
|
987
|
-
function loadTypes(_r) {
|
|
988
|
-
loadAllTypes(_r);
|
|
989
|
-
}
|
|
990
|
-
account.loadTypes = loadTypes;
|
|
991
|
-
account.ABI = JSON.parse('{"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"}]}]}');
|
|
992
|
-
})(account = exports.account || (exports.account = {}));
|
|
993
|
-
var ed25519;
|
|
994
|
-
(function (ed25519) {
|
|
995
|
-
class Signature {
|
|
996
|
-
static TYPE_QNAME = "0x1::ed25519::Signature";
|
|
997
|
-
bytes;
|
|
998
|
-
}
|
|
999
|
-
ed25519.Signature = Signature;
|
|
1000
|
-
class SignedMessage {
|
|
1001
|
-
static TYPE_QNAME = "0x1::ed25519::SignedMessage";
|
|
1002
|
-
type_info;
|
|
1003
|
-
inner;
|
|
1004
|
-
}
|
|
1005
|
-
ed25519.SignedMessage = SignedMessage;
|
|
1006
|
-
class UnvalidatedPublicKey {
|
|
1007
|
-
static TYPE_QNAME = "0x1::ed25519::UnvalidatedPublicKey";
|
|
1008
|
-
bytes;
|
|
1009
|
-
}
|
|
1010
|
-
ed25519.UnvalidatedPublicKey = UnvalidatedPublicKey;
|
|
1011
|
-
class ValidatedPublicKey {
|
|
1012
|
-
static TYPE_QNAME = "0x1::ed25519::ValidatedPublicKey";
|
|
1013
|
-
bytes;
|
|
1014
|
-
}
|
|
1015
|
-
ed25519.ValidatedPublicKey = ValidatedPublicKey;
|
|
1016
|
-
function loadTypes(_r) {
|
|
1017
|
-
loadAllTypes(_r);
|
|
1018
|
-
}
|
|
1019
|
-
ed25519.loadTypes = loadTypes;
|
|
1020
|
-
ed25519.ABI = JSON.parse('{"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>"}]}]}');
|
|
1021
|
-
})(ed25519 = exports.ed25519 || (exports.ed25519 = {}));
|
|
1022
|
-
var genesis;
|
|
1023
|
-
(function (genesis) {
|
|
1024
|
-
class AccountMap {
|
|
1025
|
-
static TYPE_QNAME = "0x1::genesis::AccountMap";
|
|
1026
|
-
account_address;
|
|
1027
|
-
balance;
|
|
1028
|
-
}
|
|
1029
|
-
genesis.AccountMap = AccountMap;
|
|
1030
|
-
class EmployeeAccountMap {
|
|
1031
|
-
static TYPE_QNAME = "0x1::genesis::EmployeeAccountMap";
|
|
1032
|
-
accounts;
|
|
1033
|
-
validator;
|
|
1034
|
-
vesting_schedule_numerator;
|
|
1035
|
-
vesting_schedule_denominator;
|
|
1036
|
-
beneficiary_resetter;
|
|
1037
|
-
}
|
|
1038
|
-
genesis.EmployeeAccountMap = EmployeeAccountMap;
|
|
1039
|
-
class ValidatorConfiguration {
|
|
1040
|
-
static TYPE_QNAME = "0x1::genesis::ValidatorConfiguration";
|
|
1041
|
-
owner_address;
|
|
1042
|
-
operator_address;
|
|
1043
|
-
voter_address;
|
|
1044
|
-
stake_amount;
|
|
1045
|
-
consensus_pubkey;
|
|
1046
|
-
proof_of_possession;
|
|
1047
|
-
network_addresses;
|
|
1048
|
-
full_node_network_addresses;
|
|
1049
|
-
}
|
|
1050
|
-
genesis.ValidatorConfiguration = ValidatorConfiguration;
|
|
1051
|
-
class ValidatorConfigurationWithCommission {
|
|
1052
|
-
static TYPE_QNAME = "0x1::genesis::ValidatorConfigurationWithCommission";
|
|
1053
|
-
validator_config;
|
|
1054
|
-
commission_percentage;
|
|
1055
|
-
join_during_genesis;
|
|
1056
|
-
}
|
|
1057
|
-
genesis.ValidatorConfigurationWithCommission = ValidatorConfigurationWithCommission;
|
|
1058
|
-
function loadTypes(_r) {
|
|
1059
|
-
loadAllTypes(_r);
|
|
1060
|
-
}
|
|
1061
|
-
genesis.loadTypes = loadTypes;
|
|
1062
|
-
genesis.ABI = JSON.parse('{"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"}]}]}');
|
|
1063
|
-
})(genesis = exports.genesis || (exports.genesis = {}));
|
|
1064
|
-
var math128;
|
|
1065
|
-
(function (math128) {
|
|
1066
|
-
function loadTypes(_r) {
|
|
1067
|
-
loadAllTypes(_r);
|
|
1068
|
-
}
|
|
1069
|
-
math128.loadTypes = loadTypes;
|
|
1070
|
-
math128.ABI = JSON.parse('{"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":[]}');
|
|
1071
|
-
})(math128 = exports.math128 || (exports.math128 = {}));
|
|
1072
|
-
class version extends sdk_1.aptos.AptosBaseProcessor {
|
|
1073
|
-
constructor(options) {
|
|
1074
|
-
super("version", options);
|
|
1075
|
-
}
|
|
1076
|
-
static DEFAULT_OPTIONS = {
|
|
1077
|
-
address: "0x1",
|
|
1078
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
1079
|
-
};
|
|
1080
|
-
static bind(options = {}) {
|
|
1081
|
-
return new version({ ...version.DEFAULT_OPTIONS, ...options });
|
|
1082
|
-
}
|
|
1083
|
-
onEntrySetVersion(func, filter) {
|
|
1084
|
-
this.onEntryFunctionCall(func, {
|
|
1085
|
-
...filter,
|
|
1086
|
-
function: "version::set_version",
|
|
1087
|
-
});
|
|
1088
|
-
return this;
|
|
1089
|
-
}
|
|
1090
|
-
loadTypesInternal(registry) {
|
|
1091
|
-
loadAllTypes(registry);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
exports.version = version;
|
|
1095
|
-
(function (version) {
|
|
1096
|
-
class SetVersionCapability {
|
|
1097
|
-
static TYPE_QNAME = "0x1::version::SetVersionCapability";
|
|
1098
|
-
dummy_field;
|
|
1099
|
-
}
|
|
1100
|
-
version.SetVersionCapability = SetVersionCapability;
|
|
1101
|
-
class Version {
|
|
1102
|
-
static TYPE_QNAME = "0x1::version::Version";
|
|
1103
|
-
major;
|
|
1104
|
-
}
|
|
1105
|
-
version.Version = Version;
|
|
1106
|
-
function loadTypes(_r) {
|
|
1107
|
-
loadAllTypes(_r);
|
|
1108
|
-
}
|
|
1109
|
-
version.loadTypes = loadTypes;
|
|
1110
|
-
version.ABI = JSON.parse('{"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"}]}]}');
|
|
1111
|
-
})(version = exports.version || (exports.version = {}));
|
|
1112
|
-
class vesting extends sdk_1.aptos.AptosBaseProcessor {
|
|
1113
|
-
constructor(options) {
|
|
1114
|
-
super("vesting", options);
|
|
1115
|
-
}
|
|
1116
|
-
static DEFAULT_OPTIONS = {
|
|
1117
|
-
address: "0x1",
|
|
1118
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
1119
|
-
};
|
|
1120
|
-
static bind(options = {}) {
|
|
1121
|
-
return new vesting({ ...vesting.DEFAULT_OPTIONS, ...options });
|
|
1122
|
-
}
|
|
1123
|
-
onEntryAdminWithdraw(func, filter) {
|
|
1124
|
-
this.onEntryFunctionCall(func, {
|
|
1125
|
-
...filter,
|
|
1126
|
-
function: "vesting::admin_withdraw",
|
|
1127
|
-
});
|
|
1128
|
-
return this;
|
|
1129
|
-
}
|
|
1130
|
-
onEntryDistribute(func, filter) {
|
|
1131
|
-
this.onEntryFunctionCall(func, {
|
|
1132
|
-
...filter,
|
|
1133
|
-
function: "vesting::distribute",
|
|
1134
|
-
});
|
|
1135
|
-
return this;
|
|
1136
|
-
}
|
|
1137
|
-
onEntryResetBeneficiary(func, filter) {
|
|
1138
|
-
this.onEntryFunctionCall(func, {
|
|
1139
|
-
...filter,
|
|
1140
|
-
function: "vesting::reset_beneficiary",
|
|
1141
|
-
});
|
|
1142
|
-
return this;
|
|
1143
|
-
}
|
|
1144
|
-
onEntryResetLockup(func, filter) {
|
|
1145
|
-
this.onEntryFunctionCall(func, {
|
|
1146
|
-
...filter,
|
|
1147
|
-
function: "vesting::reset_lockup",
|
|
1148
|
-
});
|
|
1149
|
-
return this;
|
|
1150
|
-
}
|
|
1151
|
-
onEntrySetBeneficiary(func, filter) {
|
|
1152
|
-
this.onEntryFunctionCall(func, {
|
|
1153
|
-
...filter,
|
|
1154
|
-
function: "vesting::set_beneficiary",
|
|
1155
|
-
});
|
|
1156
|
-
return this;
|
|
1157
|
-
}
|
|
1158
|
-
onEntrySetBeneficiaryResetter(func, filter) {
|
|
1159
|
-
this.onEntryFunctionCall(func, {
|
|
1160
|
-
...filter,
|
|
1161
|
-
function: "vesting::set_beneficiary_resetter",
|
|
1162
|
-
});
|
|
1163
|
-
return this;
|
|
1164
|
-
}
|
|
1165
|
-
onEntrySetManagementRole(func, filter) {
|
|
1166
|
-
this.onEntryFunctionCall(func, {
|
|
1167
|
-
...filter,
|
|
1168
|
-
function: "vesting::set_management_role",
|
|
1169
|
-
});
|
|
1170
|
-
return this;
|
|
1171
|
-
}
|
|
1172
|
-
onEntryTerminateVestingContract(func, filter) {
|
|
1173
|
-
this.onEntryFunctionCall(func, {
|
|
1174
|
-
...filter,
|
|
1175
|
-
function: "vesting::terminate_vesting_contract",
|
|
1176
|
-
});
|
|
1177
|
-
return this;
|
|
1178
|
-
}
|
|
1179
|
-
onEntryUnlockRewards(func, filter) {
|
|
1180
|
-
this.onEntryFunctionCall(func, {
|
|
1181
|
-
...filter,
|
|
1182
|
-
function: "vesting::unlock_rewards",
|
|
1183
|
-
});
|
|
1184
|
-
return this;
|
|
1185
|
-
}
|
|
1186
|
-
onEntryUpdateOperator(func, filter) {
|
|
1187
|
-
this.onEntryFunctionCall(func, {
|
|
1188
|
-
...filter,
|
|
1189
|
-
function: "vesting::update_operator",
|
|
1190
|
-
});
|
|
1191
|
-
return this;
|
|
1192
|
-
}
|
|
1193
|
-
onEntryUpdateOperatorWithSameCommission(func, filter) {
|
|
1194
|
-
this.onEntryFunctionCall(func, {
|
|
1195
|
-
...filter,
|
|
1196
|
-
function: "vesting::update_operator_with_same_commission",
|
|
1197
|
-
});
|
|
1198
|
-
return this;
|
|
1199
|
-
}
|
|
1200
|
-
onEntryUpdateVoter(func, filter) {
|
|
1201
|
-
this.onEntryFunctionCall(func, {
|
|
1202
|
-
...filter,
|
|
1203
|
-
function: "vesting::update_voter",
|
|
1204
|
-
});
|
|
1205
|
-
return this;
|
|
1206
|
-
}
|
|
1207
|
-
onEntryVest(func, filter) {
|
|
1208
|
-
this.onEntryFunctionCall(func, {
|
|
1209
|
-
...filter,
|
|
1210
|
-
function: "vesting::vest",
|
|
1211
|
-
});
|
|
1212
|
-
return this;
|
|
1213
|
-
}
|
|
1214
|
-
onEventCreateVestingContractEvent(func) {
|
|
1215
|
-
this.onEvent(func, {
|
|
1216
|
-
type: "vesting::CreateVestingContractEvent",
|
|
1217
|
-
});
|
|
1218
|
-
return this;
|
|
1219
|
-
}
|
|
1220
|
-
onEventUpdateOperatorEvent(func) {
|
|
1221
|
-
this.onEvent(func, {
|
|
1222
|
-
type: "vesting::UpdateOperatorEvent",
|
|
1223
|
-
});
|
|
1224
|
-
return this;
|
|
1225
|
-
}
|
|
1226
|
-
onEventUpdateVoterEvent(func) {
|
|
1227
|
-
this.onEvent(func, {
|
|
1228
|
-
type: "vesting::UpdateVoterEvent",
|
|
1229
|
-
});
|
|
1230
|
-
return this;
|
|
1231
|
-
}
|
|
1232
|
-
onEventResetLockupEvent(func) {
|
|
1233
|
-
this.onEvent(func, {
|
|
1234
|
-
type: "vesting::ResetLockupEvent",
|
|
1235
|
-
});
|
|
1236
|
-
return this;
|
|
1237
|
-
}
|
|
1238
|
-
onEventSetBeneficiaryEvent(func) {
|
|
1239
|
-
this.onEvent(func, {
|
|
1240
|
-
type: "vesting::SetBeneficiaryEvent",
|
|
1241
|
-
});
|
|
1242
|
-
return this;
|
|
1243
|
-
}
|
|
1244
|
-
onEventUnlockRewardsEvent(func) {
|
|
1245
|
-
this.onEvent(func, {
|
|
1246
|
-
type: "vesting::UnlockRewardsEvent",
|
|
1247
|
-
});
|
|
1248
|
-
return this;
|
|
1249
|
-
}
|
|
1250
|
-
onEventVestEvent(func) {
|
|
1251
|
-
this.onEvent(func, {
|
|
1252
|
-
type: "vesting::VestEvent",
|
|
1253
|
-
});
|
|
1254
|
-
return this;
|
|
1255
|
-
}
|
|
1256
|
-
onEventDistributeEvent(func) {
|
|
1257
|
-
this.onEvent(func, {
|
|
1258
|
-
type: "vesting::DistributeEvent",
|
|
1259
|
-
});
|
|
1260
|
-
return this;
|
|
1261
|
-
}
|
|
1262
|
-
onEventTerminateEvent(func) {
|
|
1263
|
-
this.onEvent(func, {
|
|
1264
|
-
type: "vesting::TerminateEvent",
|
|
1265
|
-
});
|
|
1266
|
-
return this;
|
|
1267
|
-
}
|
|
1268
|
-
onEventAdminWithdrawEvent(func) {
|
|
1269
|
-
this.onEvent(func, {
|
|
1270
|
-
type: "vesting::AdminWithdrawEvent",
|
|
1271
|
-
});
|
|
1272
|
-
return this;
|
|
1273
|
-
}
|
|
1274
|
-
loadTypesInternal(registry) {
|
|
1275
|
-
loadAllTypes(registry);
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
exports.vesting = vesting;
|
|
1279
|
-
(function (vesting) {
|
|
1280
|
-
class AdminStore {
|
|
1281
|
-
static TYPE_QNAME = "0x1::vesting::AdminStore";
|
|
1282
|
-
vesting_contracts;
|
|
1283
|
-
nonce;
|
|
1284
|
-
create_events;
|
|
1285
|
-
}
|
|
1286
|
-
vesting.AdminStore = AdminStore;
|
|
1287
|
-
class AdminWithdrawEvent {
|
|
1288
|
-
static TYPE_QNAME = "0x1::vesting::AdminWithdrawEvent";
|
|
1289
|
-
admin;
|
|
1290
|
-
vesting_contract_address;
|
|
1291
|
-
amount;
|
|
1292
|
-
}
|
|
1293
|
-
vesting.AdminWithdrawEvent = AdminWithdrawEvent;
|
|
1294
|
-
class CreateVestingContractEvent {
|
|
1295
|
-
static TYPE_QNAME = "0x1::vesting::CreateVestingContractEvent";
|
|
1296
|
-
operator;
|
|
1297
|
-
voter;
|
|
1298
|
-
grant_amount;
|
|
1299
|
-
withdrawal_address;
|
|
1300
|
-
vesting_contract_address;
|
|
1301
|
-
staking_pool_address;
|
|
1302
|
-
commission_percentage;
|
|
1303
|
-
}
|
|
1304
|
-
vesting.CreateVestingContractEvent = CreateVestingContractEvent;
|
|
1305
|
-
class DistributeEvent {
|
|
1306
|
-
static TYPE_QNAME = "0x1::vesting::DistributeEvent";
|
|
1307
|
-
admin;
|
|
1308
|
-
vesting_contract_address;
|
|
1309
|
-
amount;
|
|
1310
|
-
}
|
|
1311
|
-
vesting.DistributeEvent = DistributeEvent;
|
|
1312
|
-
class ResetLockupEvent {
|
|
1313
|
-
static TYPE_QNAME = "0x1::vesting::ResetLockupEvent";
|
|
1314
|
-
admin;
|
|
1315
|
-
vesting_contract_address;
|
|
1316
|
-
staking_pool_address;
|
|
1317
|
-
new_lockup_expiration_secs;
|
|
1318
|
-
}
|
|
1319
|
-
vesting.ResetLockupEvent = ResetLockupEvent;
|
|
1320
|
-
class SetBeneficiaryEvent {
|
|
1321
|
-
static TYPE_QNAME = "0x1::vesting::SetBeneficiaryEvent";
|
|
1322
|
-
admin;
|
|
1323
|
-
vesting_contract_address;
|
|
1324
|
-
shareholder;
|
|
1325
|
-
old_beneficiary;
|
|
1326
|
-
new_beneficiary;
|
|
1327
|
-
}
|
|
1328
|
-
vesting.SetBeneficiaryEvent = SetBeneficiaryEvent;
|
|
1329
|
-
class StakingInfo {
|
|
1330
|
-
static TYPE_QNAME = "0x1::vesting::StakingInfo";
|
|
1331
|
-
pool_address;
|
|
1332
|
-
operator;
|
|
1333
|
-
voter;
|
|
1334
|
-
commission_percentage;
|
|
1335
|
-
}
|
|
1336
|
-
vesting.StakingInfo = StakingInfo;
|
|
1337
|
-
class TerminateEvent {
|
|
1338
|
-
static TYPE_QNAME = "0x1::vesting::TerminateEvent";
|
|
1339
|
-
admin;
|
|
1340
|
-
vesting_contract_address;
|
|
1341
|
-
}
|
|
1342
|
-
vesting.TerminateEvent = TerminateEvent;
|
|
1343
|
-
class UnlockRewardsEvent {
|
|
1344
|
-
static TYPE_QNAME = "0x1::vesting::UnlockRewardsEvent";
|
|
1345
|
-
admin;
|
|
1346
|
-
vesting_contract_address;
|
|
1347
|
-
staking_pool_address;
|
|
1348
|
-
amount;
|
|
1349
|
-
}
|
|
1350
|
-
vesting.UnlockRewardsEvent = UnlockRewardsEvent;
|
|
1351
|
-
class UpdateOperatorEvent {
|
|
1352
|
-
static TYPE_QNAME = "0x1::vesting::UpdateOperatorEvent";
|
|
1353
|
-
admin;
|
|
1354
|
-
vesting_contract_address;
|
|
1355
|
-
staking_pool_address;
|
|
1356
|
-
old_operator;
|
|
1357
|
-
new_operator;
|
|
1358
|
-
commission_percentage;
|
|
1359
|
-
}
|
|
1360
|
-
vesting.UpdateOperatorEvent = UpdateOperatorEvent;
|
|
1361
|
-
class UpdateVoterEvent {
|
|
1362
|
-
static TYPE_QNAME = "0x1::vesting::UpdateVoterEvent";
|
|
1363
|
-
admin;
|
|
1364
|
-
vesting_contract_address;
|
|
1365
|
-
staking_pool_address;
|
|
1366
|
-
old_voter;
|
|
1367
|
-
new_voter;
|
|
1368
|
-
}
|
|
1369
|
-
vesting.UpdateVoterEvent = UpdateVoterEvent;
|
|
1370
|
-
class VestEvent {
|
|
1371
|
-
static TYPE_QNAME = "0x1::vesting::VestEvent";
|
|
1372
|
-
admin;
|
|
1373
|
-
vesting_contract_address;
|
|
1374
|
-
staking_pool_address;
|
|
1375
|
-
period_vested;
|
|
1376
|
-
amount;
|
|
1377
|
-
}
|
|
1378
|
-
vesting.VestEvent = VestEvent;
|
|
1379
|
-
class VestingAccountManagement {
|
|
1380
|
-
static TYPE_QNAME = "0x1::vesting::VestingAccountManagement";
|
|
1381
|
-
roles;
|
|
1382
|
-
}
|
|
1383
|
-
vesting.VestingAccountManagement = VestingAccountManagement;
|
|
1384
|
-
class VestingContract {
|
|
1385
|
-
static TYPE_QNAME = "0x1::vesting::VestingContract";
|
|
1386
|
-
state;
|
|
1387
|
-
admin;
|
|
1388
|
-
grant_pool;
|
|
1389
|
-
beneficiaries;
|
|
1390
|
-
vesting_schedule;
|
|
1391
|
-
withdrawal_address;
|
|
1392
|
-
staking;
|
|
1393
|
-
remaining_grant;
|
|
1394
|
-
signer_cap;
|
|
1395
|
-
update_operator_events;
|
|
1396
|
-
update_voter_events;
|
|
1397
|
-
reset_lockup_events;
|
|
1398
|
-
set_beneficiary_events;
|
|
1399
|
-
unlock_rewards_events;
|
|
1400
|
-
vest_events;
|
|
1401
|
-
distribute_events;
|
|
1402
|
-
terminate_events;
|
|
1403
|
-
admin_withdraw_events;
|
|
1404
|
-
}
|
|
1405
|
-
vesting.VestingContract = VestingContract;
|
|
1406
|
-
class VestingSchedule {
|
|
1407
|
-
static TYPE_QNAME = "0x1::vesting::VestingSchedule";
|
|
1408
|
-
schedule;
|
|
1409
|
-
start_timestamp_secs;
|
|
1410
|
-
period_duration;
|
|
1411
|
-
last_vested_period;
|
|
1412
|
-
}
|
|
1413
|
-
vesting.VestingSchedule = VestingSchedule;
|
|
1414
|
-
function loadTypes(_r) {
|
|
1415
|
-
loadAllTypes(_r);
|
|
1416
|
-
}
|
|
1417
|
-
vesting.loadTypes = loadTypes;
|
|
1418
|
-
vesting.ABI = JSON.parse('{"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"}]}]}');
|
|
1419
|
-
})(vesting = exports.vesting || (exports.vesting = {}));
|
|
1420
|
-
var bls12381;
|
|
1421
|
-
(function (bls12381) {
|
|
1422
|
-
class AggrOrMultiSignature {
|
|
1423
|
-
static TYPE_QNAME = "0x1::bls12381::AggrOrMultiSignature";
|
|
1424
|
-
bytes;
|
|
1425
|
-
}
|
|
1426
|
-
bls12381.AggrOrMultiSignature = AggrOrMultiSignature;
|
|
1427
|
-
class AggrPublicKeysWithPoP {
|
|
1428
|
-
static TYPE_QNAME = "0x1::bls12381::AggrPublicKeysWithPoP";
|
|
1429
|
-
bytes;
|
|
1430
|
-
}
|
|
1431
|
-
bls12381.AggrPublicKeysWithPoP = AggrPublicKeysWithPoP;
|
|
1432
|
-
class ProofOfPossession {
|
|
1433
|
-
static TYPE_QNAME = "0x1::bls12381::ProofOfPossession";
|
|
1434
|
-
bytes;
|
|
1435
|
-
}
|
|
1436
|
-
bls12381.ProofOfPossession = ProofOfPossession;
|
|
1437
|
-
class PublicKey {
|
|
1438
|
-
static TYPE_QNAME = "0x1::bls12381::PublicKey";
|
|
1439
|
-
bytes;
|
|
1440
|
-
}
|
|
1441
|
-
bls12381.PublicKey = PublicKey;
|
|
1442
|
-
class PublicKeyWithPoP {
|
|
1443
|
-
static TYPE_QNAME = "0x1::bls12381::PublicKeyWithPoP";
|
|
1444
|
-
bytes;
|
|
1445
|
-
}
|
|
1446
|
-
bls12381.PublicKeyWithPoP = PublicKeyWithPoP;
|
|
1447
|
-
class Signature {
|
|
1448
|
-
static TYPE_QNAME = "0x1::bls12381::Signature";
|
|
1449
|
-
bytes;
|
|
1450
|
-
}
|
|
1451
|
-
bls12381.Signature = Signature;
|
|
1452
|
-
function loadTypes(_r) {
|
|
1453
|
-
loadAllTypes(_r);
|
|
1454
|
-
}
|
|
1455
|
-
bls12381.loadTypes = loadTypes;
|
|
1456
|
-
bls12381.ABI = JSON.parse('{"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>"}]}]}');
|
|
1457
|
-
})(bls12381 = exports.bls12381 || (exports.bls12381 = {}));
|
|
1458
|
-
var chain_id;
|
|
1459
|
-
(function (chain_id) {
|
|
1460
|
-
class ChainId {
|
|
1461
|
-
static TYPE_QNAME = "0x1::chain_id::ChainId";
|
|
1462
|
-
id;
|
|
1463
|
-
}
|
|
1464
|
-
chain_id.ChainId = ChainId;
|
|
1465
|
-
function loadTypes(_r) {
|
|
1466
|
-
loadAllTypes(_r);
|
|
1467
|
-
}
|
|
1468
|
-
chain_id.loadTypes = loadTypes;
|
|
1469
|
-
chain_id.ABI = JSON.parse('{"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"}]}]}');
|
|
1470
|
-
})(chain_id = exports.chain_id || (exports.chain_id = {}));
|
|
1471
|
-
var features;
|
|
1472
|
-
(function (features) {
|
|
1473
|
-
class Features {
|
|
1474
|
-
static TYPE_QNAME = "0x1::features::Features";
|
|
1475
|
-
features;
|
|
1476
|
-
}
|
|
1477
|
-
features.Features = Features;
|
|
1478
|
-
function loadTypes(_r) {
|
|
1479
|
-
loadAllTypes(_r);
|
|
1480
|
-
}
|
|
1481
|
-
features.loadTypes = loadTypes;
|
|
1482
|
-
features.ABI = JSON.parse('{"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>"}]}]}');
|
|
1483
|
-
})(features = exports.features || (exports.features = {}));
|
|
1484
|
-
var from_bcs;
|
|
1485
|
-
(function (from_bcs) {
|
|
1486
|
-
function loadTypes(_r) {
|
|
1487
|
-
loadAllTypes(_r);
|
|
1488
|
-
}
|
|
1489
|
-
from_bcs.loadTypes = loadTypes;
|
|
1490
|
-
from_bcs.ABI = JSON.parse('{"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":[]}');
|
|
1491
|
-
})(from_bcs = exports.from_bcs || (exports.from_bcs = {}));
|
|
1492
|
-
var pool_u64;
|
|
1493
|
-
(function (pool_u64) {
|
|
1494
|
-
class Pool {
|
|
1495
|
-
static TYPE_QNAME = "0x1::pool_u64::Pool";
|
|
1496
|
-
shareholders_limit;
|
|
1497
|
-
total_coins;
|
|
1498
|
-
total_shares;
|
|
1499
|
-
shares;
|
|
1500
|
-
shareholders;
|
|
1501
|
-
scaling_factor;
|
|
1502
|
-
}
|
|
1503
|
-
pool_u64.Pool = Pool;
|
|
1504
|
-
function loadTypes(_r) {
|
|
1505
|
-
loadAllTypes(_r);
|
|
1506
|
-
}
|
|
1507
|
-
pool_u64.loadTypes = loadTypes;
|
|
1508
|
-
pool_u64.ABI = JSON.parse('{"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"}]}]}');
|
|
1509
|
-
})(pool_u64 = exports.pool_u64 || (exports.pool_u64 = {}));
|
|
1510
|
-
var secp256k1;
|
|
1511
|
-
(function (secp256k1) {
|
|
1512
|
-
class ECDSARawPublicKey {
|
|
1513
|
-
static TYPE_QNAME = "0x1::secp256k1::ECDSARawPublicKey";
|
|
1514
|
-
bytes;
|
|
1515
|
-
}
|
|
1516
|
-
secp256k1.ECDSARawPublicKey = ECDSARawPublicKey;
|
|
1517
|
-
class ECDSASignature {
|
|
1518
|
-
static TYPE_QNAME = "0x1::secp256k1::ECDSASignature";
|
|
1519
|
-
bytes;
|
|
1520
|
-
}
|
|
1521
|
-
secp256k1.ECDSASignature = ECDSASignature;
|
|
1522
|
-
function loadTypes(_r) {
|
|
1523
|
-
loadAllTypes(_r);
|
|
1524
|
-
}
|
|
1525
|
-
secp256k1.loadTypes = loadTypes;
|
|
1526
|
-
secp256k1.ABI = JSON.parse('{"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>"}]}]}');
|
|
1527
|
-
})(secp256k1 = exports.secp256k1 || (exports.secp256k1 = {}));
|
|
1528
|
-
var timestamp;
|
|
1529
|
-
(function (timestamp) {
|
|
1530
|
-
class CurrentTimeMicroseconds {
|
|
1531
|
-
static TYPE_QNAME = "0x1::timestamp::CurrentTimeMicroseconds";
|
|
1532
|
-
microseconds;
|
|
1533
|
-
}
|
|
1534
|
-
timestamp.CurrentTimeMicroseconds = CurrentTimeMicroseconds;
|
|
1535
|
-
function loadTypes(_r) {
|
|
1536
|
-
loadAllTypes(_r);
|
|
1537
|
-
}
|
|
1538
|
-
timestamp.loadTypes = loadTypes;
|
|
1539
|
-
timestamp.ABI = JSON.parse('{"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"}]}]}');
|
|
1540
|
-
})(timestamp = exports.timestamp || (exports.timestamp = {}));
|
|
1541
|
-
var type_info;
|
|
1542
|
-
(function (type_info) {
|
|
1543
|
-
class TypeInfo {
|
|
1544
|
-
static TYPE_QNAME = "0x1::type_info::TypeInfo";
|
|
1545
|
-
account_address;
|
|
1546
|
-
module_name;
|
|
1547
|
-
struct_name;
|
|
1548
|
-
}
|
|
1549
|
-
type_info.TypeInfo = TypeInfo;
|
|
1550
|
-
function loadTypes(_r) {
|
|
1551
|
-
loadAllTypes(_r);
|
|
1552
|
-
}
|
|
1553
|
-
type_info.loadTypes = loadTypes;
|
|
1554
|
-
type_info.ABI = JSON.parse('{"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>"}]}]}');
|
|
1555
|
-
})(type_info = exports.type_info || (exports.type_info = {}));
|
|
1556
|
-
var aggregator;
|
|
1557
|
-
(function (aggregator) {
|
|
1558
|
-
class Aggregator {
|
|
1559
|
-
static TYPE_QNAME = "0x1::aggregator::Aggregator";
|
|
1560
|
-
handle;
|
|
1561
|
-
key;
|
|
1562
|
-
limit;
|
|
1563
|
-
}
|
|
1564
|
-
aggregator.Aggregator = Aggregator;
|
|
1565
|
-
function loadTypes(_r) {
|
|
1566
|
-
loadAllTypes(_r);
|
|
1567
|
-
}
|
|
1568
|
-
aggregator.loadTypes = loadTypes;
|
|
1569
|
-
aggregator.ABI = JSON.parse('{"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"}]}]}');
|
|
1570
|
-
})(aggregator = exports.aggregator || (exports.aggregator = {}));
|
|
1571
|
-
class aptos_coin extends sdk_1.aptos.AptosBaseProcessor {
|
|
1572
|
-
constructor(options) {
|
|
1573
|
-
super("aptos_coin", options);
|
|
1574
|
-
}
|
|
1575
|
-
static DEFAULT_OPTIONS = {
|
|
1576
|
-
address: "0x1",
|
|
1577
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
1578
|
-
};
|
|
1579
|
-
static bind(options = {}) {
|
|
1580
|
-
return new aptos_coin({ ...aptos_coin.DEFAULT_OPTIONS, ...options });
|
|
1581
|
-
}
|
|
1582
|
-
onEntryClaimMintCapability(func, filter) {
|
|
1583
|
-
this.onEntryFunctionCall(func, {
|
|
1584
|
-
...filter,
|
|
1585
|
-
function: "aptos_coin::claim_mint_capability",
|
|
1586
|
-
});
|
|
1587
|
-
return this;
|
|
1588
|
-
}
|
|
1589
|
-
onEntryDelegateMintCapability(func, filter) {
|
|
1590
|
-
this.onEntryFunctionCall(func, {
|
|
1591
|
-
...filter,
|
|
1592
|
-
function: "aptos_coin::delegate_mint_capability",
|
|
1593
|
-
});
|
|
1594
|
-
return this;
|
|
1595
|
-
}
|
|
1596
|
-
onEntryMint(func, filter) {
|
|
1597
|
-
this.onEntryFunctionCall(func, {
|
|
1598
|
-
...filter,
|
|
1599
|
-
function: "aptos_coin::mint",
|
|
1600
|
-
});
|
|
1601
|
-
return this;
|
|
1602
|
-
}
|
|
1603
|
-
loadTypesInternal(registry) {
|
|
1604
|
-
loadAllTypes(registry);
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
exports.aptos_coin = aptos_coin;
|
|
1608
|
-
(function (aptos_coin) {
|
|
1609
|
-
class AptosCoin {
|
|
1610
|
-
static TYPE_QNAME = "0x1::aptos_coin::AptosCoin";
|
|
1611
|
-
dummy_field;
|
|
1612
|
-
}
|
|
1613
|
-
aptos_coin.AptosCoin = AptosCoin;
|
|
1614
|
-
class DelegatedMintCapability {
|
|
1615
|
-
static TYPE_QNAME = "0x1::aptos_coin::DelegatedMintCapability";
|
|
1616
|
-
to;
|
|
1617
|
-
}
|
|
1618
|
-
aptos_coin.DelegatedMintCapability = DelegatedMintCapability;
|
|
1619
|
-
class Delegations {
|
|
1620
|
-
static TYPE_QNAME = "0x1::aptos_coin::Delegations";
|
|
1621
|
-
inner;
|
|
1622
|
-
}
|
|
1623
|
-
aptos_coin.Delegations = Delegations;
|
|
1624
|
-
class MintCapStore {
|
|
1625
|
-
static TYPE_QNAME = "0x1::aptos_coin::MintCapStore";
|
|
1626
|
-
mint_cap;
|
|
1627
|
-
}
|
|
1628
|
-
aptos_coin.MintCapStore = MintCapStore;
|
|
1629
|
-
function loadTypes(_r) {
|
|
1630
|
-
loadAllTypes(_r);
|
|
1631
|
-
}
|
|
1632
|
-
aptos_coin.loadTypes = loadTypes;
|
|
1633
|
-
aptos_coin.ABI = JSON.parse('{"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>"}]}]}');
|
|
1634
|
-
})(aptos_coin = exports.aptos_coin || (exports.aptos_coin = {}));
|
|
1635
|
-
var aptos_hash;
|
|
1636
|
-
(function (aptos_hash) {
|
|
1637
|
-
function loadTypes(_r) {
|
|
1638
|
-
loadAllTypes(_r);
|
|
1639
|
-
}
|
|
1640
|
-
aptos_hash.loadTypes = loadTypes;
|
|
1641
|
-
aptos_hash.ABI = JSON.parse('{"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":[]}');
|
|
1642
|
-
})(aptos_hash = exports.aptos_hash || (exports.aptos_hash = {}));
|
|
1643
|
-
var bit_vector;
|
|
1644
|
-
(function (bit_vector) {
|
|
1645
|
-
class BitVector {
|
|
1646
|
-
static TYPE_QNAME = "0x1::bit_vector::BitVector";
|
|
1647
|
-
length;
|
|
1648
|
-
bit_field;
|
|
1649
|
-
}
|
|
1650
|
-
bit_vector.BitVector = BitVector;
|
|
1651
|
-
function loadTypes(_r) {
|
|
1652
|
-
loadAllTypes(_r);
|
|
1653
|
-
}
|
|
1654
|
-
bit_vector.loadTypes = loadTypes;
|
|
1655
|
-
bit_vector.ABI = JSON.parse('{"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>"}]}]}');
|
|
1656
|
-
})(bit_vector = exports.bit_vector || (exports.bit_vector = {}));
|
|
1657
|
-
var capability;
|
|
1658
|
-
(function (capability) {
|
|
1659
|
-
class Cap {
|
|
1660
|
-
static TYPE_QNAME = "0x1::capability::Cap";
|
|
1661
|
-
root;
|
|
1662
|
-
}
|
|
1663
|
-
capability.Cap = Cap;
|
|
1664
|
-
class CapDelegateState {
|
|
1665
|
-
static TYPE_QNAME = "0x1::capability::CapDelegateState";
|
|
1666
|
-
root;
|
|
1667
|
-
}
|
|
1668
|
-
capability.CapDelegateState = CapDelegateState;
|
|
1669
|
-
class CapState {
|
|
1670
|
-
static TYPE_QNAME = "0x1::capability::CapState";
|
|
1671
|
-
delegates;
|
|
1672
|
-
}
|
|
1673
|
-
capability.CapState = CapState;
|
|
1674
|
-
class LinearCap {
|
|
1675
|
-
static TYPE_QNAME = "0x1::capability::LinearCap";
|
|
1676
|
-
root;
|
|
1677
|
-
}
|
|
1678
|
-
capability.LinearCap = LinearCap;
|
|
1679
|
-
function loadTypes(_r) {
|
|
1680
|
-
loadAllTypes(_r);
|
|
1681
|
-
}
|
|
1682
|
-
capability.loadTypes = loadTypes;
|
|
1683
|
-
capability.ABI = JSON.parse('{"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"}]}]}');
|
|
1684
|
-
})(capability = exports.capability || (exports.capability = {}));
|
|
1685
|
-
var comparator;
|
|
1686
|
-
(function (comparator) {
|
|
1687
|
-
class Result {
|
|
1688
|
-
static TYPE_QNAME = "0x1::comparator::Result";
|
|
1689
|
-
inner;
|
|
1690
|
-
}
|
|
1691
|
-
comparator.Result = Result;
|
|
1692
|
-
function loadTypes(_r) {
|
|
1693
|
-
loadAllTypes(_r);
|
|
1694
|
-
}
|
|
1695
|
-
comparator.loadTypes = loadTypes;
|
|
1696
|
-
comparator.ABI = JSON.parse('{"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"}]}]}');
|
|
1697
|
-
})(comparator = exports.comparator || (exports.comparator = {}));
|
|
1698
|
-
var simple_map;
|
|
1699
|
-
(function (simple_map) {
|
|
1700
|
-
class Element {
|
|
1701
|
-
static TYPE_QNAME = "0x1::simple_map::Element";
|
|
1702
|
-
key;
|
|
1703
|
-
value;
|
|
1704
|
-
}
|
|
1705
|
-
simple_map.Element = Element;
|
|
1706
|
-
class SimpleMap {
|
|
1707
|
-
static TYPE_QNAME = "0x1::simple_map::SimpleMap";
|
|
1708
|
-
data;
|
|
1709
|
-
}
|
|
1710
|
-
simple_map.SimpleMap = SimpleMap;
|
|
1711
|
-
function loadTypes(_r) {
|
|
1712
|
-
loadAllTypes(_r);
|
|
1713
|
-
}
|
|
1714
|
-
simple_map.loadTypes = loadTypes;
|
|
1715
|
-
simple_map.ABI = JSON.parse('{"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>>"}]}]}');
|
|
1716
|
-
})(simple_map = exports.simple_map || (exports.simple_map = {}));
|
|
1717
|
-
var storage_gas;
|
|
1718
|
-
(function (storage_gas) {
|
|
1719
|
-
class GasCurve {
|
|
1720
|
-
static TYPE_QNAME = "0x1::storage_gas::GasCurve";
|
|
1721
|
-
min_gas;
|
|
1722
|
-
max_gas;
|
|
1723
|
-
points;
|
|
1724
|
-
}
|
|
1725
|
-
storage_gas.GasCurve = GasCurve;
|
|
1726
|
-
class Point {
|
|
1727
|
-
static TYPE_QNAME = "0x1::storage_gas::Point";
|
|
1728
|
-
x;
|
|
1729
|
-
y;
|
|
1730
|
-
}
|
|
1731
|
-
storage_gas.Point = Point;
|
|
1732
|
-
class StorageGas {
|
|
1733
|
-
static TYPE_QNAME = "0x1::storage_gas::StorageGas";
|
|
1734
|
-
per_item_read;
|
|
1735
|
-
per_item_create;
|
|
1736
|
-
per_item_write;
|
|
1737
|
-
per_byte_read;
|
|
1738
|
-
per_byte_create;
|
|
1739
|
-
per_byte_write;
|
|
1740
|
-
}
|
|
1741
|
-
storage_gas.StorageGas = StorageGas;
|
|
1742
|
-
class StorageGasConfig {
|
|
1743
|
-
static TYPE_QNAME = "0x1::storage_gas::StorageGasConfig";
|
|
1744
|
-
item_config;
|
|
1745
|
-
byte_config;
|
|
1746
|
-
}
|
|
1747
|
-
storage_gas.StorageGasConfig = StorageGasConfig;
|
|
1748
|
-
class UsageGasConfig {
|
|
1749
|
-
static TYPE_QNAME = "0x1::storage_gas::UsageGasConfig";
|
|
1750
|
-
target_usage;
|
|
1751
|
-
read_curve;
|
|
1752
|
-
create_curve;
|
|
1753
|
-
write_curve;
|
|
1754
|
-
}
|
|
1755
|
-
storage_gas.UsageGasConfig = UsageGasConfig;
|
|
1756
|
-
function loadTypes(_r) {
|
|
1757
|
-
loadAllTypes(_r);
|
|
1758
|
-
}
|
|
1759
|
-
storage_gas.loadTypes = loadTypes;
|
|
1760
|
-
storage_gas.ABI = JSON.parse('{"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"}]}]}');
|
|
1761
|
-
})(storage_gas = exports.storage_gas || (exports.storage_gas = {}));
|
|
1762
|
-
var chain_status;
|
|
1763
|
-
(function (chain_status) {
|
|
1764
|
-
class GenesisEndMarker {
|
|
1765
|
-
static TYPE_QNAME = "0x1::chain_status::GenesisEndMarker";
|
|
1766
|
-
dummy_field;
|
|
1767
|
-
}
|
|
1768
|
-
chain_status.GenesisEndMarker = GenesisEndMarker;
|
|
1769
|
-
function loadTypes(_r) {
|
|
1770
|
-
loadAllTypes(_r);
|
|
1771
|
-
}
|
|
1772
|
-
chain_status.loadTypes = loadTypes;
|
|
1773
|
-
chain_status.ABI = JSON.parse('{"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"}]}]}');
|
|
1774
|
-
})(chain_status = exports.chain_status || (exports.chain_status = {}));
|
|
1775
|
-
var copyable_any;
|
|
1776
|
-
(function (copyable_any) {
|
|
1777
|
-
class Any {
|
|
1778
|
-
static TYPE_QNAME = "0x1::copyable_any::Any";
|
|
1779
|
-
type_name;
|
|
1780
|
-
data;
|
|
1781
|
-
}
|
|
1782
|
-
copyable_any.Any = Any;
|
|
1783
|
-
function loadTypes(_r) {
|
|
1784
|
-
loadAllTypes(_r);
|
|
1785
|
-
}
|
|
1786
|
-
copyable_any.loadTypes = loadTypes;
|
|
1787
|
-
copyable_any.ABI = JSON.parse('{"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>"}]}]}');
|
|
1788
|
-
})(copyable_any = exports.copyable_any || (exports.copyable_any = {}));
|
|
1789
|
-
var gas_schedule;
|
|
1790
|
-
(function (gas_schedule) {
|
|
1791
|
-
class GasEntry {
|
|
1792
|
-
static TYPE_QNAME = "0x1::gas_schedule::GasEntry";
|
|
1793
|
-
key;
|
|
1794
|
-
val;
|
|
1795
|
-
}
|
|
1796
|
-
gas_schedule.GasEntry = GasEntry;
|
|
1797
|
-
class GasSchedule {
|
|
1798
|
-
static TYPE_QNAME = "0x1::gas_schedule::GasSchedule";
|
|
1799
|
-
entries;
|
|
1800
|
-
}
|
|
1801
|
-
gas_schedule.GasSchedule = GasSchedule;
|
|
1802
|
-
class GasScheduleV2 {
|
|
1803
|
-
static TYPE_QNAME = "0x1::gas_schedule::GasScheduleV2";
|
|
1804
|
-
feature_version;
|
|
1805
|
-
entries;
|
|
1806
|
-
}
|
|
1807
|
-
gas_schedule.GasScheduleV2 = GasScheduleV2;
|
|
1808
|
-
function loadTypes(_r) {
|
|
1809
|
-
loadAllTypes(_r);
|
|
1810
|
-
}
|
|
1811
|
-
gas_schedule.loadTypes = loadTypes;
|
|
1812
|
-
gas_schedule.ABI = JSON.parse('{"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>"}]}]}');
|
|
1813
|
-
})(gas_schedule = exports.gas_schedule || (exports.gas_schedule = {}));
|
|
1814
|
-
class managed_coin extends sdk_1.aptos.AptosBaseProcessor {
|
|
1815
|
-
constructor(options) {
|
|
1816
|
-
super("managed_coin", options);
|
|
1817
|
-
}
|
|
1818
|
-
static DEFAULT_OPTIONS = {
|
|
1819
|
-
address: "0x1",
|
|
1820
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
1821
|
-
};
|
|
1822
|
-
static bind(options = {}) {
|
|
1823
|
-
return new managed_coin({ ...managed_coin.DEFAULT_OPTIONS, ...options });
|
|
1824
|
-
}
|
|
1825
|
-
onEntryBurn(func, filter) {
|
|
1826
|
-
this.onEntryFunctionCall(func, {
|
|
1827
|
-
...filter,
|
|
1828
|
-
function: "managed_coin::burn",
|
|
1829
|
-
});
|
|
1830
|
-
return this;
|
|
1831
|
-
}
|
|
1832
|
-
onEntryInitialize(func, filter) {
|
|
1833
|
-
this.onEntryFunctionCall(func, {
|
|
1834
|
-
...filter,
|
|
1835
|
-
function: "managed_coin::initialize",
|
|
1836
|
-
});
|
|
1837
|
-
return this;
|
|
1838
|
-
}
|
|
1839
|
-
onEntryMint(func, filter) {
|
|
1840
|
-
this.onEntryFunctionCall(func, {
|
|
1841
|
-
...filter,
|
|
1842
|
-
function: "managed_coin::mint",
|
|
1843
|
-
});
|
|
1844
|
-
return this;
|
|
1845
|
-
}
|
|
1846
|
-
onEntryRegister(func, filter) {
|
|
1847
|
-
this.onEntryFunctionCall(func, {
|
|
1848
|
-
...filter,
|
|
1849
|
-
function: "managed_coin::register",
|
|
1850
|
-
});
|
|
1851
|
-
return this;
|
|
1852
|
-
}
|
|
1853
|
-
loadTypesInternal(registry) {
|
|
1854
|
-
loadAllTypes(registry);
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
exports.managed_coin = managed_coin;
|
|
1858
|
-
(function (managed_coin) {
|
|
1859
|
-
class Capabilities {
|
|
1860
|
-
static TYPE_QNAME = "0x1::managed_coin::Capabilities";
|
|
1861
|
-
burn_cap;
|
|
1862
|
-
freeze_cap;
|
|
1863
|
-
mint_cap;
|
|
1864
|
-
}
|
|
1865
|
-
managed_coin.Capabilities = Capabilities;
|
|
1866
|
-
function loadTypes(_r) {
|
|
1867
|
-
loadAllTypes(_r);
|
|
1868
|
-
}
|
|
1869
|
-
managed_coin.loadTypes = loadTypes;
|
|
1870
|
-
managed_coin.ABI = JSON.parse('{"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>"}]}]}');
|
|
1871
|
-
})(managed_coin = exports.managed_coin || (exports.managed_coin = {}));
|
|
1872
|
-
var ristretto255;
|
|
1873
|
-
(function (ristretto255) {
|
|
1874
|
-
class CompressedRistretto {
|
|
1875
|
-
static TYPE_QNAME = "0x1::ristretto255::CompressedRistretto";
|
|
1876
|
-
data;
|
|
1877
|
-
}
|
|
1878
|
-
ristretto255.CompressedRistretto = CompressedRistretto;
|
|
1879
|
-
class RistrettoPoint {
|
|
1880
|
-
static TYPE_QNAME = "0x1::ristretto255::RistrettoPoint";
|
|
1881
|
-
handle;
|
|
1882
|
-
}
|
|
1883
|
-
ristretto255.RistrettoPoint = RistrettoPoint;
|
|
1884
|
-
class Scalar {
|
|
1885
|
-
static TYPE_QNAME = "0x1::ristretto255::Scalar";
|
|
1886
|
-
data;
|
|
1887
|
-
}
|
|
1888
|
-
ristretto255.Scalar = Scalar;
|
|
1889
|
-
function loadTypes(_r) {
|
|
1890
|
-
loadAllTypes(_r);
|
|
1891
|
-
}
|
|
1892
|
-
ristretto255.loadTypes = loadTypes;
|
|
1893
|
-
ristretto255.ABI = JSON.parse('{"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>"}]}]}');
|
|
1894
|
-
})(ristretto255 = exports.ristretto255 || (exports.ristretto255 = {}));
|
|
1895
|
-
class aptos_account extends sdk_1.aptos.AptosBaseProcessor {
|
|
1896
|
-
constructor(options) {
|
|
1897
|
-
super("aptos_account", options);
|
|
1898
|
-
}
|
|
1899
|
-
static DEFAULT_OPTIONS = {
|
|
1900
|
-
address: "0x1",
|
|
1901
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
1902
|
-
};
|
|
1903
|
-
static bind(options = {}) {
|
|
1904
|
-
return new aptos_account({ ...aptos_account.DEFAULT_OPTIONS, ...options });
|
|
1905
|
-
}
|
|
1906
|
-
onEntryCreateAccount(func, filter) {
|
|
1907
|
-
this.onEntryFunctionCall(func, {
|
|
1908
|
-
...filter,
|
|
1909
|
-
function: "aptos_account::create_account",
|
|
1910
|
-
});
|
|
1911
|
-
return this;
|
|
1912
|
-
}
|
|
1913
|
-
onEntryTransfer(func, filter) {
|
|
1914
|
-
this.onEntryFunctionCall(func, {
|
|
1915
|
-
...filter,
|
|
1916
|
-
function: "aptos_account::transfer",
|
|
1917
|
-
});
|
|
1918
|
-
return this;
|
|
1919
|
-
}
|
|
1920
|
-
loadTypesInternal(registry) {
|
|
1921
|
-
loadAllTypes(registry);
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
exports.aptos_account = aptos_account;
|
|
1925
|
-
(function (aptos_account) {
|
|
1926
|
-
function loadTypes(_r) {
|
|
1927
|
-
loadAllTypes(_r);
|
|
1928
|
-
}
|
|
1929
|
-
aptos_account.loadTypes = loadTypes;
|
|
1930
|
-
aptos_account.ABI = JSON.parse('{"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":[]}');
|
|
1931
|
-
})(aptos_account = exports.aptos_account || (exports.aptos_account = {}));
|
|
1932
|
-
var fixed_point32;
|
|
1933
|
-
(function (fixed_point32) {
|
|
1934
|
-
class FixedPoint32 {
|
|
1935
|
-
static TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
|
|
1936
|
-
value;
|
|
1937
|
-
}
|
|
1938
|
-
fixed_point32.FixedPoint32 = FixedPoint32;
|
|
1939
|
-
function loadTypes(_r) {
|
|
1940
|
-
loadAllTypes(_r);
|
|
1941
|
-
}
|
|
1942
|
-
fixed_point32.loadTypes = loadTypes;
|
|
1943
|
-
fixed_point32.ABI = JSON.parse('{"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"}]}]}');
|
|
1944
|
-
})(fixed_point32 = exports.fixed_point32 || (exports.fixed_point32 = {}));
|
|
1945
|
-
var multi_ed25519;
|
|
1946
|
-
(function (multi_ed25519) {
|
|
1947
|
-
class Signature {
|
|
1948
|
-
static TYPE_QNAME = "0x1::multi_ed25519::Signature";
|
|
1949
|
-
bytes;
|
|
1950
|
-
}
|
|
1951
|
-
multi_ed25519.Signature = Signature;
|
|
1952
|
-
class UnvalidatedPublicKey {
|
|
1953
|
-
static TYPE_QNAME = "0x1::multi_ed25519::UnvalidatedPublicKey";
|
|
1954
|
-
bytes;
|
|
1955
|
-
}
|
|
1956
|
-
multi_ed25519.UnvalidatedPublicKey = UnvalidatedPublicKey;
|
|
1957
|
-
class ValidatedPublicKey {
|
|
1958
|
-
static TYPE_QNAME = "0x1::multi_ed25519::ValidatedPublicKey";
|
|
1959
|
-
bytes;
|
|
1960
|
-
}
|
|
1961
|
-
multi_ed25519.ValidatedPublicKey = ValidatedPublicKey;
|
|
1962
|
-
function loadTypes(_r) {
|
|
1963
|
-
loadAllTypes(_r);
|
|
1964
|
-
}
|
|
1965
|
-
multi_ed25519.loadTypes = loadTypes;
|
|
1966
|
-
multi_ed25519.ABI = JSON.parse('{"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>"}]}]}');
|
|
1967
|
-
})(multi_ed25519 = exports.multi_ed25519 || (exports.multi_ed25519 = {}));
|
|
1968
|
-
class staking_proxy extends sdk_1.aptos.AptosBaseProcessor {
|
|
1969
|
-
constructor(options) {
|
|
1970
|
-
super("staking_proxy", options);
|
|
1971
|
-
}
|
|
1972
|
-
static DEFAULT_OPTIONS = {
|
|
1973
|
-
address: "0x1",
|
|
1974
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
1975
|
-
};
|
|
1976
|
-
static bind(options = {}) {
|
|
1977
|
-
return new staking_proxy({ ...staking_proxy.DEFAULT_OPTIONS, ...options });
|
|
1978
|
-
}
|
|
1979
|
-
onEntrySetOperator(func, filter) {
|
|
1980
|
-
this.onEntryFunctionCall(func, {
|
|
1981
|
-
...filter,
|
|
1982
|
-
function: "staking_proxy::set_operator",
|
|
1983
|
-
});
|
|
1984
|
-
return this;
|
|
1985
|
-
}
|
|
1986
|
-
onEntrySetStakePoolOperator(func, filter) {
|
|
1987
|
-
this.onEntryFunctionCall(func, {
|
|
1988
|
-
...filter,
|
|
1989
|
-
function: "staking_proxy::set_stake_pool_operator",
|
|
1990
|
-
});
|
|
1991
|
-
return this;
|
|
1992
|
-
}
|
|
1993
|
-
onEntrySetStakePoolVoter(func, filter) {
|
|
1994
|
-
this.onEntryFunctionCall(func, {
|
|
1995
|
-
...filter,
|
|
1996
|
-
function: "staking_proxy::set_stake_pool_voter",
|
|
1997
|
-
});
|
|
1998
|
-
return this;
|
|
1999
|
-
}
|
|
2000
|
-
onEntrySetStakingContractOperator(func, filter) {
|
|
2001
|
-
this.onEntryFunctionCall(func, {
|
|
2002
|
-
...filter,
|
|
2003
|
-
function: "staking_proxy::set_staking_contract_operator",
|
|
2004
|
-
});
|
|
2005
|
-
return this;
|
|
2006
|
-
}
|
|
2007
|
-
onEntrySetStakingContractVoter(func, filter) {
|
|
2008
|
-
this.onEntryFunctionCall(func, {
|
|
2009
|
-
...filter,
|
|
2010
|
-
function: "staking_proxy::set_staking_contract_voter",
|
|
2011
|
-
});
|
|
2012
|
-
return this;
|
|
2013
|
-
}
|
|
2014
|
-
onEntrySetVestingContractOperator(func, filter) {
|
|
2015
|
-
this.onEntryFunctionCall(func, {
|
|
2016
|
-
...filter,
|
|
2017
|
-
function: "staking_proxy::set_vesting_contract_operator",
|
|
2018
|
-
});
|
|
2019
|
-
return this;
|
|
2020
|
-
}
|
|
2021
|
-
onEntrySetVestingContractVoter(func, filter) {
|
|
2022
|
-
this.onEntryFunctionCall(func, {
|
|
2023
|
-
...filter,
|
|
2024
|
-
function: "staking_proxy::set_vesting_contract_voter",
|
|
2025
|
-
});
|
|
2026
|
-
return this;
|
|
2027
|
-
}
|
|
2028
|
-
onEntrySetVoter(func, filter) {
|
|
2029
|
-
this.onEntryFunctionCall(func, {
|
|
2030
|
-
...filter,
|
|
2031
|
-
function: "staking_proxy::set_voter",
|
|
2032
|
-
});
|
|
2033
|
-
return this;
|
|
2034
|
-
}
|
|
2035
|
-
loadTypesInternal(registry) {
|
|
2036
|
-
loadAllTypes(registry);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
exports.staking_proxy = staking_proxy;
|
|
2040
|
-
(function (staking_proxy) {
|
|
2041
|
-
function loadTypes(_r) {
|
|
2042
|
-
loadAllTypes(_r);
|
|
2043
|
-
}
|
|
2044
|
-
staking_proxy.loadTypes = loadTypes;
|
|
2045
|
-
staking_proxy.ABI = JSON.parse('{"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":[]}');
|
|
2046
|
-
})(staking_proxy = exports.staking_proxy || (exports.staking_proxy = {}));
|
|
2047
|
-
var state_storage;
|
|
2048
|
-
(function (state_storage) {
|
|
2049
|
-
class GasParameter {
|
|
2050
|
-
static TYPE_QNAME = "0x1::state_storage::GasParameter";
|
|
2051
|
-
usage;
|
|
2052
|
-
}
|
|
2053
|
-
state_storage.GasParameter = GasParameter;
|
|
2054
|
-
class StateStorageUsage {
|
|
2055
|
-
static TYPE_QNAME = "0x1::state_storage::StateStorageUsage";
|
|
2056
|
-
epoch;
|
|
2057
|
-
usage;
|
|
2058
|
-
}
|
|
2059
|
-
state_storage.StateStorageUsage = StateStorageUsage;
|
|
2060
|
-
class Usage {
|
|
2061
|
-
static TYPE_QNAME = "0x1::state_storage::Usage";
|
|
2062
|
-
items;
|
|
2063
|
-
bytes;
|
|
2064
|
-
}
|
|
2065
|
-
state_storage.Usage = Usage;
|
|
2066
|
-
function loadTypes(_r) {
|
|
2067
|
-
loadAllTypes(_r);
|
|
2068
|
-
}
|
|
2069
|
-
state_storage.loadTypes = loadTypes;
|
|
2070
|
-
state_storage.ABI = JSON.parse('{"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"}]}]}');
|
|
2071
|
-
})(state_storage = exports.state_storage || (exports.state_storage = {}));
|
|
2072
|
-
var staking_config;
|
|
2073
|
-
(function (staking_config) {
|
|
2074
|
-
class StakingConfig {
|
|
2075
|
-
static TYPE_QNAME = "0x1::staking_config::StakingConfig";
|
|
2076
|
-
minimum_stake;
|
|
2077
|
-
maximum_stake;
|
|
2078
|
-
recurring_lockup_duration_secs;
|
|
2079
|
-
allow_validator_set_change;
|
|
2080
|
-
rewards_rate;
|
|
2081
|
-
rewards_rate_denominator;
|
|
2082
|
-
voting_power_increase_limit;
|
|
2083
|
-
}
|
|
2084
|
-
staking_config.StakingConfig = StakingConfig;
|
|
2085
|
-
function loadTypes(_r) {
|
|
2086
|
-
loadAllTypes(_r);
|
|
2087
|
-
}
|
|
2088
|
-
staking_config.loadTypes = loadTypes;
|
|
2089
|
-
staking_config.ABI = JSON.parse('{"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"}]}]}');
|
|
2090
|
-
})(staking_config = exports.staking_config || (exports.staking_config = {}));
|
|
2091
|
-
class reconfiguration extends sdk_1.aptos.AptosBaseProcessor {
|
|
2092
|
-
constructor(options) {
|
|
2093
|
-
super("reconfiguration", options);
|
|
2094
|
-
}
|
|
2095
|
-
static DEFAULT_OPTIONS = {
|
|
2096
|
-
address: "0x1",
|
|
2097
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
2098
|
-
};
|
|
2099
|
-
static bind(options = {}) {
|
|
2100
|
-
return new reconfiguration({
|
|
2101
|
-
...reconfiguration.DEFAULT_OPTIONS,
|
|
2102
|
-
...options,
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
onEventNewEpochEvent(func) {
|
|
2106
|
-
this.onEvent(func, {
|
|
2107
|
-
type: "reconfiguration::NewEpochEvent",
|
|
2108
|
-
});
|
|
2109
|
-
return this;
|
|
2110
|
-
}
|
|
2111
|
-
loadTypesInternal(registry) {
|
|
2112
|
-
loadAllTypes(registry);
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
exports.reconfiguration = reconfiguration;
|
|
2116
|
-
(function (reconfiguration) {
|
|
2117
|
-
class Configuration {
|
|
2118
|
-
static TYPE_QNAME = "0x1::reconfiguration::Configuration";
|
|
2119
|
-
epoch;
|
|
2120
|
-
last_reconfiguration_time;
|
|
2121
|
-
events;
|
|
2122
|
-
}
|
|
2123
|
-
reconfiguration.Configuration = Configuration;
|
|
2124
|
-
class DisableReconfiguration {
|
|
2125
|
-
static TYPE_QNAME = "0x1::reconfiguration::DisableReconfiguration";
|
|
2126
|
-
dummy_field;
|
|
2127
|
-
}
|
|
2128
|
-
reconfiguration.DisableReconfiguration = DisableReconfiguration;
|
|
2129
|
-
class NewEpochEvent {
|
|
2130
|
-
static TYPE_QNAME = "0x1::reconfiguration::NewEpochEvent";
|
|
2131
|
-
epoch;
|
|
2132
|
-
}
|
|
2133
|
-
reconfiguration.NewEpochEvent = NewEpochEvent;
|
|
2134
|
-
function loadTypes(_r) {
|
|
2135
|
-
loadAllTypes(_r);
|
|
2136
|
-
}
|
|
2137
|
-
reconfiguration.loadTypes = loadTypes;
|
|
2138
|
-
reconfiguration.ABI = JSON.parse('{"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"}]}]}');
|
|
2139
|
-
})(reconfiguration = exports.reconfiguration || (exports.reconfiguration = {}));
|
|
2140
|
-
var transaction_fee;
|
|
2141
|
-
(function (transaction_fee) {
|
|
2142
|
-
class AptosCoinCapabilities {
|
|
2143
|
-
static TYPE_QNAME = "0x1::transaction_fee::AptosCoinCapabilities";
|
|
2144
|
-
burn_cap;
|
|
2145
|
-
}
|
|
2146
|
-
transaction_fee.AptosCoinCapabilities = AptosCoinCapabilities;
|
|
2147
|
-
function loadTypes(_r) {
|
|
2148
|
-
loadAllTypes(_r);
|
|
2149
|
-
}
|
|
2150
|
-
transaction_fee.loadTypes = loadTypes;
|
|
2151
|
-
transaction_fee.ABI = JSON.parse('{"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>"}]}]}');
|
|
2152
|
-
})(transaction_fee = exports.transaction_fee || (exports.transaction_fee = {}));
|
|
2153
|
-
class aptos_governance extends sdk_1.aptos.AptosBaseProcessor {
|
|
2154
|
-
constructor(options) {
|
|
2155
|
-
super("aptos_governance", options);
|
|
2156
|
-
}
|
|
2157
|
-
static DEFAULT_OPTIONS = {
|
|
2158
|
-
address: "0x1",
|
|
2159
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
2160
|
-
};
|
|
2161
|
-
static bind(options = {}) {
|
|
2162
|
-
return new aptos_governance({
|
|
2163
|
-
...aptos_governance.DEFAULT_OPTIONS,
|
|
2164
|
-
...options,
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
onEntryAddApprovedScriptHashScript(func, filter) {
|
|
2168
|
-
this.onEntryFunctionCall(func, {
|
|
2169
|
-
...filter,
|
|
2170
|
-
function: "aptos_governance::add_approved_script_hash_script",
|
|
2171
|
-
});
|
|
2172
|
-
return this;
|
|
2173
|
-
}
|
|
2174
|
-
onEntryCreateProposal(func, filter) {
|
|
2175
|
-
this.onEntryFunctionCall(func, {
|
|
2176
|
-
...filter,
|
|
2177
|
-
function: "aptos_governance::create_proposal",
|
|
2178
|
-
});
|
|
2179
|
-
return this;
|
|
2180
|
-
}
|
|
2181
|
-
onEntryVote(func, filter) {
|
|
2182
|
-
this.onEntryFunctionCall(func, {
|
|
2183
|
-
...filter,
|
|
2184
|
-
function: "aptos_governance::vote",
|
|
2185
|
-
});
|
|
2186
|
-
return this;
|
|
2187
|
-
}
|
|
2188
|
-
onEventCreateProposalEvent(func) {
|
|
2189
|
-
this.onEvent(func, {
|
|
2190
|
-
type: "aptos_governance::CreateProposalEvent",
|
|
2191
|
-
});
|
|
2192
|
-
return this;
|
|
2193
|
-
}
|
|
2194
|
-
onEventUpdateConfigEvent(func) {
|
|
2195
|
-
this.onEvent(func, {
|
|
2196
|
-
type: "aptos_governance::UpdateConfigEvent",
|
|
2197
|
-
});
|
|
2198
|
-
return this;
|
|
2199
|
-
}
|
|
2200
|
-
onEventVoteEvent(func) {
|
|
2201
|
-
this.onEvent(func, {
|
|
2202
|
-
type: "aptos_governance::VoteEvent",
|
|
2203
|
-
});
|
|
2204
|
-
return this;
|
|
2205
|
-
}
|
|
2206
|
-
loadTypesInternal(registry) {
|
|
2207
|
-
loadAllTypes(registry);
|
|
2208
|
-
}
|
|
2209
|
-
}
|
|
2210
|
-
exports.aptos_governance = aptos_governance;
|
|
2211
|
-
(function (aptos_governance) {
|
|
2212
|
-
class ApprovedExecutionHashes {
|
|
2213
|
-
static TYPE_QNAME = "0x1::aptos_governance::ApprovedExecutionHashes";
|
|
2214
|
-
hashes;
|
|
2215
|
-
}
|
|
2216
|
-
aptos_governance.ApprovedExecutionHashes = ApprovedExecutionHashes;
|
|
2217
|
-
class CreateProposalEvent {
|
|
2218
|
-
static TYPE_QNAME = "0x1::aptos_governance::CreateProposalEvent";
|
|
2219
|
-
proposer;
|
|
2220
|
-
stake_pool;
|
|
2221
|
-
proposal_id;
|
|
2222
|
-
execution_hash;
|
|
2223
|
-
proposal_metadata;
|
|
2224
|
-
}
|
|
2225
|
-
aptos_governance.CreateProposalEvent = CreateProposalEvent;
|
|
2226
|
-
class GovernanceConfig {
|
|
2227
|
-
static TYPE_QNAME = "0x1::aptos_governance::GovernanceConfig";
|
|
2228
|
-
min_voting_threshold;
|
|
2229
|
-
required_proposer_stake;
|
|
2230
|
-
voting_duration_secs;
|
|
2231
|
-
}
|
|
2232
|
-
aptos_governance.GovernanceConfig = GovernanceConfig;
|
|
2233
|
-
class GovernanceEvents {
|
|
2234
|
-
static TYPE_QNAME = "0x1::aptos_governance::GovernanceEvents";
|
|
2235
|
-
create_proposal_events;
|
|
2236
|
-
update_config_events;
|
|
2237
|
-
vote_events;
|
|
2238
|
-
}
|
|
2239
|
-
aptos_governance.GovernanceEvents = GovernanceEvents;
|
|
2240
|
-
class GovernanceResponsbility {
|
|
2241
|
-
static TYPE_QNAME = "0x1::aptos_governance::GovernanceResponsbility";
|
|
2242
|
-
signer_caps;
|
|
2243
|
-
}
|
|
2244
|
-
aptos_governance.GovernanceResponsbility = GovernanceResponsbility;
|
|
2245
|
-
class RecordKey {
|
|
2246
|
-
static TYPE_QNAME = "0x1::aptos_governance::RecordKey";
|
|
2247
|
-
stake_pool;
|
|
2248
|
-
proposal_id;
|
|
2249
|
-
}
|
|
2250
|
-
aptos_governance.RecordKey = RecordKey;
|
|
2251
|
-
class UpdateConfigEvent {
|
|
2252
|
-
static TYPE_QNAME = "0x1::aptos_governance::UpdateConfigEvent";
|
|
2253
|
-
min_voting_threshold;
|
|
2254
|
-
required_proposer_stake;
|
|
2255
|
-
voting_duration_secs;
|
|
2256
|
-
}
|
|
2257
|
-
aptos_governance.UpdateConfigEvent = UpdateConfigEvent;
|
|
2258
|
-
class VoteEvent {
|
|
2259
|
-
static TYPE_QNAME = "0x1::aptos_governance::VoteEvent";
|
|
2260
|
-
proposal_id;
|
|
2261
|
-
voter;
|
|
2262
|
-
stake_pool;
|
|
2263
|
-
num_votes;
|
|
2264
|
-
should_pass;
|
|
2265
|
-
}
|
|
2266
|
-
aptos_governance.VoteEvent = VoteEvent;
|
|
2267
|
-
class VotingRecords {
|
|
2268
|
-
static TYPE_QNAME = "0x1::aptos_governance::VotingRecords";
|
|
2269
|
-
votes;
|
|
2270
|
-
}
|
|
2271
|
-
aptos_governance.VotingRecords = VotingRecords;
|
|
2272
|
-
function loadTypes(_r) {
|
|
2273
|
-
loadAllTypes(_r);
|
|
2274
|
-
}
|
|
2275
|
-
aptos_governance.loadTypes = loadTypes;
|
|
2276
|
-
aptos_governance.ABI = JSON.parse('{"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>"}]}]}');
|
|
2277
|
-
})(aptos_governance = exports.aptos_governance || (exports.aptos_governance = {}));
|
|
2278
|
-
var consensus_config;
|
|
2279
|
-
(function (consensus_config) {
|
|
2280
|
-
class ConsensusConfig {
|
|
2281
|
-
static TYPE_QNAME = "0x1::consensus_config::ConsensusConfig";
|
|
2282
|
-
config;
|
|
2283
|
-
}
|
|
2284
|
-
consensus_config.ConsensusConfig = ConsensusConfig;
|
|
2285
|
-
function loadTypes(_r) {
|
|
2286
|
-
loadAllTypes(_r);
|
|
2287
|
-
}
|
|
2288
|
-
consensus_config.loadTypes = loadTypes;
|
|
2289
|
-
consensus_config.ABI = JSON.parse('{"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>"}]}]}');
|
|
2290
|
-
})(consensus_config = exports.consensus_config || (exports.consensus_config = {}));
|
|
2291
|
-
class resource_account extends sdk_1.aptos.AptosBaseProcessor {
|
|
2292
|
-
constructor(options) {
|
|
2293
|
-
super("resource_account", options);
|
|
2294
|
-
}
|
|
2295
|
-
static DEFAULT_OPTIONS = {
|
|
2296
|
-
address: "0x1",
|
|
2297
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
2298
|
-
};
|
|
2299
|
-
static bind(options = {}) {
|
|
2300
|
-
return new resource_account({
|
|
2301
|
-
...resource_account.DEFAULT_OPTIONS,
|
|
2302
|
-
...options,
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
onEntryCreateResourceAccount(func, filter) {
|
|
2306
|
-
this.onEntryFunctionCall(func, {
|
|
2307
|
-
...filter,
|
|
2308
|
-
function: "resource_account::create_resource_account",
|
|
2309
|
-
});
|
|
2310
|
-
return this;
|
|
2311
|
-
}
|
|
2312
|
-
onEntryCreateResourceAccountAndFund(func, filter) {
|
|
2313
|
-
this.onEntryFunctionCall(func, {
|
|
2314
|
-
...filter,
|
|
2315
|
-
function: "resource_account::create_resource_account_and_fund",
|
|
2316
|
-
});
|
|
2317
|
-
return this;
|
|
2318
|
-
}
|
|
2319
|
-
onEntryCreateResourceAccountAndPublishPackage(func, filter) {
|
|
2320
|
-
this.onEntryFunctionCall(func, {
|
|
2321
|
-
...filter,
|
|
2322
|
-
function: "resource_account::create_resource_account_and_publish_package",
|
|
2323
|
-
});
|
|
2324
|
-
return this;
|
|
2325
|
-
}
|
|
2326
|
-
loadTypesInternal(registry) {
|
|
2327
|
-
loadAllTypes(registry);
|
|
2328
|
-
}
|
|
2329
|
-
}
|
|
2330
|
-
exports.resource_account = resource_account;
|
|
2331
|
-
(function (resource_account) {
|
|
2332
|
-
class Container {
|
|
2333
|
-
static TYPE_QNAME = "0x1::resource_account::Container";
|
|
2334
|
-
store;
|
|
2335
|
-
}
|
|
2336
|
-
resource_account.Container = Container;
|
|
2337
|
-
function loadTypes(_r) {
|
|
2338
|
-
loadAllTypes(_r);
|
|
2339
|
-
}
|
|
2340
|
-
resource_account.loadTypes = loadTypes;
|
|
2341
|
-
resource_account.ABI = JSON.parse('{"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>"}]}]}');
|
|
2342
|
-
})(resource_account = exports.resource_account || (exports.resource_account = {}));
|
|
2343
|
-
class staking_contract extends sdk_1.aptos.AptosBaseProcessor {
|
|
2344
|
-
constructor(options) {
|
|
2345
|
-
super("staking_contract", options);
|
|
2346
|
-
}
|
|
2347
|
-
static DEFAULT_OPTIONS = {
|
|
2348
|
-
address: "0x1",
|
|
2349
|
-
network: sdk_1.aptos.AptosNetwork.MAIN_NET,
|
|
2350
|
-
};
|
|
2351
|
-
static bind(options = {}) {
|
|
2352
|
-
return new staking_contract({
|
|
2353
|
-
...staking_contract.DEFAULT_OPTIONS,
|
|
2354
|
-
...options,
|
|
2355
|
-
});
|
|
2356
|
-
}
|
|
2357
|
-
onEntryAddStake(func, filter) {
|
|
2358
|
-
this.onEntryFunctionCall(func, {
|
|
2359
|
-
...filter,
|
|
2360
|
-
function: "staking_contract::add_stake",
|
|
2361
|
-
});
|
|
2362
|
-
return this;
|
|
2363
|
-
}
|
|
2364
|
-
onEntryCreateStakingContract(func, filter) {
|
|
2365
|
-
this.onEntryFunctionCall(func, {
|
|
2366
|
-
...filter,
|
|
2367
|
-
function: "staking_contract::create_staking_contract",
|
|
2368
|
-
});
|
|
2369
|
-
return this;
|
|
2370
|
-
}
|
|
2371
|
-
onEntryDistribute(func, filter) {
|
|
2372
|
-
this.onEntryFunctionCall(func, {
|
|
2373
|
-
...filter,
|
|
2374
|
-
function: "staking_contract::distribute",
|
|
2375
|
-
});
|
|
2376
|
-
return this;
|
|
2377
|
-
}
|
|
2378
|
-
onEntryRequestCommission(func, filter) {
|
|
2379
|
-
this.onEntryFunctionCall(func, {
|
|
2380
|
-
...filter,
|
|
2381
|
-
function: "staking_contract::request_commission",
|
|
2382
|
-
});
|
|
2383
|
-
return this;
|
|
2384
|
-
}
|
|
2385
|
-
onEntryResetLockup(func, filter) {
|
|
2386
|
-
this.onEntryFunctionCall(func, {
|
|
2387
|
-
...filter,
|
|
2388
|
-
function: "staking_contract::reset_lockup",
|
|
2389
|
-
});
|
|
2390
|
-
return this;
|
|
2391
|
-
}
|
|
2392
|
-
onEntrySwitchOperator(func, filter) {
|
|
2393
|
-
this.onEntryFunctionCall(func, {
|
|
2394
|
-
...filter,
|
|
2395
|
-
function: "staking_contract::switch_operator",
|
|
2396
|
-
});
|
|
2397
|
-
return this;
|
|
2398
|
-
}
|
|
2399
|
-
onEntrySwitchOperatorWithSameCommission(func, filter) {
|
|
2400
|
-
this.onEntryFunctionCall(func, {
|
|
2401
|
-
...filter,
|
|
2402
|
-
function: "staking_contract::switch_operator_with_same_commission",
|
|
2403
|
-
});
|
|
2404
|
-
return this;
|
|
2405
|
-
}
|
|
2406
|
-
onEntryUnlockRewards(func, filter) {
|
|
2407
|
-
this.onEntryFunctionCall(func, {
|
|
2408
|
-
...filter,
|
|
2409
|
-
function: "staking_contract::unlock_rewards",
|
|
2410
|
-
});
|
|
2411
|
-
return this;
|
|
2412
|
-
}
|
|
2413
|
-
onEntryUnlockStake(func, filter) {
|
|
2414
|
-
this.onEntryFunctionCall(func, {
|
|
2415
|
-
...filter,
|
|
2416
|
-
function: "staking_contract::unlock_stake",
|
|
2417
|
-
});
|
|
2418
|
-
return this;
|
|
2419
|
-
}
|
|
2420
|
-
onEntryUpdateVoter(func, filter) {
|
|
2421
|
-
this.onEntryFunctionCall(func, {
|
|
2422
|
-
...filter,
|
|
2423
|
-
function: "staking_contract::update_voter",
|
|
2424
|
-
});
|
|
2425
|
-
return this;
|
|
2426
|
-
}
|
|
2427
|
-
onEventCreateStakingContractEvent(func) {
|
|
2428
|
-
this.onEvent(func, {
|
|
2429
|
-
type: "staking_contract::CreateStakingContractEvent",
|
|
2430
|
-
});
|
|
2431
|
-
return this;
|
|
2432
|
-
}
|
|
2433
|
-
onEventUpdateVoterEvent(func) {
|
|
2434
|
-
this.onEvent(func, {
|
|
2435
|
-
type: "staking_contract::UpdateVoterEvent",
|
|
2436
|
-
});
|
|
2437
|
-
return this;
|
|
2438
|
-
}
|
|
2439
|
-
onEventResetLockupEvent(func) {
|
|
2440
|
-
this.onEvent(func, {
|
|
2441
|
-
type: "staking_contract::ResetLockupEvent",
|
|
2442
|
-
});
|
|
2443
|
-
return this;
|
|
2444
|
-
}
|
|
2445
|
-
onEventAddStakeEvent(func) {
|
|
2446
|
-
this.onEvent(func, {
|
|
2447
|
-
type: "staking_contract::AddStakeEvent",
|
|
2448
|
-
});
|
|
2449
|
-
return this;
|
|
2450
|
-
}
|
|
2451
|
-
onEventRequestCommissionEvent(func) {
|
|
2452
|
-
this.onEvent(func, {
|
|
2453
|
-
type: "staking_contract::RequestCommissionEvent",
|
|
2454
|
-
});
|
|
2455
|
-
return this;
|
|
2456
|
-
}
|
|
2457
|
-
onEventUnlockStakeEvent(func) {
|
|
2458
|
-
this.onEvent(func, {
|
|
2459
|
-
type: "staking_contract::UnlockStakeEvent",
|
|
2460
|
-
});
|
|
2461
|
-
return this;
|
|
2462
|
-
}
|
|
2463
|
-
onEventSwitchOperatorEvent(func) {
|
|
2464
|
-
this.onEvent(func, {
|
|
2465
|
-
type: "staking_contract::SwitchOperatorEvent",
|
|
2466
|
-
});
|
|
2467
|
-
return this;
|
|
2468
|
-
}
|
|
2469
|
-
onEventAddDistributionEvent(func) {
|
|
2470
|
-
this.onEvent(func, {
|
|
2471
|
-
type: "staking_contract::AddDistributionEvent",
|
|
2472
|
-
});
|
|
2473
|
-
return this;
|
|
2474
|
-
}
|
|
2475
|
-
onEventDistributeEvent(func) {
|
|
2476
|
-
this.onEvent(func, {
|
|
2477
|
-
type: "staking_contract::DistributeEvent",
|
|
2478
|
-
});
|
|
2479
|
-
return this;
|
|
2480
|
-
}
|
|
2481
|
-
loadTypesInternal(registry) {
|
|
2482
|
-
loadAllTypes(registry);
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
exports.staking_contract = staking_contract;
|
|
2486
|
-
(function (staking_contract) {
|
|
2487
|
-
class AddDistributionEvent {
|
|
2488
|
-
static TYPE_QNAME = "0x1::staking_contract::AddDistributionEvent";
|
|
2489
|
-
operator;
|
|
2490
|
-
pool_address;
|
|
2491
|
-
amount;
|
|
2492
|
-
}
|
|
2493
|
-
staking_contract.AddDistributionEvent = AddDistributionEvent;
|
|
2494
|
-
class AddStakeEvent {
|
|
2495
|
-
static TYPE_QNAME = "0x1::staking_contract::AddStakeEvent";
|
|
2496
|
-
operator;
|
|
2497
|
-
pool_address;
|
|
2498
|
-
amount;
|
|
2499
|
-
}
|
|
2500
|
-
staking_contract.AddStakeEvent = AddStakeEvent;
|
|
2501
|
-
class CreateStakingContractEvent {
|
|
2502
|
-
static TYPE_QNAME = "0x1::staking_contract::CreateStakingContractEvent";
|
|
2503
|
-
operator;
|
|
2504
|
-
voter;
|
|
2505
|
-
pool_address;
|
|
2506
|
-
principal;
|
|
2507
|
-
commission_percentage;
|
|
2508
|
-
}
|
|
2509
|
-
staking_contract.CreateStakingContractEvent = CreateStakingContractEvent;
|
|
2510
|
-
class DistributeEvent {
|
|
2511
|
-
static TYPE_QNAME = "0x1::staking_contract::DistributeEvent";
|
|
2512
|
-
operator;
|
|
2513
|
-
pool_address;
|
|
2514
|
-
recipient;
|
|
2515
|
-
amount;
|
|
2516
|
-
}
|
|
2517
|
-
staking_contract.DistributeEvent = DistributeEvent;
|
|
2518
|
-
class RequestCommissionEvent {
|
|
2519
|
-
static TYPE_QNAME = "0x1::staking_contract::RequestCommissionEvent";
|
|
2520
|
-
operator;
|
|
2521
|
-
pool_address;
|
|
2522
|
-
accumulated_rewards;
|
|
2523
|
-
commission_amount;
|
|
2524
|
-
}
|
|
2525
|
-
staking_contract.RequestCommissionEvent = RequestCommissionEvent;
|
|
2526
|
-
class ResetLockupEvent {
|
|
2527
|
-
static TYPE_QNAME = "0x1::staking_contract::ResetLockupEvent";
|
|
2528
|
-
operator;
|
|
2529
|
-
pool_address;
|
|
2530
|
-
}
|
|
2531
|
-
staking_contract.ResetLockupEvent = ResetLockupEvent;
|
|
2532
|
-
class StakingContract {
|
|
2533
|
-
static TYPE_QNAME = "0x1::staking_contract::StakingContract";
|
|
2534
|
-
principal;
|
|
2535
|
-
pool_address;
|
|
2536
|
-
owner_cap;
|
|
2537
|
-
commission_percentage;
|
|
2538
|
-
distribution_pool;
|
|
2539
|
-
signer_cap;
|
|
2540
|
-
}
|
|
2541
|
-
staking_contract.StakingContract = StakingContract;
|
|
2542
|
-
class Store {
|
|
2543
|
-
static TYPE_QNAME = "0x1::staking_contract::Store";
|
|
2544
|
-
staking_contracts;
|
|
2545
|
-
create_staking_contract_events;
|
|
2546
|
-
update_voter_events;
|
|
2547
|
-
reset_lockup_events;
|
|
2548
|
-
add_stake_events;
|
|
2549
|
-
request_commission_events;
|
|
2550
|
-
unlock_stake_events;
|
|
2551
|
-
switch_operator_events;
|
|
2552
|
-
add_distribution_events;
|
|
2553
|
-
distribute_events;
|
|
2554
|
-
}
|
|
2555
|
-
staking_contract.Store = Store;
|
|
2556
|
-
class SwitchOperatorEvent {
|
|
2557
|
-
static TYPE_QNAME = "0x1::staking_contract::SwitchOperatorEvent";
|
|
2558
|
-
old_operator;
|
|
2559
|
-
new_operator;
|
|
2560
|
-
pool_address;
|
|
2561
|
-
}
|
|
2562
|
-
staking_contract.SwitchOperatorEvent = SwitchOperatorEvent;
|
|
2563
|
-
class UnlockStakeEvent {
|
|
2564
|
-
static TYPE_QNAME = "0x1::staking_contract::UnlockStakeEvent";
|
|
2565
|
-
operator;
|
|
2566
|
-
pool_address;
|
|
2567
|
-
amount;
|
|
2568
|
-
commission_paid;
|
|
2569
|
-
}
|
|
2570
|
-
staking_contract.UnlockStakeEvent = UnlockStakeEvent;
|
|
2571
|
-
class UpdateVoterEvent {
|
|
2572
|
-
static TYPE_QNAME = "0x1::staking_contract::UpdateVoterEvent";
|
|
2573
|
-
operator;
|
|
2574
|
-
pool_address;
|
|
2575
|
-
old_voter;
|
|
2576
|
-
new_voter;
|
|
2577
|
-
}
|
|
2578
|
-
staking_contract.UpdateVoterEvent = UpdateVoterEvent;
|
|
2579
|
-
function loadTypes(_r) {
|
|
2580
|
-
loadAllTypes(_r);
|
|
2581
|
-
}
|
|
2582
|
-
staking_contract.loadTypes = loadTypes;
|
|
2583
|
-
staking_contract.ABI = JSON.parse('{"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"}]}]}');
|
|
2584
|
-
})(staking_contract = exports.staking_contract || (exports.staking_contract = {}));
|
|
2585
|
-
var system_addresses;
|
|
2586
|
-
(function (system_addresses) {
|
|
2587
|
-
function loadTypes(_r) {
|
|
2588
|
-
loadAllTypes(_r);
|
|
2589
|
-
}
|
|
2590
|
-
system_addresses.loadTypes = loadTypes;
|
|
2591
|
-
system_addresses.ABI = JSON.parse('{"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":[]}');
|
|
2592
|
-
})(system_addresses = exports.system_addresses || (exports.system_addresses = {}));
|
|
2593
|
-
var table_with_length;
|
|
2594
|
-
(function (table_with_length) {
|
|
2595
|
-
class TableWithLength {
|
|
2596
|
-
static TYPE_QNAME = "0x1::table_with_length::TableWithLength";
|
|
2597
|
-
inner;
|
|
2598
|
-
length;
|
|
2599
|
-
}
|
|
2600
|
-
table_with_length.TableWithLength = TableWithLength;
|
|
2601
|
-
function loadTypes(_r) {
|
|
2602
|
-
loadAllTypes(_r);
|
|
2603
|
-
}
|
|
2604
|
-
table_with_length.loadTypes = loadTypes;
|
|
2605
|
-
table_with_length.ABI = JSON.parse('{"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"}]}]}');
|
|
2606
|
-
})(table_with_length = exports.table_with_length || (exports.table_with_length = {}));
|
|
2607
|
-
var aggregator_factory;
|
|
2608
|
-
(function (aggregator_factory) {
|
|
2609
|
-
class AggregatorFactory {
|
|
2610
|
-
static TYPE_QNAME = "0x1::aggregator_factory::AggregatorFactory";
|
|
2611
|
-
phantom_table;
|
|
2612
|
-
}
|
|
2613
|
-
aggregator_factory.AggregatorFactory = AggregatorFactory;
|
|
2614
|
-
function loadTypes(_r) {
|
|
2615
|
-
loadAllTypes(_r);
|
|
2616
|
-
}
|
|
2617
|
-
aggregator_factory.loadTypes = loadTypes;
|
|
2618
|
-
aggregator_factory.ABI = JSON.parse('{"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>"}]}]}');
|
|
2619
|
-
})(aggregator_factory = exports.aggregator_factory || (exports.aggregator_factory = {}));
|
|
2620
|
-
var governance_proposal;
|
|
2621
|
-
(function (governance_proposal) {
|
|
2622
|
-
class GovernanceProposal {
|
|
2623
|
-
static TYPE_QNAME = "0x1::governance_proposal::GovernanceProposal";
|
|
2624
|
-
dummy_field;
|
|
2625
|
-
}
|
|
2626
|
-
governance_proposal.GovernanceProposal = GovernanceProposal;
|
|
2627
|
-
function loadTypes(_r) {
|
|
2628
|
-
loadAllTypes(_r);
|
|
2629
|
-
}
|
|
2630
|
-
governance_proposal.loadTypes = loadTypes;
|
|
2631
|
-
governance_proposal.ABI = JSON.parse('{"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"}]}]}');
|
|
2632
|
-
})(governance_proposal = exports.governance_proposal || (exports.governance_proposal = {}));
|
|
2633
|
-
var optional_aggregator;
|
|
2634
|
-
(function (optional_aggregator) {
|
|
2635
|
-
class Integer {
|
|
2636
|
-
static TYPE_QNAME = "0x1::optional_aggregator::Integer";
|
|
2637
|
-
value;
|
|
2638
|
-
limit;
|
|
2639
|
-
}
|
|
2640
|
-
optional_aggregator.Integer = Integer;
|
|
2641
|
-
class OptionalAggregator {
|
|
2642
|
-
static TYPE_QNAME = "0x1::optional_aggregator::OptionalAggregator";
|
|
2643
|
-
aggregator;
|
|
2644
|
-
integer;
|
|
2645
|
-
}
|
|
2646
|
-
optional_aggregator.OptionalAggregator = OptionalAggregator;
|
|
2647
|
-
function loadTypes(_r) {
|
|
2648
|
-
loadAllTypes(_r);
|
|
2649
|
-
}
|
|
2650
|
-
optional_aggregator.loadTypes = loadTypes;
|
|
2651
|
-
optional_aggregator.ABI = JSON.parse('{"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>"}]}]}');
|
|
2652
|
-
})(optional_aggregator = exports.optional_aggregator || (exports.optional_aggregator = {}));
|
|
2653
|
-
var transaction_context;
|
|
2654
|
-
(function (transaction_context) {
|
|
2655
|
-
function loadTypes(_r) {
|
|
2656
|
-
loadAllTypes(_r);
|
|
2657
|
-
}
|
|
2658
|
-
transaction_context.loadTypes = loadTypes;
|
|
2659
|
-
transaction_context.ABI = JSON.parse('{"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":[]}');
|
|
2660
|
-
})(transaction_context = exports.transaction_context || (exports.transaction_context = {}));
|
|
2661
|
-
var transaction_validation;
|
|
2662
|
-
(function (transaction_validation) {
|
|
2663
|
-
class TransactionValidation {
|
|
2664
|
-
static TYPE_QNAME = "0x1::transaction_validation::TransactionValidation";
|
|
2665
|
-
module_addr;
|
|
2666
|
-
module_name;
|
|
2667
|
-
script_prologue_name;
|
|
2668
|
-
module_prologue_name;
|
|
2669
|
-
multi_agent_prologue_name;
|
|
2670
|
-
user_epilogue_name;
|
|
2671
|
-
}
|
|
2672
|
-
transaction_validation.TransactionValidation = TransactionValidation;
|
|
2673
|
-
function loadTypes(_r) {
|
|
2674
|
-
loadAllTypes(_r);
|
|
2675
|
-
}
|
|
2676
|
-
transaction_validation.loadTypes = loadTypes;
|
|
2677
|
-
transaction_validation.ABI = JSON.parse('{"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>"}]}]}');
|
|
2678
|
-
})(transaction_validation = exports.transaction_validation || (exports.transaction_validation = {}));
|
|
2679
|
-
function loadAllTypes(_r) {
|
|
2680
|
-
_r.load(acl.ABI);
|
|
2681
|
-
_r.load(any.ABI);
|
|
2682
|
-
_r.load(bcs.ABI);
|
|
2683
|
-
_r.load(code.ABI);
|
|
2684
|
-
_r.load(coin.ABI);
|
|
2685
|
-
_r.load(guid.ABI);
|
|
2686
|
-
_r.load(hash.ABI);
|
|
2687
|
-
_r.load(util.ABI);
|
|
2688
|
-
_r.load(block.ABI);
|
|
2689
|
-
_r.load(debug.ABI);
|
|
2690
|
-
_r.load(error.ABI);
|
|
2691
|
-
_r.load(event.ABI);
|
|
2692
|
-
_r.load(stake.ABI);
|
|
2693
|
-
_r.load(table.ABI);
|
|
2694
|
-
_r.load(math64.ABI);
|
|
2695
|
-
_r.load(option.ABI);
|
|
2696
|
-
_r.load(signer.ABI);
|
|
2697
|
-
_r.load(string.ABI);
|
|
2698
|
-
_r.load(vector.ABI);
|
|
2699
|
-
_r.load(voting.ABI);
|
|
2700
|
-
_r.load(account.ABI);
|
|
2701
|
-
_r.load(ed25519.ABI);
|
|
2702
|
-
_r.load(genesis.ABI);
|
|
2703
|
-
_r.load(math128.ABI);
|
|
2704
|
-
_r.load(version.ABI);
|
|
2705
|
-
_r.load(vesting.ABI);
|
|
2706
|
-
_r.load(bls12381.ABI);
|
|
2707
|
-
_r.load(chain_id.ABI);
|
|
2708
|
-
_r.load(features.ABI);
|
|
2709
|
-
_r.load(from_bcs.ABI);
|
|
2710
|
-
_r.load(pool_u64.ABI);
|
|
2711
|
-
_r.load(secp256k1.ABI);
|
|
2712
|
-
_r.load(timestamp.ABI);
|
|
2713
|
-
_r.load(type_info.ABI);
|
|
2714
|
-
_r.load(aggregator.ABI);
|
|
2715
|
-
_r.load(aptos_coin.ABI);
|
|
2716
|
-
_r.load(aptos_hash.ABI);
|
|
2717
|
-
_r.load(bit_vector.ABI);
|
|
2718
|
-
_r.load(capability.ABI);
|
|
2719
|
-
_r.load(comparator.ABI);
|
|
2720
|
-
_r.load(simple_map.ABI);
|
|
2721
|
-
_r.load(storage_gas.ABI);
|
|
2722
|
-
_r.load(chain_status.ABI);
|
|
2723
|
-
_r.load(copyable_any.ABI);
|
|
2724
|
-
_r.load(gas_schedule.ABI);
|
|
2725
|
-
_r.load(managed_coin.ABI);
|
|
2726
|
-
_r.load(ristretto255.ABI);
|
|
2727
|
-
_r.load(aptos_account.ABI);
|
|
2728
|
-
_r.load(fixed_point32.ABI);
|
|
2729
|
-
_r.load(multi_ed25519.ABI);
|
|
2730
|
-
_r.load(staking_proxy.ABI);
|
|
2731
|
-
_r.load(state_storage.ABI);
|
|
2732
|
-
_r.load(staking_config.ABI);
|
|
2733
|
-
_r.load(reconfiguration.ABI);
|
|
2734
|
-
_r.load(transaction_fee.ABI);
|
|
2735
|
-
_r.load(aptos_governance.ABI);
|
|
2736
|
-
_r.load(consensus_config.ABI);
|
|
2737
|
-
_r.load(resource_account.ABI);
|
|
2738
|
-
_r.load(staking_contract.ABI);
|
|
2739
|
-
_r.load(system_addresses.ABI);
|
|
2740
|
-
_r.load(table_with_length.ABI);
|
|
2741
|
-
_r.load(aggregator_factory.ABI);
|
|
2742
|
-
_r.load(governance_proposal.ABI);
|
|
2743
|
-
_r.load(optional_aggregator.ABI);
|
|
2744
|
-
_r.load(transaction_context.ABI);
|
|
2745
|
-
_r.load(transaction_validation.ABI);
|
|
2746
|
-
}
|
|
2747
|
-
exports.loadAllTypes = loadAllTypes;
|
|
2748
|
-
//# sourceMappingURL=0x1.js.map
|