@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
package/src/builtin/0x3.ts
CHANGED
|
@@ -301,8 +301,8 @@ export namespace stake_subsidy {
|
|
|
301
301
|
|
|
302
302
|
export namespace staking_pool {
|
|
303
303
|
export interface FungibleStakedSui {
|
|
304
|
-
id: _0x2.
|
|
305
|
-
pool_id: _0x2.
|
|
304
|
+
id: _0x2.object$.UID;
|
|
305
|
+
pool_id: _0x2.object$.ID;
|
|
306
306
|
value: bigint;
|
|
307
307
|
}
|
|
308
308
|
|
|
@@ -319,7 +319,7 @@ export namespace staking_pool {
|
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
export interface FungibleStakedSuiData {
|
|
322
|
-
id: _0x2.
|
|
322
|
+
id: _0x2.object$.UID;
|
|
323
323
|
total_supply: bigint;
|
|
324
324
|
principal: _0x2.balance.Balance<_0x2.sui.SUI>;
|
|
325
325
|
}
|
|
@@ -382,8 +382,8 @@ export namespace staking_pool {
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
export interface StakedSui {
|
|
385
|
-
id: _0x2.
|
|
386
|
-
pool_id: _0x2.
|
|
385
|
+
id: _0x2.object$.UID;
|
|
386
|
+
pool_id: _0x2.object$.ID;
|
|
387
387
|
stake_activation_epoch: bigint;
|
|
388
388
|
principal: _0x2.balance.Balance<_0x2.sui.SUI>;
|
|
389
389
|
}
|
|
@@ -399,7 +399,7 @@ export namespace staking_pool {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
export interface StakingPool {
|
|
402
|
-
id: _0x2.
|
|
402
|
+
id: _0x2.object$.UID;
|
|
403
403
|
activation_epoch: _0x1.option.Option<bigint>;
|
|
404
404
|
deactivation_epoch: _0x1.option.Option<bigint>;
|
|
405
405
|
sui_balance: bigint;
|
|
@@ -610,7 +610,7 @@ export namespace staking_pool {
|
|
|
610
610
|
arguments: _args,
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
|
-
export function
|
|
613
|
+
export function new$(tx: Transaction, args: []): TransactionArgument & [] {
|
|
614
614
|
const _args: any[] = [];
|
|
615
615
|
|
|
616
616
|
// @ts-ignore
|
|
@@ -968,7 +968,7 @@ export namespace staking_pool {
|
|
|
968
968
|
export async function fungibleStakedSuiPoolId(
|
|
969
969
|
client: SuiClient,
|
|
970
970
|
args: [string],
|
|
971
|
-
): Promise<TypedDevInspectResults<[_0x2.
|
|
971
|
+
): Promise<TypedDevInspectResults<[_0x2.object$.ID]>> {
|
|
972
972
|
const tx = new Transaction();
|
|
973
973
|
builder.fungibleStakedSuiPoolId(tx, args);
|
|
974
974
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -977,7 +977,7 @@ export namespace staking_pool {
|
|
|
977
977
|
});
|
|
978
978
|
|
|
979
979
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
980
|
-
[_0x2.
|
|
980
|
+
[_0x2.object$.ID]
|
|
981
981
|
>(inspectRes);
|
|
982
982
|
}
|
|
983
983
|
export async function fungibleStakedSuiValue(
|
|
@@ -1070,12 +1070,12 @@ export namespace staking_pool {
|
|
|
1070
1070
|
inspectRes,
|
|
1071
1071
|
);
|
|
1072
1072
|
}
|
|
1073
|
-
export async function
|
|
1073
|
+
export async function new$(
|
|
1074
1074
|
client: SuiClient,
|
|
1075
1075
|
args: [],
|
|
1076
1076
|
): Promise<TypedDevInspectResults<[staking_pool.StakingPool]>> {
|
|
1077
1077
|
const tx = new Transaction();
|
|
1078
|
-
builder.
|
|
1078
|
+
builder.new$(tx, args);
|
|
1079
1079
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1080
1080
|
transactionBlock: tx,
|
|
1081
1081
|
sender: ZERO_ADDRESS,
|
|
@@ -1118,7 +1118,7 @@ export namespace staking_pool {
|
|
|
1118
1118
|
export async function poolId(
|
|
1119
1119
|
client: SuiClient,
|
|
1120
1120
|
args: [string],
|
|
1121
|
-
): Promise<TypedDevInspectResults<[_0x2.
|
|
1121
|
+
): Promise<TypedDevInspectResults<[_0x2.object$.ID]>> {
|
|
1122
1122
|
const tx = new Transaction();
|
|
1123
1123
|
builder.poolId(tx, args);
|
|
1124
1124
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -1127,7 +1127,7 @@ export namespace staking_pool {
|
|
|
1127
1127
|
});
|
|
1128
1128
|
|
|
1129
1129
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1130
|
-
[_0x2.
|
|
1130
|
+
[_0x2.object$.ID]
|
|
1131
1131
|
>(inspectRes);
|
|
1132
1132
|
}
|
|
1133
1133
|
export async function poolTokenAmount(
|
|
@@ -1410,7 +1410,7 @@ export namespace storage_fund {
|
|
|
1410
1410
|
arguments: _args,
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
1413
|
-
export function
|
|
1413
|
+
export function new$(
|
|
1414
1414
|
tx: Transaction,
|
|
1415
1415
|
args: [_0x2.balance.Balance<_0x2.sui.SUI> | TransactionArgument],
|
|
1416
1416
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -1473,12 +1473,12 @@ export namespace storage_fund {
|
|
|
1473
1473
|
[_0x2.balance.Balance<_0x2.sui.SUI>]
|
|
1474
1474
|
>(inspectRes);
|
|
1475
1475
|
}
|
|
1476
|
-
export async function
|
|
1476
|
+
export async function new$(
|
|
1477
1477
|
client: SuiClient,
|
|
1478
1478
|
args: [_0x2.balance.Balance<_0x2.sui.SUI>],
|
|
1479
1479
|
): Promise<TypedDevInspectResults<[storage_fund.StorageFund]>> {
|
|
1480
1480
|
const tx = new Transaction();
|
|
1481
|
-
builder.
|
|
1481
|
+
builder.new$(tx, args);
|
|
1482
1482
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1483
1483
|
transactionBlock: tx,
|
|
1484
1484
|
sender: ZERO_ADDRESS,
|
|
@@ -1523,7 +1523,7 @@ export namespace storage_fund {
|
|
|
1523
1523
|
|
|
1524
1524
|
export namespace sui_system {
|
|
1525
1525
|
export interface SuiSystemState {
|
|
1526
|
-
id: _0x2.
|
|
1526
|
+
id: _0x2.object$.UID;
|
|
1527
1527
|
version: bigint;
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
@@ -1571,7 +1571,7 @@ export namespace sui_system {
|
|
|
1571
1571
|
export function create(
|
|
1572
1572
|
tx: Transaction,
|
|
1573
1573
|
args: [
|
|
1574
|
-
_0x2.
|
|
1574
|
+
_0x2.object$.UID | TransactionArgument,
|
|
1575
1575
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
1576
1576
|
_0x2.balance.Balance<_0x2.sui.SUI> | TransactionArgument,
|
|
1577
1577
|
bigint | TransactionArgument,
|
|
@@ -2329,7 +2329,7 @@ export namespace sui_system {
|
|
|
2329
2329
|
export async function create(
|
|
2330
2330
|
client: SuiClient,
|
|
2331
2331
|
args: [
|
|
2332
|
-
_0x2.
|
|
2332
|
+
_0x2.object$.UID,
|
|
2333
2333
|
string[],
|
|
2334
2334
|
_0x2.balance.Balance<_0x2.sui.SUI>,
|
|
2335
2335
|
bigint,
|
|
@@ -4880,7 +4880,7 @@ export namespace sui_system_state_inner {
|
|
|
4880
4880
|
export async function validatorStakingPoolId(
|
|
4881
4881
|
client: SuiClient,
|
|
4882
4882
|
args: [string, string],
|
|
4883
|
-
): Promise<TypedDevInspectResults<[_0x2.
|
|
4883
|
+
): Promise<TypedDevInspectResults<[_0x2.object$.ID]>> {
|
|
4884
4884
|
const tx = new Transaction();
|
|
4885
4885
|
builder.validatorStakingPoolId(tx, args);
|
|
4886
4886
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -4889,7 +4889,7 @@ export namespace sui_system_state_inner {
|
|
|
4889
4889
|
});
|
|
4890
4890
|
|
|
4891
4891
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4892
|
-
[_0x2.
|
|
4892
|
+
[_0x2.object$.ID]
|
|
4893
4893
|
>(inspectRes);
|
|
4894
4894
|
}
|
|
4895
4895
|
export async function validatorStakingPoolMappings(
|
|
@@ -4912,7 +4912,7 @@ export namespace sui_system_state_inner {
|
|
|
4912
4912
|
|
|
4913
4913
|
export namespace validator {
|
|
4914
4914
|
export interface ConvertingToFungibleStakedSuiEvent {
|
|
4915
|
-
pool_id: _0x2.
|
|
4915
|
+
pool_id: _0x2.object$.ID;
|
|
4916
4916
|
stake_activation_epoch: bigint;
|
|
4917
4917
|
staked_sui_principal_amount: bigint;
|
|
4918
4918
|
fungible_staked_sui_amount: bigint;
|
|
@@ -4938,7 +4938,7 @@ export namespace validator {
|
|
|
4938
4938
|
}
|
|
4939
4939
|
|
|
4940
4940
|
export interface RedeemingFungibleStakedSuiEvent {
|
|
4941
|
-
pool_id: _0x2.
|
|
4941
|
+
pool_id: _0x2.object$.ID;
|
|
4942
4942
|
fungible_staked_sui_amount: bigint;
|
|
4943
4943
|
sui_amount: bigint;
|
|
4944
4944
|
}
|
|
@@ -4962,7 +4962,7 @@ export namespace validator {
|
|
|
4962
4962
|
}
|
|
4963
4963
|
|
|
4964
4964
|
export interface StakingRequestEvent {
|
|
4965
|
-
pool_id: _0x2.
|
|
4965
|
+
pool_id: _0x2.object$.ID;
|
|
4966
4966
|
validator_address: string;
|
|
4967
4967
|
staker_address: string;
|
|
4968
4968
|
epoch: bigint;
|
|
@@ -4988,7 +4988,7 @@ export namespace validator {
|
|
|
4988
4988
|
}
|
|
4989
4989
|
|
|
4990
4990
|
export interface UnstakingRequestEvent {
|
|
4991
|
-
pool_id: _0x2.
|
|
4991
|
+
pool_id: _0x2.object$.ID;
|
|
4992
4992
|
validator_address: string;
|
|
4993
4993
|
staker_address: string;
|
|
4994
4994
|
stake_activation_epoch: bigint;
|
|
@@ -5018,7 +5018,7 @@ export namespace validator {
|
|
|
5018
5018
|
export interface Validator {
|
|
5019
5019
|
metadata: validator.ValidatorMetadata;
|
|
5020
5020
|
voting_power: bigint;
|
|
5021
|
-
operation_cap_id: _0x2.
|
|
5021
|
+
operation_cap_id: _0x2.object$.ID;
|
|
5022
5022
|
gas_price: bigint;
|
|
5023
5023
|
staking_pool: staking_pool.StakingPool;
|
|
5024
5024
|
commission_rate: bigint;
|
|
@@ -5317,7 +5317,7 @@ export namespace validator {
|
|
|
5317
5317
|
arguments: _args,
|
|
5318
5318
|
});
|
|
5319
5319
|
}
|
|
5320
|
-
export function
|
|
5320
|
+
export function new$(
|
|
5321
5321
|
tx: Transaction,
|
|
5322
5322
|
args: [
|
|
5323
5323
|
string | TransactionArgument,
|
|
@@ -6563,7 +6563,7 @@ export namespace validator {
|
|
|
6563
6563
|
inspectRes,
|
|
6564
6564
|
);
|
|
6565
6565
|
}
|
|
6566
|
-
export async function
|
|
6566
|
+
export async function new$(
|
|
6567
6567
|
client: SuiClient,
|
|
6568
6568
|
args: [
|
|
6569
6569
|
string,
|
|
@@ -6584,7 +6584,7 @@ export namespace validator {
|
|
|
6584
6584
|
],
|
|
6585
6585
|
): Promise<TypedDevInspectResults<[validator.Validator]>> {
|
|
6586
6586
|
const tx = new Transaction();
|
|
6587
|
-
builder.
|
|
6587
|
+
builder.new$(tx, args);
|
|
6588
6588
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
6589
6589
|
transactionBlock: tx,
|
|
6590
6590
|
sender: ZERO_ADDRESS,
|
|
@@ -7077,7 +7077,7 @@ export namespace validator {
|
|
|
7077
7077
|
export async function stakingPoolId(
|
|
7078
7078
|
client: SuiClient,
|
|
7079
7079
|
args: [string],
|
|
7080
|
-
): Promise<TypedDevInspectResults<[_0x2.
|
|
7080
|
+
): Promise<TypedDevInspectResults<[_0x2.object$.ID]>> {
|
|
7081
7081
|
const tx = new Transaction();
|
|
7082
7082
|
builder.stakingPoolId(tx, args);
|
|
7083
7083
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -7086,7 +7086,7 @@ export namespace validator {
|
|
|
7086
7086
|
});
|
|
7087
7087
|
|
|
7088
7088
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
7089
|
-
[_0x2.
|
|
7089
|
+
[_0x2.object$.ID]
|
|
7090
7090
|
>(inspectRes);
|
|
7091
7091
|
}
|
|
7092
7092
|
export async function suiAddress(
|
|
@@ -7484,7 +7484,7 @@ export namespace validator {
|
|
|
7484
7484
|
|
|
7485
7485
|
export namespace validator_cap {
|
|
7486
7486
|
export interface UnverifiedValidatorOperationCap {
|
|
7487
|
-
id: _0x2.
|
|
7487
|
+
id: _0x2.object$.UID;
|
|
7488
7488
|
authorizer_validator_address: string;
|
|
7489
7489
|
}
|
|
7490
7490
|
|
|
@@ -7591,7 +7591,7 @@ export namespace validator_cap {
|
|
|
7591
7591
|
export async function newUnverifiedValidatorOperationCapAndTransfer(
|
|
7592
7592
|
client: SuiClient,
|
|
7593
7593
|
args: [string],
|
|
7594
|
-
): Promise<TypedDevInspectResults<[_0x2.
|
|
7594
|
+
): Promise<TypedDevInspectResults<[_0x2.object$.ID]>> {
|
|
7595
7595
|
const tx = new Transaction();
|
|
7596
7596
|
builder.newUnverifiedValidatorOperationCapAndTransfer(tx, args);
|
|
7597
7597
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -7600,7 +7600,7 @@ export namespace validator_cap {
|
|
|
7600
7600
|
});
|
|
7601
7601
|
|
|
7602
7602
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
7603
|
-
[_0x2.
|
|
7603
|
+
[_0x2.object$.ID]
|
|
7604
7604
|
>(inspectRes);
|
|
7605
7605
|
}
|
|
7606
7606
|
export async function unverifiedOperationCapAddress(
|
|
@@ -7703,7 +7703,7 @@ export namespace validator_set {
|
|
|
7703
7703
|
export interface ValidatorJoinEvent {
|
|
7704
7704
|
epoch: bigint;
|
|
7705
7705
|
validator_address: string;
|
|
7706
|
-
staking_pool_id: _0x2.
|
|
7706
|
+
staking_pool_id: _0x2.object$.ID;
|
|
7707
7707
|
}
|
|
7708
7708
|
|
|
7709
7709
|
export namespace ValidatorJoinEvent {
|
|
@@ -7727,7 +7727,7 @@ export namespace validator_set {
|
|
|
7727
7727
|
export interface ValidatorLeaveEvent {
|
|
7728
7728
|
epoch: bigint;
|
|
7729
7729
|
validator_address: string;
|
|
7730
|
-
staking_pool_id: _0x2.
|
|
7730
|
+
staking_pool_id: _0x2.object$.ID;
|
|
7731
7731
|
is_voluntary: boolean;
|
|
7732
7732
|
}
|
|
7733
7733
|
|
|
@@ -7754,9 +7754,9 @@ export namespace validator_set {
|
|
|
7754
7754
|
active_validators: validator.Validator[];
|
|
7755
7755
|
pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
|
|
7756
7756
|
pending_removals: bigint[];
|
|
7757
|
-
staking_pool_mappings: _0x2.table.Table<_0x2.
|
|
7757
|
+
staking_pool_mappings: _0x2.table.Table<_0x2.object$.ID, string>;
|
|
7758
7758
|
inactive_validators: _0x2.table.Table<
|
|
7759
|
-
_0x2.
|
|
7759
|
+
_0x2.object$.ID,
|
|
7760
7760
|
validator_wrapper.ValidatorWrapper
|
|
7761
7761
|
>;
|
|
7762
7762
|
validator_candidates: _0x2.table.Table<
|
|
@@ -8047,7 +8047,7 @@ export namespace validator_set {
|
|
|
8047
8047
|
tx: Transaction,
|
|
8048
8048
|
args: [
|
|
8049
8049
|
string | TransactionObjectArgument | TransactionArgument,
|
|
8050
|
-
_0x2.
|
|
8050
|
+
_0x2.object$.ID | TransactionArgument,
|
|
8051
8051
|
],
|
|
8052
8052
|
): TransactionArgument & [TransactionArgument, TransactionArgument] {
|
|
8053
8053
|
const _args: any[] = [];
|
|
@@ -8077,7 +8077,7 @@ export namespace validator_set {
|
|
|
8077
8077
|
arguments: _args,
|
|
8078
8078
|
});
|
|
8079
8079
|
}
|
|
8080
|
-
export function
|
|
8080
|
+
export function new$(
|
|
8081
8081
|
tx: Transaction,
|
|
8082
8082
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
8083
8083
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -8628,7 +8628,7 @@ export namespace validator_set {
|
|
|
8628
8628
|
}
|
|
8629
8629
|
export async function isInactiveValidator(
|
|
8630
8630
|
client: SuiClient,
|
|
8631
|
-
args: [string, _0x2.
|
|
8631
|
+
args: [string, _0x2.object$.ID],
|
|
8632
8632
|
): Promise<TypedDevInspectResults<[boolean]>> {
|
|
8633
8633
|
const tx = new Transaction();
|
|
8634
8634
|
builder.isInactiveValidator(tx, args);
|
|
@@ -8656,12 +8656,12 @@ export namespace validator_set {
|
|
|
8656
8656
|
inspectRes,
|
|
8657
8657
|
);
|
|
8658
8658
|
}
|
|
8659
|
-
export async function
|
|
8659
|
+
export async function new$(
|
|
8660
8660
|
client: SuiClient,
|
|
8661
8661
|
args: [string[]],
|
|
8662
8662
|
): Promise<TypedDevInspectResults<[validator_set.ValidatorSet]>> {
|
|
8663
8663
|
const tx = new Transaction();
|
|
8664
|
-
builder.
|
|
8664
|
+
builder.new$(tx, args);
|
|
8665
8665
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
8666
8666
|
transactionBlock: tx,
|
|
8667
8667
|
sender: ZERO_ADDRESS,
|
|
@@ -8899,7 +8899,7 @@ export namespace validator_set {
|
|
|
8899
8899
|
export async function validatorStakingPoolId(
|
|
8900
8900
|
client: SuiClient,
|
|
8901
8901
|
args: [string, string],
|
|
8902
|
-
): Promise<TypedDevInspectResults<[_0x2.
|
|
8902
|
+
): Promise<TypedDevInspectResults<[_0x2.object$.ID]>> {
|
|
8903
8903
|
const tx = new Transaction();
|
|
8904
8904
|
builder.validatorStakingPoolId(tx, args);
|
|
8905
8905
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -8908,7 +8908,7 @@ export namespace validator_set {
|
|
|
8908
8908
|
});
|
|
8909
8909
|
|
|
8910
8910
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
8911
|
-
[_0x2.
|
|
8911
|
+
[_0x2.object$.ID]
|
|
8912
8912
|
>(inspectRes);
|
|
8913
8913
|
}
|
|
8914
8914
|
export async function validatorTotalStakeAmount(
|
|
@@ -40,8 +40,8 @@ import * as _0x1 from "@typemove/sui/builtin/0x1";
|
|
|
40
40
|
|
|
41
41
|
export namespace oracle {
|
|
42
42
|
export interface Key<T0> {
|
|
43
|
-
id: _0x2.
|
|
44
|
-
for: _0x2.
|
|
43
|
+
id: _0x2.object$.UID;
|
|
44
|
+
for: _0x2.object$.ID;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export namespace Key {
|
|
@@ -58,7 +58,7 @@ export namespace oracle {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export interface Oracle<T0> {
|
|
61
|
-
id: _0x2.
|
|
61
|
+
id: _0x2.object$.UID;
|
|
62
62
|
decimal: bigint;
|
|
63
63
|
price: bigint;
|
|
64
64
|
twap_price_1h: bigint;
|
|
@@ -407,7 +407,7 @@ export namespace math_utils {
|
|
|
407
407
|
|
|
408
408
|
export namespace pool {
|
|
409
409
|
export interface ControllerCap {
|
|
410
|
-
id: _0x2.
|
|
410
|
+
id: _0x2.object$.UID;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
export namespace ControllerCap {
|
|
@@ -507,7 +507,7 @@ export namespace pool {
|
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
export interface Pool<T0, T1> {
|
|
510
|
-
id: _0x2.
|
|
510
|
+
id: _0x2.object$.UID;
|
|
511
511
|
first_token: _0x2.balance.Balance<T0>;
|
|
512
512
|
second_token: _0x2.balance.Balance<T1>;
|
|
513
513
|
wisp_lp_supply: _0x2.balance.Supply<pool.WISPLP<T0, T1>>;
|
|
@@ -579,7 +579,7 @@ export namespace pool {
|
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
export interface PoolRegistry {
|
|
582
|
-
id: _0x2.
|
|
582
|
+
id: _0x2.object$.UID;
|
|
583
583
|
fee_to: string;
|
|
584
584
|
pools: _0x2.object_bag.ObjectBag;
|
|
585
585
|
}
|
|
@@ -95,7 +95,7 @@ export namespace airdrop {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
export interface AirdropRegistry {
|
|
98
|
-
id: _0x2.
|
|
98
|
+
id: _0x2.object$.UID;
|
|
99
99
|
roles: roles.Roles;
|
|
100
100
|
record: _0x2.table.Table<string, boolean>;
|
|
101
101
|
}
|
|
@@ -725,7 +725,7 @@ export namespace roles {
|
|
|
725
725
|
],
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
export function
|
|
728
|
+
export function new$(tx: Transaction, args: []): TransactionArgument & [] {
|
|
729
729
|
const _args: any[] = [];
|
|
730
730
|
|
|
731
731
|
// @ts-ignore
|
|
@@ -898,12 +898,12 @@ export namespace roles {
|
|
|
898
898
|
inspectRes,
|
|
899
899
|
);
|
|
900
900
|
}
|
|
901
|
-
export async function
|
|
901
|
+
export async function new$(
|
|
902
902
|
client: SuiClient,
|
|
903
903
|
args: [],
|
|
904
904
|
): Promise<TypedDevInspectResults<[roles.Roles]>> {
|
|
905
905
|
const tx = new Transaction();
|
|
906
|
-
builder.
|
|
906
|
+
builder.new$(tx, args);
|
|
907
907
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
908
908
|
transactionBlock: tx,
|
|
909
909
|
sender: ZERO_ADDRESS,
|
|
@@ -934,7 +934,7 @@ export namespace roles {
|
|
|
934
934
|
|
|
935
935
|
export namespace safe {
|
|
936
936
|
export interface Safe<T0> {
|
|
937
|
-
id: _0x2.
|
|
937
|
+
id: _0x2.object$.UID;
|
|
938
938
|
balance: _0x2.balance.Balance<T0>;
|
|
939
939
|
}
|
|
940
940
|
|
|
@@ -992,7 +992,7 @@ export namespace safe {
|
|
|
992
992
|
],
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
|
-
export function
|
|
995
|
+
export function delete$<T0 = any>(
|
|
996
996
|
tx: Transaction,
|
|
997
997
|
args: [safe.Safe<T0> | TransactionArgument],
|
|
998
998
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -1012,7 +1012,7 @@ export namespace safe {
|
|
|
1012
1012
|
],
|
|
1013
1013
|
});
|
|
1014
1014
|
}
|
|
1015
|
-
export function
|
|
1015
|
+
export function new$<T0 = any>(
|
|
1016
1016
|
tx: Transaction,
|
|
1017
1017
|
args: [],
|
|
1018
1018
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
@@ -1136,13 +1136,13 @@ export namespace safe {
|
|
|
1136
1136
|
inspectRes,
|
|
1137
1137
|
);
|
|
1138
1138
|
}
|
|
1139
|
-
export async function
|
|
1139
|
+
export async function delete$<T0 = any>(
|
|
1140
1140
|
client: SuiClient,
|
|
1141
1141
|
args: [safe.Safe<T0>],
|
|
1142
1142
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1143
1143
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1144
1144
|
const tx = new Transaction();
|
|
1145
|
-
builder.
|
|
1145
|
+
builder.delete$(tx, args, typeArguments);
|
|
1146
1146
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1147
1147
|
transactionBlock: tx,
|
|
1148
1148
|
sender: ZERO_ADDRESS,
|
|
@@ -1152,13 +1152,13 @@ export namespace safe {
|
|
|
1152
1152
|
inspectRes,
|
|
1153
1153
|
);
|
|
1154
1154
|
}
|
|
1155
|
-
export async function
|
|
1155
|
+
export async function new$<T0 = any>(
|
|
1156
1156
|
client: SuiClient,
|
|
1157
1157
|
args: [],
|
|
1158
1158
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
1159
1159
|
): Promise<TypedDevInspectResults<[safe.Safe<T0>]>> {
|
|
1160
1160
|
const tx = new Transaction();
|
|
1161
|
-
builder.
|
|
1161
|
+
builder.new$(tx, args, typeArguments);
|
|
1162
1162
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1163
1163
|
transactionBlock: tx,
|
|
1164
1164
|
sender: ZERO_ADDRESS,
|
|
@@ -1242,7 +1242,7 @@ export namespace treasury {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
export interface WrappedTreasury<T0> {
|
|
1245
|
-
id: _0x2.
|
|
1245
|
+
id: _0x2.object$.UID;
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
1248
|
export namespace WrappedTreasury {
|