|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
import { erc721 } from '@openzeppelin/wizard'; |
|
|
|
|
|
|
|
|
|
export default async (opts) => { |
|
|
|
|
return { |
|
|
|
|
const filesObj = { |
|
|
|
|
'contracts/MyToken.sol': erc721.print({ ...erc721.defaults, upgradeable: opts.upgradeable}), |
|
|
|
|
// @ts-ignore
|
|
|
|
|
'scripts/deploy_with_ethers.ts': (await import('!!raw-loader!./scripts/deploy_with_ethers.ts')).default, |
|
|
|
@ -10,8 +10,12 @@ export default async (opts) => { |
|
|
|
|
// @ts-ignore
|
|
|
|
|
'scripts/ethers-lib.ts': (await import('!!raw-loader!./scripts/ethers-lib.ts')).default, |
|
|
|
|
// @ts-ignore
|
|
|
|
|
'scripts/web3-lib.ts': (await import('!!raw-loader!./scripts/web3-lib.ts')).default, |
|
|
|
|
// @ts-ignore
|
|
|
|
|
'tests/MyToken_test.sol': (await import('raw-loader!./tests/MyToken_test.sol')).default |
|
|
|
|
'scripts/web3-lib.ts': (await import('!!raw-loader!./scripts/web3-lib.ts')).default |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// If no options is selected, opts.upgradeable will be undefined
|
|
|
|
|
// We do not show test file for upgradeable contract
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
if (opts.upgradeable === undefined || !opts.upgradeable) filesObj['tests/MyToken_test.sol'] = (await import('raw-loader!./tests/MyToken_test.sol')).default |
|
|
|
|
return filesObj |
|
|
|
|
} |