1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/test/e2e/seeder/smart-contracts.js
Nidhi Kumari 33cc8d587a
NFT: Replaced all the instances of collectibles with NFTs (#17741)
* replaced all the instances of collectibles with nfts

* updated actions

* updated e2e seeder

* updated confirm Approve test

* updated test dapp change

* updated test dapp change

* nit fix

* nit fix

* updated casing and snapshots

* updated casinG

* added migrations

* updated ,igration

* updated 078.test

* updated tests for 078 migration

* updated migration

* updated 078 index.js
2023-02-17 00:53:29 +05:30

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 nftsFactory = {
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',
NFTS: 'nfts',
PIGGYBANK: 'piggybank',
FAILING: 'failing',
MULTISIG: 'multisig',
};
const contractConfiguration = {
[SMART_CONTRACTS.HST]: hstFactory,
[SMART_CONTRACTS.NFTS]: nftsFactory,
[SMART_CONTRACTS.PIGGYBANK]: piggybankFactory,
[SMART_CONTRACTS.FAILING]: failingContract,
[SMART_CONTRACTS.MULTISIG]: multisigFactory,
};
module.exports = { SMART_CONTRACTS, contractConfiguration };