arc200-client 1.1.1 → 1.1.2
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/index.d.mts +130 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.js +115 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +115 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1484,9 +1484,15 @@ type Arc200AsaArgs = {
|
|
|
1484
1484
|
'arc200_redeem(uint64)void': {
|
|
1485
1485
|
amount: bigint | number;
|
|
1486
1486
|
};
|
|
1487
|
+
'deposit(uint64)uint256': {
|
|
1488
|
+
amount: bigint | number;
|
|
1489
|
+
};
|
|
1487
1490
|
'arc200_swapBack(uint64)void': {
|
|
1488
1491
|
amount: bigint | number;
|
|
1489
1492
|
};
|
|
1493
|
+
'withdraw(uint64)uint256': {
|
|
1494
|
+
amount: bigint | number;
|
|
1495
|
+
};
|
|
1490
1496
|
'arc200_allowance(address,address)uint256': {
|
|
1491
1497
|
/**
|
|
1492
1498
|
* Owner's account
|
|
@@ -1513,7 +1519,9 @@ type Arc200AsaArgs = {
|
|
|
1513
1519
|
'arc200_approve(address,uint256)bool': [spender: string, value: bigint | number];
|
|
1514
1520
|
'arc200_exchange()(uint64,address)': [];
|
|
1515
1521
|
'arc200_redeem(uint64)void': [amount: bigint | number];
|
|
1522
|
+
'deposit(uint64)uint256': [amount: bigint | number];
|
|
1516
1523
|
'arc200_swapBack(uint64)void': [amount: bigint | number];
|
|
1524
|
+
'withdraw(uint64)uint256': [amount: bigint | number];
|
|
1517
1525
|
'arc200_allowance(address,address)uint256': [owner: string, spender: string];
|
|
1518
1526
|
};
|
|
1519
1527
|
};
|
|
@@ -1532,7 +1540,9 @@ type Arc200AsaReturns = {
|
|
|
1532
1540
|
'arc200_approve(address,uint256)bool': boolean;
|
|
1533
1541
|
'arc200_exchange()(uint64,address)': Arc200ExchangeInfo;
|
|
1534
1542
|
'arc200_redeem(uint64)void': void;
|
|
1543
|
+
'deposit(uint64)uint256': bigint;
|
|
1535
1544
|
'arc200_swapBack(uint64)void': void;
|
|
1545
|
+
'withdraw(uint64)uint256': bigint;
|
|
1536
1546
|
'arc200_allowance(address,address)uint256': bigint;
|
|
1537
1547
|
};
|
|
1538
1548
|
/**
|
|
@@ -1610,10 +1620,18 @@ type Arc200AsaTypes = {
|
|
|
1610
1620
|
argsObj: Arc200AsaArgs['obj']['arc200_redeem(uint64)void'];
|
|
1611
1621
|
argsTuple: Arc200AsaArgs['tuple']['arc200_redeem(uint64)void'];
|
|
1612
1622
|
returns: Arc200AsaReturns['arc200_redeem(uint64)void'];
|
|
1623
|
+
}> & Record<'deposit(uint64)uint256' | 'deposit', {
|
|
1624
|
+
argsObj: Arc200AsaArgs['obj']['deposit(uint64)uint256'];
|
|
1625
|
+
argsTuple: Arc200AsaArgs['tuple']['deposit(uint64)uint256'];
|
|
1626
|
+
returns: Arc200AsaReturns['deposit(uint64)uint256'];
|
|
1613
1627
|
}> & Record<'arc200_swapBack(uint64)void' | 'arc200_swapBack', {
|
|
1614
1628
|
argsObj: Arc200AsaArgs['obj']['arc200_swapBack(uint64)void'];
|
|
1615
1629
|
argsTuple: Arc200AsaArgs['tuple']['arc200_swapBack(uint64)void'];
|
|
1616
1630
|
returns: Arc200AsaReturns['arc200_swapBack(uint64)void'];
|
|
1631
|
+
}> & Record<'withdraw(uint64)uint256' | 'withdraw', {
|
|
1632
|
+
argsObj: Arc200AsaArgs['obj']['withdraw(uint64)uint256'];
|
|
1633
|
+
argsTuple: Arc200AsaArgs['tuple']['withdraw(uint64)uint256'];
|
|
1634
|
+
returns: Arc200AsaReturns['withdraw(uint64)uint256'];
|
|
1617
1635
|
}> & Record<'arc200_allowance(address,address)uint256' | 'arc200_allowance', {
|
|
1618
1636
|
argsObj: Arc200AsaArgs['obj']['arc200_allowance(address,address)uint256'];
|
|
1619
1637
|
argsTuple: Arc200AsaArgs['tuple']['arc200_allowance(address,address)uint256'];
|
|
@@ -1900,6 +1918,17 @@ declare class Arc200AsaClient {
|
|
|
1900
1918
|
arc200Redeem: (params: CallParams<Arc200AsaArgs["obj"]["arc200_redeem(uint64)void"] | Arc200AsaArgs["tuple"]["arc200_redeem(uint64)void"]> & {
|
|
1901
1919
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1902
1920
|
}) => Promise<AppCallMethodCall>;
|
|
1921
|
+
/**
|
|
1922
|
+
* Makes a call to the Arc200_ASA smart contract using the `deposit(uint64)uint256` ABI method.
|
|
1923
|
+
*
|
|
1924
|
+
* wnnt200 for arc200_redeem
|
|
1925
|
+
*
|
|
1926
|
+
* @param params The params for the smart contract call
|
|
1927
|
+
* @returns The call params
|
|
1928
|
+
*/
|
|
1929
|
+
deposit: (params: CallParams<Arc200AsaArgs["obj"]["deposit(uint64)uint256"] | Arc200AsaArgs["tuple"]["deposit(uint64)uint256"]> & {
|
|
1930
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1931
|
+
}) => Promise<AppCallMethodCall>;
|
|
1903
1932
|
/**
|
|
1904
1933
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_swapBack(uint64)void` ABI method.
|
|
1905
1934
|
*
|
|
@@ -1924,6 +1953,17 @@ declare class Arc200AsaClient {
|
|
|
1924
1953
|
arc200SwapBack: (params: CallParams<Arc200AsaArgs["obj"]["arc200_swapBack(uint64)void"] | Arc200AsaArgs["tuple"]["arc200_swapBack(uint64)void"]> & {
|
|
1925
1954
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1926
1955
|
}) => Promise<AppCallMethodCall>;
|
|
1956
|
+
/**
|
|
1957
|
+
* Makes a call to the Arc200_ASA smart contract using the `withdraw(uint64)uint256` ABI method.
|
|
1958
|
+
*
|
|
1959
|
+
* wnnt200 for arc200_swapBack
|
|
1960
|
+
*
|
|
1961
|
+
* @param params The params for the smart contract call
|
|
1962
|
+
* @returns The call params
|
|
1963
|
+
*/
|
|
1964
|
+
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & {
|
|
1965
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1966
|
+
}) => Promise<AppCallMethodCall>;
|
|
1927
1967
|
/**
|
|
1928
1968
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
1929
1969
|
*
|
|
@@ -2146,6 +2186,21 @@ declare class Arc200AsaClient {
|
|
|
2146
2186
|
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2147
2187
|
signers: Map<number, TransactionSigner>;
|
|
2148
2188
|
}>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Makes a call to the Arc200_ASA smart contract using the `deposit(uint64)uint256` ABI method.
|
|
2191
|
+
*
|
|
2192
|
+
* wnnt200 for arc200_redeem
|
|
2193
|
+
*
|
|
2194
|
+
* @param params The params for the smart contract call
|
|
2195
|
+
* @returns The call transaction
|
|
2196
|
+
*/
|
|
2197
|
+
deposit: (params: CallParams<Arc200AsaArgs["obj"]["deposit(uint64)uint256"] | Arc200AsaArgs["tuple"]["deposit(uint64)uint256"]> & {
|
|
2198
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2199
|
+
}) => Promise<{
|
|
2200
|
+
transactions: Transaction[];
|
|
2201
|
+
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2202
|
+
signers: Map<number, TransactionSigner>;
|
|
2203
|
+
}>;
|
|
2149
2204
|
/**
|
|
2150
2205
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_swapBack(uint64)void` ABI method.
|
|
2151
2206
|
*
|
|
@@ -2174,6 +2229,21 @@ declare class Arc200AsaClient {
|
|
|
2174
2229
|
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2175
2230
|
signers: Map<number, TransactionSigner>;
|
|
2176
2231
|
}>;
|
|
2232
|
+
/**
|
|
2233
|
+
* Makes a call to the Arc200_ASA smart contract using the `withdraw(uint64)uint256` ABI method.
|
|
2234
|
+
*
|
|
2235
|
+
* wnnt200 for arc200_swapBack
|
|
2236
|
+
*
|
|
2237
|
+
* @param params The params for the smart contract call
|
|
2238
|
+
* @returns The call transaction
|
|
2239
|
+
*/
|
|
2240
|
+
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & {
|
|
2241
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2242
|
+
}) => Promise<{
|
|
2243
|
+
transactions: Transaction[];
|
|
2244
|
+
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2245
|
+
signers: Map<number, TransactionSigner>;
|
|
2246
|
+
}>;
|
|
2177
2247
|
/**
|
|
2178
2248
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2179
2249
|
*
|
|
@@ -2464,6 +2534,26 @@ declare class Arc200AsaClient {
|
|
|
2464
2534
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
2465
2535
|
transaction: Transaction;
|
|
2466
2536
|
}>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Makes a call to the Arc200_ASA smart contract using the `deposit(uint64)uint256` ABI method.
|
|
2539
|
+
*
|
|
2540
|
+
* wnnt200 for arc200_redeem
|
|
2541
|
+
*
|
|
2542
|
+
* @param params The params for the smart contract call
|
|
2543
|
+
* @returns The call result
|
|
2544
|
+
*/
|
|
2545
|
+
deposit: (params: CallParams<Arc200AsaArgs["obj"]["deposit(uint64)uint256"] | Arc200AsaArgs["tuple"]["deposit(uint64)uint256"]> & SendParams & {
|
|
2546
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2547
|
+
}) => Promise<{
|
|
2548
|
+
return: (undefined | Arc200AsaReturns["deposit(uint64)uint256"]);
|
|
2549
|
+
returns?: ABIReturn[] | undefined | undefined;
|
|
2550
|
+
groupId: string;
|
|
2551
|
+
txIds: string[];
|
|
2552
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
2553
|
+
transactions: Transaction[];
|
|
2554
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
2555
|
+
transaction: Transaction;
|
|
2556
|
+
}>;
|
|
2467
2557
|
/**
|
|
2468
2558
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_swapBack(uint64)void` ABI method.
|
|
2469
2559
|
*
|
|
@@ -2497,6 +2587,26 @@ declare class Arc200AsaClient {
|
|
|
2497
2587
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
2498
2588
|
transaction: Transaction;
|
|
2499
2589
|
}>;
|
|
2590
|
+
/**
|
|
2591
|
+
* Makes a call to the Arc200_ASA smart contract using the `withdraw(uint64)uint256` ABI method.
|
|
2592
|
+
*
|
|
2593
|
+
* wnnt200 for arc200_swapBack
|
|
2594
|
+
*
|
|
2595
|
+
* @param params The params for the smart contract call
|
|
2596
|
+
* @returns The call result
|
|
2597
|
+
*/
|
|
2598
|
+
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & SendParams & {
|
|
2599
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2600
|
+
}) => Promise<{
|
|
2601
|
+
return: (undefined | Arc200AsaReturns["withdraw(uint64)uint256"]);
|
|
2602
|
+
returns?: ABIReturn[] | undefined | undefined;
|
|
2603
|
+
groupId: string;
|
|
2604
|
+
txIds: string[];
|
|
2605
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
2606
|
+
transactions: Transaction[];
|
|
2607
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
2608
|
+
transaction: Transaction;
|
|
2609
|
+
}>;
|
|
2500
2610
|
/**
|
|
2501
2611
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2502
2612
|
*
|
|
@@ -2815,6 +2925,16 @@ type Arc200AsaComposer<TReturns extends [...any[]] = []> = {
|
|
|
2815
2925
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2816
2926
|
*/
|
|
2817
2927
|
arc200Redeem(params?: CallParams<Arc200AsaArgs['obj']['arc200_redeem(uint64)void'] | Arc200AsaArgs['tuple']['arc200_redeem(uint64)void']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['arc200_redeem(uint64)void'] | undefined]>;
|
|
2928
|
+
/**
|
|
2929
|
+
* Calls the deposit(uint64)uint256 ABI method.
|
|
2930
|
+
*
|
|
2931
|
+
* wnnt200 for arc200_redeem
|
|
2932
|
+
*
|
|
2933
|
+
* @param args The arguments for the contract call
|
|
2934
|
+
* @param params Any additional parameters for the call
|
|
2935
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2936
|
+
*/
|
|
2937
|
+
deposit(params?: CallParams<Arc200AsaArgs['obj']['deposit(uint64)uint256'] | Arc200AsaArgs['tuple']['deposit(uint64)uint256']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['deposit(uint64)uint256'] | undefined]>;
|
|
2818
2938
|
/**
|
|
2819
2939
|
* Calls the arc200_swapBack(uint64)void ABI method.
|
|
2820
2940
|
*
|
|
@@ -2838,6 +2958,16 @@ type Arc200AsaComposer<TReturns extends [...any[]] = []> = {
|
|
|
2838
2958
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2839
2959
|
*/
|
|
2840
2960
|
arc200SwapBack(params?: CallParams<Arc200AsaArgs['obj']['arc200_swapBack(uint64)void'] | Arc200AsaArgs['tuple']['arc200_swapBack(uint64)void']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['arc200_swapBack(uint64)void'] | undefined]>;
|
|
2961
|
+
/**
|
|
2962
|
+
* Calls the withdraw(uint64)uint256 ABI method.
|
|
2963
|
+
*
|
|
2964
|
+
* wnnt200 for arc200_swapBack
|
|
2965
|
+
*
|
|
2966
|
+
* @param args The arguments for the contract call
|
|
2967
|
+
* @param params Any additional parameters for the call
|
|
2968
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2969
|
+
*/
|
|
2970
|
+
withdraw(params?: CallParams<Arc200AsaArgs['obj']['withdraw(uint64)uint256'] | Arc200AsaArgs['tuple']['withdraw(uint64)uint256']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['withdraw(uint64)uint256'] | undefined]>;
|
|
2841
2971
|
/**
|
|
2842
2972
|
* Calls the arc200_allowance(address,address)uint256 ABI method.
|
|
2843
2973
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1484,9 +1484,15 @@ type Arc200AsaArgs = {
|
|
|
1484
1484
|
'arc200_redeem(uint64)void': {
|
|
1485
1485
|
amount: bigint | number;
|
|
1486
1486
|
};
|
|
1487
|
+
'deposit(uint64)uint256': {
|
|
1488
|
+
amount: bigint | number;
|
|
1489
|
+
};
|
|
1487
1490
|
'arc200_swapBack(uint64)void': {
|
|
1488
1491
|
amount: bigint | number;
|
|
1489
1492
|
};
|
|
1493
|
+
'withdraw(uint64)uint256': {
|
|
1494
|
+
amount: bigint | number;
|
|
1495
|
+
};
|
|
1490
1496
|
'arc200_allowance(address,address)uint256': {
|
|
1491
1497
|
/**
|
|
1492
1498
|
* Owner's account
|
|
@@ -1513,7 +1519,9 @@ type Arc200AsaArgs = {
|
|
|
1513
1519
|
'arc200_approve(address,uint256)bool': [spender: string, value: bigint | number];
|
|
1514
1520
|
'arc200_exchange()(uint64,address)': [];
|
|
1515
1521
|
'arc200_redeem(uint64)void': [amount: bigint | number];
|
|
1522
|
+
'deposit(uint64)uint256': [amount: bigint | number];
|
|
1516
1523
|
'arc200_swapBack(uint64)void': [amount: bigint | number];
|
|
1524
|
+
'withdraw(uint64)uint256': [amount: bigint | number];
|
|
1517
1525
|
'arc200_allowance(address,address)uint256': [owner: string, spender: string];
|
|
1518
1526
|
};
|
|
1519
1527
|
};
|
|
@@ -1532,7 +1540,9 @@ type Arc200AsaReturns = {
|
|
|
1532
1540
|
'arc200_approve(address,uint256)bool': boolean;
|
|
1533
1541
|
'arc200_exchange()(uint64,address)': Arc200ExchangeInfo;
|
|
1534
1542
|
'arc200_redeem(uint64)void': void;
|
|
1543
|
+
'deposit(uint64)uint256': bigint;
|
|
1535
1544
|
'arc200_swapBack(uint64)void': void;
|
|
1545
|
+
'withdraw(uint64)uint256': bigint;
|
|
1536
1546
|
'arc200_allowance(address,address)uint256': bigint;
|
|
1537
1547
|
};
|
|
1538
1548
|
/**
|
|
@@ -1610,10 +1620,18 @@ type Arc200AsaTypes = {
|
|
|
1610
1620
|
argsObj: Arc200AsaArgs['obj']['arc200_redeem(uint64)void'];
|
|
1611
1621
|
argsTuple: Arc200AsaArgs['tuple']['arc200_redeem(uint64)void'];
|
|
1612
1622
|
returns: Arc200AsaReturns['arc200_redeem(uint64)void'];
|
|
1623
|
+
}> & Record<'deposit(uint64)uint256' | 'deposit', {
|
|
1624
|
+
argsObj: Arc200AsaArgs['obj']['deposit(uint64)uint256'];
|
|
1625
|
+
argsTuple: Arc200AsaArgs['tuple']['deposit(uint64)uint256'];
|
|
1626
|
+
returns: Arc200AsaReturns['deposit(uint64)uint256'];
|
|
1613
1627
|
}> & Record<'arc200_swapBack(uint64)void' | 'arc200_swapBack', {
|
|
1614
1628
|
argsObj: Arc200AsaArgs['obj']['arc200_swapBack(uint64)void'];
|
|
1615
1629
|
argsTuple: Arc200AsaArgs['tuple']['arc200_swapBack(uint64)void'];
|
|
1616
1630
|
returns: Arc200AsaReturns['arc200_swapBack(uint64)void'];
|
|
1631
|
+
}> & Record<'withdraw(uint64)uint256' | 'withdraw', {
|
|
1632
|
+
argsObj: Arc200AsaArgs['obj']['withdraw(uint64)uint256'];
|
|
1633
|
+
argsTuple: Arc200AsaArgs['tuple']['withdraw(uint64)uint256'];
|
|
1634
|
+
returns: Arc200AsaReturns['withdraw(uint64)uint256'];
|
|
1617
1635
|
}> & Record<'arc200_allowance(address,address)uint256' | 'arc200_allowance', {
|
|
1618
1636
|
argsObj: Arc200AsaArgs['obj']['arc200_allowance(address,address)uint256'];
|
|
1619
1637
|
argsTuple: Arc200AsaArgs['tuple']['arc200_allowance(address,address)uint256'];
|
|
@@ -1900,6 +1918,17 @@ declare class Arc200AsaClient {
|
|
|
1900
1918
|
arc200Redeem: (params: CallParams<Arc200AsaArgs["obj"]["arc200_redeem(uint64)void"] | Arc200AsaArgs["tuple"]["arc200_redeem(uint64)void"]> & {
|
|
1901
1919
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1902
1920
|
}) => Promise<AppCallMethodCall>;
|
|
1921
|
+
/**
|
|
1922
|
+
* Makes a call to the Arc200_ASA smart contract using the `deposit(uint64)uint256` ABI method.
|
|
1923
|
+
*
|
|
1924
|
+
* wnnt200 for arc200_redeem
|
|
1925
|
+
*
|
|
1926
|
+
* @param params The params for the smart contract call
|
|
1927
|
+
* @returns The call params
|
|
1928
|
+
*/
|
|
1929
|
+
deposit: (params: CallParams<Arc200AsaArgs["obj"]["deposit(uint64)uint256"] | Arc200AsaArgs["tuple"]["deposit(uint64)uint256"]> & {
|
|
1930
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1931
|
+
}) => Promise<AppCallMethodCall>;
|
|
1903
1932
|
/**
|
|
1904
1933
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_swapBack(uint64)void` ABI method.
|
|
1905
1934
|
*
|
|
@@ -1924,6 +1953,17 @@ declare class Arc200AsaClient {
|
|
|
1924
1953
|
arc200SwapBack: (params: CallParams<Arc200AsaArgs["obj"]["arc200_swapBack(uint64)void"] | Arc200AsaArgs["tuple"]["arc200_swapBack(uint64)void"]> & {
|
|
1925
1954
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1926
1955
|
}) => Promise<AppCallMethodCall>;
|
|
1956
|
+
/**
|
|
1957
|
+
* Makes a call to the Arc200_ASA smart contract using the `withdraw(uint64)uint256` ABI method.
|
|
1958
|
+
*
|
|
1959
|
+
* wnnt200 for arc200_swapBack
|
|
1960
|
+
*
|
|
1961
|
+
* @param params The params for the smart contract call
|
|
1962
|
+
* @returns The call params
|
|
1963
|
+
*/
|
|
1964
|
+
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & {
|
|
1965
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1966
|
+
}) => Promise<AppCallMethodCall>;
|
|
1927
1967
|
/**
|
|
1928
1968
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
1929
1969
|
*
|
|
@@ -2146,6 +2186,21 @@ declare class Arc200AsaClient {
|
|
|
2146
2186
|
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2147
2187
|
signers: Map<number, TransactionSigner>;
|
|
2148
2188
|
}>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Makes a call to the Arc200_ASA smart contract using the `deposit(uint64)uint256` ABI method.
|
|
2191
|
+
*
|
|
2192
|
+
* wnnt200 for arc200_redeem
|
|
2193
|
+
*
|
|
2194
|
+
* @param params The params for the smart contract call
|
|
2195
|
+
* @returns The call transaction
|
|
2196
|
+
*/
|
|
2197
|
+
deposit: (params: CallParams<Arc200AsaArgs["obj"]["deposit(uint64)uint256"] | Arc200AsaArgs["tuple"]["deposit(uint64)uint256"]> & {
|
|
2198
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2199
|
+
}) => Promise<{
|
|
2200
|
+
transactions: Transaction[];
|
|
2201
|
+
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2202
|
+
signers: Map<number, TransactionSigner>;
|
|
2203
|
+
}>;
|
|
2149
2204
|
/**
|
|
2150
2205
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_swapBack(uint64)void` ABI method.
|
|
2151
2206
|
*
|
|
@@ -2174,6 +2229,21 @@ declare class Arc200AsaClient {
|
|
|
2174
2229
|
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2175
2230
|
signers: Map<number, TransactionSigner>;
|
|
2176
2231
|
}>;
|
|
2232
|
+
/**
|
|
2233
|
+
* Makes a call to the Arc200_ASA smart contract using the `withdraw(uint64)uint256` ABI method.
|
|
2234
|
+
*
|
|
2235
|
+
* wnnt200 for arc200_swapBack
|
|
2236
|
+
*
|
|
2237
|
+
* @param params The params for the smart contract call
|
|
2238
|
+
* @returns The call transaction
|
|
2239
|
+
*/
|
|
2240
|
+
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & {
|
|
2241
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2242
|
+
}) => Promise<{
|
|
2243
|
+
transactions: Transaction[];
|
|
2244
|
+
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2245
|
+
signers: Map<number, TransactionSigner>;
|
|
2246
|
+
}>;
|
|
2177
2247
|
/**
|
|
2178
2248
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2179
2249
|
*
|
|
@@ -2464,6 +2534,26 @@ declare class Arc200AsaClient {
|
|
|
2464
2534
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
2465
2535
|
transaction: Transaction;
|
|
2466
2536
|
}>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Makes a call to the Arc200_ASA smart contract using the `deposit(uint64)uint256` ABI method.
|
|
2539
|
+
*
|
|
2540
|
+
* wnnt200 for arc200_redeem
|
|
2541
|
+
*
|
|
2542
|
+
* @param params The params for the smart contract call
|
|
2543
|
+
* @returns The call result
|
|
2544
|
+
*/
|
|
2545
|
+
deposit: (params: CallParams<Arc200AsaArgs["obj"]["deposit(uint64)uint256"] | Arc200AsaArgs["tuple"]["deposit(uint64)uint256"]> & SendParams & {
|
|
2546
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2547
|
+
}) => Promise<{
|
|
2548
|
+
return: (undefined | Arc200AsaReturns["deposit(uint64)uint256"]);
|
|
2549
|
+
returns?: ABIReturn[] | undefined | undefined;
|
|
2550
|
+
groupId: string;
|
|
2551
|
+
txIds: string[];
|
|
2552
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
2553
|
+
transactions: Transaction[];
|
|
2554
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
2555
|
+
transaction: Transaction;
|
|
2556
|
+
}>;
|
|
2467
2557
|
/**
|
|
2468
2558
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_swapBack(uint64)void` ABI method.
|
|
2469
2559
|
*
|
|
@@ -2497,6 +2587,26 @@ declare class Arc200AsaClient {
|
|
|
2497
2587
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
2498
2588
|
transaction: Transaction;
|
|
2499
2589
|
}>;
|
|
2590
|
+
/**
|
|
2591
|
+
* Makes a call to the Arc200_ASA smart contract using the `withdraw(uint64)uint256` ABI method.
|
|
2592
|
+
*
|
|
2593
|
+
* wnnt200 for arc200_swapBack
|
|
2594
|
+
*
|
|
2595
|
+
* @param params The params for the smart contract call
|
|
2596
|
+
* @returns The call result
|
|
2597
|
+
*/
|
|
2598
|
+
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & SendParams & {
|
|
2599
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2600
|
+
}) => Promise<{
|
|
2601
|
+
return: (undefined | Arc200AsaReturns["withdraw(uint64)uint256"]);
|
|
2602
|
+
returns?: ABIReturn[] | undefined | undefined;
|
|
2603
|
+
groupId: string;
|
|
2604
|
+
txIds: string[];
|
|
2605
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
2606
|
+
transactions: Transaction[];
|
|
2607
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
2608
|
+
transaction: Transaction;
|
|
2609
|
+
}>;
|
|
2500
2610
|
/**
|
|
2501
2611
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2502
2612
|
*
|
|
@@ -2815,6 +2925,16 @@ type Arc200AsaComposer<TReturns extends [...any[]] = []> = {
|
|
|
2815
2925
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2816
2926
|
*/
|
|
2817
2927
|
arc200Redeem(params?: CallParams<Arc200AsaArgs['obj']['arc200_redeem(uint64)void'] | Arc200AsaArgs['tuple']['arc200_redeem(uint64)void']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['arc200_redeem(uint64)void'] | undefined]>;
|
|
2928
|
+
/**
|
|
2929
|
+
* Calls the deposit(uint64)uint256 ABI method.
|
|
2930
|
+
*
|
|
2931
|
+
* wnnt200 for arc200_redeem
|
|
2932
|
+
*
|
|
2933
|
+
* @param args The arguments for the contract call
|
|
2934
|
+
* @param params Any additional parameters for the call
|
|
2935
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2936
|
+
*/
|
|
2937
|
+
deposit(params?: CallParams<Arc200AsaArgs['obj']['deposit(uint64)uint256'] | Arc200AsaArgs['tuple']['deposit(uint64)uint256']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['deposit(uint64)uint256'] | undefined]>;
|
|
2818
2938
|
/**
|
|
2819
2939
|
* Calls the arc200_swapBack(uint64)void ABI method.
|
|
2820
2940
|
*
|
|
@@ -2838,6 +2958,16 @@ type Arc200AsaComposer<TReturns extends [...any[]] = []> = {
|
|
|
2838
2958
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2839
2959
|
*/
|
|
2840
2960
|
arc200SwapBack(params?: CallParams<Arc200AsaArgs['obj']['arc200_swapBack(uint64)void'] | Arc200AsaArgs['tuple']['arc200_swapBack(uint64)void']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['arc200_swapBack(uint64)void'] | undefined]>;
|
|
2961
|
+
/**
|
|
2962
|
+
* Calls the withdraw(uint64)uint256 ABI method.
|
|
2963
|
+
*
|
|
2964
|
+
* wnnt200 for arc200_swapBack
|
|
2965
|
+
*
|
|
2966
|
+
* @param args The arguments for the contract call
|
|
2967
|
+
* @param params Any additional parameters for the call
|
|
2968
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
2969
|
+
*/
|
|
2970
|
+
withdraw(params?: CallParams<Arc200AsaArgs['obj']['withdraw(uint64)uint256'] | Arc200AsaArgs['tuple']['withdraw(uint64)uint256']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['withdraw(uint64)uint256'] | undefined]>;
|
|
2841
2971
|
/**
|
|
2842
2972
|
* Calls the arc200_allowance(address,address)uint256 ABI method.
|
|
2843
2973
|
*
|