File tree Expand file tree Collapse file tree 4 files changed +29
-7
lines changed
Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 2424 "test" : " ./test/e2e_tests/run_tests.sh "
2525 },
2626 "dependencies" : {
27- "@flarenetwork/mcc" : " 4.3 .0" ,
27+ "@flarenetwork/mcc" : " 4.4.0-rc .0" ,
2828 "@nestjs/common" : " ^10.0.0" ,
2929 "@nestjs/config" : " ^3.2.3" ,
3030 "@nestjs/core" : " ^10.0.0" ,
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ export function responsePayment<T extends TransactionBase<unknown>>(
6262 }
6363
6464 // We assume that a transaction cannot have more than Number.MAX_SAFE_INTEGER utxo inputs or outputs.
65- const inUtxoNumber = parseInt ( BigInt ( request . requestBody . inUtxo ) . toString ( ) ) ;
66- const utxoNumber = parseInt ( BigInt ( request . requestBody . utxo ) . toString ( ) ) ;
65+ const inUtxoNumber = BigInt ( request . requestBody . inUtxo ) ;
66+ const utxoNumber = BigInt ( request . requestBody . utxo ) ;
6767
6868 let paymentSummary : PaymentSummaryResponse ;
6969 try {
Original file line number Diff line number Diff line change @@ -14,6 +14,25 @@ export INDEXER_SERVER_PAGE_LIMIT=100
1414export PORT=3100
1515export API_KEYS=12345
1616
17+ _download_db_dumps () {
18+ BASE_DOWNLOAD_URL=" https://githubstatic.flare.center"
19+ DB_DIR=" test/e2e_tests/db"
20+ mkdir -p " $DB_DIR "
21+
22+ echo " Downloading BTC Testnet Database..."
23+ curl -L -o " $DB_DIR /db_btc_testnet" $BASE_DOWNLOAD_URL /db_btc_testnet
24+
25+ echo " Downloading BTC2 Testnet Database..."
26+ curl -L -o " $DB_DIR /db_btc2_testnet" $BASE_DOWNLOAD_URL /db_btc2_testnet
27+
28+ echo " Downloading DOGE Testnet Database..."
29+ curl -L -o " $DB_DIR /db_doge_testnet" $BASE_DOWNLOAD_URL /db_doge_testnet
30+
31+ echo " Downloading XRP Testnet Database..."
32+ curl -L -o " $DB_DIR /db_xrp_testnet" $BASE_DOWNLOAD_URL /db_xrp_testnet
33+
34+ echo " All testnet database dumps downloaded"
35+ }
1736
1837_wait_for_pg_ready () {
1938 until $DOCKER_CMD pg_isready -h $DB_HOST -p 5432 1> /dev/null; do
@@ -144,6 +163,9 @@ main() {
144163 _make_db_ci &&
145164 _run_all_tests
146165 ;;
166+ download)
167+ _download_db_dumps
168+ ;;
147169 * )
148170 show_help
149171 ;;
Original file line number Diff line number Diff line change 263263 dependencies :
264264 levn "^0.4.1"
265265
266- " @flarenetwork/mcc@4.3 .0 " :
267- version "4.3 .0"
268- resolved "https://registry.yarnpkg.com/@flarenetwork/mcc/-/mcc-4.3.0. tgz#0dd41ec2967f6975ba8af29c8f1243e69f01e8db "
269- integrity sha512-WQ0fCGGaAlx+1G5nAXSKemwekmX6Suefr4Szrvjs/vKKzRBbT64nbFxrVtU7Uxxu/+64tZknNPNyidfrWSiACw ==
266+ " @flarenetwork/mcc@4.4.0-rc .0 " :
267+ version "4.4.0-rc .0"
268+ resolved "https://registry.yarnpkg.com/@flarenetwork/mcc/-/mcc-4.4.0-rc.0. tgz#b106e739fe5da3415c8e9bd0cd7615ff73ab8d82 "
269+ integrity sha512-vLO/C3JZkwIXQCoNdH/XWv0tieb5IBtg57s3/edqSvQn8vsBfP9M5oOaDwCFFhpfPxva9qqKRMOsr/h00rK2NQ ==
270270 dependencies :
271271 axios "^1.6.7"
272272 axios-retry "^3.9.1"
You can’t perform that action at this time.
0 commit comments