parent
0a51ed95fc
commit
f6c447ff8d
@ -0,0 +1,12 @@ |
||||
{ |
||||
"extends": "../../.eslintrc", |
||||
"rules": { |
||||
}, |
||||
"env": { |
||||
"browser": true, |
||||
"amd": true, |
||||
"node": true, |
||||
"es6": true |
||||
}, |
||||
"ignorePatterns": ["!**/*"] |
||||
} |
@ -0,0 +1,7 @@ |
||||
# remix-ws-templates |
||||
|
||||
This library was generated with [Nx](https://nx.dev). |
||||
|
||||
## Running unit tests |
||||
|
||||
Run `nx test remix-ws-templates` to execute the unit tests via [Jest](https://jestjs.io). |
@ -1,8 +0,0 @@ |
||||
export default { |
||||
'contracts/SampleERC20.sol': require('./contracts/SampleERC20.sol').default, |
||||
'scripts/deploy_with_ethers.ts': require('./scripts/deploy_with_ethers.ts').default, |
||||
'scripts/deploy_with_web3.ts': require('./scripts/deploy_with_web3.ts').default, |
||||
'scripts/ethers.ts': require('./scripts/ethers.ts').default, |
||||
'scripts/web3.ts': require('./scripts/web3.ts').default, |
||||
'tests/SampleERC20_test.sol': require('./tests/SampleERC20_test.sol').default |
||||
} |
@ -1,3 +0,0 @@ |
||||
export { default as remixDefault } from './remixDefault' |
||||
export { default as erc20 } from './erc20' |
||||
// export { default as blank } from './blank'
|
@ -1,11 +1,11 @@ |
||||
{ |
||||
"name": "remix-ws-templates", |
||||
"name": "@remix-project/remix-ws-templates", |
||||
"version": "1.0.0", |
||||
"description": "", |
||||
"main": "index.js", |
||||
"main": "src/index.js", |
||||
"scripts": { |
||||
"test": "echo \"Error: no test specified\" && exit 1" |
||||
}, |
||||
"author": "Aniket-Engg", |
||||
"license": "ISC" |
||||
} |
||||
} |
@ -0,0 +1,3 @@ |
||||
export { default as remixDefault } from './templates/remixDefault' |
||||
export { default as erc20 } from './templates/erc20' |
||||
export { default as blank } from './templates/blank' |
@ -0,0 +1 @@ |
||||
export default {} |
@ -0,0 +1,18 @@ |
||||
export default async () => { |
||||
// @ts-ignore
|
||||
console.log('------>', await import('raw-loader!./contracts/SampleERC20.sol')) |
||||
return { |
||||
// @ts-ignore
|
||||
'contracts/SampleERC20.sol': (await import('raw-loader!./contracts/SampleERC20.sol')).default, |
||||
// @ts-ignore
|
||||
'scripts/deploy_with_ethers.ts': (await import('raw-loader!./scripts/deploy_with_ethers.ts')).default, |
||||
// @ts-ignore
|
||||
'scripts/deploy_with_web3.ts': (await import('raw-loader!./scripts/deploy_with_web3.ts')).default, |
||||
// @ts-ignore
|
||||
'scripts/ethers.ts': (await import('raw-loader!./scripts/ethers.ts')).default, |
||||
// @ts-ignore
|
||||
'scripts/web3.ts': (await import('raw-loader!./scripts/web3.ts')).default, |
||||
// @ts-ignore
|
||||
'tests/SampleERC20_test.sol': (await import('raw-loader!./tests/SampleERC20_test.sol')).default |
||||
} |
||||
} |
@ -1,4 +1,4 @@ |
||||
import { deploy } from './ethers.ts' |
||||
import { deploy } from './ethers' |
||||
|
||||
(async () => { |
||||
try { |
@ -1,4 +1,4 @@ |
||||
import { deploy } from './web3.ts' |
||||
import { deploy } from './web3' |
||||
|
||||
(async () => { |
||||
try { |
@ -0,0 +1,4 @@ |
||||
declare var remix:any |
||||
declare var ethers:any |
||||
declare var web3:any |
||||
declare var web3Provider:any |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"extends": "../../tsconfig.base.json", |
||||
"compilerOptions": { |
||||
"types": ["node"], |
||||
}, |
||||
"include": ["**/*.ts"] |
||||
} |
@ -0,0 +1,15 @@ |
||||
{ |
||||
"extends": "./tsconfig.json", |
||||
"compilerOptions": { |
||||
"module": "commonjs", |
||||
"outDir": "../../dist/out-tsc", |
||||
"declaration": true, |
||||
"rootDir": "./src", |
||||
"types": ["node"] |
||||
}, |
||||
"exclude": [ |
||||
"**/*.spec.ts", |
||||
"tests/" |
||||
], |
||||
"include": ["**/*.ts", "**/*.sol"] |
||||
} |
Loading…
Reference in new issue