@allbridge/bridge-core-sdk 3.27.0-alpha.1 → 3.27.0-alpha.11

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 (76) hide show
  1. package/dist/browser/index.js +3 -3
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/cjs/index.js +3 -3
  4. package/dist/cjs/index.js.map +4 -4
  5. package/dist/esm/index.js +3 -3
  6. package/dist/esm/index.js.map +4 -4
  7. package/dist/src/chains/chain.enums.d.ts +7 -2
  8. package/dist/src/chains/chain.enums.js +5 -0
  9. package/dist/src/chains/chain.enums.js.map +1 -1
  10. package/dist/src/chains/index.js +6 -0
  11. package/dist/src/chains/index.js.map +1 -1
  12. package/dist/src/client/core-api/core-api-mapper.js +1 -0
  13. package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
  14. package/dist/src/client/core-api/core-api.model.d.ts +1 -0
  15. package/dist/src/client/core-api/core-api.model.js.map +1 -1
  16. package/dist/src/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 +1 -0
  22. package/dist/src/services/bridge/alg/index.js +62 -38
  23. package/dist/src/services/bridge/alg/index.js.map +1 -1
  24. package/dist/src/services/bridge/index.js +5 -0
  25. package/dist/src/services/bridge/index.js.map +1 -1
  26. package/dist/src/services/bridge/models/bridge.model.d.ts +1 -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/utils.d.ts +3 -1
  32. package/dist/src/services/bridge/utils.js +23 -0
  33. package/dist/src/services/bridge/utils.js.map +1 -1
  34. package/dist/src/services/liquidity-pool/alg/index.js +10 -17
  35. package/dist/src/services/liquidity-pool/alg/index.js.map +1 -1
  36. package/dist/src/services/liquidity-pool/index.js +5 -0
  37. package/dist/src/services/liquidity-pool/index.js.map +1 -1
  38. package/dist/src/services/liquidity-pool/stx/index.d.ts +21 -0
  39. package/dist/src/services/liquidity-pool/stx/index.js +141 -0
  40. package/dist/src/services/liquidity-pool/stx/index.js.map +1 -0
  41. package/dist/src/services/models/alg/BridgeClient.d.ts +158 -133
  42. package/dist/src/services/models/alg/BridgeClient.js +182 -130
  43. package/dist/src/services/models/alg/BridgeClient.js.map +1 -1
  44. package/dist/src/services/models/alg/PaddingUtilClient.d.ts +639 -0
  45. package/dist/src/services/models/alg/PaddingUtilClient.js +425 -0
  46. package/dist/src/services/models/alg/PaddingUtilClient.js.map +1 -0
  47. package/dist/src/services/models/alg/PoolClient.d.ts +204 -201
  48. package/dist/src/services/models/alg/PoolClient.js +234 -215
  49. package/dist/src/services/models/alg/PoolClient.js.map +1 -1
  50. package/dist/src/services/models/index.d.ts +2 -1
  51. package/dist/src/services/models/index.js.map +1 -1
  52. package/dist/src/services/models/stx/clarigen-types.d.ts +657 -0
  53. package/dist/src/services/models/stx/clarigen-types.js +2296 -0
  54. package/dist/src/services/models/stx/clarigen-types.js.map +1 -0
  55. package/dist/src/services/token/index.js +5 -0
  56. package/dist/src/services/token/index.js.map +1 -1
  57. package/dist/src/services/token/stx/index.d.ts +20 -0
  58. package/dist/src/services/token/stx/index.js +59 -0
  59. package/dist/src/services/token/stx/index.js.map +1 -0
  60. package/dist/src/services/utils/alg/index.d.ts +1 -10
  61. package/dist/src/services/utils/alg/index.js +0 -20
  62. package/dist/src/services/utils/alg/index.js.map +1 -1
  63. package/dist/src/services/utils/stx/get-token-name.d.ts +2 -0
  64. package/dist/src/services/utils/stx/get-token-name.js +15 -0
  65. package/dist/src/services/utils/stx/get-token-name.js.map +1 -0
  66. package/dist/src/services/utils/stx/post-conditions.d.ts +3 -0
  67. package/dist/src/services/utils/stx/post-conditions.js +27 -0
  68. package/dist/src/services/utils/stx/post-conditions.js.map +1 -0
  69. package/dist/src/services/yield/index.js +4 -0
  70. package/dist/src/services/yield/index.js.map +1 -1
  71. package/dist/src/tokens-info/tokens-info.model.d.ts +4 -0
  72. package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
  73. package/dist/src/version.d.ts +1 -1
  74. package/dist/src/version.js +1 -1
  75. package/dist/src/version.js.map +1 -1
  76. package/package.json +6 -2
