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

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