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