Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Grumbles & bump packages to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
axelchalon committed Jan 18, 2019
1 parent b38994e commit ec7b7f3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/abi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parity/abi",
"description": "Ethereum ABI encoder and decoder",
"version": "3.0.26",
"version": "4.0.0",
"author": "Parity Team <admin@parity.io>",
"license": "MIT",
"repository": "https://github.com/paritytech/js-libs/tree/master/packages/abi",
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parity/api",
"description": "The Parity Promise-based API library for interfacing with Ethereum over RPC",
"version": "3.0.26",
"version": "4.0.0",
"author": "Parity Team <admin@parity.io>",
"license": "MIT",
"repository": "https://github.com/paritytech/js-libs/tree/master/packages/api",
Expand Down Expand Up @@ -39,7 +39,7 @@
"typescript": "^3.1.6"
},
"dependencies": {
"@parity/abi": "^3.0.26",
"@parity/abi": "^4.0.0",
"bignumber.js": "^8.0.1",
"blockies": "0.0.2",
"es6-error": "4.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parity/contracts",
"description": "Parity's contracts as ES6 classes.",
"version": "3.0.26",
"version": "4.0.0",
"author": "Parity Team <admin@parity.io>",
"license": "MIT",
"repository": "https://github.com/paritytech/js-libs/tree/master/packages/contracts",
Expand All @@ -22,8 +22,8 @@
"test": "jest"
},
"dependencies": {
"@parity/abi": "^3.0.26",
"@parity/api": "^3.0.26",
"@parity/abi": "^4.0.0",
"@parity/api": "^4.0.0",
"bignumber.js": "^8.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parity/electron",
"description": "Control the Parity Ethereum node from Electron.",
"version": "3.0.26",
"version": "4.0.0",
"author": "Parity Team <admin@parity.io>",
"license": "MIT",
"repository": "https://github.com/paritytech/js-libs/tree/master/packages/electron",
Expand Down
6 changes: 3 additions & 3 deletions packages/light.js-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parity/light.js-react",
"description": "A HOC to easily use @parity/light.js with React.",
"version": "3.0.26",
"version": "4.0.0",
"author": "Parity Team <admin@parity.io>",
"license": "MIT",
"repository": "https://github.com/paritytech/js-libs/tree/master/packages/light.js-react",
Expand Down Expand Up @@ -30,7 +30,7 @@
"symbol-observable": "^1.2.0"
},
"devDependencies": {
"@parity/light.js": "^3.0.26",
"@parity/light.js": "^4.0.0",
"@types/enzyme": "^3.1.13",
"@types/enzyme-adapter-react-16": "^1.0.3",
"@types/recompose": "^0.26.4",
Expand All @@ -42,7 +42,7 @@
"typescript": "^3.1.6"
},
"peerDependencies": {
"@parity/light.js": "^3.0.0",
"@parity/light.js": "^4.0.0",
"rxjs": "~6.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/light.js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parity/light.js",
"description": "A high-level reactive JS library optimized for light clients",
"version": "3.0.26",
"version": "4.0.0",
"author": "Parity Team <admin@parity.io>",
"license": "MIT",
"repository": "https://github.com/paritytech/js-libs/tree/master/packages/light.js",
Expand All @@ -26,8 +26,8 @@
"test": "jest"
},
"dependencies": {
"@parity/abi": "^3.0.26",
"@parity/api": "^3.0.26",
"@parity/abi": "^4.0.0",
"@parity/api": "^4.0.0",
"async-retry": "^1.2.3",
"bignumber.js": "^8.0.1",
"debug": "^4.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/light.js/src/rpc/other/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function post$ (tx: Tx, passphrase: string, options: PostOptions = {}) {
}

const signedTransaction = await api.personal.signTransaction(tx, passphrase);
observer.next({ signed: signedTransaction.raw });
postRaw$(signedTransaction.raw).subscribe(observer);

} catch (error) {
Expand Down Expand Up @@ -88,7 +89,7 @@ export function postRaw$ (rawTx: string, options: PostOptions = {}) {
const source$ = Observable.create(async (observer: Observer<TxStatus>) => {
try {
const transactionHash = await api.eth.sendRawTransaction(rawTx);
observer.next({ signed: transactionHash });
observer.next({ sent: transactionHash });

const receipt = await getTransactionReceipt(transactionHash, api);
observer.next({ confirmed: receipt });
Expand Down
3 changes: 1 addition & 2 deletions packages/light.js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export interface TxStatus {
estimating?: boolean;
estimated?: BigNumber;
failed?: Error;
requested?: string;
schedule?: any;
signed?: string;
sent?: string;
}

0 comments on commit ec7b7f3

Please sign in to comment.