arc200-client 1.1.6 → 1.1.7
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 +80 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +58 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1653,6 +1653,12 @@ type Arc200AsaArgs = {
|
|
|
1653
1653
|
'withdraw(uint64)uint256': {
|
|
1654
1654
|
amount: bigint | number;
|
|
1655
1655
|
};
|
|
1656
|
+
'createBalanceBox(address)byte': {
|
|
1657
|
+
/**
|
|
1658
|
+
* Owner
|
|
1659
|
+
*/
|
|
1660
|
+
owner: string;
|
|
1661
|
+
};
|
|
1656
1662
|
'arc200_allowance(address,address)uint256': {
|
|
1657
1663
|
/**
|
|
1658
1664
|
* Owner's account
|
|
@@ -1682,6 +1688,7 @@ type Arc200AsaArgs = {
|
|
|
1682
1688
|
'deposit(uint64)uint256': [amount: bigint | number];
|
|
1683
1689
|
'arc200_swapBack(uint64)void': [amount: bigint | number];
|
|
1684
1690
|
'withdraw(uint64)uint256': [amount: bigint | number];
|
|
1691
|
+
'createBalanceBox(address)byte': [owner: string];
|
|
1685
1692
|
'arc200_allowance(address,address)uint256': [owner: string, spender: string];
|
|
1686
1693
|
};
|
|
1687
1694
|
};
|
|
@@ -1703,6 +1710,7 @@ type Arc200AsaReturns = {
|
|
|
1703
1710
|
'deposit(uint64)uint256': bigint;
|
|
1704
1711
|
'arc200_swapBack(uint64)void': void;
|
|
1705
1712
|
'withdraw(uint64)uint256': bigint;
|
|
1713
|
+
'createBalanceBox(address)byte': number;
|
|
1706
1714
|
'arc200_allowance(address,address)uint256': bigint;
|
|
1707
1715
|
};
|
|
1708
1716
|
/**
|
|
@@ -1792,6 +1800,13 @@ type Arc200AsaTypes = {
|
|
|
1792
1800
|
argsObj: Arc200AsaArgs['obj']['withdraw(uint64)uint256'];
|
|
1793
1801
|
argsTuple: Arc200AsaArgs['tuple']['withdraw(uint64)uint256'];
|
|
1794
1802
|
returns: Arc200AsaReturns['withdraw(uint64)uint256'];
|
|
1803
|
+
}> & Record<'createBalanceBox(address)byte' | 'createBalanceBox', {
|
|
1804
|
+
argsObj: Arc200AsaArgs['obj']['createBalanceBox(address)byte'];
|
|
1805
|
+
argsTuple: Arc200AsaArgs['tuple']['createBalanceBox(address)byte'];
|
|
1806
|
+
/**
|
|
1807
|
+
* 1 if box was created. 0 if box exists
|
|
1808
|
+
*/
|
|
1809
|
+
returns: Arc200AsaReturns['createBalanceBox(address)byte'];
|
|
1795
1810
|
}> & Record<'arc200_allowance(address,address)uint256' | 'arc200_allowance', {
|
|
1796
1811
|
argsObj: Arc200AsaArgs['obj']['arc200_allowance(address,address)uint256'];
|
|
1797
1812
|
argsTuple: Arc200AsaArgs['tuple']['arc200_allowance(address,address)uint256'];
|
|
@@ -2049,6 +2064,15 @@ declare abstract class Arc200AsaParamsFactory {
|
|
|
2049
2064
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
2050
2065
|
*/
|
|
2051
2066
|
static withdraw(params: CallParams<Arc200AsaArgs['obj']['withdraw(uint64)uint256'] | Arc200AsaArgs['tuple']['withdraw(uint64)uint256']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
2067
|
+
/**
|
|
2068
|
+
* Constructs a no op call for the createBalanceBox(address)byte ABI method
|
|
2069
|
+
*
|
|
2070
|
+
* wnnt200 method to create balance box for an address
|
|
2071
|
+
*
|
|
2072
|
+
* @param params Parameters for the call
|
|
2073
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
2074
|
+
*/
|
|
2075
|
+
static createBalanceBox(params: CallParams<Arc200AsaArgs['obj']['createBalanceBox(address)byte'] | Arc200AsaArgs['tuple']['createBalanceBox(address)byte']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
2052
2076
|
/**
|
|
2053
2077
|
* Constructs a no op call for the arc200_allowance(address,address)uint256 ABI method
|
|
2054
2078
|
*
|
|
@@ -2565,6 +2589,17 @@ declare class Arc200AsaClient {
|
|
|
2565
2589
|
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & {
|
|
2566
2590
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2567
2591
|
}) => Promise<AppCallMethodCall>;
|
|
2592
|
+
/**
|
|
2593
|
+
* Makes a call to the Arc200_ASA smart contract using the `createBalanceBox(address)byte` ABI method.
|
|
2594
|
+
*
|
|
2595
|
+
* wnnt200 method to create balance box for an address
|
|
2596
|
+
*
|
|
2597
|
+
* @param params The params for the smart contract call
|
|
2598
|
+
* @returns The call params: 1 if box was created. 0 if box exists
|
|
2599
|
+
*/
|
|
2600
|
+
createBalanceBox: (params: CallParams<Arc200AsaArgs["obj"]["createBalanceBox(address)byte"] | Arc200AsaArgs["tuple"]["createBalanceBox(address)byte"]> & {
|
|
2601
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2602
|
+
}) => Promise<AppCallMethodCall>;
|
|
2568
2603
|
/**
|
|
2569
2604
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2570
2605
|
*
|
|
@@ -2845,6 +2880,21 @@ declare class Arc200AsaClient {
|
|
|
2845
2880
|
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2846
2881
|
signers: Map<number, TransactionSigner>;
|
|
2847
2882
|
}>;
|
|
2883
|
+
/**
|
|
2884
|
+
* Makes a call to the Arc200_ASA smart contract using the `createBalanceBox(address)byte` ABI method.
|
|
2885
|
+
*
|
|
2886
|
+
* wnnt200 method to create balance box for an address
|
|
2887
|
+
*
|
|
2888
|
+
* @param params The params for the smart contract call
|
|
2889
|
+
* @returns The call transaction: 1 if box was created. 0 if box exists
|
|
2890
|
+
*/
|
|
2891
|
+
createBalanceBox: (params: CallParams<Arc200AsaArgs["obj"]["createBalanceBox(address)byte"] | Arc200AsaArgs["tuple"]["createBalanceBox(address)byte"]> & {
|
|
2892
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2893
|
+
}) => Promise<{
|
|
2894
|
+
transactions: Transaction[];
|
|
2895
|
+
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2896
|
+
signers: Map<number, TransactionSigner>;
|
|
2897
|
+
}>;
|
|
2848
2898
|
/**
|
|
2849
2899
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2850
2900
|
*
|
|
@@ -3208,6 +3258,26 @@ declare class Arc200AsaClient {
|
|
|
3208
3258
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
3209
3259
|
transaction: Transaction;
|
|
3210
3260
|
}>;
|
|
3261
|
+
/**
|
|
3262
|
+
* Makes a call to the Arc200_ASA smart contract using the `createBalanceBox(address)byte` ABI method.
|
|
3263
|
+
*
|
|
3264
|
+
* wnnt200 method to create balance box for an address
|
|
3265
|
+
*
|
|
3266
|
+
* @param params The params for the smart contract call
|
|
3267
|
+
* @returns The call result: 1 if box was created. 0 if box exists
|
|
3268
|
+
*/
|
|
3269
|
+
createBalanceBox: (params: CallParams<Arc200AsaArgs["obj"]["createBalanceBox(address)byte"] | Arc200AsaArgs["tuple"]["createBalanceBox(address)byte"]> & SendParams & {
|
|
3270
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
3271
|
+
}) => Promise<{
|
|
3272
|
+
return: (undefined | Arc200AsaReturns["createBalanceBox(address)byte"]);
|
|
3273
|
+
returns?: ABIReturn[] | undefined | undefined;
|
|
3274
|
+
groupId: string;
|
|
3275
|
+
txIds: string[];
|
|
3276
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
3277
|
+
transactions: Transaction[];
|
|
3278
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
3279
|
+
transaction: Transaction;
|
|
3280
|
+
}>;
|
|
3211
3281
|
/**
|
|
3212
3282
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
3213
3283
|
*
|
|
@@ -3569,6 +3639,16 @@ type Arc200AsaComposer<TReturns extends [...any[]] = []> = {
|
|
|
3569
3639
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
3570
3640
|
*/
|
|
3571
3641
|
withdraw(params?: CallParams<Arc200AsaArgs['obj']['withdraw(uint64)uint256'] | Arc200AsaArgs['tuple']['withdraw(uint64)uint256']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['withdraw(uint64)uint256'] | undefined]>;
|
|
3642
|
+
/**
|
|
3643
|
+
* Calls the createBalanceBox(address)byte ABI method.
|
|
3644
|
+
*
|
|
3645
|
+
* wnnt200 method to create balance box for an address
|
|
3646
|
+
*
|
|
3647
|
+
* @param args The arguments for the contract call
|
|
3648
|
+
* @param params Any additional parameters for the call
|
|
3649
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
3650
|
+
*/
|
|
3651
|
+
createBalanceBox(params?: CallParams<Arc200AsaArgs['obj']['createBalanceBox(address)byte'] | Arc200AsaArgs['tuple']['createBalanceBox(address)byte']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['createBalanceBox(address)byte'] | undefined]>;
|
|
3572
3652
|
/**
|
|
3573
3653
|
* Calls the arc200_allowance(address,address)uint256 ABI method.
|
|
3574
3654
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1653,6 +1653,12 @@ type Arc200AsaArgs = {
|
|
|
1653
1653
|
'withdraw(uint64)uint256': {
|
|
1654
1654
|
amount: bigint | number;
|
|
1655
1655
|
};
|
|
1656
|
+
'createBalanceBox(address)byte': {
|
|
1657
|
+
/**
|
|
1658
|
+
* Owner
|
|
1659
|
+
*/
|
|
1660
|
+
owner: string;
|
|
1661
|
+
};
|
|
1656
1662
|
'arc200_allowance(address,address)uint256': {
|
|
1657
1663
|
/**
|
|
1658
1664
|
* Owner's account
|
|
@@ -1682,6 +1688,7 @@ type Arc200AsaArgs = {
|
|
|
1682
1688
|
'deposit(uint64)uint256': [amount: bigint | number];
|
|
1683
1689
|
'arc200_swapBack(uint64)void': [amount: bigint | number];
|
|
1684
1690
|
'withdraw(uint64)uint256': [amount: bigint | number];
|
|
1691
|
+
'createBalanceBox(address)byte': [owner: string];
|
|
1685
1692
|
'arc200_allowance(address,address)uint256': [owner: string, spender: string];
|
|
1686
1693
|
};
|
|
1687
1694
|
};
|
|
@@ -1703,6 +1710,7 @@ type Arc200AsaReturns = {
|
|
|
1703
1710
|
'deposit(uint64)uint256': bigint;
|
|
1704
1711
|
'arc200_swapBack(uint64)void': void;
|
|
1705
1712
|
'withdraw(uint64)uint256': bigint;
|
|
1713
|
+
'createBalanceBox(address)byte': number;
|
|
1706
1714
|
'arc200_allowance(address,address)uint256': bigint;
|
|
1707
1715
|
};
|
|
1708
1716
|
/**
|
|
@@ -1792,6 +1800,13 @@ type Arc200AsaTypes = {
|
|
|
1792
1800
|
argsObj: Arc200AsaArgs['obj']['withdraw(uint64)uint256'];
|
|
1793
1801
|
argsTuple: Arc200AsaArgs['tuple']['withdraw(uint64)uint256'];
|
|
1794
1802
|
returns: Arc200AsaReturns['withdraw(uint64)uint256'];
|
|
1803
|
+
}> & Record<'createBalanceBox(address)byte' | 'createBalanceBox', {
|
|
1804
|
+
argsObj: Arc200AsaArgs['obj']['createBalanceBox(address)byte'];
|
|
1805
|
+
argsTuple: Arc200AsaArgs['tuple']['createBalanceBox(address)byte'];
|
|
1806
|
+
/**
|
|
1807
|
+
* 1 if box was created. 0 if box exists
|
|
1808
|
+
*/
|
|
1809
|
+
returns: Arc200AsaReturns['createBalanceBox(address)byte'];
|
|
1795
1810
|
}> & Record<'arc200_allowance(address,address)uint256' | 'arc200_allowance', {
|
|
1796
1811
|
argsObj: Arc200AsaArgs['obj']['arc200_allowance(address,address)uint256'];
|
|
1797
1812
|
argsTuple: Arc200AsaArgs['tuple']['arc200_allowance(address,address)uint256'];
|
|
@@ -2049,6 +2064,15 @@ declare abstract class Arc200AsaParamsFactory {
|
|
|
2049
2064
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
2050
2065
|
*/
|
|
2051
2066
|
static withdraw(params: CallParams<Arc200AsaArgs['obj']['withdraw(uint64)uint256'] | Arc200AsaArgs['tuple']['withdraw(uint64)uint256']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
2067
|
+
/**
|
|
2068
|
+
* Constructs a no op call for the createBalanceBox(address)byte ABI method
|
|
2069
|
+
*
|
|
2070
|
+
* wnnt200 method to create balance box for an address
|
|
2071
|
+
*
|
|
2072
|
+
* @param params Parameters for the call
|
|
2073
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
2074
|
+
*/
|
|
2075
|
+
static createBalanceBox(params: CallParams<Arc200AsaArgs['obj']['createBalanceBox(address)byte'] | Arc200AsaArgs['tuple']['createBalanceBox(address)byte']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
2052
2076
|
/**
|
|
2053
2077
|
* Constructs a no op call for the arc200_allowance(address,address)uint256 ABI method
|
|
2054
2078
|
*
|
|
@@ -2565,6 +2589,17 @@ declare class Arc200AsaClient {
|
|
|
2565
2589
|
withdraw: (params: CallParams<Arc200AsaArgs["obj"]["withdraw(uint64)uint256"] | Arc200AsaArgs["tuple"]["withdraw(uint64)uint256"]> & {
|
|
2566
2590
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2567
2591
|
}) => Promise<AppCallMethodCall>;
|
|
2592
|
+
/**
|
|
2593
|
+
* Makes a call to the Arc200_ASA smart contract using the `createBalanceBox(address)byte` ABI method.
|
|
2594
|
+
*
|
|
2595
|
+
* wnnt200 method to create balance box for an address
|
|
2596
|
+
*
|
|
2597
|
+
* @param params The params for the smart contract call
|
|
2598
|
+
* @returns The call params: 1 if box was created. 0 if box exists
|
|
2599
|
+
*/
|
|
2600
|
+
createBalanceBox: (params: CallParams<Arc200AsaArgs["obj"]["createBalanceBox(address)byte"] | Arc200AsaArgs["tuple"]["createBalanceBox(address)byte"]> & {
|
|
2601
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2602
|
+
}) => Promise<AppCallMethodCall>;
|
|
2568
2603
|
/**
|
|
2569
2604
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2570
2605
|
*
|
|
@@ -2845,6 +2880,21 @@ declare class Arc200AsaClient {
|
|
|
2845
2880
|
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2846
2881
|
signers: Map<number, TransactionSigner>;
|
|
2847
2882
|
}>;
|
|
2883
|
+
/**
|
|
2884
|
+
* Makes a call to the Arc200_ASA smart contract using the `createBalanceBox(address)byte` ABI method.
|
|
2885
|
+
*
|
|
2886
|
+
* wnnt200 method to create balance box for an address
|
|
2887
|
+
*
|
|
2888
|
+
* @param params The params for the smart contract call
|
|
2889
|
+
* @returns The call transaction: 1 if box was created. 0 if box exists
|
|
2890
|
+
*/
|
|
2891
|
+
createBalanceBox: (params: CallParams<Arc200AsaArgs["obj"]["createBalanceBox(address)byte"] | Arc200AsaArgs["tuple"]["createBalanceBox(address)byte"]> & {
|
|
2892
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
2893
|
+
}) => Promise<{
|
|
2894
|
+
transactions: Transaction[];
|
|
2895
|
+
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
2896
|
+
signers: Map<number, TransactionSigner>;
|
|
2897
|
+
}>;
|
|
2848
2898
|
/**
|
|
2849
2899
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
2850
2900
|
*
|
|
@@ -3208,6 +3258,26 @@ declare class Arc200AsaClient {
|
|
|
3208
3258
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
3209
3259
|
transaction: Transaction;
|
|
3210
3260
|
}>;
|
|
3261
|
+
/**
|
|
3262
|
+
* Makes a call to the Arc200_ASA smart contract using the `createBalanceBox(address)byte` ABI method.
|
|
3263
|
+
*
|
|
3264
|
+
* wnnt200 method to create balance box for an address
|
|
3265
|
+
*
|
|
3266
|
+
* @param params The params for the smart contract call
|
|
3267
|
+
* @returns The call result: 1 if box was created. 0 if box exists
|
|
3268
|
+
*/
|
|
3269
|
+
createBalanceBox: (params: CallParams<Arc200AsaArgs["obj"]["createBalanceBox(address)byte"] | Arc200AsaArgs["tuple"]["createBalanceBox(address)byte"]> & SendParams & {
|
|
3270
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
3271
|
+
}) => Promise<{
|
|
3272
|
+
return: (undefined | Arc200AsaReturns["createBalanceBox(address)byte"]);
|
|
3273
|
+
returns?: ABIReturn[] | undefined | undefined;
|
|
3274
|
+
groupId: string;
|
|
3275
|
+
txIds: string[];
|
|
3276
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
3277
|
+
transactions: Transaction[];
|
|
3278
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
3279
|
+
transaction: Transaction;
|
|
3280
|
+
}>;
|
|
3211
3281
|
/**
|
|
3212
3282
|
* Makes a call to the Arc200_ASA smart contract using the `arc200_allowance(address,address)uint256` ABI method.
|
|
3213
3283
|
*
|
|
@@ -3569,6 +3639,16 @@ type Arc200AsaComposer<TReturns extends [...any[]] = []> = {
|
|
|
3569
3639
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
3570
3640
|
*/
|
|
3571
3641
|
withdraw(params?: CallParams<Arc200AsaArgs['obj']['withdraw(uint64)uint256'] | Arc200AsaArgs['tuple']['withdraw(uint64)uint256']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['withdraw(uint64)uint256'] | undefined]>;
|
|
3642
|
+
/**
|
|
3643
|
+
* Calls the createBalanceBox(address)byte ABI method.
|
|
3644
|
+
*
|
|
3645
|
+
* wnnt200 method to create balance box for an address
|
|
3646
|
+
*
|
|
3647
|
+
* @param args The arguments for the contract call
|
|
3648
|
+
* @param params Any additional parameters for the call
|
|
3649
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
3650
|
+
*/
|
|
3651
|
+
createBalanceBox(params?: CallParams<Arc200AsaArgs['obj']['createBalanceBox(address)byte'] | Arc200AsaArgs['tuple']['createBalanceBox(address)byte']>): Arc200AsaComposer<[...TReturns, Arc200AsaReturns['createBalanceBox(address)byte'] | undefined]>;
|
|
3572
3652
|
/**
|
|
3573
3653
|
* Calls the arc200_allowance(address,address)uint256 ABI method.
|
|
3574
3654
|
*
|