@indexing/jiti 0.1.2 → 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/module.js
CHANGED
|
@@ -700,17 +700,21 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
700
700
|
});
|
|
701
701
|
} else if (owner?.length > 4) {
|
|
702
702
|
const payload = tx.payload;
|
|
703
|
-
if (payload && payload.function === "0x1::aptos_account::transfer_coins")
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
703
|
+
if (payload && payload.function === "0x1::aptos_account::transfer_coins") {
|
|
704
|
+
const coinType = payload.type_arguments?.[0];
|
|
705
|
+
const isNative = !coinType || coinType.toLowerCase().includes("aptos_coin");
|
|
706
|
+
transfers.push({
|
|
707
|
+
amount: BigInt(payload.arguments[1]),
|
|
708
|
+
blockNumber: parseInt(typedBlock.block_height, 10),
|
|
709
|
+
from: sender,
|
|
710
|
+
to: owner,
|
|
711
|
+
timestamp: timestamp,
|
|
712
|
+
token: isNative ? null : coinType.toLowerCase(),
|
|
713
|
+
tokenType: isNative ? "NATIVE" : "TOKEN",
|
|
714
|
+
transactionGasFee: gasUsed,
|
|
715
|
+
transactionHash: tx.hash
|
|
716
|
+
});
|
|
717
|
+
}
|
|
714
718
|
}
|
|
715
719
|
}
|
|
716
720
|
for (const evt of tx.events){
|
|
@@ -875,6 +879,51 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
875
879
|
transactionHash: "0xa7d2d682f6940c1023d95ae8950b8d1dc0604abd34a4a2cc654f1be6f330ca44"
|
|
876
880
|
}
|
|
877
881
|
]
|
|
882
|
+
},
|
|
883
|
+
// transfer_coins with non-native token (PROPS) — should NOT produce token: null
|
|
884
|
+
// Bug: the transfer_coins code path blindly sets token: null, tokenType: 'NATIVE'
|
|
885
|
+
// even when type_arguments indicates a non-native coin
|
|
886
|
+
{
|
|
887
|
+
params: {
|
|
888
|
+
network: "APTOS",
|
|
889
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
890
|
+
},
|
|
891
|
+
payload: "https://jiti.indexing.co/networks/aptos/661127894",
|
|
892
|
+
output: [
|
|
893
|
+
{
|
|
894
|
+
amount: 18740000000000n,
|
|
895
|
+
blockNumber: 661127894,
|
|
896
|
+
from: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
897
|
+
to: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
898
|
+
timestamp: "2026-03-13T15:33:48.659Z",
|
|
899
|
+
token: "0xe50684a338db732d8fb8a3ac71c4b8633878bd0193bca5de2ebc852a83b35099::propbase_coin::props",
|
|
900
|
+
tokenType: "TOKEN",
|
|
901
|
+
transactionGasFee: 16n,
|
|
902
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
amount: 53458526229170n,
|
|
906
|
+
blockNumber: 661127894,
|
|
907
|
+
from: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
908
|
+
to: "0xf520886f20b097e2e2e4116ab66d943f13a3f107d2ba09f6f1abc38e872b234c",
|
|
909
|
+
timestamp: "2026-03-13T15:33:48.659Z",
|
|
910
|
+
token: "0x6dba1728c73363be1bdd4d504844c40fbb893e368ccbeff1d1bd83497dbc756d",
|
|
911
|
+
tokenType: "TOKEN",
|
|
912
|
+
transactionGasFee: 16n,
|
|
913
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
amount: 18740000000000n,
|
|
917
|
+
blockNumber: 661127894,
|
|
918
|
+
from: "0xaa0090c74e4976834ff1b9b9ef945e1c4b6cdb49cccf37c2554ef026081312f1",
|
|
919
|
+
to: "0xf520886f20b097e2e2e4116ab66d943f13a3f107d2ba09f6f1abc38e872b234c",
|
|
920
|
+
timestamp: "2026-03-13T15:33:48.659Z",
|
|
921
|
+
token: "0xe50684a338db732d8fb8a3ac71c4b8633878bd0193bca5de2ebc852a83b35099::propbase_coin::props",
|
|
922
|
+
tokenType: "TOKEN",
|
|
923
|
+
transactionGasFee: 16n,
|
|
924
|
+
transactionHash: "0xaaec78039e7392b430c554bc33291c2786a1c92669e8f8f88280f419b0792d29"
|
|
925
|
+
}
|
|
926
|
+
]
|
|
878
927
|
}
|
|
879
928
|
]
|
|
880
929
|
};
|