Skip to content

Commit

Permalink
fix: modify functions related to raw vault
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Nov 8, 2024
1 parent 7df8a34 commit 1595e26
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "dlc-btc-lib",
"version": "2.4.13",
"version": "2.4.14",
"description": "This library provides a comprehensive set of interfaces and functions for minting dlcBTC tokens on supported blockchains.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/functions/ripple/ripple.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export function decodeURI(URI: string): RawVault {
btcFeeRecipient: URI.slice(332, 398),
taprootPubKey: URI.slice(398, 462),
closingTxId: '', // Deprecated
icyIntegrationAddress: '', // not used in xrpl
};
} catch (error) {
throw new Error(`Could not decode NFT URI: ${error}`);
Expand Down
1 change: 1 addition & 0 deletions src/network-handlers/ripple-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function buildDefaultNftVault(): RawVault {
btcMintFeeBasisPoints: BigNumber.from(100),
btcRedeemFeeBasisPoints: BigNumber.from(100),
taprootPubKey: '0'.repeat(64),
icyIntegrationAddress: '',
};
}

Expand Down
3 changes: 3 additions & 0 deletions tests/mocks/ethereum-vault.test.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const TEST_VAULT_1: RawVault = {
btcMintFeeBasisPoints: BigNumber.from('0x64'),
btcRedeemFeeBasisPoints: BigNumber.from('0x64'),
taprootPubKey: '',
icyIntegrationAddress: '',
};

export const TEST_VAULT_2: RawVault = {
Expand All @@ -34,6 +35,7 @@ export const TEST_VAULT_2: RawVault = {
btcMintFeeBasisPoints: BigNumber.from('0x64'),
btcRedeemFeeBasisPoints: BigNumber.from('0x64'),
taprootPubKey: 'dc544c17af0887dfc8ca9936755c9fdef0c79bbc8866cd69bf120c71509742d2',
icyIntegrationAddress: '',
};

export const TEST_VAULT_3: RawVault = {
Expand All @@ -51,4 +53,5 @@ export const TEST_VAULT_3: RawVault = {
btcMintFeeBasisPoints: BigNumber.from('0x64'),
btcRedeemFeeBasisPoints: BigNumber.from('0x64'),
taprootPubKey: 'b362931e3e4cf3cc20f75ae11ff5a4c115ec1548cb5f2c7c48294929f1e8979c',
icyIntegrationAddress: '',
};

0 comments on commit 1595e26

Please sign in to comment.