Skip to content

Commit

Permalink
Merge pull request #274 from interlay/greg/chore/upgrade-parachain
Browse files Browse the repository at this point in the history
fix: redeem request struct
  • Loading branch information
nud3l authored Mar 25, 2021
2 parents ed59fc0 + c22efeb commit 4d25884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
8 changes: 1 addition & 7 deletions test/mock/parachain/redeem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,15 @@ export class MockRedeemAPI implements RedeemAPI {
<RedeemRequestExt>{
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",
},
<RedeemRequestExt>{
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",
Expand All @@ -63,9 +59,7 @@ export class MockRedeemAPI implements RedeemAPI {
return <RedeemRequestExt>{
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",
Expand All @@ -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<string> {
Expand Down

0 comments on commit 4d25884

Please sign in to comment.