@allbridge/bridge-core-sdk 3.26.0 → 3.27.0-alpha.10

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