1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/test/e2e/seeder/smart-contracts.js
seaona 1dbacc2826
e2e Send to Multisig Wallet (#17565)
* e2e Send to Multisig Wallet

* Update test-dapp dependency to 5.4.0

* Added test-dapp update version to yarn lock

* disable ff

---------

Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2023-02-10 15:35:45 +01:00

60 lines
1.2 KiB
JavaScript

const {
hstBytecode,
hstAbi,
piggybankBytecode,
piggybankAbi,
collectiblesAbi,
collectiblesBytecode,
failingContractAbi,
failingContractBytecode,
multisigAbi,
multisigBytecode,
} = require('@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 multisigFactory = {
bytecode: multisigBytecode,
abi: multisigAbi,
};
const SMART_CONTRACTS = {
HST: 'hst',
COLLECTIBLES: 'collectibles',
PIGGYBANK: 'piggybank',
FAILING: 'failing',
MULTISIG: 'multisig',
};
const contractConfiguration = {
[SMART_CONTRACTS.HST]: hstFactory,
[SMART_CONTRACTS.COLLECTIBLES]: collectiblesFactory,
[SMART_CONTRACTS.PIGGYBANK]: piggybankFactory,
[SMART_CONTRACTS.FAILING]: failingContract,
[SMART_CONTRACTS.MULTISIG]: multisigFactory,
};
module.exports = { SMART_CONTRACTS, contractConfiguration };