Skip to content

Commit

Permalink
chore(release): 1.6.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.6.0](v1.5.0...v1.6.0) (2021-04-09)

### Features

* add new API for btc ([c5592e9](c5592e9))
  • Loading branch information
semantic-release-bot committed Apr 9, 2021
1 parent c5592e9 commit 6652053
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.6.0](https://github.com/BlockABC/abcwallet.js/compare/v1.5.0...v1.6.0) (2021-04-09)


### Features

* add new API for btc ([c5592e9](https://github.com/BlockABC/abcwallet.js/commit/c5592e99e441707e3be6a0256692750ba7bf84bf))

# [1.5.0](https://github.com/BlockABC/abcwallet.js/compare/v1.4.2...v1.5.0) (2021-04-09)


Expand Down
14 changes: 13 additions & 1 deletion dist/abcwallet.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3116,6 +3116,18 @@ var BTCAPI = /** @class */ (function (_super) {
params: params
});
};
BTCAPI.prototype.signMessage = function (params) {
return this._request({
method: 'signMessage',
params: params
});
};
BTCAPI.prototype.verifyMessage = function (params) {
return this._request({
method: 'verifyMessage',
params: params
});
};
return BTCAPI;
}(ChainBaseAPI_1.default));
exports.BTCAPI = BTCAPI;
Expand Down Expand Up @@ -6088,7 +6100,7 @@ exports.default = NativeChannel;
/* 70 */
/***/ (function(module) {

module.exports = JSON.parse("{\"name\":\"abcwallet\",\"version\":\"1.5.0\",\"description\":\"The only and best SDK for ABCWallet application development.\",\"repository\":\"https://github.com/BlockABC/abcwallet.js\",\"license\":\"MIT\",\"scripts\":{\"build\":\"npm run build:esm && npm run build:cjs && npm run build:umd\",\"build:umd\":\"webpack --mode=production --config webpack.conf.js\",\"build:esm\":\"tsc -p tsconfig.esm.json\",\"build:cjs\":\"tsc -p tsconfig.cjs.json\",\"build:analysis\":\"webpack --mode=production --env.analysis --config webpack.conf.js\",\"dev\":\"webpack-dev-server --mode=development --config webpack.conf.js\",\"lint\":\"eslint --ext .ts --fix src/\",\"lint:nofix\":\"eslint --ext .ts src/\",\"test\":\"jest\",\"test:coverage\":\"jest --collect-coverage\",\"commit\":\"npx git-cz\",\"release\":\"node release.js\",\"pm2:reload\":\"pm2 reload ecosystem.config.js --only abcwallet.js\"},\"types\":\"./types/index.d.ts\",\"files\":[\"src/\",\"cjs/\",\"esm/\",\"dist/\",\"types/\",\"public/\"],\"keywords\":[\"eospark\",\"api\",\"service\"],\"author\":\"BlockABC FE Team\",\"main\":\"./cjs/index.js\",\"module\":\"./esm/index.js\",\"browser\":\"./dist/abcwallet.umd.min.js\",\"dependencies\":{\"eventemitter3\":\"^4.0.0\",\"lodash-es\":\"^4.0.0\",\"loglevel\":\"^1.0.0\",\"ts-custom-error\":\"^3.0.0\"},\"devDependencies\":{\"@semantic-release/changelog\":\"^5.0.0\",\"@semantic-release/exec\":\"^5.0.0\",\"@semantic-release/git\":\"^9.0.0\",\"@types/jest\":\"^24.0.11\",\"@types/node\":\"^11.13.4\",\"babel-eslint\":\"^10.0.3\",\"chokidar\":\"^3.0.2\",\"commitizen\":\"^4.0.3\",\"cz-conventional-changelog\":\"^3.1.0\",\"eslint\":\"^6.2.2\",\"eslint-config-blockabc\":\"^0.9.1\",\"html-webpack-plugin\":\"^4.0.1\",\"jest\":\"^24.8.0\",\"semantic-release\":\"^17.4.0\",\"ts-jest\":\"^24.0.0\",\"ts-loader\":\"^5.0.0\",\"typescript\":\"^4.0.0\",\"webpack\":\"^4.29.6\",\"webpack-bundle-analyzer\":\"^3.3.2\",\"webpack-cli\":\"^3.3.0\",\"webpack-dev-server\":\"^3.7.2\",\"webpack-merge\":\"^4.2.1\",\"dotenv\":\"^8.2.0\"},\"config\":{\"commitizen\":{\"path\":\"./node_modules/cz-conventional-changelog\"}}}");
module.exports = JSON.parse("{\"name\":\"abcwallet\",\"version\":\"1.6.0\",\"description\":\"The only and best SDK for ABCWallet application development.\",\"repository\":\"https://github.com/BlockABC/abcwallet.js\",\"license\":\"MIT\",\"scripts\":{\"build\":\"npm run build:esm && npm run build:cjs && npm run build:umd\",\"build:umd\":\"webpack --mode=production --config webpack.conf.js\",\"build:esm\":\"tsc -p tsconfig.esm.json\",\"build:cjs\":\"tsc -p tsconfig.cjs.json\",\"build:analysis\":\"webpack --mode=production --env.analysis --config webpack.conf.js\",\"dev\":\"webpack-dev-server --mode=development --config webpack.conf.js\",\"lint\":\"eslint --ext .ts --fix src/\",\"lint:nofix\":\"eslint --ext .ts src/\",\"test\":\"jest\",\"test:coverage\":\"jest --collect-coverage\",\"commit\":\"npx git-cz\",\"release\":\"node release.js\",\"pm2:reload\":\"pm2 reload ecosystem.config.js --only abcwallet.js\"},\"types\":\"./types/index.d.ts\",\"files\":[\"src/\",\"cjs/\",\"esm/\",\"dist/\",\"types/\",\"public/\"],\"keywords\":[\"eospark\",\"api\",\"service\"],\"author\":\"BlockABC FE Team\",\"main\":\"./cjs/index.js\",\"module\":\"./esm/index.js\",\"browser\":\"./dist/abcwallet.umd.min.js\",\"dependencies\":{\"eventemitter3\":\"^4.0.0\",\"lodash-es\":\"^4.0.0\",\"loglevel\":\"^1.0.0\",\"ts-custom-error\":\"^3.0.0\"},\"devDependencies\":{\"@semantic-release/changelog\":\"^5.0.0\",\"@semantic-release/exec\":\"^5.0.0\",\"@semantic-release/git\":\"^9.0.0\",\"@types/jest\":\"^24.0.11\",\"@types/node\":\"^11.13.4\",\"babel-eslint\":\"^10.0.3\",\"chokidar\":\"^3.0.2\",\"commitizen\":\"^4.0.3\",\"cz-conventional-changelog\":\"^3.1.0\",\"eslint\":\"^6.2.2\",\"eslint-config-blockabc\":\"^0.9.1\",\"html-webpack-plugin\":\"^4.0.1\",\"jest\":\"^24.8.0\",\"semantic-release\":\"^17.4.0\",\"ts-jest\":\"^24.0.0\",\"ts-loader\":\"^5.0.0\",\"typescript\":\"^4.0.0\",\"webpack\":\"^4.29.6\",\"webpack-bundle-analyzer\":\"^3.3.2\",\"webpack-cli\":\"^3.3.0\",\"webpack-dev-server\":\"^3.7.2\",\"webpack-merge\":\"^4.2.1\",\"dotenv\":\"^8.2.0\"},\"config\":{\"commitizen\":{\"path\":\"./node_modules/cz-conventional-changelog\"}}}");

/***/ }),
/* 71 */
Expand Down
2 changes: 1 addition & 1 deletion dist/abcwallet.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/abcwallet.umd.min.js.map

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,77 @@ <h2>{{ chain.toUpperCase() }}</h2>

