@typemove/sui 1.2.4 → 1.2.5-rc.1

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