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