Here we modify the e2e-test.js script to enable the interaction with Keep testnet.
Summary
Got rid of the direct dependency on Bitcoin RPC and stick to ElectrumX + bcoin library. This increases portability and allows us to run the script against both local-setup instances and testnet.
Introduced manual construction of deposit transactions instead of use RPC's sendtoaddress. This opens new customization capabilities for future (e.g. test different types of transactions)
Aligned local-setup scripts to keep the current functionality
Externalized the configuration to command line parameters
Introduced a Dockerfile which allows to build and run e2e-test.js independently against an arbitrary environment and avoid the installation of a local-setup instance
Introduced the k8s cron job config (deployments/e2e-test) to continuously execute the e2e test script against the testnet
Refs: https://github.com/keep-network/tbtc/issues/703
Depends on: https://github.com/keep-network/tbtc.js/pull/58Here we modify the
e2e-test.js
script to enable the interaction with Keep testnet.Summary
local-setup
instances and testnet.sendtoaddress
. This opens new customization capabilities for future (e.g. test different types of transactions)local-setup
scripts to keep the current functionalityDockerfile
which allows to build and rune2e-test.js
independently against an arbitrary environment and avoid the installation of alocal-setup
instancedeployments/e2e-test
) to continuously execute the e2e test script against the testnet