@typemove/aptos 1.14.0-rc.1 → 2.0.0
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/package.json +3 -3
- package/dist/esm/account-resource-client.d.ts +0 -28
- package/dist/esm/account-resource-client.d.ts.map +0 -1
- package/dist/esm/account-resource-client.js +0 -47
- package/dist/esm/account-resource-client.js.map +0 -1
- package/dist/esm/account-resource-client.test.d.ts +0 -2
- package/dist/esm/account-resource-client.test.d.ts.map +0 -1
- package/dist/esm/account-resource-client.test.js.map +0 -1
- package/dist/esm/aptos-chain-adapter.d.ts +0 -16
- package/dist/esm/aptos-chain-adapter.d.ts.map +0 -1
- package/dist/esm/aptos-chain-adapter.js +0 -104
- package/dist/esm/aptos-chain-adapter.js.map +0 -1
- package/dist/esm/builtin/0x1.d.ts +0 -7522
- package/dist/esm/builtin/0x1.d.ts.map +0 -1
- package/dist/esm/builtin/0x1.js +0 -11632
- package/dist/esm/builtin/0x1.js.map +0 -1
- package/dist/esm/builtin/0x3.d.ts +0 -1087
- package/dist/esm/builtin/0x3.d.ts.map +0 -1
- package/dist/esm/builtin/0x3.js +0 -926
- package/dist/esm/builtin/0x3.js.map +0 -1
- package/dist/esm/builtin/0x4.d.ts +0 -535
- package/dist/esm/builtin/0x4.d.ts.map +0 -1
- package/dist/esm/builtin/0x4.js +0 -884
- package/dist/esm/builtin/0x4.js.map +0 -1
- package/dist/esm/builtin/index.d.ts +0 -4
- package/dist/esm/builtin/index.d.ts.map +0 -1
- package/dist/esm/builtin/index.js +0 -7
- package/dist/esm/builtin/index.js.map +0 -1
- package/dist/esm/client.test.d.ts +0 -2
- package/dist/esm/client.test.d.ts.map +0 -1
- package/dist/esm/client.test.js.map +0 -1
- package/dist/esm/codegen/codegen.d.ts +0 -18
- package/dist/esm/codegen/codegen.d.ts.map +0 -1
- package/dist/esm/codegen/codegen.js +0 -161
- package/dist/esm/codegen/codegen.js.map +0 -1
- package/dist/esm/codegen/index.d.ts +0 -2
- package/dist/esm/codegen/index.d.ts.map +0 -1
- package/dist/esm/codegen/index.js +0 -2
- package/dist/esm/codegen/index.js.map +0 -1
- package/dist/esm/codegen/run.d.ts +0 -3
- package/dist/esm/codegen/run.d.ts.map +0 -1
- package/dist/esm/codegen/run.js.map +0 -1
- package/dist/esm/codegen/types.test.d.ts +0 -2
- package/dist/esm/codegen/types.test.d.ts.map +0 -1
- package/dist/esm/codegen/types.test.js.map +0 -1
- package/dist/esm/coder-helpers.d.ts +0 -6
- package/dist/esm/coder-helpers.d.ts.map +0 -1
- package/dist/esm/coder-helpers.js +0 -8
- package/dist/esm/coder-helpers.js.map +0 -1
- package/dist/esm/index.d.ts +0 -5
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/models.d.ts +0 -12
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/models.js +0 -2
- package/dist/esm/models.js.map +0 -1
- package/dist/esm/move-coder.d.ts +0 -17
- package/dist/esm/move-coder.d.ts.map +0 -1
- package/dist/esm/move-coder.js +0 -97
- package/dist/esm/move-coder.js.map +0 -1
- package/dist/esm/to-internal.d.ts +0 -7
- package/dist/esm/to-internal.d.ts.map +0 -1
- package/dist/esm/to-internal.js +0 -55
- package/dist/esm/to-internal.js.map +0 -1
- package/src/abis/0x1.json +0 -43414
- package/src/abis/0x3.json +0 -3976
- package/src/abis/0x4.json +0 -2844
- package/src/account-resource-client.ts +0 -69
- package/src/aptos-chain-adapter.ts +0 -132
- package/src/builtin/0x1.ts +0 -19976
- package/src/builtin/0x3.ts +0 -2083
- package/src/builtin/0x4.ts +0 -1503
- package/src/builtin/index.ts +0 -6
- package/src/codegen/codegen.ts +0 -190
- package/src/codegen/index.ts +0 -1
- package/src/codegen/run.ts +0 -67
- package/src/coder-helpers.ts +0 -15
- package/src/index.ts +0 -4
- package/src/models.ts +0 -23
- package/src/move-coder.ts +0 -124
- package/src/tests/abis/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.json +0 -3265
- package/src/tests/abis/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.json +0 -637
- package/src/tests/abis/0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99.json +0 -1099
- package/src/tests/abis/0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615.json +0 -409
- package/src/tests/abis/0x87978b35bf1eb73ae6cf04cfedcaa1f48254a683ebd00a21e7516a991edae3ac.json +0 -219
- package/src/tests/abis/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.json +0 -3717
- package/src/tests/types/0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af.ts +0 -2805
- package/src/tests/types/0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9.ts +0 -89
- package/src/tests/types/0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99.ts +0 -1649
- package/src/tests/types/0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615.ts +0 -744
- package/src/tests/types/0x87978b35bf1eb73ae6cf04cfedcaa1f48254a683ebd00a21e7516a991edae3ac.ts +0 -126
- package/src/tests/types/0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541.ts +0 -2165
- package/src/tests/types/index.ts +0 -9
- package/src/to-internal.ts +0 -71
package/src/builtin/0x3.ts
DELETED
|
@@ -1,2083 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
/* Generated types for 0x3, original address 0x3 */
|
|
6
|
-
|
|
7
|
-
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
8
|
-
import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
|
|
9
|
-
|
|
10
|
-
import { defaultMoveCoder } from "@typemove/aptos";
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
Aptos,
|
|
14
|
-
Account as AptosAccount,
|
|
15
|
-
MoveAddressType,
|
|
16
|
-
PendingTransactionResponse,
|
|
17
|
-
InputGenerateTransactionOptions,
|
|
18
|
-
MoveStructId,
|
|
19
|
-
InputViewFunctionData,
|
|
20
|
-
InputViewFunctionJsonData,
|
|
21
|
-
} from "@aptos-labs/ts-sdk";
|
|
22
|
-
|
|
23
|
-
import * as _0x1 from "./0x1.js";
|
|
24
|
-
|
|
25
|
-
export namespace token {
|
|
26
|
-
export interface Deposit {
|
|
27
|
-
id: token.TokenId;
|
|
28
|
-
amount: bigint;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export namespace Deposit {
|
|
32
|
-
export const TYPE_QNAME = "0x3::token::Deposit";
|
|
33
|
-
|
|
34
|
-
const TYPE = new TypeDescriptor<Deposit>(Deposit.TYPE_QNAME);
|
|
35
|
-
|
|
36
|
-
export function type(): TypeDescriptor<Deposit> {
|
|
37
|
-
return TYPE.apply();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type DepositInstance = TypedEventInstance<Deposit> & {
|
|
42
|
-
data_decoded: Deposit;
|
|
43
|
-
type_arguments: [];
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export interface DepositEvent {
|
|
47
|
-
id: token.TokenId;
|
|
48
|
-
amount: bigint;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export namespace DepositEvent {
|
|
52
|
-
export const TYPE_QNAME = "0x3::token::DepositEvent";
|
|
53
|
-
|
|
54
|
-
const TYPE = new TypeDescriptor<DepositEvent>(DepositEvent.TYPE_QNAME);
|
|
55
|
-
|
|
56
|
-
export function type(): TypeDescriptor<DepositEvent> {
|
|
57
|
-
return TYPE.apply();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export type DepositEventInstance = TypedEventInstance<DepositEvent> & {
|
|
62
|
-
data_decoded: DepositEvent;
|
|
63
|
-
type_arguments: [];
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export interface Withdraw {
|
|
67
|
-
id: token.TokenId;
|
|
68
|
-
amount: bigint;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export namespace Withdraw {
|
|
72
|
-
export const TYPE_QNAME = "0x3::token::Withdraw";
|
|
73
|
-
|
|
74
|
-
const TYPE = new TypeDescriptor<Withdraw>(Withdraw.TYPE_QNAME);
|
|
75
|
-
|
|
76
|
-
export function type(): TypeDescriptor<Withdraw> {
|
|
77
|
-
return TYPE.apply();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type WithdrawInstance = TypedEventInstance<Withdraw> & {
|
|
82
|
-
data_decoded: Withdraw;
|
|
83
|
-
type_arguments: [];
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export interface WithdrawEvent {
|
|
87
|
-
id: token.TokenId;
|
|
88
|
-
amount: bigint;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export namespace WithdrawEvent {
|
|
92
|
-
export const TYPE_QNAME = "0x3::token::WithdrawEvent";
|
|
93
|
-
|
|
94
|
-
const TYPE = new TypeDescriptor<WithdrawEvent>(WithdrawEvent.TYPE_QNAME);
|
|
95
|
-
|
|
96
|
-
export function type(): TypeDescriptor<WithdrawEvent> {
|
|
97
|
-
return TYPE.apply();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export type WithdrawEventInstance = TypedEventInstance<WithdrawEvent> & {
|
|
102
|
-
data_decoded: WithdrawEvent;
|
|
103
|
-
type_arguments: [];
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export interface Burn {
|
|
107
|
-
account: MoveAddressType;
|
|
108
|
-
id: token.TokenId;
|
|
109
|
-
amount: bigint;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export namespace Burn {
|
|
113
|
-
export const TYPE_QNAME = "0x3::token::Burn";
|
|
114
|
-
|
|
115
|
-
const TYPE = new TypeDescriptor<Burn>(Burn.TYPE_QNAME);
|
|
116
|
-
|
|
117
|
-
export function type(): TypeDescriptor<Burn> {
|
|
118
|
-
return TYPE.apply();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type BurnInstance = TypedEventInstance<Burn> & {
|
|
123
|
-
data_decoded: Burn;
|
|
124
|
-
type_arguments: [];
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
export interface BurnToken {
|
|
128
|
-
id: token.TokenId;
|
|
129
|
-
amount: bigint;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export namespace BurnToken {
|
|
133
|
-
export const TYPE_QNAME = "0x3::token::BurnToken";
|
|
134
|
-
|
|
135
|
-
const TYPE = new TypeDescriptor<BurnToken>(BurnToken.TYPE_QNAME);
|
|
136
|
-
|
|
137
|
-
export function type(): TypeDescriptor<BurnToken> {
|
|
138
|
-
return TYPE.apply();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export type BurnTokenInstance = TypedEventInstance<BurnToken> & {
|
|
143
|
-
data_decoded: BurnToken;
|
|
144
|
-
type_arguments: [];
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export interface BurnTokenEvent {
|
|
148
|
-
id: token.TokenId;
|
|
149
|
-
amount: bigint;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export namespace BurnTokenEvent {
|
|
153
|
-
export const TYPE_QNAME = "0x3::token::BurnTokenEvent";
|
|
154
|
-
|
|
155
|
-
const TYPE = new TypeDescriptor<BurnTokenEvent>(BurnTokenEvent.TYPE_QNAME);
|
|
156
|
-
|
|
157
|
-
export function type(): TypeDescriptor<BurnTokenEvent> {
|
|
158
|
-
return TYPE.apply();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export type BurnTokenEventInstance = TypedEventInstance<BurnTokenEvent> & {
|
|
163
|
-
data_decoded: BurnTokenEvent;
|
|
164
|
-
type_arguments: [];
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
export interface CollectionData {
|
|
168
|
-
description: string;
|
|
169
|
-
name: string;
|
|
170
|
-
uri: string;
|
|
171
|
-
supply: bigint;
|
|
172
|
-
maximum: bigint;
|
|
173
|
-
mutability_config: token.CollectionMutabilityConfig;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export namespace CollectionData {
|
|
177
|
-
export const TYPE_QNAME = "0x3::token::CollectionData";
|
|
178
|
-
|
|
179
|
-
const TYPE = new TypeDescriptor<CollectionData>(CollectionData.TYPE_QNAME);
|
|
180
|
-
|
|
181
|
-
export function type(): TypeDescriptor<CollectionData> {
|
|
182
|
-
return TYPE.apply();
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface CollectionMutabilityConfig {
|
|
187
|
-
description: boolean;
|
|
188
|
-
uri: boolean;
|
|
189
|
-
maximum: boolean;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export namespace CollectionMutabilityConfig {
|
|
193
|
-
export const TYPE_QNAME = "0x3::token::CollectionMutabilityConfig";
|
|
194
|
-
|
|
195
|
-
const TYPE = new TypeDescriptor<CollectionMutabilityConfig>(
|
|
196
|
-
CollectionMutabilityConfig.TYPE_QNAME,
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
export function type(): TypeDescriptor<CollectionMutabilityConfig> {
|
|
200
|
-
return TYPE.apply();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface Collections {
|
|
205
|
-
collection_data: _0x1.table.Table<string, token.CollectionData>;
|
|
206
|
-
token_data: _0x1.table.Table<token.TokenDataId, token.TokenData>;
|
|
207
|
-
create_collection_events: _0x1.event.EventHandle<token.CreateCollectionEvent>;
|
|
208
|
-
create_token_data_events: _0x1.event.EventHandle<token.CreateTokenDataEvent>;
|
|
209
|
-
mint_token_events: _0x1.event.EventHandle<token.MintTokenEvent>;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export namespace Collections {
|
|
213
|
-
export const TYPE_QNAME = "0x3::token::Collections";
|
|
214
|
-
|
|
215
|
-
const TYPE = new TypeDescriptor<Collections>(Collections.TYPE_QNAME);
|
|
216
|
-
|
|
217
|
-
export function type(): TypeDescriptor<Collections> {
|
|
218
|
-
return TYPE.apply();
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export interface CreateCollection {
|
|
223
|
-
creator: MoveAddressType;
|
|
224
|
-
collection_name: string;
|
|
225
|
-
uri: string;
|
|
226
|
-
description: string;
|
|
227
|
-
maximum: bigint;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export namespace CreateCollection {
|
|
231
|
-
export const TYPE_QNAME = "0x3::token::CreateCollection";
|
|
232
|
-
|
|
233
|
-
const TYPE = new TypeDescriptor<CreateCollection>(
|
|
234
|
-
CreateCollection.TYPE_QNAME,
|
|
235
|
-
);
|
|
236
|
-
|
|
237
|
-
export function type(): TypeDescriptor<CreateCollection> {
|
|
238
|
-
return TYPE.apply();
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export type CreateCollectionInstance =
|
|
243
|
-
TypedEventInstance<CreateCollection> & {
|
|
244
|
-
data_decoded: CreateCollection;
|
|
245
|
-
type_arguments: [];
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
export interface CreateCollectionEvent {
|
|
249
|
-
creator: MoveAddressType;
|
|
250
|
-
collection_name: string;
|
|
251
|
-
uri: string;
|
|
252
|
-
description: string;
|
|
253
|
-
maximum: bigint;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export namespace CreateCollectionEvent {
|
|
257
|
-
export const TYPE_QNAME = "0x3::token::CreateCollectionEvent";
|
|
258
|
-
|
|
259
|
-
const TYPE = new TypeDescriptor<CreateCollectionEvent>(
|
|
260
|
-
CreateCollectionEvent.TYPE_QNAME,
|
|
261
|
-
);
|
|
262
|
-
|
|
263
|
-
export function type(): TypeDescriptor<CreateCollectionEvent> {
|
|
264
|
-
return TYPE.apply();
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export type CreateCollectionEventInstance =
|
|
269
|
-
TypedEventInstance<CreateCollectionEvent> & {
|
|
270
|
-
data_decoded: CreateCollectionEvent;
|
|
271
|
-
type_arguments: [];
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
export interface CreateTokenData {
|
|
275
|
-
id: token.TokenDataId;
|
|
276
|
-
description: string;
|
|
277
|
-
maximum: bigint;
|
|
278
|
-
uri: string;
|
|
279
|
-
royalty_payee_address: MoveAddressType;
|
|
280
|
-
royalty_points_denominator: bigint;
|
|
281
|
-
royalty_points_numerator: bigint;
|
|
282
|
-
name: string;
|
|
283
|
-
mutability_config: token.TokenMutabilityConfig;
|
|
284
|
-
property_keys: string[];
|
|
285
|
-
property_values: string[];
|
|
286
|
-
property_types: string[];
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export namespace CreateTokenData {
|
|
290
|
-
export const TYPE_QNAME = "0x3::token::CreateTokenData";
|
|
291
|
-
|
|
292
|
-
const TYPE = new TypeDescriptor<CreateTokenData>(
|
|
293
|
-
CreateTokenData.TYPE_QNAME,
|
|
294
|
-
);
|
|
295
|
-
|
|
296
|
-
export function type(): TypeDescriptor<CreateTokenData> {
|
|
297
|
-
return TYPE.apply();
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export type CreateTokenDataInstance = TypedEventInstance<CreateTokenData> & {
|
|
302
|
-
data_decoded: CreateTokenData;
|
|
303
|
-
type_arguments: [];
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
export interface CreateTokenDataEvent {
|
|
307
|
-
id: token.TokenDataId;
|
|
308
|
-
description: string;
|
|
309
|
-
maximum: bigint;
|
|
310
|
-
uri: string;
|
|
311
|
-
royalty_payee_address: MoveAddressType;
|
|
312
|
-
royalty_points_denominator: bigint;
|
|
313
|
-
royalty_points_numerator: bigint;
|
|
314
|
-
name: string;
|
|
315
|
-
mutability_config: token.TokenMutabilityConfig;
|
|
316
|
-
property_keys: string[];
|
|
317
|
-
property_values: string[];
|
|
318
|
-
property_types: string[];
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export namespace CreateTokenDataEvent {
|
|
322
|
-
export const TYPE_QNAME = "0x3::token::CreateTokenDataEvent";
|
|
323
|
-
|
|
324
|
-
const TYPE = new TypeDescriptor<CreateTokenDataEvent>(
|
|
325
|
-
CreateTokenDataEvent.TYPE_QNAME,
|
|
326
|
-
);
|
|
327
|
-
|
|
328
|
-
export function type(): TypeDescriptor<CreateTokenDataEvent> {
|
|
329
|
-
return TYPE.apply();
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export type CreateTokenDataEventInstance =
|
|
334
|
-
TypedEventInstance<CreateTokenDataEvent> & {
|
|
335
|
-
data_decoded: CreateTokenDataEvent;
|
|
336
|
-
type_arguments: [];
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
export interface Mint {
|
|
340
|
-
creator: MoveAddressType;
|
|
341
|
-
id: token.TokenDataId;
|
|
342
|
-
amount: bigint;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export namespace Mint {
|
|
346
|
-
export const TYPE_QNAME = "0x3::token::Mint";
|
|
347
|
-
|
|
348
|
-
const TYPE = new TypeDescriptor<Mint>(Mint.TYPE_QNAME);
|
|
349
|
-
|
|
350
|
-
export function type(): TypeDescriptor<Mint> {
|
|
351
|
-
return TYPE.apply();
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export type MintInstance = TypedEventInstance<Mint> & {
|
|
356
|
-
data_decoded: Mint;
|
|
357
|
-
type_arguments: [];
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
export interface MintToken {
|
|
361
|
-
id: token.TokenDataId;
|
|
362
|
-
amount: bigint;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export namespace MintToken {
|
|
366
|
-
export const TYPE_QNAME = "0x3::token::MintToken";
|
|
367
|
-
|
|
368
|
-
const TYPE = new TypeDescriptor<MintToken>(MintToken.TYPE_QNAME);
|
|
369
|
-
|
|
370
|
-
export function type(): TypeDescriptor<MintToken> {
|
|
371
|
-
return TYPE.apply();
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export type MintTokenInstance = TypedEventInstance<MintToken> & {
|
|
376
|
-
data_decoded: MintToken;
|
|
377
|
-
type_arguments: [];
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
export interface MintTokenEvent {
|
|
381
|
-
id: token.TokenDataId;
|
|
382
|
-
amount: bigint;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export namespace MintTokenEvent {
|
|
386
|
-
export const TYPE_QNAME = "0x3::token::MintTokenEvent";
|
|
387
|
-
|
|
388
|
-
const TYPE = new TypeDescriptor<MintTokenEvent>(MintTokenEvent.TYPE_QNAME);
|
|
389
|
-
|
|
390
|
-
export function type(): TypeDescriptor<MintTokenEvent> {
|
|
391
|
-
return TYPE.apply();
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export type MintTokenEventInstance = TypedEventInstance<MintTokenEvent> & {
|
|
396
|
-
data_decoded: MintTokenEvent;
|
|
397
|
-
type_arguments: [];
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
export interface MutatePropertyMap {
|
|
401
|
-
account: MoveAddressType;
|
|
402
|
-
old_id: token.TokenId;
|
|
403
|
-
new_id: token.TokenId;
|
|
404
|
-
keys: string[];
|
|
405
|
-
values: string[];
|
|
406
|
-
types: string[];
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export namespace MutatePropertyMap {
|
|
410
|
-
export const TYPE_QNAME = "0x3::token::MutatePropertyMap";
|
|
411
|
-
|
|
412
|
-
const TYPE = new TypeDescriptor<MutatePropertyMap>(
|
|
413
|
-
MutatePropertyMap.TYPE_QNAME,
|
|
414
|
-
);
|
|
415
|
-
|
|
416
|
-
export function type(): TypeDescriptor<MutatePropertyMap> {
|
|
417
|
-
return TYPE.apply();
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
export type MutatePropertyMapInstance =
|
|
422
|
-
TypedEventInstance<MutatePropertyMap> & {
|
|
423
|
-
data_decoded: MutatePropertyMap;
|
|
424
|
-
type_arguments: [];
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
export interface MutateTokenPropertyMap {
|
|
428
|
-
old_id: token.TokenId;
|
|
429
|
-
new_id: token.TokenId;
|
|
430
|
-
keys: string[];
|
|
431
|
-
values: string[];
|
|
432
|
-
types: string[];
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
export namespace MutateTokenPropertyMap {
|
|
436
|
-
export const TYPE_QNAME = "0x3::token::MutateTokenPropertyMap";
|
|
437
|
-
|
|
438
|
-
const TYPE = new TypeDescriptor<MutateTokenPropertyMap>(
|
|
439
|
-
MutateTokenPropertyMap.TYPE_QNAME,
|
|
440
|
-
);
|
|
441
|
-
|
|
442
|
-
export function type(): TypeDescriptor<MutateTokenPropertyMap> {
|
|
443
|
-
return TYPE.apply();
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
export type MutateTokenPropertyMapInstance =
|
|
448
|
-
TypedEventInstance<MutateTokenPropertyMap> & {
|
|
449
|
-
data_decoded: MutateTokenPropertyMap;
|
|
450
|
-
type_arguments: [];
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
export interface MutateTokenPropertyMapEvent {
|
|
454
|
-
old_id: token.TokenId;
|
|
455
|
-
new_id: token.TokenId;
|
|
456
|
-
keys: string[];
|
|
457
|
-
values: string[];
|
|
458
|
-
types: string[];
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
export namespace MutateTokenPropertyMapEvent {
|
|
462
|
-
export const TYPE_QNAME = "0x3::token::MutateTokenPropertyMapEvent";
|
|
463
|
-
|
|
464
|
-
const TYPE = new TypeDescriptor<MutateTokenPropertyMapEvent>(
|
|
465
|
-
MutateTokenPropertyMapEvent.TYPE_QNAME,
|
|
466
|
-
);
|
|
467
|
-
|
|
468
|
-
export function type(): TypeDescriptor<MutateTokenPropertyMapEvent> {
|
|
469
|
-
return TYPE.apply();
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export type MutateTokenPropertyMapEventInstance =
|
|
474
|
-
TypedEventInstance<MutateTokenPropertyMapEvent> & {
|
|
475
|
-
data_decoded: MutateTokenPropertyMapEvent;
|
|
476
|
-
type_arguments: [];
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
export interface Royalty {
|
|
480
|
-
royalty_points_numerator: bigint;
|
|
481
|
-
royalty_points_denominator: bigint;
|
|
482
|
-
payee_address: MoveAddressType;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export namespace Royalty {
|
|
486
|
-
export const TYPE_QNAME = "0x3::token::Royalty";
|
|
487
|
-
|
|
488
|
-
const TYPE = new TypeDescriptor<Royalty>(Royalty.TYPE_QNAME);
|
|
489
|
-
|
|
490
|
-
export function type(): TypeDescriptor<Royalty> {
|
|
491
|
-
return TYPE.apply();
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export interface Token {
|
|
496
|
-
id: token.TokenId;
|
|
497
|
-
amount: bigint;
|
|
498
|
-
token_properties: property_map.PropertyMap;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
export namespace Token {
|
|
502
|
-
export const TYPE_QNAME = "0x3::token::Token";
|
|
503
|
-
|
|
504
|
-
const TYPE = new TypeDescriptor<Token>(Token.TYPE_QNAME);
|
|
505
|
-
|
|
506
|
-
export function type(): TypeDescriptor<Token> {
|
|
507
|
-
return TYPE.apply();
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export interface TokenData {
|
|
512
|
-
maximum: bigint;
|
|
513
|
-
largest_property_version: bigint;
|
|
514
|
-
supply: bigint;
|
|
515
|
-
uri: string;
|
|
516
|
-
royalty: token.Royalty;
|
|
517
|
-
name: string;
|
|
518
|
-
description: string;
|
|
519
|
-
default_properties: property_map.PropertyMap;
|
|
520
|
-
mutability_config: token.TokenMutabilityConfig;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export namespace TokenData {
|
|
524
|
-
export const TYPE_QNAME = "0x3::token::TokenData";
|
|
525
|
-
|
|
526
|
-
const TYPE = new TypeDescriptor<TokenData>(TokenData.TYPE_QNAME);
|
|
527
|
-
|
|
528
|
-
export function type(): TypeDescriptor<TokenData> {
|
|
529
|
-
return TYPE.apply();
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
export interface TokenDataCreation {
|
|
534
|
-
creator: MoveAddressType;
|
|
535
|
-
id: token.TokenDataId;
|
|
536
|
-
description: string;
|
|
537
|
-
maximum: bigint;
|
|
538
|
-
uri: string;
|
|
539
|
-
royalty_payee_address: MoveAddressType;
|
|
540
|
-
royalty_points_denominator: bigint;
|
|
541
|
-
royalty_points_numerator: bigint;
|
|
542
|
-
name: string;
|
|
543
|
-
mutability_config: token.TokenMutabilityConfig;
|
|
544
|
-
property_keys: string[];
|
|
545
|
-
property_values: string[];
|
|
546
|
-
property_types: string[];
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
export namespace TokenDataCreation {
|
|
550
|
-
export const TYPE_QNAME = "0x3::token::TokenDataCreation";
|
|
551
|
-
|
|
552
|
-
const TYPE = new TypeDescriptor<TokenDataCreation>(
|
|
553
|
-
TokenDataCreation.TYPE_QNAME,
|
|
554
|
-
);
|
|
555
|
-
|
|
556
|
-
export function type(): TypeDescriptor<TokenDataCreation> {
|
|
557
|
-
return TYPE.apply();
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
export type TokenDataCreationInstance =
|
|
562
|
-
TypedEventInstance<TokenDataCreation> & {
|
|
563
|
-
data_decoded: TokenDataCreation;
|
|
564
|
-
type_arguments: [];
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
export interface TokenDataId {
|
|
568
|
-
creator: MoveAddressType;
|
|
569
|
-
collection: string;
|
|
570
|
-
name: string;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
export namespace TokenDataId {
|
|
574
|
-
export const TYPE_QNAME = "0x3::token::TokenDataId";
|
|
575
|
-
|
|
576
|
-
const TYPE = new TypeDescriptor<TokenDataId>(TokenDataId.TYPE_QNAME);
|
|
577
|
-
|
|
578
|
-
export function type(): TypeDescriptor<TokenDataId> {
|
|
579
|
-
return TYPE.apply();
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
export interface TokenDeposit {
|
|
584
|
-
account: MoveAddressType;
|
|
585
|
-
id: token.TokenId;
|
|
586
|
-
amount: bigint;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
export namespace TokenDeposit {
|
|
590
|
-
export const TYPE_QNAME = "0x3::token::TokenDeposit";
|
|
591
|
-
|
|
592
|
-
const TYPE = new TypeDescriptor<TokenDeposit>(TokenDeposit.TYPE_QNAME);
|
|
593
|
-
|
|
594
|
-
export function type(): TypeDescriptor<TokenDeposit> {
|
|
595
|
-
return TYPE.apply();
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export type TokenDepositInstance = TypedEventInstance<TokenDeposit> & {
|
|
600
|
-
data_decoded: TokenDeposit;
|
|
601
|
-
type_arguments: [];
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
export interface TokenId {
|
|
605
|
-
token_data_id: token.TokenDataId;
|
|
606
|
-
property_version: bigint;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export namespace TokenId {
|
|
610
|
-
export const TYPE_QNAME = "0x3::token::TokenId";
|
|
611
|
-
|
|
612
|
-
const TYPE = new TypeDescriptor<TokenId>(TokenId.TYPE_QNAME);
|
|
613
|
-
|
|
614
|
-
export function type(): TypeDescriptor<TokenId> {
|
|
615
|
-
return TYPE.apply();
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export interface TokenMutabilityConfig {
|
|
620
|
-
maximum: boolean;
|
|
621
|
-
uri: boolean;
|
|
622
|
-
royalty: boolean;
|
|
623
|
-
description: boolean;
|
|
624
|
-
properties: boolean;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export namespace TokenMutabilityConfig {
|
|
628
|
-
export const TYPE_QNAME = "0x3::token::TokenMutabilityConfig";
|
|
629
|
-
|
|
630
|
-
const TYPE = new TypeDescriptor<TokenMutabilityConfig>(
|
|
631
|
-
TokenMutabilityConfig.TYPE_QNAME,
|
|
632
|
-
);
|
|
633
|
-
|
|
634
|
-
export function type(): TypeDescriptor<TokenMutabilityConfig> {
|
|
635
|
-
return TYPE.apply();
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export interface TokenStore {
|
|
640
|
-
tokens: _0x1.table.Table<token.TokenId, token.Token>;
|
|
641
|
-
direct_transfer: boolean;
|
|
642
|
-
deposit_events: _0x1.event.EventHandle<token.DepositEvent>;
|
|
643
|
-
withdraw_events: _0x1.event.EventHandle<token.WithdrawEvent>;
|
|
644
|
-
burn_events: _0x1.event.EventHandle<token.BurnTokenEvent>;
|
|
645
|
-
mutate_token_property_events: _0x1.event.EventHandle<token.MutateTokenPropertyMapEvent>;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export namespace TokenStore {
|
|
649
|
-
export const TYPE_QNAME = "0x3::token::TokenStore";
|
|
650
|
-
|
|
651
|
-
const TYPE = new TypeDescriptor<TokenStore>(TokenStore.TYPE_QNAME);
|
|
652
|
-
|
|
653
|
-
export function type(): TypeDescriptor<TokenStore> {
|
|
654
|
-
return TYPE.apply();
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
export interface TokenWithdraw {
|
|
659
|
-
account: MoveAddressType;
|
|
660
|
-
id: token.TokenId;
|
|
661
|
-
amount: bigint;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
export namespace TokenWithdraw {
|
|
665
|
-
export const TYPE_QNAME = "0x3::token::TokenWithdraw";
|
|
666
|
-
|
|
667
|
-
const TYPE = new TypeDescriptor<TokenWithdraw>(TokenWithdraw.TYPE_QNAME);
|
|
668
|
-
|
|
669
|
-
export function type(): TypeDescriptor<TokenWithdraw> {
|
|
670
|
-
return TYPE.apply();
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
export type TokenWithdrawInstance = TypedEventInstance<TokenWithdraw> & {
|
|
675
|
-
data_decoded: TokenWithdraw;
|
|
676
|
-
type_arguments: [];
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
export interface WithdrawCapability {
|
|
680
|
-
token_owner: MoveAddressType;
|
|
681
|
-
token_id: token.TokenId;
|
|
682
|
-
amount: bigint;
|
|
683
|
-
expiration_sec: bigint;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export namespace WithdrawCapability {
|
|
687
|
-
export const TYPE_QNAME = "0x3::token::WithdrawCapability";
|
|
688
|
-
|
|
689
|
-
const TYPE = new TypeDescriptor<WithdrawCapability>(
|
|
690
|
-
WithdrawCapability.TYPE_QNAME,
|
|
691
|
-
);
|
|
692
|
-
|
|
693
|
-
export function type(): TypeDescriptor<WithdrawCapability> {
|
|
694
|
-
return TYPE.apply();
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
export type WithdrawCapabilityInstance =
|
|
699
|
-
TypedEventInstance<WithdrawCapability> & {
|
|
700
|
-
data_decoded: WithdrawCapability;
|
|
701
|
-
type_arguments: [];
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
export namespace entry {
|
|
705
|
-
export async function burn(
|
|
706
|
-
client: Aptos,
|
|
707
|
-
account: AptosAccount,
|
|
708
|
-
request: {
|
|
709
|
-
typeArguments: [];
|
|
710
|
-
functionArguments: [MoveAddressType, string, string, bigint, bigint];
|
|
711
|
-
},
|
|
712
|
-
options?: InputGenerateTransactionOptions,
|
|
713
|
-
): Promise<PendingTransactionResponse> {
|
|
714
|
-
const coder = defaultMoveCoder(client.config);
|
|
715
|
-
const transaction = await client.transaction.build.simple({
|
|
716
|
-
sender: account.accountAddress,
|
|
717
|
-
data: {
|
|
718
|
-
function: "0x3::token::burn",
|
|
719
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
720
|
-
typeArguments: [],
|
|
721
|
-
},
|
|
722
|
-
options,
|
|
723
|
-
});
|
|
724
|
-
return await client.signAndSubmitTransaction({
|
|
725
|
-
signer: account,
|
|
726
|
-
transaction,
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
export async function burnByCreator(
|
|
731
|
-
client: Aptos,
|
|
732
|
-
account: AptosAccount,
|
|
733
|
-
request: {
|
|
734
|
-
typeArguments: [];
|
|
735
|
-
functionArguments: [MoveAddressType, string, string, bigint, bigint];
|
|
736
|
-
},
|
|
737
|
-
options?: InputGenerateTransactionOptions,
|
|
738
|
-
): Promise<PendingTransactionResponse> {
|
|
739
|
-
const coder = defaultMoveCoder(client.config);
|
|
740
|
-
const transaction = await client.transaction.build.simple({
|
|
741
|
-
sender: account.accountAddress,
|
|
742
|
-
data: {
|
|
743
|
-
function: "0x3::token::burn_by_creator",
|
|
744
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
745
|
-
typeArguments: [],
|
|
746
|
-
},
|
|
747
|
-
options,
|
|
748
|
-
});
|
|
749
|
-
return await client.signAndSubmitTransaction({
|
|
750
|
-
signer: account,
|
|
751
|
-
transaction,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
export async function createCollectionScript(
|
|
756
|
-
client: Aptos,
|
|
757
|
-
account: AptosAccount,
|
|
758
|
-
request: {
|
|
759
|
-
typeArguments: [];
|
|
760
|
-
functionArguments: [string, string, string, bigint, boolean[]];
|
|
761
|
-
},
|
|
762
|
-
options?: InputGenerateTransactionOptions,
|
|
763
|
-
): Promise<PendingTransactionResponse> {
|
|
764
|
-
const coder = defaultMoveCoder(client.config);
|
|
765
|
-
const transaction = await client.transaction.build.simple({
|
|
766
|
-
sender: account.accountAddress,
|
|
767
|
-
data: {
|
|
768
|
-
function: "0x3::token::create_collection_script",
|
|
769
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
770
|
-
typeArguments: [],
|
|
771
|
-
},
|
|
772
|
-
options,
|
|
773
|
-
});
|
|
774
|
-
return await client.signAndSubmitTransaction({
|
|
775
|
-
signer: account,
|
|
776
|
-
transaction,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
export async function createTokenScript(
|
|
781
|
-
client: Aptos,
|
|
782
|
-
account: AptosAccount,
|
|
783
|
-
request: {
|
|
784
|
-
typeArguments: [];
|
|
785
|
-
functionArguments: [
|
|
786
|
-
string,
|
|
787
|
-
string,
|
|
788
|
-
string,
|
|
789
|
-
bigint,
|
|
790
|
-
bigint,
|
|
791
|
-
string,
|
|
792
|
-
MoveAddressType,
|
|
793
|
-
bigint,
|
|
794
|
-
bigint,
|
|
795
|
-
boolean[],
|
|
796
|
-
string[],
|
|
797
|
-
string[],
|
|
798
|
-
string[],
|
|
799
|
-
];
|
|
800
|
-
},
|
|
801
|
-
options?: InputGenerateTransactionOptions,
|
|
802
|
-
): Promise<PendingTransactionResponse> {
|
|
803
|
-
const coder = defaultMoveCoder(client.config);
|
|
804
|
-
const transaction = await client.transaction.build.simple({
|
|
805
|
-
sender: account.accountAddress,
|
|
806
|
-
data: {
|
|
807
|
-
function: "0x3::token::create_token_script",
|
|
808
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
809
|
-
typeArguments: [],
|
|
810
|
-
},
|
|
811
|
-
options,
|
|
812
|
-
});
|
|
813
|
-
return await client.signAndSubmitTransaction({
|
|
814
|
-
signer: account,
|
|
815
|
-
transaction,
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
export async function directTransferScript(
|
|
820
|
-
client: Aptos,
|
|
821
|
-
account: AptosAccount,
|
|
822
|
-
request: {
|
|
823
|
-
typeArguments: [];
|
|
824
|
-
functionArguments: [
|
|
825
|
-
MoveAddressType,
|
|
826
|
-
MoveAddressType,
|
|
827
|
-
string,
|
|
828
|
-
string,
|
|
829
|
-
bigint,
|
|
830
|
-
bigint,
|
|
831
|
-
];
|
|
832
|
-
},
|
|
833
|
-
options?: InputGenerateTransactionOptions,
|
|
834
|
-
): Promise<PendingTransactionResponse> {
|
|
835
|
-
const coder = defaultMoveCoder(client.config);
|
|
836
|
-
const transaction = await client.transaction.build.simple({
|
|
837
|
-
sender: account.accountAddress,
|
|
838
|
-
data: {
|
|
839
|
-
function: "0x3::token::direct_transfer_script",
|
|
840
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
841
|
-
typeArguments: [],
|
|
842
|
-
},
|
|
843
|
-
options,
|
|
844
|
-
});
|
|
845
|
-
return await client.signAndSubmitTransaction({
|
|
846
|
-
signer: account,
|
|
847
|
-
transaction,
|
|
848
|
-
});
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
export async function initializeTokenScript(
|
|
852
|
-
client: Aptos,
|
|
853
|
-
account: AptosAccount,
|
|
854
|
-
request: {
|
|
855
|
-
typeArguments: [];
|
|
856
|
-
functionArguments: [];
|
|
857
|
-
},
|
|
858
|
-
options?: InputGenerateTransactionOptions,
|
|
859
|
-
): Promise<PendingTransactionResponse> {
|
|
860
|
-
const coder = defaultMoveCoder(client.config);
|
|
861
|
-
const transaction = await client.transaction.build.simple({
|
|
862
|
-
sender: account.accountAddress,
|
|
863
|
-
data: {
|
|
864
|
-
function: "0x3::token::initialize_token_script",
|
|
865
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
866
|
-
typeArguments: [],
|
|
867
|
-
},
|
|
868
|
-
options,
|
|
869
|
-
});
|
|
870
|
-
return await client.signAndSubmitTransaction({
|
|
871
|
-
signer: account,
|
|
872
|
-
transaction,
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
export async function mintScript(
|
|
877
|
-
client: Aptos,
|
|
878
|
-
account: AptosAccount,
|
|
879
|
-
request: {
|
|
880
|
-
typeArguments: [];
|
|
881
|
-
functionArguments: [MoveAddressType, string, string, bigint];
|
|
882
|
-
},
|
|
883
|
-
options?: InputGenerateTransactionOptions,
|
|
884
|
-
): Promise<PendingTransactionResponse> {
|
|
885
|
-
const coder = defaultMoveCoder(client.config);
|
|
886
|
-
const transaction = await client.transaction.build.simple({
|
|
887
|
-
sender: account.accountAddress,
|
|
888
|
-
data: {
|
|
889
|
-
function: "0x3::token::mint_script",
|
|
890
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
891
|
-
typeArguments: [],
|
|
892
|
-
},
|
|
893
|
-
options,
|
|
894
|
-
});
|
|
895
|
-
return await client.signAndSubmitTransaction({
|
|
896
|
-
signer: account,
|
|
897
|
-
transaction,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
export async function mutateTokenProperties(
|
|
902
|
-
client: Aptos,
|
|
903
|
-
account: AptosAccount,
|
|
904
|
-
request: {
|
|
905
|
-
typeArguments: [];
|
|
906
|
-
functionArguments: [
|
|
907
|
-
MoveAddressType,
|
|
908
|
-
MoveAddressType,
|
|
909
|
-
string,
|
|
910
|
-
string,
|
|
911
|
-
bigint,
|
|
912
|
-
bigint,
|
|
913
|
-
string[],
|
|
914
|
-
string[],
|
|
915
|
-
string[],
|
|
916
|
-
];
|
|
917
|
-
},
|
|
918
|
-
options?: InputGenerateTransactionOptions,
|
|
919
|
-
): Promise<PendingTransactionResponse> {
|
|
920
|
-
const coder = defaultMoveCoder(client.config);
|
|
921
|
-
const transaction = await client.transaction.build.simple({
|
|
922
|
-
sender: account.accountAddress,
|
|
923
|
-
data: {
|
|
924
|
-
function: "0x3::token::mutate_token_properties",
|
|
925
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
926
|
-
typeArguments: [],
|
|
927
|
-
},
|
|
928
|
-
options,
|
|
929
|
-
});
|
|
930
|
-
return await client.signAndSubmitTransaction({
|
|
931
|
-
signer: account,
|
|
932
|
-
transaction,
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
export async function optInDirectTransfer(
|
|
937
|
-
client: Aptos,
|
|
938
|
-
account: AptosAccount,
|
|
939
|
-
request: {
|
|
940
|
-
typeArguments: [];
|
|
941
|
-
functionArguments: [boolean];
|
|
942
|
-
},
|
|
943
|
-
options?: InputGenerateTransactionOptions,
|
|
944
|
-
): Promise<PendingTransactionResponse> {
|
|
945
|
-
const coder = defaultMoveCoder(client.config);
|
|
946
|
-
const transaction = await client.transaction.build.simple({
|
|
947
|
-
sender: account.accountAddress,
|
|
948
|
-
data: {
|
|
949
|
-
function: "0x3::token::opt_in_direct_transfer",
|
|
950
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
951
|
-
typeArguments: [],
|
|
952
|
-
},
|
|
953
|
-
options,
|
|
954
|
-
});
|
|
955
|
-
return await client.signAndSubmitTransaction({
|
|
956
|
-
signer: account,
|
|
957
|
-
transaction,
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
export async function transferWithOptIn(
|
|
962
|
-
client: Aptos,
|
|
963
|
-
account: AptosAccount,
|
|
964
|
-
request: {
|
|
965
|
-
typeArguments: [];
|
|
966
|
-
functionArguments: [
|
|
967
|
-
MoveAddressType,
|
|
968
|
-
string,
|
|
969
|
-
string,
|
|
970
|
-
bigint,
|
|
971
|
-
MoveAddressType,
|
|
972
|
-
bigint,
|
|
973
|
-
];
|
|
974
|
-
},
|
|
975
|
-
options?: InputGenerateTransactionOptions,
|
|
976
|
-
): Promise<PendingTransactionResponse> {
|
|
977
|
-
const coder = defaultMoveCoder(client.config);
|
|
978
|
-
const transaction = await client.transaction.build.simple({
|
|
979
|
-
sender: account.accountAddress,
|
|
980
|
-
data: {
|
|
981
|
-
function: "0x3::token::transfer_with_opt_in",
|
|
982
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
983
|
-
typeArguments: [],
|
|
984
|
-
},
|
|
985
|
-
options,
|
|
986
|
-
});
|
|
987
|
-
return await client.signAndSubmitTransaction({
|
|
988
|
-
signer: account,
|
|
989
|
-
transaction,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
export namespace view {
|
|
994
|
-
export async function getCollectionMutabilityConfig(
|
|
995
|
-
client: Aptos,
|
|
996
|
-
request: {
|
|
997
|
-
functionArguments: [MoveAddressType, string];
|
|
998
|
-
},
|
|
999
|
-
version?: bigint,
|
|
1000
|
-
): Promise<[token.CollectionMutabilityConfig]> {
|
|
1001
|
-
const coder = defaultMoveCoder(client.config);
|
|
1002
|
-
const data: InputViewFunctionData = {
|
|
1003
|
-
function: "0x3::token::get_collection_mutability_config",
|
|
1004
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
1005
|
-
typeArguments: [],
|
|
1006
|
-
};
|
|
1007
|
-
const res = await client.view({
|
|
1008
|
-
payload: data,
|
|
1009
|
-
options: { ledgerVersion: version },
|
|
1010
|
-
});
|
|
1011
|
-
const type = await coder.getMoveFunction(
|
|
1012
|
-
"0x3::token::get_collection_mutability_config",
|
|
1013
|
-
);
|
|
1014
|
-
return (await coder.decodeArray(res, type.return)) as any;
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
export namespace property_map {
|
|
1020
|
-
export interface PropertyMap {
|
|
1021
|
-
map: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
export namespace PropertyMap {
|
|
1025
|
-
export const TYPE_QNAME = "0x3::property_map::PropertyMap";
|
|
1026
|
-
|
|
1027
|
-
const TYPE = new TypeDescriptor<PropertyMap>(PropertyMap.TYPE_QNAME);
|
|
1028
|
-
|
|
1029
|
-
export function type(): TypeDescriptor<PropertyMap> {
|
|
1030
|
-
return TYPE.apply();
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
export interface PropertyValue {
|
|
1035
|
-
value: string;
|
|
1036
|
-
type: string;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
export namespace PropertyValue {
|
|
1040
|
-
export const TYPE_QNAME = "0x3::property_map::PropertyValue";
|
|
1041
|
-
|
|
1042
|
-
const TYPE = new TypeDescriptor<PropertyValue>(PropertyValue.TYPE_QNAME);
|
|
1043
|
-
|
|
1044
|
-
export function type(): TypeDescriptor<PropertyValue> {
|
|
1045
|
-
return TYPE.apply();
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
export namespace entry {}
|
|
1050
|
-
export namespace view {}
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
export namespace token_coin_swap {
|
|
1054
|
-
export interface TokenCoinSwap<T0> {
|
|
1055
|
-
token_amount: bigint;
|
|
1056
|
-
min_price_per_token: bigint;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
export namespace TokenCoinSwap {
|
|
1060
|
-
export const TYPE_QNAME = "0x3::token_coin_swap::TokenCoinSwap";
|
|
1061
|
-
|
|
1062
|
-
const TYPE = new TypeDescriptor<TokenCoinSwap<any>>(
|
|
1063
|
-
TokenCoinSwap.TYPE_QNAME,
|
|
1064
|
-
);
|
|
1065
|
-
|
|
1066
|
-
export function type<T0>(
|
|
1067
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1068
|
-
): TypeDescriptor<TokenCoinSwap<T0>> {
|
|
1069
|
-
return TYPE.apply(arg0);
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
export type TokenCoinSwapInstance = TypedEventInstance<TokenCoinSwap<any>> & {
|
|
1074
|
-
data_decoded: TokenCoinSwap<any>;
|
|
1075
|
-
type_arguments: [string];
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1078
|
-
export interface TokenEscrow {
|
|
1079
|
-
token: token.Token;
|
|
1080
|
-
locked_until_secs: bigint;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
export namespace TokenEscrow {
|
|
1084
|
-
export const TYPE_QNAME = "0x3::token_coin_swap::TokenEscrow";
|
|
1085
|
-
|
|
1086
|
-
const TYPE = new TypeDescriptor<TokenEscrow>(TokenEscrow.TYPE_QNAME);
|
|
1087
|
-
|
|
1088
|
-
export function type(): TypeDescriptor<TokenEscrow> {
|
|
1089
|
-
return TYPE.apply();
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
export interface TokenListingEvent {
|
|
1094
|
-
token_id: token.TokenId;
|
|
1095
|
-
amount: bigint;
|
|
1096
|
-
min_price: bigint;
|
|
1097
|
-
locked_until_secs: bigint;
|
|
1098
|
-
coin_type_info: _0x1.type_info.TypeInfo;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
export namespace TokenListingEvent {
|
|
1102
|
-
export const TYPE_QNAME = "0x3::token_coin_swap::TokenListingEvent";
|
|
1103
|
-
|
|
1104
|
-
const TYPE = new TypeDescriptor<TokenListingEvent>(
|
|
1105
|
-
TokenListingEvent.TYPE_QNAME,
|
|
1106
|
-
);
|
|
1107
|
-
|
|
1108
|
-
export function type(): TypeDescriptor<TokenListingEvent> {
|
|
1109
|
-
return TYPE.apply();
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
export type TokenListingEventInstance =
|
|
1114
|
-
TypedEventInstance<TokenListingEvent> & {
|
|
1115
|
-
data_decoded: TokenListingEvent;
|
|
1116
|
-
type_arguments: [];
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
export interface TokenListings<T0> {
|
|
1120
|
-
listings: _0x1.table.Table<
|
|
1121
|
-
token.TokenId,
|
|
1122
|
-
token_coin_swap.TokenCoinSwap<T0>
|
|
1123
|
-
>;
|
|
1124
|
-
listing_events: _0x1.event.EventHandle<token_coin_swap.TokenListingEvent>;
|
|
1125
|
-
swap_events: _0x1.event.EventHandle<token_coin_swap.TokenSwapEvent>;
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
export namespace TokenListings {
|
|
1129
|
-
export const TYPE_QNAME = "0x3::token_coin_swap::TokenListings";
|
|
1130
|
-
|
|
1131
|
-
const TYPE = new TypeDescriptor<TokenListings<any>>(
|
|
1132
|
-
TokenListings.TYPE_QNAME,
|
|
1133
|
-
);
|
|
1134
|
-
|
|
1135
|
-
export function type<T0>(
|
|
1136
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1137
|
-
): TypeDescriptor<TokenListings<T0>> {
|
|
1138
|
-
return TYPE.apply(arg0);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export interface TokenStoreEscrow {
|
|
1143
|
-
token_escrows: _0x1.table.Table<token.TokenId, token_coin_swap.TokenEscrow>;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
export namespace TokenStoreEscrow {
|
|
1147
|
-
export const TYPE_QNAME = "0x3::token_coin_swap::TokenStoreEscrow";
|
|
1148
|
-
|
|
1149
|
-
const TYPE = new TypeDescriptor<TokenStoreEscrow>(
|
|
1150
|
-
TokenStoreEscrow.TYPE_QNAME,
|
|
1151
|
-
);
|
|
1152
|
-
|
|
1153
|
-
export function type(): TypeDescriptor<TokenStoreEscrow> {
|
|
1154
|
-
return TYPE.apply();
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
export interface TokenSwapEvent {
|
|
1159
|
-
token_id: token.TokenId;
|
|
1160
|
-
token_buyer: MoveAddressType;
|
|
1161
|
-
token_amount: bigint;
|
|
1162
|
-
coin_amount: bigint;
|
|
1163
|
-
coin_type_info: _0x1.type_info.TypeInfo;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
export namespace TokenSwapEvent {
|
|
1167
|
-
export const TYPE_QNAME = "0x3::token_coin_swap::TokenSwapEvent";
|
|
1168
|
-
|
|
1169
|
-
const TYPE = new TypeDescriptor<TokenSwapEvent>(TokenSwapEvent.TYPE_QNAME);
|
|
1170
|
-
|
|
1171
|
-
export function type(): TypeDescriptor<TokenSwapEvent> {
|
|
1172
|
-
return TYPE.apply();
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
export type TokenSwapEventInstance = TypedEventInstance<TokenSwapEvent> & {
|
|
1177
|
-
data_decoded: TokenSwapEvent;
|
|
1178
|
-
type_arguments: [];
|
|
1179
|
-
};
|
|
1180
|
-
|
|
1181
|
-
export namespace entry {
|
|
1182
|
-
export async function listTokenForSwap<T0 = any>(
|
|
1183
|
-
client: Aptos,
|
|
1184
|
-
account: AptosAccount,
|
|
1185
|
-
request: {
|
|
1186
|
-
typeArguments: [MoveStructId];
|
|
1187
|
-
functionArguments: [
|
|
1188
|
-
MoveAddressType,
|
|
1189
|
-
string,
|
|
1190
|
-
string,
|
|
1191
|
-
bigint,
|
|
1192
|
-
bigint,
|
|
1193
|
-
bigint,
|
|
1194
|
-
bigint,
|
|
1195
|
-
];
|
|
1196
|
-
},
|
|
1197
|
-
options?: InputGenerateTransactionOptions,
|
|
1198
|
-
): Promise<PendingTransactionResponse> {
|
|
1199
|
-
const coder = defaultMoveCoder(client.config);
|
|
1200
|
-
const transaction = await client.transaction.build.simple({
|
|
1201
|
-
sender: account.accountAddress,
|
|
1202
|
-
data: {
|
|
1203
|
-
function: "0x3::token_coin_swap::list_token_for_swap",
|
|
1204
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
1205
|
-
typeArguments: request.typeArguments,
|
|
1206
|
-
},
|
|
1207
|
-
options,
|
|
1208
|
-
});
|
|
1209
|
-
return await client.signAndSubmitTransaction({
|
|
1210
|
-
signer: account,
|
|
1211
|
-
transaction,
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
export namespace view {}
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
export namespace token_transfers {
|
|
1219
|
-
export interface CancelOffer {
|
|
1220
|
-
account: MoveAddressType;
|
|
1221
|
-
to_address: MoveAddressType;
|
|
1222
|
-
token_id: token.TokenId;
|
|
1223
|
-
amount: bigint;
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
export namespace CancelOffer {
|
|
1227
|
-
export const TYPE_QNAME = "0x3::token_transfers::CancelOffer";
|
|
1228
|
-
|
|
1229
|
-
const TYPE = new TypeDescriptor<CancelOffer>(CancelOffer.TYPE_QNAME);
|
|
1230
|
-
|
|
1231
|
-
export function type(): TypeDescriptor<CancelOffer> {
|
|
1232
|
-
return TYPE.apply();
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
export type CancelOfferInstance = TypedEventInstance<CancelOffer> & {
|
|
1237
|
-
data_decoded: CancelOffer;
|
|
1238
|
-
type_arguments: [];
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
export interface Claim {
|
|
1242
|
-
account: MoveAddressType;
|
|
1243
|
-
to_address: MoveAddressType;
|
|
1244
|
-
token_id: token.TokenId;
|
|
1245
|
-
amount: bigint;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
export namespace Claim {
|
|
1249
|
-
export const TYPE_QNAME = "0x3::token_transfers::Claim";
|
|
1250
|
-
|
|
1251
|
-
const TYPE = new TypeDescriptor<Claim>(Claim.TYPE_QNAME);
|
|
1252
|
-
|
|
1253
|
-
export function type(): TypeDescriptor<Claim> {
|
|
1254
|
-
return TYPE.apply();
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
export type ClaimInstance = TypedEventInstance<Claim> & {
|
|
1259
|
-
data_decoded: Claim;
|
|
1260
|
-
type_arguments: [];
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
export interface Offer {
|
|
1264
|
-
account: MoveAddressType;
|
|
1265
|
-
to_address: MoveAddressType;
|
|
1266
|
-
token_id: token.TokenId;
|
|
1267
|
-
amount: bigint;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
export namespace Offer {
|
|
1271
|
-
export const TYPE_QNAME = "0x3::token_transfers::Offer";
|
|
1272
|
-
|
|
1273
|
-
const TYPE = new TypeDescriptor<Offer>(Offer.TYPE_QNAME);
|
|
1274
|
-
|
|
1275
|
-
export function type(): TypeDescriptor<Offer> {
|
|
1276
|
-
return TYPE.apply();
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
export type OfferInstance = TypedEventInstance<Offer> & {
|
|
1281
|
-
data_decoded: Offer;
|
|
1282
|
-
type_arguments: [];
|
|
1283
|
-
};
|
|
1284
|
-
|
|
1285
|
-
export interface PendingClaims {
|
|
1286
|
-
pending_claims: _0x1.table.Table<token_transfers.TokenOfferId, token.Token>;
|
|
1287
|
-
offer_events: _0x1.event.EventHandle<token_transfers.TokenOfferEvent>;
|
|
1288
|
-
cancel_offer_events: _0x1.event.EventHandle<token_transfers.TokenCancelOfferEvent>;
|
|
1289
|
-
claim_events: _0x1.event.EventHandle<token_transfers.TokenClaimEvent>;
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
export namespace PendingClaims {
|
|
1293
|
-
export const TYPE_QNAME = "0x3::token_transfers::PendingClaims";
|
|
1294
|
-
|
|
1295
|
-
const TYPE = new TypeDescriptor<PendingClaims>(PendingClaims.TYPE_QNAME);
|
|
1296
|
-
|
|
1297
|
-
export function type(): TypeDescriptor<PendingClaims> {
|
|
1298
|
-
return TYPE.apply();
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
export interface TokenCancelOffer {
|
|
1303
|
-
to_address: MoveAddressType;
|
|
1304
|
-
token_id: token.TokenId;
|
|
1305
|
-
amount: bigint;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
export namespace TokenCancelOffer {
|
|
1309
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenCancelOffer";
|
|
1310
|
-
|
|
1311
|
-
const TYPE = new TypeDescriptor<TokenCancelOffer>(
|
|
1312
|
-
TokenCancelOffer.TYPE_QNAME,
|
|
1313
|
-
);
|
|
1314
|
-
|
|
1315
|
-
export function type(): TypeDescriptor<TokenCancelOffer> {
|
|
1316
|
-
return TYPE.apply();
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
export type TokenCancelOfferInstance =
|
|
1321
|
-
TypedEventInstance<TokenCancelOffer> & {
|
|
1322
|
-
data_decoded: TokenCancelOffer;
|
|
1323
|
-
type_arguments: [];
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
export interface TokenCancelOfferEvent {
|
|
1327
|
-
to_address: MoveAddressType;
|
|
1328
|
-
token_id: token.TokenId;
|
|
1329
|
-
amount: bigint;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
export namespace TokenCancelOfferEvent {
|
|
1333
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenCancelOfferEvent";
|
|
1334
|
-
|
|
1335
|
-
const TYPE = new TypeDescriptor<TokenCancelOfferEvent>(
|
|
1336
|
-
TokenCancelOfferEvent.TYPE_QNAME,
|
|
1337
|
-
);
|
|
1338
|
-
|
|
1339
|
-
export function type(): TypeDescriptor<TokenCancelOfferEvent> {
|
|
1340
|
-
return TYPE.apply();
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
export type TokenCancelOfferEventInstance =
|
|
1345
|
-
TypedEventInstance<TokenCancelOfferEvent> & {
|
|
1346
|
-
data_decoded: TokenCancelOfferEvent;
|
|
1347
|
-
type_arguments: [];
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
export interface TokenClaim {
|
|
1351
|
-
to_address: MoveAddressType;
|
|
1352
|
-
token_id: token.TokenId;
|
|
1353
|
-
amount: bigint;
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
export namespace TokenClaim {
|
|
1357
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenClaim";
|
|
1358
|
-
|
|
1359
|
-
const TYPE = new TypeDescriptor<TokenClaim>(TokenClaim.TYPE_QNAME);
|
|
1360
|
-
|
|
1361
|
-
export function type(): TypeDescriptor<TokenClaim> {
|
|
1362
|
-
return TYPE.apply();
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
export type TokenClaimInstance = TypedEventInstance<TokenClaim> & {
|
|
1367
|
-
data_decoded: TokenClaim;
|
|
1368
|
-
type_arguments: [];
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
export interface TokenClaimEvent {
|
|
1372
|
-
to_address: MoveAddressType;
|
|
1373
|
-
token_id: token.TokenId;
|
|
1374
|
-
amount: bigint;
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
export namespace TokenClaimEvent {
|
|
1378
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenClaimEvent";
|
|
1379
|
-
|
|
1380
|
-
const TYPE = new TypeDescriptor<TokenClaimEvent>(
|
|
1381
|
-
TokenClaimEvent.TYPE_QNAME,
|
|
1382
|
-
);
|
|
1383
|
-
|
|
1384
|
-
export function type(): TypeDescriptor<TokenClaimEvent> {
|
|
1385
|
-
return TYPE.apply();
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
export type TokenClaimEventInstance = TypedEventInstance<TokenClaimEvent> & {
|
|
1390
|
-
data_decoded: TokenClaimEvent;
|
|
1391
|
-
type_arguments: [];
|
|
1392
|
-
};
|
|
1393
|
-
|
|
1394
|
-
export interface TokenOffer {
|
|
1395
|
-
to_address: MoveAddressType;
|
|
1396
|
-
token_id: token.TokenId;
|
|
1397
|
-
amount: bigint;
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
export namespace TokenOffer {
|
|
1401
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenOffer";
|
|
1402
|
-
|
|
1403
|
-
const TYPE = new TypeDescriptor<TokenOffer>(TokenOffer.TYPE_QNAME);
|
|
1404
|
-
|
|
1405
|
-
export function type(): TypeDescriptor<TokenOffer> {
|
|
1406
|
-
return TYPE.apply();
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
export type TokenOfferInstance = TypedEventInstance<TokenOffer> & {
|
|
1411
|
-
data_decoded: TokenOffer;
|
|
1412
|
-
type_arguments: [];
|
|
1413
|
-
};
|
|
1414
|
-
|
|
1415
|
-
export interface TokenOfferEvent {
|
|
1416
|
-
to_address: MoveAddressType;
|
|
1417
|
-
token_id: token.TokenId;
|
|
1418
|
-
amount: bigint;
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
export namespace TokenOfferEvent {
|
|
1422
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenOfferEvent";
|
|
1423
|
-
|
|
1424
|
-
const TYPE = new TypeDescriptor<TokenOfferEvent>(
|
|
1425
|
-
TokenOfferEvent.TYPE_QNAME,
|
|
1426
|
-
);
|
|
1427
|
-
|
|
1428
|
-
export function type(): TypeDescriptor<TokenOfferEvent> {
|
|
1429
|
-
return TYPE.apply();
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
export type TokenOfferEventInstance = TypedEventInstance<TokenOfferEvent> & {
|
|
1434
|
-
data_decoded: TokenOfferEvent;
|
|
1435
|
-
type_arguments: [];
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
export interface TokenOfferId {
|
|
1439
|
-
to_addr: MoveAddressType;
|
|
1440
|
-
token_id: token.TokenId;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
export namespace TokenOfferId {
|
|
1444
|
-
export const TYPE_QNAME = "0x3::token_transfers::TokenOfferId";
|
|
1445
|
-
|
|
1446
|
-
const TYPE = new TypeDescriptor<TokenOfferId>(TokenOfferId.TYPE_QNAME);
|
|
1447
|
-
|
|
1448
|
-
export function type(): TypeDescriptor<TokenOfferId> {
|
|
1449
|
-
return TYPE.apply();
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
export type TokenOfferIdInstance = TypedEventInstance<TokenOfferId> & {
|
|
1454
|
-
data_decoded: TokenOfferId;
|
|
1455
|
-
type_arguments: [];
|
|
1456
|
-
};
|
|
1457
|
-
|
|
1458
|
-
export namespace entry {
|
|
1459
|
-
export async function cancelOfferScript(
|
|
1460
|
-
client: Aptos,
|
|
1461
|
-
account: AptosAccount,
|
|
1462
|
-
request: {
|
|
1463
|
-
typeArguments: [];
|
|
1464
|
-
functionArguments: [
|
|
1465
|
-
MoveAddressType,
|
|
1466
|
-
MoveAddressType,
|
|
1467
|
-
MoveAddressType,
|
|
1468
|
-
string,
|
|
1469
|
-
string,
|
|
1470
|
-
bigint,
|
|
1471
|
-
];
|
|
1472
|
-
},
|
|
1473
|
-
options?: InputGenerateTransactionOptions,
|
|
1474
|
-
): Promise<PendingTransactionResponse> {
|
|
1475
|
-
const coder = defaultMoveCoder(client.config);
|
|
1476
|
-
const transaction = await client.transaction.build.simple({
|
|
1477
|
-
sender: account.accountAddress,
|
|
1478
|
-
data: {
|
|
1479
|
-
function: "0x3::token_transfers::cancel_offer_script",
|
|
1480
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
1481
|
-
typeArguments: [],
|
|
1482
|
-
},
|
|
1483
|
-
options,
|
|
1484
|
-
});
|
|
1485
|
-
return await client.signAndSubmitTransaction({
|
|
1486
|
-
signer: account,
|
|
1487
|
-
transaction,
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
export async function claimScript(
|
|
1492
|
-
client: Aptos,
|
|
1493
|
-
account: AptosAccount,
|
|
1494
|
-
request: {
|
|
1495
|
-
typeArguments: [];
|
|
1496
|
-
functionArguments: [
|
|
1497
|
-
MoveAddressType,
|
|
1498
|
-
MoveAddressType,
|
|
1499
|
-
MoveAddressType,
|
|
1500
|
-
string,
|
|
1501
|
-
string,
|
|
1502
|
-
bigint,
|
|
1503
|
-
];
|
|
1504
|
-
},
|
|
1505
|
-
options?: InputGenerateTransactionOptions,
|
|
1506
|
-
): Promise<PendingTransactionResponse> {
|
|
1507
|
-
const coder = defaultMoveCoder(client.config);
|
|
1508
|
-
const transaction = await client.transaction.build.simple({
|
|
1509
|
-
sender: account.accountAddress,
|
|
1510
|
-
data: {
|
|
1511
|
-
function: "0x3::token_transfers::claim_script",
|
|
1512
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
1513
|
-
typeArguments: [],
|
|
1514
|
-
},
|
|
1515
|
-
options,
|
|
1516
|
-
});
|
|
1517
|
-
return await client.signAndSubmitTransaction({
|
|
1518
|
-
signer: account,
|
|
1519
|
-
transaction,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
export async function offerScript(
|
|
1524
|
-
client: Aptos,
|
|
1525
|
-
account: AptosAccount,
|
|
1526
|
-
request: {
|
|
1527
|
-
typeArguments: [];
|
|
1528
|
-
functionArguments: [
|
|
1529
|
-
MoveAddressType,
|
|
1530
|
-
MoveAddressType,
|
|
1531
|
-
MoveAddressType,
|
|
1532
|
-
string,
|
|
1533
|
-
string,
|
|
1534
|
-
bigint,
|
|
1535
|
-
bigint,
|
|
1536
|
-
];
|
|
1537
|
-
},
|
|
1538
|
-
options?: InputGenerateTransactionOptions,
|
|
1539
|
-
): Promise<PendingTransactionResponse> {
|
|
1540
|
-
const coder = defaultMoveCoder(client.config);
|
|
1541
|
-
const transaction = await client.transaction.build.simple({
|
|
1542
|
-
sender: account.accountAddress,
|
|
1543
|
-
data: {
|
|
1544
|
-
function: "0x3::token_transfers::offer_script",
|
|
1545
|
-
functionArguments: coder.encodeArray(request.functionArguments),
|
|
1546
|
-
typeArguments: [],
|
|
1547
|
-
},
|
|
1548
|
-
options,
|
|
1549
|
-
});
|
|
1550
|
-
return await client.signAndSubmitTransaction({
|
|
1551
|
-
signer: account,
|
|
1552
|
-
transaction,
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
export namespace view {}
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
export namespace token_event_store {
|
|
1560
|
-
export interface CollectionDescriptionMutate {
|
|
1561
|
-
creator_addr: MoveAddressType;
|
|
1562
|
-
collection_name: string;
|
|
1563
|
-
old_description: string;
|
|
1564
|
-
new_description: string;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
export namespace CollectionDescriptionMutate {
|
|
1568
|
-
export const TYPE_QNAME =
|
|
1569
|
-
"0x3::token_event_store::CollectionDescriptionMutate";
|
|
1570
|
-
|
|
1571
|
-
const TYPE = new TypeDescriptor<CollectionDescriptionMutate>(
|
|
1572
|
-
CollectionDescriptionMutate.TYPE_QNAME,
|
|
1573
|
-
);
|
|
1574
|
-
|
|
1575
|
-
export function type(): TypeDescriptor<CollectionDescriptionMutate> {
|
|
1576
|
-
return TYPE.apply();
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
export type CollectionDescriptionMutateInstance =
|
|
1581
|
-
TypedEventInstance<CollectionDescriptionMutate> & {
|
|
1582
|
-
data_decoded: CollectionDescriptionMutate;
|
|
1583
|
-
type_arguments: [];
|
|
1584
|
-
};
|
|
1585
|
-
|
|
1586
|
-
export interface CollectionDescriptionMutateEvent {
|
|
1587
|
-
creator_addr: MoveAddressType;
|
|
1588
|
-
collection_name: string;
|
|
1589
|
-
old_description: string;
|
|
1590
|
-
new_description: string;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
export namespace CollectionDescriptionMutateEvent {
|
|
1594
|
-
export const TYPE_QNAME =
|
|
1595
|
-
"0x3::token_event_store::CollectionDescriptionMutateEvent";
|
|
1596
|
-
|
|
1597
|
-
const TYPE = new TypeDescriptor<CollectionDescriptionMutateEvent>(
|
|
1598
|
-
CollectionDescriptionMutateEvent.TYPE_QNAME,
|
|
1599
|
-
);
|
|
1600
|
-
|
|
1601
|
-
export function type(): TypeDescriptor<CollectionDescriptionMutateEvent> {
|
|
1602
|
-
return TYPE.apply();
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
export type CollectionDescriptionMutateEventInstance =
|
|
1607
|
-
TypedEventInstance<CollectionDescriptionMutateEvent> & {
|
|
1608
|
-
data_decoded: CollectionDescriptionMutateEvent;
|
|
1609
|
-
type_arguments: [];
|
|
1610
|
-
};
|
|
1611
|
-
|
|
1612
|
-
export interface CollectionMaximumMutate {
|
|
1613
|
-
creator_addr: MoveAddressType;
|
|
1614
|
-
collection_name: string;
|
|
1615
|
-
old_maximum: bigint;
|
|
1616
|
-
new_maximum: bigint;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
export namespace CollectionMaximumMutate {
|
|
1620
|
-
export const TYPE_QNAME = "0x3::token_event_store::CollectionMaximumMutate";
|
|
1621
|
-
|
|
1622
|
-
const TYPE = new TypeDescriptor<CollectionMaximumMutate>(
|
|
1623
|
-
CollectionMaximumMutate.TYPE_QNAME,
|
|
1624
|
-
);
|
|
1625
|
-
|
|
1626
|
-
export function type(): TypeDescriptor<CollectionMaximumMutate> {
|
|
1627
|
-
return TYPE.apply();
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
export type CollectionMaximumMutateInstance =
|
|
1632
|
-
TypedEventInstance<CollectionMaximumMutate> & {
|
|
1633
|
-
data_decoded: CollectionMaximumMutate;
|
|
1634
|
-
type_arguments: [];
|
|
1635
|
-
};
|
|
1636
|
-
|
|
1637
|
-
export interface CollectionMaxiumMutate {
|
|
1638
|
-
creator_addr: MoveAddressType;
|
|
1639
|
-
collection_name: string;
|
|
1640
|
-
old_maximum: bigint;
|
|
1641
|
-
new_maximum: bigint;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
export namespace CollectionMaxiumMutate {
|
|
1645
|
-
export const TYPE_QNAME = "0x3::token_event_store::CollectionMaxiumMutate";
|
|
1646
|
-
|
|
1647
|
-
const TYPE = new TypeDescriptor<CollectionMaxiumMutate>(
|
|
1648
|
-
CollectionMaxiumMutate.TYPE_QNAME,
|
|
1649
|
-
);
|
|
1650
|
-
|
|
1651
|
-
export function type(): TypeDescriptor<CollectionMaxiumMutate> {
|
|
1652
|
-
return TYPE.apply();
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
export type CollectionMaxiumMutateInstance =
|
|
1657
|
-
TypedEventInstance<CollectionMaxiumMutate> & {
|
|
1658
|
-
data_decoded: CollectionMaxiumMutate;
|
|
1659
|
-
type_arguments: [];
|
|
1660
|
-
};
|
|
1661
|
-
|
|
1662
|
-
export interface CollectionMaxiumMutateEvent {
|
|
1663
|
-
creator_addr: MoveAddressType;
|
|
1664
|
-
collection_name: string;
|
|
1665
|
-
old_maximum: bigint;
|
|
1666
|
-
new_maximum: bigint;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
export namespace CollectionMaxiumMutateEvent {
|
|
1670
|
-
export const TYPE_QNAME =
|
|
1671
|
-
"0x3::token_event_store::CollectionMaxiumMutateEvent";
|
|
1672
|
-
|
|
1673
|
-
const TYPE = new TypeDescriptor<CollectionMaxiumMutateEvent>(
|
|
1674
|
-
CollectionMaxiumMutateEvent.TYPE_QNAME,
|
|
1675
|
-
);
|
|
1676
|
-
|
|
1677
|
-
export function type(): TypeDescriptor<CollectionMaxiumMutateEvent> {
|
|
1678
|
-
return TYPE.apply();
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
export type CollectionMaxiumMutateEventInstance =
|
|
1683
|
-
TypedEventInstance<CollectionMaxiumMutateEvent> & {
|
|
1684
|
-
data_decoded: CollectionMaxiumMutateEvent;
|
|
1685
|
-
type_arguments: [];
|
|
1686
|
-
};
|
|
1687
|
-
|
|
1688
|
-
export interface CollectionUriMutate {
|
|
1689
|
-
creator_addr: MoveAddressType;
|
|
1690
|
-
collection_name: string;
|
|
1691
|
-
old_uri: string;
|
|
1692
|
-
new_uri: string;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
export namespace CollectionUriMutate {
|
|
1696
|
-
export const TYPE_QNAME = "0x3::token_event_store::CollectionUriMutate";
|
|
1697
|
-
|
|
1698
|
-
const TYPE = new TypeDescriptor<CollectionUriMutate>(
|
|
1699
|
-
CollectionUriMutate.TYPE_QNAME,
|
|
1700
|
-
);
|
|
1701
|
-
|
|
1702
|
-
export function type(): TypeDescriptor<CollectionUriMutate> {
|
|
1703
|
-
return TYPE.apply();
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
export type CollectionUriMutateInstance =
|
|
1708
|
-
TypedEventInstance<CollectionUriMutate> & {
|
|
1709
|
-
data_decoded: CollectionUriMutate;
|
|
1710
|
-
type_arguments: [];
|
|
1711
|
-
};
|
|
1712
|
-
|
|
1713
|
-
export interface CollectionUriMutateEvent {
|
|
1714
|
-
creator_addr: MoveAddressType;
|
|
1715
|
-
collection_name: string;
|
|
1716
|
-
old_uri: string;
|
|
1717
|
-
new_uri: string;
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
export namespace CollectionUriMutateEvent {
|
|
1721
|
-
export const TYPE_QNAME =
|
|
1722
|
-
"0x3::token_event_store::CollectionUriMutateEvent";
|
|
1723
|
-
|
|
1724
|
-
const TYPE = new TypeDescriptor<CollectionUriMutateEvent>(
|
|
1725
|
-
CollectionUriMutateEvent.TYPE_QNAME,
|
|
1726
|
-
);
|
|
1727
|
-
|
|
1728
|
-
export function type(): TypeDescriptor<CollectionUriMutateEvent> {
|
|
1729
|
-
return TYPE.apply();
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
export type CollectionUriMutateEventInstance =
|
|
1734
|
-
TypedEventInstance<CollectionUriMutateEvent> & {
|
|
1735
|
-
data_decoded: CollectionUriMutateEvent;
|
|
1736
|
-
type_arguments: [];
|
|
1737
|
-
};
|
|
1738
|
-
|
|
1739
|
-
export interface DefaultPropertyMutate {
|
|
1740
|
-
creator: MoveAddressType;
|
|
1741
|
-
collection: string;
|
|
1742
|
-
token: string;
|
|
1743
|
-
keys: string[];
|
|
1744
|
-
old_values: _0x1.option.Option<property_map.PropertyValue>[];
|
|
1745
|
-
new_values: property_map.PropertyValue[];
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
export namespace DefaultPropertyMutate {
|
|
1749
|
-
export const TYPE_QNAME = "0x3::token_event_store::DefaultPropertyMutate";
|
|
1750
|
-
|
|
1751
|
-
const TYPE = new TypeDescriptor<DefaultPropertyMutate>(
|
|
1752
|
-
DefaultPropertyMutate.TYPE_QNAME,
|
|
1753
|
-
);
|
|
1754
|
-
|
|
1755
|
-
export function type(): TypeDescriptor<DefaultPropertyMutate> {
|
|
1756
|
-
return TYPE.apply();
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
export type DefaultPropertyMutateInstance =
|
|
1761
|
-
TypedEventInstance<DefaultPropertyMutate> & {
|
|
1762
|
-
data_decoded: DefaultPropertyMutate;
|
|
1763
|
-
type_arguments: [];
|
|
1764
|
-
};
|
|
1765
|
-
|
|
1766
|
-
export interface DefaultPropertyMutateEvent {
|
|
1767
|
-
creator: MoveAddressType;
|
|
1768
|
-
collection: string;
|
|
1769
|
-
token: string;
|
|
1770
|
-
keys: string[];
|
|
1771
|
-
old_values: _0x1.option.Option<property_map.PropertyValue>[];
|
|
1772
|
-
new_values: property_map.PropertyValue[];
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
export namespace DefaultPropertyMutateEvent {
|
|
1776
|
-
export const TYPE_QNAME =
|
|
1777
|
-
"0x3::token_event_store::DefaultPropertyMutateEvent";
|
|
1778
|
-
|
|
1779
|
-
const TYPE = new TypeDescriptor<DefaultPropertyMutateEvent>(
|
|
1780
|
-
DefaultPropertyMutateEvent.TYPE_QNAME,
|
|
1781
|
-
);
|
|
1782
|
-
|
|
1783
|
-
export function type(): TypeDescriptor<DefaultPropertyMutateEvent> {
|
|
1784
|
-
return TYPE.apply();
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
export type DefaultPropertyMutateEventInstance =
|
|
1789
|
-
TypedEventInstance<DefaultPropertyMutateEvent> & {
|
|
1790
|
-
data_decoded: DefaultPropertyMutateEvent;
|
|
1791
|
-
type_arguments: [];
|
|
1792
|
-
};
|
|
1793
|
-
|
|
1794
|
-
export interface DescriptionMutate {
|
|
1795
|
-
creator: MoveAddressType;
|
|
1796
|
-
collection: string;
|
|
1797
|
-
token: string;
|
|
1798
|
-
old_description: string;
|
|
1799
|
-
new_description: string;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
export namespace DescriptionMutate {
|
|
1803
|
-
export const TYPE_QNAME = "0x3::token_event_store::DescriptionMutate";
|
|
1804
|
-
|
|
1805
|
-
const TYPE = new TypeDescriptor<DescriptionMutate>(
|
|
1806
|
-
DescriptionMutate.TYPE_QNAME,
|
|
1807
|
-
);
|
|
1808
|
-
|
|
1809
|
-
export function type(): TypeDescriptor<DescriptionMutate> {
|
|
1810
|
-
return TYPE.apply();
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export type DescriptionMutateInstance =
|
|
1815
|
-
TypedEventInstance<DescriptionMutate> & {
|
|
1816
|
-
data_decoded: DescriptionMutate;
|
|
1817
|
-
type_arguments: [];
|
|
1818
|
-
};
|
|
1819
|
-
|
|
1820
|
-
export interface DescriptionMutateEvent {
|
|
1821
|
-
creator: MoveAddressType;
|
|
1822
|
-
collection: string;
|
|
1823
|
-
token: string;
|
|
1824
|
-
old_description: string;
|
|
1825
|
-
new_description: string;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
export namespace DescriptionMutateEvent {
|
|
1829
|
-
export const TYPE_QNAME = "0x3::token_event_store::DescriptionMutateEvent";
|
|
1830
|
-
|
|
1831
|
-
const TYPE = new TypeDescriptor<DescriptionMutateEvent>(
|
|
1832
|
-
DescriptionMutateEvent.TYPE_QNAME,
|
|
1833
|
-
);
|
|
1834
|
-
|
|
1835
|
-
export function type(): TypeDescriptor<DescriptionMutateEvent> {
|
|
1836
|
-
return TYPE.apply();
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
export type DescriptionMutateEventInstance =
|
|
1841
|
-
TypedEventInstance<DescriptionMutateEvent> & {
|
|
1842
|
-
data_decoded: DescriptionMutateEvent;
|
|
1843
|
-
type_arguments: [];
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
export interface MaximumMutate {
|
|
1847
|
-
creator: MoveAddressType;
|
|
1848
|
-
collection: string;
|
|
1849
|
-
token: string;
|
|
1850
|
-
old_maximum: bigint;
|
|
1851
|
-
new_maximum: bigint;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
export namespace MaximumMutate {
|
|
1855
|
-
export const TYPE_QNAME = "0x3::token_event_store::MaximumMutate";
|
|
1856
|
-
|
|
1857
|
-
const TYPE = new TypeDescriptor<MaximumMutate>(MaximumMutate.TYPE_QNAME);
|
|
1858
|
-
|
|
1859
|
-
export function type(): TypeDescriptor<MaximumMutate> {
|
|
1860
|
-
return TYPE.apply();
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
export type MaximumMutateInstance = TypedEventInstance<MaximumMutate> & {
|
|
1865
|
-
data_decoded: MaximumMutate;
|
|
1866
|
-
type_arguments: [];
|
|
1867
|
-
};
|
|
1868
|
-
|
|
1869
|
-
export interface MaxiumMutateEvent {
|
|
1870
|
-
creator: MoveAddressType;
|
|
1871
|
-
collection: string;
|
|
1872
|
-
token: string;
|
|
1873
|
-
old_maximum: bigint;
|
|
1874
|
-
new_maximum: bigint;
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
export namespace MaxiumMutateEvent {
|
|
1878
|
-
export const TYPE_QNAME = "0x3::token_event_store::MaxiumMutateEvent";
|
|
1879
|
-
|
|
1880
|
-
const TYPE = new TypeDescriptor<MaxiumMutateEvent>(
|
|
1881
|
-
MaxiumMutateEvent.TYPE_QNAME,
|
|
1882
|
-
);
|
|
1883
|
-
|
|
1884
|
-
export function type(): TypeDescriptor<MaxiumMutateEvent> {
|
|
1885
|
-
return TYPE.apply();
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
export type MaxiumMutateEventInstance =
|
|
1890
|
-
TypedEventInstance<MaxiumMutateEvent> & {
|
|
1891
|
-
data_decoded: MaxiumMutateEvent;
|
|
1892
|
-
type_arguments: [];
|
|
1893
|
-
};
|
|
1894
|
-
|
|
1895
|
-
export interface OptInTransfer {
|
|
1896
|
-
account_address: MoveAddressType;
|
|
1897
|
-
opt_in: boolean;
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
export namespace OptInTransfer {
|
|
1901
|
-
export const TYPE_QNAME = "0x3::token_event_store::OptInTransfer";
|
|
1902
|
-
|
|
1903
|
-
const TYPE = new TypeDescriptor<OptInTransfer>(OptInTransfer.TYPE_QNAME);
|
|
1904
|
-
|
|
1905
|
-
export function type(): TypeDescriptor<OptInTransfer> {
|
|
1906
|
-
return TYPE.apply();
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
export type OptInTransferInstance = TypedEventInstance<OptInTransfer> & {
|
|
1911
|
-
data_decoded: OptInTransfer;
|
|
1912
|
-
type_arguments: [];
|
|
1913
|
-
};
|
|
1914
|
-
|
|
1915
|
-
export interface OptInTransferEvent {
|
|
1916
|
-
opt_in: boolean;
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
export namespace OptInTransferEvent {
|
|
1920
|
-
export const TYPE_QNAME = "0x3::token_event_store::OptInTransferEvent";
|
|
1921
|
-
|
|
1922
|
-
const TYPE = new TypeDescriptor<OptInTransferEvent>(
|
|
1923
|
-
OptInTransferEvent.TYPE_QNAME,
|
|
1924
|
-
);
|
|
1925
|
-
|
|
1926
|
-
export function type(): TypeDescriptor<OptInTransferEvent> {
|
|
1927
|
-
return TYPE.apply();
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
export type OptInTransferEventInstance =
|
|
1932
|
-
TypedEventInstance<OptInTransferEvent> & {
|
|
1933
|
-
data_decoded: OptInTransferEvent;
|
|
1934
|
-
type_arguments: [];
|
|
1935
|
-
};
|
|
1936
|
-
|
|
1937
|
-
export interface RoyaltyMutate {
|
|
1938
|
-
creator: MoveAddressType;
|
|
1939
|
-
collection: string;
|
|
1940
|
-
token: string;
|
|
1941
|
-
old_royalty_numerator: bigint;
|
|
1942
|
-
old_royalty_denominator: bigint;
|
|
1943
|
-
old_royalty_payee_addr: MoveAddressType;
|
|
1944
|
-
new_royalty_numerator: bigint;
|
|
1945
|
-
new_royalty_denominator: bigint;
|
|
1946
|
-
new_royalty_payee_addr: MoveAddressType;
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
export namespace RoyaltyMutate {
|
|
1950
|
-
export const TYPE_QNAME = "0x3::token_event_store::RoyaltyMutate";
|
|
1951
|
-
|
|
1952
|
-
const TYPE = new TypeDescriptor<RoyaltyMutate>(RoyaltyMutate.TYPE_QNAME);
|
|
1953
|
-
|
|
1954
|
-
export function type(): TypeDescriptor<RoyaltyMutate> {
|
|
1955
|
-
return TYPE.apply();
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
export type RoyaltyMutateInstance = TypedEventInstance<RoyaltyMutate> & {
|
|
1960
|
-
data_decoded: RoyaltyMutate;
|
|
1961
|
-
type_arguments: [];
|
|
1962
|
-
};
|
|
1963
|
-
|
|
1964
|
-
export interface RoyaltyMutateEvent {
|
|
1965
|
-
creator: MoveAddressType;
|
|
1966
|
-
collection: string;
|
|
1967
|
-
token: string;
|
|
1968
|
-
old_royalty_numerator: bigint;
|
|
1969
|
-
old_royalty_denominator: bigint;
|
|
1970
|
-
old_royalty_payee_addr: MoveAddressType;
|
|
1971
|
-
new_royalty_numerator: bigint;
|
|
1972
|
-
new_royalty_denominator: bigint;
|
|
1973
|
-
new_royalty_payee_addr: MoveAddressType;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
export namespace RoyaltyMutateEvent {
|
|
1977
|
-
export const TYPE_QNAME = "0x3::token_event_store::RoyaltyMutateEvent";
|
|
1978
|
-
|
|
1979
|
-
const TYPE = new TypeDescriptor<RoyaltyMutateEvent>(
|
|
1980
|
-
RoyaltyMutateEvent.TYPE_QNAME,
|
|
1981
|
-
);
|
|
1982
|
-
|
|
1983
|
-
export function type(): TypeDescriptor<RoyaltyMutateEvent> {
|
|
1984
|
-
return TYPE.apply();
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
export type RoyaltyMutateEventInstance =
|
|
1989
|
-
TypedEventInstance<RoyaltyMutateEvent> & {
|
|
1990
|
-
data_decoded: RoyaltyMutateEvent;
|
|
1991
|
-
type_arguments: [];
|
|
1992
|
-
};
|
|
1993
|
-
|
|
1994
|
-
export interface TokenEventStoreV1 {
|
|
1995
|
-
collection_uri_mutate_events: _0x1.event.EventHandle<token_event_store.CollectionUriMutateEvent>;
|
|
1996
|
-
collection_maximum_mutate_events: _0x1.event.EventHandle<token_event_store.CollectionMaxiumMutateEvent>;
|
|
1997
|
-
collection_description_mutate_events: _0x1.event.EventHandle<token_event_store.CollectionDescriptionMutateEvent>;
|
|
1998
|
-
opt_in_events: _0x1.event.EventHandle<token_event_store.OptInTransferEvent>;
|
|
1999
|
-
uri_mutate_events: _0x1.event.EventHandle<token_event_store.UriMutationEvent>;
|
|
2000
|
-
default_property_mutate_events: _0x1.event.EventHandle<token_event_store.DefaultPropertyMutateEvent>;
|
|
2001
|
-
description_mutate_events: _0x1.event.EventHandle<token_event_store.DescriptionMutateEvent>;
|
|
2002
|
-
royalty_mutate_events: _0x1.event.EventHandle<token_event_store.RoyaltyMutateEvent>;
|
|
2003
|
-
maximum_mutate_events: _0x1.event.EventHandle<token_event_store.MaxiumMutateEvent>;
|
|
2004
|
-
extension: _0x1.option.Option<_0x1.any$.Any>;
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
export namespace TokenEventStoreV1 {
|
|
2008
|
-
export const TYPE_QNAME = "0x3::token_event_store::TokenEventStoreV1";
|
|
2009
|
-
|
|
2010
|
-
const TYPE = new TypeDescriptor<TokenEventStoreV1>(
|
|
2011
|
-
TokenEventStoreV1.TYPE_QNAME,
|
|
2012
|
-
);
|
|
2013
|
-
|
|
2014
|
-
export function type(): TypeDescriptor<TokenEventStoreV1> {
|
|
2015
|
-
return TYPE.apply();
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
export interface UriMutation {
|
|
2020
|
-
creator: MoveAddressType;
|
|
2021
|
-
collection: string;
|
|
2022
|
-
token: string;
|
|
2023
|
-
old_uri: string;
|
|
2024
|
-
new_uri: string;
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
export namespace UriMutation {
|
|
2028
|
-
export const TYPE_QNAME = "0x3::token_event_store::UriMutation";
|
|
2029
|
-
|
|
2030
|
-
const TYPE = new TypeDescriptor<UriMutation>(UriMutation.TYPE_QNAME);
|
|
2031
|
-
|
|
2032
|
-
export function type(): TypeDescriptor<UriMutation> {
|
|
2033
|
-
return TYPE.apply();
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
export type UriMutationInstance = TypedEventInstance<UriMutation> & {
|
|
2038
|
-
data_decoded: UriMutation;
|
|
2039
|
-
type_arguments: [];
|
|
2040
|
-
};
|
|
2041
|
-
|
|
2042
|
-
export interface UriMutationEvent {
|
|
2043
|
-
creator: MoveAddressType;
|
|
2044
|
-
collection: string;
|
|
2045
|
-
token: string;
|
|
2046
|
-
old_uri: string;
|
|
2047
|
-
new_uri: string;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
export namespace UriMutationEvent {
|
|
2051
|
-
export const TYPE_QNAME = "0x3::token_event_store::UriMutationEvent";
|
|
2052
|
-
|
|
2053
|
-
const TYPE = new TypeDescriptor<UriMutationEvent>(
|
|
2054
|
-
UriMutationEvent.TYPE_QNAME,
|
|
2055
|
-
);
|
|
2056
|
-
|
|
2057
|
-
export function type(): TypeDescriptor<UriMutationEvent> {
|
|
2058
|
-
return TYPE.apply();
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
export type UriMutationEventInstance =
|
|
2063
|
-
TypedEventInstance<UriMutationEvent> & {
|
|
2064
|
-
data_decoded: UriMutationEvent;
|
|
2065
|
-
type_arguments: [];
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
export namespace entry {}
|
|
2069
|
-
export namespace view {}
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
const MODULES = JSON.parse(
|
|
2073
|
-
'[{"abi":{"address":"0x3","name":"token","friends":[],"exposed_functions":[{"name":"merge","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&mut 0x3::token::Token","0x3::token::Token"],"return":[]},{"name":"burn","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64"],"return":[]},{"name":"transfer","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","address","u64"],"return":[]},{"name":"balance_of","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x3::token::TokenId"],"return":["u64"]},{"name":"burn_by_creator","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64"],"return":[]},{"name":"check_collection_exists","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["bool"]},{"name":"check_tokendata_exists","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String","0x1::string::String"],"return":["bool"]},{"name":"create_collection","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","u64","vector<bool>"],"return":[]},{"name":"create_collection_mutability_config","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&vector<bool>"],"return":["0x3::token::CollectionMutabilityConfig"]},{"name":"create_collection_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","u64","vector<bool>"],"return":[]},{"name":"create_royalty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["u64","u64","address"],"return":["0x3::token::Royalty"]},{"name":"create_token_data_id","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String","0x1::string::String"],"return":["0x3::token::TokenDataId"]},{"name":"create_token_id","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenDataId","u64"],"return":["0x3::token::TokenId"]},{"name":"create_token_id_raw","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String","0x1::string::String","u64"],"return":["0x3::token::TokenId"]},{"name":"create_token_mutability_config","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&vector<bool>"],"return":["0x3::token::TokenMutabilityConfig"]},{"name":"create_token_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","u64","u64","0x1::string::String","address","u64","u64","vector<bool>","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":[]},{"name":"create_tokendata","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","u64","0x1::string::String","address","u64","u64","0x3::token::TokenMutabilityConfig","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":["0x3::token::TokenDataId"]},{"name":"create_withdraw_capability","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","u64","u64"],"return":["0x3::token::WithdrawCapability"]},{"name":"token_id","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::Token"],"return":["&0x3::token::TokenId"]},{"name":"deposit_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::Token"],"return":[]},{"name":"direct_deposit_with_opt_in","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x3::token::Token"],"return":[]},{"name":"direct_transfer","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","&signer","0x3::token::TokenId","u64"],"return":[]},{"name":"direct_transfer_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","&signer","address","0x1::string::String","0x1::string::String","u64","u64"],"return":[]},{"name":"get_collection_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["0x1::string::String"]},{"name":"get_collection_maximum","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["u64"]},{"name":"get_collection_mutability_config","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["0x3::token::CollectionMutabilityConfig"]},{"name":"get_collection_mutability_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::CollectionMutabilityConfig"],"return":["bool"]},{"name":"get_collection_mutability_maximum","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::CollectionMutabilityConfig"],"return":["bool"]},{"name":"get_collection_mutability_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::CollectionMutabilityConfig"],"return":["bool"]},{"name":"get_collection_supply","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["0x1::option::Option<u64>"]},{"name":"get_collection_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x1::string::String"],"return":["0x1::string::String"]},{"name":"get_direct_transfer","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"get_property_map","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x3::token::TokenId"],"return":["0x3::property_map::PropertyMap"]},{"name":"get_royalty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenId"],"return":["0x3::token::Royalty"]},{"name":"get_royalty_denominator","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::Royalty"],"return":["u64"]},{"name":"get_royalty_numerator","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::Royalty"],"return":["u64"]},{"name":"get_royalty_payee","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::Royalty"],"return":["address"]},{"name":"get_token_amount","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::Token"],"return":["u64"]},{"name":"get_token_data_id_fields","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenDataId"],"return":["address","0x1::string::String","0x1::string::String"]},{"name":"get_token_id","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::Token"],"return":["0x3::token::TokenId"]},{"name":"get_token_id_fields","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenId"],"return":["address","0x1::string::String","0x1::string::String","u64"]},{"name":"get_token_mutability_default_properties","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenMutabilityConfig"],"return":["bool"]},{"name":"get_token_mutability_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenMutabilityConfig"],"return":["bool"]},{"name":"get_token_mutability_maximum","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenMutabilityConfig"],"return":["bool"]},{"name":"get_token_mutability_royalty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenMutabilityConfig"],"return":["bool"]},{"name":"get_token_mutability_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::token::TokenMutabilityConfig"],"return":["bool"]},{"name":"get_token_supply","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x3::token::TokenDataId"],"return":["0x1::option::Option<u64>"]},{"name":"get_tokendata_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenDataId"],"return":["0x1::string::String"]},{"name":"get_tokendata_id","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenId"],"return":["0x3::token::TokenDataId"]},{"name":"get_tokendata_largest_property_version","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x3::token::TokenDataId"],"return":["u64"]},{"name":"get_tokendata_maximum","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenDataId"],"return":["u64"]},{"name":"get_tokendata_mutability_config","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenDataId"],"return":["0x3::token::TokenMutabilityConfig"]},{"name":"get_tokendata_royalty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::TokenDataId"],"return":["0x3::token::Royalty"]},{"name":"get_tokendata_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address","0x3::token::TokenDataId"],"return":["0x1::string::String"]},{"name":"has_token_store","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"initialize_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId"],"return":[]},{"name":"initialize_token_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"initialize_token_store","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer"],"return":[]},{"name":"mint_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x1::string::String","0x1::string::String","u64"],"return":[]},{"name":"mint_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenDataId","u64"],"return":["0x3::token::TokenId"]},{"name":"mint_token_to","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x3::token::TokenDataId","u64"],"return":[]},{"name":"mutate_collection_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String"],"return":[]},{"name":"mutate_collection_maximum","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","u64"],"return":[]},{"name":"mutate_collection_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String"],"return":[]},{"name":"mutate_one_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x3::token::TokenId","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":["0x3::token::TokenId"]},{"name":"mutate_token_properties","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","address","0x1::string::String","0x1::string::String","u64","u64","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":[]},{"name":"mutate_tokendata_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenDataId","0x1::string::String"],"return":[]},{"name":"mutate_tokendata_maximum","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenDataId","u64"],"return":[]},{"name":"mutate_tokendata_property","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenDataId","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":[]},{"name":"mutate_tokendata_royalty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenDataId","0x3::token::Royalty"],"return":[]},{"name":"mutate_tokendata_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenDataId","0x1::string::String"],"return":[]},{"name":"opt_in_direct_transfer","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","bool"],"return":[]},{"name":"partial_withdraw_with_capability","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::WithdrawCapability","u64"],"return":["0x3::token::Token","0x1::option::Option<0x3::token::WithdrawCapability>"]},{"name":"split","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&mut 0x3::token::Token","u64"],"return":["0x3::token::Token"]},{"name":"transfer_with_opt_in","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","address","u64"],"return":[]},{"name":"withdraw_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","u64"],"return":["0x3::token::Token"]},{"name":"withdraw_with_capability","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x3::token::WithdrawCapability"],"return":["0x3::token::Token"]}],"structs":[{"name":"Deposit","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"DepositEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"Withdraw","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"WithdrawEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"Burn","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"BurnToken","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"BurnTokenEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"CollectionData","is_native":false,"is_event":false,"is_enum":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"description","type":"0x1::string::String"},{"name":"name","type":"0x1::string::String"},{"name":"uri","type":"0x1::string::String"},{"name":"supply","type":"u64"},{"name":"maximum","type":"u64"},{"name":"mutability_config","type":"0x3::token::CollectionMutabilityConfig"}],"variants":[]},{"name":"CollectionMutabilityConfig","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"description","type":"bool"},{"name":"uri","type":"bool"},{"name":"maximum","type":"bool"}],"variants":[]},{"name":"Collections","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"collection_data","type":"0x1::table::Table<0x1::string::String, 0x3::token::CollectionData>"},{"name":"token_data","type":"0x1::table::Table<0x3::token::TokenDataId, 0x3::token::TokenData>"},{"name":"create_collection_events","type":"0x1::event::EventHandle<0x3::token::CreateCollectionEvent>"},{"name":"create_token_data_events","type":"0x1::event::EventHandle<0x3::token::CreateTokenDataEvent>"},{"name":"mint_token_events","type":"0x1::event::EventHandle<0x3::token::MintTokenEvent>"}],"variants":[]},{"name":"CreateCollection","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"uri","type":"0x1::string::String"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"}],"variants":[]},{"name":"CreateCollectionEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"uri","type":"0x1::string::String"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"}],"variants":[]},{"name":"CreateTokenData","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenDataId"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"},{"name":"uri","type":"0x1::string::String"},{"name":"royalty_payee_address","type":"address"},{"name":"royalty_points_denominator","type":"u64"},{"name":"royalty_points_numerator","type":"u64"},{"name":"name","type":"0x1::string::String"},{"name":"mutability_config","type":"0x3::token::TokenMutabilityConfig"},{"name":"property_keys","type":"vector<0x1::string::String>"},{"name":"property_values","type":"vector<vector<u8>>"},{"name":"property_types","type":"vector<0x1::string::String>"}],"variants":[]},{"name":"CreateTokenDataEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenDataId"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"},{"name":"uri","type":"0x1::string::String"},{"name":"royalty_payee_address","type":"address"},{"name":"royalty_points_denominator","type":"u64"},{"name":"royalty_points_numerator","type":"u64"},{"name":"name","type":"0x1::string::String"},{"name":"mutability_config","type":"0x3::token::TokenMutabilityConfig"},{"name":"property_keys","type":"vector<0x1::string::String>"},{"name":"property_values","type":"vector<vector<u8>>"},{"name":"property_types","type":"vector<0x1::string::String>"}],"variants":[]},{"name":"Mint","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"id","type":"0x3::token::TokenDataId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"MintToken","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenDataId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"MintTokenEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenDataId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"MutatePropertyMap","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"old_id","type":"0x3::token::TokenId"},{"name":"new_id","type":"0x3::token::TokenId"},{"name":"keys","type":"vector<0x1::string::String>"},{"name":"values","type":"vector<vector<u8>>"},{"name":"types","type":"vector<0x1::string::String>"}],"variants":[]},{"name":"MutateTokenPropertyMap","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_id","type":"0x3::token::TokenId"},{"name":"new_id","type":"0x3::token::TokenId"},{"name":"keys","type":"vector<0x1::string::String>"},{"name":"values","type":"vector<vector<u8>>"},{"name":"types","type":"vector<0x1::string::String>"}],"variants":[]},{"name":"MutateTokenPropertyMapEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"old_id","type":"0x3::token::TokenId"},{"name":"new_id","type":"0x3::token::TokenId"},{"name":"keys","type":"vector<0x1::string::String>"},{"name":"values","type":"vector<vector<u8>>"},{"name":"types","type":"vector<0x1::string::String>"}],"variants":[]},{"name":"Royalty","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"royalty_points_numerator","type":"u64"},{"name":"royalty_points_denominator","type":"u64"},{"name":"payee_address","type":"address"}],"variants":[]},{"name":"Token","is_native":false,"is_event":false,"is_enum":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"},{"name":"token_properties","type":"0x3::property_map::PropertyMap"}],"variants":[]},{"name":"TokenData","is_native":false,"is_event":false,"is_enum":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"maximum","type":"u64"},{"name":"largest_property_version","type":"u64"},{"name":"supply","type":"u64"},{"name":"uri","type":"0x1::string::String"},{"name":"royalty","type":"0x3::token::Royalty"},{"name":"name","type":"0x1::string::String"},{"name":"description","type":"0x1::string::String"},{"name":"default_properties","type":"0x3::property_map::PropertyMap"},{"name":"mutability_config","type":"0x3::token::TokenMutabilityConfig"}],"variants":[]},{"name":"TokenDataCreation","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"id","type":"0x3::token::TokenDataId"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"},{"name":"uri","type":"0x1::string::String"},{"name":"royalty_payee_address","type":"address"},{"name":"royalty_points_denominator","type":"u64"},{"name":"royalty_points_numerator","type":"u64"},{"name":"name","type":"0x1::string::String"},{"name":"mutability_config","type":"0x3::token::TokenMutabilityConfig"},{"name":"property_keys","type":"vector<0x1::string::String>"},{"name":"property_values","type":"vector<vector<u8>>"},{"name":"property_types","type":"vector<0x1::string::String>"}],"variants":[]},{"name":"TokenDataId","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"name","type":"0x1::string::String"}],"variants":[]},{"name":"TokenDeposit","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenId","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"token_data_id","type":"0x3::token::TokenDataId"},{"name":"property_version","type":"u64"}],"variants":[]},{"name":"TokenMutabilityConfig","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"maximum","type":"bool"},{"name":"uri","type":"bool"},{"name":"royalty","type":"bool"},{"name":"description","type":"bool"},{"name":"properties","type":"bool"}],"variants":[]},{"name":"TokenStore","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"tokens","type":"0x1::table::Table<0x3::token::TokenId, 0x3::token::Token>"},{"name":"direct_transfer","type":"bool"},{"name":"deposit_events","type":"0x1::event::EventHandle<0x3::token::DepositEvent>"},{"name":"withdraw_events","type":"0x1::event::EventHandle<0x3::token::WithdrawEvent>"},{"name":"burn_events","type":"0x1::event::EventHandle<0x3::token::BurnTokenEvent>"},{"name":"mutate_token_property_events","type":"0x1::event::EventHandle<0x3::token::MutateTokenPropertyMapEvent>"}],"variants":[]},{"name":"TokenWithdraw","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"WithdrawCapability","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"token_owner","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"},{"name":"expiration_sec","type":"u64"}],"variants":[]}]}},{"abi":{"address":"0x3","name":"property_map","friends":[],"exposed_functions":[{"name":"new","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":["0x3::property_map::PropertyMap"]},{"name":"borrow","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["&0x3::property_map::PropertyValue"]},{"name":"empty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":[],"return":["0x3::property_map::PropertyMap"]},{"name":"length","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap"],"return":["u64"]},{"name":"remove","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&mut 0x3::property_map::PropertyMap","&0x1::string::String"],"return":["0x1::string::String","0x3::property_map::PropertyValue"]},{"name":"add","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&mut 0x3::property_map::PropertyMap","0x1::string::String","0x3::property_map::PropertyValue"],"return":[]},{"name":"keys","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap"],"return":["vector<0x1::string::String>"]},{"name":"values","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap"],"return":["vector<vector<u8>>"]},{"name":"contains_key","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["bool"]},{"name":"borrow_type","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyValue"],"return":["0x1::string::String"]},{"name":"borrow_value","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyValue"],"return":["vector<u8>"]},{"name":"create_property_value","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["copy"]}],"params":["&T0"],"return":["0x3::property_map::PropertyValue"]},{"name":"create_property_value_raw","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["vector<u8>","0x1::string::String"],"return":["0x3::property_map::PropertyValue"]},{"name":"types","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap"],"return":["vector<0x1::string::String>"]},{"name":"new_with_key_and_property_value","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["vector<0x1::string::String>","vector<0x3::property_map::PropertyValue>"],"return":["0x3::property_map::PropertyMap"]},{"name":"read_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["address"]},{"name":"read_bool","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["bool"]},{"name":"read_string","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["0x1::string::String"]},{"name":"read_u128","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["u128"]},{"name":"read_u64","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["u64"]},{"name":"read_u8","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x3::property_map::PropertyMap","&0x1::string::String"],"return":["u8"]},{"name":"update_property_map","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&mut 0x3::property_map::PropertyMap","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":[]},{"name":"update_property_value","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&mut 0x3::property_map::PropertyMap","&0x1::string::String","0x3::property_map::PropertyValue"],"return":[]}],"structs":[{"name":"PropertyMap","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"map","type":"0x1::simple_map::SimpleMap<0x1::string::String, 0x3::property_map::PropertyValue>"}],"variants":[]},{"name":"PropertyValue","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"value","type":"vector<u8>"},{"name":"type","type":"0x1::string::String"}],"variants":[]}]}},{"abi":{"address":"0x3","name":"token_coin_swap","friends":[],"exposed_functions":[{"name":"cancel_token_listing","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x3::token::TokenId","u64"],"return":[]},{"name":"deposit_token_to_escrow","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","0x3::token::Token","u64"],"return":[]},{"name":"does_listing_exist","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x3::token::TokenId"],"return":["bool"]},{"name":"exchange_coin_for_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64","address","address","0x1::string::String","0x1::string::String","u64","u64"],"return":[]},{"name":"list_token_for_swap","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64"],"return":[]},{"name":"withdraw_token_from_escrow","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","u64"],"return":["0x3::token::Token"]}],"structs":[{"name":"TokenCoinSwap","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"token_amount","type":"u64"},{"name":"min_price_per_token","type":"u64"}],"variants":[]},{"name":"TokenEscrow","is_native":false,"is_event":false,"is_enum":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"token","type":"0x3::token::Token"},{"name":"locked_until_secs","type":"u64"}],"variants":[]},{"name":"TokenListingEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"},{"name":"min_price","type":"u64"},{"name":"locked_until_secs","type":"u64"},{"name":"coin_type_info","type":"0x1::type_info::TypeInfo"}],"variants":[]},{"name":"TokenListings","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"listings","type":"0x1::table::Table<0x3::token::TokenId, 0x3::token_coin_swap::TokenCoinSwap<T0>>"},{"name":"listing_events","type":"0x1::event::EventHandle<0x3::token_coin_swap::TokenListingEvent>"},{"name":"swap_events","type":"0x1::event::EventHandle<0x3::token_coin_swap::TokenSwapEvent>"}],"variants":[]},{"name":"TokenStoreEscrow","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"token_escrows","type":"0x1::table::Table<0x3::token::TokenId, 0x3::token_coin_swap::TokenEscrow>"}],"variants":[]},{"name":"TokenSwapEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_buyer","type":"address"},{"name":"token_amount","type":"u64"},{"name":"coin_amount","type":"u64"},{"name":"coin_type_info","type":"0x1::type_info::TypeInfo"}],"variants":[]}]}},{"abi":{"address":"0x3","name":"token_transfers","friends":[],"exposed_functions":[{"name":"cancel_offer","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x3::token::TokenId"],"return":[]},{"name":"cancel_offer_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["signer","address","address","0x1::string::String","0x1::string::String","u64"],"return":[]},{"name":"claim","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x3::token::TokenId"],"return":[]},{"name":"claim_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["signer","address","address","0x1::string::String","0x1::string::String","u64"],"return":[]},{"name":"offer","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","address","0x3::token::TokenId","u64"],"return":[]},{"name":"offer_script","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["signer","address","address","0x1::string::String","0x1::string::String","u64","u64"],"return":[]}],"structs":[{"name":"CancelOffer","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"Claim","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"Offer","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account","type":"address"},{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"PendingClaims","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"pending_claims","type":"0x1::table::Table<0x3::token_transfers::TokenOfferId, 0x3::token::Token>"},{"name":"offer_events","type":"0x1::event::EventHandle<0x3::token_transfers::TokenOfferEvent>"},{"name":"cancel_offer_events","type":"0x1::event::EventHandle<0x3::token_transfers::TokenCancelOfferEvent>"},{"name":"claim_events","type":"0x1::event::EventHandle<0x3::token_transfers::TokenClaimEvent>"}],"variants":[]},{"name":"TokenCancelOffer","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenCancelOfferEvent","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenClaim","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenClaimEvent","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenOffer","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenOfferEvent","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"to_address","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"}],"variants":[]},{"name":"TokenOfferId","is_native":false,"is_event":true,"is_enum":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"to_addr","type":"address"},{"name":"token_id","type":"0x3::token::TokenId"}],"variants":[]}]}},{"abi":{"address":"0x3","name":"token_event_store","friends":["0x3::token"],"exposed_functions":[{"name":"emit_collection_description_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String"],"return":[]},{"name":"emit_collection_maximum_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","u64","u64"],"return":[]},{"name":"emit_collection_uri_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String"],"return":[]},{"name":"emit_default_property_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","vector<0x1::string::String>","vector<0x1::option::Option<0x3::property_map::PropertyValue>>","vector<0x3::property_map::PropertyValue>"],"return":[]},{"name":"emit_token_descrition_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String"],"return":[]},{"name":"emit_token_maximum_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","u64","u64"],"return":[]},{"name":"emit_token_opt_in_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","bool"],"return":[]},{"name":"emit_token_royalty_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","u64","u64","address","u64","u64","address"],"return":[]},{"name":"emit_token_uri_mutate_event","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String"],"return":[]}],"structs":[{"name":"CollectionDescriptionMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_description","type":"0x1::string::String"},{"name":"new_description","type":"0x1::string::String"}],"variants":[]},{"name":"CollectionDescriptionMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_description","type":"0x1::string::String"},{"name":"new_description","type":"0x1::string::String"}],"variants":[]},{"name":"CollectionMaximumMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_maximum","type":"u64"},{"name":"new_maximum","type":"u64"}],"variants":[]},{"name":"CollectionMaxiumMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_maximum","type":"u64"},{"name":"new_maximum","type":"u64"}],"variants":[]},{"name":"CollectionMaxiumMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_maximum","type":"u64"},{"name":"new_maximum","type":"u64"}],"variants":[]},{"name":"CollectionUriMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_uri","type":"0x1::string::String"},{"name":"new_uri","type":"0x1::string::String"}],"variants":[]},{"name":"CollectionUriMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator_addr","type":"address"},{"name":"collection_name","type":"0x1::string::String"},{"name":"old_uri","type":"0x1::string::String"},{"name":"new_uri","type":"0x1::string::String"}],"variants":[]},{"name":"DefaultPropertyMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"keys","type":"vector<0x1::string::String>"},{"name":"old_values","type":"vector<0x1::option::Option<0x3::property_map::PropertyValue>>"},{"name":"new_values","type":"vector<0x3::property_map::PropertyValue>"}],"variants":[]},{"name":"DefaultPropertyMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"keys","type":"vector<0x1::string::String>"},{"name":"old_values","type":"vector<0x1::option::Option<0x3::property_map::PropertyValue>>"},{"name":"new_values","type":"vector<0x3::property_map::PropertyValue>"}],"variants":[]},{"name":"DescriptionMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_description","type":"0x1::string::String"},{"name":"new_description","type":"0x1::string::String"}],"variants":[]},{"name":"DescriptionMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_description","type":"0x1::string::String"},{"name":"new_description","type":"0x1::string::String"}],"variants":[]},{"name":"MaximumMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_maximum","type":"u64"},{"name":"new_maximum","type":"u64"}],"variants":[]},{"name":"MaxiumMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_maximum","type":"u64"},{"name":"new_maximum","type":"u64"}],"variants":[]},{"name":"OptInTransfer","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"account_address","type":"address"},{"name":"opt_in","type":"bool"}],"variants":[]},{"name":"OptInTransferEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"opt_in","type":"bool"}],"variants":[]},{"name":"RoyaltyMutate","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_royalty_numerator","type":"u64"},{"name":"old_royalty_denominator","type":"u64"},{"name":"old_royalty_payee_addr","type":"address"},{"name":"new_royalty_numerator","type":"u64"},{"name":"new_royalty_denominator","type":"u64"},{"name":"new_royalty_payee_addr","type":"address"}],"variants":[]},{"name":"RoyaltyMutateEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_royalty_numerator","type":"u64"},{"name":"old_royalty_denominator","type":"u64"},{"name":"old_royalty_payee_addr","type":"address"},{"name":"new_royalty_numerator","type":"u64"},{"name":"new_royalty_denominator","type":"u64"},{"name":"new_royalty_payee_addr","type":"address"}],"variants":[]},{"name":"TokenEventStoreV1","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"collection_uri_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::CollectionUriMutateEvent>"},{"name":"collection_maximum_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::CollectionMaxiumMutateEvent>"},{"name":"collection_description_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::CollectionDescriptionMutateEvent>"},{"name":"opt_in_events","type":"0x1::event::EventHandle<0x3::token_event_store::OptInTransferEvent>"},{"name":"uri_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::UriMutationEvent>"},{"name":"default_property_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::DefaultPropertyMutateEvent>"},{"name":"description_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::DescriptionMutateEvent>"},{"name":"royalty_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::RoyaltyMutateEvent>"},{"name":"maximum_mutate_events","type":"0x1::event::EventHandle<0x3::token_event_store::MaxiumMutateEvent>"},{"name":"extension","type":"0x1::option::Option<0x1::any::Any>"}],"variants":[]},{"name":"UriMutation","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_uri","type":"0x1::string::String"},{"name":"new_uri","type":"0x1::string::String"}],"variants":[]},{"name":"UriMutationEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token","type":"0x1::string::String"},{"name":"old_uri","type":"0x1::string::String"},{"name":"new_uri","type":"0x1::string::String"}],"variants":[]}]}}]',
|
|
2074
|
-
);
|
|
2075
|
-
|
|
2076
|
-
export function loadAllTypes(coder: MoveCoder) {
|
|
2077
|
-
_0x1.loadAllTypes(coder);
|
|
2078
|
-
for (const m of Object.values(MODULES)) {
|
|
2079
|
-
coder.load(m as any, "0x3");
|
|
2080
|
-
}
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
loadAllTypes(defaultMoveCoder());
|