RequestNetwork / requestNetwork

A JavaScript library for interacting with the Request Network protocol
https://docs.request.network/
MIT License
380 stars 71 forks source link

Running the tests locally fails (`yarn run test`) - add docker-compose to run the required services #1021

Open MantisClone opened 1 year ago

MantisClone commented 1 year ago

Mirrored in DeWork: dw-59

Problem

Running the tests per instructions in the top-level README yields errors. This is a pain point for external contributors, but not for internal contributors.

Desired Behavior

The top-level README should have adequate instructions to easily run the full test suite.

Required services:

Proposed Solution

Test if the docker-compose in the docker-images repo works. Fix it if it doesn't work.

Full Logs

full build log

``` mantisclone@mantisclone-Inspiron-7620:~/projects/requestNetwork$ yarn run test yarn run v1.22.19 $ lerna run test lerna notice cli v3.22.1 lerna info versioning independent lerna info Executing command in 19 packages: "yarn run test" lerna info run Ran npm script 'test' in '@requestnetwork/data-format' in 1.9s: $ jest ------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ------------------------|---------|----------|---------|---------|------------------- All files | 100 | 93.75 | 100 | 100 | src | 100 | 93.75 | 100 | 100 | index.ts | 100 | 93.75 | 100 | 100 | 27 src/format | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | src/format/rnf_invoice | 100 | 93.75 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | utils.ts | 100 | 93.75 | 100 | 100 | 15 ------------------------|---------|----------|---------|---------|------------------- lerna info run Ran npm script 'test' in '@requestnetwork/multi-format' in 2.0s: $ jest -------------------------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------------------------------|---------|----------|---------|---------|------------------- All files | 98.02 | 92.86 | 100 | 97.96 | src | 96.36 | 90 | 100 | 96.15 | group-multi-format.ts | 88.24 | 50 | 100 | 86.67 | 60,80 hexadecimal-serializable-multi-format.ts | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | serializable-multi-format.ts | 100 | 100 | 100 | 100 | src/encryption | 100 | 100 | 100 | 100 | aes256-cbc-format.ts | 100 | 100 | 100 | 100 | aes256-gcm-format.ts | 100 | 100 | 100 | 100 | ecies-format.ts | 100 | 100 | 100 | 100 | encryption-format.ts | 100 | 100 | 100 | 100 | src/hash | 100 | 100 | 100 | 100 | hash-format.ts | 100 | 100 | 100 | 100 | keccak256-format.ts | 100 | 100 | 100 | 100 | src/identity | 100 | 100 | 100 | 100 | ethereum-address-format.ts | 100 | 100 | 100 | 100 | identity-format.ts | 100 | 100 | 100 | 100 | src/plain | 100 | 100 | 100 | 100 | plain-format.ts | 100 | 100 | 100 | 100 | plain-text-format.ts | 100 | 100 | 100 | 100 | -------------------------------------------|---------|----------|---------|---------|------------------- lerna info run Ran npm script 'test' in '@requestnetwork/utils' in 3.4s: $ jest -----------------------|---------|----------|---------|---------|--------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -----------------------|---------|----------|---------|---------|--------------------------------- All files | 85.24 | 70.56 | 86.67 | 84.9 | src | 83.09 | 67.88 | 83.05 | 82.58 | amount.ts | 100 | 100 | 100 | 100 | bignumber.ts | 100 | 100 | 100 | 100 | cached-throttle.ts | 91.67 | 83.33 | 100 | 90.91 | 13 crypto.ts | 100 | 100 | 100 | 100 | encryption.ts | 100 | 100 | 100 | 100 | estimate-gas-fees.ts | 36.36 | 0 | 0 | 36.36 | 26-40 identity.ts | 50 | 50 | 66.67 | 50 | 51-57 index.ts | 100 | 100 | 100 | 100 | providers.ts | 26.83 | 0 | 0 | 26.83 | 20,26,52-98,112,127-131,135-146 retry.ts | 100 | 100 | 100 | 100 | signature.ts | 93.33 | 85.71 | 100 | 93.33 | 100,102 simple-logger.ts | 100 | 93.33 | 100 | 100 | 26 utils.ts | 97.3 | 83.33 | 93.75 | 97.06 | 161 src/crypto | 91.95 | 79.07 | 100 | 91.95 | crypto-wrapper.ts | 96.88 | 50 | 100 | 96.88 | 139 ec-utils.ts | 89.09 | 80.49 | 100 | 89.09 | 37,59,82,122,154,189 -----------------------|---------|----------|---------|---------|--------------------------------- lerna info run Ran npm script 'test' in '@requestnetwork/web3-signature' in 2.6s: $ jest console.info secp256k1 unavailable, reverting to browser version at Object. (../../node_modules/eccrypto/index.js:23:13) ----------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------------|---------|----------|---------|---------|------------------- All files | 88.46 | 80 | 100 | 88.46 | web3-signature-provider.ts | 88.46 | 80 | 100 | 88.46 | 24,55,65 ----------------------------|---------|----------|---------|---------|------------------- lerna info run Ran npm script 'test' in '@requestnetwork/data-access' in 2.9s: $ jest ---------------------------|---------|----------|---------|---------|------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ---------------------------|---------|----------|---------|---------|------------------------- All files | 95.82 | 87.16 | 97.12 | 95.69 | src | 97.95 | 88.51 | 98.63 | 97.88 | block.ts | 100 | 100 | 100 | 100 | data-access.ts | 96.32 | 75 | 97.22 | 96.18 | 165-170,340,389,521 ignored-location.ts | 100 | 100 | 100 | 100 | interval-timer.ts | 100 | 81.82 | 100 | 100 | 61,68 src/transaction-index | 91.3 | 85.25 | 93.55 | 91.07 | index.ts | 100 | 100 | 100 | 100 | location-by-topic.ts | 100 | 100 | 100 | 100 | timestamp-by-location.ts | 90.48 | 95.24 | 87.5 | 90.48 | 48,62 transaction-index.ts | 87.88 | 73.33 | 92.86 | 87.69 | 61,78-83,94,111,144,184 ---------------------------|---------|----------|---------|---------|------------------------- lerna info run Ran npm script 'test' in '@requestnetwork/epk-signature' in 3.2s: $ jest console.info secp256k1 unavailable, reverting to browser version at Object. (../../node_modules/eccrypto/index.js:23:13) --------------------------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --------------------------------------------|---------|----------|---------|---------|------------------- All files | 100 | 90 | 100 | 100 | ethereum-private-key-signature-provider.ts | 100 | 90 | 100 | 100 | 26 --------------------------------------------|---------|----------|---------|---------|------------------- lerna info run Ran npm script 'test' in '@requestnetwork/epk-decryption' in 3.6s: $ jest console.info secp256k1 unavailable, reverting to browser version at Object. (../../node_modules/eccrypto/index.js:23:13) ---------------------------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ---------------------------------------------|---------|----------|---------|---------|------------------- All files | 100 | 91.67 | 100 | 100 | ethereum-private-key-decryption-provider.ts | 100 | 91.67 | 100 | 100 | 25 ---------------------------------------------|---------|----------|---------|---------|------------------- lerna info run Ran npm script 'test' in '@requestnetwork/transaction-manager' in 10.9s: $ jest ---------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ---------------------------|---------|----------|---------|---------|------------------- All files | 97.51 | 90.11 | 97.67 | 97.48 | src | 98.25 | 91.95 | 97.5 | 98.22 | channel-parser.ts | 100 | 100 | 100 | 100 | clear-transaction.ts | 100 | 100 | 100 | 100 | encrypted-transaction.ts | 96.43 | 75 | 100 | 96.43 | 63 index.ts | 100 | 100 | 100 | 100 | transaction-manager.ts | 96.3 | 88.89 | 90 | 96.3 | 94,137 transactions-factory.ts | 100 | 100 | 100 | 100 | transactions-parser.ts | 97.87 | 91.11 | 100 | 97.87 | 110 test/unit/utils | 84.62 | 50 | 100 | 84.62 | test-data.ts | 84.62 | 50 | 100 | 84.62 | 70,74 ---------------------------|---------|----------|---------|---------|------------------- lerna info run Ran npm script 'test' in '@requestnetwork/currency' in 21.1s: $ jest ----------------------------|---------|----------|---------|---------|--------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------------|---------|----------|---------|---------|--------------------------------- All files | 88.53 | 80.74 | 74.07 | 87.94 | src | 85.8 | 80.74 | 69.57 | 84.71 | conversion-aggregators.ts | 95 | 25 | 100 | 95 | 84 currency-utils.ts | 77.78 | 78.95 | 20 | 72.73 | 28,45,55,62,66,70 currencyManager.ts | 90.72 | 85.58 | 87.5 | 90.91 | 122,133-135,144,147,168,179,252 errors.ts | 18.18 | 0 | 0 | 18.18 | 6-11,19-24 getHash.ts | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 20 | 100 | iso4217.ts | 100 | 100 | 100 | 100 | native.ts | 100 | 100 | 100 | 100 | src/erc20 | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | src/erc20/networks | 100 | 100 | 100 | 100 | avalanche.ts | 100 | 100 | 100 | 100 | bsc.ts | 100 | 100 | 100 | 100 | bsctest.ts | 100 | 100 | 100 | 100 | celo.ts | 100 | 100 | 100 | 100 | fantom.ts | 100 | 100 | 100 | 100 | goerli.ts | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | mainnet.ts | 100 | 100 | 100 | 100 | matic.ts | 100 | 100 | 100 | 100 | moonbeam.ts | 100 | 100 | 100 | 100 | optimism.ts | 100 | 100 | 100 | 100 | rinkeby.ts | 100 | 100 | 100 | 100 | xdai.ts | 100 | 100 | 100 | 100 | src/erc777 | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | src/erc777/networks | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | rinkeby.ts | 100 | 100 | 100 | 100 | ----------------------------|---------|----------|---------|---------|--------------------------------- lerna info run Ran npm script 'test' in '@requestnetwork/advanced-logic' in 8.8s: $ jest -------------------------------------------------------|---------|----------|---------|---------|--------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------------------------------------------|---------|----------|---------|---------|--------------------- All files | 97.18 | 90.5 | 99 | 97.17 | src | 100 | 96.97 | 100 | 100 | advanced-logic.ts | 100 | 96.97 | 100 | 100 | 52 index.ts | 100 | 100 | 100 | 100 | src/extensions | 100 | 100 | 100 | 100 | abstract-extension.ts | 100 | 100 | 100 | 100 | content-data.ts | 100 | 100 | 100 | 100 | src/extensions/payment-network | 95.03 | 90.53 | 98.21 | 95.02 | address-based.ts | 100 | 96.61 | 100 | 100 | 282-290 any-to-erc20-proxy.ts | 92.86 | 92.11 | 100 | 92.68 | 49,71,135 any-to-eth-proxy.ts | 95.24 | 93.75 | 100 | 95.24 | 39 any-to-native.ts | 95.65 | 100 | 80 | 95.65 | 42 declarative.ts | 100 | 85.71 | 100 | 100 | 201-215 fee-reference-based.ts | 87.23 | 89.29 | 100 | 87.23 | 43,46,73,76,102,170 native-token.ts | 95 | 94.44 | 100 | 95 | 41 reference-based.ts | 71.43 | 50 | 100 | 71.43 | 25,29,52,56 src/extensions/payment-network/bitcoin | 100 | 100 | 100 | 100 | mainnet-address-based.ts | 100 | 100 | 100 | 100 | testnet-address-based.ts | 100 | 100 | 100 | 100 | src/extensions/payment-network/erc20 | 100 | 100 | 100 | 100 | address-based.ts | 100 | 100 | 100 | 100 | fee-proxy-contract.ts | 100 | 100 | 100 | 100 | proxy-contract.ts | 100 | 100 | 100 | 100 | src/extensions/payment-network/erc777 | 84.21 | 85.71 | 100 | 84.21 | stream.ts | 84.21 | 85.71 | 100 | 84.21 | 34,42,46,85,97,105 src/extensions/payment-network/ethereum | 100 | 100 | 100 | 100 | fee-proxy-contract.ts | 100 | 100 | 100 | 100 | input-data.ts | 100 | 100 | 100 | 100 | src/extensions/payment-network/near | 89.8 | 85 | 100 | 89.8 | any-to-near-testnet.ts | 100 | 100 | 100 | 100 | any-to-near.ts | 85.71 | 84.21 | 100 | 85.71 | 43,117,164,170,175 near-native.ts | 100 | 100 | 100 | 100 | near-testnet-native.ts | 100 | 100 | 100 | 100 | test/utils | 100 | 100 | 100 | 100 | test-data-generator.ts | 100 | 100 | 100 | 100 | test/utils/payment-network | 100 | 100 | 100 | 100 | mocked_native_data.ts | 100 | 100 | 100 | 100 | test/utils/payment-network/any | 100 | 100 | 100 | 100 | generator-data-create.ts | 100 | 100 | 100 | 100 | test/utils/payment-network/bitcoin | 100 | 100 | 100 | 100 | generator-data-add-payment-address.ts | 100 | 100 | 100 | 100 | generator-data-create.ts | 100 | 100 | 100 | 100 | testnet-generator-data-add-payment-address.ts | 100 | 100 | 100 | 100 | testnet-generator-data-create.ts | 100 | 100 | 100 | 100 | test/utils/payment-network/erc20 | 100 | 100 | 100 | 100 | address-based-add-payment-address-data-generator.ts | 100 | 100 | 100 | 100 | address-based-create-data-generator.ts | 100 | 100 | 100 | 100 | any-to-erc20-proxy-add-data-generator.ts | 100 | 100 | 100 | 100 | any-to-erc20-proxy-create-data-generator.ts | 100 | 100 | 100 | 100 | fee-proxy-contract-add-data-generator.ts | 100 | 100 | 100 | 100 | fee-proxy-contract-create-data-generator.ts | 100 | 100 | 100 | 100 | proxy-contract-add-payment-address-data-generator.ts | 100 | 100 | 100 | 100 | proxy-contract-create-data-generator.ts | 100 | 100 | 100 | 100 | test/utils/payment-network/erc777 | 100 | 100 | 100 | 100 | stream-add-data-generator.ts | 100 | 100 | 100 | 100 | stream-create-data-generator.ts | 100 | 100 | 100 | 100 | test/utils/payment-network/ethereum | 100 | 100 | 100 | 100 | add-payment-address-data-generator.ts | 100 | 100 | 100 | 100 | any-to-eth-proxy-add-data-generator.ts | 100 | 100 | 100 | 100 | any-to-eth-proxy-create-data-generator.ts | 100 | 100 | 100 | 100 | create-data-generator.ts | 100 | 100 | 100 | 100 | fee-proxy-contract-add-data-generator.ts | 100 | 100 | 100 | 100 | fee-proxy-contract-create-data-generator.ts | 100 | 100 | 100 | 100 | -------------------------------------------------------|---------|----------|---------|---------|--------------------- lerna ERR! yarn run test exited 23 in '@requestnetwork/smart-contracts' lerna ERR! yarn run test stdout: $ yarn hardhat test --network private $ /home/mantisclone/projects/requestNetwork/node_modules/.bin/hardhat test --network private secp256k1 unavailable, reverting to browser version No need to generate any newer typings. contract: BatchConversionPayments 1) "before all" hook in "contract: BatchConversionPayments" contract: batchNoConversionPayments: ERC20 2) "before all" hook in "contract: batchNoConversionPayments: ERC20" contract: batchNoConversionPayments: Ethereum 3) "before all" hook in "contract: batchNoConversionPayments: Ethereum" contract: Bytes Utils 4) "before all" hook for "extractBytes32 works correctly" contract: ChainlinkConversionPath 5) "before all" hook in "contract: ChainlinkConversionPath" contract: Erc20ConversionProxy 6) "before all" hook in "contract: Erc20ConversionProxy" Contract: ERC20EscrowToPay 7) "before all" hook in "Contract: ERC20EscrowToPay" contract: ERC20FeeProxy 8) "before all" hook for "stores reference and paid fee" contract: ERC20Proxy 9) "before all" hook for "allows to store a reference" contract: ERC20SwapToConversion 10) "before all" hook for "converts, swaps and pays the request" contract: SwapToPay 11) "before all" hook for "swaps and pays the request" contract: EthConversionProxy 12) "before all" hook in "contract: EthConversionProxy" contract: EthereumFeeProxy 13) "before all" hook for "allows to pays with a reference" contract: EthereumProxy 14) "before all" hook for "allows to store a reference" contract: RequestHashStorage 15) "before all" hook for "allows the whitelisted admin to be changed" contract: RequestOpenHashSubmitter 16) "before all" hook in "contract: RequestOpenHashSubmitter" contract: StorageFeeCollector 17) "before all" hook in "contract: StorageFeeCollector" payment without application of the batch fee limit USD: skipFeeUSDLimit 18) make 1 ERC20 payment with no conversion, BATCH_ERC20_PAYMENTS 19) make 1 ERC20 payment with no conversion 20) make 3 ERC20 payments with different tokens and conversion lengths 21) make 1 ETH payment without conversion 22) make 1 ETH payment with 1-step conversion 23) make n heterogeneous (ERC20 and ETH) payments with and without conversion 0 passing (70ms) 23 failing 1) contract: BatchConversionPayments "before all" hook in "contract: BatchConversionPayments": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 2) contract: batchNoConversionPayments: ERC20 "before all" hook in "contract: batchNoConversionPayments: ERC20": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 3) contract: batchNoConversionPayments: Ethereum "before all" hook in "contract: batchNoConversionPayments: Ethereum": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 4) contract: Bytes Utils "before all" hook for "extractBytes32 works correctly": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 5) contract: ChainlinkConversionPath "before all" hook in "contract: ChainlinkConversionPath": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 6) contract: Erc20ConversionProxy "before all" hook in "contract: Erc20ConversionProxy": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 7) Contract: ERC20EscrowToPay "before all" hook in "Contract: ERC20EscrowToPay": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 8) contract: ERC20FeeProxy "before all" hook for "stores reference and paid fee": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 9) contract: ERC20Proxy "before all" hook for "allows to store a reference": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 10) contract: ERC20SwapToConversion "before all" hook for "converts, swaps and pays the request": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 11) contract: SwapToPay "before all" hook for "swaps and pays the request": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 12) contract: EthConversionProxy "before all" hook in "contract: EthConversionProxy": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 13) contract: EthereumFeeProxy "before all" hook for "allows to pays with a reference": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 14) contract: EthereumProxy "before all" hook for "allows to store a reference": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 15) contract: RequestHashStorage "before all" hook for "allows the whitelisted admin to be changed": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 16) contract: RequestOpenHashSubmitter "before all" hook in "contract: RequestOpenHashSubmitter": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 17) contract: StorageFeeCollector "before all" hook in "contract: StorageFeeCollector": HardhatError: HH108: Cannot connect to the network private. Please make sure your node is running, and check your internet connection and networks config at HttpProvider._fetchJsonRpcResponse (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:176:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HttpProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/http.ts:55:29) at GanacheGasMultiplierProvider._isGanache (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:186:30) at GanacheGasMultiplierProvider.request (/home/mantisclone/projects/requestNetwork/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:175:23) at EthersProviderWrapper.send (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20) at Object.getSigners (/home/mantisclone/projects/requestNetwork/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:23:20) 18) payment without application of the batch fee limit USD: skipFeeUSDLimit make 1 ERC20 payment with no conversion, BATCH_ERC20_PAYMENTS: TypeError: Cannot read properties of undefined (reading 'balanceOf') at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:183:44 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () at __awaiter (node_modules/tslib/tslib.js:113:16) at getERC20Balances (test/contracts/BatchConversionPayments.test.ts:182:59) at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:377:19 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () 19) payment without application of the batch fee limit USD: skipFeeUSDLimit make 1 ERC20 payment with no conversion: TypeError: Cannot read properties of undefined (reading 'balanceOf') at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:183:44 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () at __awaiter (node_modules/tslib/tslib.js:113:16) at getERC20Balances (test/contracts/BatchConversionPayments.test.ts:182:59) at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:414:19 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () 20) payment without application of the batch fee limit USD: skipFeeUSDLimit make 3 ERC20 payments with different tokens and conversion lengths: TypeError: Cannot read properties of undefined (reading 'balanceOf') at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:183:44 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () at __awaiter (node_modules/tslib/tslib.js:113:16) at getERC20Balances (test/contracts/BatchConversionPayments.test.ts:182:59) at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:320:13 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () 21) payment without application of the batch fee limit USD: skipFeeUSDLimit make 1 ETH payment without conversion: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.0) at Logger.makeError (/home/mantisclone/projects/requestNetwork/node_modules/@ethersproject/logger/src.ts/index.ts:225:28) at Logger.throwError (/home/mantisclone/projects/requestNetwork/node_modules/@ethersproject/logger/src.ts/index.ts:237:20) at JsonRpcProvider. (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:403:23) at step (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23) at Object.throw (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53) at rejected (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) 22) payment without application of the batch fee limit USD: skipFeeUSDLimit make 1 ETH payment with 1-step conversion: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.0) at Logger.makeError (/home/mantisclone/projects/requestNetwork/node_modules/@ethersproject/logger/src.ts/index.ts:225:28) at Logger.throwError (/home/mantisclone/projects/requestNetwork/node_modules/@ethersproject/logger/src.ts/index.ts:237:20) at JsonRpcProvider. (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:403:23) at step (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23) at Object.throw (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53) at rejected (/home/mantisclone/projects/requestNetwork/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) 23) payment without application of the batch fee limit USD: skipFeeUSDLimit make n heterogeneous (ERC20 and ETH) payments with and without conversion: TypeError: Cannot read properties of undefined (reading 'balanceOf') at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:183:44 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () at __awaiter (node_modules/tslib/tslib.js:113:16) at getERC20Balances (test/contracts/BatchConversionPayments.test.ts:182:59) at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts:545:19 at Generator.next () at /home/mantisclone/projects/requestNetwork/packages/smart-contracts/node_modules/tslib/tslib.js:117:75 at new Promise () info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. lerna ERR! yarn run test stderr: error Command failed with exit code 23. error Command failed with exit code 23. lerna ERR! yarn run test exited 23 in '@requestnetwork/smart-contracts' lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately. error Command failed with exit code 23. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ```


Migrated from Asana: https://app.asana.com/0/1203912381456855/1205300974037121/f

MantisClone commented 9 months ago

A docker-compose script exists in the docker-images repo. We should check if it works.

josepedrobrito commented 8 months ago

Hello @MantisClone i would like to develop this issue if possible since i am performing the setup as an external contributor.

Can you please assign it to me?

Idea is to follow the proposed solution with the creation of a docker compose file and update the README with instructions.

MantisClone commented 7 months ago

Hey @josepedrobrito Thanks for your interest, and sorry for the delayed response!

I just assigned you. We'd love to have your contribution!

FYI @skiv71

MantisClone commented 7 months ago

I just updated the issue description.