parent
21a9f5ecba
commit
7fcc4d252f
@ -3,7 +3,6 @@ const base = require('@polkadot/dev-react/config/eslint');
|
||||
module.exports = {
|
||||
...base,
|
||||
parserOptions: {
|
||||
...base.parserOptions,
|
||||
extraFileExtensions: ['*.d.ts'],
|
||||
project: [
|
||||
'./tsconfig.eslint.json'
|
||||
|
||||
14
package.json
14
package.json
@ -12,11 +12,11 @@
|
||||
"yarn": "^1.10.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^0.91.0-beta.10",
|
||||
"@polkadot/keyring": "^1.2.0-beta.3",
|
||||
"@polkadot/types": "^0.91.0-beta.10",
|
||||
"@polkadot/util": "^1.2.0-beta.3",
|
||||
"@polkadot/util-crypto": "^1.2.0-beta.3",
|
||||
"@polkadot/api": "^0.91.0-beta.22",
|
||||
"@polkadot/keyring": "^1.2.0-beta.7",
|
||||
"@polkadot/types": "^0.91.0-beta.22",
|
||||
"@polkadot/util": "^1.2.0-beta.7",
|
||||
"@polkadot/util-crypto": "^1.2.0-beta.7",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"typescript": "^3.6.2"
|
||||
},
|
||||
@ -32,7 +32,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.5.5",
|
||||
"@polkadot/dev-react": "^0.31.0-beta.6",
|
||||
"@polkadot/ts": "^0.1.69"
|
||||
"@polkadot/dev-react": "^0.31.0-beta.7",
|
||||
"@polkadot/ts": "^0.1.71"
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.5.5",
|
||||
"@polkadot/react-identicon": "^0.43.0-beta.4",
|
||||
"@polkadot/react-identicon": "^0.43.0-beta.11",
|
||||
"@types/react-router": "^5.0.3",
|
||||
"@types/react-router-dom": "^4.3.5",
|
||||
"react-router": "^5.0.1",
|
||||
|
||||
@ -5,13 +5,13 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "^0.91.0-beta.10",
|
||||
"@polkadot/api": "^0.91.0-beta.22",
|
||||
"@polkadot/extension-ui": "^0.10.0-beta.2",
|
||||
"@polkadot/ui-keyring": "^0.43.0-beta.4"
|
||||
"@polkadot/ui-keyring": "^0.43.0-beta.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "^7.5.5",
|
||||
"@polkadot/keyring": "^1.2.0-beta.3",
|
||||
"@polkadot/keyring": "^1.2.0-beta.7",
|
||||
"@types/chrome": "^0.0.88",
|
||||
"@types/firefox-webext-browser": "^67.0.1",
|
||||
"extensionizer": "^1.0.1",
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { SignerPayload } from '@polkadot/api/types';
|
||||
import { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import { SignerPayloadJSON } from '@polkadot/types/types';
|
||||
|
||||
export type MessageTypes = 'authorize.approve' | 'authorize.reject' | 'authorize.requests' | 'authorize.subscribe' | 'authorize.tab' | 'accounts.create' | 'accounts.edit' | 'accounts.forget' | 'accounts.list' | 'accounts.subscribe' | 'extrinsic.sign' | 'seed.create' | 'seed.validate' | 'signing.approve' | 'signing.cancel' | 'signing.requests' | 'signing.subscribe';
|
||||
|
||||
@ -64,7 +64,7 @@ export interface MessageExtrinsicSignCancel {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export type MessageExtrinsicSign = SignerPayload;
|
||||
export type MessageExtrinsicSign = SignerPayloadJSON;
|
||||
|
||||
export interface MessageExtrinsicSignResponse {
|
||||
id: string;
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Signer as SignerInterface, SignerPayload, SignerResult } from '@polkadot/api/types';
|
||||
import { Signer as SignerInterface, SignerResult } from '@polkadot/api/types';
|
||||
import { SignerPayloadJSON } from '@polkadot/types/types';
|
||||
import { SendRequest } from './types';
|
||||
|
||||
let sendRequest: SendRequest;
|
||||
@ -16,7 +17,7 @@ export default class Signer implements SignerInterface {
|
||||
sendRequest = _sendRequest;
|
||||
}
|
||||
|
||||
public async signPayload (payload: SignerPayload): Promise<SignerResult> {
|
||||
public async signPayload (payload: SignerPayloadJSON): Promise<SignerResult> {
|
||||
const id = ++nextId;
|
||||
const result = await sendRequest('extrinsic.sign', payload);
|
||||
|
||||
|
||||
@ -1,13 +1,8 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": [
|
||||
"packages/**/*.d.ts",
|
||||
"packages/**/*.ts",
|
||||
"packages/**/*.tsx",
|
||||
"packages/**/*.js",
|
||||
"packages/**/*.spec.ts",
|
||||
"packages/**/*.spec.js",
|
||||
"*.js"
|
||||
"exclude": [
|
||||
"build",
|
||||
"packages/*/build"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user