@waterx/sdk 4.0.0 → 4.1.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 +52 -37
- package/dist/cjs/src/account/account.js +2 -1
- package/dist/cjs/src/account/config.d.ts +0 -16
- package/dist/cjs/src/account/funding/balance.d.ts +25 -2
- package/dist/cjs/src/account/funding/balance.js +36 -24
- package/dist/cjs/src/account/funding/credit.js +6 -10
- package/dist/cjs/src/constants.d.ts +15 -1
- package/dist/cjs/src/constants.js +18 -4
- package/dist/cjs/src/generated/waterx_rule/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/cjs/src/generated/waterx_rule/deps/bucket_v2_framework/float.js +13 -0
- package/dist/cjs/src/generated/waterx_rule/deps/sui/vec_map.d.ts +36 -0
- package/dist/cjs/src/generated/waterx_rule/deps/sui/vec_map.js +31 -0
- package/dist/cjs/src/generated/waterx_rule/waterx_rule.d.ts +940 -0
- package/dist/cjs/src/generated/waterx_rule/waterx_rule.js +1092 -0
- package/dist/cjs/src/oracle/aggregate.d.ts +21 -21
- package/dist/cjs/src/oracle/aggregate.js +84 -71
- package/dist/cjs/src/oracle/config.d.ts +107 -52
- package/dist/cjs/src/oracle/config.js +15 -35
- package/dist/cjs/src/oracle/host.d.ts +13 -2
- package/dist/cjs/src/oracle/index.d.ts +4 -2
- package/dist/cjs/src/oracle/index.js +25 -6
- package/dist/cjs/src/oracle/price-update-rule.d.ts +3 -4
- package/dist/cjs/src/oracle/pyth.d.ts +68 -6
- package/dist/cjs/src/oracle/pyth.js +338 -22
- package/dist/cjs/src/oracle/rule-registry.d.ts +11 -6
- package/dist/cjs/src/oracle/rule-registry.js +13 -6
- package/dist/cjs/src/oracle/rules/pyth-core-rule.js +17 -2
- package/dist/cjs/src/oracle/rules/pyth-lazer-rule.d.ts +6 -6
- package/dist/cjs/src/oracle/rules/pyth-lazer-rule.js +25 -22
- package/dist/cjs/src/oracle/rules/pyth-rule.js +5 -0
- package/dist/cjs/src/oracle/rules/waterx-rule.d.ts +89 -0
- package/dist/cjs/src/oracle/rules/waterx-rule.js +272 -0
- package/dist/cjs/src/oracle/update-fetch.d.ts +32 -2
- package/dist/cjs/src/oracle/update-fetch.js +60 -3
- package/dist/cjs/src/perp/client.d.ts +71 -19
- package/dist/cjs/src/perp/client.js +30 -10
- package/dist/cjs/src/perp/config.d.ts +4 -7
- package/dist/cjs/src/perp/config.js +9 -12
- package/dist/cjs/src/perp/constants.d.ts +0 -6
- package/dist/cjs/src/perp/constants.js +11 -9
- package/dist/cjs/src/perp/fetch/account.js +3 -0
- package/dist/cjs/src/perp/fetch/bridge.js +2 -1
- package/dist/cjs/src/perp/fetch/market.js +2 -1
- package/dist/cjs/src/perp/fetch/positions.d.ts +16 -10
- package/dist/cjs/src/perp/fetch/positions.js +23 -20
- package/dist/cjs/src/perp/index.d.ts +8 -4
- package/dist/cjs/src/perp/index.js +12 -7
- package/dist/cjs/src/perp/liq-view.d.ts +64 -0
- package/dist/cjs/src/perp/liq-view.js +74 -0
- package/dist/cjs/src/perp/user/order.d.ts +13 -0
- package/dist/cjs/src/perp/user/order.js +30 -16
- package/dist/cjs/src/perp/user/staking.js +3 -2
- package/dist/cjs/src/perp/user/trading.js +25 -24
- package/dist/cjs/src/perp/user/wlp.js +6 -5
- package/dist/cjs/src/prediction/utils.d.ts +11 -2
- package/dist/cjs/src/prediction/utils.js +22 -22
- package/dist/cjs/src/unified-client.d.ts +49 -20
- package/dist/cjs/src/unified-client.js +4 -1
- package/dist/cjs/src/utils/format.d.ts +14 -0
- package/dist/cjs/src/utils/format.js +24 -0
- package/dist/cjs/src/utils/math.d.ts +304 -12
- package/dist/cjs/src/utils/math.js +397 -17
- package/dist/cjs/src/utils/validate.d.ts +69 -0
- package/dist/cjs/src/utils/validate.js +183 -0
- package/dist/src/account/account.js +2 -1
- package/dist/src/account/config.d.ts +0 -16
- package/dist/src/account/funding/balance.d.ts +25 -2
- package/dist/src/account/funding/balance.js +36 -24
- package/dist/src/account/funding/credit.js +6 -10
- package/dist/src/constants.d.ts +15 -1
- package/dist/src/constants.js +17 -3
- package/dist/src/generated/waterx_rule/deps/bucket_v2_framework/float.d.ts +8 -0
- package/dist/src/generated/waterx_rule/deps/bucket_v2_framework/float.js +10 -0
- package/dist/src/generated/waterx_rule/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/waterx_rule/deps/sui/vec_map.js +27 -0
- package/dist/src/generated/waterx_rule/waterx_rule.d.ts +940 -0
- package/dist/src/generated/waterx_rule/waterx_rule.js +991 -0
- package/dist/src/oracle/aggregate.d.ts +21 -21
- package/dist/src/oracle/aggregate.js +84 -71
- package/dist/src/oracle/config.d.ts +107 -52
- package/dist/src/oracle/config.js +14 -34
- package/dist/src/oracle/host.d.ts +13 -2
- package/dist/src/oracle/index.d.ts +4 -2
- package/dist/src/oracle/index.js +18 -7
- package/dist/src/oracle/price-update-rule.d.ts +3 -4
- package/dist/src/oracle/pyth.d.ts +68 -6
- package/dist/src/oracle/pyth.js +334 -22
- package/dist/src/oracle/rule-registry.d.ts +11 -6
- package/dist/src/oracle/rule-registry.js +13 -6
- package/dist/src/oracle/rules/pyth-core-rule.js +18 -3
- package/dist/src/oracle/rules/pyth-lazer-rule.d.ts +6 -6
- package/dist/src/oracle/rules/pyth-lazer-rule.js +26 -23
- package/dist/src/oracle/rules/pyth-rule.js +5 -0
- package/dist/src/oracle/rules/waterx-rule.d.ts +89 -0
- package/dist/src/oracle/rules/waterx-rule.js +266 -0
- package/dist/src/oracle/update-fetch.d.ts +32 -2
- package/dist/src/oracle/update-fetch.js +57 -3
- package/dist/src/perp/client.d.ts +71 -19
- package/dist/src/perp/client.js +31 -11
- package/dist/src/perp/config.d.ts +4 -7
- package/dist/src/perp/config.js +9 -12
- package/dist/src/perp/constants.d.ts +0 -6
- package/dist/src/perp/constants.js +10 -8
- package/dist/src/perp/fetch/account.js +3 -0
- package/dist/src/perp/fetch/bridge.js +2 -1
- package/dist/src/perp/fetch/market.js +2 -1
- package/dist/src/perp/fetch/positions.d.ts +16 -10
- package/dist/src/perp/fetch/positions.js +28 -20
- package/dist/src/perp/index.d.ts +8 -4
- package/dist/src/perp/index.js +5 -3
- package/dist/src/perp/liq-view.d.ts +64 -0
- package/dist/src/perp/liq-view.js +71 -0
- package/dist/src/perp/user/order.d.ts +13 -0
- package/dist/src/perp/user/order.js +30 -16
- package/dist/src/perp/user/staking.js +3 -2
- package/dist/src/perp/user/trading.js +25 -24
- package/dist/src/perp/user/wlp.js +6 -5
- package/dist/src/prediction/utils.d.ts +11 -2
- package/dist/src/prediction/utils.js +22 -22
- package/dist/src/unified-client.d.ts +49 -20
- package/dist/src/unified-client.js +4 -1
- package/dist/src/utils/format.d.ts +14 -0
- package/dist/src/utils/format.js +21 -0
- package/dist/src/utils/math.d.ts +304 -12
- package/dist/src/utils/math.js +394 -17
- package/dist/src/utils/validate.d.ts +69 -0
- package/dist/src/utils/validate.js +167 -0
- package/package.json +4 -1
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Nautilus-backed oracle rule for Binance, Bybit, and Gate.io prices. */
|
|
5
|
+
import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
6
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
7
|
+
export declare const WATERX_RULE: MoveStruct<{
|
|
8
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
9
|
+
}, "@waterx/rule::waterx_rule::WATERX_RULE">;
|
|
10
|
+
export declare const WaterxRule: MoveStruct<{
|
|
11
|
+
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
12
|
+
}, "@waterx/rule::waterx_rule::WaterxRule">;
|
|
13
|
+
export declare const PricePayload: MoveStruct<{
|
|
14
|
+
ticker: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
15
|
+
sources: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
16
|
+
length: number;
|
|
17
|
+
}, string>;
|
|
18
|
+
method: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
19
|
+
price_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
20
|
+
price_n: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
21
|
+
price_scale: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
22
|
+
confidence_n: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
23
|
+
confidence_scale: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
24
|
+
max_source_deviation_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
25
|
+
num_sources: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
26
|
+
}, "@waterx/rule::waterx_rule::PricePayload">;
|
|
27
|
+
export declare const BatchPriceItem: MoveStruct<{
|
|
28
|
+
symbol: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
29
|
+
ticker: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
30
|
+
sources: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
31
|
+
length: number;
|
|
32
|
+
}, string>;
|
|
33
|
+
method: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
34
|
+
price_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
35
|
+
price_n: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
36
|
+
price_scale: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
37
|
+
confidence_n: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
38
|
+
confidence_scale: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
39
|
+
max_source_deviation_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
40
|
+
num_sources: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
41
|
+
}, "@waterx/rule::waterx_rule::BatchPriceItem">;
|
|
42
|
+
export declare const BatchPricePayload: MoveStruct<{
|
|
43
|
+
items: import("@mysten/sui/bcs").BcsType<{
|
|
44
|
+
symbol: string;
|
|
45
|
+
ticker: string;
|
|
46
|
+
sources: string[];
|
|
47
|
+
method: string;
|
|
48
|
+
price_timestamp_ms: string;
|
|
49
|
+
price_n: string;
|
|
50
|
+
price_scale: string;
|
|
51
|
+
confidence_n: string;
|
|
52
|
+
confidence_scale: string;
|
|
53
|
+
max_source_deviation_bps: string;
|
|
54
|
+
num_sources: number;
|
|
55
|
+
}[], Iterable<{
|
|
56
|
+
symbol: string;
|
|
57
|
+
ticker: string;
|
|
58
|
+
sources: Iterable<string | number | bigint> & {
|
|
59
|
+
length: number;
|
|
60
|
+
};
|
|
61
|
+
method: string;
|
|
62
|
+
price_timestamp_ms: string | number | bigint;
|
|
63
|
+
price_n: string | number | bigint;
|
|
64
|
+
price_scale: string | number | bigint;
|
|
65
|
+
confidence_n: string | number | bigint;
|
|
66
|
+
confidence_scale: string | number | bigint;
|
|
67
|
+
max_source_deviation_bps: string | number | bigint;
|
|
68
|
+
num_sources: number;
|
|
69
|
+
}> & {
|
|
70
|
+
length: number;
|
|
71
|
+
}, string>;
|
|
72
|
+
}, "@waterx/rule::waterx_rule::BatchPricePayload">;
|
|
73
|
+
export declare const MerkleRoot: MoveStruct<{
|
|
74
|
+
root: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
75
|
+
length: number;
|
|
76
|
+
}, string>;
|
|
77
|
+
}, "@waterx/rule::waterx_rule::MerkleRoot">;
|
|
78
|
+
export declare const FeedConfig: MoveStruct<{
|
|
79
|
+
ticker: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
80
|
+
sources: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
81
|
+
length: number;
|
|
82
|
+
}, string>;
|
|
83
|
+
method: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
84
|
+
max_age_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
85
|
+
max_confidence_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
86
|
+
max_source_deviation_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
87
|
+
min_sources: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
88
|
+
}, "@waterx/rule::waterx_rule::FeedConfig">;
|
|
89
|
+
export declare const VerifiedPrice: MoveStruct<{
|
|
90
|
+
symbol: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
91
|
+
ticker: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
92
|
+
sources: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
93
|
+
length: number;
|
|
94
|
+
}, string>;
|
|
95
|
+
method: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
96
|
+
price_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
97
|
+
price: MoveStruct<{
|
|
98
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
99
|
+
}, "bucket_v2_framework::float::Float">;
|
|
100
|
+
price_n: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
101
|
+
price_scale: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
102
|
+
confidence_n: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
103
|
+
confidence_scale: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
104
|
+
max_source_deviation_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
105
|
+
num_sources: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
106
|
+
signed_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
107
|
+
}, "@waterx/rule::waterx_rule::VerifiedPrice">;
|
|
108
|
+
export declare const Config: MoveStruct<{
|
|
109
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
110
|
+
feed_map: MoveStruct<{
|
|
111
|
+
contents: import("@mysten/sui/bcs").BcsType<{
|
|
112
|
+
key: string;
|
|
113
|
+
value: {
|
|
114
|
+
ticker: string;
|
|
115
|
+
sources: string[];
|
|
116
|
+
method: string;
|
|
117
|
+
max_age_ms: string;
|
|
118
|
+
max_confidence_bps: string;
|
|
119
|
+
max_source_deviation_bps: string;
|
|
120
|
+
min_sources: number;
|
|
121
|
+
};
|
|
122
|
+
}[], Iterable<{
|
|
123
|
+
key: string;
|
|
124
|
+
value: {
|
|
125
|
+
ticker: string;
|
|
126
|
+
sources: Iterable<string | number | bigint> & {
|
|
127
|
+
length: number;
|
|
128
|
+
};
|
|
129
|
+
method: string;
|
|
130
|
+
max_age_ms: string | number | bigint;
|
|
131
|
+
max_confidence_bps: string | number | bigint;
|
|
132
|
+
max_source_deviation_bps: string | number | bigint;
|
|
133
|
+
min_sources: number;
|
|
134
|
+
};
|
|
135
|
+
}> & {
|
|
136
|
+
length: number;
|
|
137
|
+
}, string>;
|
|
138
|
+
}, "0x2::vec_map::VecMap<string, @waterx/rule::waterx_rule::FeedConfig>">;
|
|
139
|
+
}, "@waterx/rule::waterx_rule::Config">;
|
|
140
|
+
export declare const SignedTsHwmKey: MoveStruct<{
|
|
141
|
+
symbol: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
142
|
+
}, "@waterx/rule::waterx_rule::SignedTsHwmKey">;
|
|
143
|
+
export declare const HistoricalPriceVerified: MoveStruct<{
|
|
144
|
+
symbol: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
145
|
+
ticker: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
146
|
+
sources: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
147
|
+
length: number;
|
|
148
|
+
}, string>;
|
|
149
|
+
method: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
150
|
+
price_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
151
|
+
price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
152
|
+
confidence: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u128">;
|
|
153
|
+
max_source_deviation_bps: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
154
|
+
num_sources: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
155
|
+
signed_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
156
|
+
}, "@waterx/rule::waterx_rule::HistoricalPriceVerified">;
|
|
157
|
+
export declare const BatchLatestUpdated: MoveStruct<{
|
|
158
|
+
count: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
159
|
+
timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
160
|
+
}, "@waterx/rule::waterx_rule::BatchLatestUpdated">;
|
|
161
|
+
export interface FeedBatchLatestArguments {
|
|
162
|
+
oracleObj: RawTransactionArgument<string>;
|
|
163
|
+
config: RawTransactionArgument<string>;
|
|
164
|
+
enclaveConfig: RawTransactionArgument<string>;
|
|
165
|
+
enclave: RawTransactionArgument<string>;
|
|
166
|
+
timestampMs: RawTransactionArgument<number | bigint>;
|
|
167
|
+
payload: TransactionArgument;
|
|
168
|
+
sig: RawTransactionArgument<Array<number>>;
|
|
169
|
+
}
|
|
170
|
+
export interface FeedBatchLatestOptions {
|
|
171
|
+
package?: string;
|
|
172
|
+
arguments: FeedBatchLatestArguments | [
|
|
173
|
+
oracleObj: RawTransactionArgument<string>,
|
|
174
|
+
config: RawTransactionArgument<string>,
|
|
175
|
+
enclaveConfig: RawTransactionArgument<string>,
|
|
176
|
+
enclave: RawTransactionArgument<string>,
|
|
177
|
+
timestampMs: RawTransactionArgument<number | bigint>,
|
|
178
|
+
payload: TransactionArgument,
|
|
179
|
+
sig: RawTransactionArgument<Array<number>>
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Public Funs Verifies one Nautilus batch signature and updates one or more latest
|
|
184
|
+
* oracle prices. This function is only for current/latest data, never historical
|
|
185
|
+
* data. A single symbol is just a batch of one.
|
|
186
|
+
*/
|
|
187
|
+
export declare function feedBatchLatest(options: FeedBatchLatestOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
188
|
+
export interface CollectBatchLatestArguments {
|
|
189
|
+
collector: TransactionArgument;
|
|
190
|
+
config: RawTransactionArgument<string>;
|
|
191
|
+
enclaveConfig: RawTransactionArgument<string>;
|
|
192
|
+
enclave: RawTransactionArgument<string>;
|
|
193
|
+
timestampMs: RawTransactionArgument<number | bigint>;
|
|
194
|
+
payload: TransactionArgument;
|
|
195
|
+
sig: RawTransactionArgument<Array<number>>;
|
|
196
|
+
}
|
|
197
|
+
export interface CollectBatchLatestOptions {
|
|
198
|
+
package?: string;
|
|
199
|
+
arguments: CollectBatchLatestArguments | [
|
|
200
|
+
collector: TransactionArgument,
|
|
201
|
+
config: RawTransactionArgument<string>,
|
|
202
|
+
enclaveConfig: RawTransactionArgument<string>,
|
|
203
|
+
enclave: RawTransactionArgument<string>,
|
|
204
|
+
timestampMs: RawTransactionArgument<number | bigint>,
|
|
205
|
+
payload: TransactionArgument,
|
|
206
|
+
sig: RawTransactionArgument<Array<number>>
|
|
207
|
+
];
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Collect-only sibling of `feed_batch_latest` for the **dual-rule** latest path:
|
|
211
|
+
* verifies one Nautilus batch signature and feeds the single item whose symbol
|
|
212
|
+
* matches `collector.symbol()` into a caller-owned `PriceCollector`, WITHOUT
|
|
213
|
+
* calling `oracle::aggregate`. This lets one aggregator carry both a `WaterxRule`
|
|
214
|
+
* and (e.g.) a `PythRule` weight — the caller composes one collector across every
|
|
215
|
+
* weighted rule in the PTB (compose-then-aggregate, like `pyth_rule::feed`) and
|
|
216
|
+
* aggregates once.
|
|
217
|
+
*
|
|
218
|
+
* Abort vs abstain (WL-1963): unlike `feed_batch_latest`, which has no fallback
|
|
219
|
+
* and so aborts on any stale item, this path runs alongside Pyth/Supra. To let
|
|
220
|
+
* those cover a lagging TEE — the blast-radius bound in the GCP ADR — a
|
|
221
|
+
* _freshness_ miss ABSTAINS (records `none`, which `aggregator::remove_outliers`
|
|
222
|
+
* drops before the `weight_threshold` fail-closed check), and so does a _replayed_
|
|
223
|
+
* signed timestamp (the chain already accepted that snapshot — the on-chain price
|
|
224
|
+
* is at least as fresh, and two concurrent keeper PTBs sharing one envelope must
|
|
225
|
+
* not kill each other). A _config/integrity_ mismatch (source / ticker / method /
|
|
226
|
+
* confidence / deviation) still ABORTS: an enclave whose signed payload disagrees
|
|
227
|
+
* with the on-chain feed config is a red flag, not a liveness blip. Bad signature,
|
|
228
|
+
* malformed batch, and a future timestamp always abort.
|
|
229
|
+
*
|
|
230
|
+
* Every gate is identical to `feed_batch_item_latest`; only the abort-vs-abstain
|
|
231
|
+
* disposition of the freshness + replay gates differs, and the sink is the
|
|
232
|
+
* caller's collector rather than a fresh single-rule one.
|
|
233
|
+
*/
|
|
234
|
+
export declare function collectBatchLatest(options: CollectBatchLatestOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
235
|
+
export interface FeedSingleWithProofArguments {
|
|
236
|
+
oracleObj: RawTransactionArgument<string>;
|
|
237
|
+
config: RawTransactionArgument<string>;
|
|
238
|
+
enclaveConfig: RawTransactionArgument<string>;
|
|
239
|
+
enclave: RawTransactionArgument<string>;
|
|
240
|
+
timestampMs: RawTransactionArgument<number | bigint>;
|
|
241
|
+
item: TransactionArgument;
|
|
242
|
+
proof: RawTransactionArgument<Array<Array<number>>>;
|
|
243
|
+
sig: RawTransactionArgument<Array<number>>;
|
|
244
|
+
}
|
|
245
|
+
export interface FeedSingleWithProofOptions {
|
|
246
|
+
package?: string;
|
|
247
|
+
arguments: FeedSingleWithProofArguments | [
|
|
248
|
+
oracleObj: RawTransactionArgument<string>,
|
|
249
|
+
config: RawTransactionArgument<string>,
|
|
250
|
+
enclaveConfig: RawTransactionArgument<string>,
|
|
251
|
+
enclave: RawTransactionArgument<string>,
|
|
252
|
+
timestampMs: RawTransactionArgument<number | bigint>,
|
|
253
|
+
item: TransactionArgument,
|
|
254
|
+
proof: RawTransactionArgument<Array<Array<number>>>,
|
|
255
|
+
sig: RawTransactionArgument<Array<number>>
|
|
256
|
+
];
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Streaming per-symbol sibling of `feed_batch_latest`. Verifies ONE enclave
|
|
260
|
+
* signature over a Merkle `root`, checks `item` is a leaf of that root via
|
|
261
|
+
* `proof`, then runs the identical per-item gates + `oracle::aggregate`. Use for a
|
|
262
|
+
* WaterxRule-only aggregator; for a Pyth-coexisting aggregator use
|
|
263
|
+
* `collect_single_with_proof`.
|
|
264
|
+
*/
|
|
265
|
+
export declare function feedSingleWithProof(options: FeedSingleWithProofOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
266
|
+
export interface CollectSingleWithProofArguments {
|
|
267
|
+
collector: TransactionArgument;
|
|
268
|
+
config: RawTransactionArgument<string>;
|
|
269
|
+
enclaveConfig: RawTransactionArgument<string>;
|
|
270
|
+
enclave: RawTransactionArgument<string>;
|
|
271
|
+
timestampMs: RawTransactionArgument<number | bigint>;
|
|
272
|
+
item: TransactionArgument;
|
|
273
|
+
proof: RawTransactionArgument<Array<Array<number>>>;
|
|
274
|
+
sig: RawTransactionArgument<Array<number>>;
|
|
275
|
+
}
|
|
276
|
+
export interface CollectSingleWithProofOptions {
|
|
277
|
+
package?: string;
|
|
278
|
+
arguments: CollectSingleWithProofArguments | [
|
|
279
|
+
collector: TransactionArgument,
|
|
280
|
+
config: RawTransactionArgument<string>,
|
|
281
|
+
enclaveConfig: RawTransactionArgument<string>,
|
|
282
|
+
enclave: RawTransactionArgument<string>,
|
|
283
|
+
timestampMs: RawTransactionArgument<number | bigint>,
|
|
284
|
+
item: TransactionArgument,
|
|
285
|
+
proof: RawTransactionArgument<Array<Array<number>>>,
|
|
286
|
+
sig: RawTransactionArgument<Array<number>>
|
|
287
|
+
];
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Collect-only sibling of `feed_single_with_proof` for the dual-rule latest path
|
|
291
|
+
* (WaterX alongside Pyth on one aggregator), mirroring `collect_batch_latest`:
|
|
292
|
+
* verifies root + proof, feeds the leaf into the caller's `PriceCollector` WITHOUT
|
|
293
|
+
* calling `oracle::aggregate`. Abort vs abstain matches `collect_batch_latest`
|
|
294
|
+
* exactly — a config/integrity mismatch aborts, a freshness miss abstains so Pyth
|
|
295
|
+
* can cover a lagging TEE.
|
|
296
|
+
*/
|
|
297
|
+
export declare function collectSingleWithProof(options: CollectSingleWithProofOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
298
|
+
export interface QuoteForTimestampArguments {
|
|
299
|
+
config: RawTransactionArgument<string>;
|
|
300
|
+
enclaveConfig: RawTransactionArgument<string>;
|
|
301
|
+
enclave: RawTransactionArgument<string>;
|
|
302
|
+
symbol: RawTransactionArgument<string>;
|
|
303
|
+
signedTimestampMs: RawTransactionArgument<number | bigint>;
|
|
304
|
+
requestedPriceTimestampMs: RawTransactionArgument<number | bigint>;
|
|
305
|
+
payload: TransactionArgument;
|
|
306
|
+
sig: RawTransactionArgument<Array<number>>;
|
|
307
|
+
}
|
|
308
|
+
export interface QuoteForTimestampOptions {
|
|
309
|
+
package?: string;
|
|
310
|
+
arguments: QuoteForTimestampArguments | [
|
|
311
|
+
config: RawTransactionArgument<string>,
|
|
312
|
+
enclaveConfig: RawTransactionArgument<string>,
|
|
313
|
+
enclave: RawTransactionArgument<string>,
|
|
314
|
+
symbol: RawTransactionArgument<string>,
|
|
315
|
+
signedTimestampMs: RawTransactionArgument<number | bigint>,
|
|
316
|
+
requestedPriceTimestampMs: RawTransactionArgument<number | bigint>,
|
|
317
|
+
payload: TransactionArgument,
|
|
318
|
+
sig: RawTransactionArgument<Array<number>>
|
|
319
|
+
];
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Verifies a historical quote without touching `waterx_oracle`.
|
|
323
|
+
*
|
|
324
|
+
* `signed_timestamp_ms` is the fresh timestamp signed by Nautilus.
|
|
325
|
+
* `requested_price_timestamp_ms` is the historical price timestamp the caller
|
|
326
|
+
* requested from Nautilus. Consumers should still assert the returned proof's
|
|
327
|
+
* symbol and timestamp inside their own contract before using the price.
|
|
328
|
+
*/
|
|
329
|
+
export declare function quoteForTimestamp(options: QuoteForTimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
330
|
+
export interface DestroyVerifiedPriceArguments {
|
|
331
|
+
price: TransactionArgument;
|
|
332
|
+
}
|
|
333
|
+
export interface DestroyVerifiedPriceOptions {
|
|
334
|
+
package?: string;
|
|
335
|
+
arguments: DestroyVerifiedPriceArguments | [
|
|
336
|
+
price: TransactionArgument
|
|
337
|
+
];
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Consumes a verified historical price proof when no downstream consumer needs to
|
|
341
|
+
* keep using it in the PTB.
|
|
342
|
+
*/
|
|
343
|
+
export declare function destroyVerifiedPrice(options: DestroyVerifiedPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
344
|
+
export interface CollectVerifiedPriceArguments {
|
|
345
|
+
collector: TransactionArgument;
|
|
346
|
+
price: TransactionArgument;
|
|
347
|
+
}
|
|
348
|
+
export interface CollectVerifiedPriceOptions {
|
|
349
|
+
package?: string;
|
|
350
|
+
arguments: CollectVerifiedPriceArguments | [
|
|
351
|
+
collector: TransactionArgument,
|
|
352
|
+
price: TransactionArgument
|
|
353
|
+
];
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Consumes a verified historical price and feeds it into a collector.
|
|
357
|
+
*
|
|
358
|
+
* Use this after `quote_for_timestamp` and before
|
|
359
|
+
* `waterx_oracle::oracle::register_price_at_timestamp`.
|
|
360
|
+
*/
|
|
361
|
+
export declare function collectVerifiedPrice(options: CollectVerifiedPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
362
|
+
export interface SetFeedArguments {
|
|
363
|
+
config: RawTransactionArgument<string>;
|
|
364
|
+
Cap: RawTransactionArgument<string>;
|
|
365
|
+
symbol: RawTransactionArgument<string>;
|
|
366
|
+
ticker: RawTransactionArgument<string>;
|
|
367
|
+
sources: RawTransactionArgument<Array<number | bigint>>;
|
|
368
|
+
method: RawTransactionArgument<string>;
|
|
369
|
+
maxAgeMs: RawTransactionArgument<number | bigint>;
|
|
370
|
+
}
|
|
371
|
+
export interface SetFeedOptions {
|
|
372
|
+
package?: string;
|
|
373
|
+
arguments: SetFeedArguments | [
|
|
374
|
+
config: RawTransactionArgument<string>,
|
|
375
|
+
Cap: RawTransactionArgument<string>,
|
|
376
|
+
symbol: RawTransactionArgument<string>,
|
|
377
|
+
ticker: RawTransactionArgument<string>,
|
|
378
|
+
sources: RawTransactionArgument<Array<number | bigint>>,
|
|
379
|
+
method: RawTransactionArgument<string>,
|
|
380
|
+
maxAgeMs: RawTransactionArgument<number | bigint>
|
|
381
|
+
];
|
|
382
|
+
}
|
|
383
|
+
/** Admin Funs */
|
|
384
|
+
export declare function setFeed(options: SetFeedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
385
|
+
export interface SetPerpFeedArguments {
|
|
386
|
+
config: RawTransactionArgument<string>;
|
|
387
|
+
Cap: RawTransactionArgument<string>;
|
|
388
|
+
symbol: RawTransactionArgument<string>;
|
|
389
|
+
ticker: RawTransactionArgument<string>;
|
|
390
|
+
sources: RawTransactionArgument<Array<number | bigint>>;
|
|
391
|
+
method: RawTransactionArgument<string>;
|
|
392
|
+
maxAgeMs: RawTransactionArgument<number | bigint>;
|
|
393
|
+
maxConfidenceBps: RawTransactionArgument<number | bigint>;
|
|
394
|
+
maxSourceDeviationBps: RawTransactionArgument<number | bigint>;
|
|
395
|
+
minSources: RawTransactionArgument<number>;
|
|
396
|
+
}
|
|
397
|
+
export interface SetPerpFeedOptions {
|
|
398
|
+
package?: string;
|
|
399
|
+
arguments: SetPerpFeedArguments | [
|
|
400
|
+
config: RawTransactionArgument<string>,
|
|
401
|
+
Cap: RawTransactionArgument<string>,
|
|
402
|
+
symbol: RawTransactionArgument<string>,
|
|
403
|
+
ticker: RawTransactionArgument<string>,
|
|
404
|
+
sources: RawTransactionArgument<Array<number | bigint>>,
|
|
405
|
+
method: RawTransactionArgument<string>,
|
|
406
|
+
maxAgeMs: RawTransactionArgument<number | bigint>,
|
|
407
|
+
maxConfidenceBps: RawTransactionArgument<number | bigint>,
|
|
408
|
+
maxSourceDeviationBps: RawTransactionArgument<number | bigint>,
|
|
409
|
+
minSources: RawTransactionArgument<number>
|
|
410
|
+
];
|
|
411
|
+
}
|
|
412
|
+
export declare function setPerpFeed(options: SetPerpFeedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
413
|
+
export interface RemoveFeedArguments {
|
|
414
|
+
config: RawTransactionArgument<string>;
|
|
415
|
+
Cap: RawTransactionArgument<string>;
|
|
416
|
+
symbol: RawTransactionArgument<string>;
|
|
417
|
+
}
|
|
418
|
+
export interface RemoveFeedOptions {
|
|
419
|
+
package?: string;
|
|
420
|
+
arguments: RemoveFeedArguments | [
|
|
421
|
+
config: RawTransactionArgument<string>,
|
|
422
|
+
Cap: RawTransactionArgument<string>,
|
|
423
|
+
symbol: RawTransactionArgument<string>
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
export declare function removeFeed(options: RemoveFeedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
427
|
+
export interface NewBatchPayloadOptions {
|
|
428
|
+
package?: string;
|
|
429
|
+
arguments?: [
|
|
430
|
+
];
|
|
431
|
+
}
|
|
432
|
+
/** Getter Funs */
|
|
433
|
+
export declare function newBatchPayload(options?: NewBatchPayloadOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
434
|
+
export interface NewBatchItemArguments {
|
|
435
|
+
symbol: RawTransactionArgument<string>;
|
|
436
|
+
ticker: RawTransactionArgument<string>;
|
|
437
|
+
sources: RawTransactionArgument<Array<number | bigint>>;
|
|
438
|
+
method: RawTransactionArgument<string>;
|
|
439
|
+
priceTimestampMs: RawTransactionArgument<number | bigint>;
|
|
440
|
+
priceN: RawTransactionArgument<number | bigint>;
|
|
441
|
+
priceScale: RawTransactionArgument<number | bigint>;
|
|
442
|
+
confidenceN: RawTransactionArgument<number | bigint>;
|
|
443
|
+
confidenceScale: RawTransactionArgument<number | bigint>;
|
|
444
|
+
maxSourceDeviationBps: RawTransactionArgument<number | bigint>;
|
|
445
|
+
numSources: RawTransactionArgument<number>;
|
|
446
|
+
}
|
|
447
|
+
export interface NewBatchItemOptions {
|
|
448
|
+
package?: string;
|
|
449
|
+
arguments: NewBatchItemArguments | [
|
|
450
|
+
symbol: RawTransactionArgument<string>,
|
|
451
|
+
ticker: RawTransactionArgument<string>,
|
|
452
|
+
sources: RawTransactionArgument<Array<number | bigint>>,
|
|
453
|
+
method: RawTransactionArgument<string>,
|
|
454
|
+
priceTimestampMs: RawTransactionArgument<number | bigint>,
|
|
455
|
+
priceN: RawTransactionArgument<number | bigint>,
|
|
456
|
+
priceScale: RawTransactionArgument<number | bigint>,
|
|
457
|
+
confidenceN: RawTransactionArgument<number | bigint>,
|
|
458
|
+
confidenceScale: RawTransactionArgument<number | bigint>,
|
|
459
|
+
maxSourceDeviationBps: RawTransactionArgument<number | bigint>,
|
|
460
|
+
numSources: RawTransactionArgument<number>
|
|
461
|
+
];
|
|
462
|
+
}
|
|
463
|
+
export declare function newBatchItem(options: NewBatchItemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
464
|
+
export interface PushBatchItemArguments {
|
|
465
|
+
payload: TransactionArgument;
|
|
466
|
+
item: TransactionArgument;
|
|
467
|
+
}
|
|
468
|
+
export interface PushBatchItemOptions {
|
|
469
|
+
package?: string;
|
|
470
|
+
arguments: PushBatchItemArguments | [
|
|
471
|
+
payload: TransactionArgument,
|
|
472
|
+
item: TransactionArgument
|
|
473
|
+
];
|
|
474
|
+
}
|
|
475
|
+
export declare function pushBatchItem(options: PushBatchItemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
476
|
+
export interface FeedConfigArguments {
|
|
477
|
+
config: RawTransactionArgument<string>;
|
|
478
|
+
symbol: RawTransactionArgument<string>;
|
|
479
|
+
}
|
|
480
|
+
export interface FeedConfigOptions {
|
|
481
|
+
package?: string;
|
|
482
|
+
arguments: FeedConfigArguments | [
|
|
483
|
+
config: RawTransactionArgument<string>,
|
|
484
|
+
symbol: RawTransactionArgument<string>
|
|
485
|
+
];
|
|
486
|
+
}
|
|
487
|
+
export declare function feedConfig(options: FeedConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
488
|
+
export interface BatchPriceIntentOptions {
|
|
489
|
+
package?: string;
|
|
490
|
+
arguments?: [
|
|
491
|
+
];
|
|
492
|
+
}
|
|
493
|
+
export declare function batchPriceIntent(options?: BatchPriceIntentOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
494
|
+
export interface MerkleRootIntentOptions {
|
|
495
|
+
package?: string;
|
|
496
|
+
arguments?: [
|
|
497
|
+
];
|
|
498
|
+
}
|
|
499
|
+
export declare function merkleRootIntent(options?: MerkleRootIntentOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
500
|
+
export interface LeafHashOfArguments {
|
|
501
|
+
item: TransactionArgument;
|
|
502
|
+
}
|
|
503
|
+
export interface LeafHashOfOptions {
|
|
504
|
+
package?: string;
|
|
505
|
+
arguments: LeafHashOfArguments | [
|
|
506
|
+
item: TransactionArgument
|
|
507
|
+
];
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* The keccak256 leaf hash for `item` — `keccak256(0x00 || BCS(item))`. Exposed so
|
|
511
|
+
* the off-chain builder / SDK can be pinned against the on-chain encoding in a
|
|
512
|
+
* cross-implementation golden test.
|
|
513
|
+
*/
|
|
514
|
+
export declare function leafHashOf(options: LeafHashOfOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
515
|
+
export interface MaxBatchSizeOptions {
|
|
516
|
+
package?: string;
|
|
517
|
+
arguments?: [
|
|
518
|
+
];
|
|
519
|
+
}
|
|
520
|
+
export declare function maxBatchSize(options?: MaxBatchSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
521
|
+
export interface BatchItemsArguments {
|
|
522
|
+
payload: TransactionArgument;
|
|
523
|
+
}
|
|
524
|
+
export interface BatchItemsOptions {
|
|
525
|
+
package?: string;
|
|
526
|
+
arguments: BatchItemsArguments | [
|
|
527
|
+
payload: TransactionArgument
|
|
528
|
+
];
|
|
529
|
+
}
|
|
530
|
+
export declare function batchItems(options: BatchItemsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
531
|
+
export interface BatchItemSymbolArguments {
|
|
532
|
+
item: TransactionArgument;
|
|
533
|
+
}
|
|
534
|
+
export interface BatchItemSymbolOptions {
|
|
535
|
+
package?: string;
|
|
536
|
+
arguments: BatchItemSymbolArguments | [
|
|
537
|
+
item: TransactionArgument
|
|
538
|
+
];
|
|
539
|
+
}
|
|
540
|
+
export declare function batchItemSymbol(options: BatchItemSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
541
|
+
export interface BatchItemTickerArguments {
|
|
542
|
+
item: TransactionArgument;
|
|
543
|
+
}
|
|
544
|
+
export interface BatchItemTickerOptions {
|
|
545
|
+
package?: string;
|
|
546
|
+
arguments: BatchItemTickerArguments | [
|
|
547
|
+
item: TransactionArgument
|
|
548
|
+
];
|
|
549
|
+
}
|
|
550
|
+
export declare function batchItemTicker(options: BatchItemTickerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
551
|
+
export interface BatchItemSourcesArguments {
|
|
552
|
+
item: TransactionArgument;
|
|
553
|
+
}
|
|
554
|
+
export interface BatchItemSourcesOptions {
|
|
555
|
+
package?: string;
|
|
556
|
+
arguments: BatchItemSourcesArguments | [
|
|
557
|
+
item: TransactionArgument
|
|
558
|
+
];
|
|
559
|
+
}
|
|
560
|
+
export declare function batchItemSources(options: BatchItemSourcesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
561
|
+
export interface BatchItemMethodArguments {
|
|
562
|
+
item: TransactionArgument;
|
|
563
|
+
}
|
|
564
|
+
export interface BatchItemMethodOptions {
|
|
565
|
+
package?: string;
|
|
566
|
+
arguments: BatchItemMethodArguments | [
|
|
567
|
+
item: TransactionArgument
|
|
568
|
+
];
|
|
569
|
+
}
|
|
570
|
+
export declare function batchItemMethod(options: BatchItemMethodOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
571
|
+
export interface BatchItemPriceTimestampMsArguments {
|
|
572
|
+
item: TransactionArgument;
|
|
573
|
+
}
|
|
574
|
+
export interface BatchItemPriceTimestampMsOptions {
|
|
575
|
+
package?: string;
|
|
576
|
+
arguments: BatchItemPriceTimestampMsArguments | [
|
|
577
|
+
item: TransactionArgument
|
|
578
|
+
];
|
|
579
|
+
}
|
|
580
|
+
export declare function batchItemPriceTimestampMs(options: BatchItemPriceTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
581
|
+
export interface BatchItemPriceNArguments {
|
|
582
|
+
item: TransactionArgument;
|
|
583
|
+
}
|
|
584
|
+
export interface BatchItemPriceNOptions {
|
|
585
|
+
package?: string;
|
|
586
|
+
arguments: BatchItemPriceNArguments | [
|
|
587
|
+
item: TransactionArgument
|
|
588
|
+
];
|
|
589
|
+
}
|
|
590
|
+
export declare function batchItemPriceN(options: BatchItemPriceNOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
591
|
+
export interface BatchItemPriceScaleArguments {
|
|
592
|
+
item: TransactionArgument;
|
|
593
|
+
}
|
|
594
|
+
export interface BatchItemPriceScaleOptions {
|
|
595
|
+
package?: string;
|
|
596
|
+
arguments: BatchItemPriceScaleArguments | [
|
|
597
|
+
item: TransactionArgument
|
|
598
|
+
];
|
|
599
|
+
}
|
|
600
|
+
export declare function batchItemPriceScale(options: BatchItemPriceScaleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
601
|
+
export interface BatchItemConfidenceNArguments {
|
|
602
|
+
item: TransactionArgument;
|
|
603
|
+
}
|
|
604
|
+
export interface BatchItemConfidenceNOptions {
|
|
605
|
+
package?: string;
|
|
606
|
+
arguments: BatchItemConfidenceNArguments | [
|
|
607
|
+
item: TransactionArgument
|
|
608
|
+
];
|
|
609
|
+
}
|
|
610
|
+
export declare function batchItemConfidenceN(options: BatchItemConfidenceNOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
611
|
+
export interface BatchItemConfidenceScaleArguments {
|
|
612
|
+
item: TransactionArgument;
|
|
613
|
+
}
|
|
614
|
+
export interface BatchItemConfidenceScaleOptions {
|
|
615
|
+
package?: string;
|
|
616
|
+
arguments: BatchItemConfidenceScaleArguments | [
|
|
617
|
+
item: TransactionArgument
|
|
618
|
+
];
|
|
619
|
+
}
|
|
620
|
+
export declare function batchItemConfidenceScale(options: BatchItemConfidenceScaleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
621
|
+
export interface BatchItemMaxSourceDeviationBpsArguments {
|
|
622
|
+
item: TransactionArgument;
|
|
623
|
+
}
|
|
624
|
+
export interface BatchItemMaxSourceDeviationBpsOptions {
|
|
625
|
+
package?: string;
|
|
626
|
+
arguments: BatchItemMaxSourceDeviationBpsArguments | [
|
|
627
|
+
item: TransactionArgument
|
|
628
|
+
];
|
|
629
|
+
}
|
|
630
|
+
export declare function batchItemMaxSourceDeviationBps(options: BatchItemMaxSourceDeviationBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
631
|
+
export interface BatchItemNumSourcesArguments {
|
|
632
|
+
item: TransactionArgument;
|
|
633
|
+
}
|
|
634
|
+
export interface BatchItemNumSourcesOptions {
|
|
635
|
+
package?: string;
|
|
636
|
+
arguments: BatchItemNumSourcesArguments | [
|
|
637
|
+
item: TransactionArgument
|
|
638
|
+
];
|
|
639
|
+
}
|
|
640
|
+
export declare function batchItemNumSources(options: BatchItemNumSourcesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
641
|
+
export interface VerifiedSymbolArguments {
|
|
642
|
+
price: TransactionArgument;
|
|
643
|
+
}
|
|
644
|
+
export interface VerifiedSymbolOptions {
|
|
645
|
+
package?: string;
|
|
646
|
+
arguments: VerifiedSymbolArguments | [
|
|
647
|
+
price: TransactionArgument
|
|
648
|
+
];
|
|
649
|
+
}
|
|
650
|
+
export declare function verifiedSymbol(options: VerifiedSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
651
|
+
export interface VerifiedTickerArguments {
|
|
652
|
+
price: TransactionArgument;
|
|
653
|
+
}
|
|
654
|
+
export interface VerifiedTickerOptions {
|
|
655
|
+
package?: string;
|
|
656
|
+
arguments: VerifiedTickerArguments | [
|
|
657
|
+
price: TransactionArgument
|
|
658
|
+
];
|
|
659
|
+
}
|
|
660
|
+
export declare function verifiedTicker(options: VerifiedTickerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
661
|
+
export interface VerifiedSourcesArguments {
|
|
662
|
+
price: TransactionArgument;
|
|
663
|
+
}
|
|
664
|
+
export interface VerifiedSourcesOptions {
|
|
665
|
+
package?: string;
|
|
666
|
+
arguments: VerifiedSourcesArguments | [
|
|
667
|
+
price: TransactionArgument
|
|
668
|
+
];
|
|
669
|
+
}
|
|
670
|
+
export declare function verifiedSources(options: VerifiedSourcesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
671
|
+
export interface VerifiedMethodArguments {
|
|
672
|
+
price: TransactionArgument;
|
|
673
|
+
}
|
|
674
|
+
export interface VerifiedMethodOptions {
|
|
675
|
+
package?: string;
|
|
676
|
+
arguments: VerifiedMethodArguments | [
|
|
677
|
+
price: TransactionArgument
|
|
678
|
+
];
|
|
679
|
+
}
|
|
680
|
+
export declare function verifiedMethod(options: VerifiedMethodOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
681
|
+
export interface VerifiedPriceTimestampMsArguments {
|
|
682
|
+
price: TransactionArgument;
|
|
683
|
+
}
|
|
684
|
+
export interface VerifiedPriceTimestampMsOptions {
|
|
685
|
+
package?: string;
|
|
686
|
+
arguments: VerifiedPriceTimestampMsArguments | [
|
|
687
|
+
price: TransactionArgument
|
|
688
|
+
];
|
|
689
|
+
}
|
|
690
|
+
export declare function verifiedPriceTimestampMs(options: VerifiedPriceTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
691
|
+
export interface VerifiedPriceArguments {
|
|
692
|
+
price: TransactionArgument;
|
|
693
|
+
}
|
|
694
|
+
export interface VerifiedPriceOptions {
|
|
695
|
+
package?: string;
|
|
696
|
+
arguments: VerifiedPriceArguments | [
|
|
697
|
+
price: TransactionArgument
|
|
698
|
+
];
|
|
699
|
+
}
|
|
700
|
+
export declare function verifiedPrice(options: VerifiedPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
701
|
+
export interface VerifiedPriceScaledArguments {
|
|
702
|
+
price: TransactionArgument;
|
|
703
|
+
}
|
|
704
|
+
export interface VerifiedPriceScaledOptions {
|
|
705
|
+
package?: string;
|
|
706
|
+
arguments: VerifiedPriceScaledArguments | [
|
|
707
|
+
price: TransactionArgument
|
|
708
|
+
];
|
|
709
|
+
}
|
|
710
|
+
export declare function verifiedPriceScaled(options: VerifiedPriceScaledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
711
|
+
export interface VerifiedPriceNArguments {
|
|
712
|
+
price: TransactionArgument;
|
|
713
|
+
}
|
|
714
|
+
export interface VerifiedPriceNOptions {
|
|
715
|
+
package?: string;
|
|
716
|
+
arguments: VerifiedPriceNArguments | [
|
|
717
|
+
price: TransactionArgument
|
|
718
|
+
];
|
|
719
|
+
}
|
|
720
|
+
export declare function verifiedPriceN(options: VerifiedPriceNOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
721
|
+
export interface VerifiedPriceScaleArguments {
|
|
722
|
+
price: TransactionArgument;
|
|
723
|
+
}
|
|
724
|
+
export interface VerifiedPriceScaleOptions {
|
|
725
|
+
package?: string;
|
|
726
|
+
arguments: VerifiedPriceScaleArguments | [
|
|
727
|
+
price: TransactionArgument
|
|
728
|
+
];
|
|
729
|
+
}
|
|
730
|
+
export declare function verifiedPriceScale(options: VerifiedPriceScaleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
731
|
+
export interface VerifiedConfidenceNArguments {
|
|
732
|
+
price: TransactionArgument;
|
|
733
|
+
}
|
|
734
|
+
export interface VerifiedConfidenceNOptions {
|
|
735
|
+
package?: string;
|
|
736
|
+
arguments: VerifiedConfidenceNArguments | [
|
|
737
|
+
price: TransactionArgument
|
|
738
|
+
];
|
|
739
|
+
}
|
|
740
|
+
export declare function verifiedConfidenceN(options: VerifiedConfidenceNOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
741
|
+
export interface VerifiedConfidenceScaleArguments {
|
|
742
|
+
price: TransactionArgument;
|
|
743
|
+
}
|
|
744
|
+
export interface VerifiedConfidenceScaleOptions {
|
|
745
|
+
package?: string;
|
|
746
|
+
arguments: VerifiedConfidenceScaleArguments | [
|
|
747
|
+
price: TransactionArgument
|
|
748
|
+
];
|
|
749
|
+
}
|
|
750
|
+
export declare function verifiedConfidenceScale(options: VerifiedConfidenceScaleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
751
|
+
export interface VerifiedMaxSourceDeviationBpsArguments {
|
|
752
|
+
price: TransactionArgument;
|
|
753
|
+
}
|
|
754
|
+
export interface VerifiedMaxSourceDeviationBpsOptions {
|
|
755
|
+
package?: string;
|
|
756
|
+
arguments: VerifiedMaxSourceDeviationBpsArguments | [
|
|
757
|
+
price: TransactionArgument
|
|
758
|
+
];
|
|
759
|
+
}
|
|
760
|
+
export declare function verifiedMaxSourceDeviationBps(options: VerifiedMaxSourceDeviationBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
761
|
+
export interface VerifiedNumSourcesArguments {
|
|
762
|
+
price: TransactionArgument;
|
|
763
|
+
}
|
|
764
|
+
export interface VerifiedNumSourcesOptions {
|
|
765
|
+
package?: string;
|
|
766
|
+
arguments: VerifiedNumSourcesArguments | [
|
|
767
|
+
price: TransactionArgument
|
|
768
|
+
];
|
|
769
|
+
}
|
|
770
|
+
export declare function verifiedNumSources(options: VerifiedNumSourcesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
771
|
+
export interface VerifiedSignedTimestampMsArguments {
|
|
772
|
+
price: TransactionArgument;
|
|
773
|
+
}
|
|
774
|
+
export interface VerifiedSignedTimestampMsOptions {
|
|
775
|
+
package?: string;
|
|
776
|
+
arguments: VerifiedSignedTimestampMsArguments | [
|
|
777
|
+
price: TransactionArgument
|
|
778
|
+
];
|
|
779
|
+
}
|
|
780
|
+
export declare function verifiedSignedTimestampMs(options: VerifiedSignedTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
781
|
+
export interface SourceBinanceSpotOptions {
|
|
782
|
+
package?: string;
|
|
783
|
+
arguments?: [
|
|
784
|
+
];
|
|
785
|
+
}
|
|
786
|
+
export declare function sourceBinanceSpot(options?: SourceBinanceSpotOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
787
|
+
export interface SourceBinanceUsdmPerpWsOptions {
|
|
788
|
+
package?: string;
|
|
789
|
+
arguments?: [
|
|
790
|
+
];
|
|
791
|
+
}
|
|
792
|
+
export declare function sourceBinanceUsdmPerpWs(options?: SourceBinanceUsdmPerpWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
793
|
+
export interface SourceBybitLinearPerpWsOptions {
|
|
794
|
+
package?: string;
|
|
795
|
+
arguments?: [
|
|
796
|
+
];
|
|
797
|
+
}
|
|
798
|
+
export declare function sourceBybitLinearPerpWs(options?: SourceBybitLinearPerpWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
799
|
+
export interface SourceGateioUsdtPerpWsOptions {
|
|
800
|
+
package?: string;
|
|
801
|
+
arguments?: [
|
|
802
|
+
];
|
|
803
|
+
}
|
|
804
|
+
export declare function sourceGateioUsdtPerpWs(options?: SourceGateioUsdtPerpWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
805
|
+
export interface SourceGataUsdtPerpWsOptions {
|
|
806
|
+
package?: string;
|
|
807
|
+
arguments?: [
|
|
808
|
+
];
|
|
809
|
+
}
|
|
810
|
+
export declare function sourceGataUsdtPerpWs(options?: SourceGataUsdtPerpWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
811
|
+
export interface SourceBybitSpotWsOptions {
|
|
812
|
+
package?: string;
|
|
813
|
+
arguments?: [
|
|
814
|
+
];
|
|
815
|
+
}
|
|
816
|
+
export declare function sourceBybitSpotWs(options?: SourceBybitSpotWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
817
|
+
export interface SourceXstockEquityRestOptions {
|
|
818
|
+
package?: string;
|
|
819
|
+
arguments?: [
|
|
820
|
+
];
|
|
821
|
+
}
|
|
822
|
+
export declare function sourceXstockEquityRest(options?: SourceXstockEquityRestOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
823
|
+
export interface SourceOkxSpotWsOptions {
|
|
824
|
+
package?: string;
|
|
825
|
+
arguments?: [
|
|
826
|
+
];
|
|
827
|
+
}
|
|
828
|
+
export declare function sourceOkxSpotWs(options?: SourceOkxSpotWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
829
|
+
export interface SourceHyperliquidPerpWsOptions {
|
|
830
|
+
package?: string;
|
|
831
|
+
arguments?: [
|
|
832
|
+
];
|
|
833
|
+
}
|
|
834
|
+
export declare function sourceHyperliquidPerpWs(options?: SourceHyperliquidPerpWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
835
|
+
export interface SourceGateioSpotWsOptions {
|
|
836
|
+
package?: string;
|
|
837
|
+
arguments?: [
|
|
838
|
+
];
|
|
839
|
+
}
|
|
840
|
+
export declare function sourceGateioSpotWs(options?: SourceGateioSpotWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
841
|
+
export interface SourceKrakenSpotWsOptions {
|
|
842
|
+
package?: string;
|
|
843
|
+
arguments?: [
|
|
844
|
+
];
|
|
845
|
+
}
|
|
846
|
+
export declare function sourceKrakenSpotWs(options?: SourceKrakenSpotWsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
847
|
+
export interface MethodDirectOptions {
|
|
848
|
+
package?: string;
|
|
849
|
+
arguments?: [
|
|
850
|
+
];
|
|
851
|
+
}
|
|
852
|
+
export declare function methodDirect(options?: MethodDirectOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
853
|
+
export interface MethodMedianOptions {
|
|
854
|
+
package?: string;
|
|
855
|
+
arguments?: [
|
|
856
|
+
];
|
|
857
|
+
}
|
|
858
|
+
export declare function methodMedian(options?: MethodMedianOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
859
|
+
export interface MethodConfidenceOptions {
|
|
860
|
+
package?: string;
|
|
861
|
+
arguments?: [
|
|
862
|
+
];
|
|
863
|
+
}
|
|
864
|
+
export declare function methodConfidence(options?: MethodConfidenceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
865
|
+
export interface IsSupportedSourceArguments {
|
|
866
|
+
source: RawTransactionArgument<number | bigint>;
|
|
867
|
+
}
|
|
868
|
+
export interface IsSupportedSourceOptions {
|
|
869
|
+
package?: string;
|
|
870
|
+
arguments: IsSupportedSourceArguments | [
|
|
871
|
+
source: RawTransactionArgument<number | bigint>
|
|
872
|
+
];
|
|
873
|
+
}
|
|
874
|
+
export declare function isSupportedSource(options: IsSupportedSourceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
875
|
+
export interface IsPerpSourceArguments {
|
|
876
|
+
source: RawTransactionArgument<number | bigint>;
|
|
877
|
+
}
|
|
878
|
+
export interface IsPerpSourceOptions {
|
|
879
|
+
package?: string;
|
|
880
|
+
arguments: IsPerpSourceArguments | [
|
|
881
|
+
source: RawTransactionArgument<number | bigint>
|
|
882
|
+
];
|
|
883
|
+
}
|
|
884
|
+
export declare function isPerpSource(options: IsPerpSourceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
885
|
+
export interface IsSupportedMethodArguments {
|
|
886
|
+
method: RawTransactionArgument<string>;
|
|
887
|
+
}
|
|
888
|
+
export interface IsSupportedMethodOptions {
|
|
889
|
+
package?: string;
|
|
890
|
+
arguments: IsSupportedMethodArguments | [
|
|
891
|
+
method: RawTransactionArgument<string>
|
|
892
|
+
];
|
|
893
|
+
}
|
|
894
|
+
export declare function isSupportedMethod(options: IsSupportedMethodOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
895
|
+
export interface IsPerpMethodArguments {
|
|
896
|
+
method: RawTransactionArgument<string>;
|
|
897
|
+
}
|
|
898
|
+
export interface IsPerpMethodOptions {
|
|
899
|
+
package?: string;
|
|
900
|
+
arguments: IsPerpMethodArguments | [
|
|
901
|
+
method: RawTransactionArgument<string>
|
|
902
|
+
];
|
|
903
|
+
}
|
|
904
|
+
export declare function isPerpMethod(options: IsPerpMethodOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
905
|
+
export interface SourceFromNameArguments {
|
|
906
|
+
name: RawTransactionArgument<string>;
|
|
907
|
+
}
|
|
908
|
+
export interface SourceFromNameOptions {
|
|
909
|
+
package?: string;
|
|
910
|
+
arguments: SourceFromNameArguments | [
|
|
911
|
+
name: RawTransactionArgument<string>
|
|
912
|
+
];
|
|
913
|
+
}
|
|
914
|
+
export declare function sourceFromName(options: SourceFromNameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
915
|
+
export interface MethodFromNameArguments {
|
|
916
|
+
name: RawTransactionArgument<string>;
|
|
917
|
+
}
|
|
918
|
+
export interface MethodFromNameOptions {
|
|
919
|
+
package?: string;
|
|
920
|
+
arguments: MethodFromNameArguments | [
|
|
921
|
+
name: RawTransactionArgument<string>
|
|
922
|
+
];
|
|
923
|
+
}
|
|
924
|
+
export declare function methodFromName(options: MethodFromNameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
925
|
+
export interface SignedTsHwmArguments {
|
|
926
|
+
config: RawTransactionArgument<string>;
|
|
927
|
+
symbol: RawTransactionArgument<string>;
|
|
928
|
+
}
|
|
929
|
+
export interface SignedTsHwmOptions {
|
|
930
|
+
package?: string;
|
|
931
|
+
arguments: SignedTsHwmArguments | [
|
|
932
|
+
config: RawTransactionArgument<string>,
|
|
933
|
+
symbol: RawTransactionArgument<string>
|
|
934
|
+
];
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Last accepted signed timestamp for `symbol` (0 if none yet). View helper for
|
|
938
|
+
* keepers/SDK so they can pick a `timestamp_ms` strictly greater than this.
|
|
939
|
+
*/
|
|
940
|
+
export declare function signedTsHwm(options: SignedTsHwmOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|