@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,1624 @@
|
|
1
|
+
import { aptos } from "@sentio/sdk";
|
2
|
+
import { Address, MoveModule } from "aptos/src/generated";
|
3
|
+
export declare namespace acl {
|
4
|
+
class ACL {
|
5
|
+
list: Address[];
|
6
|
+
}
|
7
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
8
|
+
const ABI: MoveModule;
|
9
|
+
}
|
10
|
+
export declare namespace any {
|
11
|
+
class Any {
|
12
|
+
type_name: string;
|
13
|
+
data: string;
|
14
|
+
}
|
15
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
16
|
+
const ABI: MoveModule;
|
17
|
+
}
|
18
|
+
export declare namespace bcs {
|
19
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
20
|
+
const ABI: MoveModule;
|
21
|
+
}
|
22
|
+
export declare class code extends aptos.AptosBaseProcessor {
|
23
|
+
constructor(options: aptos.AptosBindOptions);
|
24
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
25
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): code;
|
26
|
+
onEntryPublishPackageTxn(func: (call: code.PublishPackageTxnPayload, ctx: aptos.AptosContext) => void): code;
|
27
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
28
|
+
}
|
29
|
+
export declare namespace code {
|
30
|
+
class AllowedDep {
|
31
|
+
account: Address;
|
32
|
+
module_name: string;
|
33
|
+
}
|
34
|
+
class ModuleMetadata {
|
35
|
+
name: string;
|
36
|
+
source: string;
|
37
|
+
source_map: string;
|
38
|
+
extension: option.Option<copyable_any.Any>;
|
39
|
+
}
|
40
|
+
class PackageDep {
|
41
|
+
account: Address;
|
42
|
+
package_name: string;
|
43
|
+
}
|
44
|
+
class PackageMetadata {
|
45
|
+
name: string;
|
46
|
+
upgrade_policy: code.UpgradePolicy;
|
47
|
+
upgrade_number: bigint;
|
48
|
+
source_digest: string;
|
49
|
+
manifest: string;
|
50
|
+
modules: code.ModuleMetadata[];
|
51
|
+
deps: code.PackageDep[];
|
52
|
+
extension: option.Option<copyable_any.Any>;
|
53
|
+
}
|
54
|
+
class PackageRegistry {
|
55
|
+
packages: code.PackageMetadata[];
|
56
|
+
}
|
57
|
+
class UpgradePolicy {
|
58
|
+
policy: number;
|
59
|
+
}
|
60
|
+
interface PublishPackageTxnPayload extends aptos.TypedEntryFunctionPayload<[string, string[]]> {
|
61
|
+
arguments_typed: [string, string[]];
|
62
|
+
}
|
63
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
64
|
+
const ABI: MoveModule;
|
65
|
+
}
|
66
|
+
export declare class coin extends aptos.AptosBaseProcessor {
|
67
|
+
constructor(options: aptos.AptosBindOptions);
|
68
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
69
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): coin;
|
70
|
+
onEntryFreezeCoinStore<T0>(func: (call: coin.FreezeCoinStorePayload<T0>, ctx: aptos.AptosContext) => void): coin;
|
71
|
+
onEntryTransfer<T0>(func: (call: coin.TransferPayload<T0>, ctx: aptos.AptosContext) => void): coin;
|
72
|
+
onEntryUnfreezeCoinStore<T0>(func: (call: coin.UnfreezeCoinStorePayload<T0>, ctx: aptos.AptosContext) => void): coin;
|
73
|
+
onEntryUpgradeSupply<T0>(func: (call: coin.UpgradeSupplyPayload<T0>, ctx: aptos.AptosContext) => void): coin;
|
74
|
+
onEventDepositEvent(func: (event: coin.DepositEventInstance, ctx: aptos.AptosContext) => void): coin;
|
75
|
+
onEventWithdrawEvent(func: (event: coin.WithdrawEventInstance, ctx: aptos.AptosContext) => void): coin;
|
76
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
77
|
+
}
|
78
|
+
export declare namespace coin {
|
79
|
+
class BurnCapability<T0> {
|
80
|
+
dummy_field: Boolean;
|
81
|
+
}
|
82
|
+
class Coin<T0> {
|
83
|
+
value: bigint;
|
84
|
+
}
|
85
|
+
class CoinInfo<T0> {
|
86
|
+
name: string;
|
87
|
+
symbol: string;
|
88
|
+
decimals: number;
|
89
|
+
supply: option.Option<optional_aggregator.OptionalAggregator>;
|
90
|
+
}
|
91
|
+
class CoinStore<T0> {
|
92
|
+
coin: coin.Coin<T0>;
|
93
|
+
frozen: Boolean;
|
94
|
+
deposit_events: event.EventHandle<coin.DepositEvent>;
|
95
|
+
withdraw_events: event.EventHandle<coin.WithdrawEvent>;
|
96
|
+
}
|
97
|
+
class DepositEvent {
|
98
|
+
amount: bigint;
|
99
|
+
}
|
100
|
+
interface DepositEventInstance extends aptos.TypedEventInstance<DepositEvent> {
|
101
|
+
data_typed: DepositEvent;
|
102
|
+
}
|
103
|
+
class FreezeCapability<T0> {
|
104
|
+
dummy_field: Boolean;
|
105
|
+
}
|
106
|
+
class MintCapability<T0> {
|
107
|
+
dummy_field: Boolean;
|
108
|
+
}
|
109
|
+
class SupplyConfig {
|
110
|
+
allow_upgrades: Boolean;
|
111
|
+
}
|
112
|
+
class WithdrawEvent {
|
113
|
+
amount: bigint;
|
114
|
+
}
|
115
|
+
interface WithdrawEventInstance extends aptos.TypedEventInstance<WithdrawEvent> {
|
116
|
+
data_typed: WithdrawEvent;
|
117
|
+
}
|
118
|
+
interface FreezeCoinStorePayload<T0> extends aptos.TypedEntryFunctionPayload<[Address]> {
|
119
|
+
arguments_typed: [Address];
|
120
|
+
}
|
121
|
+
interface TransferPayload<T0> extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
|
122
|
+
arguments_typed: [Address, bigint];
|
123
|
+
}
|
124
|
+
interface UnfreezeCoinStorePayload<T0> extends aptos.TypedEntryFunctionPayload<[Address]> {
|
125
|
+
arguments_typed: [Address];
|
126
|
+
}
|
127
|
+
interface UpgradeSupplyPayload<T0> extends aptos.TypedEntryFunctionPayload<[]> {
|
128
|
+
arguments_typed: [];
|
129
|
+
}
|
130
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
131
|
+
const ABI: MoveModule;
|
132
|
+
}
|
133
|
+
export declare namespace guid {
|
134
|
+
class GUID {
|
135
|
+
id: guid.ID;
|
136
|
+
}
|
137
|
+
class ID {
|
138
|
+
creation_num: bigint;
|
139
|
+
addr: Address;
|
140
|
+
}
|
141
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
142
|
+
const ABI: MoveModule;
|
143
|
+
}
|
144
|
+
export declare namespace hash {
|
145
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
146
|
+
const ABI: MoveModule;
|
147
|
+
}
|
148
|
+
export declare namespace util {
|
149
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
150
|
+
const ABI: MoveModule;
|
151
|
+
}
|
152
|
+
export declare class block extends aptos.AptosBaseProcessor {
|
153
|
+
constructor(options: aptos.AptosBindOptions);
|
154
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
155
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): block;
|
156
|
+
onEventNewBlockEvent(func: (event: block.NewBlockEventInstance, ctx: aptos.AptosContext) => void): block;
|
157
|
+
onEventUpdateEpochIntervalEvent(func: (event: block.UpdateEpochIntervalEventInstance, ctx: aptos.AptosContext) => void): block;
|
158
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
159
|
+
}
|
160
|
+
export declare namespace block {
|
161
|
+
class BlockResource {
|
162
|
+
height: bigint;
|
163
|
+
epoch_interval: bigint;
|
164
|
+
new_block_events: event.EventHandle<block.NewBlockEvent>;
|
165
|
+
update_epoch_interval_events: event.EventHandle<block.UpdateEpochIntervalEvent>;
|
166
|
+
}
|
167
|
+
class NewBlockEvent {
|
168
|
+
hash: Address;
|
169
|
+
epoch: bigint;
|
170
|
+
round: bigint;
|
171
|
+
height: bigint;
|
172
|
+
previous_block_votes_bitvec: string;
|
173
|
+
proposer: Address;
|
174
|
+
failed_proposer_indices: bigint[];
|
175
|
+
time_microseconds: bigint;
|
176
|
+
}
|
177
|
+
interface NewBlockEventInstance extends aptos.TypedEventInstance<NewBlockEvent> {
|
178
|
+
data_typed: NewBlockEvent;
|
179
|
+
}
|
180
|
+
class UpdateEpochIntervalEvent {
|
181
|
+
old_epoch_interval: bigint;
|
182
|
+
new_epoch_interval: bigint;
|
183
|
+
}
|
184
|
+
interface UpdateEpochIntervalEventInstance extends aptos.TypedEventInstance<UpdateEpochIntervalEvent> {
|
185
|
+
data_typed: UpdateEpochIntervalEvent;
|
186
|
+
}
|
187
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
188
|
+
const ABI: MoveModule;
|
189
|
+
}
|
190
|
+
export declare namespace debug {
|
191
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
192
|
+
const ABI: MoveModule;
|
193
|
+
}
|
194
|
+
export declare namespace error {
|
195
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
196
|
+
const ABI: MoveModule;
|
197
|
+
}
|
198
|
+
export declare namespace event {
|
199
|
+
class EventHandle<T0> {
|
200
|
+
counter: bigint;
|
201
|
+
guid: guid.GUID;
|
202
|
+
}
|
203
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
204
|
+
const ABI: MoveModule;
|
205
|
+
}
|
206
|
+
export declare class stake extends aptos.AptosBaseProcessor {
|
207
|
+
constructor(options: aptos.AptosBindOptions);
|
208
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
209
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): stake;
|
210
|
+
onEntryAddStake(func: (call: stake.AddStakePayload, ctx: aptos.AptosContext) => void): stake;
|
211
|
+
onEntryIncreaseLockup(func: (call: stake.IncreaseLockupPayload, ctx: aptos.AptosContext) => void): stake;
|
212
|
+
onEntryInitializeStakeOwner(func: (call: stake.InitializeStakeOwnerPayload, ctx: aptos.AptosContext) => void): stake;
|
213
|
+
onEntryInitializeValidator(func: (call: stake.InitializeValidatorPayload, ctx: aptos.AptosContext) => void): stake;
|
214
|
+
onEntryJoinValidatorSet(func: (call: stake.JoinValidatorSetPayload, ctx: aptos.AptosContext) => void): stake;
|
215
|
+
onEntryLeaveValidatorSet(func: (call: stake.LeaveValidatorSetPayload, ctx: aptos.AptosContext) => void): stake;
|
216
|
+
onEntryReactivateStake(func: (call: stake.ReactivateStakePayload, ctx: aptos.AptosContext) => void): stake;
|
217
|
+
onEntryRotateConsensusKey(func: (call: stake.RotateConsensusKeyPayload, ctx: aptos.AptosContext) => void): stake;
|
218
|
+
onEntrySetDelegatedVoter(func: (call: stake.SetDelegatedVoterPayload, ctx: aptos.AptosContext) => void): stake;
|
219
|
+
onEntrySetOperator(func: (call: stake.SetOperatorPayload, ctx: aptos.AptosContext) => void): stake;
|
220
|
+
onEntryUnlock(func: (call: stake.UnlockPayload, ctx: aptos.AptosContext) => void): stake;
|
221
|
+
onEntryUpdateNetworkAndFullnodeAddresses(func: (call: stake.UpdateNetworkAndFullnodeAddressesPayload, ctx: aptos.AptosContext) => void): stake;
|
222
|
+
onEntryWithdraw(func: (call: stake.WithdrawPayload, ctx: aptos.AptosContext) => void): stake;
|
223
|
+
onEventAddStakeEvent(func: (event: stake.AddStakeEventInstance, ctx: aptos.AptosContext) => void): stake;
|
224
|
+
onEventDistributeRewardsEvent(func: (event: stake.DistributeRewardsEventInstance, ctx: aptos.AptosContext) => void): stake;
|
225
|
+
onEventIncreaseLockupEvent(func: (event: stake.IncreaseLockupEventInstance, ctx: aptos.AptosContext) => void): stake;
|
226
|
+
onEventJoinValidatorSetEvent(func: (event: stake.JoinValidatorSetEventInstance, ctx: aptos.AptosContext) => void): stake;
|
227
|
+
onEventLeaveValidatorSetEvent(func: (event: stake.LeaveValidatorSetEventInstance, ctx: aptos.AptosContext) => void): stake;
|
228
|
+
onEventReactivateStakeEvent(func: (event: stake.ReactivateStakeEventInstance, ctx: aptos.AptosContext) => void): stake;
|
229
|
+
onEventRegisterValidatorCandidateEvent(func: (event: stake.RegisterValidatorCandidateEventInstance, ctx: aptos.AptosContext) => void): stake;
|
230
|
+
onEventRotateConsensusKeyEvent(func: (event: stake.RotateConsensusKeyEventInstance, ctx: aptos.AptosContext) => void): stake;
|
231
|
+
onEventSetOperatorEvent(func: (event: stake.SetOperatorEventInstance, ctx: aptos.AptosContext) => void): stake;
|
232
|
+
onEventUnlockStakeEvent(func: (event: stake.UnlockStakeEventInstance, ctx: aptos.AptosContext) => void): stake;
|
233
|
+
onEventUpdateNetworkAndFullnodeAddressesEvent(func: (event: stake.UpdateNetworkAndFullnodeAddressesEventInstance, ctx: aptos.AptosContext) => void): stake;
|
234
|
+
onEventWithdrawStakeEvent(func: (event: stake.WithdrawStakeEventInstance, ctx: aptos.AptosContext) => void): stake;
|
235
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
236
|
+
}
|
237
|
+
export declare namespace stake {
|
238
|
+
class AddStakeEvent {
|
239
|
+
pool_address: Address;
|
240
|
+
amount_added: bigint;
|
241
|
+
}
|
242
|
+
interface AddStakeEventInstance extends aptos.TypedEventInstance<AddStakeEvent> {
|
243
|
+
data_typed: AddStakeEvent;
|
244
|
+
}
|
245
|
+
class AllowedValidators {
|
246
|
+
accounts: Address[];
|
247
|
+
}
|
248
|
+
class AptosCoinCapabilities {
|
249
|
+
mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
|
250
|
+
}
|
251
|
+
class DistributeRewardsEvent {
|
252
|
+
pool_address: Address;
|
253
|
+
rewards_amount: bigint;
|
254
|
+
}
|
255
|
+
interface DistributeRewardsEventInstance extends aptos.TypedEventInstance<DistributeRewardsEvent> {
|
256
|
+
data_typed: DistributeRewardsEvent;
|
257
|
+
}
|
258
|
+
class IncreaseLockupEvent {
|
259
|
+
pool_address: Address;
|
260
|
+
old_locked_until_secs: bigint;
|
261
|
+
new_locked_until_secs: bigint;
|
262
|
+
}
|
263
|
+
interface IncreaseLockupEventInstance extends aptos.TypedEventInstance<IncreaseLockupEvent> {
|
264
|
+
data_typed: IncreaseLockupEvent;
|
265
|
+
}
|
266
|
+
class IndividualValidatorPerformance {
|
267
|
+
successful_proposals: bigint;
|
268
|
+
failed_proposals: bigint;
|
269
|
+
}
|
270
|
+
class JoinValidatorSetEvent {
|
271
|
+
pool_address: Address;
|
272
|
+
}
|
273
|
+
interface JoinValidatorSetEventInstance extends aptos.TypedEventInstance<JoinValidatorSetEvent> {
|
274
|
+
data_typed: JoinValidatorSetEvent;
|
275
|
+
}
|
276
|
+
class LeaveValidatorSetEvent {
|
277
|
+
pool_address: Address;
|
278
|
+
}
|
279
|
+
interface LeaveValidatorSetEventInstance extends aptos.TypedEventInstance<LeaveValidatorSetEvent> {
|
280
|
+
data_typed: LeaveValidatorSetEvent;
|
281
|
+
}
|
282
|
+
class OwnerCapability {
|
283
|
+
pool_address: Address;
|
284
|
+
}
|
285
|
+
class ReactivateStakeEvent {
|
286
|
+
pool_address: Address;
|
287
|
+
amount: bigint;
|
288
|
+
}
|
289
|
+
interface ReactivateStakeEventInstance extends aptos.TypedEventInstance<ReactivateStakeEvent> {
|
290
|
+
data_typed: ReactivateStakeEvent;
|
291
|
+
}
|
292
|
+
class RegisterValidatorCandidateEvent {
|
293
|
+
pool_address: Address;
|
294
|
+
}
|
295
|
+
interface RegisterValidatorCandidateEventInstance extends aptos.TypedEventInstance<RegisterValidatorCandidateEvent> {
|
296
|
+
data_typed: RegisterValidatorCandidateEvent;
|
297
|
+
}
|
298
|
+
class RotateConsensusKeyEvent {
|
299
|
+
pool_address: Address;
|
300
|
+
old_consensus_pubkey: string;
|
301
|
+
new_consensus_pubkey: string;
|
302
|
+
}
|
303
|
+
interface RotateConsensusKeyEventInstance extends aptos.TypedEventInstance<RotateConsensusKeyEvent> {
|
304
|
+
data_typed: RotateConsensusKeyEvent;
|
305
|
+
}
|
306
|
+
class SetOperatorEvent {
|
307
|
+
pool_address: Address;
|
308
|
+
old_operator: Address;
|
309
|
+
new_operator: Address;
|
310
|
+
}
|
311
|
+
interface SetOperatorEventInstance extends aptos.TypedEventInstance<SetOperatorEvent> {
|
312
|
+
data_typed: SetOperatorEvent;
|
313
|
+
}
|
314
|
+
class StakePool {
|
315
|
+
active: coin.Coin<aptos_coin.AptosCoin>;
|
316
|
+
inactive: coin.Coin<aptos_coin.AptosCoin>;
|
317
|
+
pending_active: coin.Coin<aptos_coin.AptosCoin>;
|
318
|
+
pending_inactive: coin.Coin<aptos_coin.AptosCoin>;
|
319
|
+
locked_until_secs: bigint;
|
320
|
+
operator_address: Address;
|
321
|
+
delegated_voter: Address;
|
322
|
+
initialize_validator_events: event.EventHandle<stake.RegisterValidatorCandidateEvent>;
|
323
|
+
set_operator_events: event.EventHandle<stake.SetOperatorEvent>;
|
324
|
+
add_stake_events: event.EventHandle<stake.AddStakeEvent>;
|
325
|
+
reactivate_stake_events: event.EventHandle<stake.ReactivateStakeEvent>;
|
326
|
+
rotate_consensus_key_events: event.EventHandle<stake.RotateConsensusKeyEvent>;
|
327
|
+
update_network_and_fullnode_addresses_events: event.EventHandle<stake.UpdateNetworkAndFullnodeAddressesEvent>;
|
328
|
+
increase_lockup_events: event.EventHandle<stake.IncreaseLockupEvent>;
|
329
|
+
join_validator_set_events: event.EventHandle<stake.JoinValidatorSetEvent>;
|
330
|
+
distribute_rewards_events: event.EventHandle<stake.DistributeRewardsEvent>;
|
331
|
+
unlock_stake_events: event.EventHandle<stake.UnlockStakeEvent>;
|
332
|
+
withdraw_stake_events: event.EventHandle<stake.WithdrawStakeEvent>;
|
333
|
+
leave_validator_set_events: event.EventHandle<stake.LeaveValidatorSetEvent>;
|
334
|
+
}
|
335
|
+
class UnlockStakeEvent {
|
336
|
+
pool_address: Address;
|
337
|
+
amount_unlocked: bigint;
|
338
|
+
}
|
339
|
+
interface UnlockStakeEventInstance extends aptos.TypedEventInstance<UnlockStakeEvent> {
|
340
|
+
data_typed: UnlockStakeEvent;
|
341
|
+
}
|
342
|
+
class UpdateNetworkAndFullnodeAddressesEvent {
|
343
|
+
pool_address: Address;
|
344
|
+
old_network_addresses: string;
|
345
|
+
new_network_addresses: string;
|
346
|
+
old_fullnode_addresses: string;
|
347
|
+
new_fullnode_addresses: string;
|
348
|
+
}
|
349
|
+
interface UpdateNetworkAndFullnodeAddressesEventInstance extends aptos.TypedEventInstance<UpdateNetworkAndFullnodeAddressesEvent> {
|
350
|
+
data_typed: UpdateNetworkAndFullnodeAddressesEvent;
|
351
|
+
}
|
352
|
+
class ValidatorConfig {
|
353
|
+
consensus_pubkey: string;
|
354
|
+
network_addresses: string;
|
355
|
+
fullnode_addresses: string;
|
356
|
+
validator_index: bigint;
|
357
|
+
}
|
358
|
+
class ValidatorInfo {
|
359
|
+
addr: Address;
|
360
|
+
voting_power: bigint;
|
361
|
+
config: stake.ValidatorConfig;
|
362
|
+
}
|
363
|
+
class ValidatorPerformance {
|
364
|
+
validators: stake.IndividualValidatorPerformance[];
|
365
|
+
}
|
366
|
+
class ValidatorSet {
|
367
|
+
consensus_scheme: number;
|
368
|
+
active_validators: stake.ValidatorInfo[];
|
369
|
+
pending_inactive: stake.ValidatorInfo[];
|
370
|
+
pending_active: stake.ValidatorInfo[];
|
371
|
+
total_voting_power: bigint;
|
372
|
+
total_joining_power: bigint;
|
373
|
+
}
|
374
|
+
class WithdrawStakeEvent {
|
375
|
+
pool_address: Address;
|
376
|
+
amount_withdrawn: bigint;
|
377
|
+
}
|
378
|
+
interface WithdrawStakeEventInstance extends aptos.TypedEventInstance<WithdrawStakeEvent> {
|
379
|
+
data_typed: WithdrawStakeEvent;
|
380
|
+
}
|
381
|
+
interface AddStakePayload extends aptos.TypedEntryFunctionPayload<[bigint]> {
|
382
|
+
arguments_typed: [bigint];
|
383
|
+
}
|
384
|
+
interface IncreaseLockupPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
385
|
+
arguments_typed: [];
|
386
|
+
}
|
387
|
+
interface InitializeStakeOwnerPayload extends aptos.TypedEntryFunctionPayload<[bigint, Address, Address]> {
|
388
|
+
arguments_typed: [bigint, Address, Address];
|
389
|
+
}
|
390
|
+
interface InitializeValidatorPayload extends aptos.TypedEntryFunctionPayload<[string, string, string, string]> {
|
391
|
+
arguments_typed: [string, string, string, string];
|
392
|
+
}
|
393
|
+
interface JoinValidatorSetPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
394
|
+
arguments_typed: [Address];
|
395
|
+
}
|
396
|
+
interface LeaveValidatorSetPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
397
|
+
arguments_typed: [Address];
|
398
|
+
}
|
399
|
+
interface ReactivateStakePayload extends aptos.TypedEntryFunctionPayload<[bigint]> {
|
400
|
+
arguments_typed: [bigint];
|
401
|
+
}
|
402
|
+
interface RotateConsensusKeyPayload extends aptos.TypedEntryFunctionPayload<[Address, string, string]> {
|
403
|
+
arguments_typed: [Address, string, string];
|
404
|
+
}
|
405
|
+
interface SetDelegatedVoterPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
406
|
+
arguments_typed: [Address];
|
407
|
+
}
|
408
|
+
interface SetOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
409
|
+
arguments_typed: [Address];
|
410
|
+
}
|
411
|
+
interface UnlockPayload extends aptos.TypedEntryFunctionPayload<[bigint]> {
|
412
|
+
arguments_typed: [bigint];
|
413
|
+
}
|
414
|
+
interface UpdateNetworkAndFullnodeAddressesPayload extends aptos.TypedEntryFunctionPayload<[Address, string, string]> {
|
415
|
+
arguments_typed: [Address, string, string];
|
416
|
+
}
|
417
|
+
interface WithdrawPayload extends aptos.TypedEntryFunctionPayload<[bigint]> {
|
418
|
+
arguments_typed: [bigint];
|
419
|
+
}
|
420
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
421
|
+
const ABI: MoveModule;
|
422
|
+
}
|
423
|
+
export declare namespace table {
|
424
|
+
class Box<T0> {
|
425
|
+
val: T0;
|
426
|
+
}
|
427
|
+
class Table<T0, T1> {
|
428
|
+
handle: Address;
|
429
|
+
}
|
430
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
431
|
+
const ABI: MoveModule;
|
432
|
+
}
|
433
|
+
export declare namespace math64 {
|
434
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
435
|
+
const ABI: MoveModule;
|
436
|
+
}
|
437
|
+
export declare namespace option {
|
438
|
+
class Option<T0> {
|
439
|
+
vec: T0[] | string;
|
440
|
+
}
|
441
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
442
|
+
const ABI: MoveModule;
|
443
|
+
}
|
444
|
+
export declare namespace signer {
|
445
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
446
|
+
const ABI: MoveModule;
|
447
|
+
}
|
448
|
+
export declare namespace string {
|
449
|
+
class String {
|
450
|
+
bytes: string;
|
451
|
+
}
|
452
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
453
|
+
const ABI: MoveModule;
|
454
|
+
}
|
455
|
+
export declare namespace vector {
|
456
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
457
|
+
const ABI: MoveModule;
|
458
|
+
}
|
459
|
+
export declare class voting extends aptos.AptosBaseProcessor {
|
460
|
+
constructor(options: aptos.AptosBindOptions);
|
461
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
462
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): voting;
|
463
|
+
onEventCreateProposalEvent(func: (event: voting.CreateProposalEventInstance, ctx: aptos.AptosContext) => void): voting;
|
464
|
+
onEventRegisterForumEvent(func: (event: voting.RegisterForumEventInstance, ctx: aptos.AptosContext) => void): voting;
|
465
|
+
onEventVoteEvent(func: (event: voting.VoteEventInstance, ctx: aptos.AptosContext) => void): voting;
|
466
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
467
|
+
}
|
468
|
+
export declare namespace voting {
|
469
|
+
class CreateProposalEvent {
|
470
|
+
proposal_id: bigint;
|
471
|
+
early_resolution_vote_threshold: option.Option<bigint>;
|
472
|
+
execution_hash: string;
|
473
|
+
expiration_secs: bigint;
|
474
|
+
metadata: simple_map.SimpleMap<string, string>;
|
475
|
+
min_vote_threshold: bigint;
|
476
|
+
}
|
477
|
+
interface CreateProposalEventInstance extends aptos.TypedEventInstance<CreateProposalEvent> {
|
478
|
+
data_typed: CreateProposalEvent;
|
479
|
+
}
|
480
|
+
class Proposal<T0> {
|
481
|
+
proposer: Address;
|
482
|
+
execution_content: option.Option<T0>;
|
483
|
+
metadata: simple_map.SimpleMap<string, string>;
|
484
|
+
creation_time_secs: bigint;
|
485
|
+
execution_hash: string;
|
486
|
+
min_vote_threshold: bigint;
|
487
|
+
expiration_secs: bigint;
|
488
|
+
early_resolution_vote_threshold: option.Option<bigint>;
|
489
|
+
yes_votes: bigint;
|
490
|
+
no_votes: bigint;
|
491
|
+
is_resolved: Boolean;
|
492
|
+
resolution_time_secs: bigint;
|
493
|
+
}
|
494
|
+
class RegisterForumEvent {
|
495
|
+
hosting_account: Address;
|
496
|
+
proposal_type_info: type_info.TypeInfo;
|
497
|
+
}
|
498
|
+
interface RegisterForumEventInstance extends aptos.TypedEventInstance<RegisterForumEvent> {
|
499
|
+
data_typed: RegisterForumEvent;
|
500
|
+
}
|
501
|
+
class ResolveProposal {
|
502
|
+
proposal_id: bigint;
|
503
|
+
yes_votes: bigint;
|
504
|
+
no_votes: bigint;
|
505
|
+
resolved_early: Boolean;
|
506
|
+
}
|
507
|
+
class VoteEvent {
|
508
|
+
proposal_id: bigint;
|
509
|
+
num_votes: bigint;
|
510
|
+
}
|
511
|
+
interface VoteEventInstance extends aptos.TypedEventInstance<VoteEvent> {
|
512
|
+
data_typed: VoteEvent;
|
513
|
+
}
|
514
|
+
class VotingEvents {
|
515
|
+
create_proposal_events: event.EventHandle<voting.CreateProposalEvent>;
|
516
|
+
register_forum_events: event.EventHandle<voting.RegisterForumEvent>;
|
517
|
+
resolve_proposal_events: event.EventHandle<voting.ResolveProposal>;
|
518
|
+
vote_events: event.EventHandle<voting.VoteEvent>;
|
519
|
+
}
|
520
|
+
class VotingForum<T0> {
|
521
|
+
proposals: table.Table<bigint, voting.Proposal<T0>>;
|
522
|
+
events: voting.VotingEvents;
|
523
|
+
next_proposal_id: bigint;
|
524
|
+
}
|
525
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
526
|
+
const ABI: MoveModule;
|
527
|
+
}
|
528
|
+
export declare class account extends aptos.AptosBaseProcessor {
|
529
|
+
constructor(options: aptos.AptosBindOptions);
|
530
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
531
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): account;
|
532
|
+
onEntryOfferSignerCapability(func: (call: account.OfferSignerCapabilityPayload, ctx: aptos.AptosContext) => void): account;
|
533
|
+
onEntryRevokeSignerCapability(func: (call: account.RevokeSignerCapabilityPayload, ctx: aptos.AptosContext) => void): account;
|
534
|
+
onEntryRotateAuthenticationKey(func: (call: account.RotateAuthenticationKeyPayload, ctx: aptos.AptosContext) => void): account;
|
535
|
+
onEventCoinRegisterEvent(func: (event: account.CoinRegisterEventInstance, ctx: aptos.AptosContext) => void): account;
|
536
|
+
onEventKeyRotationEvent(func: (event: account.KeyRotationEventInstance, ctx: aptos.AptosContext) => void): account;
|
537
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
538
|
+
}
|
539
|
+
export declare namespace account {
|
540
|
+
class Account {
|
541
|
+
authentication_key: string;
|
542
|
+
sequence_number: bigint;
|
543
|
+
guid_creation_num: bigint;
|
544
|
+
coin_register_events: event.EventHandle<account.CoinRegisterEvent>;
|
545
|
+
key_rotation_events: event.EventHandle<account.KeyRotationEvent>;
|
546
|
+
rotation_capability_offer: account.CapabilityOffer<account.RotationCapability>;
|
547
|
+
signer_capability_offer: account.CapabilityOffer<account.SignerCapability>;
|
548
|
+
}
|
549
|
+
class CapabilityOffer<T0> {
|
550
|
+
for: option.Option<Address>;
|
551
|
+
}
|
552
|
+
class CoinRegisterEvent {
|
553
|
+
type_info: type_info.TypeInfo;
|
554
|
+
}
|
555
|
+
interface CoinRegisterEventInstance extends aptos.TypedEventInstance<CoinRegisterEvent> {
|
556
|
+
data_typed: CoinRegisterEvent;
|
557
|
+
}
|
558
|
+
class KeyRotationEvent {
|
559
|
+
old_authentication_key: string;
|
560
|
+
new_authentication_key: string;
|
561
|
+
}
|
562
|
+
interface KeyRotationEventInstance extends aptos.TypedEventInstance<KeyRotationEvent> {
|
563
|
+
data_typed: KeyRotationEvent;
|
564
|
+
}
|
565
|
+
class OriginatingAddress {
|
566
|
+
address_map: table.Table<Address, Address>;
|
567
|
+
}
|
568
|
+
class RotationCapability {
|
569
|
+
account: Address;
|
570
|
+
}
|
571
|
+
class RotationCapabilityOfferProofChallenge {
|
572
|
+
sequence_number: bigint;
|
573
|
+
recipient_address: Address;
|
574
|
+
}
|
575
|
+
class RotationProofChallenge {
|
576
|
+
sequence_number: bigint;
|
577
|
+
originator: Address;
|
578
|
+
current_auth_key: Address;
|
579
|
+
new_public_key: string;
|
580
|
+
}
|
581
|
+
class SignerCapability {
|
582
|
+
account: Address;
|
583
|
+
}
|
584
|
+
class SignerCapabilityOfferProofChallenge {
|
585
|
+
sequence_number: bigint;
|
586
|
+
recipient_address: Address;
|
587
|
+
}
|
588
|
+
class SignerCapabilityOfferProofChallengeV2 {
|
589
|
+
sequence_number: bigint;
|
590
|
+
source_address: Address;
|
591
|
+
recipient_address: Address;
|
592
|
+
}
|
593
|
+
interface OfferSignerCapabilityPayload extends aptos.TypedEntryFunctionPayload<[string, number, string, Address]> {
|
594
|
+
arguments_typed: [string, number, string, Address];
|
595
|
+
}
|
596
|
+
interface RevokeSignerCapabilityPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
597
|
+
arguments_typed: [Address];
|
598
|
+
}
|
599
|
+
interface RotateAuthenticationKeyPayload extends aptos.TypedEntryFunctionPayload<[
|
600
|
+
number,
|
601
|
+
string,
|
602
|
+
number,
|
603
|
+
string,
|
604
|
+
string,
|
605
|
+
string
|
606
|
+
]> {
|
607
|
+
arguments_typed: [number, string, number, string, string, string];
|
608
|
+
}
|
609
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
610
|
+
const ABI: MoveModule;
|
611
|
+
}
|
612
|
+
export declare namespace ed25519 {
|
613
|
+
class Signature {
|
614
|
+
bytes: string;
|
615
|
+
}
|
616
|
+
class SignedMessage<T0> {
|
617
|
+
type_info: type_info.TypeInfo;
|
618
|
+
inner: T0;
|
619
|
+
}
|
620
|
+
class UnvalidatedPublicKey {
|
621
|
+
bytes: string;
|
622
|
+
}
|
623
|
+
class ValidatedPublicKey {
|
624
|
+
bytes: string;
|
625
|
+
}
|
626
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
627
|
+
const ABI: MoveModule;
|
628
|
+
}
|
629
|
+
export declare namespace genesis {
|
630
|
+
class AccountMap {
|
631
|
+
account_address: Address;
|
632
|
+
balance: bigint;
|
633
|
+
}
|
634
|
+
class EmployeeAccountMap {
|
635
|
+
accounts: Address[];
|
636
|
+
validator: genesis.ValidatorConfigurationWithCommission;
|
637
|
+
vesting_schedule_numerator: bigint[];
|
638
|
+
vesting_schedule_denominator: bigint;
|
639
|
+
beneficiary_resetter: Address;
|
640
|
+
}
|
641
|
+
class ValidatorConfiguration {
|
642
|
+
owner_address: Address;
|
643
|
+
operator_address: Address;
|
644
|
+
voter_address: Address;
|
645
|
+
stake_amount: bigint;
|
646
|
+
consensus_pubkey: string;
|
647
|
+
proof_of_possession: string;
|
648
|
+
network_addresses: string;
|
649
|
+
full_node_network_addresses: string;
|
650
|
+
}
|
651
|
+
class ValidatorConfigurationWithCommission {
|
652
|
+
validator_config: genesis.ValidatorConfiguration;
|
653
|
+
commission_percentage: bigint;
|
654
|
+
join_during_genesis: Boolean;
|
655
|
+
}
|
656
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
657
|
+
const ABI: MoveModule;
|
658
|
+
}
|
659
|
+
export declare namespace math128 {
|
660
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
661
|
+
const ABI: MoveModule;
|
662
|
+
}
|
663
|
+
export declare class version extends aptos.AptosBaseProcessor {
|
664
|
+
constructor(options: aptos.AptosBindOptions);
|
665
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
666
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): version;
|
667
|
+
onEntrySetVersion(func: (call: version.SetVersionPayload, ctx: aptos.AptosContext) => void): version;
|
668
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
669
|
+
}
|
670
|
+
export declare namespace version {
|
671
|
+
class SetVersionCapability {
|
672
|
+
dummy_field: Boolean;
|
673
|
+
}
|
674
|
+
class Version {
|
675
|
+
major: bigint;
|
676
|
+
}
|
677
|
+
interface SetVersionPayload extends aptos.TypedEntryFunctionPayload<[bigint]> {
|
678
|
+
arguments_typed: [bigint];
|
679
|
+
}
|
680
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
681
|
+
const ABI: MoveModule;
|
682
|
+
}
|
683
|
+
export declare class vesting extends aptos.AptosBaseProcessor {
|
684
|
+
constructor(options: aptos.AptosBindOptions);
|
685
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
686
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): vesting;
|
687
|
+
onEntryAdminWithdraw(func: (call: vesting.AdminWithdrawPayload, ctx: aptos.AptosContext) => void): vesting;
|
688
|
+
onEntryDistribute(func: (call: vesting.DistributePayload, ctx: aptos.AptosContext) => void): vesting;
|
689
|
+
onEntryResetBeneficiary(func: (call: vesting.ResetBeneficiaryPayload, ctx: aptos.AptosContext) => void): vesting;
|
690
|
+
onEntryResetLockup(func: (call: vesting.ResetLockupPayload, ctx: aptos.AptosContext) => void): vesting;
|
691
|
+
onEntrySetBeneficiary(func: (call: vesting.SetBeneficiaryPayload, ctx: aptos.AptosContext) => void): vesting;
|
692
|
+
onEntrySetBeneficiaryResetter(func: (call: vesting.SetBeneficiaryResetterPayload, ctx: aptos.AptosContext) => void): vesting;
|
693
|
+
onEntrySetManagementRole(func: (call: vesting.SetManagementRolePayload, ctx: aptos.AptosContext) => void): vesting;
|
694
|
+
onEntryTerminateVestingContract(func: (call: vesting.TerminateVestingContractPayload, ctx: aptos.AptosContext) => void): vesting;
|
695
|
+
onEntryUnlockRewards(func: (call: vesting.UnlockRewardsPayload, ctx: aptos.AptosContext) => void): vesting;
|
696
|
+
onEntryUpdateOperator(func: (call: vesting.UpdateOperatorPayload, ctx: aptos.AptosContext) => void): vesting;
|
697
|
+
onEntryUpdateOperatorWithSameCommission(func: (call: vesting.UpdateOperatorWithSameCommissionPayload, ctx: aptos.AptosContext) => void): vesting;
|
698
|
+
onEntryUpdateVoter(func: (call: vesting.UpdateVoterPayload, ctx: aptos.AptosContext) => void): vesting;
|
699
|
+
onEntryVest(func: (call: vesting.VestPayload, ctx: aptos.AptosContext) => void): vesting;
|
700
|
+
onEventAdminWithdrawEvent(func: (event: vesting.AdminWithdrawEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
701
|
+
onEventCreateVestingContractEvent(func: (event: vesting.CreateVestingContractEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
702
|
+
onEventDistributeEvent(func: (event: vesting.DistributeEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
703
|
+
onEventResetLockupEvent(func: (event: vesting.ResetLockupEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
704
|
+
onEventSetBeneficiaryEvent(func: (event: vesting.SetBeneficiaryEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
705
|
+
onEventTerminateEvent(func: (event: vesting.TerminateEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
706
|
+
onEventUnlockRewardsEvent(func: (event: vesting.UnlockRewardsEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
707
|
+
onEventUpdateOperatorEvent(func: (event: vesting.UpdateOperatorEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
708
|
+
onEventUpdateVoterEvent(func: (event: vesting.UpdateVoterEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
709
|
+
onEventVestEvent(func: (event: vesting.VestEventInstance, ctx: aptos.AptosContext) => void): vesting;
|
710
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
711
|
+
}
|
712
|
+
export declare namespace vesting {
|
713
|
+
class AdminStore {
|
714
|
+
vesting_contracts: Address[];
|
715
|
+
nonce: bigint;
|
716
|
+
create_events: event.EventHandle<vesting.CreateVestingContractEvent>;
|
717
|
+
}
|
718
|
+
class AdminWithdrawEvent {
|
719
|
+
admin: Address;
|
720
|
+
vesting_contract_address: Address;
|
721
|
+
amount: bigint;
|
722
|
+
}
|
723
|
+
interface AdminWithdrawEventInstance extends aptos.TypedEventInstance<AdminWithdrawEvent> {
|
724
|
+
data_typed: AdminWithdrawEvent;
|
725
|
+
}
|
726
|
+
class CreateVestingContractEvent {
|
727
|
+
operator: Address;
|
728
|
+
voter: Address;
|
729
|
+
grant_amount: bigint;
|
730
|
+
withdrawal_address: Address;
|
731
|
+
vesting_contract_address: Address;
|
732
|
+
staking_pool_address: Address;
|
733
|
+
commission_percentage: bigint;
|
734
|
+
}
|
735
|
+
interface CreateVestingContractEventInstance extends aptos.TypedEventInstance<CreateVestingContractEvent> {
|
736
|
+
data_typed: CreateVestingContractEvent;
|
737
|
+
}
|
738
|
+
class DistributeEvent {
|
739
|
+
admin: Address;
|
740
|
+
vesting_contract_address: Address;
|
741
|
+
amount: bigint;
|
742
|
+
}
|
743
|
+
interface DistributeEventInstance extends aptos.TypedEventInstance<DistributeEvent> {
|
744
|
+
data_typed: DistributeEvent;
|
745
|
+
}
|
746
|
+
class ResetLockupEvent {
|
747
|
+
admin: Address;
|
748
|
+
vesting_contract_address: Address;
|
749
|
+
staking_pool_address: Address;
|
750
|
+
new_lockup_expiration_secs: bigint;
|
751
|
+
}
|
752
|
+
interface ResetLockupEventInstance extends aptos.TypedEventInstance<ResetLockupEvent> {
|
753
|
+
data_typed: ResetLockupEvent;
|
754
|
+
}
|
755
|
+
class SetBeneficiaryEvent {
|
756
|
+
admin: Address;
|
757
|
+
vesting_contract_address: Address;
|
758
|
+
shareholder: Address;
|
759
|
+
old_beneficiary: Address;
|
760
|
+
new_beneficiary: Address;
|
761
|
+
}
|
762
|
+
interface SetBeneficiaryEventInstance extends aptos.TypedEventInstance<SetBeneficiaryEvent> {
|
763
|
+
data_typed: SetBeneficiaryEvent;
|
764
|
+
}
|
765
|
+
class StakingInfo {
|
766
|
+
pool_address: Address;
|
767
|
+
operator: Address;
|
768
|
+
voter: Address;
|
769
|
+
commission_percentage: bigint;
|
770
|
+
}
|
771
|
+
class TerminateEvent {
|
772
|
+
admin: Address;
|
773
|
+
vesting_contract_address: Address;
|
774
|
+
}
|
775
|
+
interface TerminateEventInstance extends aptos.TypedEventInstance<TerminateEvent> {
|
776
|
+
data_typed: TerminateEvent;
|
777
|
+
}
|
778
|
+
class UnlockRewardsEvent {
|
779
|
+
admin: Address;
|
780
|
+
vesting_contract_address: Address;
|
781
|
+
staking_pool_address: Address;
|
782
|
+
amount: bigint;
|
783
|
+
}
|
784
|
+
interface UnlockRewardsEventInstance extends aptos.TypedEventInstance<UnlockRewardsEvent> {
|
785
|
+
data_typed: UnlockRewardsEvent;
|
786
|
+
}
|
787
|
+
class UpdateOperatorEvent {
|
788
|
+
admin: Address;
|
789
|
+
vesting_contract_address: Address;
|
790
|
+
staking_pool_address: Address;
|
791
|
+
old_operator: Address;
|
792
|
+
new_operator: Address;
|
793
|
+
commission_percentage: bigint;
|
794
|
+
}
|
795
|
+
interface UpdateOperatorEventInstance extends aptos.TypedEventInstance<UpdateOperatorEvent> {
|
796
|
+
data_typed: UpdateOperatorEvent;
|
797
|
+
}
|
798
|
+
class UpdateVoterEvent {
|
799
|
+
admin: Address;
|
800
|
+
vesting_contract_address: Address;
|
801
|
+
staking_pool_address: Address;
|
802
|
+
old_voter: Address;
|
803
|
+
new_voter: Address;
|
804
|
+
}
|
805
|
+
interface UpdateVoterEventInstance extends aptos.TypedEventInstance<UpdateVoterEvent> {
|
806
|
+
data_typed: UpdateVoterEvent;
|
807
|
+
}
|
808
|
+
class VestEvent {
|
809
|
+
admin: Address;
|
810
|
+
vesting_contract_address: Address;
|
811
|
+
staking_pool_address: Address;
|
812
|
+
period_vested: bigint;
|
813
|
+
amount: bigint;
|
814
|
+
}
|
815
|
+
interface VestEventInstance extends aptos.TypedEventInstance<VestEvent> {
|
816
|
+
data_typed: VestEvent;
|
817
|
+
}
|
818
|
+
class VestingAccountManagement {
|
819
|
+
roles: simple_map.SimpleMap<string, Address>;
|
820
|
+
}
|
821
|
+
class VestingContract {
|
822
|
+
state: bigint;
|
823
|
+
admin: Address;
|
824
|
+
grant_pool: pool_u64.Pool;
|
825
|
+
beneficiaries: simple_map.SimpleMap<Address, Address>;
|
826
|
+
vesting_schedule: vesting.VestingSchedule;
|
827
|
+
withdrawal_address: Address;
|
828
|
+
staking: vesting.StakingInfo;
|
829
|
+
remaining_grant: bigint;
|
830
|
+
signer_cap: account.SignerCapability;
|
831
|
+
update_operator_events: event.EventHandle<vesting.UpdateOperatorEvent>;
|
832
|
+
update_voter_events: event.EventHandle<vesting.UpdateVoterEvent>;
|
833
|
+
reset_lockup_events: event.EventHandle<vesting.ResetLockupEvent>;
|
834
|
+
set_beneficiary_events: event.EventHandle<vesting.SetBeneficiaryEvent>;
|
835
|
+
unlock_rewards_events: event.EventHandle<vesting.UnlockRewardsEvent>;
|
836
|
+
vest_events: event.EventHandle<vesting.VestEvent>;
|
837
|
+
distribute_events: event.EventHandle<vesting.DistributeEvent>;
|
838
|
+
terminate_events: event.EventHandle<vesting.TerminateEvent>;
|
839
|
+
admin_withdraw_events: event.EventHandle<vesting.AdminWithdrawEvent>;
|
840
|
+
}
|
841
|
+
class VestingSchedule {
|
842
|
+
schedule: fixed_point32.FixedPoint32[];
|
843
|
+
start_timestamp_secs: bigint;
|
844
|
+
period_duration: bigint;
|
845
|
+
last_vested_period: bigint;
|
846
|
+
}
|
847
|
+
interface AdminWithdrawPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
848
|
+
arguments_typed: [Address];
|
849
|
+
}
|
850
|
+
interface DistributePayload extends aptos.TypedEntryFunctionPayload<[]> {
|
851
|
+
arguments_typed: [];
|
852
|
+
}
|
853
|
+
interface ResetBeneficiaryPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
854
|
+
arguments_typed: [Address, Address];
|
855
|
+
}
|
856
|
+
interface ResetLockupPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
857
|
+
arguments_typed: [Address];
|
858
|
+
}
|
859
|
+
interface SetBeneficiaryPayload extends aptos.TypedEntryFunctionPayload<[Address, Address, Address]> {
|
860
|
+
arguments_typed: [Address, Address, Address];
|
861
|
+
}
|
862
|
+
interface SetBeneficiaryResetterPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
863
|
+
arguments_typed: [Address, Address];
|
864
|
+
}
|
865
|
+
interface SetManagementRolePayload extends aptos.TypedEntryFunctionPayload<[Address, string, Address]> {
|
866
|
+
arguments_typed: [Address, string, Address];
|
867
|
+
}
|
868
|
+
interface TerminateVestingContractPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
869
|
+
arguments_typed: [Address];
|
870
|
+
}
|
871
|
+
interface UnlockRewardsPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
872
|
+
arguments_typed: [];
|
873
|
+
}
|
874
|
+
interface UpdateOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address, Address, bigint]> {
|
875
|
+
arguments_typed: [Address, Address, bigint];
|
876
|
+
}
|
877
|
+
interface UpdateOperatorWithSameCommissionPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
878
|
+
arguments_typed: [Address, Address];
|
879
|
+
}
|
880
|
+
interface UpdateVoterPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
881
|
+
arguments_typed: [Address, Address];
|
882
|
+
}
|
883
|
+
interface VestPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
884
|
+
arguments_typed: [];
|
885
|
+
}
|
886
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
887
|
+
const ABI: MoveModule;
|
888
|
+
}
|
889
|
+
export declare namespace bls12381 {
|
890
|
+
class AggrOrMultiSignature {
|
891
|
+
bytes: string;
|
892
|
+
}
|
893
|
+
class AggrPublicKeysWithPoP {
|
894
|
+
bytes: string;
|
895
|
+
}
|
896
|
+
class ProofOfPossession {
|
897
|
+
bytes: string;
|
898
|
+
}
|
899
|
+
class PublicKey {
|
900
|
+
bytes: string;
|
901
|
+
}
|
902
|
+
class PublicKeyWithPoP {
|
903
|
+
bytes: string;
|
904
|
+
}
|
905
|
+
class Signature {
|
906
|
+
bytes: string;
|
907
|
+
}
|
908
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
909
|
+
const ABI: MoveModule;
|
910
|
+
}
|
911
|
+
export declare namespace chain_id {
|
912
|
+
class ChainId {
|
913
|
+
id: number;
|
914
|
+
}
|
915
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
916
|
+
const ABI: MoveModule;
|
917
|
+
}
|
918
|
+
export declare namespace features {
|
919
|
+
class Features {
|
920
|
+
features: string;
|
921
|
+
}
|
922
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
923
|
+
const ABI: MoveModule;
|
924
|
+
}
|
925
|
+
export declare namespace from_bcs {
|
926
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
927
|
+
const ABI: MoveModule;
|
928
|
+
}
|
929
|
+
export declare namespace pool_u64 {
|
930
|
+
class Pool {
|
931
|
+
shareholders_limit: bigint;
|
932
|
+
total_coins: bigint;
|
933
|
+
total_shares: bigint;
|
934
|
+
shares: simple_map.SimpleMap<Address, bigint>;
|
935
|
+
shareholders: Address[];
|
936
|
+
scaling_factor: bigint;
|
937
|
+
}
|
938
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
939
|
+
const ABI: MoveModule;
|
940
|
+
}
|
941
|
+
export declare namespace secp256k1 {
|
942
|
+
class ECDSARawPublicKey {
|
943
|
+
bytes: string;
|
944
|
+
}
|
945
|
+
class ECDSASignature {
|
946
|
+
bytes: string;
|
947
|
+
}
|
948
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
949
|
+
const ABI: MoveModule;
|
950
|
+
}
|
951
|
+
export declare namespace timestamp {
|
952
|
+
class CurrentTimeMicroseconds {
|
953
|
+
microseconds: bigint;
|
954
|
+
}
|
955
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
956
|
+
const ABI: MoveModule;
|
957
|
+
}
|
958
|
+
export declare namespace type_info {
|
959
|
+
class TypeInfo {
|
960
|
+
account_address: Address;
|
961
|
+
module_name: string;
|
962
|
+
struct_name: string;
|
963
|
+
}
|
964
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
965
|
+
const ABI: MoveModule;
|
966
|
+
}
|
967
|
+
export declare namespace aggregator {
|
968
|
+
class Aggregator {
|
969
|
+
handle: Address;
|
970
|
+
key: Address;
|
971
|
+
limit: bigint;
|
972
|
+
}
|
973
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
974
|
+
const ABI: MoveModule;
|
975
|
+
}
|
976
|
+
export declare class aptos_coin extends aptos.AptosBaseProcessor {
|
977
|
+
constructor(options: aptos.AptosBindOptions);
|
978
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
979
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): aptos_coin;
|
980
|
+
onEntryClaimMintCapability(func: (call: aptos_coin.ClaimMintCapabilityPayload, ctx: aptos.AptosContext) => void): aptos_coin;
|
981
|
+
onEntryDelegateMintCapability(func: (call: aptos_coin.DelegateMintCapabilityPayload, ctx: aptos.AptosContext) => void): aptos_coin;
|
982
|
+
onEntryMint(func: (call: aptos_coin.MintPayload, ctx: aptos.AptosContext) => void): aptos_coin;
|
983
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
984
|
+
}
|
985
|
+
export declare namespace aptos_coin {
|
986
|
+
class AptosCoin {
|
987
|
+
dummy_field: Boolean;
|
988
|
+
}
|
989
|
+
class DelegatedMintCapability {
|
990
|
+
to: Address;
|
991
|
+
}
|
992
|
+
class Delegations {
|
993
|
+
inner: aptos_coin.DelegatedMintCapability[];
|
994
|
+
}
|
995
|
+
class MintCapStore {
|
996
|
+
mint_cap: coin.MintCapability<aptos_coin.AptosCoin>;
|
997
|
+
}
|
998
|
+
interface ClaimMintCapabilityPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
999
|
+
arguments_typed: [];
|
1000
|
+
}
|
1001
|
+
interface DelegateMintCapabilityPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
1002
|
+
arguments_typed: [Address];
|
1003
|
+
}
|
1004
|
+
interface MintPayload extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
|
1005
|
+
arguments_typed: [Address, bigint];
|
1006
|
+
}
|
1007
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1008
|
+
const ABI: MoveModule;
|
1009
|
+
}
|
1010
|
+
export declare namespace aptos_hash {
|
1011
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1012
|
+
const ABI: MoveModule;
|
1013
|
+
}
|
1014
|
+
export declare namespace bit_vector {
|
1015
|
+
class BitVector {
|
1016
|
+
length: bigint;
|
1017
|
+
bit_field: Boolean[];
|
1018
|
+
}
|
1019
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1020
|
+
const ABI: MoveModule;
|
1021
|
+
}
|
1022
|
+
export declare namespace capability {
|
1023
|
+
class Cap<T0> {
|
1024
|
+
root: Address;
|
1025
|
+
}
|
1026
|
+
class CapDelegateState<T0> {
|
1027
|
+
root: Address;
|
1028
|
+
}
|
1029
|
+
class CapState<T0> {
|
1030
|
+
delegates: Address[];
|
1031
|
+
}
|
1032
|
+
class LinearCap<T0> {
|
1033
|
+
root: Address;
|
1034
|
+
}
|
1035
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1036
|
+
const ABI: MoveModule;
|
1037
|
+
}
|
1038
|
+
export declare namespace comparator {
|
1039
|
+
class Result {
|
1040
|
+
inner: number;
|
1041
|
+
}
|
1042
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1043
|
+
const ABI: MoveModule;
|
1044
|
+
}
|
1045
|
+
export declare namespace simple_map {
|
1046
|
+
class Element<T0, T1> {
|
1047
|
+
key: T0;
|
1048
|
+
value: T1;
|
1049
|
+
}
|
1050
|
+
class SimpleMap<T0, T1> {
|
1051
|
+
data: simple_map.Element<T0, T1>[];
|
1052
|
+
}
|
1053
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1054
|
+
const ABI: MoveModule;
|
1055
|
+
}
|
1056
|
+
export declare namespace storage_gas {
|
1057
|
+
class GasCurve {
|
1058
|
+
min_gas: bigint;
|
1059
|
+
max_gas: bigint;
|
1060
|
+
points: storage_gas.Point[];
|
1061
|
+
}
|
1062
|
+
class Point {
|
1063
|
+
x: bigint;
|
1064
|
+
y: bigint;
|
1065
|
+
}
|
1066
|
+
class StorageGas {
|
1067
|
+
per_item_read: bigint;
|
1068
|
+
per_item_create: bigint;
|
1069
|
+
per_item_write: bigint;
|
1070
|
+
per_byte_read: bigint;
|
1071
|
+
per_byte_create: bigint;
|
1072
|
+
per_byte_write: bigint;
|
1073
|
+
}
|
1074
|
+
class StorageGasConfig {
|
1075
|
+
item_config: storage_gas.UsageGasConfig;
|
1076
|
+
byte_config: storage_gas.UsageGasConfig;
|
1077
|
+
}
|
1078
|
+
class UsageGasConfig {
|
1079
|
+
target_usage: bigint;
|
1080
|
+
read_curve: storage_gas.GasCurve;
|
1081
|
+
create_curve: storage_gas.GasCurve;
|
1082
|
+
write_curve: storage_gas.GasCurve;
|
1083
|
+
}
|
1084
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1085
|
+
const ABI: MoveModule;
|
1086
|
+
}
|
1087
|
+
export declare namespace chain_status {
|
1088
|
+
class GenesisEndMarker {
|
1089
|
+
dummy_field: Boolean;
|
1090
|
+
}
|
1091
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1092
|
+
const ABI: MoveModule;
|
1093
|
+
}
|
1094
|
+
export declare namespace copyable_any {
|
1095
|
+
class Any {
|
1096
|
+
type_name: string;
|
1097
|
+
data: string;
|
1098
|
+
}
|
1099
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1100
|
+
const ABI: MoveModule;
|
1101
|
+
}
|
1102
|
+
export declare namespace gas_schedule {
|
1103
|
+
class GasEntry {
|
1104
|
+
key: string;
|
1105
|
+
val: bigint;
|
1106
|
+
}
|
1107
|
+
class GasSchedule {
|
1108
|
+
entries: gas_schedule.GasEntry[];
|
1109
|
+
}
|
1110
|
+
class GasScheduleV2 {
|
1111
|
+
feature_version: bigint;
|
1112
|
+
entries: gas_schedule.GasEntry[];
|
1113
|
+
}
|
1114
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1115
|
+
const ABI: MoveModule;
|
1116
|
+
}
|
1117
|
+
export declare class managed_coin extends aptos.AptosBaseProcessor {
|
1118
|
+
constructor(options: aptos.AptosBindOptions);
|
1119
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1120
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): managed_coin;
|
1121
|
+
onEntryBurn<T0>(func: (call: managed_coin.BurnPayload<T0>, ctx: aptos.AptosContext) => void): managed_coin;
|
1122
|
+
onEntryInitialize<T0>(func: (call: managed_coin.InitializePayload<T0>, ctx: aptos.AptosContext) => void): managed_coin;
|
1123
|
+
onEntryMint<T0>(func: (call: managed_coin.MintPayload<T0>, ctx: aptos.AptosContext) => void): managed_coin;
|
1124
|
+
onEntryRegister<T0>(func: (call: managed_coin.RegisterPayload<T0>, ctx: aptos.AptosContext) => void): managed_coin;
|
1125
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1126
|
+
}
|
1127
|
+
export declare namespace managed_coin {
|
1128
|
+
class Capabilities<T0> {
|
1129
|
+
burn_cap: coin.BurnCapability<T0>;
|
1130
|
+
freeze_cap: coin.FreezeCapability<T0>;
|
1131
|
+
mint_cap: coin.MintCapability<T0>;
|
1132
|
+
}
|
1133
|
+
interface BurnPayload<T0> extends aptos.TypedEntryFunctionPayload<[bigint]> {
|
1134
|
+
arguments_typed: [bigint];
|
1135
|
+
}
|
1136
|
+
interface InitializePayload<T0> extends aptos.TypedEntryFunctionPayload<[string, string, number, Boolean]> {
|
1137
|
+
arguments_typed: [string, string, number, Boolean];
|
1138
|
+
}
|
1139
|
+
interface MintPayload<T0> extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
|
1140
|
+
arguments_typed: [Address, bigint];
|
1141
|
+
}
|
1142
|
+
interface RegisterPayload<T0> extends aptos.TypedEntryFunctionPayload<[]> {
|
1143
|
+
arguments_typed: [];
|
1144
|
+
}
|
1145
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1146
|
+
const ABI: MoveModule;
|
1147
|
+
}
|
1148
|
+
export declare namespace ristretto255 {
|
1149
|
+
class CompressedRistretto {
|
1150
|
+
data: string;
|
1151
|
+
}
|
1152
|
+
class RistrettoPoint {
|
1153
|
+
handle: bigint;
|
1154
|
+
}
|
1155
|
+
class Scalar {
|
1156
|
+
data: string;
|
1157
|
+
}
|
1158
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1159
|
+
const ABI: MoveModule;
|
1160
|
+
}
|
1161
|
+
export declare class aptos_account extends aptos.AptosBaseProcessor {
|
1162
|
+
constructor(options: aptos.AptosBindOptions);
|
1163
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1164
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): aptos_account;
|
1165
|
+
onEntryCreateAccount(func: (call: aptos_account.CreateAccountPayload, ctx: aptos.AptosContext) => void): aptos_account;
|
1166
|
+
onEntryTransfer(func: (call: aptos_account.TransferPayload, ctx: aptos.AptosContext) => void): aptos_account;
|
1167
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1168
|
+
}
|
1169
|
+
export declare namespace aptos_account {
|
1170
|
+
interface CreateAccountPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
1171
|
+
arguments_typed: [];
|
1172
|
+
}
|
1173
|
+
interface TransferPayload extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
|
1174
|
+
arguments_typed: [Address, bigint];
|
1175
|
+
}
|
1176
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1177
|
+
const ABI: MoveModule;
|
1178
|
+
}
|
1179
|
+
export declare namespace fixed_point32 {
|
1180
|
+
class FixedPoint32 {
|
1181
|
+
value: bigint;
|
1182
|
+
}
|
1183
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1184
|
+
const ABI: MoveModule;
|
1185
|
+
}
|
1186
|
+
export declare namespace multi_ed25519 {
|
1187
|
+
class Signature {
|
1188
|
+
bytes: string;
|
1189
|
+
}
|
1190
|
+
class UnvalidatedPublicKey {
|
1191
|
+
bytes: string;
|
1192
|
+
}
|
1193
|
+
class ValidatedPublicKey {
|
1194
|
+
bytes: string;
|
1195
|
+
}
|
1196
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1197
|
+
const ABI: MoveModule;
|
1198
|
+
}
|
1199
|
+
export declare class staking_proxy extends aptos.AptosBaseProcessor {
|
1200
|
+
constructor(options: aptos.AptosBindOptions);
|
1201
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1202
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): staking_proxy;
|
1203
|
+
onEntrySetOperator(func: (call: staking_proxy.SetOperatorPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1204
|
+
onEntrySetStakePoolOperator(func: (call: staking_proxy.SetStakePoolOperatorPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1205
|
+
onEntrySetStakePoolVoter(func: (call: staking_proxy.SetStakePoolVoterPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1206
|
+
onEntrySetStakingContractOperator(func: (call: staking_proxy.SetStakingContractOperatorPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1207
|
+
onEntrySetStakingContractVoter(func: (call: staking_proxy.SetStakingContractVoterPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1208
|
+
onEntrySetVestingContractOperator(func: (call: staking_proxy.SetVestingContractOperatorPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1209
|
+
onEntrySetVestingContractVoter(func: (call: staking_proxy.SetVestingContractVoterPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1210
|
+
onEntrySetVoter(func: (call: staking_proxy.SetVoterPayload, ctx: aptos.AptosContext) => void): staking_proxy;
|
1211
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1212
|
+
}
|
1213
|
+
export declare namespace staking_proxy {
|
1214
|
+
interface SetOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1215
|
+
arguments_typed: [Address, Address];
|
1216
|
+
}
|
1217
|
+
interface SetStakePoolOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
1218
|
+
arguments_typed: [Address];
|
1219
|
+
}
|
1220
|
+
interface SetStakePoolVoterPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
1221
|
+
arguments_typed: [Address];
|
1222
|
+
}
|
1223
|
+
interface SetStakingContractOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1224
|
+
arguments_typed: [Address, Address];
|
1225
|
+
}
|
1226
|
+
interface SetStakingContractVoterPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1227
|
+
arguments_typed: [Address, Address];
|
1228
|
+
}
|
1229
|
+
interface SetVestingContractOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1230
|
+
arguments_typed: [Address, Address];
|
1231
|
+
}
|
1232
|
+
interface SetVestingContractVoterPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1233
|
+
arguments_typed: [Address, Address];
|
1234
|
+
}
|
1235
|
+
interface SetVoterPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1236
|
+
arguments_typed: [Address, Address];
|
1237
|
+
}
|
1238
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1239
|
+
const ABI: MoveModule;
|
1240
|
+
}
|
1241
|
+
export declare namespace state_storage {
|
1242
|
+
class GasParameter {
|
1243
|
+
usage: state_storage.Usage;
|
1244
|
+
}
|
1245
|
+
class StateStorageUsage {
|
1246
|
+
epoch: bigint;
|
1247
|
+
usage: state_storage.Usage;
|
1248
|
+
}
|
1249
|
+
class Usage {
|
1250
|
+
items: bigint;
|
1251
|
+
bytes: bigint;
|
1252
|
+
}
|
1253
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1254
|
+
const ABI: MoveModule;
|
1255
|
+
}
|
1256
|
+
export declare namespace staking_config {
|
1257
|
+
class StakingConfig {
|
1258
|
+
minimum_stake: bigint;
|
1259
|
+
maximum_stake: bigint;
|
1260
|
+
recurring_lockup_duration_secs: bigint;
|
1261
|
+
allow_validator_set_change: Boolean;
|
1262
|
+
rewards_rate: bigint;
|
1263
|
+
rewards_rate_denominator: bigint;
|
1264
|
+
voting_power_increase_limit: bigint;
|
1265
|
+
}
|
1266
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1267
|
+
const ABI: MoveModule;
|
1268
|
+
}
|
1269
|
+
export declare class reconfiguration extends aptos.AptosBaseProcessor {
|
1270
|
+
constructor(options: aptos.AptosBindOptions);
|
1271
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1272
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): reconfiguration;
|
1273
|
+
onEventNewEpochEvent(func: (event: reconfiguration.NewEpochEventInstance, ctx: aptos.AptosContext) => void): reconfiguration;
|
1274
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1275
|
+
}
|
1276
|
+
export declare namespace reconfiguration {
|
1277
|
+
class Configuration {
|
1278
|
+
epoch: bigint;
|
1279
|
+
last_reconfiguration_time: bigint;
|
1280
|
+
events: event.EventHandle<reconfiguration.NewEpochEvent>;
|
1281
|
+
}
|
1282
|
+
class DisableReconfiguration {
|
1283
|
+
dummy_field: Boolean;
|
1284
|
+
}
|
1285
|
+
class NewEpochEvent {
|
1286
|
+
epoch: bigint;
|
1287
|
+
}
|
1288
|
+
interface NewEpochEventInstance extends aptos.TypedEventInstance<NewEpochEvent> {
|
1289
|
+
data_typed: NewEpochEvent;
|
1290
|
+
}
|
1291
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1292
|
+
const ABI: MoveModule;
|
1293
|
+
}
|
1294
|
+
export declare namespace transaction_fee {
|
1295
|
+
class AptosCoinCapabilities {
|
1296
|
+
burn_cap: coin.BurnCapability<aptos_coin.AptosCoin>;
|
1297
|
+
}
|
1298
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1299
|
+
const ABI: MoveModule;
|
1300
|
+
}
|
1301
|
+
export declare class aptos_governance extends aptos.AptosBaseProcessor {
|
1302
|
+
constructor(options: aptos.AptosBindOptions);
|
1303
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1304
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): aptos_governance;
|
1305
|
+
onEntryAddApprovedScriptHashScript(func: (call: aptos_governance.AddApprovedScriptHashScriptPayload, ctx: aptos.AptosContext) => void): aptos_governance;
|
1306
|
+
onEntryCreateProposal(func: (call: aptos_governance.CreateProposalPayload, ctx: aptos.AptosContext) => void): aptos_governance;
|
1307
|
+
onEntryVote(func: (call: aptos_governance.VotePayload, ctx: aptos.AptosContext) => void): aptos_governance;
|
1308
|
+
onEventCreateProposalEvent(func: (event: aptos_governance.CreateProposalEventInstance, ctx: aptos.AptosContext) => void): aptos_governance;
|
1309
|
+
onEventUpdateConfigEvent(func: (event: aptos_governance.UpdateConfigEventInstance, ctx: aptos.AptosContext) => void): aptos_governance;
|
1310
|
+
onEventVoteEvent(func: (event: aptos_governance.VoteEventInstance, ctx: aptos.AptosContext) => void): aptos_governance;
|
1311
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1312
|
+
}
|
1313
|
+
export declare namespace aptos_governance {
|
1314
|
+
class ApprovedExecutionHashes {
|
1315
|
+
hashes: simple_map.SimpleMap<bigint, string>;
|
1316
|
+
}
|
1317
|
+
class CreateProposalEvent {
|
1318
|
+
proposer: Address;
|
1319
|
+
stake_pool: Address;
|
1320
|
+
proposal_id: bigint;
|
1321
|
+
execution_hash: string;
|
1322
|
+
proposal_metadata: simple_map.SimpleMap<string, string>;
|
1323
|
+
}
|
1324
|
+
interface CreateProposalEventInstance extends aptos.TypedEventInstance<CreateProposalEvent> {
|
1325
|
+
data_typed: CreateProposalEvent;
|
1326
|
+
}
|
1327
|
+
class GovernanceConfig {
|
1328
|
+
min_voting_threshold: bigint;
|
1329
|
+
required_proposer_stake: bigint;
|
1330
|
+
voting_duration_secs: bigint;
|
1331
|
+
}
|
1332
|
+
class GovernanceEvents {
|
1333
|
+
create_proposal_events: event.EventHandle<aptos_governance.CreateProposalEvent>;
|
1334
|
+
update_config_events: event.EventHandle<aptos_governance.UpdateConfigEvent>;
|
1335
|
+
vote_events: event.EventHandle<aptos_governance.VoteEvent>;
|
1336
|
+
}
|
1337
|
+
class GovernanceResponsbility {
|
1338
|
+
signer_caps: simple_map.SimpleMap<Address, account.SignerCapability>;
|
1339
|
+
}
|
1340
|
+
class RecordKey {
|
1341
|
+
stake_pool: Address;
|
1342
|
+
proposal_id: bigint;
|
1343
|
+
}
|
1344
|
+
class UpdateConfigEvent {
|
1345
|
+
min_voting_threshold: bigint;
|
1346
|
+
required_proposer_stake: bigint;
|
1347
|
+
voting_duration_secs: bigint;
|
1348
|
+
}
|
1349
|
+
interface UpdateConfigEventInstance extends aptos.TypedEventInstance<UpdateConfigEvent> {
|
1350
|
+
data_typed: UpdateConfigEvent;
|
1351
|
+
}
|
1352
|
+
class VoteEvent {
|
1353
|
+
proposal_id: bigint;
|
1354
|
+
voter: Address;
|
1355
|
+
stake_pool: Address;
|
1356
|
+
num_votes: bigint;
|
1357
|
+
should_pass: Boolean;
|
1358
|
+
}
|
1359
|
+
interface VoteEventInstance extends aptos.TypedEventInstance<VoteEvent> {
|
1360
|
+
data_typed: VoteEvent;
|
1361
|
+
}
|
1362
|
+
class VotingRecords {
|
1363
|
+
votes: table.Table<aptos_governance.RecordKey, Boolean>;
|
1364
|
+
}
|
1365
|
+
interface AddApprovedScriptHashScriptPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
1366
|
+
arguments_typed: [];
|
1367
|
+
}
|
1368
|
+
interface CreateProposalPayload extends aptos.TypedEntryFunctionPayload<[Address, string, string, string]> {
|
1369
|
+
arguments_typed: [Address, string, string, string];
|
1370
|
+
}
|
1371
|
+
interface VotePayload extends aptos.TypedEntryFunctionPayload<[Address, bigint, Boolean]> {
|
1372
|
+
arguments_typed: [Address, bigint, Boolean];
|
1373
|
+
}
|
1374
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1375
|
+
const ABI: MoveModule;
|
1376
|
+
}
|
1377
|
+
export declare namespace consensus_config {
|
1378
|
+
class ConsensusConfig {
|
1379
|
+
config: string;
|
1380
|
+
}
|
1381
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1382
|
+
const ABI: MoveModule;
|
1383
|
+
}
|
1384
|
+
export declare class resource_account extends aptos.AptosBaseProcessor {
|
1385
|
+
constructor(options: aptos.AptosBindOptions);
|
1386
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1387
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): resource_account;
|
1388
|
+
onEntryCreateResourceAccount(func: (call: resource_account.CreateResourceAccountPayload, ctx: aptos.AptosContext) => void): resource_account;
|
1389
|
+
onEntryCreateResourceAccountAndFund(func: (call: resource_account.CreateResourceAccountAndFundPayload, ctx: aptos.AptosContext) => void): resource_account;
|
1390
|
+
onEntryCreateResourceAccountAndPublishPackage(func: (call: resource_account.CreateResourceAccountAndPublishPackagePayload, ctx: aptos.AptosContext) => void): resource_account;
|
1391
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1392
|
+
}
|
1393
|
+
export declare namespace resource_account {
|
1394
|
+
class Container {
|
1395
|
+
store: simple_map.SimpleMap<Address, account.SignerCapability>;
|
1396
|
+
}
|
1397
|
+
interface CreateResourceAccountPayload extends aptos.TypedEntryFunctionPayload<[string, string]> {
|
1398
|
+
arguments_typed: [string, string];
|
1399
|
+
}
|
1400
|
+
interface CreateResourceAccountAndFundPayload extends aptos.TypedEntryFunctionPayload<[string, string, bigint]> {
|
1401
|
+
arguments_typed: [string, string, bigint];
|
1402
|
+
}
|
1403
|
+
interface CreateResourceAccountAndPublishPackagePayload extends aptos.TypedEntryFunctionPayload<[string, string, string[]]> {
|
1404
|
+
arguments_typed: [string, string, string[]];
|
1405
|
+
}
|
1406
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1407
|
+
const ABI: MoveModule;
|
1408
|
+
}
|
1409
|
+
export declare class staking_contract extends aptos.AptosBaseProcessor {
|
1410
|
+
constructor(options: aptos.AptosBindOptions);
|
1411
|
+
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
1412
|
+
static bind(options?: Partial<aptos.AptosBindOptions>): staking_contract;
|
1413
|
+
onEntryAddStake(func: (call: staking_contract.AddStakePayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1414
|
+
onEntryCreateStakingContract(func: (call: staking_contract.CreateStakingContractPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1415
|
+
onEntryDistribute(func: (call: staking_contract.DistributePayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1416
|
+
onEntryRequestCommission(func: (call: staking_contract.RequestCommissionPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1417
|
+
onEntryResetLockup(func: (call: staking_contract.ResetLockupPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1418
|
+
onEntrySwitchOperator(func: (call: staking_contract.SwitchOperatorPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1419
|
+
onEntrySwitchOperatorWithSameCommission(func: (call: staking_contract.SwitchOperatorWithSameCommissionPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1420
|
+
onEntryUnlockRewards(func: (call: staking_contract.UnlockRewardsPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1421
|
+
onEntryUnlockStake(func: (call: staking_contract.UnlockStakePayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1422
|
+
onEntryUpdateVoter(func: (call: staking_contract.UpdateVoterPayload, ctx: aptos.AptosContext) => void): staking_contract;
|
1423
|
+
onEventAddDistributionEvent(func: (event: staking_contract.AddDistributionEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1424
|
+
onEventAddStakeEvent(func: (event: staking_contract.AddStakeEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1425
|
+
onEventCreateStakingContractEvent(func: (event: staking_contract.CreateStakingContractEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1426
|
+
onEventDistributeEvent(func: (event: staking_contract.DistributeEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1427
|
+
onEventRequestCommissionEvent(func: (event: staking_contract.RequestCommissionEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1428
|
+
onEventResetLockupEvent(func: (event: staking_contract.ResetLockupEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1429
|
+
onEventSwitchOperatorEvent(func: (event: staking_contract.SwitchOperatorEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1430
|
+
onEventUnlockStakeEvent(func: (event: staking_contract.UnlockStakeEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1431
|
+
onEventUpdateVoterEvent(func: (event: staking_contract.UpdateVoterEventInstance, ctx: aptos.AptosContext) => void): staking_contract;
|
1432
|
+
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
1433
|
+
}
|
1434
|
+
export declare namespace staking_contract {
|
1435
|
+
class AddDistributionEvent {
|
1436
|
+
operator: Address;
|
1437
|
+
pool_address: Address;
|
1438
|
+
amount: bigint;
|
1439
|
+
}
|
1440
|
+
interface AddDistributionEventInstance extends aptos.TypedEventInstance<AddDistributionEvent> {
|
1441
|
+
data_typed: AddDistributionEvent;
|
1442
|
+
}
|
1443
|
+
class AddStakeEvent {
|
1444
|
+
operator: Address;
|
1445
|
+
pool_address: Address;
|
1446
|
+
amount: bigint;
|
1447
|
+
}
|
1448
|
+
interface AddStakeEventInstance extends aptos.TypedEventInstance<AddStakeEvent> {
|
1449
|
+
data_typed: AddStakeEvent;
|
1450
|
+
}
|
1451
|
+
class CreateStakingContractEvent {
|
1452
|
+
operator: Address;
|
1453
|
+
voter: Address;
|
1454
|
+
pool_address: Address;
|
1455
|
+
principal: bigint;
|
1456
|
+
commission_percentage: bigint;
|
1457
|
+
}
|
1458
|
+
interface CreateStakingContractEventInstance extends aptos.TypedEventInstance<CreateStakingContractEvent> {
|
1459
|
+
data_typed: CreateStakingContractEvent;
|
1460
|
+
}
|
1461
|
+
class DistributeEvent {
|
1462
|
+
operator: Address;
|
1463
|
+
pool_address: Address;
|
1464
|
+
recipient: Address;
|
1465
|
+
amount: bigint;
|
1466
|
+
}
|
1467
|
+
interface DistributeEventInstance extends aptos.TypedEventInstance<DistributeEvent> {
|
1468
|
+
data_typed: DistributeEvent;
|
1469
|
+
}
|
1470
|
+
class RequestCommissionEvent {
|
1471
|
+
operator: Address;
|
1472
|
+
pool_address: Address;
|
1473
|
+
accumulated_rewards: bigint;
|
1474
|
+
commission_amount: bigint;
|
1475
|
+
}
|
1476
|
+
interface RequestCommissionEventInstance extends aptos.TypedEventInstance<RequestCommissionEvent> {
|
1477
|
+
data_typed: RequestCommissionEvent;
|
1478
|
+
}
|
1479
|
+
class ResetLockupEvent {
|
1480
|
+
operator: Address;
|
1481
|
+
pool_address: Address;
|
1482
|
+
}
|
1483
|
+
interface ResetLockupEventInstance extends aptos.TypedEventInstance<ResetLockupEvent> {
|
1484
|
+
data_typed: ResetLockupEvent;
|
1485
|
+
}
|
1486
|
+
class StakingContract {
|
1487
|
+
principal: bigint;
|
1488
|
+
pool_address: Address;
|
1489
|
+
owner_cap: stake.OwnerCapability;
|
1490
|
+
commission_percentage: bigint;
|
1491
|
+
distribution_pool: pool_u64.Pool;
|
1492
|
+
signer_cap: account.SignerCapability;
|
1493
|
+
}
|
1494
|
+
class Store {
|
1495
|
+
staking_contracts: simple_map.SimpleMap<Address, staking_contract.StakingContract>;
|
1496
|
+
create_staking_contract_events: event.EventHandle<staking_contract.CreateStakingContractEvent>;
|
1497
|
+
update_voter_events: event.EventHandle<staking_contract.UpdateVoterEvent>;
|
1498
|
+
reset_lockup_events: event.EventHandle<staking_contract.ResetLockupEvent>;
|
1499
|
+
add_stake_events: event.EventHandle<staking_contract.AddStakeEvent>;
|
1500
|
+
request_commission_events: event.EventHandle<staking_contract.RequestCommissionEvent>;
|
1501
|
+
unlock_stake_events: event.EventHandle<staking_contract.UnlockStakeEvent>;
|
1502
|
+
switch_operator_events: event.EventHandle<staking_contract.SwitchOperatorEvent>;
|
1503
|
+
add_distribution_events: event.EventHandle<staking_contract.AddDistributionEvent>;
|
1504
|
+
distribute_events: event.EventHandle<staking_contract.DistributeEvent>;
|
1505
|
+
}
|
1506
|
+
class SwitchOperatorEvent {
|
1507
|
+
old_operator: Address;
|
1508
|
+
new_operator: Address;
|
1509
|
+
pool_address: Address;
|
1510
|
+
}
|
1511
|
+
interface SwitchOperatorEventInstance extends aptos.TypedEventInstance<SwitchOperatorEvent> {
|
1512
|
+
data_typed: SwitchOperatorEvent;
|
1513
|
+
}
|
1514
|
+
class UnlockStakeEvent {
|
1515
|
+
operator: Address;
|
1516
|
+
pool_address: Address;
|
1517
|
+
amount: bigint;
|
1518
|
+
commission_paid: bigint;
|
1519
|
+
}
|
1520
|
+
interface UnlockStakeEventInstance extends aptos.TypedEventInstance<UnlockStakeEvent> {
|
1521
|
+
data_typed: UnlockStakeEvent;
|
1522
|
+
}
|
1523
|
+
class UpdateVoterEvent {
|
1524
|
+
operator: Address;
|
1525
|
+
pool_address: Address;
|
1526
|
+
old_voter: Address;
|
1527
|
+
new_voter: Address;
|
1528
|
+
}
|
1529
|
+
interface UpdateVoterEventInstance extends aptos.TypedEventInstance<UpdateVoterEvent> {
|
1530
|
+
data_typed: UpdateVoterEvent;
|
1531
|
+
}
|
1532
|
+
interface AddStakePayload extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
|
1533
|
+
arguments_typed: [Address, bigint];
|
1534
|
+
}
|
1535
|
+
interface CreateStakingContractPayload extends aptos.TypedEntryFunctionPayload<[
|
1536
|
+
Address,
|
1537
|
+
Address,
|
1538
|
+
bigint,
|
1539
|
+
bigint,
|
1540
|
+
string
|
1541
|
+
]> {
|
1542
|
+
arguments_typed: [Address, Address, bigint, bigint, string];
|
1543
|
+
}
|
1544
|
+
interface DistributePayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
1545
|
+
arguments_typed: [Address];
|
1546
|
+
}
|
1547
|
+
interface RequestCommissionPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1548
|
+
arguments_typed: [Address, Address];
|
1549
|
+
}
|
1550
|
+
interface ResetLockupPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
1551
|
+
arguments_typed: [Address];
|
1552
|
+
}
|
1553
|
+
interface SwitchOperatorPayload extends aptos.TypedEntryFunctionPayload<[Address, Address, bigint]> {
|
1554
|
+
arguments_typed: [Address, Address, bigint];
|
1555
|
+
}
|
1556
|
+
interface SwitchOperatorWithSameCommissionPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1557
|
+
arguments_typed: [Address, Address];
|
1558
|
+
}
|
1559
|
+
interface UnlockRewardsPayload extends aptos.TypedEntryFunctionPayload<[Address]> {
|
1560
|
+
arguments_typed: [Address];
|
1561
|
+
}
|
1562
|
+
interface UnlockStakePayload extends aptos.TypedEntryFunctionPayload<[Address, bigint]> {
|
1563
|
+
arguments_typed: [Address, bigint];
|
1564
|
+
}
|
1565
|
+
interface UpdateVoterPayload extends aptos.TypedEntryFunctionPayload<[Address, Address]> {
|
1566
|
+
arguments_typed: [Address, Address];
|
1567
|
+
}
|
1568
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1569
|
+
const ABI: MoveModule;
|
1570
|
+
}
|
1571
|
+
export declare namespace system_addresses {
|
1572
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1573
|
+
const ABI: MoveModule;
|
1574
|
+
}
|
1575
|
+
export declare namespace table_with_length {
|
1576
|
+
class TableWithLength<T0, T1> {
|
1577
|
+
inner: table.Table<T0, T1>;
|
1578
|
+
length: bigint;
|
1579
|
+
}
|
1580
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1581
|
+
const ABI: MoveModule;
|
1582
|
+
}
|
1583
|
+
export declare namespace aggregator_factory {
|
1584
|
+
class AggregatorFactory {
|
1585
|
+
phantom_table: table.Table<Address, bigint>;
|
1586
|
+
}
|
1587
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1588
|
+
const ABI: MoveModule;
|
1589
|
+
}
|
1590
|
+
export declare namespace governance_proposal {
|
1591
|
+
class GovernanceProposal {
|
1592
|
+
dummy_field: Boolean;
|
1593
|
+
}
|
1594
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1595
|
+
const ABI: MoveModule;
|
1596
|
+
}
|
1597
|
+
export declare namespace optional_aggregator {
|
1598
|
+
class Integer {
|
1599
|
+
value: bigint;
|
1600
|
+
limit: bigint;
|
1601
|
+
}
|
1602
|
+
class OptionalAggregator {
|
1603
|
+
aggregator: option.Option<aggregator.Aggregator>;
|
1604
|
+
integer: option.Option<optional_aggregator.Integer>;
|
1605
|
+
}
|
1606
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1607
|
+
const ABI: MoveModule;
|
1608
|
+
}
|
1609
|
+
export declare namespace transaction_context {
|
1610
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1611
|
+
const ABI: MoveModule;
|
1612
|
+
}
|
1613
|
+
export declare namespace transaction_validation {
|
1614
|
+
class TransactionValidation {
|
1615
|
+
module_addr: Address;
|
1616
|
+
module_name: string;
|
1617
|
+
script_prologue_name: string;
|
1618
|
+
module_prologue_name: string;
|
1619
|
+
multi_agent_prologue_name: string;
|
1620
|
+
user_epilogue_name: string;
|
1621
|
+
}
|
1622
|
+
function loadTypes(registry: aptos.TypeRegistry): void;
|
1623
|
+
const ABI: MoveModule;
|
1624
|
+
}
|