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

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