@layerzerolabs/lz-v2-stellar-sdk 0.2.13 → 0.2.18
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/.turbo/turbo-build.log +1 -0
- package/.turbo/turbo-test.log +1009 -0
- package/dist/generated/bml.d.ts +104 -37
- package/dist/generated/bml.js +83 -42
- package/dist/generated/counter.d.ts +334 -175
- package/dist/generated/counter.js +109 -63
- package/dist/generated/dvn.d.ts +1985 -0
- package/dist/generated/dvn.js +326 -0
- package/dist/generated/dvn_fee_lib.d.ts +690 -0
- package/dist/generated/dvn_fee_lib.js +163 -0
- package/dist/generated/endpoint.d.ts +155 -46
- package/dist/generated/endpoint.js +93 -50
- package/dist/generated/executor.d.ts +1841 -0
- package/dist/generated/executor.js +312 -0
- package/dist/generated/executor_fee_lib.d.ts +1083 -0
- package/dist/generated/executor_fee_lib.js +255 -0
- package/dist/generated/executor_helper.d.ts +981 -0
- package/dist/generated/executor_helper.js +236 -0
- package/dist/generated/oft_std.d.ts +1722 -0
- package/dist/generated/oft_std.js +316 -0
- package/dist/generated/price_feed.d.ts +1077 -0
- package/dist/generated/price_feed.js +210 -0
- package/dist/generated/sml.d.ts +171 -56
- package/dist/generated/sml.js +111 -62
- package/dist/generated/treasury.d.ts +896 -0
- package/dist/generated/treasury.js +219 -0
- package/dist/generated/uln302.d.ts +175 -75
- package/dist/generated/uln302.js +126 -82
- package/dist/generated/upgrader.d.ts +70 -0
- package/dist/generated/upgrader.js +19 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +14 -0
- package/dist/wasm/blocked-message-lib.d.ts +1 -0
- package/dist/wasm/blocked-message-lib.js +2 -0
- package/dist/wasm/counter.d.ts +1 -0
- package/dist/wasm/counter.js +2 -0
- package/dist/wasm/dvn-fee-lib.d.ts +1 -0
- package/dist/wasm/dvn-fee-lib.js +2 -0
- package/dist/wasm/dvn.d.ts +1 -0
- package/dist/wasm/dvn.js +2 -0
- package/dist/wasm/endpoint-v2.d.ts +1 -0
- package/dist/wasm/endpoint-v2.js +2 -0
- package/dist/wasm/executor-fee-lib.d.ts +1 -0
- package/dist/wasm/executor-fee-lib.js +2 -0
- package/dist/wasm/executor-helper.d.ts +1 -0
- package/dist/wasm/executor-helper.js +2 -0
- package/dist/wasm/executor.d.ts +1 -0
- package/dist/wasm/executor.js +2 -0
- package/dist/wasm/layerzero-views.d.ts +1 -0
- package/dist/wasm/layerzero-views.js +2 -0
- package/dist/wasm/oft-std.d.ts +1 -0
- package/dist/wasm/oft-std.js +2 -0
- package/dist/wasm/price-feed.d.ts +1 -0
- package/dist/wasm/price-feed.js +2 -0
- package/dist/wasm/simple-message-lib.d.ts +1 -0
- package/dist/wasm/simple-message-lib.js +2 -0
- package/dist/wasm/treasury.d.ts +1 -0
- package/dist/wasm/treasury.js +2 -0
- package/dist/wasm/uln302.d.ts +1 -0
- package/dist/wasm/uln302.js +2 -0
- package/dist/wasm/upgrader.d.ts +1 -0
- package/dist/wasm/upgrader.js +2 -0
- package/dist/wasm.d.ts +15 -0
- package/dist/wasm.js +15 -0
- package/package.json +12 -9
- package/src/generated/bml.ts +117 -66
- package/src/generated/counter.ts +338 -191
- package/src/generated/dvn.ts +2036 -0
- package/src/generated/dvn_fee_lib.ts +693 -0
- package/src/generated/endpoint.ts +177 -80
- package/src/generated/executor.ts +228 -127
- package/src/generated/executor_fee_lib.ts +1072 -0
- package/src/generated/executor_helper.ts +163 -57
- package/src/generated/oft_std.ts +800 -246
- package/src/generated/price_feed.ts +1108 -0
- package/src/generated/sml.ts +194 -91
- package/src/generated/treasury.ts +943 -0
- package/src/generated/uln302.ts +211 -113
- package/src/generated/upgrader.ts +102 -0
- package/src/index.ts +17 -0
- package/src/wasm/blocked-message-lib.ts +2 -0
- package/src/wasm/counter.ts +2 -0
- package/src/wasm/dvn-fee-lib.ts +2 -0
- package/src/wasm/dvn.ts +2 -0
- package/src/wasm/endpoint-v2.ts +2 -0
- package/src/wasm/executor-fee-lib.ts +2 -0
- package/src/wasm/executor-helper.ts +2 -0
- package/src/wasm/executor.ts +2 -0
- package/src/wasm/layerzero-views.ts +2 -0
- package/src/wasm/oft-std.ts +2 -0
- package/src/wasm/price-feed.ts +2 -0
- package/src/wasm/simple-message-lib.ts +2 -0
- package/src/wasm/treasury.ts +2 -0
- package/src/wasm/uln302.ts +2 -0
- package/src/wasm/upgrader.ts +2 -0
- package/src/wasm.ts +15 -0
- package/test/counter-sml.test.ts +376 -0
- package/test/counter-uln.test.ts +493 -0
- package/test/{oft.test.ts → oft-sml.test.ts} +187 -323
- package/test/suites/constants.ts +22 -2
- package/test/suites/dummyContractClient.ts +169 -0
- package/test/suites/globalSetup.ts +450 -0
- package/test/suites/localnet.ts +23 -6
- package/test/upgrader.test.ts +300 -0
- package/test/utils.ts +558 -85
- package/vitest.config.ts +21 -0
- package/test/index.test.ts +0 -376
|
@@ -0,0 +1,1108 @@
|
|
|
1
|
+
import { Buffer } from "buffer";
|
|
2
|
+
import { Address } from '@stellar/stellar-sdk';
|
|
3
|
+
import {
|
|
4
|
+
AssembledTransaction,
|
|
5
|
+
Client as ContractClient,
|
|
6
|
+
ClientOptions as ContractClientOptions,
|
|
7
|
+
MethodOptions,
|
|
8
|
+
Result,
|
|
9
|
+
Spec as ContractSpec,
|
|
10
|
+
} from '@stellar/stellar-sdk/contract';
|
|
11
|
+
import type {
|
|
12
|
+
u32,
|
|
13
|
+
i32,
|
|
14
|
+
u64,
|
|
15
|
+
i64,
|
|
16
|
+
u128,
|
|
17
|
+
i128,
|
|
18
|
+
u256,
|
|
19
|
+
i256,
|
|
20
|
+
Option,
|
|
21
|
+
Typepoint,
|
|
22
|
+
Duration,
|
|
23
|
+
} from '@stellar/stellar-sdk/contract';
|
|
24
|
+
export * from '@stellar/stellar-sdk'
|
|
25
|
+
export * as contract from '@stellar/stellar-sdk/contract'
|
|
26
|
+
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
27
|
+
|
|
28
|
+
export type MigrationData = void;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export type PriceFeedStorage = {tag: "PriceRatioDenominator", values: void} | {tag: "PriceUpdater", values: readonly [string]} | {tag: "DefaultModelPrice", values: readonly [u32]} | {tag: "ArbitrumPriceExt", values: void} | {tag: "NativePriceUSD", values: void} | {tag: "ArbitrumCompressionPercent", values: void} | {tag: "EidToModelType", values: readonly [u32]};
|
|
32
|
+
|
|
33
|
+
export const PriceFeedError = {
|
|
34
|
+
1: {message:"InvalidDenominator"},
|
|
35
|
+
2: {message:"NoPrice"},
|
|
36
|
+
3: {message:"NotAnOpStack"},
|
|
37
|
+
4: {message:"OnlyPriceUpdater"},
|
|
38
|
+
5: {message:"Overflow"}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Arbitrum-specific price extension
|
|
47
|
+
*/
|
|
48
|
+
export interface ArbitrumPriceExt {
|
|
49
|
+
/**
|
|
50
|
+
* Gas cost per byte of L1 calldata (for Arbitrum's L1 data posting)
|
|
51
|
+
*/
|
|
52
|
+
gas_per_l1_calldata_byte: u32;
|
|
53
|
+
/**
|
|
54
|
+
* Gas overhead per L2 transaction
|
|
55
|
+
*/
|
|
56
|
+
gas_per_l2_tx: u64;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Parameter for updating a single price
|
|
62
|
+
*/
|
|
63
|
+
export interface UpdatePrice {
|
|
64
|
+
/**
|
|
65
|
+
* Destination endpoint ID
|
|
66
|
+
*/
|
|
67
|
+
eid: u32;
|
|
68
|
+
/**
|
|
69
|
+
* Price information for the destination
|
|
70
|
+
*/
|
|
71
|
+
price: Price;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Parameter for updating Arbitrum price with extension
|
|
77
|
+
*/
|
|
78
|
+
export interface UpdatePriceExt {
|
|
79
|
+
/**
|
|
80
|
+
* Destination endpoint ID (should be an Arbitrum endpoint)
|
|
81
|
+
*/
|
|
82
|
+
eid: u32;
|
|
83
|
+
/**
|
|
84
|
+
* Arbitrum-specific pricing extension
|
|
85
|
+
*/
|
|
86
|
+
extend: ArbitrumPriceExt;
|
|
87
|
+
/**
|
|
88
|
+
* Price information for the destination
|
|
89
|
+
*/
|
|
90
|
+
price: Price;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Fee model type for different chain architectures
|
|
95
|
+
*/
|
|
96
|
+
export enum ModelType {
|
|
97
|
+
Default = 0,
|
|
98
|
+
ArbStack = 1,
|
|
99
|
+
OpStack = 2,
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Parameter for setting EID to model type mapping
|
|
105
|
+
*/
|
|
106
|
+
export interface SetEidToModelTypeParam {
|
|
107
|
+
/**
|
|
108
|
+
* Destination endpoint ID
|
|
109
|
+
*/
|
|
110
|
+
dst_eid: u32;
|
|
111
|
+
/**
|
|
112
|
+
* Fee model type for this destination
|
|
113
|
+
*/
|
|
114
|
+
model_type: ModelType;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* BufferReaderError: 1000-1009
|
|
119
|
+
*/
|
|
120
|
+
export const BufferReaderError = {
|
|
121
|
+
1000: {message:"InvalidLength"},
|
|
122
|
+
1001: {message:"InvalidAddressPayload"}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* BufferWriterError: 1010-1019
|
|
127
|
+
*/
|
|
128
|
+
export const BufferWriterError = {
|
|
129
|
+
1010: {message:"InvalidAddressPayload"}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* TtlConfigurableError: 1020-1029
|
|
134
|
+
*/
|
|
135
|
+
export const TtlConfigurableError = {
|
|
136
|
+
1020: {message:"InvalidTtlConfig"},
|
|
137
|
+
1021: {message:"TtlConfigFrozen"},
|
|
138
|
+
1022: {message:"TtlConfigAlreadyFrozen"}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* OwnableError: 1030-1039
|
|
143
|
+
*/
|
|
144
|
+
export const OwnableError = {
|
|
145
|
+
1030: {message:"OwnerAlreadySet"},
|
|
146
|
+
1031: {message:"OwnerNotSet"}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* BytesExtError: 1040-1049
|
|
151
|
+
*/
|
|
152
|
+
export const BytesExtError = {
|
|
153
|
+
1040: {message:"LengthMismatch"}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* UpgradeableError: 1050-1059
|
|
158
|
+
*/
|
|
159
|
+
export const UpgradeableError = {
|
|
160
|
+
1050: {message:"MigrationNotAllowed"}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* MultisigError: 1060-1069
|
|
165
|
+
*/
|
|
166
|
+
export const MultisigError = {
|
|
167
|
+
1060: {message:"AlreadyInitialized"},
|
|
168
|
+
1061: {message:"InvalidSigner"},
|
|
169
|
+
1062: {message:"SignatureError"},
|
|
170
|
+
1063: {message:"SignerAlreadyExists"},
|
|
171
|
+
1064: {message:"SignerNotFound"},
|
|
172
|
+
1065: {message:"TotalSignersLessThanThreshold"},
|
|
173
|
+
1066: {message:"UnsortedSigners"},
|
|
174
|
+
1067: {message:"ZeroThreshold"}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
export type MultisigStorage = {tag: "Signers", values: void} | {tag: "Threshold", values: void};
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
export type OwnableStorage = {tag: "Owner", values: void};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* TTL configuration: threshold (when to extend) and extend_to (target TTL).
|
|
188
|
+
*/
|
|
189
|
+
export interface TtlConfig {
|
|
190
|
+
/**
|
|
191
|
+
* Target TTL after extension (in ledgers).
|
|
192
|
+
*/
|
|
193
|
+
extend_to: u32;
|
|
194
|
+
/**
|
|
195
|
+
* TTL threshold that triggers extension (in ledgers).
|
|
196
|
+
*/
|
|
197
|
+
threshold: u32;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
export type TtlConfigStorage = {tag: "Frozen", values: void} | {tag: "Instance", values: void} | {tag: "Persistent", values: void};
|
|
203
|
+
|
|
204
|
+
export type UpgradeableStorage = {tag: "Migrating", values: void};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* WorkerError: 1200-1299
|
|
208
|
+
*/
|
|
209
|
+
export const WorkerError = {
|
|
210
|
+
1200: {message:"AdminAlreadyExists"},
|
|
211
|
+
1201: {message:"AdminNotFound"},
|
|
212
|
+
1202: {message:"AlreadyOnAllowlist"},
|
|
213
|
+
1203: {message:"AlreadyOnDenylist"},
|
|
214
|
+
1204: {message:"AttemptingToRemoveOnlyAdmin"},
|
|
215
|
+
1205: {message:"DepositAddressNotSet"},
|
|
216
|
+
1206: {message:"MessageLibAlreadySupported"},
|
|
217
|
+
1207: {message:"MessageLibNotSupported"},
|
|
218
|
+
1208: {message:"NoAdminsProvided"},
|
|
219
|
+
1209: {message:"NotAllowed"},
|
|
220
|
+
1210: {message:"NotOnAllowlist"},
|
|
221
|
+
1211: {message:"NotOnDenylist"},
|
|
222
|
+
1212: {message:"PauseStatusUnchanged"},
|
|
223
|
+
1213: {message:"PriceFeedNotSet"},
|
|
224
|
+
1214: {message:"ReInitialize"},
|
|
225
|
+
1215: {message:"Unauthorized"},
|
|
226
|
+
1216: {message:"UnsupportedMessageLib"},
|
|
227
|
+
1217: {message:"WorkerFeeLibNotSet"},
|
|
228
|
+
1218: {message:"WorkerIsPaused"}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Parameters for DVN fee calculation.
|
|
245
|
+
*
|
|
246
|
+
* Contains all inputs needed by the fee library to calculate verification fees
|
|
247
|
+
* for cross-chain messages. Includes message parameters, common configuration,
|
|
248
|
+
* and destination-specific settings.
|
|
249
|
+
*/
|
|
250
|
+
export interface DvnFeeParams {
|
|
251
|
+
/**
|
|
252
|
+
* Number of block confirmations required.
|
|
253
|
+
*/
|
|
254
|
+
confirmations: u64;
|
|
255
|
+
/**
|
|
256
|
+
* Default fee multiplier in basis points (used if no dst-specific multiplier).
|
|
257
|
+
*/
|
|
258
|
+
default_multiplier_bps: u32;
|
|
259
|
+
/**
|
|
260
|
+
* Destination endpoint ID (chain identifier).
|
|
261
|
+
*/
|
|
262
|
+
dst_eid: u32;
|
|
263
|
+
/**
|
|
264
|
+
* Minimum fee margin in USD (scaled).
|
|
265
|
+
*/
|
|
266
|
+
floor_margin_usd: u128;
|
|
267
|
+
/**
|
|
268
|
+
* ============================================================================================
|
|
269
|
+
* Destination-Specific Configuration
|
|
270
|
+
* ============================================================================================
|
|
271
|
+
* Gas estimate for verification on destination chain.
|
|
272
|
+
*/
|
|
273
|
+
gas: u128;
|
|
274
|
+
/**
|
|
275
|
+
* Destination-specific fee multiplier in basis points (0 = use default).
|
|
276
|
+
*/
|
|
277
|
+
multiplier_bps: u32;
|
|
278
|
+
/**
|
|
279
|
+
* DVN options
|
|
280
|
+
*/
|
|
281
|
+
options: Buffer;
|
|
282
|
+
/**
|
|
283
|
+
* ============================================================================================
|
|
284
|
+
* Common Configuration
|
|
285
|
+
* ============================================================================================
|
|
286
|
+
* Price feed contract address for gas price and exchange rate data.
|
|
287
|
+
*/
|
|
288
|
+
price_feed: string;
|
|
289
|
+
/**
|
|
290
|
+
* Number of required signatures (quorum).
|
|
291
|
+
*/
|
|
292
|
+
quorum: u32;
|
|
293
|
+
/**
|
|
294
|
+
* ============================================================================================
|
|
295
|
+
* Message Parameters
|
|
296
|
+
* ============================================================================================
|
|
297
|
+
* The OApp sender address.
|
|
298
|
+
*/
|
|
299
|
+
sender: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Parameters for executor fee calculation.
|
|
305
|
+
*
|
|
306
|
+
* Contains all inputs needed by the fee library to calculate execution fees
|
|
307
|
+
* for cross-chain messages. Includes message parameters, common configuration,
|
|
308
|
+
* and destination-specific settings.
|
|
309
|
+
*/
|
|
310
|
+
export interface FeeParams {
|
|
311
|
+
/**
|
|
312
|
+
* Size of the message calldata in bytes.
|
|
313
|
+
*/
|
|
314
|
+
calldata_size: u32;
|
|
315
|
+
/**
|
|
316
|
+
* Default fee multiplier in basis points (used if no dst-specific multiplier).
|
|
317
|
+
*/
|
|
318
|
+
default_multiplier_bps: u32;
|
|
319
|
+
/**
|
|
320
|
+
* Destination endpoint ID (chain identifier).
|
|
321
|
+
*/
|
|
322
|
+
dst_eid: u32;
|
|
323
|
+
/**
|
|
324
|
+
* Minimum fee margin in USD (scaled).
|
|
325
|
+
*/
|
|
326
|
+
floor_margin_usd: u128;
|
|
327
|
+
/**
|
|
328
|
+
* Base gas for each lzCompose call on destination chain.
|
|
329
|
+
*/
|
|
330
|
+
lz_compose_base_gas: u64;
|
|
331
|
+
/**
|
|
332
|
+
* ============================================================================================
|
|
333
|
+
* Destination-Specific Configuration
|
|
334
|
+
* ============================================================================================
|
|
335
|
+
* Base gas for lzReceive execution on destination chain.
|
|
336
|
+
*/
|
|
337
|
+
lz_receive_base_gas: u64;
|
|
338
|
+
/**
|
|
339
|
+
* Destination-specific fee multiplier in basis points (0 = use default).
|
|
340
|
+
*/
|
|
341
|
+
multiplier_bps: u32;
|
|
342
|
+
/**
|
|
343
|
+
* Maximum native token value that can be sent.
|
|
344
|
+
*/
|
|
345
|
+
native_cap: u128;
|
|
346
|
+
/**
|
|
347
|
+
* Encoded executor options (lzReceive gas, lzCompose, nativeDrop, etc.).
|
|
348
|
+
*/
|
|
349
|
+
options: Buffer;
|
|
350
|
+
/**
|
|
351
|
+
* ============================================================================================
|
|
352
|
+
* Common Configuration
|
|
353
|
+
* ============================================================================================
|
|
354
|
+
* Price feed contract address for gas price and exchange rate data.
|
|
355
|
+
*/
|
|
356
|
+
price_feed: string;
|
|
357
|
+
/**
|
|
358
|
+
* ============================================================================================
|
|
359
|
+
* Message Parameters
|
|
360
|
+
* ============================================================================================
|
|
361
|
+
* The OApp sender address.
|
|
362
|
+
*/
|
|
363
|
+
sender: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Gas price information for a destination endpoint.
|
|
369
|
+
*
|
|
370
|
+
* Contains the exchange rate and gas costs needed for cross-chain fee calculations.
|
|
371
|
+
*/
|
|
372
|
+
export interface Price {
|
|
373
|
+
/**
|
|
374
|
+
* Gas cost per byte of calldata on the destination chain.
|
|
375
|
+
*/
|
|
376
|
+
gas_per_byte: u32;
|
|
377
|
+
/**
|
|
378
|
+
* Gas price in the smallest unit (wei for EVM, stroops for Stellar).
|
|
379
|
+
*/
|
|
380
|
+
gas_price_in_unit: u64;
|
|
381
|
+
/**
|
|
382
|
+
* Price ratio = (remote native token price / local native token price) * PRICE_RATIO_DENOMINATOR.
|
|
383
|
+
* Used to convert destination chain gas costs to source chain native token.
|
|
384
|
+
*/
|
|
385
|
+
price_ratio: u128;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Fee estimation result with detailed breakdown.
|
|
391
|
+
*
|
|
392
|
+
* Contains the calculated fee and all intermediate values used in the calculation.
|
|
393
|
+
*/
|
|
394
|
+
export interface FeeEstimate {
|
|
395
|
+
/**
|
|
396
|
+
* Source chain native token price in USD (scaled).
|
|
397
|
+
*/
|
|
398
|
+
native_price_usd: u128;
|
|
399
|
+
/**
|
|
400
|
+
* Price ratio used for the calculation.
|
|
401
|
+
*/
|
|
402
|
+
price_ratio: u128;
|
|
403
|
+
/**
|
|
404
|
+
* Denominator for the price ratio (typically 10^20).
|
|
405
|
+
*/
|
|
406
|
+
price_ratio_denominator: u128;
|
|
407
|
+
/**
|
|
408
|
+
* Total gas fee in source chain native token units.
|
|
409
|
+
*/
|
|
410
|
+
total_gas_fee: i128;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export type WorkerStorage = {tag: "Paused", values: void} | {tag: "DepositAddress", values: void} | {tag: "PriceFeed", values: void} | {tag: "WorkerFeeLib", values: void} | {tag: "DefaultMultiplierBps", values: void} | {tag: "SupportedOptionTypes", values: readonly [u32]} | {tag: "MessageLibs", values: void} | {tag: "Allowlist", values: readonly [string]} | {tag: "Denylist", values: readonly [string]} | {tag: "AllowlistSize", values: void} | {tag: "Admins", values: void};
|
|
414
|
+
|
|
415
|
+
export interface Client {
|
|
416
|
+
/**
|
|
417
|
+
* Construct and simulate a upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
418
|
+
*/
|
|
419
|
+
upgrade: ({new_wasm_hash}: {new_wasm_hash: Buffer}, txnOptions?: {
|
|
420
|
+
/**
|
|
421
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
422
|
+
*/
|
|
423
|
+
fee?: number;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
427
|
+
*/
|
|
428
|
+
timeoutInSeconds?: number;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
432
|
+
*/
|
|
433
|
+
simulate?: boolean;
|
|
434
|
+
}) => Promise<AssembledTransaction<null>>
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Construct and simulate a migrate transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
438
|
+
*/
|
|
439
|
+
migrate: ({migration_data}: {migration_data: MigrationData}, txnOptions?: {
|
|
440
|
+
/**
|
|
441
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
442
|
+
*/
|
|
443
|
+
fee?: number;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
447
|
+
*/
|
|
448
|
+
timeoutInSeconds?: number;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
452
|
+
*/
|
|
453
|
+
simulate?: boolean;
|
|
454
|
+
}) => Promise<AssembledTransaction<null>>
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Construct and simulate a authorizer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
458
|
+
*/
|
|
459
|
+
authorizer: (txnOptions?: {
|
|
460
|
+
/**
|
|
461
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
462
|
+
*/
|
|
463
|
+
fee?: number;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
467
|
+
*/
|
|
468
|
+
timeoutInSeconds?: number;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
472
|
+
*/
|
|
473
|
+
simulate?: boolean;
|
|
474
|
+
}) => Promise<AssembledTransaction<string>>
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Construct and simulate a estimate_fee_by_eid transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
478
|
+
* Estimate fee with detailed breakdown by endpoint ID
|
|
479
|
+
* Corresponds to estimateFeeByEid in PriceFeed.sol
|
|
480
|
+
*/
|
|
481
|
+
estimate_fee_by_eid: ({fee_lib, dst_eid, calldata_size, gas}: {fee_lib: string, dst_eid: u32, calldata_size: u32, gas: u128}, txnOptions?: {
|
|
482
|
+
/**
|
|
483
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
484
|
+
*/
|
|
485
|
+
fee?: number;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
489
|
+
*/
|
|
490
|
+
timeoutInSeconds?: number;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
494
|
+
*/
|
|
495
|
+
simulate?: boolean;
|
|
496
|
+
}) => Promise<AssembledTransaction<FeeEstimate>>
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Construct and simulate a native_token_price_usd transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
500
|
+
* Get the native token price in USD
|
|
501
|
+
*/
|
|
502
|
+
native_token_price_usd: (txnOptions?: {
|
|
503
|
+
/**
|
|
504
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
505
|
+
*/
|
|
506
|
+
fee?: number;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
510
|
+
*/
|
|
511
|
+
timeoutInSeconds?: number;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
515
|
+
*/
|
|
516
|
+
simulate?: boolean;
|
|
517
|
+
}) => Promise<AssembledTransaction<u128>>
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Construct and simulate a get_price transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
521
|
+
* Get the price for a destination EID.
|
|
522
|
+
*/
|
|
523
|
+
get_price: ({dst_eid}: {dst_eid: u32}, txnOptions?: {
|
|
524
|
+
/**
|
|
525
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
526
|
+
*/
|
|
527
|
+
fee?: number;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
531
|
+
*/
|
|
532
|
+
timeoutInSeconds?: number;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
536
|
+
*/
|
|
537
|
+
simulate?: boolean;
|
|
538
|
+
}) => Promise<AssembledTransaction<Option<Price>>>
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Construct and simulate a get_price_ratio_denominator transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
542
|
+
* Get the price ratio denominator.
|
|
543
|
+
*/
|
|
544
|
+
get_price_ratio_denominator: (txnOptions?: {
|
|
545
|
+
/**
|
|
546
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
547
|
+
*/
|
|
548
|
+
fee?: number;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
552
|
+
*/
|
|
553
|
+
timeoutInSeconds?: number;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
557
|
+
*/
|
|
558
|
+
simulate?: boolean;
|
|
559
|
+
}) => Promise<AssembledTransaction<u128>>
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Construct and simulate a set_price_updater transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
563
|
+
* Set price updater status (owner only)
|
|
564
|
+
*/
|
|
565
|
+
set_price_updater: ({updater, active}: {updater: string, active: boolean}, txnOptions?: {
|
|
566
|
+
/**
|
|
567
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
568
|
+
*/
|
|
569
|
+
fee?: number;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
573
|
+
*/
|
|
574
|
+
timeoutInSeconds?: number;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
578
|
+
*/
|
|
579
|
+
simulate?: boolean;
|
|
580
|
+
}) => Promise<AssembledTransaction<null>>
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Construct and simulate a set_price_ratio_denominator transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
584
|
+
* Set the price ratio denominator (owner only)
|
|
585
|
+
*/
|
|
586
|
+
set_price_ratio_denominator: ({denominator}: {denominator: u128}, txnOptions?: {
|
|
587
|
+
/**
|
|
588
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
589
|
+
*/
|
|
590
|
+
fee?: number;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
594
|
+
*/
|
|
595
|
+
timeoutInSeconds?: number;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
599
|
+
*/
|
|
600
|
+
simulate?: boolean;
|
|
601
|
+
}) => Promise<AssembledTransaction<null>>
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Construct and simulate a set_arbitrum_compression_percent transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
605
|
+
* Set the Arbitrum compression percentage (owner only)
|
|
606
|
+
*/
|
|
607
|
+
set_arbitrum_compression_percent: ({compression_percent}: {compression_percent: u128}, txnOptions?: {
|
|
608
|
+
/**
|
|
609
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
610
|
+
*/
|
|
611
|
+
fee?: number;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
615
|
+
*/
|
|
616
|
+
timeoutInSeconds?: number;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
620
|
+
*/
|
|
621
|
+
simulate?: boolean;
|
|
622
|
+
}) => Promise<AssembledTransaction<null>>
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Construct and simulate a set_eid_to_model_type transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
626
|
+
* Set the fee model type for destination EIDs (owner only)
|
|
627
|
+
*/
|
|
628
|
+
set_eid_to_model_type: ({params}: {params: Array<SetEidToModelTypeParam>}, txnOptions?: {
|
|
629
|
+
/**
|
|
630
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
631
|
+
*/
|
|
632
|
+
fee?: number;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
636
|
+
*/
|
|
637
|
+
timeoutInSeconds?: number;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
641
|
+
*/
|
|
642
|
+
simulate?: boolean;
|
|
643
|
+
}) => Promise<AssembledTransaction<null>>
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Construct and simulate a set_price transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
647
|
+
* Set prices for multiple destinations (price updater or owner)
|
|
648
|
+
*/
|
|
649
|
+
set_price: ({price_updater, prices}: {price_updater: string, prices: Array<UpdatePrice>}, txnOptions?: {
|
|
650
|
+
/**
|
|
651
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
652
|
+
*/
|
|
653
|
+
fee?: number;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
657
|
+
*/
|
|
658
|
+
timeoutInSeconds?: number;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
662
|
+
*/
|
|
663
|
+
simulate?: boolean;
|
|
664
|
+
}) => Promise<AssembledTransaction<null>>
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Construct and simulate a set_price_for_arbitrum transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
668
|
+
* Set price for Arbitrum with extension (price updater or owner)
|
|
669
|
+
* Corresponds to setPriceForArbitrum in PriceFeed.sol
|
|
670
|
+
*/
|
|
671
|
+
set_price_for_arbitrum: ({price_updater, update}: {price_updater: string, update: UpdatePriceExt}, txnOptions?: {
|
|
672
|
+
/**
|
|
673
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
674
|
+
*/
|
|
675
|
+
fee?: number;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
679
|
+
*/
|
|
680
|
+
timeoutInSeconds?: number;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
684
|
+
*/
|
|
685
|
+
simulate?: boolean;
|
|
686
|
+
}) => Promise<AssembledTransaction<null>>
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Construct and simulate a set_native_token_price_usd transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
690
|
+
* Set the native token price in USD (price updater or owner).
|
|
691
|
+
*
|
|
692
|
+
* Kept as a standalone contract function (not part of the canonical `worker::ILayerZeroPriceFeed` interface).
|
|
693
|
+
*/
|
|
694
|
+
set_native_token_price_usd: ({price_updater, native_token_price_usd}: {price_updater: string, native_token_price_usd: u128}, txnOptions?: {
|
|
695
|
+
/**
|
|
696
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
697
|
+
*/
|
|
698
|
+
fee?: number;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
702
|
+
*/
|
|
703
|
+
timeoutInSeconds?: number;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
707
|
+
*/
|
|
708
|
+
simulate?: boolean;
|
|
709
|
+
}) => Promise<AssembledTransaction<null>>
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Construct and simulate a is_price_updater transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
713
|
+
* Check if an address is an active price updater
|
|
714
|
+
*/
|
|
715
|
+
is_price_updater: ({updater}: {updater: string}, txnOptions?: {
|
|
716
|
+
/**
|
|
717
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
718
|
+
*/
|
|
719
|
+
fee?: number;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
723
|
+
*/
|
|
724
|
+
timeoutInSeconds?: number;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
728
|
+
*/
|
|
729
|
+
simulate?: boolean;
|
|
730
|
+
}) => Promise<AssembledTransaction<boolean>>
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Construct and simulate a arbitrum_compression_percent transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
734
|
+
* Get the Arbitrum compression percent
|
|
735
|
+
*/
|
|
736
|
+
arbitrum_compression_percent: (txnOptions?: {
|
|
737
|
+
/**
|
|
738
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
739
|
+
*/
|
|
740
|
+
fee?: number;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
744
|
+
*/
|
|
745
|
+
timeoutInSeconds?: number;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
749
|
+
*/
|
|
750
|
+
simulate?: boolean;
|
|
751
|
+
}) => Promise<AssembledTransaction<u128>>
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Construct and simulate a arbitrum_price_ext transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
755
|
+
* Get the Arbitrum price extension
|
|
756
|
+
*/
|
|
757
|
+
arbitrum_price_ext: (txnOptions?: {
|
|
758
|
+
/**
|
|
759
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
760
|
+
*/
|
|
761
|
+
fee?: number;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
765
|
+
*/
|
|
766
|
+
timeoutInSeconds?: number;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
770
|
+
*/
|
|
771
|
+
simulate?: boolean;
|
|
772
|
+
}) => Promise<AssembledTransaction<ArbitrumPriceExt>>
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Construct and simulate a eid_to_model_type transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
776
|
+
* Get the model type for a destination EID
|
|
777
|
+
*/
|
|
778
|
+
eid_to_model_type: ({dst_eid}: {dst_eid: u32}, txnOptions?: {
|
|
779
|
+
/**
|
|
780
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
781
|
+
*/
|
|
782
|
+
fee?: number;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
786
|
+
*/
|
|
787
|
+
timeoutInSeconds?: number;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
791
|
+
*/
|
|
792
|
+
simulate?: boolean;
|
|
793
|
+
}) => Promise<AssembledTransaction<ModelType>>
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Construct and simulate a set_ttl_configs transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
797
|
+
* Sets TTL configs for instance and persistent storage.
|
|
798
|
+
*
|
|
799
|
+
* - `None` values remove the corresponding config (disables auto-extension for that type)
|
|
800
|
+
* - Validates that `threshold <= extend_to <= MAX_TTL`
|
|
801
|
+
*
|
|
802
|
+
* # Arguments
|
|
803
|
+
* - `instance` - TTL config for instance storage
|
|
804
|
+
* - `persistent` - TTL config for persistent storage
|
|
805
|
+
*
|
|
806
|
+
* # Panics
|
|
807
|
+
* - `TtlConfigFrozen` if configs are frozen
|
|
808
|
+
* - `InvalidTtlConfig` if validation fails
|
|
809
|
+
*/
|
|
810
|
+
set_ttl_configs: ({instance, persistent}: {instance: Option<TtlConfig>, persistent: Option<TtlConfig>}, txnOptions?: {
|
|
811
|
+
/**
|
|
812
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
813
|
+
*/
|
|
814
|
+
fee?: number;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
818
|
+
*/
|
|
819
|
+
timeoutInSeconds?: number;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
823
|
+
*/
|
|
824
|
+
simulate?: boolean;
|
|
825
|
+
}) => Promise<AssembledTransaction<null>>
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Construct and simulate a ttl_configs transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
829
|
+
* Returns the current TTL configs as (instance_config, persistent_config).
|
|
830
|
+
*/
|
|
831
|
+
ttl_configs: (txnOptions?: {
|
|
832
|
+
/**
|
|
833
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
834
|
+
*/
|
|
835
|
+
fee?: number;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
839
|
+
*/
|
|
840
|
+
timeoutInSeconds?: number;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
844
|
+
*/
|
|
845
|
+
simulate?: boolean;
|
|
846
|
+
}) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>>
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Construct and simulate a freeze_ttl_configs transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
850
|
+
* Permanently freezes TTL configs, preventing any future modifications.
|
|
851
|
+
*
|
|
852
|
+
* This is irreversible and provides immutability guarantees to users.
|
|
853
|
+
* Emits `TtlConfigsFrozen` event.
|
|
854
|
+
*
|
|
855
|
+
* # Panics
|
|
856
|
+
* - `TtlConfigAlreadyFrozen` if already frozen
|
|
857
|
+
*/
|
|
858
|
+
freeze_ttl_configs: (txnOptions?: {
|
|
859
|
+
/**
|
|
860
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
861
|
+
*/
|
|
862
|
+
fee?: number;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
866
|
+
*/
|
|
867
|
+
timeoutInSeconds?: number;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
871
|
+
*/
|
|
872
|
+
simulate?: boolean;
|
|
873
|
+
}) => Promise<AssembledTransaction<null>>
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Construct and simulate a is_ttl_configs_frozen transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
877
|
+
* Returns whether TTL configs are frozen.
|
|
878
|
+
*/
|
|
879
|
+
is_ttl_configs_frozen: (txnOptions?: {
|
|
880
|
+
/**
|
|
881
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
882
|
+
*/
|
|
883
|
+
fee?: number;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
887
|
+
*/
|
|
888
|
+
timeoutInSeconds?: number;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
892
|
+
*/
|
|
893
|
+
simulate?: boolean;
|
|
894
|
+
}) => Promise<AssembledTransaction<boolean>>
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Construct and simulate a extend_instance_ttl transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
898
|
+
* Extends the instance TTL.
|
|
899
|
+
*
|
|
900
|
+
* # Arguments
|
|
901
|
+
*
|
|
902
|
+
* * `threshold` - The threshold to extend the TTL (if current TTL is below this, extend).
|
|
903
|
+
* * `extend_to` - The TTL to extend to.
|
|
904
|
+
*/
|
|
905
|
+
extend_instance_ttl: ({threshold, extend_to}: {threshold: u32, extend_to: u32}, txnOptions?: {
|
|
906
|
+
/**
|
|
907
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
908
|
+
*/
|
|
909
|
+
fee?: number;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
913
|
+
*/
|
|
914
|
+
timeoutInSeconds?: number;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
918
|
+
*/
|
|
919
|
+
simulate?: boolean;
|
|
920
|
+
}) => Promise<AssembledTransaction<null>>
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Construct and simulate a owner transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
924
|
+
* Returns the current owner address, or None if no owner is set.
|
|
925
|
+
*/
|
|
926
|
+
owner: (txnOptions?: {
|
|
927
|
+
/**
|
|
928
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
929
|
+
*/
|
|
930
|
+
fee?: number;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
934
|
+
*/
|
|
935
|
+
timeoutInSeconds?: number;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
939
|
+
*/
|
|
940
|
+
simulate?: boolean;
|
|
941
|
+
}) => Promise<AssembledTransaction<Option<string>>>
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Construct and simulate a transfer_ownership transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
945
|
+
* Transfers ownership to a new address. Requires current owner authorization.
|
|
946
|
+
*/
|
|
947
|
+
transfer_ownership: ({new_owner}: {new_owner: string}, txnOptions?: {
|
|
948
|
+
/**
|
|
949
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
950
|
+
*/
|
|
951
|
+
fee?: number;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
955
|
+
*/
|
|
956
|
+
timeoutInSeconds?: number;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
960
|
+
*/
|
|
961
|
+
simulate?: boolean;
|
|
962
|
+
}) => Promise<AssembledTransaction<null>>
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Construct and simulate a renounce_ownership transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
966
|
+
* Permanently renounces ownership. Requires current owner authorization.
|
|
967
|
+
*/
|
|
968
|
+
renounce_ownership: (txnOptions?: {
|
|
969
|
+
/**
|
|
970
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
971
|
+
*/
|
|
972
|
+
fee?: number;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
976
|
+
*/
|
|
977
|
+
timeoutInSeconds?: number;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
981
|
+
*/
|
|
982
|
+
simulate?: boolean;
|
|
983
|
+
}) => Promise<AssembledTransaction<null>>
|
|
984
|
+
|
|
985
|
+
}
|
|
986
|
+
export class Client extends ContractClient {
|
|
987
|
+
static async deploy<T = Client>(
|
|
988
|
+
/** Constructor/Initialization Args for the contract's `__constructor` method */
|
|
989
|
+
{owner, price_updater}: {owner: string, price_updater: string},
|
|
990
|
+
/** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
|
|
991
|
+
options: MethodOptions &
|
|
992
|
+
Omit<ContractClientOptions, "contractId"> & {
|
|
993
|
+
/** The hash of the Wasm blob, which must already be installed on-chain. */
|
|
994
|
+
wasmHash: Buffer | string;
|
|
995
|
+
/** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
|
|
996
|
+
salt?: Buffer | Uint8Array;
|
|
997
|
+
/** The format used to decode `wasmHash`, if it's provided as a string. */
|
|
998
|
+
format?: "hex" | "base64";
|
|
999
|
+
}
|
|
1000
|
+
): Promise<AssembledTransaction<T>> {
|
|
1001
|
+
return ContractClient.deploy({owner, price_updater}, options)
|
|
1002
|
+
}
|
|
1003
|
+
constructor(public readonly options: ContractClientOptions) {
|
|
1004
|
+
super(
|
|
1005
|
+
new ContractSpec([ "AAAAAgAAAAAAAAAAAAAAEFByaWNlRmVlZFN0b3JhZ2UAAAAHAAAAAAAAAAAAAAAVUHJpY2VSYXRpb0Rlbm9taW5hdG9yAAAAAAAAAQAAAAAAAAAMUHJpY2VVcGRhdGVyAAAAAQAAABMAAAABAAAAAAAAABFEZWZhdWx0T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GluIGJhc2lzIHBvaW50cyAodXNlZCBpZiBubyBkc3Qtc3BlY2lmaWMgbXVsdGlwbGllcikuAAAAFmRlZmF1bHRfbXVsdGlwbGllcl9icHMAAAAAAAQAAAArRGVzdGluYXRpb24gZW5kcG9pbnQgSUQgKGNoYWluIGlkZW50aWZpZXIpLgAAAAAHZHN0X2VpZAAAAAAEAAAAI01pbmltdW0gZmVlIG1hcmdpbiBpbiBVU0QgKHNjYWxlZCkuAAAAABBmbG9vcl9tYXJnaW5fdXNkAAAACgAAARA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpEZXN0aW5hdGlvbi1TcGVjaWZpYyBDb25maWd1cmF0aW9uCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09CkdhcyBlc3RpbWF0ZSBmb3IgdmVyaWZpY2F0aW9uIG9uIGRlc3RpbmF0aW9uIGNoYWluLgAAAANnYXMAAAAACgAAAEZEZXN0aW5hdGlvbi1zcGVjaWZpYyBmZWUgbXVsdGlwbGllciBpbiBiYXNpcyBwb2ludHMgKDAgPSB1c2UgZGVmYXVsdCkuAAAAAAAObXVsdGlwbGllcl9icHMAAAAAAAQAAAALRFZOIG9wdGlvbnMAAAAAB29wdGlvbnMAAAAADgAAARA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpDb21tb24gQ29uZmlndXJhdGlvbgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpQcmljZSBmZWVkIGNvbnRyYWN0IGFkZHJlc3MgZm9yIGdhcyBwcmljZS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WluIGlkZW50aWZpZXIpLgAAAAAHZHN0X2VpZAAAAAAEAAAAI01pbmltdW0gZmVlIG1hcmdpbiBpbiBVU0QgKHNjYWxlZCkuAAAAABBmbG9vcl9tYXJnaW5fdXNkAAAACgAAADZCYXNlIGdhcyBmb3IgZWFjaCBsekNvbXBvc2UgY2FsbCBvbiBkZXN0aW5hdGlvbiBjaGFpbi4AAAAAABNsel9jb21wb3NlX2Jhc2VfZ2FzAAAAAAYAAAETPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KRGVzdGluYXRpb24tU3BlY2lmaWMgQ29uZmlndXJhdGlvbgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpCYXNlIGdhcyBmb3IgbHpSZWNlaXZlIGV4ZWN1dGlvbiBvbiBkZXN0aW5hdGlvbiBjaGFpbi4AAAAAE2x6X3JlY2VpdmVfYmFzZV9nYXMAAAAABgAAAEZEZXN0aW5hdGlvbi1zcGVjaWZpYyBmZWUgbXVsdGlwbGllciBpbiBiYXNpcyBwb2ludHMgKDAgPSB1c2UgZGVmYXVsdCkuAAAAAAAObXVsdGlwbGllcl9icHMAAAAAAAQAAAAsTWF4aW11bSBuYXRpdmUgdG9rZW4gdmFsdWUgdGhhdCBjYW4gYmUgc2VudC4AAAAKbmF0aXZlX2NhcAAAAAAACgAAAEZFbmNvZGVkIGV4ZWN1dG9yIG9wdGlvbnMgKGx6UmVjZWl2ZSBnYXMsIGx6Q29tcG9zZSwgbmF0aXZlRHJvcCwgZXRjLikuAAAAAAAHb3B0aW9ucwAAAAAOAAABED09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09CkNvbW1vbiBDb25maWd1cmF0aW9uCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClByaWNlIGZlZWQgY29udHJhY3QgYWRkcmVzcyBmb3IgZ2FzIHByaWNlIGFuZCBleGNoYW5nZSByYXRlIGRhdGEuAAAACnByaWNlX2ZlZWQAAAAAABMAAADlPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KTWVzc2FnZSBQYXJhbWV0ZXJzCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClRoZSBPQXBwIHNlbmRlciBhZGRyZXNzLgAAAAAAAAZzZW5kZXIAAAAAABM=",
|
|
1074
|
+
"AAAAAQAAAIRHYXMgcHJpY2UgaW5mb3JtYXRpb24gZm9yIGEgZGVzdGluYXRpb24gZW5kcG9pbnQuCgpDb250YWlucyB0aGUgZXhjaGFuZ2UgcmF0ZSBhbmQgZ2FzIGNvc3RzIG5lZWRlZCBmb3IgY3Jvc3MtY2hhaW4gZmVlIGNhbGN1bGF0aW9ucy4AAAAAAAAABVByaWNlAAAAAAAAAwAAADdHYXMgY29zdCBwZXIgYnl0ZSBvZiBjYWxsZGF0YSBvbiB0aGUgZGVzdGluYXRpb24gY2hhaW4uAAAAAAxnYXNfcGVyX2J5dGUAAAAEAAAAQkdhcyBwcmljZSBpbiB0aGUgc21hbGxlc3QgdW5pdCAod2VpIGZvciBFVk0sIHN0cm9vcHMgZm9yIFN0ZWxsYXIpLgAAAAAAEWdhc19wcmljZV9pbl91bml0AAAAAAAABgAAAKlQcmljZSByYXRpbyA9IChyZW1vdGUgbmF0aXZlIHRva2VuIHByaWNlIC8gbG9jYWwgbmF0aXZlIHRva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AAAAAABRTdXBwb3J0ZWRPcHRpb25UeXBlcwAAAAEAAAAEAAAAAAAAAAAAAAALTWVzc2FnZUxpYnMAAAAAAQAAAAAAAAAJQWxsb3dsaXN0AAAAAAAAAQAAABMAAAABAAAAAAAAAAhEZW55bGlzdAAAAAEAAAATAAAAAAAAAAAAAAANQWxsb3dsaXN0U2l6ZQAAAAAAAAAAAAAAAAAABkFkbWlucwAA" ]),
|
|
1077
|
+
options
|
|
1078
|
+
)
|
|
1079
|
+
}
|
|
1080
|
+
public readonly fromJSON = {
|
|
1081
|
+
upgrade: this.txFromJSON<null>,
|
|
1082
|
+
migrate: this.txFromJSON<null>,
|
|
1083
|
+
authorizer: this.txFromJSON<string>,
|
|
1084
|
+
estimate_fee_by_eid: this.txFromJSON<FeeEstimate>,
|
|
1085
|
+
native_token_price_usd: this.txFromJSON<u128>,
|
|
1086
|
+
get_price: this.txFromJSON<Option<Price>>,
|
|
1087
|
+
get_price_ratio_denominator: this.txFromJSON<u128>,
|
|
1088
|
+
set_price_updater: this.txFromJSON<null>,
|
|
1089
|
+
set_price_ratio_denominator: this.txFromJSON<null>,
|
|
1090
|
+
set_arbitrum_compression_percent: this.txFromJSON<null>,
|
|
1091
|
+
set_eid_to_model_type: this.txFromJSON<null>,
|
|
1092
|
+
set_price: this.txFromJSON<null>,
|
|
1093
|
+
set_price_for_arbitrum: this.txFromJSON<null>,
|
|
1094
|
+
set_native_token_price_usd: this.txFromJSON<null>,
|
|
1095
|
+
is_price_updater: this.txFromJSON<boolean>,
|
|
1096
|
+
arbitrum_compression_percent: this.txFromJSON<u128>,
|
|
1097
|
+
arbitrum_price_ext: this.txFromJSON<ArbitrumPriceExt>,
|
|
1098
|
+
eid_to_model_type: this.txFromJSON<ModelType>,
|
|
1099
|
+
set_ttl_configs: this.txFromJSON<null>,
|
|
1100
|
+
ttl_configs: this.txFromJSON<readonly [Option<TtlConfig>, Option<TtlConfig>]>,
|
|
1101
|
+
freeze_ttl_configs: this.txFromJSON<null>,
|
|
1102
|
+
is_ttl_configs_frozen: this.txFromJSON<boolean>,
|
|
1103
|
+
extend_instance_ttl: this.txFromJSON<null>,
|
|
1104
|
+
owner: this.txFromJSON<Option<string>>,
|
|
1105
|
+
transfer_ownership: this.txFromJSON<null>,
|
|
1106
|
+
renounce_ownership: this.txFromJSON<null>
|
|
1107
|
+
}
|
|
1108
|
+
}
|