Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^Cbatman@pop-os:~/Documents/work/file-market/sol-contracts$ yarn hardhat test
- mumbai cfg: {
- url: 'https://matic-mumbai.chainstacklabs.com/',
- chainId: 80001,
- accounts: []
- }
- hyperspace cfg: {
- url: 'https://api.hyperspace.node.glif.io/rpc/v1',
- chainId: 3141,
- accounts: [],
- timeout: 1000000000
- }
- mainnet cfg: {
- url: 'https://filecoin-mainnet.chainstacklabs.com/rpc/v1',
- chainId: 314,
- accounts: [],
- timeout: 1000000000
- }
- Success transfer
- ✔ mint (528ms)
- ✔ init transfer (470ms)
- ✔ set public key (257ms)
- ✔ set encrypted password (247ms)
- ✔ finalize transfer (771ms)
- ✔ self collections should be not empty after transfer (60ms)
- ✔ self tokens should be correct after transfer (87ms)
- Transfer with fraud
- ✔ mint (329ms)
- ✔ init transfer (314ms)
- ✔ set public key (206ms)
- ✔ set encrypted password (184ms)
- ✔ report fraud (520ms)
- ✔ fraud approved (872ms)
- Trade token
- ✔ mint (414ms)
- ✔ approve (172ms)
- ✔ create order (563ms)
- ✔ fulfill order (316ms)
- ✔ set encrypted password (199ms)
- ✔ finalize transfer (661ms)
- Trade token with whitelist
- ✔ mint (628ms)
- ✔ approve (139ms)
- ✔ create order (872ms)
- ✔ fulfill order no whitelist (38ms)
- ✔ set whitelist (70ms)
- ✔ whitelist deadline exceeds
- ✔ fulfill with whitelist deadline exceeds (399ms)
- ✔ set whitelist (150ms)
- ✔ invalid signature
- ✔ fulfill with whitelist disabled
- ✔ fulfill whitelist wrong price
- ✔ fulfill whitelist success (463ms)
- Trade token with fraud not approved
- ✔ mint (302ms)
- ✔ approve (145ms)
- ✔ create order (418ms)
- ✔ fulfill order (282ms)
- ✔ set encrypted password (199ms)
- ✔ report fraud (396ms)
- ✔ fraud approved (727ms)
- Trade token with fraud approved
- ✔ mint (315ms)
- ✔ approve (149ms)
- ✔ create order (440ms)
- ✔ fulfill order (281ms)
- ✔ set encrypted password (192ms)
- ✔ report fraud (383ms)
- ✔ fraud approved (398ms)
- Trade token
- ✔ set fee
- ✔ mint (103ms)
- ✔ approve (53ms)
- ✔ create order (510ms)
- ✔ fulfill order (324ms)
- ✔ set encrypted password (79ms)
- ✔ finalize transfer (636ms)
- ✔ withdraw fee (142ms)
- Trade token with whitelist
- ✔ set fee
- ✔ mint (179ms)
- ✔ approve (40ms)
- ✔ create order (879ms)
- 1) fulfill order no whitelist
- 2) set whitelist
- 3) whitelist deadline exceeds
- 4) fulfill with whitelist deadline exceeds
- 5) set whitelist
- 6) invalid signature
- 7) fulfill with whitelist disabled
- 8) fulfill whitelist wrong price
- 9) fulfill whitelist success
- Trade token with fraud not approved
- ✔ set fee
- ✔ mint (99ms)
- ✔ approve (51ms)
- ✔ create order (479ms)
- ✔ fulfill order (289ms)
- ✔ set encrypted password (73ms)
- ✔ report fraud (408ms)
- ✔ fraud not approved (649ms)
- Trade token with fraud approved
- ✔ set fee
- ✔ mint (104ms)
- ✔ approve (38ms)
- ✔ create order (514ms)
- ✔ fulfill order (285ms)
- ✔ set encrypted password (72ms)
- ✔ report fraud (405ms)
- ✔ fraud approved (401ms)
- Success transfer
- ✔ mint (61ms)
- ✔ mint not owner (104ms)
- ✔ init transfer (113ms)
- ✔ set public key (73ms)
- ✔ set encrypted password (62ms)
- ✔ finalize transfer (425ms)
- ✔ ownership should should change after transfer
- Transfer with fraud
- ✔ mint (69ms)
- ✔ init transfer (107ms)
- ✔ set public key (73ms)
- ✔ set encrypted password (69ms)
- ✔ report fraud (454ms)
- ✔ fraud approved (409ms)
- 86 passing (31s)
- 9 failing
- 1) Trade token with whitelist
- fulfill order no whitelist:
- InvalidInputError: Timestamp 1684996467 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:208:5)
- 2) Trade token with whitelist
- set whitelist:
- InvalidInputError: Timestamp 1684996470 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:227:5)
- 3) Trade token with whitelist
- whitelist deadline exceeds:
- InvalidInputError: Timestamp 1684996473 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:247:5)
- 4) Trade token with whitelist
- fulfill with whitelist deadline exceeds:
- InvalidInputError: Timestamp 1684996476 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:267:5)
- 5) Trade token with whitelist
- set whitelist:
- InvalidInputError: Timestamp 1684996479 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:280:5)
- 6) Trade token with whitelist
- invalid signature:
- InvalidInputError: Timestamp 1684996482 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:301:5)
- 7) Trade token with whitelist
- fulfill with whitelist disabled:
- InvalidInputError: Timestamp 1684996485 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:321:5)
- 8) Trade token with whitelist
- fulfill whitelist wrong price:
- InvalidInputError: Timestamp 1684996488 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:332:5)
- 9) Trade token with whitelist
- fulfill whitelist success:
- InvalidInputError: Timestamp 1684996491 is lower than previous block's timestamp 1684996526
- at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
- at processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
- at async EthersProviderWrapper.send (/home/batman/Documents/work/file-market/sol-contracts/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
- at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:353:5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement