@allbridge/bridge-core-sdk 3.26.0 → 3.27.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.
Files changed (65) hide show
  1. package/dist/browser/index.js +6 -1
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/cjs/index.js +6 -1
  4. package/dist/cjs/index.js.map +4 -4
  5. package/dist/esm/index.js +6 -1
  6. package/dist/esm/index.js.map +4 -4
  7. package/dist/src/chains/chain.enums.d.ts +7 -2
  8. package/dist/src/chains/chain.enums.js +5 -0
  9. package/dist/src/chains/chain.enums.js.map +1 -1
  10. package/dist/src/chains/index.js +6 -0
  11. package/dist/src/chains/index.js.map +1 -1
  12. package/dist/src/client/core-api/core-api-mapper.js +1 -0
  13. package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
  14. package/dist/src/client/core-api/core-api.model.d.ts +1 -0
  15. package/dist/src/client/core-api/core-api.model.js.map +1 -1
  16. package/dist/src/services/bridge/alg/index.d.ts +15 -0
  17. package/dist/src/services/bridge/alg/index.js +157 -0
  18. package/dist/src/services/bridge/alg/index.js.map +1 -0
  19. package/dist/src/services/bridge/index.js +16 -0
  20. package/dist/src/services/bridge/index.js.map +1 -1
  21. package/dist/src/services/bridge/models/bridge.model.d.ts +1 -0
  22. package/dist/src/services/bridge/models/bridge.model.js.map +1 -1
  23. package/dist/src/services/bridge/sui/index.js.map +1 -1
  24. package/dist/src/services/bridge/utils.d.ts +3 -1
  25. package/dist/src/services/bridge/utils.js +72 -15
  26. package/dist/src/services/bridge/utils.js.map +1 -1
  27. package/dist/src/services/liquidity-pool/alg/index.d.ts +19 -0
  28. package/dist/src/services/liquidity-pool/alg/index.js +141 -0
  29. package/dist/src/services/liquidity-pool/alg/index.js.map +1 -0
  30. package/dist/src/services/liquidity-pool/index.js +16 -0
  31. package/dist/src/services/liquidity-pool/index.js.map +1 -1
  32. package/dist/src/services/liquidity-pool/sui/index.js.map +1 -1
  33. package/dist/src/services/liquidity-pool/trx/index.js.map +1 -1
  34. package/dist/src/services/models/alg/BridgeClient.d.ts +2718 -0
  35. package/dist/src/services/models/alg/BridgeClient.js +2633 -0
  36. package/dist/src/services/models/alg/BridgeClient.js.map +1 -0
  37. package/dist/src/services/models/alg/PoolClient.d.ts +2265 -0
  38. package/dist/src/services/models/alg/PoolClient.js +2176 -0
  39. package/dist/src/services/models/alg/PoolClient.js.map +1 -0
  40. package/dist/src/services/models/index.d.ts +6 -5
  41. package/dist/src/services/models/index.js.map +1 -1
  42. package/dist/src/services/token/alg/index.d.ts +17 -0
  43. package/dist/src/services/token/alg/index.js +46 -0
  44. package/dist/src/services/token/alg/index.js.map +1 -0
  45. package/dist/src/services/token/index.js +16 -0
  46. package/dist/src/services/token/index.js.map +1 -1
  47. package/dist/src/services/token/sui/index.js.map +1 -1
  48. package/dist/src/services/utils/alg/index.d.ts +18 -0
  49. package/dist/src/services/utils/alg/index.js +94 -0
  50. package/dist/src/services/utils/alg/index.js.map +1 -0
  51. package/dist/src/services/utils/trx/index.js.map +1 -1
  52. package/dist/src/services/yield/index.js +4 -0
  53. package/dist/src/services/yield/index.js.map +1 -1
  54. package/dist/src/tokens-info/tokens-info.model.d.ts +4 -0
  55. package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
  56. package/dist/src/utils/alg/index.d.ts +21 -0
  57. package/dist/src/utils/alg/index.js +67 -0
  58. package/dist/src/utils/alg/index.js.map +1 -0
  59. package/dist/src/utils/index.d.ts +3 -0
  60. package/dist/src/utils/index.js +3 -0
  61. package/dist/src/utils/index.js.map +1 -1
  62. package/dist/src/version.d.ts +1 -1
  63. package/dist/src/version.js +1 -1
  64. package/dist/src/version.js.map +1 -1
  65. package/package.json +5 -2
@@ -0,0 +1,2718 @@
1
+ /**
2
+ * This file was automatically generated by @algorandfoundation/algokit-client-generator.
3
+ * DO NOT MODIFY IT BY HAND.
4
+ * requires: @algorandfoundation/algokit-utils: ^7
5
+ */
6
+ import { type AlgorandClient } from "@algorandfoundation/algokit-utils/types/algorand-client";
7
+ import { ABIReturn } from "@algorandfoundation/algokit-utils/types/app";
8
+ import { Arc56Contract } from "@algorandfoundation/algokit-utils/types/app-arc56";
9
+ import { AppClient as _AppClient, AppClientMethodCallParams, AppClientParams, AppClientBareCallParams, CallOnComplete, AppClientCompilationParams, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from "@algorandfoundation/algokit-utils/types/app-client";
10
+ import { AppFactory as _AppFactory, AppFactoryAppClientParams, AppFactoryResolveAppClientByCreatorAndNameParams, AppFactoryDeployParams, AppFactoryParams, CreateSchema } from "@algorandfoundation/algokit-utils/types/app-factory";
11
+ import { TransactionComposer, AppCallMethodCall, AppMethodCallTransactionArgument, RawSimulateOptions, SkipSignaturesSimulateOptions } from "@algorandfoundation/algokit-utils/types/composer";
12
+ import { SendParams, SendAtomicTransactionComposerResults } from "@algorandfoundation/algokit-utils/types/transaction";
13
+ import { Address, modelsv2, OnApplicationComplete, Transaction, TransactionSigner } from "algosdk";
14
+ export declare const APP_SPEC: Arc56Contract;
15
+ /**
16
+ * A state record containing binary data
17
+ */
18
+ export interface BinaryState {
19
+ /**
20
+ * Gets the state value as a Uint8Array
21
+ */
22
+ asByteArray(): Uint8Array | undefined;
23
+ /**
24
+ * Gets the state value as a string
25
+ */
26
+ asString(): string | undefined;
27
+ }
28
+ /**
29
+ * Expands types for IntelliSense so they are more human readable
30
+ * See https://stackoverflow.com/a/69288824
31
+ */
32
+ export type Expand<T> = T extends (...args: infer A) => infer R ? (...args: Expand<A>) => Expand<R> : T extends infer O ? {
33
+ [K in keyof O]: O[K];
34
+ } : never;
35
+ /**
36
+ * The argument types for the Bridge contract
37
+ */
38
+ export type BridgeArgs = {
39
+ /**
40
+ * The object representation of the arguments for each method
41
+ */
42
+ obj: {
43
+ "createApplication(address,byte,application,application)void": {
44
+ owner: string;
45
+ chainId: number;
46
+ messenger: bigint;
47
+ gasOracle: bigint;
48
+ };
49
+ "optInAsset(uint64)void": {
50
+ assetId: bigint | number;
51
+ };
52
+ "noop()void": Record<string, never>;
53
+ "swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void": {
54
+ tokenId: bigint | number;
55
+ recipient: Uint8Array;
56
+ destinationChainId: number;
57
+ receiveToken: Uint8Array;
58
+ nonce: Uint8Array;
59
+ feeTokenAmount?: bigint | number;
60
+ };
61
+ "receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void": {
62
+ amount: bigint | number;
63
+ recipient: Uint8Array;
64
+ sourceChainId: number;
65
+ receiveToken: Uint8Array;
66
+ nonce: Uint8Array;
67
+ receiveAmountMin: bigint | number;
68
+ };
69
+ "registerBridge(byte,byte[32])void": {
70
+ chainId: number;
71
+ bridgeAddress: Uint8Array;
72
+ };
73
+ "addBridgeToken(byte,byte[32])void": {
74
+ chainId: number;
75
+ tokenAddress: Uint8Array;
76
+ };
77
+ "removeBridgeToken(byte,byte[32])void": {
78
+ chainId: number;
79
+ tokenAddress: Uint8Array;
80
+ };
81
+ "withdrawGasTokens(uint64)void": {
82
+ amount: bigint | number;
83
+ };
84
+ "withdrawBridgingFeeInTokens(uint64)void": {
85
+ assetId: bigint | number;
86
+ };
87
+ "getBridgingCostInTokens(byte,uint64)uint64": {
88
+ destinationChainId: number;
89
+ tokenId: bigint | number;
90
+ };
91
+ "hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]": {
92
+ amount: bigint | number;
93
+ recipient: Uint8Array;
94
+ sourceChainId: number;
95
+ destinationChainId: number;
96
+ receiveToken: Uint8Array;
97
+ nonce: Uint8Array;
98
+ };
99
+ "isOtherBridgeTokenSupported(byte,byte[32])bool": {
100
+ chainId: number;
101
+ token: Uint8Array;
102
+ };
103
+ "getTransactionCost(byte)uint64": {
104
+ chainId: number;
105
+ };
106
+ "getReceiveTokensCost()uint64": Record<string, never>;
107
+ "getSendTransactionStorageCost()uint64": Record<string, never>;
108
+ "swap(uint64,uint64,address,uint64)void": {
109
+ /**
110
+ * The token to be swapped.
111
+ */
112
+ tokenId: bigint | number;
113
+ /**
114
+ * The token to receive in exchange for the swapped token.
115
+ */
116
+ receiveTokenId: bigint | number;
117
+ /**
118
+ * The address to receive the tokens.
119
+ */
120
+ recipient: string;
121
+ /**
122
+ * The minimum amount of tokens required to receive during the swap.
123
+ */
124
+ receiveAmountMin: bigint | number;
125
+ };
126
+ "addPool(uint64,uint64)void": {
127
+ /**
128
+ * The address of the `Pool` contract.
129
+ */
130
+ poolId: bigint | number;
131
+ /**
132
+ * The address of the token in the liquidity pool.
133
+ */
134
+ tokenId: bigint | number;
135
+ };
136
+ "removePool(uint64)void": {
137
+ tokenId: bigint | number;
138
+ };
139
+ "stopSwap()void": Record<string, never>;
140
+ "startSwap()void": Record<string, never>;
141
+ "setStopAuthority(address)void": {
142
+ stopAuthority: string;
143
+ };
144
+ "setRebalancer(address)void": {
145
+ rebalancer: string;
146
+ };
147
+ "getGasUsage(byte)uint64": {
148
+ chainId: number;
149
+ };
150
+ "setGasUsage(byte,uint64)void": {
151
+ chainId: number;
152
+ gasAmount: bigint | number;
153
+ };
154
+ "setGasOracle(application)void": {
155
+ gasOracle: bigint;
156
+ };
157
+ "getTransactionRelayerCost(byte)uint64": {
158
+ chainId: number;
159
+ };
160
+ "transferOwnership(address)void": {
161
+ newOwner: string;
162
+ };
163
+ };
164
+ /**
165
+ * The tuple representation of the arguments for each method
166
+ */
167
+ tuple: {
168
+ "createApplication(address,byte,application,application)void": [
169
+ owner: string,
170
+ chainId: number,
171
+ messenger: bigint,
172
+ gasOracle: bigint
173
+ ];
174
+ "optInAsset(uint64)void": [assetId: bigint | number];
175
+ "noop()void": [];
176
+ "swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void": [
177
+ tokenId: bigint | number,
178
+ recipient: Uint8Array,
179
+ destinationChainId: number,
180
+ receiveToken: Uint8Array,
181
+ nonce: Uint8Array,
182
+ feeTokenAmount: bigint | number | undefined
183
+ ];
184
+ "receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void": [
185
+ amount: bigint | number,
186
+ recipient: Uint8Array,
187
+ sourceChainId: number,
188
+ receiveToken: Uint8Array,
189
+ nonce: Uint8Array,
190
+ receiveAmountMin: bigint | number
191
+ ];
192
+ "registerBridge(byte,byte[32])void": [chainId: number, bridgeAddress: Uint8Array];
193
+ "addBridgeToken(byte,byte[32])void": [chainId: number, tokenAddress: Uint8Array];
194
+ "removeBridgeToken(byte,byte[32])void": [chainId: number, tokenAddress: Uint8Array];
195
+ "withdrawGasTokens(uint64)void": [amount: bigint | number];
196
+ "withdrawBridgingFeeInTokens(uint64)void": [assetId: bigint | number];
197
+ "getBridgingCostInTokens(byte,uint64)uint64": [destinationChainId: number, tokenId: bigint | number];
198
+ "hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]": [
199
+ amount: bigint | number,
200
+ recipient: Uint8Array,
201
+ sourceChainId: number,
202
+ destinationChainId: number,
203
+ receiveToken: Uint8Array,
204
+ nonce: Uint8Array
205
+ ];
206
+ "isOtherBridgeTokenSupported(byte,byte[32])bool": [chainId: number, token: Uint8Array];
207
+ "getTransactionCost(byte)uint64": [chainId: number];
208
+ "getReceiveTokensCost()uint64": [];
209
+ "getSendTransactionStorageCost()uint64": [];
210
+ "swap(uint64,uint64,address,uint64)void": [
211
+ tokenId: bigint | number,
212
+ receiveTokenId: bigint | number,
213
+ recipient: string,
214
+ receiveAmountMin: bigint | number
215
+ ];
216
+ "addPool(uint64,uint64)void": [poolId: bigint | number, tokenId: bigint | number];
217
+ "removePool(uint64)void": [tokenId: bigint | number];
218
+ "stopSwap()void": [];
219
+ "startSwap()void": [];
220
+ "setStopAuthority(address)void": [stopAuthority: string];
221
+ "setRebalancer(address)void": [rebalancer: string];
222
+ "getGasUsage(byte)uint64": [chainId: number];
223
+ "setGasUsage(byte,uint64)void": [chainId: number, gasAmount: bigint | number];
224
+ "setGasOracle(application)void": [gasOracle: bigint];
225
+ "getTransactionRelayerCost(byte)uint64": [chainId: number];
226
+ "transferOwnership(address)void": [newOwner: string];
227
+ };
228
+ };
229
+ /**
230
+ * The return type for each method
231
+ */
232
+ export type BridgeReturns = {
233
+ "createApplication(address,byte,application,application)void": void;
234
+ "optInAsset(uint64)void": void;
235
+ "noop()void": void;
236
+ "swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void": void;
237
+ "receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void": void;
238
+ "registerBridge(byte,byte[32])void": void;
239
+ "addBridgeToken(byte,byte[32])void": void;
240
+ "removeBridgeToken(byte,byte[32])void": void;
241
+ "withdrawGasTokens(uint64)void": void;
242
+ "withdrawBridgingFeeInTokens(uint64)void": void;
243
+ "getBridgingCostInTokens(byte,uint64)uint64": bigint;
244
+ "hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]": Uint8Array;
245
+ "isOtherBridgeTokenSupported(byte,byte[32])bool": boolean;
246
+ "getTransactionCost(byte)uint64": bigint;
247
+ "getReceiveTokensCost()uint64": bigint;
248
+ "getSendTransactionStorageCost()uint64": bigint;
249
+ "swap(uint64,uint64,address,uint64)void": void;
250
+ "addPool(uint64,uint64)void": void;
251
+ "removePool(uint64)void": void;
252
+ "stopSwap()void": void;
253
+ "startSwap()void": void;
254
+ "setStopAuthority(address)void": void;
255
+ "setRebalancer(address)void": void;
256
+ "getGasUsage(byte)uint64": bigint;
257
+ "setGasUsage(byte,uint64)void": void;
258
+ "setGasOracle(application)void": void;
259
+ "getTransactionRelayerCost(byte)uint64": bigint;
260
+ "transferOwnership(address)void": void;
261
+ };
262
+ /**
263
+ * Defines the types of available calls and state of the Bridge smart contract.
264
+ */
265
+ export type BridgeTypes = {
266
+ /**
267
+ * Maps method signatures / names to their argument and return types.
268
+ */
269
+ methods: Record<"createApplication(address,byte,application,application)void" | "createApplication", {
270
+ argsObj: BridgeArgs["obj"]["createApplication(address,byte,application,application)void"];
271
+ argsTuple: BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"];
272
+ returns: BridgeReturns["createApplication(address,byte,application,application)void"];
273
+ }> & Record<"optInAsset(uint64)void" | "optInAsset", {
274
+ argsObj: BridgeArgs["obj"]["optInAsset(uint64)void"];
275
+ argsTuple: BridgeArgs["tuple"]["optInAsset(uint64)void"];
276
+ returns: BridgeReturns["optInAsset(uint64)void"];
277
+ }> & Record<"noop()void" | "noop", {
278
+ argsObj: BridgeArgs["obj"]["noop()void"];
279
+ argsTuple: BridgeArgs["tuple"]["noop()void"];
280
+ returns: BridgeReturns["noop()void"];
281
+ }> & Record<"swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void" | "swapAndBridge", {
282
+ argsObj: BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
283
+ argsTuple: BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
284
+ returns: BridgeReturns["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
285
+ }> & Record<"receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void" | "receiveTokens", {
286
+ argsObj: BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
287
+ argsTuple: BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
288
+ returns: BridgeReturns["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
289
+ }> & Record<"registerBridge(byte,byte[32])void" | "registerBridge", {
290
+ argsObj: BridgeArgs["obj"]["registerBridge(byte,byte[32])void"];
291
+ argsTuple: BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"];
292
+ returns: BridgeReturns["registerBridge(byte,byte[32])void"];
293
+ }> & Record<"addBridgeToken(byte,byte[32])void" | "addBridgeToken", {
294
+ argsObj: BridgeArgs["obj"]["addBridgeToken(byte,byte[32])void"];
295
+ argsTuple: BridgeArgs["tuple"]["addBridgeToken(byte,byte[32])void"];
296
+ returns: BridgeReturns["addBridgeToken(byte,byte[32])void"];
297
+ }> & Record<"removeBridgeToken(byte,byte[32])void" | "removeBridgeToken", {
298
+ argsObj: BridgeArgs["obj"]["removeBridgeToken(byte,byte[32])void"];
299
+ argsTuple: BridgeArgs["tuple"]["removeBridgeToken(byte,byte[32])void"];
300
+ returns: BridgeReturns["removeBridgeToken(byte,byte[32])void"];
301
+ }> & Record<"withdrawGasTokens(uint64)void" | "withdrawGasTokens", {
302
+ argsObj: BridgeArgs["obj"]["withdrawGasTokens(uint64)void"];
303
+ argsTuple: BridgeArgs["tuple"]["withdrawGasTokens(uint64)void"];
304
+ returns: BridgeReturns["withdrawGasTokens(uint64)void"];
305
+ }> & Record<"withdrawBridgingFeeInTokens(uint64)void" | "withdrawBridgingFeeInTokens", {
306
+ argsObj: BridgeArgs["obj"]["withdrawBridgingFeeInTokens(uint64)void"];
307
+ argsTuple: BridgeArgs["tuple"]["withdrawBridgingFeeInTokens(uint64)void"];
308
+ returns: BridgeReturns["withdrawBridgingFeeInTokens(uint64)void"];
309
+ }> & Record<"getBridgingCostInTokens(byte,uint64)uint64" | "getBridgingCostInTokens", {
310
+ argsObj: BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"];
311
+ argsTuple: BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"];
312
+ returns: BridgeReturns["getBridgingCostInTokens(byte,uint64)uint64"];
313
+ }> & Record<"hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]" | "hashMessage", {
314
+ argsObj: BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"];
315
+ argsTuple: BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"];
316
+ returns: BridgeReturns["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"];
317
+ }> & Record<"isOtherBridgeTokenSupported(byte,byte[32])bool" | "isOtherBridgeTokenSupported", {
318
+ argsObj: BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"];
319
+ argsTuple: BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"];
320
+ returns: BridgeReturns["isOtherBridgeTokenSupported(byte,byte[32])bool"];
321
+ }> & Record<"getTransactionCost(byte)uint64" | "getTransactionCost", {
322
+ argsObj: BridgeArgs["obj"]["getTransactionCost(byte)uint64"];
323
+ argsTuple: BridgeArgs["tuple"]["getTransactionCost(byte)uint64"];
324
+ returns: BridgeReturns["getTransactionCost(byte)uint64"];
325
+ }> & Record<"getReceiveTokensCost()uint64" | "getReceiveTokensCost", {
326
+ argsObj: BridgeArgs["obj"]["getReceiveTokensCost()uint64"];
327
+ argsTuple: BridgeArgs["tuple"]["getReceiveTokensCost()uint64"];
328
+ returns: BridgeReturns["getReceiveTokensCost()uint64"];
329
+ }> & Record<"getSendTransactionStorageCost()uint64" | "getSendTransactionStorageCost", {
330
+ argsObj: BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"];
331
+ argsTuple: BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"];
332
+ returns: BridgeReturns["getSendTransactionStorageCost()uint64"];
333
+ }> & Record<"swap(uint64,uint64,address,uint64)void" | "swap", {
334
+ argsObj: BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"];
335
+ argsTuple: BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"];
336
+ returns: BridgeReturns["swap(uint64,uint64,address,uint64)void"];
337
+ }> & Record<"addPool(uint64,uint64)void" | "addPool", {
338
+ argsObj: BridgeArgs["obj"]["addPool(uint64,uint64)void"];
339
+ argsTuple: BridgeArgs["tuple"]["addPool(uint64,uint64)void"];
340
+ returns: BridgeReturns["addPool(uint64,uint64)void"];
341
+ }> & Record<"removePool(uint64)void" | "removePool", {
342
+ argsObj: BridgeArgs["obj"]["removePool(uint64)void"];
343
+ argsTuple: BridgeArgs["tuple"]["removePool(uint64)void"];
344
+ returns: BridgeReturns["removePool(uint64)void"];
345
+ }> & Record<"stopSwap()void" | "stopSwap", {
346
+ argsObj: BridgeArgs["obj"]["stopSwap()void"];
347
+ argsTuple: BridgeArgs["tuple"]["stopSwap()void"];
348
+ returns: BridgeReturns["stopSwap()void"];
349
+ }> & Record<"startSwap()void" | "startSwap", {
350
+ argsObj: BridgeArgs["obj"]["startSwap()void"];
351
+ argsTuple: BridgeArgs["tuple"]["startSwap()void"];
352
+ returns: BridgeReturns["startSwap()void"];
353
+ }> & Record<"setStopAuthority(address)void" | "setStopAuthority", {
354
+ argsObj: BridgeArgs["obj"]["setStopAuthority(address)void"];
355
+ argsTuple: BridgeArgs["tuple"]["setStopAuthority(address)void"];
356
+ returns: BridgeReturns["setStopAuthority(address)void"];
357
+ }> & Record<"setRebalancer(address)void" | "setRebalancer", {
358
+ argsObj: BridgeArgs["obj"]["setRebalancer(address)void"];
359
+ argsTuple: BridgeArgs["tuple"]["setRebalancer(address)void"];
360
+ returns: BridgeReturns["setRebalancer(address)void"];
361
+ }> & Record<"getGasUsage(byte)uint64" | "getGasUsage", {
362
+ argsObj: BridgeArgs["obj"]["getGasUsage(byte)uint64"];
363
+ argsTuple: BridgeArgs["tuple"]["getGasUsage(byte)uint64"];
364
+ returns: BridgeReturns["getGasUsage(byte)uint64"];
365
+ }> & Record<"setGasUsage(byte,uint64)void" | "setGasUsage", {
366
+ argsObj: BridgeArgs["obj"]["setGasUsage(byte,uint64)void"];
367
+ argsTuple: BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"];
368
+ returns: BridgeReturns["setGasUsage(byte,uint64)void"];
369
+ }> & Record<"setGasOracle(application)void" | "setGasOracle", {
370
+ argsObj: BridgeArgs["obj"]["setGasOracle(application)void"];
371
+ argsTuple: BridgeArgs["tuple"]["setGasOracle(application)void"];
372
+ returns: BridgeReturns["setGasOracle(application)void"];
373
+ }> & Record<"getTransactionRelayerCost(byte)uint64" | "getTransactionRelayerCost", {
374
+ argsObj: BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"];
375
+ argsTuple: BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"];
376
+ returns: BridgeReturns["getTransactionRelayerCost(byte)uint64"];
377
+ }> & Record<"transferOwnership(address)void" | "transferOwnership", {
378
+ argsObj: BridgeArgs["obj"]["transferOwnership(address)void"];
379
+ argsTuple: BridgeArgs["tuple"]["transferOwnership(address)void"];
380
+ returns: BridgeReturns["transferOwnership(address)void"];
381
+ }>;
382
+ /**
383
+ * Defines the shape of the state of the application.
384
+ */
385
+ state: {
386
+ global: {
387
+ keys: {
388
+ chainId: number;
389
+ messenger: bigint;
390
+ stopAuthority: string;
391
+ rebalancer: string;
392
+ canSwap: bigint;
393
+ gasOracle: bigint;
394
+ owner: string;
395
+ };
396
+ maps: {};
397
+ };
398
+ box: {
399
+ keys: {};
400
+ maps: {
401
+ processedMessages: Map<Uint8Array, Uint8Array>;
402
+ sentMessages: Map<Uint8Array, Uint8Array>;
403
+ otherBridges: Map<number, Uint8Array>;
404
+ otherBridgeTokens: Map<Uint8Array | string, Uint8Array>;
405
+ pools: Map<bigint | number, bigint>;
406
+ fromGasOracleScalingFactor: Map<bigint | number, bigint>;
407
+ bridgingFeeConversionScalingFactor: Map<bigint | number, bigint>;
408
+ gasUsage: Map<number, bigint>;
409
+ };
410
+ };
411
+ };
412
+ };
413
+ /**
414
+ * Defines the possible abi call signatures.
415
+ */
416
+ export type BridgeSignatures = keyof BridgeTypes["methods"];
417
+ /**
418
+ * Defines the possible abi call signatures for methods that return a non-void value.
419
+ */
420
+ export type BridgeNonVoidMethodSignatures = keyof BridgeTypes["methods"] extends infer T ? T extends keyof BridgeTypes["methods"] ? MethodReturn<T> extends void ? never : T : never : never;
421
+ /**
422
+ * Defines an object containing all relevant parameters for a single call to the contract.
423
+ */
424
+ export type CallParams<TArgs> = Expand<Omit<AppClientMethodCallParams, "method" | "args" | "onComplete"> & {
425
+ /** The args for the ABI method call, either as an ordered array or an object */
426
+ args: Expand<TArgs>;
427
+ }>;
428
+ /**
429
+ * Maps a method signature from the Bridge smart contract to the method's arguments in either tuple or struct form
430
+ */
431
+ export type MethodArgs<TSignature extends BridgeSignatures> = BridgeTypes["methods"][TSignature]["argsObj" | "argsTuple"];
432
+ /**
433
+ * Maps a method signature from the Bridge smart contract to the method's return type
434
+ */
435
+ export type MethodReturn<TSignature extends BridgeSignatures> = BridgeTypes["methods"][TSignature]["returns"];
436
+ /**
437
+ * Defines the shape of the keyed global state of the application.
438
+ */
439
+ export type GlobalKeysState = BridgeTypes["state"]["global"]["keys"];
440
+ /**
441
+ * Defines the shape of the keyed box state of the application.
442
+ */
443
+ export type BoxKeysState = BridgeTypes["state"]["box"]["keys"];
444
+ /**
445
+ * Defines supported create method params for this smart contract
446
+ */
447
+ export type BridgeCreateCallParams = Expand<CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & {
448
+ method: "createApplication";
449
+ } & {
450
+ onComplete?: OnApplicationComplete.NoOpOC;
451
+ } & CreateSchema> | Expand<CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & {
452
+ method: "createApplication(address,byte,application,application)void";
453
+ } & {
454
+ onComplete?: OnApplicationComplete.NoOpOC;
455
+ } & CreateSchema>;
456
+ /**
457
+ * Defines arguments required for the deploy method.
458
+ */
459
+ export type BridgeDeployParams = Expand<Omit<AppFactoryDeployParams, "createParams" | "updateParams" | "deleteParams"> & {
460
+ /**
461
+ * Create transaction parameters to use if a create needs to be issued as part of deployment; use `method` to define ABI call (if available) or leave out for a bare call (if available)
462
+ */
463
+ createParams?: BridgeCreateCallParams;
464
+ }>;
465
+ /**
466
+ * Exposes methods for constructing `AppClient` params objects for ABI calls to the Bridge smart contract
467
+ */
468
+ export declare abstract class BridgeParamsFactory {
469
+ /**
470
+ * Gets available create ABI call param factories
471
+ */
472
+ static get create(): {
473
+ _resolveByMethod<TParams extends BridgeCreateCallParams & {
474
+ method: string;
475
+ }>(params: TParams): {
476
+ signer?: (TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount) | undefined;
477
+ rekeyTo?: (string | Address) | undefined;
478
+ note?: (Uint8Array | string) | undefined;
479
+ lease?: (Uint8Array | string) | undefined;
480
+ staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
481
+ extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
482
+ maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
483
+ validityWindow?: (number | bigint) | undefined;
484
+ firstValidRound?: bigint | undefined;
485
+ lastValidRound?: bigint | undefined;
486
+ onComplete?: OnApplicationComplete | undefined;
487
+ accountReferences?: (string | Address)[] | undefined;
488
+ appReferences?: bigint[] | undefined;
489
+ assetReferences?: bigint[] | undefined;
490
+ boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
491
+ sender?: (Address | string) | undefined;
492
+ method: string;
493
+ args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
494
+ } & AppClientCompilationParams & {
495
+ onComplete?: OnApplicationComplete.NoOpOC;
496
+ };
497
+ /**
498
+ * Constructs create ABI call params for the Bridge smart contract using the createApplication(address,byte,application,application)void ABI method
499
+ *
500
+ * @param params Parameters for the call
501
+ * @returns An `AppClientMethodCallParams` object for the call
502
+ */
503
+ createApplication(params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & {
504
+ onComplete?: OnApplicationComplete.NoOpOC;
505
+ }): AppClientMethodCallParams & AppClientCompilationParams & {
506
+ onComplete?: OnApplicationComplete.NoOpOC;
507
+ };
508
+ };
509
+ /**
510
+ * Constructs a no op call for the optInAsset(uint64)void ABI method
511
+ *
512
+ * @param params Parameters for the call
513
+ * @returns An `AppClientMethodCallParams` object for the call
514
+ */
515
+ static optInAsset(params: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
516
+ /**
517
+ * Constructs a no op call for the noop()void ABI method
518
+ *
519
+ * @param params Parameters for the call
520
+ * @returns An `AppClientMethodCallParams` object for the call
521
+ */
522
+ static noop(params: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
523
+ /**
524
+ * Constructs a no op call for the swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method
525
+ *
526
+ * @param params Parameters for the call
527
+ * @returns An `AppClientMethodCallParams` object for the call
528
+ */
529
+ static swapAndBridge(params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
530
+ /**
531
+ * Constructs a no op call for the receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method
532
+ *
533
+ * @param params Parameters for the call
534
+ * @returns An `AppClientMethodCallParams` object for the call
535
+ */
536
+ static receiveTokens(params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
537
+ /**
538
+ * Constructs a no op call for the registerBridge(byte,byte[32])void ABI method
539
+ *
540
+ * @param params Parameters for the call
541
+ * @returns An `AppClientMethodCallParams` object for the call
542
+ */
543
+ static registerBridge(params: CallParams<BridgeArgs["obj"]["registerBridge(byte,byte[32])void"] | BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
544
+ /**
545
+ * Constructs a no op call for the addBridgeToken(byte,byte[32])void ABI method
546
+ *
547
+ * @param params Parameters for the call
548
+ * @returns An `AppClientMethodCallParams` object for the call
549
+ */
550
+ static addBridgeToken(params: CallParams<BridgeArgs["obj"]["addBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["addBridgeToken(byte,byte[32])void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
551
+ /**
552
+ * Constructs a no op call for the removeBridgeToken(byte,byte[32])void ABI method
553
+ *
554
+ * @param params Parameters for the call
555
+ * @returns An `AppClientMethodCallParams` object for the call
556
+ */
557
+ static removeBridgeToken(params: CallParams<BridgeArgs["obj"]["removeBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["removeBridgeToken(byte,byte[32])void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
558
+ /**
559
+ * Constructs a no op call for the withdrawGasTokens(uint64)void ABI method
560
+ *
561
+ * @param params Parameters for the call
562
+ * @returns An `AppClientMethodCallParams` object for the call
563
+ */
564
+ static withdrawGasTokens(params: CallParams<BridgeArgs["obj"]["withdrawGasTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawGasTokens(uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
565
+ /**
566
+ * Constructs a no op call for the withdrawBridgingFeeInTokens(uint64)void ABI method
567
+ *
568
+ * @param params Parameters for the call
569
+ * @returns An `AppClientMethodCallParams` object for the call
570
+ */
571
+ static withdrawBridgingFeeInTokens(params: CallParams<BridgeArgs["obj"]["withdrawBridgingFeeInTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawBridgingFeeInTokens(uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
572
+ /**
573
+ * Constructs a no op call for the getBridgingCostInTokens(byte,uint64)uint64 ABI method
574
+ *
575
+ * @param params Parameters for the call
576
+ * @returns An `AppClientMethodCallParams` object for the call
577
+ */
578
+ static getBridgingCostInTokens(params: CallParams<BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"] | BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
579
+ /**
580
+ * Constructs a no op call for the hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32] ABI method
581
+ *
582
+ * @param params Parameters for the call
583
+ * @returns An `AppClientMethodCallParams` object for the call
584
+ */
585
+ static hashMessage(params: CallParams<BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
586
+ /**
587
+ * Constructs a no op call for the isOtherBridgeTokenSupported(byte,byte[32])bool ABI method
588
+ *
589
+ * @param params Parameters for the call
590
+ * @returns An `AppClientMethodCallParams` object for the call
591
+ */
592
+ static isOtherBridgeTokenSupported(params: CallParams<BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"] | BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
593
+ /**
594
+ * Constructs a no op call for the getTransactionCost(byte)uint64 ABI method
595
+ *
596
+ * @param params Parameters for the call
597
+ * @returns An `AppClientMethodCallParams` object for the call
598
+ */
599
+ static getTransactionCost(params: CallParams<BridgeArgs["obj"]["getTransactionCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionCost(byte)uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
600
+ /**
601
+ * Constructs a no op call for the getReceiveTokensCost()uint64 ABI method
602
+ *
603
+ * @param params Parameters for the call
604
+ * @returns An `AppClientMethodCallParams` object for the call
605
+ */
606
+ static getReceiveTokensCost(params: CallParams<BridgeArgs["obj"]["getReceiveTokensCost()uint64"] | BridgeArgs["tuple"]["getReceiveTokensCost()uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
607
+ /**
608
+ * Constructs a no op call for the getSendTransactionStorageCost()uint64 ABI method
609
+ *
610
+ * @param params Parameters for the call
611
+ * @returns An `AppClientMethodCallParams` object for the call
612
+ */
613
+ static getSendTransactionStorageCost(params: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
614
+ /**
615
+ * Constructs a no op call for the swap(uint64,uint64,address,uint64)void ABI method
616
+ *
617
+ * @param params Parameters for the call
618
+ * @returns An `AppClientMethodCallParams` object for the call
619
+ */
620
+ static swap(params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
621
+ /**
622
+ * Constructs a no op call for the addPool(uint64,uint64)void ABI method
623
+ *
624
+ * @param params Parameters for the call
625
+ * @returns An `AppClientMethodCallParams` object for the call
626
+ */
627
+ static addPool(params: CallParams<BridgeArgs["obj"]["addPool(uint64,uint64)void"] | BridgeArgs["tuple"]["addPool(uint64,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
628
+ /**
629
+ * Constructs a no op call for the removePool(uint64)void ABI method
630
+ *
631
+ * @param params Parameters for the call
632
+ * @returns An `AppClientMethodCallParams` object for the call
633
+ */
634
+ static removePool(params: CallParams<BridgeArgs["obj"]["removePool(uint64)void"] | BridgeArgs["tuple"]["removePool(uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
635
+ /**
636
+ * Constructs a no op call for the stopSwap()void ABI method
637
+ *
638
+ * @param params Parameters for the call
639
+ * @returns An `AppClientMethodCallParams` object for the call
640
+ */
641
+ static stopSwap(params: CallParams<BridgeArgs["obj"]["stopSwap()void"] | BridgeArgs["tuple"]["stopSwap()void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
642
+ /**
643
+ * Constructs a no op call for the startSwap()void ABI method
644
+ *
645
+ * @param params Parameters for the call
646
+ * @returns An `AppClientMethodCallParams` object for the call
647
+ */
648
+ static startSwap(params: CallParams<BridgeArgs["obj"]["startSwap()void"] | BridgeArgs["tuple"]["startSwap()void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
649
+ /**
650
+ * Constructs a no op call for the setStopAuthority(address)void ABI method
651
+ *
652
+ * @param params Parameters for the call
653
+ * @returns An `AppClientMethodCallParams` object for the call
654
+ */
655
+ static setStopAuthority(params: CallParams<BridgeArgs["obj"]["setStopAuthority(address)void"] | BridgeArgs["tuple"]["setStopAuthority(address)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
656
+ /**
657
+ * Constructs a no op call for the setRebalancer(address)void ABI method
658
+ *
659
+ * @param params Parameters for the call
660
+ * @returns An `AppClientMethodCallParams` object for the call
661
+ */
662
+ static setRebalancer(params: CallParams<BridgeArgs["obj"]["setRebalancer(address)void"] | BridgeArgs["tuple"]["setRebalancer(address)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
663
+ /**
664
+ * Constructs a no op call for the getGasUsage(byte)uint64 ABI method
665
+ *
666
+ * @param params Parameters for the call
667
+ * @returns An `AppClientMethodCallParams` object for the call
668
+ */
669
+ static getGasUsage(params: CallParams<BridgeArgs["obj"]["getGasUsage(byte)uint64"] | BridgeArgs["tuple"]["getGasUsage(byte)uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
670
+ /**
671
+ * Constructs a no op call for the setGasUsage(byte,uint64)void ABI method
672
+ *
673
+ * @param params Parameters for the call
674
+ * @returns An `AppClientMethodCallParams` object for the call
675
+ */
676
+ static setGasUsage(params: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
677
+ /**
678
+ * Constructs a no op call for the setGasOracle(application)void ABI method
679
+ *
680
+ * @param params Parameters for the call
681
+ * @returns An `AppClientMethodCallParams` object for the call
682
+ */
683
+ static setGasOracle(params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
684
+ /**
685
+ * Constructs a no op call for the getTransactionRelayerCost(byte)uint64 ABI method
686
+ *
687
+ * @param params Parameters for the call
688
+ * @returns An `AppClientMethodCallParams` object for the call
689
+ */
690
+ static getTransactionRelayerCost(params: CallParams<BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
691
+ /**
692
+ * Constructs a no op call for the transferOwnership(address)void ABI method
693
+ *
694
+ * @param params Parameters for the call
695
+ * @returns An `AppClientMethodCallParams` object for the call
696
+ */
697
+ static transferOwnership(params: CallParams<BridgeArgs["obj"]["transferOwnership(address)void"] | BridgeArgs["tuple"]["transferOwnership(address)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
698
+ }
699
+ /**
700
+ * A factory to create and deploy one or more instance of the Bridge smart contract and to create one or more app clients to interact with those (or other) app instances
701
+ */
702
+ export declare class BridgeFactory {
703
+ /**
704
+ * The underlying `AppFactory` for when you want to have more flexibility
705
+ */
706
+ readonly appFactory: _AppFactory;
707
+ /**
708
+ * Creates a new instance of `BridgeFactory`
709
+ *
710
+ * @param params The parameters to initialise the app factory with
711
+ */
712
+ constructor(params: Omit<AppFactoryParams, "appSpec">);
713
+ /** The name of the app (from the ARC-32 / ARC-56 app spec or override). */
714
+ get appName(): string;
715
+ /** The ARC-56 app spec being used */
716
+ get appSpec(): Arc56Contract;
717
+ /** A reference to the underlying `AlgorandClient` this app factory is using. */
718
+ get algorand(): AlgorandClient;
719
+ /**
720
+ * Returns a new `AppClient` client for an app instance of the given ID.
721
+ *
722
+ * Automatically populates appName, defaultSender and source maps from the factory
723
+ * if not specified in the params.
724
+ * @param params The parameters to create the app client
725
+ * @returns The `AppClient`
726
+ */
727
+ getAppClientById(params: AppFactoryAppClientParams): BridgeClient;
728
+ /**
729
+ * Returns a new `AppClient` client, resolving the app by creator address and name
730
+ * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
731
+ *
732
+ * Automatically populates appName, defaultSender and source maps from the factory
733
+ * if not specified in the params.
734
+ * @param params The parameters to create the app client
735
+ * @returns The `AppClient`
736
+ */
737
+ getAppClientByCreatorAndName(params: AppFactoryResolveAppClientByCreatorAndNameParams): Promise<BridgeClient>;
738
+ /**
739
+ * Idempotently deploys the Bridge smart contract.
740
+ *
741
+ * @param params The arguments for the contract calls and any additional parameters for the call
742
+ * @returns The deployment result
743
+ */
744
+ deploy(params?: BridgeDeployParams): Promise<{
745
+ result: {
746
+ return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
747
+ deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
748
+ compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
749
+ compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
750
+ operationPerformed: "create";
751
+ version: string;
752
+ name: string;
753
+ createdRound: bigint;
754
+ updatedRound: bigint;
755
+ createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
756
+ deleted: boolean;
757
+ deletable?: boolean | undefined;
758
+ updatable?: boolean | undefined;
759
+ groupId: string;
760
+ txIds: string[];
761
+ returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
762
+ confirmations: modelsv2.PendingTransactionResponse[];
763
+ transactions: Transaction[];
764
+ confirmation: modelsv2.PendingTransactionResponse;
765
+ transaction: Transaction;
766
+ appId: bigint;
767
+ appAddress: Address;
768
+ } | {
769
+ return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
770
+ deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
771
+ compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
772
+ compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
773
+ operationPerformed: "update";
774
+ appId: bigint;
775
+ appAddress: Address;
776
+ createdRound: bigint;
777
+ updatedRound: bigint;
778
+ createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
779
+ deleted: boolean;
780
+ name: string;
781
+ version: string;
782
+ deletable?: boolean | undefined;
783
+ updatable?: boolean | undefined;
784
+ groupId: string;
785
+ txIds: string[];
786
+ returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
787
+ confirmations: modelsv2.PendingTransactionResponse[];
788
+ transactions: Transaction[];
789
+ confirmation: modelsv2.PendingTransactionResponse;
790
+ transaction: Transaction;
791
+ } | {
792
+ return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
793
+ deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
794
+ compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
795
+ compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
796
+ operationPerformed: "replace";
797
+ version: string;
798
+ name: string;
799
+ createdRound: bigint;
800
+ updatedRound: bigint;
801
+ createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
802
+ deleted: boolean;
803
+ deletable?: boolean | undefined;
804
+ updatable?: boolean | undefined;
805
+ groupId: string;
806
+ txIds: string[];
807
+ returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
808
+ confirmations: modelsv2.PendingTransactionResponse[];
809
+ transactions: Transaction[];
810
+ confirmation: modelsv2.PendingTransactionResponse;
811
+ transaction: Transaction;
812
+ appId: bigint;
813
+ appAddress: Address;
814
+ deleteResult: import("@algorandfoundation/algokit-utils/types/transaction").ConfirmedTransactionResult;
815
+ } | {
816
+ return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
817
+ deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
818
+ compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
819
+ compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
820
+ operationPerformed: "nothing";
821
+ appId: bigint;
822
+ appAddress: Address;
823
+ createdRound: bigint;
824
+ updatedRound: bigint;
825
+ createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
826
+ deleted: boolean;
827
+ name: string;
828
+ version: string;
829
+ deletable?: boolean | undefined;
830
+ updatable?: boolean | undefined;
831
+ };
832
+ appClient: BridgeClient;
833
+ }>;
834
+ /**
835
+ * Get parameters to create transactions (create and deploy related calls) for the current app. A good mental model for this is that these parameters represent a deferred transaction creation.
836
+ */
837
+ readonly params: {
838
+ /**
839
+ * Gets available create methods
840
+ */
841
+ create: {
842
+ /**
843
+ * Creates a new instance of the Bridge smart contract using the createApplication(address,byte,application,application)void ABI method.
844
+ *
845
+ * @param params The params for the smart contract call
846
+ * @returns The create params
847
+ */
848
+ createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & CreateSchema & {
849
+ onComplete?: OnApplicationComplete.NoOpOC;
850
+ }) => Promise<{
851
+ deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined;
852
+ schema: {
853
+ globalInts: number;
854
+ globalByteSlices: number;
855
+ localInts: number;
856
+ localByteSlices: number;
857
+ };
858
+ approvalProgram: Uint8Array;
859
+ clearStateProgram: Uint8Array;
860
+ maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
861
+ note?: string | Uint8Array | undefined;
862
+ signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
863
+ onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
864
+ lease?: string | Uint8Array | undefined;
865
+ rekeyTo?: string | Address | undefined;
866
+ staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
867
+ extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
868
+ validityWindow?: number | bigint | undefined;
869
+ firstValidRound?: bigint | undefined;
870
+ lastValidRound?: bigint | undefined;
871
+ accountReferences?: (string | Address)[] | undefined;
872
+ appReferences?: bigint[] | undefined;
873
+ assetReferences?: bigint[] | undefined;
874
+ boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined;
875
+ sender?: string | Address | undefined;
876
+ method: string;
877
+ args?: (import("algosdk").ABIValue | AppMethodCallTransactionArgument | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined)[] | undefined;
878
+ updatable?: boolean | undefined;
879
+ deletable?: boolean | undefined;
880
+ extraProgramPages?: number | undefined;
881
+ } & {
882
+ sender: Address;
883
+ signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
884
+ method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method;
885
+ args: (Transaction | import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Promise<Transaction> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
886
+ sender: string | Address;
887
+ maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
888
+ note?: string | Uint8Array | undefined;
889
+ args?: Uint8Array[] | undefined;
890
+ signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
891
+ onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
892
+ lease?: string | Uint8Array | undefined;
893
+ rekeyTo?: string | Address | undefined;
894
+ staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
895
+ extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
896
+ validityWindow?: number | bigint | undefined;
897
+ firstValidRound?: bigint | undefined;
898
+ lastValidRound?: bigint | undefined;
899
+ accountReferences?: (string | Address)[] | undefined;
900
+ appReferences?: bigint[] | undefined;
901
+ assetReferences?: bigint[] | undefined;
902
+ boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined;
903
+ approvalProgram: string | Uint8Array;
904
+ clearStateProgram: string | Uint8Array;
905
+ schema?: {
906
+ globalInts: number;
907
+ globalByteSlices: number;
908
+ localInts: number;
909
+ localByteSlices: number;
910
+ } | undefined;
911
+ extraProgramPages?: number | undefined;
912
+ }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
913
+ sender: string | Address;
914
+ signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
915
+ rekeyTo?: string | Address | undefined;
916
+ note?: string | Uint8Array | undefined;
917
+ lease?: string | Uint8Array | undefined;
918
+ staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
919
+ extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
920
+ maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
921
+ validityWindow?: number | bigint | undefined;
922
+ firstValidRound?: bigint | undefined;
923
+ lastValidRound?: bigint | undefined;
924
+ appId: bigint;
925
+ onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined;
926
+ args?: Uint8Array[] | undefined;
927
+ accountReferences?: (string | Address)[] | undefined;
928
+ appReferences?: bigint[] | undefined;
929
+ assetReferences?: bigint[] | undefined;
930
+ boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined;
931
+ approvalProgram: string | Uint8Array;
932
+ clearStateProgram: string | Uint8Array;
933
+ }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<import("@algorandfoundation/algokit-utils/types/composer").AppMethodCallParams> | undefined)[] | undefined;
934
+ onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC;
935
+ }>;
936
+ };
937
+ };
938
+ /**
939
+ * Create transactions for the current app
940
+ */
941
+ readonly createTransaction: {
942
+ /**
943
+ * Gets available create methods
944
+ */
945
+ create: {
946
+ /**
947
+ * Creates a new instance of the Bridge smart contract using the createApplication(address,byte,application,application)void ABI method.
948
+ *
949
+ * @param params The params for the smart contract call
950
+ * @returns The create transaction
951
+ */
952
+ createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & CreateSchema & {
953
+ onComplete?: OnApplicationComplete.NoOpOC;
954
+ }) => Promise<{
955
+ transactions: Transaction[];
956
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
957
+ signers: Map<number, TransactionSigner>;
958
+ }>;
959
+ };
960
+ };
961
+ /**
962
+ * Send calls to the current app
963
+ */
964
+ readonly send: {
965
+ /**
966
+ * Gets available create methods
967
+ */
968
+ create: {
969
+ /**
970
+ * Creates a new instance of the Bridge smart contract using an ABI method call using the createApplication(address,byte,application,application)void ABI method.
971
+ *
972
+ * @param params The params for the smart contract call
973
+ * @returns The create result
974
+ */
975
+ createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & CreateSchema & SendParams & {
976
+ onComplete?: OnApplicationComplete.NoOpOC;
977
+ }) => Promise<{
978
+ result: {
979
+ return: undefined | BridgeReturns["createApplication(address,byte,application,application)void"];
980
+ compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
981
+ compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
982
+ appId: bigint;
983
+ groupId: string;
984
+ txIds: string[];
985
+ returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
986
+ confirmations: modelsv2.PendingTransactionResponse[];
987
+ transactions: Transaction[];
988
+ confirmation: modelsv2.PendingTransactionResponse;
989
+ transaction: Transaction;
990
+ appAddress: Address;
991
+ };
992
+ appClient: BridgeClient;
993
+ }>;
994
+ };
995
+ };
996
+ }
997
+ /**
998
+ * A client to make calls to the Bridge smart contract
999
+ */
1000
+ export declare class BridgeClient {
1001
+ /**
1002
+ * The underlying `AppClient` for when you want to have more flexibility
1003
+ */
1004
+ readonly appClient: _AppClient;
1005
+ /**
1006
+ * Creates a new instance of `BridgeClient`
1007
+ *
1008
+ * @param appClient An `AppClient` instance which has been created with the Bridge app spec
1009
+ */
1010
+ constructor(appClient: _AppClient);
1011
+ /**
1012
+ * Creates a new instance of `BridgeClient`
1013
+ *
1014
+ * @param params The parameters to initialise the app client with
1015
+ */
1016
+ constructor(params: Omit<AppClientParams, "appSpec">);
1017
+ /**
1018
+ * Checks for decode errors on the given return value and maps the return value to the return type for the given method
1019
+ * @returns The typed return value or undefined if there was no value
1020
+ */
1021
+ decodeReturnValue<TSignature extends BridgeNonVoidMethodSignatures>(method: TSignature, returnValue: ABIReturn | undefined): MethodReturn<TSignature> | undefined;
1022
+ /**
1023
+ * Returns a new `BridgeClient` client, resolving the app by creator address and name
1024
+ * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
1025
+ * @param params The parameters to create the app client
1026
+ */
1027
+ static fromCreatorAndName(params: Omit<ResolveAppClientByCreatorAndName, "appSpec">): Promise<BridgeClient>;
1028
+ /**
1029
+ * Returns an `BridgeClient` instance for the current network based on
1030
+ * pre-determined network-specific app IDs specified in the ARC-56 app spec.
1031
+ *
1032
+ * If no IDs are in the app spec or the network isn't recognised, an error is thrown.
1033
+ * @param params The parameters to create the app client
1034
+ */
1035
+ static fromNetwork(params: Omit<ResolveAppClientByNetwork, "appSpec">): Promise<BridgeClient>;
1036
+ /** The ID of the app instance this client is linked to. */
1037
+ get appId(): bigint;
1038
+ /** The app address of the app instance this client is linked to. */
1039
+ get appAddress(): Address;
1040
+ /** The name of the app. */
1041
+ get appName(): string;
1042
+ /** The ARC-56 app spec being used */
1043
+ get appSpec(): Arc56Contract;
1044
+ /** A reference to the underlying `AlgorandClient` this app client is using. */
1045
+ get algorand(): AlgorandClient;
1046
+ /**
1047
+ * Get parameters to create transactions for the current app. A good mental model for this is that these parameters represent a deferred transaction creation.
1048
+ */
1049
+ readonly params: {
1050
+ /**
1051
+ * Makes a clear_state call to an existing instance of the Bridge smart contract.
1052
+ *
1053
+ * @param params The params for the bare (raw) call
1054
+ * @returns The clearState result
1055
+ */
1056
+ clearState: (params?: Expand<AppClientBareCallParams>) => import("@algorandfoundation/algokit-utils/types/composer").AppCallParams;
1057
+ /**
1058
+ * Makes a call to the Bridge smart contract using the `optInAsset(uint64)void` ABI method.
1059
+ *
1060
+ * @param params The params for the smart contract call
1061
+ * @returns The call params
1062
+ */
1063
+ optInAsset: (params: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]> & {
1064
+ onComplete?: OnApplicationComplete.NoOpOC;
1065
+ }) => Promise<AppCallMethodCall>;
1066
+ /**
1067
+ * Makes a call to the Bridge smart contract using the `noop()void` ABI method.
1068
+ *
1069
+ * @param params The params for the smart contract call
1070
+ * @returns The call params
1071
+ */
1072
+ noop: (params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & {
1073
+ onComplete?: OnApplicationComplete.NoOpOC;
1074
+ }) => Promise<AppCallMethodCall>;
1075
+ /**
1076
+ * Makes a call to the Bridge smart contract using the `swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
1077
+ *
1078
+ * @param params The params for the smart contract call
1079
+ * @returns The call params
1080
+ */
1081
+ swapAndBridge: (params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
1082
+ onComplete?: OnApplicationComplete.NoOpOC;
1083
+ }) => Promise<AppCallMethodCall>;
1084
+ /**
1085
+ * Makes a call to the Bridge smart contract using the `receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
1086
+ *
1087
+ * @param params The params for the smart contract call
1088
+ * @returns The call params
1089
+ */
1090
+ receiveTokens: (params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
1091
+ onComplete?: OnApplicationComplete.NoOpOC;
1092
+ }) => Promise<AppCallMethodCall>;
1093
+ /**
1094
+ * Makes a call to the Bridge smart contract using the `registerBridge(byte,byte[32])void` ABI method.
1095
+ *
1096
+ * @param params The params for the smart contract call
1097
+ * @returns The call params
1098
+ */
1099
+ registerBridge: (params: CallParams<BridgeArgs["obj"]["registerBridge(byte,byte[32])void"] | BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"]> & {
1100
+ onComplete?: OnApplicationComplete.NoOpOC;
1101
+ }) => Promise<AppCallMethodCall>;
1102
+ /**
1103
+ * Makes a call to the Bridge smart contract using the `addBridgeToken(byte,byte[32])void` ABI method.
1104
+ *
1105
+ * @param params The params for the smart contract call
1106
+ * @returns The call params
1107
+ */
1108
+ addBridgeToken: (params: CallParams<BridgeArgs["obj"]["addBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["addBridgeToken(byte,byte[32])void"]> & {
1109
+ onComplete?: OnApplicationComplete.NoOpOC;
1110
+ }) => Promise<AppCallMethodCall>;
1111
+ /**
1112
+ * Makes a call to the Bridge smart contract using the `removeBridgeToken(byte,byte[32])void` ABI method.
1113
+ *
1114
+ * @param params The params for the smart contract call
1115
+ * @returns The call params
1116
+ */
1117
+ removeBridgeToken: (params: CallParams<BridgeArgs["obj"]["removeBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["removeBridgeToken(byte,byte[32])void"]> & {
1118
+ onComplete?: OnApplicationComplete.NoOpOC;
1119
+ }) => Promise<AppCallMethodCall>;
1120
+ /**
1121
+ * Makes a call to the Bridge smart contract using the `withdrawGasTokens(uint64)void` ABI method.
1122
+ *
1123
+ * @param params The params for the smart contract call
1124
+ * @returns The call params
1125
+ */
1126
+ withdrawGasTokens: (params: CallParams<BridgeArgs["obj"]["withdrawGasTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawGasTokens(uint64)void"]> & {
1127
+ onComplete?: OnApplicationComplete.NoOpOC;
1128
+ }) => Promise<AppCallMethodCall>;
1129
+ /**
1130
+ * Makes a call to the Bridge smart contract using the `withdrawBridgingFeeInTokens(uint64)void` ABI method.
1131
+ *
1132
+ * @param params The params for the smart contract call
1133
+ * @returns The call params
1134
+ */
1135
+ withdrawBridgingFeeInTokens: (params: CallParams<BridgeArgs["obj"]["withdrawBridgingFeeInTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawBridgingFeeInTokens(uint64)void"]> & {
1136
+ onComplete?: OnApplicationComplete.NoOpOC;
1137
+ }) => Promise<AppCallMethodCall>;
1138
+ /**
1139
+ * Makes a call to the Bridge smart contract using the `getBridgingCostInTokens(byte,uint64)uint64` ABI method.
1140
+ *
1141
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1142
+ *
1143
+ * @param params The params for the smart contract call
1144
+ * @returns The call params
1145
+ */
1146
+ getBridgingCostInTokens: (params: CallParams<BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"] | BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"]> & {
1147
+ onComplete?: OnApplicationComplete.NoOpOC;
1148
+ }) => Promise<AppCallMethodCall>;
1149
+ /**
1150
+ * Makes a call to the Bridge smart contract using the `hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]` ABI method.
1151
+ *
1152
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1153
+ *
1154
+ * @param params The params for the smart contract call
1155
+ * @returns The call params
1156
+ */
1157
+ hashMessage: (params: CallParams<BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"]> & {
1158
+ onComplete?: OnApplicationComplete.NoOpOC;
1159
+ }) => Promise<AppCallMethodCall>;
1160
+ /**
1161
+ * Makes a call to the Bridge smart contract using the `isOtherBridgeTokenSupported(byte,byte[32])bool` ABI method.
1162
+ *
1163
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1164
+ *
1165
+ * @param params The params for the smart contract call
1166
+ * @returns The call params
1167
+ */
1168
+ isOtherBridgeTokenSupported: (params: CallParams<BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"] | BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"]> & {
1169
+ onComplete?: OnApplicationComplete.NoOpOC;
1170
+ }) => Promise<AppCallMethodCall>;
1171
+ /**
1172
+ * Makes a call to the Bridge smart contract using the `getTransactionCost(byte)uint64` ABI method.
1173
+ *
1174
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1175
+ *
1176
+ * @param params The params for the smart contract call
1177
+ * @returns The call params
1178
+ */
1179
+ getTransactionCost: (params: CallParams<BridgeArgs["obj"]["getTransactionCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionCost(byte)uint64"]> & {
1180
+ onComplete?: OnApplicationComplete.NoOpOC;
1181
+ }) => Promise<AppCallMethodCall>;
1182
+ /**
1183
+ * Makes a call to the Bridge smart contract using the `getReceiveTokensCost()uint64` ABI method.
1184
+ *
1185
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1186
+ *
1187
+ * @param params The params for the smart contract call
1188
+ * @returns The call params
1189
+ */
1190
+ getReceiveTokensCost: (params?: CallParams<BridgeArgs["obj"]["getReceiveTokensCost()uint64"] | BridgeArgs["tuple"]["getReceiveTokensCost()uint64"]> & {
1191
+ onComplete?: OnApplicationComplete.NoOpOC;
1192
+ }) => Promise<AppCallMethodCall>;
1193
+ /**
1194
+ * Makes a call to the Bridge smart contract using the `getSendTransactionStorageCost()uint64` ABI method.
1195
+ *
1196
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1197
+ *
1198
+ * @param params The params for the smart contract call
1199
+ * @returns The call params
1200
+ */
1201
+ getSendTransactionStorageCost: (params?: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]> & {
1202
+ onComplete?: OnApplicationComplete.NoOpOC;
1203
+ }) => Promise<AppCallMethodCall>;
1204
+ /**
1205
+ * Makes a call to the Bridge smart contract using the `swap(uint64,uint64,address,uint64)void` ABI method.
1206
+ *
1207
+ * @param params The params for the smart contract call
1208
+ * @returns The call params
1209
+ */
1210
+ swap: (params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & {
1211
+ onComplete?: OnApplicationComplete.NoOpOC;
1212
+ }) => Promise<AppCallMethodCall>;
1213
+ /**
1214
+ * Makes a call to the Bridge smart contract using the `addPool(uint64,uint64)void` ABI method.
1215
+ *
1216
+ * @param params The params for the smart contract call
1217
+ * @returns The call params
1218
+ */
1219
+ addPool: (params: CallParams<BridgeArgs["obj"]["addPool(uint64,uint64)void"] | BridgeArgs["tuple"]["addPool(uint64,uint64)void"]> & {
1220
+ onComplete?: OnApplicationComplete.NoOpOC;
1221
+ }) => Promise<AppCallMethodCall>;
1222
+ /**
1223
+ * Makes a call to the Bridge smart contract using the `removePool(uint64)void` ABI method.
1224
+ *
1225
+ * @param params The params for the smart contract call
1226
+ * @returns The call params
1227
+ */
1228
+ removePool: (params: CallParams<BridgeArgs["obj"]["removePool(uint64)void"] | BridgeArgs["tuple"]["removePool(uint64)void"]> & {
1229
+ onComplete?: OnApplicationComplete.NoOpOC;
1230
+ }) => Promise<AppCallMethodCall>;
1231
+ /**
1232
+ * Makes a call to the Bridge smart contract using the `stopSwap()void` ABI method.
1233
+ *
1234
+ * @param params The params for the smart contract call
1235
+ * @returns The call params
1236
+ */
1237
+ stopSwap: (params?: CallParams<BridgeArgs["obj"]["stopSwap()void"] | BridgeArgs["tuple"]["stopSwap()void"]> & {
1238
+ onComplete?: OnApplicationComplete.NoOpOC;
1239
+ }) => Promise<AppCallMethodCall>;
1240
+ /**
1241
+ * Makes a call to the Bridge smart contract using the `startSwap()void` ABI method.
1242
+ *
1243
+ * @param params The params for the smart contract call
1244
+ * @returns The call params
1245
+ */
1246
+ startSwap: (params?: CallParams<BridgeArgs["obj"]["startSwap()void"] | BridgeArgs["tuple"]["startSwap()void"]> & {
1247
+ onComplete?: OnApplicationComplete.NoOpOC;
1248
+ }) => Promise<AppCallMethodCall>;
1249
+ /**
1250
+ * Makes a call to the Bridge smart contract using the `setStopAuthority(address)void` ABI method.
1251
+ *
1252
+ * @param params The params for the smart contract call
1253
+ * @returns The call params
1254
+ */
1255
+ setStopAuthority: (params: CallParams<BridgeArgs["obj"]["setStopAuthority(address)void"] | BridgeArgs["tuple"]["setStopAuthority(address)void"]> & {
1256
+ onComplete?: OnApplicationComplete.NoOpOC;
1257
+ }) => Promise<AppCallMethodCall>;
1258
+ /**
1259
+ * Makes a call to the Bridge smart contract using the `setRebalancer(address)void` ABI method.
1260
+ *
1261
+ * @param params The params for the smart contract call
1262
+ * @returns The call params
1263
+ */
1264
+ setRebalancer: (params: CallParams<BridgeArgs["obj"]["setRebalancer(address)void"] | BridgeArgs["tuple"]["setRebalancer(address)void"]> & {
1265
+ onComplete?: OnApplicationComplete.NoOpOC;
1266
+ }) => Promise<AppCallMethodCall>;
1267
+ /**
1268
+ * Makes a call to the Bridge smart contract using the `getGasUsage(byte)uint64` ABI method.
1269
+ *
1270
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1271
+ *
1272
+ * @param params The params for the smart contract call
1273
+ * @returns The call params
1274
+ */
1275
+ getGasUsage: (params: CallParams<BridgeArgs["obj"]["getGasUsage(byte)uint64"] | BridgeArgs["tuple"]["getGasUsage(byte)uint64"]> & {
1276
+ onComplete?: OnApplicationComplete.NoOpOC;
1277
+ }) => Promise<AppCallMethodCall>;
1278
+ /**
1279
+ * Makes a call to the Bridge smart contract using the `setGasUsage(byte,uint64)void` ABI method.
1280
+ *
1281
+ * @param params The params for the smart contract call
1282
+ * @returns The call params
1283
+ */
1284
+ setGasUsage: (params: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]> & {
1285
+ onComplete?: OnApplicationComplete.NoOpOC;
1286
+ }) => Promise<AppCallMethodCall>;
1287
+ /**
1288
+ * Makes a call to the Bridge smart contract using the `setGasOracle(application)void` ABI method.
1289
+ *
1290
+ * @param params The params for the smart contract call
1291
+ * @returns The call params
1292
+ */
1293
+ setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & {
1294
+ onComplete?: OnApplicationComplete.NoOpOC;
1295
+ }) => Promise<AppCallMethodCall>;
1296
+ /**
1297
+ * Makes a call to the Bridge smart contract using the `getTransactionRelayerCost(byte)uint64` ABI method.
1298
+ *
1299
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1300
+ *
1301
+ * @param params The params for the smart contract call
1302
+ * @returns The call params
1303
+ */
1304
+ getTransactionRelayerCost: (params: CallParams<BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"]> & {
1305
+ onComplete?: OnApplicationComplete.NoOpOC;
1306
+ }) => Promise<AppCallMethodCall>;
1307
+ /**
1308
+ * Makes a call to the Bridge smart contract using the `transferOwnership(address)void` ABI method.
1309
+ *
1310
+ * @param params The params for the smart contract call
1311
+ * @returns The call params
1312
+ */
1313
+ transferOwnership: (params: CallParams<BridgeArgs["obj"]["transferOwnership(address)void"] | BridgeArgs["tuple"]["transferOwnership(address)void"]> & {
1314
+ onComplete?: OnApplicationComplete.NoOpOC;
1315
+ }) => Promise<AppCallMethodCall>;
1316
+ };
1317
+ /**
1318
+ * Create transactions for the current app
1319
+ */
1320
+ readonly createTransaction: {
1321
+ /**
1322
+ * Makes a clear_state call to an existing instance of the Bridge smart contract.
1323
+ *
1324
+ * @param params The params for the bare (raw) call
1325
+ * @returns The clearState result
1326
+ */
1327
+ clearState: (params?: Expand<AppClientBareCallParams>) => Promise<Transaction>;
1328
+ /**
1329
+ * Makes a call to the Bridge smart contract using the `optInAsset(uint64)void` ABI method.
1330
+ *
1331
+ * @param params The params for the smart contract call
1332
+ * @returns The call transaction
1333
+ */
1334
+ optInAsset: (params: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]> & {
1335
+ onComplete?: OnApplicationComplete.NoOpOC;
1336
+ }) => Promise<{
1337
+ transactions: Transaction[];
1338
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1339
+ signers: Map<number, TransactionSigner>;
1340
+ }>;
1341
+ /**
1342
+ * Makes a call to the Bridge smart contract using the `noop()void` ABI method.
1343
+ *
1344
+ * @param params The params for the smart contract call
1345
+ * @returns The call transaction
1346
+ */
1347
+ noop: (params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & {
1348
+ onComplete?: OnApplicationComplete.NoOpOC;
1349
+ }) => Promise<{
1350
+ transactions: Transaction[];
1351
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1352
+ signers: Map<number, TransactionSigner>;
1353
+ }>;
1354
+ /**
1355
+ * Makes a call to the Bridge smart contract using the `swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
1356
+ *
1357
+ * @param params The params for the smart contract call
1358
+ * @returns The call transaction
1359
+ */
1360
+ swapAndBridge: (params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
1361
+ onComplete?: OnApplicationComplete.NoOpOC;
1362
+ }) => Promise<{
1363
+ transactions: Transaction[];
1364
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1365
+ signers: Map<number, TransactionSigner>;
1366
+ }>;
1367
+ /**
1368
+ * Makes a call to the Bridge smart contract using the `receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
1369
+ *
1370
+ * @param params The params for the smart contract call
1371
+ * @returns The call transaction
1372
+ */
1373
+ receiveTokens: (params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
1374
+ onComplete?: OnApplicationComplete.NoOpOC;
1375
+ }) => Promise<{
1376
+ transactions: Transaction[];
1377
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1378
+ signers: Map<number, TransactionSigner>;
1379
+ }>;
1380
+ /**
1381
+ * Makes a call to the Bridge smart contract using the `registerBridge(byte,byte[32])void` ABI method.
1382
+ *
1383
+ * @param params The params for the smart contract call
1384
+ * @returns The call transaction
1385
+ */
1386
+ registerBridge: (params: CallParams<BridgeArgs["obj"]["registerBridge(byte,byte[32])void"] | BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"]> & {
1387
+ onComplete?: OnApplicationComplete.NoOpOC;
1388
+ }) => Promise<{
1389
+ transactions: Transaction[];
1390
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1391
+ signers: Map<number, TransactionSigner>;
1392
+ }>;
1393
+ /**
1394
+ * Makes a call to the Bridge smart contract using the `addBridgeToken(byte,byte[32])void` ABI method.
1395
+ *
1396
+ * @param params The params for the smart contract call
1397
+ * @returns The call transaction
1398
+ */
1399
+ addBridgeToken: (params: CallParams<BridgeArgs["obj"]["addBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["addBridgeToken(byte,byte[32])void"]> & {
1400
+ onComplete?: OnApplicationComplete.NoOpOC;
1401
+ }) => Promise<{
1402
+ transactions: Transaction[];
1403
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1404
+ signers: Map<number, TransactionSigner>;
1405
+ }>;
1406
+ /**
1407
+ * Makes a call to the Bridge smart contract using the `removeBridgeToken(byte,byte[32])void` ABI method.
1408
+ *
1409
+ * @param params The params for the smart contract call
1410
+ * @returns The call transaction
1411
+ */
1412
+ removeBridgeToken: (params: CallParams<BridgeArgs["obj"]["removeBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["removeBridgeToken(byte,byte[32])void"]> & {
1413
+ onComplete?: OnApplicationComplete.NoOpOC;
1414
+ }) => Promise<{
1415
+ transactions: Transaction[];
1416
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1417
+ signers: Map<number, TransactionSigner>;
1418
+ }>;
1419
+ /**
1420
+ * Makes a call to the Bridge smart contract using the `withdrawGasTokens(uint64)void` ABI method.
1421
+ *
1422
+ * @param params The params for the smart contract call
1423
+ * @returns The call transaction
1424
+ */
1425
+ withdrawGasTokens: (params: CallParams<BridgeArgs["obj"]["withdrawGasTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawGasTokens(uint64)void"]> & {
1426
+ onComplete?: OnApplicationComplete.NoOpOC;
1427
+ }) => Promise<{
1428
+ transactions: Transaction[];
1429
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1430
+ signers: Map<number, TransactionSigner>;
1431
+ }>;
1432
+ /**
1433
+ * Makes a call to the Bridge smart contract using the `withdrawBridgingFeeInTokens(uint64)void` ABI method.
1434
+ *
1435
+ * @param params The params for the smart contract call
1436
+ * @returns The call transaction
1437
+ */
1438
+ withdrawBridgingFeeInTokens: (params: CallParams<BridgeArgs["obj"]["withdrawBridgingFeeInTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawBridgingFeeInTokens(uint64)void"]> & {
1439
+ onComplete?: OnApplicationComplete.NoOpOC;
1440
+ }) => Promise<{
1441
+ transactions: Transaction[];
1442
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1443
+ signers: Map<number, TransactionSigner>;
1444
+ }>;
1445
+ /**
1446
+ * Makes a call to the Bridge smart contract using the `getBridgingCostInTokens(byte,uint64)uint64` ABI method.
1447
+ *
1448
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1449
+ *
1450
+ * @param params The params for the smart contract call
1451
+ * @returns The call transaction
1452
+ */
1453
+ getBridgingCostInTokens: (params: CallParams<BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"] | BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"]> & {
1454
+ onComplete?: OnApplicationComplete.NoOpOC;
1455
+ }) => Promise<{
1456
+ transactions: Transaction[];
1457
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1458
+ signers: Map<number, TransactionSigner>;
1459
+ }>;
1460
+ /**
1461
+ * Makes a call to the Bridge smart contract using the `hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]` ABI method.
1462
+ *
1463
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1464
+ *
1465
+ * @param params The params for the smart contract call
1466
+ * @returns The call transaction
1467
+ */
1468
+ hashMessage: (params: CallParams<BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"]> & {
1469
+ onComplete?: OnApplicationComplete.NoOpOC;
1470
+ }) => Promise<{
1471
+ transactions: Transaction[];
1472
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1473
+ signers: Map<number, TransactionSigner>;
1474
+ }>;
1475
+ /**
1476
+ * Makes a call to the Bridge smart contract using the `isOtherBridgeTokenSupported(byte,byte[32])bool` ABI method.
1477
+ *
1478
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1479
+ *
1480
+ * @param params The params for the smart contract call
1481
+ * @returns The call transaction
1482
+ */
1483
+ isOtherBridgeTokenSupported: (params: CallParams<BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"] | BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"]> & {
1484
+ onComplete?: OnApplicationComplete.NoOpOC;
1485
+ }) => Promise<{
1486
+ transactions: Transaction[];
1487
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1488
+ signers: Map<number, TransactionSigner>;
1489
+ }>;
1490
+ /**
1491
+ * Makes a call to the Bridge smart contract using the `getTransactionCost(byte)uint64` ABI method.
1492
+ *
1493
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1494
+ *
1495
+ * @param params The params for the smart contract call
1496
+ * @returns The call transaction
1497
+ */
1498
+ getTransactionCost: (params: CallParams<BridgeArgs["obj"]["getTransactionCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionCost(byte)uint64"]> & {
1499
+ onComplete?: OnApplicationComplete.NoOpOC;
1500
+ }) => Promise<{
1501
+ transactions: Transaction[];
1502
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1503
+ signers: Map<number, TransactionSigner>;
1504
+ }>;
1505
+ /**
1506
+ * Makes a call to the Bridge smart contract using the `getReceiveTokensCost()uint64` ABI method.
1507
+ *
1508
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1509
+ *
1510
+ * @param params The params for the smart contract call
1511
+ * @returns The call transaction
1512
+ */
1513
+ getReceiveTokensCost: (params?: CallParams<BridgeArgs["obj"]["getReceiveTokensCost()uint64"] | BridgeArgs["tuple"]["getReceiveTokensCost()uint64"]> & {
1514
+ onComplete?: OnApplicationComplete.NoOpOC;
1515
+ }) => Promise<{
1516
+ transactions: Transaction[];
1517
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1518
+ signers: Map<number, TransactionSigner>;
1519
+ }>;
1520
+ /**
1521
+ * Makes a call to the Bridge smart contract using the `getSendTransactionStorageCost()uint64` ABI method.
1522
+ *
1523
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1524
+ *
1525
+ * @param params The params for the smart contract call
1526
+ * @returns The call transaction
1527
+ */
1528
+ getSendTransactionStorageCost: (params?: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]> & {
1529
+ onComplete?: OnApplicationComplete.NoOpOC;
1530
+ }) => Promise<{
1531
+ transactions: Transaction[];
1532
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1533
+ signers: Map<number, TransactionSigner>;
1534
+ }>;
1535
+ /**
1536
+ * Makes a call to the Bridge smart contract using the `swap(uint64,uint64,address,uint64)void` ABI method.
1537
+ *
1538
+ * @param params The params for the smart contract call
1539
+ * @returns The call transaction
1540
+ */
1541
+ swap: (params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & {
1542
+ onComplete?: OnApplicationComplete.NoOpOC;
1543
+ }) => Promise<{
1544
+ transactions: Transaction[];
1545
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1546
+ signers: Map<number, TransactionSigner>;
1547
+ }>;
1548
+ /**
1549
+ * Makes a call to the Bridge smart contract using the `addPool(uint64,uint64)void` ABI method.
1550
+ *
1551
+ * @param params The params for the smart contract call
1552
+ * @returns The call transaction
1553
+ */
1554
+ addPool: (params: CallParams<BridgeArgs["obj"]["addPool(uint64,uint64)void"] | BridgeArgs["tuple"]["addPool(uint64,uint64)void"]> & {
1555
+ onComplete?: OnApplicationComplete.NoOpOC;
1556
+ }) => Promise<{
1557
+ transactions: Transaction[];
1558
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1559
+ signers: Map<number, TransactionSigner>;
1560
+ }>;
1561
+ /**
1562
+ * Makes a call to the Bridge smart contract using the `removePool(uint64)void` ABI method.
1563
+ *
1564
+ * @param params The params for the smart contract call
1565
+ * @returns The call transaction
1566
+ */
1567
+ removePool: (params: CallParams<BridgeArgs["obj"]["removePool(uint64)void"] | BridgeArgs["tuple"]["removePool(uint64)void"]> & {
1568
+ onComplete?: OnApplicationComplete.NoOpOC;
1569
+ }) => Promise<{
1570
+ transactions: Transaction[];
1571
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1572
+ signers: Map<number, TransactionSigner>;
1573
+ }>;
1574
+ /**
1575
+ * Makes a call to the Bridge smart contract using the `stopSwap()void` ABI method.
1576
+ *
1577
+ * @param params The params for the smart contract call
1578
+ * @returns The call transaction
1579
+ */
1580
+ stopSwap: (params?: CallParams<BridgeArgs["obj"]["stopSwap()void"] | BridgeArgs["tuple"]["stopSwap()void"]> & {
1581
+ onComplete?: OnApplicationComplete.NoOpOC;
1582
+ }) => Promise<{
1583
+ transactions: Transaction[];
1584
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1585
+ signers: Map<number, TransactionSigner>;
1586
+ }>;
1587
+ /**
1588
+ * Makes a call to the Bridge smart contract using the `startSwap()void` ABI method.
1589
+ *
1590
+ * @param params The params for the smart contract call
1591
+ * @returns The call transaction
1592
+ */
1593
+ startSwap: (params?: CallParams<BridgeArgs["obj"]["startSwap()void"] | BridgeArgs["tuple"]["startSwap()void"]> & {
1594
+ onComplete?: OnApplicationComplete.NoOpOC;
1595
+ }) => Promise<{
1596
+ transactions: Transaction[];
1597
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1598
+ signers: Map<number, TransactionSigner>;
1599
+ }>;
1600
+ /**
1601
+ * Makes a call to the Bridge smart contract using the `setStopAuthority(address)void` ABI method.
1602
+ *
1603
+ * @param params The params for the smart contract call
1604
+ * @returns The call transaction
1605
+ */
1606
+ setStopAuthority: (params: CallParams<BridgeArgs["obj"]["setStopAuthority(address)void"] | BridgeArgs["tuple"]["setStopAuthority(address)void"]> & {
1607
+ onComplete?: OnApplicationComplete.NoOpOC;
1608
+ }) => Promise<{
1609
+ transactions: Transaction[];
1610
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1611
+ signers: Map<number, TransactionSigner>;
1612
+ }>;
1613
+ /**
1614
+ * Makes a call to the Bridge smart contract using the `setRebalancer(address)void` ABI method.
1615
+ *
1616
+ * @param params The params for the smart contract call
1617
+ * @returns The call transaction
1618
+ */
1619
+ setRebalancer: (params: CallParams<BridgeArgs["obj"]["setRebalancer(address)void"] | BridgeArgs["tuple"]["setRebalancer(address)void"]> & {
1620
+ onComplete?: OnApplicationComplete.NoOpOC;
1621
+ }) => Promise<{
1622
+ transactions: Transaction[];
1623
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1624
+ signers: Map<number, TransactionSigner>;
1625
+ }>;
1626
+ /**
1627
+ * Makes a call to the Bridge smart contract using the `getGasUsage(byte)uint64` ABI method.
1628
+ *
1629
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1630
+ *
1631
+ * @param params The params for the smart contract call
1632
+ * @returns The call transaction
1633
+ */
1634
+ getGasUsage: (params: CallParams<BridgeArgs["obj"]["getGasUsage(byte)uint64"] | BridgeArgs["tuple"]["getGasUsage(byte)uint64"]> & {
1635
+ onComplete?: OnApplicationComplete.NoOpOC;
1636
+ }) => Promise<{
1637
+ transactions: Transaction[];
1638
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1639
+ signers: Map<number, TransactionSigner>;
1640
+ }>;
1641
+ /**
1642
+ * Makes a call to the Bridge smart contract using the `setGasUsage(byte,uint64)void` ABI method.
1643
+ *
1644
+ * @param params The params for the smart contract call
1645
+ * @returns The call transaction
1646
+ */
1647
+ setGasUsage: (params: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]> & {
1648
+ onComplete?: OnApplicationComplete.NoOpOC;
1649
+ }) => Promise<{
1650
+ transactions: Transaction[];
1651
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1652
+ signers: Map<number, TransactionSigner>;
1653
+ }>;
1654
+ /**
1655
+ * Makes a call to the Bridge smart contract using the `setGasOracle(application)void` ABI method.
1656
+ *
1657
+ * @param params The params for the smart contract call
1658
+ * @returns The call transaction
1659
+ */
1660
+ setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & {
1661
+ onComplete?: OnApplicationComplete.NoOpOC;
1662
+ }) => Promise<{
1663
+ transactions: Transaction[];
1664
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1665
+ signers: Map<number, TransactionSigner>;
1666
+ }>;
1667
+ /**
1668
+ * Makes a call to the Bridge smart contract using the `getTransactionRelayerCost(byte)uint64` ABI method.
1669
+ *
1670
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1671
+ *
1672
+ * @param params The params for the smart contract call
1673
+ * @returns The call transaction
1674
+ */
1675
+ getTransactionRelayerCost: (params: CallParams<BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"]> & {
1676
+ onComplete?: OnApplicationComplete.NoOpOC;
1677
+ }) => Promise<{
1678
+ transactions: Transaction[];
1679
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1680
+ signers: Map<number, TransactionSigner>;
1681
+ }>;
1682
+ /**
1683
+ * Makes a call to the Bridge smart contract using the `transferOwnership(address)void` ABI method.
1684
+ *
1685
+ * @param params The params for the smart contract call
1686
+ * @returns The call transaction
1687
+ */
1688
+ transferOwnership: (params: CallParams<BridgeArgs["obj"]["transferOwnership(address)void"] | BridgeArgs["tuple"]["transferOwnership(address)void"]> & {
1689
+ onComplete?: OnApplicationComplete.NoOpOC;
1690
+ }) => Promise<{
1691
+ transactions: Transaction[];
1692
+ methodCalls: Map<number, import("algosdk").ABIMethod>;
1693
+ signers: Map<number, TransactionSigner>;
1694
+ }>;
1695
+ };
1696
+ /**
1697
+ * Send calls to the current app
1698
+ */
1699
+ readonly send: {
1700
+ /**
1701
+ * Makes a clear_state call to an existing instance of the Bridge smart contract.
1702
+ *
1703
+ * @param params The params for the bare (raw) call
1704
+ * @returns The clearState result
1705
+ */
1706
+ clearState: (params?: Expand<AppClientBareCallParams & SendParams>) => Promise<{
1707
+ groupId: string;
1708
+ txIds: string[];
1709
+ returns?: ABIReturn[] | undefined;
1710
+ confirmations: modelsv2.PendingTransactionResponse[];
1711
+ transactions: Transaction[];
1712
+ confirmation: modelsv2.PendingTransactionResponse;
1713
+ transaction: Transaction;
1714
+ return?: ABIReturn | undefined;
1715
+ }>;
1716
+ /**
1717
+ * Makes a call to the Bridge smart contract using the `optInAsset(uint64)void` ABI method.
1718
+ *
1719
+ * @param params The params for the smart contract call
1720
+ * @returns The call result
1721
+ */
1722
+ optInAsset: (params: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]> & SendParams & {
1723
+ onComplete?: OnApplicationComplete.NoOpOC;
1724
+ }) => Promise<{
1725
+ return: undefined | BridgeReturns["optInAsset(uint64)void"];
1726
+ confirmations: modelsv2.PendingTransactionResponse[];
1727
+ returns?: ABIReturn[] | undefined;
1728
+ groupId: string;
1729
+ txIds: string[];
1730
+ transactions: Transaction[];
1731
+ confirmation: modelsv2.PendingTransactionResponse;
1732
+ transaction: Transaction;
1733
+ }>;
1734
+ /**
1735
+ * Makes a call to the Bridge smart contract using the `noop()void` ABI method.
1736
+ *
1737
+ * @param params The params for the smart contract call
1738
+ * @returns The call result
1739
+ */
1740
+ noop: (params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & SendParams & {
1741
+ onComplete?: OnApplicationComplete.NoOpOC;
1742
+ }) => Promise<{
1743
+ return: undefined | BridgeReturns["noop()void"];
1744
+ confirmations: modelsv2.PendingTransactionResponse[];
1745
+ returns?: ABIReturn[] | undefined;
1746
+ groupId: string;
1747
+ txIds: string[];
1748
+ transactions: Transaction[];
1749
+ confirmation: modelsv2.PendingTransactionResponse;
1750
+ transaction: Transaction;
1751
+ }>;
1752
+ /**
1753
+ * Makes a call to the Bridge smart contract using the `swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
1754
+ *
1755
+ * @param params The params for the smart contract call
1756
+ * @returns The call result
1757
+ */
1758
+ swapAndBridge: (params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & SendParams & {
1759
+ onComplete?: OnApplicationComplete.NoOpOC;
1760
+ }) => Promise<{
1761
+ return: undefined | BridgeReturns["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
1762
+ confirmations: modelsv2.PendingTransactionResponse[];
1763
+ returns?: ABIReturn[] | undefined;
1764
+ groupId: string;
1765
+ txIds: string[];
1766
+ transactions: Transaction[];
1767
+ confirmation: modelsv2.PendingTransactionResponse;
1768
+ transaction: Transaction;
1769
+ }>;
1770
+ /**
1771
+ * Makes a call to the Bridge smart contract using the `receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
1772
+ *
1773
+ * @param params The params for the smart contract call
1774
+ * @returns The call result
1775
+ */
1776
+ receiveTokens: (params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & SendParams & {
1777
+ onComplete?: OnApplicationComplete.NoOpOC;
1778
+ }) => Promise<{
1779
+ return: undefined | BridgeReturns["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
1780
+ confirmations: modelsv2.PendingTransactionResponse[];
1781
+ returns?: ABIReturn[] | undefined;
1782
+ groupId: string;
1783
+ txIds: string[];
1784
+ transactions: Transaction[];
1785
+ confirmation: modelsv2.PendingTransactionResponse;
1786
+ transaction: Transaction;
1787
+ }>;
1788
+ /**
1789
+ * Makes a call to the Bridge smart contract using the `registerBridge(byte,byte[32])void` ABI method.
1790
+ *
1791
+ * @param params The params for the smart contract call
1792
+ * @returns The call result
1793
+ */
1794
+ registerBridge: (params: CallParams<BridgeArgs["obj"]["registerBridge(byte,byte[32])void"] | BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"]> & SendParams & {
1795
+ onComplete?: OnApplicationComplete.NoOpOC;
1796
+ }) => Promise<{
1797
+ return: undefined | BridgeReturns["registerBridge(byte,byte[32])void"];
1798
+ confirmations: modelsv2.PendingTransactionResponse[];
1799
+ returns?: ABIReturn[] | undefined;
1800
+ groupId: string;
1801
+ txIds: string[];
1802
+ transactions: Transaction[];
1803
+ confirmation: modelsv2.PendingTransactionResponse;
1804
+ transaction: Transaction;
1805
+ }>;
1806
+ /**
1807
+ * Makes a call to the Bridge smart contract using the `addBridgeToken(byte,byte[32])void` ABI method.
1808
+ *
1809
+ * @param params The params for the smart contract call
1810
+ * @returns The call result
1811
+ */
1812
+ addBridgeToken: (params: CallParams<BridgeArgs["obj"]["addBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["addBridgeToken(byte,byte[32])void"]> & SendParams & {
1813
+ onComplete?: OnApplicationComplete.NoOpOC;
1814
+ }) => Promise<{
1815
+ return: undefined | BridgeReturns["addBridgeToken(byte,byte[32])void"];
1816
+ confirmations: modelsv2.PendingTransactionResponse[];
1817
+ returns?: ABIReturn[] | undefined;
1818
+ groupId: string;
1819
+ txIds: string[];
1820
+ transactions: Transaction[];
1821
+ confirmation: modelsv2.PendingTransactionResponse;
1822
+ transaction: Transaction;
1823
+ }>;
1824
+ /**
1825
+ * Makes a call to the Bridge smart contract using the `removeBridgeToken(byte,byte[32])void` ABI method.
1826
+ *
1827
+ * @param params The params for the smart contract call
1828
+ * @returns The call result
1829
+ */
1830
+ removeBridgeToken: (params: CallParams<BridgeArgs["obj"]["removeBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["removeBridgeToken(byte,byte[32])void"]> & SendParams & {
1831
+ onComplete?: OnApplicationComplete.NoOpOC;
1832
+ }) => Promise<{
1833
+ return: undefined | BridgeReturns["removeBridgeToken(byte,byte[32])void"];
1834
+ confirmations: modelsv2.PendingTransactionResponse[];
1835
+ returns?: ABIReturn[] | undefined;
1836
+ groupId: string;
1837
+ txIds: string[];
1838
+ transactions: Transaction[];
1839
+ confirmation: modelsv2.PendingTransactionResponse;
1840
+ transaction: Transaction;
1841
+ }>;
1842
+ /**
1843
+ * Makes a call to the Bridge smart contract using the `withdrawGasTokens(uint64)void` ABI method.
1844
+ *
1845
+ * @param params The params for the smart contract call
1846
+ * @returns The call result
1847
+ */
1848
+ withdrawGasTokens: (params: CallParams<BridgeArgs["obj"]["withdrawGasTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawGasTokens(uint64)void"]> & SendParams & {
1849
+ onComplete?: OnApplicationComplete.NoOpOC;
1850
+ }) => Promise<{
1851
+ return: undefined | BridgeReturns["withdrawGasTokens(uint64)void"];
1852
+ confirmations: modelsv2.PendingTransactionResponse[];
1853
+ returns?: ABIReturn[] | undefined;
1854
+ groupId: string;
1855
+ txIds: string[];
1856
+ transactions: Transaction[];
1857
+ confirmation: modelsv2.PendingTransactionResponse;
1858
+ transaction: Transaction;
1859
+ }>;
1860
+ /**
1861
+ * Makes a call to the Bridge smart contract using the `withdrawBridgingFeeInTokens(uint64)void` ABI method.
1862
+ *
1863
+ * @param params The params for the smart contract call
1864
+ * @returns The call result
1865
+ */
1866
+ withdrawBridgingFeeInTokens: (params: CallParams<BridgeArgs["obj"]["withdrawBridgingFeeInTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawBridgingFeeInTokens(uint64)void"]> & SendParams & {
1867
+ onComplete?: OnApplicationComplete.NoOpOC;
1868
+ }) => Promise<{
1869
+ return: undefined | BridgeReturns["withdrawBridgingFeeInTokens(uint64)void"];
1870
+ confirmations: modelsv2.PendingTransactionResponse[];
1871
+ returns?: ABIReturn[] | undefined;
1872
+ groupId: string;
1873
+ txIds: string[];
1874
+ transactions: Transaction[];
1875
+ confirmation: modelsv2.PendingTransactionResponse;
1876
+ transaction: Transaction;
1877
+ }>;
1878
+ /**
1879
+ * Makes a call to the Bridge smart contract using the `getBridgingCostInTokens(byte,uint64)uint64` ABI method.
1880
+ *
1881
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1882
+ *
1883
+ * @param params The params for the smart contract call
1884
+ * @returns The call result
1885
+ */
1886
+ getBridgingCostInTokens: (params: CallParams<BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"] | BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"]> & SendParams & {
1887
+ onComplete?: OnApplicationComplete.NoOpOC;
1888
+ }) => Promise<{
1889
+ return: undefined | BridgeReturns["getBridgingCostInTokens(byte,uint64)uint64"];
1890
+ confirmations: modelsv2.PendingTransactionResponse[];
1891
+ returns?: ABIReturn[] | undefined;
1892
+ groupId: string;
1893
+ txIds: string[];
1894
+ transactions: Transaction[];
1895
+ confirmation: modelsv2.PendingTransactionResponse;
1896
+ transaction: Transaction;
1897
+ }>;
1898
+ /**
1899
+ * Makes a call to the Bridge smart contract using the `hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]` ABI method.
1900
+ *
1901
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1902
+ *
1903
+ * @param params The params for the smart contract call
1904
+ * @returns The call result
1905
+ */
1906
+ hashMessage: (params: CallParams<BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"]> & SendParams & {
1907
+ onComplete?: OnApplicationComplete.NoOpOC;
1908
+ }) => Promise<{
1909
+ return: undefined | BridgeReturns["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"];
1910
+ confirmations: modelsv2.PendingTransactionResponse[];
1911
+ returns?: ABIReturn[] | undefined;
1912
+ groupId: string;
1913
+ txIds: string[];
1914
+ transactions: Transaction[];
1915
+ confirmation: modelsv2.PendingTransactionResponse;
1916
+ transaction: Transaction;
1917
+ }>;
1918
+ /**
1919
+ * Makes a call to the Bridge smart contract using the `isOtherBridgeTokenSupported(byte,byte[32])bool` ABI method.
1920
+ *
1921
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1922
+ *
1923
+ * @param params The params for the smart contract call
1924
+ * @returns The call result
1925
+ */
1926
+ isOtherBridgeTokenSupported: (params: CallParams<BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"] | BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"]> & SendParams & {
1927
+ onComplete?: OnApplicationComplete.NoOpOC;
1928
+ }) => Promise<{
1929
+ return: undefined | BridgeReturns["isOtherBridgeTokenSupported(byte,byte[32])bool"];
1930
+ confirmations: modelsv2.PendingTransactionResponse[];
1931
+ returns?: ABIReturn[] | undefined;
1932
+ groupId: string;
1933
+ txIds: string[];
1934
+ transactions: Transaction[];
1935
+ confirmation: modelsv2.PendingTransactionResponse;
1936
+ transaction: Transaction;
1937
+ }>;
1938
+ /**
1939
+ * Makes a call to the Bridge smart contract using the `getTransactionCost(byte)uint64` ABI method.
1940
+ *
1941
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1942
+ *
1943
+ * @param params The params for the smart contract call
1944
+ * @returns The call result
1945
+ */
1946
+ getTransactionCost: (params: CallParams<BridgeArgs["obj"]["getTransactionCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionCost(byte)uint64"]> & SendParams & {
1947
+ onComplete?: OnApplicationComplete.NoOpOC;
1948
+ }) => Promise<{
1949
+ return: undefined | BridgeReturns["getTransactionCost(byte)uint64"];
1950
+ confirmations: modelsv2.PendingTransactionResponse[];
1951
+ returns?: ABIReturn[] | undefined;
1952
+ groupId: string;
1953
+ txIds: string[];
1954
+ transactions: Transaction[];
1955
+ confirmation: modelsv2.PendingTransactionResponse;
1956
+ transaction: Transaction;
1957
+ }>;
1958
+ /**
1959
+ * Makes a call to the Bridge smart contract using the `getReceiveTokensCost()uint64` ABI method.
1960
+ *
1961
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1962
+ *
1963
+ * @param params The params for the smart contract call
1964
+ * @returns The call result
1965
+ */
1966
+ getReceiveTokensCost: (params?: CallParams<BridgeArgs["obj"]["getReceiveTokensCost()uint64"] | BridgeArgs["tuple"]["getReceiveTokensCost()uint64"]> & SendParams & {
1967
+ onComplete?: OnApplicationComplete.NoOpOC;
1968
+ }) => Promise<{
1969
+ return: undefined | BridgeReturns["getReceiveTokensCost()uint64"];
1970
+ confirmations: modelsv2.PendingTransactionResponse[];
1971
+ returns?: ABIReturn[] | undefined;
1972
+ groupId: string;
1973
+ txIds: string[];
1974
+ transactions: Transaction[];
1975
+ confirmation: modelsv2.PendingTransactionResponse;
1976
+ transaction: Transaction;
1977
+ }>;
1978
+ /**
1979
+ * Makes a call to the Bridge smart contract using the `getSendTransactionStorageCost()uint64` ABI method.
1980
+ *
1981
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
1982
+ *
1983
+ * @param params The params for the smart contract call
1984
+ * @returns The call result
1985
+ */
1986
+ getSendTransactionStorageCost: (params?: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]> & SendParams & {
1987
+ onComplete?: OnApplicationComplete.NoOpOC;
1988
+ }) => Promise<{
1989
+ return: undefined | BridgeReturns["getSendTransactionStorageCost()uint64"];
1990
+ confirmations: modelsv2.PendingTransactionResponse[];
1991
+ returns?: ABIReturn[] | undefined;
1992
+ groupId: string;
1993
+ txIds: string[];
1994
+ transactions: Transaction[];
1995
+ confirmation: modelsv2.PendingTransactionResponse;
1996
+ transaction: Transaction;
1997
+ }>;
1998
+ /**
1999
+ * Makes a call to the Bridge smart contract using the `swap(uint64,uint64,address,uint64)void` ABI method.
2000
+ *
2001
+ * @param params The params for the smart contract call
2002
+ * @returns The call result
2003
+ */
2004
+ swap: (params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & SendParams & {
2005
+ onComplete?: OnApplicationComplete.NoOpOC;
2006
+ }) => Promise<{
2007
+ return: undefined | BridgeReturns["swap(uint64,uint64,address,uint64)void"];
2008
+ confirmations: modelsv2.PendingTransactionResponse[];
2009
+ returns?: ABIReturn[] | undefined;
2010
+ groupId: string;
2011
+ txIds: string[];
2012
+ transactions: Transaction[];
2013
+ confirmation: modelsv2.PendingTransactionResponse;
2014
+ transaction: Transaction;
2015
+ }>;
2016
+ /**
2017
+ * Makes a call to the Bridge smart contract using the `addPool(uint64,uint64)void` ABI method.
2018
+ *
2019
+ * @param params The params for the smart contract call
2020
+ * @returns The call result
2021
+ */
2022
+ addPool: (params: CallParams<BridgeArgs["obj"]["addPool(uint64,uint64)void"] | BridgeArgs["tuple"]["addPool(uint64,uint64)void"]> & SendParams & {
2023
+ onComplete?: OnApplicationComplete.NoOpOC;
2024
+ }) => Promise<{
2025
+ return: undefined | BridgeReturns["addPool(uint64,uint64)void"];
2026
+ confirmations: modelsv2.PendingTransactionResponse[];
2027
+ returns?: ABIReturn[] | undefined;
2028
+ groupId: string;
2029
+ txIds: string[];
2030
+ transactions: Transaction[];
2031
+ confirmation: modelsv2.PendingTransactionResponse;
2032
+ transaction: Transaction;
2033
+ }>;
2034
+ /**
2035
+ * Makes a call to the Bridge smart contract using the `removePool(uint64)void` ABI method.
2036
+ *
2037
+ * @param params The params for the smart contract call
2038
+ * @returns The call result
2039
+ */
2040
+ removePool: (params: CallParams<BridgeArgs["obj"]["removePool(uint64)void"] | BridgeArgs["tuple"]["removePool(uint64)void"]> & SendParams & {
2041
+ onComplete?: OnApplicationComplete.NoOpOC;
2042
+ }) => Promise<{
2043
+ return: undefined | BridgeReturns["removePool(uint64)void"];
2044
+ confirmations: modelsv2.PendingTransactionResponse[];
2045
+ returns?: ABIReturn[] | undefined;
2046
+ groupId: string;
2047
+ txIds: string[];
2048
+ transactions: Transaction[];
2049
+ confirmation: modelsv2.PendingTransactionResponse;
2050
+ transaction: Transaction;
2051
+ }>;
2052
+ /**
2053
+ * Makes a call to the Bridge smart contract using the `stopSwap()void` ABI method.
2054
+ *
2055
+ * @param params The params for the smart contract call
2056
+ * @returns The call result
2057
+ */
2058
+ stopSwap: (params?: CallParams<BridgeArgs["obj"]["stopSwap()void"] | BridgeArgs["tuple"]["stopSwap()void"]> & SendParams & {
2059
+ onComplete?: OnApplicationComplete.NoOpOC;
2060
+ }) => Promise<{
2061
+ return: undefined | BridgeReturns["stopSwap()void"];
2062
+ confirmations: modelsv2.PendingTransactionResponse[];
2063
+ returns?: ABIReturn[] | undefined;
2064
+ groupId: string;
2065
+ txIds: string[];
2066
+ transactions: Transaction[];
2067
+ confirmation: modelsv2.PendingTransactionResponse;
2068
+ transaction: Transaction;
2069
+ }>;
2070
+ /**
2071
+ * Makes a call to the Bridge smart contract using the `startSwap()void` ABI method.
2072
+ *
2073
+ * @param params The params for the smart contract call
2074
+ * @returns The call result
2075
+ */
2076
+ startSwap: (params?: CallParams<BridgeArgs["obj"]["startSwap()void"] | BridgeArgs["tuple"]["startSwap()void"]> & SendParams & {
2077
+ onComplete?: OnApplicationComplete.NoOpOC;
2078
+ }) => Promise<{
2079
+ return: undefined | BridgeReturns["startSwap()void"];
2080
+ confirmations: modelsv2.PendingTransactionResponse[];
2081
+ returns?: ABIReturn[] | undefined;
2082
+ groupId: string;
2083
+ txIds: string[];
2084
+ transactions: Transaction[];
2085
+ confirmation: modelsv2.PendingTransactionResponse;
2086
+ transaction: Transaction;
2087
+ }>;
2088
+ /**
2089
+ * Makes a call to the Bridge smart contract using the `setStopAuthority(address)void` ABI method.
2090
+ *
2091
+ * @param params The params for the smart contract call
2092
+ * @returns The call result
2093
+ */
2094
+ setStopAuthority: (params: CallParams<BridgeArgs["obj"]["setStopAuthority(address)void"] | BridgeArgs["tuple"]["setStopAuthority(address)void"]> & SendParams & {
2095
+ onComplete?: OnApplicationComplete.NoOpOC;
2096
+ }) => Promise<{
2097
+ return: undefined | BridgeReturns["setStopAuthority(address)void"];
2098
+ confirmations: modelsv2.PendingTransactionResponse[];
2099
+ returns?: ABIReturn[] | undefined;
2100
+ groupId: string;
2101
+ txIds: string[];
2102
+ transactions: Transaction[];
2103
+ confirmation: modelsv2.PendingTransactionResponse;
2104
+ transaction: Transaction;
2105
+ }>;
2106
+ /**
2107
+ * Makes a call to the Bridge smart contract using the `setRebalancer(address)void` ABI method.
2108
+ *
2109
+ * @param params The params for the smart contract call
2110
+ * @returns The call result
2111
+ */
2112
+ setRebalancer: (params: CallParams<BridgeArgs["obj"]["setRebalancer(address)void"] | BridgeArgs["tuple"]["setRebalancer(address)void"]> & SendParams & {
2113
+ onComplete?: OnApplicationComplete.NoOpOC;
2114
+ }) => Promise<{
2115
+ return: undefined | BridgeReturns["setRebalancer(address)void"];
2116
+ confirmations: modelsv2.PendingTransactionResponse[];
2117
+ returns?: ABIReturn[] | undefined;
2118
+ groupId: string;
2119
+ txIds: string[];
2120
+ transactions: Transaction[];
2121
+ confirmation: modelsv2.PendingTransactionResponse;
2122
+ transaction: Transaction;
2123
+ }>;
2124
+ /**
2125
+ * Makes a call to the Bridge smart contract using the `getGasUsage(byte)uint64` ABI method.
2126
+ *
2127
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2128
+ *
2129
+ * @param params The params for the smart contract call
2130
+ * @returns The call result
2131
+ */
2132
+ getGasUsage: (params: CallParams<BridgeArgs["obj"]["getGasUsage(byte)uint64"] | BridgeArgs["tuple"]["getGasUsage(byte)uint64"]> & SendParams & {
2133
+ onComplete?: OnApplicationComplete.NoOpOC;
2134
+ }) => Promise<{
2135
+ return: undefined | BridgeReturns["getGasUsage(byte)uint64"];
2136
+ confirmations: modelsv2.PendingTransactionResponse[];
2137
+ returns?: ABIReturn[] | undefined;
2138
+ groupId: string;
2139
+ txIds: string[];
2140
+ transactions: Transaction[];
2141
+ confirmation: modelsv2.PendingTransactionResponse;
2142
+ transaction: Transaction;
2143
+ }>;
2144
+ /**
2145
+ * Makes a call to the Bridge smart contract using the `setGasUsage(byte,uint64)void` ABI method.
2146
+ *
2147
+ * @param params The params for the smart contract call
2148
+ * @returns The call result
2149
+ */
2150
+ setGasUsage: (params: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]> & SendParams & {
2151
+ onComplete?: OnApplicationComplete.NoOpOC;
2152
+ }) => Promise<{
2153
+ return: undefined | BridgeReturns["setGasUsage(byte,uint64)void"];
2154
+ confirmations: modelsv2.PendingTransactionResponse[];
2155
+ returns?: ABIReturn[] | undefined;
2156
+ groupId: string;
2157
+ txIds: string[];
2158
+ transactions: Transaction[];
2159
+ confirmation: modelsv2.PendingTransactionResponse;
2160
+ transaction: Transaction;
2161
+ }>;
2162
+ /**
2163
+ * Makes a call to the Bridge smart contract using the `setGasOracle(application)void` ABI method.
2164
+ *
2165
+ * @param params The params for the smart contract call
2166
+ * @returns The call result
2167
+ */
2168
+ setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & SendParams & {
2169
+ onComplete?: OnApplicationComplete.NoOpOC;
2170
+ }) => Promise<{
2171
+ return: undefined | BridgeReturns["setGasOracle(application)void"];
2172
+ confirmations: modelsv2.PendingTransactionResponse[];
2173
+ returns?: ABIReturn[] | undefined;
2174
+ groupId: string;
2175
+ txIds: string[];
2176
+ transactions: Transaction[];
2177
+ confirmation: modelsv2.PendingTransactionResponse;
2178
+ transaction: Transaction;
2179
+ }>;
2180
+ /**
2181
+ * Makes a call to the Bridge smart contract using the `getTransactionRelayerCost(byte)uint64` ABI method.
2182
+ *
2183
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2184
+ *
2185
+ * @param params The params for the smart contract call
2186
+ * @returns The call result
2187
+ */
2188
+ getTransactionRelayerCost: (params: CallParams<BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"]> & SendParams & {
2189
+ onComplete?: OnApplicationComplete.NoOpOC;
2190
+ }) => Promise<{
2191
+ return: undefined | BridgeReturns["getTransactionRelayerCost(byte)uint64"];
2192
+ confirmations: modelsv2.PendingTransactionResponse[];
2193
+ returns?: ABIReturn[] | undefined;
2194
+ groupId: string;
2195
+ txIds: string[];
2196
+ transactions: Transaction[];
2197
+ confirmation: modelsv2.PendingTransactionResponse;
2198
+ transaction: Transaction;
2199
+ }>;
2200
+ /**
2201
+ * Makes a call to the Bridge smart contract using the `transferOwnership(address)void` ABI method.
2202
+ *
2203
+ * @param params The params for the smart contract call
2204
+ * @returns The call result
2205
+ */
2206
+ transferOwnership: (params: CallParams<BridgeArgs["obj"]["transferOwnership(address)void"] | BridgeArgs["tuple"]["transferOwnership(address)void"]> & SendParams & {
2207
+ onComplete?: OnApplicationComplete.NoOpOC;
2208
+ }) => Promise<{
2209
+ return: undefined | BridgeReturns["transferOwnership(address)void"];
2210
+ confirmations: modelsv2.PendingTransactionResponse[];
2211
+ returns?: ABIReturn[] | undefined;
2212
+ groupId: string;
2213
+ txIds: string[];
2214
+ transactions: Transaction[];
2215
+ confirmation: modelsv2.PendingTransactionResponse;
2216
+ transaction: Transaction;
2217
+ }>;
2218
+ };
2219
+ /**
2220
+ * Clone this app client with different params
2221
+ *
2222
+ * @param params The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value.
2223
+ * @returns A new app client with the altered params
2224
+ */
2225
+ clone(params: CloneAppClientParams): BridgeClient;
2226
+ /**
2227
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `getBridgingCostInTokens(byte,uint64)uint64` ABI method.
2228
+ *
2229
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2230
+ *
2231
+ * @param params The params for the smart contract call
2232
+ * @returns The call result
2233
+ */
2234
+ getBridgingCostInTokens(params: CallParams<BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"] | BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"]>): Promise<bigint>;
2235
+ /**
2236
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]` ABI method.
2237
+ *
2238
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2239
+ *
2240
+ * @param params The params for the smart contract call
2241
+ * @returns The call result
2242
+ */
2243
+ hashMessage(params: CallParams<BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"]>): Promise<Uint8Array>;
2244
+ /**
2245
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `isOtherBridgeTokenSupported(byte,byte[32])bool` ABI method.
2246
+ *
2247
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2248
+ *
2249
+ * @param params The params for the smart contract call
2250
+ * @returns The call result
2251
+ */
2252
+ isOtherBridgeTokenSupported(params: CallParams<BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"] | BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"]>): Promise<boolean>;
2253
+ /**
2254
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `getTransactionCost(byte)uint64` ABI method.
2255
+ *
2256
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2257
+ *
2258
+ * @param params The params for the smart contract call
2259
+ * @returns The call result
2260
+ */
2261
+ getTransactionCost(params: CallParams<BridgeArgs["obj"]["getTransactionCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionCost(byte)uint64"]>): Promise<bigint>;
2262
+ /**
2263
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `getReceiveTokensCost()uint64` ABI method.
2264
+ *
2265
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2266
+ *
2267
+ * @param params The params for the smart contract call
2268
+ * @returns The call result
2269
+ */
2270
+ getReceiveTokensCost(params?: CallParams<BridgeArgs["obj"]["getReceiveTokensCost()uint64"] | BridgeArgs["tuple"]["getReceiveTokensCost()uint64"]>): Promise<bigint>;
2271
+ /**
2272
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `getSendTransactionStorageCost()uint64` ABI method.
2273
+ *
2274
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2275
+ *
2276
+ * @param params The params for the smart contract call
2277
+ * @returns The call result
2278
+ */
2279
+ getSendTransactionStorageCost(params?: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]>): Promise<bigint>;
2280
+ /**
2281
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `getGasUsage(byte)uint64` ABI method.
2282
+ *
2283
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2284
+ *
2285
+ * @param params The params for the smart contract call
2286
+ * @returns The call result
2287
+ */
2288
+ getGasUsage(params: CallParams<BridgeArgs["obj"]["getGasUsage(byte)uint64"] | BridgeArgs["tuple"]["getGasUsage(byte)uint64"]>): Promise<bigint>;
2289
+ /**
2290
+ * Makes a readonly (simulated) call to the Bridge smart contract using the `getTransactionRelayerCost(byte)uint64` ABI method.
2291
+ *
2292
+ * This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
2293
+ *
2294
+ * @param params The params for the smart contract call
2295
+ * @returns The call result
2296
+ */
2297
+ getTransactionRelayerCost(params: CallParams<BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"]>): Promise<bigint>;
2298
+ /**
2299
+ * Methods to access state for the current Bridge app
2300
+ */
2301
+ state: {
2302
+ /**
2303
+ * Methods to access global state for the current Bridge app
2304
+ */
2305
+ global: {
2306
+ /**
2307
+ * Get all current keyed values from global state
2308
+ */
2309
+ getAll: () => Promise<Partial<Expand<GlobalKeysState>>>;
2310
+ /**
2311
+ * Get the current value of the chainId key in global state
2312
+ */
2313
+ chainId: () => Promise<number | undefined>;
2314
+ /**
2315
+ * Get the current value of the messenger key in global state
2316
+ */
2317
+ messenger: () => Promise<bigint | undefined>;
2318
+ /**
2319
+ * Get the current value of the stopAuthority key in global state
2320
+ */
2321
+ stopAuthority: () => Promise<string | undefined>;
2322
+ /**
2323
+ * Get the current value of the rebalancer key in global state
2324
+ */
2325
+ rebalancer: () => Promise<string | undefined>;
2326
+ /**
2327
+ * Get the current value of the canSwap key in global state
2328
+ */
2329
+ canSwap: () => Promise<bigint | undefined>;
2330
+ /**
2331
+ * Get the current value of the gasOracle key in global state
2332
+ */
2333
+ gasOracle: () => Promise<bigint | undefined>;
2334
+ /**
2335
+ * Get the current value of the owner key in global state
2336
+ */
2337
+ owner: () => Promise<string | undefined>;
2338
+ };
2339
+ /**
2340
+ * Methods to access box state for the current Bridge app
2341
+ */
2342
+ box: {
2343
+ /**
2344
+ * Get all current keyed values from box state
2345
+ */
2346
+ getAll: () => Promise<Partial<Expand<BoxKeysState>>>;
2347
+ /**
2348
+ * Get values from the processedMessages map in box state
2349
+ */
2350
+ processedMessages: {
2351
+ /**
2352
+ * Get all current values of the processedMessages map in box state
2353
+ */
2354
+ getMap: () => Promise<Map<Uint8Array, Uint8Array>>;
2355
+ /**
2356
+ * Get a current value of the processedMessages map by key from box state
2357
+ */
2358
+ value: (key: Uint8Array) => Promise<Uint8Array | undefined>;
2359
+ };
2360
+ /**
2361
+ * Get values from the sentMessages map in box state
2362
+ */
2363
+ sentMessages: {
2364
+ /**
2365
+ * Get all current values of the sentMessages map in box state
2366
+ */
2367
+ getMap: () => Promise<Map<Uint8Array, Uint8Array>>;
2368
+ /**
2369
+ * Get a current value of the sentMessages map by key from box state
2370
+ */
2371
+ value: (key: Uint8Array) => Promise<Uint8Array | undefined>;
2372
+ };
2373
+ /**
2374
+ * Get values from the otherBridges map in box state
2375
+ */
2376
+ otherBridges: {
2377
+ /**
2378
+ * Get all current values of the otherBridges map in box state
2379
+ */
2380
+ getMap: () => Promise<Map<number, Uint8Array>>;
2381
+ /**
2382
+ * Get a current value of the otherBridges map by key from box state
2383
+ */
2384
+ value: (key: number) => Promise<Uint8Array | undefined>;
2385
+ };
2386
+ /**
2387
+ * Get values from the otherBridgeTokens map in box state
2388
+ */
2389
+ otherBridgeTokens: {
2390
+ /**
2391
+ * Get all current values of the otherBridgeTokens map in box state
2392
+ */
2393
+ getMap: () => Promise<Map<Uint8Array, Uint8Array>>;
2394
+ /**
2395
+ * Get a current value of the otherBridgeTokens map by key from box state
2396
+ */
2397
+ value: (key: Uint8Array | string) => Promise<Uint8Array | undefined>;
2398
+ };
2399
+ /**
2400
+ * Get values from the pools map in box state
2401
+ */
2402
+ pools: {
2403
+ /**
2404
+ * Get all current values of the pools map in box state
2405
+ */
2406
+ getMap: () => Promise<Map<bigint, bigint>>;
2407
+ /**
2408
+ * Get a current value of the pools map by key from box state
2409
+ */
2410
+ value: (key: bigint | number) => Promise<bigint | undefined>;
2411
+ };
2412
+ /**
2413
+ * Get values from the fromGasOracleScalingFactor map in box state
2414
+ */
2415
+ fromGasOracleScalingFactor: {
2416
+ /**
2417
+ * Get all current values of the fromGasOracleScalingFactor map in box state
2418
+ */
2419
+ getMap: () => Promise<Map<bigint, bigint>>;
2420
+ /**
2421
+ * Get a current value of the fromGasOracleScalingFactor map by key from box state
2422
+ */
2423
+ value: (key: bigint | number) => Promise<bigint | undefined>;
2424
+ };
2425
+ /**
2426
+ * Get values from the bridgingFeeConversionScalingFactor map in box state
2427
+ */
2428
+ bridgingFeeConversionScalingFactor: {
2429
+ /**
2430
+ * Get all current values of the bridgingFeeConversionScalingFactor map in box state
2431
+ */
2432
+ getMap: () => Promise<Map<bigint, bigint>>;
2433
+ /**
2434
+ * Get a current value of the bridgingFeeConversionScalingFactor map by key from box state
2435
+ */
2436
+ value: (key: bigint | number) => Promise<bigint | undefined>;
2437
+ };
2438
+ /**
2439
+ * Get values from the gasUsage map in box state
2440
+ */
2441
+ gasUsage: {
2442
+ /**
2443
+ * Get all current values of the gasUsage map in box state
2444
+ */
2445
+ getMap: () => Promise<Map<number, bigint>>;
2446
+ /**
2447
+ * Get a current value of the gasUsage map by key from box state
2448
+ */
2449
+ value: (key: number) => Promise<bigint | undefined>;
2450
+ };
2451
+ };
2452
+ };
2453
+ newGroup(): BridgeComposer;
2454
+ }
2455
+ export type BridgeComposer<TReturns extends [...any[]] = []> = {
2456
+ /**
2457
+ * Calls the optInAsset(uint64)void ABI method.
2458
+ *
2459
+ * @param args The arguments for the contract call
2460
+ * @param params Any additional parameters for the call
2461
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2462
+ */
2463
+ optInAsset(params?: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["optInAsset(uint64)void"] | undefined]>;
2464
+ /**
2465
+ * Calls the noop()void ABI method.
2466
+ *
2467
+ * @param args The arguments for the contract call
2468
+ * @param params Any additional parameters for the call
2469
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2470
+ */
2471
+ noop(params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]>): BridgeComposer<[...TReturns, BridgeReturns["noop()void"] | undefined]>;
2472
+ /**
2473
+ * Calls the swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method.
2474
+ *
2475
+ * @param args The arguments for the contract call
2476
+ * @param params Any additional parameters for the call
2477
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2478
+ */
2479
+ swapAndBridge(params?: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]>): BridgeComposer<[
2480
+ ...TReturns,
2481
+ BridgeReturns["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | undefined
2482
+ ]>;
2483
+ /**
2484
+ * Calls the receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method.
2485
+ *
2486
+ * @param args The arguments for the contract call
2487
+ * @param params Any additional parameters for the call
2488
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2489
+ */
2490
+ receiveTokens(params?: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]>): BridgeComposer<[
2491
+ ...TReturns,
2492
+ BridgeReturns["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | undefined
2493
+ ]>;
2494
+ /**
2495
+ * Calls the registerBridge(byte,byte[32])void ABI method.
2496
+ *
2497
+ * @param args The arguments for the contract call
2498
+ * @param params Any additional parameters for the call
2499
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2500
+ */
2501
+ registerBridge(params?: CallParams<BridgeArgs["obj"]["registerBridge(byte,byte[32])void"] | BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"]>): BridgeComposer<[...TReturns, BridgeReturns["registerBridge(byte,byte[32])void"] | undefined]>;
2502
+ /**
2503
+ * Calls the addBridgeToken(byte,byte[32])void ABI method.
2504
+ *
2505
+ * @param args The arguments for the contract call
2506
+ * @param params Any additional parameters for the call
2507
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2508
+ */
2509
+ addBridgeToken(params?: CallParams<BridgeArgs["obj"]["addBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["addBridgeToken(byte,byte[32])void"]>): BridgeComposer<[...TReturns, BridgeReturns["addBridgeToken(byte,byte[32])void"] | undefined]>;
2510
+ /**
2511
+ * Calls the removeBridgeToken(byte,byte[32])void ABI method.
2512
+ *
2513
+ * @param args The arguments for the contract call
2514
+ * @param params Any additional parameters for the call
2515
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2516
+ */
2517
+ removeBridgeToken(params?: CallParams<BridgeArgs["obj"]["removeBridgeToken(byte,byte[32])void"] | BridgeArgs["tuple"]["removeBridgeToken(byte,byte[32])void"]>): BridgeComposer<[...TReturns, BridgeReturns["removeBridgeToken(byte,byte[32])void"] | undefined]>;
2518
+ /**
2519
+ * Calls the withdrawGasTokens(uint64)void ABI method.
2520
+ *
2521
+ * @param args The arguments for the contract call
2522
+ * @param params Any additional parameters for the call
2523
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2524
+ */
2525
+ withdrawGasTokens(params?: CallParams<BridgeArgs["obj"]["withdrawGasTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawGasTokens(uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["withdrawGasTokens(uint64)void"] | undefined]>;
2526
+ /**
2527
+ * Calls the withdrawBridgingFeeInTokens(uint64)void ABI method.
2528
+ *
2529
+ * @param args The arguments for the contract call
2530
+ * @param params Any additional parameters for the call
2531
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2532
+ */
2533
+ withdrawBridgingFeeInTokens(params?: CallParams<BridgeArgs["obj"]["withdrawBridgingFeeInTokens(uint64)void"] | BridgeArgs["tuple"]["withdrawBridgingFeeInTokens(uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["withdrawBridgingFeeInTokens(uint64)void"] | undefined]>;
2534
+ /**
2535
+ * Calls the getBridgingCostInTokens(byte,uint64)uint64 ABI method.
2536
+ *
2537
+ * @param args The arguments for the contract call
2538
+ * @param params Any additional parameters for the call
2539
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2540
+ */
2541
+ getBridgingCostInTokens(params?: CallParams<BridgeArgs["obj"]["getBridgingCostInTokens(byte,uint64)uint64"] | BridgeArgs["tuple"]["getBridgingCostInTokens(byte,uint64)uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getBridgingCostInTokens(byte,uint64)uint64"] | undefined]>;
2542
+ /**
2543
+ * Calls the hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32] ABI method.
2544
+ *
2545
+ * @param args The arguments for the contract call
2546
+ * @param params Any additional parameters for the call
2547
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2548
+ */
2549
+ hashMessage(params?: CallParams<BridgeArgs["obj"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | BridgeArgs["tuple"]["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"]>): BridgeComposer<[
2550
+ ...TReturns,
2551
+ BridgeReturns["hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]"] | undefined
2552
+ ]>;
2553
+ /**
2554
+ * Calls the isOtherBridgeTokenSupported(byte,byte[32])bool ABI method.
2555
+ *
2556
+ * @param args The arguments for the contract call
2557
+ * @param params Any additional parameters for the call
2558
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2559
+ */
2560
+ isOtherBridgeTokenSupported(params?: CallParams<BridgeArgs["obj"]["isOtherBridgeTokenSupported(byte,byte[32])bool"] | BridgeArgs["tuple"]["isOtherBridgeTokenSupported(byte,byte[32])bool"]>): BridgeComposer<[...TReturns, BridgeReturns["isOtherBridgeTokenSupported(byte,byte[32])bool"] | undefined]>;
2561
+ /**
2562
+ * Calls the getTransactionCost(byte)uint64 ABI method.
2563
+ *
2564
+ * @param args The arguments for the contract call
2565
+ * @param params Any additional parameters for the call
2566
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2567
+ */
2568
+ getTransactionCost(params?: CallParams<BridgeArgs["obj"]["getTransactionCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionCost(byte)uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getTransactionCost(byte)uint64"] | undefined]>;
2569
+ /**
2570
+ * Calls the getReceiveTokensCost()uint64 ABI method.
2571
+ *
2572
+ * @param args The arguments for the contract call
2573
+ * @param params Any additional parameters for the call
2574
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2575
+ */
2576
+ getReceiveTokensCost(params?: CallParams<BridgeArgs["obj"]["getReceiveTokensCost()uint64"] | BridgeArgs["tuple"]["getReceiveTokensCost()uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getReceiveTokensCost()uint64"] | undefined]>;
2577
+ /**
2578
+ * Calls the getSendTransactionStorageCost()uint64 ABI method.
2579
+ *
2580
+ * @param args The arguments for the contract call
2581
+ * @param params Any additional parameters for the call
2582
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2583
+ */
2584
+ getSendTransactionStorageCost(params?: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getSendTransactionStorageCost()uint64"] | undefined]>;
2585
+ /**
2586
+ * Calls the swap(uint64,uint64,address,uint64)void ABI method.
2587
+ *
2588
+ * @param args The arguments for the contract call
2589
+ * @param params Any additional parameters for the call
2590
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2591
+ */
2592
+ swap(params?: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["swap(uint64,uint64,address,uint64)void"] | undefined]>;
2593
+ /**
2594
+ * Calls the addPool(uint64,uint64)void ABI method.
2595
+ *
2596
+ * @param args The arguments for the contract call
2597
+ * @param params Any additional parameters for the call
2598
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2599
+ */
2600
+ addPool(params?: CallParams<BridgeArgs["obj"]["addPool(uint64,uint64)void"] | BridgeArgs["tuple"]["addPool(uint64,uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["addPool(uint64,uint64)void"] | undefined]>;
2601
+ /**
2602
+ * Calls the removePool(uint64)void ABI method.
2603
+ *
2604
+ * @param args The arguments for the contract call
2605
+ * @param params Any additional parameters for the call
2606
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2607
+ */
2608
+ removePool(params?: CallParams<BridgeArgs["obj"]["removePool(uint64)void"] | BridgeArgs["tuple"]["removePool(uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["removePool(uint64)void"] | undefined]>;
2609
+ /**
2610
+ * Calls the stopSwap()void ABI method.
2611
+ *
2612
+ * @param args The arguments for the contract call
2613
+ * @param params Any additional parameters for the call
2614
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2615
+ */
2616
+ stopSwap(params?: CallParams<BridgeArgs["obj"]["stopSwap()void"] | BridgeArgs["tuple"]["stopSwap()void"]>): BridgeComposer<[...TReturns, BridgeReturns["stopSwap()void"] | undefined]>;
2617
+ /**
2618
+ * Calls the startSwap()void ABI method.
2619
+ *
2620
+ * @param args The arguments for the contract call
2621
+ * @param params Any additional parameters for the call
2622
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2623
+ */
2624
+ startSwap(params?: CallParams<BridgeArgs["obj"]["startSwap()void"] | BridgeArgs["tuple"]["startSwap()void"]>): BridgeComposer<[...TReturns, BridgeReturns["startSwap()void"] | undefined]>;
2625
+ /**
2626
+ * Calls the setStopAuthority(address)void ABI method.
2627
+ *
2628
+ * @param args The arguments for the contract call
2629
+ * @param params Any additional parameters for the call
2630
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2631
+ */
2632
+ setStopAuthority(params?: CallParams<BridgeArgs["obj"]["setStopAuthority(address)void"] | BridgeArgs["tuple"]["setStopAuthority(address)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setStopAuthority(address)void"] | undefined]>;
2633
+ /**
2634
+ * Calls the setRebalancer(address)void ABI method.
2635
+ *
2636
+ * @param args The arguments for the contract call
2637
+ * @param params Any additional parameters for the call
2638
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2639
+ */
2640
+ setRebalancer(params?: CallParams<BridgeArgs["obj"]["setRebalancer(address)void"] | BridgeArgs["tuple"]["setRebalancer(address)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setRebalancer(address)void"] | undefined]>;
2641
+ /**
2642
+ * Calls the getGasUsage(byte)uint64 ABI method.
2643
+ *
2644
+ * @param args The arguments for the contract call
2645
+ * @param params Any additional parameters for the call
2646
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2647
+ */
2648
+ getGasUsage(params?: CallParams<BridgeArgs["obj"]["getGasUsage(byte)uint64"] | BridgeArgs["tuple"]["getGasUsage(byte)uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getGasUsage(byte)uint64"] | undefined]>;
2649
+ /**
2650
+ * Calls the setGasUsage(byte,uint64)void ABI method.
2651
+ *
2652
+ * @param args The arguments for the contract call
2653
+ * @param params Any additional parameters for the call
2654
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2655
+ */
2656
+ setGasUsage(params?: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setGasUsage(byte,uint64)void"] | undefined]>;
2657
+ /**
2658
+ * Calls the setGasOracle(application)void ABI method.
2659
+ *
2660
+ * @param args The arguments for the contract call
2661
+ * @param params Any additional parameters for the call
2662
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2663
+ */
2664
+ setGasOracle(params?: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setGasOracle(application)void"] | undefined]>;
2665
+ /**
2666
+ * Calls the getTransactionRelayerCost(byte)uint64 ABI method.
2667
+ *
2668
+ * @param args The arguments for the contract call
2669
+ * @param params Any additional parameters for the call
2670
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2671
+ */
2672
+ getTransactionRelayerCost(params?: CallParams<BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"] | BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getTransactionRelayerCost(byte)uint64"] | undefined]>;
2673
+ /**
2674
+ * Calls the transferOwnership(address)void ABI method.
2675
+ *
2676
+ * @param args The arguments for the contract call
2677
+ * @param params Any additional parameters for the call
2678
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2679
+ */
2680
+ transferOwnership(params?: CallParams<BridgeArgs["obj"]["transferOwnership(address)void"] | BridgeArgs["tuple"]["transferOwnership(address)void"]>): BridgeComposer<[...TReturns, BridgeReturns["transferOwnership(address)void"] | undefined]>;
2681
+ /**
2682
+ * Makes a clear_state call to an existing instance of the Bridge smart contract.
2683
+ *
2684
+ * @param args The arguments for the bare call
2685
+ * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2686
+ */
2687
+ clearState(params?: AppClientBareCallParams): BridgeComposer<[...TReturns, undefined]>;
2688
+ /**
2689
+ * Adds a transaction to the composer
2690
+ *
2691
+ * @param txn A transaction to add to the transaction group
2692
+ * @param signer The optional signer to use when signing this transaction.
2693
+ */
2694
+ addTransaction(txn: Transaction, signer?: TransactionSigner): BridgeComposer<TReturns>;
2695
+ /**
2696
+ * Returns the underlying AtomicTransactionComposer instance
2697
+ */
2698
+ composer(): Promise<TransactionComposer>;
2699
+ /**
2700
+ * Simulates the transaction group and returns the result
2701
+ */
2702
+ simulate(): Promise<BridgeComposerResults<TReturns> & {
2703
+ simulateResponse: modelsv2.SimulateResponse;
2704
+ }>;
2705
+ simulate(options: SkipSignaturesSimulateOptions): Promise<BridgeComposerResults<TReturns> & {
2706
+ simulateResponse: modelsv2.SimulateResponse;
2707
+ }>;
2708
+ simulate(options: RawSimulateOptions): Promise<BridgeComposerResults<TReturns> & {
2709
+ simulateResponse: modelsv2.SimulateResponse;
2710
+ }>;
2711
+ /**
2712
+ * Sends the transaction group to the network and returns the results
2713
+ */
2714
+ send(params?: SendParams): Promise<BridgeComposerResults<TReturns>>;
2715
+ };
2716
+ export type BridgeComposerResults<TReturns extends [...any[]]> = Expand<SendAtomicTransactionComposerResults & {
2717
+ returns: TReturns;
2718
+ }>;