@typemove/sui 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/Readme.md +19 -17
- package/package.json +3 -3
- package/dist/esm/builtin/0x1.d.ts +0 -1030
- package/dist/esm/builtin/0x1.d.ts.map +0 -1
- package/dist/esm/builtin/0x1.js +0 -7799
- package/dist/esm/builtin/0x1.js.map +0 -1
- package/dist/esm/builtin/0x2.d.ts +0 -4766
- package/dist/esm/builtin/0x2.d.ts.map +0 -1
- package/dist/esm/builtin/0x2.js +0 -23180
- package/dist/esm/builtin/0x2.js.map +0 -1
- package/dist/esm/builtin/0x3.d.ts +0 -1964
- package/dist/esm/builtin/0x3.d.ts.map +0 -1
- package/dist/esm/builtin/0x3.js +0 -7606
- package/dist/esm/builtin/0x3.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/codegen/codegen.d.ts +0 -20
- package/dist/esm/codegen/codegen.d.ts.map +0 -1
- package/dist/esm/codegen/codegen.js +0 -247
- 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/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 -21
- 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 -28
- package/dist/esm/move-coder.d.ts.map +0 -1
- package/dist/esm/move-coder.js +0 -311
- package/dist/esm/move-coder.js.map +0 -1
- package/dist/esm/move-coder.test.d.ts +0 -2
- package/dist/esm/move-coder.test.d.ts.map +0 -1
- package/dist/esm/move-coder.test.js.map +0 -1
- package/dist/esm/sui-chain-adapter.d.ts +0 -28
- package/dist/esm/sui-chain-adapter.d.ts.map +0 -1
- package/dist/esm/sui-chain-adapter.js +0 -109
- package/dist/esm/sui-chain-adapter.js.map +0 -1
- package/dist/esm/to-internal.d.ts +0 -6
- package/dist/esm/to-internal.d.ts.map +0 -1
- package/dist/esm/to-internal.js +0 -170
- package/dist/esm/to-internal.js.map +0 -1
- package/dist/esm/transaction.d.ts +0 -15
- package/dist/esm/transaction.d.ts.map +0 -1
- package/dist/esm/transaction.js +0 -83
- package/dist/esm/transaction.js.map +0 -1
- package/src/abis/0x1.json +0 -9096
- package/src/abis/0x2.json +0 -38512
- package/src/abis/0x3.json +0 -14755
- package/src/builtin/0x1.ts +0 -10657
- package/src/builtin/0x2.ts +0 -33567
- package/src/builtin/0x3.ts +0 -11437
- package/src/builtin/index.ts +0 -6
- package/src/codegen/codegen.ts +0 -292
- package/src/codegen/index.ts +0 -1
- package/src/codegen/run.ts +0 -57
- package/src/index.ts +0 -13
- package/src/models.ts +0 -32
- package/src/move-coder.ts +0 -364
- package/src/sui-chain-adapter.ts +0 -142
- package/src/tests/abis/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.json +0 -341
- package/src/tests/abis/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.json +0 -3375
- package/src/tests/abis/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.json +0 -1535
- package/src/tests/abis/testnet/0xdee9.json +0 -10176
- package/src/tests/abis/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.json +0 -12904
- package/src/tests/abis/testnet/enum.json +0 -6859
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +0 -314
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +0 -2819
- package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +0 -1594
- package/src/tests/types/testnet/0xdee9.ts +0 -7049
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +0 -10609
- package/src/tests/types/testnet/enum.ts +0 -6297
- package/src/tests/types/testnet/index.ts +0 -9
- package/src/to-internal.ts +0 -201
- package/src/transaction.ts +0 -127
|
@@ -1,1594 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
/* Generated types for 0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e, original address 0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e */
|
|
6
|
-
|
|
7
|
-
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
8
|
-
import { MoveCoder, TypedEventInstance } from "@typemove/sui";
|
|
9
|
-
|
|
10
|
-
import { defaultMoveCoder } from "@typemove/sui";
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
ZERO_ADDRESS,
|
|
14
|
-
TypedSimulateResults,
|
|
15
|
-
getMoveCoder,
|
|
16
|
-
} from "@typemove/sui";
|
|
17
|
-
import {
|
|
18
|
-
Transaction,
|
|
19
|
-
TransactionArgument,
|
|
20
|
-
TransactionObjectArgument,
|
|
21
|
-
} from "@mysten/sui/transactions";
|
|
22
|
-
import { SuiGrpcClient } from "@mysten/sui/grpc";
|
|
23
|
-
import {
|
|
24
|
-
transactionArgumentOrObject,
|
|
25
|
-
transactionArgumentOrVec,
|
|
26
|
-
transactionArgumentOrPure,
|
|
27
|
-
transactionArgumentOrPureU8,
|
|
28
|
-
transactionArgumentOrPureU16,
|
|
29
|
-
transactionArgumentOrPureU32,
|
|
30
|
-
transactionArgumentOrPureU64,
|
|
31
|
-
transactionArgumentOrPureU128,
|
|
32
|
-
transactionArgumentOrPureU256,
|
|
33
|
-
transactionArgumentOrPureBool,
|
|
34
|
-
transactionArgumentOrPureString,
|
|
35
|
-
transactionArgumentOrPureAddress,
|
|
36
|
-
} from "@typemove/sui";
|
|
37
|
-
|
|
38
|
-
import * as _0x2 from "@typemove/sui/builtin/0x2";
|
|
39
|
-
|
|
40
|
-
export namespace airdrop {
|
|
41
|
-
export interface AIRDROP {
|
|
42
|
-
dummy_field: boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export namespace AIRDROP {
|
|
46
|
-
export const TYPE_QNAME =
|
|
47
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AIRDROP";
|
|
48
|
-
|
|
49
|
-
const TYPE = new TypeDescriptor<AIRDROP>(AIRDROP.TYPE_QNAME);
|
|
50
|
-
|
|
51
|
-
export function type(): TypeDescriptor<AIRDROP> {
|
|
52
|
-
return TYPE.apply();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface AirdropConfig {
|
|
57
|
-
max_token_limit: bigint;
|
|
58
|
-
tokens: bigint;
|
|
59
|
-
role: roles.Role<roles.ApiRole>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export namespace AirdropConfig {
|
|
63
|
-
export const TYPE_QNAME =
|
|
64
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropConfig";
|
|
65
|
-
|
|
66
|
-
const TYPE = new TypeDescriptor<AirdropConfig>(AirdropConfig.TYPE_QNAME);
|
|
67
|
-
|
|
68
|
-
export function type(): TypeDescriptor<AirdropConfig> {
|
|
69
|
-
return TYPE.apply();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface AirdropEvent<T0> {
|
|
74
|
-
addr: string;
|
|
75
|
-
value: bigint;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export namespace AirdropEvent {
|
|
79
|
-
export const TYPE_QNAME =
|
|
80
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropEvent";
|
|
81
|
-
|
|
82
|
-
const TYPE = new TypeDescriptor<AirdropEvent<any>>(AirdropEvent.TYPE_QNAME);
|
|
83
|
-
|
|
84
|
-
export function type<T0>(
|
|
85
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
86
|
-
): TypeDescriptor<AirdropEvent<T0>> {
|
|
87
|
-
return TYPE.apply(arg0);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export type AirdropEventInstance = TypedEventInstance<AirdropEvent<any>> & {
|
|
92
|
-
data_decoded: AirdropEvent<any>;
|
|
93
|
-
type_arguments: [string];
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export interface AirdropRegistry {
|
|
97
|
-
id: _0x2.object$.UID;
|
|
98
|
-
roles: roles.Roles;
|
|
99
|
-
record: _0x2.table.Table<string, boolean>;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export namespace AirdropRegistry {
|
|
103
|
-
export const TYPE_QNAME =
|
|
104
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry";
|
|
105
|
-
|
|
106
|
-
const TYPE = new TypeDescriptor<AirdropRegistry>(
|
|
107
|
-
AirdropRegistry.TYPE_QNAME,
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
export function type(): TypeDescriptor<AirdropRegistry> {
|
|
111
|
-
return TYPE.apply();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export namespace builder {
|
|
116
|
-
export function addRecord(
|
|
117
|
-
tx: Transaction,
|
|
118
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
119
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
120
|
-
const _args: any[] = [];
|
|
121
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
122
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
123
|
-
|
|
124
|
-
// @ts-ignore
|
|
125
|
-
return tx.moveCall({
|
|
126
|
-
target:
|
|
127
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::add_record",
|
|
128
|
-
arguments: _args,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
export function authorizeApi(
|
|
132
|
-
tx: Transaction,
|
|
133
|
-
args: [
|
|
134
|
-
string | TransactionObjectArgument,
|
|
135
|
-
string | TransactionObjectArgument,
|
|
136
|
-
string | TransactionArgument,
|
|
137
|
-
],
|
|
138
|
-
): TransactionArgument &
|
|
139
|
-
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
140
|
-
const _args: any[] = [];
|
|
141
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
142
|
-
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
143
|
-
_args.push(transactionArgumentOrPureAddress(args[2], tx));
|
|
144
|
-
|
|
145
|
-
// @ts-ignore
|
|
146
|
-
return tx.moveCall({
|
|
147
|
-
target:
|
|
148
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::authorize_api",
|
|
149
|
-
arguments: _args,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
export function deauthorizeApi(
|
|
153
|
-
tx: Transaction,
|
|
154
|
-
args: [
|
|
155
|
-
string | TransactionObjectArgument,
|
|
156
|
-
string | TransactionObjectArgument,
|
|
157
|
-
string | TransactionArgument,
|
|
158
|
-
],
|
|
159
|
-
): TransactionArgument &
|
|
160
|
-
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
161
|
-
const _args: any[] = [];
|
|
162
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
163
|
-
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
164
|
-
_args.push(transactionArgumentOrPureAddress(args[2], tx));
|
|
165
|
-
|
|
166
|
-
// @ts-ignore
|
|
167
|
-
return tx.moveCall({
|
|
168
|
-
target:
|
|
169
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::deauthorize_api",
|
|
170
|
-
arguments: _args,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
export function finalizeSend(
|
|
174
|
-
tx: Transaction,
|
|
175
|
-
args: [
|
|
176
|
-
string | TransactionObjectArgument,
|
|
177
|
-
airdrop.AirdropConfig | TransactionArgument,
|
|
178
|
-
],
|
|
179
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
180
|
-
const _args: any[] = [];
|
|
181
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
182
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
183
|
-
|
|
184
|
-
// @ts-ignore
|
|
185
|
-
return tx.moveCall({
|
|
186
|
-
target:
|
|
187
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::finalize_send",
|
|
188
|
-
arguments: _args,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export function initSend(
|
|
193
|
-
tx: Transaction,
|
|
194
|
-
args: [string | TransactionObjectArgument],
|
|
195
|
-
): TransactionArgument & [TransactionArgument] {
|
|
196
|
-
const _args: any[] = [];
|
|
197
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
198
|
-
|
|
199
|
-
// @ts-ignore
|
|
200
|
-
return tx.moveCall({
|
|
201
|
-
target:
|
|
202
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::init_send",
|
|
203
|
-
arguments: _args,
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
export function isAirdropped(
|
|
207
|
-
tx: Transaction,
|
|
208
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
209
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
210
|
-
const _args: any[] = [];
|
|
211
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
212
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
213
|
-
|
|
214
|
-
// @ts-ignore
|
|
215
|
-
return tx.moveCall({
|
|
216
|
-
target:
|
|
217
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::is_airdropped",
|
|
218
|
-
arguments: _args,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
export function removeRecord(
|
|
222
|
-
tx: Transaction,
|
|
223
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
224
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
225
|
-
const _args: any[] = [];
|
|
226
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
227
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
228
|
-
|
|
229
|
-
// @ts-ignore
|
|
230
|
-
return tx.moveCall({
|
|
231
|
-
target:
|
|
232
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::remove_record",
|
|
233
|
-
arguments: _args,
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
export function roles(
|
|
237
|
-
tx: Transaction,
|
|
238
|
-
args: [string | TransactionObjectArgument],
|
|
239
|
-
): TransactionArgument & [TransactionArgument] {
|
|
240
|
-
const _args: any[] = [];
|
|
241
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
242
|
-
|
|
243
|
-
// @ts-ignore
|
|
244
|
-
return tx.moveCall({
|
|
245
|
-
target:
|
|
246
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::roles",
|
|
247
|
-
arguments: _args,
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
export function rolesMut(
|
|
251
|
-
tx: Transaction,
|
|
252
|
-
args: [string | TransactionObjectArgument],
|
|
253
|
-
): TransactionArgument & [TransactionArgument] {
|
|
254
|
-
const _args: any[] = [];
|
|
255
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
256
|
-
|
|
257
|
-
// @ts-ignore
|
|
258
|
-
return tx.moveCall({
|
|
259
|
-
target:
|
|
260
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::roles_mut",
|
|
261
|
-
arguments: _args,
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
export function sendToken<T0 = any>(
|
|
265
|
-
tx: Transaction,
|
|
266
|
-
args: [
|
|
267
|
-
string | TransactionObjectArgument,
|
|
268
|
-
bigint | TransactionArgument,
|
|
269
|
-
string | TransactionArgument,
|
|
270
|
-
string | TransactionArgument,
|
|
271
|
-
string | TransactionObjectArgument,
|
|
272
|
-
string | TransactionObjectArgument,
|
|
273
|
-
],
|
|
274
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
275
|
-
): TransactionArgument &
|
|
276
|
-
[
|
|
277
|
-
TransactionArgument,
|
|
278
|
-
TransactionArgument,
|
|
279
|
-
TransactionArgument,
|
|
280
|
-
TransactionArgument,
|
|
281
|
-
TransactionArgument,
|
|
282
|
-
TransactionArgument,
|
|
283
|
-
] {
|
|
284
|
-
const _args: any[] = [];
|
|
285
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
286
|
-
_args.push(transactionArgumentOrPureU64(args[1], tx));
|
|
287
|
-
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
288
|
-
_args.push(transactionArgumentOrPureAddress(args[3], tx));
|
|
289
|
-
_args.push(transactionArgumentOrObject(args[4], tx));
|
|
290
|
-
_args.push(transactionArgumentOrObject(args[5], tx));
|
|
291
|
-
|
|
292
|
-
// @ts-ignore
|
|
293
|
-
return tx.moveCall({
|
|
294
|
-
target:
|
|
295
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::send_token",
|
|
296
|
-
arguments: _args,
|
|
297
|
-
typeArguments: [
|
|
298
|
-
typeof typeArguments[0] === "string"
|
|
299
|
-
? typeArguments[0]
|
|
300
|
-
: typeArguments[0].getSignature(),
|
|
301
|
-
],
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
export namespace view {
|
|
306
|
-
export async function addRecord(
|
|
307
|
-
client: SuiGrpcClient,
|
|
308
|
-
args: [string, string],
|
|
309
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
310
|
-
const tx = new Transaction();
|
|
311
|
-
builder.addRecord(tx, args);
|
|
312
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
313
|
-
// semantics — allow simulating view calls without validating object
|
|
314
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
315
|
-
const simulateRes = await client.simulateTransaction({
|
|
316
|
-
transaction: tx,
|
|
317
|
-
sender: ZERO_ADDRESS,
|
|
318
|
-
include: { commandResults: true },
|
|
319
|
-
checksEnabled: false,
|
|
320
|
-
} as any);
|
|
321
|
-
|
|
322
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
323
|
-
simulateRes,
|
|
324
|
-
[],
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
export async function authorizeApi(
|
|
328
|
-
client: SuiGrpcClient,
|
|
329
|
-
args: [string, string, string],
|
|
330
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
331
|
-
const tx = new Transaction();
|
|
332
|
-
builder.authorizeApi(tx, args);
|
|
333
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
334
|
-
// semantics — allow simulating view calls without validating object
|
|
335
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
336
|
-
const simulateRes = await client.simulateTransaction({
|
|
337
|
-
transaction: tx,
|
|
338
|
-
sender: ZERO_ADDRESS,
|
|
339
|
-
include: { commandResults: true },
|
|
340
|
-
checksEnabled: false,
|
|
341
|
-
} as any);
|
|
342
|
-
|
|
343
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
344
|
-
simulateRes,
|
|
345
|
-
[],
|
|
346
|
-
);
|
|
347
|
-
}
|
|
348
|
-
export async function deauthorizeApi(
|
|
349
|
-
client: SuiGrpcClient,
|
|
350
|
-
args: [string, string, string],
|
|
351
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
352
|
-
const tx = new Transaction();
|
|
353
|
-
builder.deauthorizeApi(tx, args);
|
|
354
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
355
|
-
// semantics — allow simulating view calls without validating object
|
|
356
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
357
|
-
const simulateRes = await client.simulateTransaction({
|
|
358
|
-
transaction: tx,
|
|
359
|
-
sender: ZERO_ADDRESS,
|
|
360
|
-
include: { commandResults: true },
|
|
361
|
-
checksEnabled: false,
|
|
362
|
-
} as any);
|
|
363
|
-
|
|
364
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
365
|
-
simulateRes,
|
|
366
|
-
[],
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
export async function finalizeSend(
|
|
370
|
-
client: SuiGrpcClient,
|
|
371
|
-
args: [string, airdrop.AirdropConfig],
|
|
372
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
373
|
-
const tx = new Transaction();
|
|
374
|
-
builder.finalizeSend(tx, args);
|
|
375
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
376
|
-
// semantics — allow simulating view calls without validating object
|
|
377
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
378
|
-
const simulateRes = await client.simulateTransaction({
|
|
379
|
-
transaction: tx,
|
|
380
|
-
sender: ZERO_ADDRESS,
|
|
381
|
-
include: { commandResults: true },
|
|
382
|
-
checksEnabled: false,
|
|
383
|
-
} as any);
|
|
384
|
-
|
|
385
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
386
|
-
simulateRes,
|
|
387
|
-
[],
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
export async function initSend(
|
|
392
|
-
client: SuiGrpcClient,
|
|
393
|
-
args: [string],
|
|
394
|
-
): Promise<TypedSimulateResults<[airdrop.AirdropConfig]>> {
|
|
395
|
-
const tx = new Transaction();
|
|
396
|
-
builder.initSend(tx, args);
|
|
397
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
398
|
-
// semantics — allow simulating view calls without validating object
|
|
399
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
400
|
-
const simulateRes = await client.simulateTransaction({
|
|
401
|
-
transaction: tx,
|
|
402
|
-
sender: ZERO_ADDRESS,
|
|
403
|
-
include: { commandResults: true },
|
|
404
|
-
checksEnabled: false,
|
|
405
|
-
} as any);
|
|
406
|
-
|
|
407
|
-
return (await getMoveCoder(client)).decodeSimulateResult<
|
|
408
|
-
[airdrop.AirdropConfig]
|
|
409
|
-
>(simulateRes, [
|
|
410
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropConfig",
|
|
411
|
-
]);
|
|
412
|
-
}
|
|
413
|
-
export async function isAirdropped(
|
|
414
|
-
client: SuiGrpcClient,
|
|
415
|
-
args: [string, string],
|
|
416
|
-
): Promise<TypedSimulateResults<[boolean]>> {
|
|
417
|
-
const tx = new Transaction();
|
|
418
|
-
builder.isAirdropped(tx, args);
|
|
419
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
420
|
-
// semantics — allow simulating view calls without validating object
|
|
421
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
422
|
-
const simulateRes = await client.simulateTransaction({
|
|
423
|
-
transaction: tx,
|
|
424
|
-
sender: ZERO_ADDRESS,
|
|
425
|
-
include: { commandResults: true },
|
|
426
|
-
checksEnabled: false,
|
|
427
|
-
} as any);
|
|
428
|
-
|
|
429
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>(
|
|
430
|
-
simulateRes,
|
|
431
|
-
["Bool"],
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
export async function removeRecord(
|
|
435
|
-
client: SuiGrpcClient,
|
|
436
|
-
args: [string, string],
|
|
437
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
438
|
-
const tx = new Transaction();
|
|
439
|
-
builder.removeRecord(tx, args);
|
|
440
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
441
|
-
// semantics — allow simulating view calls without validating object
|
|
442
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
443
|
-
const simulateRes = await client.simulateTransaction({
|
|
444
|
-
transaction: tx,
|
|
445
|
-
sender: ZERO_ADDRESS,
|
|
446
|
-
include: { commandResults: true },
|
|
447
|
-
checksEnabled: false,
|
|
448
|
-
} as any);
|
|
449
|
-
|
|
450
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
451
|
-
simulateRes,
|
|
452
|
-
[],
|
|
453
|
-
);
|
|
454
|
-
}
|
|
455
|
-
export async function roles(
|
|
456
|
-
client: SuiGrpcClient,
|
|
457
|
-
args: [string],
|
|
458
|
-
): Promise<TypedSimulateResults<[string]>> {
|
|
459
|
-
const tx = new Transaction();
|
|
460
|
-
builder.roles(tx, args);
|
|
461
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
462
|
-
// semantics — allow simulating view calls without validating object
|
|
463
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
464
|
-
const simulateRes = await client.simulateTransaction({
|
|
465
|
-
transaction: tx,
|
|
466
|
-
sender: ZERO_ADDRESS,
|
|
467
|
-
include: { commandResults: true },
|
|
468
|
-
checksEnabled: false,
|
|
469
|
-
} as any);
|
|
470
|
-
|
|
471
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[string]>(
|
|
472
|
-
simulateRes,
|
|
473
|
-
[
|
|
474
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles",
|
|
475
|
-
],
|
|
476
|
-
);
|
|
477
|
-
}
|
|
478
|
-
export async function rolesMut(
|
|
479
|
-
client: SuiGrpcClient,
|
|
480
|
-
args: [string],
|
|
481
|
-
): Promise<TypedSimulateResults<[string]>> {
|
|
482
|
-
const tx = new Transaction();
|
|
483
|
-
builder.rolesMut(tx, args);
|
|
484
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
485
|
-
// semantics — allow simulating view calls without validating object
|
|
486
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
487
|
-
const simulateRes = await client.simulateTransaction({
|
|
488
|
-
transaction: tx,
|
|
489
|
-
sender: ZERO_ADDRESS,
|
|
490
|
-
include: { commandResults: true },
|
|
491
|
-
checksEnabled: false,
|
|
492
|
-
} as any);
|
|
493
|
-
|
|
494
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[string]>(
|
|
495
|
-
simulateRes,
|
|
496
|
-
[
|
|
497
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles",
|
|
498
|
-
],
|
|
499
|
-
);
|
|
500
|
-
}
|
|
501
|
-
export async function sendToken<T0 = any>(
|
|
502
|
-
client: SuiGrpcClient,
|
|
503
|
-
args: [string, bigint, string, string, string, string],
|
|
504
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
505
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
506
|
-
const tx = new Transaction();
|
|
507
|
-
builder.sendToken(tx, args, typeArguments);
|
|
508
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
509
|
-
// semantics — allow simulating view calls without validating object
|
|
510
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
511
|
-
const simulateRes = await client.simulateTransaction({
|
|
512
|
-
transaction: tx,
|
|
513
|
-
sender: ZERO_ADDRESS,
|
|
514
|
-
include: { commandResults: true },
|
|
515
|
-
checksEnabled: false,
|
|
516
|
-
} as any);
|
|
517
|
-
|
|
518
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
519
|
-
simulateRes,
|
|
520
|
-
[],
|
|
521
|
-
typeArguments,
|
|
522
|
-
);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
export namespace memefi {
|
|
528
|
-
export interface MEMEFI {
|
|
529
|
-
dummy_field: boolean;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export namespace MEMEFI {
|
|
533
|
-
export const TYPE_QNAME =
|
|
534
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::memefi::MEMEFI";
|
|
535
|
-
|
|
536
|
-
const TYPE = new TypeDescriptor<MEMEFI>(MEMEFI.TYPE_QNAME);
|
|
537
|
-
|
|
538
|
-
export function type(): TypeDescriptor<MEMEFI> {
|
|
539
|
-
return TYPE.apply();
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export namespace builder {}
|
|
544
|
-
export namespace view {}
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export namespace roles {
|
|
548
|
-
export interface ApiRole {
|
|
549
|
-
dummy_field: boolean;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
export namespace ApiRole {
|
|
553
|
-
export const TYPE_QNAME =
|
|
554
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::ApiRole";
|
|
555
|
-
|
|
556
|
-
const TYPE = new TypeDescriptor<ApiRole>(ApiRole.TYPE_QNAME);
|
|
557
|
-
|
|
558
|
-
export function type(): TypeDescriptor<ApiRole> {
|
|
559
|
-
return TYPE.apply();
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
export interface Role<T0> {
|
|
564
|
-
addr: string;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
export namespace Role {
|
|
568
|
-
export const TYPE_QNAME =
|
|
569
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role";
|
|
570
|
-
|
|
571
|
-
const TYPE = new TypeDescriptor<Role<any>>(Role.TYPE_QNAME);
|
|
572
|
-
|
|
573
|
-
export function type<T0>(
|
|
574
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
575
|
-
): TypeDescriptor<Role<T0>> {
|
|
576
|
-
return TYPE.apply(arg0);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
export type RoleInstance = TypedEventInstance<Role<any>> & {
|
|
581
|
-
data_decoded: Role<any>;
|
|
582
|
-
type_arguments: [string];
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
export interface Roles {
|
|
586
|
-
data: _0x2.bag.Bag;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
export namespace Roles {
|
|
590
|
-
export const TYPE_QNAME =
|
|
591
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles";
|
|
592
|
-
|
|
593
|
-
const TYPE = new TypeDescriptor<Roles>(Roles.TYPE_QNAME);
|
|
594
|
-
|
|
595
|
-
export function type(): TypeDescriptor<Roles> {
|
|
596
|
-
return TYPE.apply();
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
export namespace builder {
|
|
601
|
-
export function addr<T0 = any>(
|
|
602
|
-
tx: Transaction,
|
|
603
|
-
args: [string | TransactionObjectArgument],
|
|
604
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
605
|
-
): TransactionArgument & [TransactionArgument] {
|
|
606
|
-
const _args: any[] = [];
|
|
607
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
608
|
-
|
|
609
|
-
// @ts-ignore
|
|
610
|
-
return tx.moveCall({
|
|
611
|
-
target:
|
|
612
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::addr",
|
|
613
|
-
arguments: _args,
|
|
614
|
-
typeArguments: [
|
|
615
|
-
typeof typeArguments[0] === "string"
|
|
616
|
-
? typeArguments[0]
|
|
617
|
-
: typeArguments[0].getSignature(),
|
|
618
|
-
],
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
export function assertHasRole<T0 = any>(
|
|
622
|
-
tx: Transaction,
|
|
623
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
624
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
625
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
626
|
-
const _args: any[] = [];
|
|
627
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
628
|
-
_args.push(transactionArgumentOrPureAddress(args[1], tx));
|
|
629
|
-
|
|
630
|
-
// @ts-ignore
|
|
631
|
-
return tx.moveCall({
|
|
632
|
-
target:
|
|
633
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::assert_has_role",
|
|
634
|
-
arguments: _args,
|
|
635
|
-
typeArguments: [
|
|
636
|
-
typeof typeArguments[0] === "string"
|
|
637
|
-
? typeArguments[0]
|
|
638
|
-
: typeArguments[0].getSignature(),
|
|
639
|
-
],
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
export function assertPublisherFromPackage(
|
|
643
|
-
tx: Transaction,
|
|
644
|
-
args: [string | TransactionObjectArgument],
|
|
645
|
-
): TransactionArgument & [TransactionArgument] {
|
|
646
|
-
const _args: any[] = [];
|
|
647
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
648
|
-
|
|
649
|
-
// @ts-ignore
|
|
650
|
-
return tx.moveCall({
|
|
651
|
-
target:
|
|
652
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::assert_publisher_from_package",
|
|
653
|
-
arguments: _args,
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
export function authorize<T0 = any>(
|
|
657
|
-
tx: Transaction,
|
|
658
|
-
args: [
|
|
659
|
-
string | TransactionObjectArgument,
|
|
660
|
-
roles.Role<T0> | TransactionArgument,
|
|
661
|
-
],
|
|
662
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
663
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
664
|
-
const _args: any[] = [];
|
|
665
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
666
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
667
|
-
|
|
668
|
-
// @ts-ignore
|
|
669
|
-
return tx.moveCall({
|
|
670
|
-
target:
|
|
671
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::authorize",
|
|
672
|
-
arguments: _args,
|
|
673
|
-
typeArguments: [
|
|
674
|
-
typeof typeArguments[0] === "string"
|
|
675
|
-
? typeArguments[0]
|
|
676
|
-
: typeArguments[0].getSignature(),
|
|
677
|
-
],
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
export function config<T0 = any, T1 = any>(
|
|
681
|
-
tx: Transaction,
|
|
682
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
683
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
684
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
685
|
-
const _args: any[] = [];
|
|
686
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
687
|
-
_args.push(transactionArgumentOrPureAddress(args[1], tx));
|
|
688
|
-
|
|
689
|
-
// @ts-ignore
|
|
690
|
-
return tx.moveCall({
|
|
691
|
-
target:
|
|
692
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::config",
|
|
693
|
-
arguments: _args,
|
|
694
|
-
typeArguments: [
|
|
695
|
-
typeof typeArguments[0] === "string"
|
|
696
|
-
? typeArguments[0]
|
|
697
|
-
: typeArguments[0].getSignature(),
|
|
698
|
-
typeof typeArguments[1] === "string"
|
|
699
|
-
? typeArguments[1]
|
|
700
|
-
: typeArguments[1].getSignature(),
|
|
701
|
-
],
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
export function data(
|
|
705
|
-
tx: Transaction,
|
|
706
|
-
args: [string | TransactionObjectArgument],
|
|
707
|
-
): TransactionArgument & [TransactionArgument] {
|
|
708
|
-
const _args: any[] = [];
|
|
709
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
710
|
-
|
|
711
|
-
// @ts-ignore
|
|
712
|
-
return tx.moveCall({
|
|
713
|
-
target:
|
|
714
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::data",
|
|
715
|
-
arguments: _args,
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
export function deauthorize<T0 = any>(
|
|
719
|
-
tx: Transaction,
|
|
720
|
-
args: [
|
|
721
|
-
string | TransactionObjectArgument,
|
|
722
|
-
roles.Role<T0> | TransactionArgument,
|
|
723
|
-
],
|
|
724
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
725
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
726
|
-
const _args: any[] = [];
|
|
727
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
728
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
729
|
-
|
|
730
|
-
// @ts-ignore
|
|
731
|
-
return tx.moveCall({
|
|
732
|
-
target:
|
|
733
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::deauthorize",
|
|
734
|
-
arguments: _args,
|
|
735
|
-
typeArguments: [
|
|
736
|
-
typeof typeArguments[0] === "string"
|
|
737
|
-
? typeArguments[0]
|
|
738
|
-
: typeArguments[0].getSignature(),
|
|
739
|
-
],
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
export function destroyEmpty(
|
|
743
|
-
tx: Transaction,
|
|
744
|
-
args: [roles.Roles | TransactionArgument],
|
|
745
|
-
): TransactionArgument & [TransactionArgument] {
|
|
746
|
-
const _args: any[] = [];
|
|
747
|
-
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
748
|
-
|
|
749
|
-
// @ts-ignore
|
|
750
|
-
return tx.moveCall({
|
|
751
|
-
target:
|
|
752
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::destroy_empty",
|
|
753
|
-
arguments: _args,
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
export function isAuthorized<T0 = any>(
|
|
757
|
-
tx: Transaction,
|
|
758
|
-
args: [string | TransactionObjectArgument, string | TransactionArgument],
|
|
759
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
760
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
761
|
-
const _args: any[] = [];
|
|
762
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
763
|
-
_args.push(transactionArgumentOrPureAddress(args[1], tx));
|
|
764
|
-
|
|
765
|
-
// @ts-ignore
|
|
766
|
-
return tx.moveCall({
|
|
767
|
-
target:
|
|
768
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::is_authorized",
|
|
769
|
-
arguments: _args,
|
|
770
|
-
typeArguments: [
|
|
771
|
-
typeof typeArguments[0] === "string"
|
|
772
|
-
? typeArguments[0]
|
|
773
|
-
: typeArguments[0].getSignature(),
|
|
774
|
-
],
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
export function new$(tx: Transaction, args: []): TransactionArgument & [] {
|
|
778
|
-
const _args: any[] = [];
|
|
779
|
-
|
|
780
|
-
// @ts-ignore
|
|
781
|
-
return tx.moveCall({
|
|
782
|
-
target:
|
|
783
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::new",
|
|
784
|
-
arguments: _args,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
export function newRole<T0 = any>(
|
|
788
|
-
tx: Transaction,
|
|
789
|
-
args: [string | TransactionArgument],
|
|
790
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
791
|
-
): TransactionArgument & [TransactionArgument] {
|
|
792
|
-
const _args: any[] = [];
|
|
793
|
-
_args.push(transactionArgumentOrPureAddress(args[0], tx));
|
|
794
|
-
|
|
795
|
-
// @ts-ignore
|
|
796
|
-
return tx.moveCall({
|
|
797
|
-
target:
|
|
798
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::new_role",
|
|
799
|
-
arguments: _args,
|
|
800
|
-
typeArguments: [
|
|
801
|
-
typeof typeArguments[0] === "string"
|
|
802
|
-
? typeArguments[0]
|
|
803
|
-
: typeArguments[0].getSignature(),
|
|
804
|
-
],
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
export namespace view {
|
|
809
|
-
export async function addr<T0 = any>(
|
|
810
|
-
client: SuiGrpcClient,
|
|
811
|
-
args: [string],
|
|
812
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
813
|
-
): Promise<TypedSimulateResults<[string]>> {
|
|
814
|
-
const tx = new Transaction();
|
|
815
|
-
builder.addr(tx, args, typeArguments);
|
|
816
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
817
|
-
// semantics — allow simulating view calls without validating object
|
|
818
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
819
|
-
const simulateRes = await client.simulateTransaction({
|
|
820
|
-
transaction: tx,
|
|
821
|
-
sender: ZERO_ADDRESS,
|
|
822
|
-
include: { commandResults: true },
|
|
823
|
-
checksEnabled: false,
|
|
824
|
-
} as any);
|
|
825
|
-
|
|
826
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[string]>(
|
|
827
|
-
simulateRes,
|
|
828
|
-
["Address"],
|
|
829
|
-
typeArguments,
|
|
830
|
-
);
|
|
831
|
-
}
|
|
832
|
-
export async function assertHasRole<T0 = any>(
|
|
833
|
-
client: SuiGrpcClient,
|
|
834
|
-
args: [string, string],
|
|
835
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
836
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
837
|
-
const tx = new Transaction();
|
|
838
|
-
builder.assertHasRole(tx, args, typeArguments);
|
|
839
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
840
|
-
// semantics — allow simulating view calls without validating object
|
|
841
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
842
|
-
const simulateRes = await client.simulateTransaction({
|
|
843
|
-
transaction: tx,
|
|
844
|
-
sender: ZERO_ADDRESS,
|
|
845
|
-
include: { commandResults: true },
|
|
846
|
-
checksEnabled: false,
|
|
847
|
-
} as any);
|
|
848
|
-
|
|
849
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
850
|
-
simulateRes,
|
|
851
|
-
[],
|
|
852
|
-
typeArguments,
|
|
853
|
-
);
|
|
854
|
-
}
|
|
855
|
-
export async function assertPublisherFromPackage(
|
|
856
|
-
client: SuiGrpcClient,
|
|
857
|
-
args: [string],
|
|
858
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
859
|
-
const tx = new Transaction();
|
|
860
|
-
builder.assertPublisherFromPackage(tx, args);
|
|
861
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
862
|
-
// semantics — allow simulating view calls without validating object
|
|
863
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
864
|
-
const simulateRes = await client.simulateTransaction({
|
|
865
|
-
transaction: tx,
|
|
866
|
-
sender: ZERO_ADDRESS,
|
|
867
|
-
include: { commandResults: true },
|
|
868
|
-
checksEnabled: false,
|
|
869
|
-
} as any);
|
|
870
|
-
|
|
871
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
872
|
-
simulateRes,
|
|
873
|
-
[],
|
|
874
|
-
);
|
|
875
|
-
}
|
|
876
|
-
export async function authorize<T0 = any>(
|
|
877
|
-
client: SuiGrpcClient,
|
|
878
|
-
args: [string, roles.Role<T0>],
|
|
879
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
880
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
881
|
-
const tx = new Transaction();
|
|
882
|
-
builder.authorize(tx, args, typeArguments);
|
|
883
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
884
|
-
// semantics — allow simulating view calls without validating object
|
|
885
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
886
|
-
const simulateRes = await client.simulateTransaction({
|
|
887
|
-
transaction: tx,
|
|
888
|
-
sender: ZERO_ADDRESS,
|
|
889
|
-
include: { commandResults: true },
|
|
890
|
-
checksEnabled: false,
|
|
891
|
-
} as any);
|
|
892
|
-
|
|
893
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
894
|
-
simulateRes,
|
|
895
|
-
[],
|
|
896
|
-
typeArguments,
|
|
897
|
-
);
|
|
898
|
-
}
|
|
899
|
-
export async function config<T0 = any, T1 = any>(
|
|
900
|
-
client: SuiGrpcClient,
|
|
901
|
-
args: [string, string],
|
|
902
|
-
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
903
|
-
): Promise<TypedSimulateResults<[string]>> {
|
|
904
|
-
const tx = new Transaction();
|
|
905
|
-
builder.config(tx, args, typeArguments);
|
|
906
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
907
|
-
// semantics — allow simulating view calls without validating object
|
|
908
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
909
|
-
const simulateRes = await client.simulateTransaction({
|
|
910
|
-
transaction: tx,
|
|
911
|
-
sender: ZERO_ADDRESS,
|
|
912
|
-
include: { commandResults: true },
|
|
913
|
-
checksEnabled: false,
|
|
914
|
-
} as any);
|
|
915
|
-
|
|
916
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[string]>(
|
|
917
|
-
simulateRes,
|
|
918
|
-
["T1"],
|
|
919
|
-
typeArguments,
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
export async function data(
|
|
923
|
-
client: SuiGrpcClient,
|
|
924
|
-
args: [string],
|
|
925
|
-
): Promise<TypedSimulateResults<[string]>> {
|
|
926
|
-
const tx = new Transaction();
|
|
927
|
-
builder.data(tx, args);
|
|
928
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
929
|
-
// semantics — allow simulating view calls without validating object
|
|
930
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
931
|
-
const simulateRes = await client.simulateTransaction({
|
|
932
|
-
transaction: tx,
|
|
933
|
-
sender: ZERO_ADDRESS,
|
|
934
|
-
include: { commandResults: true },
|
|
935
|
-
checksEnabled: false,
|
|
936
|
-
} as any);
|
|
937
|
-
|
|
938
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[string]>(
|
|
939
|
-
simulateRes,
|
|
940
|
-
["0x2::bag::Bag"],
|
|
941
|
-
);
|
|
942
|
-
}
|
|
943
|
-
export async function deauthorize<T0 = any>(
|
|
944
|
-
client: SuiGrpcClient,
|
|
945
|
-
args: [string, roles.Role<T0>],
|
|
946
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
947
|
-
): Promise<TypedSimulateResults<[boolean]>> {
|
|
948
|
-
const tx = new Transaction();
|
|
949
|
-
builder.deauthorize(tx, args, typeArguments);
|
|
950
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
951
|
-
// semantics — allow simulating view calls without validating object
|
|
952
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
953
|
-
const simulateRes = await client.simulateTransaction({
|
|
954
|
-
transaction: tx,
|
|
955
|
-
sender: ZERO_ADDRESS,
|
|
956
|
-
include: { commandResults: true },
|
|
957
|
-
checksEnabled: false,
|
|
958
|
-
} as any);
|
|
959
|
-
|
|
960
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>(
|
|
961
|
-
simulateRes,
|
|
962
|
-
["Bool"],
|
|
963
|
-
typeArguments,
|
|
964
|
-
);
|
|
965
|
-
}
|
|
966
|
-
export async function destroyEmpty(
|
|
967
|
-
client: SuiGrpcClient,
|
|
968
|
-
args: [roles.Roles],
|
|
969
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
970
|
-
const tx = new Transaction();
|
|
971
|
-
builder.destroyEmpty(tx, args);
|
|
972
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
973
|
-
// semantics — allow simulating view calls without validating object
|
|
974
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
975
|
-
const simulateRes = await client.simulateTransaction({
|
|
976
|
-
transaction: tx,
|
|
977
|
-
sender: ZERO_ADDRESS,
|
|
978
|
-
include: { commandResults: true },
|
|
979
|
-
checksEnabled: false,
|
|
980
|
-
} as any);
|
|
981
|
-
|
|
982
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
983
|
-
simulateRes,
|
|
984
|
-
[],
|
|
985
|
-
);
|
|
986
|
-
}
|
|
987
|
-
export async function isAuthorized<T0 = any>(
|
|
988
|
-
client: SuiGrpcClient,
|
|
989
|
-
args: [string, string],
|
|
990
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
991
|
-
): Promise<TypedSimulateResults<[boolean]>> {
|
|
992
|
-
const tx = new Transaction();
|
|
993
|
-
builder.isAuthorized(tx, args, typeArguments);
|
|
994
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
995
|
-
// semantics — allow simulating view calls without validating object
|
|
996
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
997
|
-
const simulateRes = await client.simulateTransaction({
|
|
998
|
-
transaction: tx,
|
|
999
|
-
sender: ZERO_ADDRESS,
|
|
1000
|
-
include: { commandResults: true },
|
|
1001
|
-
checksEnabled: false,
|
|
1002
|
-
} as any);
|
|
1003
|
-
|
|
1004
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>(
|
|
1005
|
-
simulateRes,
|
|
1006
|
-
["Bool"],
|
|
1007
|
-
typeArguments,
|
|
1008
|
-
);
|
|
1009
|
-
}
|
|
1010
|
-
export async function new$(
|
|
1011
|
-
client: SuiGrpcClient,
|
|
1012
|
-
args: [],
|
|
1013
|
-
): Promise<TypedSimulateResults<[roles.Roles]>> {
|
|
1014
|
-
const tx = new Transaction();
|
|
1015
|
-
builder.new$(tx, args);
|
|
1016
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1017
|
-
// semantics — allow simulating view calls without validating object
|
|
1018
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1019
|
-
const simulateRes = await client.simulateTransaction({
|
|
1020
|
-
transaction: tx,
|
|
1021
|
-
sender: ZERO_ADDRESS,
|
|
1022
|
-
include: { commandResults: true },
|
|
1023
|
-
checksEnabled: false,
|
|
1024
|
-
} as any);
|
|
1025
|
-
|
|
1026
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[roles.Roles]>(
|
|
1027
|
-
simulateRes,
|
|
1028
|
-
[
|
|
1029
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles",
|
|
1030
|
-
],
|
|
1031
|
-
);
|
|
1032
|
-
}
|
|
1033
|
-
export async function newRole<T0 = any>(
|
|
1034
|
-
client: SuiGrpcClient,
|
|
1035
|
-
args: [string],
|
|
1036
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1037
|
-
): Promise<TypedSimulateResults<[roles.Role<T0>]>> {
|
|
1038
|
-
const tx = new Transaction();
|
|
1039
|
-
builder.newRole(tx, args, typeArguments);
|
|
1040
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1041
|
-
// semantics — allow simulating view calls without validating object
|
|
1042
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1043
|
-
const simulateRes = await client.simulateTransaction({
|
|
1044
|
-
transaction: tx,
|
|
1045
|
-
sender: ZERO_ADDRESS,
|
|
1046
|
-
include: { commandResults: true },
|
|
1047
|
-
checksEnabled: false,
|
|
1048
|
-
} as any);
|
|
1049
|
-
|
|
1050
|
-
return (await getMoveCoder(client)).decodeSimulateResult<
|
|
1051
|
-
[roles.Role<T0>]
|
|
1052
|
-
>(
|
|
1053
|
-
simulateRes,
|
|
1054
|
-
[
|
|
1055
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role<T0>",
|
|
1056
|
-
],
|
|
1057
|
-
typeArguments,
|
|
1058
|
-
);
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
export namespace safe {
|
|
1064
|
-
export interface Safe<T0> {
|
|
1065
|
-
id: _0x2.object$.UID;
|
|
1066
|
-
balance: _0x2.balance.Balance<T0>;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
export namespace Safe {
|
|
1070
|
-
export const TYPE_QNAME =
|
|
1071
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe";
|
|
1072
|
-
|
|
1073
|
-
const TYPE = new TypeDescriptor<Safe<any>>(Safe.TYPE_QNAME);
|
|
1074
|
-
|
|
1075
|
-
export function type<T0>(
|
|
1076
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1077
|
-
): TypeDescriptor<Safe<T0>> {
|
|
1078
|
-
return TYPE.apply(arg0);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
export namespace builder {
|
|
1083
|
-
export function balance<T0 = any>(
|
|
1084
|
-
tx: Transaction,
|
|
1085
|
-
args: [string | TransactionObjectArgument],
|
|
1086
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1087
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1088
|
-
const _args: any[] = [];
|
|
1089
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1090
|
-
|
|
1091
|
-
// @ts-ignore
|
|
1092
|
-
return tx.moveCall({
|
|
1093
|
-
target:
|
|
1094
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::balance",
|
|
1095
|
-
arguments: _args,
|
|
1096
|
-
typeArguments: [
|
|
1097
|
-
typeof typeArguments[0] === "string"
|
|
1098
|
-
? typeArguments[0]
|
|
1099
|
-
: typeArguments[0].getSignature(),
|
|
1100
|
-
],
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
export function balanceMut<T0 = any>(
|
|
1104
|
-
tx: Transaction,
|
|
1105
|
-
args: [string | TransactionObjectArgument],
|
|
1106
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1107
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1108
|
-
const _args: any[] = [];
|
|
1109
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1110
|
-
|
|
1111
|
-
// @ts-ignore
|
|
1112
|
-
return tx.moveCall({
|
|
1113
|
-
target:
|
|
1114
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::balance_mut",
|
|
1115
|
-
arguments: _args,
|
|
1116
|
-
typeArguments: [
|
|
1117
|
-
typeof typeArguments[0] === "string"
|
|
1118
|
-
? typeArguments[0]
|
|
1119
|
-
: typeArguments[0].getSignature(),
|
|
1120
|
-
],
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
export function delete$<T0 = any>(
|
|
1124
|
-
tx: Transaction,
|
|
1125
|
-
args: [safe.Safe<T0> | TransactionArgument],
|
|
1126
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1127
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1128
|
-
const _args: any[] = [];
|
|
1129
|
-
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
1130
|
-
|
|
1131
|
-
// @ts-ignore
|
|
1132
|
-
return tx.moveCall({
|
|
1133
|
-
target:
|
|
1134
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::delete",
|
|
1135
|
-
arguments: _args,
|
|
1136
|
-
typeArguments: [
|
|
1137
|
-
typeof typeArguments[0] === "string"
|
|
1138
|
-
? typeArguments[0]
|
|
1139
|
-
: typeArguments[0].getSignature(),
|
|
1140
|
-
],
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
export function new$<T0 = any>(
|
|
1145
|
-
tx: Transaction,
|
|
1146
|
-
args: [],
|
|
1147
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1148
|
-
): TransactionArgument & [] {
|
|
1149
|
-
const _args: any[] = [];
|
|
1150
|
-
|
|
1151
|
-
// @ts-ignore
|
|
1152
|
-
return tx.moveCall({
|
|
1153
|
-
target:
|
|
1154
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::new",
|
|
1155
|
-
arguments: _args,
|
|
1156
|
-
typeArguments: [
|
|
1157
|
-
typeof typeArguments[0] === "string"
|
|
1158
|
-
? typeArguments[0]
|
|
1159
|
-
: typeArguments[0].getSignature(),
|
|
1160
|
-
],
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
export function put<T0 = any>(
|
|
1164
|
-
tx: Transaction,
|
|
1165
|
-
args: [
|
|
1166
|
-
string | TransactionObjectArgument,
|
|
1167
|
-
_0x2.coin.Coin<T0> | TransactionArgument,
|
|
1168
|
-
string | TransactionObjectArgument,
|
|
1169
|
-
],
|
|
1170
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1171
|
-
): TransactionArgument &
|
|
1172
|
-
[TransactionArgument, TransactionArgument, TransactionArgument] {
|
|
1173
|
-
const _args: any[] = [];
|
|
1174
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1175
|
-
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
1176
|
-
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
1177
|
-
|
|
1178
|
-
// @ts-ignore
|
|
1179
|
-
return tx.moveCall({
|
|
1180
|
-
target:
|
|
1181
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::put",
|
|
1182
|
-
arguments: _args,
|
|
1183
|
-
typeArguments: [
|
|
1184
|
-
typeof typeArguments[0] === "string"
|
|
1185
|
-
? typeArguments[0]
|
|
1186
|
-
: typeArguments[0].getSignature(),
|
|
1187
|
-
],
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
export function share<T0 = any>(
|
|
1191
|
-
tx: Transaction,
|
|
1192
|
-
args: [safe.Safe<T0> | TransactionArgument],
|
|
1193
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1194
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1195
|
-
const _args: any[] = [];
|
|
1196
|
-
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
1197
|
-
|
|
1198
|
-
// @ts-ignore
|
|
1199
|
-
return tx.moveCall({
|
|
1200
|
-
target:
|
|
1201
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::share",
|
|
1202
|
-
arguments: _args,
|
|
1203
|
-
typeArguments: [
|
|
1204
|
-
typeof typeArguments[0] === "string"
|
|
1205
|
-
? typeArguments[0]
|
|
1206
|
-
: typeArguments[0].getSignature(),
|
|
1207
|
-
],
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
export function withdraw<T0 = any>(
|
|
1211
|
-
tx: Transaction,
|
|
1212
|
-
args: [
|
|
1213
|
-
string | TransactionObjectArgument,
|
|
1214
|
-
string | TransactionObjectArgument,
|
|
1215
|
-
],
|
|
1216
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1217
|
-
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
1218
|
-
const _args: any[] = [];
|
|
1219
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1220
|
-
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
1221
|
-
|
|
1222
|
-
// @ts-ignore
|
|
1223
|
-
return tx.moveCall({
|
|
1224
|
-
target:
|
|
1225
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::withdraw",
|
|
1226
|
-
arguments: _args,
|
|
1227
|
-
typeArguments: [
|
|
1228
|
-
typeof typeArguments[0] === "string"
|
|
1229
|
-
? typeArguments[0]
|
|
1230
|
-
: typeArguments[0].getSignature(),
|
|
1231
|
-
],
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
export namespace view {
|
|
1236
|
-
export async function balance<T0 = any>(
|
|
1237
|
-
client: SuiGrpcClient,
|
|
1238
|
-
args: [string],
|
|
1239
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1240
|
-
): Promise<TypedSimulateResults<[bigint]>> {
|
|
1241
|
-
const tx = new Transaction();
|
|
1242
|
-
builder.balance(tx, args, typeArguments);
|
|
1243
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1244
|
-
// semantics — allow simulating view calls without validating object
|
|
1245
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1246
|
-
const simulateRes = await client.simulateTransaction({
|
|
1247
|
-
transaction: tx,
|
|
1248
|
-
sender: ZERO_ADDRESS,
|
|
1249
|
-
include: { commandResults: true },
|
|
1250
|
-
checksEnabled: false,
|
|
1251
|
-
} as any);
|
|
1252
|
-
|
|
1253
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>(
|
|
1254
|
-
simulateRes,
|
|
1255
|
-
["U64"],
|
|
1256
|
-
typeArguments,
|
|
1257
|
-
);
|
|
1258
|
-
}
|
|
1259
|
-
export async function balanceMut<T0 = any>(
|
|
1260
|
-
client: SuiGrpcClient,
|
|
1261
|
-
args: [string],
|
|
1262
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1263
|
-
): Promise<TypedSimulateResults<[string]>> {
|
|
1264
|
-
const tx = new Transaction();
|
|
1265
|
-
builder.balanceMut(tx, args, typeArguments);
|
|
1266
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1267
|
-
// semantics — allow simulating view calls without validating object
|
|
1268
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1269
|
-
const simulateRes = await client.simulateTransaction({
|
|
1270
|
-
transaction: tx,
|
|
1271
|
-
sender: ZERO_ADDRESS,
|
|
1272
|
-
include: { commandResults: true },
|
|
1273
|
-
checksEnabled: false,
|
|
1274
|
-
} as any);
|
|
1275
|
-
|
|
1276
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[string]>(
|
|
1277
|
-
simulateRes,
|
|
1278
|
-
["0x2::balance::Balance<T0>"],
|
|
1279
|
-
typeArguments,
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
export async function delete$<T0 = any>(
|
|
1283
|
-
client: SuiGrpcClient,
|
|
1284
|
-
args: [safe.Safe<T0>],
|
|
1285
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1286
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
1287
|
-
const tx = new Transaction();
|
|
1288
|
-
builder.delete$(tx, args, typeArguments);
|
|
1289
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1290
|
-
// semantics — allow simulating view calls without validating object
|
|
1291
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1292
|
-
const simulateRes = await client.simulateTransaction({
|
|
1293
|
-
transaction: tx,
|
|
1294
|
-
sender: ZERO_ADDRESS,
|
|
1295
|
-
include: { commandResults: true },
|
|
1296
|
-
checksEnabled: false,
|
|
1297
|
-
} as any);
|
|
1298
|
-
|
|
1299
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
1300
|
-
simulateRes,
|
|
1301
|
-
[],
|
|
1302
|
-
typeArguments,
|
|
1303
|
-
);
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
export async function new$<T0 = any>(
|
|
1307
|
-
client: SuiGrpcClient,
|
|
1308
|
-
args: [],
|
|
1309
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1310
|
-
): Promise<TypedSimulateResults<[safe.Safe<T0>]>> {
|
|
1311
|
-
const tx = new Transaction();
|
|
1312
|
-
builder.new$(tx, args, typeArguments);
|
|
1313
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1314
|
-
// semantics — allow simulating view calls without validating object
|
|
1315
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1316
|
-
const simulateRes = await client.simulateTransaction({
|
|
1317
|
-
transaction: tx,
|
|
1318
|
-
sender: ZERO_ADDRESS,
|
|
1319
|
-
include: { commandResults: true },
|
|
1320
|
-
checksEnabled: false,
|
|
1321
|
-
} as any);
|
|
1322
|
-
|
|
1323
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[safe.Safe<T0>]>(
|
|
1324
|
-
simulateRes,
|
|
1325
|
-
[
|
|
1326
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe<T0>",
|
|
1327
|
-
],
|
|
1328
|
-
typeArguments,
|
|
1329
|
-
);
|
|
1330
|
-
}
|
|
1331
|
-
export async function put<T0 = any>(
|
|
1332
|
-
client: SuiGrpcClient,
|
|
1333
|
-
args: [string, _0x2.coin.Coin<T0>, string],
|
|
1334
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1335
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
1336
|
-
const tx = new Transaction();
|
|
1337
|
-
builder.put(tx, args, typeArguments);
|
|
1338
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1339
|
-
// semantics — allow simulating view calls without validating object
|
|
1340
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1341
|
-
const simulateRes = await client.simulateTransaction({
|
|
1342
|
-
transaction: tx,
|
|
1343
|
-
sender: ZERO_ADDRESS,
|
|
1344
|
-
include: { commandResults: true },
|
|
1345
|
-
checksEnabled: false,
|
|
1346
|
-
} as any);
|
|
1347
|
-
|
|
1348
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
1349
|
-
simulateRes,
|
|
1350
|
-
[],
|
|
1351
|
-
typeArguments,
|
|
1352
|
-
);
|
|
1353
|
-
}
|
|
1354
|
-
export async function share<T0 = any>(
|
|
1355
|
-
client: SuiGrpcClient,
|
|
1356
|
-
args: [safe.Safe<T0>],
|
|
1357
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1358
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
1359
|
-
const tx = new Transaction();
|
|
1360
|
-
builder.share(tx, args, typeArguments);
|
|
1361
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1362
|
-
// semantics — allow simulating view calls without validating object
|
|
1363
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1364
|
-
const simulateRes = await client.simulateTransaction({
|
|
1365
|
-
transaction: tx,
|
|
1366
|
-
sender: ZERO_ADDRESS,
|
|
1367
|
-
include: { commandResults: true },
|
|
1368
|
-
checksEnabled: false,
|
|
1369
|
-
} as any);
|
|
1370
|
-
|
|
1371
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
1372
|
-
simulateRes,
|
|
1373
|
-
[],
|
|
1374
|
-
typeArguments,
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
export async function withdraw<T0 = any>(
|
|
1378
|
-
client: SuiGrpcClient,
|
|
1379
|
-
args: [string, string],
|
|
1380
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1381
|
-
): Promise<TypedSimulateResults<[_0x2.coin.Coin<T0>]>> {
|
|
1382
|
-
const tx = new Transaction();
|
|
1383
|
-
builder.withdraw(tx, args, typeArguments);
|
|
1384
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1385
|
-
// semantics — allow simulating view calls without validating object
|
|
1386
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1387
|
-
const simulateRes = await client.simulateTransaction({
|
|
1388
|
-
transaction: tx,
|
|
1389
|
-
sender: ZERO_ADDRESS,
|
|
1390
|
-
include: { commandResults: true },
|
|
1391
|
-
checksEnabled: false,
|
|
1392
|
-
} as any);
|
|
1393
|
-
|
|
1394
|
-
return (await getMoveCoder(client)).decodeSimulateResult<
|
|
1395
|
-
[_0x2.coin.Coin<T0>]
|
|
1396
|
-
>(simulateRes, ["0x2::coin::Coin<T0>"], typeArguments);
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
export namespace treasury {
|
|
1402
|
-
export interface TreasuryCapKey {
|
|
1403
|
-
dummy_field: boolean;
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
export namespace TreasuryCapKey {
|
|
1407
|
-
export const TYPE_QNAME =
|
|
1408
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::TreasuryCapKey";
|
|
1409
|
-
|
|
1410
|
-
const TYPE = new TypeDescriptor<TreasuryCapKey>(TreasuryCapKey.TYPE_QNAME);
|
|
1411
|
-
|
|
1412
|
-
export function type(): TypeDescriptor<TreasuryCapKey> {
|
|
1413
|
-
return TYPE.apply();
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
export type TreasuryCapKeyInstance = TypedEventInstance<TreasuryCapKey> & {
|
|
1418
|
-
data_decoded: TreasuryCapKey;
|
|
1419
|
-
type_arguments: [];
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
export interface WrappedTreasury<T0> {
|
|
1423
|
-
id: _0x2.object$.UID;
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
export namespace WrappedTreasury {
|
|
1427
|
-
export const TYPE_QNAME =
|
|
1428
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::WrappedTreasury";
|
|
1429
|
-
|
|
1430
|
-
const TYPE = new TypeDescriptor<WrappedTreasury<any>>(
|
|
1431
|
-
WrappedTreasury.TYPE_QNAME,
|
|
1432
|
-
);
|
|
1433
|
-
|
|
1434
|
-
export function type<T0>(
|
|
1435
|
-
arg0: TypeDescriptor<T0> = ANY_TYPE,
|
|
1436
|
-
): TypeDescriptor<WrappedTreasury<T0>> {
|
|
1437
|
-
return TYPE.apply(arg0);
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
export namespace builder {
|
|
1442
|
-
export function share<T0 = any>(
|
|
1443
|
-
tx: Transaction,
|
|
1444
|
-
args: [treasury.WrappedTreasury<T0> | TransactionArgument],
|
|
1445
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1446
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1447
|
-
const _args: any[] = [];
|
|
1448
|
-
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
1449
|
-
|
|
1450
|
-
// @ts-ignore
|
|
1451
|
-
return tx.moveCall({
|
|
1452
|
-
target:
|
|
1453
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::share",
|
|
1454
|
-
arguments: _args,
|
|
1455
|
-
typeArguments: [
|
|
1456
|
-
typeof typeArguments[0] === "string"
|
|
1457
|
-
? typeArguments[0]
|
|
1458
|
-
: typeArguments[0].getSignature(),
|
|
1459
|
-
],
|
|
1460
|
-
});
|
|
1461
|
-
}
|
|
1462
|
-
export function totalSupply<T0 = any>(
|
|
1463
|
-
tx: Transaction,
|
|
1464
|
-
args: [string | TransactionObjectArgument],
|
|
1465
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1466
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1467
|
-
const _args: any[] = [];
|
|
1468
|
-
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1469
|
-
|
|
1470
|
-
// @ts-ignore
|
|
1471
|
-
return tx.moveCall({
|
|
1472
|
-
target:
|
|
1473
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::total_supply",
|
|
1474
|
-
arguments: _args,
|
|
1475
|
-
typeArguments: [
|
|
1476
|
-
typeof typeArguments[0] === "string"
|
|
1477
|
-
? typeArguments[0]
|
|
1478
|
-
: typeArguments[0].getSignature(),
|
|
1479
|
-
],
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
export function wrap<T0 = any>(
|
|
1483
|
-
tx: Transaction,
|
|
1484
|
-
args: [_0x2.coin.TreasuryCap<T0> | TransactionArgument],
|
|
1485
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1486
|
-
): TransactionArgument & [TransactionArgument] {
|
|
1487
|
-
const _args: any[] = [];
|
|
1488
|
-
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
1489
|
-
|
|
1490
|
-
// @ts-ignore
|
|
1491
|
-
return tx.moveCall({
|
|
1492
|
-
target:
|
|
1493
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::wrap",
|
|
1494
|
-
arguments: _args,
|
|
1495
|
-
typeArguments: [
|
|
1496
|
-
typeof typeArguments[0] === "string"
|
|
1497
|
-
? typeArguments[0]
|
|
1498
|
-
: typeArguments[0].getSignature(),
|
|
1499
|
-
],
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
export namespace view {
|
|
1504
|
-
export async function share<T0 = any>(
|
|
1505
|
-
client: SuiGrpcClient,
|
|
1506
|
-
args: [treasury.WrappedTreasury<T0>],
|
|
1507
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1508
|
-
): Promise<TypedSimulateResults<[]>> {
|
|
1509
|
-
const tx = new Transaction();
|
|
1510
|
-
builder.share(tx, args, typeArguments);
|
|
1511
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1512
|
-
// semantics — allow simulating view calls without validating object
|
|
1513
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1514
|
-
const simulateRes = await client.simulateTransaction({
|
|
1515
|
-
transaction: tx,
|
|
1516
|
-
sender: ZERO_ADDRESS,
|
|
1517
|
-
include: { commandResults: true },
|
|
1518
|
-
checksEnabled: false,
|
|
1519
|
-
} as any);
|
|
1520
|
-
|
|
1521
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[]>(
|
|
1522
|
-
simulateRes,
|
|
1523
|
-
[],
|
|
1524
|
-
typeArguments,
|
|
1525
|
-
);
|
|
1526
|
-
}
|
|
1527
|
-
export async function totalSupply<T0 = any>(
|
|
1528
|
-
client: SuiGrpcClient,
|
|
1529
|
-
args: [string],
|
|
1530
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1531
|
-
): Promise<TypedSimulateResults<[bigint]>> {
|
|
1532
|
-
const tx = new Transaction();
|
|
1533
|
-
builder.totalSupply(tx, args, typeArguments);
|
|
1534
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1535
|
-
// semantics — allow simulating view calls without validating object
|
|
1536
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1537
|
-
const simulateRes = await client.simulateTransaction({
|
|
1538
|
-
transaction: tx,
|
|
1539
|
-
sender: ZERO_ADDRESS,
|
|
1540
|
-
include: { commandResults: true },
|
|
1541
|
-
checksEnabled: false,
|
|
1542
|
-
} as any);
|
|
1543
|
-
|
|
1544
|
-
return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>(
|
|
1545
|
-
simulateRes,
|
|
1546
|
-
["U64"],
|
|
1547
|
-
typeArguments,
|
|
1548
|
-
);
|
|
1549
|
-
}
|
|
1550
|
-
export async function wrap<T0 = any>(
|
|
1551
|
-
client: SuiGrpcClient,
|
|
1552
|
-
args: [_0x2.coin.TreasuryCap<T0>],
|
|
1553
|
-
typeArguments: [TypeDescriptor<T0> | string],
|
|
1554
|
-
): Promise<TypedSimulateResults<[treasury.WrappedTreasury<T0>]>> {
|
|
1555
|
-
const tx = new Transaction();
|
|
1556
|
-
builder.wrap(tx, args, typeArguments);
|
|
1557
|
-
// checksEnabled: false matches the old devInspectTransactionBlock
|
|
1558
|
-
// semantics — allow simulating view calls without validating object
|
|
1559
|
-
// ownership or signer, which view callers obviously can't satisfy.
|
|
1560
|
-
const simulateRes = await client.simulateTransaction({
|
|
1561
|
-
transaction: tx,
|
|
1562
|
-
sender: ZERO_ADDRESS,
|
|
1563
|
-
include: { commandResults: true },
|
|
1564
|
-
checksEnabled: false,
|
|
1565
|
-
} as any);
|
|
1566
|
-
|
|
1567
|
-
return (await getMoveCoder(client)).decodeSimulateResult<
|
|
1568
|
-
[treasury.WrappedTreasury<T0>]
|
|
1569
|
-
>(
|
|
1570
|
-
simulateRes,
|
|
1571
|
-
[
|
|
1572
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::WrappedTreasury<T0>",
|
|
1573
|
-
],
|
|
1574
|
-
typeArguments,
|
|
1575
|
-
);
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
const MODULES = JSON.parse(
|
|
1581
|
-
'[{"address":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":{"datatypes":[{"abilities":[2],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AIRDROP","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"airdrop","name":"AIRDROP","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"max_token_limit","position":0,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"tokens","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"role","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::ApiRole"}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role"}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropConfig","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"airdrop","name":"AirdropConfig","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"addr","position":0,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"value","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropEvent","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"airdrop","name":"AirdropEvent","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"roles","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}},{"name":"record","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"airdrop","name":"AirdropRegistry","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"add_record","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"authorize_api","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deauthorize_api","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropConfig"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"finalize_send","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AIRDROP"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"init","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropConfig"}}],"name":"init_send","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_airdropped","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"remove_record","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}}],"name":"roles","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}}],"name":"roles_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropRegistry"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::airdrop::AirdropConfig"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"send_token","visibility":2,"isEntry":false}],"name":"airdrop"}},{"address":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":{"datatypes":[{"abilities":[2],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::memefi::MEMEFI","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"memefi","name":"MEMEFI","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::memefi::MEMEFI"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"init","visibility":1,"isEntry":false}],"name":"memefi"}},{"address":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":{"datatypes":[{"abilities":[],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::ApiRole","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"roles","name":"ApiRole","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"addr","position":0,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"roles","name":"Role","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"data","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"roles","name":"Roles","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"addr","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"assert_has_role","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[],"name":"assert_publisher_from_package","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role"}}],"returns":[],"name":"authorize","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"config","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"name":"data","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"deauthorize","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}}],"returns":[],"name":"destroy_empty","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_authorized","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Roles"}}],"name":"new","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::roles::Role"}}],"name":"new_role","visibility":3,"isEntry":false}],"name":"roles"}},{"address":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":{"datatypes":[{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"balance","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"safe","name":"Safe","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"balance_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"delete","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"init","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}}],"name":"new","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[],"name":"put","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}}],"returns":[],"name":"share","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::safe::Safe"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"withdraw","visibility":2,"isEntry":false}],"name":"safe"}},{"address":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::TreasuryCapKey","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"treasury","name":"TreasuryCapKey","kind":1},{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::WrappedTreasury","definingId":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e","module":"treasury","name":"WrappedTreasury","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::WrappedTreasury"}}],"returns":[],"name":"share","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::WrappedTreasury"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"total_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e::treasury::WrappedTreasury"}}],"name":"wrap","visibility":3,"isEntry":false}],"name":"treasury"}}]',
|
|
1582
|
-
);
|
|
1583
|
-
|
|
1584
|
-
export function loadAllTypes(coder: MoveCoder) {
|
|
1585
|
-
_0x2.loadAllTypes(coder);
|
|
1586
|
-
for (const m of Object.values(MODULES)) {
|
|
1587
|
-
coder.load(
|
|
1588
|
-
m as any,
|
|
1589
|
-
"0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e",
|
|
1590
|
-
);
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
loadAllTypes(defaultMoveCoder());
|