diff --git a/.babelrc.js b/.babelrc.js index 5188ea04..d36a6111 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -1 +1,4 @@ +// Copyright 2019-2020 @polkadot/extension authors & contributors +// SPDX-License-Identifier: Apache-2.0 + module.exports = require('./babel.config.js'); diff --git a/.eslintrc.js b/.eslintrc.js index 048ac1f5..31468693 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,6 @@ +// Copyright 2019-2020 @polkadot/extension authors & contributors +// SPDX-License-Identifier: Apache-2.0 + const base = require('@polkadot/dev/config/eslint'); module.exports = { diff --git a/__mocks__/chrome.ts b/__mocks__/chrome.ts index 6011b0f3..186a63c9 100644 --- a/__mocks__/chrome.ts +++ b/__mocks__/chrome.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable @typescript-eslint/no-explicit-any */ import chrome from 'sinon-chrome'; diff --git a/__mocks__/fileMock.js b/__mocks__/fileMock.js index 445b8204..42639a22 100644 --- a/__mocks__/fileMock.js +++ b/__mocks__/fileMock.js @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // eslint-disable-line module.exports = ''; diff --git a/babel.config.js b/babel.config.js index 97c063df..c22987dd 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,4 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 module.exports = require('@polkadot/dev/config/babel'); diff --git a/copy-to-apps.sh b/copy-to-apps.sh index e13e7dc1..3d93538a 100755 --- a/copy-to-apps.sh +++ b/copy-to-apps.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright 2019-2020 @polkadot/extension authors & contributors +# SPDX-License-Identifier: Apache-2.0 function copy_folder () { SRC="packages/$1/build" diff --git a/i18next-scanner.config.js b/i18next-scanner.config.js index 15db788f..b8ab99c2 100644 --- a/i18next-scanner.config.js +++ b/i18next-scanner.config.js @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 module.exports = { input: [ diff --git a/jest.config.js b/jest.config.js index abd7b956..f01dbb35 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const config = require('@polkadot/dev/config/jest'); diff --git a/package.json b/package.json index 92fde8c8..978919d0 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^1.34.0-beta.8", + "@polkadot/api": "^1.34.0-beta.10", "@polkadot/keyring": "^3.4.1", - "@polkadot/types": "^1.34.0-beta.8", + "@polkadot/types": "^1.34.0-beta.10", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "babel-core": "^7.0.0-bridge.0", @@ -36,7 +36,7 @@ "devDependencies": { "@babel/core": "^7.11.6", "@polkadot/dev": "^0.55.52", - "@polkadot/typegen": "^1.34.0-beta.8", + "@polkadot/typegen": "^1.34.0-beta.10", "@types/jest": "^26.0.14", "copy-webpack-plugin": "^6.1.0", "i18next-scanner": "^2.11.0", diff --git a/packages/extension-base/package.json b/packages/extension-base/package.json index 6857d80c..03b83286 100644 --- a/packages/extension-base/package.json +++ b/packages/extension-base/package.json @@ -6,9 +6,9 @@ "license": "Apache-2", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api": "^1.34.0-beta.8", + "@polkadot/api": "^1.34.0-beta.10", "@polkadot/extension-inject": "0.35.0-beta.1", "@polkadot/keyring": "^3.4.1", - "@polkadot/ui-keyring": "^0.59.0-beta.7" + "@polkadot/ui-keyring": "^0.59.0-beta.8" } } diff --git a/packages/extension-base/src/background/RequestBytesSign.ts b/packages/extension-base/src/background/RequestBytesSign.ts index 2cca684d..4068429e 100644 --- a/packages/extension-base/src/background/RequestBytesSign.ts +++ b/packages/extension-base/src/background/RequestBytesSign.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair } from '@polkadot/keyring/types'; import { RequestSign } from './types'; diff --git a/packages/extension-base/src/background/RequestExtrinsicSign.ts b/packages/extension-base/src/background/RequestExtrinsicSign.ts index 9de0303c..7c235e0f 100644 --- a/packages/extension-base/src/background/RequestExtrinsicSign.ts +++ b/packages/extension-base/src/background/RequestExtrinsicSign.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair } from '@polkadot/keyring/types'; import { SignerPayloadJSON } from '@polkadot/types/types'; diff --git a/packages/extension-base/src/background/handlers/Extension.test.ts b/packages/extension-base/src/background/handlers/Extension.test.ts index f2427c6a..fecb590e 100644 --- a/packages/extension-base/src/background/handlers/Extension.test.ts +++ b/packages/extension-base/src/background/handlers/Extension.test.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../../__mocks__/chrome'; diff --git a/packages/extension-base/src/background/handlers/Extension.ts b/packages/extension-base/src/background/handlers/Extension.ts index 0318c071..6a4e6c20 100644 --- a/packages/extension-base/src/background/handlers/Extension.ts +++ b/packages/extension-base/src/background/handlers/Extension.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@polkadot/extension-inject/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; diff --git a/packages/extension-base/src/background/handlers/State.ts b/packages/extension-base/src/background/handlers/State.ts index 367d7021..1a42573c 100644 --- a/packages/extension-base/src/background/handlers/State.ts +++ b/packages/extension-base/src/background/handlers/State.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-bg authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { knownMetadata, addMetadata } from '@polkadot/extension-chains'; import { ProviderMeta, MetadataDef } from '@polkadot/extension-inject/types'; diff --git a/packages/extension-base/src/background/handlers/Tabs.ts b/packages/extension-base/src/background/handlers/Tabs.ts index b337ba0e..d984aa85 100644 --- a/packages/extension-base/src/background/handlers/Tabs.ts +++ b/packages/extension-base/src/background/handlers/Tabs.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { InjectedAccount, InjectedMetadataKnown, MetadataDef, ProviderMeta } from '@polkadot/extension-inject/types'; import { KeyringPair } from '@polkadot/keyring/types'; diff --git a/packages/extension-base/src/background/handlers/index.ts b/packages/extension-base/src/background/handlers/index.ts index e3b4fc0c..c615f19d 100644 --- a/packages/extension-base/src/background/handlers/index.ts +++ b/packages/extension-base/src/background/handlers/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TransportRequestMessage, MessageTypes } from '../types'; diff --git a/packages/extension-base/src/background/handlers/subscriptions.ts b/packages/extension-base/src/background/handlers/subscriptions.ts index 12950b6c..c97022a9 100644 --- a/packages/extension-base/src/background/handlers/subscriptions.ts +++ b/packages/extension-base/src/background/handlers/subscriptions.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubscriptionMessageTypes, MessageTypesWithSubscriptions } from '../types'; diff --git a/packages/extension-base/src/background/types.ts b/packages/extension-base/src/background/types.ts index 8cfe9179..4ece7d7d 100644 --- a/packages/extension-base/src/background/types.ts +++ b/packages/extension-base/src/background/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable no-use-before-define */ diff --git a/packages/extension-base/src/defaults.ts b/packages/extension-base/src/defaults.ts index 26f47286..01ed7f00 100644 --- a/packages/extension-base/src/defaults.ts +++ b/packages/extension-base/src/defaults.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const PORT_CONTENT = 'content'; const PORT_EXTENSION = 'extension'; diff --git a/packages/extension-base/src/page/Accounts.ts b/packages/extension-base/src/page/Accounts.ts index 55f4209b..9233e62c 100644 --- a/packages/extension-base/src/page/Accounts.ts +++ b/packages/extension-base/src/page/Accounts.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { InjectedAccounts, InjectedAccount, Unsubcall } from '@polkadot/extension-inject/types'; import { SendRequest } from './types'; diff --git a/packages/extension-base/src/page/Injected.ts b/packages/extension-base/src/page/Injected.ts index 7bb9f7aa..e3d0aad9 100644 --- a/packages/extension-base/src/page/Injected.ts +++ b/packages/extension-base/src/page/Injected.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import PostMessageProvider from './PostMessageProvider'; import { Injected } from '@polkadot/extension-inject/types'; diff --git a/packages/extension-base/src/page/Metadata.ts b/packages/extension-base/src/page/Metadata.ts index b8ac91d2..58922144 100644 --- a/packages/extension-base/src/page/Metadata.ts +++ b/packages/extension-base/src/page/Metadata.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { InjectedMetadata, InjectedMetadataKnown, MetadataDef } from '@polkadot/extension-inject/types'; import { SendRequest } from './types'; diff --git a/packages/extension-base/src/page/PostMessageProvider.ts b/packages/extension-base/src/page/PostMessageProvider.ts index 4607ac23..bbbdbea3 100644 --- a/packages/extension-base/src/page/PostMessageProvider.ts +++ b/packages/extension-base/src/page/PostMessageProvider.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '@polkadot/rpc-provider/types'; import { AnyFunction } from '@polkadot/types/types'; diff --git a/packages/extension-base/src/page/Signer.ts b/packages/extension-base/src/page/Signer.ts index 20b07ef1..5dad7f9d 100644 --- a/packages/extension-base/src/page/Signer.ts +++ b/packages/extension-base/src/page/Signer.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer as SignerInterface, SignerResult } from '@polkadot/api/types'; import { SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/types/types'; diff --git a/packages/extension-base/src/page/index.ts b/packages/extension-base/src/page/index.ts index f9be518c..cd026f47 100644 --- a/packages/extension-base/src/page/index.ts +++ b/packages/extension-base/src/page/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ResponseTypes, TransportRequestMessage, TransportResponseMessage, MessageTypes, RequestTypes, MessageTypesWithNullRequest, SubscriptionMessageTypes, MessageTypesWithNoSubscriptions, MessageTypesWithSubscriptions } from '../background/types'; diff --git a/packages/extension-base/src/page/types.ts b/packages/extension-base/src/page/types.ts index bf285ab9..62b0247f 100644 --- a/packages/extension-base/src/page/types.ts +++ b/packages/extension-base/src/page/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RequestTypes, ResponseTypes, SubscriptionMessageTypes, MessageTypesWithNullRequest, MessageTypesWithNoSubscriptions, MessageTypesWithSubscriptions } from '../background/types'; diff --git a/packages/extension-base/src/stores/Accounts.ts b/packages/extension-base/src/stores/Accounts.ts index 2270bc0b..80d24c91 100644 --- a/packages/extension-base/src/stores/Accounts.ts +++ b/packages/extension-base/src/stores/Accounts.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringStore, KeyringJson } from '@polkadot/ui-keyring/types'; diff --git a/packages/extension-base/src/stores/Base.ts b/packages/extension-base/src/stores/Base.ts index 1ba76e4c..e45d8c3a 100644 --- a/packages/extension-base/src/stores/Base.ts +++ b/packages/extension-base/src/stores/Base.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import chrome from '@polkadot/extension-inject/chrome'; diff --git a/packages/extension-base/src/stores/Metadata.ts b/packages/extension-base/src/stores/Metadata.ts index a485dc18..bb0492f4 100644 --- a/packages/extension-base/src/stores/Metadata.ts +++ b/packages/extension-base/src/stores/Metadata.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@polkadot/extension-inject/types'; diff --git a/packages/extension-base/src/stores/index.ts b/packages/extension-base/src/stores/index.ts index 15d737b2..d24acbea 100644 --- a/packages/extension-base/src/stores/index.ts +++ b/packages/extension-base/src/stores/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-base authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as AccountsStore } from './Accounts'; export { default as MetadataStore } from './Metadata'; diff --git a/packages/extension-base/src/types.ts b/packages/extension-base/src/types.ts index bb1f7544..7c8a9da8 100644 --- a/packages/extension-base/src/types.ts +++ b/packages/extension-base/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export interface Message extends MessageEvent { data: { diff --git a/packages/extension-chains/src/chains.ts b/packages/extension-chains/src/chains.ts index b5860f4c..fb119a68 100644 --- a/packages/extension-chains/src/chains.ts +++ b/packages/extension-chains/src/chains.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-chains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDefBase } from '@polkadot/extension-inject/types'; diff --git a/packages/extension-chains/src/genesisHashes.ts b/packages/extension-chains/src/genesisHashes.ts index 22b62a03..6e0f06f2 100644 --- a/packages/extension-chains/src/genesisHashes.ts +++ b/packages/extension-chains/src/genesisHashes.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-chains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import chains from './chains'; diff --git a/packages/extension-chains/src/index.ts b/packages/extension-chains/src/index.ts index 472b1fe8..ce62ab25 100644 --- a/packages/extension-chains/src/index.ts +++ b/packages/extension-chains/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-chains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@polkadot/extension-inject/types'; import { Chain } from './types'; diff --git a/packages/extension-chains/src/types.ts b/packages/extension-chains/src/types.ts index 85cecd5e..4ec77658 100644 --- a/packages/extension-chains/src/types.ts +++ b/packages/extension-chains/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-chains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@polkadot/extension-inject/types'; import { Registry } from '@polkadot/types/types'; diff --git a/packages/extension-dapp/src/compat/index.ts b/packages/extension-dapp/src/compat/index.ts index 1dfc8138..3ea866aa 100644 --- a/packages/extension-dapp/src/compat/index.ts +++ b/packages/extension-dapp/src/compat/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-dapp authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import singleSource from './singleSource'; diff --git a/packages/extension-dapp/src/compat/singleSource.ts b/packages/extension-dapp/src/compat/singleSource.ts index e6fa76e8..c0ac3274 100644 --- a/packages/extension-dapp/src/compat/singleSource.ts +++ b/packages/extension-dapp/src/compat/singleSource.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-dapp authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer } from '@polkadot/api/types'; import { Injected, InjectedAccount, InjectedWindow } from '@polkadot/extension-inject/types'; diff --git a/packages/extension-dapp/src/index.ts b/packages/extension-dapp/src/index.ts index ad5e255f..b86345e6 100644 --- a/packages/extension-dapp/src/index.ts +++ b/packages/extension-dapp/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-dapp authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Injected, InjectedAccount, InjectedAccountWithMeta, InjectedExtension, InjectedExtensionInfo, InjectedProviderWithMeta, InjectedWindow, ProviderList, Unsubcall, Web3AccountsOptions } from '@polkadot/extension-inject/types'; import { decodeAddress, encodeAddress } from '@polkadot/util-crypto'; diff --git a/packages/extension-dapp/src/util.ts b/packages/extension-dapp/src/util.ts index 0e5f4882..540f26c0 100644 --- a/packages/extension-dapp/src/util.ts +++ b/packages/extension-dapp/src/util.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-dapp authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export function documentReadyPromise (creator: () => Promise): Promise { return new Promise((resolve): void => { diff --git a/packages/extension-inject/src/chrome.ts b/packages/extension-inject/src/chrome.ts index 7f8467c7..b367cdc5 100644 --- a/packages/extension-inject/src/chrome.ts +++ b/packages/extension-inject/src/chrome.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-inject authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const extension = typeof chrome !== 'undefined' ? chrome diff --git a/packages/extension-inject/src/index.ts b/packages/extension-inject/src/index.ts index 2442d54e..93301c83 100644 --- a/packages/extension-inject/src/index.ts +++ b/packages/extension-inject/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-inject authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Injected, InjectedWindow, InjectOptions } from './types'; diff --git a/packages/extension-inject/src/types.ts b/packages/extension-inject/src/types.ts index 10a1a17a..4038f466 100644 --- a/packages/extension-inject/src/types.ts +++ b/packages/extension-inject/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-inject authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer as InjectedSigner } from '@polkadot/api/types'; import { ProviderInterface } from '@polkadot/rpc-provider/types'; diff --git a/packages/extension-ui/package.json b/packages/extension-ui/package.json index d69dca02..c10fc7ec 100644 --- a/packages/extension-ui/package.json +++ b/packages/extension-ui/package.json @@ -9,8 +9,8 @@ "@polkadot/extension-base": "0.35.0-beta.1", "@polkadot/extension-inject": "0.35.0-beta.1", "@polkadot/keyring": "^3.4.1", - "@polkadot/react-identicon": "^0.59.0-beta.7", - "@polkadot/react-qr": "^0.59.0-beta.7", + "@polkadot/react-identicon": "^0.59.0-beta.8", + "@polkadot/react-qr": "^0.59.0-beta.8", "@polkadot/util": "^3.4.1", "@polkadot/util-crypto": "^3.4.1", "i18next": "^19.7.0", diff --git a/packages/extension-ui/src/Popup/Accounts/Account.test.tsx b/packages/extension-ui/src/Popup/Accounts/Account.test.tsx index f6931077..763cad9f 100644 --- a/packages/extension-ui/src/Popup/Accounts/Account.test.tsx +++ b/packages/extension-ui/src/Popup/Accounts/Account.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/Popup/Accounts/Account.tsx b/packages/extension-ui/src/Popup/Accounts/Account.tsx index 8953e38f..446da57f 100644 --- a/packages/extension-ui/src/Popup/Accounts/Account.tsx +++ b/packages/extension-ui/src/Popup/Accounts/Account.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountJson } from '@polkadot/extension-base/background/types'; diff --git a/packages/extension-ui/src/Popup/Accounts/AccountsTree.tsx b/packages/extension-ui/src/Popup/Accounts/AccountsTree.tsx index 4dcad477..c794bc2f 100644 --- a/packages/extension-ui/src/Popup/Accounts/AccountsTree.tsx +++ b/packages/extension-ui/src/Popup/Accounts/AccountsTree.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { AccountWithChildren } from '@polkadot/extension-base/background/types'; diff --git a/packages/extension-ui/src/Popup/Accounts/AddAccount.tsx b/packages/extension-ui/src/Popup/Accounts/AddAccount.tsx index 742543de..da501184 100644 --- a/packages/extension-ui/src/Popup/Accounts/AddAccount.tsx +++ b/packages/extension-ui/src/Popup/Accounts/AddAccount.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/Accounts/AddAccountImage.tsx b/packages/extension-ui/src/Popup/Accounts/AddAccountImage.tsx index fe8725b7..ac977e1a 100644 --- a/packages/extension-ui/src/Popup/Accounts/AddAccountImage.tsx +++ b/packages/extension-ui/src/Popup/Accounts/AddAccountImage.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // We _could_ reformat, but just keep it as-is, since this is actually // externally generated and not really user-editable diff --git a/packages/extension-ui/src/Popup/Accounts/index.tsx b/packages/extension-ui/src/Popup/Accounts/index.tsx index e3cc2772..7cd16a64 100644 --- a/packages/extension-ui/src/Popup/Accounts/index.tsx +++ b/packages/extension-ui/src/Popup/Accounts/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useContext } from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/Popup/Authorize/Authorize.test.tsx b/packages/extension-ui/src/Popup/Authorize/Authorize.test.tsx index d7dff0cb..bb342526 100644 --- a/packages/extension-ui/src/Popup/Authorize/Authorize.test.tsx +++ b/packages/extension-ui/src/Popup/Authorize/Authorize.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/Popup/Authorize/Request.tsx b/packages/extension-ui/src/Popup/Authorize/Request.tsx index 559ce828..20ab44a8 100644 --- a/packages/extension-ui/src/Popup/Authorize/Request.tsx +++ b/packages/extension-ui/src/Popup/Authorize/Request.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RequestAuthorizeTab } from '@polkadot/extension-base/background/types'; import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/Authorize/index.tsx b/packages/extension-ui/src/Popup/Authorize/index.tsx index d3868683..d8219142 100644 --- a/packages/extension-ui/src/Popup/Authorize/index.tsx +++ b/packages/extension-ui/src/Popup/Authorize/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useContext } from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/Popup/CreateAccount/AccountName.tsx b/packages/extension-ui/src/Popup/CreateAccount/AccountName.tsx index 64283ec6..5c0a4aa7 100644 --- a/packages/extension-ui/src/Popup/CreateAccount/AccountName.tsx +++ b/packages/extension-ui/src/Popup/CreateAccount/AccountName.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; diff --git a/packages/extension-ui/src/Popup/CreateAccount/CreateAccount.test.tsx b/packages/extension-ui/src/Popup/CreateAccount/CreateAccount.test.tsx index 6c5b47cb..48442ac9 100644 --- a/packages/extension-ui/src/Popup/CreateAccount/CreateAccount.test.tsx +++ b/packages/extension-ui/src/Popup/CreateAccount/CreateAccount.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/Popup/CreateAccount/CreationStep.tsx b/packages/extension-ui/src/Popup/CreateAccount/CreationStep.tsx index 19fe5328..5bd220c5 100644 --- a/packages/extension-ui/src/Popup/CreateAccount/CreationStep.tsx +++ b/packages/extension-ui/src/Popup/CreateAccount/CreationStep.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/CreateAccount/Mnemonic.tsx b/packages/extension-ui/src/Popup/CreateAccount/Mnemonic.tsx index 9e43c08c..2aa667bf 100644 --- a/packages/extension-ui/src/Popup/CreateAccount/Mnemonic.tsx +++ b/packages/extension-ui/src/Popup/CreateAccount/Mnemonic.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; diff --git a/packages/extension-ui/src/Popup/CreateAccount/index.tsx b/packages/extension-ui/src/Popup/CreateAccount/index.tsx index c51a4bec..d6f1b8ac 100644 --- a/packages/extension-ui/src/Popup/CreateAccount/index.tsx +++ b/packages/extension-ui/src/Popup/CreateAccount/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useContext, useEffect, useState } from 'react'; diff --git a/packages/extension-ui/src/Popup/Derive/AddressDropdown.tsx b/packages/extension-ui/src/Popup/Derive/AddressDropdown.tsx index 31d5527a..91ddabd7 100644 --- a/packages/extension-ui/src/Popup/Derive/AddressDropdown.tsx +++ b/packages/extension-ui/src/Popup/Derive/AddressDropdown.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/Derive/DerivationPath.tsx b/packages/extension-ui/src/Popup/Derive/DerivationPath.tsx index 40388ee9..6ffb0ab3 100644 --- a/packages/extension-ui/src/Popup/Derive/DerivationPath.tsx +++ b/packages/extension-ui/src/Popup/Derive/DerivationPath.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/Derive/Derive.test.tsx b/packages/extension-ui/src/Popup/Derive/Derive.test.tsx index ebfbc6fe..6eb240ef 100644 --- a/packages/extension-ui/src/Popup/Derive/Derive.test.tsx +++ b/packages/extension-ui/src/Popup/Derive/Derive.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/Popup/Derive/SelectParent.tsx b/packages/extension-ui/src/Popup/Derive/SelectParent.tsx index 532f54bb..9074915b 100644 --- a/packages/extension-ui/src/Popup/Derive/SelectParent.tsx +++ b/packages/extension-ui/src/Popup/Derive/SelectParent.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/Popup/Derive/index.tsx b/packages/extension-ui/src/Popup/Derive/index.tsx index eb8bfa17..70237643 100644 --- a/packages/extension-ui/src/Popup/Derive/index.tsx +++ b/packages/extension-ui/src/Popup/Derive/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useContext, useMemo, useState } from 'react'; import { useParams } from 'react-router'; diff --git a/packages/extension-ui/src/Popup/Export.test.tsx b/packages/extension-ui/src/Popup/Export.test.tsx index efc90b93..80b01ba1 100644 --- a/packages/extension-ui/src/Popup/Export.test.tsx +++ b/packages/extension-ui/src/Popup/Export.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/Popup/Export.tsx b/packages/extension-ui/src/Popup/Export.tsx index 52ff470e..fe7dc2b0 100644 --- a/packages/extension-ui/src/Popup/Export.tsx +++ b/packages/extension-ui/src/Popup/Export.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useContext, useState } from 'react'; import { RouteComponentProps, withRouter } from 'react-router'; diff --git a/packages/extension-ui/src/Popup/Forget.tsx b/packages/extension-ui/src/Popup/Forget.tsx index 6213040c..4b662a06 100644 --- a/packages/extension-ui/src/Popup/Forget.tsx +++ b/packages/extension-ui/src/Popup/Forget.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useContext } from 'react'; import { RouteComponentProps, withRouter } from 'react-router'; diff --git a/packages/extension-ui/src/Popup/ImportQr.tsx b/packages/extension-ui/src/Popup/ImportQr.tsx index ae653c8d..2807a1fd 100644 --- a/packages/extension-ui/src/Popup/ImportQr.tsx +++ b/packages/extension-ui/src/Popup/ImportQr.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useContext, useState } from 'react'; import { QrScanAddress } from '@polkadot/react-qr'; diff --git a/packages/extension-ui/src/Popup/ImportSeed.tsx b/packages/extension-ui/src/Popup/ImportSeed.tsx index 77b1b648..e58f616b 100644 --- a/packages/extension-ui/src/Popup/ImportSeed.tsx +++ b/packages/extension-ui/src/Popup/ImportSeed.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useContext, useEffect, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/Popup/Metadata/Request.tsx b/packages/extension-ui/src/Popup/Metadata/Request.tsx index bdaf1673..6530d78f 100644 --- a/packages/extension-ui/src/Popup/Metadata/Request.tsx +++ b/packages/extension-ui/src/Popup/Metadata/Request.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@polkadot/extension-inject/types'; import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/Metadata/index.tsx b/packages/extension-ui/src/Popup/Metadata/index.tsx index bf97c552..733a9672 100644 --- a/packages/extension-ui/src/Popup/Metadata/index.tsx +++ b/packages/extension-ui/src/Popup/Metadata/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useContext } from 'react'; diff --git a/packages/extension-ui/src/Popup/RestoreJson.tsx b/packages/extension-ui/src/Popup/RestoreJson.tsx index 4e51d3d2..d814e767 100644 --- a/packages/extension-ui/src/Popup/RestoreJson.tsx +++ b/packages/extension-ui/src/Popup/RestoreJson.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair$Json } from '@polkadot/keyring/types'; diff --git a/packages/extension-ui/src/Popup/Signing/Bytes.tsx b/packages/extension-ui/src/Popup/Signing/Bytes.tsx index d8a33a6e..663e9697 100644 --- a/packages/extension-ui/src/Popup/Signing/Bytes.tsx +++ b/packages/extension-ui/src/Popup/Signing/Bytes.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import styled from 'styled-components'; import React from 'react'; diff --git a/packages/extension-ui/src/Popup/Signing/Extrinsic.tsx b/packages/extension-ui/src/Popup/Signing/Extrinsic.tsx index 5cf7af10..a7ffd9b9 100644 --- a/packages/extension-ui/src/Popup/Signing/Extrinsic.tsx +++ b/packages/extension-ui/src/Popup/Signing/Extrinsic.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Chain } from '@polkadot/extension-chains/types'; import { Call, ExtrinsicEra, ExtrinsicPayload } from '@polkadot/types/interfaces'; diff --git a/packages/extension-ui/src/Popup/Signing/Qr.tsx b/packages/extension-ui/src/Popup/Signing/Qr.tsx index 684e2197..08eb1121 100644 --- a/packages/extension-ui/src/Popup/Signing/Qr.tsx +++ b/packages/extension-ui/src/Popup/Signing/Qr.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ExtrinsicPayload } from '@polkadot/types/interfaces'; import { SignerPayloadJSON } from '@polkadot/types/types'; diff --git a/packages/extension-ui/src/Popup/Signing/Request.tsx b/packages/extension-ui/src/Popup/Signing/Request.tsx index 510af66a..569935f5 100644 --- a/packages/extension-ui/src/Popup/Signing/Request.tsx +++ b/packages/extension-ui/src/Popup/Signing/Request.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ExtrinsicPayload } from '@polkadot/types/interfaces'; import { AccountJson, RequestSign } from '@polkadot/extension-base/background/types'; diff --git a/packages/extension-ui/src/Popup/Signing/Signing.test.tsx b/packages/extension-ui/src/Popup/Signing/Signing.test.tsx index 4f1d588a..f65189cf 100644 --- a/packages/extension-ui/src/Popup/Signing/Signing.test.tsx +++ b/packages/extension-ui/src/Popup/Signing/Signing.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/Popup/Signing/TransactionIndex.tsx b/packages/extension-ui/src/Popup/Signing/TransactionIndex.tsx index b4045c85..e6814847 100644 --- a/packages/extension-ui/src/Popup/Signing/TransactionIndex.tsx +++ b/packages/extension-ui/src/Popup/Signing/TransactionIndex.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/Popup/Signing/Unlock.tsx b/packages/extension-ui/src/Popup/Signing/Unlock.tsx index 27dc8a96..4a197937 100644 --- a/packages/extension-ui/src/Popup/Signing/Unlock.tsx +++ b/packages/extension-ui/src/Popup/Signing/Unlock.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useEffect, useState } from 'react'; diff --git a/packages/extension-ui/src/Popup/Signing/index.tsx b/packages/extension-ui/src/Popup/Signing/index.tsx index 40d29803..aa56ac2d 100644 --- a/packages/extension-ui/src/Popup/Signing/index.tsx +++ b/packages/extension-ui/src/Popup/Signing/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SignerPayloadJSON } from '@polkadot/types/types'; diff --git a/packages/extension-ui/src/Popup/Welcome.tsx b/packages/extension-ui/src/Popup/Welcome.tsx index e29cef5e..99d1fee3 100644 --- a/packages/extension-ui/src/Popup/Welcome.tsx +++ b/packages/extension-ui/src/Popup/Welcome.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps as Props } from '../types'; diff --git a/packages/extension-ui/src/Popup/index.tsx b/packages/extension-ui/src/Popup/index.tsx index 1c6e8d1d..3b66230c 100644 --- a/packages/extension-ui/src/Popup/index.tsx +++ b/packages/extension-ui/src/Popup/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountJson, AccountsContext, AuthorizeRequest, MetadataRequest, SigningRequest } from '@polkadot/extension-base/background/types'; import { SettingsStruct } from '@polkadot/ui-settings/types'; diff --git a/packages/extension-ui/src/assets/images.d.ts b/packages/extension-ui/src/assets/images.d.ts index 28a9521b..79693407 100644 --- a/packages/extension-ui/src/assets/images.d.ts +++ b/packages/extension-ui/src/assets/images.d.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 declare module '*.svg' { const url: string; diff --git a/packages/extension-ui/src/components/ActionBar.tsx b/packages/extension-ui/src/components/ActionBar.tsx index 74e2b2c1..98d9713c 100644 --- a/packages/extension-ui/src/components/ActionBar.tsx +++ b/packages/extension-ui/src/components/ActionBar.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/components/ActionText.tsx b/packages/extension-ui/src/components/ActionText.tsx index 73f2e590..bccb35e0 100644 --- a/packages/extension-ui/src/components/ActionText.tsx +++ b/packages/extension-ui/src/components/ActionText.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Address.tsx b/packages/extension-ui/src/components/Address.tsx index dc87988f..fab2ac08 100644 --- a/packages/extension-ui/src/components/Address.tsx +++ b/packages/extension-ui/src/components/Address.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountJson, AccountWithChildren } from '@polkadot/extension-base/background/types'; import { Chain } from '@polkadot/extension-chains/types'; diff --git a/packages/extension-ui/src/components/BackButton.tsx b/packages/extension-ui/src/components/BackButton.tsx index b66264a5..4a98d1ce 100644 --- a/packages/extension-ui/src/components/BackButton.tsx +++ b/packages/extension-ui/src/components/BackButton.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Box.tsx b/packages/extension-ui/src/components/Box.tsx index 0b5f2644..971362df 100644 --- a/packages/extension-ui/src/components/Box.tsx +++ b/packages/extension-ui/src/components/Box.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Button.tsx b/packages/extension-ui/src/components/Button.tsx index 2c1cae52..541cab57 100644 --- a/packages/extension-ui/src/components/Button.tsx +++ b/packages/extension-ui/src/components/Button.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/ButtonArea.tsx b/packages/extension-ui/src/components/ButtonArea.tsx index 47a7488a..ef39931d 100644 --- a/packages/extension-ui/src/components/ButtonArea.tsx +++ b/packages/extension-ui/src/components/ButtonArea.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/ButtonWithSubtitle.tsx b/packages/extension-ui/src/components/ButtonWithSubtitle.tsx index 18f356db..7adee1e7 100644 --- a/packages/extension-ui/src/components/ButtonWithSubtitle.tsx +++ b/packages/extension-ui/src/components/ButtonWithSubtitle.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { Button } from '.'; diff --git a/packages/extension-ui/src/components/Checkbox.tsx b/packages/extension-ui/src/components/Checkbox.tsx index 8c52a365..69c9ea05 100644 --- a/packages/extension-ui/src/components/Checkbox.tsx +++ b/packages/extension-ui/src/components/Checkbox.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Dropdown.tsx b/packages/extension-ui/src/components/Dropdown.tsx index e2aaec75..7c0363da 100644 --- a/packages/extension-ui/src/components/Dropdown.tsx +++ b/packages/extension-ui/src/components/Dropdown.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Fonts.ts b/packages/extension-ui/src/components/Fonts.ts index 1e68ce15..91862dc7 100644 --- a/packages/extension-ui/src/components/Fonts.ts +++ b/packages/extension-ui/src/components/Fonts.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { createGlobalStyle } from 'styled-components'; diff --git a/packages/extension-ui/src/components/Icon.tsx b/packages/extension-ui/src/components/Icon.tsx index 95f19657..30247350 100644 --- a/packages/extension-ui/src/components/Icon.tsx +++ b/packages/extension-ui/src/components/Icon.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/components/Identicon.tsx b/packages/extension-ui/src/components/Identicon.tsx index e5d12245..c1b16d61 100644 --- a/packages/extension-ui/src/components/Identicon.tsx +++ b/packages/extension-ui/src/components/Identicon.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/InputFileWithLabel.tsx b/packages/extension-ui/src/components/InputFileWithLabel.tsx index 9084c243..8585a29c 100644 --- a/packages/extension-ui/src/components/InputFileWithLabel.tsx +++ b/packages/extension-ui/src/components/InputFileWithLabel.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/InputWithLabel.tsx b/packages/extension-ui/src/components/InputWithLabel.tsx index 9e4418f1..dbf08710 100644 --- a/packages/extension-ui/src/components/InputWithLabel.tsx +++ b/packages/extension-ui/src/components/InputWithLabel.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/components/Label.tsx b/packages/extension-ui/src/components/Label.tsx index 43333f91..3d364422 100644 --- a/packages/extension-ui/src/components/Label.tsx +++ b/packages/extension-ui/src/components/Label.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Link.tsx b/packages/extension-ui/src/components/Link.tsx index 2997eea1..a64b6525 100644 --- a/packages/extension-ui/src/components/Link.tsx +++ b/packages/extension-ui/src/components/Link.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/List.tsx b/packages/extension-ui/src/components/List.tsx index 3ca7d271..c0c732b2 100644 --- a/packages/extension-ui/src/components/List.tsx +++ b/packages/extension-ui/src/components/List.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Loading.tsx b/packages/extension-ui/src/components/Loading.tsx index 2ad09c39..09a8be64 100644 --- a/packages/extension-ui/src/components/Loading.tsx +++ b/packages/extension-ui/src/components/Loading.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/extension-ui/src/components/Menu.tsx b/packages/extension-ui/src/components/Menu.tsx index c0067e9d..b1d3ac83 100644 --- a/packages/extension-ui/src/components/Menu.tsx +++ b/packages/extension-ui/src/components/Menu.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/MenuDivider.tsx b/packages/extension-ui/src/components/MenuDivider.tsx index 31f5ab54..b8d4611c 100644 --- a/packages/extension-ui/src/components/MenuDivider.tsx +++ b/packages/extension-ui/src/components/MenuDivider.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/MenuItem.tsx b/packages/extension-ui/src/components/MenuItem.tsx index 0991f067..7a3ac710 100644 --- a/packages/extension-ui/src/components/MenuItem.tsx +++ b/packages/extension-ui/src/components/MenuItem.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/extension-ui/src/components/MnemonicSeed.tsx b/packages/extension-ui/src/components/MnemonicSeed.tsx index a8b1a6d6..ec7385c5 100644 --- a/packages/extension-ui/src/components/MnemonicSeed.tsx +++ b/packages/extension-ui/src/components/MnemonicSeed.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/NextStepButton.tsx b/packages/extension-ui/src/components/NextStepButton.tsx index a4e08832..83bef2f9 100644 --- a/packages/extension-ui/src/components/NextStepButton.tsx +++ b/packages/extension-ui/src/components/NextStepButton.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Spinner.tsx b/packages/extension-ui/src/components/Spinner.tsx index f8290be5..68321d68 100644 --- a/packages/extension-ui/src/components/Spinner.tsx +++ b/packages/extension-ui/src/components/Spinner.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Svg.tsx b/packages/extension-ui/src/components/Svg.tsx index 73a81003..27f0b957 100644 --- a/packages/extension-ui/src/components/Svg.tsx +++ b/packages/extension-ui/src/components/Svg.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Switch.tsx b/packages/extension-ui/src/components/Switch.tsx index 72bd6f54..fae74dcf 100644 --- a/packages/extension-ui/src/components/Switch.tsx +++ b/packages/extension-ui/src/components/Switch.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Table.tsx b/packages/extension-ui/src/components/Table.tsx index 268c34c2..2d0c62ae 100644 --- a/packages/extension-ui/src/components/Table.tsx +++ b/packages/extension-ui/src/components/Table.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/TextAreaWithLabel.tsx b/packages/extension-ui/src/components/TextAreaWithLabel.tsx index 97f59a93..a2452732 100644 --- a/packages/extension-ui/src/components/TextAreaWithLabel.tsx +++ b/packages/extension-ui/src/components/TextAreaWithLabel.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; diff --git a/packages/extension-ui/src/components/TextInputs.ts b/packages/extension-ui/src/components/TextInputs.ts index 669f53e4..8f5f9a2f 100644 --- a/packages/extension-ui/src/components/TextInputs.ts +++ b/packages/extension-ui/src/components/TextInputs.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Title.ts b/packages/extension-ui/src/components/Title.ts index 7017abff..ed5b9f5e 100644 --- a/packages/extension-ui/src/components/Title.ts +++ b/packages/extension-ui/src/components/Title.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Toast/Toast.tsx b/packages/extension-ui/src/components/Toast/Toast.tsx index e8302669..f9c48bce 100644 --- a/packages/extension-ui/src/components/Toast/Toast.tsx +++ b/packages/extension-ui/src/components/Toast/Toast.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../../types'; diff --git a/packages/extension-ui/src/components/Toast/ToastProvider.tsx b/packages/extension-ui/src/components/Toast/ToastProvider.tsx index 7601dd25..6cc76074 100644 --- a/packages/extension-ui/src/components/Toast/ToastProvider.tsx +++ b/packages/extension-ui/src/components/Toast/ToastProvider.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; diff --git a/packages/extension-ui/src/components/ValidatedInput.tsx b/packages/extension-ui/src/components/ValidatedInput.tsx index 32a0d8e9..c0374edc 100644 --- a/packages/extension-ui/src/components/ValidatedInput.tsx +++ b/packages/extension-ui/src/components/ValidatedInput.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/VerticalSpace.ts b/packages/extension-ui/src/components/VerticalSpace.ts index 871d9350..df1a1837 100644 --- a/packages/extension-ui/src/components/VerticalSpace.ts +++ b/packages/extension-ui/src/components/VerticalSpace.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import styled from 'styled-components'; diff --git a/packages/extension-ui/src/components/View.tsx b/packages/extension-ui/src/components/View.tsx index 20b544bd..15807200 100644 --- a/packages/extension-ui/src/components/View.tsx +++ b/packages/extension-ui/src/components/View.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/Warning.tsx b/packages/extension-ui/src/components/Warning.tsx index cc09c043..68cc416b 100644 --- a/packages/extension-ui/src/components/Warning.tsx +++ b/packages/extension-ui/src/components/Warning.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/components/contexts.tsx b/packages/extension-ui/src/components/contexts.tsx index 1cd03638..8d0cf9a2 100644 --- a/packages/extension-ui/src/components/contexts.tsx +++ b/packages/extension-ui/src/components/contexts.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountsContext, AuthorizeRequest, MetadataRequest, SigningRequest } from '@polkadot/extension-base/background/types'; import { SettingsStruct } from '@polkadot/ui-settings/types'; diff --git a/packages/extension-ui/src/components/index.ts b/packages/extension-ui/src/components/index.ts index dd022bae..ef862f67 100644 --- a/packages/extension-ui/src/components/index.ts +++ b/packages/extension-ui/src/components/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as ActionBar } from './ActionBar'; export { default as ActionText } from './ActionText'; diff --git a/packages/extension-ui/src/components/themes.ts b/packages/extension-ui/src/components/themes.ts index 92acd89c..432a71c1 100644 --- a/packages/extension-ui/src/components/themes.ts +++ b/packages/extension-ui/src/components/themes.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const darkTheme = { accountBackground: '#1A1B20', diff --git a/packages/extension-ui/src/components/types.ts b/packages/extension-ui/src/components/types.ts index acf5a15d..35b7f31c 100644 --- a/packages/extension-ui/src/components/types.ts +++ b/packages/extension-ui/src/components/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export type OmitProps = Pick>; diff --git a/packages/extension-ui/src/components/unicode.tsx b/packages/extension-ui/src/components/unicode.tsx index 7759ae7a..77b9ae1b 100644 --- a/packages/extension-ui/src/components/unicode.tsx +++ b/packages/extension-ui/src/components/unicode.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // via http://www.amp-what.com/unicode/search/ (in hex) diff --git a/packages/extension-ui/src/createView.tsx b/packages/extension-ui/src/createView.tsx index e69671a5..7dc452f7 100644 --- a/packages/extension-ui/src/createView.tsx +++ b/packages/extension-ui/src/createView.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { Suspense } from 'react'; import ReactDOM from 'react-dom'; diff --git a/packages/extension-ui/src/hooks/useMetadata.ts b/packages/extension-ui/src/hooks/useMetadata.ts index 76b2eca6..9f9e5163 100644 --- a/packages/extension-ui/src/hooks/useMetadata.ts +++ b/packages/extension-ui/src/hooks/useMetadata.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Chain } from '@polkadot/extension-chains/types'; diff --git a/packages/extension-ui/src/hooks/useOutsideClick.ts b/packages/extension-ui/src/hooks/useOutsideClick.ts index 2440ade2..3b51377c 100644 --- a/packages/extension-ui/src/hooks/useOutsideClick.ts +++ b/packages/extension-ui/src/hooks/useOutsideClick.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useCallback, useEffect, RefObject } from 'react'; diff --git a/packages/extension-ui/src/hooks/useToast.tsx b/packages/extension-ui/src/hooks/useToast.tsx index d3424d95..1793c2a9 100644 --- a/packages/extension-ui/src/hooks/useToast.tsx +++ b/packages/extension-ui/src/hooks/useToast.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useContext } from 'react'; import { ToastContext } from '../components/contexts'; diff --git a/packages/extension-ui/src/hooks/useTranslation.ts b/packages/extension-ui/src/hooks/useTranslation.ts index cc1c0501..19911399 100644 --- a/packages/extension-ui/src/hooks/useTranslation.ts +++ b/packages/extension-ui/src/hooks/useTranslation.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation } from 'react-i18next'; diff --git a/packages/extension-ui/src/i18n.ts b/packages/extension-ui/src/i18n.ts index 41b36769..36b11eaa 100644 --- a/packages/extension-ui/src/i18n.ts +++ b/packages/extension-ui/src/i18n.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import i18n from 'i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; diff --git a/packages/extension-ui/src/index.ts b/packages/extension-ui/src/index.ts index 34a52bfe..85dd9f2e 100644 --- a/packages/extension-ui/src/index.ts +++ b/packages/extension-ui/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as createView } from './createView'; export { default as Popup } from './Popup'; diff --git a/packages/extension-ui/src/messaging.test.ts b/packages/extension-ui/src/messaging.test.ts index e30a9692..f7e51fa0 100644 --- a/packages/extension-ui/src/messaging.test.ts +++ b/packages/extension-ui/src/messaging.test.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/messaging.ts b/packages/extension-ui/src/messaging.ts index bfb9efee..b2052467 100644 --- a/packages/extension-ui/src/messaging.ts +++ b/packages/extension-ui/src/messaging.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Message } from '@polkadot/extension-base/types'; import { AccountJson, AuthorizeRequest, SigningRequest, RequestTypes, MessageTypes, ResponseTypes, SeedLengths, SubscriptionMessageTypes, MetadataRequest, MessageTypesWithNullRequest, MessageTypesWithNoSubscriptions, MessageTypesWithSubscriptions, ResponseDeriveValidate, ResponseJsonRestore } from '@polkadot/extension-base/background/types'; diff --git a/packages/extension-ui/src/partials/Back.tsx b/packages/extension-ui/src/partials/Back.tsx index d2319b94..7d7935fa 100644 --- a/packages/extension-ui/src/partials/Back.tsx +++ b/packages/extension-ui/src/partials/Back.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/partials/Header.test.tsx b/packages/extension-ui/src/partials/Header.test.tsx index 8f50038f..7b8b5d28 100644 --- a/packages/extension-ui/src/partials/Header.test.tsx +++ b/packages/extension-ui/src/partials/Header.test.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import '../../../../__mocks__/chrome'; diff --git a/packages/extension-ui/src/partials/Header.tsx b/packages/extension-ui/src/partials/Header.tsx index af54dabb..eb9013a3 100644 --- a/packages/extension-ui/src/partials/Header.tsx +++ b/packages/extension-ui/src/partials/Header.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/partials/HeaderWithSteps.tsx b/packages/extension-ui/src/partials/HeaderWithSteps.tsx index 6c7068a5..fd27d822 100644 --- a/packages/extension-ui/src/partials/HeaderWithSteps.tsx +++ b/packages/extension-ui/src/partials/HeaderWithSteps.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/partials/MenuAdd.tsx b/packages/extension-ui/src/partials/MenuAdd.tsx index 697cdefa..84a9943e 100644 --- a/packages/extension-ui/src/partials/MenuAdd.tsx +++ b/packages/extension-ui/src/partials/MenuAdd.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/partials/MenuSettings.tsx b/packages/extension-ui/src/partials/MenuSettings.tsx index 8afaa55b..d4d11f66 100644 --- a/packages/extension-ui/src/partials/MenuSettings.tsx +++ b/packages/extension-ui/src/partials/MenuSettings.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Theme, ThemeProps } from '../types'; diff --git a/packages/extension-ui/src/partials/Name.tsx b/packages/extension-ui/src/partials/Name.tsx index 80fa2af4..76779d91 100644 --- a/packages/extension-ui/src/partials/Name.tsx +++ b/packages/extension-ui/src/partials/Name.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useContext } from 'react'; diff --git a/packages/extension-ui/src/partials/Password.tsx b/packages/extension-ui/src/partials/Password.tsx index 50aa6bc1..9ad30d8e 100644 --- a/packages/extension-ui/src/partials/Password.tsx +++ b/packages/extension-ui/src/partials/Password.tsx @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useState, useEffect } from 'react'; diff --git a/packages/extension-ui/src/partials/index.ts b/packages/extension-ui/src/partials/index.ts index 5b4ad21b..274b3575 100644 --- a/packages/extension-ui/src/partials/index.ts +++ b/packages/extension-ui/src/partials/index.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as Back } from './Back'; export { default as Header } from './Header'; diff --git a/packages/extension-ui/src/testHelpers.ts b/packages/extension-ui/src/testHelpers.ts index 17d98c56..a66a106d 100644 --- a/packages/extension-ui/src/testHelpers.ts +++ b/packages/extension-ui/src/testHelpers.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export function flushAllPromises (): Promise { return new Promise((resolve) => setImmediate(resolve)); diff --git a/packages/extension-ui/src/types.ts b/packages/extension-ui/src/types.ts index fc32dac2..a8914254 100644 --- a/packages/extension-ui/src/types.ts +++ b/packages/extension-ui/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Theme } from './components/themes'; diff --git a/packages/extension-ui/src/util/buildHierarchy.test.ts b/packages/extension-ui/src/util/buildHierarchy.test.ts index e3979a65..094b868e 100644 --- a/packages/extension-ui/src/util/buildHierarchy.test.ts +++ b/packages/extension-ui/src/util/buildHierarchy.test.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountJson, AccountWithChildren } from '@polkadot/extension-base/background/types'; import { buildHierarchy } from './buildHierarchy'; diff --git a/packages/extension-ui/src/util/buildHierarchy.ts b/packages/extension-ui/src/util/buildHierarchy.ts index 285f737d..234ed6bb 100644 --- a/packages/extension-ui/src/util/buildHierarchy.ts +++ b/packages/extension-ui/src/util/buildHierarchy.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountJson, AccountWithChildren } from '@polkadot/extension-base/background/types'; diff --git a/packages/extension-ui/src/util/nextDerivationPath.test.ts b/packages/extension-ui/src/util/nextDerivationPath.test.ts index 87a1c158..20198f3a 100644 --- a/packages/extension-ui/src/util/nextDerivationPath.test.ts +++ b/packages/extension-ui/src/util/nextDerivationPath.test.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { nextDerivationPath } from './nextDerivationPath'; diff --git a/packages/extension-ui/src/util/nextDerivationPath.ts b/packages/extension-ui/src/util/nextDerivationPath.ts index 1d6820bb..fefd12e3 100644 --- a/packages/extension-ui/src/util/nextDerivationPath.ts +++ b/packages/extension-ui/src/util/nextDerivationPath.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountJson } from '@polkadot/extension-base/background/types'; diff --git a/packages/extension-ui/src/util/validators.ts b/packages/extension-ui/src/util/validators.ts index e4a57a95..4b1a4e12 100644 --- a/packages/extension-ui/src/util/validators.ts +++ b/packages/extension-ui/src/util/validators.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension-ui authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 interface InputError { errorDescription: string; diff --git a/packages/extension/src/background.ts b/packages/extension/src/background.ts index f22a2f43..b37f3ea0 100644 --- a/packages/extension/src/background.ts +++ b/packages/extension/src/background.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // Runs in the extension background, handling all keyring access diff --git a/packages/extension/src/content.ts b/packages/extension/src/content.ts index 7cb9aa30..5238a32b 100644 --- a/packages/extension/src/content.ts +++ b/packages/extension/src/content.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Message } from '@polkadot/extension-base/types'; diff --git a/packages/extension/src/extension.ts b/packages/extension/src/extension.ts index c5dc607b..4b6936bb 100644 --- a/packages/extension/src/extension.ts +++ b/packages/extension/src/extension.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { createView, Popup } from '@polkadot/extension-ui'; diff --git a/packages/extension/src/page.ts b/packages/extension/src/page.ts index 7b162a1a..77140c16 100644 --- a/packages/extension/src/page.ts +++ b/packages/extension/src/page.ts @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Message } from '@polkadot/extension-base/types'; diff --git a/packages/extension/webpack.config.js b/packages/extension/webpack.config.js index 23fdef36..d72e35c1 100644 --- a/packages/extension/webpack.config.js +++ b/packages/extension/webpack.config.js @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const path = require('path'); const webpack = require('webpack'); diff --git a/yarn.lock b/yarn.lock index f6df4c0d..d739cff9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2867,42 +2867,42 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-derive@npm:1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/api-derive@npm:1.34.0-beta.8" +"@polkadot/api-derive@npm:1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/api-derive@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api": 1.34.0-beta.8 - "@polkadot/rpc-core": 1.34.0-beta.8 - "@polkadot/rpc-provider": 1.34.0-beta.8 - "@polkadot/types": 1.34.0-beta.8 + "@polkadot/api": 1.34.0-beta.10 + "@polkadot/rpc-core": 1.34.0-beta.10 + "@polkadot/rpc-provider": 1.34.0-beta.10 + "@polkadot/types": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 bn.js: ^5.1.3 memoizee: ^0.4.14 rxjs: ^6.6.3 - checksum: f7ec801399f3a5bfacbcbcc3c8554d577b27282ac440613f935e6ccbbd81d04053765a9aef38b4eb57d7b2a236224910cbb960d3c2aa5d244d720077b51d56ac + checksum: e819b50e6915887c7173bd035d0682ddba46369555036f6895d0f94bcffc69a75353b0f5b907068b3130cd897c5516d1c72b6dd0995c93e577584b73df55205a languageName: node linkType: hard -"@polkadot/api@npm:^1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/api@npm:1.34.0-beta.8" +"@polkadot/api@npm:^1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/api@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api-derive": 1.34.0-beta.8 + "@polkadot/api-derive": 1.34.0-beta.10 "@polkadot/keyring": ^3.4.1 - "@polkadot/metadata": 1.34.0-beta.8 - "@polkadot/rpc-core": 1.34.0-beta.8 - "@polkadot/rpc-provider": 1.34.0-beta.8 - "@polkadot/types": 1.34.0-beta.8 - "@polkadot/types-known": 1.34.0-beta.8 + "@polkadot/metadata": 1.34.0-beta.10 + "@polkadot/rpc-core": 1.34.0-beta.10 + "@polkadot/rpc-provider": 1.34.0-beta.10 + "@polkadot/types": 1.34.0-beta.10 + "@polkadot/types-known": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 bn.js: ^5.1.3 eventemitter3: ^4.0.7 rxjs: ^6.6.3 - checksum: d22ce2cca87d99d2b31d60384404547355f444504f239d6d1f452c8dd51278b63794f2a7fc9bb45a34c5a93c7debfb7c953b6e13716ee59048e0756f22700b88 + checksum: 93b6bc3cc6b033a0842eaee6e1da63b501d063b9ad7241b6459a588d5d459f702b013880c4606f9a402ab0b907b0e8ceb08dc561a3bc17364fa5c1d7c1abf6a3 languageName: node linkType: hard @@ -3007,10 +3007,10 @@ __metadata: resolution: "@polkadot/extension-base@workspace:packages/extension-base" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api": ^1.34.0-beta.8 + "@polkadot/api": ^1.34.0-beta.10 "@polkadot/extension-inject": 0.35.0-beta.1 "@polkadot/keyring": ^3.4.1 - "@polkadot/ui-keyring": ^0.59.0-beta.7 + "@polkadot/ui-keyring": ^0.59.0-beta.8 languageName: unknown linkType: soft @@ -3057,8 +3057,8 @@ __metadata: "@polkadot/extension-base": 0.35.0-beta.1 "@polkadot/extension-inject": 0.35.0-beta.1 "@polkadot/keyring": ^3.4.1 - "@polkadot/react-identicon": ^0.59.0-beta.7 - "@polkadot/react-qr": ^0.59.0-beta.7 + "@polkadot/react-identicon": ^0.59.0-beta.8 + "@polkadot/react-qr": ^0.59.0-beta.8 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 "@types/bn.js": ^4.11.6 @@ -3118,27 +3118,27 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@npm:1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/metadata@npm:1.34.0-beta.8" +"@polkadot/metadata@npm:1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/metadata@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/types": 1.34.0-beta.8 - "@polkadot/types-known": 1.34.0-beta.8 + "@polkadot/types": 1.34.0-beta.10 + "@polkadot/types-known": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 bn.js: ^5.1.3 - checksum: 244e3bd0248a348e39c7ba340054ecd6e14d78eeffe4b507644a4509276f628f4690791bf4ddaa766d8522af26c048c92b1f2aa3943910a0ea3b5563af5538e6 + checksum: 09075b88e497ac7fc7d4ba6fd0655c9d0fc8932fccbec732d41fa74b0b9f637276c27b89d5bd38679ac94a3f832404cafd7865d21a5d9068c8b60826bc2b7fd6 languageName: node linkType: hard -"@polkadot/react-identicon@npm:^0.59.0-beta.7": - version: 0.59.0-beta.7 - resolution: "@polkadot/react-identicon@npm:0.59.0-beta.7" +"@polkadot/react-identicon@npm:^0.59.0-beta.8": + version: 0.59.0-beta.8 + resolution: "@polkadot/react-identicon@npm:0.59.0-beta.8" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/ui-settings": 0.59.0-beta.7 - "@polkadot/ui-shared": 0.59.0-beta.7 + "@polkadot/ui-settings": 0.59.0-beta.8 + "@polkadot/ui-shared": 0.59.0-beta.8 color: ^3.1.2 jdenticon: 2.2.0 react-copy-to-clipboard: ^5.0.2 @@ -3150,13 +3150,13 @@ __metadata: react-dom: "*" react-is: "*" styled-components: "*" - checksum: 3b4b5d8a407c39bd049bc485edf5b6458860820f6556d7677c1a083d94c587903f44bedd8bfd5462a1eb214a4873671a7dbc5eb4b88475d0b372fa4ec5d7786d + checksum: 527c2e8beea0ea175ba92bdf91e0e12914bc2372a495df7c4caeb44d533077a10a153e616ec848ec9c18e31eae36c1b5115a7c7abd0c4364c1dd6e3f1211e60f languageName: node linkType: hard -"@polkadot/react-qr@npm:^0.59.0-beta.7": - version: 0.59.0-beta.7 - resolution: "@polkadot/react-qr@npm:0.59.0-beta.7" +"@polkadot/react-qr@npm:^0.59.0-beta.8": + version: 0.59.0-beta.8 + resolution: "@polkadot/react-qr@npm:0.59.0-beta.8" dependencies: "@babel/runtime": ^7.11.2 qrcode-generator: ^1.4.4 @@ -3167,53 +3167,53 @@ __metadata: react: "*" react-dom: "*" styled-components: "*" - checksum: 957843c07c17a7bbdfea11b4a02fbb38e7762247575e10a6a700d9ae2ecdf38e394a20573d2de307598fef29112666a9baa6470bd915997ab99bd109e462f422 + checksum: 6a4beba3476c44c2e7a32f56b3dfa67e2f9ba6c0b53da668cb821fb269e75a0b2504dc4cb4c3e107052ebac1acaba58d34fdb1cd0ea0386757032115b1b1092f languageName: node linkType: hard -"@polkadot/rpc-core@npm:1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/rpc-core@npm:1.34.0-beta.8" +"@polkadot/rpc-core@npm:1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/rpc-core@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/metadata": 1.34.0-beta.8 - "@polkadot/rpc-provider": 1.34.0-beta.8 - "@polkadot/types": 1.34.0-beta.8 + "@polkadot/metadata": 1.34.0-beta.10 + "@polkadot/rpc-provider": 1.34.0-beta.10 + "@polkadot/types": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 memoizee: ^0.4.14 rxjs: ^6.6.3 - checksum: ab9fbb29899fa966727a2d7376fca8e629989c599354ccca2b59b8c2c191b67047f4c7863ba31030f7acac18273fdeeee035426ff8e01a01b4cfc7df52df5a12 + checksum: 604ccbf49097a1d331726b9421013dc239769c6e34e863b113c7496575c6464060d7b3bbca01a2f8d66d0a7c613f3f63bd3679a4e598bc981dce6fafbe269104 languageName: node linkType: hard -"@polkadot/rpc-provider@npm:1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/rpc-provider@npm:1.34.0-beta.8" +"@polkadot/rpc-provider@npm:1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/rpc-provider@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/metadata": 1.34.0-beta.8 - "@polkadot/types": 1.34.0-beta.8 + "@polkadot/metadata": 1.34.0-beta.10 + "@polkadot/types": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 + "@polkadot/x-fetch": ^0.3.2 + "@polkadot/x-ws": ^0.3.2 bn.js: ^5.1.3 - cross-fetch: ^3.0.6 eventemitter3: ^4.0.7 - websocket: ^1.0.32 - checksum: 2a200f89c909b3a885c513755013d2464691fe47aa6cc2cdc9b0525a07d19673623c895cd267b3cbd6df4e8c0ca771ed238beefaabc8ade876a4a7bd80a8bb11 + checksum: fda6679813d042b679157cb8501989ab5d01e6d7fb6f2072310bd8a9bfd16dcd01fd6933c2817bc12eff4aa2b6859d8e1ad8d107c452d347811201203f35c6f7 languageName: node linkType: hard -"@polkadot/typegen@npm:^1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/typegen@npm:1.34.0-beta.8" +"@polkadot/typegen@npm:^1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/typegen@npm:1.34.0-beta.10" dependencies: "@babel/core": ^7.11.6 "@babel/register": ^7.11.5 "@babel/runtime": ^7.11.2 - "@polkadot/api": 1.34.0-beta.8 - "@polkadot/metadata": 1.34.0-beta.8 - "@polkadot/rpc-provider": 1.34.0-beta.8 - "@polkadot/types": 1.34.0-beta.8 + "@polkadot/api": 1.34.0-beta.10 + "@polkadot/metadata": 1.34.0-beta.10 + "@polkadot/rpc-provider": 1.34.0-beta.10 + "@polkadot/types": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 handlebars: ^4.7.6 websocket: ^1.0.32 @@ -3224,41 +3224,41 @@ __metadata: polkadot-types-from-defs: scripts/polkadot-types-from-defs.js polkadot-types-internal-interfaces: scripts/polkadot-types-internal-interfaces.js polkadot-types-internal-metadata: scripts/polkadot-types-internal-metadata.js - checksum: ed01c204b08144107ff5eece639e4310b46292058f698ad543b48527d1058070d9f9e0292d7442bfc166d87070d433ba2dd51242b83e47d2bdbb06c85fc11479 + checksum: d9012b5969bade4630d03d1fcc7deb6808dd60e912a89bd3e8b2ee6bd5e6deff7520f03d2c94b4fc05b63da00c278fafd9258f1d22110215653535c0890a4f5f languageName: node linkType: hard -"@polkadot/types-known@npm:1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/types-known@npm:1.34.0-beta.8" +"@polkadot/types-known@npm:1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/types-known@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/types": 1.34.0-beta.8 + "@polkadot/types": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 bn.js: ^5.1.3 - checksum: b97c8096cf2aff6cb783e2b0846e30169d1218c9e2dd3c900ccdee37cfba1ce8a38e73f378b3a417b6d82e833a32ec9343d67c4c6ed087c445be9765febebd6d + checksum: 3d2783b8d2d7c12e2f1897640035f8e4f42ff83f8fc147d5406aa7678a06b96c14ba1e197d4432a1442c0e7c9da2836a504e777ecc83aa7f830a38d9a52665ee languageName: node linkType: hard -"@polkadot/types@npm:^1.34.0-beta.8": - version: 1.34.0-beta.8 - resolution: "@polkadot/types@npm:1.34.0-beta.8" +"@polkadot/types@npm:^1.34.0-beta.10": + version: 1.34.0-beta.10 + resolution: "@polkadot/types@npm:1.34.0-beta.10" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/metadata": 1.34.0-beta.8 + "@polkadot/metadata": 1.34.0-beta.10 "@polkadot/util": ^3.4.1 "@polkadot/util-crypto": ^3.4.1 "@types/bn.js": ^4.11.6 bn.js: ^5.1.3 memoizee: ^0.4.14 rxjs: ^6.6.3 - checksum: 1c1577ef0f0b8b35e53009c3d2d03afafae7d2ba5742e95557edc5045262db88b4a683459a396a89152fb834e8b533eb53fb35437675eb4894e7ec4ae0b84e20 + checksum: d8513376b5e2b503173198d96a3052381af384aae12ff5e988dd398f1647f383face8f37fd06f0f7e85d2208069d6d2b16e8d78ca9be24ccb99c8d8f322a2cd4 languageName: node linkType: hard -"@polkadot/ui-keyring@npm:^0.59.0-beta.7": - version: 0.59.0-beta.7 - resolution: "@polkadot/ui-keyring@npm:0.59.0-beta.7" +"@polkadot/ui-keyring@npm:^0.59.0-beta.8": + version: 0.59.0-beta.8 + resolution: "@polkadot/ui-keyring@npm:0.59.0-beta.8" dependencies: "@babel/runtime": ^7.11.2 "@ledgerhq/hw-transport-node-hid": ^5.23.2 @@ -3274,33 +3274,33 @@ __metadata: dependenciesMeta: "@ledgerhq/hw-transport-node-hid": optional: true - checksum: bc0b000329fd8a57ecd46a1292f3fbd712e17e1a9d5dfa1bc6a60dc33ac84b3936099508e2a7d90a0287812bf968c88f2c59c7b4b7c73ed423c605e04a926298 + checksum: a6803ba057c521d85c477e19207dda758205227beacf6aa14e046c4daa51d94a9afff7a45d9a0fba83733bc0327ea6a5d50083872197a3008e4620229fecdf3b languageName: node linkType: hard -"@polkadot/ui-settings@npm:0.59.0-beta.7": - version: 0.59.0-beta.7 - resolution: "@polkadot/ui-settings@npm:0.59.0-beta.7" +"@polkadot/ui-settings@npm:0.59.0-beta.8": + version: 0.59.0-beta.8 + resolution: "@polkadot/ui-settings@npm:0.59.0-beta.8" dependencies: "@babel/runtime": ^7.11.2 eventemitter3: ^4.0.7 store: ^2.0.12 peerDependencies: "@polkadot/util": "*" - checksum: 16be00aed30f58b71245b7f3c6538b0d57317664923bc246524f17566d40f71fa7807a458074ddb29cb2176ce729cc78e9e177d276dae009fe2bfa2c7974e7ef + checksum: f32afe3045dd66af81ab4ad2acefdb876deba5df3a52e57d6bc1a43f3765a63cce7ad3e320f019b460b6763055d906cb659d753db6379f918d6d30e1f02fc861 languageName: node linkType: hard -"@polkadot/ui-shared@npm:0.59.0-beta.7": - version: 0.59.0-beta.7 - resolution: "@polkadot/ui-shared@npm:0.59.0-beta.7" +"@polkadot/ui-shared@npm:0.59.0-beta.8": + version: 0.59.0-beta.8 + resolution: "@polkadot/ui-shared@npm:0.59.0-beta.8" dependencies: "@babel/runtime": ^7.11.2 color: ^3.1.2 peerDependencies: "@polkadot/util": "*" "@polkadot/util-crypto": "*" - checksum: 84e492b6e989f7dfe7f55d2fa5fa965c5becf1e80ca56ee15cbe28c82b930501e389c33db7727d261575e77d06c497489820cb24e766dc868c3f2d94943c3dcb + checksum: 100320146e8355a4b1b617758bf11ea0602b504108f195254218a0388849d463cd79669c91f40345c693f5f2342237a044d8b803d99f26be897f07e79d988cda languageName: node linkType: hard @@ -3348,6 +3348,28 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-fetch@npm:^0.3.2": + version: 0.3.2 + resolution: "@polkadot/x-fetch@npm:0.3.2" + dependencies: + "@babel/runtime": ^7.11.2 + "@types/node-fetch": ^2.5.7 + node-fetch: ^2.6.1 + checksum: 51d768e41e01cad09758ab641178cc192c81af85c2d5bd9bc6c033fbf0d6e09af4889e7371ed14e64b6189f55ee5084baa8612287de699a5f3ede8bad7ee9be0 + languageName: node + linkType: hard + +"@polkadot/x-ws@npm:^0.3.2": + version: 0.3.2 + resolution: "@polkadot/x-ws@npm:0.3.2" + dependencies: + "@babel/runtime": ^7.11.2 + "@types/websocket": ^1.0.1 + websocket: ^1.0.32 + checksum: 7f1a0a036e76ea316dd58860ac80487fc9251240da3f36ae5995011e381c617d3f6e813edb621fb4a1655ffb81f49ab7ce800a445c31fc425f3475a30eb640c1 + languageName: node + linkType: hard + "@rushstack/eslint-patch@npm:^1.0.3": version: 1.0.3 resolution: "@rushstack/eslint-patch@npm:1.0.3" @@ -3685,6 +3707,16 @@ __metadata: languageName: node linkType: hard +"@types/node-fetch@npm:^2.5.7": + version: 2.5.7 + resolution: "@types/node-fetch@npm:2.5.7" + dependencies: + "@types/node": "*" + form-data: ^3.0.0 + checksum: 101f6e8474407f957dfe1750d82aa0bcaa56347d09c8ba8634e6a901d07032533c0a578860691d915ff8fa230355700c41c04ae7e505840b5d6ff8cc3ece7741 + languageName: node + linkType: hard + "@types/node@npm:*, @types/node@npm:>= 8": version: 14.10.3 resolution: "@types/node@npm:14.10.3" @@ -3853,6 +3885,15 @@ __metadata: languageName: node linkType: hard +"@types/websocket@npm:^1.0.1": + version: 1.0.1 + resolution: "@types/websocket@npm:1.0.1" + dependencies: + "@types/node": "*" + checksum: 93d407970a6487290f8bace3b6de40d6f35f092386e5fba8981c3cb5ee60b155da419ab98007a3991c4a2e27eee948c5f98786a13619359b42a4a04aaf7bdf27 + languageName: node + linkType: hard + "@types/yargs-parser@npm:*": version: 15.0.0 resolution: "@types/yargs-parser@npm:15.0.0" @@ -7347,7 +7388,7 @@ __metadata: languageName: node linkType: hard -"combined-stream@npm:^1.0.6, combined-stream@npm:~1.0.6": +"combined-stream@npm:^1.0.6, combined-stream@npm:^1.0.8, combined-stream@npm:~1.0.6": version: 1.0.8 resolution: "combined-stream@npm:1.0.8" dependencies: @@ -7875,15 +7916,6 @@ __metadata: languageName: node linkType: hard -"cross-fetch@npm:^3.0.6": - version: 3.0.6 - resolution: "cross-fetch@npm:3.0.6" - dependencies: - node-fetch: 2.6.1 - checksum: a491ad1b89988a351f8b8b252b68a5e653636d911042648c43a806cf7575ff043379a80d6269102ca60ec633af0b49ca4c83536007793bb0e65e491769f70d9d - languageName: node - linkType: hard - "cross-spawn@npm:^6.0.0, cross-spawn@npm:^6.0.5": version: 6.0.5 resolution: "cross-spawn@npm:6.0.5" @@ -10521,6 +10553,17 @@ __metadata: languageName: node linkType: hard +"form-data@npm:^3.0.0": + version: 3.0.0 + resolution: "form-data@npm:3.0.0" + dependencies: + asynckit: ^0.4.0 + combined-stream: ^1.0.8 + mime-types: ^2.1.12 + checksum: 1af88217b449eda6566a0d95185f2baa403ed2a0e3b11547069f6062be66cbac7c8d7a25f0fc59560702e96526e659b5b9e5a8c6fefe00f06da44338191a9133 + languageName: node + linkType: hard + "form-data@npm:~2.3.2": version: 2.3.3 resolution: "form-data@npm:2.3.3" @@ -15412,7 +15455,7 @@ fsevents@^1.2.7: languageName: node linkType: hard -"node-fetch@npm:2.6.1, node-fetch@npm:^2.5.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1": +"node-fetch@npm:^2.5.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1": version: 2.6.1 resolution: "node-fetch@npm:2.6.1" checksum: cbb171635e538162b977eac5dfe7a1e07a9a02e991924377a6435502291e2f823d306b95aabc455caebf4a118ccf836868462bc70ccc3095af02bb9da61fda37 @@ -18797,7 +18840,7 @@ fsevents@^1.2.7: dependencies: "@babel/core": ^7.11.6 "@polkadot/dev": ^0.55.52 - "@polkadot/typegen": ^1.34.0-beta.8 + "@polkadot/typegen": ^1.34.0-beta.10 "@types/jest": ^26.0.14 copy-webpack-plugin: ^6.1.0 i18next-scanner: ^2.11.0