parent
034c71345a
commit
350bbac74c
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,5 +1,15 @@
|
||||
# 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
|
||||
|
||||
- **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"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"versions": {
|
||||
"git": "0.45.6-2-x",
|
||||
"npm": "0.45.5"
|
||||
@ -40,19 +40,19 @@
|
||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.72.32",
|
||||
"@types/node": "^18.15.11",
|
||||
"@polkadot/dev": "^0.73.2",
|
||||
"@types/node": "^18.15.13",
|
||||
"i18next-scanner": "^4.2.0",
|
||||
"sinon-chrome": "^3.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^10.2.2",
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/networks": "^11.1.3",
|
||||
"@polkadot/types": "^10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/x-fetch": "^11.1.3",
|
||||
"@polkadot/api": "^10.4.1",
|
||||
"@polkadot/keyring": "^12.0.1",
|
||||
"@polkadot/networks": "^12.0.1",
|
||||
"@polkadot/types": "^10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"@polkadot/x-fetch": "^12.0.1",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"typescript": "^5.0.3"
|
||||
}
|
||||
|
||||
@ -18,27 +18,27 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "^10.2.2",
|
||||
"@polkadot/extension-chains": "^0.45.6-2-x",
|
||||
"@polkadot/extension-dapp": "^0.45.6-2-x",
|
||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/networks": "^11.1.3",
|
||||
"@polkadot/phishing": "^0.20.5",
|
||||
"@polkadot/rpc-provider": "^10.2.2",
|
||||
"@polkadot/types": "^10.2.2",
|
||||
"@polkadot/ui-keyring": "^3.1.4",
|
||||
"@polkadot/ui-settings": "^3.1.4",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/api": "^10.4.1",
|
||||
"@polkadot/extension-chains": "0.46.0",
|
||||
"@polkadot/extension-dapp": "0.46.0",
|
||||
"@polkadot/extension-inject": "0.46.0",
|
||||
"@polkadot/keyring": "^12.0.1",
|
||||
"@polkadot/networks": "^12.0.1",
|
||||
"@polkadot/phishing": "^0.21.1",
|
||||
"@polkadot/rpc-provider": "^10.4.1",
|
||||
"@polkadot/types": "^10.4.1",
|
||||
"@polkadot/ui-keyring": "^3.2.1",
|
||||
"@polkadot/ui-settings": "^3.2.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"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
|
||||
|
||||
import type { KeyringPair } from '@polkadot/keyring/types';
|
||||
import type { TypeRegistry } from '@polkadot/types';
|
||||
import type { SignerPayloadRaw } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { RequestSign } from './types.js';
|
||||
|
||||
import { wrapBytes } from '@polkadot/extension-dapp/wrapBytes';
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
export default class RequestBytesSign implements RequestSign {
|
||||
|
||||
@ -2,12 +2,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringPair } from '@polkadot/keyring/types';
|
||||
import type { TypeRegistry } from '@polkadot/types';
|
||||
import type { SignerPayloadJSON } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { RequestSign } from './types.js';
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
|
||||
export default class RequestExtrinsicSign implements RequestSign {
|
||||
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 { 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 State from './State.js';
|
||||
|
||||
import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@polkadot/extension-base/defaults';
|
||||
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 { withErrorLog } from './helpers.js';
|
||||
import State from './State.js';
|
||||
import { createSubscription, unsubscribe } from './subscriptions.js';
|
||||
|
||||
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 { MessageTypes, RequestAccountList, RequestAccountUnsubscribe, RequestAuthorizeTab, RequestRpcSend, RequestRpcSubscribe, RequestRpcUnsubscribe, RequestTypes, ResponseRpcListProviders, ResponseSigning, ResponseTypes, SubscriptionMessageTypes } from '../types.js';
|
||||
import type { AuthResponse } from './State.js';
|
||||
import type State from './State.js';
|
||||
|
||||
import { checkIfDenied } from '@polkadot/phishing';
|
||||
import keyring from '@polkadot/ui-keyring';
|
||||
@ -20,7 +21,6 @@ import { canDerive } from '../../utils/index.js';
|
||||
import RequestBytesSign from '../RequestBytesSign.js';
|
||||
import RequestExtrinsicSign from '../RequestExtrinsicSign.js';
|
||||
import { withErrorLog } from './helpers.js';
|
||||
import State from './State.js';
|
||||
import { createSubscription, unsubscribe } from './subscriptions.js';
|
||||
|
||||
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 { HexString } from '@polkadot/util/types';
|
||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { ALLOWED_PATH } from '../defaults.js';
|
||||
import type { AuthResponse } from './handlers/State.js';
|
||||
|
||||
import { ALLOWED_PATH } from '../defaults.js';
|
||||
|
||||
type KeysWithDefinedValues<T> = {
|
||||
[K in keyof T]: T[K] extends undefined ? never : K
|
||||
}[keyof T];
|
||||
|
||||
@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
||||
"@polkadot/networks": "^11.1.3",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/extension-inject": "0.46.0",
|
||||
"@polkadot/networks": "^12.0.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@metamask/detect-provider": "^1.2.0",
|
||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
||||
"@polkadot/types": "^10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/extension-inject": "0.46.0",
|
||||
"@polkadot/types": "^10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"tslib": "^2.5.0",
|
||||
"web3": "^1.9.0"
|
||||
},
|
||||
|
||||
@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/extension-inject": "0.46.0",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@ -15,18 +15,18 @@
|
||||
},
|
||||
"sideEffects": true,
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-provider": "^10.2.2",
|
||||
"@polkadot/types": "^10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/x-global": "^11.1.3",
|
||||
"@polkadot/rpc-provider": "^10.4.1",
|
||||
"@polkadot/types": "^10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"@polkadot/x-global": "^12.0.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.227",
|
||||
"@types/chrome": "^0.0.233",
|
||||
"@types/firefox-webext-browser": "^111.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"sinon-chrome": "^3.0.1",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2019-2023 @polkadot/extension-mocks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import type React from 'react';
|
||||
|
||||
interface useTranslationReturnObj {
|
||||
i18n: { changeLanguage: () => Promise<unknown>; };
|
||||
|
||||
@ -15,30 +15,30 @@
|
||||
},
|
||||
"sideEffects": true,
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@polkadot/extension-base": "^0.45.6-2-x",
|
||||
"@polkadot/extension-chains": "^0.45.6-2-x",
|
||||
"@polkadot/extension-dapp": "^0.45.6-2-x",
|
||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
||||
"@polkadot/hw-ledger": "^11.1.3",
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/networks": "^11.1.3",
|
||||
"@polkadot/react-identicon": "^3.1.4",
|
||||
"@polkadot/react-qr": "^3.1.4",
|
||||
"@polkadot/types": "^10.2.2",
|
||||
"@polkadot/types-augment": "^10.2.2",
|
||||
"@polkadot/ui-keyring": "^3.1.4",
|
||||
"@polkadot/ui-settings": "^3.1.4",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/extension-base": "0.46.0",
|
||||
"@polkadot/extension-chains": "0.46.0",
|
||||
"@polkadot/extension-dapp": "0.46.0",
|
||||
"@polkadot/extension-inject": "0.46.0",
|
||||
"@polkadot/hw-ledger": "^12.0.1",
|
||||
"@polkadot/keyring": "^12.0.1",
|
||||
"@polkadot/networks": "^12.0.1",
|
||||
"@polkadot/react-identicon": "^3.2.1",
|
||||
"@polkadot/react-qr": "^3.2.1",
|
||||
"@polkadot/types": "^10.4.1",
|
||||
"@polkadot/types-augment": "^10.4.1",
|
||||
"@polkadot/ui-keyring": "^3.2.1",
|
||||
"@polkadot/ui-settings": "^3.2.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"file-saver": "^2.0.5",
|
||||
"i18next": "^22.4.13",
|
||||
"i18next": "^22.4.15",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-dropzone": "^11.7.1",
|
||||
@ -50,8 +50,8 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/extension-mocks": "^0.45.6-2-x",
|
||||
"@types/enzyme": "^3.10.12",
|
||||
"@polkadot/extension-mocks": "0.46.0",
|
||||
"@types/enzyme": "^3.10.13",
|
||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@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 { Call, ExtrinsicEra, ExtrinsicPayload } from '@polkadot/types/interfaces';
|
||||
import type { AnyJson, SignerPayloadJSON } from '@polkadot/types/types';
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
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 useMetadata from '../../hooks/useMetadata.js';
|
||||
|
||||
@ -14,7 +14,7 @@ interface Props extends ThemeProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Welcome = function ({ className }: Props): React.ReactElement<Props> {
|
||||
function Welcome ({ className }: Props): React.ReactElement<Props> {
|
||||
const { t } = useTranslation();
|
||||
const onAction = useContext(ActionContext);
|
||||
|
||||
@ -46,7 +46,7 @@ const Welcome = function ({ className }: Props): React.ReactElement<Props> {
|
||||
</ButtonArea>
|
||||
</>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default styled(Welcome)(({ theme }: Props) => `
|
||||
p {
|
||||
|
||||
@ -12,13 +12,13 @@ interface Props extends ThemeProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
const ButtonArea = function ({ children, className }: Props) {
|
||||
function ButtonArea ({ children, className }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<div className={className}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default styled(ButtonArea)(({ theme }: ThemeProps) => `
|
||||
display: flex;
|
||||
|
||||
@ -21,14 +21,4 @@ const SigningReqContext = React.createContext<SigningRequest[]>([]);
|
||||
const ThemeSwitchContext = React.createContext<(theme: AvailableThemes) => void>(noop);
|
||||
const ToastContext = React.createContext<({show: (message: string) => void})>({ show: noop });
|
||||
|
||||
export {
|
||||
AccountContext,
|
||||
ActionContext,
|
||||
AuthorizeReqContext,
|
||||
MediaContext,
|
||||
MetadataReqContext,
|
||||
SettingsContext,
|
||||
SigningReqContext,
|
||||
ThemeSwitchContext,
|
||||
ToastContext
|
||||
};
|
||||
export { AccountContext, ActionContext, AuthorizeReqContext, MediaContext, MetadataReqContext, SettingsContext, SigningReqContext, ThemeSwitchContext, ToastContext };
|
||||
|
||||
@ -15,15 +15,15 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "0.45.6-2-x",
|
||||
"version": "0.46.0",
|
||||
"dependencies": {
|
||||
"@polkadot/extension-base": "^0.45.6-2-x",
|
||||
"@polkadot/extension-inject": "^0.45.6-2-x",
|
||||
"@polkadot/extension-ui": "^0.45.6-2-x",
|
||||
"@polkadot/extension-base": "0.46.0",
|
||||
"@polkadot/extension-inject": "0.46.0",
|
||||
"@polkadot/extension-ui": "0.46.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.72.32",
|
||||
"@polkadot/dev": "^0.73.2",
|
||||
"browser-resolve": "^2.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user