Skip to content

Commit 7962060

Browse files
committed
feat: bumping mcc version to fixed mcc
1 parent aabc258 commit 7962060

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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",

src/verification/payment/payment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

test/e2e_tests/run_tests.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ export INDEXER_SERVER_PAGE_LIMIT=100
1414
export PORT=3100
1515
export 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
;;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@
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"

0 commit comments

Comments
 (0)