@typemove/iota 1.13.4-rc.1 → 1.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -32
- package/builtin/0x1/package.json +0 -5
- package/builtin/0x2/package.json +0 -5
- package/builtin/0x3/package.json +0 -5
- package/builtin/package.json +0 -5
- package/codegen/package.json +0 -5
- package/dist/cjs/builtin/0x1.d.ts +0 -733
- package/dist/cjs/builtin/0x1.d.ts.map +0 -1
- package/dist/cjs/builtin/0x1.js +0 -4297
- package/dist/cjs/builtin/0x1.js.map +0 -1
- package/dist/cjs/builtin/0x2.d.ts +0 -4518
- package/dist/cjs/builtin/0x2.d.ts.map +0 -1
- package/dist/cjs/builtin/0x2.js +0 -18452
- package/dist/cjs/builtin/0x2.js.map +0 -1
- package/dist/cjs/builtin/0x3.d.ts +0 -1901
- package/dist/cjs/builtin/0x3.d.ts.map +0 -1
- package/dist/cjs/builtin/0x3.js +0 -6170
- package/dist/cjs/builtin/0x3.js.map +0 -1
- package/dist/cjs/builtin/index.d.ts +0 -4
- package/dist/cjs/builtin/index.d.ts.map +0 -1
- package/dist/cjs/builtin/index.js +0 -11
- package/dist/cjs/builtin/index.js.map +0 -1
- package/dist/cjs/codegen/codegen.d.ts +0 -20
- package/dist/cjs/codegen/codegen.d.ts.map +0 -1
- package/dist/cjs/codegen/codegen.js +0 -251
- package/dist/cjs/codegen/codegen.js.map +0 -1
- package/dist/cjs/codegen/index.d.ts +0 -2
- package/dist/cjs/codegen/index.d.ts.map +0 -1
- package/dist/cjs/codegen/index.js +0 -5
- package/dist/cjs/codegen/index.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -11
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models.d.ts +0 -18
- package/dist/cjs/models.d.ts.map +0 -1
- package/dist/cjs/models.js +0 -5
- package/dist/cjs/models.js.map +0 -1
- package/dist/cjs/move-coder.d.ts +0 -26
- package/dist/cjs/move-coder.d.ts.map +0 -1
- package/dist/cjs/move-coder.js +0 -272
- package/dist/cjs/move-coder.js.map +0 -1
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/sui-chain-adapter.d.ts +0 -15
- package/dist/cjs/sui-chain-adapter.d.ts.map +0 -1
- package/dist/cjs/sui-chain-adapter.js +0 -88
- package/dist/cjs/sui-chain-adapter.js.map +0 -1
- package/dist/cjs/to-internal.d.ts +0 -4
- package/dist/cjs/to-internal.d.ts.map +0 -1
- package/dist/cjs/to-internal.js +0 -99
- package/dist/cjs/to-internal.js.map +0 -1
- package/dist/cjs/transaction.d.ts +0 -15
- package/dist/cjs/transaction.d.ts.map +0 -1
- package/dist/cjs/transaction.js +0 -98
- package/dist/cjs/transaction.js.map +0 -1
package/dist/cjs/builtin/0x1.js
DELETED
|
@@ -1,4297 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.vector = exports.uq64_64 = exports.uq32_32 = exports.u8 = exports.u64 = exports.u32 = exports.u256 = exports.u16 = exports.u128 = exports.type_name = exports.string$ = exports.option = exports.hash = exports.fixed_point32 = exports.debug = exports.bit_vector = exports.bcs = exports.ascii = exports.address = void 0;
|
|
7
|
-
exports.loadAllTypes = loadAllTypes;
|
|
8
|
-
/* Generated types for 0x1, original address 0x1 */
|
|
9
|
-
const move_1 = require("@typemove/move");
|
|
10
|
-
const iota_1 = require("@typemove/iota");
|
|
11
|
-
const iota_2 = require("@typemove/iota");
|
|
12
|
-
const transactions_1 = require("@iota/iota-sdk/transactions");
|
|
13
|
-
const iota_3 = require("@typemove/iota");
|
|
14
|
-
var address;
|
|
15
|
-
(function (address) {
|
|
16
|
-
let builder;
|
|
17
|
-
(function (builder) {
|
|
18
|
-
function length(tx, args) {
|
|
19
|
-
const _args = [];
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return tx.moveCall({
|
|
22
|
-
target: "0x1::address::length",
|
|
23
|
-
arguments: _args,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
builder.length = length;
|
|
27
|
-
})(builder = address.builder || (address.builder = {}));
|
|
28
|
-
let view;
|
|
29
|
-
(function (view) {
|
|
30
|
-
async function length(client, args) {
|
|
31
|
-
const tx = new transactions_1.Transaction();
|
|
32
|
-
builder.length(tx, args);
|
|
33
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
34
|
-
transactionBlock: tx,
|
|
35
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
36
|
-
});
|
|
37
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
38
|
-
}
|
|
39
|
-
view.length = length;
|
|
40
|
-
})(view = address.view || (address.view = {}));
|
|
41
|
-
})(address || (exports.address = address = {}));
|
|
42
|
-
var ascii;
|
|
43
|
-
(function (ascii) {
|
|
44
|
-
let Char;
|
|
45
|
-
(function (Char) {
|
|
46
|
-
Char.TYPE_QNAME = "0x1::ascii::Char";
|
|
47
|
-
const TYPE = new move_1.TypeDescriptor(Char.TYPE_QNAME);
|
|
48
|
-
function type() {
|
|
49
|
-
return TYPE.apply();
|
|
50
|
-
}
|
|
51
|
-
Char.type = type;
|
|
52
|
-
})(Char = ascii.Char || (ascii.Char = {}));
|
|
53
|
-
let String;
|
|
54
|
-
(function (String) {
|
|
55
|
-
String.TYPE_QNAME = "0x1::ascii::String";
|
|
56
|
-
const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
|
|
57
|
-
function type() {
|
|
58
|
-
return TYPE.apply();
|
|
59
|
-
}
|
|
60
|
-
String.type = type;
|
|
61
|
-
})(String = ascii.String || (ascii.String = {}));
|
|
62
|
-
let builder;
|
|
63
|
-
(function (builder) {
|
|
64
|
-
function allCharactersPrintable(tx, args) {
|
|
65
|
-
const _args = [];
|
|
66
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
return tx.moveCall({
|
|
69
|
-
target: "0x1::ascii::all_characters_printable",
|
|
70
|
-
arguments: _args,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
builder.allCharactersPrintable = allCharactersPrintable;
|
|
74
|
-
function append(tx, args) {
|
|
75
|
-
const _args = [];
|
|
76
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
77
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
return tx.moveCall({
|
|
80
|
-
target: "0x1::ascii::append",
|
|
81
|
-
arguments: _args,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
builder.append = append;
|
|
85
|
-
function asBytes(tx, args) {
|
|
86
|
-
const _args = [];
|
|
87
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
88
|
-
// @ts-ignore
|
|
89
|
-
return tx.moveCall({
|
|
90
|
-
target: "0x1::ascii::as_bytes",
|
|
91
|
-
arguments: _args,
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
builder.asBytes = asBytes;
|
|
95
|
-
function byte(tx, args) {
|
|
96
|
-
const _args = [];
|
|
97
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
return tx.moveCall({
|
|
100
|
-
target: "0x1::ascii::byte",
|
|
101
|
-
arguments: _args,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
builder.byte = byte;
|
|
105
|
-
function char(tx, args) {
|
|
106
|
-
const _args = [];
|
|
107
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
return tx.moveCall({
|
|
110
|
-
target: "0x1::ascii::char",
|
|
111
|
-
arguments: _args,
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
builder.char = char;
|
|
115
|
-
function indexOf(tx, args) {
|
|
116
|
-
const _args = [];
|
|
117
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
118
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[1], tx));
|
|
119
|
-
// @ts-ignore
|
|
120
|
-
return tx.moveCall({
|
|
121
|
-
target: "0x1::ascii::index_of",
|
|
122
|
-
arguments: _args,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
builder.indexOf = indexOf;
|
|
126
|
-
function insert(tx, args) {
|
|
127
|
-
const _args = [];
|
|
128
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
129
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
130
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[2], tx));
|
|
131
|
-
// @ts-ignore
|
|
132
|
-
return tx.moveCall({
|
|
133
|
-
target: "0x1::ascii::insert",
|
|
134
|
-
arguments: _args,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
builder.insert = insert;
|
|
138
|
-
function intoBytes(tx, args) {
|
|
139
|
-
const _args = [];
|
|
140
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
141
|
-
// @ts-ignore
|
|
142
|
-
return tx.moveCall({
|
|
143
|
-
target: "0x1::ascii::into_bytes",
|
|
144
|
-
arguments: _args,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
builder.intoBytes = intoBytes;
|
|
148
|
-
function isEmpty(tx, args) {
|
|
149
|
-
const _args = [];
|
|
150
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
151
|
-
// @ts-ignore
|
|
152
|
-
return tx.moveCall({
|
|
153
|
-
target: "0x1::ascii::is_empty",
|
|
154
|
-
arguments: _args,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
builder.isEmpty = isEmpty;
|
|
158
|
-
function isPrintableChar(tx, args) {
|
|
159
|
-
const _args = [];
|
|
160
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
161
|
-
// @ts-ignore
|
|
162
|
-
return tx.moveCall({
|
|
163
|
-
target: "0x1::ascii::is_printable_char",
|
|
164
|
-
arguments: _args,
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
builder.isPrintableChar = isPrintableChar;
|
|
168
|
-
function isValidChar(tx, args) {
|
|
169
|
-
const _args = [];
|
|
170
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
171
|
-
// @ts-ignore
|
|
172
|
-
return tx.moveCall({
|
|
173
|
-
target: "0x1::ascii::is_valid_char",
|
|
174
|
-
arguments: _args,
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
builder.isValidChar = isValidChar;
|
|
178
|
-
function length(tx, args) {
|
|
179
|
-
const _args = [];
|
|
180
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
181
|
-
// @ts-ignore
|
|
182
|
-
return tx.moveCall({
|
|
183
|
-
target: "0x1::ascii::length",
|
|
184
|
-
arguments: _args,
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
builder.length = length;
|
|
188
|
-
function popChar(tx, args) {
|
|
189
|
-
const _args = [];
|
|
190
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
191
|
-
// @ts-ignore
|
|
192
|
-
return tx.moveCall({
|
|
193
|
-
target: "0x1::ascii::pop_char",
|
|
194
|
-
arguments: _args,
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
builder.popChar = popChar;
|
|
198
|
-
function pushChar(tx, args) {
|
|
199
|
-
const _args = [];
|
|
200
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
201
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
202
|
-
// @ts-ignore
|
|
203
|
-
return tx.moveCall({
|
|
204
|
-
target: "0x1::ascii::push_char",
|
|
205
|
-
arguments: _args,
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
builder.pushChar = pushChar;
|
|
209
|
-
function string$(tx, args) {
|
|
210
|
-
const _args = [];
|
|
211
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
212
|
-
// @ts-ignore
|
|
213
|
-
return tx.moveCall({
|
|
214
|
-
target: "0x1::ascii::string",
|
|
215
|
-
arguments: _args,
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
builder.string$ = string$;
|
|
219
|
-
function substring(tx, args) {
|
|
220
|
-
const _args = [];
|
|
221
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
222
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
223
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[2], tx));
|
|
224
|
-
// @ts-ignore
|
|
225
|
-
return tx.moveCall({
|
|
226
|
-
target: "0x1::ascii::substring",
|
|
227
|
-
arguments: _args,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
builder.substring = substring;
|
|
231
|
-
function toLowercase(tx, args) {
|
|
232
|
-
const _args = [];
|
|
233
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
234
|
-
// @ts-ignore
|
|
235
|
-
return tx.moveCall({
|
|
236
|
-
target: "0x1::ascii::to_lowercase",
|
|
237
|
-
arguments: _args,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
builder.toLowercase = toLowercase;
|
|
241
|
-
function toUppercase(tx, args) {
|
|
242
|
-
const _args = [];
|
|
243
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
244
|
-
// @ts-ignore
|
|
245
|
-
return tx.moveCall({
|
|
246
|
-
target: "0x1::ascii::to_uppercase",
|
|
247
|
-
arguments: _args,
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
builder.toUppercase = toUppercase;
|
|
251
|
-
function tryString(tx, args) {
|
|
252
|
-
const _args = [];
|
|
253
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
254
|
-
// @ts-ignore
|
|
255
|
-
return tx.moveCall({
|
|
256
|
-
target: "0x1::ascii::try_string",
|
|
257
|
-
arguments: _args,
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
builder.tryString = tryString;
|
|
261
|
-
})(builder = ascii.builder || (ascii.builder = {}));
|
|
262
|
-
let view;
|
|
263
|
-
(function (view) {
|
|
264
|
-
async function allCharactersPrintable(client, args) {
|
|
265
|
-
const tx = new transactions_1.Transaction();
|
|
266
|
-
builder.allCharactersPrintable(tx, args);
|
|
267
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
268
|
-
transactionBlock: tx,
|
|
269
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
270
|
-
});
|
|
271
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
272
|
-
}
|
|
273
|
-
view.allCharactersPrintable = allCharactersPrintable;
|
|
274
|
-
async function append(client, args) {
|
|
275
|
-
const tx = new transactions_1.Transaction();
|
|
276
|
-
builder.append(tx, args);
|
|
277
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
278
|
-
transactionBlock: tx,
|
|
279
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
280
|
-
});
|
|
281
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
282
|
-
}
|
|
283
|
-
view.append = append;
|
|
284
|
-
async function asBytes(client, args) {
|
|
285
|
-
const tx = new transactions_1.Transaction();
|
|
286
|
-
builder.asBytes(tx, args);
|
|
287
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
288
|
-
transactionBlock: tx,
|
|
289
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
290
|
-
});
|
|
291
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
292
|
-
}
|
|
293
|
-
view.asBytes = asBytes;
|
|
294
|
-
async function byte(client, args) {
|
|
295
|
-
const tx = new transactions_1.Transaction();
|
|
296
|
-
builder.byte(tx, args);
|
|
297
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
298
|
-
transactionBlock: tx,
|
|
299
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
300
|
-
});
|
|
301
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
302
|
-
}
|
|
303
|
-
view.byte = byte;
|
|
304
|
-
async function char(client, args) {
|
|
305
|
-
const tx = new transactions_1.Transaction();
|
|
306
|
-
builder.char(tx, args);
|
|
307
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
308
|
-
transactionBlock: tx,
|
|
309
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
310
|
-
});
|
|
311
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
312
|
-
}
|
|
313
|
-
view.char = char;
|
|
314
|
-
async function indexOf(client, args) {
|
|
315
|
-
const tx = new transactions_1.Transaction();
|
|
316
|
-
builder.indexOf(tx, args);
|
|
317
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
318
|
-
transactionBlock: tx,
|
|
319
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
320
|
-
});
|
|
321
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
322
|
-
}
|
|
323
|
-
view.indexOf = indexOf;
|
|
324
|
-
async function insert(client, args) {
|
|
325
|
-
const tx = new transactions_1.Transaction();
|
|
326
|
-
builder.insert(tx, args);
|
|
327
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
328
|
-
transactionBlock: tx,
|
|
329
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
330
|
-
});
|
|
331
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
332
|
-
}
|
|
333
|
-
view.insert = insert;
|
|
334
|
-
async function intoBytes(client, args) {
|
|
335
|
-
const tx = new transactions_1.Transaction();
|
|
336
|
-
builder.intoBytes(tx, args);
|
|
337
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
338
|
-
transactionBlock: tx,
|
|
339
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
340
|
-
});
|
|
341
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
342
|
-
}
|
|
343
|
-
view.intoBytes = intoBytes;
|
|
344
|
-
async function isEmpty(client, args) {
|
|
345
|
-
const tx = new transactions_1.Transaction();
|
|
346
|
-
builder.isEmpty(tx, args);
|
|
347
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
348
|
-
transactionBlock: tx,
|
|
349
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
350
|
-
});
|
|
351
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
352
|
-
}
|
|
353
|
-
view.isEmpty = isEmpty;
|
|
354
|
-
async function isPrintableChar(client, args) {
|
|
355
|
-
const tx = new transactions_1.Transaction();
|
|
356
|
-
builder.isPrintableChar(tx, args);
|
|
357
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
358
|
-
transactionBlock: tx,
|
|
359
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
360
|
-
});
|
|
361
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
362
|
-
}
|
|
363
|
-
view.isPrintableChar = isPrintableChar;
|
|
364
|
-
async function isValidChar(client, args) {
|
|
365
|
-
const tx = new transactions_1.Transaction();
|
|
366
|
-
builder.isValidChar(tx, args);
|
|
367
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
368
|
-
transactionBlock: tx,
|
|
369
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
370
|
-
});
|
|
371
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
372
|
-
}
|
|
373
|
-
view.isValidChar = isValidChar;
|
|
374
|
-
async function length(client, args) {
|
|
375
|
-
const tx = new transactions_1.Transaction();
|
|
376
|
-
builder.length(tx, args);
|
|
377
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
378
|
-
transactionBlock: tx,
|
|
379
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
380
|
-
});
|
|
381
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
382
|
-
}
|
|
383
|
-
view.length = length;
|
|
384
|
-
async function popChar(client, args) {
|
|
385
|
-
const tx = new transactions_1.Transaction();
|
|
386
|
-
builder.popChar(tx, args);
|
|
387
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
388
|
-
transactionBlock: tx,
|
|
389
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
390
|
-
});
|
|
391
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
392
|
-
}
|
|
393
|
-
view.popChar = popChar;
|
|
394
|
-
async function pushChar(client, args) {
|
|
395
|
-
const tx = new transactions_1.Transaction();
|
|
396
|
-
builder.pushChar(tx, args);
|
|
397
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
398
|
-
transactionBlock: tx,
|
|
399
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
400
|
-
});
|
|
401
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
402
|
-
}
|
|
403
|
-
view.pushChar = pushChar;
|
|
404
|
-
async function string$(client, args) {
|
|
405
|
-
const tx = new transactions_1.Transaction();
|
|
406
|
-
builder.string$(tx, args);
|
|
407
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
408
|
-
transactionBlock: tx,
|
|
409
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
410
|
-
});
|
|
411
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
412
|
-
}
|
|
413
|
-
view.string$ = string$;
|
|
414
|
-
async function substring(client, args) {
|
|
415
|
-
const tx = new transactions_1.Transaction();
|
|
416
|
-
builder.substring(tx, args);
|
|
417
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
418
|
-
transactionBlock: tx,
|
|
419
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
420
|
-
});
|
|
421
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
422
|
-
}
|
|
423
|
-
view.substring = substring;
|
|
424
|
-
async function toLowercase(client, args) {
|
|
425
|
-
const tx = new transactions_1.Transaction();
|
|
426
|
-
builder.toLowercase(tx, args);
|
|
427
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
428
|
-
transactionBlock: tx,
|
|
429
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
430
|
-
});
|
|
431
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
432
|
-
}
|
|
433
|
-
view.toLowercase = toLowercase;
|
|
434
|
-
async function toUppercase(client, args) {
|
|
435
|
-
const tx = new transactions_1.Transaction();
|
|
436
|
-
builder.toUppercase(tx, args);
|
|
437
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
438
|
-
transactionBlock: tx,
|
|
439
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
440
|
-
});
|
|
441
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
442
|
-
}
|
|
443
|
-
view.toUppercase = toUppercase;
|
|
444
|
-
async function tryString(client, args) {
|
|
445
|
-
const tx = new transactions_1.Transaction();
|
|
446
|
-
builder.tryString(tx, args);
|
|
447
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
448
|
-
transactionBlock: tx,
|
|
449
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
450
|
-
});
|
|
451
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
452
|
-
}
|
|
453
|
-
view.tryString = tryString;
|
|
454
|
-
})(view = ascii.view || (ascii.view = {}));
|
|
455
|
-
})(ascii || (exports.ascii = ascii = {}));
|
|
456
|
-
var bcs;
|
|
457
|
-
(function (bcs) {
|
|
458
|
-
let builder;
|
|
459
|
-
(function (builder) {
|
|
460
|
-
function toBytes(tx, args, typeArguments) {
|
|
461
|
-
const _args = [];
|
|
462
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
463
|
-
// @ts-ignore
|
|
464
|
-
return tx.moveCall({
|
|
465
|
-
target: "0x1::bcs::to_bytes",
|
|
466
|
-
arguments: _args,
|
|
467
|
-
typeArguments: [
|
|
468
|
-
typeof typeArguments[0] === "string"
|
|
469
|
-
? typeArguments[0]
|
|
470
|
-
: typeArguments[0].getSignature(),
|
|
471
|
-
],
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
builder.toBytes = toBytes;
|
|
475
|
-
})(builder = bcs.builder || (bcs.builder = {}));
|
|
476
|
-
let view;
|
|
477
|
-
(function (view) {
|
|
478
|
-
async function toBytes(client, args, typeArguments) {
|
|
479
|
-
const tx = new transactions_1.Transaction();
|
|
480
|
-
builder.toBytes(tx, args, typeArguments);
|
|
481
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
482
|
-
transactionBlock: tx,
|
|
483
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
484
|
-
});
|
|
485
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
486
|
-
}
|
|
487
|
-
view.toBytes = toBytes;
|
|
488
|
-
})(view = bcs.view || (bcs.view = {}));
|
|
489
|
-
})(bcs || (exports.bcs = bcs = {}));
|
|
490
|
-
var bit_vector;
|
|
491
|
-
(function (bit_vector) {
|
|
492
|
-
let BitVector;
|
|
493
|
-
(function (BitVector) {
|
|
494
|
-
BitVector.TYPE_QNAME = "0x1::bit_vector::BitVector";
|
|
495
|
-
const TYPE = new move_1.TypeDescriptor(BitVector.TYPE_QNAME);
|
|
496
|
-
function type() {
|
|
497
|
-
return TYPE.apply();
|
|
498
|
-
}
|
|
499
|
-
BitVector.type = type;
|
|
500
|
-
})(BitVector = bit_vector.BitVector || (bit_vector.BitVector = {}));
|
|
501
|
-
let builder;
|
|
502
|
-
(function (builder) {
|
|
503
|
-
function isIndexSet(tx, args) {
|
|
504
|
-
const _args = [];
|
|
505
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
506
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
507
|
-
// @ts-ignore
|
|
508
|
-
return tx.moveCall({
|
|
509
|
-
target: "0x1::bit_vector::is_index_set",
|
|
510
|
-
arguments: _args,
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
builder.isIndexSet = isIndexSet;
|
|
514
|
-
function length(tx, args) {
|
|
515
|
-
const _args = [];
|
|
516
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
517
|
-
// @ts-ignore
|
|
518
|
-
return tx.moveCall({
|
|
519
|
-
target: "0x1::bit_vector::length",
|
|
520
|
-
arguments: _args,
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
builder.length = length;
|
|
524
|
-
function longestSetSequenceStartingAt(tx, args) {
|
|
525
|
-
const _args = [];
|
|
526
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
527
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
528
|
-
// @ts-ignore
|
|
529
|
-
return tx.moveCall({
|
|
530
|
-
target: "0x1::bit_vector::longest_set_sequence_starting_at",
|
|
531
|
-
arguments: _args,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
builder.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
|
|
535
|
-
function new$(tx, args) {
|
|
536
|
-
const _args = [];
|
|
537
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
538
|
-
// @ts-ignore
|
|
539
|
-
return tx.moveCall({
|
|
540
|
-
target: "0x1::bit_vector::new",
|
|
541
|
-
arguments: _args,
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
builder.new$ = new$;
|
|
545
|
-
function set(tx, args) {
|
|
546
|
-
const _args = [];
|
|
547
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
548
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
549
|
-
// @ts-ignore
|
|
550
|
-
return tx.moveCall({
|
|
551
|
-
target: "0x1::bit_vector::set",
|
|
552
|
-
arguments: _args,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
builder.set = set;
|
|
556
|
-
function shiftLeft(tx, args) {
|
|
557
|
-
const _args = [];
|
|
558
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
559
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
560
|
-
// @ts-ignore
|
|
561
|
-
return tx.moveCall({
|
|
562
|
-
target: "0x1::bit_vector::shift_left",
|
|
563
|
-
arguments: _args,
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
builder.shiftLeft = shiftLeft;
|
|
567
|
-
function unset(tx, args) {
|
|
568
|
-
const _args = [];
|
|
569
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
570
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
571
|
-
// @ts-ignore
|
|
572
|
-
return tx.moveCall({
|
|
573
|
-
target: "0x1::bit_vector::unset",
|
|
574
|
-
arguments: _args,
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
builder.unset = unset;
|
|
578
|
-
})(builder = bit_vector.builder || (bit_vector.builder = {}));
|
|
579
|
-
let view;
|
|
580
|
-
(function (view) {
|
|
581
|
-
async function isIndexSet(client, args) {
|
|
582
|
-
const tx = new transactions_1.Transaction();
|
|
583
|
-
builder.isIndexSet(tx, args);
|
|
584
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
585
|
-
transactionBlock: tx,
|
|
586
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
587
|
-
});
|
|
588
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
589
|
-
}
|
|
590
|
-
view.isIndexSet = isIndexSet;
|
|
591
|
-
async function length(client, args) {
|
|
592
|
-
const tx = new transactions_1.Transaction();
|
|
593
|
-
builder.length(tx, args);
|
|
594
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
595
|
-
transactionBlock: tx,
|
|
596
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
597
|
-
});
|
|
598
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
599
|
-
}
|
|
600
|
-
view.length = length;
|
|
601
|
-
async function longestSetSequenceStartingAt(client, args) {
|
|
602
|
-
const tx = new transactions_1.Transaction();
|
|
603
|
-
builder.longestSetSequenceStartingAt(tx, args);
|
|
604
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
605
|
-
transactionBlock: tx,
|
|
606
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
607
|
-
});
|
|
608
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
609
|
-
}
|
|
610
|
-
view.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
|
|
611
|
-
async function new$(client, args) {
|
|
612
|
-
const tx = new transactions_1.Transaction();
|
|
613
|
-
builder.new$(tx, args);
|
|
614
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
615
|
-
transactionBlock: tx,
|
|
616
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
617
|
-
});
|
|
618
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
619
|
-
}
|
|
620
|
-
view.new$ = new$;
|
|
621
|
-
async function set(client, args) {
|
|
622
|
-
const tx = new transactions_1.Transaction();
|
|
623
|
-
builder.set(tx, args);
|
|
624
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
625
|
-
transactionBlock: tx,
|
|
626
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
627
|
-
});
|
|
628
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
629
|
-
}
|
|
630
|
-
view.set = set;
|
|
631
|
-
async function shiftLeft(client, args) {
|
|
632
|
-
const tx = new transactions_1.Transaction();
|
|
633
|
-
builder.shiftLeft(tx, args);
|
|
634
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
635
|
-
transactionBlock: tx,
|
|
636
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
637
|
-
});
|
|
638
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
639
|
-
}
|
|
640
|
-
view.shiftLeft = shiftLeft;
|
|
641
|
-
async function unset(client, args) {
|
|
642
|
-
const tx = new transactions_1.Transaction();
|
|
643
|
-
builder.unset(tx, args);
|
|
644
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
645
|
-
transactionBlock: tx,
|
|
646
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
647
|
-
});
|
|
648
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
649
|
-
}
|
|
650
|
-
view.unset = unset;
|
|
651
|
-
})(view = bit_vector.view || (bit_vector.view = {}));
|
|
652
|
-
})(bit_vector || (exports.bit_vector = bit_vector = {}));
|
|
653
|
-
var debug;
|
|
654
|
-
(function (debug) {
|
|
655
|
-
let builder;
|
|
656
|
-
(function (builder) {
|
|
657
|
-
function print(tx, args, typeArguments) {
|
|
658
|
-
const _args = [];
|
|
659
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
660
|
-
// @ts-ignore
|
|
661
|
-
return tx.moveCall({
|
|
662
|
-
target: "0x1::debug::print",
|
|
663
|
-
arguments: _args,
|
|
664
|
-
typeArguments: [
|
|
665
|
-
typeof typeArguments[0] === "string"
|
|
666
|
-
? typeArguments[0]
|
|
667
|
-
: typeArguments[0].getSignature(),
|
|
668
|
-
],
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
builder.print = print;
|
|
672
|
-
function printStackTrace(tx, args) {
|
|
673
|
-
const _args = [];
|
|
674
|
-
// @ts-ignore
|
|
675
|
-
return tx.moveCall({
|
|
676
|
-
target: "0x1::debug::print_stack_trace",
|
|
677
|
-
arguments: _args,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
builder.printStackTrace = printStackTrace;
|
|
681
|
-
})(builder = debug.builder || (debug.builder = {}));
|
|
682
|
-
let view;
|
|
683
|
-
(function (view) {
|
|
684
|
-
async function print(client, args, typeArguments) {
|
|
685
|
-
const tx = new transactions_1.Transaction();
|
|
686
|
-
builder.print(tx, args, typeArguments);
|
|
687
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
688
|
-
transactionBlock: tx,
|
|
689
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
690
|
-
});
|
|
691
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
692
|
-
}
|
|
693
|
-
view.print = print;
|
|
694
|
-
async function printStackTrace(client, args) {
|
|
695
|
-
const tx = new transactions_1.Transaction();
|
|
696
|
-
builder.printStackTrace(tx, args);
|
|
697
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
698
|
-
transactionBlock: tx,
|
|
699
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
700
|
-
});
|
|
701
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
702
|
-
}
|
|
703
|
-
view.printStackTrace = printStackTrace;
|
|
704
|
-
})(view = debug.view || (debug.view = {}));
|
|
705
|
-
})(debug || (exports.debug = debug = {}));
|
|
706
|
-
var fixed_point32;
|
|
707
|
-
(function (fixed_point32) {
|
|
708
|
-
let FixedPoint32;
|
|
709
|
-
(function (FixedPoint32) {
|
|
710
|
-
FixedPoint32.TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
|
|
711
|
-
const TYPE = new move_1.TypeDescriptor(FixedPoint32.TYPE_QNAME);
|
|
712
|
-
function type() {
|
|
713
|
-
return TYPE.apply();
|
|
714
|
-
}
|
|
715
|
-
FixedPoint32.type = type;
|
|
716
|
-
})(FixedPoint32 = fixed_point32.FixedPoint32 || (fixed_point32.FixedPoint32 = {}));
|
|
717
|
-
let builder;
|
|
718
|
-
(function (builder) {
|
|
719
|
-
function createFromRational(tx, args) {
|
|
720
|
-
const _args = [];
|
|
721
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
722
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
723
|
-
// @ts-ignore
|
|
724
|
-
return tx.moveCall({
|
|
725
|
-
target: "0x1::fixed_point32::create_from_rational",
|
|
726
|
-
arguments: _args,
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
builder.createFromRational = createFromRational;
|
|
730
|
-
function createFromRawValue(tx, args) {
|
|
731
|
-
const _args = [];
|
|
732
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
733
|
-
// @ts-ignore
|
|
734
|
-
return tx.moveCall({
|
|
735
|
-
target: "0x1::fixed_point32::create_from_raw_value",
|
|
736
|
-
arguments: _args,
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
builder.createFromRawValue = createFromRawValue;
|
|
740
|
-
function divideU64(tx, args) {
|
|
741
|
-
const _args = [];
|
|
742
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
743
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
744
|
-
// @ts-ignore
|
|
745
|
-
return tx.moveCall({
|
|
746
|
-
target: "0x1::fixed_point32::divide_u64",
|
|
747
|
-
arguments: _args,
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
builder.divideU64 = divideU64;
|
|
751
|
-
function getRawValue(tx, args) {
|
|
752
|
-
const _args = [];
|
|
753
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
754
|
-
// @ts-ignore
|
|
755
|
-
return tx.moveCall({
|
|
756
|
-
target: "0x1::fixed_point32::get_raw_value",
|
|
757
|
-
arguments: _args,
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
builder.getRawValue = getRawValue;
|
|
761
|
-
function isZero(tx, args) {
|
|
762
|
-
const _args = [];
|
|
763
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
764
|
-
// @ts-ignore
|
|
765
|
-
return tx.moveCall({
|
|
766
|
-
target: "0x1::fixed_point32::is_zero",
|
|
767
|
-
arguments: _args,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
builder.isZero = isZero;
|
|
771
|
-
function multiplyU64(tx, args) {
|
|
772
|
-
const _args = [];
|
|
773
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
774
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
775
|
-
// @ts-ignore
|
|
776
|
-
return tx.moveCall({
|
|
777
|
-
target: "0x1::fixed_point32::multiply_u64",
|
|
778
|
-
arguments: _args,
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
builder.multiplyU64 = multiplyU64;
|
|
782
|
-
})(builder = fixed_point32.builder || (fixed_point32.builder = {}));
|
|
783
|
-
let view;
|
|
784
|
-
(function (view) {
|
|
785
|
-
async function createFromRational(client, args) {
|
|
786
|
-
const tx = new transactions_1.Transaction();
|
|
787
|
-
builder.createFromRational(tx, args);
|
|
788
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
789
|
-
transactionBlock: tx,
|
|
790
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
791
|
-
});
|
|
792
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
793
|
-
}
|
|
794
|
-
view.createFromRational = createFromRational;
|
|
795
|
-
async function createFromRawValue(client, args) {
|
|
796
|
-
const tx = new transactions_1.Transaction();
|
|
797
|
-
builder.createFromRawValue(tx, args);
|
|
798
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
799
|
-
transactionBlock: tx,
|
|
800
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
801
|
-
});
|
|
802
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
803
|
-
}
|
|
804
|
-
view.createFromRawValue = createFromRawValue;
|
|
805
|
-
async function divideU64(client, args) {
|
|
806
|
-
const tx = new transactions_1.Transaction();
|
|
807
|
-
builder.divideU64(tx, args);
|
|
808
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
809
|
-
transactionBlock: tx,
|
|
810
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
811
|
-
});
|
|
812
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
813
|
-
}
|
|
814
|
-
view.divideU64 = divideU64;
|
|
815
|
-
async function getRawValue(client, args) {
|
|
816
|
-
const tx = new transactions_1.Transaction();
|
|
817
|
-
builder.getRawValue(tx, args);
|
|
818
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
819
|
-
transactionBlock: tx,
|
|
820
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
821
|
-
});
|
|
822
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
823
|
-
}
|
|
824
|
-
view.getRawValue = getRawValue;
|
|
825
|
-
async function isZero(client, args) {
|
|
826
|
-
const tx = new transactions_1.Transaction();
|
|
827
|
-
builder.isZero(tx, args);
|
|
828
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
829
|
-
transactionBlock: tx,
|
|
830
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
831
|
-
});
|
|
832
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
833
|
-
}
|
|
834
|
-
view.isZero = isZero;
|
|
835
|
-
async function multiplyU64(client, args) {
|
|
836
|
-
const tx = new transactions_1.Transaction();
|
|
837
|
-
builder.multiplyU64(tx, args);
|
|
838
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
839
|
-
transactionBlock: tx,
|
|
840
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
841
|
-
});
|
|
842
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
843
|
-
}
|
|
844
|
-
view.multiplyU64 = multiplyU64;
|
|
845
|
-
})(view = fixed_point32.view || (fixed_point32.view = {}));
|
|
846
|
-
})(fixed_point32 || (exports.fixed_point32 = fixed_point32 = {}));
|
|
847
|
-
var hash;
|
|
848
|
-
(function (hash) {
|
|
849
|
-
let builder;
|
|
850
|
-
(function (builder) {
|
|
851
|
-
function sha2256(tx, args) {
|
|
852
|
-
const _args = [];
|
|
853
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
854
|
-
// @ts-ignore
|
|
855
|
-
return tx.moveCall({
|
|
856
|
-
target: "0x1::hash::sha2_256",
|
|
857
|
-
arguments: _args,
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
builder.sha2256 = sha2256;
|
|
861
|
-
function sha3256(tx, args) {
|
|
862
|
-
const _args = [];
|
|
863
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
864
|
-
// @ts-ignore
|
|
865
|
-
return tx.moveCall({
|
|
866
|
-
target: "0x1::hash::sha3_256",
|
|
867
|
-
arguments: _args,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
builder.sha3256 = sha3256;
|
|
871
|
-
})(builder = hash.builder || (hash.builder = {}));
|
|
872
|
-
let view;
|
|
873
|
-
(function (view) {
|
|
874
|
-
async function sha2256(client, args) {
|
|
875
|
-
const tx = new transactions_1.Transaction();
|
|
876
|
-
builder.sha2256(tx, args);
|
|
877
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
878
|
-
transactionBlock: tx,
|
|
879
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
880
|
-
});
|
|
881
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
882
|
-
}
|
|
883
|
-
view.sha2256 = sha2256;
|
|
884
|
-
async function sha3256(client, args) {
|
|
885
|
-
const tx = new transactions_1.Transaction();
|
|
886
|
-
builder.sha3256(tx, args);
|
|
887
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
888
|
-
transactionBlock: tx,
|
|
889
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
890
|
-
});
|
|
891
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
892
|
-
}
|
|
893
|
-
view.sha3256 = sha3256;
|
|
894
|
-
})(view = hash.view || (hash.view = {}));
|
|
895
|
-
})(hash || (exports.hash = hash = {}));
|
|
896
|
-
var option;
|
|
897
|
-
(function (option) {
|
|
898
|
-
let Option;
|
|
899
|
-
(function (Option) {
|
|
900
|
-
Option.TYPE_QNAME = "0x1::option::Option";
|
|
901
|
-
const TYPE = new move_1.TypeDescriptor(Option.TYPE_QNAME);
|
|
902
|
-
function type(arg0 = move_1.ANY_TYPE) {
|
|
903
|
-
return TYPE.apply(arg0);
|
|
904
|
-
}
|
|
905
|
-
Option.type = type;
|
|
906
|
-
})(Option = option.Option || (option.Option = {}));
|
|
907
|
-
let builder;
|
|
908
|
-
(function (builder) {
|
|
909
|
-
function borrow(tx, args, typeArguments) {
|
|
910
|
-
const _args = [];
|
|
911
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
912
|
-
// @ts-ignore
|
|
913
|
-
return tx.moveCall({
|
|
914
|
-
target: "0x1::option::borrow",
|
|
915
|
-
arguments: _args,
|
|
916
|
-
typeArguments: [
|
|
917
|
-
typeof typeArguments[0] === "string"
|
|
918
|
-
? typeArguments[0]
|
|
919
|
-
: typeArguments[0].getSignature(),
|
|
920
|
-
],
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
builder.borrow = borrow;
|
|
924
|
-
function borrowMut(tx, args, typeArguments) {
|
|
925
|
-
const _args = [];
|
|
926
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
927
|
-
// @ts-ignore
|
|
928
|
-
return tx.moveCall({
|
|
929
|
-
target: "0x1::option::borrow_mut",
|
|
930
|
-
arguments: _args,
|
|
931
|
-
typeArguments: [
|
|
932
|
-
typeof typeArguments[0] === "string"
|
|
933
|
-
? typeArguments[0]
|
|
934
|
-
: typeArguments[0].getSignature(),
|
|
935
|
-
],
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
builder.borrowMut = borrowMut;
|
|
939
|
-
function borrowWithDefault(tx, args, typeArguments) {
|
|
940
|
-
const _args = [];
|
|
941
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
942
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[1], tx));
|
|
943
|
-
// @ts-ignore
|
|
944
|
-
return tx.moveCall({
|
|
945
|
-
target: "0x1::option::borrow_with_default",
|
|
946
|
-
arguments: _args,
|
|
947
|
-
typeArguments: [
|
|
948
|
-
typeof typeArguments[0] === "string"
|
|
949
|
-
? typeArguments[0]
|
|
950
|
-
: typeArguments[0].getSignature(),
|
|
951
|
-
],
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
builder.borrowWithDefault = borrowWithDefault;
|
|
955
|
-
function contains(tx, args, typeArguments) {
|
|
956
|
-
const _args = [];
|
|
957
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
958
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[1], tx));
|
|
959
|
-
// @ts-ignore
|
|
960
|
-
return tx.moveCall({
|
|
961
|
-
target: "0x1::option::contains",
|
|
962
|
-
arguments: _args,
|
|
963
|
-
typeArguments: [
|
|
964
|
-
typeof typeArguments[0] === "string"
|
|
965
|
-
? typeArguments[0]
|
|
966
|
-
: typeArguments[0].getSignature(),
|
|
967
|
-
],
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
builder.contains = contains;
|
|
971
|
-
function destroyNone(tx, args, typeArguments) {
|
|
972
|
-
const _args = [];
|
|
973
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
974
|
-
// @ts-ignore
|
|
975
|
-
return tx.moveCall({
|
|
976
|
-
target: "0x1::option::destroy_none",
|
|
977
|
-
arguments: _args,
|
|
978
|
-
typeArguments: [
|
|
979
|
-
typeof typeArguments[0] === "string"
|
|
980
|
-
? typeArguments[0]
|
|
981
|
-
: typeArguments[0].getSignature(),
|
|
982
|
-
],
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
builder.destroyNone = destroyNone;
|
|
986
|
-
function destroySome(tx, args, typeArguments) {
|
|
987
|
-
const _args = [];
|
|
988
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
989
|
-
// @ts-ignore
|
|
990
|
-
return tx.moveCall({
|
|
991
|
-
target: "0x1::option::destroy_some",
|
|
992
|
-
arguments: _args,
|
|
993
|
-
typeArguments: [
|
|
994
|
-
typeof typeArguments[0] === "string"
|
|
995
|
-
? typeArguments[0]
|
|
996
|
-
: typeArguments[0].getSignature(),
|
|
997
|
-
],
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
builder.destroySome = destroySome;
|
|
1001
|
-
function destroyWithDefault(tx, args, typeArguments) {
|
|
1002
|
-
const _args = [];
|
|
1003
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1004
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
1005
|
-
// @ts-ignore
|
|
1006
|
-
return tx.moveCall({
|
|
1007
|
-
target: "0x1::option::destroy_with_default",
|
|
1008
|
-
arguments: _args,
|
|
1009
|
-
typeArguments: [
|
|
1010
|
-
typeof typeArguments[0] === "string"
|
|
1011
|
-
? typeArguments[0]
|
|
1012
|
-
: typeArguments[0].getSignature(),
|
|
1013
|
-
],
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
builder.destroyWithDefault = destroyWithDefault;
|
|
1017
|
-
function extract(tx, args, typeArguments) {
|
|
1018
|
-
const _args = [];
|
|
1019
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1020
|
-
// @ts-ignore
|
|
1021
|
-
return tx.moveCall({
|
|
1022
|
-
target: "0x1::option::extract",
|
|
1023
|
-
arguments: _args,
|
|
1024
|
-
typeArguments: [
|
|
1025
|
-
typeof typeArguments[0] === "string"
|
|
1026
|
-
? typeArguments[0]
|
|
1027
|
-
: typeArguments[0].getSignature(),
|
|
1028
|
-
],
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
builder.extract = extract;
|
|
1032
|
-
function fill(tx, args, typeArguments) {
|
|
1033
|
-
const _args = [];
|
|
1034
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1035
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
1036
|
-
// @ts-ignore
|
|
1037
|
-
return tx.moveCall({
|
|
1038
|
-
target: "0x1::option::fill",
|
|
1039
|
-
arguments: _args,
|
|
1040
|
-
typeArguments: [
|
|
1041
|
-
typeof typeArguments[0] === "string"
|
|
1042
|
-
? typeArguments[0]
|
|
1043
|
-
: typeArguments[0].getSignature(),
|
|
1044
|
-
],
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
builder.fill = fill;
|
|
1048
|
-
function getWithDefault(tx, args, typeArguments) {
|
|
1049
|
-
const _args = [];
|
|
1050
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1051
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
1052
|
-
// @ts-ignore
|
|
1053
|
-
return tx.moveCall({
|
|
1054
|
-
target: "0x1::option::get_with_default",
|
|
1055
|
-
arguments: _args,
|
|
1056
|
-
typeArguments: [
|
|
1057
|
-
typeof typeArguments[0] === "string"
|
|
1058
|
-
? typeArguments[0]
|
|
1059
|
-
: typeArguments[0].getSignature(),
|
|
1060
|
-
],
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
builder.getWithDefault = getWithDefault;
|
|
1064
|
-
function isNone(tx, args, typeArguments) {
|
|
1065
|
-
const _args = [];
|
|
1066
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1067
|
-
// @ts-ignore
|
|
1068
|
-
return tx.moveCall({
|
|
1069
|
-
target: "0x1::option::is_none",
|
|
1070
|
-
arguments: _args,
|
|
1071
|
-
typeArguments: [
|
|
1072
|
-
typeof typeArguments[0] === "string"
|
|
1073
|
-
? typeArguments[0]
|
|
1074
|
-
: typeArguments[0].getSignature(),
|
|
1075
|
-
],
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
builder.isNone = isNone;
|
|
1079
|
-
function isSome(tx, args, typeArguments) {
|
|
1080
|
-
const _args = [];
|
|
1081
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1082
|
-
// @ts-ignore
|
|
1083
|
-
return tx.moveCall({
|
|
1084
|
-
target: "0x1::option::is_some",
|
|
1085
|
-
arguments: _args,
|
|
1086
|
-
typeArguments: [
|
|
1087
|
-
typeof typeArguments[0] === "string"
|
|
1088
|
-
? typeArguments[0]
|
|
1089
|
-
: typeArguments[0].getSignature(),
|
|
1090
|
-
],
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
builder.isSome = isSome;
|
|
1094
|
-
function none(tx, args, typeArguments) {
|
|
1095
|
-
const _args = [];
|
|
1096
|
-
// @ts-ignore
|
|
1097
|
-
return tx.moveCall({
|
|
1098
|
-
target: "0x1::option::none",
|
|
1099
|
-
arguments: _args,
|
|
1100
|
-
typeArguments: [
|
|
1101
|
-
typeof typeArguments[0] === "string"
|
|
1102
|
-
? typeArguments[0]
|
|
1103
|
-
: typeArguments[0].getSignature(),
|
|
1104
|
-
],
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
builder.none = none;
|
|
1108
|
-
function some(tx, args, typeArguments) {
|
|
1109
|
-
const _args = [];
|
|
1110
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1111
|
-
// @ts-ignore
|
|
1112
|
-
return tx.moveCall({
|
|
1113
|
-
target: "0x1::option::some",
|
|
1114
|
-
arguments: _args,
|
|
1115
|
-
typeArguments: [
|
|
1116
|
-
typeof typeArguments[0] === "string"
|
|
1117
|
-
? typeArguments[0]
|
|
1118
|
-
: typeArguments[0].getSignature(),
|
|
1119
|
-
],
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
builder.some = some;
|
|
1123
|
-
function swap(tx, args, typeArguments) {
|
|
1124
|
-
const _args = [];
|
|
1125
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1126
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
1127
|
-
// @ts-ignore
|
|
1128
|
-
return tx.moveCall({
|
|
1129
|
-
target: "0x1::option::swap",
|
|
1130
|
-
arguments: _args,
|
|
1131
|
-
typeArguments: [
|
|
1132
|
-
typeof typeArguments[0] === "string"
|
|
1133
|
-
? typeArguments[0]
|
|
1134
|
-
: typeArguments[0].getSignature(),
|
|
1135
|
-
],
|
|
1136
|
-
});
|
|
1137
|
-
}
|
|
1138
|
-
builder.swap = swap;
|
|
1139
|
-
function swapOrFill(tx, args, typeArguments) {
|
|
1140
|
-
const _args = [];
|
|
1141
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1142
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
1143
|
-
// @ts-ignore
|
|
1144
|
-
return tx.moveCall({
|
|
1145
|
-
target: "0x1::option::swap_or_fill",
|
|
1146
|
-
arguments: _args,
|
|
1147
|
-
typeArguments: [
|
|
1148
|
-
typeof typeArguments[0] === "string"
|
|
1149
|
-
? typeArguments[0]
|
|
1150
|
-
: typeArguments[0].getSignature(),
|
|
1151
|
-
],
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
builder.swapOrFill = swapOrFill;
|
|
1155
|
-
function toVec(tx, args, typeArguments) {
|
|
1156
|
-
const _args = [];
|
|
1157
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1158
|
-
// @ts-ignore
|
|
1159
|
-
return tx.moveCall({
|
|
1160
|
-
target: "0x1::option::to_vec",
|
|
1161
|
-
arguments: _args,
|
|
1162
|
-
typeArguments: [
|
|
1163
|
-
typeof typeArguments[0] === "string"
|
|
1164
|
-
? typeArguments[0]
|
|
1165
|
-
: typeArguments[0].getSignature(),
|
|
1166
|
-
],
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
builder.toVec = toVec;
|
|
1170
|
-
})(builder = option.builder || (option.builder = {}));
|
|
1171
|
-
let view;
|
|
1172
|
-
(function (view) {
|
|
1173
|
-
async function borrow(client, args, typeArguments) {
|
|
1174
|
-
const tx = new transactions_1.Transaction();
|
|
1175
|
-
builder.borrow(tx, args, typeArguments);
|
|
1176
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1177
|
-
transactionBlock: tx,
|
|
1178
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1179
|
-
});
|
|
1180
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1181
|
-
}
|
|
1182
|
-
view.borrow = borrow;
|
|
1183
|
-
async function borrowMut(client, args, typeArguments) {
|
|
1184
|
-
const tx = new transactions_1.Transaction();
|
|
1185
|
-
builder.borrowMut(tx, args, typeArguments);
|
|
1186
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1187
|
-
transactionBlock: tx,
|
|
1188
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1189
|
-
});
|
|
1190
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1191
|
-
}
|
|
1192
|
-
view.borrowMut = borrowMut;
|
|
1193
|
-
async function borrowWithDefault(client, args, typeArguments) {
|
|
1194
|
-
const tx = new transactions_1.Transaction();
|
|
1195
|
-
builder.borrowWithDefault(tx, args, typeArguments);
|
|
1196
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1197
|
-
transactionBlock: tx,
|
|
1198
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1199
|
-
});
|
|
1200
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1201
|
-
}
|
|
1202
|
-
view.borrowWithDefault = borrowWithDefault;
|
|
1203
|
-
async function contains(client, args, typeArguments) {
|
|
1204
|
-
const tx = new transactions_1.Transaction();
|
|
1205
|
-
builder.contains(tx, args, typeArguments);
|
|
1206
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1207
|
-
transactionBlock: tx,
|
|
1208
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1209
|
-
});
|
|
1210
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1211
|
-
}
|
|
1212
|
-
view.contains = contains;
|
|
1213
|
-
async function destroyNone(client, args, typeArguments) {
|
|
1214
|
-
const tx = new transactions_1.Transaction();
|
|
1215
|
-
builder.destroyNone(tx, args, typeArguments);
|
|
1216
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1217
|
-
transactionBlock: tx,
|
|
1218
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1219
|
-
});
|
|
1220
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1221
|
-
}
|
|
1222
|
-
view.destroyNone = destroyNone;
|
|
1223
|
-
async function destroySome(client, args, typeArguments) {
|
|
1224
|
-
const tx = new transactions_1.Transaction();
|
|
1225
|
-
builder.destroySome(tx, args, typeArguments);
|
|
1226
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1227
|
-
transactionBlock: tx,
|
|
1228
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1229
|
-
});
|
|
1230
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1231
|
-
}
|
|
1232
|
-
view.destroySome = destroySome;
|
|
1233
|
-
async function destroyWithDefault(client, args, typeArguments) {
|
|
1234
|
-
const tx = new transactions_1.Transaction();
|
|
1235
|
-
builder.destroyWithDefault(tx, args, typeArguments);
|
|
1236
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1237
|
-
transactionBlock: tx,
|
|
1238
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1239
|
-
});
|
|
1240
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1241
|
-
}
|
|
1242
|
-
view.destroyWithDefault = destroyWithDefault;
|
|
1243
|
-
async function extract(client, args, typeArguments) {
|
|
1244
|
-
const tx = new transactions_1.Transaction();
|
|
1245
|
-
builder.extract(tx, args, typeArguments);
|
|
1246
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1247
|
-
transactionBlock: tx,
|
|
1248
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1249
|
-
});
|
|
1250
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1251
|
-
}
|
|
1252
|
-
view.extract = extract;
|
|
1253
|
-
async function fill(client, args, typeArguments) {
|
|
1254
|
-
const tx = new transactions_1.Transaction();
|
|
1255
|
-
builder.fill(tx, args, typeArguments);
|
|
1256
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1257
|
-
transactionBlock: tx,
|
|
1258
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1259
|
-
});
|
|
1260
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1261
|
-
}
|
|
1262
|
-
view.fill = fill;
|
|
1263
|
-
async function getWithDefault(client, args, typeArguments) {
|
|
1264
|
-
const tx = new transactions_1.Transaction();
|
|
1265
|
-
builder.getWithDefault(tx, args, typeArguments);
|
|
1266
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1267
|
-
transactionBlock: tx,
|
|
1268
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1269
|
-
});
|
|
1270
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1271
|
-
}
|
|
1272
|
-
view.getWithDefault = getWithDefault;
|
|
1273
|
-
async function isNone(client, args, typeArguments) {
|
|
1274
|
-
const tx = new transactions_1.Transaction();
|
|
1275
|
-
builder.isNone(tx, args, typeArguments);
|
|
1276
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1277
|
-
transactionBlock: tx,
|
|
1278
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1279
|
-
});
|
|
1280
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1281
|
-
}
|
|
1282
|
-
view.isNone = isNone;
|
|
1283
|
-
async function isSome(client, args, typeArguments) {
|
|
1284
|
-
const tx = new transactions_1.Transaction();
|
|
1285
|
-
builder.isSome(tx, args, typeArguments);
|
|
1286
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1287
|
-
transactionBlock: tx,
|
|
1288
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1289
|
-
});
|
|
1290
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1291
|
-
}
|
|
1292
|
-
view.isSome = isSome;
|
|
1293
|
-
async function none(client, args, typeArguments) {
|
|
1294
|
-
const tx = new transactions_1.Transaction();
|
|
1295
|
-
builder.none(tx, args, typeArguments);
|
|
1296
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1297
|
-
transactionBlock: tx,
|
|
1298
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1299
|
-
});
|
|
1300
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1301
|
-
}
|
|
1302
|
-
view.none = none;
|
|
1303
|
-
async function some(client, args, typeArguments) {
|
|
1304
|
-
const tx = new transactions_1.Transaction();
|
|
1305
|
-
builder.some(tx, args, typeArguments);
|
|
1306
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1307
|
-
transactionBlock: tx,
|
|
1308
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1309
|
-
});
|
|
1310
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1311
|
-
}
|
|
1312
|
-
view.some = some;
|
|
1313
|
-
async function swap(client, args, typeArguments) {
|
|
1314
|
-
const tx = new transactions_1.Transaction();
|
|
1315
|
-
builder.swap(tx, args, typeArguments);
|
|
1316
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1317
|
-
transactionBlock: tx,
|
|
1318
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1319
|
-
});
|
|
1320
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1321
|
-
}
|
|
1322
|
-
view.swap = swap;
|
|
1323
|
-
async function swapOrFill(client, args, typeArguments) {
|
|
1324
|
-
const tx = new transactions_1.Transaction();
|
|
1325
|
-
builder.swapOrFill(tx, args, typeArguments);
|
|
1326
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1327
|
-
transactionBlock: tx,
|
|
1328
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1329
|
-
});
|
|
1330
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1331
|
-
}
|
|
1332
|
-
view.swapOrFill = swapOrFill;
|
|
1333
|
-
async function toVec(client, args, typeArguments) {
|
|
1334
|
-
const tx = new transactions_1.Transaction();
|
|
1335
|
-
builder.toVec(tx, args, typeArguments);
|
|
1336
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1337
|
-
transactionBlock: tx,
|
|
1338
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1339
|
-
});
|
|
1340
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1341
|
-
}
|
|
1342
|
-
view.toVec = toVec;
|
|
1343
|
-
})(view = option.view || (option.view = {}));
|
|
1344
|
-
})(option || (exports.option = option = {}));
|
|
1345
|
-
var string$;
|
|
1346
|
-
(function (string$) {
|
|
1347
|
-
let String;
|
|
1348
|
-
(function (String) {
|
|
1349
|
-
String.TYPE_QNAME = "0x1::string::String";
|
|
1350
|
-
const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
|
|
1351
|
-
function type() {
|
|
1352
|
-
return TYPE.apply();
|
|
1353
|
-
}
|
|
1354
|
-
String.type = type;
|
|
1355
|
-
})(String = string$.String || (string$.String = {}));
|
|
1356
|
-
let builder;
|
|
1357
|
-
(function (builder) {
|
|
1358
|
-
function append(tx, args) {
|
|
1359
|
-
const _args = [];
|
|
1360
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1361
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
1362
|
-
// @ts-ignore
|
|
1363
|
-
return tx.moveCall({
|
|
1364
|
-
target: "0x1::string::append",
|
|
1365
|
-
arguments: _args,
|
|
1366
|
-
});
|
|
1367
|
-
}
|
|
1368
|
-
builder.append = append;
|
|
1369
|
-
function appendUtf8(tx, args) {
|
|
1370
|
-
const _args = [];
|
|
1371
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1372
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[1], tx));
|
|
1373
|
-
// @ts-ignore
|
|
1374
|
-
return tx.moveCall({
|
|
1375
|
-
target: "0x1::string::append_utf8",
|
|
1376
|
-
arguments: _args,
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
builder.appendUtf8 = appendUtf8;
|
|
1380
|
-
function asBytes(tx, args) {
|
|
1381
|
-
const _args = [];
|
|
1382
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1383
|
-
// @ts-ignore
|
|
1384
|
-
return tx.moveCall({
|
|
1385
|
-
target: "0x1::string::as_bytes",
|
|
1386
|
-
arguments: _args,
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
builder.asBytes = asBytes;
|
|
1390
|
-
function bytes(tx, args) {
|
|
1391
|
-
const _args = [];
|
|
1392
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1393
|
-
// @ts-ignore
|
|
1394
|
-
return tx.moveCall({
|
|
1395
|
-
target: "0x1::string::bytes",
|
|
1396
|
-
arguments: _args,
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
builder.bytes = bytes;
|
|
1400
|
-
function fromAscii(tx, args) {
|
|
1401
|
-
const _args = [];
|
|
1402
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1403
|
-
// @ts-ignore
|
|
1404
|
-
return tx.moveCall({
|
|
1405
|
-
target: "0x1::string::from_ascii",
|
|
1406
|
-
arguments: _args,
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
builder.fromAscii = fromAscii;
|
|
1410
|
-
function indexOf(tx, args) {
|
|
1411
|
-
const _args = [];
|
|
1412
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1413
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[1], tx));
|
|
1414
|
-
// @ts-ignore
|
|
1415
|
-
return tx.moveCall({
|
|
1416
|
-
target: "0x1::string::index_of",
|
|
1417
|
-
arguments: _args,
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
builder.indexOf = indexOf;
|
|
1421
|
-
function insert(tx, args) {
|
|
1422
|
-
const _args = [];
|
|
1423
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1424
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
1425
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[2], tx));
|
|
1426
|
-
// @ts-ignore
|
|
1427
|
-
return tx.moveCall({
|
|
1428
|
-
target: "0x1::string::insert",
|
|
1429
|
-
arguments: _args,
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
builder.insert = insert;
|
|
1433
|
-
function intoBytes(tx, args) {
|
|
1434
|
-
const _args = [];
|
|
1435
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1436
|
-
// @ts-ignore
|
|
1437
|
-
return tx.moveCall({
|
|
1438
|
-
target: "0x1::string::into_bytes",
|
|
1439
|
-
arguments: _args,
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
builder.intoBytes = intoBytes;
|
|
1443
|
-
function isEmpty(tx, args) {
|
|
1444
|
-
const _args = [];
|
|
1445
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1446
|
-
// @ts-ignore
|
|
1447
|
-
return tx.moveCall({
|
|
1448
|
-
target: "0x1::string::is_empty",
|
|
1449
|
-
arguments: _args,
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
builder.isEmpty = isEmpty;
|
|
1453
|
-
function length(tx, args) {
|
|
1454
|
-
const _args = [];
|
|
1455
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1456
|
-
// @ts-ignore
|
|
1457
|
-
return tx.moveCall({
|
|
1458
|
-
target: "0x1::string::length",
|
|
1459
|
-
arguments: _args,
|
|
1460
|
-
});
|
|
1461
|
-
}
|
|
1462
|
-
builder.length = length;
|
|
1463
|
-
function subString(tx, args) {
|
|
1464
|
-
const _args = [];
|
|
1465
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1466
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
1467
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[2], tx));
|
|
1468
|
-
// @ts-ignore
|
|
1469
|
-
return tx.moveCall({
|
|
1470
|
-
target: "0x1::string::sub_string",
|
|
1471
|
-
arguments: _args,
|
|
1472
|
-
});
|
|
1473
|
-
}
|
|
1474
|
-
builder.subString = subString;
|
|
1475
|
-
function substring(tx, args) {
|
|
1476
|
-
const _args = [];
|
|
1477
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1478
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
1479
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[2], tx));
|
|
1480
|
-
// @ts-ignore
|
|
1481
|
-
return tx.moveCall({
|
|
1482
|
-
target: "0x1::string::substring",
|
|
1483
|
-
arguments: _args,
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
builder.substring = substring;
|
|
1487
|
-
function toAscii(tx, args) {
|
|
1488
|
-
const _args = [];
|
|
1489
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1490
|
-
// @ts-ignore
|
|
1491
|
-
return tx.moveCall({
|
|
1492
|
-
target: "0x1::string::to_ascii",
|
|
1493
|
-
arguments: _args,
|
|
1494
|
-
});
|
|
1495
|
-
}
|
|
1496
|
-
builder.toAscii = toAscii;
|
|
1497
|
-
function tryUtf8(tx, args) {
|
|
1498
|
-
const _args = [];
|
|
1499
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
1500
|
-
// @ts-ignore
|
|
1501
|
-
return tx.moveCall({
|
|
1502
|
-
target: "0x1::string::try_utf8",
|
|
1503
|
-
arguments: _args,
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
builder.tryUtf8 = tryUtf8;
|
|
1507
|
-
function utf8(tx, args) {
|
|
1508
|
-
const _args = [];
|
|
1509
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
1510
|
-
// @ts-ignore
|
|
1511
|
-
return tx.moveCall({
|
|
1512
|
-
target: "0x1::string::utf8",
|
|
1513
|
-
arguments: _args,
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
builder.utf8 = utf8;
|
|
1517
|
-
})(builder = string$.builder || (string$.builder = {}));
|
|
1518
|
-
let view;
|
|
1519
|
-
(function (view) {
|
|
1520
|
-
async function append(client, args) {
|
|
1521
|
-
const tx = new transactions_1.Transaction();
|
|
1522
|
-
builder.append(tx, args);
|
|
1523
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1524
|
-
transactionBlock: tx,
|
|
1525
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1526
|
-
});
|
|
1527
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1528
|
-
}
|
|
1529
|
-
view.append = append;
|
|
1530
|
-
async function appendUtf8(client, args) {
|
|
1531
|
-
const tx = new transactions_1.Transaction();
|
|
1532
|
-
builder.appendUtf8(tx, args);
|
|
1533
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1534
|
-
transactionBlock: tx,
|
|
1535
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1536
|
-
});
|
|
1537
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1538
|
-
}
|
|
1539
|
-
view.appendUtf8 = appendUtf8;
|
|
1540
|
-
async function asBytes(client, args) {
|
|
1541
|
-
const tx = new transactions_1.Transaction();
|
|
1542
|
-
builder.asBytes(tx, args);
|
|
1543
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1544
|
-
transactionBlock: tx,
|
|
1545
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1546
|
-
});
|
|
1547
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1548
|
-
}
|
|
1549
|
-
view.asBytes = asBytes;
|
|
1550
|
-
async function bytes(client, args) {
|
|
1551
|
-
const tx = new transactions_1.Transaction();
|
|
1552
|
-
builder.bytes(tx, args);
|
|
1553
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1554
|
-
transactionBlock: tx,
|
|
1555
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1556
|
-
});
|
|
1557
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1558
|
-
}
|
|
1559
|
-
view.bytes = bytes;
|
|
1560
|
-
async function fromAscii(client, args) {
|
|
1561
|
-
const tx = new transactions_1.Transaction();
|
|
1562
|
-
builder.fromAscii(tx, args);
|
|
1563
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1564
|
-
transactionBlock: tx,
|
|
1565
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1566
|
-
});
|
|
1567
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1568
|
-
}
|
|
1569
|
-
view.fromAscii = fromAscii;
|
|
1570
|
-
async function indexOf(client, args) {
|
|
1571
|
-
const tx = new transactions_1.Transaction();
|
|
1572
|
-
builder.indexOf(tx, args);
|
|
1573
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1574
|
-
transactionBlock: tx,
|
|
1575
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1576
|
-
});
|
|
1577
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1578
|
-
}
|
|
1579
|
-
view.indexOf = indexOf;
|
|
1580
|
-
async function insert(client, args) {
|
|
1581
|
-
const tx = new transactions_1.Transaction();
|
|
1582
|
-
builder.insert(tx, args);
|
|
1583
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1584
|
-
transactionBlock: tx,
|
|
1585
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1586
|
-
});
|
|
1587
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1588
|
-
}
|
|
1589
|
-
view.insert = insert;
|
|
1590
|
-
async function intoBytes(client, args) {
|
|
1591
|
-
const tx = new transactions_1.Transaction();
|
|
1592
|
-
builder.intoBytes(tx, args);
|
|
1593
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1594
|
-
transactionBlock: tx,
|
|
1595
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1596
|
-
});
|
|
1597
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1598
|
-
}
|
|
1599
|
-
view.intoBytes = intoBytes;
|
|
1600
|
-
async function isEmpty(client, args) {
|
|
1601
|
-
const tx = new transactions_1.Transaction();
|
|
1602
|
-
builder.isEmpty(tx, args);
|
|
1603
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1604
|
-
transactionBlock: tx,
|
|
1605
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1606
|
-
});
|
|
1607
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1608
|
-
}
|
|
1609
|
-
view.isEmpty = isEmpty;
|
|
1610
|
-
async function length(client, args) {
|
|
1611
|
-
const tx = new transactions_1.Transaction();
|
|
1612
|
-
builder.length(tx, args);
|
|
1613
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1614
|
-
transactionBlock: tx,
|
|
1615
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1616
|
-
});
|
|
1617
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1618
|
-
}
|
|
1619
|
-
view.length = length;
|
|
1620
|
-
async function subString(client, args) {
|
|
1621
|
-
const tx = new transactions_1.Transaction();
|
|
1622
|
-
builder.subString(tx, args);
|
|
1623
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1624
|
-
transactionBlock: tx,
|
|
1625
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1626
|
-
});
|
|
1627
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1628
|
-
}
|
|
1629
|
-
view.subString = subString;
|
|
1630
|
-
async function substring(client, args) {
|
|
1631
|
-
const tx = new transactions_1.Transaction();
|
|
1632
|
-
builder.substring(tx, args);
|
|
1633
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1634
|
-
transactionBlock: tx,
|
|
1635
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1636
|
-
});
|
|
1637
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1638
|
-
}
|
|
1639
|
-
view.substring = substring;
|
|
1640
|
-
async function toAscii(client, args) {
|
|
1641
|
-
const tx = new transactions_1.Transaction();
|
|
1642
|
-
builder.toAscii(tx, args);
|
|
1643
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1644
|
-
transactionBlock: tx,
|
|
1645
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1646
|
-
});
|
|
1647
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1648
|
-
}
|
|
1649
|
-
view.toAscii = toAscii;
|
|
1650
|
-
async function tryUtf8(client, args) {
|
|
1651
|
-
const tx = new transactions_1.Transaction();
|
|
1652
|
-
builder.tryUtf8(tx, args);
|
|
1653
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1654
|
-
transactionBlock: tx,
|
|
1655
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1656
|
-
});
|
|
1657
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1658
|
-
}
|
|
1659
|
-
view.tryUtf8 = tryUtf8;
|
|
1660
|
-
async function utf8(client, args) {
|
|
1661
|
-
const tx = new transactions_1.Transaction();
|
|
1662
|
-
builder.utf8(tx, args);
|
|
1663
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1664
|
-
transactionBlock: tx,
|
|
1665
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1666
|
-
});
|
|
1667
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1668
|
-
}
|
|
1669
|
-
view.utf8 = utf8;
|
|
1670
|
-
})(view = string$.view || (string$.view = {}));
|
|
1671
|
-
})(string$ || (exports.string$ = string$ = {}));
|
|
1672
|
-
var type_name;
|
|
1673
|
-
(function (type_name) {
|
|
1674
|
-
let TypeName;
|
|
1675
|
-
(function (TypeName) {
|
|
1676
|
-
TypeName.TYPE_QNAME = "0x1::type_name::TypeName";
|
|
1677
|
-
const TYPE = new move_1.TypeDescriptor(TypeName.TYPE_QNAME);
|
|
1678
|
-
function type() {
|
|
1679
|
-
return TYPE.apply();
|
|
1680
|
-
}
|
|
1681
|
-
TypeName.type = type;
|
|
1682
|
-
})(TypeName = type_name.TypeName || (type_name.TypeName = {}));
|
|
1683
|
-
let builder;
|
|
1684
|
-
(function (builder) {
|
|
1685
|
-
function borrowString(tx, args) {
|
|
1686
|
-
const _args = [];
|
|
1687
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1688
|
-
// @ts-ignore
|
|
1689
|
-
return tx.moveCall({
|
|
1690
|
-
target: "0x1::type_name::borrow_string",
|
|
1691
|
-
arguments: _args,
|
|
1692
|
-
});
|
|
1693
|
-
}
|
|
1694
|
-
builder.borrowString = borrowString;
|
|
1695
|
-
function get(tx, args, typeArguments) {
|
|
1696
|
-
const _args = [];
|
|
1697
|
-
// @ts-ignore
|
|
1698
|
-
return tx.moveCall({
|
|
1699
|
-
target: "0x1::type_name::get",
|
|
1700
|
-
arguments: _args,
|
|
1701
|
-
typeArguments: [
|
|
1702
|
-
typeof typeArguments[0] === "string"
|
|
1703
|
-
? typeArguments[0]
|
|
1704
|
-
: typeArguments[0].getSignature(),
|
|
1705
|
-
],
|
|
1706
|
-
});
|
|
1707
|
-
}
|
|
1708
|
-
builder.get = get;
|
|
1709
|
-
function getAddress(tx, args) {
|
|
1710
|
-
const _args = [];
|
|
1711
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1712
|
-
// @ts-ignore
|
|
1713
|
-
return tx.moveCall({
|
|
1714
|
-
target: "0x1::type_name::get_address",
|
|
1715
|
-
arguments: _args,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
builder.getAddress = getAddress;
|
|
1719
|
-
function getModule(tx, args) {
|
|
1720
|
-
const _args = [];
|
|
1721
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1722
|
-
// @ts-ignore
|
|
1723
|
-
return tx.moveCall({
|
|
1724
|
-
target: "0x1::type_name::get_module",
|
|
1725
|
-
arguments: _args,
|
|
1726
|
-
});
|
|
1727
|
-
}
|
|
1728
|
-
builder.getModule = getModule;
|
|
1729
|
-
function getWithOriginalIds(tx, args, typeArguments) {
|
|
1730
|
-
const _args = [];
|
|
1731
|
-
// @ts-ignore
|
|
1732
|
-
return tx.moveCall({
|
|
1733
|
-
target: "0x1::type_name::get_with_original_ids",
|
|
1734
|
-
arguments: _args,
|
|
1735
|
-
typeArguments: [
|
|
1736
|
-
typeof typeArguments[0] === "string"
|
|
1737
|
-
? typeArguments[0]
|
|
1738
|
-
: typeArguments[0].getSignature(),
|
|
1739
|
-
],
|
|
1740
|
-
});
|
|
1741
|
-
}
|
|
1742
|
-
builder.getWithOriginalIds = getWithOriginalIds;
|
|
1743
|
-
function intoString(tx, args) {
|
|
1744
|
-
const _args = [];
|
|
1745
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
1746
|
-
// @ts-ignore
|
|
1747
|
-
return tx.moveCall({
|
|
1748
|
-
target: "0x1::type_name::into_string",
|
|
1749
|
-
arguments: _args,
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
|
-
builder.intoString = intoString;
|
|
1753
|
-
function isPrimitive(tx, args) {
|
|
1754
|
-
const _args = [];
|
|
1755
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
1756
|
-
// @ts-ignore
|
|
1757
|
-
return tx.moveCall({
|
|
1758
|
-
target: "0x1::type_name::is_primitive",
|
|
1759
|
-
arguments: _args,
|
|
1760
|
-
});
|
|
1761
|
-
}
|
|
1762
|
-
builder.isPrimitive = isPrimitive;
|
|
1763
|
-
})(builder = type_name.builder || (type_name.builder = {}));
|
|
1764
|
-
let view;
|
|
1765
|
-
(function (view) {
|
|
1766
|
-
async function borrowString(client, args) {
|
|
1767
|
-
const tx = new transactions_1.Transaction();
|
|
1768
|
-
builder.borrowString(tx, args);
|
|
1769
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1770
|
-
transactionBlock: tx,
|
|
1771
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1772
|
-
});
|
|
1773
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1774
|
-
}
|
|
1775
|
-
view.borrowString = borrowString;
|
|
1776
|
-
async function get(client, args, typeArguments) {
|
|
1777
|
-
const tx = new transactions_1.Transaction();
|
|
1778
|
-
builder.get(tx, args, typeArguments);
|
|
1779
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1780
|
-
transactionBlock: tx,
|
|
1781
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1782
|
-
});
|
|
1783
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1784
|
-
}
|
|
1785
|
-
view.get = get;
|
|
1786
|
-
async function getAddress(client, args) {
|
|
1787
|
-
const tx = new transactions_1.Transaction();
|
|
1788
|
-
builder.getAddress(tx, args);
|
|
1789
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1790
|
-
transactionBlock: tx,
|
|
1791
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1792
|
-
});
|
|
1793
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1794
|
-
}
|
|
1795
|
-
view.getAddress = getAddress;
|
|
1796
|
-
async function getModule(client, args) {
|
|
1797
|
-
const tx = new transactions_1.Transaction();
|
|
1798
|
-
builder.getModule(tx, args);
|
|
1799
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1800
|
-
transactionBlock: tx,
|
|
1801
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1802
|
-
});
|
|
1803
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1804
|
-
}
|
|
1805
|
-
view.getModule = getModule;
|
|
1806
|
-
async function getWithOriginalIds(client, args, typeArguments) {
|
|
1807
|
-
const tx = new transactions_1.Transaction();
|
|
1808
|
-
builder.getWithOriginalIds(tx, args, typeArguments);
|
|
1809
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1810
|
-
transactionBlock: tx,
|
|
1811
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1812
|
-
});
|
|
1813
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1814
|
-
}
|
|
1815
|
-
view.getWithOriginalIds = getWithOriginalIds;
|
|
1816
|
-
async function intoString(client, args) {
|
|
1817
|
-
const tx = new transactions_1.Transaction();
|
|
1818
|
-
builder.intoString(tx, args);
|
|
1819
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1820
|
-
transactionBlock: tx,
|
|
1821
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1822
|
-
});
|
|
1823
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1824
|
-
}
|
|
1825
|
-
view.intoString = intoString;
|
|
1826
|
-
async function isPrimitive(client, args) {
|
|
1827
|
-
const tx = new transactions_1.Transaction();
|
|
1828
|
-
builder.isPrimitive(tx, args);
|
|
1829
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1830
|
-
transactionBlock: tx,
|
|
1831
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1832
|
-
});
|
|
1833
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1834
|
-
}
|
|
1835
|
-
view.isPrimitive = isPrimitive;
|
|
1836
|
-
})(view = type_name.view || (type_name.view = {}));
|
|
1837
|
-
})(type_name || (exports.type_name = type_name = {}));
|
|
1838
|
-
var u128;
|
|
1839
|
-
(function (u128) {
|
|
1840
|
-
let builder;
|
|
1841
|
-
(function (builder) {
|
|
1842
|
-
function bitwiseNot(tx, args) {
|
|
1843
|
-
const _args = [];
|
|
1844
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1845
|
-
// @ts-ignore
|
|
1846
|
-
return tx.moveCall({
|
|
1847
|
-
target: "0x1::u128::bitwise_not",
|
|
1848
|
-
arguments: _args,
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
builder.bitwiseNot = bitwiseNot;
|
|
1852
|
-
function diff(tx, args) {
|
|
1853
|
-
const _args = [];
|
|
1854
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1855
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[1], tx));
|
|
1856
|
-
// @ts-ignore
|
|
1857
|
-
return tx.moveCall({
|
|
1858
|
-
target: "0x1::u128::diff",
|
|
1859
|
-
arguments: _args,
|
|
1860
|
-
});
|
|
1861
|
-
}
|
|
1862
|
-
builder.diff = diff;
|
|
1863
|
-
function divideAndRoundUp(tx, args) {
|
|
1864
|
-
const _args = [];
|
|
1865
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1866
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[1], tx));
|
|
1867
|
-
// @ts-ignore
|
|
1868
|
-
return tx.moveCall({
|
|
1869
|
-
target: "0x1::u128::divide_and_round_up",
|
|
1870
|
-
arguments: _args,
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
builder.divideAndRoundUp = divideAndRoundUp;
|
|
1874
|
-
function max(tx, args) {
|
|
1875
|
-
const _args = [];
|
|
1876
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1877
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[1], tx));
|
|
1878
|
-
// @ts-ignore
|
|
1879
|
-
return tx.moveCall({
|
|
1880
|
-
target: "0x1::u128::max",
|
|
1881
|
-
arguments: _args,
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
builder.max = max;
|
|
1885
|
-
function min(tx, args) {
|
|
1886
|
-
const _args = [];
|
|
1887
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1888
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[1], tx));
|
|
1889
|
-
// @ts-ignore
|
|
1890
|
-
return tx.moveCall({
|
|
1891
|
-
target: "0x1::u128::min",
|
|
1892
|
-
arguments: _args,
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
builder.min = min;
|
|
1896
|
-
function pow(tx, args) {
|
|
1897
|
-
const _args = [];
|
|
1898
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1899
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
1900
|
-
// @ts-ignore
|
|
1901
|
-
return tx.moveCall({
|
|
1902
|
-
target: "0x1::u128::pow",
|
|
1903
|
-
arguments: _args,
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
builder.pow = pow;
|
|
1907
|
-
function sqrt(tx, args) {
|
|
1908
|
-
const _args = [];
|
|
1909
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1910
|
-
// @ts-ignore
|
|
1911
|
-
return tx.moveCall({
|
|
1912
|
-
target: "0x1::u128::sqrt",
|
|
1913
|
-
arguments: _args,
|
|
1914
|
-
});
|
|
1915
|
-
}
|
|
1916
|
-
builder.sqrt = sqrt;
|
|
1917
|
-
function toString(tx, args) {
|
|
1918
|
-
const _args = [];
|
|
1919
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1920
|
-
// @ts-ignore
|
|
1921
|
-
return tx.moveCall({
|
|
1922
|
-
target: "0x1::u128::to_string",
|
|
1923
|
-
arguments: _args,
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1926
|
-
builder.toString = toString;
|
|
1927
|
-
function tryAsU16(tx, args) {
|
|
1928
|
-
const _args = [];
|
|
1929
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1930
|
-
// @ts-ignore
|
|
1931
|
-
return tx.moveCall({
|
|
1932
|
-
target: "0x1::u128::try_as_u16",
|
|
1933
|
-
arguments: _args,
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
builder.tryAsU16 = tryAsU16;
|
|
1937
|
-
function tryAsU32(tx, args) {
|
|
1938
|
-
const _args = [];
|
|
1939
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1940
|
-
// @ts-ignore
|
|
1941
|
-
return tx.moveCall({
|
|
1942
|
-
target: "0x1::u128::try_as_u32",
|
|
1943
|
-
arguments: _args,
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
builder.tryAsU32 = tryAsU32;
|
|
1947
|
-
function tryAsU64(tx, args) {
|
|
1948
|
-
const _args = [];
|
|
1949
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1950
|
-
// @ts-ignore
|
|
1951
|
-
return tx.moveCall({
|
|
1952
|
-
target: "0x1::u128::try_as_u64",
|
|
1953
|
-
arguments: _args,
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1956
|
-
builder.tryAsU64 = tryAsU64;
|
|
1957
|
-
function tryAsU8(tx, args) {
|
|
1958
|
-
const _args = [];
|
|
1959
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
1960
|
-
// @ts-ignore
|
|
1961
|
-
return tx.moveCall({
|
|
1962
|
-
target: "0x1::u128::try_as_u8",
|
|
1963
|
-
arguments: _args,
|
|
1964
|
-
});
|
|
1965
|
-
}
|
|
1966
|
-
builder.tryAsU8 = tryAsU8;
|
|
1967
|
-
})(builder = u128.builder || (u128.builder = {}));
|
|
1968
|
-
let view;
|
|
1969
|
-
(function (view) {
|
|
1970
|
-
async function bitwiseNot(client, args) {
|
|
1971
|
-
const tx = new transactions_1.Transaction();
|
|
1972
|
-
builder.bitwiseNot(tx, args);
|
|
1973
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1974
|
-
transactionBlock: tx,
|
|
1975
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1976
|
-
});
|
|
1977
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1978
|
-
}
|
|
1979
|
-
view.bitwiseNot = bitwiseNot;
|
|
1980
|
-
async function diff(client, args) {
|
|
1981
|
-
const tx = new transactions_1.Transaction();
|
|
1982
|
-
builder.diff(tx, args);
|
|
1983
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1984
|
-
transactionBlock: tx,
|
|
1985
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1986
|
-
});
|
|
1987
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1988
|
-
}
|
|
1989
|
-
view.diff = diff;
|
|
1990
|
-
async function divideAndRoundUp(client, args) {
|
|
1991
|
-
const tx = new transactions_1.Transaction();
|
|
1992
|
-
builder.divideAndRoundUp(tx, args);
|
|
1993
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
1994
|
-
transactionBlock: tx,
|
|
1995
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
1996
|
-
});
|
|
1997
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1998
|
-
}
|
|
1999
|
-
view.divideAndRoundUp = divideAndRoundUp;
|
|
2000
|
-
async function max(client, args) {
|
|
2001
|
-
const tx = new transactions_1.Transaction();
|
|
2002
|
-
builder.max(tx, args);
|
|
2003
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2004
|
-
transactionBlock: tx,
|
|
2005
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2006
|
-
});
|
|
2007
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2008
|
-
}
|
|
2009
|
-
view.max = max;
|
|
2010
|
-
async function min(client, args) {
|
|
2011
|
-
const tx = new transactions_1.Transaction();
|
|
2012
|
-
builder.min(tx, args);
|
|
2013
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2014
|
-
transactionBlock: tx,
|
|
2015
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2016
|
-
});
|
|
2017
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2018
|
-
}
|
|
2019
|
-
view.min = min;
|
|
2020
|
-
async function pow(client, args) {
|
|
2021
|
-
const tx = new transactions_1.Transaction();
|
|
2022
|
-
builder.pow(tx, args);
|
|
2023
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2024
|
-
transactionBlock: tx,
|
|
2025
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2026
|
-
});
|
|
2027
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2028
|
-
}
|
|
2029
|
-
view.pow = pow;
|
|
2030
|
-
async function sqrt(client, args) {
|
|
2031
|
-
const tx = new transactions_1.Transaction();
|
|
2032
|
-
builder.sqrt(tx, args);
|
|
2033
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2034
|
-
transactionBlock: tx,
|
|
2035
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2036
|
-
});
|
|
2037
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2038
|
-
}
|
|
2039
|
-
view.sqrt = sqrt;
|
|
2040
|
-
async function toString(client, args) {
|
|
2041
|
-
const tx = new transactions_1.Transaction();
|
|
2042
|
-
builder.toString(tx, args);
|
|
2043
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2044
|
-
transactionBlock: tx,
|
|
2045
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2046
|
-
});
|
|
2047
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2048
|
-
}
|
|
2049
|
-
view.toString = toString;
|
|
2050
|
-
async function tryAsU16(client, args) {
|
|
2051
|
-
const tx = new transactions_1.Transaction();
|
|
2052
|
-
builder.tryAsU16(tx, args);
|
|
2053
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2054
|
-
transactionBlock: tx,
|
|
2055
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2056
|
-
});
|
|
2057
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2058
|
-
}
|
|
2059
|
-
view.tryAsU16 = tryAsU16;
|
|
2060
|
-
async function tryAsU32(client, args) {
|
|
2061
|
-
const tx = new transactions_1.Transaction();
|
|
2062
|
-
builder.tryAsU32(tx, args);
|
|
2063
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2064
|
-
transactionBlock: tx,
|
|
2065
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2066
|
-
});
|
|
2067
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2068
|
-
}
|
|
2069
|
-
view.tryAsU32 = tryAsU32;
|
|
2070
|
-
async function tryAsU64(client, args) {
|
|
2071
|
-
const tx = new transactions_1.Transaction();
|
|
2072
|
-
builder.tryAsU64(tx, args);
|
|
2073
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2074
|
-
transactionBlock: tx,
|
|
2075
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2076
|
-
});
|
|
2077
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2078
|
-
}
|
|
2079
|
-
view.tryAsU64 = tryAsU64;
|
|
2080
|
-
async function tryAsU8(client, args) {
|
|
2081
|
-
const tx = new transactions_1.Transaction();
|
|
2082
|
-
builder.tryAsU8(tx, args);
|
|
2083
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2084
|
-
transactionBlock: tx,
|
|
2085
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2086
|
-
});
|
|
2087
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2088
|
-
}
|
|
2089
|
-
view.tryAsU8 = tryAsU8;
|
|
2090
|
-
})(view = u128.view || (u128.view = {}));
|
|
2091
|
-
})(u128 || (exports.u128 = u128 = {}));
|
|
2092
|
-
var u16;
|
|
2093
|
-
(function (u16) {
|
|
2094
|
-
let builder;
|
|
2095
|
-
(function (builder) {
|
|
2096
|
-
function bitwiseNot(tx, args) {
|
|
2097
|
-
const _args = [];
|
|
2098
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2099
|
-
// @ts-ignore
|
|
2100
|
-
return tx.moveCall({
|
|
2101
|
-
target: "0x1::u16::bitwise_not",
|
|
2102
|
-
arguments: _args,
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
builder.bitwiseNot = bitwiseNot;
|
|
2106
|
-
function diff(tx, args) {
|
|
2107
|
-
const _args = [];
|
|
2108
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2109
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[1], tx));
|
|
2110
|
-
// @ts-ignore
|
|
2111
|
-
return tx.moveCall({
|
|
2112
|
-
target: "0x1::u16::diff",
|
|
2113
|
-
arguments: _args,
|
|
2114
|
-
});
|
|
2115
|
-
}
|
|
2116
|
-
builder.diff = diff;
|
|
2117
|
-
function divideAndRoundUp(tx, args) {
|
|
2118
|
-
const _args = [];
|
|
2119
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2120
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[1], tx));
|
|
2121
|
-
// @ts-ignore
|
|
2122
|
-
return tx.moveCall({
|
|
2123
|
-
target: "0x1::u16::divide_and_round_up",
|
|
2124
|
-
arguments: _args,
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
builder.divideAndRoundUp = divideAndRoundUp;
|
|
2128
|
-
function max(tx, args) {
|
|
2129
|
-
const _args = [];
|
|
2130
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2131
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[1], tx));
|
|
2132
|
-
// @ts-ignore
|
|
2133
|
-
return tx.moveCall({
|
|
2134
|
-
target: "0x1::u16::max",
|
|
2135
|
-
arguments: _args,
|
|
2136
|
-
});
|
|
2137
|
-
}
|
|
2138
|
-
builder.max = max;
|
|
2139
|
-
function min(tx, args) {
|
|
2140
|
-
const _args = [];
|
|
2141
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2142
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[1], tx));
|
|
2143
|
-
// @ts-ignore
|
|
2144
|
-
return tx.moveCall({
|
|
2145
|
-
target: "0x1::u16::min",
|
|
2146
|
-
arguments: _args,
|
|
2147
|
-
});
|
|
2148
|
-
}
|
|
2149
|
-
builder.min = min;
|
|
2150
|
-
function pow(tx, args) {
|
|
2151
|
-
const _args = [];
|
|
2152
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2153
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
2154
|
-
// @ts-ignore
|
|
2155
|
-
return tx.moveCall({
|
|
2156
|
-
target: "0x1::u16::pow",
|
|
2157
|
-
arguments: _args,
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
builder.pow = pow;
|
|
2161
|
-
function sqrt(tx, args) {
|
|
2162
|
-
const _args = [];
|
|
2163
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2164
|
-
// @ts-ignore
|
|
2165
|
-
return tx.moveCall({
|
|
2166
|
-
target: "0x1::u16::sqrt",
|
|
2167
|
-
arguments: _args,
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
builder.sqrt = sqrt;
|
|
2171
|
-
function toString(tx, args) {
|
|
2172
|
-
const _args = [];
|
|
2173
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2174
|
-
// @ts-ignore
|
|
2175
|
-
return tx.moveCall({
|
|
2176
|
-
target: "0x1::u16::to_string",
|
|
2177
|
-
arguments: _args,
|
|
2178
|
-
});
|
|
2179
|
-
}
|
|
2180
|
-
builder.toString = toString;
|
|
2181
|
-
function tryAsU8(tx, args) {
|
|
2182
|
-
const _args = [];
|
|
2183
|
-
_args.push((0, iota_3.transactionArgumentOrPureU16)(args[0], tx));
|
|
2184
|
-
// @ts-ignore
|
|
2185
|
-
return tx.moveCall({
|
|
2186
|
-
target: "0x1::u16::try_as_u8",
|
|
2187
|
-
arguments: _args,
|
|
2188
|
-
});
|
|
2189
|
-
}
|
|
2190
|
-
builder.tryAsU8 = tryAsU8;
|
|
2191
|
-
})(builder = u16.builder || (u16.builder = {}));
|
|
2192
|
-
let view;
|
|
2193
|
-
(function (view) {
|
|
2194
|
-
async function bitwiseNot(client, args) {
|
|
2195
|
-
const tx = new transactions_1.Transaction();
|
|
2196
|
-
builder.bitwiseNot(tx, args);
|
|
2197
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2198
|
-
transactionBlock: tx,
|
|
2199
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2200
|
-
});
|
|
2201
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2202
|
-
}
|
|
2203
|
-
view.bitwiseNot = bitwiseNot;
|
|
2204
|
-
async function diff(client, args) {
|
|
2205
|
-
const tx = new transactions_1.Transaction();
|
|
2206
|
-
builder.diff(tx, args);
|
|
2207
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2208
|
-
transactionBlock: tx,
|
|
2209
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2210
|
-
});
|
|
2211
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2212
|
-
}
|
|
2213
|
-
view.diff = diff;
|
|
2214
|
-
async function divideAndRoundUp(client, args) {
|
|
2215
|
-
const tx = new transactions_1.Transaction();
|
|
2216
|
-
builder.divideAndRoundUp(tx, args);
|
|
2217
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2218
|
-
transactionBlock: tx,
|
|
2219
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2220
|
-
});
|
|
2221
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2222
|
-
}
|
|
2223
|
-
view.divideAndRoundUp = divideAndRoundUp;
|
|
2224
|
-
async function max(client, args) {
|
|
2225
|
-
const tx = new transactions_1.Transaction();
|
|
2226
|
-
builder.max(tx, args);
|
|
2227
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2228
|
-
transactionBlock: tx,
|
|
2229
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2230
|
-
});
|
|
2231
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2232
|
-
}
|
|
2233
|
-
view.max = max;
|
|
2234
|
-
async function min(client, args) {
|
|
2235
|
-
const tx = new transactions_1.Transaction();
|
|
2236
|
-
builder.min(tx, args);
|
|
2237
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2238
|
-
transactionBlock: tx,
|
|
2239
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2240
|
-
});
|
|
2241
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2242
|
-
}
|
|
2243
|
-
view.min = min;
|
|
2244
|
-
async function pow(client, args) {
|
|
2245
|
-
const tx = new transactions_1.Transaction();
|
|
2246
|
-
builder.pow(tx, args);
|
|
2247
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2248
|
-
transactionBlock: tx,
|
|
2249
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2250
|
-
});
|
|
2251
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2252
|
-
}
|
|
2253
|
-
view.pow = pow;
|
|
2254
|
-
async function sqrt(client, args) {
|
|
2255
|
-
const tx = new transactions_1.Transaction();
|
|
2256
|
-
builder.sqrt(tx, args);
|
|
2257
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2258
|
-
transactionBlock: tx,
|
|
2259
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2260
|
-
});
|
|
2261
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2262
|
-
}
|
|
2263
|
-
view.sqrt = sqrt;
|
|
2264
|
-
async function toString(client, args) {
|
|
2265
|
-
const tx = new transactions_1.Transaction();
|
|
2266
|
-
builder.toString(tx, args);
|
|
2267
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2268
|
-
transactionBlock: tx,
|
|
2269
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2270
|
-
});
|
|
2271
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2272
|
-
}
|
|
2273
|
-
view.toString = toString;
|
|
2274
|
-
async function tryAsU8(client, args) {
|
|
2275
|
-
const tx = new transactions_1.Transaction();
|
|
2276
|
-
builder.tryAsU8(tx, args);
|
|
2277
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2278
|
-
transactionBlock: tx,
|
|
2279
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2280
|
-
});
|
|
2281
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2282
|
-
}
|
|
2283
|
-
view.tryAsU8 = tryAsU8;
|
|
2284
|
-
})(view = u16.view || (u16.view = {}));
|
|
2285
|
-
})(u16 || (exports.u16 = u16 = {}));
|
|
2286
|
-
var u256;
|
|
2287
|
-
(function (u256) {
|
|
2288
|
-
let builder;
|
|
2289
|
-
(function (builder) {
|
|
2290
|
-
function bitwiseNot(tx, args) {
|
|
2291
|
-
const _args = [];
|
|
2292
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2293
|
-
// @ts-ignore
|
|
2294
|
-
return tx.moveCall({
|
|
2295
|
-
target: "0x1::u256::bitwise_not",
|
|
2296
|
-
arguments: _args,
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
builder.bitwiseNot = bitwiseNot;
|
|
2300
|
-
function diff(tx, args) {
|
|
2301
|
-
const _args = [];
|
|
2302
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2303
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[1], tx));
|
|
2304
|
-
// @ts-ignore
|
|
2305
|
-
return tx.moveCall({
|
|
2306
|
-
target: "0x1::u256::diff",
|
|
2307
|
-
arguments: _args,
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
builder.diff = diff;
|
|
2311
|
-
function divideAndRoundUp(tx, args) {
|
|
2312
|
-
const _args = [];
|
|
2313
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2314
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[1], tx));
|
|
2315
|
-
// @ts-ignore
|
|
2316
|
-
return tx.moveCall({
|
|
2317
|
-
target: "0x1::u256::divide_and_round_up",
|
|
2318
|
-
arguments: _args,
|
|
2319
|
-
});
|
|
2320
|
-
}
|
|
2321
|
-
builder.divideAndRoundUp = divideAndRoundUp;
|
|
2322
|
-
function max(tx, args) {
|
|
2323
|
-
const _args = [];
|
|
2324
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2325
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[1], tx));
|
|
2326
|
-
// @ts-ignore
|
|
2327
|
-
return tx.moveCall({
|
|
2328
|
-
target: "0x1::u256::max",
|
|
2329
|
-
arguments: _args,
|
|
2330
|
-
});
|
|
2331
|
-
}
|
|
2332
|
-
builder.max = max;
|
|
2333
|
-
function min(tx, args) {
|
|
2334
|
-
const _args = [];
|
|
2335
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2336
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[1], tx));
|
|
2337
|
-
// @ts-ignore
|
|
2338
|
-
return tx.moveCall({
|
|
2339
|
-
target: "0x1::u256::min",
|
|
2340
|
-
arguments: _args,
|
|
2341
|
-
});
|
|
2342
|
-
}
|
|
2343
|
-
builder.min = min;
|
|
2344
|
-
function pow(tx, args) {
|
|
2345
|
-
const _args = [];
|
|
2346
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2347
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
2348
|
-
// @ts-ignore
|
|
2349
|
-
return tx.moveCall({
|
|
2350
|
-
target: "0x1::u256::pow",
|
|
2351
|
-
arguments: _args,
|
|
2352
|
-
});
|
|
2353
|
-
}
|
|
2354
|
-
builder.pow = pow;
|
|
2355
|
-
function toString(tx, args) {
|
|
2356
|
-
const _args = [];
|
|
2357
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2358
|
-
// @ts-ignore
|
|
2359
|
-
return tx.moveCall({
|
|
2360
|
-
target: "0x1::u256::to_string",
|
|
2361
|
-
arguments: _args,
|
|
2362
|
-
});
|
|
2363
|
-
}
|
|
2364
|
-
builder.toString = toString;
|
|
2365
|
-
function tryAsU128(tx, args) {
|
|
2366
|
-
const _args = [];
|
|
2367
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2368
|
-
// @ts-ignore
|
|
2369
|
-
return tx.moveCall({
|
|
2370
|
-
target: "0x1::u256::try_as_u128",
|
|
2371
|
-
arguments: _args,
|
|
2372
|
-
});
|
|
2373
|
-
}
|
|
2374
|
-
builder.tryAsU128 = tryAsU128;
|
|
2375
|
-
function tryAsU16(tx, args) {
|
|
2376
|
-
const _args = [];
|
|
2377
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2378
|
-
// @ts-ignore
|
|
2379
|
-
return tx.moveCall({
|
|
2380
|
-
target: "0x1::u256::try_as_u16",
|
|
2381
|
-
arguments: _args,
|
|
2382
|
-
});
|
|
2383
|
-
}
|
|
2384
|
-
builder.tryAsU16 = tryAsU16;
|
|
2385
|
-
function tryAsU32(tx, args) {
|
|
2386
|
-
const _args = [];
|
|
2387
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2388
|
-
// @ts-ignore
|
|
2389
|
-
return tx.moveCall({
|
|
2390
|
-
target: "0x1::u256::try_as_u32",
|
|
2391
|
-
arguments: _args,
|
|
2392
|
-
});
|
|
2393
|
-
}
|
|
2394
|
-
builder.tryAsU32 = tryAsU32;
|
|
2395
|
-
function tryAsU64(tx, args) {
|
|
2396
|
-
const _args = [];
|
|
2397
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2398
|
-
// @ts-ignore
|
|
2399
|
-
return tx.moveCall({
|
|
2400
|
-
target: "0x1::u256::try_as_u64",
|
|
2401
|
-
arguments: _args,
|
|
2402
|
-
});
|
|
2403
|
-
}
|
|
2404
|
-
builder.tryAsU64 = tryAsU64;
|
|
2405
|
-
function tryAsU8(tx, args) {
|
|
2406
|
-
const _args = [];
|
|
2407
|
-
_args.push((0, iota_3.transactionArgumentOrPureU256)(args[0], tx));
|
|
2408
|
-
// @ts-ignore
|
|
2409
|
-
return tx.moveCall({
|
|
2410
|
-
target: "0x1::u256::try_as_u8",
|
|
2411
|
-
arguments: _args,
|
|
2412
|
-
});
|
|
2413
|
-
}
|
|
2414
|
-
builder.tryAsU8 = tryAsU8;
|
|
2415
|
-
})(builder = u256.builder || (u256.builder = {}));
|
|
2416
|
-
let view;
|
|
2417
|
-
(function (view) {
|
|
2418
|
-
async function bitwiseNot(client, args) {
|
|
2419
|
-
const tx = new transactions_1.Transaction();
|
|
2420
|
-
builder.bitwiseNot(tx, args);
|
|
2421
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2422
|
-
transactionBlock: tx,
|
|
2423
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2424
|
-
});
|
|
2425
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2426
|
-
}
|
|
2427
|
-
view.bitwiseNot = bitwiseNot;
|
|
2428
|
-
async function diff(client, args) {
|
|
2429
|
-
const tx = new transactions_1.Transaction();
|
|
2430
|
-
builder.diff(tx, args);
|
|
2431
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2432
|
-
transactionBlock: tx,
|
|
2433
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2434
|
-
});
|
|
2435
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2436
|
-
}
|
|
2437
|
-
view.diff = diff;
|
|
2438
|
-
async function divideAndRoundUp(client, args) {
|
|
2439
|
-
const tx = new transactions_1.Transaction();
|
|
2440
|
-
builder.divideAndRoundUp(tx, args);
|
|
2441
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2442
|
-
transactionBlock: tx,
|
|
2443
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2444
|
-
});
|
|
2445
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2446
|
-
}
|
|
2447
|
-
view.divideAndRoundUp = divideAndRoundUp;
|
|
2448
|
-
async function max(client, args) {
|
|
2449
|
-
const tx = new transactions_1.Transaction();
|
|
2450
|
-
builder.max(tx, args);
|
|
2451
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2452
|
-
transactionBlock: tx,
|
|
2453
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2454
|
-
});
|
|
2455
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2456
|
-
}
|
|
2457
|
-
view.max = max;
|
|
2458
|
-
async function min(client, args) {
|
|
2459
|
-
const tx = new transactions_1.Transaction();
|
|
2460
|
-
builder.min(tx, args);
|
|
2461
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2462
|
-
transactionBlock: tx,
|
|
2463
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2464
|
-
});
|
|
2465
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2466
|
-
}
|
|
2467
|
-
view.min = min;
|
|
2468
|
-
async function pow(client, args) {
|
|
2469
|
-
const tx = new transactions_1.Transaction();
|
|
2470
|
-
builder.pow(tx, args);
|
|
2471
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2472
|
-
transactionBlock: tx,
|
|
2473
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2474
|
-
});
|
|
2475
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2476
|
-
}
|
|
2477
|
-
view.pow = pow;
|
|
2478
|
-
async function toString(client, args) {
|
|
2479
|
-
const tx = new transactions_1.Transaction();
|
|
2480
|
-
builder.toString(tx, args);
|
|
2481
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2482
|
-
transactionBlock: tx,
|
|
2483
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2484
|
-
});
|
|
2485
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2486
|
-
}
|
|
2487
|
-
view.toString = toString;
|
|
2488
|
-
async function tryAsU128(client, args) {
|
|
2489
|
-
const tx = new transactions_1.Transaction();
|
|
2490
|
-
builder.tryAsU128(tx, args);
|
|
2491
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2492
|
-
transactionBlock: tx,
|
|
2493
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2494
|
-
});
|
|
2495
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2496
|
-
}
|
|
2497
|
-
view.tryAsU128 = tryAsU128;
|
|
2498
|
-
async function tryAsU16(client, args) {
|
|
2499
|
-
const tx = new transactions_1.Transaction();
|
|
2500
|
-
builder.tryAsU16(tx, args);
|
|
2501
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2502
|
-
transactionBlock: tx,
|
|
2503
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2504
|
-
});
|
|
2505
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2506
|
-
}
|
|
2507
|
-
view.tryAsU16 = tryAsU16;
|
|
2508
|
-
async function tryAsU32(client, args) {
|
|
2509
|
-
const tx = new transactions_1.Transaction();
|
|
2510
|
-
builder.tryAsU32(tx, args);
|
|
2511
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2512
|
-
transactionBlock: tx,
|
|
2513
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2514
|
-
});
|
|
2515
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2516
|
-
}
|
|
2517
|
-
view.tryAsU32 = tryAsU32;
|
|
2518
|
-
async function tryAsU64(client, args) {
|
|
2519
|
-
const tx = new transactions_1.Transaction();
|
|
2520
|
-
builder.tryAsU64(tx, args);
|
|
2521
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2522
|
-
transactionBlock: tx,
|
|
2523
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2524
|
-
});
|
|
2525
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2526
|
-
}
|
|
2527
|
-
view.tryAsU64 = tryAsU64;
|
|
2528
|
-
async function tryAsU8(client, args) {
|
|
2529
|
-
const tx = new transactions_1.Transaction();
|
|
2530
|
-
builder.tryAsU8(tx, args);
|
|
2531
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2532
|
-
transactionBlock: tx,
|
|
2533
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2534
|
-
});
|
|
2535
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2536
|
-
}
|
|
2537
|
-
view.tryAsU8 = tryAsU8;
|
|
2538
|
-
})(view = u256.view || (u256.view = {}));
|
|
2539
|
-
})(u256 || (exports.u256 = u256 = {}));
|
|
2540
|
-
var u32;
|
|
2541
|
-
(function (u32) {
|
|
2542
|
-
let builder;
|
|
2543
|
-
(function (builder) {
|
|
2544
|
-
function bitwiseNot(tx, args) {
|
|
2545
|
-
const _args = [];
|
|
2546
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2547
|
-
// @ts-ignore
|
|
2548
|
-
return tx.moveCall({
|
|
2549
|
-
target: "0x1::u32::bitwise_not",
|
|
2550
|
-
arguments: _args,
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
builder.bitwiseNot = bitwiseNot;
|
|
2554
|
-
function diff(tx, args) {
|
|
2555
|
-
const _args = [];
|
|
2556
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2557
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[1], tx));
|
|
2558
|
-
// @ts-ignore
|
|
2559
|
-
return tx.moveCall({
|
|
2560
|
-
target: "0x1::u32::diff",
|
|
2561
|
-
arguments: _args,
|
|
2562
|
-
});
|
|
2563
|
-
}
|
|
2564
|
-
builder.diff = diff;
|
|
2565
|
-
function divideAndRoundUp(tx, args) {
|
|
2566
|
-
const _args = [];
|
|
2567
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2568
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[1], tx));
|
|
2569
|
-
// @ts-ignore
|
|
2570
|
-
return tx.moveCall({
|
|
2571
|
-
target: "0x1::u32::divide_and_round_up",
|
|
2572
|
-
arguments: _args,
|
|
2573
|
-
});
|
|
2574
|
-
}
|
|
2575
|
-
builder.divideAndRoundUp = divideAndRoundUp;
|
|
2576
|
-
function max(tx, args) {
|
|
2577
|
-
const _args = [];
|
|
2578
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2579
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[1], tx));
|
|
2580
|
-
// @ts-ignore
|
|
2581
|
-
return tx.moveCall({
|
|
2582
|
-
target: "0x1::u32::max",
|
|
2583
|
-
arguments: _args,
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
builder.max = max;
|
|
2587
|
-
function min(tx, args) {
|
|
2588
|
-
const _args = [];
|
|
2589
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2590
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[1], tx));
|
|
2591
|
-
// @ts-ignore
|
|
2592
|
-
return tx.moveCall({
|
|
2593
|
-
target: "0x1::u32::min",
|
|
2594
|
-
arguments: _args,
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
builder.min = min;
|
|
2598
|
-
function pow(tx, args) {
|
|
2599
|
-
const _args = [];
|
|
2600
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2601
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
2602
|
-
// @ts-ignore
|
|
2603
|
-
return tx.moveCall({
|
|
2604
|
-
target: "0x1::u32::pow",
|
|
2605
|
-
arguments: _args,
|
|
2606
|
-
});
|
|
2607
|
-
}
|
|
2608
|
-
builder.pow = pow;
|
|
2609
|
-
function sqrt(tx, args) {
|
|
2610
|
-
const _args = [];
|
|
2611
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2612
|
-
// @ts-ignore
|
|
2613
|
-
return tx.moveCall({
|
|
2614
|
-
target: "0x1::u32::sqrt",
|
|
2615
|
-
arguments: _args,
|
|
2616
|
-
});
|
|
2617
|
-
}
|
|
2618
|
-
builder.sqrt = sqrt;
|
|
2619
|
-
function toString(tx, args) {
|
|
2620
|
-
const _args = [];
|
|
2621
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2622
|
-
// @ts-ignore
|
|
2623
|
-
return tx.moveCall({
|
|
2624
|
-
target: "0x1::u32::to_string",
|
|
2625
|
-
arguments: _args,
|
|
2626
|
-
});
|
|
2627
|
-
}
|
|
2628
|
-
builder.toString = toString;
|
|
2629
|
-
function tryAsU16(tx, args) {
|
|
2630
|
-
const _args = [];
|
|
2631
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2632
|
-
// @ts-ignore
|
|
2633
|
-
return tx.moveCall({
|
|
2634
|
-
target: "0x1::u32::try_as_u16",
|
|
2635
|
-
arguments: _args,
|
|
2636
|
-
});
|
|
2637
|
-
}
|
|
2638
|
-
builder.tryAsU16 = tryAsU16;
|
|
2639
|
-
function tryAsU8(tx, args) {
|
|
2640
|
-
const _args = [];
|
|
2641
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
2642
|
-
// @ts-ignore
|
|
2643
|
-
return tx.moveCall({
|
|
2644
|
-
target: "0x1::u32::try_as_u8",
|
|
2645
|
-
arguments: _args,
|
|
2646
|
-
});
|
|
2647
|
-
}
|
|
2648
|
-
builder.tryAsU8 = tryAsU8;
|
|
2649
|
-
})(builder = u32.builder || (u32.builder = {}));
|
|
2650
|
-
let view;
|
|
2651
|
-
(function (view) {
|
|
2652
|
-
async function bitwiseNot(client, args) {
|
|
2653
|
-
const tx = new transactions_1.Transaction();
|
|
2654
|
-
builder.bitwiseNot(tx, args);
|
|
2655
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2656
|
-
transactionBlock: tx,
|
|
2657
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2658
|
-
});
|
|
2659
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2660
|
-
}
|
|
2661
|
-
view.bitwiseNot = bitwiseNot;
|
|
2662
|
-
async function diff(client, args) {
|
|
2663
|
-
const tx = new transactions_1.Transaction();
|
|
2664
|
-
builder.diff(tx, args);
|
|
2665
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2666
|
-
transactionBlock: tx,
|
|
2667
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2668
|
-
});
|
|
2669
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2670
|
-
}
|
|
2671
|
-
view.diff = diff;
|
|
2672
|
-
async function divideAndRoundUp(client, args) {
|
|
2673
|
-
const tx = new transactions_1.Transaction();
|
|
2674
|
-
builder.divideAndRoundUp(tx, args);
|
|
2675
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2676
|
-
transactionBlock: tx,
|
|
2677
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2678
|
-
});
|
|
2679
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2680
|
-
}
|
|
2681
|
-
view.divideAndRoundUp = divideAndRoundUp;
|
|
2682
|
-
async function max(client, args) {
|
|
2683
|
-
const tx = new transactions_1.Transaction();
|
|
2684
|
-
builder.max(tx, args);
|
|
2685
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2686
|
-
transactionBlock: tx,
|
|
2687
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2688
|
-
});
|
|
2689
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2690
|
-
}
|
|
2691
|
-
view.max = max;
|
|
2692
|
-
async function min(client, args) {
|
|
2693
|
-
const tx = new transactions_1.Transaction();
|
|
2694
|
-
builder.min(tx, args);
|
|
2695
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2696
|
-
transactionBlock: tx,
|
|
2697
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2698
|
-
});
|
|
2699
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2700
|
-
}
|
|
2701
|
-
view.min = min;
|
|
2702
|
-
async function pow(client, args) {
|
|
2703
|
-
const tx = new transactions_1.Transaction();
|
|
2704
|
-
builder.pow(tx, args);
|
|
2705
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2706
|
-
transactionBlock: tx,
|
|
2707
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2708
|
-
});
|
|
2709
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2710
|
-
}
|
|
2711
|
-
view.pow = pow;
|
|
2712
|
-
async function sqrt(client, args) {
|
|
2713
|
-
const tx = new transactions_1.Transaction();
|
|
2714
|
-
builder.sqrt(tx, args);
|
|
2715
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2716
|
-
transactionBlock: tx,
|
|
2717
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2718
|
-
});
|
|
2719
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2720
|
-
}
|
|
2721
|
-
view.sqrt = sqrt;
|
|
2722
|
-
async function toString(client, args) {
|
|
2723
|
-
const tx = new transactions_1.Transaction();
|
|
2724
|
-
builder.toString(tx, args);
|
|
2725
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2726
|
-
transactionBlock: tx,
|
|
2727
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2728
|
-
});
|
|
2729
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2730
|
-
}
|
|
2731
|
-
view.toString = toString;
|
|
2732
|
-
async function tryAsU16(client, args) {
|
|
2733
|
-
const tx = new transactions_1.Transaction();
|
|
2734
|
-
builder.tryAsU16(tx, args);
|
|
2735
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2736
|
-
transactionBlock: tx,
|
|
2737
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2738
|
-
});
|
|
2739
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2740
|
-
}
|
|
2741
|
-
view.tryAsU16 = tryAsU16;
|
|
2742
|
-
async function tryAsU8(client, args) {
|
|
2743
|
-
const tx = new transactions_1.Transaction();
|
|
2744
|
-
builder.tryAsU8(tx, args);
|
|
2745
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2746
|
-
transactionBlock: tx,
|
|
2747
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2748
|
-
});
|
|
2749
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2750
|
-
}
|
|
2751
|
-
view.tryAsU8 = tryAsU8;
|
|
2752
|
-
})(view = u32.view || (u32.view = {}));
|
|
2753
|
-
})(u32 || (exports.u32 = u32 = {}));
|
|
2754
|
-
var u64;
|
|
2755
|
-
(function (u64) {
|
|
2756
|
-
let builder;
|
|
2757
|
-
(function (builder) {
|
|
2758
|
-
function bitwiseNot(tx, args) {
|
|
2759
|
-
const _args = [];
|
|
2760
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2761
|
-
// @ts-ignore
|
|
2762
|
-
return tx.moveCall({
|
|
2763
|
-
target: "0x1::u64::bitwise_not",
|
|
2764
|
-
arguments: _args,
|
|
2765
|
-
});
|
|
2766
|
-
}
|
|
2767
|
-
builder.bitwiseNot = bitwiseNot;
|
|
2768
|
-
function diff(tx, args) {
|
|
2769
|
-
const _args = [];
|
|
2770
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2771
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
2772
|
-
// @ts-ignore
|
|
2773
|
-
return tx.moveCall({
|
|
2774
|
-
target: "0x1::u64::diff",
|
|
2775
|
-
arguments: _args,
|
|
2776
|
-
});
|
|
2777
|
-
}
|
|
2778
|
-
builder.diff = diff;
|
|
2779
|
-
function divideAndRoundUp(tx, args) {
|
|
2780
|
-
const _args = [];
|
|
2781
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2782
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
2783
|
-
// @ts-ignore
|
|
2784
|
-
return tx.moveCall({
|
|
2785
|
-
target: "0x1::u64::divide_and_round_up",
|
|
2786
|
-
arguments: _args,
|
|
2787
|
-
});
|
|
2788
|
-
}
|
|
2789
|
-
builder.divideAndRoundUp = divideAndRoundUp;
|
|
2790
|
-
function max(tx, args) {
|
|
2791
|
-
const _args = [];
|
|
2792
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2793
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
2794
|
-
// @ts-ignore
|
|
2795
|
-
return tx.moveCall({
|
|
2796
|
-
target: "0x1::u64::max",
|
|
2797
|
-
arguments: _args,
|
|
2798
|
-
});
|
|
2799
|
-
}
|
|
2800
|
-
builder.max = max;
|
|
2801
|
-
function min(tx, args) {
|
|
2802
|
-
const _args = [];
|
|
2803
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2804
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
2805
|
-
// @ts-ignore
|
|
2806
|
-
return tx.moveCall({
|
|
2807
|
-
target: "0x1::u64::min",
|
|
2808
|
-
arguments: _args,
|
|
2809
|
-
});
|
|
2810
|
-
}
|
|
2811
|
-
builder.min = min;
|
|
2812
|
-
function pow(tx, args) {
|
|
2813
|
-
const _args = [];
|
|
2814
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2815
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
2816
|
-
// @ts-ignore
|
|
2817
|
-
return tx.moveCall({
|
|
2818
|
-
target: "0x1::u64::pow",
|
|
2819
|
-
arguments: _args,
|
|
2820
|
-
});
|
|
2821
|
-
}
|
|
2822
|
-
builder.pow = pow;
|
|
2823
|
-
function sqrt(tx, args) {
|
|
2824
|
-
const _args = [];
|
|
2825
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2826
|
-
// @ts-ignore
|
|
2827
|
-
return tx.moveCall({
|
|
2828
|
-
target: "0x1::u64::sqrt",
|
|
2829
|
-
arguments: _args,
|
|
2830
|
-
});
|
|
2831
|
-
}
|
|
2832
|
-
builder.sqrt = sqrt;
|
|
2833
|
-
function toString(tx, args) {
|
|
2834
|
-
const _args = [];
|
|
2835
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2836
|
-
// @ts-ignore
|
|
2837
|
-
return tx.moveCall({
|
|
2838
|
-
target: "0x1::u64::to_string",
|
|
2839
|
-
arguments: _args,
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
builder.toString = toString;
|
|
2843
|
-
function tryAsU16(tx, args) {
|
|
2844
|
-
const _args = [];
|
|
2845
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2846
|
-
// @ts-ignore
|
|
2847
|
-
return tx.moveCall({
|
|
2848
|
-
target: "0x1::u64::try_as_u16",
|
|
2849
|
-
arguments: _args,
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
builder.tryAsU16 = tryAsU16;
|
|
2853
|
-
function tryAsU32(tx, args) {
|
|
2854
|
-
const _args = [];
|
|
2855
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2856
|
-
// @ts-ignore
|
|
2857
|
-
return tx.moveCall({
|
|
2858
|
-
target: "0x1::u64::try_as_u32",
|
|
2859
|
-
arguments: _args,
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
builder.tryAsU32 = tryAsU32;
|
|
2863
|
-
function tryAsU8(tx, args) {
|
|
2864
|
-
const _args = [];
|
|
2865
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
2866
|
-
// @ts-ignore
|
|
2867
|
-
return tx.moveCall({
|
|
2868
|
-
target: "0x1::u64::try_as_u8",
|
|
2869
|
-
arguments: _args,
|
|
2870
|
-
});
|
|
2871
|
-
}
|
|
2872
|
-
builder.tryAsU8 = tryAsU8;
|
|
2873
|
-
})(builder = u64.builder || (u64.builder = {}));
|
|
2874
|
-
let view;
|
|
2875
|
-
(function (view) {
|
|
2876
|
-
async function bitwiseNot(client, args) {
|
|
2877
|
-
const tx = new transactions_1.Transaction();
|
|
2878
|
-
builder.bitwiseNot(tx, args);
|
|
2879
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2880
|
-
transactionBlock: tx,
|
|
2881
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2882
|
-
});
|
|
2883
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2884
|
-
}
|
|
2885
|
-
view.bitwiseNot = bitwiseNot;
|
|
2886
|
-
async function diff(client, args) {
|
|
2887
|
-
const tx = new transactions_1.Transaction();
|
|
2888
|
-
builder.diff(tx, args);
|
|
2889
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2890
|
-
transactionBlock: tx,
|
|
2891
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2892
|
-
});
|
|
2893
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2894
|
-
}
|
|
2895
|
-
view.diff = diff;
|
|
2896
|
-
async function divideAndRoundUp(client, args) {
|
|
2897
|
-
const tx = new transactions_1.Transaction();
|
|
2898
|
-
builder.divideAndRoundUp(tx, args);
|
|
2899
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2900
|
-
transactionBlock: tx,
|
|
2901
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2902
|
-
});
|
|
2903
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2904
|
-
}
|
|
2905
|
-
view.divideAndRoundUp = divideAndRoundUp;
|
|
2906
|
-
async function max(client, args) {
|
|
2907
|
-
const tx = new transactions_1.Transaction();
|
|
2908
|
-
builder.max(tx, args);
|
|
2909
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2910
|
-
transactionBlock: tx,
|
|
2911
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2912
|
-
});
|
|
2913
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2914
|
-
}
|
|
2915
|
-
view.max = max;
|
|
2916
|
-
async function min(client, args) {
|
|
2917
|
-
const tx = new transactions_1.Transaction();
|
|
2918
|
-
builder.min(tx, args);
|
|
2919
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2920
|
-
transactionBlock: tx,
|
|
2921
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2922
|
-
});
|
|
2923
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2924
|
-
}
|
|
2925
|
-
view.min = min;
|
|
2926
|
-
async function pow(client, args) {
|
|
2927
|
-
const tx = new transactions_1.Transaction();
|
|
2928
|
-
builder.pow(tx, args);
|
|
2929
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2930
|
-
transactionBlock: tx,
|
|
2931
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2932
|
-
});
|
|
2933
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2934
|
-
}
|
|
2935
|
-
view.pow = pow;
|
|
2936
|
-
async function sqrt(client, args) {
|
|
2937
|
-
const tx = new transactions_1.Transaction();
|
|
2938
|
-
builder.sqrt(tx, args);
|
|
2939
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2940
|
-
transactionBlock: tx,
|
|
2941
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2942
|
-
});
|
|
2943
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2944
|
-
}
|
|
2945
|
-
view.sqrt = sqrt;
|
|
2946
|
-
async function toString(client, args) {
|
|
2947
|
-
const tx = new transactions_1.Transaction();
|
|
2948
|
-
builder.toString(tx, args);
|
|
2949
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2950
|
-
transactionBlock: tx,
|
|
2951
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2952
|
-
});
|
|
2953
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2954
|
-
}
|
|
2955
|
-
view.toString = toString;
|
|
2956
|
-
async function tryAsU16(client, args) {
|
|
2957
|
-
const tx = new transactions_1.Transaction();
|
|
2958
|
-
builder.tryAsU16(tx, args);
|
|
2959
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2960
|
-
transactionBlock: tx,
|
|
2961
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2962
|
-
});
|
|
2963
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2964
|
-
}
|
|
2965
|
-
view.tryAsU16 = tryAsU16;
|
|
2966
|
-
async function tryAsU32(client, args) {
|
|
2967
|
-
const tx = new transactions_1.Transaction();
|
|
2968
|
-
builder.tryAsU32(tx, args);
|
|
2969
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2970
|
-
transactionBlock: tx,
|
|
2971
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2972
|
-
});
|
|
2973
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2974
|
-
}
|
|
2975
|
-
view.tryAsU32 = tryAsU32;
|
|
2976
|
-
async function tryAsU8(client, args) {
|
|
2977
|
-
const tx = new transactions_1.Transaction();
|
|
2978
|
-
builder.tryAsU8(tx, args);
|
|
2979
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
2980
|
-
transactionBlock: tx,
|
|
2981
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
2982
|
-
});
|
|
2983
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2984
|
-
}
|
|
2985
|
-
view.tryAsU8 = tryAsU8;
|
|
2986
|
-
})(view = u64.view || (u64.view = {}));
|
|
2987
|
-
})(u64 || (exports.u64 = u64 = {}));
|
|
2988
|
-
var u8;
|
|
2989
|
-
(function (u8) {
|
|
2990
|
-
let builder;
|
|
2991
|
-
(function (builder) {
|
|
2992
|
-
function bitwiseNot(tx, args) {
|
|
2993
|
-
const _args = [];
|
|
2994
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
2995
|
-
// @ts-ignore
|
|
2996
|
-
return tx.moveCall({
|
|
2997
|
-
target: "0x1::u8::bitwise_not",
|
|
2998
|
-
arguments: _args,
|
|
2999
|
-
});
|
|
3000
|
-
}
|
|
3001
|
-
builder.bitwiseNot = bitwiseNot;
|
|
3002
|
-
function diff(tx, args) {
|
|
3003
|
-
const _args = [];
|
|
3004
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3005
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
3006
|
-
// @ts-ignore
|
|
3007
|
-
return tx.moveCall({
|
|
3008
|
-
target: "0x1::u8::diff",
|
|
3009
|
-
arguments: _args,
|
|
3010
|
-
});
|
|
3011
|
-
}
|
|
3012
|
-
builder.diff = diff;
|
|
3013
|
-
function divideAndRoundUp(tx, args) {
|
|
3014
|
-
const _args = [];
|
|
3015
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3016
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
3017
|
-
// @ts-ignore
|
|
3018
|
-
return tx.moveCall({
|
|
3019
|
-
target: "0x1::u8::divide_and_round_up",
|
|
3020
|
-
arguments: _args,
|
|
3021
|
-
});
|
|
3022
|
-
}
|
|
3023
|
-
builder.divideAndRoundUp = divideAndRoundUp;
|
|
3024
|
-
function max(tx, args) {
|
|
3025
|
-
const _args = [];
|
|
3026
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3027
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
3028
|
-
// @ts-ignore
|
|
3029
|
-
return tx.moveCall({
|
|
3030
|
-
target: "0x1::u8::max",
|
|
3031
|
-
arguments: _args,
|
|
3032
|
-
});
|
|
3033
|
-
}
|
|
3034
|
-
builder.max = max;
|
|
3035
|
-
function min(tx, args) {
|
|
3036
|
-
const _args = [];
|
|
3037
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3038
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
3039
|
-
// @ts-ignore
|
|
3040
|
-
return tx.moveCall({
|
|
3041
|
-
target: "0x1::u8::min",
|
|
3042
|
-
arguments: _args,
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
builder.min = min;
|
|
3046
|
-
function pow(tx, args) {
|
|
3047
|
-
const _args = [];
|
|
3048
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3049
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[1], tx));
|
|
3050
|
-
// @ts-ignore
|
|
3051
|
-
return tx.moveCall({
|
|
3052
|
-
target: "0x1::u8::pow",
|
|
3053
|
-
arguments: _args,
|
|
3054
|
-
});
|
|
3055
|
-
}
|
|
3056
|
-
builder.pow = pow;
|
|
3057
|
-
function sqrt(tx, args) {
|
|
3058
|
-
const _args = [];
|
|
3059
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3060
|
-
// @ts-ignore
|
|
3061
|
-
return tx.moveCall({
|
|
3062
|
-
target: "0x1::u8::sqrt",
|
|
3063
|
-
arguments: _args,
|
|
3064
|
-
});
|
|
3065
|
-
}
|
|
3066
|
-
builder.sqrt = sqrt;
|
|
3067
|
-
function toString(tx, args) {
|
|
3068
|
-
const _args = [];
|
|
3069
|
-
_args.push((0, iota_3.transactionArgumentOrPureU8)(args[0], tx));
|
|
3070
|
-
// @ts-ignore
|
|
3071
|
-
return tx.moveCall({
|
|
3072
|
-
target: "0x1::u8::to_string",
|
|
3073
|
-
arguments: _args,
|
|
3074
|
-
});
|
|
3075
|
-
}
|
|
3076
|
-
builder.toString = toString;
|
|
3077
|
-
})(builder = u8.builder || (u8.builder = {}));
|
|
3078
|
-
let view;
|
|
3079
|
-
(function (view) {
|
|
3080
|
-
async function bitwiseNot(client, args) {
|
|
3081
|
-
const tx = new transactions_1.Transaction();
|
|
3082
|
-
builder.bitwiseNot(tx, args);
|
|
3083
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3084
|
-
transactionBlock: tx,
|
|
3085
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3086
|
-
});
|
|
3087
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3088
|
-
}
|
|
3089
|
-
view.bitwiseNot = bitwiseNot;
|
|
3090
|
-
async function diff(client, args) {
|
|
3091
|
-
const tx = new transactions_1.Transaction();
|
|
3092
|
-
builder.diff(tx, args);
|
|
3093
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3094
|
-
transactionBlock: tx,
|
|
3095
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3096
|
-
});
|
|
3097
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3098
|
-
}
|
|
3099
|
-
view.diff = diff;
|
|
3100
|
-
async function divideAndRoundUp(client, args) {
|
|
3101
|
-
const tx = new transactions_1.Transaction();
|
|
3102
|
-
builder.divideAndRoundUp(tx, args);
|
|
3103
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3104
|
-
transactionBlock: tx,
|
|
3105
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3106
|
-
});
|
|
3107
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3108
|
-
}
|
|
3109
|
-
view.divideAndRoundUp = divideAndRoundUp;
|
|
3110
|
-
async function max(client, args) {
|
|
3111
|
-
const tx = new transactions_1.Transaction();
|
|
3112
|
-
builder.max(tx, args);
|
|
3113
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3114
|
-
transactionBlock: tx,
|
|
3115
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3116
|
-
});
|
|
3117
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3118
|
-
}
|
|
3119
|
-
view.max = max;
|
|
3120
|
-
async function min(client, args) {
|
|
3121
|
-
const tx = new transactions_1.Transaction();
|
|
3122
|
-
builder.min(tx, args);
|
|
3123
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3124
|
-
transactionBlock: tx,
|
|
3125
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3126
|
-
});
|
|
3127
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3128
|
-
}
|
|
3129
|
-
view.min = min;
|
|
3130
|
-
async function pow(client, args) {
|
|
3131
|
-
const tx = new transactions_1.Transaction();
|
|
3132
|
-
builder.pow(tx, args);
|
|
3133
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3134
|
-
transactionBlock: tx,
|
|
3135
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3136
|
-
});
|
|
3137
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3138
|
-
}
|
|
3139
|
-
view.pow = pow;
|
|
3140
|
-
async function sqrt(client, args) {
|
|
3141
|
-
const tx = new transactions_1.Transaction();
|
|
3142
|
-
builder.sqrt(tx, args);
|
|
3143
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3144
|
-
transactionBlock: tx,
|
|
3145
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3146
|
-
});
|
|
3147
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3148
|
-
}
|
|
3149
|
-
view.sqrt = sqrt;
|
|
3150
|
-
async function toString(client, args) {
|
|
3151
|
-
const tx = new transactions_1.Transaction();
|
|
3152
|
-
builder.toString(tx, args);
|
|
3153
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3154
|
-
transactionBlock: tx,
|
|
3155
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3156
|
-
});
|
|
3157
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3158
|
-
}
|
|
3159
|
-
view.toString = toString;
|
|
3160
|
-
})(view = u8.view || (u8.view = {}));
|
|
3161
|
-
})(u8 || (exports.u8 = u8 = {}));
|
|
3162
|
-
var uq32_32;
|
|
3163
|
-
(function (uq32_32) {
|
|
3164
|
-
let UQ32_32;
|
|
3165
|
-
(function (UQ32_32) {
|
|
3166
|
-
UQ32_32.TYPE_QNAME = "0x1::uq32_32::UQ32_32";
|
|
3167
|
-
const TYPE = new move_1.TypeDescriptor(UQ32_32.TYPE_QNAME);
|
|
3168
|
-
function type() {
|
|
3169
|
-
return TYPE.apply();
|
|
3170
|
-
}
|
|
3171
|
-
UQ32_32.type = type;
|
|
3172
|
-
})(UQ32_32 = uq32_32.UQ32_32 || (uq32_32.UQ32_32 = {}));
|
|
3173
|
-
let builder;
|
|
3174
|
-
(function (builder) {
|
|
3175
|
-
function add(tx, args) {
|
|
3176
|
-
const _args = [];
|
|
3177
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3178
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3179
|
-
// @ts-ignore
|
|
3180
|
-
return tx.moveCall({
|
|
3181
|
-
target: "0x1::uq32_32::add",
|
|
3182
|
-
arguments: _args,
|
|
3183
|
-
});
|
|
3184
|
-
}
|
|
3185
|
-
builder.add = add;
|
|
3186
|
-
function div(tx, args) {
|
|
3187
|
-
const _args = [];
|
|
3188
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3189
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3190
|
-
// @ts-ignore
|
|
3191
|
-
return tx.moveCall({
|
|
3192
|
-
target: "0x1::uq32_32::div",
|
|
3193
|
-
arguments: _args,
|
|
3194
|
-
});
|
|
3195
|
-
}
|
|
3196
|
-
builder.div = div;
|
|
3197
|
-
function fromInt(tx, args) {
|
|
3198
|
-
const _args = [];
|
|
3199
|
-
_args.push((0, iota_3.transactionArgumentOrPureU32)(args[0], tx));
|
|
3200
|
-
// @ts-ignore
|
|
3201
|
-
return tx.moveCall({
|
|
3202
|
-
target: "0x1::uq32_32::from_int",
|
|
3203
|
-
arguments: _args,
|
|
3204
|
-
});
|
|
3205
|
-
}
|
|
3206
|
-
builder.fromInt = fromInt;
|
|
3207
|
-
function fromQuotient(tx, args) {
|
|
3208
|
-
const _args = [];
|
|
3209
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
3210
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
3211
|
-
// @ts-ignore
|
|
3212
|
-
return tx.moveCall({
|
|
3213
|
-
target: "0x1::uq32_32::from_quotient",
|
|
3214
|
-
arguments: _args,
|
|
3215
|
-
});
|
|
3216
|
-
}
|
|
3217
|
-
builder.fromQuotient = fromQuotient;
|
|
3218
|
-
function fromRaw(tx, args) {
|
|
3219
|
-
const _args = [];
|
|
3220
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
3221
|
-
// @ts-ignore
|
|
3222
|
-
return tx.moveCall({
|
|
3223
|
-
target: "0x1::uq32_32::from_raw",
|
|
3224
|
-
arguments: _args,
|
|
3225
|
-
});
|
|
3226
|
-
}
|
|
3227
|
-
builder.fromRaw = fromRaw;
|
|
3228
|
-
function ge(tx, args) {
|
|
3229
|
-
const _args = [];
|
|
3230
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3231
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3232
|
-
// @ts-ignore
|
|
3233
|
-
return tx.moveCall({
|
|
3234
|
-
target: "0x1::uq32_32::ge",
|
|
3235
|
-
arguments: _args,
|
|
3236
|
-
});
|
|
3237
|
-
}
|
|
3238
|
-
builder.ge = ge;
|
|
3239
|
-
function gt(tx, args) {
|
|
3240
|
-
const _args = [];
|
|
3241
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3242
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3243
|
-
// @ts-ignore
|
|
3244
|
-
return tx.moveCall({
|
|
3245
|
-
target: "0x1::uq32_32::gt",
|
|
3246
|
-
arguments: _args,
|
|
3247
|
-
});
|
|
3248
|
-
}
|
|
3249
|
-
builder.gt = gt;
|
|
3250
|
-
function intDiv(tx, args) {
|
|
3251
|
-
const _args = [];
|
|
3252
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
3253
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3254
|
-
// @ts-ignore
|
|
3255
|
-
return tx.moveCall({
|
|
3256
|
-
target: "0x1::uq32_32::int_div",
|
|
3257
|
-
arguments: _args,
|
|
3258
|
-
});
|
|
3259
|
-
}
|
|
3260
|
-
builder.intDiv = intDiv;
|
|
3261
|
-
function intMul(tx, args) {
|
|
3262
|
-
const _args = [];
|
|
3263
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
3264
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3265
|
-
// @ts-ignore
|
|
3266
|
-
return tx.moveCall({
|
|
3267
|
-
target: "0x1::uq32_32::int_mul",
|
|
3268
|
-
arguments: _args,
|
|
3269
|
-
});
|
|
3270
|
-
}
|
|
3271
|
-
builder.intMul = intMul;
|
|
3272
|
-
function le(tx, args) {
|
|
3273
|
-
const _args = [];
|
|
3274
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3275
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3276
|
-
// @ts-ignore
|
|
3277
|
-
return tx.moveCall({
|
|
3278
|
-
target: "0x1::uq32_32::le",
|
|
3279
|
-
arguments: _args,
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
builder.le = le;
|
|
3283
|
-
function lt(tx, args) {
|
|
3284
|
-
const _args = [];
|
|
3285
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3286
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3287
|
-
// @ts-ignore
|
|
3288
|
-
return tx.moveCall({
|
|
3289
|
-
target: "0x1::uq32_32::lt",
|
|
3290
|
-
arguments: _args,
|
|
3291
|
-
});
|
|
3292
|
-
}
|
|
3293
|
-
builder.lt = lt;
|
|
3294
|
-
function mul(tx, args) {
|
|
3295
|
-
const _args = [];
|
|
3296
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3297
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3298
|
-
// @ts-ignore
|
|
3299
|
-
return tx.moveCall({
|
|
3300
|
-
target: "0x1::uq32_32::mul",
|
|
3301
|
-
arguments: _args,
|
|
3302
|
-
});
|
|
3303
|
-
}
|
|
3304
|
-
builder.mul = mul;
|
|
3305
|
-
function sub(tx, args) {
|
|
3306
|
-
const _args = [];
|
|
3307
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3308
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3309
|
-
// @ts-ignore
|
|
3310
|
-
return tx.moveCall({
|
|
3311
|
-
target: "0x1::uq32_32::sub",
|
|
3312
|
-
arguments: _args,
|
|
3313
|
-
});
|
|
3314
|
-
}
|
|
3315
|
-
builder.sub = sub;
|
|
3316
|
-
function toInt(tx, args) {
|
|
3317
|
-
const _args = [];
|
|
3318
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3319
|
-
// @ts-ignore
|
|
3320
|
-
return tx.moveCall({
|
|
3321
|
-
target: "0x1::uq32_32::to_int",
|
|
3322
|
-
arguments: _args,
|
|
3323
|
-
});
|
|
3324
|
-
}
|
|
3325
|
-
builder.toInt = toInt;
|
|
3326
|
-
function toRaw(tx, args) {
|
|
3327
|
-
const _args = [];
|
|
3328
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3329
|
-
// @ts-ignore
|
|
3330
|
-
return tx.moveCall({
|
|
3331
|
-
target: "0x1::uq32_32::to_raw",
|
|
3332
|
-
arguments: _args,
|
|
3333
|
-
});
|
|
3334
|
-
}
|
|
3335
|
-
builder.toRaw = toRaw;
|
|
3336
|
-
})(builder = uq32_32.builder || (uq32_32.builder = {}));
|
|
3337
|
-
let view;
|
|
3338
|
-
(function (view) {
|
|
3339
|
-
async function add(client, args) {
|
|
3340
|
-
const tx = new transactions_1.Transaction();
|
|
3341
|
-
builder.add(tx, args);
|
|
3342
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3343
|
-
transactionBlock: tx,
|
|
3344
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3345
|
-
});
|
|
3346
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3347
|
-
}
|
|
3348
|
-
view.add = add;
|
|
3349
|
-
async function div(client, args) {
|
|
3350
|
-
const tx = new transactions_1.Transaction();
|
|
3351
|
-
builder.div(tx, args);
|
|
3352
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3353
|
-
transactionBlock: tx,
|
|
3354
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3355
|
-
});
|
|
3356
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3357
|
-
}
|
|
3358
|
-
view.div = div;
|
|
3359
|
-
async function fromInt(client, args) {
|
|
3360
|
-
const tx = new transactions_1.Transaction();
|
|
3361
|
-
builder.fromInt(tx, args);
|
|
3362
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3363
|
-
transactionBlock: tx,
|
|
3364
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3365
|
-
});
|
|
3366
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3367
|
-
}
|
|
3368
|
-
view.fromInt = fromInt;
|
|
3369
|
-
async function fromQuotient(client, args) {
|
|
3370
|
-
const tx = new transactions_1.Transaction();
|
|
3371
|
-
builder.fromQuotient(tx, args);
|
|
3372
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3373
|
-
transactionBlock: tx,
|
|
3374
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3375
|
-
});
|
|
3376
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3377
|
-
}
|
|
3378
|
-
view.fromQuotient = fromQuotient;
|
|
3379
|
-
async function fromRaw(client, args) {
|
|
3380
|
-
const tx = new transactions_1.Transaction();
|
|
3381
|
-
builder.fromRaw(tx, args);
|
|
3382
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3383
|
-
transactionBlock: tx,
|
|
3384
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3385
|
-
});
|
|
3386
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3387
|
-
}
|
|
3388
|
-
view.fromRaw = fromRaw;
|
|
3389
|
-
async function ge(client, args) {
|
|
3390
|
-
const tx = new transactions_1.Transaction();
|
|
3391
|
-
builder.ge(tx, args);
|
|
3392
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3393
|
-
transactionBlock: tx,
|
|
3394
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3395
|
-
});
|
|
3396
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3397
|
-
}
|
|
3398
|
-
view.ge = ge;
|
|
3399
|
-
async function gt(client, args) {
|
|
3400
|
-
const tx = new transactions_1.Transaction();
|
|
3401
|
-
builder.gt(tx, args);
|
|
3402
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3403
|
-
transactionBlock: tx,
|
|
3404
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3405
|
-
});
|
|
3406
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3407
|
-
}
|
|
3408
|
-
view.gt = gt;
|
|
3409
|
-
async function intDiv(client, args) {
|
|
3410
|
-
const tx = new transactions_1.Transaction();
|
|
3411
|
-
builder.intDiv(tx, args);
|
|
3412
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3413
|
-
transactionBlock: tx,
|
|
3414
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3415
|
-
});
|
|
3416
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3417
|
-
}
|
|
3418
|
-
view.intDiv = intDiv;
|
|
3419
|
-
async function intMul(client, args) {
|
|
3420
|
-
const tx = new transactions_1.Transaction();
|
|
3421
|
-
builder.intMul(tx, args);
|
|
3422
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3423
|
-
transactionBlock: tx,
|
|
3424
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3425
|
-
});
|
|
3426
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3427
|
-
}
|
|
3428
|
-
view.intMul = intMul;
|
|
3429
|
-
async function le(client, args) {
|
|
3430
|
-
const tx = new transactions_1.Transaction();
|
|
3431
|
-
builder.le(tx, args);
|
|
3432
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3433
|
-
transactionBlock: tx,
|
|
3434
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3435
|
-
});
|
|
3436
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3437
|
-
}
|
|
3438
|
-
view.le = le;
|
|
3439
|
-
async function lt(client, args) {
|
|
3440
|
-
const tx = new transactions_1.Transaction();
|
|
3441
|
-
builder.lt(tx, args);
|
|
3442
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3443
|
-
transactionBlock: tx,
|
|
3444
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3445
|
-
});
|
|
3446
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3447
|
-
}
|
|
3448
|
-
view.lt = lt;
|
|
3449
|
-
async function mul(client, args) {
|
|
3450
|
-
const tx = new transactions_1.Transaction();
|
|
3451
|
-
builder.mul(tx, args);
|
|
3452
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3453
|
-
transactionBlock: tx,
|
|
3454
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3455
|
-
});
|
|
3456
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3457
|
-
}
|
|
3458
|
-
view.mul = mul;
|
|
3459
|
-
async function sub(client, args) {
|
|
3460
|
-
const tx = new transactions_1.Transaction();
|
|
3461
|
-
builder.sub(tx, args);
|
|
3462
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3463
|
-
transactionBlock: tx,
|
|
3464
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3465
|
-
});
|
|
3466
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3467
|
-
}
|
|
3468
|
-
view.sub = sub;
|
|
3469
|
-
async function toInt(client, args) {
|
|
3470
|
-
const tx = new transactions_1.Transaction();
|
|
3471
|
-
builder.toInt(tx, args);
|
|
3472
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3473
|
-
transactionBlock: tx,
|
|
3474
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3475
|
-
});
|
|
3476
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3477
|
-
}
|
|
3478
|
-
view.toInt = toInt;
|
|
3479
|
-
async function toRaw(client, args) {
|
|
3480
|
-
const tx = new transactions_1.Transaction();
|
|
3481
|
-
builder.toRaw(tx, args);
|
|
3482
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3483
|
-
transactionBlock: tx,
|
|
3484
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3485
|
-
});
|
|
3486
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3487
|
-
}
|
|
3488
|
-
view.toRaw = toRaw;
|
|
3489
|
-
})(view = uq32_32.view || (uq32_32.view = {}));
|
|
3490
|
-
})(uq32_32 || (exports.uq32_32 = uq32_32 = {}));
|
|
3491
|
-
var uq64_64;
|
|
3492
|
-
(function (uq64_64) {
|
|
3493
|
-
let UQ64_64;
|
|
3494
|
-
(function (UQ64_64) {
|
|
3495
|
-
UQ64_64.TYPE_QNAME = "0x1::uq64_64::UQ64_64";
|
|
3496
|
-
const TYPE = new move_1.TypeDescriptor(UQ64_64.TYPE_QNAME);
|
|
3497
|
-
function type() {
|
|
3498
|
-
return TYPE.apply();
|
|
3499
|
-
}
|
|
3500
|
-
UQ64_64.type = type;
|
|
3501
|
-
})(UQ64_64 = uq64_64.UQ64_64 || (uq64_64.UQ64_64 = {}));
|
|
3502
|
-
let builder;
|
|
3503
|
-
(function (builder) {
|
|
3504
|
-
function add(tx, args) {
|
|
3505
|
-
const _args = [];
|
|
3506
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3507
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3508
|
-
// @ts-ignore
|
|
3509
|
-
return tx.moveCall({
|
|
3510
|
-
target: "0x1::uq64_64::add",
|
|
3511
|
-
arguments: _args,
|
|
3512
|
-
});
|
|
3513
|
-
}
|
|
3514
|
-
builder.add = add;
|
|
3515
|
-
function div(tx, args) {
|
|
3516
|
-
const _args = [];
|
|
3517
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3518
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3519
|
-
// @ts-ignore
|
|
3520
|
-
return tx.moveCall({
|
|
3521
|
-
target: "0x1::uq64_64::div",
|
|
3522
|
-
arguments: _args,
|
|
3523
|
-
});
|
|
3524
|
-
}
|
|
3525
|
-
builder.div = div;
|
|
3526
|
-
function fromInt(tx, args) {
|
|
3527
|
-
const _args = [];
|
|
3528
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[0], tx));
|
|
3529
|
-
// @ts-ignore
|
|
3530
|
-
return tx.moveCall({
|
|
3531
|
-
target: "0x1::uq64_64::from_int",
|
|
3532
|
-
arguments: _args,
|
|
3533
|
-
});
|
|
3534
|
-
}
|
|
3535
|
-
builder.fromInt = fromInt;
|
|
3536
|
-
function fromQuotient(tx, args) {
|
|
3537
|
-
const _args = [];
|
|
3538
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
3539
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[1], tx));
|
|
3540
|
-
// @ts-ignore
|
|
3541
|
-
return tx.moveCall({
|
|
3542
|
-
target: "0x1::uq64_64::from_quotient",
|
|
3543
|
-
arguments: _args,
|
|
3544
|
-
});
|
|
3545
|
-
}
|
|
3546
|
-
builder.fromQuotient = fromQuotient;
|
|
3547
|
-
function fromRaw(tx, args) {
|
|
3548
|
-
const _args = [];
|
|
3549
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
3550
|
-
// @ts-ignore
|
|
3551
|
-
return tx.moveCall({
|
|
3552
|
-
target: "0x1::uq64_64::from_raw",
|
|
3553
|
-
arguments: _args,
|
|
3554
|
-
});
|
|
3555
|
-
}
|
|
3556
|
-
builder.fromRaw = fromRaw;
|
|
3557
|
-
function ge(tx, args) {
|
|
3558
|
-
const _args = [];
|
|
3559
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3560
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3561
|
-
// @ts-ignore
|
|
3562
|
-
return tx.moveCall({
|
|
3563
|
-
target: "0x1::uq64_64::ge",
|
|
3564
|
-
arguments: _args,
|
|
3565
|
-
});
|
|
3566
|
-
}
|
|
3567
|
-
builder.ge = ge;
|
|
3568
|
-
function gt(tx, args) {
|
|
3569
|
-
const _args = [];
|
|
3570
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3571
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3572
|
-
// @ts-ignore
|
|
3573
|
-
return tx.moveCall({
|
|
3574
|
-
target: "0x1::uq64_64::gt",
|
|
3575
|
-
arguments: _args,
|
|
3576
|
-
});
|
|
3577
|
-
}
|
|
3578
|
-
builder.gt = gt;
|
|
3579
|
-
function intDiv(tx, args) {
|
|
3580
|
-
const _args = [];
|
|
3581
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
3582
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3583
|
-
// @ts-ignore
|
|
3584
|
-
return tx.moveCall({
|
|
3585
|
-
target: "0x1::uq64_64::int_div",
|
|
3586
|
-
arguments: _args,
|
|
3587
|
-
});
|
|
3588
|
-
}
|
|
3589
|
-
builder.intDiv = intDiv;
|
|
3590
|
-
function intMul(tx, args) {
|
|
3591
|
-
const _args = [];
|
|
3592
|
-
_args.push((0, iota_3.transactionArgumentOrPureU128)(args[0], tx));
|
|
3593
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3594
|
-
// @ts-ignore
|
|
3595
|
-
return tx.moveCall({
|
|
3596
|
-
target: "0x1::uq64_64::int_mul",
|
|
3597
|
-
arguments: _args,
|
|
3598
|
-
});
|
|
3599
|
-
}
|
|
3600
|
-
builder.intMul = intMul;
|
|
3601
|
-
function le(tx, args) {
|
|
3602
|
-
const _args = [];
|
|
3603
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3604
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3605
|
-
// @ts-ignore
|
|
3606
|
-
return tx.moveCall({
|
|
3607
|
-
target: "0x1::uq64_64::le",
|
|
3608
|
-
arguments: _args,
|
|
3609
|
-
});
|
|
3610
|
-
}
|
|
3611
|
-
builder.le = le;
|
|
3612
|
-
function lt(tx, args) {
|
|
3613
|
-
const _args = [];
|
|
3614
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3615
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3616
|
-
// @ts-ignore
|
|
3617
|
-
return tx.moveCall({
|
|
3618
|
-
target: "0x1::uq64_64::lt",
|
|
3619
|
-
arguments: _args,
|
|
3620
|
-
});
|
|
3621
|
-
}
|
|
3622
|
-
builder.lt = lt;
|
|
3623
|
-
function mul(tx, args) {
|
|
3624
|
-
const _args = [];
|
|
3625
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3626
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3627
|
-
// @ts-ignore
|
|
3628
|
-
return tx.moveCall({
|
|
3629
|
-
target: "0x1::uq64_64::mul",
|
|
3630
|
-
arguments: _args,
|
|
3631
|
-
});
|
|
3632
|
-
}
|
|
3633
|
-
builder.mul = mul;
|
|
3634
|
-
function sub(tx, args) {
|
|
3635
|
-
const _args = [];
|
|
3636
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3637
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3638
|
-
// @ts-ignore
|
|
3639
|
-
return tx.moveCall({
|
|
3640
|
-
target: "0x1::uq64_64::sub",
|
|
3641
|
-
arguments: _args,
|
|
3642
|
-
});
|
|
3643
|
-
}
|
|
3644
|
-
builder.sub = sub;
|
|
3645
|
-
function toInt(tx, args) {
|
|
3646
|
-
const _args = [];
|
|
3647
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3648
|
-
// @ts-ignore
|
|
3649
|
-
return tx.moveCall({
|
|
3650
|
-
target: "0x1::uq64_64::to_int",
|
|
3651
|
-
arguments: _args,
|
|
3652
|
-
});
|
|
3653
|
-
}
|
|
3654
|
-
builder.toInt = toInt;
|
|
3655
|
-
function toRaw(tx, args) {
|
|
3656
|
-
const _args = [];
|
|
3657
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
3658
|
-
// @ts-ignore
|
|
3659
|
-
return tx.moveCall({
|
|
3660
|
-
target: "0x1::uq64_64::to_raw",
|
|
3661
|
-
arguments: _args,
|
|
3662
|
-
});
|
|
3663
|
-
}
|
|
3664
|
-
builder.toRaw = toRaw;
|
|
3665
|
-
})(builder = uq64_64.builder || (uq64_64.builder = {}));
|
|
3666
|
-
let view;
|
|
3667
|
-
(function (view) {
|
|
3668
|
-
async function add(client, args) {
|
|
3669
|
-
const tx = new transactions_1.Transaction();
|
|
3670
|
-
builder.add(tx, args);
|
|
3671
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3672
|
-
transactionBlock: tx,
|
|
3673
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3674
|
-
});
|
|
3675
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3676
|
-
}
|
|
3677
|
-
view.add = add;
|
|
3678
|
-
async function div(client, args) {
|
|
3679
|
-
const tx = new transactions_1.Transaction();
|
|
3680
|
-
builder.div(tx, args);
|
|
3681
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3682
|
-
transactionBlock: tx,
|
|
3683
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3684
|
-
});
|
|
3685
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3686
|
-
}
|
|
3687
|
-
view.div = div;
|
|
3688
|
-
async function fromInt(client, args) {
|
|
3689
|
-
const tx = new transactions_1.Transaction();
|
|
3690
|
-
builder.fromInt(tx, args);
|
|
3691
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3692
|
-
transactionBlock: tx,
|
|
3693
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3694
|
-
});
|
|
3695
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3696
|
-
}
|
|
3697
|
-
view.fromInt = fromInt;
|
|
3698
|
-
async function fromQuotient(client, args) {
|
|
3699
|
-
const tx = new transactions_1.Transaction();
|
|
3700
|
-
builder.fromQuotient(tx, args);
|
|
3701
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3702
|
-
transactionBlock: tx,
|
|
3703
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3704
|
-
});
|
|
3705
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3706
|
-
}
|
|
3707
|
-
view.fromQuotient = fromQuotient;
|
|
3708
|
-
async function fromRaw(client, args) {
|
|
3709
|
-
const tx = new transactions_1.Transaction();
|
|
3710
|
-
builder.fromRaw(tx, args);
|
|
3711
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3712
|
-
transactionBlock: tx,
|
|
3713
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3714
|
-
});
|
|
3715
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3716
|
-
}
|
|
3717
|
-
view.fromRaw = fromRaw;
|
|
3718
|
-
async function ge(client, args) {
|
|
3719
|
-
const tx = new transactions_1.Transaction();
|
|
3720
|
-
builder.ge(tx, args);
|
|
3721
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3722
|
-
transactionBlock: tx,
|
|
3723
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3724
|
-
});
|
|
3725
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3726
|
-
}
|
|
3727
|
-
view.ge = ge;
|
|
3728
|
-
async function gt(client, args) {
|
|
3729
|
-
const tx = new transactions_1.Transaction();
|
|
3730
|
-
builder.gt(tx, args);
|
|
3731
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3732
|
-
transactionBlock: tx,
|
|
3733
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3734
|
-
});
|
|
3735
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3736
|
-
}
|
|
3737
|
-
view.gt = gt;
|
|
3738
|
-
async function intDiv(client, args) {
|
|
3739
|
-
const tx = new transactions_1.Transaction();
|
|
3740
|
-
builder.intDiv(tx, args);
|
|
3741
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3742
|
-
transactionBlock: tx,
|
|
3743
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3744
|
-
});
|
|
3745
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3746
|
-
}
|
|
3747
|
-
view.intDiv = intDiv;
|
|
3748
|
-
async function intMul(client, args) {
|
|
3749
|
-
const tx = new transactions_1.Transaction();
|
|
3750
|
-
builder.intMul(tx, args);
|
|
3751
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3752
|
-
transactionBlock: tx,
|
|
3753
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3754
|
-
});
|
|
3755
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3756
|
-
}
|
|
3757
|
-
view.intMul = intMul;
|
|
3758
|
-
async function le(client, args) {
|
|
3759
|
-
const tx = new transactions_1.Transaction();
|
|
3760
|
-
builder.le(tx, args);
|
|
3761
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3762
|
-
transactionBlock: tx,
|
|
3763
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3764
|
-
});
|
|
3765
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3766
|
-
}
|
|
3767
|
-
view.le = le;
|
|
3768
|
-
async function lt(client, args) {
|
|
3769
|
-
const tx = new transactions_1.Transaction();
|
|
3770
|
-
builder.lt(tx, args);
|
|
3771
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3772
|
-
transactionBlock: tx,
|
|
3773
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3774
|
-
});
|
|
3775
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3776
|
-
}
|
|
3777
|
-
view.lt = lt;
|
|
3778
|
-
async function mul(client, args) {
|
|
3779
|
-
const tx = new transactions_1.Transaction();
|
|
3780
|
-
builder.mul(tx, args);
|
|
3781
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3782
|
-
transactionBlock: tx,
|
|
3783
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3784
|
-
});
|
|
3785
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3786
|
-
}
|
|
3787
|
-
view.mul = mul;
|
|
3788
|
-
async function sub(client, args) {
|
|
3789
|
-
const tx = new transactions_1.Transaction();
|
|
3790
|
-
builder.sub(tx, args);
|
|
3791
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3792
|
-
transactionBlock: tx,
|
|
3793
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3794
|
-
});
|
|
3795
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3796
|
-
}
|
|
3797
|
-
view.sub = sub;
|
|
3798
|
-
async function toInt(client, args) {
|
|
3799
|
-
const tx = new transactions_1.Transaction();
|
|
3800
|
-
builder.toInt(tx, args);
|
|
3801
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3802
|
-
transactionBlock: tx,
|
|
3803
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3804
|
-
});
|
|
3805
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3806
|
-
}
|
|
3807
|
-
view.toInt = toInt;
|
|
3808
|
-
async function toRaw(client, args) {
|
|
3809
|
-
const tx = new transactions_1.Transaction();
|
|
3810
|
-
builder.toRaw(tx, args);
|
|
3811
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
3812
|
-
transactionBlock: tx,
|
|
3813
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
3814
|
-
});
|
|
3815
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3816
|
-
}
|
|
3817
|
-
view.toRaw = toRaw;
|
|
3818
|
-
})(view = uq64_64.view || (uq64_64.view = {}));
|
|
3819
|
-
})(uq64_64 || (exports.uq64_64 = uq64_64 = {}));
|
|
3820
|
-
var vector;
|
|
3821
|
-
(function (vector) {
|
|
3822
|
-
let builder;
|
|
3823
|
-
(function (builder) {
|
|
3824
|
-
function append(tx, args, typeArguments) {
|
|
3825
|
-
const _args = [];
|
|
3826
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3827
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[1], tx));
|
|
3828
|
-
// @ts-ignore
|
|
3829
|
-
return tx.moveCall({
|
|
3830
|
-
target: "0x1::vector::append",
|
|
3831
|
-
arguments: _args,
|
|
3832
|
-
typeArguments: [
|
|
3833
|
-
typeof typeArguments[0] === "string"
|
|
3834
|
-
? typeArguments[0]
|
|
3835
|
-
: typeArguments[0].getSignature(),
|
|
3836
|
-
],
|
|
3837
|
-
});
|
|
3838
|
-
}
|
|
3839
|
-
builder.append = append;
|
|
3840
|
-
function borrow(tx, args, typeArguments) {
|
|
3841
|
-
const _args = [];
|
|
3842
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3843
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
3844
|
-
// @ts-ignore
|
|
3845
|
-
return tx.moveCall({
|
|
3846
|
-
target: "0x1::vector::borrow",
|
|
3847
|
-
arguments: _args,
|
|
3848
|
-
typeArguments: [
|
|
3849
|
-
typeof typeArguments[0] === "string"
|
|
3850
|
-
? typeArguments[0]
|
|
3851
|
-
: typeArguments[0].getSignature(),
|
|
3852
|
-
],
|
|
3853
|
-
});
|
|
3854
|
-
}
|
|
3855
|
-
builder.borrow = borrow;
|
|
3856
|
-
function borrowMut(tx, args, typeArguments) {
|
|
3857
|
-
const _args = [];
|
|
3858
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3859
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
3860
|
-
// @ts-ignore
|
|
3861
|
-
return tx.moveCall({
|
|
3862
|
-
target: "0x1::vector::borrow_mut",
|
|
3863
|
-
arguments: _args,
|
|
3864
|
-
typeArguments: [
|
|
3865
|
-
typeof typeArguments[0] === "string"
|
|
3866
|
-
? typeArguments[0]
|
|
3867
|
-
: typeArguments[0].getSignature(),
|
|
3868
|
-
],
|
|
3869
|
-
});
|
|
3870
|
-
}
|
|
3871
|
-
builder.borrowMut = borrowMut;
|
|
3872
|
-
function contains(tx, args, typeArguments) {
|
|
3873
|
-
const _args = [];
|
|
3874
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3875
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[1], tx));
|
|
3876
|
-
// @ts-ignore
|
|
3877
|
-
return tx.moveCall({
|
|
3878
|
-
target: "0x1::vector::contains",
|
|
3879
|
-
arguments: _args,
|
|
3880
|
-
typeArguments: [
|
|
3881
|
-
typeof typeArguments[0] === "string"
|
|
3882
|
-
? typeArguments[0]
|
|
3883
|
-
: typeArguments[0].getSignature(),
|
|
3884
|
-
],
|
|
3885
|
-
});
|
|
3886
|
-
}
|
|
3887
|
-
builder.contains = contains;
|
|
3888
|
-
function destroyEmpty(tx, args, typeArguments) {
|
|
3889
|
-
const _args = [];
|
|
3890
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
3891
|
-
// @ts-ignore
|
|
3892
|
-
return tx.moveCall({
|
|
3893
|
-
target: "0x1::vector::destroy_empty",
|
|
3894
|
-
arguments: _args,
|
|
3895
|
-
typeArguments: [
|
|
3896
|
-
typeof typeArguments[0] === "string"
|
|
3897
|
-
? typeArguments[0]
|
|
3898
|
-
: typeArguments[0].getSignature(),
|
|
3899
|
-
],
|
|
3900
|
-
});
|
|
3901
|
-
}
|
|
3902
|
-
builder.destroyEmpty = destroyEmpty;
|
|
3903
|
-
function empty(tx, args, typeArguments) {
|
|
3904
|
-
const _args = [];
|
|
3905
|
-
// @ts-ignore
|
|
3906
|
-
return tx.moveCall({
|
|
3907
|
-
target: "0x1::vector::empty",
|
|
3908
|
-
arguments: _args,
|
|
3909
|
-
typeArguments: [
|
|
3910
|
-
typeof typeArguments[0] === "string"
|
|
3911
|
-
? typeArguments[0]
|
|
3912
|
-
: typeArguments[0].getSignature(),
|
|
3913
|
-
],
|
|
3914
|
-
});
|
|
3915
|
-
}
|
|
3916
|
-
builder.empty = empty;
|
|
3917
|
-
function flatten(tx, args, typeArguments) {
|
|
3918
|
-
const _args = [];
|
|
3919
|
-
_args.push((0, iota_3.transactionArgumentOrVec)(args[0], tx));
|
|
3920
|
-
// @ts-ignore
|
|
3921
|
-
return tx.moveCall({
|
|
3922
|
-
target: "0x1::vector::flatten",
|
|
3923
|
-
arguments: _args,
|
|
3924
|
-
typeArguments: [
|
|
3925
|
-
typeof typeArguments[0] === "string"
|
|
3926
|
-
? typeArguments[0]
|
|
3927
|
-
: typeArguments[0].getSignature(),
|
|
3928
|
-
],
|
|
3929
|
-
});
|
|
3930
|
-
}
|
|
3931
|
-
builder.flatten = flatten;
|
|
3932
|
-
function indexOf(tx, args, typeArguments) {
|
|
3933
|
-
const _args = [];
|
|
3934
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3935
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[1], tx));
|
|
3936
|
-
// @ts-ignore
|
|
3937
|
-
return tx.moveCall({
|
|
3938
|
-
target: "0x1::vector::index_of",
|
|
3939
|
-
arguments: _args,
|
|
3940
|
-
typeArguments: [
|
|
3941
|
-
typeof typeArguments[0] === "string"
|
|
3942
|
-
? typeArguments[0]
|
|
3943
|
-
: typeArguments[0].getSignature(),
|
|
3944
|
-
],
|
|
3945
|
-
});
|
|
3946
|
-
}
|
|
3947
|
-
builder.indexOf = indexOf;
|
|
3948
|
-
function insert(tx, args, typeArguments) {
|
|
3949
|
-
const _args = [];
|
|
3950
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3951
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
3952
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[2], tx));
|
|
3953
|
-
// @ts-ignore
|
|
3954
|
-
return tx.moveCall({
|
|
3955
|
-
target: "0x1::vector::insert",
|
|
3956
|
-
arguments: _args,
|
|
3957
|
-
typeArguments: [
|
|
3958
|
-
typeof typeArguments[0] === "string"
|
|
3959
|
-
? typeArguments[0]
|
|
3960
|
-
: typeArguments[0].getSignature(),
|
|
3961
|
-
],
|
|
3962
|
-
});
|
|
3963
|
-
}
|
|
3964
|
-
builder.insert = insert;
|
|
3965
|
-
function isEmpty(tx, args, typeArguments) {
|
|
3966
|
-
const _args = [];
|
|
3967
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3968
|
-
// @ts-ignore
|
|
3969
|
-
return tx.moveCall({
|
|
3970
|
-
target: "0x1::vector::is_empty",
|
|
3971
|
-
arguments: _args,
|
|
3972
|
-
typeArguments: [
|
|
3973
|
-
typeof typeArguments[0] === "string"
|
|
3974
|
-
? typeArguments[0]
|
|
3975
|
-
: typeArguments[0].getSignature(),
|
|
3976
|
-
],
|
|
3977
|
-
});
|
|
3978
|
-
}
|
|
3979
|
-
builder.isEmpty = isEmpty;
|
|
3980
|
-
function length(tx, args, typeArguments) {
|
|
3981
|
-
const _args = [];
|
|
3982
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3983
|
-
// @ts-ignore
|
|
3984
|
-
return tx.moveCall({
|
|
3985
|
-
target: "0x1::vector::length",
|
|
3986
|
-
arguments: _args,
|
|
3987
|
-
typeArguments: [
|
|
3988
|
-
typeof typeArguments[0] === "string"
|
|
3989
|
-
? typeArguments[0]
|
|
3990
|
-
: typeArguments[0].getSignature(),
|
|
3991
|
-
],
|
|
3992
|
-
});
|
|
3993
|
-
}
|
|
3994
|
-
builder.length = length;
|
|
3995
|
-
function popBack(tx, args, typeArguments) {
|
|
3996
|
-
const _args = [];
|
|
3997
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
3998
|
-
// @ts-ignore
|
|
3999
|
-
return tx.moveCall({
|
|
4000
|
-
target: "0x1::vector::pop_back",
|
|
4001
|
-
arguments: _args,
|
|
4002
|
-
typeArguments: [
|
|
4003
|
-
typeof typeArguments[0] === "string"
|
|
4004
|
-
? typeArguments[0]
|
|
4005
|
-
: typeArguments[0].getSignature(),
|
|
4006
|
-
],
|
|
4007
|
-
});
|
|
4008
|
-
}
|
|
4009
|
-
builder.popBack = popBack;
|
|
4010
|
-
function pushBack(tx, args, typeArguments) {
|
|
4011
|
-
const _args = [];
|
|
4012
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
4013
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[1], tx));
|
|
4014
|
-
// @ts-ignore
|
|
4015
|
-
return tx.moveCall({
|
|
4016
|
-
target: "0x1::vector::push_back",
|
|
4017
|
-
arguments: _args,
|
|
4018
|
-
typeArguments: [
|
|
4019
|
-
typeof typeArguments[0] === "string"
|
|
4020
|
-
? typeArguments[0]
|
|
4021
|
-
: typeArguments[0].getSignature(),
|
|
4022
|
-
],
|
|
4023
|
-
});
|
|
4024
|
-
}
|
|
4025
|
-
builder.pushBack = pushBack;
|
|
4026
|
-
function remove(tx, args, typeArguments) {
|
|
4027
|
-
const _args = [];
|
|
4028
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
4029
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
4030
|
-
// @ts-ignore
|
|
4031
|
-
return tx.moveCall({
|
|
4032
|
-
target: "0x1::vector::remove",
|
|
4033
|
-
arguments: _args,
|
|
4034
|
-
typeArguments: [
|
|
4035
|
-
typeof typeArguments[0] === "string"
|
|
4036
|
-
? typeArguments[0]
|
|
4037
|
-
: typeArguments[0].getSignature(),
|
|
4038
|
-
],
|
|
4039
|
-
});
|
|
4040
|
-
}
|
|
4041
|
-
builder.remove = remove;
|
|
4042
|
-
function reverse(tx, args, typeArguments) {
|
|
4043
|
-
const _args = [];
|
|
4044
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
4045
|
-
// @ts-ignore
|
|
4046
|
-
return tx.moveCall({
|
|
4047
|
-
target: "0x1::vector::reverse",
|
|
4048
|
-
arguments: _args,
|
|
4049
|
-
typeArguments: [
|
|
4050
|
-
typeof typeArguments[0] === "string"
|
|
4051
|
-
? typeArguments[0]
|
|
4052
|
-
: typeArguments[0].getSignature(),
|
|
4053
|
-
],
|
|
4054
|
-
});
|
|
4055
|
-
}
|
|
4056
|
-
builder.reverse = reverse;
|
|
4057
|
-
function singleton(tx, args, typeArguments) {
|
|
4058
|
-
const _args = [];
|
|
4059
|
-
_args.push((0, iota_3.transactionArgumentOrPure)(args[0], tx));
|
|
4060
|
-
// @ts-ignore
|
|
4061
|
-
return tx.moveCall({
|
|
4062
|
-
target: "0x1::vector::singleton",
|
|
4063
|
-
arguments: _args,
|
|
4064
|
-
typeArguments: [
|
|
4065
|
-
typeof typeArguments[0] === "string"
|
|
4066
|
-
? typeArguments[0]
|
|
4067
|
-
: typeArguments[0].getSignature(),
|
|
4068
|
-
],
|
|
4069
|
-
});
|
|
4070
|
-
}
|
|
4071
|
-
builder.singleton = singleton;
|
|
4072
|
-
function swap(tx, args, typeArguments) {
|
|
4073
|
-
const _args = [];
|
|
4074
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
4075
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
4076
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[2], tx));
|
|
4077
|
-
// @ts-ignore
|
|
4078
|
-
return tx.moveCall({
|
|
4079
|
-
target: "0x1::vector::swap",
|
|
4080
|
-
arguments: _args,
|
|
4081
|
-
typeArguments: [
|
|
4082
|
-
typeof typeArguments[0] === "string"
|
|
4083
|
-
? typeArguments[0]
|
|
4084
|
-
: typeArguments[0].getSignature(),
|
|
4085
|
-
],
|
|
4086
|
-
});
|
|
4087
|
-
}
|
|
4088
|
-
builder.swap = swap;
|
|
4089
|
-
function swapRemove(tx, args, typeArguments) {
|
|
4090
|
-
const _args = [];
|
|
4091
|
-
_args.push((0, iota_3.transactionArgumentOrObject)(args[0], tx));
|
|
4092
|
-
_args.push((0, iota_3.transactionArgumentOrPureU64)(args[1], tx));
|
|
4093
|
-
// @ts-ignore
|
|
4094
|
-
return tx.moveCall({
|
|
4095
|
-
target: "0x1::vector::swap_remove",
|
|
4096
|
-
arguments: _args,
|
|
4097
|
-
typeArguments: [
|
|
4098
|
-
typeof typeArguments[0] === "string"
|
|
4099
|
-
? typeArguments[0]
|
|
4100
|
-
: typeArguments[0].getSignature(),
|
|
4101
|
-
],
|
|
4102
|
-
});
|
|
4103
|
-
}
|
|
4104
|
-
builder.swapRemove = swapRemove;
|
|
4105
|
-
})(builder = vector.builder || (vector.builder = {}));
|
|
4106
|
-
let view;
|
|
4107
|
-
(function (view) {
|
|
4108
|
-
async function append(client, args, typeArguments) {
|
|
4109
|
-
const tx = new transactions_1.Transaction();
|
|
4110
|
-
builder.append(tx, args, typeArguments);
|
|
4111
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4112
|
-
transactionBlock: tx,
|
|
4113
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4114
|
-
});
|
|
4115
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4116
|
-
}
|
|
4117
|
-
view.append = append;
|
|
4118
|
-
async function borrow(client, args, typeArguments) {
|
|
4119
|
-
const tx = new transactions_1.Transaction();
|
|
4120
|
-
builder.borrow(tx, args, typeArguments);
|
|
4121
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4122
|
-
transactionBlock: tx,
|
|
4123
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4124
|
-
});
|
|
4125
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4126
|
-
}
|
|
4127
|
-
view.borrow = borrow;
|
|
4128
|
-
async function borrowMut(client, args, typeArguments) {
|
|
4129
|
-
const tx = new transactions_1.Transaction();
|
|
4130
|
-
builder.borrowMut(tx, args, typeArguments);
|
|
4131
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4132
|
-
transactionBlock: tx,
|
|
4133
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4134
|
-
});
|
|
4135
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4136
|
-
}
|
|
4137
|
-
view.borrowMut = borrowMut;
|
|
4138
|
-
async function contains(client, args, typeArguments) {
|
|
4139
|
-
const tx = new transactions_1.Transaction();
|
|
4140
|
-
builder.contains(tx, args, typeArguments);
|
|
4141
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4142
|
-
transactionBlock: tx,
|
|
4143
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4144
|
-
});
|
|
4145
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4146
|
-
}
|
|
4147
|
-
view.contains = contains;
|
|
4148
|
-
async function destroyEmpty(client, args, typeArguments) {
|
|
4149
|
-
const tx = new transactions_1.Transaction();
|
|
4150
|
-
builder.destroyEmpty(tx, args, typeArguments);
|
|
4151
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4152
|
-
transactionBlock: tx,
|
|
4153
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4154
|
-
});
|
|
4155
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4156
|
-
}
|
|
4157
|
-
view.destroyEmpty = destroyEmpty;
|
|
4158
|
-
async function empty(client, args, typeArguments) {
|
|
4159
|
-
const tx = new transactions_1.Transaction();
|
|
4160
|
-
builder.empty(tx, args, typeArguments);
|
|
4161
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4162
|
-
transactionBlock: tx,
|
|
4163
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4164
|
-
});
|
|
4165
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4166
|
-
}
|
|
4167
|
-
view.empty = empty;
|
|
4168
|
-
async function flatten(client, args, typeArguments) {
|
|
4169
|
-
const tx = new transactions_1.Transaction();
|
|
4170
|
-
builder.flatten(tx, args, typeArguments);
|
|
4171
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4172
|
-
transactionBlock: tx,
|
|
4173
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4174
|
-
});
|
|
4175
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4176
|
-
}
|
|
4177
|
-
view.flatten = flatten;
|
|
4178
|
-
async function indexOf(client, args, typeArguments) {
|
|
4179
|
-
const tx = new transactions_1.Transaction();
|
|
4180
|
-
builder.indexOf(tx, args, typeArguments);
|
|
4181
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4182
|
-
transactionBlock: tx,
|
|
4183
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4184
|
-
});
|
|
4185
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4186
|
-
}
|
|
4187
|
-
view.indexOf = indexOf;
|
|
4188
|
-
async function insert(client, args, typeArguments) {
|
|
4189
|
-
const tx = new transactions_1.Transaction();
|
|
4190
|
-
builder.insert(tx, args, typeArguments);
|
|
4191
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4192
|
-
transactionBlock: tx,
|
|
4193
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4194
|
-
});
|
|
4195
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4196
|
-
}
|
|
4197
|
-
view.insert = insert;
|
|
4198
|
-
async function isEmpty(client, args, typeArguments) {
|
|
4199
|
-
const tx = new transactions_1.Transaction();
|
|
4200
|
-
builder.isEmpty(tx, args, typeArguments);
|
|
4201
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4202
|
-
transactionBlock: tx,
|
|
4203
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4204
|
-
});
|
|
4205
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4206
|
-
}
|
|
4207
|
-
view.isEmpty = isEmpty;
|
|
4208
|
-
async function length(client, args, typeArguments) {
|
|
4209
|
-
const tx = new transactions_1.Transaction();
|
|
4210
|
-
builder.length(tx, args, typeArguments);
|
|
4211
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4212
|
-
transactionBlock: tx,
|
|
4213
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4214
|
-
});
|
|
4215
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4216
|
-
}
|
|
4217
|
-
view.length = length;
|
|
4218
|
-
async function popBack(client, args, typeArguments) {
|
|
4219
|
-
const tx = new transactions_1.Transaction();
|
|
4220
|
-
builder.popBack(tx, args, typeArguments);
|
|
4221
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4222
|
-
transactionBlock: tx,
|
|
4223
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4224
|
-
});
|
|
4225
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4226
|
-
}
|
|
4227
|
-
view.popBack = popBack;
|
|
4228
|
-
async function pushBack(client, args, typeArguments) {
|
|
4229
|
-
const tx = new transactions_1.Transaction();
|
|
4230
|
-
builder.pushBack(tx, args, typeArguments);
|
|
4231
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4232
|
-
transactionBlock: tx,
|
|
4233
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4234
|
-
});
|
|
4235
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4236
|
-
}
|
|
4237
|
-
view.pushBack = pushBack;
|
|
4238
|
-
async function remove(client, args, typeArguments) {
|
|
4239
|
-
const tx = new transactions_1.Transaction();
|
|
4240
|
-
builder.remove(tx, args, typeArguments);
|
|
4241
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4242
|
-
transactionBlock: tx,
|
|
4243
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4244
|
-
});
|
|
4245
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4246
|
-
}
|
|
4247
|
-
view.remove = remove;
|
|
4248
|
-
async function reverse(client, args, typeArguments) {
|
|
4249
|
-
const tx = new transactions_1.Transaction();
|
|
4250
|
-
builder.reverse(tx, args, typeArguments);
|
|
4251
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4252
|
-
transactionBlock: tx,
|
|
4253
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4254
|
-
});
|
|
4255
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4256
|
-
}
|
|
4257
|
-
view.reverse = reverse;
|
|
4258
|
-
async function singleton(client, args, typeArguments) {
|
|
4259
|
-
const tx = new transactions_1.Transaction();
|
|
4260
|
-
builder.singleton(tx, args, typeArguments);
|
|
4261
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4262
|
-
transactionBlock: tx,
|
|
4263
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4264
|
-
});
|
|
4265
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4266
|
-
}
|
|
4267
|
-
view.singleton = singleton;
|
|
4268
|
-
async function swap(client, args, typeArguments) {
|
|
4269
|
-
const tx = new transactions_1.Transaction();
|
|
4270
|
-
builder.swap(tx, args, typeArguments);
|
|
4271
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4272
|
-
transactionBlock: tx,
|
|
4273
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4274
|
-
});
|
|
4275
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4276
|
-
}
|
|
4277
|
-
view.swap = swap;
|
|
4278
|
-
async function swapRemove(client, args, typeArguments) {
|
|
4279
|
-
const tx = new transactions_1.Transaction();
|
|
4280
|
-
builder.swapRemove(tx, args, typeArguments);
|
|
4281
|
-
const inspectRes = await client.devInspectTransactionBlock({
|
|
4282
|
-
transactionBlock: tx,
|
|
4283
|
-
sender: iota_2.ZERO_ADDRESS,
|
|
4284
|
-
});
|
|
4285
|
-
return (await (0, iota_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4286
|
-
}
|
|
4287
|
-
view.swapRemove = swapRemove;
|
|
4288
|
-
})(view = vector.view || (vector.view = {}));
|
|
4289
|
-
})(vector || (exports.vector = vector = {}));
|
|
4290
|
-
const MODULES = JSON.parse('{"address":{"fileFormatVersion":6,"address":"0x1","name":"address","friends":[],"structs":{},"exposedFunctions":{"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":["U64"]}}},"ascii":{"fileFormatVersion":6,"address":"0x1","name":"ascii","friends":[],"structs":{"Char":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"byte","type":"U8"}]},"String":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"bytes","type":{"Vector":"U8"}}]}},"exposedFunctions":{"all_characters_printable":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["Bool"]},"append":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"as_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"byte":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}],"return":["U8"]},"char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},"U64",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["Bool"]},"is_printable_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"is_valid_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":["U64"]},"pop_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}]},"push_char":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"Char","typeArguments":[]}}],"return":[]},"string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"substring":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},"U64","U64"],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"to_lowercase":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"to_uppercase":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"try_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}]}}},"bcs":{"fileFormatVersion":6,"address":"0x1","name":"bcs","friends":[],"structs":{},"exposedFunctions":{"to_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"TypeParameter":0}}],"return":[{"Vector":"U8"}]}}},"bit_vector":{"fileFormatVersion":6,"address":"0x1","name":"bit_vector","friends":[],"structs":{"BitVector":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"length","type":"U64"},{"name":"bit_field","type":{"Vector":"Bool"}}]}},"exposedFunctions":{"is_index_set":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}}],"return":["U64"]},"longest_set_sequence_starting_at":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":["U64"]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}]},"set":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":[]},"shift_left":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":[]},"unset":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"bit_vector","name":"BitVector","typeArguments":[]}}},"U64"],"return":[]}}},"debug":{"fileFormatVersion":6,"address":"0x1","name":"debug","friends":[],"structs":{},"exposedFunctions":{"print":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"TypeParameter":0}}],"return":[]},"print_stack_trace":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":[]}}},"fixed_point32":{"fileFormatVersion":6,"address":"0x1","name":"fixed_point32","friends":[],"structs":{"FixedPoint32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"value","type":"U64"}]}},"exposedFunctions":{"create_from_rational":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}]},"create_from_raw_value":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}]},"divide_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["U64"]},"get_raw_value":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["U64"]},"is_zero":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["Bool"]},"multiply_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"fixed_point32","name":"FixedPoint32","typeArguments":[]}}],"return":["U64"]}}},"hash":{"fileFormatVersion":6,"address":"0x1","name":"hash","friends":[],"structs":{},"exposedFunctions":{"sha2_256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Vector":"U8"}]},"sha3_256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Vector":"U8"}]}}},"macros":{"fileFormatVersion":6,"address":"0x1","name":"macros","friends":[],"structs":{},"exposedFunctions":{}},"option":{"fileFormatVersion":6,"address":"0x1","name":"option","friends":[],"structs":{"Option":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":false}],"fields":[{"name":"vec","type":{"Vector":{"TypeParameter":0}}}]}},"exposedFunctions":{"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"MutableReference":{"TypeParameter":0}}]},"borrow_with_default":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"TypeParameter":0}}],"return":[{"Reference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_none":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"destroy_some":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}],"return":[{"TypeParameter":0}]},"destroy_with_default":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Drop"]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}},{"TypeParameter":0}],"return":[{"TypeParameter":0}]},"extract":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"TypeParameter":0}]},"fill":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[]},"get_with_default":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":["Copy","Drop"]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[{"TypeParameter":0}]},"is_none":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"is_some":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"none":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}]},"some":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}]},"swap":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[{"TypeParameter":0}]},"swap_or_fill":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}},{"TypeParameter":0}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}]},"to_vec":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Vector":{"TypeParameter":0}}]}}},"string":{"fileFormatVersion":6,"address":"0x1","name":"string","friends":[],"structs":{"String":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"bytes","type":{"Vector":"U8"}}]}},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[]},"append_utf8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"as_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"from_ascii":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":["U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},"U64",{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}],"return":["U64"]},"sub_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},"U64","U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"substring":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},"U64","U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"to_ascii":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"try_utf8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}]},"utf8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},"type_name":{"fileFormatVersion":6,"address":"0x1","name":"type_name","friends":[],"structs":{"TypeName":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"name","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]}},"exposedFunctions":{"borrow_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]},"get":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"get_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"get_module":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"get_with_original_ids":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]},"into_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"is_primitive":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}],"return":["Bool"]}}},"u128":{"fileFormatVersion":6,"address":"0x1","name":"u128","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":["U128"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U8"],"return":["U128"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":["U128"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u16":{"fileFormatVersion":6,"address":"0x1","name":"u16","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U16"],"return":["U16"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16","U8"],"return":["U16"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":["U16"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U16"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u256":{"fileFormatVersion":6,"address":"0x1","name":"u256","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":["U256"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U256"],"return":["U256"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256","U8"],"return":["U256"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u128":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U128"]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u64":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u32":{"fileFormatVersion":6,"address":"0x1","name":"u32","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U32"],"return":["U32"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32","U8"],"return":["U32"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":["U32"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u64":{"fileFormatVersion":6,"address":"0x1","name":"u64","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":["U64"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U8"],"return":["U64"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":["U64"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"try_as_u16":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U16"]}}]},"try_as_u32":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U32"]}}]},"try_as_u8":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U8"]}}]}}},"u8":{"fileFormatVersion":6,"address":"0x1","name":"u8","friends":[],"structs":{},"exposedFunctions":{"bitwise_not":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"diff":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"divide_and_round_up":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"max":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"min":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"pow":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8","U8"],"return":["U8"]},"sqrt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":["U8"]},"to_string":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U8"],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},"uq32_32":{"fileFormatVersion":6,"address":"0x1","name":"uq32_32","friends":[],"structs":{"UQ32_32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U64"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U32"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64","U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U32"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq32_32","name":"UQ32_32","typeArguments":[]}}],"return":["U64"]}}},"uq64_64":{"fileFormatVersion":6,"address":"0x1","name":"uq64_64","friends":[],"structs":{"UQ64_64":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pos0","type":"U128"}]}},"exposedFunctions":{"add":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U64"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_quotient":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128","U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"from_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128"],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"ge":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"gt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"int_div":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"int_mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U128",{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]},"le":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"lt":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["Bool"]},"mul":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"sub":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}},{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}]},"to_int":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U64"]},"to_raw":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"uq64_64","name":"UQ64_64","typeArguments":[]}}],"return":["U128"]}}},"vector":{"fileFormatVersion":6,"address":"0x1","name":"vector","friends":[],"structs":{},"exposedFunctions":{"append":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"Vector":{"TypeParameter":0}}],"return":[]},"borrow":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"Reference":{"TypeParameter":0}}]},"borrow_mut":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"MutableReference":{"TypeParameter":0}}]},"contains":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool"]},"destroy_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"TypeParameter":0}}],"return":[]},"empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Vector":{"TypeParameter":0}}]},"flatten":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Vector":{"Vector":{"TypeParameter":0}}}],"return":[{"Vector":{"TypeParameter":0}}]},"index_of":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}},{"Reference":{"TypeParameter":0}}],"return":["Bool","U64"]},"insert":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0},"U64"],"return":[]},"is_empty":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["Bool"]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Vector":{"TypeParameter":0}}}],"return":["U64"]},"pop_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[{"TypeParameter":0}]},"push_back":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},{"TypeParameter":0}],"return":[]},"remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]},"reverse":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}}],"return":[]},"singleton":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"TypeParameter":0}],"return":[{"Vector":{"TypeParameter":0}}]},"swap":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64","U64"],"return":[]},"swap_remove":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Vector":{"TypeParameter":0}}},"U64"],"return":[{"TypeParameter":0}]}}}}');
|
|
4291
|
-
function loadAllTypes(coder) {
|
|
4292
|
-
for (const m of Object.values(MODULES)) {
|
|
4293
|
-
coder.load(m, "0x1");
|
|
4294
|
-
}
|
|
4295
|
-
}
|
|
4296
|
-
loadAllTypes((0, iota_1.defaultMoveCoder)());
|
|
4297
|
-
//# sourceMappingURL=0x1.js.map
|