@sentio/sdk 1.37.0-rc.2 → 1.37.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/builtin/index.d.ts +0 -2
- package/lib/builtin/index.js +1 -3
- package/lib/builtin/index.js.map +1 -1
- package/lib/core/eth-plugin.js +12 -15
- package/lib/core/eth-plugin.js.map +1 -1
- package/lib/core/index.d.ts +0 -4
- package/lib/core/index.js +1 -9
- package/lib/core/index.js.map +1 -1
- package/lib/core/sui-plugin.js +1 -1
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -14
- package/lib/index.js.map +1 -1
- package/lib/service.d.ts +0 -4
- package/lib/service.js +40 -71
- package/lib/service.js.map +1 -1
- package/package.json +10 -20
- package/src/builtin/index.ts +1 -4
- package/src/core/eth-plugin.ts +5 -8
- package/src/core/index.ts +0 -5
- package/src/core/sui-plugin.ts +2 -2
- package/src/index.ts +3 -1
- package/src/service.ts +13 -71
- package/lib/aptos/api.d.ts +0 -2
- package/lib/aptos/api.js +0 -14
- package/lib/aptos/api.js.map +0 -1
- package/lib/aptos/aptos-plugin.d.ts +0 -14
- package/lib/aptos/aptos-plugin.js +0 -185
- package/lib/aptos/aptos-plugin.js.map +0 -1
- package/lib/aptos/aptos-processor.d.ts +0 -75
- package/lib/aptos/aptos-processor.js +0 -193
- package/lib/aptos/aptos-processor.js.map +0 -1
- package/lib/aptos/context.d.ts +0 -22
- package/lib/aptos/context.js +0 -65
- package/lib/aptos/context.js.map +0 -1
- package/lib/aptos/index.d.ts +0 -9
- package/lib/aptos/index.js +0 -34
- package/lib/aptos/index.js.map +0 -1
- package/lib/aptos/models.d.ts +0 -23
- package/lib/aptos/models.js +0 -3
- package/lib/aptos/models.js.map +0 -1
- package/lib/aptos/network.d.ts +0 -14
- package/lib/aptos/network.js +0 -46
- package/lib/aptos/network.js.map +0 -1
- package/lib/aptos/runtime.d.ts +0 -2
- package/lib/aptos/runtime.js +0 -16
- package/lib/aptos/runtime.js.map +0 -1
- package/lib/aptos/type-registry.d.ts +0 -21
- package/lib/aptos/type-registry.js +0 -156
- package/lib/aptos/type-registry.js.map +0 -1
- package/lib/aptos/types.d.ts +0 -9
- package/lib/aptos/types.js +0 -135
- package/lib/aptos/types.js.map +0 -1
- package/lib/aptos/types.test.d.ts +0 -1
- package/lib/aptos/types.test.js.map +0 -1
- package/lib/aptos/utils.d.ts +0 -7
- package/lib/aptos/utils.js +0 -27
- package/lib/aptos/utils.js.map +0 -1
- package/lib/aptos-codegen/codegen.d.ts +0 -23
- package/lib/aptos-codegen/codegen.js +0 -364
- package/lib/aptos-codegen/codegen.js.map +0 -1
- package/lib/aptos-codegen/typegen.d.ts +0 -17
- package/lib/aptos-codegen/typegen.js +0 -142
- package/lib/aptos-codegen/typegen.js.map +0 -1
- package/lib/builtin/aptos/0x1.d.ts +0 -1913
- package/lib/builtin/aptos/0x1.js +0 -2748
- package/lib/builtin/aptos/0x1.js.map +0 -1
- package/lib/builtin/aptos/0x3.d.ts +0 -482
- package/lib/builtin/aptos/0x3.js +0 -526
- package/lib/builtin/aptos/0x3.js.map +0 -1
- package/lib/builtin/aptos/index.d.ts +0 -2
- package/lib/builtin/aptos/index.js +0 -29
- package/lib/builtin/aptos/index.js.map +0 -1
- package/lib/builtin/solana/index.d.ts +0 -2
- package/lib/builtin/solana/index.js +0 -19
- package/lib/builtin/solana/index.js.map +0 -1
- package/lib/builtin/solana/spl-token-processor.d.ts +0 -39
- package/lib/builtin/solana/spl-token-processor.js +0 -258
- package/lib/builtin/solana/spl-token-processor.js.map +0 -1
- package/lib/builtin/solana/types.d.ts +0 -427
- package/lib/builtin/solana/types.js +0 -203
- package/lib/builtin/solana/types.js.map +0 -1
- package/lib/builtin/solana/wormhole-processor.d.ts +0 -12
- package/lib/builtin/solana/wormhole-processor.js +0 -268
- package/lib/builtin/solana/wormhole-processor.js.map +0 -1
- package/lib/core/solana-context.d.ts +0 -11
- package/lib/core/solana-context.js +0 -34
- package/lib/core/solana-context.js.map +0 -1
- package/lib/core/solana-options.d.ts +0 -8
- package/lib/core/solana-options.js +0 -13
- package/lib/core/solana-options.js.map +0 -1
- package/lib/core/solana-plugin.d.ts +0 -9
- package/lib/core/solana-plugin.js +0 -79
- package/lib/core/solana-plugin.js.map +0 -1
- package/lib/core/solana-processor.d.ts +0 -40
- package/lib/core/solana-processor.js +0 -80
- package/lib/core/solana-processor.js.map +0 -1
- package/lib/solana-codegen/codegen.d.ts +0 -1
- package/lib/solana-codegen/codegen.js +0 -124
- package/lib/solana-codegen/codegen.js.map +0 -1
- package/lib/test-abi-code-gen.d.ts +0 -2
- package/lib/test-abi-code-gen.js +0 -20
- package/lib/test-abi-code-gen.js.map +0 -1
- package/src/abis/aptos/0x1.json +0 -9205
- package/src/abis/aptos/0x3.json +0 -1515
- package/src/aptos/api.ts +0 -11
- package/src/aptos/aptos-plugin.ts +0 -216
- package/src/aptos/aptos-processor.ts +0 -305
- package/src/aptos/context.ts +0 -74
- package/src/aptos/index.ts +0 -10
- package/src/aptos/models.ts +0 -34
- package/src/aptos/network.ts +0 -42
- package/src/aptos/runtime.ts +0 -13
- package/src/aptos/type-registry.ts +0 -187
- package/src/aptos/types.ts +0 -149
- package/src/aptos/utils.ts +0 -26
- package/src/aptos-codegen/codegen.ts +0 -428
- package/src/aptos-codegen/tsconfig.json +0 -9
- package/src/aptos-codegen/typegen.ts +0 -153
- package/src/builtin/aptos/0x1.ts +0 -4210
- package/src/builtin/aptos/0x3.ts +0 -888
- package/src/builtin/aptos/index.ts +0 -2
- package/src/builtin/solana/index.ts +0 -2
- package/src/builtin/solana/spl-token-processor.ts +0 -298
- package/src/builtin/solana/types.ts +0 -279
- package/src/builtin/solana/wormhole-processor.ts +0 -269
- package/src/core/solana-context.ts +0 -34
- package/src/core/solana-options.ts +0 -8
- package/src/core/solana-plugin.ts +0 -97
- package/src/core/solana-processor.ts +0 -102
- package/src/solana-codegen/codegen.ts +0 -129
- package/src/test-abi-code-gen.ts +0 -16
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
import { aptos } from "@sentio/sdk";
|
|
2
|
-
import { Address, MoveModule } from "aptos-sdk/src/generated";
|
|
3
|
-
import * as _0x1 from "./0x1";
|
|
4
|
-
export declare class token extends aptos.AptosBaseProcessor {
|
|
5
|
-
constructor(options: aptos.AptosBindOptions);
|
|
6
|
-
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
|
7
|
-
static bind(options?: Partial<aptos.AptosBindOptions>): token;
|
|
8
|
-
onEntryBurn(func: (call: token.BurnPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
9
|
-
onEntryBurnByCreator(func: (call: token.BurnByCreatorPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
10
|
-
onEntryCreateCollectionScript(func: (call: token.CreateCollectionScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
11
|
-
onEntryCreateTokenScript(func: (call: token.CreateTokenScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
12
|
-
onEntryDirectTransferScript(func: (call: token.DirectTransferScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
13
|
-
onEntryInitializeTokenScript(func: (call: token.InitializeTokenScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
14
|
-
onEntryMintScript(func: (call: token.MintScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
15
|
-
onEntryMutateTokenProperties(func: (call: token.MutateTokenPropertiesPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
16
|
-
onEntryOptInDirectTransfer(func: (call: token.OptInDirectTransferPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token;
|
|
17
|
-
onEventCreateCollectionEvent(func: (event: token.CreateCollectionEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
18
|
-
onEventCreateTokenDataEvent(func: (event: token.CreateTokenDataEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
19
|
-
onEventMintTokenEvent(func: (event: token.MintTokenEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
20
|
-
onEventDepositEvent(func: (event: token.DepositEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
21
|
-
onEventWithdrawEvent(func: (event: token.WithdrawEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
22
|
-
onEventBurnTokenEvent(func: (event: token.BurnTokenEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
23
|
-
onEventMutateTokenPropertyMapEvent(func: (event: token.MutateTokenPropertyMapEventInstance, ctx: aptos.AptosContext) => void): token;
|
|
24
|
-
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace token {
|
|
27
|
-
class BurnTokenEvent {
|
|
28
|
-
static TYPE_QNAME: string;
|
|
29
|
-
id: token.TokenId;
|
|
30
|
-
amount: bigint;
|
|
31
|
-
}
|
|
32
|
-
interface BurnTokenEventInstance extends aptos.TypedEventInstance<BurnTokenEvent> {
|
|
33
|
-
data_typed: BurnTokenEvent;
|
|
34
|
-
type_arguments: [];
|
|
35
|
-
}
|
|
36
|
-
class CollectionData {
|
|
37
|
-
static TYPE_QNAME: string;
|
|
38
|
-
description: string;
|
|
39
|
-
name: string;
|
|
40
|
-
uri: string;
|
|
41
|
-
supply: bigint;
|
|
42
|
-
maximum: bigint;
|
|
43
|
-
mutability_config: token.CollectionMutabilityConfig;
|
|
44
|
-
}
|
|
45
|
-
class CollectionMutabilityConfig {
|
|
46
|
-
static TYPE_QNAME: string;
|
|
47
|
-
description: Boolean;
|
|
48
|
-
uri: Boolean;
|
|
49
|
-
maximum: Boolean;
|
|
50
|
-
}
|
|
51
|
-
class Collections {
|
|
52
|
-
static TYPE_QNAME: string;
|
|
53
|
-
collection_data: _0x1.table.Table<string, token.CollectionData>;
|
|
54
|
-
token_data: _0x1.table.Table<token.TokenDataId, token.TokenData>;
|
|
55
|
-
create_collection_events: _0x1.event.EventHandle<token.CreateCollectionEvent>;
|
|
56
|
-
create_token_data_events: _0x1.event.EventHandle<token.CreateTokenDataEvent>;
|
|
57
|
-
mint_token_events: _0x1.event.EventHandle<token.MintTokenEvent>;
|
|
58
|
-
}
|
|
59
|
-
class CreateCollectionEvent {
|
|
60
|
-
static TYPE_QNAME: string;
|
|
61
|
-
creator: Address;
|
|
62
|
-
collection_name: string;
|
|
63
|
-
uri: string;
|
|
64
|
-
description: string;
|
|
65
|
-
maximum: bigint;
|
|
66
|
-
}
|
|
67
|
-
interface CreateCollectionEventInstance extends aptos.TypedEventInstance<CreateCollectionEvent> {
|
|
68
|
-
data_typed: CreateCollectionEvent;
|
|
69
|
-
type_arguments: [];
|
|
70
|
-
}
|
|
71
|
-
class CreateTokenDataEvent {
|
|
72
|
-
static TYPE_QNAME: string;
|
|
73
|
-
id: token.TokenDataId;
|
|
74
|
-
description: string;
|
|
75
|
-
maximum: bigint;
|
|
76
|
-
uri: string;
|
|
77
|
-
royalty_payee_address: Address;
|
|
78
|
-
royalty_points_denominator: bigint;
|
|
79
|
-
royalty_points_numerator: bigint;
|
|
80
|
-
name: string;
|
|
81
|
-
mutability_config: token.TokenMutabilityConfig;
|
|
82
|
-
property_keys: string[];
|
|
83
|
-
property_values: string[];
|
|
84
|
-
property_types: string[];
|
|
85
|
-
}
|
|
86
|
-
interface CreateTokenDataEventInstance extends aptos.TypedEventInstance<CreateTokenDataEvent> {
|
|
87
|
-
data_typed: CreateTokenDataEvent;
|
|
88
|
-
type_arguments: [];
|
|
89
|
-
}
|
|
90
|
-
class DepositEvent {
|
|
91
|
-
static TYPE_QNAME: string;
|
|
92
|
-
id: token.TokenId;
|
|
93
|
-
amount: bigint;
|
|
94
|
-
}
|
|
95
|
-
interface DepositEventInstance extends aptos.TypedEventInstance<DepositEvent> {
|
|
96
|
-
data_typed: DepositEvent;
|
|
97
|
-
type_arguments: [];
|
|
98
|
-
}
|
|
99
|
-
class MintTokenEvent {
|
|
100
|
-
static TYPE_QNAME: string;
|
|
101
|
-
id: token.TokenDataId;
|
|
102
|
-
amount: bigint;
|
|
103
|
-
}
|
|
104
|
-
interface MintTokenEventInstance extends aptos.TypedEventInstance<MintTokenEvent> {
|
|
105
|
-
data_typed: MintTokenEvent;
|
|
106
|
-
type_arguments: [];
|
|
107
|
-
}
|
|
108
|
-
class MutateTokenPropertyMapEvent {
|
|
109
|
-
static TYPE_QNAME: string;
|
|
110
|
-
old_id: token.TokenId;
|
|
111
|
-
new_id: token.TokenId;
|
|
112
|
-
keys: string[];
|
|
113
|
-
values: string[];
|
|
114
|
-
types: string[];
|
|
115
|
-
}
|
|
116
|
-
interface MutateTokenPropertyMapEventInstance extends aptos.TypedEventInstance<MutateTokenPropertyMapEvent> {
|
|
117
|
-
data_typed: MutateTokenPropertyMapEvent;
|
|
118
|
-
type_arguments: [];
|
|
119
|
-
}
|
|
120
|
-
class Royalty {
|
|
121
|
-
static TYPE_QNAME: string;
|
|
122
|
-
royalty_points_numerator: bigint;
|
|
123
|
-
royalty_points_denominator: bigint;
|
|
124
|
-
payee_address: Address;
|
|
125
|
-
}
|
|
126
|
-
class Token {
|
|
127
|
-
static TYPE_QNAME: string;
|
|
128
|
-
id: token.TokenId;
|
|
129
|
-
amount: bigint;
|
|
130
|
-
token_properties: property_map.PropertyMap;
|
|
131
|
-
}
|
|
132
|
-
class TokenData {
|
|
133
|
-
static TYPE_QNAME: string;
|
|
134
|
-
maximum: bigint;
|
|
135
|
-
largest_property_version: bigint;
|
|
136
|
-
supply: bigint;
|
|
137
|
-
uri: string;
|
|
138
|
-
royalty: token.Royalty;
|
|
139
|
-
name: string;
|
|
140
|
-
description: string;
|
|
141
|
-
default_properties: property_map.PropertyMap;
|
|
142
|
-
mutability_config: token.TokenMutabilityConfig;
|
|
143
|
-
}
|
|
144
|
-
class TokenDataId {
|
|
145
|
-
static TYPE_QNAME: string;
|
|
146
|
-
creator: Address;
|
|
147
|
-
collection: string;
|
|
148
|
-
name: string;
|
|
149
|
-
}
|
|
150
|
-
class TokenId {
|
|
151
|
-
static TYPE_QNAME: string;
|
|
152
|
-
token_data_id: token.TokenDataId;
|
|
153
|
-
property_version: bigint;
|
|
154
|
-
}
|
|
155
|
-
class TokenMutabilityConfig {
|
|
156
|
-
static TYPE_QNAME: string;
|
|
157
|
-
maximum: Boolean;
|
|
158
|
-
uri: Boolean;
|
|
159
|
-
royalty: Boolean;
|
|
160
|
-
description: Boolean;
|
|
161
|
-
properties: Boolean;
|
|
162
|
-
}
|
|
163
|
-
class TokenStore {
|
|
164
|
-
static TYPE_QNAME: string;
|
|
165
|
-
tokens: _0x1.table.Table<token.TokenId, token.Token>;
|
|
166
|
-
direct_transfer: Boolean;
|
|
167
|
-
deposit_events: _0x1.event.EventHandle<token.DepositEvent>;
|
|
168
|
-
withdraw_events: _0x1.event.EventHandle<token.WithdrawEvent>;
|
|
169
|
-
burn_events: _0x1.event.EventHandle<token.BurnTokenEvent>;
|
|
170
|
-
mutate_token_property_events: _0x1.event.EventHandle<token.MutateTokenPropertyMapEvent>;
|
|
171
|
-
}
|
|
172
|
-
class WithdrawCapability {
|
|
173
|
-
static TYPE_QNAME: string;
|
|
174
|
-
token_owner: Address;
|
|
175
|
-
token_id: token.TokenId;
|
|
176
|
-
amount: bigint;
|
|
177
|
-
expiration_sec: bigint;
|
|
178
|
-
}
|
|
179
|
-
class WithdrawEvent {
|
|
180
|
-
static TYPE_QNAME: string;
|
|
181
|
-
id: token.TokenId;
|
|
182
|
-
amount: bigint;
|
|
183
|
-
}
|
|
184
|
-
interface WithdrawEventInstance extends aptos.TypedEventInstance<WithdrawEvent> {
|
|
185
|
-
data_typed: WithdrawEvent;
|
|
186
|
-
type_arguments: [];
|
|
187
|
-
}
|
|
188
|
-
interface BurnPayload extends aptos.TypedEntryFunctionPayload<[
|
|
189
|
-
Address,
|
|
190
|
-
string,
|
|
191
|
-
string,
|
|
192
|
-
bigint,
|
|
193
|
-
bigint
|
|
194
|
-
]> {
|
|
195
|
-
arguments_typed: [Address, string, string, bigint, bigint];
|
|
196
|
-
type_arguments: [];
|
|
197
|
-
}
|
|
198
|
-
interface BurnByCreatorPayload extends aptos.TypedEntryFunctionPayload<[
|
|
199
|
-
Address,
|
|
200
|
-
string,
|
|
201
|
-
string,
|
|
202
|
-
bigint,
|
|
203
|
-
bigint
|
|
204
|
-
]> {
|
|
205
|
-
arguments_typed: [Address, string, string, bigint, bigint];
|
|
206
|
-
type_arguments: [];
|
|
207
|
-
}
|
|
208
|
-
interface CreateCollectionScriptPayload extends aptos.TypedEntryFunctionPayload<[
|
|
209
|
-
string,
|
|
210
|
-
string,
|
|
211
|
-
string,
|
|
212
|
-
bigint,
|
|
213
|
-
Boolean[]
|
|
214
|
-
]> {
|
|
215
|
-
arguments_typed: [string, string, string, bigint, Boolean[]];
|
|
216
|
-
type_arguments: [];
|
|
217
|
-
}
|
|
218
|
-
interface CreateTokenScriptPayload extends aptos.TypedEntryFunctionPayload<[
|
|
219
|
-
string,
|
|
220
|
-
string,
|
|
221
|
-
string,
|
|
222
|
-
bigint,
|
|
223
|
-
bigint,
|
|
224
|
-
string,
|
|
225
|
-
Address,
|
|
226
|
-
bigint,
|
|
227
|
-
bigint,
|
|
228
|
-
Boolean[],
|
|
229
|
-
string[],
|
|
230
|
-
string[],
|
|
231
|
-
string[]
|
|
232
|
-
]> {
|
|
233
|
-
arguments_typed: [
|
|
234
|
-
string,
|
|
235
|
-
string,
|
|
236
|
-
string,
|
|
237
|
-
bigint,
|
|
238
|
-
bigint,
|
|
239
|
-
string,
|
|
240
|
-
Address,
|
|
241
|
-
bigint,
|
|
242
|
-
bigint,
|
|
243
|
-
Boolean[],
|
|
244
|
-
string[],
|
|
245
|
-
string[],
|
|
246
|
-
string[]
|
|
247
|
-
];
|
|
248
|
-
type_arguments: [];
|
|
249
|
-
}
|
|
250
|
-
interface DirectTransferScriptPayload extends aptos.TypedEntryFunctionPayload<[
|
|
251
|
-
Address,
|
|
252
|
-
Address,
|
|
253
|
-
string,
|
|
254
|
-
string,
|
|
255
|
-
bigint,
|
|
256
|
-
bigint
|
|
257
|
-
]> {
|
|
258
|
-
arguments_typed: [Address, Address, string, string, bigint, bigint];
|
|
259
|
-
type_arguments: [];
|
|
260
|
-
}
|
|
261
|
-
interface InitializeTokenScriptPayload extends aptos.TypedEntryFunctionPayload<[]> {
|
|
262
|
-
arguments_typed: [];
|
|
263
|
-
type_arguments: [];
|
|
264
|
-
}
|
|
265
|
-
interface MintScriptPayload extends aptos.TypedEntryFunctionPayload<[Address, string, string, bigint]> {
|
|
266
|
-
arguments_typed: [Address, string, string, bigint];
|
|
267
|
-
type_arguments: [];
|
|
268
|
-
}
|
|
269
|
-
interface MutateTokenPropertiesPayload extends aptos.TypedEntryFunctionPayload<[
|
|
270
|
-
Address,
|
|
271
|
-
Address,
|
|
272
|
-
string,
|
|
273
|
-
string,
|
|
274
|
-
bigint,
|
|
275
|
-
bigint,
|
|
276
|
-
string[],
|
|
277
|
-
string[],
|
|
278
|
-
string[]
|
|
279
|
-
]> {
|
|
280
|
-
arguments_typed: [
|
|
281
|
-
Address,
|
|
282
|
-
Address,
|
|
283
|
-
string,
|
|
284
|
-
string,
|
|
285
|
-
bigint,
|
|
286
|
-
bigint,
|
|
287
|
-
string[],
|
|
288
|
-
string[],
|
|
289
|
-
string[]
|
|
290
|
-
];
|
|
291
|
-
type_arguments: [];
|
|
292
|
-
}
|
|
293
|
-
interface OptInDirectTransferPayload extends aptos.TypedEntryFunctionPayload<[Boolean]> {
|
|
294
|
-
arguments_typed: [Boolean];
|
|
295
|
-
type_arguments: [];
|
|
296
|
-
}
|
|
297
|
-
function loadTypes(_r: aptos.TypeRegistry): void;
|
|
298
|
-
const ABI: MoveModule;
|
|
299
|
-
}
|
|
300
|
-
export declare namespace property_map {
|
|
301
|
-
class PropertyMap {
|
|
302
|
-
static TYPE_QNAME: string;
|
|
303
|
-
map: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
|
|
304
|
-
}
|
|
305
|
-
class PropertyValue {
|
|
306
|
-
static TYPE_QNAME: string;
|
|
307
|
-
value: string;
|
|
308
|
-
type: string;
|
|
309
|
-
}
|
|
310
|
-
function loadTypes(_r: aptos.TypeRegistry): void;
|
|
311
|
-
const ABI: MoveModule;
|
|
312
|
-
}
|
|
313
|
-
export declare class token_coin_swap extends aptos.AptosBaseProcessor {
|
|
314
|
-
constructor(options: aptos.AptosBindOptions);
|
|
315
|
-
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
|
316
|
-
static bind(options?: Partial<aptos.AptosBindOptions>): token_coin_swap;
|
|
317
|
-
onEntryListTokenForSwap(func: (call: token_coin_swap.ListTokenForSwapPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token_coin_swap;
|
|
318
|
-
onEventTokenListingEvent(func: (event: token_coin_swap.TokenListingEventInstance, ctx: aptos.AptosContext) => void): token_coin_swap;
|
|
319
|
-
onEventTokenSwapEvent(func: (event: token_coin_swap.TokenSwapEventInstance, ctx: aptos.AptosContext) => void): token_coin_swap;
|
|
320
|
-
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
|
321
|
-
}
|
|
322
|
-
export declare namespace token_coin_swap {
|
|
323
|
-
class TokenCoinSwap<T0> {
|
|
324
|
-
static TYPE_QNAME: string;
|
|
325
|
-
token_amount: bigint;
|
|
326
|
-
min_price_per_token: bigint;
|
|
327
|
-
}
|
|
328
|
-
class TokenEscrow {
|
|
329
|
-
static TYPE_QNAME: string;
|
|
330
|
-
token: token.Token;
|
|
331
|
-
locked_until_secs: bigint;
|
|
332
|
-
}
|
|
333
|
-
class TokenListingEvent {
|
|
334
|
-
static TYPE_QNAME: string;
|
|
335
|
-
token_id: token.TokenId;
|
|
336
|
-
amount: bigint;
|
|
337
|
-
min_price: bigint;
|
|
338
|
-
locked_until_secs: bigint;
|
|
339
|
-
coin_type_info: _0x1.type_info.TypeInfo;
|
|
340
|
-
}
|
|
341
|
-
interface TokenListingEventInstance extends aptos.TypedEventInstance<TokenListingEvent> {
|
|
342
|
-
data_typed: TokenListingEvent;
|
|
343
|
-
type_arguments: [];
|
|
344
|
-
}
|
|
345
|
-
class TokenListings<T0> {
|
|
346
|
-
static TYPE_QNAME: string;
|
|
347
|
-
listings: _0x1.table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;
|
|
348
|
-
listing_events: _0x1.event.EventHandle<token_coin_swap.TokenListingEvent>;
|
|
349
|
-
swap_events: _0x1.event.EventHandle<token_coin_swap.TokenSwapEvent>;
|
|
350
|
-
}
|
|
351
|
-
class TokenStoreEscrow {
|
|
352
|
-
static TYPE_QNAME: string;
|
|
353
|
-
token_escrows: _0x1.table.Table<token.TokenId, token_coin_swap.TokenEscrow>;
|
|
354
|
-
}
|
|
355
|
-
class TokenSwapEvent {
|
|
356
|
-
static TYPE_QNAME: string;
|
|
357
|
-
token_id: token.TokenId;
|
|
358
|
-
token_buyer: Address;
|
|
359
|
-
token_amount: bigint;
|
|
360
|
-
coin_amount: bigint;
|
|
361
|
-
coin_type_info: _0x1.type_info.TypeInfo;
|
|
362
|
-
}
|
|
363
|
-
interface TokenSwapEventInstance extends aptos.TypedEventInstance<TokenSwapEvent> {
|
|
364
|
-
data_typed: TokenSwapEvent;
|
|
365
|
-
type_arguments: [];
|
|
366
|
-
}
|
|
367
|
-
interface ListTokenForSwapPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
|
|
368
|
-
Address,
|
|
369
|
-
string,
|
|
370
|
-
string,
|
|
371
|
-
bigint,
|
|
372
|
-
bigint,
|
|
373
|
-
bigint,
|
|
374
|
-
bigint
|
|
375
|
-
]> {
|
|
376
|
-
arguments_typed: [Address, string, string, bigint, bigint, bigint, bigint];
|
|
377
|
-
type_arguments: [string];
|
|
378
|
-
}
|
|
379
|
-
function loadTypes(_r: aptos.TypeRegistry): void;
|
|
380
|
-
const ABI: MoveModule;
|
|
381
|
-
}
|
|
382
|
-
export declare class token_transfers extends aptos.AptosBaseProcessor {
|
|
383
|
-
constructor(options: aptos.AptosBindOptions);
|
|
384
|
-
static DEFAULT_OPTIONS: aptos.AptosBindOptions;
|
|
385
|
-
static bind(options?: Partial<aptos.AptosBindOptions>): token_transfers;
|
|
386
|
-
onEntryCancelOfferScript(func: (call: token_transfers.CancelOfferScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token_transfers;
|
|
387
|
-
onEntryClaimScript(func: (call: token_transfers.ClaimScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token_transfers;
|
|
388
|
-
onEntryOfferScript(func: (call: token_transfers.OfferScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token_transfers;
|
|
389
|
-
onEventTokenOfferEvent(func: (event: token_transfers.TokenOfferEventInstance, ctx: aptos.AptosContext) => void): token_transfers;
|
|
390
|
-
onEventTokenCancelOfferEvent(func: (event: token_transfers.TokenCancelOfferEventInstance, ctx: aptos.AptosContext) => void): token_transfers;
|
|
391
|
-
onEventTokenClaimEvent(func: (event: token_transfers.TokenClaimEventInstance, ctx: aptos.AptosContext) => void): token_transfers;
|
|
392
|
-
loadTypesInternal(registry: aptos.TypeRegistry): void;
|
|
393
|
-
}
|
|
394
|
-
export declare namespace token_transfers {
|
|
395
|
-
class PendingClaims {
|
|
396
|
-
static TYPE_QNAME: string;
|
|
397
|
-
pending_claims: _0x1.table.Table<token_transfers.TokenOfferId, token.Token>;
|
|
398
|
-
offer_events: _0x1.event.EventHandle<token_transfers.TokenOfferEvent>;
|
|
399
|
-
cancel_offer_events: _0x1.event.EventHandle<token_transfers.TokenCancelOfferEvent>;
|
|
400
|
-
claim_events: _0x1.event.EventHandle<token_transfers.TokenClaimEvent>;
|
|
401
|
-
}
|
|
402
|
-
class TokenCancelOfferEvent {
|
|
403
|
-
static TYPE_QNAME: string;
|
|
404
|
-
to_address: Address;
|
|
405
|
-
token_id: token.TokenId;
|
|
406
|
-
amount: bigint;
|
|
407
|
-
}
|
|
408
|
-
interface TokenCancelOfferEventInstance extends aptos.TypedEventInstance<TokenCancelOfferEvent> {
|
|
409
|
-
data_typed: TokenCancelOfferEvent;
|
|
410
|
-
type_arguments: [];
|
|
411
|
-
}
|
|
412
|
-
class TokenClaimEvent {
|
|
413
|
-
static TYPE_QNAME: string;
|
|
414
|
-
to_address: Address;
|
|
415
|
-
token_id: token.TokenId;
|
|
416
|
-
amount: bigint;
|
|
417
|
-
}
|
|
418
|
-
interface TokenClaimEventInstance extends aptos.TypedEventInstance<TokenClaimEvent> {
|
|
419
|
-
data_typed: TokenClaimEvent;
|
|
420
|
-
type_arguments: [];
|
|
421
|
-
}
|
|
422
|
-
class TokenOfferEvent {
|
|
423
|
-
static TYPE_QNAME: string;
|
|
424
|
-
to_address: Address;
|
|
425
|
-
token_id: token.TokenId;
|
|
426
|
-
amount: bigint;
|
|
427
|
-
}
|
|
428
|
-
interface TokenOfferEventInstance extends aptos.TypedEventInstance<TokenOfferEvent> {
|
|
429
|
-
data_typed: TokenOfferEvent;
|
|
430
|
-
type_arguments: [];
|
|
431
|
-
}
|
|
432
|
-
class TokenOfferId {
|
|
433
|
-
static TYPE_QNAME: string;
|
|
434
|
-
to_addr: Address;
|
|
435
|
-
token_id: token.TokenId;
|
|
436
|
-
}
|
|
437
|
-
interface CancelOfferScriptPayload extends aptos.TypedEntryFunctionPayload<[
|
|
438
|
-
Address,
|
|
439
|
-
Address,
|
|
440
|
-
Address,
|
|
441
|
-
string,
|
|
442
|
-
string,
|
|
443
|
-
bigint
|
|
444
|
-
]> {
|
|
445
|
-
arguments_typed: [Address, Address, Address, string, string, bigint];
|
|
446
|
-
type_arguments: [];
|
|
447
|
-
}
|
|
448
|
-
interface ClaimScriptPayload extends aptos.TypedEntryFunctionPayload<[
|
|
449
|
-
Address,
|
|
450
|
-
Address,
|
|
451
|
-
Address,
|
|
452
|
-
string,
|
|
453
|
-
string,
|
|
454
|
-
bigint
|
|
455
|
-
]> {
|
|
456
|
-
arguments_typed: [Address, Address, Address, string, string, bigint];
|
|
457
|
-
type_arguments: [];
|
|
458
|
-
}
|
|
459
|
-
interface OfferScriptPayload extends aptos.TypedEntryFunctionPayload<[
|
|
460
|
-
Address,
|
|
461
|
-
Address,
|
|
462
|
-
Address,
|
|
463
|
-
string,
|
|
464
|
-
string,
|
|
465
|
-
bigint,
|
|
466
|
-
bigint
|
|
467
|
-
]> {
|
|
468
|
-
arguments_typed: [
|
|
469
|
-
Address,
|
|
470
|
-
Address,
|
|
471
|
-
Address,
|
|
472
|
-
string,
|
|
473
|
-
string,
|
|
474
|
-
bigint,
|
|
475
|
-
bigint
|
|
476
|
-
];
|
|
477
|
-
type_arguments: [];
|
|
478
|
-
}
|
|
479
|
-
function loadTypes(_r: aptos.TypeRegistry): void;
|
|
480
|
-
const ABI: MoveModule;
|
|
481
|
-
}
|
|
482
|
-
export declare function loadAllTypes(_r: aptos.TypeRegistry): void;
|