2022-07-21 19:08:01 +02:00
|
|
|
const {
|
|
|
|
hstBytecode,
|
|
|
|
hstAbi,
|
|
|
|
piggybankBytecode,
|
|
|
|
piggybankAbi,
|
|
|
|
collectiblesAbi,
|
|
|
|
collectiblesBytecode,
|
|
|
|
failingContractAbi,
|
|
|
|
failingContractBytecode,
|
2022-11-30 16:19:45 +01:00
|
|
|
} = require('@metamask/test-dapp/dist/constants.json');
|
2022-07-21 19:08:01 +02:00
|
|
|
|
|
|
|
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,
|
|
|
|
};
|
|
|
|
|
2022-08-09 15:59:20 +02:00
|
|
|
const SMART_CONTRACTS = {
|
|
|
|
HST: 'hst',
|
|
|
|
COLLECTIBLES: 'collectibles',
|
|
|
|
PIGGYBANK: 'piggybank',
|
|
|
|
FAILING: 'failing',
|
|
|
|
};
|
|
|
|
|
2022-07-21 19:08:01 +02:00
|
|
|
const contractConfiguration = {
|
2022-08-09 15:59:20 +02:00
|
|
|
[SMART_CONTRACTS.HST]: hstFactory,
|
|
|
|
[SMART_CONTRACTS.COLLECTIBLES]: collectiblesFactory,
|
|
|
|
[SMART_CONTRACTS.PIGGYBANK]: piggybankFactory,
|
|
|
|
[SMART_CONTRACTS.FAILING]: failingContract,
|
2022-07-21 19:08:01 +02:00
|
|
|
};
|
|
|
|
|
2022-08-09 15:59:20 +02:00
|
|
|
module.exports = { SMART_CONTRACTS, contractConfiguration };
|