@sentio/sdk 2.4.0 → 2.5.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/aptos-processor.d.ts +1 -1
- package/lib/aptos/aptos-processor.js +1 -1
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/builtin/0x1.d.ts +16 -177
- package/lib/aptos/builtin/0x1.js +56 -538
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +2 -13
- package/lib/aptos/builtin/0x3.js +20 -48
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/codegen/codegen.d.ts +0 -20
- package/lib/aptos/codegen/codegen.js +37 -357
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/{types.test.d.ts → codegen/types.test.d.ts} +0 -0
- package/lib/aptos/codegen/types.test.js.map +1 -0
- package/lib/aptos/models.d.ts +0 -8
- package/lib/aptos/models.js.map +1 -1
- package/lib/aptos/move-coder.d.ts +4 -13
- package/lib/aptos/move-coder.js +13 -124
- package/lib/aptos/move-coder.js.map +1 -1
- package/lib/aptos/move-types.d.ts +6 -0
- package/lib/aptos/move-types.js +52 -1
- package/lib/aptos/move-types.js.map +1 -1
- package/lib/aptos/tests/souffl3.js +1 -1
- package/lib/aptos/tests/souffl3.js.map +1 -1
- package/lib/aptos/tests/types/reserved.d.ts +2 -8
- package/lib/aptos/tests/types/reserved.js +11 -24
- package/lib/aptos/tests/types/reserved.js.map +1 -1
- package/lib/aptos/tests/types/soffl3.d.ts +2 -14
- package/lib/aptos/tests/types/soffl3.js +15 -48
- package/lib/aptos/tests/types/soffl3.js.map +1 -1
- package/lib/aptos/tests/types/souffle.d.ts +2 -8
- package/lib/aptos/tests/types/souffle.js +11 -24
- package/lib/aptos/tests/types/souffle.js.map +1 -1
- package/lib/aptos/utils.d.ts +2 -7
- package/lib/aptos/utils.js +2 -15
- package/lib/aptos/utils.js.map +1 -1
- package/lib/eth/tests/codegen.test.js.map +1 -1
- package/lib/eth/tests/erc20.js +1 -1
- package/lib/eth/tests/erc20.js.map +1 -1
- package/lib/eth/tests/logger.test.js.map +1 -1
- package/lib/move/abstract-codegen.d.ts +44 -0
- package/lib/move/abstract-codegen.js +341 -0
- package/lib/move/abstract-codegen.js.map +1 -0
- package/lib/move/abstract-move-coder.d.ts +24 -0
- package/lib/move/abstract-move-coder.js +141 -0
- package/lib/move/abstract-move-coder.js.map +1 -0
- package/lib/move/account.d.ts +18 -0
- package/lib/{aptos/codegen/typegen.js → move/account.js} +20 -82
- package/lib/move/account.js.map +1 -0
- package/lib/move/filter.d.ts +25 -0
- package/lib/move/filter.js +11 -0
- package/lib/move/filter.js.map +1 -0
- package/lib/move/index.d.ts +5 -25
- package/lib/move/index.js +5 -10
- package/lib/move/index.js.map +1 -1
- package/lib/move/neutral-models.d.ts +34 -0
- package/lib/move/neutral-models.js +7 -0
- package/lib/move/neutral-models.js.map +1 -0
- package/lib/move/ts-type.d.ts +2 -0
- package/lib/move/ts-type.js +77 -0
- package/lib/move/ts-type.js.map +1 -0
- package/lib/{aptos/codegen/typegen.test.d.ts → move/ts-type.test.d.ts} +0 -0
- package/lib/move/ts-type.test.js.map +1 -0
- package/lib/{aptos → move}/types.d.ts +1 -0
- package/lib/{aptos → move}/types.js +26 -3
- package/lib/move/types.js.map +1 -0
- package/lib/move/utils.d.ts +9 -0
- package/lib/move/utils.js +20 -0
- package/lib/move/utils.js.map +1 -0
- package/lib/sui/builtin/0x1.d.ts +114 -0
- package/lib/sui/builtin/0x1.js +174 -0
- package/lib/sui/builtin/0x1.js.map +1 -0
- package/lib/sui/builtin/0x2.d.ts +1047 -0
- package/lib/sui/builtin/0x2.js +1295 -0
- package/lib/sui/builtin/0x2.js.map +1 -0
- package/lib/sui/builtin/index.d.ts +2 -0
- package/lib/sui/builtin/index.js +6 -0
- package/lib/sui/builtin/index.js.map +1 -0
- package/lib/sui/codegen/codegen.d.ts +1 -0
- package/lib/sui/codegen/codegen.js +61 -0
- package/lib/sui/codegen/codegen.js.map +1 -0
- package/lib/sui/codegen/index.d.ts +1 -0
- package/lib/sui/codegen/index.js +2 -0
- package/lib/sui/codegen/index.js.map +1 -0
- package/lib/sui/codegen/run.d.ts +1 -0
- package/lib/sui/codegen/run.js +12 -0
- package/lib/sui/codegen/run.js.map +1 -0
- package/lib/sui/index.d.ts +2 -0
- package/lib/sui/index.js +1 -0
- package/lib/sui/index.js.map +1 -1
- package/lib/sui/models.d.ts +7 -1
- package/lib/sui/models.js +0 -23
- package/lib/sui/models.js.map +1 -1
- package/lib/sui/move-coder.d.ts +11 -0
- package/lib/sui/move-coder.js +53 -0
- package/lib/sui/move-coder.js.map +1 -0
- package/lib/sui/move-types.d.ts +9 -0
- package/lib/sui/move-types.js +81 -0
- package/lib/sui/move-types.js.map +1 -0
- package/lib/sui/sui-processor.js +3 -3
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/sui/tests/sui.test.js.map +1 -1
- package/lib/sui/tests/types/index.d.ts +1 -0
- package/lib/sui/tests/types/index.js +5 -0
- package/lib/sui/tests/types/index.js.map +1 -0
- package/lib/sui/tests/types/testnet/index.d.ts +1 -0
- package/lib/sui/tests/types/testnet/index.js +5 -0
- package/lib/sui/tests/types/testnet/index.js.map +1 -0
- package/lib/sui/tests/types/testnet/swap.d.ts +249 -0
- package/lib/sui/tests/types/testnet/swap.js +310 -0
- package/lib/sui/tests/types/testnet/swap.js.map +1 -0
- package/lib/testing/aptos-facet.js +1 -1
- package/lib/testing/aptos-facet.js.map +1 -1
- package/lib/testing/sui-facet.js +3 -2
- package/lib/testing/sui-facet.js.map +1 -1
- package/package.json +8 -5
- package/src/aptos/aptos-processor.ts +1 -1
- package/src/aptos/builtin/0x1.ts +70 -652
- package/src/aptos/builtin/0x3.ts +24 -59
- package/src/aptos/codegen/codegen.ts +35 -421
- package/src/aptos/models.ts +0 -10
- package/src/aptos/move-coder.ts +16 -150
- package/src/aptos/move-types.ts +62 -0
- package/src/aptos/tests/souffl3.ts +1 -1
- package/src/aptos/tests/types/reserved.ts +15 -30
- package/src/aptos/tests/types/soffl3.ts +19 -58
- package/src/aptos/tests/types/souffle.ts +15 -30
- package/src/aptos/utils.ts +3 -21
- package/src/eth/tests/erc20.ts +1 -1
- package/src/move/abstract-codegen.ts +426 -0
- package/src/move/abstract-move-coder.ts +170 -0
- package/src/move/account.ts +96 -0
- package/src/move/filter.ts +33 -0
- package/src/move/index.ts +5 -33
- package/src/move/neutral-models.ts +45 -0
- package/src/move/ts-type.ts +86 -0
- package/src/{aptos → move}/types.ts +28 -3
- package/src/move/utils.ts +25 -0
- package/src/sui/abis/0x1.json +1729 -1733
- package/src/sui/abis/0x2.json +13279 -13283
- package/src/sui/builtin/0x1.ts +307 -0
- package/src/sui/builtin/0x2.ts +2578 -0
- package/src/sui/builtin/index.ts +5 -0
- package/src/sui/codegen/codegen.ts +71 -0
- package/src/sui/codegen/index.ts +1 -0
- package/src/sui/codegen/run.ts +13 -0
- package/src/sui/index.ts +4 -0
- package/src/sui/models.ts +7 -28
- package/src/sui/move-coder.ts +63 -0
- package/src/sui/move-types.ts +109 -0
- package/src/sui/sui-processor.ts +3 -3
- package/src/sui/tests/abis/testnet/swap.json +1752 -0
- package/src/sui/tests/types/index.ts +3 -0
- package/src/sui/tests/types/testnet/index.ts +4 -0
- package/src/sui/tests/types/testnet/swap.ts +698 -0
- package/src/testing/aptos-facet.ts +1 -1
- package/src/testing/sui-facet.ts +3 -2
- package/lib/aptos/codegen/typegen.d.ts +0 -18
- package/lib/aptos/codegen/typegen.js.map +0 -1
- package/lib/aptos/codegen/typegen.test.js.map +0 -1
- package/lib/aptos/types.js.map +0 -1
- package/lib/aptos/types.test.js.map +0 -1
- package/lib/jest.config.d.ts +0 -9
- package/lib/jest.config.js +0 -9
- package/lib/jest.config.js.map +0 -1
- package/src/aptos/codegen/typegen.ts +0 -165
- package/src/jest.config.ts +0 -8
|
@@ -0,0 +1,1047 @@
|
|
|
1
|
+
import { CallFilter } from "@sentio/sdk/move";
|
|
2
|
+
import { MoveCoder, SuiBindOptions, SuiBaseProcessor, TypedEventInstance, TypedEntryFunctionPayload, SuiContext } from "@sentio/sdk/sui";
|
|
3
|
+
import { MoveFetchConfig } from "@sentio/protos";
|
|
4
|
+
import { SuiAddress } from "@sentio/sdk/sui";
|
|
5
|
+
import * as _0x1 from "./0x1.js";
|
|
6
|
+
export declare namespace address { }
|
|
7
|
+
export declare namespace bag {
|
|
8
|
+
class Bag {
|
|
9
|
+
static TYPE_QNAME: string;
|
|
10
|
+
id: object_.UID;
|
|
11
|
+
size: bigint;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare namespace balance {
|
|
15
|
+
class Balance<T0> {
|
|
16
|
+
static TYPE_QNAME: string;
|
|
17
|
+
value: bigint;
|
|
18
|
+
}
|
|
19
|
+
class Supply<T0> {
|
|
20
|
+
static TYPE_QNAME: string;
|
|
21
|
+
value: bigint;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare class bcs extends SuiBaseProcessor {
|
|
25
|
+
constructor(options: SuiBindOptions);
|
|
26
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
27
|
+
static bind(options?: Partial<SuiBindOptions>): bcs;
|
|
28
|
+
onEventBCS(func: (event: bcs.BCSInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): bcs;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace bcs {
|
|
31
|
+
class BCS {
|
|
32
|
+
static TYPE_QNAME: string;
|
|
33
|
+
bytes: string;
|
|
34
|
+
}
|
|
35
|
+
interface BCSInstance extends TypedEventInstance<BCS> {
|
|
36
|
+
fields_decoded: BCS;
|
|
37
|
+
type_arguments: [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export declare namespace bls12381 { }
|
|
41
|
+
export declare namespace bulletproofs { }
|
|
42
|
+
export declare class coin extends SuiBaseProcessor {
|
|
43
|
+
constructor(options: SuiBindOptions);
|
|
44
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
45
|
+
static bind(options?: Partial<SuiBindOptions>): coin;
|
|
46
|
+
onEntryBurn(func: (call: coin.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
47
|
+
onEntryJoin(func: (call: coin.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
48
|
+
onEntryMintAndTransfer(func: (call: coin.MintAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
49
|
+
onEntryUpdateDescription(func: (call: coin.UpdateDescriptionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
50
|
+
onEntryUpdateIconUrl(func: (call: coin.UpdateIconUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
51
|
+
onEntryUpdateName(func: (call: coin.UpdateNamePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
52
|
+
onEntryUpdateSymbol(func: (call: coin.UpdateSymbolPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): coin;
|
|
53
|
+
onEventCurrencyCreated(func: (event: coin.CurrencyCreatedInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): coin;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace coin {
|
|
56
|
+
class Coin<T0> {
|
|
57
|
+
static TYPE_QNAME: string;
|
|
58
|
+
id: object_.UID;
|
|
59
|
+
balance: balance.Balance<T0>;
|
|
60
|
+
}
|
|
61
|
+
class CoinMetadata<T0> {
|
|
62
|
+
static TYPE_QNAME: string;
|
|
63
|
+
id: object_.UID;
|
|
64
|
+
decimals: number;
|
|
65
|
+
name: string;
|
|
66
|
+
symbol: _0x1.ascii.String;
|
|
67
|
+
description: string;
|
|
68
|
+
icon_url: _0x1.option.Option<url.Url>;
|
|
69
|
+
}
|
|
70
|
+
class CurrencyCreated<T0> {
|
|
71
|
+
static TYPE_QNAME: string;
|
|
72
|
+
decimals: number;
|
|
73
|
+
}
|
|
74
|
+
interface CurrencyCreatedInstance extends TypedEventInstance<CurrencyCreated<any>> {
|
|
75
|
+
fields_decoded: CurrencyCreated<any>;
|
|
76
|
+
type_arguments: [string];
|
|
77
|
+
}
|
|
78
|
+
class TreasuryCap<T0> {
|
|
79
|
+
static TYPE_QNAME: string;
|
|
80
|
+
id: object_.UID;
|
|
81
|
+
total_supply: balance.Supply<T0>;
|
|
82
|
+
}
|
|
83
|
+
interface BurnPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
84
|
+
arguments_decoded: [SuiAddress];
|
|
85
|
+
type_arguments: [string];
|
|
86
|
+
}
|
|
87
|
+
interface JoinPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
88
|
+
arguments_decoded: [SuiAddress];
|
|
89
|
+
type_arguments: [string];
|
|
90
|
+
}
|
|
91
|
+
interface MintAndTransferPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, bigint, SuiAddress]> {
|
|
92
|
+
arguments_decoded: [SuiAddress, bigint, SuiAddress];
|
|
93
|
+
type_arguments: [string];
|
|
94
|
+
}
|
|
95
|
+
interface UpdateDescriptionPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
96
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
97
|
+
type_arguments: [string];
|
|
98
|
+
}
|
|
99
|
+
interface UpdateIconUrlPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
100
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
101
|
+
type_arguments: [string];
|
|
102
|
+
}
|
|
103
|
+
interface UpdateNamePayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
104
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
105
|
+
type_arguments: [string];
|
|
106
|
+
}
|
|
107
|
+
interface UpdateSymbolPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
108
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
109
|
+
type_arguments: [string];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export declare class devnet_nft extends SuiBaseProcessor {
|
|
113
|
+
constructor(options: SuiBindOptions);
|
|
114
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
115
|
+
static bind(options?: Partial<SuiBindOptions>): devnet_nft;
|
|
116
|
+
onEntryBurn(func: (call: devnet_nft.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): devnet_nft;
|
|
117
|
+
onEntryMint(func: (call: devnet_nft.MintPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): devnet_nft;
|
|
118
|
+
onEntryUpdateDescription(func: (call: devnet_nft.UpdateDescriptionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): devnet_nft;
|
|
119
|
+
onEventMintNFTEvent(func: (event: devnet_nft.MintNFTEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): devnet_nft;
|
|
120
|
+
}
|
|
121
|
+
export declare namespace devnet_nft {
|
|
122
|
+
class DevNetNFT {
|
|
123
|
+
static TYPE_QNAME: string;
|
|
124
|
+
id: object_.UID;
|
|
125
|
+
name: string;
|
|
126
|
+
description: string;
|
|
127
|
+
url: url.Url;
|
|
128
|
+
}
|
|
129
|
+
class MintNFTEvent {
|
|
130
|
+
static TYPE_QNAME: string;
|
|
131
|
+
object_id: string;
|
|
132
|
+
creator: SuiAddress;
|
|
133
|
+
name: string;
|
|
134
|
+
}
|
|
135
|
+
interface MintNFTEventInstance extends TypedEventInstance<MintNFTEvent> {
|
|
136
|
+
fields_decoded: MintNFTEvent;
|
|
137
|
+
type_arguments: [];
|
|
138
|
+
}
|
|
139
|
+
interface BurnPayload extends TypedEntryFunctionPayload<[]> {
|
|
140
|
+
arguments_decoded: [];
|
|
141
|
+
type_arguments: [];
|
|
142
|
+
}
|
|
143
|
+
interface MintPayload extends TypedEntryFunctionPayload<[string, string, string]> {
|
|
144
|
+
arguments_decoded: [string, string, string];
|
|
145
|
+
type_arguments: [];
|
|
146
|
+
}
|
|
147
|
+
interface UpdateDescriptionPayload extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
148
|
+
arguments_decoded: [SuiAddress];
|
|
149
|
+
type_arguments: [];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export declare class digest extends SuiBaseProcessor {
|
|
153
|
+
constructor(options: SuiBindOptions);
|
|
154
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
155
|
+
static bind(options?: Partial<SuiBindOptions>): digest;
|
|
156
|
+
onEventSha3256Digest(func: (event: digest.Sha3256DigestInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): digest;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace digest {
|
|
159
|
+
class Sha3256Digest {
|
|
160
|
+
static TYPE_QNAME: string;
|
|
161
|
+
digest: string;
|
|
162
|
+
}
|
|
163
|
+
interface Sha3256DigestInstance extends TypedEventInstance<Sha3256Digest> {
|
|
164
|
+
fields_decoded: Sha3256Digest;
|
|
165
|
+
type_arguments: [];
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export declare namespace dynamic_field {
|
|
169
|
+
class Field<T0, T1> {
|
|
170
|
+
static TYPE_QNAME: string;
|
|
171
|
+
id: object_.UID;
|
|
172
|
+
name: T0;
|
|
173
|
+
value: T1;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
export declare class dynamic_object_field extends SuiBaseProcessor {
|
|
177
|
+
constructor(options: SuiBindOptions);
|
|
178
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
179
|
+
static bind(options?: Partial<SuiBindOptions>): dynamic_object_field;
|
|
180
|
+
onEventWrapper(func: (event: dynamic_object_field.WrapperInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): dynamic_object_field;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace dynamic_object_field {
|
|
183
|
+
class Wrapper<T0> {
|
|
184
|
+
static TYPE_QNAME: string;
|
|
185
|
+
name: T0;
|
|
186
|
+
}
|
|
187
|
+
interface WrapperInstance extends TypedEventInstance<Wrapper<any>> {
|
|
188
|
+
fields_decoded: Wrapper<any>;
|
|
189
|
+
type_arguments: [string];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
export declare namespace ecdsa_k1 { }
|
|
193
|
+
export declare namespace ed25519 { }
|
|
194
|
+
export declare class elliptic_curve extends SuiBaseProcessor {
|
|
195
|
+
constructor(options: SuiBindOptions);
|
|
196
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
197
|
+
static bind(options?: Partial<SuiBindOptions>): elliptic_curve;
|
|
198
|
+
onEventRistrettoPoint(func: (event: elliptic_curve.RistrettoPointInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): elliptic_curve;
|
|
199
|
+
onEventScalar(func: (event: elliptic_curve.ScalarInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): elliptic_curve;
|
|
200
|
+
}
|
|
201
|
+
export declare namespace elliptic_curve {
|
|
202
|
+
class RistrettoPoint {
|
|
203
|
+
static TYPE_QNAME: string;
|
|
204
|
+
value: string;
|
|
205
|
+
}
|
|
206
|
+
interface RistrettoPointInstance extends TypedEventInstance<RistrettoPoint> {
|
|
207
|
+
fields_decoded: RistrettoPoint;
|
|
208
|
+
type_arguments: [];
|
|
209
|
+
}
|
|
210
|
+
class Scalar {
|
|
211
|
+
static TYPE_QNAME: string;
|
|
212
|
+
value: string;
|
|
213
|
+
}
|
|
214
|
+
interface ScalarInstance extends TypedEventInstance<Scalar> {
|
|
215
|
+
fields_decoded: Scalar;
|
|
216
|
+
type_arguments: [];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
export declare namespace epoch_time_lock {
|
|
220
|
+
class EpochTimeLock {
|
|
221
|
+
static TYPE_QNAME: string;
|
|
222
|
+
epoch: bigint;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
export declare namespace erc721_metadata {
|
|
226
|
+
class ERC721Metadata {
|
|
227
|
+
static TYPE_QNAME: string;
|
|
228
|
+
token_id: erc721_metadata.TokenID;
|
|
229
|
+
name: string;
|
|
230
|
+
token_uri: url.Url;
|
|
231
|
+
}
|
|
232
|
+
class TokenID {
|
|
233
|
+
static TYPE_QNAME: string;
|
|
234
|
+
id: bigint;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export declare namespace event { }
|
|
238
|
+
export declare namespace genesis { }
|
|
239
|
+
export declare class groth16 extends SuiBaseProcessor {
|
|
240
|
+
constructor(options: SuiBindOptions);
|
|
241
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
242
|
+
static bind(options?: Partial<SuiBindOptions>): groth16;
|
|
243
|
+
onEventPreparedVerifyingKey(func: (event: groth16.PreparedVerifyingKeyInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
|
244
|
+
onEventProofPoints(func: (event: groth16.ProofPointsInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
|
245
|
+
onEventPublicProofInputs(func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): groth16;
|
|
246
|
+
}
|
|
247
|
+
export declare namespace groth16 {
|
|
248
|
+
class PreparedVerifyingKey {
|
|
249
|
+
static TYPE_QNAME: string;
|
|
250
|
+
vk_gamma_abc_g1_bytes: string;
|
|
251
|
+
alpha_g1_beta_g2_bytes: string;
|
|
252
|
+
gamma_g2_neg_pc_bytes: string;
|
|
253
|
+
delta_g2_neg_pc_bytes: string;
|
|
254
|
+
}
|
|
255
|
+
interface PreparedVerifyingKeyInstance extends TypedEventInstance<PreparedVerifyingKey> {
|
|
256
|
+
fields_decoded: PreparedVerifyingKey;
|
|
257
|
+
type_arguments: [];
|
|
258
|
+
}
|
|
259
|
+
class ProofPoints {
|
|
260
|
+
static TYPE_QNAME: string;
|
|
261
|
+
bytes: string;
|
|
262
|
+
}
|
|
263
|
+
interface ProofPointsInstance extends TypedEventInstance<ProofPoints> {
|
|
264
|
+
fields_decoded: ProofPoints;
|
|
265
|
+
type_arguments: [];
|
|
266
|
+
}
|
|
267
|
+
class PublicProofInputs {
|
|
268
|
+
static TYPE_QNAME: string;
|
|
269
|
+
bytes: string;
|
|
270
|
+
}
|
|
271
|
+
interface PublicProofInputsInstance extends TypedEventInstance<PublicProofInputs> {
|
|
272
|
+
fields_decoded: PublicProofInputs;
|
|
273
|
+
type_arguments: [];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
export declare namespace hex { }
|
|
277
|
+
export declare namespace hmac { }
|
|
278
|
+
export declare class immutable_external_resource extends SuiBaseProcessor {
|
|
279
|
+
constructor(options: SuiBindOptions);
|
|
280
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
281
|
+
static bind(options?: Partial<SuiBindOptions>): immutable_external_resource;
|
|
282
|
+
onEventImmutableExternalResource(func: (event: immutable_external_resource.ImmutableExternalResourceInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): immutable_external_resource;
|
|
283
|
+
}
|
|
284
|
+
export declare namespace immutable_external_resource {
|
|
285
|
+
class ImmutableExternalResource {
|
|
286
|
+
static TYPE_QNAME: string;
|
|
287
|
+
url: url.Url;
|
|
288
|
+
digest: digest.Sha3256Digest;
|
|
289
|
+
}
|
|
290
|
+
interface ImmutableExternalResourceInstance extends TypedEventInstance<ImmutableExternalResource> {
|
|
291
|
+
fields_decoded: ImmutableExternalResource;
|
|
292
|
+
type_arguments: [];
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
export declare namespace linked_table {
|
|
296
|
+
class LinkedTable<T0, T1> {
|
|
297
|
+
static TYPE_QNAME: string;
|
|
298
|
+
id: object_.UID;
|
|
299
|
+
size: bigint;
|
|
300
|
+
head: _0x1.option.Option<T0>;
|
|
301
|
+
tail: _0x1.option.Option<T0>;
|
|
302
|
+
}
|
|
303
|
+
class Node<T0, T1> {
|
|
304
|
+
static TYPE_QNAME: string;
|
|
305
|
+
prev: _0x1.option.Option<T0>;
|
|
306
|
+
next: _0x1.option.Option<T0>;
|
|
307
|
+
value: T1;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
export declare class locked_coin extends SuiBaseProcessor {
|
|
311
|
+
constructor(options: SuiBindOptions);
|
|
312
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
313
|
+
static bind(options?: Partial<SuiBindOptions>): locked_coin;
|
|
314
|
+
onEntryLockCoin(func: (call: locked_coin.LockCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): locked_coin;
|
|
315
|
+
onEntryUnlockCoin(func: (call: locked_coin.UnlockCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): locked_coin;
|
|
316
|
+
}
|
|
317
|
+
export declare namespace locked_coin {
|
|
318
|
+
class LockedCoin<T0> {
|
|
319
|
+
static TYPE_QNAME: string;
|
|
320
|
+
id: object_.UID;
|
|
321
|
+
balance: balance.Balance<T0>;
|
|
322
|
+
locked_until_epoch: epoch_time_lock.EpochTimeLock;
|
|
323
|
+
}
|
|
324
|
+
interface LockCoinPayload<T0 = any> extends TypedEntryFunctionPayload<[string, SuiAddress, bigint]> {
|
|
325
|
+
arguments_decoded: [string, SuiAddress, bigint];
|
|
326
|
+
type_arguments: [string];
|
|
327
|
+
}
|
|
328
|
+
interface UnlockCoinPayload<T0 = any> extends TypedEntryFunctionPayload<[locked_coin.LockedCoin<T0>]> {
|
|
329
|
+
arguments_decoded: [locked_coin.LockedCoin<T0>];
|
|
330
|
+
type_arguments: [string];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
export declare namespace math { }
|
|
334
|
+
export declare class object_ extends SuiBaseProcessor {
|
|
335
|
+
constructor(options: SuiBindOptions);
|
|
336
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
337
|
+
static bind(options?: Partial<SuiBindOptions>): object_;
|
|
338
|
+
onEventID(func: (event: object_.IDInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): object_;
|
|
339
|
+
}
|
|
340
|
+
export declare namespace object_ {
|
|
341
|
+
class ID {
|
|
342
|
+
static TYPE_QNAME: string;
|
|
343
|
+
bytes: SuiAddress;
|
|
344
|
+
}
|
|
345
|
+
interface IDInstance extends TypedEventInstance<ID> {
|
|
346
|
+
fields_decoded: ID;
|
|
347
|
+
type_arguments: [];
|
|
348
|
+
}
|
|
349
|
+
class UID {
|
|
350
|
+
static TYPE_QNAME: string;
|
|
351
|
+
id: string;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
export declare namespace object_bag {
|
|
355
|
+
class ObjectBag {
|
|
356
|
+
static TYPE_QNAME: string;
|
|
357
|
+
id: object_.UID;
|
|
358
|
+
size: bigint;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
export declare namespace object_table {
|
|
362
|
+
class ObjectTable<T0, T1> {
|
|
363
|
+
static TYPE_QNAME: string;
|
|
364
|
+
id: object_.UID;
|
|
365
|
+
size: bigint;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
export declare class pay extends SuiBaseProcessor {
|
|
369
|
+
constructor(options: SuiBindOptions);
|
|
370
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
371
|
+
static bind(options?: Partial<SuiBindOptions>): pay;
|
|
372
|
+
onEntryDivideAndKeep(func: (call: pay.DivideAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
373
|
+
onEntryJoin(func: (call: pay.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
374
|
+
onEntryJoinVec(func: (call: pay.JoinVecPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
375
|
+
onEntryJoinVecAndTransfer(func: (call: pay.JoinVecAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
376
|
+
onEntrySplit(func: (call: pay.SplitPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
377
|
+
onEntrySplitAndTransfer(func: (call: pay.SplitAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
378
|
+
onEntrySplitVec(func: (call: pay.SplitVecPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): pay;
|
|
379
|
+
}
|
|
380
|
+
export declare namespace pay {
|
|
381
|
+
interface DivideAndKeepPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, bigint]> {
|
|
382
|
+
arguments_decoded: [SuiAddress, bigint];
|
|
383
|
+
type_arguments: [string];
|
|
384
|
+
}
|
|
385
|
+
interface JoinPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
386
|
+
arguments_decoded: [SuiAddress];
|
|
387
|
+
type_arguments: [string];
|
|
388
|
+
}
|
|
389
|
+
interface JoinVecPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
390
|
+
arguments_decoded: [SuiAddress];
|
|
391
|
+
type_arguments: [string];
|
|
392
|
+
}
|
|
393
|
+
interface JoinVecAndTransferPayload<T0 = any> extends TypedEntryFunctionPayload<[string[]]> {
|
|
394
|
+
arguments_decoded: [string[]];
|
|
395
|
+
type_arguments: [string];
|
|
396
|
+
}
|
|
397
|
+
interface SplitPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, bigint]> {
|
|
398
|
+
arguments_decoded: [SuiAddress, bigint];
|
|
399
|
+
type_arguments: [string];
|
|
400
|
+
}
|
|
401
|
+
interface SplitAndTransferPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, bigint, SuiAddress]> {
|
|
402
|
+
arguments_decoded: [SuiAddress, bigint, SuiAddress];
|
|
403
|
+
type_arguments: [string];
|
|
404
|
+
}
|
|
405
|
+
interface SplitVecPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, bigint[]]> {
|
|
406
|
+
arguments_decoded: [SuiAddress, bigint[]];
|
|
407
|
+
type_arguments: [string];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
export declare namespace priority_queue {
|
|
411
|
+
class Entry<T0> {
|
|
412
|
+
static TYPE_QNAME: string;
|
|
413
|
+
priority: bigint;
|
|
414
|
+
value: T0;
|
|
415
|
+
}
|
|
416
|
+
class PriorityQueue<T0> {
|
|
417
|
+
static TYPE_QNAME: string;
|
|
418
|
+
entries: priority_queue.Entry<T0>[];
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
export declare namespace publisher {
|
|
422
|
+
class Publisher {
|
|
423
|
+
static TYPE_QNAME: string;
|
|
424
|
+
id: object_.UID;
|
|
425
|
+
package: _0x1.ascii.String;
|
|
426
|
+
module_name: _0x1.ascii.String;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
export declare class safe extends SuiBaseProcessor {
|
|
430
|
+
constructor(options: SuiBindOptions);
|
|
431
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
432
|
+
static bind(options?: Partial<SuiBindOptions>): safe;
|
|
433
|
+
onEntryCreate(func: (call: safe.CreatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
|
434
|
+
onEntryCreateEmpty(func: (call: safe.CreateEmptyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
|
435
|
+
onEntryDeposit(func: (call: safe.DepositPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
|
436
|
+
onEntryRevokeTransferCapability(func: (call: safe.RevokeTransferCapabilityPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
|
437
|
+
onEntrySelfRevokeTransferCapability(func: (call: safe.SelfRevokeTransferCapabilityPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
|
438
|
+
onEntryWithdraw(func: (call: safe.WithdrawPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): safe;
|
|
439
|
+
}
|
|
440
|
+
export declare namespace safe {
|
|
441
|
+
class OwnerCapability<T0> {
|
|
442
|
+
static TYPE_QNAME: string;
|
|
443
|
+
id: object_.UID;
|
|
444
|
+
safe_id: string;
|
|
445
|
+
}
|
|
446
|
+
class Safe<T0> {
|
|
447
|
+
static TYPE_QNAME: string;
|
|
448
|
+
id: object_.UID;
|
|
449
|
+
balance: balance.Balance<T0>;
|
|
450
|
+
allowed_safes: vec_set.VecSet<string>;
|
|
451
|
+
}
|
|
452
|
+
class TransferCapability<T0> {
|
|
453
|
+
static TYPE_QNAME: string;
|
|
454
|
+
id: object_.UID;
|
|
455
|
+
safe_id: string;
|
|
456
|
+
amount: bigint;
|
|
457
|
+
}
|
|
458
|
+
interface CreatePayload<T0 = any> extends TypedEntryFunctionPayload<[string]> {
|
|
459
|
+
arguments_decoded: [string];
|
|
460
|
+
type_arguments: [string];
|
|
461
|
+
}
|
|
462
|
+
interface CreateEmptyPayload<T0 = any> extends TypedEntryFunctionPayload<[]> {
|
|
463
|
+
arguments_decoded: [];
|
|
464
|
+
type_arguments: [string];
|
|
465
|
+
}
|
|
466
|
+
interface DepositPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
467
|
+
arguments_decoded: [SuiAddress];
|
|
468
|
+
type_arguments: [string];
|
|
469
|
+
}
|
|
470
|
+
interface RevokeTransferCapabilityPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
471
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
472
|
+
type_arguments: [string];
|
|
473
|
+
}
|
|
474
|
+
interface SelfRevokeTransferCapabilityPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
475
|
+
arguments_decoded: [SuiAddress];
|
|
476
|
+
type_arguments: [string];
|
|
477
|
+
}
|
|
478
|
+
interface WithdrawPayload<T0 = any> extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress, bigint]> {
|
|
479
|
+
arguments_decoded: [SuiAddress, SuiAddress, bigint];
|
|
480
|
+
type_arguments: [string];
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
export declare class stake extends SuiBaseProcessor {
|
|
484
|
+
constructor(options: SuiBindOptions);
|
|
485
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
486
|
+
static bind(options?: Partial<SuiBindOptions>): stake;
|
|
487
|
+
onEntryBurn(func: (call: stake.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): stake;
|
|
488
|
+
}
|
|
489
|
+
export declare namespace stake {
|
|
490
|
+
class Stake {
|
|
491
|
+
static TYPE_QNAME: string;
|
|
492
|
+
id: object_.UID;
|
|
493
|
+
balance: balance.Balance<sui.SUI>;
|
|
494
|
+
locked_until_epoch: _0x1.option.Option<epoch_time_lock.EpochTimeLock>;
|
|
495
|
+
}
|
|
496
|
+
interface BurnPayload extends TypedEntryFunctionPayload<[stake.Stake]> {
|
|
497
|
+
arguments_decoded: [stake.Stake];
|
|
498
|
+
type_arguments: [];
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
export declare namespace stake_subsidy {
|
|
502
|
+
class StakeSubsidy {
|
|
503
|
+
static TYPE_QNAME: string;
|
|
504
|
+
epoch_counter: bigint;
|
|
505
|
+
balance: balance.Balance<sui.SUI>;
|
|
506
|
+
current_epoch_amount: bigint;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
export declare class staking_pool extends SuiBaseProcessor {
|
|
510
|
+
constructor(options: SuiBindOptions);
|
|
511
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
512
|
+
static bind(options?: Partial<SuiBindOptions>): staking_pool;
|
|
513
|
+
onEntryDestroyEmptyDelegation(func: (call: staking_pool.DestroyEmptyDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): staking_pool;
|
|
514
|
+
onEntryDestroyEmptyStakedSui(func: (call: staking_pool.DestroyEmptyStakedSuiPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): staking_pool;
|
|
515
|
+
onEntryWithdrawFromInactivePool(func: (call: staking_pool.WithdrawFromInactivePoolPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): staking_pool;
|
|
516
|
+
onEventPoolTokenExchangeRate(func: (event: staking_pool.PoolTokenExchangeRateInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): staking_pool;
|
|
517
|
+
}
|
|
518
|
+
export declare namespace staking_pool {
|
|
519
|
+
class Delegation {
|
|
520
|
+
static TYPE_QNAME: string;
|
|
521
|
+
id: object_.UID;
|
|
522
|
+
staked_sui_id: string;
|
|
523
|
+
pool_tokens: balance.Balance<staking_pool.DelegationToken>;
|
|
524
|
+
principal_sui_amount: bigint;
|
|
525
|
+
}
|
|
526
|
+
class DelegationToken {
|
|
527
|
+
static TYPE_QNAME: string;
|
|
528
|
+
dummy_field: Boolean;
|
|
529
|
+
}
|
|
530
|
+
class InactiveStakingPool {
|
|
531
|
+
static TYPE_QNAME: string;
|
|
532
|
+
id: object_.UID;
|
|
533
|
+
pool: staking_pool.StakingPool;
|
|
534
|
+
}
|
|
535
|
+
class PendingDelegationEntry {
|
|
536
|
+
static TYPE_QNAME: string;
|
|
537
|
+
delegator: SuiAddress;
|
|
538
|
+
sui_amount: bigint;
|
|
539
|
+
}
|
|
540
|
+
class PendingWithdrawEntry {
|
|
541
|
+
static TYPE_QNAME: string;
|
|
542
|
+
delegator: SuiAddress;
|
|
543
|
+
principal_withdraw_amount: bigint;
|
|
544
|
+
withdrawn_pool_tokens: balance.Balance<staking_pool.DelegationToken>;
|
|
545
|
+
}
|
|
546
|
+
class PoolTokenExchangeRate {
|
|
547
|
+
static TYPE_QNAME: string;
|
|
548
|
+
sui_amount: bigint;
|
|
549
|
+
pool_token_amount: bigint;
|
|
550
|
+
}
|
|
551
|
+
interface PoolTokenExchangeRateInstance extends TypedEventInstance<PoolTokenExchangeRate> {
|
|
552
|
+
fields_decoded: PoolTokenExchangeRate;
|
|
553
|
+
type_arguments: [];
|
|
554
|
+
}
|
|
555
|
+
class StakedSui {
|
|
556
|
+
static TYPE_QNAME: string;
|
|
557
|
+
id: object_.UID;
|
|
558
|
+
validator_address: SuiAddress;
|
|
559
|
+
pool_starting_epoch: bigint;
|
|
560
|
+
delegation_request_epoch: bigint;
|
|
561
|
+
principal: balance.Balance<sui.SUI>;
|
|
562
|
+
sui_token_lock: _0x1.option.Option<epoch_time_lock.EpochTimeLock>;
|
|
563
|
+
}
|
|
564
|
+
class StakingPool {
|
|
565
|
+
static TYPE_QNAME: string;
|
|
566
|
+
validator_address: SuiAddress;
|
|
567
|
+
starting_epoch: bigint;
|
|
568
|
+
sui_balance: bigint;
|
|
569
|
+
rewards_pool: balance.Balance<sui.SUI>;
|
|
570
|
+
delegation_token_supply: balance.Supply<staking_pool.DelegationToken>;
|
|
571
|
+
pending_delegations: linked_table.LinkedTable<string, staking_pool.PendingDelegationEntry>;
|
|
572
|
+
pending_withdraws: table_vec.TableVec<staking_pool.PendingWithdrawEntry>;
|
|
573
|
+
}
|
|
574
|
+
interface DestroyEmptyDelegationPayload extends TypedEntryFunctionPayload<[]> {
|
|
575
|
+
arguments_decoded: [];
|
|
576
|
+
type_arguments: [];
|
|
577
|
+
}
|
|
578
|
+
interface DestroyEmptyStakedSuiPayload extends TypedEntryFunctionPayload<[]> {
|
|
579
|
+
arguments_decoded: [];
|
|
580
|
+
type_arguments: [];
|
|
581
|
+
}
|
|
582
|
+
interface WithdrawFromInactivePoolPayload extends TypedEntryFunctionPayload<[
|
|
583
|
+
SuiAddress,
|
|
584
|
+
staking_pool.StakedSui,
|
|
585
|
+
staking_pool.Delegation
|
|
586
|
+
]> {
|
|
587
|
+
arguments_decoded: [
|
|
588
|
+
SuiAddress,
|
|
589
|
+
staking_pool.StakedSui,
|
|
590
|
+
staking_pool.Delegation
|
|
591
|
+
];
|
|
592
|
+
type_arguments: [];
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
export declare class sui extends SuiBaseProcessor {
|
|
596
|
+
constructor(options: SuiBindOptions);
|
|
597
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
598
|
+
static bind(options?: Partial<SuiBindOptions>): sui;
|
|
599
|
+
onEntryTransfer(func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui;
|
|
600
|
+
}
|
|
601
|
+
export declare namespace sui {
|
|
602
|
+
class SUI {
|
|
603
|
+
static TYPE_QNAME: string;
|
|
604
|
+
dummy_field: Boolean;
|
|
605
|
+
}
|
|
606
|
+
interface TransferPayload extends TypedEntryFunctionPayload<[string]> {
|
|
607
|
+
arguments_decoded: [string];
|
|
608
|
+
type_arguments: [];
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
export declare class sui_system extends SuiBaseProcessor {
|
|
612
|
+
constructor(options: SuiBindOptions);
|
|
613
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
614
|
+
static bind(options?: Partial<SuiBindOptions>): sui_system;
|
|
615
|
+
onEntryAdvanceEpoch(func: (call: sui_system.AdvanceEpochPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
616
|
+
onEntryAdvanceEpochSafeMode(func: (call: sui_system.AdvanceEpochSafeModePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
617
|
+
onEntryCancelDelegationRequest(func: (call: sui_system.CancelDelegationRequestPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
618
|
+
onEntryReportValidator(func: (call: sui_system.ReportValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
619
|
+
onEntryRequestAddDelegation(func: (call: sui_system.RequestAddDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
620
|
+
onEntryRequestAddDelegationMulCoin(func: (call: sui_system.RequestAddDelegationMulCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
621
|
+
onEntryRequestAddDelegationMulLockedCoin(func: (call: sui_system.RequestAddDelegationMulLockedCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
622
|
+
onEntryRequestAddDelegationWithLockedCoin(func: (call: sui_system.RequestAddDelegationWithLockedCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
623
|
+
onEntryRequestAddStake(func: (call: sui_system.RequestAddStakePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
624
|
+
onEntryRequestAddStakeWithLockedCoin(func: (call: sui_system.RequestAddStakeWithLockedCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
625
|
+
onEntryRequestAddValidator(func: (call: sui_system.RequestAddValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
626
|
+
onEntryRequestRemoveValidator(func: (call: sui_system.RequestRemoveValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
627
|
+
onEntryRequestSetCommissionRate(func: (call: sui_system.RequestSetCommissionRatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
628
|
+
onEntryRequestSetGasPrice(func: (call: sui_system.RequestSetGasPricePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
629
|
+
onEntryRequestSwitchDelegation(func: (call: sui_system.RequestSwitchDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
630
|
+
onEntryRequestWithdrawDelegation(func: (call: sui_system.RequestWithdrawDelegationPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
631
|
+
onEntryRequestWithdrawStake(func: (call: sui_system.RequestWithdrawStakePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
632
|
+
onEntryUndoReportValidator(func: (call: sui_system.UndoReportValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
|
|
633
|
+
onEventSystemEpochInfo(func: (event: sui_system.SystemEpochInfoInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): sui_system;
|
|
634
|
+
}
|
|
635
|
+
export declare namespace sui_system {
|
|
636
|
+
class SuiSystemState {
|
|
637
|
+
static TYPE_QNAME: string;
|
|
638
|
+
id: object_.UID;
|
|
639
|
+
epoch: bigint;
|
|
640
|
+
validators: validator_set.ValidatorSet;
|
|
641
|
+
sui_supply: balance.Supply<sui.SUI>;
|
|
642
|
+
storage_fund: balance.Balance<sui.SUI>;
|
|
643
|
+
parameters: sui_system.SystemParameters;
|
|
644
|
+
reference_gas_price: bigint;
|
|
645
|
+
validator_report_records: vec_map.VecMap<SuiAddress, vec_set.VecSet<SuiAddress>>;
|
|
646
|
+
stake_subsidy: stake_subsidy.StakeSubsidy;
|
|
647
|
+
safe_mode: Boolean;
|
|
648
|
+
}
|
|
649
|
+
class SystemEpochInfo {
|
|
650
|
+
static TYPE_QNAME: string;
|
|
651
|
+
epoch: bigint;
|
|
652
|
+
reference_gas_price: bigint;
|
|
653
|
+
total_stake: bigint;
|
|
654
|
+
storage_fund_inflows: bigint;
|
|
655
|
+
storage_fund_outflows: bigint;
|
|
656
|
+
storage_fund_balance: bigint;
|
|
657
|
+
stake_subsidy_amount: bigint;
|
|
658
|
+
total_gas_fees: bigint;
|
|
659
|
+
total_stake_rewards: bigint;
|
|
660
|
+
}
|
|
661
|
+
interface SystemEpochInfoInstance extends TypedEventInstance<SystemEpochInfo> {
|
|
662
|
+
fields_decoded: SystemEpochInfo;
|
|
663
|
+
type_arguments: [];
|
|
664
|
+
}
|
|
665
|
+
class SystemParameters {
|
|
666
|
+
static TYPE_QNAME: string;
|
|
667
|
+
min_validator_stake: bigint;
|
|
668
|
+
max_validator_candidate_count: bigint;
|
|
669
|
+
storage_gas_price: bigint;
|
|
670
|
+
}
|
|
671
|
+
interface AdvanceEpochPayload extends TypedEntryFunctionPayload<[
|
|
672
|
+
SuiAddress,
|
|
673
|
+
bigint,
|
|
674
|
+
bigint,
|
|
675
|
+
bigint,
|
|
676
|
+
bigint,
|
|
677
|
+
bigint,
|
|
678
|
+
bigint,
|
|
679
|
+
bigint
|
|
680
|
+
]> {
|
|
681
|
+
arguments_decoded: [
|
|
682
|
+
SuiAddress,
|
|
683
|
+
bigint,
|
|
684
|
+
bigint,
|
|
685
|
+
bigint,
|
|
686
|
+
bigint,
|
|
687
|
+
bigint,
|
|
688
|
+
bigint,
|
|
689
|
+
bigint
|
|
690
|
+
];
|
|
691
|
+
type_arguments: [];
|
|
692
|
+
}
|
|
693
|
+
interface AdvanceEpochSafeModePayload extends TypedEntryFunctionPayload<[SuiAddress, bigint]> {
|
|
694
|
+
arguments_decoded: [SuiAddress, bigint];
|
|
695
|
+
type_arguments: [];
|
|
696
|
+
}
|
|
697
|
+
interface CancelDelegationRequestPayload extends TypedEntryFunctionPayload<[SuiAddress, staking_pool.StakedSui]> {
|
|
698
|
+
arguments_decoded: [SuiAddress, staking_pool.StakedSui];
|
|
699
|
+
type_arguments: [];
|
|
700
|
+
}
|
|
701
|
+
interface ReportValidatorPayload extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
702
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
703
|
+
type_arguments: [];
|
|
704
|
+
}
|
|
705
|
+
interface RequestAddDelegationPayload extends TypedEntryFunctionPayload<[SuiAddress, string, SuiAddress]> {
|
|
706
|
+
arguments_decoded: [SuiAddress, string, SuiAddress];
|
|
707
|
+
type_arguments: [];
|
|
708
|
+
}
|
|
709
|
+
interface RequestAddDelegationMulCoinPayload extends TypedEntryFunctionPayload<[
|
|
710
|
+
SuiAddress,
|
|
711
|
+
string[],
|
|
712
|
+
_0x1.option.Option<bigint>,
|
|
713
|
+
SuiAddress
|
|
714
|
+
]> {
|
|
715
|
+
arguments_decoded: [
|
|
716
|
+
SuiAddress,
|
|
717
|
+
string[],
|
|
718
|
+
_0x1.option.Option<bigint>,
|
|
719
|
+
SuiAddress
|
|
720
|
+
];
|
|
721
|
+
type_arguments: [];
|
|
722
|
+
}
|
|
723
|
+
interface RequestAddDelegationMulLockedCoinPayload extends TypedEntryFunctionPayload<[
|
|
724
|
+
SuiAddress,
|
|
725
|
+
locked_coin.LockedCoin<sui.SUI>[],
|
|
726
|
+
_0x1.option.Option<bigint>,
|
|
727
|
+
SuiAddress
|
|
728
|
+
]> {
|
|
729
|
+
arguments_decoded: [
|
|
730
|
+
SuiAddress,
|
|
731
|
+
locked_coin.LockedCoin<sui.SUI>[],
|
|
732
|
+
_0x1.option.Option<bigint>,
|
|
733
|
+
SuiAddress
|
|
734
|
+
];
|
|
735
|
+
type_arguments: [];
|
|
736
|
+
}
|
|
737
|
+
interface RequestAddDelegationWithLockedCoinPayload extends TypedEntryFunctionPayload<[
|
|
738
|
+
SuiAddress,
|
|
739
|
+
locked_coin.LockedCoin<sui.SUI>,
|
|
740
|
+
SuiAddress
|
|
741
|
+
]> {
|
|
742
|
+
arguments_decoded: [
|
|
743
|
+
SuiAddress,
|
|
744
|
+
locked_coin.LockedCoin<sui.SUI>,
|
|
745
|
+
SuiAddress
|
|
746
|
+
];
|
|
747
|
+
type_arguments: [];
|
|
748
|
+
}
|
|
749
|
+
interface RequestAddStakePayload extends TypedEntryFunctionPayload<[SuiAddress, string]> {
|
|
750
|
+
arguments_decoded: [SuiAddress, string];
|
|
751
|
+
type_arguments: [];
|
|
752
|
+
}
|
|
753
|
+
interface RequestAddStakeWithLockedCoinPayload extends TypedEntryFunctionPayload<[
|
|
754
|
+
SuiAddress,
|
|
755
|
+
locked_coin.LockedCoin<sui.SUI>
|
|
756
|
+
]> {
|
|
757
|
+
arguments_decoded: [SuiAddress, locked_coin.LockedCoin<sui.SUI>];
|
|
758
|
+
type_arguments: [];
|
|
759
|
+
}
|
|
760
|
+
interface RequestAddValidatorPayload extends TypedEntryFunctionPayload<[
|
|
761
|
+
SuiAddress,
|
|
762
|
+
string,
|
|
763
|
+
string,
|
|
764
|
+
string,
|
|
765
|
+
string,
|
|
766
|
+
string,
|
|
767
|
+
string,
|
|
768
|
+
string,
|
|
769
|
+
string,
|
|
770
|
+
string,
|
|
771
|
+
string,
|
|
772
|
+
string,
|
|
773
|
+
string,
|
|
774
|
+
bigint,
|
|
775
|
+
bigint
|
|
776
|
+
]> {
|
|
777
|
+
arguments_decoded: [
|
|
778
|
+
SuiAddress,
|
|
779
|
+
string,
|
|
780
|
+
string,
|
|
781
|
+
string,
|
|
782
|
+
string,
|
|
783
|
+
string,
|
|
784
|
+
string,
|
|
785
|
+
string,
|
|
786
|
+
string,
|
|
787
|
+
string,
|
|
788
|
+
string,
|
|
789
|
+
string,
|
|
790
|
+
string,
|
|
791
|
+
bigint,
|
|
792
|
+
bigint
|
|
793
|
+
];
|
|
794
|
+
type_arguments: [];
|
|
795
|
+
}
|
|
796
|
+
interface RequestRemoveValidatorPayload extends TypedEntryFunctionPayload<[SuiAddress]> {
|
|
797
|
+
arguments_decoded: [SuiAddress];
|
|
798
|
+
type_arguments: [];
|
|
799
|
+
}
|
|
800
|
+
interface RequestSetCommissionRatePayload extends TypedEntryFunctionPayload<[SuiAddress, bigint]> {
|
|
801
|
+
arguments_decoded: [SuiAddress, bigint];
|
|
802
|
+
type_arguments: [];
|
|
803
|
+
}
|
|
804
|
+
interface RequestSetGasPricePayload extends TypedEntryFunctionPayload<[SuiAddress, bigint]> {
|
|
805
|
+
arguments_decoded: [SuiAddress, bigint];
|
|
806
|
+
type_arguments: [];
|
|
807
|
+
}
|
|
808
|
+
interface RequestSwitchDelegationPayload extends TypedEntryFunctionPayload<[
|
|
809
|
+
SuiAddress,
|
|
810
|
+
staking_pool.Delegation,
|
|
811
|
+
staking_pool.StakedSui,
|
|
812
|
+
SuiAddress
|
|
813
|
+
]> {
|
|
814
|
+
arguments_decoded: [
|
|
815
|
+
SuiAddress,
|
|
816
|
+
staking_pool.Delegation,
|
|
817
|
+
staking_pool.StakedSui,
|
|
818
|
+
SuiAddress
|
|
819
|
+
];
|
|
820
|
+
type_arguments: [];
|
|
821
|
+
}
|
|
822
|
+
interface RequestWithdrawDelegationPayload extends TypedEntryFunctionPayload<[
|
|
823
|
+
SuiAddress,
|
|
824
|
+
staking_pool.Delegation,
|
|
825
|
+
staking_pool.StakedSui
|
|
826
|
+
]> {
|
|
827
|
+
arguments_decoded: [
|
|
828
|
+
SuiAddress,
|
|
829
|
+
staking_pool.Delegation,
|
|
830
|
+
staking_pool.StakedSui
|
|
831
|
+
];
|
|
832
|
+
type_arguments: [];
|
|
833
|
+
}
|
|
834
|
+
interface RequestWithdrawStakePayload extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress, bigint]> {
|
|
835
|
+
arguments_decoded: [SuiAddress, SuiAddress, bigint];
|
|
836
|
+
type_arguments: [];
|
|
837
|
+
}
|
|
838
|
+
interface UndoReportValidatorPayload extends TypedEntryFunctionPayload<[SuiAddress, SuiAddress]> {
|
|
839
|
+
arguments_decoded: [SuiAddress, SuiAddress];
|
|
840
|
+
type_arguments: [];
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
export declare namespace table {
|
|
844
|
+
class Table<T0, T1> {
|
|
845
|
+
static TYPE_QNAME: string;
|
|
846
|
+
id: object_.UID;
|
|
847
|
+
size: bigint;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
export declare namespace table_vec {
|
|
851
|
+
class TableVec<T0> {
|
|
852
|
+
static TYPE_QNAME: string;
|
|
853
|
+
contents: table.Table<bigint, T0>;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
export declare namespace transfer { }
|
|
857
|
+
export declare namespace tx_context {
|
|
858
|
+
class TxContext {
|
|
859
|
+
static TYPE_QNAME: string;
|
|
860
|
+
sender: SuiAddress;
|
|
861
|
+
tx_hash: string;
|
|
862
|
+
epoch: bigint;
|
|
863
|
+
ids_created: bigint;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
export declare class typed_id extends SuiBaseProcessor {
|
|
867
|
+
constructor(options: SuiBindOptions);
|
|
868
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
869
|
+
static bind(options?: Partial<SuiBindOptions>): typed_id;
|
|
870
|
+
onEventTypedID(func: (event: typed_id.TypedIDInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): typed_id;
|
|
871
|
+
}
|
|
872
|
+
export declare namespace typed_id {
|
|
873
|
+
class TypedID<T0> {
|
|
874
|
+
static TYPE_QNAME: string;
|
|
875
|
+
id: string;
|
|
876
|
+
}
|
|
877
|
+
interface TypedIDInstance extends TypedEventInstance<TypedID<any>> {
|
|
878
|
+
fields_decoded: TypedID<any>;
|
|
879
|
+
type_arguments: [string];
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
export declare namespace types { }
|
|
883
|
+
export declare class url extends SuiBaseProcessor {
|
|
884
|
+
constructor(options: SuiBindOptions);
|
|
885
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
886
|
+
static bind(options?: Partial<SuiBindOptions>): url;
|
|
887
|
+
onEventUrl(func: (event: url.UrlInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): url;
|
|
888
|
+
}
|
|
889
|
+
export declare namespace url {
|
|
890
|
+
class Url {
|
|
891
|
+
static TYPE_QNAME: string;
|
|
892
|
+
url: _0x1.ascii.String;
|
|
893
|
+
}
|
|
894
|
+
interface UrlInstance extends TypedEventInstance<Url> {
|
|
895
|
+
fields_decoded: Url;
|
|
896
|
+
type_arguments: [];
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
export declare class validator extends SuiBaseProcessor {
|
|
900
|
+
constructor(options: SuiBindOptions);
|
|
901
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
902
|
+
static bind(options?: Partial<SuiBindOptions>): validator;
|
|
903
|
+
onEventValidatorMetadata(func: (event: validator.ValidatorMetadataInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator;
|
|
904
|
+
}
|
|
905
|
+
export declare namespace validator {
|
|
906
|
+
class Validator {
|
|
907
|
+
static TYPE_QNAME: string;
|
|
908
|
+
metadata: validator.ValidatorMetadata;
|
|
909
|
+
voting_power: bigint;
|
|
910
|
+
stake_amount: bigint;
|
|
911
|
+
pending_stake: bigint;
|
|
912
|
+
pending_withdraw: bigint;
|
|
913
|
+
gas_price: bigint;
|
|
914
|
+
delegation_staking_pool: staking_pool.StakingPool;
|
|
915
|
+
commission_rate: bigint;
|
|
916
|
+
}
|
|
917
|
+
class ValidatorMetadata {
|
|
918
|
+
static TYPE_QNAME: string;
|
|
919
|
+
sui_address: SuiAddress;
|
|
920
|
+
pubkey_bytes: string;
|
|
921
|
+
network_pubkey_bytes: string;
|
|
922
|
+
worker_pubkey_bytes: string;
|
|
923
|
+
proof_of_possession: string;
|
|
924
|
+
name: string;
|
|
925
|
+
description: string;
|
|
926
|
+
image_url: url.Url;
|
|
927
|
+
project_url: url.Url;
|
|
928
|
+
net_address: string;
|
|
929
|
+
consensus_address: string;
|
|
930
|
+
worker_address: string;
|
|
931
|
+
next_epoch_stake: bigint;
|
|
932
|
+
next_epoch_delegation: bigint;
|
|
933
|
+
next_epoch_gas_price: bigint;
|
|
934
|
+
next_epoch_commission_rate: bigint;
|
|
935
|
+
}
|
|
936
|
+
interface ValidatorMetadataInstance extends TypedEventInstance<ValidatorMetadata> {
|
|
937
|
+
fields_decoded: ValidatorMetadata;
|
|
938
|
+
type_arguments: [];
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
export declare class validator_set extends SuiBaseProcessor {
|
|
942
|
+
constructor(options: SuiBindOptions);
|
|
943
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
944
|
+
static bind(options?: Partial<SuiBindOptions>): validator_set;
|
|
945
|
+
onEventDelegationRequestEvent(func: (event: validator_set.DelegationRequestEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
|
|
946
|
+
onEventValidatorEpochInfo(func: (event: validator_set.ValidatorEpochInfoInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
|
|
947
|
+
onEventValidatorPair(func: (event: validator_set.ValidatorPairInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
|
|
948
|
+
}
|
|
949
|
+
export declare namespace validator_set {
|
|
950
|
+
class DelegationRequestEvent {
|
|
951
|
+
static TYPE_QNAME: string;
|
|
952
|
+
validator_address: SuiAddress;
|
|
953
|
+
delegator_address: SuiAddress;
|
|
954
|
+
epoch: bigint;
|
|
955
|
+
amount: bigint;
|
|
956
|
+
}
|
|
957
|
+
interface DelegationRequestEventInstance extends TypedEventInstance<DelegationRequestEvent> {
|
|
958
|
+
fields_decoded: DelegationRequestEvent;
|
|
959
|
+
type_arguments: [];
|
|
960
|
+
}
|
|
961
|
+
class ValidatorEpochInfo {
|
|
962
|
+
static TYPE_QNAME: string;
|
|
963
|
+
epoch: bigint;
|
|
964
|
+
validator_address: SuiAddress;
|
|
965
|
+
reference_gas_survey_quote: bigint;
|
|
966
|
+
validator_stake: bigint;
|
|
967
|
+
delegated_stake: bigint;
|
|
968
|
+
commission_rate: bigint;
|
|
969
|
+
stake_rewards: bigint;
|
|
970
|
+
pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
|
|
971
|
+
tallying_rule_reporters: SuiAddress[];
|
|
972
|
+
tallying_rule_global_score: bigint;
|
|
973
|
+
}
|
|
974
|
+
interface ValidatorEpochInfoInstance extends TypedEventInstance<ValidatorEpochInfo> {
|
|
975
|
+
fields_decoded: ValidatorEpochInfo;
|
|
976
|
+
type_arguments: [];
|
|
977
|
+
}
|
|
978
|
+
class ValidatorPair {
|
|
979
|
+
static TYPE_QNAME: string;
|
|
980
|
+
from: SuiAddress;
|
|
981
|
+
to: SuiAddress;
|
|
982
|
+
}
|
|
983
|
+
interface ValidatorPairInstance extends TypedEventInstance<ValidatorPair> {
|
|
984
|
+
fields_decoded: ValidatorPair;
|
|
985
|
+
type_arguments: [];
|
|
986
|
+
}
|
|
987
|
+
class ValidatorSet {
|
|
988
|
+
static TYPE_QNAME: string;
|
|
989
|
+
total_validator_stake: bigint;
|
|
990
|
+
total_delegation_stake: bigint;
|
|
991
|
+
active_validators: validator.Validator[];
|
|
992
|
+
pending_validators: validator.Validator[];
|
|
993
|
+
pending_removals: bigint[];
|
|
994
|
+
next_epoch_validators: validator.ValidatorMetadata[];
|
|
995
|
+
pending_delegation_switches: vec_map.VecMap<validator_set.ValidatorPair, table_vec.TableVec<staking_pool.PendingWithdrawEntry>>;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
export declare class vec_map extends SuiBaseProcessor {
|
|
999
|
+
constructor(options: SuiBindOptions);
|
|
1000
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
1001
|
+
static bind(options?: Partial<SuiBindOptions>): vec_map;
|
|
1002
|
+
onEventEntry(func: (event: vec_map.EntryInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): vec_map;
|
|
1003
|
+
onEventVecMap(func: (event: vec_map.VecMapInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): vec_map;
|
|
1004
|
+
}
|
|
1005
|
+
export declare namespace vec_map {
|
|
1006
|
+
class Entry<T0, T1> {
|
|
1007
|
+
static TYPE_QNAME: string;
|
|
1008
|
+
key: T0;
|
|
1009
|
+
value: T1;
|
|
1010
|
+
}
|
|
1011
|
+
interface EntryInstance extends TypedEventInstance<Entry<any, any>> {
|
|
1012
|
+
fields_decoded: Entry<any, any>;
|
|
1013
|
+
type_arguments: [string, string];
|
|
1014
|
+
}
|
|
1015
|
+
class VecMap<T0, T1> {
|
|
1016
|
+
static TYPE_QNAME: string;
|
|
1017
|
+
contents: vec_map.Entry<T0, T1>[];
|
|
1018
|
+
}
|
|
1019
|
+
interface VecMapInstance extends TypedEventInstance<VecMap<any, any>> {
|
|
1020
|
+
fields_decoded: VecMap<any, any>;
|
|
1021
|
+
type_arguments: [string, string];
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
export declare class vec_set extends SuiBaseProcessor {
|
|
1025
|
+
constructor(options: SuiBindOptions);
|
|
1026
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
|
1027
|
+
static bind(options?: Partial<SuiBindOptions>): vec_set;
|
|
1028
|
+
onEventVecSet(func: (event: vec_set.VecSetInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): vec_set;
|
|
1029
|
+
}
|
|
1030
|
+
export declare namespace vec_set {
|
|
1031
|
+
class VecSet<T0> {
|
|
1032
|
+
static TYPE_QNAME: string;
|
|
1033
|
+
contents: T0[] | string;
|
|
1034
|
+
}
|
|
1035
|
+
interface VecSetInstance extends TypedEventInstance<VecSet<any>> {
|
|
1036
|
+
fields_decoded: VecSet<any>;
|
|
1037
|
+
type_arguments: [string];
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
export declare namespace voting_power {
|
|
1041
|
+
class VotingPowerInfo {
|
|
1042
|
+
static TYPE_QNAME: string;
|
|
1043
|
+
validator_index: bigint;
|
|
1044
|
+
voting_power: bigint;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
export declare function loadAllTypes(coder: MoveCoder): void;
|