@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/module.js
CHANGED
|
@@ -2165,11 +2165,17 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
2165
2165
|
const deliveredOrAmount = typedTx.metaData?.delivered_amount ?? typedTx.Amount ?? "0";
|
|
2166
2166
|
let tokenSymbol = "XRP";
|
|
2167
2167
|
let tokenType = "NATIVE";
|
|
2168
|
+
// An issued currency is uniquely identified by (currency, issuer) — two "USD"
|
|
2169
|
+
// IOUs from different issuers are distinct tokens. Emit the token id as
|
|
2170
|
+
// `<currency>.<issuer>` so consumers can match by issuer; native XRP has no
|
|
2171
|
+
// issuer and keeps the bare "XRP" symbol.
|
|
2172
|
+
let issuer;
|
|
2168
2173
|
let parsedAmount;
|
|
2169
2174
|
// Only issued currencies carry an explicit scale; native XRP stays in integer drops.
|
|
2170
2175
|
let decimals;
|
|
2171
2176
|
if (typeof deliveredOrAmount === "object") {
|
|
2172
2177
|
tokenSymbol = $07b3982e2fc4c8b2$var$decodeXrplCurrency(deliveredOrAmount.currency);
|
|
2178
|
+
issuer = deliveredOrAmount.issuer;
|
|
2173
2179
|
tokenType = "TOKEN";
|
|
2174
2180
|
const scaled = $07b3982e2fc4c8b2$var$xrplIssuedValueToAmount(deliveredOrAmount.value);
|
|
2175
2181
|
parsedAmount = scaled.amount;
|
|
@@ -2185,7 +2191,7 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
2185
2191
|
memo: typedTx.DestinationTag,
|
|
2186
2192
|
timestamp: typedBlock.close_time_iso || null,
|
|
2187
2193
|
to: typedTx.Destination ?? "UNKNOWN",
|
|
2188
|
-
token: tokenSymbol,
|
|
2194
|
+
token: issuer ? `${tokenSymbol}.${issuer}` : tokenSymbol,
|
|
2189
2195
|
tokenType: tokenType,
|
|
2190
2196
|
transactionGasFee: BigInt(typedTx.Fee ?? "0"),
|
|
2191
2197
|
transactionHash: typedTx.hash ?? ""
|
|
@@ -2293,7 +2299,7 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
2293
2299
|
memo: undefined,
|
|
2294
2300
|
timestamp: "2026-01-01T00:00:00Z",
|
|
2295
2301
|
to: "rBITXTOxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2296
|
-
token: "BITx",
|
|
2302
|
+
token: "BITx.rBitcoiNXev8VoVxV7pwoQx1sSfonVP9i3",
|
|
2297
2303
|
tokenType: "TOKEN",
|
|
2298
2304
|
transactionGasFee: 12n,
|
|
2299
2305
|
transactionHash: "BITXSMALLHASH"
|
|
@@ -2336,7 +2342,7 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
2336
2342
|
memo: undefined,
|
|
2337
2343
|
timestamp: "2026-01-01T00:00:00Z",
|
|
2338
2344
|
to: "rUSDTOxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2339
|
-
token: "USD",
|
|
2345
|
+
token: "USD.rIssuerxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2340
2346
|
tokenType: "TOKEN",
|
|
2341
2347
|
transactionGasFee: 15n,
|
|
2342
2348
|
transactionHash: "USDWHOLEHASH"
|
|
@@ -2379,7 +2385,7 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
2379
2385
|
memo: undefined,
|
|
2380
2386
|
timestamp: "2026-01-01T00:00:00Z",
|
|
2381
2387
|
to: "rMAGTOxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
2382
|
-
token: "MAG",
|
|
2388
|
+
token: "MAG.rXmagwMmnFtVet3uL26Q2iwk287SRvVMJ",
|
|
2383
2389
|
tokenType: "TOKEN",
|
|
2384
2390
|
transactionGasFee: 10n,
|
|
2385
2391
|
transactionHash: "MAGSCIHASH"
|