|
|
|
@ -1,21 +1,17 @@ |
|
|
|
|
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 { Blockchain } from '../../blockchain/blockchain' |
|
|
|
|
import { ethers } from 'ethers' |
|
|
|
|
import { AbstractProvider } from './abstract-provider' |
|
|
|
|
|
|
|
|
|
const profile = { |
|
|
|
|
name: 'basic-http-provider', |
|
|
|
|
displayName: 'Basic Http Provider', |
|
|
|
|
displayName: 'External Http Provider', |
|
|
|
|
kind: 'provider', |
|
|
|
|
description: '', |
|
|
|
|
methods: ['sendAsync'], |
|
|
|
|
version: packageJson.version |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export class BasicHttpProvider extends AbstractProvider { |
|
|
|
|
export class ExternalHttpProvider extends AbstractProvider { |
|
|
|
|
constructor (blockchain) { |
|
|
|
|
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 /> |
|
|
|
|
<br /> |
|
|
|
|
Web3 Provider Endpoint |
|
|
|
|
External HTTP Provider Endpoint |
|
|
|
|
</div> |
|
|
|
|
</> |
|
|
|
|
) |