@secondlayer/sdk 14.4.0 → 14.5.0
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/index.d.ts +19 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +4 -4
- package/dist/subgraphs/index.d.ts +19 -0
- package/dist/subgraphs/index.js +4 -2
- package/dist/subgraphs/index.js.map +4 -4
- package/package.json +4 -4
|
@@ -94,6 +94,13 @@ interface SubgraphSource {
|
|
|
94
94
|
name: string;
|
|
95
95
|
version: string;
|
|
96
96
|
sourceCode: string | null;
|
|
97
|
+
/** The bundled handler the runtime executes; null for local deploys. */
|
|
98
|
+
handlerCode?: string | null;
|
|
99
|
+
/** sha256 of `pinPreimage`; null for local deploys. */
|
|
100
|
+
pin?: string | null;
|
|
101
|
+
/** The canonical JSON the pin hashes (handler hash, network, runtime,
|
|
102
|
+
* schema hash, startBlock); null before it was stored. */
|
|
103
|
+
pinPreimage?: string | null;
|
|
97
104
|
readOnly: boolean;
|
|
98
105
|
reason?: string;
|
|
99
106
|
updatedAt: string;
|
|
@@ -1857,6 +1864,14 @@ type IndexStateWrite = {
|
|
|
1857
1864
|
/** Full MARF key, e.g. `vm::<contract>::0::map::<hex>`. */
|
|
1858
1865
|
key: string;
|
|
1859
1866
|
value_hex: string;
|
|
1867
|
+
/** The writing transaction, present only when `txContext: true` was
|
|
1868
|
+
* passed; null for block-level writes. */
|
|
1869
|
+
tx_id?: string | null;
|
|
1870
|
+
tx_sender?: string | null;
|
|
1871
|
+
tx_type?: string | null;
|
|
1872
|
+
tx_status?: string | null;
|
|
1873
|
+
tx_contract_id?: string | null;
|
|
1874
|
+
tx_function_name?: string | null;
|
|
1860
1875
|
};
|
|
1861
1876
|
type StateWritesEnvelope = {
|
|
1862
1877
|
state_writes: IndexStateWrite[];
|
|
@@ -1872,6 +1887,10 @@ type StateWritesListParams = {
|
|
|
1872
1887
|
toHeight?: number;
|
|
1873
1888
|
/** One block. Excludes `fromHeight`/`toHeight`; a cursor must sit at it. */
|
|
1874
1889
|
blockHeight?: number;
|
|
1890
|
+
/** One contract (`<address>.<name>`): only keys under `vm::<contractId>::`. */
|
|
1891
|
+
contractId?: string;
|
|
1892
|
+
/** Join the writing transaction's `tx_*` fields onto each row. */
|
|
1893
|
+
txContext?: boolean;
|
|
1875
1894
|
};
|
|
1876
1895
|
type StateWritesWalkParams = Omit<StateWritesListParams, "limit"> & WalkOptions;
|
|
1877
1896
|
/** A block resource. Metadata is intentionally thin — only chain-linkage and
|
package/dist/subgraphs/index.js
CHANGED
|
@@ -1924,7 +1924,9 @@ class Index extends BaseClient {
|
|
|
1924
1924
|
async listStateWrites(params = {}) {
|
|
1925
1925
|
return this.request("GET", `/v1/index/state-writes${buildQuery({
|
|
1926
1926
|
...indexPageQuery(params),
|
|
1927
|
-
block_height: params.blockHeight
|
|
1927
|
+
block_height: params.blockHeight,
|
|
1928
|
+
contract_id: params.contractId,
|
|
1929
|
+
tx_context: params.txContext ? "true" : undefined
|
|
1928
1930
|
})}`, undefined, { signal: params.signal });
|
|
1929
1931
|
}
|
|
1930
1932
|
walkStateWrites(params = {}) {
|
|
@@ -2834,5 +2836,5 @@ export {
|
|
|
2834
2836
|
getSubgraph
|
|
2835
2837
|
};
|
|
2836
2838
|
|
|
2837
|
-
//# debugId=
|
|
2839
|
+
//# debugId=0B1F01890158465364756E2164756E21
|
|
2838
2840
|
//# sourceMappingURL=index.js.map
|