@allbridge/bridge-core-sdk 3.27.0-beta.6 → 3.27.0

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