Skip to content

Commit 4bbe6d6

Browse files
committed
rename list to requests
1 parent b0788b4 commit 4bbe6d6

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
lines changed

assets_js_bitrequest_fetchblocks.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function monero_fetch(rd, api_data, rdo) {
367367
if (xid_match) {
368368
if (txd.ccval && txd.transactiontime > rdo.request_timestamp) {
369369
txdat = txd;
370-
if (source === "list") {
370+
if (source === "requests") {
371371
const tx_listitem = append_tx_li(txd, rd.requesttype);
372372
if (tx_listitem) {
373373
transactionlist.append(tx_listitem.data(txd));
@@ -445,7 +445,7 @@ function blockchair_xmr_poll(rd, api_data, rdo) {
445445
const txd = blockchair_xmr_data(dat, rdo.setconfirmations);
446446
if (txd.txhash === txhash && txd.ccval) {
447447
txdat = txd, counter = 1;
448-
if (rdo.source === "list") {
448+
if (rdo.source === "requests") {
449449
const tx_listitem = append_tx_li(txd, rd.requesttype);
450450
if (tx_listitem) {
451451
const transactionlist = rdo.transactionlist;
@@ -555,7 +555,7 @@ function blockchaininfo_fetch(rd, api_data, rdo, latestblock) {
555555
const txd = blockchaininfo_scan_data(val, rdo.setconfirmations, rd.currencysymbol, rd.address, latestblock);
556556
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) { // get all transactions after requestdate
557557
txdat = txd;
558-
if (source === "list") {
558+
if (source === "requests") {
559559
const tx_listitem = append_tx_li(txd, rd.requesttype);
560560
if (tx_listitem) {
561561
transactionlist.append(tx_listitem.data(txd));
@@ -612,7 +612,7 @@ function blockchaininfo_fetch(rd, api_data, rdo, latestblock) {
612612
const txd = blockchaininfo_scan_data(data, rdo.setconfirmations, rd.currencysymbol, rd.address, latestblock);
613613
if (txd.ccval) {
614614
txdat = txd, counter = 1;
615-
if (source === "list") {
615+
if (source === "requests") {
616616
const tx_listitem = append_tx_li(txd, rd.requesttype);
617617
if (tx_listitem) {
618618
transactionlist.append(tx_listitem.data(txd));
@@ -674,7 +674,7 @@ function blockcypher_fetch(rd, api_data, rdo) {
674674
const txd = blockcypher_scan_data(value, rdo.setconfirmations, rd.currencysymbol, rd.payment);
675675
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) {
676676
txdat = txd;
677-
if (rdo.source === "list") {
677+
if (rdo.source === "requests") {
678678
const tx_listitem = append_tx_li(txd, rd.requesttype);
679679
if (tx_listitem) {
680680
transactionlist.append(tx_listitem.data(txd));
@@ -723,7 +723,7 @@ function blockcypher_fetch(rd, api_data, rdo) {
723723
const txd = blockcypher_poll_data(data, rdo.setconfirmations, rd.currencysymbol, rd.address);
724724
if (txd.ccval) {
725725
txdat = txd, counter = 1;
726-
if (rdo.source === "list") {
726+
if (rdo.source === "requests") {
727727
const tx_listitem = append_tx_li(txd, rd.requesttype);
728728
if (tx_listitem) {
729729
transactionlist.append(tx_listitem.data(txd));
@@ -788,7 +788,7 @@ function ethplorer_fetch(rd, api_data, rdo) {
788788
rt_compensate = (rd.inout === "local" && rd.status === "insufficient") ? rdo.request_timestamp - 30000 : rdo.request_timestamp; // substract extra 30 seconds (extra compensation)
789789
if (str_match(value.to, rd.address) === true && txd.transactiontime > rt_compensate && str_match(rd.currencysymbol, q_obj(value, "tokenInfo.symbol")) === true && txd.ccval) {
790790
txdat = txd;
791-
if (source === "list") {
791+
if (source === "requests") {
792792
api_src(thislist, api_data); // !!overwrite
793793
const tx_listitem = append_tx_li(txd, rd.requesttype);
794794
if (tx_listitem) {
@@ -848,7 +848,7 @@ function ethplorer_fetch(rd, api_data, rdo) {
848848
txd = infura_erc20_poll_data(txdata, rdo.setconfirmations, rd.currencysymbol, l2);
849849
if (txd.ccval) {
850850
txdat = txd, counter = 1;
851-
if (source === "list") {
851+
if (source === "requests") {
852852
api_src(thislist, api_data); // !!overwrite
853853
const tx_listitem = append_tx_li(txd, rd.requesttype);
854854
if (tx_listitem) {
@@ -928,7 +928,7 @@ function omniscan_fetch(rd, api_data, rdo, contract, chainid) {
928928
rt_compensate = (rd.inout === "local" && rd.status === "insufficient") ? rdo.request_timestamp - 30000 : rdo.request_timestamp; // substract extra 30 seconds (extra compensation)
929929
if (str_match(value.to, rd.address) && (txd.transactiontime > rt_compensate) && txd.ccval) {
930930
txdat = txd;
931-
if (source === "list") {
931+
if (source === "requests") {
932932
api_src(thislist, api_data); // !!overwrite
933933
const tx_listitem = append_tx_li(txd, rd.requesttype);
934934
if (tx_listitem) {
@@ -975,7 +975,7 @@ function omniscan_fetch(rd, api_data, rdo, contract, chainid) {
975975
rt_compensate = (rd.inout === "local" && rd.status === "insufficient") ? rdo.request_timestamp - 30000 : rdo.request_timestamp; // substract extra 30 seconds (extra compensation)
976976
if (str_match(value.to, rd.address) && (txd.transactiontime > rt_compensate) && txd.ccval) {
977977
txdat = txd;
978-
if (source === "list") {
978+
if (source === "requests") {
979979
api_src(thislist, api_data); // !!overwrite
980980
const tx_listitem = append_tx_li(txd, rd.requesttype);
981981
if (tx_listitem) {
@@ -1027,7 +1027,7 @@ function omniscan_fetch(rd, api_data, rdo, contract, chainid) {
10271027
const txd = omniscan_scan_data_eth(value, rdo.setconfirmations, network);
10281028
if (txd.ccval) {
10291029
txdat = txd, counter = 1;
1030-
if (source === "list") {
1030+
if (source === "requests") {
10311031
const tx_listitem = append_tx_li(txd, rd.requesttype);
10321032
if (tx_listitem) {
10331033
transactionlist.append(tx_listitem.data(txd));
@@ -1074,7 +1074,7 @@ function omniscan_fetch(rd, api_data, rdo, contract, chainid) {
10741074
const txd = omniscan_scan_data(value, rdo.setconfirmations, rd.currencysymbol, network);
10751075
if (txd.ccval) {
10761076
txdat = txd, counter = 1;
1077-
if (source === "list") {
1077+
if (source === "requests") {
10781078
const tx_listitem = append_tx_li(txd, rd.requesttype);
10791079
if (tx_listitem) {
10801080
transactionlist.append(tx_listitem.data(txd));
@@ -1159,7 +1159,7 @@ function blockchair_fetch(rd, api_data, rdo) {
11591159
const txd = blockchair_erc20_scan_data(val, rdo.setconfirmations, ccsymbol, latestblock);
11601160
if ((txd.transactiontime > rdo.request_timestamp) && (str_match(txd.recipient, address) === true) && (str_match(txd.token_symbol, ccsymbol) === true) && txd.ccval) {
11611161
txdat = txd;
1162-
if (source === "list") {
1162+
if (source === "requests") {
11631163
const tx_listitem = append_tx_li(txd, rd.requesttype);
11641164
if (tx_listitem) {
11651165
transactionlist.append(tx_listitem.data(txd));
@@ -1182,7 +1182,7 @@ function blockchair_fetch(rd, api_data, rdo) {
11821182
const txd = blockchair_eth_scan_data(val, rdo.setconfirmations, ccsymbol, latestblock);
11831183
if (txd.ccval && txd.transactiontime > rdo.request_timestamp && str_match(txd.recipient, address)) {
11841184
txdat = txd;
1185-
if (source === "list") {
1185+
if (source === "requests") {
11861186
const tx_listitem = append_tx_li(txd, rd.requesttype);
11871187
if (tx_listitem) {
11881188
transactionlist.append(tx_listitem.data(txd));
@@ -1218,7 +1218,7 @@ function blockchair_fetch(rd, api_data, rdo) {
12181218
const txd = blockchair_scan_data(val, rdo.setconfirmations, ccsymbol, address, latestblock);
12191219
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) { // get all transactions after requestdate
12201220
txdat = txd;
1221-
if (source === "list") {
1221+
if (source === "requests") {
12221222
const tx_listitem = append_tx_li(txd, rd.requesttype);
12231223
if (tx_listitem) {
12241224
transactionlist.append(tx_listitem.data(txd));
@@ -1284,7 +1284,7 @@ function blockchair_fetch(rd, api_data, rdo) {
12841284
blockchair_scan_data(trxs, rdo.setconfirmations, ccsymbol, address, latestblock);
12851285
if (txd.ccval) {
12861286
txdat = txd, counter = 1;
1287-
if (source === "list") {
1287+
if (source === "requests") {
12881288
const tx_listitem = append_tx_li(txd, rd.requesttype);
12891289
if (tx_listitem) {
12901290
transactionlist.append(tx_listitem.data(txd));
@@ -1348,7 +1348,7 @@ function nimiq_fetch(rd, api_data, rdo) {
13481348
const txd = nimiq_scan_data(value, rdo.setconfirmations);
13491349
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) {
13501350
txdat = txd;
1351-
if (source === "list") {
1351+
if (source === "requests") {
13521352
const tx_listitem = append_tx_li(txd, rd.requesttype);
13531353
if (tx_listitem) {
13541354
transactionlist.append(tx_listitem.data(txd));
@@ -1401,7 +1401,7 @@ function nimiq_fetch(rd, api_data, rdo) {
14011401
if (txd) {
14021402
if (txd.ccval) {
14031403
txdat = txd, counter = 1;
1404-
if (source === "list") {
1404+
if (source === "requests") {
14051405
const tx_listitem = append_tx_li(txd, rd.requesttype);
14061406
if (tx_listitem) {
14071407
transactionlist.append(tx_listitem.data(txd));
@@ -1458,7 +1458,7 @@ function nimiq_fetch(rd, api_data, rdo) {
14581458
if (txd) {
14591459
if (txd.ccval) {
14601460
txdat = txd, counter = 1;
1461-
if (source === "list") {
1461+
if (source === "requests") {
14621462
const tx_listitem = append_tx_li(txd, rd.requesttype);
14631463
if (tx_listitem) {
14641464
transactionlist.append(tx_listitem.data(txd));
@@ -1564,7 +1564,7 @@ function kaspa_fetch(rd, api_data, rdo, blockheight) {
15641564
const txd = kaspa_scan_data(value, rd.address, rdo.setconfirmations, blockheight);
15651565
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) {
15661566
txdat = txd;
1567-
if (source === "list") {
1567+
if (source === "requests") {
15681568
const tx_listitem = append_tx_li(txd, rd.requesttype);
15691569
if (tx_listitem) {
15701570
transactionlist.append(tx_listitem.data(txd));
@@ -1613,7 +1613,7 @@ function kaspa_fetch(rd, api_data, rdo, blockheight) {
16131613
if (txd) {
16141614
if (txd.ccval) {
16151615
txdat = txd, counter = 1;
1616-
if (source === "list") {
1616+
if (source === "requests") {
16171617
const tx_listitem = append_tx_li(txd, rd.requesttype);
16181618
if (tx_listitem) {
16191619
transactionlist.append(tx_listitem.data(txd));
@@ -1672,7 +1672,7 @@ function insight_fetch_dash(rd, api_data, rdo) {
16721672
const txd = insight_scan_data(value, rdo.setconfirmations, rd.address);
16731673
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) {
16741674
txdat = txd;
1675-
if (rdo.source === "list") {
1675+
if (rdo.source === "requests") {
16761676
const tx_listitem = append_tx_li(txd, rd.requesttype);
16771677
if (tx_listitem) {
16781678
transactionlist.append(tx_listitem.data(txd));
@@ -1719,7 +1719,7 @@ function insight_fetch_dash(rd, api_data, rdo) {
17191719
const txd = insight_scan_data(data, rdo.setconfirmations, rd.address);
17201720
if (txd.ccval) {
17211721
txdat = txd, counter = 1;
1722-
if (rdo.source === "list") {
1722+
if (rdo.source === "requests") {
17231723
const tx_listitem = append_tx_li(txd, rd.requesttype);
17241724
if (tx_listitem) {
17251725
transactionlist.append(tx_listitem.data(txd));
@@ -1822,7 +1822,7 @@ function mempoolspace_rpc(rd, api_data, rdo, rpc, latestblock) {
18221822
const txd = mempoolspace_scan_data(value, rdo.setconfirmations, rd.currencysymbol, rd.address, latestblock);
18231823
if (txd.transactiontime > rdo.request_timestamp && txd.ccval) {
18241824
txdat = txd;
1825-
if (source === "list") {
1825+
if (source === "requests") {
18261826
const tx_listitem = append_tx_li(txd, rd.requesttype);
18271827
if (tx_listitem) {
18281828
transactionlist.append(tx_listitem.data(txd));
@@ -1859,7 +1859,7 @@ function mempoolspace_rpc(rd, api_data, rdo, rpc, latestblock) {
18591859
if (txd) {
18601860
if (txd.ccval) {
18611861
txdat = txd, counter = 1;
1862-
if (source === "list") {
1862+
if (source === "requests") {
18631863
const tx_listitem = append_tx_li(txd, rd.requesttype);
18641864
if (tx_listitem) {
18651865
transactionlist.append(tx_listitem.data(txd));
@@ -1962,7 +1962,7 @@ function infura_txd_rpc(rd, api_data, rdo, contract, chainid) {
19621962
}
19631963
if (txd.ccval) {
19641964
txdat = txd, counter = 1;
1965-
if (rdo.source === "list") {
1965+
if (rdo.source === "requests") {
19661966
const tx_listitem = append_tx_li(txd, rd.requesttype);
19671967
if (tx_listitem) {
19681968
transactionlist.append(tx_listitem.data(txd));
@@ -2095,7 +2095,7 @@ function nano_rpc(rd, api_data, rdo) {
20952095
const txd = nano_scan_data(value, rdo.setconfirmations, rd.currencysymbol);
20962096
if ((txd.transactiontime > rdo.request_timestamp) && txd.ccval && (value.subtype === "receive" || value.receivable)) {
20972097
txdat = txd;
2098-
if (source === "list") {
2098+
if (source === "requests") {
20992099
const tx_listitem = append_tx_li(txd, rd.requesttype);
21002100
if (tx_listitem) {
21012101
transactionlist.append(tx_listitem.data(txd));
@@ -2148,7 +2148,7 @@ function nano_rpc(rd, api_data, rdo) {
21482148
const txd = nano_scan_data(data, rdo.setconfirmations, rd.currencysymbol, rd.txhash);
21492149
if (txd.ccval) {
21502150
txdat = txd, counter = 1;
2151-
if (source === "list") {
2151+
if (source === "requests") {
21522152
const tx_listitem = append_tx_li(txd, rd.requesttype);
21532153
if (tx_listitem) {
21542154
transactionlist.append(tx_listitem.data(txd));

0 commit comments

Comments
 (0)