diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..dff8f5a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: yarn --frozen-lockfile + - run: yarn build + - run: yarn publish --no-git-tag-version --new-version ${{ github.event.release.tag_name }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/src/chains.ts b/src/chains.ts index 0da494d..3a20a98 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -209,15 +209,18 @@ const CHAIN_INFORMATION = new Map([ testnet: true, }, ], - [250, { - id: 250, - nativeCurrency: FTM, - type: 'fantom', - fullName: 'Fantom Opera Mainnet', - shortName: 'FTM', - explorerUrl: `https://ftmscan.com/`, - testnet: false - }], + [ + 250, + { + id: 250, + nativeCurrency: FTM, + type: 'fantom', + fullName: 'Fantom Opera Mainnet', + shortName: 'FTM', + explorerUrl: `https://ftmscan.com/`, + testnet: false, + }, + ], [ 1666600000, { diff --git a/src/images/Cipher.png b/src/images/Cipher.png new file mode 100644 index 0000000..e9d745a Binary files /dev/null and b/src/images/Cipher.png differ diff --git a/src/images/Fortmatic.svg b/src/images/Fortmatic.svg new file mode 100644 index 0000000..33504a7 --- /dev/null +++ b/src/images/Fortmatic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/Frame.png b/src/images/Frame.png new file mode 100644 index 0000000..2ffae33 Binary files /dev/null and b/src/images/Frame.png differ diff --git a/src/images/Metamask.png b/src/images/Metamask.png new file mode 100644 index 0000000..dddc0a6 Binary files /dev/null and b/src/images/Metamask.png differ diff --git a/src/images/Portis.svg b/src/images/Portis.svg new file mode 100644 index 0000000..ee7c702 --- /dev/null +++ b/src/images/Portis.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/Status.png b/src/images/Status.png new file mode 100644 index 0000000..18a12aa Binary files /dev/null and b/src/images/Status.png differ diff --git a/src/images/index.ts b/src/images/index.ts new file mode 100644 index 0000000..ec3f06e --- /dev/null +++ b/src/images/index.ts @@ -0,0 +1,8 @@ +export { default as Cipher } from './Cipher.png' +export { default as Fortmatic } from './Fortmatic.svg' +export { default as Frame } from './Frame.png' +export { default as Metamask } from './Metamask.png' +export { default as Portis } from './Portis.svg' +export { default as Status } from './Status.png' +export { default as wallet } from './wallet.svg' +export { default as walletconnect } from './walletconnect.png' diff --git a/src/images/wallet.svg b/src/images/wallet.svg new file mode 100644 index 0000000..42540fa --- /dev/null +++ b/src/images/wallet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/walletconnect.png b/src/images/walletconnect.png new file mode 100644 index 0000000..18c2f7b Binary files /dev/null and b/src/images/walletconnect.png differ diff --git a/src/providers/index.tsx b/src/providers/index.tsx index e3b362d..6e2e91c 100644 --- a/src/providers/index.tsx +++ b/src/providers/index.tsx @@ -1,4 +1,5 @@ import { Provider } from '../types' +import * as Images from '../images/index' declare global { interface Window { @@ -15,9 +16,6 @@ function isElectron() { ) } -const BASE_URL = - 'https://storageapi.fleek.co/aragonone-team-bucket/wallet-icons' - // See the corresponding prop type, EthereumProviderType, in prop-types.js. const PROVIDERS = new Map( [ @@ -25,7 +23,7 @@ const PROVIDERS = new Map( id: 'frame', name: 'Frame', type: 'Desktop', - image: `${BASE_URL}/Frame.png`, + image: Images.Frame, strings: { 'your Ethereum wallet': 'Frame', }, @@ -34,7 +32,7 @@ const PROVIDERS = new Map( id: 'metamask', name: 'Metamask', type: 'Desktop', - image: `${BASE_URL}/Metamask.png`, + image: Images.Metamask, strings: { 'your Ethereum wallet': 'Metamask', }, @@ -43,7 +41,7 @@ const PROVIDERS = new Map( id: 'status', name: 'Status', type: 'Mobile', - image: `${BASE_URL}/Status.png`, + image: Images.Status, strings: { 'your Ethereum wallet': 'Status', }, @@ -52,7 +50,7 @@ const PROVIDERS = new Map( id: 'cipher', name: 'Cipher', type: 'Mobile', - image: `${BASE_URL}/Cipher.png`, + image: Images.Cipher, strings: { 'your Ethereum wallet': 'Cipher', }, @@ -61,7 +59,7 @@ const PROVIDERS = new Map( id: 'fortmatic', name: 'Fortmatic', type: 'Any', - image: `${BASE_URL}/Fortmatic.svg`, + image: Images.Fortmatic, strings: { 'your Ethereum wallet': 'Fortmatic', }, @@ -70,7 +68,7 @@ const PROVIDERS = new Map( id: 'portis', name: 'Portis', type: 'Any', - image: `${BASE_URL}/Portis.svg`, + image: Images.Portis, strings: { 'your Ethereum wallet': 'Portis', }, @@ -79,7 +77,7 @@ const PROVIDERS = new Map( id: 'walletconnect', name: 'WalletConnect', type: 'Any', - image: `${BASE_URL}/walletconnect.png`, + image: Images.walletconnect, strings: { 'your Ethereum wallet': 'WalletConnect', }, @@ -88,7 +86,7 @@ const PROVIDERS = new Map( id: 'unknown', name: 'Unknown', type: 'Desktop', - image: `${BASE_URL}/wallet.svg`, + image: Images.wallet, strings: { 'your Ethereum wallet': 'your wallet', },