Advertisement
ynifor

Untitled

May 24th, 2023 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.63 KB | None | 0 0
  1. ^Cbatman@pop-os:~/Documents/work/file-market/sol-contracts$ yarn hardhat test
  2. mumbai cfg: {
  3. url: 'https://matic-mumbai.chainstacklabs.com/',
  4. chainId: 80001,
  5. accounts: []
  6. }
  7. hyperspace cfg: {
  8. url: 'https://api.hyperspace.node.glif.io/rpc/v1',
  9. chainId: 3141,
  10. accounts: [],
  11. timeout: 1000000000
  12. }
  13. mainnet cfg: {
  14. url: 'https://filecoin-mainnet.chainstacklabs.com/rpc/v1',
  15. chainId: 314,
  16. accounts: [],
  17. timeout: 1000000000
  18. }
  19.  
  20.  
  21. Success transfer
  22. ✔ mint (528ms)
  23. ✔ init transfer (470ms)
  24. ✔ set public key (257ms)
  25. ✔ set encrypted password (247ms)
  26. ✔ finalize transfer (771ms)
  27. ✔ self collections should be not empty after transfer (60ms)
  28. ✔ self tokens should be correct after transfer (87ms)
  29.  
  30. Transfer with fraud
  31. ✔ mint (329ms)
  32. ✔ init transfer (314ms)
  33. ✔ set public key (206ms)
  34. ✔ set encrypted password (184ms)
  35. ✔ report fraud (520ms)
  36. ✔ fraud approved (872ms)
  37.  
  38. Trade token
  39. ✔ mint (414ms)
  40. ✔ approve (172ms)
  41. ✔ create order (563ms)
  42. ✔ fulfill order (316ms)
  43. ✔ set encrypted password (199ms)
  44. ✔ finalize transfer (661ms)
  45.  
  46. Trade token with whitelist
  47. ✔ mint (628ms)
  48. ✔ approve (139ms)
  49. ✔ create order (872ms)
  50. ✔ fulfill order no whitelist (38ms)
  51. ✔ set whitelist (70ms)
  52. ✔ whitelist deadline exceeds
  53. ✔ fulfill with whitelist deadline exceeds (399ms)
  54. ✔ set whitelist (150ms)
  55. ✔ invalid signature
  56. ✔ fulfill with whitelist disabled
  57. ✔ fulfill whitelist wrong price
  58. ✔ fulfill whitelist success (463ms)
  59.  
  60. Trade token with fraud not approved
  61. ✔ mint (302ms)
  62. ✔ approve (145ms)
  63. ✔ create order (418ms)
  64. ✔ fulfill order (282ms)
  65. ✔ set encrypted password (199ms)
  66. ✔ report fraud (396ms)
  67. ✔ fraud approved (727ms)
  68.  
  69. Trade token with fraud approved
  70. ✔ mint (315ms)
  71. ✔ approve (149ms)
  72. ✔ create order (440ms)
  73. ✔ fulfill order (281ms)
  74. ✔ set encrypted password (192ms)
  75. ✔ report fraud (383ms)
  76. ✔ fraud approved (398ms)
  77.  
  78. Trade token
  79. ✔ set fee
  80. ✔ mint (103ms)
  81. ✔ approve (53ms)
  82. ✔ create order (510ms)
  83. ✔ fulfill order (324ms)
  84. ✔ set encrypted password (79ms)
  85. ✔ finalize transfer (636ms)
  86. ✔ withdraw fee (142ms)
  87.  
  88. Trade token with whitelist
  89. ✔ set fee
  90. ✔ mint (179ms)
  91. ✔ approve (40ms)
  92. ✔ create order (879ms)
  93. 1) fulfill order no whitelist
  94. 2) set whitelist
  95. 3) whitelist deadline exceeds
  96. 4) fulfill with whitelist deadline exceeds
  97. 5) set whitelist
  98. 6) invalid signature
  99. 7) fulfill with whitelist disabled
  100. 8) fulfill whitelist wrong price
  101. 9) fulfill whitelist success
  102.  
  103. Trade token with fraud not approved
  104. ✔ set fee
  105. ✔ mint (99ms)
  106. ✔ approve (51ms)
  107. ✔ create order (479ms)
  108. ✔ fulfill order (289ms)
  109. ✔ set encrypted password (73ms)
  110. ✔ report fraud (408ms)
  111. ✔ fraud not approved (649ms)
  112.  
  113. Trade token with fraud approved
  114. ✔ set fee
  115. ✔ mint (104ms)
  116. ✔ approve (38ms)
  117. ✔ create order (514ms)
  118. ✔ fulfill order (285ms)
  119. ✔ set encrypted password (72ms)
  120. ✔ report fraud (405ms)
  121. ✔ fraud approved (401ms)
  122.  
  123. Success transfer
  124. ✔ mint (61ms)
  125. ✔ mint not owner (104ms)
  126. ✔ init transfer (113ms)
  127. ✔ set public key (73ms)
  128. ✔ set encrypted password (62ms)
  129. ✔ finalize transfer (425ms)
  130. ✔ ownership should should change after transfer
  131.  
  132. Transfer with fraud
  133. ✔ mint (69ms)
  134. ✔ init transfer (107ms)
  135. ✔ set public key (73ms)
  136. ✔ set encrypted password (69ms)
  137. ✔ report fraud (454ms)
  138. ✔ fraud approved (409ms)
  139.  
  140.  
  141. 86 passing (31s)
  142. 9 failing
  143.  
  144. 1) Trade token with whitelist
  145. fulfill order no whitelist:
  146. InvalidInputError: Timestamp 1684996467 is lower than previous block's timestamp 1684996526
  147. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  148. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  149. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  150. 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)
  151. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:208:5)
  152.  
  153. 2) Trade token with whitelist
  154. set whitelist:
  155. InvalidInputError: Timestamp 1684996470 is lower than previous block's timestamp 1684996526
  156. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  157. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  158. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  159. 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)
  160. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:227:5)
  161.  
  162. 3) Trade token with whitelist
  163. whitelist deadline exceeds:
  164. InvalidInputError: Timestamp 1684996473 is lower than previous block's timestamp 1684996526
  165. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  166. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  167. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  168. 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)
  169. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:247:5)
  170.  
  171. 4) Trade token with whitelist
  172. fulfill with whitelist deadline exceeds:
  173. InvalidInputError: Timestamp 1684996476 is lower than previous block's timestamp 1684996526
  174. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  175. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  176. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  177. 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)
  178. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:267:5)
  179.  
  180. 5) Trade token with whitelist
  181. set whitelist:
  182. InvalidInputError: Timestamp 1684996479 is lower than previous block's timestamp 1684996526
  183. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  184. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  185. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  186. 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)
  187. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:280:5)
  188.  
  189. 6) Trade token with whitelist
  190. invalid signature:
  191. InvalidInputError: Timestamp 1684996482 is lower than previous block's timestamp 1684996526
  192. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  193. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  194. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  195. 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)
  196. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:301:5)
  197.  
  198. 7) Trade token with whitelist
  199. fulfill with whitelist disabled:
  200. InvalidInputError: Timestamp 1684996485 is lower than previous block's timestamp 1684996526
  201. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  202. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  203. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  204. 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)
  205. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:321:5)
  206.  
  207. 8) Trade token with whitelist
  208. fulfill whitelist wrong price:
  209. InvalidInputError: Timestamp 1684996488 is lower than previous block's timestamp 1684996526
  210. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  211. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  212. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  213. 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)
  214. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:332:5)
  215.  
  216. 9) Trade token with whitelist
  217. fulfill whitelist success:
  218. InvalidInputError: Timestamp 1684996491 is lower than previous block's timestamp 1684996526
  219. at EvmModule._mineAction (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/modules/evm.ts:131:15)
  220. at processTicksAndRejections (node:internal/process/task_queues:95:5)
  221. at async HardhatNetworkProvider.request (/home/batman/Documents/work/file-market/sol-contracts/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
  222. 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)
  223. at async Context.<anonymous> (/home/batman/Documents/work/file-market/sol-contracts/test/exchangeV2.ts:353:5)
  224.  
  225.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement