This commit is contained in:
Jaco Greeff 2019-08-03 08:57:49 +02:00 committed by GitHub
parent 2ab063f050
commit 232251b1e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1053 additions and 696 deletions

View File

@ -1,3 +1,7 @@
# 0.6.0-beta.x
- Support Extrinsics v3 from substrate 2.x, this signs an extrinsic with the genesisHash
# 0.5.1
- Always check for site permissions on messages, don't assume that messages originate from the libraries provided

View File

@ -12,11 +12,11 @@
"yarn": "^1.10.1"
},
"resolutions": {
"@polkadot/api": "^0.90.0-beta.1",
"@polkadot/keyring": "^0.95.0-beta.2",
"@polkadot/types": "^0.90.0-beta.1",
"@polkadot/util": "^0.95.0-beta.2",
"@polkadot/util-crypto": "^0.95.0-beta.2",
"@polkadot/api": "^0.90.0-beta.19",
"@polkadot/keyring": "^1.0.1",
"@polkadot/types": "^0.90.0-beta.19",
"@polkadot/util": "^1.0.1",
"@polkadot/util-crypto": "^1.0.1",
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.5.3"
},
@ -32,7 +32,7 @@
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@polkadot/dev-react": "^0.30.0-beta.23",
"@polkadot/ts": "^0.1.62"
"@polkadot/dev-react": "^0.30.0-beta.24",
"@polkadot/ts": "^0.1.63"
}
}

View File

@ -6,7 +6,7 @@
"license": "Apache-2",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/react-identicon": "^0.42.0-beta.19",
"@polkadot/react-identicon": "^0.42.0-beta.27",
"@types/react-router": "^5.0.3",
"@types/react-router-dom": "^4.3.4",
"react-router": "^5.0.1",

View File

@ -5,19 +5,19 @@
"author": "Jaco Greeff <jacogr@gmail.com>",
"license": "Apache-2",
"dependencies": {
"@polkadot/api": "^0.90.0-beta.1",
"@polkadot/api": "^0.90.0-beta.19",
"@polkadot/extension-ui": "^0.6.0-beta.0",
"@polkadot/ui-keyring": "^0.42.0-beta.19"
"@polkadot/ui-keyring": "^0.42.0-beta.27"
},
"devDependencies": {
"@babel/runtime": "^7.5.5",
"@polkadot/keyring": "^0.95.0-beta.2",
"@types/chrome": "^0.0.86",
"@polkadot/keyring": "^1.0.1",
"@types/chrome": "^0.0.87",
"@types/firefox-webext-browser": "^67.0.1",
"extensionizer": "^1.0.1",
"extract-loader": "^3.1.0",
"file-loader": "^4.1.0",
"html-loader": "^0.5.5",
"webpack-extension-manifest-plugin": "^0.4.3"
"webpack-extension-manifest-plugin": "^0.5.0"
}
}

View File

@ -10,6 +10,9 @@ let nextId = 0;
export default class Signer implements SignerInterface {
public constructor (_sendRequest: SendRequest) {
// NOTE We are storing the `sendRequest` as a global to this class, since we don't
// have private members in JS, we err on the side of caution and hide it away so it
// is only available internally to the class.
sendRequest = _sendRequest;
}
@ -26,8 +29,19 @@ export default class Signer implements SignerInterface {
};
}
// We don't listen to updates at all, if we do we can interpret the result
// as provided by the API here
// TODO To implement signing of arbitrary payloads via signRaw
// public async signRaw (payload: SignerPayloadRaw): Promise<SignerResult> {
// const id = ++nextId;
// const result = await sendRequest('bytes.sign', payload);
// return {
// ...result,
// id
// };
// }
// NOTE We don't listen to updates at all, if we do we can interpret the
// resuklt as provided by the API here
// public update (id: number, status: Hash | SubmittableResult): void {
// // ignore
// }

1701
yarn.lock

File diff suppressed because it is too large Load Diff