@indexing/jiti 0.1.19 → 0.1.20
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 +10 -4
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -4
- 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
|
@@ -2183,11 +2183,17 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
|
|
|
2183
2183
|
const deliveredOrAmount = typedTx.metaData?.delivered_amount ?? typedTx.Amount ?? "0";
|
|
2184
2184
|
let tokenSymbol = "XRP";
|
|
2185
2185
|
let tokenType = "NATIVE";
|
|
2186
|
+
// An issued currency is uniquely identified by (currency, issuer) — two "USD"
|
|
2187
|
+
// IOUs from different issuers are distinct tokens. Emit the token id as
|
|
2188
|
+
// `<currency>.<issuer>` so consumers can match by issuer; native XRP has no
|
|
2189
|
+
// issuer and keeps the bare "XRP" symbol.
|
|
2190
|
+
let issuer;
|
|
2186
2191
|
let parsedAmount;
|
|
2187
2192
|
// Only issued currencies carry an explicit scale; native XRP stays in integer drops.
|
|
2188
2193
|
let decimals;
|
|
2189
2194
|
if (typeof deliveredOrAmount === "object") {
|
|
2190
2195
|
tokenSymbol = $2e46ec862e47c14f$var$decodeXrplCurrency(deliveredOrAmount.currency);
|
|
2196
|
+
issuer = deliveredOrAmount.issuer;
|
|
2191
2197
|
tokenType = "TOKEN";
|
|
2192
2198
|
const scaled = $2e46ec862e47c14f$var$xrplIssuedValueToAmount(deliveredOrAmount.value);
|
|
2193
2199
|
parsedAmount = scaled.amount;
|
|
@@ -2203,7 +2209,7 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
|
|
|
2203
2209
|
memo: typedTx.DestinationTag,
|
|
2204
2210
|
timestamp: typedBlock.close_time_iso || null,
|
|
2205
2211
|
to: typedTx.Destination ?? "UNKNOWN",
|
|
2206
|
-
token: tokenSymbol,
|
|
2212
|
+
token: issuer ? `${tokenSymbol}.${issuer}` : tokenSymbol,
|
|
2207
2213
|
tokenType: tokenType,
|
|
2208
2214
|
transactionGasFee: BigInt(typedTx.Fee ?? "0"),
|
|
2209
2215
|
transactionHash: typedTx.hash ?? ""
|
|
@@ -2311,7 +2317,7 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
|
|
|
2311
2317
|
memo: undefined,
|
|
2312
2318
|
timestamp: "2026-01-01T00:00:00Z",
|
|
2313
2319
|
to: "rBITXTOxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2314
|
-
token: "BITx",
|
|
2320
|
+
token: "BITx.rBitcoiNXev8VoVxV7pwoQx1sSfonVP9i3",
|
|
2315
2321
|
tokenType: "TOKEN",
|
|
2316
2322
|
transactionGasFee: 12n,
|
|
2317
2323
|
transactionHash: "BITXSMALLHASH"
|
|
@@ -2354,7 +2360,7 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
|
|
|
2354
2360
|
memo: undefined,
|
|
2355
2361
|
timestamp: "2026-01-01T00:00:00Z",
|
|
2356
2362
|
to: "rUSDTOxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2357
|
-
token: "USD",
|
|
2363
|
+
token: "USD.rIssuerxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2358
2364
|
tokenType: "TOKEN",
|
|
2359
2365
|
transactionGasFee: 15n,
|
|
2360
2366
|
transactionHash: "USDWHOLEHASH"
|
|
@@ -2397,7 +2403,7 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
|
|
|
2397
2403
|
memo: undefined,
|
|
2398
2404
|
timestamp: "2026-01-01T00:00:00Z",
|
|
2399
2405
|
to: "rMAGTOxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2400
|
-
token: "MAG",
|
|
2406
|
+
token: "MAG.rXmagwMmnFtVet3uL26Q2iwk287SRvVMJ",
|
|
2401
2407
|
tokenType: "TOKEN",
|
|
2402
2408
|
transactionGasFee: 10n,
|
|
2403
2409
|
transactionHash: "MAGSCIHASH"
|