Vue.component('btc-test', {
mixins: [btcLike],
template: `
<div class="row">
<div class="col">
<div :id="chain + '-test'" class="card">
<div class="card-header">
<h2>{{ chain.toUpperCase() }}</h2>
</div>
<div class="card-body">
<form>
${allChain.template}
<div class="form-group row">
<label class="col-sm-2 col-form-label">offerIdentity</label>
<div class="col-sm-10">
<button class="btn btn-info" @click.prevent="offerIdentity">offerIdentity</button>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">sign/sendTransaction</label>
<div class="col-sm-10">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">rawTransaction</span>
</div>
<textarea class="form-control" rows="4" v-model="tx.rawTransaction"></textarea>
</div>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">unspents</span>
</div>
<v-jsoneditor :cache="chain + '-unspents'" v-model="tx.unspents"></v-jsoneditor>
</div>
<button class="btn btn-primary" @click.prevent="sign">sign</button>
<button class="btn btn-primary" @click.prevent="sendTransaction">sendTransaction</button>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">signMessage</label>
<div class="col-sm-10">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">params</span>
</div>
<v-jsoneditor :cache="chain + '-signMessageParams'" v-model="signMessageParams"></v-jsoneditor>
</div>
<button class="btn btn-primary" @click.prevent="signMessage">signMessage</button>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">verifyMessage</label>
<div class="col-sm-10">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">params</span>
</div>
<v-jsoneditor :cache="chain + '-verifyMessageParams'" v-model="verifyMessageParams"></v-jsoneditor>
</div>
<button class="btn btn-primary" @click.prevent="verifyMessage">verifyMessage</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
`,
data () {
return {
chain: 'btc',
Expand All @@ -702,9 +773,37 @@ <h2>{{ chain.toUpperCase() }}</h2>
"value": 789
}
]
},
signMessageParams: {
address: '',
message: 'hello world',
},
verifyMessageParams: {
address: '',
message: 'hello world',
signature: '',
}
}
},
methods: {
async signMessage () {
const ret = await ABCWallet[this.chain].signMessage({
address: '',
message: '',
})

console.log('Transaction ID:', ret)
},
async verifyMessage () {
const ret = await ABCWallet[this.chain].verifyMessage({
address: '',
message: '',
signature: '',
})

console.log('Transaction ID:', ret)
}
}
})

Vue.component('bch-test', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abcwallet",
"version": "1.5.0",
"version": "1.6.0",
"description": "The only and best SDK for ABCWallet application development.",
"repository": "https://github.com/BlockABC/abcwallet.js",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions types/api/BTCAPI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,14 @@ export declare class BTCAPI extends ChainBaseAPI {
rawTransaction: string;
unspents: string;
}): Promise<void>;
signMessage(params: {
address: string;
message: string;
}): Promise<void>;
verifyMessage(params: {
address: string;
message: string;
signature: string;
}): Promise<void>;
}
export default BTCAPI;

0 comments on commit 6652053

Please sign in to comment.