You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
853 B
44 lines
853 B
2 years ago
|
const {
|
||
|
hstBytecode,
|
||
|
hstAbi,
|
||
|
piggybankBytecode,
|
||
|
piggybankAbi,
|
||
|
collectiblesAbi,
|
||
|
collectiblesBytecode,
|
||
|
failingContractAbi,
|
||
|
failingContractBytecode,
|
||
|
} = require('../../../node_modules/@metamask/test-dapp/dist/constants.json');
|
||
|
|
||
|
const hstFactory = {
|
||
|
initialAmount: 100,
|
||
|
tokenName: 'TST',
|
||
|
decimalUnits: 4,
|
||
|
tokenSymbol: 'TST',
|
||
|
bytecode: hstBytecode,
|
||
|
abi: hstAbi,
|
||
|
};
|
||
|
|
||
|
const collectiblesFactory = {
|
||
|
bytecode: collectiblesBytecode,
|
||
|
abi: collectiblesAbi,
|
||
|
};
|
||
|
|
||
|
const piggybankFactory = {
|
||
|
bytecode: piggybankBytecode,
|
||
|
abi: piggybankAbi,
|
||
|
};
|
||
|
|
||
|
const failingContract = {
|
||
|
bytecode: failingContractBytecode,
|
||
|
abi: failingContractAbi,
|
||
|
};
|
||
|
|
||
|
const contractConfiguration = {
|
||
|
hst: hstFactory,
|
||
|
collectibles: collectiblesFactory,
|
||
|
piggybank: piggybankFactory,
|
||
|
failing: failingContract,
|
||
|
};
|
||
|
|
||
|
module.exports = { contractConfiguration };
|