@chainflip/sdk 1.9.4 → 1.10.0
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/funding.d.cts +11 -0
- package/dist/funding.d.ts +11 -0
- package/dist/funding.js +1 -1
- package/dist/swap.cjs +459 -97
- package/dist/swap.d.cts +46 -265
- package/dist/swap.d.ts +46 -265
- package/dist/swap.js +405 -43
- package/package.json +8 -9
- /package/dist/{chunk-6IYYRTHK.js → chunk-Q64VYHIA.js} +0 -0
package/dist/funding.d.cts
CHANGED
|
@@ -28,12 +28,23 @@ declare class FundingSDK {
|
|
|
28
28
|
private readonly rpcConfig;
|
|
29
29
|
private redemptionTax?;
|
|
30
30
|
constructor(options: FundingSDKOption);
|
|
31
|
+
/**
|
|
32
|
+
* @param accountId the hex-encoded validator account id
|
|
33
|
+
* @param amount the amount to fund in base units of FLIP
|
|
34
|
+
*/
|
|
31
35
|
fundStateChainAccount(accountId: `0x${string}`, amount: bigint, txOpts?: TransactionOptions): Promise<TransactionHash>;
|
|
36
|
+
/**
|
|
37
|
+
* @param accountId the hex-encoded validator account id
|
|
38
|
+
*/
|
|
32
39
|
executeRedemption(accountId: `0x${string}`, txOpts?: TransactionOptions): Promise<TransactionHash>;
|
|
33
40
|
getMinimumFunding(): Promise<bigint>;
|
|
34
41
|
getRedemptionDelay(): Promise<bigint>;
|
|
35
42
|
getFlipBalance(): Promise<bigint>;
|
|
36
43
|
getPendingRedemption(accountId: `0x${string}`): Promise<PendingRedemption | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* @param the amount of FLIP to request approval for
|
|
46
|
+
* @returns the transaction hash or null if no approval was required
|
|
47
|
+
*/
|
|
37
48
|
approveStateChainGateway(amount: bigint, txOpts?: TransactionOptions): Promise<TransactionHash | null>;
|
|
38
49
|
getRedemptionTax(): Promise<bigint>;
|
|
39
50
|
}
|
package/dist/funding.d.ts
CHANGED
|
@@ -28,12 +28,23 @@ declare class FundingSDK {
|
|
|
28
28
|
private readonly rpcConfig;
|
|
29
29
|
private redemptionTax?;
|
|
30
30
|
constructor(options: FundingSDKOption);
|
|
31
|
+
/**
|
|
32
|
+
* @param accountId the hex-encoded validator account id
|
|
33
|
+
* @param amount the amount to fund in base units of FLIP
|
|
34
|
+
*/
|
|
31
35
|
fundStateChainAccount(accountId: `0x${string}`, amount: bigint, txOpts?: TransactionOptions): Promise<TransactionHash>;
|
|
36
|
+
/**
|
|
37
|
+
* @param accountId the hex-encoded validator account id
|
|
38
|
+
*/
|
|
32
39
|
executeRedemption(accountId: `0x${string}`, txOpts?: TransactionOptions): Promise<TransactionHash>;
|
|
33
40
|
getMinimumFunding(): Promise<bigint>;
|
|
34
41
|
getRedemptionDelay(): Promise<bigint>;
|
|
35
42
|
getFlipBalance(): Promise<bigint>;
|
|
36
43
|
getPendingRedemption(accountId: `0x${string}`): Promise<PendingRedemption | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* @param the amount of FLIP to request approval for
|
|
46
|
+
* @returns the transaction hash or null if no approval was required
|
|
47
|
+
*/
|
|
37
48
|
approveStateChainGateway(amount: bigint, txOpts?: TransactionOptions): Promise<TransactionHash | null>;
|
|
38
49
|
getRedemptionTax(): Promise<bigint>;
|
|
39
50
|
}
|
package/dist/funding.js
CHANGED