Skip to content

Commit

Permalink
Change packages from @polkadot/extension-xxx to @subwallet/extension-xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed May 11, 2022
1 parent c850efb commit ad4c510
Show file tree
Hide file tree
Showing 525 changed files with 2,743 additions and 2,033 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

const base = require('@polkadot/dev/config/eslint.cjs');
Expand All @@ -8,8 +8,7 @@ module.exports = {
ignorePatterns: [
...base.ignorePatterns,
"i18next-scanner.config.js",
"koni-ci-ghact-build.mjs",
"koni-ci-build-dev.mjs"
"koni-*.mjs",
],
parserOptions: {
...base.parserOptions,
Expand All @@ -19,6 +18,10 @@ module.exports = {
},
rules: {
...base.rules,
'header/header': [2, 'line', [
{ pattern: ' Copyright 20(17|18|19|20|21|22)(-2022)? (@polkadot|@subwallet)/' },
' SPDX-License-Identifier: Apache-2.0'
], 2],
// this seems very broken atm, false positives
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

module.exports = require('@polkadot/dev/config/prettier.cjs');
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Changes:

Changes:

- Ensure `@polkadot/extension-mocks` is correctly listed as devDependency
- Ensure `@subwallet/extension-mocks` is correctly listed as devDependency


## 0.42.3 Dec 27, 2021
Expand Down
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

module.exports = require('@polkadot/dev/config/babel-config-cjs.cjs');
2 changes: 1 addition & 1 deletion i18next-scanner.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

const fs = require('fs');
Expand Down
6 changes: 3 additions & 3 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

const config = require('@polkadot/dev/config/jest.cjs');
Expand All @@ -9,9 +9,9 @@ module.exports = {
...config.modulePathIgnorePatterns
],
moduleNameMapper: {
'@polkadot/extension-(base|chains|compat-metamask|dapp|inject|mocks|koni-base|koni-ui)(.*)$': '<rootDir>/packages/extension-$1/src/$2',
'@subwallet/extension-(base|chains|compat-metamask|dapp|inject|mocks|koni-base|koni-ui)(.*)$': '<rootDir>/packages/extension-$1/src/$2',
// eslint-disable-next-line sort-keys
'@polkadot/extension-koni(.*)$': '<rootDir>/packages/extension-koni/src/$1',
'@subwallet/extension-koni(.*)$': '<rootDir>/packages/extension-koni/src/$1',
'\\.(css|less)$': 'empty/object',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/packages/extension-mocks/src/fileMock.js'
},
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
],
"bin": {
"koni-ci-build-dev": "./scripts/koni-ci-build-dev.mjs",
"koni-ci-ghact-build": "./scripts/koni-ci-ghact-build.mjs"
"koni-ci-ghact-build": "./scripts/koni-ci-ghact-build.mjs",
"koni-dev-build-ts": "./scripts/koni-dev-build-ts.mjs"
},
"scripts": {
"build": "polkadot-dev-build-ts && yarn build:zip && yarn build:rollup",
"build": "koni-dev-build-ts && yarn build:zip && yarn build:rollup",
"build:extra": "yarn build:i18n && yarn build:ui",
"build:i18n": "i18next-scanner --config i18next-scanner.config.js",
"build:koni-dev": "koni-ci-build-dev",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-base/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @polkadot/extension-base
# @subwallet/extension-base

Functions, classes and other utilities used in `@polkadot/extension`. These include:
Functions, classes and other utilities used in `@subwallet/extension`. These include:
- background script handlers,
- message passing,
- scripts injected inside pages.

They are primarily meant to be used in `@polkadot/extension`, and can be broken without any notice to cater for `@polkadot/extension`'s needs.
They are primarily meant to be used in `@subwallet/extension`, and can be broken without any notice to cater for `@subwallet/extension`'s needs.

They are exported here if you wish to use part of them in the development of your own extension. Don't forget to add `process.env.EXTENSION_PREFIX` to separate ports and stores from the current extension's ones.
12 changes: 6 additions & 6 deletions packages/extension-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/Koniverse/Subwallet-V2/issues",
"contributors": [],
"description": "Functions, classes and other utilities used in @polkadot/extension",
"description": "Functions, classes and other utilities used in @subwallet/extension",
"homepage": "https://github.com/Koniverse/Subwallet-V2/tree/master/packages/extension-base#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/extension-base",
"name": "@subwallet/extension-base",
"repository": {
"directory": "packages/extension-base",
"type": "git",
Expand All @@ -23,9 +23,6 @@
"@babel/runtime": "^7.16.7",
"@ethereumjs/common": "^2.6.3",
"@polkadot/api": "^7.3.1",
"@polkadot/extension-chains": "^0.4.1",
"@polkadot/extension-dapp": "^0.4.1",
"@polkadot/extension-inject": "^0.4.1",
"@polkadot/keyring": "^8.3.1",
"@polkadot/networks": "^8.3.1",
"@polkadot/phishing": "^0.11.30",
Expand All @@ -35,12 +32,15 @@
"@polkadot/ui-settings": "^0.89.1",
"@polkadot/util": "^8.3.1",
"@polkadot/util-crypto": "^8.3.1",
"@subwallet/extension-chains": "^0.4.1",
"@subwallet/extension-dapp": "^0.4.1",
"@subwallet/extension-inject": "^0.4.1",
"ethereumjs-tx": "^2.1.2",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.1",
"web3": "^1.7.1"
},
"devDependencies": {
"@polkadot/extension-mocks": "^0.4.1"
"@subwallet/extension-mocks": "^0.4.1"
}
}
8 changes: 4 additions & 4 deletions packages/extension-base/src/background/KoniTypes.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2019-2022 @polkadot/extension-koni authors & contributors
// Copyright 2019-2022 @subwallet/extension-koni authors & contributors
// SPDX-License-Identifier: Apache-2.0

import { ApiPromise } from '@polkadot/api';
import { SubmittableExtrinsicFunction } from '@polkadot/api/promise/types';
import { AuthUrls, Resolver } from '@polkadot/extension-base/background/handlers/State';
import { AccountJson, AuthorizeRequest, RequestAccountList, RequestAccountSubscribe, RequestAuthorizeReject, RequestAuthorizeSubscribe, RequestAuthorizeTab, RequestCurrentAccountAddress, ResponseAuthorizeList, ResponseJsonGetAccountInfo, SeedLengths } from '@polkadot/extension-base/background/types';
import { InjectedAccount, MetadataDefBase } from '@polkadot/extension-inject/types';
import { AuthUrls, Resolver } from '@subwallet/extension-base/background/handlers/State';
import { AccountJson, AuthorizeRequest, RequestAccountList, RequestAccountSubscribe, RequestAuthorizeReject, RequestAuthorizeSubscribe, RequestAuthorizeTab, RequestCurrentAccountAddress, ResponseAuthorizeList, ResponseJsonGetAccountInfo, SeedLengths } from '@subwallet/extension-base/background/types';
import { InjectedAccount, MetadataDefBase } from '@subwallet/extension-inject/types';
import { KeyringPair$Json } from '@polkadot/keyring/types';
import { Registry } from '@polkadot/types/types';
import { Keyring } from '@polkadot/ui-keyring';
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-base/src/background/RequestBytesSign.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { KeyringPair } from '@polkadot/keyring/types';
import type { SignerPayloadRaw } from '@polkadot/types/types';
import type { HexString } from '@polkadot/util/types';
import type { RequestSign } from './types';

import { wrapBytes } from '@polkadot/extension-dapp/wrapBytes';
import { wrapBytes } from '@subwallet/extension-dapp/wrapBytes';
import { TypeRegistry } from '@polkadot/types';
import { u8aToHex } from '@polkadot/util';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { KeyringPair } from '@polkadot/keyring/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import '@polkadot/extension-mocks/chrome';
import '@subwallet/extension-mocks/chrome';

import type { ResponseSigning } from '@polkadot/extension-base/background/types';
import type { MetadataDef } from '@polkadot/extension-inject/types';
import type { ResponseSigning } from '@subwallet/extension-base/background/types';
import type { MetadataDef } from '@subwallet/extension-inject/types';
import type { KeyringPair } from '@polkadot/keyring/types';
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
import type { SignerPayloadJSON } from '@polkadot/types/types';
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-base/src/background/handlers/Extension.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { MetadataDef } from '@polkadot/extension-inject/types';
import type { MetadataDef } from '@subwallet/extension-inject/types';
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
import type { SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/types/types';
import type { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
import type { KeypairType } from '@polkadot/util-crypto/types';
import type { AccountJson, AllowedPath, AuthorizeRequest, MessageTypes, MetadataRequest, RequestAccountChangePassword, RequestAccountCreateExternal, RequestAccountCreateHardware, RequestAccountCreateSuri, RequestAccountEdit, RequestAccountExport, RequestAccountForget, RequestAccountShow, RequestAccountTie, RequestAccountValidate, RequestAuthorizeApprove, RequestAuthorizeReject, RequestBatchRestore, RequestDeriveCreate, RequestDeriveValidate, RequestJsonRestore, RequestMetadataApprove, RequestMetadataReject, RequestSeedCreate, RequestSeedValidate, RequestSigningApprovePassword, RequestSigningApproveSignature, RequestSigningCancel, RequestSigningIsLocked, RequestTypes, ResponseAccountExport, ResponseAuthorizeList, ResponseDeriveValidate, ResponseJsonGetAccountInfo, ResponseSeedCreate, ResponseSeedValidate, ResponseSigningIsLocked, ResponseType, SigningRequest } from '../types';

import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@polkadot/extension-base/defaults';
import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@subwallet/extension-base/defaults';
import { TypeRegistry } from '@polkadot/types';
import keyring from '@polkadot/ui-keyring';
import { accounts as accountsObservable } from '@polkadot/ui-keyring/observable/accounts';
Expand Down
8 changes: 4 additions & 4 deletions packages/extension-base/src/background/handlers/State.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright 2019-2022 @polkadot/extension-bg authors & contributors
// Copyright 2019-2022 @subwallet/extension-bg authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { MetadataDef, ProviderMeta } from '@polkadot/extension-inject/types';
import type { MetadataDef, ProviderMeta } from '@subwallet/extension-inject/types';
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback } from '@polkadot/rpc-provider/types';
import type { AccountJson, AuthorizeRequest, MetadataRequest, RequestAuthorizeTab, RequestRpcSend, RequestRpcSubscribe, RequestRpcUnsubscribe, RequestSign, ResponseRpcListProviders, ResponseSigning, SigningRequest } from '../types';

import { BehaviorSubject } from 'rxjs';

import { getId } from '@polkadot/extension-base/utils/getId';
import { addMetadata, knownMetadata } from '@polkadot/extension-chains';
import { getId } from '@subwallet/extension-base/utils/getId';
import { addMetadata, knownMetadata } from '@subwallet/extension-chains';
import { knownGenesis } from '@polkadot/networks/defaults';
import settings from '@polkadot/ui-settings';
import { assert } from '@polkadot/util';
Expand Down
8 changes: 4 additions & 4 deletions packages/extension-base/src/background/handlers/Tabs.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { InjectedAccount, InjectedMetadataKnown, MetadataDef, ProviderMeta } from '@polkadot/extension-inject/types';
import type { InjectedAccount, InjectedMetadataKnown, MetadataDef, ProviderMeta } from '@subwallet/extension-inject/types';
import type { KeyringPair } from '@polkadot/keyring/types';
import type { JsonRpcResponse } from '@polkadot/rpc-provider/types';
import type { SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/types/types';
import type { SubjectInfo } from '@polkadot/ui-keyring/observable/types';
import type { MessageTypes, RequestAccountList, RequestAuthorizeTab, RequestRpcSend, RequestRpcSubscribe, RequestRpcUnsubscribe, RequestTypes, ResponseRpcListProviders, ResponseSigning, ResponseTypes, SubscriptionMessageTypes } from '../types';

import { PHISHING_PAGE_REDIRECT } from '@polkadot/extension-base/defaults';
import { canDerive } from '@polkadot/extension-base/utils';
import { PHISHING_PAGE_REDIRECT } from '@subwallet/extension-base/defaults';
import { canDerive } from '@subwallet/extension-base/utils';
import { checkIfDenied } from '@polkadot/phishing';
import keyring from '@polkadot/ui-keyring';
import { accounts as accountsObservable } from '@polkadot/ui-keyring/observable/accounts';
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/background/handlers/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

export function withErrorLog (fn: () => unknown): void {
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/background/handlers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { MessageTypes, TransportRequestMessage } from '../types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { MessageTypesWithSubscriptions, SubscriptionMessageTypes } from '../types';
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-base/src/background/types.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable no-use-before-define */

import type { InjectedAccount, InjectedMetadataKnown, MetadataDef, ProviderList, ProviderMeta } from '@polkadot/extension-inject/types';
import type { InjectedAccount, InjectedMetadataKnown, MetadataDef, ProviderList, ProviderMeta } from '@subwallet/extension-inject/types';
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
import type { JsonRpcResponse } from '@polkadot/rpc-provider/types';
import type { SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/types/types';
import type { KeyringPairs$Json } from '@polkadot/ui-keyring/types';
import type { HexString } from '@polkadot/util/types';
import type { KeypairType } from '@polkadot/util-crypto/types';

import { CurrentNetworkInfo, KoniRequestSignatures } from '@polkadot/extension-base/background/KoniTypes';
import { CurrentNetworkInfo, KoniRequestSignatures } from '@subwallet/extension-base/background/KoniTypes';
import { TypeRegistry } from '@polkadot/types';

import { ALLOWED_PATH } from '../defaults';
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

export { packageInfo } from './packageInfo';
2 changes: 1 addition & 1 deletion packages/extension-base/src/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

const ALLOWED_PATH = ['/', '/account/import-ledger', '/account/restore-json', '/account/create'] as const;
Expand Down
8 changes: 4 additions & 4 deletions packages/extension-base/src/detectOther.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2017-2022 @polkadot/extension-base authors & contributors
// Copyright 2017-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

import { packageInfo as chainsInfo } from '@polkadot/extension-chains/packageInfo';
import { packageInfo as dappInfo } from '@polkadot/extension-dapp/packageInfo';
import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
import { packageInfo as chainsInfo } from '@subwallet/extension-chains/packageInfo';
import { packageInfo as dappInfo } from '@subwallet/extension-dapp/packageInfo';
import { packageInfo as injectInfo } from '@subwallet/extension-inject/packageInfo';

export default [chainsInfo, dappInfo, injectInfo];
2 changes: 1 addition & 1 deletion packages/extension-base/src/detectPackage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/extension-base authors & contributors
// Copyright 2017-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Since we inject into pages, we skip this
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-base/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2022 @polkadot/extension-base authors & contributors
// Copyright 2017-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-base', path: 'auto', type: 'auto', version: '0.4.1' };
export const packageInfo = { name: '@subwallet/extension-base', path: 'auto', type: 'auto', version: '0.4.1' };
4 changes: 2 additions & 2 deletions packages/extension-base/src/page/Accounts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { InjectedAccount, InjectedAccounts, Unsubcall } from '@polkadot/extension-inject/types';
import type { InjectedAccount, InjectedAccounts, Unsubcall } from '@subwallet/extension-inject/types';
import type { SendRequest } from './types';

// External to class, this.# is not private enough (yet)
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-base/src/page/Injected.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Injected } from '@polkadot/extension-inject/types';
import type { Injected } from '@subwallet/extension-inject/types';
import type { SendRequest } from './types';

import Accounts from './Accounts';
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-base/src/page/Metadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2019-2022 @polkadot/extension authors & contributors
// Copyright 2019-2022 @subwallet/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { InjectedMetadata, InjectedMetadataKnown, MetadataDef } from '@polkadot/extension-inject/types';
import type { InjectedMetadata, InjectedMetadataKnown, MetadataDef } from '@subwallet/extension-inject/types';
import type { SendRequest } from './types';

// External to class, this.# is not private enough (yet)
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-base/src/page/PostMessageProvider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { InjectedProvider, ProviderList, ProviderMeta } from '@polkadot/extension-inject/types';
import type { InjectedProvider, ProviderList, ProviderMeta } from '@subwallet/extension-inject/types';
import type { ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '@polkadot/rpc-provider/types';
import type { AnyFunction } from '@polkadot/types/types';
import type { SendRequest } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/page/Signer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Signer as SignerInterface, SignerResult } from '@polkadot/api/types';
Expand Down
Loading

0 comments on commit ad4c510

Please sign in to comment.