2022-07-21 19:08:01 +02:00
|
|
|
const {
|
|
|
|
hstBytecode,
|
|
|
|
hstAbi,
|
|
|
|
piggybankBytecode,
|
|
|
|
piggybankAbi,
|
|
|
|
collectiblesAbi,
|
|
|
|
collectiblesBytecode,
|
2023-02-27 17:48:41 +01:00
|
|
|
erc1155Abi,
|
|
|
|
erc1155Bytecode,
|
2022-07-21 19:08:01 +02:00
|
|
|
failingContractAbi,
|
|
|
|
failingContractBytecode,
|
2023-02-10 15:35:45 +01:00
|
|
|
multisigAbi,
|
|
|
|
multisigBytecode,
|
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 = {
|
2023-04-27 13:01:17 +02:00
|
|
|
initialAmount: 10,
|
2022-07-21 19:08:01 +02:00
|
|
|
tokenName: 'TST',
|
|
|
|
decimalUnits: 4,
|
|
|
|
tokenSymbol: 'TST',
|
|
|
|
bytecode: hstBytecode,
|
|
|
|
abi: hstAbi,
|
|
|
|
};
|
|
|
|
|
2023-02-16 20:23:29 +01:00
|
|
|
const nftsFactory = {
|
2022-07-21 19:08:01 +02:00
|
|
|
bytecode: collectiblesBytecode,
|
|
|
|
abi: collectiblesAbi,
|
|
|
|
};
|
|
|
|
|
2023-02-27 17:48:41 +01:00
|
|
|
const erc1155Factory = {
|
|
|
|
bytecode: erc1155Bytecode,
|
|
|
|
abi: erc1155Abi,
|
|
|
|
};
|
|
|
|
|
2022-07-21 19:08:01 +02:00
|
|
|
const piggybankFactory = {
|
|
|
|
bytecode: piggybankBytecode,
|
|
|
|
abi: piggybankAbi,
|
|
|
|
};
|
|
|
|
|
|
|
|
const failingContract = {
|
|
|
|
bytecode: failingContractBytecode,
|
|
|
|
abi: failingContractAbi,
|
|
|
|
};
|
|
|
|
|
2023-02-10 15:35:45 +01:00
|
|
|
const multisigFactory = {
|
|
|
|
bytecode: multisigBytecode,
|
|
|
|
abi: multisigAbi,
|
|
|
|
};
|
|
|
|
|
2022-08-09 15:59:20 +02:00
|
|
|
const SMART_CONTRACTS = {
|
|
|
|
HST: 'hst',
|
2023-02-16 20:23:29 +01:00
|
|
|
NFTS: 'nfts',
|
2023-02-27 17:48:41 +01:00
|
|
|
ERC1155: 'erc1155',
|
2022-08-09 15:59:20 +02:00
|
|
|
PIGGYBANK: 'piggybank',
|
|
|
|
FAILING: 'failing',
|
2023-02-10 15:35:45 +01:00
|
|
|
MULTISIG: 'multisig',
|
2022-08-09 15:59:20 +02:00
|
|
|
};
|
|
|
|
|
2022-07-21 19:08:01 +02:00
|
|
|
const contractConfiguration = {
|
2022-08-09 15:59:20 +02:00
|
|
|
[SMART_CONTRACTS.HST]: hstFactory,
|
2023-02-16 20:23:29 +01:00
|
|
|
[SMART_CONTRACTS.NFTS]: nftsFactory,
|
2023-02-27 17:48:41 +01:00
|
|
|
[SMART_CONTRACTS.ERC1155]: erc1155Factory,
|
2022-08-09 15:59:20 +02:00
|
|
|
[SMART_CONTRACTS.PIGGYBANK]: piggybankFactory,
|
|
|
|
[SMART_CONTRACTS.FAILING]: failingContract,
|
2023-02-10 15:35:45 +01:00
|
|
|
[SMART_CONTRACTS.MULTISIG]: multisigFactory,
|
2022-07-21 19:08:01 +02:00
|
|
|
};
|
|
|
|
|
2022-08-09 15:59:20 +02:00
|
|
|
module.exports = { SMART_CONTRACTS, contractConfiguration };
|