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