@waterx/sdk 2.1.0 → 2.3.1-dev.0
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/README.md +75 -169
- package/dist/src/client.d.ts +52 -2
- package/dist/src/client.js +76 -6
- package/dist/src/config.d.ts +57 -3
- package/dist/src/config.js +10 -4
- package/dist/src/constants.d.ts +6 -0
- package/dist/src/constants.js +6 -0
- package/dist/src/core/waterx-account.d.ts +31 -0
- package/dist/src/core/waterx-account.js +26 -0
- package/dist/src/fetch.d.ts +110 -0
- package/dist/src/fetch.js +149 -4
- package/dist/src/generated/bucket_v2_framework/account.d.ts +5 -5
- package/dist/src/generated/bucket_v2_framework/double.d.ts +77 -77
- package/dist/src/generated/bucket_v2_framework/float.d.ts +73 -73
- package/dist/src/generated/bucket_v2_framework/liability.d.ts +33 -33
- package/dist/src/generated/bucket_v2_framework/linked_table.d.ts +5 -5
- package/dist/src/generated/bucket_v2_framework/linked_table.js +2 -2
- package/dist/src/generated/bucket_v2_framework/sheet.d.ts +57 -57
- package/dist/src/generated/bucket_v2_framework/sheet.js +5 -11
- package/dist/src/generated/native_custody/custody_vault.d.ts +46 -32
- package/dist/src/generated/native_custody/custody_vault.js +19 -10
- package/dist/src/generated/native_custody/deps/bucket_v2_framework/sheet.js +1 -3
- package/dist/src/generated/native_custody/events.js +1 -2
- package/dist/src/generated/pyth_sponsor_rule/pyth_sponsor_rule.d.ts +7 -7
- package/dist/src/generated/pyth_sponsor_rule/pyth_sponsor_rule.js +1 -2
- package/dist/src/generated/utils/index.d.ts +7 -7
- package/dist/src/generated/utils/index.js +9 -6
- package/dist/src/generated/waterx_account/account.d.ts +124 -71
- package/dist/src/generated/waterx_account/account.js +64 -29
- package/dist/src/generated/waterx_account/deps/bucket_v2_framework/sheet.js +1 -3
- package/dist/src/generated/waterx_account/direct_rule.d.ts +5 -5
- package/dist/src/generated/waterx_account/events.d.ts +10 -0
- package/dist/src/generated/waterx_account/events.js +31 -50
- package/dist/src/generated/waterx_constant_rule/constant_rule.d.ts +68 -0
- package/dist/src/generated/waterx_constant_rule/constant_rule.js +59 -0
- package/dist/src/generated/waterx_constant_rule/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/src/generated/waterx_constant_rule/deps/bucket_v2_framework/float.js +10 -0
- package/dist/src/generated/waterx_constant_rule/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_constant_rule/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_credit/credit_registry.d.ts +9 -9
- package/dist/src/generated/waterx_credit/credit_registry.js +1 -2
- package/dist/src/generated/waterx_credit/limited_supply.d.ts +17 -17
- package/dist/src/generated/waterx_oracle/aggregator.js +1 -2
- package/dist/src/generated/waterx_oracle/collector.d.ts +17 -17
- package/dist/src/generated/waterx_oracle/collector.js +1 -1
- package/dist/src/generated/waterx_oracle/oracle.d.ts +5 -5
- package/dist/src/generated/waterx_perp/account_data.d.ts +5 -5
- package/dist/src/generated/waterx_perp/account_data.js +1 -2
- package/dist/src/generated/waterx_perp/deps/bucket_v2_framework/sheet.js +1 -3
- package/dist/src/generated/waterx_perp/events.d.ts +181 -181
- package/dist/src/generated/waterx_perp/events.js +87 -173
- package/dist/src/generated/waterx_perp/global_config.d.ts +3 -3
- package/dist/src/generated/waterx_perp/global_config.js +6 -12
- package/dist/src/generated/waterx_perp/keyed_big_vector.d.ts +9 -9
- package/dist/src/generated/waterx_perp/keyed_big_vector.js +1 -2
- package/dist/src/generated/waterx_perp/lp_pool.d.ts +115 -115
- package/dist/src/generated/waterx_perp/lp_pool.js +11 -22
- package/dist/src/generated/waterx_perp/market_config.d.ts +61 -43
- package/dist/src/generated/waterx_perp/market_config.js +29 -22
- package/dist/src/generated/waterx_perp/math.d.ts +7 -7
- package/dist/src/generated/waterx_perp/order_book.d.ts +47 -47
- package/dist/src/generated/waterx_perp/position.d.ts +99 -99
- package/dist/src/generated/waterx_perp/position.js +6 -12
- package/dist/src/generated/waterx_perp/request.d.ts +67 -67
- package/dist/src/generated/waterx_perp/request.js +2 -3
- package/dist/src/generated/waterx_perp/response.d.ts +35 -35
- package/dist/src/generated/waterx_perp/response.js +1 -2
- package/dist/src/generated/waterx_perp/trading.d.ts +303 -179
- package/dist/src/generated/waterx_perp/trading.js +99 -14
- package/dist/src/generated/waterx_perp_view/view.js +5 -10
- package/dist/src/generated/waterx_pyth_rule/pyth_rule.d.ts +5 -5
- package/dist/src/generated/waterx_pyth_rule/pyth_rule.js +1 -2
- package/dist/src/generated/waterx_referral/referral_table.d.ts +5 -5
- package/dist/src/generated/waterx_referral/referral_table.js +1 -2
- package/dist/src/generated/waterx_staking/waterx_staking.d.ts +19 -19
- package/dist/src/generated/waterx_staking/waterx_staking.js +10 -20
- package/dist/src/generated/waterx_supra_rule/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_supra_rule/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_supra_rule/supra_rule.d.ts +158 -0
- package/dist/src/generated/waterx_supra_rule/supra_rule.js +148 -0
- package/dist/src/generated/withdrawal_queue/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/src/generated/withdrawal_queue/deps/bucket_v2_framework/float.js +10 -0
- package/dist/src/generated/withdrawal_queue/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/withdrawal_queue/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/withdrawal_queue/withdrawal_queue.d.ts +444 -4
- package/dist/src/generated/withdrawal_queue/withdrawal_queue.js +417 -4
- package/dist/src/generated/wormhole_bridge/wormhole_bridge.d.ts +214 -74
- package/dist/src/generated/wormhole_bridge/wormhole_bridge.js +158 -29
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.js +3 -2
- package/dist/src/prediction/account.d.ts +96 -0
- package/dist/src/prediction/account.js +230 -0
- package/dist/src/prediction/admin.d.ts +47 -0
- package/dist/src/prediction/admin.js +105 -0
- package/dist/src/prediction/bcs.d.ts +22 -0
- package/dist/src/prediction/bcs.js +240 -0
- package/dist/src/prediction/client.d.ts +75 -0
- package/dist/src/prediction/client.js +164 -0
- package/dist/src/prediction/config.d.ts +60 -0
- package/dist/src/prediction/config.js +75 -0
- package/dist/src/prediction/constants.d.ts +44 -0
- package/dist/src/prediction/constants.js +46 -0
- package/dist/src/prediction/fetch.d.ts +82 -0
- package/dist/src/prediction/fetch.js +270 -0
- package/dist/src/prediction/generated/bucket_v2_framework/account.d.ts +100 -0
- package/dist/src/prediction/generated/bucket_v2_framework/account.js +129 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/std/type_name.d.ts +6 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/std/type_name.js +19 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/balance.d.ts +10 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/balance.js +14 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/vec_map.js +27 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/vec_set.js +19 -0
- package/dist/src/prediction/generated/bucket_v2_framework/double.d.ts +382 -0
- package/dist/src/prediction/generated/bucket_v2_framework/double.js +466 -0
- package/dist/src/prediction/generated/bucket_v2_framework/float.d.ts +362 -0
- package/dist/src/prediction/generated/bucket_v2_framework/float.js +440 -0
- package/dist/src/prediction/generated/bucket_v2_framework/liability.d.ts +193 -0
- package/dist/src/prediction/generated/bucket_v2_framework/liability.js +205 -0
- package/dist/src/prediction/generated/bucket_v2_framework/linked_table.d.ts +384 -0
- package/dist/src/prediction/generated/bucket_v2_framework/linked_table.js +382 -0
- package/dist/src/prediction/generated/bucket_v2_framework/sheet.d.ts +344 -0
- package/dist/src/prediction/generated/bucket_v2_framework/sheet.js +338 -0
- package/dist/src/prediction/generated/utils/index.d.ts +30 -0
- package/dist/src/prediction/generated/utils/index.js +160 -0
- package/dist/src/prediction/generated/waterx_account/account.d.ts +1589 -0
- package/dist/src/prediction/generated/waterx_account/account.js +1758 -0
- package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/liability.d.ts +7 -0
- package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/liability.js +13 -0
- package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/sheet.d.ts +7 -0
- package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/sheet.js +16 -0
- package/dist/src/prediction/generated/waterx_account/deps/std/type_name.d.ts +6 -0
- package/dist/src/prediction/generated/waterx_account/deps/std/type_name.js +19 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/balance.d.ts +10 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/balance.js +14 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/object_table.d.ts +12 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/object_table.js +19 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/table.d.ts +24 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/table.js +31 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/vec_map.js +27 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/prediction/generated/waterx_account/deps/sui/vec_set.js +19 -0
- package/dist/src/prediction/generated/waterx_account/direct_rule.d.ts +75 -0
- package/dist/src/prediction/generated/waterx_account/direct_rule.js +78 -0
- package/dist/src/prediction/generated/waterx_account/events.d.ts +33 -0
- package/dist/src/prediction/generated/waterx_account/events.js +137 -0
- package/dist/src/prediction/generated/waterx_account/version.d.ts +10 -0
- package/dist/src/prediction/generated/waterx_account/version.js +8 -0
- package/dist/src/prediction/generated/waterx_prediction/account_data.d.ts +327 -0
- package/dist/src/prediction/generated/waterx_prediction/account_data.js +405 -0
- package/dist/src/prediction/generated/waterx_prediction/admin.d.ts +5 -0
- package/dist/src/prediction/generated/waterx_prediction/admin.js +9 -0
- package/dist/src/prediction/generated/waterx_prediction/bet_sharing.d.ts +60 -0
- package/dist/src/prediction/generated/waterx_prediction/bet_sharing.js +83 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/bucket_v2_framework/linked_table.d.ts +8 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/bucket_v2_framework/linked_table.js +18 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/sui/balance.d.ts +10 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/sui/balance.js +14 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/sui/table.d.ts +24 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/sui/table.js +31 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/sui/vec_set.d.ts +16 -0
- package/dist/src/prediction/generated/waterx_prediction/deps/sui/vec_set.js +19 -0
- package/dist/src/prediction/generated/waterx_prediction/events.d.ts +22 -0
- package/dist/src/prediction/generated/waterx_prediction/events.js +179 -0
- package/dist/src/prediction/generated/waterx_prediction/global_config.d.ts +116 -0
- package/dist/src/prediction/generated/waterx_prediction/global_config.js +141 -0
- package/dist/src/prediction/generated/waterx_prediction/order.d.ts +200 -0
- package/dist/src/prediction/generated/waterx_prediction/order.js +284 -0
- package/dist/src/prediction/generated/waterx_prediction/outcome.d.ts +58 -0
- package/dist/src/prediction/generated/waterx_prediction/outcome.js +73 -0
- package/dist/src/prediction/generated/waterx_prediction/position.d.ts +160 -0
- package/dist/src/prediction/generated/waterx_prediction/position.js +214 -0
- package/dist/src/prediction/generated/waterx_prediction/version.d.ts +10 -0
- package/dist/src/prediction/generated/waterx_prediction/version.js +8 -0
- package/dist/src/prediction/generated/waterx_prediction/view.d.ts +353 -0
- package/dist/src/prediction/generated/waterx_prediction/view.js +432 -0
- package/dist/src/prediction/generated/waterx_prediction/waterx_prediction.d.ts +1698 -0
- package/dist/src/prediction/generated/waterx_prediction/waterx_prediction.js +1733 -0
- package/dist/src/prediction/gift-link.d.ts +6 -0
- package/dist/src/prediction/gift-link.js +5 -0
- package/dist/src/prediction/gift.d.ts +223 -0
- package/dist/src/prediction/gift.js +451 -0
- package/dist/src/prediction/index.d.ts +29 -0
- package/dist/src/prediction/index.js +21 -0
- package/dist/src/prediction/prediction.d.ts +104 -0
- package/dist/src/prediction/prediction.js +317 -0
- package/dist/src/prediction/tx-builders.d.ts +44 -0
- package/dist/src/prediction/tx-builders.js +52 -0
- package/dist/src/prediction/types.d.ts +93 -0
- package/dist/src/prediction/types.js +1 -0
- package/dist/src/prediction/user/account.d.ts +2 -0
- package/dist/src/prediction/user/account.js +1 -0
- package/dist/src/prediction/user/admin.d.ts +6 -0
- package/dist/src/prediction/user/admin.js +3 -0
- package/dist/src/prediction/user/gift.d.ts +2 -0
- package/dist/src/prediction/user/gift.js +1 -0
- package/dist/src/prediction/user/index.d.ts +5 -0
- package/dist/src/prediction/user/index.js +3 -0
- package/dist/src/prediction/user/keeper.d.ts +2 -0
- package/dist/src/prediction/user/keeper.js +1 -0
- package/dist/src/prediction/user/order.d.ts +2 -0
- package/dist/src/prediction/user/order.js +1 -0
- package/dist/src/prediction/user/position.d.ts +2 -0
- package/dist/src/prediction/user/position.js +1 -0
- package/dist/src/prediction/utils/bcs.d.ts +1 -0
- package/dist/src/prediction/utils/bcs.js +1 -0
- package/dist/src/prediction/utils/index.d.ts +1 -0
- package/dist/src/prediction/utils/index.js +1 -0
- package/dist/src/prediction/utils.d.ts +30 -0
- package/dist/src/prediction/utils.js +177 -0
- package/dist/src/sdk.d.ts +18 -0
- package/dist/src/sdk.js +17 -0
- package/dist/src/tx-builders.d.ts +54 -0
- package/dist/src/tx-builders.js +141 -0
- package/dist/src/unified-client.d.ts +407 -0
- package/dist/src/unified-client.js +123 -0
- package/dist/src/user/account.d.ts +27 -0
- package/dist/src/user/account.js +34 -8
- package/dist/src/user/credit.d.ts +8 -14
- package/dist/src/user/credit.js +9 -23
- package/dist/src/user/custody.d.ts +4 -18
- package/dist/src/user/custody.js +14 -25
- package/dist/src/utils/consolidate-balance.d.ts +37 -0
- package/dist/src/utils/consolidate-balance.js +89 -0
- package/dist/src/utils/math.d.ts +86 -0
- package/dist/src/utils/math.js +100 -0
- package/dist/src/utils/pyth.d.ts +35 -3
- package/dist/src/utils/pyth.js +145 -14
- package/package.json +129 -34
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
/** Module for double precision floating points */
|
|
5
5
|
import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
6
|
-
import { type Transaction } from '@mysten/sui/transactions';
|
|
6
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
7
7
|
export declare const Double: MoveStruct<{
|
|
8
8
|
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
9
9
|
}, "@bucket/framework::double::Double">;
|
|
@@ -89,290 +89,290 @@ export interface FromScaledValOptions {
|
|
|
89
89
|
}
|
|
90
90
|
export declare function fromScaledVal(options: FromScaledValOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
91
91
|
export interface FromFloatArguments {
|
|
92
|
-
f:
|
|
92
|
+
f: TransactionArgument;
|
|
93
93
|
}
|
|
94
94
|
export interface FromFloatOptions {
|
|
95
95
|
package?: string;
|
|
96
96
|
arguments: FromFloatArguments | [
|
|
97
|
-
f:
|
|
97
|
+
f: TransactionArgument
|
|
98
98
|
];
|
|
99
99
|
}
|
|
100
100
|
export declare function fromFloat(options: FromFloatOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
101
101
|
export interface ToScaledValArguments {
|
|
102
|
-
v:
|
|
102
|
+
v: TransactionArgument;
|
|
103
103
|
}
|
|
104
104
|
export interface ToScaledValOptions {
|
|
105
105
|
package?: string;
|
|
106
106
|
arguments: ToScaledValArguments | [
|
|
107
|
-
v:
|
|
107
|
+
v: TransactionArgument
|
|
108
108
|
];
|
|
109
109
|
}
|
|
110
110
|
export declare function toScaledVal(options: ToScaledValOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
111
111
|
export interface TryIntoFloatArguments {
|
|
112
|
-
v:
|
|
112
|
+
v: TransactionArgument;
|
|
113
113
|
}
|
|
114
114
|
export interface TryIntoFloatOptions {
|
|
115
115
|
package?: string;
|
|
116
116
|
arguments: TryIntoFloatArguments | [
|
|
117
|
-
v:
|
|
117
|
+
v: TransactionArgument
|
|
118
118
|
];
|
|
119
119
|
}
|
|
120
120
|
export declare function tryIntoFloat(options: TryIntoFloatOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
121
121
|
export interface AddArguments {
|
|
122
|
-
a:
|
|
123
|
-
b:
|
|
122
|
+
a: TransactionArgument;
|
|
123
|
+
b: TransactionArgument;
|
|
124
124
|
}
|
|
125
125
|
export interface AddOptions {
|
|
126
126
|
package?: string;
|
|
127
127
|
arguments: AddArguments | [
|
|
128
|
-
a:
|
|
129
|
-
b:
|
|
128
|
+
a: TransactionArgument,
|
|
129
|
+
b: TransactionArgument
|
|
130
130
|
];
|
|
131
131
|
}
|
|
132
132
|
export declare function add(options: AddOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
133
133
|
export interface SubArguments {
|
|
134
|
-
a:
|
|
135
|
-
b:
|
|
134
|
+
a: TransactionArgument;
|
|
135
|
+
b: TransactionArgument;
|
|
136
136
|
}
|
|
137
137
|
export interface SubOptions {
|
|
138
138
|
package?: string;
|
|
139
139
|
arguments: SubArguments | [
|
|
140
|
-
a:
|
|
141
|
-
b:
|
|
140
|
+
a: TransactionArgument,
|
|
141
|
+
b: TransactionArgument
|
|
142
142
|
];
|
|
143
143
|
}
|
|
144
144
|
export declare function sub(options: SubOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
145
145
|
export interface SaturatingSubArguments {
|
|
146
|
-
a:
|
|
147
|
-
b:
|
|
146
|
+
a: TransactionArgument;
|
|
147
|
+
b: TransactionArgument;
|
|
148
148
|
}
|
|
149
149
|
export interface SaturatingSubOptions {
|
|
150
150
|
package?: string;
|
|
151
151
|
arguments: SaturatingSubArguments | [
|
|
152
|
-
a:
|
|
153
|
-
b:
|
|
152
|
+
a: TransactionArgument,
|
|
153
|
+
b: TransactionArgument
|
|
154
154
|
];
|
|
155
155
|
}
|
|
156
156
|
export declare function saturatingSub(options: SaturatingSubOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
157
157
|
export interface MulArguments {
|
|
158
|
-
a:
|
|
159
|
-
b:
|
|
158
|
+
a: TransactionArgument;
|
|
159
|
+
b: TransactionArgument;
|
|
160
160
|
}
|
|
161
161
|
export interface MulOptions {
|
|
162
162
|
package?: string;
|
|
163
163
|
arguments: MulArguments | [
|
|
164
|
-
a:
|
|
165
|
-
b:
|
|
164
|
+
a: TransactionArgument,
|
|
165
|
+
b: TransactionArgument
|
|
166
166
|
];
|
|
167
167
|
}
|
|
168
168
|
export declare function mul(options: MulOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
169
169
|
export interface DivArguments {
|
|
170
|
-
a:
|
|
171
|
-
b:
|
|
170
|
+
a: TransactionArgument;
|
|
171
|
+
b: TransactionArgument;
|
|
172
172
|
}
|
|
173
173
|
export interface DivOptions {
|
|
174
174
|
package?: string;
|
|
175
175
|
arguments: DivArguments | [
|
|
176
|
-
a:
|
|
177
|
-
b:
|
|
176
|
+
a: TransactionArgument,
|
|
177
|
+
b: TransactionArgument
|
|
178
178
|
];
|
|
179
179
|
}
|
|
180
180
|
export declare function div(options: DivOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
181
181
|
export interface AddU64Arguments {
|
|
182
|
-
a:
|
|
182
|
+
a: TransactionArgument;
|
|
183
183
|
b: RawTransactionArgument<number | bigint>;
|
|
184
184
|
}
|
|
185
185
|
export interface AddU64Options {
|
|
186
186
|
package?: string;
|
|
187
187
|
arguments: AddU64Arguments | [
|
|
188
|
-
a:
|
|
188
|
+
a: TransactionArgument,
|
|
189
189
|
b: RawTransactionArgument<number | bigint>
|
|
190
190
|
];
|
|
191
191
|
}
|
|
192
192
|
export declare function addU64(options: AddU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
193
193
|
export interface SubU64Arguments {
|
|
194
|
-
a:
|
|
194
|
+
a: TransactionArgument;
|
|
195
195
|
b: RawTransactionArgument<number | bigint>;
|
|
196
196
|
}
|
|
197
197
|
export interface SubU64Options {
|
|
198
198
|
package?: string;
|
|
199
199
|
arguments: SubU64Arguments | [
|
|
200
|
-
a:
|
|
200
|
+
a: TransactionArgument,
|
|
201
201
|
b: RawTransactionArgument<number | bigint>
|
|
202
202
|
];
|
|
203
203
|
}
|
|
204
204
|
export declare function subU64(options: SubU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
205
205
|
export interface SaturatingSubU64Arguments {
|
|
206
|
-
a:
|
|
206
|
+
a: TransactionArgument;
|
|
207
207
|
b: RawTransactionArgument<number | bigint>;
|
|
208
208
|
}
|
|
209
209
|
export interface SaturatingSubU64Options {
|
|
210
210
|
package?: string;
|
|
211
211
|
arguments: SaturatingSubU64Arguments | [
|
|
212
|
-
a:
|
|
212
|
+
a: TransactionArgument,
|
|
213
213
|
b: RawTransactionArgument<number | bigint>
|
|
214
214
|
];
|
|
215
215
|
}
|
|
216
216
|
export declare function saturatingSubU64(options: SaturatingSubU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
217
217
|
export interface MulU64Arguments {
|
|
218
|
-
a:
|
|
218
|
+
a: TransactionArgument;
|
|
219
219
|
b: RawTransactionArgument<number | bigint>;
|
|
220
220
|
}
|
|
221
221
|
export interface MulU64Options {
|
|
222
222
|
package?: string;
|
|
223
223
|
arguments: MulU64Arguments | [
|
|
224
|
-
a:
|
|
224
|
+
a: TransactionArgument,
|
|
225
225
|
b: RawTransactionArgument<number | bigint>
|
|
226
226
|
];
|
|
227
227
|
}
|
|
228
228
|
export declare function mulU64(options: MulU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
229
229
|
export interface DivU64Arguments {
|
|
230
|
-
a:
|
|
230
|
+
a: TransactionArgument;
|
|
231
231
|
b: RawTransactionArgument<number | bigint>;
|
|
232
232
|
}
|
|
233
233
|
export interface DivU64Options {
|
|
234
234
|
package?: string;
|
|
235
235
|
arguments: DivU64Arguments | [
|
|
236
|
-
a:
|
|
236
|
+
a: TransactionArgument,
|
|
237
237
|
b: RawTransactionArgument<number | bigint>
|
|
238
238
|
];
|
|
239
239
|
}
|
|
240
240
|
export declare function divU64(options: DivU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
241
241
|
export interface PowArguments {
|
|
242
|
-
b:
|
|
242
|
+
b: TransactionArgument;
|
|
243
243
|
e: RawTransactionArgument<number | bigint>;
|
|
244
244
|
}
|
|
245
245
|
export interface PowOptions {
|
|
246
246
|
package?: string;
|
|
247
247
|
arguments: PowArguments | [
|
|
248
|
-
b:
|
|
248
|
+
b: TransactionArgument,
|
|
249
249
|
e: RawTransactionArgument<number | bigint>
|
|
250
250
|
];
|
|
251
251
|
}
|
|
252
252
|
export declare function pow(options: PowOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
253
253
|
export interface FloorArguments {
|
|
254
|
-
v:
|
|
254
|
+
v: TransactionArgument;
|
|
255
255
|
}
|
|
256
256
|
export interface FloorOptions {
|
|
257
257
|
package?: string;
|
|
258
258
|
arguments: FloorArguments | [
|
|
259
|
-
v:
|
|
259
|
+
v: TransactionArgument
|
|
260
260
|
];
|
|
261
261
|
}
|
|
262
262
|
export declare function floor(options: FloorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
263
263
|
export interface CeilArguments {
|
|
264
|
-
v:
|
|
264
|
+
v: TransactionArgument;
|
|
265
265
|
}
|
|
266
266
|
export interface CeilOptions {
|
|
267
267
|
package?: string;
|
|
268
268
|
arguments: CeilArguments | [
|
|
269
|
-
v:
|
|
269
|
+
v: TransactionArgument
|
|
270
270
|
];
|
|
271
271
|
}
|
|
272
272
|
export declare function ceil(options: CeilOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
273
273
|
export interface RoundArguments {
|
|
274
|
-
v:
|
|
274
|
+
v: TransactionArgument;
|
|
275
275
|
}
|
|
276
276
|
export interface RoundOptions {
|
|
277
277
|
package?: string;
|
|
278
278
|
arguments: RoundArguments | [
|
|
279
|
-
v:
|
|
279
|
+
v: TransactionArgument
|
|
280
280
|
];
|
|
281
281
|
}
|
|
282
282
|
export declare function round(options: RoundOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
283
283
|
export interface EqArguments {
|
|
284
|
-
a:
|
|
285
|
-
b:
|
|
284
|
+
a: TransactionArgument;
|
|
285
|
+
b: TransactionArgument;
|
|
286
286
|
}
|
|
287
287
|
export interface EqOptions {
|
|
288
288
|
package?: string;
|
|
289
289
|
arguments: EqArguments | [
|
|
290
|
-
a:
|
|
291
|
-
b:
|
|
290
|
+
a: TransactionArgument,
|
|
291
|
+
b: TransactionArgument
|
|
292
292
|
];
|
|
293
293
|
}
|
|
294
294
|
export declare function eq(options: EqOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
295
295
|
export interface GtArguments {
|
|
296
|
-
a:
|
|
297
|
-
b:
|
|
296
|
+
a: TransactionArgument;
|
|
297
|
+
b: TransactionArgument;
|
|
298
298
|
}
|
|
299
299
|
export interface GtOptions {
|
|
300
300
|
package?: string;
|
|
301
301
|
arguments: GtArguments | [
|
|
302
|
-
a:
|
|
303
|
-
b:
|
|
302
|
+
a: TransactionArgument,
|
|
303
|
+
b: TransactionArgument
|
|
304
304
|
];
|
|
305
305
|
}
|
|
306
306
|
export declare function gt(options: GtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
307
307
|
export interface GteArguments {
|
|
308
|
-
a:
|
|
309
|
-
b:
|
|
308
|
+
a: TransactionArgument;
|
|
309
|
+
b: TransactionArgument;
|
|
310
310
|
}
|
|
311
311
|
export interface GteOptions {
|
|
312
312
|
package?: string;
|
|
313
313
|
arguments: GteArguments | [
|
|
314
|
-
a:
|
|
315
|
-
b:
|
|
314
|
+
a: TransactionArgument,
|
|
315
|
+
b: TransactionArgument
|
|
316
316
|
];
|
|
317
317
|
}
|
|
318
318
|
export declare function gte(options: GteOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
319
319
|
export interface LtArguments {
|
|
320
|
-
a:
|
|
321
|
-
b:
|
|
320
|
+
a: TransactionArgument;
|
|
321
|
+
b: TransactionArgument;
|
|
322
322
|
}
|
|
323
323
|
export interface LtOptions {
|
|
324
324
|
package?: string;
|
|
325
325
|
arguments: LtArguments | [
|
|
326
|
-
a:
|
|
327
|
-
b:
|
|
326
|
+
a: TransactionArgument,
|
|
327
|
+
b: TransactionArgument
|
|
328
328
|
];
|
|
329
329
|
}
|
|
330
330
|
export declare function lt(options: LtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
331
331
|
export interface LteArguments {
|
|
332
|
-
a:
|
|
333
|
-
b:
|
|
332
|
+
a: TransactionArgument;
|
|
333
|
+
b: TransactionArgument;
|
|
334
334
|
}
|
|
335
335
|
export interface LteOptions {
|
|
336
336
|
package?: string;
|
|
337
337
|
arguments: LteArguments | [
|
|
338
|
-
a:
|
|
339
|
-
b:
|
|
338
|
+
a: TransactionArgument,
|
|
339
|
+
b: TransactionArgument
|
|
340
340
|
];
|
|
341
341
|
}
|
|
342
342
|
export declare function lte(options: LteOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
343
343
|
export interface MinArguments {
|
|
344
|
-
a:
|
|
345
|
-
b:
|
|
344
|
+
a: TransactionArgument;
|
|
345
|
+
b: TransactionArgument;
|
|
346
346
|
}
|
|
347
347
|
export interface MinOptions {
|
|
348
348
|
package?: string;
|
|
349
349
|
arguments: MinArguments | [
|
|
350
|
-
a:
|
|
351
|
-
b:
|
|
350
|
+
a: TransactionArgument,
|
|
351
|
+
b: TransactionArgument
|
|
352
352
|
];
|
|
353
353
|
}
|
|
354
354
|
export declare function min(options: MinOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
355
355
|
export interface MaxArguments {
|
|
356
|
-
a:
|
|
357
|
-
b:
|
|
356
|
+
a: TransactionArgument;
|
|
357
|
+
b: TransactionArgument;
|
|
358
358
|
}
|
|
359
359
|
export interface MaxOptions {
|
|
360
360
|
package?: string;
|
|
361
361
|
arguments: MaxArguments | [
|
|
362
|
-
a:
|
|
363
|
-
b:
|
|
362
|
+
a: TransactionArgument,
|
|
363
|
+
b: TransactionArgument
|
|
364
364
|
];
|
|
365
365
|
}
|
|
366
366
|
export declare function max(options: MaxOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
367
367
|
export interface DiffArguments {
|
|
368
|
-
a:
|
|
369
|
-
b:
|
|
368
|
+
a: TransactionArgument;
|
|
369
|
+
b: TransactionArgument;
|
|
370
370
|
}
|
|
371
371
|
export interface DiffOptions {
|
|
372
372
|
package?: string;
|
|
373
373
|
arguments: DiffArguments | [
|
|
374
|
-
a:
|
|
375
|
-
b:
|
|
374
|
+
a: TransactionArgument,
|
|
375
|
+
b: TransactionArgument
|
|
376
376
|
];
|
|
377
377
|
}
|
|
378
378
|
export declare function diff(options: DiffOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|