mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
* Add some experimental Ganache seeder WIP Refactor GanacheSeeder * Added all smart contract bytecodes and abis * Deploy smart contract by contract name * Clean up and fix tx hash * Removed console logs * Remove last console log * Use node module path for grabbing contract constants * Remove contract deployment example on e2e test * Small refactor for removing extra line Co-authored-by: seaona <mariona@gmx.es>
44 lines
853 B
JavaScript
44 lines
853 B
JavaScript
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 };
|