commit
e5e3c3bc99
File diff suppressed because one or more lines are too long
@ -1,17 +0,0 @@ |
||||
import * as packageJson from '../../../../../package.json' |
||||
import { InjectedCustomProvider } from './injected-custom-provider' |
||||
|
||||
const profile = { |
||||
name: 'injected-arbitrum-one-provider', |
||||
displayName: 'Injected Arbitrum One Provider', |
||||
kind: 'provider', |
||||
description: 'injected Arbitrum One Provider', |
||||
methods: ['sendAsync', 'init'], |
||||
version: packageJson.version |
||||
} |
||||
|
||||
export class InjectedArbitrumOneProvider extends InjectedCustomProvider { |
||||
constructor() { |
||||
super(profile, 'Arbitrum One', '0xa4b1', ['https://arb1.arbitrum.io/rpc']) |
||||
} |
||||
} |
@ -1,40 +0,0 @@ |
||||
import * as packageJson from '../../../../../package.json' |
||||
import { InjectedCustomProvider } from './injected-custom-provider' |
||||
import { Web3 } from 'web3' |
||||
|
||||
const profile = { |
||||
name: 'injected-ephemery-testnet-provider', |
||||
displayName: 'Injected Ephemery Testnet Provider', |
||||
kind: 'provider', |
||||
description: 'Injected Ephemery Testnet Provider', |
||||
methods: ['sendAsync', 'init'], |
||||
version: packageJson.version |
||||
} |
||||
|
||||
export class InjectedEphemeryTestnetProvider extends InjectedCustomProvider { |
||||
constructor() { |
||||
super(profile, |
||||
'Ephemery Testnet', |
||||
'', |
||||
['https://otter.bordel.wtf/erigon', 'https://eth.ephemeral.zeus.fyi'], |
||||
{ |
||||
"name": "Ephemery ETH", |
||||
"symbol": "ETH", |
||||
"decimals": 18 |
||||
}, |
||||
[ |
||||
'https://otter.bordel.wtf/', |
||||
'https://explorer.ephemery.dev/' |
||||
] |
||||
) |
||||
} |
||||
|
||||
async init() { |
||||
const chainId = await new Web3(this.rpcUrls[0]).eth.getChainId() |
||||
this.chainId = `0x${chainId.toString(16)}` |
||||
this.chainName = `Ephemery Testnet ${chainId}` |
||||
await super.init() |
||||
return {} |
||||
} |
||||
|
||||
} |
@ -1,17 +0,0 @@ |
||||
import * as packageJson from '../../../../../package.json' |
||||
import { InjectedCustomProvider } from './injected-custom-provider' |
||||
|
||||
const profile = { |
||||
name: 'injected-optimism-provider', |
||||
displayName: 'Injected Optimism Provider', |
||||
kind: 'provider', |
||||
description: 'injected Optimism Provider', |
||||
methods: ['sendAsync', 'init'], |
||||
version: packageJson.version |
||||
} |
||||
|
||||
export class Injected0ptimismProvider extends InjectedCustomProvider { |
||||
constructor() { |
||||
super(profile, 'Optimism', '0xa', ['https://mainnet.optimism.io']) |
||||
} |
||||
} |
@ -1,26 +0,0 @@ |
||||
/* global ethereum */ |
||||
import * as packageJson from '../../../../../package.json' |
||||
import { InjectedProvider } from './injected-provider' |
||||
|
||||
const profile = { |
||||
name: 'injected-trustwallet', |
||||
displayName: 'Trust wallet', |
||||
kind: 'provider', |
||||
description: 'Trust wallet', |
||||
methods: ['sendAsync', 'init'], |
||||
version: packageJson.version |
||||
} |
||||
|
||||
export class InjectedProviderTrustWallet extends InjectedProvider { |
||||
constructor() { |
||||
super(profile) |
||||
} |
||||
|
||||
getInjectedProvider() { |
||||
return (window as any).trustwallet |
||||
} |
||||
|
||||
notFound() { |
||||
return 'Could not find Trust Wallet provider. Please make sure the Trust Wallet extension is active. Download the latest version from https://trustwallet.com/browser-extension' |
||||
} |
||||
} |
@ -1,27 +0,0 @@ |
||||
import * as packageJson from '../../../../../package.json' |
||||
import { InjectedCustomProvider } from './injected-custom-provider' |
||||
|
||||
const profile = { |
||||
name: 'injected-skale-chaos-testnet-provider', |
||||
displayName: 'Injected SKALE Chaos Testnet', |
||||
kind: 'provider', |
||||
description: 'Injected SKALE Chaos Testnet Provider', |
||||
methods: ['sendAsync', 'init'], |
||||
version: packageJson.version |
||||
} |
||||
|
||||
export class InjectedSKALEChaosTestnetProvider extends InjectedCustomProvider { |
||||
|
||||
constructor () { |
||||
super(profile, |
||||
'SKALE Chaos Testnet', |
||||
'0x50877ed6', |
||||
['https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix'], |
||||
{ |
||||
"name": "sFUEL", |
||||
"symbol": "sFUEL", |
||||
"decimals": 18 |
||||
} |
||||
) |
||||
} |
||||
} |
Loading…
Reference in new issue