@indexing/jiti 0.1.2 → 0.1.4
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 +61 -11
- package/dist/main.js.map +1 -1
- package/dist/module.js +61 -11
- 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
|
@@ -404,6 +404,7 @@ const $e5566e47593dc3e2$var$CHAIN_ID = {
|
|
|
404
404
|
UNICHAIN: 130,
|
|
405
405
|
UNICHAIN_SEPOLIA: 1301,
|
|
406
406
|
UOMI_TESTNET: 4386,
|
|
407
|
+
WORLD: 480,
|
|
407
408
|
XAI: 660279,
|
|
408
409
|
XPLA: 37,
|
|
409
410
|
XPLA_TESTNET: 47,
|
|
@@ -709,17 +710,21 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
|
|
|
709
710
|
});
|
|
710
711
|
} else if (owner?.length > 4) {
|
|
711
712
|
const payload = tx.payload;
|
|
712
|
-
if (payload && payload.function === "0x1::aptos_account::transfer_coins")
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
713
|
+
if (payload && payload.function === "0x1::aptos_account::transfer_coins") {
|
|
714
|
+
const coinType = payload.type_arguments?.[0];
|
|
715
|
+
const isNative = !coinType || coinType.toLowerCase().includes("aptos_coin");
|
|
716
|
+
transfers.push({
|
|
717
|
+
amount: BigInt(payload.arguments[1]),
|
|
718
|
+
blockNumber: parseInt(typedBlock.block_height, 10),
|
|
719
|
+
from: sender,
|
|
720
|
+
to: owner,
|
|
721
|
+
timestamp: timestamp,
|
|
722
|
+
token: isNative ? null : coinType.toLowerCase(),
|
|
723
|
+
tokenType: isNative ? "NATIVE" : "TOKEN",
|
|
724
|
+
transactionGasFee: gasUsed,
|
|
725
|
+
transactionHash: tx.hash
|
|
726
|
+
});
|
|
727
|
+
}
|
|
723
728
|
}
|
|
724
729
|
}
|
|
725
730
|
for (const evt of tx.events){
|
|
@@ -884,6 +889,51 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
|
|
|
884
889
|
transactionHash: "0xa7d2d682f6940c1023d95ae8950b8d1dc0604abd34a4a2cc654f1be6f330ca44"
|
|
885
890
|
}
|
|
886
891
|
]
|
|
892
|
+
},
|
|
893
|
+
// transfer_coins with non-native token (PROPS) — should NOT produce token: null
|
|
894
|
+
// Bug: the transfer_coins code path blindly sets token: null, tokenType: 'NATIVE'
|
|
895
|
+
// even when type_arguments indicates a non-native coin
|
|
896
|
+
{
|
|
897
|
+
params: {
|
|
898
|
+
network: "APTOS",
|
|
899
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
900
|
+
},
|
|
901
|
+
payload: "https://jiti.indexing.co/networks/aptos/661127894",
|
|
902
|
+
output: [
|
|
903
|
+
{
|
|
904
|
+
amount: 18740000000000n,
|
|
905
|
+
blockNumber: 661127894,
|
|
906
|
+
from: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
907
|
+
to: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
908
|
+
timestamp: "2026-03-13T15:33:48.659Z",
|
|
909
|
+
token: "0xe50684a338db732d8fb8a3ac71c4b8633878bd0193bca5de2ebc852a83b35099::propbase_coin::props",
|
|
910
|
+
tokenType: "TOKEN",
|
|
911
|
+
transactionGasFee: 16n,
|
|
912
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
amount: 53458526229170n,
|
|
916
|
+
blockNumber: 661127894,
|
|
917
|
+
from: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
918
|
+
to: "0xf520886f20b097e2e2e4116ab66d943f13a3f107d2ba09f6f1abc38e872b234c",
|
|
919
|
+
timestamp: "2026-03-13T15:33:48.659Z",
|
|
920
|
+
token: "0x6dba1728c73363be1bdd4d504844c40fbb893e368ccbeff1d1bd83497dbc756d",
|
|
921
|
+
tokenType: "TOKEN",
|
|
922
|
+
transactionGasFee: 16n,
|
|
923
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
amount: 18740000000000n,
|
|
927
|
+
blockNumber: 661127894,
|
|
928
|
+
from: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
929
|
+
to: "0xf520886f20b097e2e2e4116ab66d943f13a3f107d2ba09f6f1abc38e872b234c",
|
|
930
|
+
timestamp: "2026-03-13T15:33:48.659Z",
|
|
931
|
+
token: "0xe50684a338db732d8fb8a3ac71c4b8633878bd0193bca5de2ebc852a83b35099::propbase_coin::props",
|
|
932
|
+
tokenType: "TOKEN",
|
|
933
|
+
transactionGasFee: 16n,
|
|
934
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
935
|
+
}
|
|
936
|
+
]
|
|
887
937
|
}
|
|
888
938
|
]
|
|
889
939
|
};
|