@@ -40,25 +40,35 @@ export type BridgeArgs = {
40
40
  * The object representation of the arguments for each method
41
41
  */
42
42
  obj: {
43
- "createApplication(address,byte,application,application)void": {
43
+ "createApplication(address,byte,uint64,uint64)void": {
44
44
  owner: string;
45
45
  chainId: number;
46
- messenger: bigint;
47
- gasOracle: bigint;
46
+ messenger: bigint | number;
47
+ gasOracle: bigint | number;
48
48
  };
49
49
  "optInAsset(uint64)void": {
50
- assetId: bigint | number;
50
+ asset: bigint | number;
51
51
  };
52
- "noop()void": Record<string, never>;
53
- "swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void": {
54
- tokenId: bigint | number;
52
+ "swapAndBridge(pay,axfer,byte[32],byte,byte[32],byte[32],uint64)void": {
53
+ paymentRef: AppMethodCallTransactionArgument;
54
+ assetTransferRef: AppMethodCallTransactionArgument;
55
55
  recipient: Uint8Array;
56
56
  destinationChainId: number;
57
57
  receiveToken: Uint8Array;
58
58
  nonce: Uint8Array;
59
- feeTokenAmount?: bigint | number;
59
+ budget?: bigint | number;
60
60
  };
61
- "receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void": {
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;
62
72
  amount: bigint | number;
63
73
  recipient: Uint8Array;
64
74
  sourceChainId: number;
@@ -82,11 +92,11 @@ export type BridgeArgs = {
82
92
  amount: bigint | number;
83
93
  };
84
94
  "withdrawBridgingFeeInTokens(uint64)void": {
85
- assetId: bigint | number;
95
+ asset: bigint | number;
86
96
  };
87
97
  "getBridgingCostInTokens(byte,uint64)uint64": {
88
98
  destinationChainId: number;
89
- tokenId: bigint | number;
99
+ asset: bigint | number;
90
100
  };
91
101
  "hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]": {
92
102
  amount: bigint | number;
@@ -105,15 +115,15 @@ export type BridgeArgs = {
105
115
  };
106
116
  "getReceiveTokensCost()uint64": Record<string, never>;
107
117
  "getSendTransactionStorageCost()uint64": Record<string, never>;
108
- "swap(uint64,uint64,address,uint64)void": {
118
+ "swap(axfer,uint64,address,uint64,uint64)void": {
109
119
  /**
110
120
  * The token to be swapped.
111
121
  */
112
- tokenId: bigint | number;
122
+ assetTransferRef: AppMethodCallTransactionArgument;
113
123
  /**
114
124
  * The token to receive in exchange for the swapped token.
115
125
  */
116
- receiveTokenId: bigint | number;
126
+ receiveAsset: bigint | number;
117
127
  /**
118
128
  * The address to receive the tokens.
119
129
  */
@@ -122,6 +132,7 @@ export type BridgeArgs = {
122
132
  * The minimum amount of tokens required to receive during the swap.
123
133
  */
124
134
  receiveAmountMin: bigint | number;
135
+ budget?: bigint | number;
125
136
  };
126
137
  "addPool(uint64,uint64)void": {
127
138
  /**
@@ -131,7 +142,7 @@ export type BridgeArgs = {
131
142
  /**
132
143
  * The address of the token in the liquidity pool.
133
144
  */
134
- tokenId: bigint | number;
145
+ asset: bigint | number;
135
146
  };
136
147
  "removePool(uint64)void": {
137
148
  tokenId: bigint | number;
@@ -151,8 +162,8 @@ export type BridgeArgs = {
151
162
  chainId: number;
152
163
  gasAmount: bigint | number;
153
164
  };
154
- "setGasOracle(application)void": {
155
- gasOracle: bigint;
165
+ "setGasOracle(uint64)void": {
166
+ gasOracle: bigint | number;
156
167
  };
157
168
  "getTransactionRelayerCost(byte)uint64": {
158
169
  chainId: number;
@@ -165,23 +176,33 @@ export type BridgeArgs = {
165
176
  * The tuple representation of the arguments for each method
166
177
  */
167
178
  tuple: {
168
- "createApplication(address,byte,application,application)void": [
179
+ "createApplication(address,byte,uint64,uint64)void": [
169
180
  owner: string,
170
181
  chainId: number,
171
- messenger: bigint,
172
- gasOracle: bigint
182
+ messenger: bigint | number,
183
+ gasOracle: bigint | number
173
184
  ];
174
- "optInAsset(uint64)void": [assetId: bigint | number];
175
- "noop()void": [];
176
- "swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void": [
177
- tokenId: bigint | number,
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,
178
189
  recipient: Uint8Array,
179
190
  destinationChainId: number,
180
191
  receiveToken: Uint8Array,
181
192
  nonce: Uint8Array,
182
- feeTokenAmount: bigint | number | undefined
193
+ budget: bigint | number | undefined
183
194
  ];
184
- "receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void": [
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,
185
206
  amount: bigint | number,
186
207
  recipient: Uint8Array,
187
208
  sourceChainId: number,
@@ -193,8 +214,8 @@ export type BridgeArgs = {
193
214
  "addBridgeToken(byte,byte[32])void": [chainId: number, tokenAddress: Uint8Array];
194
215
  "removeBridgeToken(byte,byte[32])void": [chainId: number, tokenAddress: Uint8Array];
195
216
  "withdrawGasTokens(uint64)void": [amount: bigint | number];
196
- "withdrawBridgingFeeInTokens(uint64)void": [assetId: bigint | number];
197
- "getBridgingCostInTokens(byte,uint64)uint64": [destinationChainId: number, tokenId: bigint | number];
217
+ "withdrawBridgingFeeInTokens(uint64)void": [asset: bigint | number];
218
+ "getBridgingCostInTokens(byte,uint64)uint64": [destinationChainId: number, asset: bigint | number];
198
219
  "hashMessage(uint64,byte[32],byte,byte,byte[32],byte[32])byte[32]": [
199
220
  amount: bigint | number,
200
221
  recipient: Uint8Array,
@@ -207,13 +228,14 @@ export type BridgeArgs = {
207
228
  "getTransactionCost(byte)uint64": [chainId: number];
208
229
  "getReceiveTokensCost()uint64": [];
209
230
  "getSendTransactionStorageCost()uint64": [];
210
- "swap(uint64,uint64,address,uint64)void": [
211
- tokenId: bigint | number,
212
- receiveTokenId: bigint | number,
231
+ "swap(axfer,uint64,address,uint64,uint64)void": [
232
+ assetTransferRef: AppMethodCallTransactionArgument,
233
+ receiveAsset: bigint | number,
213
234
  recipient: string,
214
- receiveAmountMin: bigint | number
235
+ receiveAmountMin: bigint | number,
236
+ budget: bigint | number | undefined
215
237
  ];
216
- "addPool(uint64,uint64)void": [poolId: bigint | number, tokenId: bigint | number];
238
+ "addPool(uint64,uint64)void": [poolId: bigint | number, asset: bigint | number];
217
239
  "removePool(uint64)void": [tokenId: bigint | number];
218
240
  "stopSwap()void": [];
219
241
  "startSwap()void": [];
@@ -221,7 +243,7 @@ export type BridgeArgs = {
221
243
  "setRebalancer(address)void": [rebalancer: string];
222
244
  "getGasUsage(byte)uint64": [chainId: number];
223
245
  "setGasUsage(byte,uint64)void": [chainId: number, gasAmount: bigint | number];
224
- "setGasOracle(application)void": [gasOracle: bigint];
246
+ "setGasOracle(uint64)void": [gasOracle: bigint | number];
225
247
  "getTransactionRelayerCost(byte)uint64": [chainId: number];
226
248
  "transferOwnership(address)void": [newOwner: string];
227
249
  };
@@ -230,11 +252,11 @@ export type BridgeArgs = {
230
252
  * The return type for each method
231
253
  */
232
254
  export type BridgeReturns = {
233
- "createApplication(address,byte,application,application)void": void;
255
+ "createApplication(address,byte,uint64,uint64)void": void;
234
256
  "optInAsset(uint64)void": void;
235
- "noop()void": void;
236
- "swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void": void;
237
- "receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void": void;
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;
238
260
  "registerBridge(byte,byte[32])void": void;
239
261
  "addBridgeToken(byte,byte[32])void": void;
240
262
  "removeBridgeToken(byte,byte[32])void": void;
@@ -246,7 +268,7 @@ export type BridgeReturns = {
246
268
  "getTransactionCost(byte)uint64": bigint;
247
269
  "getReceiveTokensCost()uint64": bigint;
248
270
  "getSendTransactionStorageCost()uint64": bigint;
249
- "swap(uint64,uint64,address,uint64)void": void;
271
+ "swap(axfer,uint64,address,uint64,uint64)void": void;
250
272
  "addPool(uint64,uint64)void": void;
251
273
  "removePool(uint64)void": void;
252
274
  "stopSwap()void": void;
@@ -255,7 +277,7 @@ export type BridgeReturns = {
255
277
  "setRebalancer(address)void": void;
256
278
  "getGasUsage(byte)uint64": bigint;
257
279
  "setGasUsage(byte,uint64)void": void;
258
- "setGasOracle(application)void": void;
280
+ "setGasOracle(uint64)void": void;
259
281
  "getTransactionRelayerCost(byte)uint64": bigint;
260
282
  "transferOwnership(address)void": void;
261
283
  };
@@ -266,26 +288,26 @@ export type BridgeTypes = {
266
288
  /**
267
289
  * Maps method signatures / names to their argument and return types.
268
290
  */
269
- methods: Record<"createApplication(address,byte,application,application)void" | "createApplication", {
270
- argsObj: BridgeArgs["obj"]["createApplication(address,byte,application,application)void"];
271
- argsTuple: BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"];
272
- returns: BridgeReturns["createApplication(address,byte,application,application)void"];
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"];
273
295
  }> & Record<"optInAsset(uint64)void" | "optInAsset", {
274
296
  argsObj: BridgeArgs["obj"]["optInAsset(uint64)void"];
275
297
  argsTuple: BridgeArgs["tuple"]["optInAsset(uint64)void"];
276
298
  returns: BridgeReturns["optInAsset(uint64)void"];
277
- }> & Record<"noop()void" | "noop", {
278
- argsObj: BridgeArgs["obj"]["noop()void"];
279
- argsTuple: BridgeArgs["tuple"]["noop()void"];
280
- returns: BridgeReturns["noop()void"];
281
- }> & Record<"swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void" | "swapAndBridge", {
282
- argsObj: BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
283
- argsTuple: BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
284
- returns: BridgeReturns["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
285
- }> & Record<"receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void" | "receiveTokens", {
286
- argsObj: BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
287
- argsTuple: BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
288
- returns: BridgeReturns["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
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"];
289
311
  }> & Record<"registerBridge(byte,byte[32])void" | "registerBridge", {
290
312
  argsObj: BridgeArgs["obj"]["registerBridge(byte,byte[32])void"];
291
313
  argsTuple: BridgeArgs["tuple"]["registerBridge(byte,byte[32])void"];
@@ -330,10 +352,10 @@ export type BridgeTypes = {
330
352
  argsObj: BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"];
331
353
  argsTuple: BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"];
332
354
  returns: BridgeReturns["getSendTransactionStorageCost()uint64"];
333
- }> & Record<"swap(uint64,uint64,address,uint64)void" | "swap", {
334
- argsObj: BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"];
335
- argsTuple: BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"];
336
- returns: BridgeReturns["swap(uint64,uint64,address,uint64)void"];
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"];
337
359
  }> & Record<"addPool(uint64,uint64)void" | "addPool", {
338
360
  argsObj: BridgeArgs["obj"]["addPool(uint64,uint64)void"];
339
361
  argsTuple: BridgeArgs["tuple"]["addPool(uint64,uint64)void"];
@@ -366,10 +388,10 @@ export type BridgeTypes = {
366
388
  argsObj: BridgeArgs["obj"]["setGasUsage(byte,uint64)void"];
367
389
  argsTuple: BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"];
368
390
  returns: BridgeReturns["setGasUsage(byte,uint64)void"];
369
- }> & Record<"setGasOracle(application)void" | "setGasOracle", {
370
- argsObj: BridgeArgs["obj"]["setGasOracle(application)void"];
371
- argsTuple: BridgeArgs["tuple"]["setGasOracle(application)void"];
372
- returns: BridgeReturns["setGasOracle(application)void"];
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"];
373
395
  }> & Record<"getTransactionRelayerCost(byte)uint64" | "getTransactionRelayerCost", {
374
396
  argsObj: BridgeArgs["obj"]["getTransactionRelayerCost(byte)uint64"];
375
397
  argsTuple: BridgeArgs["tuple"]["getTransactionRelayerCost(byte)uint64"];
@@ -444,12 +466,12 @@ export type BoxKeysState = BridgeTypes["state"]["box"]["keys"];
444
466
  /**
445
467
  * Defines supported create method params for this smart contract
446
468
  */
447
- export type BridgeCreateCallParams = Expand<CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & {
469
+ export type BridgeCreateCallParams = Expand<CallParams<BridgeArgs["obj"]["createApplication(address,byte,uint64,uint64)void"] | BridgeArgs["tuple"]["createApplication(address,byte,uint64,uint64)void"]> & {
448
470
  method: "createApplication";
449
471
  } & {
450
472
  onComplete?: OnApplicationComplete.NoOpOC;
451
- } & CreateSchema> | Expand<CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & {
452
- method: "createApplication(address,byte,application,application)void";
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";
453
475
  } & {
454
476
  onComplete?: OnApplicationComplete.NoOpOC;
455
477
  } & CreateSchema>;
@@ -495,12 +517,12 @@ export declare abstract class BridgeParamsFactory {
495
517
  onComplete?: OnApplicationComplete.NoOpOC;
496
518
  };
497
519
  /**
498
- * Constructs create ABI call params for the Bridge smart contract using the createApplication(address,byte,application,application)void ABI method
520
+ * Constructs create ABI call params for the Bridge smart contract using the createApplication(address,byte,uint64,uint64)void ABI method
499
521
  *
500
522
  * @param params Parameters for the call
501
523
  * @returns An `AppClientMethodCallParams` object for the call
502
524
  */
503
- createApplication(params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & {
525
+ createApplication(params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,uint64,uint64)void"] | BridgeArgs["tuple"]["createApplication(address,byte,uint64,uint64)void"]> & AppClientCompilationParams & {
504
526
  onComplete?: OnApplicationComplete.NoOpOC;
505
527
  }): AppClientMethodCallParams & AppClientCompilationParams & {
506
528
  onComplete?: OnApplicationComplete.NoOpOC;
@@ -514,26 +536,26 @@ export declare abstract class BridgeParamsFactory {
514
536
  */
515
537
  static optInAsset(params: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
516
538
  /**
517
- * Constructs a no op call for the noop()void ABI method
539
+ * Constructs a no op call for the swapAndBridge(pay,axfer,byte[32],byte,byte[32],byte[32],uint64)void ABI method
518
540
  *
519
541
  * @param params Parameters for the call
520
542
  * @returns An `AppClientMethodCallParams` object for the call
521
543
  */
522
- static noop(params: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
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;
523
545
  /**
524
- * Constructs a no op call for the swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method
546
+ * Constructs a no op call for the swapAndBridgeWithStable(axfer,byte[32],byte,byte[32],byte[32],uint64,uint64)void ABI method
525
547
  *
526
548
  * @param params Parameters for the call
527
549
  * @returns An `AppClientMethodCallParams` object for the call
528
550
  */
529
- static swapAndBridge(params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
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;
530
552
  /**
531
- * Constructs a no op call for the receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method
553
+ * Constructs a no op call for the receiveTokens(pay,uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method
532
554
  *
533
555
  * @param params Parameters for the call
534
556
  * @returns An `AppClientMethodCallParams` object for the call
535
557
  */
536
- static receiveTokens(params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
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;
537
559
  /**
538
560
  * Constructs a no op call for the registerBridge(byte,byte[32])void ABI method
539
561
  *
@@ -612,12 +634,12 @@ export declare abstract class BridgeParamsFactory {
612
634
  */
613
635
  static getSendTransactionStorageCost(params: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
614
636
  /**
615
- * Constructs a no op call for the swap(uint64,uint64,address,uint64)void ABI method
637
+ * Constructs a no op call for the swap(axfer,uint64,address,uint64,uint64)void ABI method
616
638
  *
617
639
  * @param params Parameters for the call
618
640
  * @returns An `AppClientMethodCallParams` object for the call
619
641
  */
620
- static swap(params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
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;
621
643
  /**
622
644
  * Constructs a no op call for the addPool(uint64,uint64)void ABI method
623
645
  *
@@ -675,12 +697,12 @@ export declare abstract class BridgeParamsFactory {
675
697
  */
676
698
  static setGasUsage(params: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
677
699
  /**
678
- * Constructs a no op call for the setGasOracle(application)void ABI method
700
+ * Constructs a no op call for the setGasOracle(uint64)void ABI method
679
701
  *
680
702
  * @param params Parameters for the call
681
703
  * @returns An `AppClientMethodCallParams` object for the call
682
704
  */
683
- static setGasOracle(params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
705
+ static setGasOracle(params: CallParams<BridgeArgs["obj"]["setGasOracle(uint64)void"] | BridgeArgs["tuple"]["setGasOracle(uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
684
706
  /**
685
707
  * Constructs a no op call for the getTransactionRelayerCost(byte)uint64 ABI method
686
708
  *
@@ -840,12 +862,12 @@ export declare class BridgeFactory {
840
862
  */
841
863
  create: {
842
864
  /**
843
- * Creates a new instance of the Bridge smart contract using the createApplication(address,byte,application,application)void ABI method.
865
+ * Creates a new instance of the Bridge smart contract using the createApplication(address,byte,uint64,uint64)void ABI method.
844
866
  *
845
867
  * @param params The params for the smart contract call
846
868
  * @returns The create params
847
869
  */
848
- createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & CreateSchema & {
870
+ createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,uint64,uint64)void"] | BridgeArgs["tuple"]["createApplication(address,byte,uint64,uint64)void"]> & AppClientCompilationParams & CreateSchema & {
849
871
  onComplete?: OnApplicationComplete.NoOpOC;
850
872
  }) => Promise<{
851
873
  deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined;
@@ -944,12 +966,12 @@ export declare class BridgeFactory {
944
966
  */
945
967
  create: {
946
968
  /**
947
- * Creates a new instance of the Bridge smart contract using the createApplication(address,byte,application,application)void ABI method.
969
+ * Creates a new instance of the Bridge smart contract using the createApplication(address,byte,uint64,uint64)void ABI method.
948
970
  *
949
971
  * @param params The params for the smart contract call
950
972
  * @returns The create transaction
951
973
  */
952
- createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & CreateSchema & {
974
+ createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,uint64,uint64)void"] | BridgeArgs["tuple"]["createApplication(address,byte,uint64,uint64)void"]> & AppClientCompilationParams & CreateSchema & {
953
975
  onComplete?: OnApplicationComplete.NoOpOC;
954
976
  }) => Promise<{
955
977
  transactions: Transaction[];
@@ -967,16 +989,16 @@ export declare class BridgeFactory {
967
989
  */
968
990
  create: {
969
991
  /**
970
- * Creates a new instance of the Bridge smart contract using an ABI method call using the createApplication(address,byte,application,application)void ABI method.
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.
971
993
  *
972
994
  * @param params The params for the smart contract call
973
995
  * @returns The create result
974
996
  */
975
- createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,application,application)void"] | BridgeArgs["tuple"]["createApplication(address,byte,application,application)void"]> & AppClientCompilationParams & CreateSchema & SendParams & {
997
+ createApplication: (params: CallParams<BridgeArgs["obj"]["createApplication(address,byte,uint64,uint64)void"] | BridgeArgs["tuple"]["createApplication(address,byte,uint64,uint64)void"]> & AppClientCompilationParams & CreateSchema & SendParams & {
976
998
  onComplete?: OnApplicationComplete.NoOpOC;
977
999
  }) => Promise<{
978
1000
  result: {
979
- return: undefined | BridgeReturns["createApplication(address,byte,application,application)void"];
1001
+ return: undefined | BridgeReturns["createApplication(address,byte,uint64,uint64)void"];
980
1002
  compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
981
1003
  compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
982
1004
  appId: bigint;
@@ -1064,30 +1086,30 @@ export declare class BridgeClient {
1064
1086
  onComplete?: OnApplicationComplete.NoOpOC;
1065
1087
  }) => Promise<AppCallMethodCall>;
1066
1088
  /**
1067
- * Makes a call to the Bridge smart contract using the `noop()void` ABI method.
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.
1068
1090
  *
1069
1091
  * @param params The params for the smart contract call
1070
1092
  * @returns The call params
1071
1093
  */
1072
- noop: (params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & {
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"]> & {
1073
1095
  onComplete?: OnApplicationComplete.NoOpOC;
1074
1096
  }) => Promise<AppCallMethodCall>;
1075
1097
  /**
1076
- * Makes a call to the Bridge smart contract using the `swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
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.
1077
1099
  *
1078
1100
  * @param params The params for the smart contract call
1079
1101
  * @returns The call params
1080
1102
  */
1081
- swapAndBridge: (params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
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"]> & {
1082
1104
  onComplete?: OnApplicationComplete.NoOpOC;
1083
1105
  }) => Promise<AppCallMethodCall>;
1084
1106
  /**
1085
- * Makes a call to the Bridge smart contract using the `receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
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.
1086
1108
  *
1087
1109
  * @param params The params for the smart contract call
1088
1110
  * @returns The call params
1089
1111
  */
1090
- receiveTokens: (params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
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"]> & {
1091
1113
  onComplete?: OnApplicationComplete.NoOpOC;
1092
1114
  }) => Promise<AppCallMethodCall>;
1093
1115
  /**
@@ -1202,12 +1224,12 @@ export declare class BridgeClient {
1202
1224
  onComplete?: OnApplicationComplete.NoOpOC;
1203
1225
  }) => Promise<AppCallMethodCall>;
1204
1226
  /**
1205
- * Makes a call to the Bridge smart contract using the `swap(uint64,uint64,address,uint64)void` ABI method.
1227
+ * Makes a call to the Bridge smart contract using the `swap(axfer,uint64,address,uint64,uint64)void` ABI method.
1206
1228
  *
1207
1229
  * @param params The params for the smart contract call
1208
1230
  * @returns The call params
1209
1231
  */
1210
- swap: (params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & {
1232
+ swap: (params: CallParams<BridgeArgs["obj"]["swap(axfer,uint64,address,uint64,uint64)void"] | BridgeArgs["tuple"]["swap(axfer,uint64,address,uint64,uint64)void"]> & {
1211
1233
  onComplete?: OnApplicationComplete.NoOpOC;
1212
1234
  }) => Promise<AppCallMethodCall>;
1213
1235
  /**
@@ -1285,12 +1307,12 @@ export declare class BridgeClient {
1285
1307
  onComplete?: OnApplicationComplete.NoOpOC;
1286
1308
  }) => Promise<AppCallMethodCall>;
1287
1309
  /**
1288
- * Makes a call to the Bridge smart contract using the `setGasOracle(application)void` ABI method.
1310
+ * Makes a call to the Bridge smart contract using the `setGasOracle(uint64)void` ABI method.
1289
1311
  *
1290
1312
  * @param params The params for the smart contract call
1291
1313
  * @returns The call params
1292
1314
  */
1293
- setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & {
1315
+ setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(uint64)void"] | BridgeArgs["tuple"]["setGasOracle(uint64)void"]> & {
1294
1316
  onComplete?: OnApplicationComplete.NoOpOC;
1295
1317
  }) => Promise<AppCallMethodCall>;
1296
1318
  /**
@@ -1339,12 +1361,12 @@ export declare class BridgeClient {
1339
1361
  signers: Map<number, TransactionSigner>;
1340
1362
  }>;
1341
1363
  /**
1342
- * Makes a call to the Bridge smart contract using the `noop()void` ABI method.
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.
1343
1365
  *
1344
1366
  * @param params The params for the smart contract call
1345
1367
  * @returns The call transaction
1346
1368
  */
1347
- noop: (params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & {
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"]> & {
1348
1370
  onComplete?: OnApplicationComplete.NoOpOC;
1349
1371
  }) => Promise<{
1350
1372
  transactions: Transaction[];
@@ -1352,12 +1374,12 @@ export declare class BridgeClient {
1352
1374
  signers: Map<number, TransactionSigner>;
1353
1375
  }>;
1354
1376
  /**
1355
- * Makes a call to the Bridge smart contract using the `swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
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.
1356
1378
  *
1357
1379
  * @param params The params for the smart contract call
1358
1380
  * @returns The call transaction
1359
1381
  */
1360
- swapAndBridge: (params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
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"]> & {
1361
1383
  onComplete?: OnApplicationComplete.NoOpOC;
1362
1384
  }) => Promise<{
1363
1385
  transactions: Transaction[];
@@ -1365,12 +1387,12 @@ export declare class BridgeClient {
1365
1387
  signers: Map<number, TransactionSigner>;
1366
1388
  }>;
1367
1389
  /**
1368
- * Makes a call to the Bridge smart contract using the `receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
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.
1369
1391
  *
1370
1392
  * @param params The params for the smart contract call
1371
1393
  * @returns The call transaction
1372
1394
  */
1373
- receiveTokens: (params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & {
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"]> & {
1374
1396
  onComplete?: OnApplicationComplete.NoOpOC;
1375
1397
  }) => Promise<{
1376
1398
  transactions: Transaction[];
@@ -1533,12 +1555,12 @@ export declare class BridgeClient {
1533
1555
  signers: Map<number, TransactionSigner>;
1534
1556
  }>;
1535
1557
  /**
1536
- * Makes a call to the Bridge smart contract using the `swap(uint64,uint64,address,uint64)void` ABI method.
1558
+ * Makes a call to the Bridge smart contract using the `swap(axfer,uint64,address,uint64,uint64)void` ABI method.
1537
1559
  *
1538
1560
  * @param params The params for the smart contract call
1539
1561
  * @returns The call transaction
1540
1562
  */
1541
- swap: (params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & {
1563
+ swap: (params: CallParams<BridgeArgs["obj"]["swap(axfer,uint64,address,uint64,uint64)void"] | BridgeArgs["tuple"]["swap(axfer,uint64,address,uint64,uint64)void"]> & {
1542
1564
  onComplete?: OnApplicationComplete.NoOpOC;
1543
1565
  }) => Promise<{
1544
1566
  transactions: Transaction[];
@@ -1652,12 +1674,12 @@ export declare class BridgeClient {
1652
1674
  signers: Map<number, TransactionSigner>;
1653
1675
  }>;
1654
1676
  /**
1655
- * Makes a call to the Bridge smart contract using the `setGasOracle(application)void` ABI method.
1677
+ * Makes a call to the Bridge smart contract using the `setGasOracle(uint64)void` ABI method.
1656
1678
  *
1657
1679
  * @param params The params for the smart contract call
1658
1680
  * @returns The call transaction
1659
1681
  */
1660
- setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & {
1682
+ setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(uint64)void"] | BridgeArgs["tuple"]["setGasOracle(uint64)void"]> & {
1661
1683
  onComplete?: OnApplicationComplete.NoOpOC;
1662
1684
  }) => Promise<{
1663
1685
  transactions: Transaction[];
@@ -1732,15 +1754,15 @@ export declare class BridgeClient {
1732
1754
  transaction: Transaction;
1733
1755
  }>;
1734
1756
  /**
1735
- * Makes a call to the Bridge smart contract using the `noop()void` ABI method.
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.
1736
1758
  *
1737
1759
  * @param params The params for the smart contract call
1738
1760
  * @returns The call result
1739
1761
  */
1740
- noop: (params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]> & SendParams & {
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 & {
1741
1763
  onComplete?: OnApplicationComplete.NoOpOC;
1742
1764
  }) => Promise<{
1743
- return: undefined | BridgeReturns["noop()void"];
1765
+ return: undefined | BridgeReturns["swapAndBridge(pay,axfer,byte[32],byte,byte[32],byte[32],uint64)void"];
1744
1766
  confirmations: modelsv2.PendingTransactionResponse[];
1745
1767
  returns?: ABIReturn[] | undefined;
1746
1768
  groupId: string;
@@ -1750,15 +1772,15 @@ export declare class BridgeClient {
1750
1772
  transaction: Transaction;
1751
1773
  }>;
1752
1774
  /**
1753
- * Makes a call to the Bridge smart contract using the `swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
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.
1754
1776
  *
1755
1777
  * @param params The params for the smart contract call
1756
1778
  * @returns The call result
1757
1779
  */
1758
- swapAndBridge: (params: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & SendParams & {
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 & {
1759
1781
  onComplete?: OnApplicationComplete.NoOpOC;
1760
1782
  }) => Promise<{
1761
- return: undefined | BridgeReturns["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
1783
+ return: undefined | BridgeReturns["swapAndBridgeWithStable(axfer,byte[32],byte,byte[32],byte[32],uint64,uint64)void"];
1762
1784
  confirmations: modelsv2.PendingTransactionResponse[];
1763
1785
  returns?: ABIReturn[] | undefined;
1764
1786
  groupId: string;
@@ -1768,15 +1790,15 @@ export declare class BridgeClient {
1768
1790
  transaction: Transaction;
1769
1791
  }>;
1770
1792
  /**
1771
- * Makes a call to the Bridge smart contract using the `receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void` ABI method.
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.
1772
1794
  *
1773
1795
  * @param params The params for the smart contract call
1774
1796
  * @returns The call result
1775
1797
  */
1776
- receiveTokens: (params: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]> & SendParams & {
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 & {
1777
1799
  onComplete?: OnApplicationComplete.NoOpOC;
1778
1800
  }) => Promise<{
1779
- return: undefined | BridgeReturns["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
1801
+ return: undefined | BridgeReturns["receiveTokens(pay,uint64,byte[32],byte,byte[32],byte[32],uint64)void"];
1780
1802
  confirmations: modelsv2.PendingTransactionResponse[];
1781
1803
  returns?: ABIReturn[] | undefined;
1782
1804
  groupId: string;
@@ -1996,15 +2018,15 @@ export declare class BridgeClient {
1996
2018
  transaction: Transaction;
1997
2019
  }>;
1998
2020
  /**
1999
- * Makes a call to the Bridge smart contract using the `swap(uint64,uint64,address,uint64)void` ABI method.
2021
+ * Makes a call to the Bridge smart contract using the `swap(axfer,uint64,address,uint64,uint64)void` ABI method.
2000
2022
  *
2001
2023
  * @param params The params for the smart contract call
2002
2024
  * @returns The call result
2003
2025
  */
2004
- swap: (params: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]> & SendParams & {
2026
+ swap: (params: CallParams<BridgeArgs["obj"]["swap(axfer,uint64,address,uint64,uint64)void"] | BridgeArgs["tuple"]["swap(axfer,uint64,address,uint64,uint64)void"]> & SendParams & {
2005
2027
  onComplete?: OnApplicationComplete.NoOpOC;
2006
2028
  }) => Promise<{
2007
- return: undefined | BridgeReturns["swap(uint64,uint64,address,uint64)void"];
2029
+ return: undefined | BridgeReturns["swap(axfer,uint64,address,uint64,uint64)void"];
2008
2030
  confirmations: modelsv2.PendingTransactionResponse[];
2009
2031
  returns?: ABIReturn[] | undefined;
2010
2032
  groupId: string;
@@ -2160,15 +2182,15 @@ export declare class BridgeClient {
2160
2182
  transaction: Transaction;
2161
2183
  }>;
2162
2184
  /**
2163
- * Makes a call to the Bridge smart contract using the `setGasOracle(application)void` ABI method.
2185
+ * Makes a call to the Bridge smart contract using the `setGasOracle(uint64)void` ABI method.
2164
2186
  *
2165
2187
  * @param params The params for the smart contract call
2166
2188
  * @returns The call result
2167
2189
  */
2168
- setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]> & SendParams & {
2190
+ setGasOracle: (params: CallParams<BridgeArgs["obj"]["setGasOracle(uint64)void"] | BridgeArgs["tuple"]["setGasOracle(uint64)void"]> & SendParams & {
2169
2191
  onComplete?: OnApplicationComplete.NoOpOC;
2170
2192
  }) => Promise<{
2171
- return: undefined | BridgeReturns["setGasOracle(application)void"];
2193
+ return: undefined | BridgeReturns["setGasOracle(uint64)void"];
2172
2194
  confirmations: modelsv2.PendingTransactionResponse[];
2173
2195
  returns?: ABIReturn[] | undefined;
2174
2196
  groupId: string;
@@ -2462,34 +2484,37 @@ export type BridgeComposer<TReturns extends [...any[]] = []> = {
2462
2484
  */
2463
2485
  optInAsset(params?: CallParams<BridgeArgs["obj"]["optInAsset(uint64)void"] | BridgeArgs["tuple"]["optInAsset(uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["optInAsset(uint64)void"] | undefined]>;
2464
2486
  /**
2465
- * Calls the noop()void ABI method.
2487
+ * Calls the swapAndBridge(pay,axfer,byte[32],byte,byte[32],byte[32],uint64)void ABI method.
2466
2488
  *
2467
2489
  * @param args The arguments for the contract call
2468
2490
  * @param params Any additional parameters for the call
2469
2491
  * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2470
2492
  */
2471
- noop(params?: CallParams<BridgeArgs["obj"]["noop()void"] | BridgeArgs["tuple"]["noop()void"]>): BridgeComposer<[...TReturns, BridgeReturns["noop()void"] | undefined]>;
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
+ ]>;
2472
2497
  /**
2473
- * Calls the swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method.
2498
+ * Calls the swapAndBridgeWithStable(axfer,byte[32],byte,byte[32],byte[32],uint64,uint64)void ABI method.
2474
2499
  *
2475
2500
  * @param args The arguments for the contract call
2476
2501
  * @param params Any additional parameters for the call
2477
2502
  * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2478
2503
  */
2479
- swapAndBridge(params?: CallParams<BridgeArgs["obj"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]>): BridgeComposer<[
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<[
2480
2505
  ...TReturns,
2481
- BridgeReturns["swapAndBridge(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | undefined
2506
+ BridgeReturns["swapAndBridgeWithStable(axfer,byte[32],byte,byte[32],byte[32],uint64,uint64)void"] | undefined
2482
2507
  ]>;
2483
2508
  /**
2484
- * Calls the receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method.
2509
+ * Calls the receiveTokens(pay,uint64,byte[32],byte,byte[32],byte[32],uint64)void ABI method.
2485
2510
  *
2486
2511
  * @param args The arguments for the contract call
2487
2512
  * @param params Any additional parameters for the call
2488
2513
  * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2489
2514
  */
2490
- receiveTokens(params?: CallParams<BridgeArgs["obj"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | BridgeArgs["tuple"]["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"]>): BridgeComposer<[
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<[
2491
2516
  ...TReturns,
2492
- BridgeReturns["receiveTokens(uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | undefined
2517
+ BridgeReturns["receiveTokens(pay,uint64,byte[32],byte,byte[32],byte[32],uint64)void"] | undefined
2493
2518
  ]>;
2494
2519
  /**
2495
2520
  * Calls the registerBridge(byte,byte[32])void ABI method.
@@ -2583,13 +2608,13 @@ export type BridgeComposer<TReturns extends [...any[]] = []> = {
2583
2608
  */
2584
2609
  getSendTransactionStorageCost(params?: CallParams<BridgeArgs["obj"]["getSendTransactionStorageCost()uint64"] | BridgeArgs["tuple"]["getSendTransactionStorageCost()uint64"]>): BridgeComposer<[...TReturns, BridgeReturns["getSendTransactionStorageCost()uint64"] | undefined]>;
2585
2610
  /**
2586
- * Calls the swap(uint64,uint64,address,uint64)void ABI method.
2611
+ * Calls the swap(axfer,uint64,address,uint64,uint64)void ABI method.
2587
2612
  *
2588
2613
  * @param args The arguments for the contract call
2589
2614
  * @param params Any additional parameters for the call
2590
2615
  * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2591
2616
  */
2592
- swap(params?: CallParams<BridgeArgs["obj"]["swap(uint64,uint64,address,uint64)void"] | BridgeArgs["tuple"]["swap(uint64,uint64,address,uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["swap(uint64,uint64,address,uint64)void"] | undefined]>;
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]>;
2593
2618
  /**
2594
2619
  * Calls the addPool(uint64,uint64)void ABI method.
2595
2620
  *
@@ -2655,13 +2680,13 @@ export type BridgeComposer<TReturns extends [...any[]] = []> = {
2655
2680
  */
2656
2681
  setGasUsage(params?: CallParams<BridgeArgs["obj"]["setGasUsage(byte,uint64)void"] | BridgeArgs["tuple"]["setGasUsage(byte,uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setGasUsage(byte,uint64)void"] | undefined]>;
2657
2682
  /**
2658
- * Calls the setGasOracle(application)void ABI method.
2683
+ * Calls the setGasOracle(uint64)void ABI method.
2659
2684
  *
2660
2685
  * @param args The arguments for the contract call
2661
2686
  * @param params Any additional parameters for the call
2662
2687
  * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
2663
2688
  */
2664
- setGasOracle(params?: CallParams<BridgeArgs["obj"]["setGasOracle(application)void"] | BridgeArgs["tuple"]["setGasOracle(application)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setGasOracle(application)void"] | undefined]>;
2689
+ setGasOracle(params?: CallParams<BridgeArgs["obj"]["setGasOracle(uint64)void"] | BridgeArgs["tuple"]["setGasOracle(uint64)void"]>): BridgeComposer<[...TReturns, BridgeReturns["setGasOracle(uint64)void"] | undefined]>;
2665
2690
  /**
2666
2691
  * Calls the getTransactionRelayerCost(byte)uint64 ABI method.
2667
2692
  *