@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.
@@ -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
@@ -1,4 +1,4 @@
1
- import { getFundingEnvironment, assert, ADDRESSES } from './chunk-6IYYRTHK.js';
1
+ import { getFundingEnvironment, assert, ADDRESSES } from './chunk-Q64VYHIA.js';
2
2
  import { Interface, Contract } from 'ethers';
3
3
 
4
4
  var _abi = [