@xyo-network/xl1-rpc 1.25.20 → 1.25.22
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 +15 -8
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcTransactionViewer/JsonRpcTransactionViewer.d.ts +2 -1
- package/dist/neutral/provider/viewer/JsonRpcTransactionViewer/JsonRpcTransactionViewer.d.ts.map +1 -1
- package/dist/node/index-node.mjs +15 -8
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcTransactionViewer/JsonRpcTransactionViewer.d.ts +2 -1
- package/dist/node/provider/viewer/JsonRpcTransactionViewer/JsonRpcTransactionViewer.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/provider/viewer/JsonRpcTransactionViewer/JsonRpcTransactionViewer.ts +16 -18
package/dist/neutral/index.mjs
CHANGED
|
@@ -212,7 +212,7 @@ var rpcMethodHandlersFromSigner = (signer) => {
|
|
|
212
212
|
import { creatableProvider as creatableProvider12 } from "@xyo-network/xl1-protocol-sdk";
|
|
213
213
|
|
|
214
214
|
// src/provider/datalake/JsonRpcDataLakeViewerMethods.ts
|
|
215
|
-
import { DataLakeViewerMoniker as
|
|
215
|
+
import { DataLakeViewerMoniker as DataLakeViewerMoniker3 } from "@xyo-network/xl1-protocol";
|
|
216
216
|
|
|
217
217
|
// src/types/ErrorCodes.ts
|
|
218
218
|
var JsonRpcErrorCodes = {
|
|
@@ -2225,12 +2225,14 @@ import {
|
|
|
2225
2225
|
import { BoundWitnessSchema } from "@xyo-network/sdk-js";
|
|
2226
2226
|
import {
|
|
2227
2227
|
BlockViewerMoniker as BlockViewerMoniker3,
|
|
2228
|
+
DataLakeViewerMoniker as DataLakeViewerMoniker2,
|
|
2228
2229
|
isTransactionBoundWitnessWithHashMeta,
|
|
2229
2230
|
TransactionViewerMoniker
|
|
2230
2231
|
} from "@xyo-network/xl1-protocol";
|
|
2231
|
-
import { creatableProvider as creatableProvider10 } from "@xyo-network/xl1-protocol-sdk";
|
|
2232
|
+
import { addDataLakePayloads as addDataLakePayloads2, creatableProvider as creatableProvider10 } from "@xyo-network/xl1-protocol-sdk";
|
|
2232
2233
|
var JsonRpcTransactionViewer = class extends AbstractJsonRpcViewer {
|
|
2233
2234
|
moniker = JsonRpcTransactionViewer.defaultMoniker;
|
|
2235
|
+
dataLakeViewer;
|
|
2234
2236
|
_blockViewer;
|
|
2235
2237
|
get blockViewer() {
|
|
2236
2238
|
return this._blockViewer;
|
|
@@ -2265,20 +2267,25 @@ var JsonRpcTransactionViewer = class extends AbstractJsonRpcViewer {
|
|
|
2265
2267
|
}, this.context);
|
|
2266
2268
|
}
|
|
2267
2269
|
async byHash(transactionHash) {
|
|
2268
|
-
|
|
2270
|
+
const result = await this.transport.sendRequest("transactionViewer_byHash", [transactionHash]);
|
|
2271
|
+
return result ? (await addDataLakePayloads2(result, this.dataLakeViewer))[0] : null;
|
|
2269
2272
|
}
|
|
2270
2273
|
async createHandler() {
|
|
2271
2274
|
await super.createHandler();
|
|
2272
2275
|
this._blockViewer = await this.locator.getInstance(BlockViewerMoniker3);
|
|
2276
|
+
this.dataLakeViewer = await this.locator.tryGetInstance(DataLakeViewerMoniker2);
|
|
2273
2277
|
}
|
|
2274
2278
|
async transactionByBlockHashAndIndex(blockHash, transactionIndex) {
|
|
2275
|
-
|
|
2279
|
+
const result = await this.transport.sendRequest("transactionViewer_transactionByBlockHashAndIndex", [blockHash, transactionIndex]);
|
|
2280
|
+
return result ? (await addDataLakePayloads2(result, this.dataLakeViewer))[0] : null;
|
|
2276
2281
|
}
|
|
2277
2282
|
async transactionByBlockNumberAndIndex(blockNumber, transactionIndex) {
|
|
2278
|
-
|
|
2283
|
+
const result = await this.transport.sendRequest("transactionViewer_transactionByBlockNumberAndIndex", [blockNumber, transactionIndex]);
|
|
2284
|
+
return result ? (await addDataLakePayloads2(result, this.dataLakeViewer))[0] : null;
|
|
2279
2285
|
}
|
|
2280
2286
|
async transactionByHash(transactionHash) {
|
|
2281
|
-
|
|
2287
|
+
const result = await this.transport.sendRequest("transactionViewer_transactionByHash", [transactionHash]);
|
|
2288
|
+
return result ? (await addDataLakePayloads2(result, this.dataLakeViewer))[0] : null;
|
|
2282
2289
|
}
|
|
2283
2290
|
schemas() {
|
|
2284
2291
|
return TransactionViewerRpcSchemas;
|
|
@@ -2530,8 +2537,8 @@ JsonRpcXyoViewer = __decorateClass([
|
|
|
2530
2537
|
|
|
2531
2538
|
// src/provider/datalake/JsonRpcDataLakeViewerMethods.ts
|
|
2532
2539
|
var JsonRpcDataLakeViewerMethods = class _JsonRpcDataLakeViewerMethods extends AbstractJsonRpcViewer {
|
|
2533
|
-
static defaultMoniker =
|
|
2534
|
-
static monikers = [
|
|
2540
|
+
static defaultMoniker = DataLakeViewerMoniker3;
|
|
2541
|
+
static monikers = [DataLakeViewerMoniker3];
|
|
2535
2542
|
moniker = _JsonRpcDataLakeViewerMethods.defaultMoniker;
|
|
2536
2543
|
get(_hashes) {
|
|
2537
2544
|
throw new Error("Method [get] not implemented.");
|