@scallop-io/sui-scallop-sdk 1.3.4-alpha.5 → 1.3.4-alpha.6
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.js +96 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +96 -96
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/builders/borrowIncentiveBuilder.ts +8 -8
- package/src/builders/coreBuilder.ts +5 -5
- package/src/builders/index.ts +2 -2
- package/src/builders/oracle.ts +4 -4
- package/src/builders/referralBuilder.ts +1 -1
- package/src/builders/spoolBuilder.ts +6 -6
- package/src/builders/vescaBuilder.ts +4 -4
- package/src/constants/coinGecko.ts +1 -1
- package/src/constants/enum.ts +1 -1
- package/src/constants/index.ts +1 -1
- package/src/models/scallop.ts +5 -5
- package/src/models/scallopAddress.ts +6 -9
- package/src/models/scallopBuilder.ts +5 -4
- package/src/models/scallopCache.ts +4 -4
- package/src/models/scallopClient.ts +4 -4
- package/src/models/scallopIndexer.ts +4 -3
- package/src/models/scallopQuery.ts +4 -8
- package/src/models/scallopUtils.ts +8 -11
- package/src/models/suiKit.ts +1 -1
- package/src/queries/borrowIncentiveQuery.ts +5 -5
- package/src/queries/coreQuery.ts +4 -4
- package/src/queries/isolatedAssetQuery.ts +2 -2
- package/src/queries/portfolioQuery.ts +4 -4
- package/src/queries/priceQuery.ts +2 -2
- package/src/queries/spoolQuery.ts +5 -5
- package/src/queries/supplyLimitQuery.ts +2 -2
- package/src/queries/vescaQuery.ts +2 -2
- package/src/types/address.ts +1 -1
- package/src/types/builder/borrowIncentive.ts +3 -3
- package/src/types/builder/core.ts +3 -3
- package/src/types/builder/index.ts +4 -5
- package/src/types/builder/referral.ts +1 -1
- package/src/types/builder/sCoin.ts +1 -1
- package/src/types/builder/spool.ts +2 -2
- package/src/types/constant/common.ts +1 -1
- package/src/types/model.ts +2 -2
- package/src/types/query/borrowIncentive.ts +2 -2
- package/src/types/query/core.ts +1 -1
- package/src/types/query/portfolio.ts +2 -2
- package/src/types/query/spool.ts +1 -1
- package/src/utils/builder.ts +1 -1
- package/src/utils/index.ts +2 -2
- package/src/utils/query.ts +3 -3
- package/src/utils/tokenBucket.ts +1 -1
- package/src/utils/util.ts +4 -4
- package/dist/builders/borrowIncentiveBuilder.d.ts +0 -12
- package/dist/builders/coreBuilder.d.ts +0 -12
- package/dist/builders/index.d.ts +0 -12
- package/dist/builders/loyaltyProgramBuilder.d.ts +0 -12
- package/dist/builders/oracle.d.ts +0 -14
- package/dist/builders/referralBuilder.d.ts +0 -12
- package/dist/builders/sCoinBuilder.d.ts +0 -4
- package/dist/builders/spoolBuilder.d.ts +0 -12
- package/dist/builders/vescaBuilder.d.ts +0 -25
- package/dist/constants/cache.d.ts +0 -14
- package/dist/constants/coinGecko.d.ts +0 -2
- package/dist/constants/common.d.ts +0 -20
- package/dist/constants/enum.d.ts +0 -14
- package/dist/constants/flashloan.d.ts +0 -2
- package/dist/constants/index.d.ts +0 -12
- package/dist/constants/poolAddress.d.ts +0 -5
- package/dist/constants/pyth.d.ts +0 -5
- package/dist/constants/queryKeys.d.ts +0 -56
- package/dist/constants/rpc.d.ts +0 -1
- package/dist/constants/testAddress.d.ts +0 -2
- package/dist/constants/tokenBucket.d.ts +0 -2
- package/dist/constants/vesca.d.ts +0 -5
- package/dist/index.d.ts +0 -3
- package/dist/models/index.d.ts +0 -8
- package/dist/models/scallop.d.ts +0 -74
- package/dist/models/scallopAddress.d.ts +0 -150
- package/dist/models/scallopBuilder.d.ts +0 -89
- package/dist/models/scallopCache.d.ts +0 -74
- package/dist/models/scallopClient.d.ts +0 -321
- package/dist/models/scallopIndexer.d.ts +0 -89
- package/dist/models/scallopQuery.d.ts +0 -489
- package/dist/models/scallopUtils.d.ts +0 -227
- package/dist/models/suiKit.d.ts +0 -2
- package/dist/queries/borrowIncentiveQuery.d.ts +0 -61
- package/dist/queries/coreQuery.d.ts +0 -167
- package/dist/queries/index.d.ts +0 -11
- package/dist/queries/isolatedAssetQuery.d.ts +0 -14
- package/dist/queries/loyaltyProgramQuery.d.ts +0 -10
- package/dist/queries/portfolioQuery.d.ts +0 -73
- package/dist/queries/priceQuery.d.ts +0 -16
- package/dist/queries/referralQuery.d.ts +0 -7
- package/dist/queries/sCoinQuery.d.ts +0 -41
- package/dist/queries/spoolQuery.d.ts +0 -70
- package/dist/queries/supplyLimitQuery.d.ts +0 -9
- package/dist/queries/vescaQuery.d.ts +0 -36
- package/dist/test.d.ts +0 -0
- package/dist/types/address.d.ts +0 -107
- package/dist/types/builder/borrowIncentive.d.ts +0 -35
- package/dist/types/builder/core.d.ts +0 -56
- package/dist/types/builder/index.d.ts +0 -25
- package/dist/types/builder/loyaltyProgram.d.ts +0 -23
- package/dist/types/builder/referral.d.ts +0 -30
- package/dist/types/builder/sCoin.d.ts +0 -37
- package/dist/types/builder/spool.d.ts +0 -29
- package/dist/types/builder/vesca.d.ts +0 -51
- package/dist/types/constant/common.d.ts +0 -24
- package/dist/types/constant/enum.d.ts +0 -48
- package/dist/types/constant/index.d.ts +0 -2
- package/dist/types/index.d.ts +0 -6
- package/dist/types/model.d.ts +0 -54
- package/dist/types/query/borrowIncentive.d.ts +0 -124
- package/dist/types/query/core.d.ts +0 -361
- package/dist/types/query/index.d.ts +0 -7
- package/dist/types/query/loyaltyProgram.d.ts +0 -5
- package/dist/types/query/portfolio.d.ts +0 -115
- package/dist/types/query/sCoin.d.ts +0 -1
- package/dist/types/query/spool.d.ts +0 -122
- package/dist/types/query/vesca.d.ts +0 -26
- package/dist/types/utils.d.ts +0 -21
- package/dist/utils/builder.d.ts +0 -15
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/indexer.d.ts +0 -17
- package/dist/utils/query.d.ts +0 -62
- package/dist/utils/tokenBucket.d.ts +0 -11
- package/dist/utils/util.d.ts +0 -26
- package/src/test.ts +0 -30
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { type NetworkType } from '@scallop-io/sui-kit';
|
|
2
|
-
import { ScallopAddressParams, AddressesInterface, AddressStringPath, ScallopAddressInstanceParams } from 'src/types';
|
|
3
|
-
import { ScallopCache } from './scallopCache';
|
|
4
|
-
/**
|
|
5
|
-
* @description
|
|
6
|
-
* It provides methods for managing addresses.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const scallopAddress = new ScallopAddress(<parameters>);
|
|
11
|
-
* scallopAddress.<address functions>();
|
|
12
|
-
* await scallopAddress.<address async functions>();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare class ScallopAddress {
|
|
16
|
-
private readonly _auth?;
|
|
17
|
-
private readonly _requestClient;
|
|
18
|
-
private _id?;
|
|
19
|
-
private _network;
|
|
20
|
-
private _currentAddresses?;
|
|
21
|
-
private _addressesMap;
|
|
22
|
-
cache: ScallopCache;
|
|
23
|
-
constructor(params: ScallopAddressParams, instance?: ScallopAddressInstanceParams);
|
|
24
|
-
/**
|
|
25
|
-
* Get addresses API id.
|
|
26
|
-
*
|
|
27
|
-
* @return The addresses API id.
|
|
28
|
-
*/
|
|
29
|
-
getId(): string | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Get the address at the provided path.
|
|
32
|
-
*
|
|
33
|
-
* @param path - The path of the address to get.
|
|
34
|
-
* @return The address at the provided path.
|
|
35
|
-
*/
|
|
36
|
-
get(path: AddressStringPath): any;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the address for the specified path, it does not interact with the API.
|
|
39
|
-
*
|
|
40
|
-
* @param path - The path of the address to set.
|
|
41
|
-
* @param address - The address be setted to the tartget path.
|
|
42
|
-
* @return The addresses.
|
|
43
|
-
*/
|
|
44
|
-
set(path: AddressStringPath, address: string): AddressesInterface | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Synchronize the specified network addresses from the addresses map to the
|
|
47
|
-
* current addresses and change the default network to specified network.
|
|
48
|
-
*
|
|
49
|
-
* @param network - Specifies which network's addresses you want to get.
|
|
50
|
-
* @return Current addresses.
|
|
51
|
-
*/
|
|
52
|
-
switchCurrentAddresses(network: NetworkType): AddressesInterface | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Get the addresses, If `network` is not provided, returns the current
|
|
55
|
-
* addresses or the default network addresses in the addresses map.
|
|
56
|
-
*
|
|
57
|
-
* @param network - Specifies which network's addresses you want to get.
|
|
58
|
-
*/
|
|
59
|
-
getAddresses(network?: NetworkType): AddressesInterface | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Set the addresses into addresses map. If the specified network is the same
|
|
62
|
-
* as the current network, the current addresses will be updated at the same time.
|
|
63
|
-
*
|
|
64
|
-
* @param addresses - The addresses be setted to the tartget network.
|
|
65
|
-
* @param network - Specifies which network's addresses you want to set.
|
|
66
|
-
* @return The addresses.
|
|
67
|
-
*/
|
|
68
|
-
setAddresses(addresses: AddressesInterface, network?: NetworkType): void;
|
|
69
|
-
/**
|
|
70
|
-
* Get all addresses.
|
|
71
|
-
*
|
|
72
|
-
* @return All addresses.
|
|
73
|
-
*/
|
|
74
|
-
getAllAddresses(): {
|
|
75
|
-
[k: string]: AddressesInterface;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Create a new addresses through the API and synchronize it back to the
|
|
79
|
-
* instance.
|
|
80
|
-
*
|
|
81
|
-
* @description
|
|
82
|
-
* If the `network` is not specified, the mainnet is used by default.
|
|
83
|
-
* If no `addresses` from instance or parameter is provided, an addresses with
|
|
84
|
-
* all empty strings is created by default.
|
|
85
|
-
*
|
|
86
|
-
* This function only allows for one addresses to be input into a specific network
|
|
87
|
-
* at a time, and does not provide an addresses map for setting addresses
|
|
88
|
-
* across all networks at once.
|
|
89
|
-
*
|
|
90
|
-
* @param params.addresses - The addresses be setted to the tartget network.
|
|
91
|
-
* @param params.network - Specifies which network's addresses you want to set.
|
|
92
|
-
* @param params.auth - The authentication API key.
|
|
93
|
-
* @param params.memo - Add memo to the addresses created in the API.
|
|
94
|
-
* @return All addresses.
|
|
95
|
-
*/
|
|
96
|
-
create(params?: {
|
|
97
|
-
addresses?: AddressesInterface | undefined;
|
|
98
|
-
network?: NetworkType | undefined;
|
|
99
|
-
auth?: string | undefined;
|
|
100
|
-
memo?: string | undefined;
|
|
101
|
-
}): Promise<{
|
|
102
|
-
[k: string]: AddressesInterface;
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* Read and synchronizes all addresses from the API into instance.
|
|
106
|
-
*
|
|
107
|
-
* @param id - The id of the addresses to get.
|
|
108
|
-
* @return All addresses.
|
|
109
|
-
*/
|
|
110
|
-
read(id?: string): Promise<{
|
|
111
|
-
[k: string]: AddressesInterface;
|
|
112
|
-
}>;
|
|
113
|
-
/**
|
|
114
|
-
* Update the addresses through the API and synchronize it back to the
|
|
115
|
-
* instance.
|
|
116
|
-
*
|
|
117
|
-
* @description
|
|
118
|
-
* If the `network` is not specified, the mainnet is used by default.
|
|
119
|
-
* If no `addresses` from instance or parameter is provided, an addresses with
|
|
120
|
-
* all empty strings is created by default.
|
|
121
|
-
*
|
|
122
|
-
* This function only allows for one addresses to be input into a specific network
|
|
123
|
-
* at a time, and does not provide an addresses map for setting addresses
|
|
124
|
-
* across all networks at once.
|
|
125
|
-
*
|
|
126
|
-
* @param params.id - The id of the addresses to update.
|
|
127
|
-
* @param params.addresses - The addresses be setted to the tartget network.
|
|
128
|
-
* @param params.network - Specifies which network's addresses you want to set.
|
|
129
|
-
* @param params.auth - The authentication api key.
|
|
130
|
-
* @param params.memo - Add memo to the addresses created in the API.
|
|
131
|
-
* @return All addresses.
|
|
132
|
-
*/
|
|
133
|
-
update(params?: {
|
|
134
|
-
id?: string;
|
|
135
|
-
addresses?: AddressesInterface | undefined;
|
|
136
|
-
network?: NetworkType | undefined;
|
|
137
|
-
auth?: string | undefined;
|
|
138
|
-
memo?: string | undefined;
|
|
139
|
-
}): Promise<{
|
|
140
|
-
[k: string]: AddressesInterface;
|
|
141
|
-
}>;
|
|
142
|
-
/**
|
|
143
|
-
* Deletes all addresses of a specified id through the API and clear all
|
|
144
|
-
* addresses in the instance.
|
|
145
|
-
*
|
|
146
|
-
* @param id - The id of the addresses to delete.
|
|
147
|
-
* @param auth - The authentication API key.
|
|
148
|
-
*/
|
|
149
|
-
delete(id?: string, auth?: string): Promise<void>;
|
|
150
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { SuiKit } from '@scallop-io/sui-kit';
|
|
2
|
-
import { ScallopAddress } from './scallopAddress';
|
|
3
|
-
import { ScallopQuery } from './scallopQuery';
|
|
4
|
-
import { ScallopUtils } from './scallopUtils';
|
|
5
|
-
import type { SuiTransactionBlockResponse } from '@mysten/sui/client';
|
|
6
|
-
import type { Transaction } from '@mysten/sui/transactions';
|
|
7
|
-
import type { SuiTxBlock as SuiKitTxBlock } from '@scallop-io/sui-kit';
|
|
8
|
-
import { ScallopBuilderParams, ScallopTxBlock, SupportMarketCoins, SupportAssetCoins, SupportSCoin, ScallopBuilderInstanceParams, SelectCoinReturnType } from 'src/types';
|
|
9
|
-
import { ScallopCache } from './scallopCache';
|
|
10
|
-
/**
|
|
11
|
-
* @description
|
|
12
|
-
* It provides methods for operating the transaction block, making it more convenient to organize transaction combinations.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const scallopBuilder = new ScallopBuilder(<parameters>);
|
|
17
|
-
* await scallopBuilder.init();
|
|
18
|
-
* const txBlock = scallopBuilder.<builder functions>();
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class ScallopBuilder {
|
|
22
|
-
readonly params: ScallopBuilderParams;
|
|
23
|
-
readonly isTestnet: boolean;
|
|
24
|
-
suiKit: SuiKit;
|
|
25
|
-
address: ScallopAddress;
|
|
26
|
-
query: ScallopQuery;
|
|
27
|
-
utils: ScallopUtils;
|
|
28
|
-
walletAddress: string;
|
|
29
|
-
cache: ScallopCache;
|
|
30
|
-
constructor(params: ScallopBuilderParams, instance?: ScallopBuilderInstanceParams);
|
|
31
|
-
/**
|
|
32
|
-
* Request the scallop API to initialize data.
|
|
33
|
-
*
|
|
34
|
-
* @param force - Whether to force initialization.
|
|
35
|
-
* @param address - ScallopAddress instance.
|
|
36
|
-
*/
|
|
37
|
-
init(force?: boolean, address?: ScallopAddress): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Create a scallop txBlock instance that enhances transaction block.
|
|
40
|
-
*
|
|
41
|
-
* @param txBlock - Scallop txBlock, txBlock created by SuiKit, or original transaction block.
|
|
42
|
-
* @return Scallop txBlock.
|
|
43
|
-
*/
|
|
44
|
-
createTxBlock(txBlock?: ScallopTxBlock | SuiKitTxBlock | Transaction): ScallopTxBlock;
|
|
45
|
-
/**
|
|
46
|
-
* Specifying the sender's amount of coins to get coins args from transaction result.
|
|
47
|
-
*
|
|
48
|
-
* @param txBlock - Scallop txBlock or txBlock created by SuiKit .
|
|
49
|
-
* @param assetCoinName - Specific support asset coin name.
|
|
50
|
-
* @param amount - Amount of coins to be selected.
|
|
51
|
-
* @param sender - Sender address.
|
|
52
|
-
* @return Take coin and left coin.
|
|
53
|
-
*/
|
|
54
|
-
selectCoin<T extends SupportAssetCoins>(txBlock: ScallopTxBlock | SuiKitTxBlock, assetCoinName: T, amount: number, sender?: string): Promise<SelectCoinReturnType<T>>;
|
|
55
|
-
/**
|
|
56
|
-
* Specifying the sender's amount of market coins to get coins args from transaction result.
|
|
57
|
-
*
|
|
58
|
-
* @param txBlock - Scallop txBlock or txBlock created by SuiKit .
|
|
59
|
-
* @param marketCoinName - Specific support market coin name.
|
|
60
|
-
* @param amount - Amount of coins to be selected.
|
|
61
|
-
* @param sender - Sender address.
|
|
62
|
-
* @return Take coin and left coin.
|
|
63
|
-
*/
|
|
64
|
-
selectMarketCoin(txBlock: ScallopTxBlock | SuiKitTxBlock, marketCoinName: SupportMarketCoins, amount: number, sender?: string): Promise<{
|
|
65
|
-
takeCoin: import("@scallop-io/sui-kit").TransactionObjectArgument;
|
|
66
|
-
leftCoin: import("@scallop-io/sui-kit").TransactionObjectArgument;
|
|
67
|
-
totalAmount: number;
|
|
68
|
-
}>;
|
|
69
|
-
/**
|
|
70
|
-
* Specifying the sender's amount of sCoins to get coins args from transaction result.
|
|
71
|
-
*
|
|
72
|
-
* @param txBlock - Scallop txBlock or txBlock created by SuiKit .
|
|
73
|
-
* @param marketCoinName - Specific support sCoin name.
|
|
74
|
-
* @param amount - Amount of coins to be selected.
|
|
75
|
-
* @param sender - Sender address.
|
|
76
|
-
* @return Take coin and left coin.
|
|
77
|
-
*/
|
|
78
|
-
selectSCoin(txBlock: ScallopTxBlock | SuiKitTxBlock, sCoinName: SupportSCoin, amount: number, sender?: string): Promise<{
|
|
79
|
-
takeCoin: import("@scallop-io/sui-kit").TransactionObjectArgument;
|
|
80
|
-
leftCoin: import("@scallop-io/sui-kit").TransactionObjectArgument;
|
|
81
|
-
totalAmount: number;
|
|
82
|
-
}>;
|
|
83
|
-
/**
|
|
84
|
-
* Execute Scallop txBlock using the `signAndSendTxn` methods in suikit.
|
|
85
|
-
*
|
|
86
|
-
* @param txBlock - Scallop txBlock, txBlock created by SuiKit, or original transaction block.
|
|
87
|
-
*/
|
|
88
|
-
signAndSendTxBlock(txBlock: ScallopTxBlock | SuiKitTxBlock | Transaction): Promise<SuiTransactionBlockResponse>;
|
|
89
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { QueryClient, QueryClientConfig } from '@tanstack/query-core';
|
|
2
|
-
import { SuiObjectArg } from '@scallop-io/sui-kit';
|
|
3
|
-
import { SuiKit } from '@scallop-io/sui-kit';
|
|
4
|
-
import type { SuiObjectResponse, SuiObjectDataOptions, SuiObjectData, GetOwnedObjectsParams, DevInspectResults, GetDynamicFieldsParams, DynamicFieldPage, GetDynamicFieldObjectParams, GetBalanceParams } from '@mysten/sui/client';
|
|
5
|
-
import { TokenBucket } from 'src/utils';
|
|
6
|
-
type QueryInspectTxnParams = {
|
|
7
|
-
queryTarget: string;
|
|
8
|
-
args: SuiObjectArg[];
|
|
9
|
-
typeArgs?: any[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @description
|
|
13
|
-
* It provides caching for moveCall, RPC Request, and API Request.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* const scallopCache = new scallopCache(<parameters>);
|
|
19
|
-
* scallopCache.<indexer functions>();
|
|
20
|
-
* await scallopCache.<indexer async functions>();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class ScallopCache {
|
|
24
|
-
readonly queryClient: QueryClient;
|
|
25
|
-
readonly _suiKit: SuiKit;
|
|
26
|
-
private tokenBucket;
|
|
27
|
-
walletAddress: string;
|
|
28
|
-
constructor(suiKit: SuiKit, walletAddress?: string, cacheOptions?: QueryClientConfig, tokenBucket?: TokenBucket, queryClient?: QueryClient);
|
|
29
|
-
private get suiKit();
|
|
30
|
-
private get client();
|
|
31
|
-
/**
|
|
32
|
-
* @description Invalidate cache based on the refetchType parameter
|
|
33
|
-
* @param refetchType Determines the type of queries to be refetched. Defaults to `active`.
|
|
34
|
-
*
|
|
35
|
-
* - `active`: Only queries that match the refetch predicate and are actively being rendered via useQuery and related functions will be refetched in the background.
|
|
36
|
-
* - `inactive`: Only queries that match the refetch predicate and are NOT actively being rendered via useQuery and related functions will be refetched in the background.
|
|
37
|
-
* - `all`: All queries that match the refetch predicate will be refetched in the background.
|
|
38
|
-
* - `none`: No queries will be refetched. Queries that match the refetch predicate will only be marked as invalid.
|
|
39
|
-
*/
|
|
40
|
-
invalidateAllCache(): Promise<Promise<void>[]>;
|
|
41
|
-
/**
|
|
42
|
-
* @description Provides cache for inspectTxn of the SuiKit.
|
|
43
|
-
* @param QueryInspectTxnParams
|
|
44
|
-
* @param txBlock
|
|
45
|
-
* @returns Promise<DevInspectResults>
|
|
46
|
-
*/
|
|
47
|
-
queryInspectTxn({ queryTarget, args, typeArgs, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
|
|
48
|
-
/**
|
|
49
|
-
* @description Provides cache for getObject of the SuiKit.
|
|
50
|
-
* @param objectId
|
|
51
|
-
* @param QueryObjectParams
|
|
52
|
-
* @returns Promise<SuiObjectResponse>
|
|
53
|
-
*/
|
|
54
|
-
queryGetObject(objectId: string, options?: SuiObjectDataOptions): Promise<SuiObjectResponse | null>;
|
|
55
|
-
/**
|
|
56
|
-
* @description Provides cache for getObjects of the SuiKit.
|
|
57
|
-
* @param objectIds
|
|
58
|
-
* @returns Promise<SuiObjectData[]>
|
|
59
|
-
*/
|
|
60
|
-
queryGetObjects(objectIds: string[], options?: SuiObjectDataOptions): Promise<SuiObjectData[]>;
|
|
61
|
-
/**
|
|
62
|
-
* @description Provides cache for getOwnedObjects of the SuiKit.
|
|
63
|
-
* @param input
|
|
64
|
-
* @returns Promise<PaginatedObjectsResponse>
|
|
65
|
-
*/
|
|
66
|
-
queryGetOwnedObjects(input: GetOwnedObjectsParams): Promise<import("@mysten/sui/client").PaginatedObjectsResponse | null>;
|
|
67
|
-
queryGetDynamicFields(input: GetDynamicFieldsParams): Promise<DynamicFieldPage | null>;
|
|
68
|
-
queryGetDynamicFieldObject(input: GetDynamicFieldObjectParams): Promise<SuiObjectResponse | null>;
|
|
69
|
-
queryGetAllCoinBalances(owner: string): Promise<{
|
|
70
|
-
[k: string]: string;
|
|
71
|
-
}>;
|
|
72
|
-
queryGetCoinBalance(input: GetBalanceParams): Promise<string>;
|
|
73
|
-
}
|
|
74
|
-
export {};
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { SuiKit } from '@scallop-io/sui-kit';
|
|
2
|
-
import { ScallopAddress } from './scallopAddress';
|
|
3
|
-
import { ScallopUtils } from './scallopUtils';
|
|
4
|
-
import { ScallopBuilder } from './scallopBuilder';
|
|
5
|
-
import { ScallopQuery } from './scallopQuery';
|
|
6
|
-
import type { SuiTransactionBlockResponse } from '@mysten/sui/client';
|
|
7
|
-
import type { TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
8
|
-
import { ScallopCache } from './scallopCache';
|
|
9
|
-
import type { SuiObjectArg } from '@scallop-io/sui-kit';
|
|
10
|
-
import { ScallopClientFnReturnType, ScallopClientParams, SupportPoolCoins, SupportCollateralCoins, SupportAssetCoins, SupportStakeCoins, SupportStakeMarketCoins, SupportBorrowIncentiveCoins, ScallopTxBlock, ScallopClientVeScaReturnType, ScallopClientInstanceParams } from 'src/types';
|
|
11
|
-
/**
|
|
12
|
-
* @description
|
|
13
|
-
* It provides contract interaction operations for general users.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* const scallopClient = new ScallopClient(<parameters>);
|
|
18
|
-
* await scallopClient.init();
|
|
19
|
-
* scallopClient.<client functions>();
|
|
20
|
-
* await scallopClient.<client async functions>();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class ScallopClient {
|
|
24
|
-
readonly params: ScallopClientParams;
|
|
25
|
-
suiKit: SuiKit;
|
|
26
|
-
address: ScallopAddress;
|
|
27
|
-
builder: ScallopBuilder;
|
|
28
|
-
query: ScallopQuery;
|
|
29
|
-
utils: ScallopUtils;
|
|
30
|
-
cache: ScallopCache;
|
|
31
|
-
walletAddress: string;
|
|
32
|
-
constructor(params: ScallopClientParams, instance?: ScallopClientInstanceParams);
|
|
33
|
-
/**
|
|
34
|
-
* Request the scallop API to initialize data.
|
|
35
|
-
*
|
|
36
|
-
* @param force - Whether to force initialization.
|
|
37
|
-
*/
|
|
38
|
-
init(force?: boolean): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Query market data.
|
|
41
|
-
*
|
|
42
|
-
* @description
|
|
43
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
44
|
-
*
|
|
45
|
-
* @return Market data.
|
|
46
|
-
*/
|
|
47
|
-
queryMarket(): Promise<import("src/types").Market>;
|
|
48
|
-
/**
|
|
49
|
-
* Get obligations data.
|
|
50
|
-
*
|
|
51
|
-
* @description
|
|
52
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
53
|
-
*
|
|
54
|
-
* @param ownerAddress - The owner address.
|
|
55
|
-
* @return Obligations data.
|
|
56
|
-
*/
|
|
57
|
-
getObligations(ownerAddress?: string): Promise<import("src/types").Obligation[]>;
|
|
58
|
-
/**
|
|
59
|
-
* Query obligation data.
|
|
60
|
-
*
|
|
61
|
-
* @description
|
|
62
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
63
|
-
*
|
|
64
|
-
* @param obligationId - The obligation id.
|
|
65
|
-
* @return Obligation data.
|
|
66
|
-
*/
|
|
67
|
-
queryObligation(obligationId: string): Promise<import("src/types").ObligationQueryInterface | undefined>;
|
|
68
|
-
/**
|
|
69
|
-
* Query all stake accounts data.
|
|
70
|
-
*
|
|
71
|
-
* @description
|
|
72
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
73
|
-
*
|
|
74
|
-
* @param ownerAddress - The owner address.
|
|
75
|
-
* @return All stake accounts data.
|
|
76
|
-
*/
|
|
77
|
-
getAllStakeAccounts(ownerAddress?: string): Promise<import("src/types").StakeAccounts>;
|
|
78
|
-
/**
|
|
79
|
-
* Query stake account data.
|
|
80
|
-
*
|
|
81
|
-
* @description
|
|
82
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
83
|
-
*
|
|
84
|
-
* @param stakeMarketCoinName - Support stake market coin.
|
|
85
|
-
* @param ownerAddress - The owner address.
|
|
86
|
-
* @return Stake accounts data.
|
|
87
|
-
*/
|
|
88
|
-
getStakeAccounts(stakeMarketCoinName: SupportStakeMarketCoins, ownerAddress?: string): Promise<import("src/types").StakeAccount[]>;
|
|
89
|
-
/**
|
|
90
|
-
* Query stake pool data.
|
|
91
|
-
*
|
|
92
|
-
* @description
|
|
93
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
94
|
-
*
|
|
95
|
-
* @param stakeMarketCoinName - Support stake market coin.
|
|
96
|
-
* @return Stake pool data.
|
|
97
|
-
*/
|
|
98
|
-
getStakePool(stakeMarketCoinName: SupportStakeMarketCoins): Promise<import("src/types").StakePool | undefined>;
|
|
99
|
-
/**
|
|
100
|
-
* Query reward pool data.
|
|
101
|
-
*
|
|
102
|
-
* @description
|
|
103
|
-
* This method might be @deprecated in the future, please use the {@link ScallopQuery} query instance instead.
|
|
104
|
-
*
|
|
105
|
-
* @param stakeMarketCoinName - Support stake market coin.
|
|
106
|
-
* @return Reward pool data.
|
|
107
|
-
*/
|
|
108
|
-
getStakeRewardPool(stakeMarketCoinName: SupportStakeMarketCoins): Promise<import("src/types").StakeRewardPool | undefined>;
|
|
109
|
-
/**
|
|
110
|
-
* Open obligation.
|
|
111
|
-
*
|
|
112
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
113
|
-
* @return Transaction block response or transaction block.
|
|
114
|
-
*/
|
|
115
|
-
openObligation(): Promise<SuiTransactionBlockResponse>;
|
|
116
|
-
openObligation<S extends boolean>(sign?: S): Promise<ScallopClientFnReturnType<S>>;
|
|
117
|
-
/**
|
|
118
|
-
* Deposit collateral into the specific pool.
|
|
119
|
-
*
|
|
120
|
-
* @param collateralCoinName - Types of collateral coin.
|
|
121
|
-
* @param amount - The amount of coins would deposit.
|
|
122
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
123
|
-
* @param obligationId - The obligation object.
|
|
124
|
-
* @param walletAddress - The wallet address of the owner.
|
|
125
|
-
* @return Transaction block response or transaction block.
|
|
126
|
-
*/
|
|
127
|
-
depositCollateral(collateralCoinName: SupportCollateralCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
128
|
-
depositCollateral<S extends boolean>(collateralCoinName: SupportCollateralCoins, amount: number, sign?: S, obligationId?: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
129
|
-
/**
|
|
130
|
-
* Withdraw collateral from the specific pool.
|
|
131
|
-
*
|
|
132
|
-
* @param collateralCoinName - Types of collateral coin.
|
|
133
|
-
* @param amount - The amount of coins would deposit.
|
|
134
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
135
|
-
* @param obligationId - The obligation object.
|
|
136
|
-
* @param obligationKey - The obligation key object to verifying obligation authority.
|
|
137
|
-
* @param walletAddress - The wallet address of the owner.
|
|
138
|
-
* @return Transaction block response or transaction block.
|
|
139
|
-
*/
|
|
140
|
-
withdrawCollateral<S extends boolean>(collateralCoinName: SupportCollateralCoins, amount: number, sign: S | undefined, obligationId: string, obligationKey: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
141
|
-
/**
|
|
142
|
-
* Deposit asset into the specific pool.
|
|
143
|
-
*
|
|
144
|
-
* @param poolCoinName - Types of pool coin.
|
|
145
|
-
* @param amount - The amount of coins would deposit.
|
|
146
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
147
|
-
* @param walletAddress - The wallet address of the owner.
|
|
148
|
-
* @return Transaction block response or transaction block.
|
|
149
|
-
*/
|
|
150
|
-
deposit(poolCoinName: SupportPoolCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
151
|
-
deposit<S extends boolean>(poolCoinName: SupportPoolCoins, amount: number, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
152
|
-
/**
|
|
153
|
-
* Deposit asset into the specific pool and Stake market coin into the corresponding spool.
|
|
154
|
-
*
|
|
155
|
-
* @param stakeCoinName - Types of stake coin.
|
|
156
|
-
* @param amount - The amount of coins would deposit.
|
|
157
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
158
|
-
* @param stakeAccountId - The stake account object.
|
|
159
|
-
* @param walletAddress - The wallet address of the owner.
|
|
160
|
-
* @return Transaction block response or transaction block.
|
|
161
|
-
*/
|
|
162
|
-
depositAndStake(stakeCoinName: SupportStakeCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
163
|
-
depositAndStake<S extends boolean>(stakeCoinName: SupportStakeCoins, amount: number, sign?: S, stakeAccountId?: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
164
|
-
/**
|
|
165
|
-
* Withdraw asset from the specific pool, must return market coin.
|
|
166
|
-
*
|
|
167
|
-
* @param poolCoinName - Specific support pool coin name.
|
|
168
|
-
* @param amount - The amount of coins would withdraw.
|
|
169
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
170
|
-
* @param walletAddress - The wallet address of the owner.
|
|
171
|
-
* @return Transaction block response or transaction block.
|
|
172
|
-
*/
|
|
173
|
-
withdraw(poolCoinName: SupportPoolCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
174
|
-
withdraw<S extends boolean>(poolCoinName: SupportPoolCoins, amount: number, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
175
|
-
/**
|
|
176
|
-
* Borrow asset from the specific pool.
|
|
177
|
-
*
|
|
178
|
-
* @param poolCoinName - Specific support pool coin name.
|
|
179
|
-
* @param amount - The amount of coins would borrow.
|
|
180
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
181
|
-
* @param obligationId - The obligation object.
|
|
182
|
-
* @param obligationKey - The obligation key object to verifying obligation authority.
|
|
183
|
-
* @param walletAddress - The wallet address of the owner.
|
|
184
|
-
* @return Transaction block response or transaction block.
|
|
185
|
-
*/
|
|
186
|
-
borrow<S extends boolean>(poolCoinName: SupportPoolCoins, amount: number, sign: S | undefined, obligationId: string, obligationKey: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
187
|
-
/**
|
|
188
|
-
* Repay asset into the specific pool.
|
|
189
|
-
*
|
|
190
|
-
* @param poolCoinName - Specific support pool coin name.
|
|
191
|
-
* @param amount - The amount of coins would repay.
|
|
192
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
193
|
-
* @param obligationId - The obligation object.
|
|
194
|
-
* @param walletAddress - The wallet address of the owner.
|
|
195
|
-
* @return Transaction block response or transaction block.
|
|
196
|
-
*/
|
|
197
|
-
repay<S extends boolean>(poolCoinName: SupportPoolCoins, amount: number, sign: S | undefined, obligationId: string, obligationKey: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
198
|
-
/**
|
|
199
|
-
* FlashLoan asset from the specific pool.
|
|
200
|
-
*
|
|
201
|
-
* @param poolCoinName - Specific support pool coin name..
|
|
202
|
-
* @param amount - The amount of coins would repay.
|
|
203
|
-
* @param callback - The callback function to build transaction block and return coin argument.
|
|
204
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
205
|
-
* @return Transaction block response or transaction block.
|
|
206
|
-
*/
|
|
207
|
-
flashLoan(poolCoinName: SupportPoolCoins, amount: number, callback: (txBlock: ScallopTxBlock, coin: TransactionObjectArgument | string) => SuiObjectArg): Promise<SuiTransactionBlockResponse>;
|
|
208
|
-
flashLoan<S extends boolean>(poolCoinName: SupportPoolCoins, amount: number, callback: (txBlock: ScallopTxBlock, coin: TransactionObjectArgument | string) => SuiObjectArg, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
209
|
-
/**
|
|
210
|
-
* Create stake account.
|
|
211
|
-
*
|
|
212
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
213
|
-
* @param walletAddress - The wallet address of the owner.
|
|
214
|
-
* @return Transaction block response or transaction block.
|
|
215
|
-
*/
|
|
216
|
-
createStakeAccount(marketCoinName: SupportStakeMarketCoins): Promise<SuiTransactionBlockResponse>;
|
|
217
|
-
createStakeAccount<S extends boolean>(marketCoinName: SupportStakeMarketCoins, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
218
|
-
/**
|
|
219
|
-
* Stake market coin into the specific spool.
|
|
220
|
-
*
|
|
221
|
-
* @param marketCoinName - Types of market coin.
|
|
222
|
-
* @param amount - The amount of coins would deposit.
|
|
223
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
224
|
-
* @param stakeAccountId - The stake account object.
|
|
225
|
-
* @param walletAddress - The wallet address of the owner.
|
|
226
|
-
* @return Transaction block response or transaction block.
|
|
227
|
-
*/
|
|
228
|
-
stake(stakeMarketCoinName: SupportStakeMarketCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
229
|
-
stake<S extends boolean>(stakeMarketCoinName: SupportStakeMarketCoins, amount: number, sign?: S, stakeAccountId?: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
230
|
-
/**
|
|
231
|
-
* Unstake market coin from the specific spool.
|
|
232
|
-
*
|
|
233
|
-
* @param stakeMarketCoinName - Types of mak coin.
|
|
234
|
-
* @param amount - The amount of coins would deposit.
|
|
235
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
236
|
-
* @param accountId - The stake account object.
|
|
237
|
-
* @param walletAddress - The wallet address of the owner.
|
|
238
|
-
* @return Transaction block response or transaction block.
|
|
239
|
-
*/
|
|
240
|
-
unstake(stakeMarketCoinName: SupportStakeMarketCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
241
|
-
unstake<S extends boolean>(stakeMarketCoinName: SupportStakeMarketCoins, amount: number, sign?: S, stakeAccountId?: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
242
|
-
/**
|
|
243
|
-
* Unstake market coin from the specific spool and withdraw asset from the corresponding pool.
|
|
244
|
-
*
|
|
245
|
-
* @param marketCoinName - Types of mak coin.
|
|
246
|
-
* @param amount - The amount of coins would deposit.
|
|
247
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
248
|
-
* @param accountId - The stake account object.
|
|
249
|
-
* @param walletAddress - The wallet address of the owner.
|
|
250
|
-
* @return Transaction block response or transaction block.
|
|
251
|
-
*/
|
|
252
|
-
unstakeAndWithdraw(stakeMarketCoinName: SupportStakeMarketCoins, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
253
|
-
unstakeAndWithdraw<S extends boolean>(stakeMarketCoinName: SupportStakeMarketCoins, amount: number, sign?: S, stakeAccountId?: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
254
|
-
/**
|
|
255
|
-
* Claim reward coin from the specific spool.
|
|
256
|
-
*
|
|
257
|
-
* @param stakeMarketCoinName - Types of mak coin.
|
|
258
|
-
* @param amount - The amount of coins would deposit.
|
|
259
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
260
|
-
* @param accountId - The stake account object.
|
|
261
|
-
* @param walletAddress - The wallet address of the owner.
|
|
262
|
-
* @return Transaction block response or transaction block.
|
|
263
|
-
*/
|
|
264
|
-
claim(stakeMarketCoinName: SupportStakeMarketCoins): Promise<SuiTransactionBlockResponse>;
|
|
265
|
-
claim<S extends boolean>(stakeMarketCoinName: SupportStakeMarketCoins, sign?: S, stakeAccountId?: string, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
266
|
-
/**
|
|
267
|
-
* stake obligaion.
|
|
268
|
-
*
|
|
269
|
-
* @param obligationId - The obligation account object.
|
|
270
|
-
* @param obligationKeyId - The obligation key account object.
|
|
271
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
272
|
-
* @param walletAddress - The wallet address of the owner.
|
|
273
|
-
* @return Transaction block response or transaction block
|
|
274
|
-
*/
|
|
275
|
-
stakeObligation<S extends boolean>(obligationId: string, obligationKeyId: string, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
276
|
-
/**
|
|
277
|
-
* unstake obligaion.
|
|
278
|
-
*
|
|
279
|
-
* @param obligationId - The obligation account object.
|
|
280
|
-
* @param obligationKeyId - The obligation key account object.
|
|
281
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
282
|
-
* @param walletAddress - The wallet address of the owner.
|
|
283
|
-
* @return Transaction block response or transaction block
|
|
284
|
-
*/
|
|
285
|
-
unstakeObligation<S extends boolean>(obligationId: string, obligationKeyId: string, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
286
|
-
/**
|
|
287
|
-
* unstake market coin from the specific spool.
|
|
288
|
-
*
|
|
289
|
-
* @param marketCoinName - Types of mak coin.
|
|
290
|
-
* @param amount - The amount of coins would deposit.
|
|
291
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
292
|
-
* @param accountId - The stake account object.
|
|
293
|
-
* @param walletAddress - The wallet address of the owner.
|
|
294
|
-
* @return Transaction block response or transaction block
|
|
295
|
-
*/
|
|
296
|
-
claimBorrowIncentive<S extends boolean>(coinName: SupportBorrowIncentiveCoins, obligationId: string, obligationKeyId: string, sign?: S, walletAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
297
|
-
/**
|
|
298
|
-
* Function to migrate all market coin in user wallet into sCoin
|
|
299
|
-
* @returns Transaction response
|
|
300
|
-
*/
|
|
301
|
-
migrateAllMarketCoin<S extends boolean>(includeStakePool?: boolean, sign?: S): Promise<ScallopClientFnReturnType<S>>;
|
|
302
|
-
/**
|
|
303
|
-
* Claim unlocked SCA from all veSCA accounts.
|
|
304
|
-
*/
|
|
305
|
-
claimAllUnlockedSca(): Promise<SuiTransactionBlockResponse>;
|
|
306
|
-
claimAllUnlockedSca<S extends boolean>(sign?: S): Promise<ScallopClientVeScaReturnType<S>>;
|
|
307
|
-
/**
|
|
308
|
-
* Mint and get test coin.
|
|
309
|
-
*
|
|
310
|
-
* @remarks
|
|
311
|
-
* Only be used on the test network.
|
|
312
|
-
*
|
|
313
|
-
* @param assetCoinName - Specific asset coin name.
|
|
314
|
-
* @param amount - The amount of coins minted and received.
|
|
315
|
-
* @param receiveAddress - The wallet address that receives the coins.
|
|
316
|
-
* @param sign - Decide to directly sign the transaction or return the transaction block.
|
|
317
|
-
* @return Transaction block response or transaction block.
|
|
318
|
-
*/
|
|
319
|
-
mintTestCoin(assetCoinName: Exclude<SupportAssetCoins, 'sui'>, amount: number): Promise<SuiTransactionBlockResponse>;
|
|
320
|
-
mintTestCoin<S extends boolean>(assetCoinName: Exclude<SupportAssetCoins, 'sui'>, amount: number, sign?: S, receiveAddress?: string): Promise<ScallopClientFnReturnType<S>>;
|
|
321
|
-
}
|