@allbridge/bridge-core-sdk 3.27.0-alpha.2 → 3.27.0-alpha.20
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.
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +4 -4
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +4 -4
- package/dist/src/chains/chain.enums.d.ts +7 -2
- package/dist/src/chains/chain.enums.js +5 -0
- package/dist/src/chains/chain.enums.js.map +1 -1
- package/dist/src/chains/index.js +6 -0
- package/dist/src/chains/index.js.map +1 -1
- package/dist/src/client/core-api/api-client.js +1 -0
- package/dist/src/client/core-api/api-client.js.map +1 -1
- package/dist/src/client/core-api/core-api-mapper.js +32 -0
- package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
- package/dist/src/client/core-api/core-api.model.d.ts +13 -2
- package/dist/src/client/core-api/core-api.model.js.map +1 -1
- package/dist/src/configs/mainnet.js +1 -0
- package/dist/src/configs/mainnet.js.map +1 -1
- package/dist/src/index.d.ts +6 -4
- package/dist/src/index.js +5 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/models/index.d.ts +12 -4
- package/dist/src/models/index.js +4 -0
- package/dist/src/models/index.js.map +1 -1
- package/dist/src/services/bridge/alg/index.d.ts +1 -0
- package/dist/src/services/bridge/alg/index.js +79 -43
- package/dist/src/services/bridge/alg/index.js.map +1 -1
- package/dist/src/services/bridge/evm/index.d.ts +1 -0
- package/dist/src/services/bridge/evm/index.js +103 -33
- package/dist/src/services/bridge/evm/index.js.map +1 -1
- package/dist/src/services/bridge/index.d.ts +2 -2
- package/dist/src/services/bridge/index.js +15 -4
- package/dist/src/services/bridge/index.js.map +1 -1
- package/dist/src/services/bridge/models/bridge.model.d.ts +12 -4
- package/dist/src/services/bridge/models/bridge.model.js.map +1 -1
- package/dist/src/services/bridge/raw-bridge-transaction-builder.js +1 -1
- package/dist/src/services/bridge/raw-bridge-transaction-builder.js.map +1 -1
- package/dist/src/services/bridge/srb/index.js +36 -28
- package/dist/src/services/bridge/srb/index.js.map +1 -1
- package/dist/src/services/bridge/stx/index.d.ts +16 -0
- package/dist/src/services/bridge/stx/index.js +136 -0
- package/dist/src/services/bridge/stx/index.js.map +1 -0
- package/dist/src/services/bridge/sui/index.js +166 -138
- package/dist/src/services/bridge/sui/index.js.map +1 -1
- package/dist/src/services/bridge/trx/index.js +98 -70
- package/dist/src/services/bridge/trx/index.js.map +1 -1
- package/dist/src/services/bridge/utils.d.ts +3 -1
- package/dist/src/services/bridge/utils.js +92 -8
- package/dist/src/services/bridge/utils.js.map +1 -1
- package/dist/src/services/liquidity-pool/alg/index.js +10 -17
- package/dist/src/services/liquidity-pool/alg/index.js.map +1 -1
- package/dist/src/services/liquidity-pool/index.js +5 -0
- package/dist/src/services/liquidity-pool/index.js.map +1 -1
- package/dist/src/services/liquidity-pool/stx/index.d.ts +21 -0
- package/dist/src/services/liquidity-pool/stx/index.js +141 -0
- package/dist/src/services/liquidity-pool/stx/index.js.map +1 -0
- package/dist/src/services/models/abi/PayerWithAbr.d.ts +203 -0
- package/dist/src/services/models/abi/PayerWithAbr.js +266 -0
- package/dist/src/services/models/abi/PayerWithAbr.js.map +1 -0
- package/dist/src/services/models/alg/BridgeClient.d.ts +158 -133
- package/dist/src/services/models/alg/BridgeClient.js +182 -130
- package/dist/src/services/models/alg/BridgeClient.js.map +1 -1
- package/dist/src/services/models/alg/PaddingUtilClient.d.ts +639 -0
- package/dist/src/services/models/alg/PaddingUtilClient.js +425 -0
- package/dist/src/services/models/alg/PaddingUtilClient.js.map +1 -0
- package/dist/src/services/models/alg/PoolClient.d.ts +204 -201
- package/dist/src/services/models/alg/PoolClient.js +234 -215
- package/dist/src/services/models/alg/PoolClient.js.map +1 -1
- package/dist/src/services/models/index.d.ts +2 -1
- package/dist/src/services/models/index.js.map +1 -1
- package/dist/src/services/models/stx/clarigen-types.d.ts +657 -0
- package/dist/src/services/models/stx/clarigen-types.js +2296 -0
- package/dist/src/services/models/stx/clarigen-types.js.map +1 -0
- package/dist/src/services/token/index.js +7 -2
- package/dist/src/services/token/index.js.map +1 -1
- package/dist/src/services/token/models/token.model.d.ts +4 -4
- package/dist/src/services/token/models/token.model.js.map +1 -1
- package/dist/src/services/token/stx/index.d.ts +20 -0
- package/dist/src/services/token/stx/index.js +59 -0
- package/dist/src/services/token/stx/index.js.map +1 -0
- package/dist/src/services/utils/alg/index.d.ts +1 -10
- package/dist/src/services/utils/alg/index.js +0 -20
- package/dist/src/services/utils/alg/index.js.map +1 -1
- package/dist/src/services/utils/stx/get-token-name.d.ts +2 -0
- package/dist/src/services/utils/stx/get-token-name.js +15 -0
- package/dist/src/services/utils/stx/get-token-name.js.map +1 -0
- package/dist/src/services/utils/stx/post-conditions.d.ts +3 -0
- package/dist/src/services/utils/stx/post-conditions.js +27 -0
- package/dist/src/services/utils/stx/post-conditions.js.map +1 -0
- package/dist/src/services/yield/index.js +4 -0
- package/dist/src/services/yield/index.js.map +1 -1
- package/dist/src/tokens-info/tokens-info.model.d.ts +21 -0
- package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
- package/dist/src/utils/utils.d.ts +2 -0
- package/dist/src/utils/utils.js +11 -0
- package/dist/src/utils/utils.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/package.json +6 -2
|
@@ -44,21 +44,30 @@ export type PoolArgs = {
|
|
|
44
44
|
owner: string;
|
|
45
45
|
router: string;
|
|
46
46
|
a: bigint | number;
|
|
47
|
-
|
|
47
|
+
asset: bigint | number;
|
|
48
48
|
feeShareBp: bigint | number;
|
|
49
49
|
balanceRatioMinBp: bigint | number;
|
|
50
50
|
};
|
|
51
51
|
"optInToApplication()void": Record<string, never>;
|
|
52
|
+
"closeOutOfApplication(uint64)void": {
|
|
53
|
+
budget?: bigint | number;
|
|
54
|
+
};
|
|
52
55
|
"optInAsset()void": Record<string, never>;
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
"deposit(axfer,uint64)void": {
|
|
57
|
+
assetTransferRef: AppMethodCallTransactionArgument;
|
|
58
|
+
budget?: bigint | number;
|
|
59
|
+
};
|
|
60
|
+
"withdraw(uint64,uint64)void": {
|
|
56
61
|
/**
|
|
57
62
|
* The Withdrawn amount
|
|
58
63
|
*/
|
|
59
64
|
amountLp: bigint | number;
|
|
65
|
+
budget?: bigint | number;
|
|
60
66
|
};
|
|
61
67
|
"swapToVUsd(address,uint64,bool)uint64": {
|
|
68
|
+
/**
|
|
69
|
+
* The address of the sender.
|
|
70
|
+
*/
|
|
62
71
|
user: string;
|
|
63
72
|
/**
|
|
64
73
|
* The amount of tokens to swap.
|
|
@@ -115,10 +124,9 @@ export type PoolArgs = {
|
|
|
115
124
|
adminFeeShareBp: bigint | number;
|
|
116
125
|
};
|
|
117
126
|
"claimAdminFee()void": Record<string, never>;
|
|
118
|
-
"pendingReward(
|
|
119
|
-
user:
|
|
127
|
+
"pendingReward(address)uint64": {
|
|
128
|
+
user: string;
|
|
120
129
|
};
|
|
121
|
-
"decimals()uint64": Record<string, never>;
|
|
122
130
|
"transferOwnership(address)void": {
|
|
123
131
|
newOwner: string;
|
|
124
132
|
};
|
|
@@ -131,15 +139,18 @@ export type PoolArgs = {
|
|
|
131
139
|
owner: string,
|
|
132
140
|
router: string,
|
|
133
141
|
a: bigint | number,
|
|
134
|
-
|
|
142
|
+
asset: bigint | number,
|
|
135
143
|
feeShareBp: bigint | number,
|
|
136
144
|
balanceRatioMinBp: bigint | number
|
|
137
145
|
];
|
|
138
146
|
"optInToApplication()void": [];
|
|
147
|
+
"closeOutOfApplication(uint64)void": [budget: bigint | number | undefined];
|
|
139
148
|
"optInAsset()void": [];
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
149
|
+
"deposit(axfer,uint64)void": [
|
|
150
|
+
assetTransferRef: AppMethodCallTransactionArgument,
|
|
151
|
+
budget: bigint | number | undefined
|
|
152
|
+
];
|
|
153
|
+
"withdraw(uint64,uint64)void": [amountLp: bigint | number, budget: bigint | number | undefined];
|
|
143
154
|
"swapToVUsd(address,uint64,bool)uint64": [user: string, amount: bigint | number, zeroFee: boolean];
|
|
144
155
|
"swapFromVUsd(address,uint64,uint64,bool)uint64": [
|
|
145
156
|
user: string,
|
|
@@ -159,8 +170,7 @@ export type PoolArgs = {
|
|
|
159
170
|
"claimRewards()void": [];
|
|
160
171
|
"setAdminFeeShare(uint64)void": [adminFeeShareBp: bigint | number];
|
|
161
172
|
"claimAdminFee()void": [];
|
|
162
|
-
"pendingReward(
|
|
163
|
-
"decimals()uint64": [];
|
|
173
|
+
"pendingReward(address)uint64": [user: string];
|
|
164
174
|
"transferOwnership(address)void": [newOwner: string];
|
|
165
175
|
};
|
|
166
176
|
};
|
|
@@ -170,10 +180,10 @@ export type PoolArgs = {
|
|
|
170
180
|
export type PoolReturns = {
|
|
171
181
|
"createApplication(address,address,uint64,uint64,uint64,uint64)void": void;
|
|
172
182
|
"optInToApplication()void": void;
|
|
183
|
+
"closeOutOfApplication(uint64)void": void;
|
|
173
184
|
"optInAsset()void": void;
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"withdraw(uint64)void": void;
|
|
185
|
+
"deposit(axfer,uint64)void": void;
|
|
186
|
+
"withdraw(uint64,uint64)void": void;
|
|
177
187
|
"swapToVUsd(address,uint64,bool)uint64": bigint;
|
|
178
188
|
"swapFromVUsd(address,uint64,uint64,bool)uint64": bigint;
|
|
179
189
|
"setFeeShare(uint64)void": void;
|
|
@@ -188,8 +198,7 @@ export type PoolReturns = {
|
|
|
188
198
|
"claimRewards()void": void;
|
|
189
199
|
"setAdminFeeShare(uint64)void": void;
|
|
190
200
|
"claimAdminFee()void": void;
|
|
191
|
-
"pendingReward(
|
|
192
|
-
"decimals()uint64": bigint;
|
|
201
|
+
"pendingReward(address)uint64": bigint;
|
|
193
202
|
"transferOwnership(address)void": void;
|
|
194
203
|
};
|
|
195
204
|
/**
|
|
@@ -207,22 +216,22 @@ export type PoolTypes = {
|
|
|
207
216
|
argsObj: PoolArgs["obj"]["optInToApplication()void"];
|
|
208
217
|
argsTuple: PoolArgs["tuple"]["optInToApplication()void"];
|
|
209
218
|
returns: PoolReturns["optInToApplication()void"];
|
|
219
|
+
}> & Record<"closeOutOfApplication(uint64)void" | "closeOutOfApplication", {
|
|
220
|
+
argsObj: PoolArgs["obj"]["closeOutOfApplication(uint64)void"];
|
|
221
|
+
argsTuple: PoolArgs["tuple"]["closeOutOfApplication(uint64)void"];
|
|
222
|
+
returns: PoolReturns["closeOutOfApplication(uint64)void"];
|
|
210
223
|
}> & Record<"optInAsset()void" | "optInAsset", {
|
|
211
224
|
argsObj: PoolArgs["obj"]["optInAsset()void"];
|
|
212
225
|
argsTuple: PoolArgs["tuple"]["optInAsset()void"];
|
|
213
226
|
returns: PoolReturns["optInAsset()void"];
|
|
214
|
-
}> & Record<"
|
|
215
|
-
argsObj: PoolArgs["obj"]["
|
|
216
|
-
argsTuple: PoolArgs["tuple"]["
|
|
217
|
-
returns: PoolReturns["
|
|
218
|
-
}> & Record<"
|
|
219
|
-
argsObj: PoolArgs["obj"]["
|
|
220
|
-
argsTuple: PoolArgs["tuple"]["
|
|
221
|
-
returns: PoolReturns["
|
|
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"];
|
|
227
|
+
}> & Record<"deposit(axfer,uint64)void" | "deposit", {
|
|
228
|
+
argsObj: PoolArgs["obj"]["deposit(axfer,uint64)void"];
|
|
229
|
+
argsTuple: PoolArgs["tuple"]["deposit(axfer,uint64)void"];
|
|
230
|
+
returns: PoolReturns["deposit(axfer,uint64)void"];
|
|
231
|
+
}> & Record<"withdraw(uint64,uint64)void" | "withdraw", {
|
|
232
|
+
argsObj: PoolArgs["obj"]["withdraw(uint64,uint64)void"];
|
|
233
|
+
argsTuple: PoolArgs["tuple"]["withdraw(uint64,uint64)void"];
|
|
234
|
+
returns: PoolReturns["withdraw(uint64,uint64)void"];
|
|
226
235
|
}> & Record<"swapToVUsd(address,uint64,bool)uint64" | "swapToVUsd", {
|
|
227
236
|
argsObj: PoolArgs["obj"]["swapToVUsd(address,uint64,bool)uint64"];
|
|
228
237
|
argsTuple: PoolArgs["tuple"]["swapToVUsd(address,uint64,bool)uint64"];
|
|
@@ -285,14 +294,10 @@ export type PoolTypes = {
|
|
|
285
294
|
argsObj: PoolArgs["obj"]["claimAdminFee()void"];
|
|
286
295
|
argsTuple: PoolArgs["tuple"]["claimAdminFee()void"];
|
|
287
296
|
returns: PoolReturns["claimAdminFee()void"];
|
|
288
|
-
}> & Record<"pendingReward(
|
|
289
|
-
argsObj: PoolArgs["obj"]["pendingReward(
|
|
290
|
-
argsTuple: PoolArgs["tuple"]["pendingReward(
|
|
291
|
-
returns: PoolReturns["pendingReward(
|
|
292
|
-
}> & Record<"decimals()uint64" | "decimals", {
|
|
293
|
-
argsObj: PoolArgs["obj"]["decimals()uint64"];
|
|
294
|
-
argsTuple: PoolArgs["tuple"]["decimals()uint64"];
|
|
295
|
-
returns: PoolReturns["decimals()uint64"];
|
|
297
|
+
}> & Record<"pendingReward(address)uint64" | "pendingReward", {
|
|
298
|
+
argsObj: PoolArgs["obj"]["pendingReward(address)uint64"];
|
|
299
|
+
argsTuple: PoolArgs["tuple"]["pendingReward(address)uint64"];
|
|
300
|
+
returns: PoolReturns["pendingReward(address)uint64"];
|
|
296
301
|
}> & Record<"transferOwnership(address)void" | "transferOwnership", {
|
|
297
302
|
argsObj: PoolArgs["obj"]["transferOwnership(address)void"];
|
|
298
303
|
argsTuple: PoolArgs["tuple"]["transferOwnership(address)void"];
|
|
@@ -442,6 +447,25 @@ export declare abstract class PoolParamsFactory {
|
|
|
442
447
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
443
448
|
*/
|
|
444
449
|
optInToApplication(params: CallParams<PoolArgs["obj"]["optInToApplication()void"] | PoolArgs["tuple"]["optInToApplication()void"]>): AppClientMethodCallParams;
|
|
450
|
+
/**
|
|
451
|
+
* Constructs opt-in ABI call params for the Pool smart contract using the deposit(axfer,uint64)void ABI method
|
|
452
|
+
*
|
|
453
|
+
* @param params Parameters for the call
|
|
454
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
455
|
+
*/
|
|
456
|
+
deposit(params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]>): AppClientMethodCallParams;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Gets available closeOut ABI call param factories
|
|
460
|
+
*/
|
|
461
|
+
static get closeOut(): {
|
|
462
|
+
/**
|
|
463
|
+
* Constructs close out ABI call params for the Pool smart contract using the closeOutOfApplication(uint64)void ABI method
|
|
464
|
+
*
|
|
465
|
+
* @param params Parameters for the call
|
|
466
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
467
|
+
*/
|
|
468
|
+
closeOutOfApplication(params: CallParams<PoolArgs["obj"]["closeOutOfApplication(uint64)void"] | PoolArgs["tuple"]["closeOutOfApplication(uint64)void"]>): AppClientMethodCallParams;
|
|
445
469
|
};
|
|
446
470
|
/**
|
|
447
471
|
* Constructs a no op call for the optInAsset()void ABI method
|
|
@@ -456,26 +480,19 @@ export declare abstract class PoolParamsFactory {
|
|
|
456
480
|
*/
|
|
457
481
|
static optInAsset(params: CallParams<PoolArgs["obj"]["optInAsset()void"] | PoolArgs["tuple"]["optInAsset()void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
458
482
|
/**
|
|
459
|
-
* Constructs a no op call for the
|
|
483
|
+
* Constructs a no op call for the deposit(axfer,uint64)void ABI method
|
|
460
484
|
*
|
|
461
485
|
* @param params Parameters for the call
|
|
462
486
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
463
487
|
*/
|
|
464
|
-
static
|
|
488
|
+
static deposit(params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
465
489
|
/**
|
|
466
|
-
* Constructs a no op call for the
|
|
490
|
+
* Constructs a no op call for the withdraw(uint64,uint64)void ABI method
|
|
467
491
|
*
|
|
468
492
|
* @param params Parameters for the call
|
|
469
493
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
470
494
|
*/
|
|
471
|
-
static
|
|
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;
|
|
495
|
+
static withdraw(params: CallParams<PoolArgs["obj"]["withdraw(uint64,uint64)void"] | PoolArgs["tuple"]["withdraw(uint64,uint64)void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
479
496
|
/**
|
|
480
497
|
* Constructs a no op call for the swapToVUsd(address,uint64,bool)uint64 ABI method
|
|
481
498
|
*
|
|
@@ -575,19 +592,12 @@ export declare abstract class PoolParamsFactory {
|
|
|
575
592
|
*/
|
|
576
593
|
static claimAdminFee(params: CallParams<PoolArgs["obj"]["claimAdminFee()void"] | PoolArgs["tuple"]["claimAdminFee()void"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
577
594
|
/**
|
|
578
|
-
* Constructs a no op call for the pendingReward(
|
|
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
|
|
595
|
+
* Constructs a no op call for the pendingReward(address)uint64 ABI method
|
|
586
596
|
*
|
|
587
597
|
* @param params Parameters for the call
|
|
588
598
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
589
599
|
*/
|
|
590
|
-
static
|
|
600
|
+
static pendingReward(params: CallParams<PoolArgs["obj"]["pendingReward(address)uint64"] | PoolArgs["tuple"]["pendingReward(address)uint64"]> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
591
601
|
/**
|
|
592
602
|
* Constructs a no op call for the transferOwnership(address)void ABI method
|
|
593
603
|
*
|
|
@@ -958,6 +968,25 @@ export declare class PoolClient {
|
|
|
958
968
|
* @returns The optIn params
|
|
959
969
|
*/
|
|
960
970
|
optInToApplication: (params?: CallParams<PoolArgs["obj"]["optInToApplication()void"] | PoolArgs["tuple"]["optInToApplication()void"]>) => Promise<AppCallMethodCall>;
|
|
971
|
+
/**
|
|
972
|
+
* Opts the user into an existing instance of the Pool smart contract using the `deposit(axfer,uint64)void` ABI method.
|
|
973
|
+
*
|
|
974
|
+
* @param params The params for the smart contract call
|
|
975
|
+
* @returns The optIn params
|
|
976
|
+
*/
|
|
977
|
+
deposit: (params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]>) => Promise<AppCallMethodCall>;
|
|
978
|
+
};
|
|
979
|
+
/**
|
|
980
|
+
* Gets available closeOut methods
|
|
981
|
+
*/
|
|
982
|
+
closeOut: {
|
|
983
|
+
/**
|
|
984
|
+
* Makes a close out call to an existing instance of the Pool smart contract using the `closeOutOfApplication(uint64)void` ABI method.
|
|
985
|
+
*
|
|
986
|
+
* @param params The params for the smart contract call
|
|
987
|
+
* @returns The closeOut params
|
|
988
|
+
*/
|
|
989
|
+
closeOutOfApplication: (params?: CallParams<PoolArgs["obj"]["closeOutOfApplication(uint64)void"] | PoolArgs["tuple"]["closeOutOfApplication(uint64)void"]>) => Promise<AppCallMethodCall>;
|
|
961
990
|
};
|
|
962
991
|
/**
|
|
963
992
|
* Makes a clear_state call to an existing instance of the Pool smart contract.
|
|
@@ -981,30 +1010,21 @@ export declare class PoolClient {
|
|
|
981
1010
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
982
1011
|
}) => Promise<AppCallMethodCall>;
|
|
983
1012
|
/**
|
|
984
|
-
* Makes a call to the Pool smart contract using the `
|
|
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.
|
|
1013
|
+
* Makes a call to the Pool smart contract using the `deposit(axfer,uint64)void` ABI method.
|
|
994
1014
|
*
|
|
995
1015
|
* @param params The params for the smart contract call
|
|
996
1016
|
* @returns The call params
|
|
997
1017
|
*/
|
|
998
|
-
deposit: (params
|
|
999
|
-
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1018
|
+
deposit: (params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]> & {
|
|
1019
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC;
|
|
1000
1020
|
}) => Promise<AppCallMethodCall>;
|
|
1001
1021
|
/**
|
|
1002
|
-
* Makes a call to the Pool smart contract using the `withdraw(uint64)void` ABI method.
|
|
1022
|
+
* Makes a call to the Pool smart contract using the `withdraw(uint64,uint64)void` ABI method.
|
|
1003
1023
|
*
|
|
1004
1024
|
* @param params The params for the smart contract call
|
|
1005
1025
|
* @returns The call params
|
|
1006
1026
|
*/
|
|
1007
|
-
withdraw: (params: CallParams<PoolArgs["obj"]["withdraw(uint64)void"] | PoolArgs["tuple"]["withdraw(uint64)void"]> & {
|
|
1027
|
+
withdraw: (params: CallParams<PoolArgs["obj"]["withdraw(uint64,uint64)void"] | PoolArgs["tuple"]["withdraw(uint64,uint64)void"]> & {
|
|
1008
1028
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1009
1029
|
}) => Promise<AppCallMethodCall>;
|
|
1010
1030
|
/**
|
|
@@ -1134,25 +1154,14 @@ export declare class PoolClient {
|
|
|
1134
1154
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1135
1155
|
}) => Promise<AppCallMethodCall>;
|
|
1136
1156
|
/**
|
|
1137
|
-
* Makes a call to the Pool smart contract using the `pendingReward(
|
|
1157
|
+
* Makes a call to the Pool smart contract using the `pendingReward(address)uint64` ABI method.
|
|
1138
1158
|
*
|
|
1139
1159
|
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1140
1160
|
*
|
|
1141
1161
|
* @param params The params for the smart contract call
|
|
1142
1162
|
* @returns The call params
|
|
1143
1163
|
*/
|
|
1144
|
-
pendingReward: (params: CallParams<PoolArgs["obj"]["pendingReward(
|
|
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"]> & {
|
|
1164
|
+
pendingReward: (params: CallParams<PoolArgs["obj"]["pendingReward(address)uint64"] | PoolArgs["tuple"]["pendingReward(address)uint64"]> & {
|
|
1156
1165
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1157
1166
|
}) => Promise<AppCallMethodCall>;
|
|
1158
1167
|
/**
|
|
@@ -1184,6 +1193,33 @@ export declare class PoolClient {
|
|
|
1184
1193
|
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1185
1194
|
signers: Map<number, TransactionSigner>;
|
|
1186
1195
|
}>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Opts the user into an existing instance of the Pool smart contract using the `deposit(axfer,uint64)void` ABI method.
|
|
1198
|
+
*
|
|
1199
|
+
* @param params The params for the smart contract call
|
|
1200
|
+
* @returns The optIn transaction
|
|
1201
|
+
*/
|
|
1202
|
+
deposit: (params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]>) => Promise<{
|
|
1203
|
+
transactions: Transaction[];
|
|
1204
|
+
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1205
|
+
signers: Map<number, TransactionSigner>;
|
|
1206
|
+
}>;
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Gets available closeOut methods
|
|
1210
|
+
*/
|
|
1211
|
+
closeOut: {
|
|
1212
|
+
/**
|
|
1213
|
+
* Makes a close out call to an existing instance of the Pool smart contract using the `closeOutOfApplication(uint64)void` ABI method.
|
|
1214
|
+
*
|
|
1215
|
+
* @param params The params for the smart contract call
|
|
1216
|
+
* @returns The closeOut transaction
|
|
1217
|
+
*/
|
|
1218
|
+
closeOutOfApplication: (params?: CallParams<PoolArgs["obj"]["closeOutOfApplication(uint64)void"] | PoolArgs["tuple"]["closeOutOfApplication(uint64)void"]>) => Promise<{
|
|
1219
|
+
transactions: Transaction[];
|
|
1220
|
+
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1221
|
+
signers: Map<number, TransactionSigner>;
|
|
1222
|
+
}>;
|
|
1187
1223
|
};
|
|
1188
1224
|
/**
|
|
1189
1225
|
* Makes a clear_state call to an existing instance of the Pool smart contract.
|
|
@@ -1211,38 +1247,25 @@ export declare class PoolClient {
|
|
|
1211
1247
|
signers: Map<number, TransactionSigner>;
|
|
1212
1248
|
}>;
|
|
1213
1249
|
/**
|
|
1214
|
-
* Makes a call to the Pool smart contract using the `
|
|
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.
|
|
1250
|
+
* Makes a call to the Pool smart contract using the `deposit(axfer,uint64)void` ABI method.
|
|
1228
1251
|
*
|
|
1229
1252
|
* @param params The params for the smart contract call
|
|
1230
1253
|
* @returns The call transaction
|
|
1231
1254
|
*/
|
|
1232
|
-
deposit: (params
|
|
1233
|
-
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1255
|
+
deposit: (params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]> & {
|
|
1256
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC;
|
|
1234
1257
|
}) => Promise<{
|
|
1235
1258
|
transactions: Transaction[];
|
|
1236
1259
|
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1237
1260
|
signers: Map<number, TransactionSigner>;
|
|
1238
1261
|
}>;
|
|
1239
1262
|
/**
|
|
1240
|
-
* Makes a call to the Pool smart contract using the `withdraw(uint64)void` ABI method.
|
|
1263
|
+
* Makes a call to the Pool smart contract using the `withdraw(uint64,uint64)void` ABI method.
|
|
1241
1264
|
*
|
|
1242
1265
|
* @param params The params for the smart contract call
|
|
1243
1266
|
* @returns The call transaction
|
|
1244
1267
|
*/
|
|
1245
|
-
withdraw: (params: CallParams<PoolArgs["obj"]["withdraw(uint64)void"] | PoolArgs["tuple"]["withdraw(uint64)void"]> & {
|
|
1268
|
+
withdraw: (params: CallParams<PoolArgs["obj"]["withdraw(uint64,uint64)void"] | PoolArgs["tuple"]["withdraw(uint64,uint64)void"]> & {
|
|
1246
1269
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1247
1270
|
}) => Promise<{
|
|
1248
1271
|
transactions: Transaction[];
|
|
@@ -1432,29 +1455,14 @@ export declare class PoolClient {
|
|
|
1432
1455
|
signers: Map<number, TransactionSigner>;
|
|
1433
1456
|
}>;
|
|
1434
1457
|
/**
|
|
1435
|
-
* Makes a call to the Pool smart contract using the `pendingReward(
|
|
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.
|
|
1458
|
+
* Makes a call to the Pool smart contract using the `pendingReward(address)uint64` ABI method.
|
|
1451
1459
|
*
|
|
1452
1460
|
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1453
1461
|
*
|
|
1454
1462
|
* @param params The params for the smart contract call
|
|
1455
1463
|
* @returns The call transaction
|
|
1456
1464
|
*/
|
|
1457
|
-
|
|
1465
|
+
pendingReward: (params: CallParams<PoolArgs["obj"]["pendingReward(address)uint64"] | PoolArgs["tuple"]["pendingReward(address)uint64"]> & {
|
|
1458
1466
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1459
1467
|
}) => Promise<{
|
|
1460
1468
|
transactions: Transaction[];
|
|
@@ -1499,6 +1507,43 @@ export declare class PoolClient {
|
|
|
1499
1507
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
1500
1508
|
transaction: Transaction;
|
|
1501
1509
|
}>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Opts the user into an existing instance of the Pool smart contract using the `deposit(axfer,uint64)void` ABI method.
|
|
1512
|
+
*
|
|
1513
|
+
* @param params The params for the smart contract call
|
|
1514
|
+
* @returns The optIn result
|
|
1515
|
+
*/
|
|
1516
|
+
deposit: (params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]> & SendParams) => Promise<{
|
|
1517
|
+
return: undefined | PoolReturns["deposit(axfer,uint64)void"];
|
|
1518
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1519
|
+
returns?: ABIReturn[] | undefined;
|
|
1520
|
+
groupId: string;
|
|
1521
|
+
txIds: string[];
|
|
1522
|
+
transactions: Transaction[];
|
|
1523
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
1524
|
+
transaction: Transaction;
|
|
1525
|
+
}>;
|
|
1526
|
+
};
|
|
1527
|
+
/**
|
|
1528
|
+
* Gets available closeOut methods
|
|
1529
|
+
*/
|
|
1530
|
+
closeOut: {
|
|
1531
|
+
/**
|
|
1532
|
+
* Makes a close out call to an existing instance of the Pool smart contract using the `closeOutOfApplication(uint64)void` ABI method.
|
|
1533
|
+
*
|
|
1534
|
+
* @param params The params for the smart contract call
|
|
1535
|
+
* @returns The closeOut result
|
|
1536
|
+
*/
|
|
1537
|
+
closeOutOfApplication: (params?: CallParams<PoolArgs["obj"]["closeOutOfApplication(uint64)void"] | PoolArgs["tuple"]["closeOutOfApplication(uint64)void"]> & SendParams) => Promise<{
|
|
1538
|
+
return: undefined | PoolReturns["closeOutOfApplication(uint64)void"];
|
|
1539
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1540
|
+
returns?: ABIReturn[] | undefined;
|
|
1541
|
+
groupId: string;
|
|
1542
|
+
txIds: string[];
|
|
1543
|
+
transactions: Transaction[];
|
|
1544
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
1545
|
+
transaction: Transaction;
|
|
1546
|
+
}>;
|
|
1502
1547
|
};
|
|
1503
1548
|
/**
|
|
1504
1549
|
* Makes a clear_state call to an existing instance of the Pool smart contract.
|
|
@@ -1540,15 +1585,15 @@ export declare class PoolClient {
|
|
|
1540
1585
|
transaction: Transaction;
|
|
1541
1586
|
}>;
|
|
1542
1587
|
/**
|
|
1543
|
-
* Makes a call to the Pool smart contract using the `
|
|
1588
|
+
* Makes a call to the Pool smart contract using the `deposit(axfer,uint64)void` ABI method.
|
|
1544
1589
|
*
|
|
1545
1590
|
* @param params The params for the smart contract call
|
|
1546
1591
|
* @returns The call result
|
|
1547
1592
|
*/
|
|
1548
|
-
|
|
1549
|
-
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1593
|
+
deposit: (params: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]> & SendParams & {
|
|
1594
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC;
|
|
1550
1595
|
}) => Promise<{
|
|
1551
|
-
return: undefined | PoolReturns["
|
|
1596
|
+
return: undefined | PoolReturns["deposit(axfer,uint64)void"];
|
|
1552
1597
|
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1553
1598
|
returns?: ABIReturn[] | undefined;
|
|
1554
1599
|
groupId: string;
|
|
@@ -1558,33 +1603,15 @@ export declare class PoolClient {
|
|
|
1558
1603
|
transaction: Transaction;
|
|
1559
1604
|
}>;
|
|
1560
1605
|
/**
|
|
1561
|
-
* Makes a call to the Pool smart contract using the `
|
|
1606
|
+
* Makes a call to the Pool smart contract using the `withdraw(uint64,uint64)void` ABI method.
|
|
1562
1607
|
*
|
|
1563
1608
|
* @param params The params for the smart contract call
|
|
1564
1609
|
* @returns The call result
|
|
1565
1610
|
*/
|
|
1566
|
-
|
|
1611
|
+
withdraw: (params: CallParams<PoolArgs["obj"]["withdraw(uint64,uint64)void"] | PoolArgs["tuple"]["withdraw(uint64,uint64)void"]> & SendParams & {
|
|
1567
1612
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1568
1613
|
}) => Promise<{
|
|
1569
|
-
return: undefined | PoolReturns["
|
|
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"];
|
|
1614
|
+
return: undefined | PoolReturns["withdraw(uint64,uint64)void"];
|
|
1588
1615
|
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1589
1616
|
returns?: ABIReturn[] | undefined;
|
|
1590
1617
|
groupId: string;
|
|
@@ -1846,37 +1873,17 @@ export declare class PoolClient {
|
|
|
1846
1873
|
transaction: Transaction;
|
|
1847
1874
|
}>;
|
|
1848
1875
|
/**
|
|
1849
|
-
* Makes a call to the Pool smart contract using the `pendingReward(
|
|
1876
|
+
* Makes a call to the Pool smart contract using the `pendingReward(address)uint64` ABI method.
|
|
1850
1877
|
*
|
|
1851
1878
|
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1852
1879
|
*
|
|
1853
1880
|
* @param params The params for the smart contract call
|
|
1854
1881
|
* @returns The call result
|
|
1855
1882
|
*/
|
|
1856
|
-
pendingReward: (params: CallParams<PoolArgs["obj"]["pendingReward(
|
|
1883
|
+
pendingReward: (params: CallParams<PoolArgs["obj"]["pendingReward(address)uint64"] | PoolArgs["tuple"]["pendingReward(address)uint64"]> & SendParams & {
|
|
1857
1884
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1858
1885
|
}) => Promise<{
|
|
1859
|
-
return: undefined | PoolReturns["pendingReward(
|
|
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"];
|
|
1886
|
+
return: undefined | PoolReturns["pendingReward(address)uint64"];
|
|
1880
1887
|
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1881
1888
|
returns?: ABIReturn[] | undefined;
|
|
1882
1889
|
groupId: string;
|
|
@@ -1912,23 +1919,14 @@ export declare class PoolClient {
|
|
|
1912
1919
|
*/
|
|
1913
1920
|
clone(params: CloneAppClientParams): PoolClient;
|
|
1914
1921
|
/**
|
|
1915
|
-
* Makes a readonly (simulated) call to the Pool smart contract using the `pendingReward(
|
|
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.
|
|
1922
|
+
* Makes a readonly (simulated) call to the Pool smart contract using the `pendingReward(address)uint64` ABI method.
|
|
1925
1923
|
*
|
|
1926
1924
|
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1927
1925
|
*
|
|
1928
1926
|
* @param params The params for the smart contract call
|
|
1929
1927
|
* @returns The call result
|
|
1930
1928
|
*/
|
|
1931
|
-
|
|
1929
|
+
pendingReward(params: CallParams<PoolArgs["obj"]["pendingReward(address)uint64"] | PoolArgs["tuple"]["pendingReward(address)uint64"]>): Promise<bigint>;
|
|
1932
1930
|
/**
|
|
1933
1931
|
* Methods to access state for the current Pool app
|
|
1934
1932
|
*/
|
|
@@ -2053,29 +2051,21 @@ export type PoolComposer<TReturns extends [...any[]] = []> = {
|
|
|
2053
2051
|
*/
|
|
2054
2052
|
optInAsset(params?: CallParams<PoolArgs["obj"]["optInAsset()void"] | PoolArgs["tuple"]["optInAsset()void"]>): PoolComposer<[...TReturns, PoolReturns["optInAsset()void"] | undefined]>;
|
|
2055
2053
|
/**
|
|
2056
|
-
* Calls the
|
|
2054
|
+
* Calls the deposit(axfer,uint64)void ABI method.
|
|
2057
2055
|
*
|
|
2058
2056
|
* @param args The arguments for the contract call
|
|
2059
2057
|
* @param params Any additional parameters for the call
|
|
2060
2058
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2061
2059
|
*/
|
|
2062
|
-
|
|
2060
|
+
deposit(params?: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]>): PoolComposer<[...TReturns, PoolReturns["deposit(axfer,uint64)void"] | undefined]>;
|
|
2063
2061
|
/**
|
|
2064
|
-
* Calls the
|
|
2062
|
+
* Calls the withdraw(uint64,uint64)void ABI method.
|
|
2065
2063
|
*
|
|
2066
2064
|
* @param args The arguments for the contract call
|
|
2067
2065
|
* @param params Any additional parameters for the call
|
|
2068
2066
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2069
2067
|
*/
|
|
2070
|
-
|
|
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]>;
|
|
2068
|
+
withdraw(params?: CallParams<PoolArgs["obj"]["withdraw(uint64,uint64)void"] | PoolArgs["tuple"]["withdraw(uint64,uint64)void"]>): PoolComposer<[...TReturns, PoolReturns["withdraw(uint64,uint64)void"] | undefined]>;
|
|
2079
2069
|
/**
|
|
2080
2070
|
* Calls the swapToVUsd(address,uint64,bool)uint64 ABI method.
|
|
2081
2071
|
*
|
|
@@ -2189,21 +2179,13 @@ export type PoolComposer<TReturns extends [...any[]] = []> = {
|
|
|
2189
2179
|
*/
|
|
2190
2180
|
claimAdminFee(params?: CallParams<PoolArgs["obj"]["claimAdminFee()void"] | PoolArgs["tuple"]["claimAdminFee()void"]>): PoolComposer<[...TReturns, PoolReturns["claimAdminFee()void"] | undefined]>;
|
|
2191
2181
|
/**
|
|
2192
|
-
* Calls the pendingReward(
|
|
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.
|
|
2182
|
+
* Calls the pendingReward(address)uint64 ABI method.
|
|
2201
2183
|
*
|
|
2202
2184
|
* @param args The arguments for the contract call
|
|
2203
2185
|
* @param params Any additional parameters for the call
|
|
2204
2186
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2205
2187
|
*/
|
|
2206
|
-
|
|
2188
|
+
pendingReward(params?: CallParams<PoolArgs["obj"]["pendingReward(address)uint64"] | PoolArgs["tuple"]["pendingReward(address)uint64"]>): PoolComposer<[...TReturns, PoolReturns["pendingReward(address)uint64"] | undefined]>;
|
|
2207
2189
|
/**
|
|
2208
2190
|
* Calls the transferOwnership(address)void ABI method.
|
|
2209
2191
|
*
|
|
@@ -2224,6 +2206,27 @@ export type PoolComposer<TReturns extends [...any[]] = []> = {
|
|
|
2224
2206
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2225
2207
|
*/
|
|
2226
2208
|
optInToApplication(params?: CallParams<PoolArgs["obj"]["optInToApplication()void"] | PoolArgs["tuple"]["optInToApplication()void"]>): PoolComposer<[...TReturns, PoolReturns["optInToApplication()void"] | undefined]>;
|
|
2209
|
+
/**
|
|
2210
|
+
* Opts the user into an existing instance of the Pool smart contract using the deposit(axfer,uint64)void ABI method.
|
|
2211
|
+
*
|
|
2212
|
+
* @param args The arguments for the smart contract call
|
|
2213
|
+
* @param params Any additional parameters for the call
|
|
2214
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2215
|
+
*/
|
|
2216
|
+
deposit(params?: CallParams<PoolArgs["obj"]["deposit(axfer,uint64)void"] | PoolArgs["tuple"]["deposit(axfer,uint64)void"]>): PoolComposer<[...TReturns, PoolReturns["deposit(axfer,uint64)void"] | undefined]>;
|
|
2217
|
+
};
|
|
2218
|
+
/**
|
|
2219
|
+
* Gets available closeOut methods
|
|
2220
|
+
*/
|
|
2221
|
+
readonly closeOut: {
|
|
2222
|
+
/**
|
|
2223
|
+
* Makes a close out call to an existing instance of the Pool smart contract using the closeOutOfApplication(uint64)void ABI method.
|
|
2224
|
+
*
|
|
2225
|
+
* @param args The arguments for the smart contract call
|
|
2226
|
+
* @param params Any additional parameters for the call
|
|
2227
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2228
|
+
*/
|
|
2229
|
+
closeOutOfApplication(params?: CallParams<PoolArgs["obj"]["closeOutOfApplication(uint64)void"] | PoolArgs["tuple"]["closeOutOfApplication(uint64)void"]>): PoolComposer<[...TReturns, PoolReturns["closeOutOfApplication(uint64)void"] | undefined]>;
|
|
2227
2230
|
};
|
|
2228
2231
|
/**
|
|
2229
2232
|
* Makes a clear_state call to an existing instance of the Pool smart contract.
|