@xyo-network/xl1-rpc 1.24.42 → 1.25.1
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/neutral/index.mjs +5 -5
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +1 -1
- package/dist/node/index-node.mjs +5 -5
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +1 -1
- package/package.json +3 -3
- package/src/engine/rpcMethodHandlersFromViewer.ts +3 -3
- package/src/provider/viewer/JsonRpcTransactionViewer/JsonRpcTransactionViewer.ts +2 -2
package/dist/neutral/index.mjs
CHANGED
|
@@ -105,9 +105,9 @@ var rpcMethodHandlersFromViewer = (viewer) => {
|
|
|
105
105
|
xyoViewer_stakeByStaker: (params) => viewer.stakeByStaker(...params ?? []),
|
|
106
106
|
xyoViewer_stakesByStaked: (params) => viewer.stakesByStaked(...params ?? []),
|
|
107
107
|
xyoViewer_stakesByStaker: (params) => viewer.stakesByStaker(...params ?? []),
|
|
108
|
-
xyoViewer_transactionByBlockHashAndIndex: (params) => viewer.
|
|
109
|
-
xyoViewer_transactionByBlockNumberAndIndex: (params) => viewer.
|
|
110
|
-
xyoViewer_transactionByHash: (params) => viewer.
|
|
108
|
+
xyoViewer_transactionByBlockHashAndIndex: (params) => viewer.transaction.byBlockHashAndIndex(...params ?? []),
|
|
109
|
+
xyoViewer_transactionByBlockNumberAndIndex: (params) => viewer.transaction.byBlockNumberAndIndex(...params ?? []),
|
|
110
|
+
xyoViewer_transactionByHash: (params) => viewer.transaction.byHash(...params ?? []),
|
|
111
111
|
xyoViewer_payloadsByHash: (params) => viewer.payloadsByHash(...params ?? [])
|
|
112
112
|
};
|
|
113
113
|
};
|
|
@@ -2235,7 +2235,7 @@ var JsonRpcTransactionViewer = class extends AbstractJsonRpcViewer {
|
|
|
2235
2235
|
const blockTransactionBoundWitnesses = blockBoundWitnesses.filter(isTransactionBoundWitnessWithHashMeta);
|
|
2236
2236
|
const transaction = blockTransactionBoundWitnesses.at(transactionIndex);
|
|
2237
2237
|
if (!transaction) return null;
|
|
2238
|
-
return await this.
|
|
2238
|
+
return await this.byHash(transaction._hash);
|
|
2239
2239
|
} catch {
|
|
2240
2240
|
return null;
|
|
2241
2241
|
}
|
|
@@ -2246,7 +2246,7 @@ var JsonRpcTransactionViewer = class extends AbstractJsonRpcViewer {
|
|
|
2246
2246
|
try {
|
|
2247
2247
|
const block = await this.blockViewer.blockByNumber(blockNumber);
|
|
2248
2248
|
if (!block) return null;
|
|
2249
|
-
return await this.
|
|
2249
|
+
return await this.byBlockHashAndIndex(block[0]._hash, transactionIndex);
|
|
2250
2250
|
} catch {
|
|
2251
2251
|
return null;
|
|
2252
2252
|
}
|