|
|
@ -1,21 +1,17 @@ |
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
import { Plugin } from '@remixproject/engine' |
|
|
|
|
|
|
|
import { AppModal, AlertModal, ModalTypes } from '@remix-ui/app' |
|
|
|
|
|
|
|
import React from 'react' // eslint-disable-line
|
|
|
|
import React from 'react' // eslint-disable-line
|
|
|
|
import { Blockchain } from '../../blockchain/blockchain' |
|
|
|
|
|
|
|
import { ethers } from 'ethers' |
|
|
|
|
|
|
|
import { AbstractProvider } from './abstract-provider' |
|
|
|
import { AbstractProvider } from './abstract-provider' |
|
|
|
|
|
|
|
|
|
|
|
const profile = { |
|
|
|
const profile = { |
|
|
|
name: 'basic-http-provider', |
|
|
|
name: 'basic-http-provider', |
|
|
|
displayName: 'Basic Http Provider', |
|
|
|
displayName: 'External Http Provider', |
|
|
|
kind: 'provider', |
|
|
|
kind: 'provider', |
|
|
|
description: '', |
|
|
|
description: '', |
|
|
|
methods: ['sendAsync'], |
|
|
|
methods: ['sendAsync'], |
|
|
|
version: packageJson.version |
|
|
|
version: packageJson.version |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export class BasicHttpProvider extends AbstractProvider { |
|
|
|
export class ExternalHttpProvider extends AbstractProvider { |
|
|
|
constructor (blockchain) { |
|
|
|
constructor (blockchain) { |
|
|
|
super(profile, blockchain, 'http://127.0.0.1:8545') |
|
|
|
super(profile, blockchain, 'http://127.0.0.1:8545') |
|
|
|
} |
|
|
|
} |
|
|
@ -37,7 +33,7 @@ export class BasicHttpProvider extends AbstractProvider { |
|
|
|
<br />For more info: <a href="https://remix-ide.readthedocs.io/en/latest/run.html#more-about-web3-provider" target="_blank" rel="noreferrer">Remix Docs on Web3 Provider</a> |
|
|
|
<br />For more info: <a href="https://remix-ide.readthedocs.io/en/latest/run.html#more-about-web3-provider" target="_blank" rel="noreferrer">Remix Docs on Web3 Provider</a> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
Web3 Provider Endpoint |
|
|
|
External HTTP Provider Endpoint |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</> |
|
|
|
</> |
|
|
|
) |
|
|
|
) |