@typemove/sui 1.0.0-rc.19 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtin/0x1.d.ts +211 -10870
- package/dist/builtin/0x1.d.ts.map +1 -1
- package/dist/builtin/0x1.js +166 -165
- package/dist/builtin/0x1.js.map +1 -1
- package/dist/builtin/0x2.d.ts +1163 -46532
- package/dist/builtin/0x2.d.ts.map +1 -1
- package/dist/builtin/0x2.js +700 -699
- package/dist/builtin/0x2.js.map +1 -1
- package/dist/builtin/0x3.d.ts +476 -13475
- package/dist/builtin/0x3.d.ts.map +1 -1
- package/dist/builtin/0x3.js +202 -201
- package/dist/builtin/0x3.js.map +1 -1
- package/dist/codegen/codegen.js +9 -8
- package/dist/codegen/codegen.js.map +1 -1
- package/dist/models.d.ts +1 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js.map +1 -1
- package/dist/move-coder.d.ts +1 -1
- package/dist/move-coder.d.ts.map +1 -1
- package/dist/move-coder.js +1 -5
- package/dist/move-coder.js.map +1 -1
- package/dist/sui-chain-adapter.d.ts +1 -1
- package/dist/sui-chain-adapter.d.ts.map +1 -1
- package/dist/sui-chain-adapter.js +10 -4
- package/dist/sui-chain-adapter.js.map +1 -1
- package/dist/tests/move-call.test.d.ts.map +1 -1
- package/dist/tests/move-call.test.js.map +1 -1
- package/dist/tests/move-coder.test.js.map +1 -1
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts +25 -544
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts.map +1 -1
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js +10 -9
- package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js.map +1 -1
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts +250 -6489
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts.map +1 -1
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js +98 -97
- package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js.map +1 -1
- package/dist/tests/types/testnet/0xdee9.d.ts +289 -6398
- package/dist/tests/types/testnet/0xdee9.d.ts.map +1 -1
- package/dist/tests/types/testnet/0xdee9.js +96 -95
- package/dist/tests/types/testnet/0xdee9.js.map +1 -1
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts +977 -21126
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts.map +1 -1
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js +312 -311
- package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js.map +1 -1
- package/dist/to-internal.d.ts +1 -1
- package/dist/to-internal.d.ts.map +1 -1
- package/dist/to-internal.js +2 -8
- package/dist/to-internal.js.map +1 -1
- package/package.json +5 -12
- package/src/builtin/0x1.ts +293 -297
- package/src/builtin/0x2.ts +1483 -1490
- package/src/builtin/0x3.ts +582 -589
- package/src/codegen/codegen.ts +10 -9
- package/src/models.ts +8 -14
- package/src/move-coder.ts +6 -20
- package/src/sui-chain-adapter.ts +13 -15
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +27 -31
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +276 -280
- package/src/tests/types/testnet/0xdee9.ts +303 -307
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +1064 -1068
- package/src/to-internal.ts +12 -32
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
|
|
6
6
|
import { defaultMoveCoder } from "@typemove/sui";
|
|
7
7
|
import { ZERO_ADDRESS } from "@typemove/sui";
|
|
8
|
-
import { TransactionBlock
|
|
8
|
+
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
9
|
+
import { TransactionArgument } from "@mysten/sui.js";
|
|
9
10
|
import { _0x2 } from "@typemove/sui/builtin";
|
|
10
11
|
import { _0x1 } from "@typemove/sui/builtin";
|
|
11
12
|
export var clob;
|
|
@@ -486,190 +487,190 @@ export var clob;
|
|
|
486
487
|
})(builder = clob.builder || (clob.builder = {}));
|
|
487
488
|
let view;
|
|
488
489
|
(function (view) {
|
|
489
|
-
async function accountBalance(
|
|
490
|
+
async function accountBalance(client, args, typeArguments) {
|
|
490
491
|
const tx = new TransactionBlock();
|
|
491
492
|
builder.accountBalance(tx, args, typeArguments);
|
|
492
|
-
const res = await
|
|
493
|
+
const res = await client.devInspectTransactionBlock({
|
|
493
494
|
transactionBlock: tx,
|
|
494
495
|
sender: ZERO_ADDRESS,
|
|
495
496
|
});
|
|
496
497
|
return res;
|
|
497
498
|
}
|
|
498
499
|
view.accountBalance = accountBalance;
|
|
499
|
-
async function batchCancelOrder(
|
|
500
|
+
async function batchCancelOrder(client, args, typeArguments) {
|
|
500
501
|
const tx = new TransactionBlock();
|
|
501
502
|
builder.batchCancelOrder(tx, args, typeArguments);
|
|
502
|
-
const res = await
|
|
503
|
+
const res = await client.devInspectTransactionBlock({
|
|
503
504
|
transactionBlock: tx,
|
|
504
505
|
sender: ZERO_ADDRESS,
|
|
505
506
|
});
|
|
506
507
|
return res;
|
|
507
508
|
}
|
|
508
509
|
view.batchCancelOrder = batchCancelOrder;
|
|
509
|
-
async function cancelAllOrders(
|
|
510
|
+
async function cancelAllOrders(client, args, typeArguments) {
|
|
510
511
|
const tx = new TransactionBlock();
|
|
511
512
|
builder.cancelAllOrders(tx, args, typeArguments);
|
|
512
|
-
const res = await
|
|
513
|
+
const res = await client.devInspectTransactionBlock({
|
|
513
514
|
transactionBlock: tx,
|
|
514
515
|
sender: ZERO_ADDRESS,
|
|
515
516
|
});
|
|
516
517
|
return res;
|
|
517
518
|
}
|
|
518
519
|
view.cancelAllOrders = cancelAllOrders;
|
|
519
|
-
async function cancelOrder(
|
|
520
|
+
async function cancelOrder(client, args, typeArguments) {
|
|
520
521
|
const tx = new TransactionBlock();
|
|
521
522
|
builder.cancelOrder(tx, args, typeArguments);
|
|
522
|
-
const res = await
|
|
523
|
+
const res = await client.devInspectTransactionBlock({
|
|
523
524
|
transactionBlock: tx,
|
|
524
525
|
sender: ZERO_ADDRESS,
|
|
525
526
|
});
|
|
526
527
|
return res;
|
|
527
528
|
}
|
|
528
529
|
view.cancelOrder = cancelOrder;
|
|
529
|
-
async function createAccount(
|
|
530
|
+
async function createAccount(client, args) {
|
|
530
531
|
const tx = new TransactionBlock();
|
|
531
532
|
builder.createAccount(tx, args);
|
|
532
|
-
const res = await
|
|
533
|
+
const res = await client.devInspectTransactionBlock({
|
|
533
534
|
transactionBlock: tx,
|
|
534
535
|
sender: ZERO_ADDRESS,
|
|
535
536
|
});
|
|
536
537
|
return res;
|
|
537
538
|
}
|
|
538
539
|
view.createAccount = createAccount;
|
|
539
|
-
async function createPool(
|
|
540
|
+
async function createPool(client, args, typeArguments) {
|
|
540
541
|
const tx = new TransactionBlock();
|
|
541
542
|
builder.createPool(tx, args, typeArguments);
|
|
542
|
-
const res = await
|
|
543
|
+
const res = await client.devInspectTransactionBlock({
|
|
543
544
|
transactionBlock: tx,
|
|
544
545
|
sender: ZERO_ADDRESS,
|
|
545
546
|
});
|
|
546
547
|
return res;
|
|
547
548
|
}
|
|
548
549
|
view.createPool = createPool;
|
|
549
|
-
async function depositBase(
|
|
550
|
+
async function depositBase(client, args, typeArguments) {
|
|
550
551
|
const tx = new TransactionBlock();
|
|
551
552
|
builder.depositBase(tx, args, typeArguments);
|
|
552
|
-
const res = await
|
|
553
|
+
const res = await client.devInspectTransactionBlock({
|
|
553
554
|
transactionBlock: tx,
|
|
554
555
|
sender: ZERO_ADDRESS,
|
|
555
556
|
});
|
|
556
557
|
return res;
|
|
557
558
|
}
|
|
558
559
|
view.depositBase = depositBase;
|
|
559
|
-
async function depositQuote(
|
|
560
|
+
async function depositQuote(client, args, typeArguments) {
|
|
560
561
|
const tx = new TransactionBlock();
|
|
561
562
|
builder.depositQuote(tx, args, typeArguments);
|
|
562
|
-
const res = await
|
|
563
|
+
const res = await client.devInspectTransactionBlock({
|
|
563
564
|
transactionBlock: tx,
|
|
564
565
|
sender: ZERO_ADDRESS,
|
|
565
566
|
});
|
|
566
567
|
return res;
|
|
567
568
|
}
|
|
568
569
|
view.depositQuote = depositQuote;
|
|
569
|
-
async function getLevel2BookStatusAskSide(
|
|
570
|
+
async function getLevel2BookStatusAskSide(client, args, typeArguments) {
|
|
570
571
|
const tx = new TransactionBlock();
|
|
571
572
|
builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
|
|
572
|
-
const res = await
|
|
573
|
+
const res = await client.devInspectTransactionBlock({
|
|
573
574
|
transactionBlock: tx,
|
|
574
575
|
sender: ZERO_ADDRESS,
|
|
575
576
|
});
|
|
576
577
|
return res;
|
|
577
578
|
}
|
|
578
579
|
view.getLevel2BookStatusAskSide = getLevel2BookStatusAskSide;
|
|
579
|
-
async function getLevel2BookStatusBidSide(
|
|
580
|
+
async function getLevel2BookStatusBidSide(client, args, typeArguments) {
|
|
580
581
|
const tx = new TransactionBlock();
|
|
581
582
|
builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
|
|
582
|
-
const res = await
|
|
583
|
+
const res = await client.devInspectTransactionBlock({
|
|
583
584
|
transactionBlock: tx,
|
|
584
585
|
sender: ZERO_ADDRESS,
|
|
585
586
|
});
|
|
586
587
|
return res;
|
|
587
588
|
}
|
|
588
589
|
view.getLevel2BookStatusBidSide = getLevel2BookStatusBidSide;
|
|
589
|
-
async function getMarketPrice(
|
|
590
|
+
async function getMarketPrice(client, args, typeArguments) {
|
|
590
591
|
const tx = new TransactionBlock();
|
|
591
592
|
builder.getMarketPrice(tx, args, typeArguments);
|
|
592
|
-
const res = await
|
|
593
|
+
const res = await client.devInspectTransactionBlock({
|
|
593
594
|
transactionBlock: tx,
|
|
594
595
|
sender: ZERO_ADDRESS,
|
|
595
596
|
});
|
|
596
597
|
return res;
|
|
597
598
|
}
|
|
598
599
|
view.getMarketPrice = getMarketPrice;
|
|
599
|
-
async function getOrderStatus(
|
|
600
|
+
async function getOrderStatus(client, args, typeArguments) {
|
|
600
601
|
const tx = new TransactionBlock();
|
|
601
602
|
builder.getOrderStatus(tx, args, typeArguments);
|
|
602
|
-
const res = await
|
|
603
|
+
const res = await client.devInspectTransactionBlock({
|
|
603
604
|
transactionBlock: tx,
|
|
604
605
|
sender: ZERO_ADDRESS,
|
|
605
606
|
});
|
|
606
607
|
return res;
|
|
607
608
|
}
|
|
608
609
|
view.getOrderStatus = getOrderStatus;
|
|
609
|
-
async function listOpenOrders(
|
|
610
|
+
async function listOpenOrders(client, args, typeArguments) {
|
|
610
611
|
const tx = new TransactionBlock();
|
|
611
612
|
builder.listOpenOrders(tx, args, typeArguments);
|
|
612
|
-
const res = await
|
|
613
|
+
const res = await client.devInspectTransactionBlock({
|
|
613
614
|
transactionBlock: tx,
|
|
614
615
|
sender: ZERO_ADDRESS,
|
|
615
616
|
});
|
|
616
617
|
return res;
|
|
617
618
|
}
|
|
618
619
|
view.listOpenOrders = listOpenOrders;
|
|
619
|
-
async function placeLimitOrder(
|
|
620
|
+
async function placeLimitOrder(client, args, typeArguments) {
|
|
620
621
|
const tx = new TransactionBlock();
|
|
621
622
|
builder.placeLimitOrder(tx, args, typeArguments);
|
|
622
|
-
const res = await
|
|
623
|
+
const res = await client.devInspectTransactionBlock({
|
|
623
624
|
transactionBlock: tx,
|
|
624
625
|
sender: ZERO_ADDRESS,
|
|
625
626
|
});
|
|
626
627
|
return res;
|
|
627
628
|
}
|
|
628
629
|
view.placeLimitOrder = placeLimitOrder;
|
|
629
|
-
async function placeMarketOrder(
|
|
630
|
+
async function placeMarketOrder(client, args, typeArguments) {
|
|
630
631
|
const tx = new TransactionBlock();
|
|
631
632
|
builder.placeMarketOrder(tx, args, typeArguments);
|
|
632
|
-
const res = await
|
|
633
|
+
const res = await client.devInspectTransactionBlock({
|
|
633
634
|
transactionBlock: tx,
|
|
634
635
|
sender: ZERO_ADDRESS,
|
|
635
636
|
});
|
|
636
637
|
return res;
|
|
637
638
|
}
|
|
638
639
|
view.placeMarketOrder = placeMarketOrder;
|
|
639
|
-
async function swapExactBaseForQuote(
|
|
640
|
+
async function swapExactBaseForQuote(client, args, typeArguments) {
|
|
640
641
|
const tx = new TransactionBlock();
|
|
641
642
|
builder.swapExactBaseForQuote(tx, args, typeArguments);
|
|
642
|
-
const res = await
|
|
643
|
+
const res = await client.devInspectTransactionBlock({
|
|
643
644
|
transactionBlock: tx,
|
|
644
645
|
sender: ZERO_ADDRESS,
|
|
645
646
|
});
|
|
646
647
|
return res;
|
|
647
648
|
}
|
|
648
649
|
view.swapExactBaseForQuote = swapExactBaseForQuote;
|
|
649
|
-
async function swapExactQuoteForBase(
|
|
650
|
+
async function swapExactQuoteForBase(client, args, typeArguments) {
|
|
650
651
|
const tx = new TransactionBlock();
|
|
651
652
|
builder.swapExactQuoteForBase(tx, args, typeArguments);
|
|
652
|
-
const res = await
|
|
653
|
+
const res = await client.devInspectTransactionBlock({
|
|
653
654
|
transactionBlock: tx,
|
|
654
655
|
sender: ZERO_ADDRESS,
|
|
655
656
|
});
|
|
656
657
|
return res;
|
|
657
658
|
}
|
|
658
659
|
view.swapExactQuoteForBase = swapExactQuoteForBase;
|
|
659
|
-
async function withdrawBase(
|
|
660
|
+
async function withdrawBase(client, args, typeArguments) {
|
|
660
661
|
const tx = new TransactionBlock();
|
|
661
662
|
builder.withdrawBase(tx, args, typeArguments);
|
|
662
|
-
const res = await
|
|
663
|
+
const res = await client.devInspectTransactionBlock({
|
|
663
664
|
transactionBlock: tx,
|
|
664
665
|
sender: ZERO_ADDRESS,
|
|
665
666
|
});
|
|
666
667
|
return res;
|
|
667
668
|
}
|
|
668
669
|
view.withdrawBase = withdrawBase;
|
|
669
|
-
async function withdrawQuote(
|
|
670
|
+
async function withdrawQuote(client, args, typeArguments) {
|
|
670
671
|
const tx = new TransactionBlock();
|
|
671
672
|
builder.withdrawQuote(tx, args, typeArguments);
|
|
672
|
-
const res = await
|
|
673
|
+
const res = await client.devInspectTransactionBlock({
|
|
673
674
|
transactionBlock: tx,
|
|
674
675
|
sender: ZERO_ADDRESS,
|
|
675
676
|
});
|
|
@@ -1195,200 +1196,200 @@ export var clob_v2;
|
|
|
1195
1196
|
})(builder = clob_v2.builder || (clob_v2.builder = {}));
|
|
1196
1197
|
let view;
|
|
1197
1198
|
(function (view) {
|
|
1198
|
-
async function accountBalance(
|
|
1199
|
+
async function accountBalance(client, args, typeArguments) {
|
|
1199
1200
|
const tx = new TransactionBlock();
|
|
1200
1201
|
builder.accountBalance(tx, args, typeArguments);
|
|
1201
|
-
const res = await
|
|
1202
|
+
const res = await client.devInspectTransactionBlock({
|
|
1202
1203
|
transactionBlock: tx,
|
|
1203
1204
|
sender: ZERO_ADDRESS,
|
|
1204
1205
|
});
|
|
1205
1206
|
return res;
|
|
1206
1207
|
}
|
|
1207
1208
|
view.accountBalance = accountBalance;
|
|
1208
|
-
async function batchCancelOrder(
|
|
1209
|
+
async function batchCancelOrder(client, args, typeArguments) {
|
|
1209
1210
|
const tx = new TransactionBlock();
|
|
1210
1211
|
builder.batchCancelOrder(tx, args, typeArguments);
|
|
1211
|
-
const res = await
|
|
1212
|
+
const res = await client.devInspectTransactionBlock({
|
|
1212
1213
|
transactionBlock: tx,
|
|
1213
1214
|
sender: ZERO_ADDRESS,
|
|
1214
1215
|
});
|
|
1215
1216
|
return res;
|
|
1216
1217
|
}
|
|
1217
1218
|
view.batchCancelOrder = batchCancelOrder;
|
|
1218
|
-
async function cancelAllOrders(
|
|
1219
|
+
async function cancelAllOrders(client, args, typeArguments) {
|
|
1219
1220
|
const tx = new TransactionBlock();
|
|
1220
1221
|
builder.cancelAllOrders(tx, args, typeArguments);
|
|
1221
|
-
const res = await
|
|
1222
|
+
const res = await client.devInspectTransactionBlock({
|
|
1222
1223
|
transactionBlock: tx,
|
|
1223
1224
|
sender: ZERO_ADDRESS,
|
|
1224
1225
|
});
|
|
1225
1226
|
return res;
|
|
1226
1227
|
}
|
|
1227
1228
|
view.cancelAllOrders = cancelAllOrders;
|
|
1228
|
-
async function cancelOrder(
|
|
1229
|
+
async function cancelOrder(client, args, typeArguments) {
|
|
1229
1230
|
const tx = new TransactionBlock();
|
|
1230
1231
|
builder.cancelOrder(tx, args, typeArguments);
|
|
1231
|
-
const res = await
|
|
1232
|
+
const res = await client.devInspectTransactionBlock({
|
|
1232
1233
|
transactionBlock: tx,
|
|
1233
1234
|
sender: ZERO_ADDRESS,
|
|
1234
1235
|
});
|
|
1235
1236
|
return res;
|
|
1236
1237
|
}
|
|
1237
1238
|
view.cancelOrder = cancelOrder;
|
|
1238
|
-
async function cleanUpExpiredOrders(
|
|
1239
|
+
async function cleanUpExpiredOrders(client, args, typeArguments) {
|
|
1239
1240
|
const tx = new TransactionBlock();
|
|
1240
1241
|
builder.cleanUpExpiredOrders(tx, args, typeArguments);
|
|
1241
|
-
const res = await
|
|
1242
|
+
const res = await client.devInspectTransactionBlock({
|
|
1242
1243
|
transactionBlock: tx,
|
|
1243
1244
|
sender: ZERO_ADDRESS,
|
|
1244
1245
|
});
|
|
1245
1246
|
return res;
|
|
1246
1247
|
}
|
|
1247
1248
|
view.cleanUpExpiredOrders = cleanUpExpiredOrders;
|
|
1248
|
-
async function createAccount(
|
|
1249
|
+
async function createAccount(client, args) {
|
|
1249
1250
|
const tx = new TransactionBlock();
|
|
1250
1251
|
builder.createAccount(tx, args);
|
|
1251
|
-
const res = await
|
|
1252
|
+
const res = await client.devInspectTransactionBlock({
|
|
1252
1253
|
transactionBlock: tx,
|
|
1253
1254
|
sender: ZERO_ADDRESS,
|
|
1254
1255
|
});
|
|
1255
1256
|
return res;
|
|
1256
1257
|
}
|
|
1257
1258
|
view.createAccount = createAccount;
|
|
1258
|
-
async function createPool(
|
|
1259
|
+
async function createPool(client, args, typeArguments) {
|
|
1259
1260
|
const tx = new TransactionBlock();
|
|
1260
1261
|
builder.createPool(tx, args, typeArguments);
|
|
1261
|
-
const res = await
|
|
1262
|
+
const res = await client.devInspectTransactionBlock({
|
|
1262
1263
|
transactionBlock: tx,
|
|
1263
1264
|
sender: ZERO_ADDRESS,
|
|
1264
1265
|
});
|
|
1265
1266
|
return res;
|
|
1266
1267
|
}
|
|
1267
1268
|
view.createPool = createPool;
|
|
1268
|
-
async function depositBase(
|
|
1269
|
+
async function depositBase(client, args, typeArguments) {
|
|
1269
1270
|
const tx = new TransactionBlock();
|
|
1270
1271
|
builder.depositBase(tx, args, typeArguments);
|
|
1271
|
-
const res = await
|
|
1272
|
+
const res = await client.devInspectTransactionBlock({
|
|
1272
1273
|
transactionBlock: tx,
|
|
1273
1274
|
sender: ZERO_ADDRESS,
|
|
1274
1275
|
});
|
|
1275
1276
|
return res;
|
|
1276
1277
|
}
|
|
1277
1278
|
view.depositBase = depositBase;
|
|
1278
|
-
async function depositQuote(
|
|
1279
|
+
async function depositQuote(client, args, typeArguments) {
|
|
1279
1280
|
const tx = new TransactionBlock();
|
|
1280
1281
|
builder.depositQuote(tx, args, typeArguments);
|
|
1281
|
-
const res = await
|
|
1282
|
+
const res = await client.devInspectTransactionBlock({
|
|
1282
1283
|
transactionBlock: tx,
|
|
1283
1284
|
sender: ZERO_ADDRESS,
|
|
1284
1285
|
});
|
|
1285
1286
|
return res;
|
|
1286
1287
|
}
|
|
1287
1288
|
view.depositQuote = depositQuote;
|
|
1288
|
-
async function getLevel2BookStatusAskSide(
|
|
1289
|
+
async function getLevel2BookStatusAskSide(client, args, typeArguments) {
|
|
1289
1290
|
const tx = new TransactionBlock();
|
|
1290
1291
|
builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
|
|
1291
|
-
const res = await
|
|
1292
|
+
const res = await client.devInspectTransactionBlock({
|
|
1292
1293
|
transactionBlock: tx,
|
|
1293
1294
|
sender: ZERO_ADDRESS,
|
|
1294
1295
|
});
|
|
1295
1296
|
return res;
|
|
1296
1297
|
}
|
|
1297
1298
|
view.getLevel2BookStatusAskSide = getLevel2BookStatusAskSide;
|
|
1298
|
-
async function getLevel2BookStatusBidSide(
|
|
1299
|
+
async function getLevel2BookStatusBidSide(client, args, typeArguments) {
|
|
1299
1300
|
const tx = new TransactionBlock();
|
|
1300
1301
|
builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
|
|
1301
|
-
const res = await
|
|
1302
|
+
const res = await client.devInspectTransactionBlock({
|
|
1302
1303
|
transactionBlock: tx,
|
|
1303
1304
|
sender: ZERO_ADDRESS,
|
|
1304
1305
|
});
|
|
1305
1306
|
return res;
|
|
1306
1307
|
}
|
|
1307
1308
|
view.getLevel2BookStatusBidSide = getLevel2BookStatusBidSide;
|
|
1308
|
-
async function getMarketPrice(
|
|
1309
|
+
async function getMarketPrice(client, args, typeArguments) {
|
|
1309
1310
|
const tx = new TransactionBlock();
|
|
1310
1311
|
builder.getMarketPrice(tx, args, typeArguments);
|
|
1311
|
-
const res = await
|
|
1312
|
+
const res = await client.devInspectTransactionBlock({
|
|
1312
1313
|
transactionBlock: tx,
|
|
1313
1314
|
sender: ZERO_ADDRESS,
|
|
1314
1315
|
});
|
|
1315
1316
|
return res;
|
|
1316
1317
|
}
|
|
1317
1318
|
view.getMarketPrice = getMarketPrice;
|
|
1318
|
-
async function getOrderStatus(
|
|
1319
|
+
async function getOrderStatus(client, args, typeArguments) {
|
|
1319
1320
|
const tx = new TransactionBlock();
|
|
1320
1321
|
builder.getOrderStatus(tx, args, typeArguments);
|
|
1321
|
-
const res = await
|
|
1322
|
+
const res = await client.devInspectTransactionBlock({
|
|
1322
1323
|
transactionBlock: tx,
|
|
1323
1324
|
sender: ZERO_ADDRESS,
|
|
1324
1325
|
});
|
|
1325
1326
|
return res;
|
|
1326
1327
|
}
|
|
1327
1328
|
view.getOrderStatus = getOrderStatus;
|
|
1328
|
-
async function listOpenOrders(
|
|
1329
|
+
async function listOpenOrders(client, args, typeArguments) {
|
|
1329
1330
|
const tx = new TransactionBlock();
|
|
1330
1331
|
builder.listOpenOrders(tx, args, typeArguments);
|
|
1331
|
-
const res = await
|
|
1332
|
+
const res = await client.devInspectTransactionBlock({
|
|
1332
1333
|
transactionBlock: tx,
|
|
1333
1334
|
sender: ZERO_ADDRESS,
|
|
1334
1335
|
});
|
|
1335
1336
|
return res;
|
|
1336
1337
|
}
|
|
1337
1338
|
view.listOpenOrders = listOpenOrders;
|
|
1338
|
-
async function placeLimitOrder(
|
|
1339
|
+
async function placeLimitOrder(client, args, typeArguments) {
|
|
1339
1340
|
const tx = new TransactionBlock();
|
|
1340
1341
|
builder.placeLimitOrder(tx, args, typeArguments);
|
|
1341
|
-
const res = await
|
|
1342
|
+
const res = await client.devInspectTransactionBlock({
|
|
1342
1343
|
transactionBlock: tx,
|
|
1343
1344
|
sender: ZERO_ADDRESS,
|
|
1344
1345
|
});
|
|
1345
1346
|
return res;
|
|
1346
1347
|
}
|
|
1347
1348
|
view.placeLimitOrder = placeLimitOrder;
|
|
1348
|
-
async function placeMarketOrder(
|
|
1349
|
+
async function placeMarketOrder(client, args, typeArguments) {
|
|
1349
1350
|
const tx = new TransactionBlock();
|
|
1350
1351
|
builder.placeMarketOrder(tx, args, typeArguments);
|
|
1351
|
-
const res = await
|
|
1352
|
+
const res = await client.devInspectTransactionBlock({
|
|
1352
1353
|
transactionBlock: tx,
|
|
1353
1354
|
sender: ZERO_ADDRESS,
|
|
1354
1355
|
});
|
|
1355
1356
|
return res;
|
|
1356
1357
|
}
|
|
1357
1358
|
view.placeMarketOrder = placeMarketOrder;
|
|
1358
|
-
async function swapExactBaseForQuote(
|
|
1359
|
+
async function swapExactBaseForQuote(client, args, typeArguments) {
|
|
1359
1360
|
const tx = new TransactionBlock();
|
|
1360
1361
|
builder.swapExactBaseForQuote(tx, args, typeArguments);
|
|
1361
|
-
const res = await
|
|
1362
|
+
const res = await client.devInspectTransactionBlock({
|
|
1362
1363
|
transactionBlock: tx,
|
|
1363
1364
|
sender: ZERO_ADDRESS,
|
|
1364
1365
|
});
|
|
1365
1366
|
return res;
|
|
1366
1367
|
}
|
|
1367
1368
|
view.swapExactBaseForQuote = swapExactBaseForQuote;
|
|
1368
|
-
async function swapExactQuoteForBase(
|
|
1369
|
+
async function swapExactQuoteForBase(client, args, typeArguments) {
|
|
1369
1370
|
const tx = new TransactionBlock();
|
|
1370
1371
|
builder.swapExactQuoteForBase(tx, args, typeArguments);
|
|
1371
|
-
const res = await
|
|
1372
|
+
const res = await client.devInspectTransactionBlock({
|
|
1372
1373
|
transactionBlock: tx,
|
|
1373
1374
|
sender: ZERO_ADDRESS,
|
|
1374
1375
|
});
|
|
1375
1376
|
return res;
|
|
1376
1377
|
}
|
|
1377
1378
|
view.swapExactQuoteForBase = swapExactQuoteForBase;
|
|
1378
|
-
async function withdrawBase(
|
|
1379
|
+
async function withdrawBase(client, args, typeArguments) {
|
|
1379
1380
|
const tx = new TransactionBlock();
|
|
1380
1381
|
builder.withdrawBase(tx, args, typeArguments);
|
|
1381
|
-
const res = await
|
|
1382
|
+
const res = await client.devInspectTransactionBlock({
|
|
1382
1383
|
transactionBlock: tx,
|
|
1383
1384
|
sender: ZERO_ADDRESS,
|
|
1384
1385
|
});
|
|
1385
1386
|
return res;
|
|
1386
1387
|
}
|
|
1387
1388
|
view.withdrawBase = withdrawBase;
|
|
1388
|
-
async function withdrawQuote(
|
|
1389
|
+
async function withdrawQuote(client, args, typeArguments) {
|
|
1389
1390
|
const tx = new TransactionBlock();
|
|
1390
1391
|
builder.withdrawQuote(tx, args, typeArguments);
|
|
1391
|
-
const res = await
|
|
1392
|
+
const res = await client.devInspectTransactionBlock({
|
|
1392
1393
|
transactionBlock: tx,
|
|
1393
1394
|
sender: ZERO_ADDRESS,
|
|
1394
1395
|
});
|
|
@@ -1447,10 +1448,10 @@ export var critbit;
|
|
|
1447
1448
|
})(builder = critbit.builder || (critbit.builder = {}));
|
|
1448
1449
|
let view;
|
|
1449
1450
|
(function (view) {
|
|
1450
|
-
async function previousLeaf(
|
|
1451
|
+
async function previousLeaf(client, args, typeArguments) {
|
|
1451
1452
|
const tx = new TransactionBlock();
|
|
1452
1453
|
builder.previousLeaf(tx, args, typeArguments);
|
|
1453
|
-
const res = await
|
|
1454
|
+
const res = await client.devInspectTransactionBlock({
|
|
1454
1455
|
transactionBlock: tx,
|
|
1455
1456
|
sender: ZERO_ADDRESS,
|
|
1456
1457
|
});
|
|
@@ -1503,10 +1504,10 @@ export var custodian;
|
|
|
1503
1504
|
})(builder = custodian.builder || (custodian.builder = {}));
|
|
1504
1505
|
let view;
|
|
1505
1506
|
(function (view) {
|
|
1506
|
-
async function mintAccountCap(
|
|
1507
|
+
async function mintAccountCap(client, args) {
|
|
1507
1508
|
const tx = new TransactionBlock();
|
|
1508
1509
|
builder.mintAccountCap(tx, args);
|
|
1509
|
-
const res = await
|
|
1510
|
+
const res = await client.devInspectTransactionBlock({
|
|
1510
1511
|
transactionBlock: tx,
|
|
1511
1512
|
sender: ZERO_ADDRESS,
|
|
1512
1513
|
});
|
|
@@ -1580,30 +1581,30 @@ export var custodian_v2;
|
|
|
1580
1581
|
})(builder = custodian_v2.builder || (custodian_v2.builder = {}));
|
|
1581
1582
|
let view;
|
|
1582
1583
|
(function (view) {
|
|
1583
|
-
async function accountOwner(
|
|
1584
|
+
async function accountOwner(client, args) {
|
|
1584
1585
|
const tx = new TransactionBlock();
|
|
1585
1586
|
builder.accountOwner(tx, args);
|
|
1586
|
-
const res = await
|
|
1587
|
+
const res = await client.devInspectTransactionBlock({
|
|
1587
1588
|
transactionBlock: tx,
|
|
1588
1589
|
sender: ZERO_ADDRESS,
|
|
1589
1590
|
});
|
|
1590
1591
|
return res;
|
|
1591
1592
|
}
|
|
1592
1593
|
view.accountOwner = accountOwner;
|
|
1593
|
-
async function createChildAccountCap(
|
|
1594
|
+
async function createChildAccountCap(client, args) {
|
|
1594
1595
|
const tx = new TransactionBlock();
|
|
1595
1596
|
builder.createChildAccountCap(tx, args);
|
|
1596
|
-
const res = await
|
|
1597
|
+
const res = await client.devInspectTransactionBlock({
|
|
1597
1598
|
transactionBlock: tx,
|
|
1598
1599
|
sender: ZERO_ADDRESS,
|
|
1599
1600
|
});
|
|
1600
1601
|
return res;
|
|
1601
1602
|
}
|
|
1602
1603
|
view.createChildAccountCap = createChildAccountCap;
|
|
1603
|
-
async function deleteAccountCap(
|
|
1604
|
+
async function deleteAccountCap(client, args) {
|
|
1604
1605
|
const tx = new TransactionBlock();
|
|
1605
1606
|
builder.deleteAccountCap(tx, args);
|
|
1606
|
-
const res = await
|
|
1607
|
+
const res = await client.devInspectTransactionBlock({
|
|
1607
1608
|
transactionBlock: tx,
|
|
1608
1609
|
sender: ZERO_ADDRESS,
|
|
1609
1610
|
});
|
|
@@ -1652,30 +1653,30 @@ export var math;
|
|
|
1652
1653
|
})(builder = math.builder || (math.builder = {}));
|
|
1653
1654
|
let view;
|
|
1654
1655
|
(function (view) {
|
|
1655
|
-
async function divRound(
|
|
1656
|
+
async function divRound(client, args) {
|
|
1656
1657
|
const tx = new TransactionBlock();
|
|
1657
1658
|
builder.divRound(tx, args);
|
|
1658
|
-
const res = await
|
|
1659
|
+
const res = await client.devInspectTransactionBlock({
|
|
1659
1660
|
transactionBlock: tx,
|
|
1660
1661
|
sender: ZERO_ADDRESS,
|
|
1661
1662
|
});
|
|
1662
1663
|
return res;
|
|
1663
1664
|
}
|
|
1664
1665
|
view.divRound = divRound;
|
|
1665
|
-
async function mul(
|
|
1666
|
+
async function mul(client, args) {
|
|
1666
1667
|
const tx = new TransactionBlock();
|
|
1667
1668
|
builder.mul(tx, args);
|
|
1668
|
-
const res = await
|
|
1669
|
+
const res = await client.devInspectTransactionBlock({
|
|
1669
1670
|
transactionBlock: tx,
|
|
1670
1671
|
sender: ZERO_ADDRESS,
|
|
1671
1672
|
});
|
|
1672
1673
|
return res;
|
|
1673
1674
|
}
|
|
1674
1675
|
view.mul = mul;
|
|
1675
|
-
async function mulRound(
|
|
1676
|
+
async function mulRound(client, args) {
|
|
1676
1677
|
const tx = new TransactionBlock();
|
|
1677
1678
|
builder.mulRound(tx, args);
|
|
1678
|
-
const res = await
|
|
1679
|
+
const res = await client.devInspectTransactionBlock({
|
|
1679
1680
|
transactionBlock: tx,
|
|
1680
1681
|
sender: ZERO_ADDRESS,
|
|
1681
1682
|
});
|