@typemove/sui 1.6.11 → 1.6.12-rc.2
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/cjs/builtin/0x1.d.ts +5 -5
- package/dist/cjs/builtin/0x1.js +17 -17
- package/dist/cjs/builtin/0x2.d.ts +165 -165
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +106 -106
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +35 -35
- package/dist/cjs/builtin/0x3.js +20 -20
- package/dist/esm/builtin/0x1.d.ts +5 -5
- package/dist/esm/builtin/0x1.js +16 -16
- package/dist/esm/builtin/0x2.d.ts +165 -165
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +105 -105
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +35 -35
- package/dist/esm/builtin/0x3.js +20 -20
- package/package.json +2 -2
- package/src/builtin/0x1.ts +7 -7
- package/src/builtin/0x2.ts +212 -212
- package/src/builtin/0x3.ts +45 -45
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +3 -3
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +3 -3
- package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +12 -12
- package/src/tests/types/testnet/0xdee9.ts +47 -47
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +21 -21
|
@@ -44,7 +44,7 @@ export namespace clob {
|
|
|
44
44
|
price: bigint;
|
|
45
45
|
quantity: bigint;
|
|
46
46
|
is_bid: boolean;
|
|
47
|
-
owner: _0x2.
|
|
47
|
+
owner: _0x2.object$.ID;
|
|
48
48
|
expire_timestamp: bigint;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -59,10 +59,10 @@ export namespace clob {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export interface OrderCanceled<T0, T1> {
|
|
62
|
-
pool_id: _0x2.
|
|
62
|
+
pool_id: _0x2.object$.ID;
|
|
63
63
|
order_id: bigint;
|
|
64
64
|
is_bid: boolean;
|
|
65
|
-
owner: _0x2.
|
|
65
|
+
owner: _0x2.object$.ID;
|
|
66
66
|
base_asset_quantity_canceled: bigint;
|
|
67
67
|
price: bigint;
|
|
68
68
|
}
|
|
@@ -89,10 +89,10 @@ export namespace clob {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export interface OrderFilled<T0, T1> {
|
|
92
|
-
pool_id: _0x2.
|
|
92
|
+
pool_id: _0x2.object$.ID;
|
|
93
93
|
order_id: bigint;
|
|
94
94
|
is_bid: boolean;
|
|
95
|
-
owner: _0x2.
|
|
95
|
+
owner: _0x2.object$.ID;
|
|
96
96
|
total_quantity: bigint;
|
|
97
97
|
base_asset_quantity_filled: bigint;
|
|
98
98
|
base_asset_quantity_remaining: bigint;
|
|
@@ -121,10 +121,10 @@ export namespace clob {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export interface OrderFilledV2<T0, T1> {
|
|
124
|
-
pool_id: _0x2.
|
|
124
|
+
pool_id: _0x2.object$.ID;
|
|
125
125
|
order_id: bigint;
|
|
126
126
|
is_bid: boolean;
|
|
127
|
-
owner: _0x2.
|
|
127
|
+
owner: _0x2.object$.ID;
|
|
128
128
|
total_quantity: bigint;
|
|
129
129
|
base_asset_quantity_filled: bigint;
|
|
130
130
|
base_asset_quantity_remaining: bigint;
|
|
@@ -155,10 +155,10 @@ export namespace clob {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export interface OrderPlaced<T0, T1> {
|
|
158
|
-
pool_id: _0x2.
|
|
158
|
+
pool_id: _0x2.object$.ID;
|
|
159
159
|
order_id: bigint;
|
|
160
160
|
is_bid: boolean;
|
|
161
|
-
owner: _0x2.
|
|
161
|
+
owner: _0x2.object$.ID;
|
|
162
162
|
base_asset_quantity_placed: bigint;
|
|
163
163
|
price: bigint;
|
|
164
164
|
}
|
|
@@ -185,10 +185,10 @@ export namespace clob {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
export interface OrderPlacedV2<T0, T1> {
|
|
188
|
-
pool_id: _0x2.
|
|
188
|
+
pool_id: _0x2.object$.ID;
|
|
189
189
|
order_id: bigint;
|
|
190
190
|
is_bid: boolean;
|
|
191
|
-
owner: _0x2.
|
|
191
|
+
owner: _0x2.object$.ID;
|
|
192
192
|
base_asset_quantity_placed: bigint;
|
|
193
193
|
price: bigint;
|
|
194
194
|
expire_timestamp: bigint;
|
|
@@ -216,13 +216,13 @@ export namespace clob {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
export interface Pool<T0, T1> {
|
|
219
|
-
id: _0x2.
|
|
219
|
+
id: _0x2.object$.UID;
|
|
220
220
|
bids: critbit.CritbitTree<clob.TickLevel>;
|
|
221
221
|
asks: critbit.CritbitTree<clob.TickLevel>;
|
|
222
222
|
next_bid_order_id: bigint;
|
|
223
223
|
next_ask_order_id: bigint;
|
|
224
224
|
usr_open_orders: _0x2.table.Table<
|
|
225
|
-
_0x2.
|
|
225
|
+
_0x2.object$.ID,
|
|
226
226
|
_0x2.linked_table.LinkedTable<bigint, bigint>
|
|
227
227
|
>;
|
|
228
228
|
taker_fee_rate: bigint;
|
|
@@ -250,7 +250,7 @@ export namespace clob {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
export interface PoolCreated {
|
|
253
|
-
pool_id: _0x2.
|
|
253
|
+
pool_id: _0x2.object$.ID;
|
|
254
254
|
base_asset: _0x1.type_name.TypeName;
|
|
255
255
|
quote_asset: _0x1.type_name.TypeName;
|
|
256
256
|
taker_fee_rate: bigint;
|
|
@@ -1194,7 +1194,7 @@ export namespace clob {
|
|
|
1194
1194
|
|
|
1195
1195
|
export namespace clob_v2 {
|
|
1196
1196
|
export interface DepositAsset<T0> {
|
|
1197
|
-
pool_id: _0x2.
|
|
1197
|
+
pool_id: _0x2.object$.ID;
|
|
1198
1198
|
quantity: bigint;
|
|
1199
1199
|
owner: string;
|
|
1200
1200
|
}
|
|
@@ -1240,7 +1240,7 @@ export namespace clob_v2 {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
1242
|
export interface OrderCanceled<T0, T1> {
|
|
1243
|
-
pool_id: _0x2.
|
|
1243
|
+
pool_id: _0x2.object$.ID;
|
|
1244
1244
|
order_id: bigint;
|
|
1245
1245
|
client_order_id: bigint;
|
|
1246
1246
|
is_bid: boolean;
|
|
@@ -1272,7 +1272,7 @@ export namespace clob_v2 {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
export interface OrderFilled<T0, T1> {
|
|
1275
|
-
pool_id: _0x2.
|
|
1275
|
+
pool_id: _0x2.object$.ID;
|
|
1276
1276
|
order_id: bigint;
|
|
1277
1277
|
taker_client_order_id: bigint;
|
|
1278
1278
|
maker_client_order_id: bigint;
|
|
@@ -1309,7 +1309,7 @@ export namespace clob_v2 {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
1311
|
export interface OrderPlaced<T0, T1> {
|
|
1312
|
-
pool_id: _0x2.
|
|
1312
|
+
pool_id: _0x2.object$.ID;
|
|
1313
1313
|
order_id: bigint;
|
|
1314
1314
|
client_order_id: bigint;
|
|
1315
1315
|
is_bid: boolean;
|
|
@@ -1342,7 +1342,7 @@ export namespace clob_v2 {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
1344
|
export interface Pool<T0, T1> {
|
|
1345
|
-
id: _0x2.
|
|
1345
|
+
id: _0x2.object$.UID;
|
|
1346
1346
|
bids: critbit.CritbitTree<clob_v2.TickLevel>;
|
|
1347
1347
|
asks: critbit.CritbitTree<clob_v2.TickLevel>;
|
|
1348
1348
|
next_bid_order_id: bigint;
|
|
@@ -1376,7 +1376,7 @@ export namespace clob_v2 {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
export interface PoolCreated {
|
|
1379
|
-
pool_id: _0x2.
|
|
1379
|
+
pool_id: _0x2.object$.ID;
|
|
1380
1380
|
base_asset: _0x1.type_name.TypeName;
|
|
1381
1381
|
quote_asset: _0x1.type_name.TypeName;
|
|
1382
1382
|
taker_fee_rate: bigint;
|
|
@@ -1416,7 +1416,7 @@ export namespace clob_v2 {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
1418
|
export interface WithdrawAsset<T0> {
|
|
1419
|
-
pool_id: _0x2.
|
|
1419
|
+
pool_id: _0x2.object$.ID;
|
|
1420
1420
|
quantity: bigint;
|
|
1421
1421
|
owner: string;
|
|
1422
1422
|
}
|
|
@@ -2740,7 +2740,7 @@ export namespace critbit {
|
|
|
2740
2740
|
],
|
|
2741
2741
|
});
|
|
2742
2742
|
}
|
|
2743
|
-
export function
|
|
2743
|
+
export function new$<T0 = any>(
|
|
2744
2744
|
tx: Transaction,
|
|
2745
2745
|
args: [],
|
|
2746
2746
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -3024,13 +3024,13 @@ export namespace critbit {
|
|
|
3024
3024
|
[bigint, bigint]
|
|
3025
3025
|
>(inspectRes);
|
|
3026
3026
|
}
|
|
3027
|
-
export async function
|
|
3027
|
+
export async function new$<T0 = any>(
|
|
3028
3028
|
client: SuiClient,
|
|
3029
3029
|
args: [],
|
|
3030
3030
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3031
3031
|
): Promise<TypedDevInspectResults<[critbit.CritbitTree<T0>]>> {
|
|
3032
3032
|
const tx = new Transaction();
|
|
3033
|
-
builder.
|
|
3033
|
+
builder.new$(tx, args, typeArguments);
|
|
3034
3034
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3035
3035
|
transactionBlock: tx,
|
|
3036
3036
|
sender: ZERO_ADDRESS,
|
|
@@ -3126,7 +3126,7 @@ export namespace custodian {
|
|
|
3126
3126
|
}
|
|
3127
3127
|
|
|
3128
3128
|
export interface AccountCap {
|
|
3129
|
-
id: _0x2.
|
|
3129
|
+
id: _0x2.object$.UID;
|
|
3130
3130
|
}
|
|
3131
3131
|
|
|
3132
3132
|
export namespace AccountCap {
|
|
@@ -3140,8 +3140,8 @@ export namespace custodian {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
3142
3142
|
export interface Custodian<T0> {
|
|
3143
|
-
id: _0x2.
|
|
3144
|
-
account_balances: _0x2.table.Table<_0x2.
|
|
3143
|
+
id: _0x2.object$.UID;
|
|
3144
|
+
account_balances: _0x2.table.Table<_0x2.object$.ID, custodian.Account<T0>>;
|
|
3145
3145
|
}
|
|
3146
3146
|
|
|
3147
3147
|
export namespace Custodian {
|
|
@@ -3161,7 +3161,7 @@ export namespace custodian {
|
|
|
3161
3161
|
tx: Transaction,
|
|
3162
3162
|
args: [
|
|
3163
3163
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3164
|
-
_0x2.
|
|
3164
|
+
_0x2.object$.ID | TransactionArgument,
|
|
3165
3165
|
],
|
|
3166
3166
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3167
3167
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3184,7 +3184,7 @@ export namespace custodian {
|
|
|
3184
3184
|
tx: Transaction,
|
|
3185
3185
|
args: [
|
|
3186
3186
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3187
|
-
_0x2.
|
|
3187
|
+
_0x2.object$.ID | TransactionArgument,
|
|
3188
3188
|
],
|
|
3189
3189
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3190
3190
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3207,7 +3207,7 @@ export namespace custodian {
|
|
|
3207
3207
|
tx: Transaction,
|
|
3208
3208
|
args: [
|
|
3209
3209
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3210
|
-
_0x2.
|
|
3210
|
+
_0x2.object$.ID | TransactionArgument,
|
|
3211
3211
|
],
|
|
3212
3212
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3213
3213
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
@@ -3256,7 +3256,7 @@ export namespace custodian {
|
|
|
3256
3256
|
tx: Transaction,
|
|
3257
3257
|
args: [
|
|
3258
3258
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3259
|
-
_0x2.
|
|
3259
|
+
_0x2.object$.ID | TransactionArgument,
|
|
3260
3260
|
bigint | TransactionArgument,
|
|
3261
3261
|
],
|
|
3262
3262
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -3282,7 +3282,7 @@ export namespace custodian {
|
|
|
3282
3282
|
tx: Transaction,
|
|
3283
3283
|
args: [
|
|
3284
3284
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3285
|
-
_0x2.
|
|
3285
|
+
_0x2.object$.ID | TransactionArgument,
|
|
3286
3286
|
_0x2.balance.Balance<T0> | TransactionArgument,
|
|
3287
3287
|
],
|
|
3288
3288
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -3368,7 +3368,7 @@ export namespace custodian {
|
|
|
3368
3368
|
arguments: _args,
|
|
3369
3369
|
});
|
|
3370
3370
|
}
|
|
3371
|
-
export function
|
|
3371
|
+
export function new$<T0 = any>(
|
|
3372
3372
|
tx: Transaction,
|
|
3373
3373
|
args: [],
|
|
3374
3374
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -3390,7 +3390,7 @@ export namespace custodian {
|
|
|
3390
3390
|
tx: Transaction,
|
|
3391
3391
|
args: [
|
|
3392
3392
|
string | TransactionObjectArgument | TransactionArgument,
|
|
3393
|
-
_0x2.
|
|
3393
|
+
_0x2.object$.ID | TransactionArgument,
|
|
3394
3394
|
bigint | TransactionArgument,
|
|
3395
3395
|
],
|
|
3396
3396
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -3442,7 +3442,7 @@ export namespace custodian {
|
|
|
3442
3442
|
export namespace view {
|
|
3443
3443
|
export async function accountAvailableBalance<T0 = any>(
|
|
3444
3444
|
client: SuiClient,
|
|
3445
|
-
args: [string, _0x2.
|
|
3445
|
+
args: [string, _0x2.object$.ID],
|
|
3446
3446
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3447
3447
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3448
3448
|
const tx = new Transaction();
|
|
@@ -3458,7 +3458,7 @@ export namespace custodian {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
export async function accountBalance<T0 = any>(
|
|
3460
3460
|
client: SuiClient,
|
|
3461
|
-
args: [string, _0x2.
|
|
3461
|
+
args: [string, _0x2.object$.ID],
|
|
3462
3462
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3463
3463
|
): Promise<TypedDevInspectResults<[bigint, bigint]>> {
|
|
3464
3464
|
const tx = new Transaction();
|
|
@@ -3474,7 +3474,7 @@ export namespace custodian {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
export async function accountLockedBalance<T0 = any>(
|
|
3476
3476
|
client: SuiClient,
|
|
3477
|
-
args: [string, _0x2.
|
|
3477
|
+
args: [string, _0x2.object$.ID],
|
|
3478
3478
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3479
3479
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3480
3480
|
const tx = new Transaction();
|
|
@@ -3506,7 +3506,7 @@ export namespace custodian {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
export async function decreaseUserLockedBalance<T0 = any>(
|
|
3508
3508
|
client: SuiClient,
|
|
3509
|
-
args: [string, _0x2.
|
|
3509
|
+
args: [string, _0x2.object$.ID, bigint],
|
|
3510
3510
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3511
3511
|
): Promise<TypedDevInspectResults<[_0x2.balance.Balance<T0>]>> {
|
|
3512
3512
|
const tx = new Transaction();
|
|
@@ -3522,7 +3522,7 @@ export namespace custodian {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
export async function increaseUserAvailableBalance<T0 = any>(
|
|
3524
3524
|
client: SuiClient,
|
|
3525
|
-
args: [string, _0x2.
|
|
3525
|
+
args: [string, _0x2.object$.ID, _0x2.balance.Balance<T0>],
|
|
3526
3526
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3527
3527
|
): Promise<TypedDevInspectResults<[]>> {
|
|
3528
3528
|
const tx = new Transaction();
|
|
@@ -3583,13 +3583,13 @@ export namespace custodian {
|
|
|
3583
3583
|
[custodian.AccountCap]
|
|
3584
3584
|
>(inspectRes);
|
|
3585
3585
|
}
|
|
3586
|
-
export async function
|
|
3586
|
+
export async function new$<T0 = any>(
|
|
3587
3587
|
client: SuiClient,
|
|
3588
3588
|
args: [],
|
|
3589
3589
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3590
3590
|
): Promise<TypedDevInspectResults<[custodian.Custodian<T0>]>> {
|
|
3591
3591
|
const tx = new Transaction();
|
|
3592
|
-
builder.
|
|
3592
|
+
builder.new$(tx, args, typeArguments);
|
|
3593
3593
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3594
3594
|
transactionBlock: tx,
|
|
3595
3595
|
sender: ZERO_ADDRESS,
|
|
@@ -3601,7 +3601,7 @@ export namespace custodian {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
export async function unlockBalance<T0 = any>(
|
|
3603
3603
|
client: SuiClient,
|
|
3604
|
-
args: [string, _0x2.
|
|
3604
|
+
args: [string, _0x2.object$.ID, bigint],
|
|
3605
3605
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
3606
3606
|
): Promise<TypedDevInspectResults<[]>> {
|
|
3607
3607
|
const tx = new Transaction();
|
|
@@ -3653,7 +3653,7 @@ export namespace custodian_v2 {
|
|
|
3653
3653
|
}
|
|
3654
3654
|
|
|
3655
3655
|
export interface AccountCap {
|
|
3656
|
-
id: _0x2.
|
|
3656
|
+
id: _0x2.object$.UID;
|
|
3657
3657
|
owner: string;
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
@@ -3668,7 +3668,7 @@ export namespace custodian_v2 {
|
|
|
3668
3668
|
}
|
|
3669
3669
|
|
|
3670
3670
|
export interface Custodian<T0> {
|
|
3671
|
-
id: _0x2.
|
|
3671
|
+
id: _0x2.object$.UID;
|
|
3672
3672
|
account_balances: _0x2.table.Table<string, custodian_v2.Account<T0>>;
|
|
3673
3673
|
}
|
|
3674
3674
|
|
|
@@ -3935,7 +3935,7 @@ export namespace custodian_v2 {
|
|
|
3935
3935
|
arguments: _args,
|
|
3936
3936
|
});
|
|
3937
3937
|
}
|
|
3938
|
-
export function
|
|
3938
|
+
export function new$<T0 = any>(
|
|
3939
3939
|
tx: Transaction,
|
|
3940
3940
|
args: [],
|
|
3941
3941
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -4195,13 +4195,13 @@ export namespace custodian_v2 {
|
|
|
4195
4195
|
[custodian_v2.AccountCap]
|
|
4196
4196
|
>(inspectRes);
|
|
4197
4197
|
}
|
|
4198
|
-
export async function
|
|
4198
|
+
export async function new$<T0 = any>(
|
|
4199
4199
|
client: SuiClient,
|
|
4200
4200
|
args: [],
|
|
4201
4201
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
4202
4202
|
): Promise<TypedDevInspectResults<[custodian_v2.Custodian<T0>]>> {
|
|
4203
4203
|
const tx = new Transaction();
|
|
4204
|
-
builder.
|
|
4204
|
+
builder.new$(tx, args, typeArguments);
|
|
4205
4205
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4206
4206
|
transactionBlock: tx,
|
|
4207
4207
|
sender: ZERO_ADDRESS,
|
|
@@ -105,7 +105,7 @@ export namespace authority {
|
|
|
105
105
|
],
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
export function
|
|
108
|
+
export function new$<T0 = any>(
|
|
109
109
|
tx: Transaction,
|
|
110
110
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
111
111
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -246,13 +246,13 @@ export namespace authority {
|
|
|
246
246
|
inspectRes,
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
|
-
export async function
|
|
249
|
+
export async function new$<T0 = any>(
|
|
250
250
|
client: SuiClient,
|
|
251
251
|
args: [string[]],
|
|
252
252
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
253
253
|
): Promise<TypedDevInspectResults<[authority.Authority<T0>]>> {
|
|
254
254
|
const tx = new Transaction();
|
|
255
|
-
builder.
|
|
255
|
+
builder.new$(tx, args, typeArguments);
|
|
256
256
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
257
257
|
transactionBlock: tx,
|
|
258
258
|
sender: ZERO_ADDRESS,
|
|
@@ -744,7 +744,7 @@ export namespace dutch {
|
|
|
744
744
|
],
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
export function
|
|
747
|
+
export function new$<T0 = any, T1 = any>(
|
|
748
748
|
tx: Transaction,
|
|
749
749
|
args: [
|
|
750
750
|
bigint | TransactionArgument,
|
|
@@ -1086,13 +1086,13 @@ export namespace dutch {
|
|
|
1086
1086
|
[bigint, bigint, bigint, bigint, string]
|
|
1087
1087
|
>(inspectRes);
|
|
1088
1088
|
}
|
|
1089
|
-
export async function
|
|
1089
|
+
export async function new$<T0 = any, T1 = any>(
|
|
1090
1090
|
client: SuiClient,
|
|
1091
1091
|
args: [bigint, bigint, bigint, bigint, bigint, boolean],
|
|
1092
1092
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1093
1093
|
): Promise<TypedDevInspectResults<[dutch.Auction<T0, T1>]>> {
|
|
1094
1094
|
const tx = new Transaction();
|
|
1095
|
-
builder.
|
|
1095
|
+
builder.new$(tx, args, typeArguments);
|
|
1096
1096
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1097
1097
|
transactionBlock: tx,
|
|
1098
1098
|
sender: ZERO_ADDRESS,
|
|
@@ -1279,7 +1279,7 @@ export namespace i64 {
|
|
|
1279
1279
|
arguments: _args,
|
|
1280
1280
|
});
|
|
1281
1281
|
}
|
|
1282
|
-
export function from(
|
|
1282
|
+
export function from$(
|
|
1283
1283
|
tx: Transaction,
|
|
1284
1284
|
args: [bigint | TransactionArgument],
|
|
1285
1285
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1472,12 +1472,12 @@ export namespace i64 {
|
|
|
1472
1472
|
inspectRes,
|
|
1473
1473
|
);
|
|
1474
1474
|
}
|
|
1475
|
-
export async function from(
|
|
1475
|
+
export async function from$(
|
|
1476
1476
|
client: SuiClient,
|
|
1477
1477
|
args: [bigint],
|
|
1478
1478
|
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1479
1479
|
const tx = new Transaction();
|
|
1480
|
-
builder.from(tx, args);
|
|
1480
|
+
builder.from$(tx, args);
|
|
1481
1481
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1482
1482
|
transactionBlock: tx,
|
|
1483
1483
|
sender: ZERO_ADDRESS,
|
|
@@ -1597,7 +1597,7 @@ export namespace i64 {
|
|
|
1597
1597
|
|
|
1598
1598
|
export namespace linked_list {
|
|
1599
1599
|
export interface LinkedList<T0, T1> {
|
|
1600
|
-
id: _0x2.
|
|
1600
|
+
id: _0x2.object$.ID;
|
|
1601
1601
|
first: _0x1.option.Option<T0>;
|
|
1602
1602
|
last: _0x1.option.Option<T0>;
|
|
1603
1603
|
length: bigint;
|
|
@@ -1763,7 +1763,7 @@ export namespace linked_list {
|
|
|
1763
1763
|
],
|
|
1764
1764
|
});
|
|
1765
1765
|
}
|
|
1766
|
-
export function
|
|
1766
|
+
export function delete$<T0 = any, T1 = any>(
|
|
1767
1767
|
tx: Transaction,
|
|
1768
1768
|
args: [
|
|
1769
1769
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1885,9 +1885,9 @@ export namespace linked_list {
|
|
|
1885
1885
|
],
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
|
-
export function
|
|
1888
|
+
export function new$<T0 = any, T1 = any>(
|
|
1889
1889
|
tx: Transaction,
|
|
1890
|
-
args: [_0x2.
|
|
1890
|
+
args: [_0x2.object$.ID | TransactionArgument],
|
|
1891
1891
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1892
1892
|
): TransactionArgument & [TransactionArgument] {
|
|
1893
1893
|
const _args: any[] = [];
|
|
@@ -2494,13 +2494,13 @@ export namespace linked_list {
|
|
|
2494
2494
|
inspectRes,
|
|
2495
2495
|
);
|
|
2496
2496
|
}
|
|
2497
|
-
export async function
|
|
2497
|
+
export async function delete$<T0 = any, T1 = any>(
|
|
2498
2498
|
client: SuiClient,
|
|
2499
2499
|
args: [string, string, T0],
|
|
2500
2500
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2501
2501
|
): Promise<TypedDevInspectResults<[T1]>> {
|
|
2502
2502
|
const tx = new Transaction();
|
|
2503
|
-
builder.
|
|
2503
|
+
builder.delete$(tx, args, typeArguments);
|
|
2504
2504
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2505
2505
|
transactionBlock: tx,
|
|
2506
2506
|
sender: ZERO_ADDRESS,
|
|
@@ -2574,13 +2574,13 @@ export namespace linked_list {
|
|
|
2574
2574
|
inspectRes,
|
|
2575
2575
|
);
|
|
2576
2576
|
}
|
|
2577
|
-
export async function
|
|
2577
|
+
export async function new$<T0 = any, T1 = any>(
|
|
2578
2578
|
client: SuiClient,
|
|
2579
|
-
args: [_0x2.
|
|
2579
|
+
args: [_0x2.object$.ID],
|
|
2580
2580
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2581
2581
|
): Promise<TypedDevInspectResults<[linked_list.LinkedList<T0, T1>]>> {
|
|
2582
2582
|
const tx = new Transaction();
|
|
2583
|
-
builder.
|
|
2583
|
+
builder.new$(tx, args, typeArguments);
|
|
2584
2584
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2585
2585
|
transactionBlock: tx,
|
|
2586
2586
|
sender: ZERO_ADDRESS,
|
|
@@ -3253,7 +3253,7 @@ export namespace single_collateral {
|
|
|
3253
3253
|
}
|
|
3254
3254
|
|
|
3255
3255
|
export interface ManagerCap {
|
|
3256
|
-
id: _0x2.
|
|
3256
|
+
id: _0x2.object$.UID;
|
|
3257
3257
|
}
|
|
3258
3258
|
|
|
3259
3259
|
export namespace ManagerCap {
|
|
@@ -3428,7 +3428,7 @@ export namespace single_collateral {
|
|
|
3428
3428
|
}
|
|
3429
3429
|
|
|
3430
3430
|
export interface Registry {
|
|
3431
|
-
id: _0x2.
|
|
3431
|
+
id: _0x2.object$.UID;
|
|
3432
3432
|
num_of_vault: bigint;
|
|
3433
3433
|
authority: authority.Authority<single_collateral.ManagerCap>;
|
|
3434
3434
|
restrict_activation_time_period: single_collateral.RestrictActivationTimePeriod;
|
|
@@ -6914,7 +6914,7 @@ export namespace vault {
|
|
|
6914
6914
|
}
|
|
6915
6915
|
|
|
6916
6916
|
export interface UserShareRegistry {
|
|
6917
|
-
id: _0x2.
|
|
6917
|
+
id: _0x2.object$.UID;
|
|
6918
6918
|
}
|
|
6919
6919
|
|
|
6920
6920
|
export namespace UserShareRegistry {
|