diff --git a/package.json b/package.json index c32cff7f8..0fb3f6806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@interlay/polkabtc", - "version": "0.11.0", + "version": "0.11.1", "description": "JavaScript library to interact with PolkaBTC", "main": "build/index.js", "typings": "build/index.d.ts", @@ -35,7 +35,7 @@ "engineStrict": true, "dependencies": { "@interlay/esplora-btc-api": "0.4.0", - "@interlay/polkabtc-types": "0.6.1", + "@interlay/polkabtc-types": "0.6.2", "@types/big.js": "^4.0.5", "big.js": "^6.0.1", "bitcoinjs-lib": "^5.2.0", diff --git a/test/mock/parachain/redeem.ts b/test/mock/parachain/redeem.ts index 20f8b2e68..0ffc6cb46 100644 --- a/test/mock/parachain/redeem.ts +++ b/test/mock/parachain/redeem.ts @@ -28,9 +28,7 @@ export class MockRedeemAPI implements RedeemAPI { { vault: new GenericAccountId(registry, decodedAccountId), opentime: new BN(10908) as BlockNumber, - amount_polka_btc: new BN(4141) as PolkaBTC, amount_btc: new BN(4141) as PolkaBTC, - amount_dot: new BN(7090) as DOT, premium_dot: new BN(140) as DOT, redeemer: new GenericAccountId(registry, decodedAccountId), btc_address: "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq", @@ -38,9 +36,7 @@ export class MockRedeemAPI implements RedeemAPI { { vault: new GenericAccountId(registry, decodedAccountId), opentime: new BN(11208) as BlockNumber, - amount_polka_btc: new BN(400) as PolkaBTC, amount_btc: new BN(411) as PolkaBTC, - amount_dot: new BN(709) as DOT, premium_dot: new BN(10) as DOT, redeemer: new GenericAccountId(registry, decodedAccountId), btc_address: "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq", @@ -63,9 +59,7 @@ export class MockRedeemAPI implements RedeemAPI { return { vault: new GenericAccountId(registry, decodedAccountId), opentime: new BN(11208) as BlockNumber, - amount_polka_btc: new BN(400) as PolkaBTC, amount_btc: new BN(411) as PolkaBTC, - amount_dot: new BN(709) as DOT, premium_dot: new BN(10) as DOT, redeemer: new GenericAccountId(registry, decodedAccountId), btc_address: "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq", @@ -82,7 +76,7 @@ export class MockRedeemAPI implements RedeemAPI { subscribeToRedeemExpiry(_account: AccountId, _callback: (requestRedeemId: H256) => void): Promise<() => void> { // eslint-disable-next-line @typescript-eslint/no-empty-function - return Promise.resolve(() => {}); + return Promise.resolve(() => { }); } async getFeesToPay(_amount: string): Promise {