provider export improved

revert-603-optF
aniket-engg 4 years ago committed by Aniket
parent aff251ee82
commit 3834ac098f
  1. 2
      libs/remix-simulator/src/index.ts
  2. 4
      libs/remix-simulator/test/accounts.ts
  3. 4
      libs/remix-simulator/test/blocks.ts
  4. 4
      libs/remix-simulator/test/misc.ts
  5. 2
      libs/remix-simulator/tsconfig.lib.json
  6. 2
      tsconfig.json
  7. 2
      workspace.json

@ -1,3 +1,3 @@
import { Provider } from './provider' import { Provider } from './provider'
export default { Provider } export { Provider }

@ -1,12 +1,12 @@
/* global describe, before, it */ /* global describe, before, it */
import Web3 from 'web3' import Web3 from 'web3'
import RemixSim from '../src/index' import { Provider } from '../src/index'
const web3 = new Web3() const web3 = new Web3()
import * as assert from 'assert' import * as assert from 'assert'
describe('Accounts', () => { describe('Accounts', () => {
before(function () { before(function () {
const provider: any = new RemixSim.Provider() const provider: any = new Provider()
web3.setProvider(provider) web3.setProvider(provider)
}) })

@ -1,12 +1,12 @@
/* global describe, before, it */ /* global describe, before, it */
import Web3 from 'web3' import Web3 from 'web3'
import RemixSim from '../src/index' import { Provider } from '../src/index'
const web3 = new Web3() const web3 = new Web3()
import * as assert from 'assert' import * as assert from 'assert'
describe('blocks', () => { describe('blocks', () => {
before(() => { before(() => {
const provider: any = new RemixSim.Provider({ const provider: any = new Provider({
coinbase: '0x0000000000000000000000000000000000000001' coinbase: '0x0000000000000000000000000000000000000001'
}) })
web3.setProvider(provider) web3.setProvider(provider)

@ -1,12 +1,12 @@
/* global describe, before, it */ /* global describe, before, it */
import Web3 from 'web3' import Web3 from 'web3'
import RemixSim from '../src/index' import { Provider } from '../src/index'
const web3 = new Web3() const web3 = new Web3()
import * as assert from 'assert' import * as assert from 'assert'
describe('Misc', () => { describe('Misc', () => {
before(() => { before(() => {
const provider: any = new RemixSim.Provider() const provider: any = new Provider()
web3.setProvider(provider) web3.setProvider(provider)
}) })

@ -4,7 +4,7 @@
"module": "commonjs", "module": "commonjs",
"outDir": "../../dist/out-tsc", "outDir": "../../dist/out-tsc",
"declaration": true, "declaration": true,
"rootDir": "./src", "rootDir": ".",
"types": ["node", "mocha"] "types": ["node", "mocha"]
}, },
"exclude": [ "exclude": [

@ -20,7 +20,7 @@
"@remix-project/remix-astwalker": ["dist/libs/remix-astwalker/index.js"], "@remix-project/remix-astwalker": ["dist/libs/remix-astwalker/index.js"],
"@remix-project/remix-debug": ["dist/libs/remix-debug/index.js"], "@remix-project/remix-debug": ["dist/libs/remix-debug/index.js"],
"@remix-project/remix-lib": ["dist/libs/remix-lib/index.js"], "@remix-project/remix-lib": ["dist/libs/remix-lib/index.js"],
"@remix-project/remix-simulator": ["dist/libs/remix-simulator/index.js"], "@remix-project/remix-simulator": ["dist/libs/remix-simulator/src/index.js"],
"@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"], "@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"],
"@remix-project/remix-tests": ["dist/libs/remix-tests/src/index.js"], "@remix-project/remix-tests": ["dist/libs/remix-tests/src/index.js"],
"@remix-project/remix-url-resolver": ["dist/libs/remix-url-resolver/index.js"], "@remix-project/remix-url-resolver": ["dist/libs/remix-url-resolver/index.js"],

@ -292,7 +292,7 @@
}, },
"remix-simulator": { "remix-simulator": {
"root": "libs/remix-simulator", "root": "libs/remix-simulator",
"sourceRoot": "libs/remix-simulator/src", "sourceRoot": "libs/remix-simulator",
"projectType": "library", "projectType": "library",
"schematics": {}, "schematics": {},
"architect": { "architect": {

Loading…
Cancel
Save