@allbridge/bridge-core-sdk 3.15.4-alpha.1 → 3.16.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +4 -4
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +4 -4
- package/dist/src/services/bridge/srb/index.js +11 -10
- package/dist/src/services/bridge/srb/index.js.map +1 -1
- package/dist/src/services/bridge/utils.js +1 -1
- package/dist/src/services/bridge/utils.js.map +1 -1
- package/dist/src/services/liquidity-pool/srb/index.js +17 -14
- package/dist/src/services/liquidity-pool/srb/index.js.map +1 -1
- package/dist/src/services/models/srb/bridge-contract.d.ts +801 -0
- package/dist/src/services/models/srb/{bridge.js → bridge-contract.js} +49 -97
- package/dist/src/services/models/srb/bridge-contract.js.map +1 -0
- package/dist/src/services/models/srb/gas-oracle-contract.d.ts +350 -0
- package/dist/src/services/models/srb/gas-oracle-contract.js +87 -0
- package/dist/src/services/models/srb/gas-oracle-contract.js.map +1 -0
- package/dist/src/services/models/srb/messenger-contract.d.ts +573 -0
- package/dist/src/services/models/srb/messenger-contract.js +111 -0
- package/dist/src/services/models/srb/messenger-contract.js.map +1 -0
- package/dist/src/services/models/srb/pool-contract.d.ts +690 -0
- package/dist/src/services/models/srb/pool-contract.js +125 -0
- package/dist/src/services/models/srb/pool-contract.js.map +1 -0
- package/dist/src/services/models/srb/token-contract.d.ts +437 -160
- package/dist/src/services/models/srb/token-contract.js +41 -288
- package/dist/src/services/models/srb/token-contract.js.map +1 -1
- package/dist/src/services/models/srb/utils.d.ts +6 -0
- package/dist/src/services/models/srb/utils.js +35 -0
- package/dist/src/services/models/srb/utils.js.map +1 -0
- package/dist/src/services/token/srb/index.js +1 -1
- package/dist/src/services/token/srb/index.js.map +1 -1
- package/dist/src/utils/srb/index.d.ts +5 -6
- package/dist/src/utils/srb/index.js +1 -1
- package/dist/src/utils/srb/index.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +2 -2
- package/dist/src/services/models/srb/bridge.d.ts +0 -169
- package/dist/src/services/models/srb/bridge.js.map +0 -1
- package/dist/src/services/models/srb/pool.d.ts +0 -293
- package/dist/src/services/models/srb/pool.js +0 -233
- package/dist/src/services/models/srb/pool.js.map +0 -1
- package/dist/src/services/utils/srb/assembled-tx.d.ts +0 -73
- package/dist/src/services/utils/srb/assembled-tx.js +0 -143
- package/dist/src/services/utils/srb/assembled-tx.js.map +0 -1
- package/dist/src/services/utils/srb/build-tx.d.ts +0 -48
- package/dist/src/services/utils/srb/build-tx.js +0 -62
- package/dist/src/services/utils/srb/build-tx.js.map +0 -1
- package/dist/src/services/utils/srb/method-options.d.ts +0 -47
- package/dist/src/services/utils/srb/method-options.js +0 -5
- package/dist/src/services/utils/srb/method-options.js.map +0 -1
|
@@ -0,0 +1,801 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { contract } from "@stellar/stellar-sdk";
|
|
3
|
+
import u128 = contract.u128;
|
|
4
|
+
import u32 = contract.u32;
|
|
5
|
+
import u256 = contract.u256;
|
|
6
|
+
import AssembledTransaction = contract.AssembledTransaction;
|
|
7
|
+
import Result = contract.Result;
|
|
8
|
+
import Option = contract.Option;
|
|
9
|
+
import ContractClient = contract.Client;
|
|
10
|
+
import ContractClientOptions = contract.ClientOptions;
|
|
11
|
+
export interface Swapped {
|
|
12
|
+
receive_amount: u128;
|
|
13
|
+
receive_token: Buffer;
|
|
14
|
+
recipient: string;
|
|
15
|
+
send_amount: u128;
|
|
16
|
+
send_token: Buffer;
|
|
17
|
+
sender: string;
|
|
18
|
+
}
|
|
19
|
+
export interface TokensSent {
|
|
20
|
+
amount: u128;
|
|
21
|
+
destination_chain_id: u32;
|
|
22
|
+
nonce: u256;
|
|
23
|
+
receive_token: Buffer;
|
|
24
|
+
recipient: Buffer;
|
|
25
|
+
}
|
|
26
|
+
export interface TokensReceived {
|
|
27
|
+
amount: u128;
|
|
28
|
+
message: Buffer;
|
|
29
|
+
nonce: u256;
|
|
30
|
+
recipient: Buffer;
|
|
31
|
+
}
|
|
32
|
+
export interface ReceiveFee {
|
|
33
|
+
bridge_transaction_cost: u128;
|
|
34
|
+
extra_gas: u128;
|
|
35
|
+
message_transaction_cost: u128;
|
|
36
|
+
}
|
|
37
|
+
export interface BridgingFeeFromTokens {
|
|
38
|
+
fee_token_amount: u128;
|
|
39
|
+
gas: u128;
|
|
40
|
+
}
|
|
41
|
+
export interface AnotherBridge {
|
|
42
|
+
address: Buffer;
|
|
43
|
+
tokens: Map<Buffer, boolean>;
|
|
44
|
+
}
|
|
45
|
+
export interface Bridge {
|
|
46
|
+
/**
|
|
47
|
+
* precomputed values of the scaling factor required for paying the bridging fee with stable tokens
|
|
48
|
+
*/
|
|
49
|
+
bridging_fee_conversion_factor: Map<string, u128>;
|
|
50
|
+
can_swap: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* precomputed values to divide by to change the precision from the Gas Oracle precision to the token precision
|
|
53
|
+
*/
|
|
54
|
+
from_gas_oracle_factor: Map<string, u128>;
|
|
55
|
+
messenger: string;
|
|
56
|
+
pools: Map<Buffer, string>;
|
|
57
|
+
rebalancer: string;
|
|
58
|
+
}
|
|
59
|
+
export type DataKey = {
|
|
60
|
+
tag: "OtherBridge";
|
|
61
|
+
values: readonly [u32];
|
|
62
|
+
} | {
|
|
63
|
+
tag: "SentMessage";
|
|
64
|
+
values: readonly [Buffer];
|
|
65
|
+
} | {
|
|
66
|
+
tag: "ReceivedMessage";
|
|
67
|
+
values: readonly [Buffer];
|
|
68
|
+
};
|
|
69
|
+
export type Admin = readonly [string];
|
|
70
|
+
export type GasOracleAddress = readonly [string];
|
|
71
|
+
export type GasUsage = readonly [Map<u32, u128>];
|
|
72
|
+
export type NativeToken = readonly [string];
|
|
73
|
+
export type StopAuthority = readonly [string];
|
|
74
|
+
export declare const Errors: {
|
|
75
|
+
0: {
|
|
76
|
+
message: string;
|
|
77
|
+
};
|
|
78
|
+
1: {
|
|
79
|
+
message: string;
|
|
80
|
+
};
|
|
81
|
+
2: {
|
|
82
|
+
message: string;
|
|
83
|
+
};
|
|
84
|
+
3: {
|
|
85
|
+
message: string;
|
|
86
|
+
};
|
|
87
|
+
4: {
|
|
88
|
+
message: string;
|
|
89
|
+
};
|
|
90
|
+
5: {
|
|
91
|
+
message: string;
|
|
92
|
+
};
|
|
93
|
+
6: {
|
|
94
|
+
message: string;
|
|
95
|
+
};
|
|
96
|
+
7: {
|
|
97
|
+
message: string;
|
|
98
|
+
};
|
|
99
|
+
8: {
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
9: {
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
105
|
+
10: {
|
|
106
|
+
message: string;
|
|
107
|
+
};
|
|
108
|
+
11: {
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
12: {
|
|
112
|
+
message: string;
|
|
113
|
+
};
|
|
114
|
+
103: {
|
|
115
|
+
message: string;
|
|
116
|
+
};
|
|
117
|
+
104: {
|
|
118
|
+
message: string;
|
|
119
|
+
};
|
|
120
|
+
105: {
|
|
121
|
+
message: string;
|
|
122
|
+
};
|
|
123
|
+
106: {
|
|
124
|
+
message: string;
|
|
125
|
+
};
|
|
126
|
+
107: {
|
|
127
|
+
message: string;
|
|
128
|
+
};
|
|
129
|
+
108: {
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
132
|
+
109: {
|
|
133
|
+
message: string;
|
|
134
|
+
};
|
|
135
|
+
203: {
|
|
136
|
+
message: string;
|
|
137
|
+
};
|
|
138
|
+
204: {
|
|
139
|
+
message: string;
|
|
140
|
+
};
|
|
141
|
+
205: {
|
|
142
|
+
message: string;
|
|
143
|
+
};
|
|
144
|
+
206: {
|
|
145
|
+
message: string;
|
|
146
|
+
};
|
|
147
|
+
207: {
|
|
148
|
+
message: string;
|
|
149
|
+
};
|
|
150
|
+
208: {
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
|
+
209: {
|
|
154
|
+
message: string;
|
|
155
|
+
};
|
|
156
|
+
210: {
|
|
157
|
+
message: string;
|
|
158
|
+
};
|
|
159
|
+
211: {
|
|
160
|
+
message: string;
|
|
161
|
+
};
|
|
162
|
+
212: {
|
|
163
|
+
message: string;
|
|
164
|
+
};
|
|
165
|
+
214: {
|
|
166
|
+
message: string;
|
|
167
|
+
};
|
|
168
|
+
215: {
|
|
169
|
+
message: string;
|
|
170
|
+
};
|
|
171
|
+
216: {
|
|
172
|
+
message: string;
|
|
173
|
+
};
|
|
174
|
+
217: {
|
|
175
|
+
message: string;
|
|
176
|
+
};
|
|
177
|
+
218: {
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
180
|
+
300: {
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
183
|
+
301: {
|
|
184
|
+
message: string;
|
|
185
|
+
};
|
|
186
|
+
302: {
|
|
187
|
+
message: string;
|
|
188
|
+
};
|
|
189
|
+
303: {
|
|
190
|
+
message: string;
|
|
191
|
+
};
|
|
192
|
+
400: {
|
|
193
|
+
message: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
export interface BridgeContract {
|
|
197
|
+
/**
|
|
198
|
+
* Construct and simulate a initialize 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.
|
|
199
|
+
*/
|
|
200
|
+
initialize: ({ admin, messenger, gas_oracle, native_token, }: {
|
|
201
|
+
admin: string;
|
|
202
|
+
messenger: string;
|
|
203
|
+
gas_oracle: string;
|
|
204
|
+
native_token: string;
|
|
205
|
+
}, options?: {
|
|
206
|
+
/**
|
|
207
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
208
|
+
*/
|
|
209
|
+
fee?: number;
|
|
210
|
+
/**
|
|
211
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
212
|
+
*/
|
|
213
|
+
timeoutInSeconds?: number;
|
|
214
|
+
/**
|
|
215
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
216
|
+
*/
|
|
217
|
+
simulate?: boolean;
|
|
218
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
219
|
+
/**
|
|
220
|
+
* Construct and simulate a swap_and_bridge 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.
|
|
221
|
+
*/
|
|
222
|
+
swap_and_bridge: ({ sender, token, amount, recipient, destination_chain_id, receive_token, nonce, gas_amount, fee_token_amount, }: {
|
|
223
|
+
sender: string;
|
|
224
|
+
token: string;
|
|
225
|
+
amount: u128;
|
|
226
|
+
recipient: Buffer;
|
|
227
|
+
destination_chain_id: u32;
|
|
228
|
+
receive_token: Buffer;
|
|
229
|
+
nonce: u256;
|
|
230
|
+
gas_amount: u128;
|
|
231
|
+
fee_token_amount: u128;
|
|
232
|
+
}, options?: {
|
|
233
|
+
/**
|
|
234
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
235
|
+
*/
|
|
236
|
+
fee?: number;
|
|
237
|
+
/**
|
|
238
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
239
|
+
*/
|
|
240
|
+
timeoutInSeconds?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
243
|
+
*/
|
|
244
|
+
simulate?: boolean;
|
|
245
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
246
|
+
/**
|
|
247
|
+
* Construct and simulate a receive_tokens 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.
|
|
248
|
+
*/
|
|
249
|
+
receive_tokens: ({ sender, amount, recipient, source_chain_id, receive_token, nonce, receive_amount_min, extra_gas, }: {
|
|
250
|
+
sender: string;
|
|
251
|
+
amount: u128;
|
|
252
|
+
recipient: string;
|
|
253
|
+
source_chain_id: u32;
|
|
254
|
+
receive_token: Buffer;
|
|
255
|
+
nonce: u256;
|
|
256
|
+
receive_amount_min: u128;
|
|
257
|
+
extra_gas: Option<u128>;
|
|
258
|
+
}, options?: {
|
|
259
|
+
/**
|
|
260
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
261
|
+
*/
|
|
262
|
+
fee?: number;
|
|
263
|
+
/**
|
|
264
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
265
|
+
*/
|
|
266
|
+
timeoutInSeconds?: number;
|
|
267
|
+
/**
|
|
268
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
269
|
+
*/
|
|
270
|
+
simulate?: boolean;
|
|
271
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
272
|
+
/**
|
|
273
|
+
* Construct and simulate a swap 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.
|
|
274
|
+
*/
|
|
275
|
+
swap: ({ sender, amount, token, receive_token, recipient, receive_amount_min, }: {
|
|
276
|
+
sender: string;
|
|
277
|
+
amount: u128;
|
|
278
|
+
token: Buffer;
|
|
279
|
+
receive_token: Buffer;
|
|
280
|
+
recipient: string;
|
|
281
|
+
receive_amount_min: u128;
|
|
282
|
+
}, options?: {
|
|
283
|
+
/**
|
|
284
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
285
|
+
*/
|
|
286
|
+
fee?: number;
|
|
287
|
+
/**
|
|
288
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
289
|
+
*/
|
|
290
|
+
timeoutInSeconds?: number;
|
|
291
|
+
/**
|
|
292
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
293
|
+
*/
|
|
294
|
+
simulate?: boolean;
|
|
295
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
296
|
+
/**
|
|
297
|
+
* Construct and simulate a stop_swap 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.
|
|
298
|
+
*/
|
|
299
|
+
stop_swap: (options?: {
|
|
300
|
+
/**
|
|
301
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
302
|
+
*/
|
|
303
|
+
fee?: number;
|
|
304
|
+
/**
|
|
305
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
306
|
+
*/
|
|
307
|
+
timeoutInSeconds?: number;
|
|
308
|
+
/**
|
|
309
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
310
|
+
*/
|
|
311
|
+
simulate?: boolean;
|
|
312
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
313
|
+
/**
|
|
314
|
+
* Construct and simulate a start_swap 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.
|
|
315
|
+
*/
|
|
316
|
+
start_swap: (options?: {
|
|
317
|
+
/**
|
|
318
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
319
|
+
*/
|
|
320
|
+
fee?: number;
|
|
321
|
+
/**
|
|
322
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
323
|
+
*/
|
|
324
|
+
timeoutInSeconds?: number;
|
|
325
|
+
/**
|
|
326
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
327
|
+
*/
|
|
328
|
+
simulate?: boolean;
|
|
329
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
330
|
+
/**
|
|
331
|
+
* Construct and simulate a set_gas_oracle 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.
|
|
332
|
+
*/
|
|
333
|
+
set_gas_oracle: ({ new_address }: {
|
|
334
|
+
new_address: string;
|
|
335
|
+
}, options?: {
|
|
336
|
+
/**
|
|
337
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
338
|
+
*/
|
|
339
|
+
fee?: number;
|
|
340
|
+
/**
|
|
341
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
342
|
+
*/
|
|
343
|
+
timeoutInSeconds?: number;
|
|
344
|
+
/**
|
|
345
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
346
|
+
*/
|
|
347
|
+
simulate?: boolean;
|
|
348
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
349
|
+
/**
|
|
350
|
+
* Construct and simulate a set_stop_authority 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.
|
|
351
|
+
*/
|
|
352
|
+
set_stop_authority: ({ stop_authority }: {
|
|
353
|
+
stop_authority: string;
|
|
354
|
+
}, options?: {
|
|
355
|
+
/**
|
|
356
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
357
|
+
*/
|
|
358
|
+
fee?: number;
|
|
359
|
+
/**
|
|
360
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
361
|
+
*/
|
|
362
|
+
timeoutInSeconds?: number;
|
|
363
|
+
/**
|
|
364
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
365
|
+
*/
|
|
366
|
+
simulate?: boolean;
|
|
367
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
368
|
+
/**
|
|
369
|
+
* Construct and simulate a set_rebalancer 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.
|
|
370
|
+
*/
|
|
371
|
+
set_rebalancer: ({ rebalancer }: {
|
|
372
|
+
rebalancer: string;
|
|
373
|
+
}, options?: {
|
|
374
|
+
/**
|
|
375
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
376
|
+
*/
|
|
377
|
+
fee?: number;
|
|
378
|
+
/**
|
|
379
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
380
|
+
*/
|
|
381
|
+
timeoutInSeconds?: number;
|
|
382
|
+
/**
|
|
383
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
384
|
+
*/
|
|
385
|
+
simulate?: boolean;
|
|
386
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
387
|
+
/**
|
|
388
|
+
* Construct and simulate a set_messenger 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.
|
|
389
|
+
*/
|
|
390
|
+
set_messenger: ({ messenger }: {
|
|
391
|
+
messenger: string;
|
|
392
|
+
}, options?: {
|
|
393
|
+
/**
|
|
394
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
395
|
+
*/
|
|
396
|
+
fee?: number;
|
|
397
|
+
/**
|
|
398
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
399
|
+
*/
|
|
400
|
+
timeoutInSeconds?: number;
|
|
401
|
+
/**
|
|
402
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
403
|
+
*/
|
|
404
|
+
simulate?: boolean;
|
|
405
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
406
|
+
/**
|
|
407
|
+
* Construct and simulate a set_gas_usage 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.
|
|
408
|
+
*/
|
|
409
|
+
set_gas_usage: ({ chain_id, gas_usage }: {
|
|
410
|
+
chain_id: u32;
|
|
411
|
+
gas_usage: u128;
|
|
412
|
+
}, options?: {
|
|
413
|
+
/**
|
|
414
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
415
|
+
*/
|
|
416
|
+
fee?: number;
|
|
417
|
+
/**
|
|
418
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
419
|
+
*/
|
|
420
|
+
timeoutInSeconds?: number;
|
|
421
|
+
/**
|
|
422
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
423
|
+
*/
|
|
424
|
+
simulate?: boolean;
|
|
425
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
426
|
+
/**
|
|
427
|
+
* Construct and simulate a register_bridge 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.
|
|
428
|
+
*/
|
|
429
|
+
register_bridge: ({ chain_id, bridge_address }: {
|
|
430
|
+
chain_id: u32;
|
|
431
|
+
bridge_address: Buffer;
|
|
432
|
+
}, options?: {
|
|
433
|
+
/**
|
|
434
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
435
|
+
*/
|
|
436
|
+
fee?: number;
|
|
437
|
+
/**
|
|
438
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
439
|
+
*/
|
|
440
|
+
timeoutInSeconds?: number;
|
|
441
|
+
/**
|
|
442
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
443
|
+
*/
|
|
444
|
+
simulate?: boolean;
|
|
445
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
446
|
+
/**
|
|
447
|
+
* Construct and simulate a add_bridge_token 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.
|
|
448
|
+
*/
|
|
449
|
+
add_bridge_token: ({ chain_id, token_address }: {
|
|
450
|
+
chain_id: u32;
|
|
451
|
+
token_address: Buffer;
|
|
452
|
+
}, options?: {
|
|
453
|
+
/**
|
|
454
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
455
|
+
*/
|
|
456
|
+
fee?: number;
|
|
457
|
+
/**
|
|
458
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
459
|
+
*/
|
|
460
|
+
timeoutInSeconds?: number;
|
|
461
|
+
/**
|
|
462
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
463
|
+
*/
|
|
464
|
+
simulate?: boolean;
|
|
465
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
466
|
+
/**
|
|
467
|
+
* Construct and simulate a remove_bridge_token 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.
|
|
468
|
+
*/
|
|
469
|
+
remove_bridge_token: ({ chain_id, token_address }: {
|
|
470
|
+
chain_id: u32;
|
|
471
|
+
token_address: Buffer;
|
|
472
|
+
}, options?: {
|
|
473
|
+
/**
|
|
474
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
475
|
+
*/
|
|
476
|
+
fee?: number;
|
|
477
|
+
/**
|
|
478
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
479
|
+
*/
|
|
480
|
+
timeoutInSeconds?: number;
|
|
481
|
+
/**
|
|
482
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
483
|
+
*/
|
|
484
|
+
simulate?: boolean;
|
|
485
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
486
|
+
/**
|
|
487
|
+
* Construct and simulate a add_pool 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.
|
|
488
|
+
*/
|
|
489
|
+
add_pool: ({ pool, token }: {
|
|
490
|
+
pool: string;
|
|
491
|
+
token: string;
|
|
492
|
+
}, options?: {
|
|
493
|
+
/**
|
|
494
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
495
|
+
*/
|
|
496
|
+
fee?: number;
|
|
497
|
+
/**
|
|
498
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
499
|
+
*/
|
|
500
|
+
timeoutInSeconds?: number;
|
|
501
|
+
/**
|
|
502
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
503
|
+
*/
|
|
504
|
+
simulate?: boolean;
|
|
505
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
506
|
+
/**
|
|
507
|
+
* Construct and simulate a withdraw_gas_tokens 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.
|
|
508
|
+
*/
|
|
509
|
+
withdraw_gas_tokens: ({ sender, amount }: {
|
|
510
|
+
sender: string;
|
|
511
|
+
amount: u128;
|
|
512
|
+
}, options?: {
|
|
513
|
+
/**
|
|
514
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
515
|
+
*/
|
|
516
|
+
fee?: number;
|
|
517
|
+
/**
|
|
518
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
519
|
+
*/
|
|
520
|
+
timeoutInSeconds?: number;
|
|
521
|
+
/**
|
|
522
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
523
|
+
*/
|
|
524
|
+
simulate?: boolean;
|
|
525
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
526
|
+
/**
|
|
527
|
+
* Construct and simulate a withdraw_bridging_fee_in_tokens 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.
|
|
528
|
+
*/
|
|
529
|
+
withdraw_bridging_fee_in_tokens: ({ sender, token_address }: {
|
|
530
|
+
sender: string;
|
|
531
|
+
token_address: string;
|
|
532
|
+
}, options?: {
|
|
533
|
+
/**
|
|
534
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
535
|
+
*/
|
|
536
|
+
fee?: number;
|
|
537
|
+
/**
|
|
538
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
539
|
+
*/
|
|
540
|
+
timeoutInSeconds?: number;
|
|
541
|
+
/**
|
|
542
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
543
|
+
*/
|
|
544
|
+
simulate?: boolean;
|
|
545
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
546
|
+
/**
|
|
547
|
+
* Construct and simulate a has_processed_message 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.
|
|
548
|
+
*/
|
|
549
|
+
has_processed_message: ({ message }: {
|
|
550
|
+
message: Buffer;
|
|
551
|
+
}, options?: {
|
|
552
|
+
/**
|
|
553
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
554
|
+
*/
|
|
555
|
+
fee?: number;
|
|
556
|
+
/**
|
|
557
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
558
|
+
*/
|
|
559
|
+
timeoutInSeconds?: number;
|
|
560
|
+
/**
|
|
561
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
562
|
+
*/
|
|
563
|
+
simulate?: boolean;
|
|
564
|
+
}) => Promise<AssembledTransaction<Result<boolean>>>;
|
|
565
|
+
/**
|
|
566
|
+
* Construct and simulate a has_received_message 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.
|
|
567
|
+
*/
|
|
568
|
+
has_received_message: ({ message }: {
|
|
569
|
+
message: Buffer;
|
|
570
|
+
}, options?: {
|
|
571
|
+
/**
|
|
572
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
573
|
+
*/
|
|
574
|
+
fee?: number;
|
|
575
|
+
/**
|
|
576
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
577
|
+
*/
|
|
578
|
+
timeoutInSeconds?: number;
|
|
579
|
+
/**
|
|
580
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
581
|
+
*/
|
|
582
|
+
simulate?: boolean;
|
|
583
|
+
}) => Promise<AssembledTransaction<Result<boolean>>>;
|
|
584
|
+
/**
|
|
585
|
+
* Construct and simulate a get_pool_address 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.
|
|
586
|
+
*/
|
|
587
|
+
get_pool_address: ({ token_address }: {
|
|
588
|
+
token_address: Buffer;
|
|
589
|
+
}, options?: {
|
|
590
|
+
/**
|
|
591
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
592
|
+
*/
|
|
593
|
+
fee?: number;
|
|
594
|
+
/**
|
|
595
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
596
|
+
*/
|
|
597
|
+
timeoutInSeconds?: number;
|
|
598
|
+
/**
|
|
599
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
600
|
+
*/
|
|
601
|
+
simulate?: boolean;
|
|
602
|
+
}) => Promise<AssembledTransaction<Result<string>>>;
|
|
603
|
+
/**
|
|
604
|
+
* Construct and simulate a get_config 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
|
+
*/
|
|
606
|
+
get_config: (options?: {
|
|
607
|
+
/**
|
|
608
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
609
|
+
*/
|
|
610
|
+
fee?: number;
|
|
611
|
+
/**
|
|
612
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
613
|
+
*/
|
|
614
|
+
timeoutInSeconds?: number;
|
|
615
|
+
/**
|
|
616
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
617
|
+
*/
|
|
618
|
+
simulate?: boolean;
|
|
619
|
+
}) => Promise<AssembledTransaction<Result<Bridge>>>;
|
|
620
|
+
/**
|
|
621
|
+
* Construct and simulate a get_stop_authority 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.
|
|
622
|
+
*/
|
|
623
|
+
get_stop_authority: (options?: {
|
|
624
|
+
/**
|
|
625
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
626
|
+
*/
|
|
627
|
+
fee?: number;
|
|
628
|
+
/**
|
|
629
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
630
|
+
*/
|
|
631
|
+
timeoutInSeconds?: number;
|
|
632
|
+
/**
|
|
633
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
634
|
+
*/
|
|
635
|
+
simulate?: boolean;
|
|
636
|
+
}) => Promise<AssembledTransaction<Result<string>>>;
|
|
637
|
+
/**
|
|
638
|
+
* Construct and simulate a get_transaction_cost 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.
|
|
639
|
+
*/
|
|
640
|
+
get_transaction_cost: ({ chain_id }: {
|
|
641
|
+
chain_id: u32;
|
|
642
|
+
}, options?: {
|
|
643
|
+
/**
|
|
644
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
645
|
+
*/
|
|
646
|
+
fee?: number;
|
|
647
|
+
/**
|
|
648
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
649
|
+
*/
|
|
650
|
+
timeoutInSeconds?: number;
|
|
651
|
+
/**
|
|
652
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
653
|
+
*/
|
|
654
|
+
simulate?: boolean;
|
|
655
|
+
}) => Promise<AssembledTransaction<Result<u128>>>;
|
|
656
|
+
/**
|
|
657
|
+
* Construct and simulate a get_gas_usage 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.
|
|
658
|
+
*/
|
|
659
|
+
get_gas_usage: ({ chain_id }: {
|
|
660
|
+
chain_id: u32;
|
|
661
|
+
}, options?: {
|
|
662
|
+
/**
|
|
663
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
664
|
+
*/
|
|
665
|
+
fee?: number;
|
|
666
|
+
/**
|
|
667
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
668
|
+
*/
|
|
669
|
+
timeoutInSeconds?: number;
|
|
670
|
+
/**
|
|
671
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
672
|
+
*/
|
|
673
|
+
simulate?: boolean;
|
|
674
|
+
}) => Promise<AssembledTransaction<Result<u128>>>;
|
|
675
|
+
/**
|
|
676
|
+
* Construct and simulate a get_admin 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.
|
|
677
|
+
*/
|
|
678
|
+
get_admin: (options?: {
|
|
679
|
+
/**
|
|
680
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
681
|
+
*/
|
|
682
|
+
fee?: number;
|
|
683
|
+
/**
|
|
684
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
685
|
+
*/
|
|
686
|
+
timeoutInSeconds?: number;
|
|
687
|
+
/**
|
|
688
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
689
|
+
*/
|
|
690
|
+
simulate?: boolean;
|
|
691
|
+
}) => Promise<AssembledTransaction<Result<string>>>;
|
|
692
|
+
/**
|
|
693
|
+
* Construct and simulate a get_gas_oracle 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.
|
|
694
|
+
*/
|
|
695
|
+
get_gas_oracle: (options?: {
|
|
696
|
+
/**
|
|
697
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
698
|
+
*/
|
|
699
|
+
fee?: number;
|
|
700
|
+
/**
|
|
701
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
702
|
+
*/
|
|
703
|
+
timeoutInSeconds?: number;
|
|
704
|
+
/**
|
|
705
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
706
|
+
*/
|
|
707
|
+
simulate?: boolean;
|
|
708
|
+
}) => Promise<AssembledTransaction<Result<string>>>;
|
|
709
|
+
/**
|
|
710
|
+
* Construct and simulate a get_another_bridge 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.
|
|
711
|
+
*/
|
|
712
|
+
get_another_bridge: ({ chain_id }: {
|
|
713
|
+
chain_id: u32;
|
|
714
|
+
}, options?: {
|
|
715
|
+
/**
|
|
716
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
717
|
+
*/
|
|
718
|
+
fee?: number;
|
|
719
|
+
/**
|
|
720
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
721
|
+
*/
|
|
722
|
+
timeoutInSeconds?: number;
|
|
723
|
+
/**
|
|
724
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
725
|
+
*/
|
|
726
|
+
simulate?: boolean;
|
|
727
|
+
}) => Promise<AssembledTransaction<Result<AnotherBridge>>>;
|
|
728
|
+
/**
|
|
729
|
+
* Construct and simulate a set_admin 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.
|
|
730
|
+
*/
|
|
731
|
+
set_admin: ({ new_admin }: {
|
|
732
|
+
new_admin: string;
|
|
733
|
+
}, options?: {
|
|
734
|
+
/**
|
|
735
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
736
|
+
*/
|
|
737
|
+
fee?: number;
|
|
738
|
+
/**
|
|
739
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
740
|
+
*/
|
|
741
|
+
timeoutInSeconds?: number;
|
|
742
|
+
/**
|
|
743
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
744
|
+
*/
|
|
745
|
+
simulate?: boolean;
|
|
746
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
747
|
+
/**
|
|
748
|
+
* 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.
|
|
749
|
+
*/
|
|
750
|
+
upgrade: ({ new_wasm_hash }: {
|
|
751
|
+
new_wasm_hash: Buffer;
|
|
752
|
+
}, options?: {
|
|
753
|
+
/**
|
|
754
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
755
|
+
*/
|
|
756
|
+
fee?: number;
|
|
757
|
+
/**
|
|
758
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
759
|
+
*/
|
|
760
|
+
timeoutInSeconds?: number;
|
|
761
|
+
/**
|
|
762
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
763
|
+
*/
|
|
764
|
+
simulate?: boolean;
|
|
765
|
+
}) => Promise<AssembledTransaction<Result<void>>>;
|
|
766
|
+
}
|
|
767
|
+
export declare class BridgeContract extends ContractClient {
|
|
768
|
+
readonly options: ContractClientOptions;
|
|
769
|
+
constructor(options: ContractClientOptions);
|
|
770
|
+
readonly fromJSON: {
|
|
771
|
+
initialize: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
772
|
+
swap_and_bridge: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
773
|
+
receive_tokens: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
774
|
+
swap: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
775
|
+
stop_swap: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
776
|
+
start_swap: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
777
|
+
set_gas_oracle: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
778
|
+
set_stop_authority: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
779
|
+
set_rebalancer: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
780
|
+
set_messenger: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
781
|
+
set_gas_usage: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
782
|
+
register_bridge: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
783
|
+
add_bridge_token: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
784
|
+
remove_bridge_token: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
785
|
+
add_pool: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
786
|
+
withdraw_gas_tokens: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
787
|
+
withdraw_bridging_fee_in_tokens: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
788
|
+
has_processed_message: (json: string) => contract.AssembledTransaction<contract.Result<boolean, contract.ErrorMessage>>;
|
|
789
|
+
has_received_message: (json: string) => contract.AssembledTransaction<contract.Result<boolean, contract.ErrorMessage>>;
|
|
790
|
+
get_pool_address: (json: string) => contract.AssembledTransaction<contract.Result<string, contract.ErrorMessage>>;
|
|
791
|
+
get_config: (json: string) => contract.AssembledTransaction<contract.Result<Bridge, contract.ErrorMessage>>;
|
|
792
|
+
get_stop_authority: (json: string) => contract.AssembledTransaction<contract.Result<string, contract.ErrorMessage>>;
|
|
793
|
+
get_transaction_cost: (json: string) => contract.AssembledTransaction<contract.Result<bigint, contract.ErrorMessage>>;
|
|
794
|
+
get_gas_usage: (json: string) => contract.AssembledTransaction<contract.Result<bigint, contract.ErrorMessage>>;
|
|
795
|
+
get_admin: (json: string) => contract.AssembledTransaction<contract.Result<string, contract.ErrorMessage>>;
|
|
796
|
+
get_gas_oracle: (json: string) => contract.AssembledTransaction<contract.Result<string, contract.ErrorMessage>>;
|
|
797
|
+
get_another_bridge: (json: string) => contract.AssembledTransaction<contract.Result<AnotherBridge, contract.ErrorMessage>>;
|
|
798
|
+
set_admin: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
799
|
+
upgrade: (json: string) => contract.AssembledTransaction<contract.Result<void, contract.ErrorMessage>>;
|
|
800
|
+
};
|
|
801
|
+
}
|