parent
034c71345a
commit
350bbac74c
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,5 +1,15 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 0.46.1 Apr 22, 2023
|
||||||
|
|
||||||
|
- **Important** Not published to the stores, aligns with latest released packages.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Upgrade to `@polkadot/api` 10.4.1
|
||||||
|
- Upgrade to `@polkadot/util` 12.0.1
|
||||||
|
|
||||||
|
|
||||||
## 0.45.5 Apr 1, 2023
|
## 0.45.5 Apr 1, 2023
|
||||||
|
|
||||||
- **Important** Not published to the stores, aligns with latest released packages.
|
- **Important** Not published to the stores, aligns with latest released packages.
|
||||||
|
|||||||
20
package.json
20
package.json
@ -13,7 +13,7 @@
|
|||||||
"url": "https://github.com/polkadot-js/extension.git"
|
"url": "https://github.com/polkadot-js/extension.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "0.45.6-2-x",
|
"git": "0.45.6-2-x",
|
||||||
"npm": "0.45.5"
|
"npm": "0.45.5"
|
||||||
@ -40,19 +40,19 @@
|
|||||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
|
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.72.32",
|
"@polkadot/dev": "^0.73.2",
|
||||||
"@types/node": "^18.15.11",
|
"@types/node": "^18.15.13",
|
||||||
"i18next-scanner": "^4.2.0",
|
"i18next-scanner": "^4.2.0",
|
||||||
"sinon-chrome": "^3.0.1"
|
"sinon-chrome": "^3.0.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"@polkadot/api": "^10.2.2",
|
"@polkadot/api": "^10.4.1",
|
||||||
"@polkadot/keyring": "^11.1.3",
|
"@polkadot/keyring": "^12.0.1",
|
||||||
"@polkadot/networks": "^11.1.3",
|
"@polkadot/networks": "^12.0.1",
|
||||||
"@polkadot/types": "^10.2.2",
|
"@polkadot/types": "^10.4.1",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"@polkadot/util-crypto": "^11.1.3",
|
"@polkadot/util-crypto": "^12.0.1",
|
||||||
"@polkadot/x-fetch": "^11.1.3",
|
"@polkadot/x-fetch": "^12.0.1",
|
||||||
"safe-buffer": "^5.2.1",
|
"safe-buffer": "^5.2.1",
|
||||||
"typescript": "^5.0.3"
|
"typescript": "^5.0.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,27 +18,27 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "^10.2.2",
|
"@polkadot/api": "^10.4.1",
|
||||||
"@polkadot/extension-chains": "^0.45.6-2-x",
|
"@polkadot/extension-chains": "0.46.0",
|
||||||
"@polkadot/extension-dapp": "^0.45.6-2-x",
|
"@polkadot/extension-dapp": "0.46.0",
|
||||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
"@polkadot/extension-inject": "0.46.0",
|
||||||
"@polkadot/keyring": "^11.1.3",
|
"@polkadot/keyring": "^12.0.1",
|
||||||
"@polkadot/networks": "^11.1.3",
|
"@polkadot/networks": "^12.0.1",
|
||||||
"@polkadot/phishing": "^0.20.5",
|
"@polkadot/phishing": "^0.21.1",
|
||||||
"@polkadot/rpc-provider": "^10.2.2",
|
"@polkadot/rpc-provider": "^10.4.1",
|
||||||
"@polkadot/types": "^10.2.2",
|
"@polkadot/types": "^10.4.1",
|
||||||
"@polkadot/ui-keyring": "^3.1.4",
|
"@polkadot/ui-keyring": "^3.2.1",
|
||||||
"@polkadot/ui-settings": "^3.1.4",
|
"@polkadot/ui-settings": "^3.2.1",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"@polkadot/util-crypto": "^11.1.3",
|
"@polkadot/util-crypto": "^12.0.1",
|
||||||
"eventemitter3": "^5.0.0",
|
"eventemitter3": "^5.0.0",
|
||||||
"rxjs": "^7.8.0",
|
"rxjs": "^7.8.0",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/extension-mocks": "^0.45.6-2-x"
|
"@polkadot/extension-mocks": "0.46.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,12 +2,12 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringPair } from '@polkadot/keyring/types';
|
import type { KeyringPair } from '@polkadot/keyring/types';
|
||||||
|
import type { TypeRegistry } from '@polkadot/types';
|
||||||
import type { SignerPayloadRaw } from '@polkadot/types/types';
|
import type { SignerPayloadRaw } from '@polkadot/types/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { RequestSign } from './types.js';
|
import type { RequestSign } from './types.js';
|
||||||
|
|
||||||
import { wrapBytes } from '@polkadot/extension-dapp/wrapBytes';
|
import { wrapBytes } from '@polkadot/extension-dapp/wrapBytes';
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
|
||||||
import { u8aToHex } from '@polkadot/util';
|
import { u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
export default class RequestBytesSign implements RequestSign {
|
export default class RequestBytesSign implements RequestSign {
|
||||||
|
|||||||
@ -2,12 +2,11 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringPair } from '@polkadot/keyring/types';
|
import type { KeyringPair } from '@polkadot/keyring/types';
|
||||||
|
import type { TypeRegistry } from '@polkadot/types';
|
||||||
import type { SignerPayloadJSON } from '@polkadot/types/types';
|
import type { SignerPayloadJSON } from '@polkadot/types/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { RequestSign } from './types.js';
|
import type { RequestSign } from './types.js';
|
||||||
|
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
|
||||||
|
|
||||||
export default class RequestExtrinsicSign implements RequestSign {
|
export default class RequestExtrinsicSign implements RequestSign {
|
||||||
public readonly payload: SignerPayloadJSON;
|
public readonly payload: SignerPayloadJSON;
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import type { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
|||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
import type { AccountJson, AllowedPath, AuthorizeRequest, MessageTypes, MetadataRequest, RequestAccountBatchExport, RequestAccountChangePassword, RequestAccountCreateExternal, RequestAccountCreateHardware, RequestAccountCreateSuri, RequestAccountEdit, RequestAccountExport, RequestAccountForget, RequestAccountShow, RequestAccountTie, RequestAccountValidate, RequestActiveTabsUrlUpdate, RequestAuthorizeApprove, RequestBatchRestore, RequestDeriveCreate, RequestDeriveValidate, RequestJsonRestore, RequestMetadataApprove, RequestMetadataReject, RequestSeedCreate, RequestSeedValidate, RequestSigningApprovePassword, RequestSigningApproveSignature, RequestSigningCancel, RequestSigningIsLocked, RequestTypes, RequestUpdateAuthorizedAccounts, ResponseAccountExport, ResponseAccountsExport, ResponseAuthorizeList, ResponseDeriveValidate, ResponseJsonGetAccountInfo, ResponseSeedCreate, ResponseSeedValidate, ResponseSigningIsLocked, ResponseType, SigningRequest } from '../types.js';
|
import type { AccountJson, AllowedPath, AuthorizeRequest, MessageTypes, MetadataRequest, RequestAccountBatchExport, RequestAccountChangePassword, RequestAccountCreateExternal, RequestAccountCreateHardware, RequestAccountCreateSuri, RequestAccountEdit, RequestAccountExport, RequestAccountForget, RequestAccountShow, RequestAccountTie, RequestAccountValidate, RequestActiveTabsUrlUpdate, RequestAuthorizeApprove, RequestBatchRestore, RequestDeriveCreate, RequestDeriveValidate, RequestJsonRestore, RequestMetadataApprove, RequestMetadataReject, RequestSeedCreate, RequestSeedValidate, RequestSigningApprovePassword, RequestSigningApproveSignature, RequestSigningCancel, RequestSigningIsLocked, RequestTypes, RequestUpdateAuthorizedAccounts, ResponseAccountExport, ResponseAccountsExport, ResponseAuthorizeList, ResponseDeriveValidate, ResponseJsonGetAccountInfo, ResponseSeedCreate, ResponseSeedValidate, ResponseSigningIsLocked, ResponseType, SigningRequest } from '../types.js';
|
||||||
import type { AuthorizedAccountsDiff } from './State.js';
|
import type { AuthorizedAccountsDiff } from './State.js';
|
||||||
|
import type State from './State.js';
|
||||||
|
|
||||||
import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@polkadot/extension-base/defaults';
|
import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@polkadot/extension-base/defaults';
|
||||||
import { metadataExpand } from '@polkadot/extension-chains';
|
import { metadataExpand } from '@polkadot/extension-chains';
|
||||||
@ -18,7 +19,6 @@ import { assert, isHex } from '@polkadot/util';
|
|||||||
import { keyExtractSuri, mnemonicGenerate, mnemonicValidate } from '@polkadot/util-crypto';
|
import { keyExtractSuri, mnemonicGenerate, mnemonicValidate } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { withErrorLog } from './helpers.js';
|
import { withErrorLog } from './helpers.js';
|
||||||
import State from './State.js';
|
|
||||||
import { createSubscription, unsubscribe } from './subscriptions.js';
|
import { createSubscription, unsubscribe } from './subscriptions.js';
|
||||||
|
|
||||||
type CachedUnlocks = Record<string, number>;
|
type CachedUnlocks = Record<string, number>;
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import type { SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/types/types'
|
|||||||
import type { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
import type { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
||||||
import type { MessageTypes, RequestAccountList, RequestAccountUnsubscribe, RequestAuthorizeTab, RequestRpcSend, RequestRpcSubscribe, RequestRpcUnsubscribe, RequestTypes, ResponseRpcListProviders, ResponseSigning, ResponseTypes, SubscriptionMessageTypes } from '../types.js';
|
import type { MessageTypes, RequestAccountList, RequestAccountUnsubscribe, RequestAuthorizeTab, RequestRpcSend, RequestRpcSubscribe, RequestRpcUnsubscribe, RequestTypes, ResponseRpcListProviders, ResponseSigning, ResponseTypes, SubscriptionMessageTypes } from '../types.js';
|
||||||
import type { AuthResponse } from './State.js';
|
import type { AuthResponse } from './State.js';
|
||||||
|
import type State from './State.js';
|
||||||
|
|
||||||
import { checkIfDenied } from '@polkadot/phishing';
|
import { checkIfDenied } from '@polkadot/phishing';
|
||||||
import keyring from '@polkadot/ui-keyring';
|
import keyring from '@polkadot/ui-keyring';
|
||||||
@ -20,7 +21,6 @@ import { canDerive } from '../../utils/index.js';
|
|||||||
import RequestBytesSign from '../RequestBytesSign.js';
|
import RequestBytesSign from '../RequestBytesSign.js';
|
||||||
import RequestExtrinsicSign from '../RequestExtrinsicSign.js';
|
import RequestExtrinsicSign from '../RequestExtrinsicSign.js';
|
||||||
import { withErrorLog } from './helpers.js';
|
import { withErrorLog } from './helpers.js';
|
||||||
import State from './State.js';
|
|
||||||
import { createSubscription, unsubscribe } from './subscriptions.js';
|
import { createSubscription, unsubscribe } from './subscriptions.js';
|
||||||
|
|
||||||
interface AccountSub {
|
interface AccountSub {
|
||||||
|
|||||||
@ -10,10 +10,9 @@ import type { Registry, SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/ty
|
|||||||
import type { KeyringPairs$Json } from '@polkadot/ui-keyring/types';
|
import type { KeyringPairs$Json } from '@polkadot/ui-keyring/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
|
import type { ALLOWED_PATH } from '../defaults.js';
|
||||||
import type { AuthResponse } from './handlers/State.js';
|
import type { AuthResponse } from './handlers/State.js';
|
||||||
|
|
||||||
import { ALLOWED_PATH } from '../defaults.js';
|
|
||||||
|
|
||||||
type KeysWithDefinedValues<T> = {
|
type KeysWithDefinedValues<T> = {
|
||||||
[K in keyof T]: T[K] extends undefined ? never : K
|
[K in keyof T]: T[K] extends undefined ? never : K
|
||||||
}[keyof T];
|
}[keyof T];
|
||||||
|
|||||||
@ -18,13 +18,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
"@polkadot/extension-inject": "0.46.0",
|
||||||
"@polkadot/networks": "^11.1.3",
|
"@polkadot/networks": "^12.0.1",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"@polkadot/util-crypto": "^11.1.3",
|
"@polkadot/util-crypto": "^12.0.1",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@ -18,13 +18,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@metamask/detect-provider": "^1.2.0",
|
"@metamask/detect-provider": "^1.2.0",
|
||||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
"@polkadot/extension-inject": "0.46.0",
|
||||||
"@polkadot/types": "^10.2.2",
|
"@polkadot/types": "^10.4.1",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.5.0",
|
||||||
"web3": "^1.9.0"
|
"web3": "^1.9.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -18,12 +18,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
"@polkadot/extension-inject": "0.46.0",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"@polkadot/util-crypto": "^11.1.3",
|
"@polkadot/util-crypto": "^12.0.1",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@ -15,18 +15,18 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": true,
|
"sideEffects": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-provider": "^10.2.2",
|
"@polkadot/rpc-provider": "^10.4.1",
|
||||||
"@polkadot/types": "^10.2.2",
|
"@polkadot/types": "^10.4.1",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"@polkadot/util-crypto": "^11.1.3",
|
"@polkadot/util-crypto": "^12.0.1",
|
||||||
"@polkadot/x-global": "^11.1.3",
|
"@polkadot/x-global": "^12.0.1",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chrome": "^0.0.227",
|
"@types/chrome": "^0.0.233",
|
||||||
"@types/firefox-webext-browser": "^111.0.1"
|
"@types/firefox-webext-browser": "^111.0.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sinon-chrome": "^3.0.1",
|
"sinon-chrome": "^3.0.1",
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2019-2023 @polkadot/extension-mocks authors & contributors
|
// Copyright 2019-2023 @polkadot/extension-mocks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React from 'react';
|
import type React from 'react';
|
||||||
|
|
||||||
interface useTranslationReturnObj {
|
interface useTranslationReturnObj {
|
||||||
i18n: { changeLanguage: () => Promise<unknown>; };
|
i18n: { changeLanguage: () => Promise<unknown>; };
|
||||||
|
|||||||
@ -15,30 +15,30 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": true,
|
"sideEffects": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
||||||
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
||||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||||
"@polkadot/extension-base": "^0.45.6-2-x",
|
"@polkadot/extension-base": "0.46.0",
|
||||||
"@polkadot/extension-chains": "^0.45.6-2-x",
|
"@polkadot/extension-chains": "0.46.0",
|
||||||
"@polkadot/extension-dapp": "^0.45.6-2-x",
|
"@polkadot/extension-dapp": "0.46.0",
|
||||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
"@polkadot/extension-inject": "0.46.0",
|
||||||
"@polkadot/hw-ledger": "^11.1.3",
|
"@polkadot/hw-ledger": "^12.0.1",
|
||||||
"@polkadot/keyring": "^11.1.3",
|
"@polkadot/keyring": "^12.0.1",
|
||||||
"@polkadot/networks": "^11.1.3",
|
"@polkadot/networks": "^12.0.1",
|
||||||
"@polkadot/react-identicon": "^3.1.4",
|
"@polkadot/react-identicon": "^3.2.1",
|
||||||
"@polkadot/react-qr": "^3.1.4",
|
"@polkadot/react-qr": "^3.2.1",
|
||||||
"@polkadot/types": "^10.2.2",
|
"@polkadot/types": "^10.4.1",
|
||||||
"@polkadot/types-augment": "^10.2.2",
|
"@polkadot/types-augment": "^10.4.1",
|
||||||
"@polkadot/ui-keyring": "^3.1.4",
|
"@polkadot/ui-keyring": "^3.2.1",
|
||||||
"@polkadot/ui-settings": "^3.1.4",
|
"@polkadot/ui-settings": "^3.2.1",
|
||||||
"@polkadot/util": "^11.1.3",
|
"@polkadot/util": "^12.0.1",
|
||||||
"@polkadot/util-crypto": "^11.1.3",
|
"@polkadot/util-crypto": "^12.0.1",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"i18next": "^22.4.13",
|
"i18next": "^22.4.15",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-dropzone": "^11.7.1",
|
"react-dropzone": "^11.7.1",
|
||||||
@ -50,8 +50,8 @@
|
|||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/extension-mocks": "^0.45.6-2-x",
|
"@polkadot/extension-mocks": "0.46.0",
|
||||||
"@types/enzyme": "^3.10.12",
|
"@types/enzyme": "^3.10.13",
|
||||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||||
"@types/file-saver": "^2.0.5",
|
"@types/file-saver": "^2.0.5",
|
||||||
"@types/react-copy-to-clipboard": "^5.0.4",
|
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||||
|
|||||||
@ -5,10 +5,11 @@ import type { TFunction } from 'i18next';
|
|||||||
import type { Chain } from '@polkadot/extension-chains/types';
|
import type { Chain } from '@polkadot/extension-chains/types';
|
||||||
import type { Call, ExtrinsicEra, ExtrinsicPayload } from '@polkadot/types/interfaces';
|
import type { Call, ExtrinsicEra, ExtrinsicPayload } from '@polkadot/types/interfaces';
|
||||||
import type { AnyJson, SignerPayloadJSON } from '@polkadot/types/types';
|
import type { AnyJson, SignerPayloadJSON } from '@polkadot/types/types';
|
||||||
|
import type { BN } from '@polkadot/util';
|
||||||
|
|
||||||
import React, { useMemo, useRef } from 'react';
|
import React, { useMemo, useRef } from 'react';
|
||||||
|
|
||||||
import { BN, bnToBn, formatNumber } from '@polkadot/util';
|
import { bnToBn, formatNumber } from '@polkadot/util';
|
||||||
|
|
||||||
import { Table } from '../../components/index.js';
|
import { Table } from '../../components/index.js';
|
||||||
import useMetadata from '../../hooks/useMetadata.js';
|
import useMetadata from '../../hooks/useMetadata.js';
|
||||||
|
|||||||
@ -14,7 +14,7 @@ interface Props extends ThemeProps {
|
|||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Welcome = function ({ className }: Props): React.ReactElement<Props> {
|
function Welcome ({ className }: Props): React.ReactElement<Props> {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const onAction = useContext(ActionContext);
|
const onAction = useContext(ActionContext);
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ const Welcome = function ({ className }: Props): React.ReactElement<Props> {
|
|||||||
</ButtonArea>
|
</ButtonArea>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default styled(Welcome)(({ theme }: Props) => `
|
export default styled(Welcome)(({ theme }: Props) => `
|
||||||
p {
|
p {
|
||||||
|
|||||||
@ -12,13 +12,13 @@ interface Props extends ThemeProps {
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ButtonArea = function ({ children, className }: Props) {
|
function ButtonArea ({ children, className }: Props): React.ReactElement<Props> {
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default styled(ButtonArea)(({ theme }: ThemeProps) => `
|
export default styled(ButtonArea)(({ theme }: ThemeProps) => `
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -21,14 +21,4 @@ const SigningReqContext = React.createContext<SigningRequest[]>([]);
|
|||||||
const ThemeSwitchContext = React.createContext<(theme: AvailableThemes) => void>(noop);
|
const ThemeSwitchContext = React.createContext<(theme: AvailableThemes) => void>(noop);
|
||||||
const ToastContext = React.createContext<({show: (message: string) => void})>({ show: noop });
|
const ToastContext = React.createContext<({show: (message: string) => void})>({ show: noop });
|
||||||
|
|
||||||
export {
|
export { AccountContext, ActionContext, AuthorizeReqContext, MediaContext, MetadataReqContext, SettingsContext, SigningReqContext, ThemeSwitchContext, ToastContext };
|
||||||
AccountContext,
|
|
||||||
ActionContext,
|
|
||||||
AuthorizeReqContext,
|
|
||||||
MediaContext,
|
|
||||||
MetadataReqContext,
|
|
||||||
SettingsContext,
|
|
||||||
SigningReqContext,
|
|
||||||
ThemeSwitchContext,
|
|
||||||
ToastContext
|
|
||||||
};
|
|
||||||
|
|||||||
@ -15,15 +15,15 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.45.6-2-x",
|
"version": "0.46.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/extension-base": "^0.45.6-2-x",
|
"@polkadot/extension-base": "0.46.0",
|
||||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
"@polkadot/extension-inject": "0.46.0",
|
||||||
"@polkadot/extension-ui": "^0.45.6-2-x",
|
"@polkadot/extension-ui": "0.46.0",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.72.32",
|
"@polkadot/dev": "^0.73.2",
|
||||||
"browser-resolve": "^2.0.0",
|
"browser-resolve": "^2.0.0",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"copy-webpack-plugin": "^11.0.0",
|
"copy-webpack-plugin": "^11.0.0",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user