@indexing/jiti 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +7 -5
- package/dist/main.js.map +1 -1
- package/dist/module.js +7 -5
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1856,11 +1856,13 @@ const $7dd402f6ad0dab6a$var$tokenTransfersTemplate = {
|
|
|
1856
1856
|
const seenTransfers = new Set();
|
|
1857
1857
|
transfers = transfers.filter((txfer)=>{
|
|
1858
1858
|
if (txfer.amount <= BigInt(0)) return false;
|
|
1859
|
-
if (_ctx
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1859
|
+
if (_ctx?.params) {
|
|
1860
|
+
if (_ctx.params.contractAddress && _ctx.params.contractAddress !== txfer.token) return false;
|
|
1861
|
+
if (_ctx.params.walletAddress && ![
|
|
1862
|
+
txfer.from,
|
|
1863
|
+
txfer.to
|
|
1864
|
+
].includes(_ctx.params.walletAddress)) return false;
|
|
1865
|
+
}
|
|
1864
1866
|
const key = `${txfer.transactionHash}-${txfer.from}-${txfer.to}-${txfer.amount}-${txfer.token}`;
|
|
1865
1867
|
if (seenTransfers.has(key)) return false;
|
|
1866
1868
|
seenTransfers.add(key);
|