From 686096385347ba02a0ff3ff87ab4e4542168c7b7 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 22 Dec 2022 11:24:59 +0100 Subject: [PATCH 1/4] ReefSigner options --- packages/extension-inject/src/types.ts | 164 +++++++++--------- .../extension-base/src/page/ReefSigner.ts | 25 ++- 2 files changed, 104 insertions(+), 85 deletions(-) diff --git a/packages/extension-inject/src/types.ts b/packages/extension-inject/src/types.ts index 9756d0a1..0a60dd7f 100644 --- a/packages/extension-inject/src/types.ts +++ b/packages/extension-inject/src/types.ts @@ -1,13 +1,13 @@ // Copyright 2019-2021 @polkadot/extension-inject authors & contributors // SPDX-License-Identifier: Apache-2.0 -import type { KeypairType } from '@reef-defi/util-crypto/types'; -import type { Signer as InjectedSigner } from '@polkadot/api/types'; -import type { ProviderInterface } from '@polkadot/rpc-provider/types'; -import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types'; +import type {KeypairType} from '@reef-defi/util-crypto/types'; +import type {Signer as InjectedSigner} from '@polkadot/api/types'; +import type {ProviderInterface} from '@polkadot/rpc-provider/types'; +import type {ExtDef} from '@polkadot/types/extrinsic/signedExtensions/types'; -import { Provider } from '@reef-defi/evm-provider'; -import { Signer as ReefVMSigner } from '@reef-defi/evm-provider/Signer'; +import {Provider} from '@reef-defi/evm-provider'; +import {Signer as ReefVMSigner} from '@reef-defi/evm-provider/Signer'; // eslint-disable-next-line no-undef type This = typeof globalThis; @@ -15,119 +15,120 @@ type This = typeof globalThis; export type Unsubcall = () => void; export interface InjectedAccount { - address: string; - genesisHash?: string | null; - name?: string; - type?: KeypairType; - // REEF update - isSelected?: boolean; + address: string; + genesisHash?: string | null; + name?: string; + type?: KeypairType; + // REEF update + isSelected?: boolean; } export interface InjectedAccountWithMeta { - address: string; - meta: { - genesisHash?: string | null; - name?: string; - source: string; - }; - type?: KeypairType; + address: string; + meta: { + genesisHash?: string | null; + name?: string; + source: string; + }; + type?: KeypairType; } export interface InjectedAccounts { - get: (anyType?: boolean) => Promise; - subscribe: (cb: (accounts: InjectedAccount[]) => void | Promise) => Unsubcall; + get: (anyType?: boolean) => Promise; + subscribe: (cb: (accounts: InjectedAccount[]) => void | Promise) => Unsubcall; } export interface InjectedExtensionInfo { - name: string; - version: string; + name: string; + version: string; } // Metadata about a provider export interface ProviderMeta { - // Network of the provider - network: string; - // Light or full node - node: 'full' | 'light'; - // The extension source - source: string; - // Provider transport: 'WsProvider' etc. - transport: string; + // Network of the provider + network: string; + // Light or full node + node: 'full' | 'light'; + // The extension source + source: string; + // Provider transport: 'WsProvider' etc. + transport: string; } export interface MetadataDefBase { - chain: string; - genesisHash: string; - icon: string; - ss58Format: number; - chainType?: 'substrate' | 'ethereum' + chain: string; + genesisHash: string; + icon: string; + ss58Format: number; + chainType?: 'substrate' | 'ethereum' } export interface MetadataDef extends MetadataDefBase { - color?: string; - specVersion: number; - tokenDecimals: number; - tokenSymbol: string; - types: Record | string>; - metaCalls?: string; - userExtensions?: ExtDef; + color?: string; + specVersion: number; + tokenDecimals: number; + tokenSymbol: string; + types: Record | string>; + metaCalls?: string; + userExtensions?: ExtDef; } export interface InjectedMetadataKnown { - genesisHash: string; - specVersion: number; + genesisHash: string; + specVersion: number; } export interface InjectedMetadata { - get: () => Promise; - provide: (definition: MetadataDef) => Promise; + get: () => Promise; + provide: (definition: MetadataDef) => Promise; } export type ProviderList = Record export interface InjectedProvider extends ProviderInterface { - listProviders: () => Promise; - startProvider: (key: string) => Promise; + listProviders: () => Promise; + startProvider: (key: string) => Promise; } export interface InjectedProviderWithMeta { - // provider will actually always be a PostMessageProvider, which implements InjectedProvider - provider: InjectedProvider; - meta: ProviderMeta; + // provider will actually always be a PostMessageProvider, which implements InjectedProvider + provider: InjectedProvider; + meta: ProviderMeta; } export interface Injected { - accounts: InjectedAccounts; - metadata?: InjectedMetadata; - provider?: InjectedProvider; - signer: InjectedSigner; + accounts: InjectedAccounts; + metadata?: InjectedMetadata; + provider?: InjectedProvider; + signer: InjectedSigner; } export interface ReefInjected extends Injected { - reefSigner: ReefInjectedSigner; - reefProvider: ReefInjectedProvider; + reefSigner: ReefInjectedSigner; + reefProvider: ReefInjectedProvider; } export interface ReefInjectedSigner { - subscribeSelectedAccount: (cb: (account: InjectedAccount | undefined) => unknown) => Unsubcall; - subscribeSelectedSigner: (cb: (signerResponse: ReefSignerResponse) => unknown, connectedVM?: ReefVM) => Unsubcall; - getSelectedAccount: () => Promise; - getSelectedSigner: (connectedVM?: ReefVM) => Promise; + subscribeSelectedAccount: (cb: (account: InjectedAccount | undefined) => unknown) => Unsubcall; + subscribeSelectedSigner: (cb: (signerResponse: ReefSignerResponse) => unknown, options?: ReefSignerReqOptions) => Unsubcall; + getSelectedAccount: () => Promise; + getSelectedSigner: (options?: ReefSignerReqOptions) => Promise; } export interface ReefInjectedProvider { - subscribeSelectedNetwork: (cb: (rpcUrl: string) => void) => void; - subscribeSelectedNetworkProvider: (cb: (provider: Provider) => void) => Unsubcall; - getNetworkProvider(): Promise; + subscribeSelectedNetwork: (cb: (rpcUrl: string) => void) => void; + subscribeSelectedNetworkProvider: (cb: (provider: Provider) => void) => Unsubcall; + + getNetworkProvider(): Promise; } export interface InjectedWindowProvider { - enable: (origin: string) => Promise; - version: string; + enable: (origin: string) => Promise; + version: string; } export interface InjectedWindow extends This { - injectedWeb3: Record; + injectedWeb3: Record; } export type InjectedExtension = InjectedExtensionInfo & Injected; @@ -135,24 +136,29 @@ export type InjectedExtension = InjectedExtensionInfo & Injected; export type InjectOptions = InjectedExtensionInfo; export interface Web3AccountsOptions { - ss58Format?: number, - accountType?: KeypairType[] + ss58Format?: number, + accountType?: KeypairType[] } export enum ReefVM { - NATIVE, - EVM + NATIVE, + EVM } export enum ReefSignerStatus { - CONNECTING = 'connecting', - NO_ACCOUNT_SELECTED = 'no-account-selected', - SELECTED_NO_VM_CONNECTION = 'selected-no-vm-connection', - OK = 'OK' + CONNECTING = 'connecting', + NO_ACCOUNT_SELECTED = 'no-account-selected', + SELECTED_NO_VM_CONNECTION = 'selected-no-vm-connection', + OK = 'OK' } export interface ReefSignerResponse { - data: ReefVMSigner | undefined; - status: ReefSignerStatus; - requestedVM: ReefVM; + data: ReefVMSigner | undefined; + status: ReefSignerStatus; + requestedVM: ReefVM; +} + +export interface ReefSignerReqOptions { + connectedVM?: ReefVM; + // network?: 'mainnet' | 'testnet' } diff --git a/packages/reef/extension-base/src/page/ReefSigner.ts b/packages/reef/extension-base/src/page/ReefSigner.ts index 998c6386..cfb25a27 100644 --- a/packages/reef/extension-base/src/page/ReefSigner.ts +++ b/packages/reef/extension-base/src/page/ReefSigner.ts @@ -1,7 +1,15 @@ import { Provider, Signer as ReefVMSigner } from '@reef-defi/evm-provider'; import Accounts from '@reef-defi/extension-base/page/Accounts'; import SigningKey from '@reef-defi/extension-base/page/Signer'; -import { InjectedAccount, ReefInjectedSigner, ReefSignerResponse, ReefSignerStatus, ReefVM, Unsubcall } from '@reef-defi/extension-inject/types'; +import { + InjectedAccount, + ReefInjectedSigner, + ReefSignerReqOptions, + ReefSignerResponse, + ReefSignerStatus, + ReefVM, + Unsubcall +} from '@reef-defi/extension-inject/types'; import { ReefProvider } from './ReefProvider'; @@ -34,10 +42,14 @@ export class ReefSigner implements ReefInjectedSigner { return accounts.find((a) => a.isSelected); } - public subscribeSelectedSigner (cb: (reefSigner: ReefSignerResponse) => unknown, connectedVM: ReefVM = ReefVM.EVM): Unsubcall { + public subscribeSelectedSigner (cb: (reefSigner: ReefSignerResponse) => unknown, options: ReefSignerReqOptions = {}): Unsubcall { + let { connectedVM } = options; + if(!connectedVM){ + connectedVM = ReefVM.EVM; + } const unsubProvFn = this.injectedProvider.subscribeSelectedNetworkProvider((provider) => { this.selectedProvider = provider; - this.onSelectedSignerParamUpdate(cb, connectedVM).then( + this.onSelectedSignerParamUpdate(cb, connectedVM!).then( () => { // do nothing }, () => { @@ -50,7 +62,7 @@ export class ReefSigner implements ReefInjectedSigner { if (!account || account?.address !== this.selectedSignerAccount?.address) { this.selectedSignerAccount = account; - this.onSelectedSignerParamUpdate(cb, connectedVM).then( + this.onSelectedSignerParamUpdate(cb, connectedVM!).then( () => { // do nothing }, () => { @@ -66,7 +78,8 @@ export class ReefSigner implements ReefInjectedSigner { }; } - public async getSelectedSigner (connectedVM: ReefVM = ReefVM.EVM): Promise { + public async getSelectedSigner (options: ReefSignerReqOptions = {}): Promise { + if (this.selectedSignerStatus) { return Promise.resolve({ ...this.selectedSignerStatus }); } @@ -88,7 +101,7 @@ export class ReefSigner implements ReefInjectedSigner { this.resolvesList.forEach((resolve) => resolve({ ...sig })); this.resolvesList = []; } - }, connectedVM); + }, options); } return retPromise; From 278f7842adc9d2931a40314d3a26dba268eba2d1 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 22 Dec 2022 11:55:11 +0100 Subject: [PATCH 2/4] lint --- packages/extension-inject/src/types.ts | 162 +++++++++--------- .../extension-base/src/page/ReefSigner.ts | 15 +- 2 files changed, 85 insertions(+), 92 deletions(-) diff --git a/packages/extension-inject/src/types.ts b/packages/extension-inject/src/types.ts index 0a60dd7f..6ead2d8d 100644 --- a/packages/extension-inject/src/types.ts +++ b/packages/extension-inject/src/types.ts @@ -1,13 +1,13 @@ // Copyright 2019-2021 @polkadot/extension-inject authors & contributors // SPDX-License-Identifier: Apache-2.0 -import type {KeypairType} from '@reef-defi/util-crypto/types'; -import type {Signer as InjectedSigner} from '@polkadot/api/types'; -import type {ProviderInterface} from '@polkadot/rpc-provider/types'; -import type {ExtDef} from '@polkadot/types/extrinsic/signedExtensions/types'; +import type { KeypairType } from '@reef-defi/util-crypto/types'; +import type { Signer as InjectedSigner } from '@polkadot/api/types'; +import type { ProviderInterface } from '@polkadot/rpc-provider/types'; +import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types'; -import {Provider} from '@reef-defi/evm-provider'; -import {Signer as ReefVMSigner} from '@reef-defi/evm-provider/Signer'; +import { Provider } from '@reef-defi/evm-provider'; +import { Signer as ReefVMSigner } from '@reef-defi/evm-provider/Signer'; // eslint-disable-next-line no-undef type This = typeof globalThis; @@ -15,120 +15,120 @@ type This = typeof globalThis; export type Unsubcall = () => void; export interface InjectedAccount { - address: string; - genesisHash?: string | null; - name?: string; - type?: KeypairType; - // REEF update - isSelected?: boolean; + address: string; + genesisHash?: string | null; + name?: string; + type?: KeypairType; + // REEF update + isSelected?: boolean; } export interface InjectedAccountWithMeta { - address: string; - meta: { - genesisHash?: string | null; - name?: string; - source: string; - }; - type?: KeypairType; + address: string; + meta: { + genesisHash?: string | null; + name?: string; + source: string; + }; + type?: KeypairType; } export interface InjectedAccounts { - get: (anyType?: boolean) => Promise; - subscribe: (cb: (accounts: InjectedAccount[]) => void | Promise) => Unsubcall; + get: (anyType?: boolean) => Promise; + subscribe: (cb: (accounts: InjectedAccount[]) => void | Promise) => Unsubcall; } export interface InjectedExtensionInfo { - name: string; - version: string; + name: string; + version: string; } // Metadata about a provider export interface ProviderMeta { - // Network of the provider - network: string; - // Light or full node - node: 'full' | 'light'; - // The extension source - source: string; - // Provider transport: 'WsProvider' etc. - transport: string; + // Network of the provider + network: string; + // Light or full node + node: 'full' | 'light'; + // The extension source + source: string; + // Provider transport: 'WsProvider' etc. + transport: string; } export interface MetadataDefBase { - chain: string; - genesisHash: string; - icon: string; - ss58Format: number; - chainType?: 'substrate' | 'ethereum' + chain: string; + genesisHash: string; + icon: string; + ss58Format: number; + chainType?: 'substrate' | 'ethereum' } export interface MetadataDef extends MetadataDefBase { - color?: string; - specVersion: number; - tokenDecimals: number; - tokenSymbol: string; - types: Record | string>; - metaCalls?: string; - userExtensions?: ExtDef; + color?: string; + specVersion: number; + tokenDecimals: number; + tokenSymbol: string; + types: Record | string>; + metaCalls?: string; + userExtensions?: ExtDef; } export interface InjectedMetadataKnown { - genesisHash: string; - specVersion: number; + genesisHash: string; + specVersion: number; } export interface InjectedMetadata { - get: () => Promise; - provide: (definition: MetadataDef) => Promise; + get: () => Promise; + provide: (definition: MetadataDef) => Promise; } export type ProviderList = Record export interface InjectedProvider extends ProviderInterface { - listProviders: () => Promise; - startProvider: (key: string) => Promise; + listProviders: () => Promise; + startProvider: (key: string) => Promise; } export interface InjectedProviderWithMeta { - // provider will actually always be a PostMessageProvider, which implements InjectedProvider - provider: InjectedProvider; - meta: ProviderMeta; + // provider will actually always be a PostMessageProvider, which implements InjectedProvider + provider: InjectedProvider; + meta: ProviderMeta; } export interface Injected { - accounts: InjectedAccounts; - metadata?: InjectedMetadata; - provider?: InjectedProvider; - signer: InjectedSigner; + accounts: InjectedAccounts; + metadata?: InjectedMetadata; + provider?: InjectedProvider; + signer: InjectedSigner; } export interface ReefInjected extends Injected { - reefSigner: ReefInjectedSigner; - reefProvider: ReefInjectedProvider; + reefSigner: ReefInjectedSigner; + reefProvider: ReefInjectedProvider; } export interface ReefInjectedSigner { - subscribeSelectedAccount: (cb: (account: InjectedAccount | undefined) => unknown) => Unsubcall; - subscribeSelectedSigner: (cb: (signerResponse: ReefSignerResponse) => unknown, options?: ReefSignerReqOptions) => Unsubcall; - getSelectedAccount: () => Promise; - getSelectedSigner: (options?: ReefSignerReqOptions) => Promise; + subscribeSelectedAccount: (cb: (account: InjectedAccount | undefined) => unknown) => Unsubcall; + subscribeSelectedSigner: (cb: (signerResponse: ReefSignerResponse) => unknown, options?: ReefSignerReqOptions) => Unsubcall; + getSelectedAccount: () => Promise; + getSelectedSigner: (options?: ReefSignerReqOptions) => Promise; } export interface ReefInjectedProvider { - subscribeSelectedNetwork: (cb: (rpcUrl: string) => void) => void; - subscribeSelectedNetworkProvider: (cb: (provider: Provider) => void) => Unsubcall; + subscribeSelectedNetwork: (cb: (rpcUrl: string) => void) => void; + subscribeSelectedNetworkProvider: (cb: (provider: Provider) => void) => Unsubcall; - getNetworkProvider(): Promise; + getNetworkProvider(): Promise; } export interface InjectedWindowProvider { - enable: (origin: string) => Promise; - version: string; + enable: (origin: string) => Promise; + version: string; } export interface InjectedWindow extends This { - injectedWeb3: Record; + injectedWeb3: Record; } export type InjectedExtension = InjectedExtensionInfo & Injected; @@ -136,29 +136,29 @@ export type InjectedExtension = InjectedExtensionInfo & Injected; export type InjectOptions = InjectedExtensionInfo; export interface Web3AccountsOptions { - ss58Format?: number, - accountType?: KeypairType[] + ss58Format?: number, + accountType?: KeypairType[] } export enum ReefVM { - NATIVE, - EVM + NATIVE, + EVM } export enum ReefSignerStatus { - CONNECTING = 'connecting', - NO_ACCOUNT_SELECTED = 'no-account-selected', - SELECTED_NO_VM_CONNECTION = 'selected-no-vm-connection', - OK = 'OK' + CONNECTING = 'connecting', + NO_ACCOUNT_SELECTED = 'no-account-selected', + SELECTED_NO_VM_CONNECTION = 'selected-no-vm-connection', + OK = 'OK' } export interface ReefSignerResponse { - data: ReefVMSigner | undefined; - status: ReefSignerStatus; - requestedVM: ReefVM; + data: ReefVMSigner | undefined; + status: ReefSignerStatus; + requestedVM: ReefVM; } export interface ReefSignerReqOptions { - connectedVM?: ReefVM; - // network?: 'mainnet' | 'testnet' + connectedVM?: ReefVM; + // network?: 'mainnet' | 'testnet' } diff --git a/packages/reef/extension-base/src/page/ReefSigner.ts b/packages/reef/extension-base/src/page/ReefSigner.ts index cfb25a27..fb9b426e 100644 --- a/packages/reef/extension-base/src/page/ReefSigner.ts +++ b/packages/reef/extension-base/src/page/ReefSigner.ts @@ -1,15 +1,7 @@ import { Provider, Signer as ReefVMSigner } from '@reef-defi/evm-provider'; import Accounts from '@reef-defi/extension-base/page/Accounts'; import SigningKey from '@reef-defi/extension-base/page/Signer'; -import { - InjectedAccount, - ReefInjectedSigner, - ReefSignerReqOptions, - ReefSignerResponse, - ReefSignerStatus, - ReefVM, - Unsubcall -} from '@reef-defi/extension-inject/types'; +import { InjectedAccount, ReefInjectedSigner, ReefSignerReqOptions, ReefSignerResponse, ReefSignerStatus, ReefVM, Unsubcall } from '@reef-defi/extension-inject/types'; import { ReefProvider } from './ReefProvider'; @@ -44,9 +36,11 @@ export class ReefSigner implements ReefInjectedSigner { public subscribeSelectedSigner (cb: (reefSigner: ReefSignerResponse) => unknown, options: ReefSignerReqOptions = {}): Unsubcall { let { connectedVM } = options; - if(!connectedVM){ + + if (!connectedVM) { connectedVM = ReefVM.EVM; } + const unsubProvFn = this.injectedProvider.subscribeSelectedNetworkProvider((provider) => { this.selectedProvider = provider; this.onSelectedSignerParamUpdate(cb, connectedVM!).then( @@ -79,7 +73,6 @@ export class ReefSigner implements ReefInjectedSigner { } public async getSelectedSigner (options: ReefSignerReqOptions = {}): Promise { - if (this.selectedSignerStatus) { return Promise.resolve({ ...this.selectedSignerStatus }); } From 32f7558d9d8241e969f719dcbb0342ac996802bf Mon Sep 17 00:00:00 2001 From: matjazonline Date: Tue, 8 Aug 2023 11:00:53 +0200 Subject: [PATCH 3/4] lint --- packages/extension-inject/src/types.ts | 1 + packages/reef/extension-base/src/page/ReefSigner.ts | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/extension-inject/src/types.ts b/packages/extension-inject/src/types.ts index 6ead2d8d..ccee6bcd 100644 --- a/packages/extension-inject/src/types.ts +++ b/packages/extension-inject/src/types.ts @@ -141,6 +141,7 @@ export interface Web3AccountsOptions { } export enum ReefVM { + _NO_VALUE, NATIVE, EVM } diff --git a/packages/reef/extension-base/src/page/ReefSigner.ts b/packages/reef/extension-base/src/page/ReefSigner.ts index fb9b426e..bb30cb79 100644 --- a/packages/reef/extension-base/src/page/ReefSigner.ts +++ b/packages/reef/extension-base/src/page/ReefSigner.ts @@ -35,15 +35,11 @@ export class ReefSigner implements ReefInjectedSigner { } public subscribeSelectedSigner (cb: (reefSigner: ReefSignerResponse) => unknown, options: ReefSignerReqOptions = {}): Unsubcall { - let { connectedVM } = options; - - if (!connectedVM) { - connectedVM = ReefVM.EVM; - } + const connectedVM = options.connectedVM || ReefVM.EVM; const unsubProvFn = this.injectedProvider.subscribeSelectedNetworkProvider((provider) => { this.selectedProvider = provider; - this.onSelectedSignerParamUpdate(cb, connectedVM!).then( + this.onSelectedSignerParamUpdate(cb, connectedVM).then( () => { // do nothing }, () => { @@ -56,7 +52,7 @@ export class ReefSigner implements ReefInjectedSigner { if (!account || account?.address !== this.selectedSignerAccount?.address) { this.selectedSignerAccount = account; - this.onSelectedSignerParamUpdate(cb, connectedVM!).then( + this.onSelectedSignerParamUpdate(cb, connectedVM).then( () => { // do nothing }, () => { @@ -135,6 +131,6 @@ export class ReefSigner implements ReefInjectedSigner { return false; } - return !connectedVM || (connectedVM === ReefVM.EVM && await signer?.isClaimed()); + return !connectedVM || (connectedVM === ReefVM.EVM && signer && await signer.isClaimed()); } } From a0ddd07e9913dd505aa316262bdccbefc1d2bc1b Mon Sep 17 00:00:00 2001 From: matjazonline Date: Tue, 8 Aug 2023 11:15:52 +0200 Subject: [PATCH 4/4] v1.0.23 --- bumpVersion.js | 2 +- package.json | 2 +- packages/extension-base/package.json | 6 ++-- packages/extension-chains/package.json | 2 +- .../extension-compat-metamask/package.json | 4 +-- packages/extension-dapp/package.json | 4 +-- packages/extension-inject/package.json | 2 +- packages/extension-ui/package.json | 8 +++--- packages/extension/package.json | 8 +++--- yarn.lock | 28 +++++++++---------- 10 files changed, 33 insertions(+), 33 deletions(-) diff --git a/bumpVersion.js b/bumpVersion.js index 61b46aa3..c5452e00 100644 --- a/bumpVersion.js +++ b/bumpVersion.js @@ -1,5 +1,5 @@ const fs = require('fs'); -const NEW_VERSION = '1.0.22'; +const NEW_VERSION = '1.0.23'; function getPackageJson (filePath) { return { json: JSON.parse(fs.readFileSync(filePath, 'utf8')), filePath: filePath }; diff --git a/package.json b/package.json index aa98bab1..8f3892bc 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/reef-defi/browser-extension.git" }, "sideEffects": false, - "version": "1.0.22", + "version": "1.0.23", "workspaces": [ "packages/*" ], diff --git a/packages/extension-base/package.json b/packages/extension-base/package.json index 0a40c44f..1e974438 100644 --- a/packages/extension-base/package.json +++ b/packages/extension-base/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "main": "index.js", "dependencies": { "@babel/runtime": "^7.16.0", @@ -22,8 +22,8 @@ "@polkadot/phishing": "^0.6.407", "@polkadot/ui-keyring": "^0.86.5", "@reef-chain/util-lib": "^0.4.0", - "@reef-defi/extension-dapp": "^1.0.22", - "@reef-defi/extension-inject": "^1.0.22", + "@reef-defi/extension-dapp": "^1.0.23", + "@reef-defi/extension-inject": "^1.0.23", "@reef-defi/keyring": "^7.8.2" } } diff --git a/packages/extension-chains/package.json b/packages/extension-chains/package.json index dacf1164..f2e88d3c 100644 --- a/packages/extension-chains/package.json +++ b/packages/extension-chains/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "main": "index.js", "dependencies": { "@babel/runtime": "^7.16.0", diff --git a/packages/extension-compat-metamask/package.json b/packages/extension-compat-metamask/package.json index e883cba6..2df5ec27 100644 --- a/packages/extension-compat-metamask/package.json +++ b/packages/extension-compat-metamask/package.json @@ -14,12 +14,12 @@ }, "sideEffects": false, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "main": "index.js", "dependencies": { "@babel/runtime": "^7.16.0", "@metamask/detect-provider": "^1.2.0", - "@reef-defi/extension-inject": "^1.0.22", + "@reef-defi/extension-inject": "^1.0.23", "@reef-defi/util": "^7.8.2", "web3": "^1.6.0" }, diff --git a/packages/extension-dapp/package.json b/packages/extension-dapp/package.json index 9cb98c8a..85df8f32 100644 --- a/packages/extension-dapp/package.json +++ b/packages/extension-dapp/package.json @@ -14,11 +14,11 @@ }, "sideEffects": false, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "main": "index.js", "dependencies": { "@babel/runtime": "^7.16.0", - "@reef-defi/extension-inject": "^1.0.22", + "@reef-defi/extension-inject": "^1.0.23", "@reef-defi/util": "^7.8.2", "@reef-defi/util-crypto": "^7.8.2" }, diff --git a/packages/extension-inject/package.json b/packages/extension-inject/package.json index a6ecc015..e2596adc 100644 --- a/packages/extension-inject/package.json +++ b/packages/extension-inject/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "main": "index.js", "dependencies": { "@babel/runtime": "^7.16.0" diff --git a/packages/extension-ui/package.json b/packages/extension-ui/package.json index 1126d5f8..bb1dda7c 100644 --- a/packages/extension-ui/package.json +++ b/packages/extension-ui/package.json @@ -14,7 +14,7 @@ }, "sideEffects": true, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "dependencies": { "@apollo/client": "^3.5.8", "@babel/runtime": "^7.16.0", @@ -32,9 +32,9 @@ "@polkadot/util": "^7.8.2", "@polkadot/util-crypto": "^7.8.2", "@popperjs/core": "^2.11.5", - "@reef-defi/extension-base": "^1.0.22", - "@reef-defi/extension-dapp": "^1.0.22", - "@reef-defi/extension-inject": "^1.0.22", + "@reef-defi/extension-base": "^1.0.23", + "@reef-defi/extension-dapp": "^1.0.23", + "@reef-defi/extension-inject": "^1.0.23", "@reef-defi/hw-ledger": "^7.8.2", "@reef-defi/keyring": "^7.8.2", "@reef-defi/networks": "^7.8.2", diff --git a/packages/extension/package.json b/packages/extension/package.json index 0485be55..888c28c5 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -14,12 +14,12 @@ }, "sideEffects": false, "type": "module", - "version": "1.0.22", + "version": "1.0.23", "dependencies": { "@babel/runtime": "^7.16.0", - "@reef-defi/extension-base": "^1.0.22", - "@reef-defi/extension-inject": "^1.0.22", - "@reef-defi/extension-ui": "^1.0.22" + "@reef-defi/extension-base": "^1.0.23", + "@reef-defi/extension-inject": "^1.0.23", + "@reef-defi/extension-ui": "^1.0.23" }, "devDependencies": { "@reef-defi/dev": "^0.63.20", diff --git a/yarn.lock b/yarn.lock index 200897c8..b25374fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4618,7 +4618,7 @@ __metadata: languageName: node linkType: hard -"@reef-defi/extension-base@^1.0.10, @reef-defi/extension-base@^1.0.22, @reef-defi/extension-base@^1.0.9, @reef-defi/extension-base@workspace:packages/extension-base": +"@reef-defi/extension-base@^1.0.10, @reef-defi/extension-base@^1.0.23, @reef-defi/extension-base@^1.0.9, @reef-defi/extension-base@workspace:packages/extension-base": version: 0.0.0-use.local resolution: "@reef-defi/extension-base@workspace:packages/extension-base" dependencies: @@ -4627,8 +4627,8 @@ __metadata: "@polkadot/phishing": ^0.6.407 "@polkadot/ui-keyring": ^0.86.5 "@reef-chain/util-lib": ^0.4.0 - "@reef-defi/extension-dapp": ^1.0.22 - "@reef-defi/extension-inject": ^1.0.22 + "@reef-defi/extension-dapp": ^1.0.23 + "@reef-defi/extension-inject": ^1.0.23 "@reef-defi/keyring": ^7.8.2 languageName: unknown linkType: soft @@ -4650,7 +4650,7 @@ __metadata: dependencies: "@babel/runtime": ^7.16.0 "@metamask/detect-provider": ^1.2.0 - "@reef-defi/extension-inject": ^1.0.22 + "@reef-defi/extension-inject": ^1.0.23 "@reef-defi/util": ^7.8.2 web3: ^1.6.0 peerDependencies: @@ -4658,12 +4658,12 @@ __metadata: languageName: unknown linkType: soft -"@reef-defi/extension-dapp@^1.0.10, @reef-defi/extension-dapp@^1.0.22, @reef-defi/extension-dapp@^1.0.9, @reef-defi/extension-dapp@workspace:packages/extension-dapp": +"@reef-defi/extension-dapp@^1.0.10, @reef-defi/extension-dapp@^1.0.23, @reef-defi/extension-dapp@^1.0.9, @reef-defi/extension-dapp@workspace:packages/extension-dapp": version: 0.0.0-use.local resolution: "@reef-defi/extension-dapp@workspace:packages/extension-dapp" dependencies: "@babel/runtime": ^7.16.0 - "@reef-defi/extension-inject": ^1.0.22 + "@reef-defi/extension-inject": ^1.0.23 "@reef-defi/util": ^7.8.2 "@reef-defi/util-crypto": ^7.8.2 peerDependencies: @@ -4673,7 +4673,7 @@ __metadata: languageName: unknown linkType: soft -"@reef-defi/extension-inject@^1.0.10, @reef-defi/extension-inject@^1.0.22, @reef-defi/extension-inject@^1.0.9, @reef-defi/extension-inject@workspace:packages/extension-inject": +"@reef-defi/extension-inject@^1.0.10, @reef-defi/extension-inject@^1.0.23, @reef-defi/extension-inject@^1.0.9, @reef-defi/extension-inject@workspace:packages/extension-inject": version: 0.0.0-use.local resolution: "@reef-defi/extension-inject@workspace:packages/extension-inject" dependencies: @@ -4685,7 +4685,7 @@ __metadata: languageName: unknown linkType: soft -"@reef-defi/extension-ui@^1.0.22, @reef-defi/extension-ui@workspace:packages/extension-ui": +"@reef-defi/extension-ui@^1.0.23, @reef-defi/extension-ui@workspace:packages/extension-ui": version: 0.0.0-use.local resolution: "@reef-defi/extension-ui@workspace:packages/extension-ui" dependencies: @@ -4705,9 +4705,9 @@ __metadata: "@polkadot/util": ^7.8.2 "@polkadot/util-crypto": ^7.8.2 "@popperjs/core": ^2.11.5 - "@reef-defi/extension-base": ^1.0.22 - "@reef-defi/extension-dapp": ^1.0.22 - "@reef-defi/extension-inject": ^1.0.22 + "@reef-defi/extension-base": ^1.0.23 + "@reef-defi/extension-dapp": ^1.0.23 + "@reef-defi/extension-inject": ^1.0.23 "@reef-defi/hw-ledger": ^7.8.2 "@reef-defi/keyring": ^7.8.2 "@reef-defi/networks": ^7.8.2 @@ -4752,9 +4752,9 @@ __metadata: dependencies: "@babel/runtime": ^7.16.0 "@reef-defi/dev": ^0.63.20 - "@reef-defi/extension-base": ^1.0.22 - "@reef-defi/extension-inject": ^1.0.22 - "@reef-defi/extension-ui": ^1.0.22 + "@reef-defi/extension-base": ^1.0.23 + "@reef-defi/extension-inject": ^1.0.23 + "@reef-defi/extension-ui": ^1.0.23 babel-loader: ^8.2.3 browser-resolve: ^2.0.0 buffer: ^6.0.3