@typemove/sui 1.2.3 → 1.2.4-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/dist/cjs/builtin/0x1.d.ts +0 -496
- package/dist/cjs/builtin/0x1.d.ts.map +0 -1
- package/dist/cjs/builtin/0x1.js +0 -2038
- package/dist/cjs/builtin/0x1.js.map +0 -1
- package/dist/cjs/builtin/0x2.d.ts +0 -2933
- package/dist/cjs/builtin/0x2.d.ts.map +0 -1
- package/dist/cjs/builtin/0x2.js +0 -9511
- package/dist/cjs/builtin/0x2.js.map +0 -1
- package/dist/cjs/builtin/0x3.d.ts +0 -1208
- package/dist/cjs/builtin/0x3.d.ts.map +0 -1
- package/dist/cjs/builtin/0x3.js +0 -2455
- 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 -19
- package/dist/cjs/codegen/codegen.d.ts.map +0 -1
- package/dist/cjs/codegen/codegen.js +0 -178
- 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 -25
- package/dist/cjs/move-coder.d.ts.map +0 -1
- package/dist/cjs/move-coder.js +0 -229
- package/dist/cjs/move-coder.js.map +0 -1
- package/dist/cjs/move-coder.test.d.ts +0 -2
- package/dist/cjs/move-coder.test.d.ts.map +0 -1
- package/dist/cjs/move-coder.test.js.map +0 -1
- 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 -95
- 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 -85
- package/dist/cjs/to-internal.js.map +0 -1
- package/dist/cjs/transaction.d.ts +0 -6
- package/dist/cjs/transaction.d.ts.map +0 -1
- package/dist/cjs/transaction.js +0 -35
- package/dist/cjs/transaction.js.map +0 -1
- package/dist/esm/builtin/0x1.d.ts +0 -496
- package/dist/esm/builtin/0x1.d.ts.map +0 -1
- package/dist/esm/builtin/0x1.js +0 -2034
- package/dist/esm/builtin/0x1.js.map +0 -1
- package/dist/esm/builtin/0x2.d.ts +0 -2933
- package/dist/esm/builtin/0x2.d.ts.map +0 -1
- package/dist/esm/builtin/0x2.js +0 -9506
- package/dist/esm/builtin/0x2.js.map +0 -1
- package/dist/esm/builtin/0x3.d.ts +0 -1208
- package/dist/esm/builtin/0x3.d.ts.map +0 -1
- package/dist/esm/builtin/0x3.js +0 -2450
- package/dist/esm/builtin/0x3.js.map +0 -1
- package/dist/esm/builtin/index.d.ts +0 -4
- package/dist/esm/builtin/index.d.ts.map +0 -1
- package/dist/esm/builtin/index.js +0 -7
- package/dist/esm/builtin/index.js.map +0 -1
- package/dist/esm/codegen/codegen.d.ts +0 -19
- package/dist/esm/codegen/codegen.d.ts.map +0 -1
- package/dist/esm/codegen/codegen.js +0 -172
- package/dist/esm/codegen/codegen.js.map +0 -1
- package/dist/esm/codegen/index.d.ts +0 -2
- package/dist/esm/codegen/index.d.ts.map +0 -1
- package/dist/esm/codegen/index.js +0 -2
- package/dist/esm/codegen/index.js.map +0 -1
- package/dist/esm/codegen/run.d.ts +0 -2
- package/dist/esm/codegen/run.d.ts.map +0 -1
- package/dist/esm/codegen/run.js.map +0 -1
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/models.d.ts +0 -18
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/models.js +0 -2
- package/dist/esm/models.js.map +0 -1
- package/dist/esm/move-coder.d.ts +0 -25
- package/dist/esm/move-coder.d.ts.map +0 -1
- package/dist/esm/move-coder.js +0 -223
- package/dist/esm/move-coder.js.map +0 -1
- package/dist/esm/move-coder.test.d.ts +0 -2
- package/dist/esm/move-coder.test.d.ts.map +0 -1
- package/dist/esm/move-coder.test.js.map +0 -1
- package/dist/esm/sui-chain-adapter.d.ts +0 -15
- package/dist/esm/sui-chain-adapter.d.ts.map +0 -1
- package/dist/esm/sui-chain-adapter.js +0 -91
- package/dist/esm/sui-chain-adapter.js.map +0 -1
- package/dist/esm/to-internal.d.ts +0 -4
- package/dist/esm/to-internal.d.ts.map +0 -1
- package/dist/esm/to-internal.js +0 -81
- package/dist/esm/to-internal.js.map +0 -1
- package/dist/esm/transaction.d.ts +0 -6
- package/dist/esm/transaction.d.ts.map +0 -1
- package/dist/esm/transaction.js +0 -28
- package/dist/esm/transaction.js.map +0 -1
- package/src/abis/0x1.json +0 -2063
- package/src/abis/0x2.json +0 -13410
- package/src/abis/0x3.json +0 -8645
- package/src/builtin/0x1.ts +0 -3000
- package/src/builtin/0x2.ts +0 -14596
- package/src/builtin/0x3.ts +0 -4188
- package/src/builtin/index.ts +0 -6
- package/src/codegen/codegen.ts +0 -211
- package/src/codegen/index.ts +0 -1
- package/src/codegen/run.ts +0 -20
- package/src/index.ts +0 -4
- package/src/models.ts +0 -21
- package/src/move-coder.ts +0 -276
- package/src/sui-chain-adapter.ts +0 -121
- package/src/tests/abis/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.json +0 -265
- package/src/tests/abis/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.json +0 -2429
- package/src/tests/abis/testnet/0xdee9.json +0 -5523
- package/src/tests/abis/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.json +0 -10060
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +0 -303
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +0 -2697
- package/src/tests/types/testnet/0xdee9.ts +0 -3099
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +0 -10215
- package/src/tests/types/testnet/index.ts +0 -7
- package/src/to-internal.ts +0 -109
- package/src/transaction.ts +0 -31
package/dist/cjs/builtin/0x1.js
DELETED
|
@@ -1,2038 +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.loadAllTypes = exports.vector = 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
|
-
/* Generated modules for account 0x1 */
|
|
8
|
-
const move_1 = require("@typemove/move");
|
|
9
|
-
const sui_1 = require("@typemove/sui");
|
|
10
|
-
const sui_2 = require("@typemove/sui");
|
|
11
|
-
const transactions_1 = require("@mysten/sui.js/transactions");
|
|
12
|
-
const sui_3 = require("@typemove/sui");
|
|
13
|
-
var address;
|
|
14
|
-
(function (address) {
|
|
15
|
-
let builder;
|
|
16
|
-
(function (builder) {
|
|
17
|
-
function length(tx, args) {
|
|
18
|
-
const _args = [];
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return tx.moveCall({
|
|
21
|
-
target: "0x1::address::length",
|
|
22
|
-
arguments: _args,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
builder.length = length;
|
|
26
|
-
})(builder = address.builder || (address.builder = {}));
|
|
27
|
-
let view;
|
|
28
|
-
(function (view) {
|
|
29
|
-
async function length(client, args) {
|
|
30
|
-
const tx = new transactions_1.TransactionBlock();
|
|
31
|
-
builder.length(tx, args);
|
|
32
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
33
|
-
transactionBlock: tx,
|
|
34
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
35
|
-
});
|
|
36
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
37
|
-
}
|
|
38
|
-
view.length = length;
|
|
39
|
-
})(view = address.view || (address.view = {}));
|
|
40
|
-
})(address || (exports.address = address = {}));
|
|
41
|
-
var ascii;
|
|
42
|
-
(function (ascii) {
|
|
43
|
-
let Char;
|
|
44
|
-
(function (Char) {
|
|
45
|
-
Char.TYPE_QNAME = "0x1::ascii::Char";
|
|
46
|
-
const TYPE = new move_1.TypeDescriptor(Char.TYPE_QNAME);
|
|
47
|
-
function type() {
|
|
48
|
-
return TYPE.apply();
|
|
49
|
-
}
|
|
50
|
-
Char.type = type;
|
|
51
|
-
})(Char = ascii.Char || (ascii.Char = {}));
|
|
52
|
-
let String;
|
|
53
|
-
(function (String) {
|
|
54
|
-
String.TYPE_QNAME = "0x1::ascii::String";
|
|
55
|
-
const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
|
|
56
|
-
function type() {
|
|
57
|
-
return TYPE.apply();
|
|
58
|
-
}
|
|
59
|
-
String.type = type;
|
|
60
|
-
})(String = ascii.String || (ascii.String = {}));
|
|
61
|
-
let builder;
|
|
62
|
-
(function (builder) {
|
|
63
|
-
function allCharactersPrintable(tx, args) {
|
|
64
|
-
const _args = [];
|
|
65
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
return tx.moveCall({
|
|
68
|
-
target: "0x1::ascii::all_characters_printable",
|
|
69
|
-
arguments: _args,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
builder.allCharactersPrintable = allCharactersPrintable;
|
|
73
|
-
function asBytes(tx, args) {
|
|
74
|
-
const _args = [];
|
|
75
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
76
|
-
// @ts-ignore
|
|
77
|
-
return tx.moveCall({
|
|
78
|
-
target: "0x1::ascii::as_bytes",
|
|
79
|
-
arguments: _args,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
builder.asBytes = asBytes;
|
|
83
|
-
function byte(tx, args) {
|
|
84
|
-
const _args = [];
|
|
85
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
return tx.moveCall({
|
|
88
|
-
target: "0x1::ascii::byte",
|
|
89
|
-
arguments: _args,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
builder.byte = byte;
|
|
93
|
-
function char(tx, args) {
|
|
94
|
-
const _args = [];
|
|
95
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
96
|
-
// @ts-ignore
|
|
97
|
-
return tx.moveCall({
|
|
98
|
-
target: "0x1::ascii::char",
|
|
99
|
-
arguments: _args,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
builder.char = char;
|
|
103
|
-
function intoBytes(tx, args) {
|
|
104
|
-
const _args = [];
|
|
105
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
return tx.moveCall({
|
|
108
|
-
target: "0x1::ascii::into_bytes",
|
|
109
|
-
arguments: _args,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
builder.intoBytes = intoBytes;
|
|
113
|
-
function isPrintableChar(tx, args) {
|
|
114
|
-
const _args = [];
|
|
115
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
116
|
-
// @ts-ignore
|
|
117
|
-
return tx.moveCall({
|
|
118
|
-
target: "0x1::ascii::is_printable_char",
|
|
119
|
-
arguments: _args,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
builder.isPrintableChar = isPrintableChar;
|
|
123
|
-
function isValidChar(tx, args) {
|
|
124
|
-
const _args = [];
|
|
125
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
126
|
-
// @ts-ignore
|
|
127
|
-
return tx.moveCall({
|
|
128
|
-
target: "0x1::ascii::is_valid_char",
|
|
129
|
-
arguments: _args,
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
builder.isValidChar = isValidChar;
|
|
133
|
-
function length(tx, args) {
|
|
134
|
-
const _args = [];
|
|
135
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
136
|
-
// @ts-ignore
|
|
137
|
-
return tx.moveCall({
|
|
138
|
-
target: "0x1::ascii::length",
|
|
139
|
-
arguments: _args,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
builder.length = length;
|
|
143
|
-
function popChar(tx, args) {
|
|
144
|
-
const _args = [];
|
|
145
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
146
|
-
// @ts-ignore
|
|
147
|
-
return tx.moveCall({
|
|
148
|
-
target: "0x1::ascii::pop_char",
|
|
149
|
-
arguments: _args,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
builder.popChar = popChar;
|
|
153
|
-
function pushChar(tx, args) {
|
|
154
|
-
const _args = [];
|
|
155
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
156
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
157
|
-
// @ts-ignore
|
|
158
|
-
return tx.moveCall({
|
|
159
|
-
target: "0x1::ascii::push_char",
|
|
160
|
-
arguments: _args,
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
builder.pushChar = pushChar;
|
|
164
|
-
function string_(tx, args) {
|
|
165
|
-
const _args = [];
|
|
166
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
167
|
-
// @ts-ignore
|
|
168
|
-
return tx.moveCall({
|
|
169
|
-
target: "0x1::ascii::string",
|
|
170
|
-
arguments: _args,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
builder.string_ = string_;
|
|
174
|
-
function tryString(tx, args) {
|
|
175
|
-
const _args = [];
|
|
176
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
177
|
-
// @ts-ignore
|
|
178
|
-
return tx.moveCall({
|
|
179
|
-
target: "0x1::ascii::try_string",
|
|
180
|
-
arguments: _args,
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
builder.tryString = tryString;
|
|
184
|
-
})(builder = ascii.builder || (ascii.builder = {}));
|
|
185
|
-
let view;
|
|
186
|
-
(function (view) {
|
|
187
|
-
async function allCharactersPrintable(client, args) {
|
|
188
|
-
const tx = new transactions_1.TransactionBlock();
|
|
189
|
-
builder.allCharactersPrintable(tx, args);
|
|
190
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
191
|
-
transactionBlock: tx,
|
|
192
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
193
|
-
});
|
|
194
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
195
|
-
}
|
|
196
|
-
view.allCharactersPrintable = allCharactersPrintable;
|
|
197
|
-
async function asBytes(client, args) {
|
|
198
|
-
const tx = new transactions_1.TransactionBlock();
|
|
199
|
-
builder.asBytes(tx, args);
|
|
200
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
201
|
-
transactionBlock: tx,
|
|
202
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
203
|
-
});
|
|
204
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
205
|
-
}
|
|
206
|
-
view.asBytes = asBytes;
|
|
207
|
-
async function byte(client, args) {
|
|
208
|
-
const tx = new transactions_1.TransactionBlock();
|
|
209
|
-
builder.byte(tx, args);
|
|
210
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
211
|
-
transactionBlock: tx,
|
|
212
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
213
|
-
});
|
|
214
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
215
|
-
}
|
|
216
|
-
view.byte = byte;
|
|
217
|
-
async function char(client, args) {
|
|
218
|
-
const tx = new transactions_1.TransactionBlock();
|
|
219
|
-
builder.char(tx, args);
|
|
220
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
221
|
-
transactionBlock: tx,
|
|
222
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
223
|
-
});
|
|
224
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
225
|
-
}
|
|
226
|
-
view.char = char;
|
|
227
|
-
async function intoBytes(client, args) {
|
|
228
|
-
const tx = new transactions_1.TransactionBlock();
|
|
229
|
-
builder.intoBytes(tx, args);
|
|
230
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
231
|
-
transactionBlock: tx,
|
|
232
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
233
|
-
});
|
|
234
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
235
|
-
}
|
|
236
|
-
view.intoBytes = intoBytes;
|
|
237
|
-
async function isPrintableChar(client, args) {
|
|
238
|
-
const tx = new transactions_1.TransactionBlock();
|
|
239
|
-
builder.isPrintableChar(tx, args);
|
|
240
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
241
|
-
transactionBlock: tx,
|
|
242
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
243
|
-
});
|
|
244
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
245
|
-
}
|
|
246
|
-
view.isPrintableChar = isPrintableChar;
|
|
247
|
-
async function isValidChar(client, args) {
|
|
248
|
-
const tx = new transactions_1.TransactionBlock();
|
|
249
|
-
builder.isValidChar(tx, args);
|
|
250
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
251
|
-
transactionBlock: tx,
|
|
252
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
253
|
-
});
|
|
254
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
255
|
-
}
|
|
256
|
-
view.isValidChar = isValidChar;
|
|
257
|
-
async function length(client, args) {
|
|
258
|
-
const tx = new transactions_1.TransactionBlock();
|
|
259
|
-
builder.length(tx, args);
|
|
260
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
261
|
-
transactionBlock: tx,
|
|
262
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
263
|
-
});
|
|
264
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
265
|
-
}
|
|
266
|
-
view.length = length;
|
|
267
|
-
async function popChar(client, args) {
|
|
268
|
-
const tx = new transactions_1.TransactionBlock();
|
|
269
|
-
builder.popChar(tx, args);
|
|
270
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
271
|
-
transactionBlock: tx,
|
|
272
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
273
|
-
});
|
|
274
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
275
|
-
}
|
|
276
|
-
view.popChar = popChar;
|
|
277
|
-
async function pushChar(client, args) {
|
|
278
|
-
const tx = new transactions_1.TransactionBlock();
|
|
279
|
-
builder.pushChar(tx, args);
|
|
280
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
281
|
-
transactionBlock: tx,
|
|
282
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
283
|
-
});
|
|
284
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
285
|
-
}
|
|
286
|
-
view.pushChar = pushChar;
|
|
287
|
-
async function string_(client, args) {
|
|
288
|
-
const tx = new transactions_1.TransactionBlock();
|
|
289
|
-
builder.string_(tx, args);
|
|
290
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
291
|
-
transactionBlock: tx,
|
|
292
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
293
|
-
});
|
|
294
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
295
|
-
}
|
|
296
|
-
view.string_ = string_;
|
|
297
|
-
async function tryString(client, args) {
|
|
298
|
-
const tx = new transactions_1.TransactionBlock();
|
|
299
|
-
builder.tryString(tx, args);
|
|
300
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
301
|
-
transactionBlock: tx,
|
|
302
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
303
|
-
});
|
|
304
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
305
|
-
}
|
|
306
|
-
view.tryString = tryString;
|
|
307
|
-
})(view = ascii.view || (ascii.view = {}));
|
|
308
|
-
})(ascii || (exports.ascii = ascii = {}));
|
|
309
|
-
var bcs;
|
|
310
|
-
(function (bcs) {
|
|
311
|
-
let builder;
|
|
312
|
-
(function (builder) {
|
|
313
|
-
function toBytes(tx, args, typeArguments) {
|
|
314
|
-
const _args = [];
|
|
315
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
316
|
-
// @ts-ignore
|
|
317
|
-
return tx.moveCall({
|
|
318
|
-
target: "0x1::bcs::to_bytes",
|
|
319
|
-
arguments: _args,
|
|
320
|
-
typeArguments: [
|
|
321
|
-
typeof typeArguments[0] === "string"
|
|
322
|
-
? typeArguments[0]
|
|
323
|
-
: typeArguments[0].getSignature(),
|
|
324
|
-
],
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
builder.toBytes = toBytes;
|
|
328
|
-
})(builder = bcs.builder || (bcs.builder = {}));
|
|
329
|
-
let view;
|
|
330
|
-
(function (view) {
|
|
331
|
-
async function toBytes(client, args, typeArguments) {
|
|
332
|
-
const tx = new transactions_1.TransactionBlock();
|
|
333
|
-
builder.toBytes(tx, args, typeArguments);
|
|
334
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
335
|
-
transactionBlock: tx,
|
|
336
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
337
|
-
});
|
|
338
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
339
|
-
}
|
|
340
|
-
view.toBytes = toBytes;
|
|
341
|
-
})(view = bcs.view || (bcs.view = {}));
|
|
342
|
-
})(bcs || (exports.bcs = bcs = {}));
|
|
343
|
-
var bit_vector;
|
|
344
|
-
(function (bit_vector) {
|
|
345
|
-
let BitVector;
|
|
346
|
-
(function (BitVector) {
|
|
347
|
-
BitVector.TYPE_QNAME = "0x1::bit_vector::BitVector";
|
|
348
|
-
const TYPE = new move_1.TypeDescriptor(BitVector.TYPE_QNAME);
|
|
349
|
-
function type() {
|
|
350
|
-
return TYPE.apply();
|
|
351
|
-
}
|
|
352
|
-
BitVector.type = type;
|
|
353
|
-
})(BitVector = bit_vector.BitVector || (bit_vector.BitVector = {}));
|
|
354
|
-
let builder;
|
|
355
|
-
(function (builder) {
|
|
356
|
-
function isIndexSet(tx, args) {
|
|
357
|
-
const _args = [];
|
|
358
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
359
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
360
|
-
// @ts-ignore
|
|
361
|
-
return tx.moveCall({
|
|
362
|
-
target: "0x1::bit_vector::is_index_set",
|
|
363
|
-
arguments: _args,
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
builder.isIndexSet = isIndexSet;
|
|
367
|
-
function length(tx, args) {
|
|
368
|
-
const _args = [];
|
|
369
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
370
|
-
// @ts-ignore
|
|
371
|
-
return tx.moveCall({
|
|
372
|
-
target: "0x1::bit_vector::length",
|
|
373
|
-
arguments: _args,
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
builder.length = length;
|
|
377
|
-
function longestSetSequenceStartingAt(tx, args) {
|
|
378
|
-
const _args = [];
|
|
379
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
380
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
381
|
-
// @ts-ignore
|
|
382
|
-
return tx.moveCall({
|
|
383
|
-
target: "0x1::bit_vector::longest_set_sequence_starting_at",
|
|
384
|
-
arguments: _args,
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
builder.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
|
|
388
|
-
function new_(tx, args) {
|
|
389
|
-
const _args = [];
|
|
390
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
391
|
-
// @ts-ignore
|
|
392
|
-
return tx.moveCall({
|
|
393
|
-
target: "0x1::bit_vector::new",
|
|
394
|
-
arguments: _args,
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
builder.new_ = new_;
|
|
398
|
-
function set(tx, args) {
|
|
399
|
-
const _args = [];
|
|
400
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
401
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
402
|
-
// @ts-ignore
|
|
403
|
-
return tx.moveCall({
|
|
404
|
-
target: "0x1::bit_vector::set",
|
|
405
|
-
arguments: _args,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
builder.set = set;
|
|
409
|
-
function shiftLeft(tx, args) {
|
|
410
|
-
const _args = [];
|
|
411
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
412
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
413
|
-
// @ts-ignore
|
|
414
|
-
return tx.moveCall({
|
|
415
|
-
target: "0x1::bit_vector::shift_left",
|
|
416
|
-
arguments: _args,
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
builder.shiftLeft = shiftLeft;
|
|
420
|
-
function unset(tx, args) {
|
|
421
|
-
const _args = [];
|
|
422
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
423
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
424
|
-
// @ts-ignore
|
|
425
|
-
return tx.moveCall({
|
|
426
|
-
target: "0x1::bit_vector::unset",
|
|
427
|
-
arguments: _args,
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
builder.unset = unset;
|
|
431
|
-
})(builder = bit_vector.builder || (bit_vector.builder = {}));
|
|
432
|
-
let view;
|
|
433
|
-
(function (view) {
|
|
434
|
-
async function isIndexSet(client, args) {
|
|
435
|
-
const tx = new transactions_1.TransactionBlock();
|
|
436
|
-
builder.isIndexSet(tx, args);
|
|
437
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
438
|
-
transactionBlock: tx,
|
|
439
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
440
|
-
});
|
|
441
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
442
|
-
}
|
|
443
|
-
view.isIndexSet = isIndexSet;
|
|
444
|
-
async function length(client, args) {
|
|
445
|
-
const tx = new transactions_1.TransactionBlock();
|
|
446
|
-
builder.length(tx, args);
|
|
447
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
448
|
-
transactionBlock: tx,
|
|
449
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
450
|
-
});
|
|
451
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
452
|
-
}
|
|
453
|
-
view.length = length;
|
|
454
|
-
async function longestSetSequenceStartingAt(client, args) {
|
|
455
|
-
const tx = new transactions_1.TransactionBlock();
|
|
456
|
-
builder.longestSetSequenceStartingAt(tx, args);
|
|
457
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
458
|
-
transactionBlock: tx,
|
|
459
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
460
|
-
});
|
|
461
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
462
|
-
}
|
|
463
|
-
view.longestSetSequenceStartingAt = longestSetSequenceStartingAt;
|
|
464
|
-
async function new_(client, args) {
|
|
465
|
-
const tx = new transactions_1.TransactionBlock();
|
|
466
|
-
builder.new_(tx, args);
|
|
467
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
468
|
-
transactionBlock: tx,
|
|
469
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
470
|
-
});
|
|
471
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
472
|
-
}
|
|
473
|
-
view.new_ = new_;
|
|
474
|
-
async function set(client, args) {
|
|
475
|
-
const tx = new transactions_1.TransactionBlock();
|
|
476
|
-
builder.set(tx, args);
|
|
477
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
478
|
-
transactionBlock: tx,
|
|
479
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
480
|
-
});
|
|
481
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
482
|
-
}
|
|
483
|
-
view.set = set;
|
|
484
|
-
async function shiftLeft(client, args) {
|
|
485
|
-
const tx = new transactions_1.TransactionBlock();
|
|
486
|
-
builder.shiftLeft(tx, args);
|
|
487
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
488
|
-
transactionBlock: tx,
|
|
489
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
490
|
-
});
|
|
491
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
492
|
-
}
|
|
493
|
-
view.shiftLeft = shiftLeft;
|
|
494
|
-
async function unset(client, args) {
|
|
495
|
-
const tx = new transactions_1.TransactionBlock();
|
|
496
|
-
builder.unset(tx, args);
|
|
497
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
498
|
-
transactionBlock: tx,
|
|
499
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
500
|
-
});
|
|
501
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
502
|
-
}
|
|
503
|
-
view.unset = unset;
|
|
504
|
-
})(view = bit_vector.view || (bit_vector.view = {}));
|
|
505
|
-
})(bit_vector || (exports.bit_vector = bit_vector = {}));
|
|
506
|
-
var debug;
|
|
507
|
-
(function (debug) {
|
|
508
|
-
let builder;
|
|
509
|
-
(function (builder) {
|
|
510
|
-
function print(tx, args, typeArguments) {
|
|
511
|
-
const _args = [];
|
|
512
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
513
|
-
// @ts-ignore
|
|
514
|
-
return tx.moveCall({
|
|
515
|
-
target: "0x1::debug::print",
|
|
516
|
-
arguments: _args,
|
|
517
|
-
typeArguments: [
|
|
518
|
-
typeof typeArguments[0] === "string"
|
|
519
|
-
? typeArguments[0]
|
|
520
|
-
: typeArguments[0].getSignature(),
|
|
521
|
-
],
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
builder.print = print;
|
|
525
|
-
function printStackTrace(tx, args) {
|
|
526
|
-
const _args = [];
|
|
527
|
-
// @ts-ignore
|
|
528
|
-
return tx.moveCall({
|
|
529
|
-
target: "0x1::debug::print_stack_trace",
|
|
530
|
-
arguments: _args,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
builder.printStackTrace = printStackTrace;
|
|
534
|
-
})(builder = debug.builder || (debug.builder = {}));
|
|
535
|
-
let view;
|
|
536
|
-
(function (view) {
|
|
537
|
-
async function print(client, args, typeArguments) {
|
|
538
|
-
const tx = new transactions_1.TransactionBlock();
|
|
539
|
-
builder.print(tx, args, typeArguments);
|
|
540
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
541
|
-
transactionBlock: tx,
|
|
542
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
543
|
-
});
|
|
544
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
545
|
-
}
|
|
546
|
-
view.print = print;
|
|
547
|
-
async function printStackTrace(client, args) {
|
|
548
|
-
const tx = new transactions_1.TransactionBlock();
|
|
549
|
-
builder.printStackTrace(tx, args);
|
|
550
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
551
|
-
transactionBlock: tx,
|
|
552
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
553
|
-
});
|
|
554
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
555
|
-
}
|
|
556
|
-
view.printStackTrace = printStackTrace;
|
|
557
|
-
})(view = debug.view || (debug.view = {}));
|
|
558
|
-
})(debug || (exports.debug = debug = {}));
|
|
559
|
-
var fixed_point32;
|
|
560
|
-
(function (fixed_point32) {
|
|
561
|
-
let FixedPoint32;
|
|
562
|
-
(function (FixedPoint32) {
|
|
563
|
-
FixedPoint32.TYPE_QNAME = "0x1::fixed_point32::FixedPoint32";
|
|
564
|
-
const TYPE = new move_1.TypeDescriptor(FixedPoint32.TYPE_QNAME);
|
|
565
|
-
function type() {
|
|
566
|
-
return TYPE.apply();
|
|
567
|
-
}
|
|
568
|
-
FixedPoint32.type = type;
|
|
569
|
-
})(FixedPoint32 = fixed_point32.FixedPoint32 || (fixed_point32.FixedPoint32 = {}));
|
|
570
|
-
let builder;
|
|
571
|
-
(function (builder) {
|
|
572
|
-
function createFromRational(tx, args) {
|
|
573
|
-
const _args = [];
|
|
574
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
575
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
576
|
-
// @ts-ignore
|
|
577
|
-
return tx.moveCall({
|
|
578
|
-
target: "0x1::fixed_point32::create_from_rational",
|
|
579
|
-
arguments: _args,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
builder.createFromRational = createFromRational;
|
|
583
|
-
function createFromRawValue(tx, args) {
|
|
584
|
-
const _args = [];
|
|
585
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
586
|
-
// @ts-ignore
|
|
587
|
-
return tx.moveCall({
|
|
588
|
-
target: "0x1::fixed_point32::create_from_raw_value",
|
|
589
|
-
arguments: _args,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
builder.createFromRawValue = createFromRawValue;
|
|
593
|
-
function divideU64(tx, args) {
|
|
594
|
-
const _args = [];
|
|
595
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
596
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
597
|
-
// @ts-ignore
|
|
598
|
-
return tx.moveCall({
|
|
599
|
-
target: "0x1::fixed_point32::divide_u64",
|
|
600
|
-
arguments: _args,
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
builder.divideU64 = divideU64;
|
|
604
|
-
function getRawValue(tx, args) {
|
|
605
|
-
const _args = [];
|
|
606
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
607
|
-
// @ts-ignore
|
|
608
|
-
return tx.moveCall({
|
|
609
|
-
target: "0x1::fixed_point32::get_raw_value",
|
|
610
|
-
arguments: _args,
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
builder.getRawValue = getRawValue;
|
|
614
|
-
function isZero(tx, args) {
|
|
615
|
-
const _args = [];
|
|
616
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
617
|
-
// @ts-ignore
|
|
618
|
-
return tx.moveCall({
|
|
619
|
-
target: "0x1::fixed_point32::is_zero",
|
|
620
|
-
arguments: _args,
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
builder.isZero = isZero;
|
|
624
|
-
function multiplyU64(tx, args) {
|
|
625
|
-
const _args = [];
|
|
626
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
627
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
628
|
-
// @ts-ignore
|
|
629
|
-
return tx.moveCall({
|
|
630
|
-
target: "0x1::fixed_point32::multiply_u64",
|
|
631
|
-
arguments: _args,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
builder.multiplyU64 = multiplyU64;
|
|
635
|
-
})(builder = fixed_point32.builder || (fixed_point32.builder = {}));
|
|
636
|
-
let view;
|
|
637
|
-
(function (view) {
|
|
638
|
-
async function createFromRational(client, args) {
|
|
639
|
-
const tx = new transactions_1.TransactionBlock();
|
|
640
|
-
builder.createFromRational(tx, args);
|
|
641
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
642
|
-
transactionBlock: tx,
|
|
643
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
644
|
-
});
|
|
645
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
646
|
-
}
|
|
647
|
-
view.createFromRational = createFromRational;
|
|
648
|
-
async function createFromRawValue(client, args) {
|
|
649
|
-
const tx = new transactions_1.TransactionBlock();
|
|
650
|
-
builder.createFromRawValue(tx, args);
|
|
651
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
652
|
-
transactionBlock: tx,
|
|
653
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
654
|
-
});
|
|
655
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
656
|
-
}
|
|
657
|
-
view.createFromRawValue = createFromRawValue;
|
|
658
|
-
async function divideU64(client, args) {
|
|
659
|
-
const tx = new transactions_1.TransactionBlock();
|
|
660
|
-
builder.divideU64(tx, args);
|
|
661
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
662
|
-
transactionBlock: tx,
|
|
663
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
664
|
-
});
|
|
665
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
666
|
-
}
|
|
667
|
-
view.divideU64 = divideU64;
|
|
668
|
-
async function getRawValue(client, args) {
|
|
669
|
-
const tx = new transactions_1.TransactionBlock();
|
|
670
|
-
builder.getRawValue(tx, args);
|
|
671
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
672
|
-
transactionBlock: tx,
|
|
673
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
674
|
-
});
|
|
675
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
676
|
-
}
|
|
677
|
-
view.getRawValue = getRawValue;
|
|
678
|
-
async function isZero(client, args) {
|
|
679
|
-
const tx = new transactions_1.TransactionBlock();
|
|
680
|
-
builder.isZero(tx, args);
|
|
681
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
682
|
-
transactionBlock: tx,
|
|
683
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
684
|
-
});
|
|
685
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
686
|
-
}
|
|
687
|
-
view.isZero = isZero;
|
|
688
|
-
async function multiplyU64(client, args) {
|
|
689
|
-
const tx = new transactions_1.TransactionBlock();
|
|
690
|
-
builder.multiplyU64(tx, args);
|
|
691
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
692
|
-
transactionBlock: tx,
|
|
693
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
694
|
-
});
|
|
695
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
696
|
-
}
|
|
697
|
-
view.multiplyU64 = multiplyU64;
|
|
698
|
-
})(view = fixed_point32.view || (fixed_point32.view = {}));
|
|
699
|
-
})(fixed_point32 || (exports.fixed_point32 = fixed_point32 = {}));
|
|
700
|
-
var hash;
|
|
701
|
-
(function (hash) {
|
|
702
|
-
let builder;
|
|
703
|
-
(function (builder) {
|
|
704
|
-
function sha2256(tx, args) {
|
|
705
|
-
const _args = [];
|
|
706
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
707
|
-
// @ts-ignore
|
|
708
|
-
return tx.moveCall({
|
|
709
|
-
target: "0x1::hash::sha2_256",
|
|
710
|
-
arguments: _args,
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
builder.sha2256 = sha2256;
|
|
714
|
-
function sha3256(tx, args) {
|
|
715
|
-
const _args = [];
|
|
716
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
717
|
-
// @ts-ignore
|
|
718
|
-
return tx.moveCall({
|
|
719
|
-
target: "0x1::hash::sha3_256",
|
|
720
|
-
arguments: _args,
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
builder.sha3256 = sha3256;
|
|
724
|
-
})(builder = hash.builder || (hash.builder = {}));
|
|
725
|
-
let view;
|
|
726
|
-
(function (view) {
|
|
727
|
-
async function sha2256(client, args) {
|
|
728
|
-
const tx = new transactions_1.TransactionBlock();
|
|
729
|
-
builder.sha2256(tx, args);
|
|
730
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
731
|
-
transactionBlock: tx,
|
|
732
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
733
|
-
});
|
|
734
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
735
|
-
}
|
|
736
|
-
view.sha2256 = sha2256;
|
|
737
|
-
async function sha3256(client, args) {
|
|
738
|
-
const tx = new transactions_1.TransactionBlock();
|
|
739
|
-
builder.sha3256(tx, args);
|
|
740
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
741
|
-
transactionBlock: tx,
|
|
742
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
743
|
-
});
|
|
744
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
745
|
-
}
|
|
746
|
-
view.sha3256 = sha3256;
|
|
747
|
-
})(view = hash.view || (hash.view = {}));
|
|
748
|
-
})(hash || (exports.hash = hash = {}));
|
|
749
|
-
var option;
|
|
750
|
-
(function (option) {
|
|
751
|
-
let Option;
|
|
752
|
-
(function (Option) {
|
|
753
|
-
Option.TYPE_QNAME = "0x1::option::Option";
|
|
754
|
-
const TYPE = new move_1.TypeDescriptor(Option.TYPE_QNAME);
|
|
755
|
-
function type(arg0 = move_1.ANY_TYPE) {
|
|
756
|
-
return TYPE.apply(arg0);
|
|
757
|
-
}
|
|
758
|
-
Option.type = type;
|
|
759
|
-
})(Option = option.Option || (option.Option = {}));
|
|
760
|
-
let builder;
|
|
761
|
-
(function (builder) {
|
|
762
|
-
function borrow(tx, args, typeArguments) {
|
|
763
|
-
const _args = [];
|
|
764
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
765
|
-
// @ts-ignore
|
|
766
|
-
return tx.moveCall({
|
|
767
|
-
target: "0x1::option::borrow",
|
|
768
|
-
arguments: _args,
|
|
769
|
-
typeArguments: [
|
|
770
|
-
typeof typeArguments[0] === "string"
|
|
771
|
-
? typeArguments[0]
|
|
772
|
-
: typeArguments[0].getSignature(),
|
|
773
|
-
],
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
builder.borrow = borrow;
|
|
777
|
-
function borrowMut(tx, args, typeArguments) {
|
|
778
|
-
const _args = [];
|
|
779
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
780
|
-
// @ts-ignore
|
|
781
|
-
return tx.moveCall({
|
|
782
|
-
target: "0x1::option::borrow_mut",
|
|
783
|
-
arguments: _args,
|
|
784
|
-
typeArguments: [
|
|
785
|
-
typeof typeArguments[0] === "string"
|
|
786
|
-
? typeArguments[0]
|
|
787
|
-
: typeArguments[0].getSignature(),
|
|
788
|
-
],
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
builder.borrowMut = borrowMut;
|
|
792
|
-
function borrowWithDefault(tx, args, typeArguments) {
|
|
793
|
-
const _args = [];
|
|
794
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
795
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
796
|
-
// @ts-ignore
|
|
797
|
-
return tx.moveCall({
|
|
798
|
-
target: "0x1::option::borrow_with_default",
|
|
799
|
-
arguments: _args,
|
|
800
|
-
typeArguments: [
|
|
801
|
-
typeof typeArguments[0] === "string"
|
|
802
|
-
? typeArguments[0]
|
|
803
|
-
: typeArguments[0].getSignature(),
|
|
804
|
-
],
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
builder.borrowWithDefault = borrowWithDefault;
|
|
808
|
-
function contains(tx, args, typeArguments) {
|
|
809
|
-
const _args = [];
|
|
810
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
811
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
812
|
-
// @ts-ignore
|
|
813
|
-
return tx.moveCall({
|
|
814
|
-
target: "0x1::option::contains",
|
|
815
|
-
arguments: _args,
|
|
816
|
-
typeArguments: [
|
|
817
|
-
typeof typeArguments[0] === "string"
|
|
818
|
-
? typeArguments[0]
|
|
819
|
-
: typeArguments[0].getSignature(),
|
|
820
|
-
],
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
builder.contains = contains;
|
|
824
|
-
function destroyNone(tx, args, typeArguments) {
|
|
825
|
-
const _args = [];
|
|
826
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
827
|
-
// @ts-ignore
|
|
828
|
-
return tx.moveCall({
|
|
829
|
-
target: "0x1::option::destroy_none",
|
|
830
|
-
arguments: _args,
|
|
831
|
-
typeArguments: [
|
|
832
|
-
typeof typeArguments[0] === "string"
|
|
833
|
-
? typeArguments[0]
|
|
834
|
-
: typeArguments[0].getSignature(),
|
|
835
|
-
],
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
builder.destroyNone = destroyNone;
|
|
839
|
-
function destroySome(tx, args, typeArguments) {
|
|
840
|
-
const _args = [];
|
|
841
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
842
|
-
// @ts-ignore
|
|
843
|
-
return tx.moveCall({
|
|
844
|
-
target: "0x1::option::destroy_some",
|
|
845
|
-
arguments: _args,
|
|
846
|
-
typeArguments: [
|
|
847
|
-
typeof typeArguments[0] === "string"
|
|
848
|
-
? typeArguments[0]
|
|
849
|
-
: typeArguments[0].getSignature(),
|
|
850
|
-
],
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
builder.destroySome = destroySome;
|
|
854
|
-
function destroyWithDefault(tx, args, typeArguments) {
|
|
855
|
-
const _args = [];
|
|
856
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
857
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
858
|
-
// @ts-ignore
|
|
859
|
-
return tx.moveCall({
|
|
860
|
-
target: "0x1::option::destroy_with_default",
|
|
861
|
-
arguments: _args,
|
|
862
|
-
typeArguments: [
|
|
863
|
-
typeof typeArguments[0] === "string"
|
|
864
|
-
? typeArguments[0]
|
|
865
|
-
: typeArguments[0].getSignature(),
|
|
866
|
-
],
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
builder.destroyWithDefault = destroyWithDefault;
|
|
870
|
-
function extract(tx, args, typeArguments) {
|
|
871
|
-
const _args = [];
|
|
872
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
873
|
-
// @ts-ignore
|
|
874
|
-
return tx.moveCall({
|
|
875
|
-
target: "0x1::option::extract",
|
|
876
|
-
arguments: _args,
|
|
877
|
-
typeArguments: [
|
|
878
|
-
typeof typeArguments[0] === "string"
|
|
879
|
-
? typeArguments[0]
|
|
880
|
-
: typeArguments[0].getSignature(),
|
|
881
|
-
],
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
builder.extract = extract;
|
|
885
|
-
function fill(tx, args, typeArguments) {
|
|
886
|
-
const _args = [];
|
|
887
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
888
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
889
|
-
// @ts-ignore
|
|
890
|
-
return tx.moveCall({
|
|
891
|
-
target: "0x1::option::fill",
|
|
892
|
-
arguments: _args,
|
|
893
|
-
typeArguments: [
|
|
894
|
-
typeof typeArguments[0] === "string"
|
|
895
|
-
? typeArguments[0]
|
|
896
|
-
: typeArguments[0].getSignature(),
|
|
897
|
-
],
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
builder.fill = fill;
|
|
901
|
-
function getWithDefault(tx, args, typeArguments) {
|
|
902
|
-
const _args = [];
|
|
903
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
904
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
905
|
-
// @ts-ignore
|
|
906
|
-
return tx.moveCall({
|
|
907
|
-
target: "0x1::option::get_with_default",
|
|
908
|
-
arguments: _args,
|
|
909
|
-
typeArguments: [
|
|
910
|
-
typeof typeArguments[0] === "string"
|
|
911
|
-
? typeArguments[0]
|
|
912
|
-
: typeArguments[0].getSignature(),
|
|
913
|
-
],
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
builder.getWithDefault = getWithDefault;
|
|
917
|
-
function isNone(tx, args, typeArguments) {
|
|
918
|
-
const _args = [];
|
|
919
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
920
|
-
// @ts-ignore
|
|
921
|
-
return tx.moveCall({
|
|
922
|
-
target: "0x1::option::is_none",
|
|
923
|
-
arguments: _args,
|
|
924
|
-
typeArguments: [
|
|
925
|
-
typeof typeArguments[0] === "string"
|
|
926
|
-
? typeArguments[0]
|
|
927
|
-
: typeArguments[0].getSignature(),
|
|
928
|
-
],
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
builder.isNone = isNone;
|
|
932
|
-
function isSome(tx, args, typeArguments) {
|
|
933
|
-
const _args = [];
|
|
934
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
935
|
-
// @ts-ignore
|
|
936
|
-
return tx.moveCall({
|
|
937
|
-
target: "0x1::option::is_some",
|
|
938
|
-
arguments: _args,
|
|
939
|
-
typeArguments: [
|
|
940
|
-
typeof typeArguments[0] === "string"
|
|
941
|
-
? typeArguments[0]
|
|
942
|
-
: typeArguments[0].getSignature(),
|
|
943
|
-
],
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
builder.isSome = isSome;
|
|
947
|
-
function none(tx, args, typeArguments) {
|
|
948
|
-
const _args = [];
|
|
949
|
-
// @ts-ignore
|
|
950
|
-
return tx.moveCall({
|
|
951
|
-
target: "0x1::option::none",
|
|
952
|
-
arguments: _args,
|
|
953
|
-
typeArguments: [
|
|
954
|
-
typeof typeArguments[0] === "string"
|
|
955
|
-
? typeArguments[0]
|
|
956
|
-
: typeArguments[0].getSignature(),
|
|
957
|
-
],
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
builder.none = none;
|
|
961
|
-
function some(tx, args, typeArguments) {
|
|
962
|
-
const _args = [];
|
|
963
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
964
|
-
// @ts-ignore
|
|
965
|
-
return tx.moveCall({
|
|
966
|
-
target: "0x1::option::some",
|
|
967
|
-
arguments: _args,
|
|
968
|
-
typeArguments: [
|
|
969
|
-
typeof typeArguments[0] === "string"
|
|
970
|
-
? typeArguments[0]
|
|
971
|
-
: typeArguments[0].getSignature(),
|
|
972
|
-
],
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
builder.some = some;
|
|
976
|
-
function swap(tx, args, typeArguments) {
|
|
977
|
-
const _args = [];
|
|
978
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
979
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
980
|
-
// @ts-ignore
|
|
981
|
-
return tx.moveCall({
|
|
982
|
-
target: "0x1::option::swap",
|
|
983
|
-
arguments: _args,
|
|
984
|
-
typeArguments: [
|
|
985
|
-
typeof typeArguments[0] === "string"
|
|
986
|
-
? typeArguments[0]
|
|
987
|
-
: typeArguments[0].getSignature(),
|
|
988
|
-
],
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
builder.swap = swap;
|
|
992
|
-
function swapOrFill(tx, args, typeArguments) {
|
|
993
|
-
const _args = [];
|
|
994
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
995
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
996
|
-
// @ts-ignore
|
|
997
|
-
return tx.moveCall({
|
|
998
|
-
target: "0x1::option::swap_or_fill",
|
|
999
|
-
arguments: _args,
|
|
1000
|
-
typeArguments: [
|
|
1001
|
-
typeof typeArguments[0] === "string"
|
|
1002
|
-
? typeArguments[0]
|
|
1003
|
-
: typeArguments[0].getSignature(),
|
|
1004
|
-
],
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
builder.swapOrFill = swapOrFill;
|
|
1008
|
-
function toVec(tx, args, typeArguments) {
|
|
1009
|
-
const _args = [];
|
|
1010
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
1011
|
-
// @ts-ignore
|
|
1012
|
-
return tx.moveCall({
|
|
1013
|
-
target: "0x1::option::to_vec",
|
|
1014
|
-
arguments: _args,
|
|
1015
|
-
typeArguments: [
|
|
1016
|
-
typeof typeArguments[0] === "string"
|
|
1017
|
-
? typeArguments[0]
|
|
1018
|
-
: typeArguments[0].getSignature(),
|
|
1019
|
-
],
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
builder.toVec = toVec;
|
|
1023
|
-
})(builder = option.builder || (option.builder = {}));
|
|
1024
|
-
let view;
|
|
1025
|
-
(function (view) {
|
|
1026
|
-
async function borrow(client, args, typeArguments) {
|
|
1027
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1028
|
-
builder.borrow(tx, args, typeArguments);
|
|
1029
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1030
|
-
transactionBlock: tx,
|
|
1031
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1032
|
-
});
|
|
1033
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1034
|
-
}
|
|
1035
|
-
view.borrow = borrow;
|
|
1036
|
-
async function borrowMut(client, args, typeArguments) {
|
|
1037
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1038
|
-
builder.borrowMut(tx, args, typeArguments);
|
|
1039
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1040
|
-
transactionBlock: tx,
|
|
1041
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1042
|
-
});
|
|
1043
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1044
|
-
}
|
|
1045
|
-
view.borrowMut = borrowMut;
|
|
1046
|
-
async function borrowWithDefault(client, args, typeArguments) {
|
|
1047
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1048
|
-
builder.borrowWithDefault(tx, args, typeArguments);
|
|
1049
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1050
|
-
transactionBlock: tx,
|
|
1051
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1052
|
-
});
|
|
1053
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1054
|
-
}
|
|
1055
|
-
view.borrowWithDefault = borrowWithDefault;
|
|
1056
|
-
async function contains(client, args, typeArguments) {
|
|
1057
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1058
|
-
builder.contains(tx, args, typeArguments);
|
|
1059
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1060
|
-
transactionBlock: tx,
|
|
1061
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1062
|
-
});
|
|
1063
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1064
|
-
}
|
|
1065
|
-
view.contains = contains;
|
|
1066
|
-
async function destroyNone(client, args, typeArguments) {
|
|
1067
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1068
|
-
builder.destroyNone(tx, args, typeArguments);
|
|
1069
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1070
|
-
transactionBlock: tx,
|
|
1071
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1072
|
-
});
|
|
1073
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1074
|
-
}
|
|
1075
|
-
view.destroyNone = destroyNone;
|
|
1076
|
-
async function destroySome(client, args, typeArguments) {
|
|
1077
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1078
|
-
builder.destroySome(tx, args, typeArguments);
|
|
1079
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1080
|
-
transactionBlock: tx,
|
|
1081
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1082
|
-
});
|
|
1083
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1084
|
-
}
|
|
1085
|
-
view.destroySome = destroySome;
|
|
1086
|
-
async function destroyWithDefault(client, args, typeArguments) {
|
|
1087
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1088
|
-
builder.destroyWithDefault(tx, args, typeArguments);
|
|
1089
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1090
|
-
transactionBlock: tx,
|
|
1091
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1092
|
-
});
|
|
1093
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1094
|
-
}
|
|
1095
|
-
view.destroyWithDefault = destroyWithDefault;
|
|
1096
|
-
async function extract(client, args, typeArguments) {
|
|
1097
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1098
|
-
builder.extract(tx, args, typeArguments);
|
|
1099
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1100
|
-
transactionBlock: tx,
|
|
1101
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1102
|
-
});
|
|
1103
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1104
|
-
}
|
|
1105
|
-
view.extract = extract;
|
|
1106
|
-
async function fill(client, args, typeArguments) {
|
|
1107
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1108
|
-
builder.fill(tx, args, typeArguments);
|
|
1109
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1110
|
-
transactionBlock: tx,
|
|
1111
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1112
|
-
});
|
|
1113
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1114
|
-
}
|
|
1115
|
-
view.fill = fill;
|
|
1116
|
-
async function getWithDefault(client, args, typeArguments) {
|
|
1117
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1118
|
-
builder.getWithDefault(tx, args, typeArguments);
|
|
1119
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1120
|
-
transactionBlock: tx,
|
|
1121
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1122
|
-
});
|
|
1123
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1124
|
-
}
|
|
1125
|
-
view.getWithDefault = getWithDefault;
|
|
1126
|
-
async function isNone(client, args, typeArguments) {
|
|
1127
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1128
|
-
builder.isNone(tx, args, typeArguments);
|
|
1129
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1130
|
-
transactionBlock: tx,
|
|
1131
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1132
|
-
});
|
|
1133
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1134
|
-
}
|
|
1135
|
-
view.isNone = isNone;
|
|
1136
|
-
async function isSome(client, args, typeArguments) {
|
|
1137
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1138
|
-
builder.isSome(tx, args, typeArguments);
|
|
1139
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1140
|
-
transactionBlock: tx,
|
|
1141
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1142
|
-
});
|
|
1143
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1144
|
-
}
|
|
1145
|
-
view.isSome = isSome;
|
|
1146
|
-
async function none(client, args, typeArguments) {
|
|
1147
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1148
|
-
builder.none(tx, args, typeArguments);
|
|
1149
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1150
|
-
transactionBlock: tx,
|
|
1151
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1152
|
-
});
|
|
1153
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1154
|
-
}
|
|
1155
|
-
view.none = none;
|
|
1156
|
-
async function some(client, args, typeArguments) {
|
|
1157
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1158
|
-
builder.some(tx, args, typeArguments);
|
|
1159
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1160
|
-
transactionBlock: tx,
|
|
1161
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1162
|
-
});
|
|
1163
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1164
|
-
}
|
|
1165
|
-
view.some = some;
|
|
1166
|
-
async function swap(client, args, typeArguments) {
|
|
1167
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1168
|
-
builder.swap(tx, args, typeArguments);
|
|
1169
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1170
|
-
transactionBlock: tx,
|
|
1171
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1172
|
-
});
|
|
1173
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1174
|
-
}
|
|
1175
|
-
view.swap = swap;
|
|
1176
|
-
async function swapOrFill(client, args, typeArguments) {
|
|
1177
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1178
|
-
builder.swapOrFill(tx, args, typeArguments);
|
|
1179
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1180
|
-
transactionBlock: tx,
|
|
1181
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1182
|
-
});
|
|
1183
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1184
|
-
}
|
|
1185
|
-
view.swapOrFill = swapOrFill;
|
|
1186
|
-
async function toVec(client, args, typeArguments) {
|
|
1187
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1188
|
-
builder.toVec(tx, args, typeArguments);
|
|
1189
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1190
|
-
transactionBlock: tx,
|
|
1191
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1192
|
-
});
|
|
1193
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1194
|
-
}
|
|
1195
|
-
view.toVec = toVec;
|
|
1196
|
-
})(view = option.view || (option.view = {}));
|
|
1197
|
-
})(option || (exports.option = option = {}));
|
|
1198
|
-
var string_;
|
|
1199
|
-
(function (string_) {
|
|
1200
|
-
let String;
|
|
1201
|
-
(function (String) {
|
|
1202
|
-
String.TYPE_QNAME = "0x1::string::String";
|
|
1203
|
-
const TYPE = new move_1.TypeDescriptor(String.TYPE_QNAME);
|
|
1204
|
-
function type() {
|
|
1205
|
-
return TYPE.apply();
|
|
1206
|
-
}
|
|
1207
|
-
String.type = type;
|
|
1208
|
-
})(String = string_.String || (string_.String = {}));
|
|
1209
|
-
let builder;
|
|
1210
|
-
(function (builder) {
|
|
1211
|
-
function append(tx, args) {
|
|
1212
|
-
const _args = [];
|
|
1213
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1214
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1215
|
-
// @ts-ignore
|
|
1216
|
-
return tx.moveCall({
|
|
1217
|
-
target: "0x1::string::append",
|
|
1218
|
-
arguments: _args,
|
|
1219
|
-
});
|
|
1220
|
-
}
|
|
1221
|
-
builder.append = append;
|
|
1222
|
-
function appendUtf8(tx, args) {
|
|
1223
|
-
const _args = [];
|
|
1224
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1225
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1226
|
-
// @ts-ignore
|
|
1227
|
-
return tx.moveCall({
|
|
1228
|
-
target: "0x1::string::append_utf8",
|
|
1229
|
-
arguments: _args,
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
builder.appendUtf8 = appendUtf8;
|
|
1233
|
-
function bytes(tx, args) {
|
|
1234
|
-
const _args = [];
|
|
1235
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1236
|
-
// @ts-ignore
|
|
1237
|
-
return tx.moveCall({
|
|
1238
|
-
target: "0x1::string::bytes",
|
|
1239
|
-
arguments: _args,
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
builder.bytes = bytes;
|
|
1243
|
-
function fromAscii(tx, args) {
|
|
1244
|
-
const _args = [];
|
|
1245
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
1246
|
-
// @ts-ignore
|
|
1247
|
-
return tx.moveCall({
|
|
1248
|
-
target: "0x1::string::from_ascii",
|
|
1249
|
-
arguments: _args,
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
builder.fromAscii = fromAscii;
|
|
1253
|
-
function indexOf(tx, args) {
|
|
1254
|
-
const _args = [];
|
|
1255
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1256
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1257
|
-
// @ts-ignore
|
|
1258
|
-
return tx.moveCall({
|
|
1259
|
-
target: "0x1::string::index_of",
|
|
1260
|
-
arguments: _args,
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
builder.indexOf = indexOf;
|
|
1264
|
-
function insert(tx, args) {
|
|
1265
|
-
const _args = [];
|
|
1266
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1267
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1268
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1269
|
-
// @ts-ignore
|
|
1270
|
-
return tx.moveCall({
|
|
1271
|
-
target: "0x1::string::insert",
|
|
1272
|
-
arguments: _args,
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
builder.insert = insert;
|
|
1276
|
-
function isEmpty(tx, args) {
|
|
1277
|
-
const _args = [];
|
|
1278
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1279
|
-
// @ts-ignore
|
|
1280
|
-
return tx.moveCall({
|
|
1281
|
-
target: "0x1::string::is_empty",
|
|
1282
|
-
arguments: _args,
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
builder.isEmpty = isEmpty;
|
|
1286
|
-
function length(tx, args) {
|
|
1287
|
-
const _args = [];
|
|
1288
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1289
|
-
// @ts-ignore
|
|
1290
|
-
return tx.moveCall({
|
|
1291
|
-
target: "0x1::string::length",
|
|
1292
|
-
arguments: _args,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
builder.length = length;
|
|
1296
|
-
function subString(tx, args) {
|
|
1297
|
-
const _args = [];
|
|
1298
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1299
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1300
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1301
|
-
// @ts-ignore
|
|
1302
|
-
return tx.moveCall({
|
|
1303
|
-
target: "0x1::string::sub_string",
|
|
1304
|
-
arguments: _args,
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
builder.subString = subString;
|
|
1308
|
-
function toAscii(tx, args) {
|
|
1309
|
-
const _args = [];
|
|
1310
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
1311
|
-
// @ts-ignore
|
|
1312
|
-
return tx.moveCall({
|
|
1313
|
-
target: "0x1::string::to_ascii",
|
|
1314
|
-
arguments: _args,
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
builder.toAscii = toAscii;
|
|
1318
|
-
function tryUtf8(tx, args) {
|
|
1319
|
-
const _args = [];
|
|
1320
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
1321
|
-
// @ts-ignore
|
|
1322
|
-
return tx.moveCall({
|
|
1323
|
-
target: "0x1::string::try_utf8",
|
|
1324
|
-
arguments: _args,
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
builder.tryUtf8 = tryUtf8;
|
|
1328
|
-
function utf8(tx, args) {
|
|
1329
|
-
const _args = [];
|
|
1330
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
1331
|
-
// @ts-ignore
|
|
1332
|
-
return tx.moveCall({
|
|
1333
|
-
target: "0x1::string::utf8",
|
|
1334
|
-
arguments: _args,
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
builder.utf8 = utf8;
|
|
1338
|
-
})(builder = string_.builder || (string_.builder = {}));
|
|
1339
|
-
let view;
|
|
1340
|
-
(function (view) {
|
|
1341
|
-
async function append(client, args) {
|
|
1342
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1343
|
-
builder.append(tx, args);
|
|
1344
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1345
|
-
transactionBlock: tx,
|
|
1346
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1347
|
-
});
|
|
1348
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1349
|
-
}
|
|
1350
|
-
view.append = append;
|
|
1351
|
-
async function appendUtf8(client, args) {
|
|
1352
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1353
|
-
builder.appendUtf8(tx, args);
|
|
1354
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1355
|
-
transactionBlock: tx,
|
|
1356
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1357
|
-
});
|
|
1358
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1359
|
-
}
|
|
1360
|
-
view.appendUtf8 = appendUtf8;
|
|
1361
|
-
async function bytes(client, args) {
|
|
1362
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1363
|
-
builder.bytes(tx, args);
|
|
1364
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1365
|
-
transactionBlock: tx,
|
|
1366
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1367
|
-
});
|
|
1368
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1369
|
-
}
|
|
1370
|
-
view.bytes = bytes;
|
|
1371
|
-
async function fromAscii(client, args) {
|
|
1372
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1373
|
-
builder.fromAscii(tx, args);
|
|
1374
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1375
|
-
transactionBlock: tx,
|
|
1376
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1377
|
-
});
|
|
1378
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1379
|
-
}
|
|
1380
|
-
view.fromAscii = fromAscii;
|
|
1381
|
-
async function indexOf(client, args) {
|
|
1382
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1383
|
-
builder.indexOf(tx, args);
|
|
1384
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1385
|
-
transactionBlock: tx,
|
|
1386
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1387
|
-
});
|
|
1388
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1389
|
-
}
|
|
1390
|
-
view.indexOf = indexOf;
|
|
1391
|
-
async function insert(client, args) {
|
|
1392
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1393
|
-
builder.insert(tx, args);
|
|
1394
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1395
|
-
transactionBlock: tx,
|
|
1396
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1397
|
-
});
|
|
1398
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1399
|
-
}
|
|
1400
|
-
view.insert = insert;
|
|
1401
|
-
async function isEmpty(client, args) {
|
|
1402
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1403
|
-
builder.isEmpty(tx, args);
|
|
1404
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1405
|
-
transactionBlock: tx,
|
|
1406
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1407
|
-
});
|
|
1408
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1409
|
-
}
|
|
1410
|
-
view.isEmpty = isEmpty;
|
|
1411
|
-
async function length(client, args) {
|
|
1412
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1413
|
-
builder.length(tx, args);
|
|
1414
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1415
|
-
transactionBlock: tx,
|
|
1416
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1417
|
-
});
|
|
1418
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1419
|
-
}
|
|
1420
|
-
view.length = length;
|
|
1421
|
-
async function subString(client, args) {
|
|
1422
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1423
|
-
builder.subString(tx, args);
|
|
1424
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1425
|
-
transactionBlock: tx,
|
|
1426
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1427
|
-
});
|
|
1428
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1429
|
-
}
|
|
1430
|
-
view.subString = subString;
|
|
1431
|
-
async function toAscii(client, args) {
|
|
1432
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1433
|
-
builder.toAscii(tx, args);
|
|
1434
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1435
|
-
transactionBlock: tx,
|
|
1436
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1437
|
-
});
|
|
1438
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1439
|
-
}
|
|
1440
|
-
view.toAscii = toAscii;
|
|
1441
|
-
async function tryUtf8(client, args) {
|
|
1442
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1443
|
-
builder.tryUtf8(tx, args);
|
|
1444
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1445
|
-
transactionBlock: tx,
|
|
1446
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1447
|
-
});
|
|
1448
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1449
|
-
}
|
|
1450
|
-
view.tryUtf8 = tryUtf8;
|
|
1451
|
-
async function utf8(client, args) {
|
|
1452
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1453
|
-
builder.utf8(tx, args);
|
|
1454
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1455
|
-
transactionBlock: tx,
|
|
1456
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1457
|
-
});
|
|
1458
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1459
|
-
}
|
|
1460
|
-
view.utf8 = utf8;
|
|
1461
|
-
})(view = string_.view || (string_.view = {}));
|
|
1462
|
-
})(string_ || (exports.string_ = string_ = {}));
|
|
1463
|
-
var type_name;
|
|
1464
|
-
(function (type_name) {
|
|
1465
|
-
let TypeName;
|
|
1466
|
-
(function (TypeName) {
|
|
1467
|
-
TypeName.TYPE_QNAME = "0x1::type_name::TypeName";
|
|
1468
|
-
const TYPE = new move_1.TypeDescriptor(TypeName.TYPE_QNAME);
|
|
1469
|
-
function type() {
|
|
1470
|
-
return TYPE.apply();
|
|
1471
|
-
}
|
|
1472
|
-
TypeName.type = type;
|
|
1473
|
-
})(TypeName = type_name.TypeName || (type_name.TypeName = {}));
|
|
1474
|
-
let builder;
|
|
1475
|
-
(function (builder) {
|
|
1476
|
-
function borrowString(tx, args) {
|
|
1477
|
-
const _args = [];
|
|
1478
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1479
|
-
// @ts-ignore
|
|
1480
|
-
return tx.moveCall({
|
|
1481
|
-
target: "0x1::type_name::borrow_string",
|
|
1482
|
-
arguments: _args,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
builder.borrowString = borrowString;
|
|
1486
|
-
function get(tx, args, typeArguments) {
|
|
1487
|
-
const _args = [];
|
|
1488
|
-
// @ts-ignore
|
|
1489
|
-
return tx.moveCall({
|
|
1490
|
-
target: "0x1::type_name::get",
|
|
1491
|
-
arguments: _args,
|
|
1492
|
-
typeArguments: [
|
|
1493
|
-
typeof typeArguments[0] === "string"
|
|
1494
|
-
? typeArguments[0]
|
|
1495
|
-
: typeArguments[0].getSignature(),
|
|
1496
|
-
],
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
builder.get = get;
|
|
1500
|
-
function getAddress(tx, args) {
|
|
1501
|
-
const _args = [];
|
|
1502
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1503
|
-
// @ts-ignore
|
|
1504
|
-
return tx.moveCall({
|
|
1505
|
-
target: "0x1::type_name::get_address",
|
|
1506
|
-
arguments: _args,
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
builder.getAddress = getAddress;
|
|
1510
|
-
function getModule(tx, args) {
|
|
1511
|
-
const _args = [];
|
|
1512
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1513
|
-
// @ts-ignore
|
|
1514
|
-
return tx.moveCall({
|
|
1515
|
-
target: "0x1::type_name::get_module",
|
|
1516
|
-
arguments: _args,
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
builder.getModule = getModule;
|
|
1520
|
-
function intoString(tx, args) {
|
|
1521
|
-
const _args = [];
|
|
1522
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
1523
|
-
// @ts-ignore
|
|
1524
|
-
return tx.moveCall({
|
|
1525
|
-
target: "0x1::type_name::into_string",
|
|
1526
|
-
arguments: _args,
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
builder.intoString = intoString;
|
|
1530
|
-
})(builder = type_name.builder || (type_name.builder = {}));
|
|
1531
|
-
let view;
|
|
1532
|
-
(function (view) {
|
|
1533
|
-
async function borrowString(client, args) {
|
|
1534
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1535
|
-
builder.borrowString(tx, args);
|
|
1536
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1537
|
-
transactionBlock: tx,
|
|
1538
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1539
|
-
});
|
|
1540
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1541
|
-
}
|
|
1542
|
-
view.borrowString = borrowString;
|
|
1543
|
-
async function get(client, args, typeArguments) {
|
|
1544
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1545
|
-
builder.get(tx, args, typeArguments);
|
|
1546
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1547
|
-
transactionBlock: tx,
|
|
1548
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1549
|
-
});
|
|
1550
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1551
|
-
}
|
|
1552
|
-
view.get = get;
|
|
1553
|
-
async function getAddress(client, args) {
|
|
1554
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1555
|
-
builder.getAddress(tx, args);
|
|
1556
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1557
|
-
transactionBlock: tx,
|
|
1558
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1559
|
-
});
|
|
1560
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1561
|
-
}
|
|
1562
|
-
view.getAddress = getAddress;
|
|
1563
|
-
async function getModule(client, args) {
|
|
1564
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1565
|
-
builder.getModule(tx, args);
|
|
1566
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1567
|
-
transactionBlock: tx,
|
|
1568
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1569
|
-
});
|
|
1570
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1571
|
-
}
|
|
1572
|
-
view.getModule = getModule;
|
|
1573
|
-
async function intoString(client, args) {
|
|
1574
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1575
|
-
builder.intoString(tx, args);
|
|
1576
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1577
|
-
transactionBlock: tx,
|
|
1578
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1579
|
-
});
|
|
1580
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1581
|
-
}
|
|
1582
|
-
view.intoString = intoString;
|
|
1583
|
-
})(view = type_name.view || (type_name.view = {}));
|
|
1584
|
-
})(type_name || (exports.type_name = type_name = {}));
|
|
1585
|
-
var vector;
|
|
1586
|
-
(function (vector) {
|
|
1587
|
-
let builder;
|
|
1588
|
-
(function (builder) {
|
|
1589
|
-
function append(tx, args, typeArguments) {
|
|
1590
|
-
const _args = [];
|
|
1591
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1592
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1593
|
-
// @ts-ignore
|
|
1594
|
-
return tx.moveCall({
|
|
1595
|
-
target: "0x1::vector::append",
|
|
1596
|
-
arguments: _args,
|
|
1597
|
-
typeArguments: [
|
|
1598
|
-
typeof typeArguments[0] === "string"
|
|
1599
|
-
? typeArguments[0]
|
|
1600
|
-
: typeArguments[0].getSignature(),
|
|
1601
|
-
],
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
builder.append = append;
|
|
1605
|
-
function borrow(tx, args, typeArguments) {
|
|
1606
|
-
const _args = [];
|
|
1607
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1608
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1609
|
-
// @ts-ignore
|
|
1610
|
-
return tx.moveCall({
|
|
1611
|
-
target: "0x1::vector::borrow",
|
|
1612
|
-
arguments: _args,
|
|
1613
|
-
typeArguments: [
|
|
1614
|
-
typeof typeArguments[0] === "string"
|
|
1615
|
-
? typeArguments[0]
|
|
1616
|
-
: typeArguments[0].getSignature(),
|
|
1617
|
-
],
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
builder.borrow = borrow;
|
|
1621
|
-
function borrowMut(tx, args, typeArguments) {
|
|
1622
|
-
const _args = [];
|
|
1623
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1624
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1625
|
-
// @ts-ignore
|
|
1626
|
-
return tx.moveCall({
|
|
1627
|
-
target: "0x1::vector::borrow_mut",
|
|
1628
|
-
arguments: _args,
|
|
1629
|
-
typeArguments: [
|
|
1630
|
-
typeof typeArguments[0] === "string"
|
|
1631
|
-
? typeArguments[0]
|
|
1632
|
-
: typeArguments[0].getSignature(),
|
|
1633
|
-
],
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1636
|
-
builder.borrowMut = borrowMut;
|
|
1637
|
-
function contains(tx, args, typeArguments) {
|
|
1638
|
-
const _args = [];
|
|
1639
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1640
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1641
|
-
// @ts-ignore
|
|
1642
|
-
return tx.moveCall({
|
|
1643
|
-
target: "0x1::vector::contains",
|
|
1644
|
-
arguments: _args,
|
|
1645
|
-
typeArguments: [
|
|
1646
|
-
typeof typeArguments[0] === "string"
|
|
1647
|
-
? typeArguments[0]
|
|
1648
|
-
: typeArguments[0].getSignature(),
|
|
1649
|
-
],
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
builder.contains = contains;
|
|
1653
|
-
function destroyEmpty(tx, args, typeArguments) {
|
|
1654
|
-
const _args = [];
|
|
1655
|
-
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
1656
|
-
// @ts-ignore
|
|
1657
|
-
return tx.moveCall({
|
|
1658
|
-
target: "0x1::vector::destroy_empty",
|
|
1659
|
-
arguments: _args,
|
|
1660
|
-
typeArguments: [
|
|
1661
|
-
typeof typeArguments[0] === "string"
|
|
1662
|
-
? typeArguments[0]
|
|
1663
|
-
: typeArguments[0].getSignature(),
|
|
1664
|
-
],
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1667
|
-
builder.destroyEmpty = destroyEmpty;
|
|
1668
|
-
function empty(tx, args, typeArguments) {
|
|
1669
|
-
const _args = [];
|
|
1670
|
-
// @ts-ignore
|
|
1671
|
-
return tx.moveCall({
|
|
1672
|
-
target: "0x1::vector::empty",
|
|
1673
|
-
arguments: _args,
|
|
1674
|
-
typeArguments: [
|
|
1675
|
-
typeof typeArguments[0] === "string"
|
|
1676
|
-
? typeArguments[0]
|
|
1677
|
-
: typeArguments[0].getSignature(),
|
|
1678
|
-
],
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
builder.empty = empty;
|
|
1682
|
-
function indexOf(tx, args, typeArguments) {
|
|
1683
|
-
const _args = [];
|
|
1684
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1685
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1686
|
-
// @ts-ignore
|
|
1687
|
-
return tx.moveCall({
|
|
1688
|
-
target: "0x1::vector::index_of",
|
|
1689
|
-
arguments: _args,
|
|
1690
|
-
typeArguments: [
|
|
1691
|
-
typeof typeArguments[0] === "string"
|
|
1692
|
-
? typeArguments[0]
|
|
1693
|
-
: typeArguments[0].getSignature(),
|
|
1694
|
-
],
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
builder.indexOf = indexOf;
|
|
1698
|
-
function insert(tx, args, typeArguments) {
|
|
1699
|
-
const _args = [];
|
|
1700
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1701
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1702
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1703
|
-
// @ts-ignore
|
|
1704
|
-
return tx.moveCall({
|
|
1705
|
-
target: "0x1::vector::insert",
|
|
1706
|
-
arguments: _args,
|
|
1707
|
-
typeArguments: [
|
|
1708
|
-
typeof typeArguments[0] === "string"
|
|
1709
|
-
? typeArguments[0]
|
|
1710
|
-
: typeArguments[0].getSignature(),
|
|
1711
|
-
],
|
|
1712
|
-
});
|
|
1713
|
-
}
|
|
1714
|
-
builder.insert = insert;
|
|
1715
|
-
function isEmpty(tx, args, typeArguments) {
|
|
1716
|
-
const _args = [];
|
|
1717
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1718
|
-
// @ts-ignore
|
|
1719
|
-
return tx.moveCall({
|
|
1720
|
-
target: "0x1::vector::is_empty",
|
|
1721
|
-
arguments: _args,
|
|
1722
|
-
typeArguments: [
|
|
1723
|
-
typeof typeArguments[0] === "string"
|
|
1724
|
-
? typeArguments[0]
|
|
1725
|
-
: typeArguments[0].getSignature(),
|
|
1726
|
-
],
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
builder.isEmpty = isEmpty;
|
|
1730
|
-
function length(tx, args, typeArguments) {
|
|
1731
|
-
const _args = [];
|
|
1732
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1733
|
-
// @ts-ignore
|
|
1734
|
-
return tx.moveCall({
|
|
1735
|
-
target: "0x1::vector::length",
|
|
1736
|
-
arguments: _args,
|
|
1737
|
-
typeArguments: [
|
|
1738
|
-
typeof typeArguments[0] === "string"
|
|
1739
|
-
? typeArguments[0]
|
|
1740
|
-
: typeArguments[0].getSignature(),
|
|
1741
|
-
],
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
builder.length = length;
|
|
1745
|
-
function popBack(tx, args, typeArguments) {
|
|
1746
|
-
const _args = [];
|
|
1747
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1748
|
-
// @ts-ignore
|
|
1749
|
-
return tx.moveCall({
|
|
1750
|
-
target: "0x1::vector::pop_back",
|
|
1751
|
-
arguments: _args,
|
|
1752
|
-
typeArguments: [
|
|
1753
|
-
typeof typeArguments[0] === "string"
|
|
1754
|
-
? typeArguments[0]
|
|
1755
|
-
: typeArguments[0].getSignature(),
|
|
1756
|
-
],
|
|
1757
|
-
});
|
|
1758
|
-
}
|
|
1759
|
-
builder.popBack = popBack;
|
|
1760
|
-
function pushBack(tx, args, typeArguments) {
|
|
1761
|
-
const _args = [];
|
|
1762
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1763
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1764
|
-
// @ts-ignore
|
|
1765
|
-
return tx.moveCall({
|
|
1766
|
-
target: "0x1::vector::push_back",
|
|
1767
|
-
arguments: _args,
|
|
1768
|
-
typeArguments: [
|
|
1769
|
-
typeof typeArguments[0] === "string"
|
|
1770
|
-
? typeArguments[0]
|
|
1771
|
-
: typeArguments[0].getSignature(),
|
|
1772
|
-
],
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
builder.pushBack = pushBack;
|
|
1776
|
-
function remove(tx, args, typeArguments) {
|
|
1777
|
-
const _args = [];
|
|
1778
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1779
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1780
|
-
// @ts-ignore
|
|
1781
|
-
return tx.moveCall({
|
|
1782
|
-
target: "0x1::vector::remove",
|
|
1783
|
-
arguments: _args,
|
|
1784
|
-
typeArguments: [
|
|
1785
|
-
typeof typeArguments[0] === "string"
|
|
1786
|
-
? typeArguments[0]
|
|
1787
|
-
: typeArguments[0].getSignature(),
|
|
1788
|
-
],
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
builder.remove = remove;
|
|
1792
|
-
function reverse(tx, args, typeArguments) {
|
|
1793
|
-
const _args = [];
|
|
1794
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1795
|
-
// @ts-ignore
|
|
1796
|
-
return tx.moveCall({
|
|
1797
|
-
target: "0x1::vector::reverse",
|
|
1798
|
-
arguments: _args,
|
|
1799
|
-
typeArguments: [
|
|
1800
|
-
typeof typeArguments[0] === "string"
|
|
1801
|
-
? typeArguments[0]
|
|
1802
|
-
: typeArguments[0].getSignature(),
|
|
1803
|
-
],
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
builder.reverse = reverse;
|
|
1807
|
-
function singleton(tx, args, typeArguments) {
|
|
1808
|
-
const _args = [];
|
|
1809
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
1810
|
-
// @ts-ignore
|
|
1811
|
-
return tx.moveCall({
|
|
1812
|
-
target: "0x1::vector::singleton",
|
|
1813
|
-
arguments: _args,
|
|
1814
|
-
typeArguments: [
|
|
1815
|
-
typeof typeArguments[0] === "string"
|
|
1816
|
-
? typeArguments[0]
|
|
1817
|
-
: typeArguments[0].getSignature(),
|
|
1818
|
-
],
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
builder.singleton = singleton;
|
|
1822
|
-
function swap(tx, args, typeArguments) {
|
|
1823
|
-
const _args = [];
|
|
1824
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1825
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1826
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1827
|
-
// @ts-ignore
|
|
1828
|
-
return tx.moveCall({
|
|
1829
|
-
target: "0x1::vector::swap",
|
|
1830
|
-
arguments: _args,
|
|
1831
|
-
typeArguments: [
|
|
1832
|
-
typeof typeArguments[0] === "string"
|
|
1833
|
-
? typeArguments[0]
|
|
1834
|
-
: typeArguments[0].getSignature(),
|
|
1835
|
-
],
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
builder.swap = swap;
|
|
1839
|
-
function swapRemove(tx, args, typeArguments) {
|
|
1840
|
-
const _args = [];
|
|
1841
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1842
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1843
|
-
// @ts-ignore
|
|
1844
|
-
return tx.moveCall({
|
|
1845
|
-
target: "0x1::vector::swap_remove",
|
|
1846
|
-
arguments: _args,
|
|
1847
|
-
typeArguments: [
|
|
1848
|
-
typeof typeArguments[0] === "string"
|
|
1849
|
-
? typeArguments[0]
|
|
1850
|
-
: typeArguments[0].getSignature(),
|
|
1851
|
-
],
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
builder.swapRemove = swapRemove;
|
|
1855
|
-
})(builder = vector.builder || (vector.builder = {}));
|
|
1856
|
-
let view;
|
|
1857
|
-
(function (view) {
|
|
1858
|
-
async function append(client, args, typeArguments) {
|
|
1859
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1860
|
-
builder.append(tx, args, typeArguments);
|
|
1861
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1862
|
-
transactionBlock: tx,
|
|
1863
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1864
|
-
});
|
|
1865
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1866
|
-
}
|
|
1867
|
-
view.append = append;
|
|
1868
|
-
async function borrow(client, args, typeArguments) {
|
|
1869
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1870
|
-
builder.borrow(tx, args, typeArguments);
|
|
1871
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1872
|
-
transactionBlock: tx,
|
|
1873
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1874
|
-
});
|
|
1875
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1876
|
-
}
|
|
1877
|
-
view.borrow = borrow;
|
|
1878
|
-
async function borrowMut(client, args, typeArguments) {
|
|
1879
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1880
|
-
builder.borrowMut(tx, args, typeArguments);
|
|
1881
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1882
|
-
transactionBlock: tx,
|
|
1883
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1884
|
-
});
|
|
1885
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1886
|
-
}
|
|
1887
|
-
view.borrowMut = borrowMut;
|
|
1888
|
-
async function contains(client, args, typeArguments) {
|
|
1889
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1890
|
-
builder.contains(tx, args, typeArguments);
|
|
1891
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1892
|
-
transactionBlock: tx,
|
|
1893
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1894
|
-
});
|
|
1895
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1896
|
-
}
|
|
1897
|
-
view.contains = contains;
|
|
1898
|
-
async function destroyEmpty(client, args, typeArguments) {
|
|
1899
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1900
|
-
builder.destroyEmpty(tx, args, typeArguments);
|
|
1901
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1902
|
-
transactionBlock: tx,
|
|
1903
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1904
|
-
});
|
|
1905
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1906
|
-
}
|
|
1907
|
-
view.destroyEmpty = destroyEmpty;
|
|
1908
|
-
async function empty(client, args, typeArguments) {
|
|
1909
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1910
|
-
builder.empty(tx, args, typeArguments);
|
|
1911
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1912
|
-
transactionBlock: tx,
|
|
1913
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1914
|
-
});
|
|
1915
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1916
|
-
}
|
|
1917
|
-
view.empty = empty;
|
|
1918
|
-
async function indexOf(client, args, typeArguments) {
|
|
1919
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1920
|
-
builder.indexOf(tx, args, typeArguments);
|
|
1921
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1922
|
-
transactionBlock: tx,
|
|
1923
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1924
|
-
});
|
|
1925
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1926
|
-
}
|
|
1927
|
-
view.indexOf = indexOf;
|
|
1928
|
-
async function insert(client, args, typeArguments) {
|
|
1929
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1930
|
-
builder.insert(tx, args, typeArguments);
|
|
1931
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1932
|
-
transactionBlock: tx,
|
|
1933
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1934
|
-
});
|
|
1935
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1936
|
-
}
|
|
1937
|
-
view.insert = insert;
|
|
1938
|
-
async function isEmpty(client, args, typeArguments) {
|
|
1939
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1940
|
-
builder.isEmpty(tx, args, typeArguments);
|
|
1941
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1942
|
-
transactionBlock: tx,
|
|
1943
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1944
|
-
});
|
|
1945
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1946
|
-
}
|
|
1947
|
-
view.isEmpty = isEmpty;
|
|
1948
|
-
async function length(client, args, typeArguments) {
|
|
1949
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1950
|
-
builder.length(tx, args, typeArguments);
|
|
1951
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1952
|
-
transactionBlock: tx,
|
|
1953
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1954
|
-
});
|
|
1955
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1956
|
-
}
|
|
1957
|
-
view.length = length;
|
|
1958
|
-
async function popBack(client, args, typeArguments) {
|
|
1959
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1960
|
-
builder.popBack(tx, args, typeArguments);
|
|
1961
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1962
|
-
transactionBlock: tx,
|
|
1963
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1964
|
-
});
|
|
1965
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1966
|
-
}
|
|
1967
|
-
view.popBack = popBack;
|
|
1968
|
-
async function pushBack(client, args, typeArguments) {
|
|
1969
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1970
|
-
builder.pushBack(tx, args, typeArguments);
|
|
1971
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1972
|
-
transactionBlock: tx,
|
|
1973
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1974
|
-
});
|
|
1975
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1976
|
-
}
|
|
1977
|
-
view.pushBack = pushBack;
|
|
1978
|
-
async function remove(client, args, typeArguments) {
|
|
1979
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1980
|
-
builder.remove(tx, args, typeArguments);
|
|
1981
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1982
|
-
transactionBlock: tx,
|
|
1983
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1984
|
-
});
|
|
1985
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1986
|
-
}
|
|
1987
|
-
view.remove = remove;
|
|
1988
|
-
async function reverse(client, args, typeArguments) {
|
|
1989
|
-
const tx = new transactions_1.TransactionBlock();
|
|
1990
|
-
builder.reverse(tx, args, typeArguments);
|
|
1991
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
1992
|
-
transactionBlock: tx,
|
|
1993
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
1994
|
-
});
|
|
1995
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
1996
|
-
}
|
|
1997
|
-
view.reverse = reverse;
|
|
1998
|
-
async function singleton(client, args, typeArguments) {
|
|
1999
|
-
const tx = new transactions_1.TransactionBlock();
|
|
2000
|
-
builder.singleton(tx, args, typeArguments);
|
|
2001
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
2002
|
-
transactionBlock: tx,
|
|
2003
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
2004
|
-
});
|
|
2005
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
2006
|
-
}
|
|
2007
|
-
view.singleton = singleton;
|
|
2008
|
-
async function swap(client, args, typeArguments) {
|
|
2009
|
-
const tx = new transactions_1.TransactionBlock();
|
|
2010
|
-
builder.swap(tx, args, typeArguments);
|
|
2011
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
2012
|
-
transactionBlock: tx,
|
|
2013
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
2014
|
-
});
|
|
2015
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
2016
|
-
}
|
|
2017
|
-
view.swap = swap;
|
|
2018
|
-
async function swapRemove(client, args, typeArguments) {
|
|
2019
|
-
const tx = new transactions_1.TransactionBlock();
|
|
2020
|
-
builder.swapRemove(tx, args, typeArguments);
|
|
2021
|
-
const insepctRes = await client.devInspectTransactionBlock({
|
|
2022
|
-
transactionBlock: tx,
|
|
2023
|
-
sender: sui_2.ZERO_ADDRESS,
|
|
2024
|
-
});
|
|
2025
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(insepctRes);
|
|
2026
|
-
}
|
|
2027
|
-
view.swapRemove = swapRemove;
|
|
2028
|
-
})(view = vector.view || (vector.view = {}));
|
|
2029
|
-
})(vector || (exports.vector = vector = {}));
|
|
2030
|
-
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"]},"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":[]}}]},"into_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Vector":"U8"}]},"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":[]}}]},"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"}]}}},"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":[]},"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":[]},"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":[]}}]},"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":[]}}]},"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":[]}}]}}},"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}}]},"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}]}}}}');
|
|
2031
|
-
function loadAllTypes(coder) {
|
|
2032
|
-
for (const m of Object.values(MODULES)) {
|
|
2033
|
-
coder.load(m);
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
exports.loadAllTypes = loadAllTypes;
|
|
2037
|
-
loadAllTypes((0, sui_1.defaultMoveCoder)());
|
|
2038
|
-
//# sourceMappingURL=0x1.js.map
|