@secondlayer/sdk 6.49.2 → 6.51.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.
@@ -1557,6 +1557,17 @@ type IndexPostCondition = {
1557
1557
  asset_value: unknown;
1558
1558
  condition_code: number;
1559
1559
  condition_code_name: string | null;
1560
+ } | {
1561
+ type: "staking";
1562
+ principal: string;
1563
+ condition_code: number;
1564
+ condition_code_name: string | null;
1565
+ amount: string;
1566
+ } | {
1567
+ type: "pox";
1568
+ principal: string;
1569
+ condition_code: number;
1570
+ condition_code_name: string | null;
1560
1571
  };
1561
1572
  /** Full transaction document: columnar fields plus `raw_tx`-decoded enrichment.
1562
1573
  * Payload sub-objects are present only for the matching `tx_type`; enrichment
@@ -1734,6 +1745,8 @@ type MempoolListParams = {
1734
1745
  type?: string;
1735
1746
  /** Filter to pending calls to a single contract (e.g. `SP….contract`). */
1736
1747
  contractId?: string;
1748
+ /** Filter to pending calls to a single function (composes with `contractId`). */
1749
+ functionName?: string;
1737
1750
  };
1738
1751
  type MempoolWalkParams = Omit<MempoolListParams, "limit"> & {
1739
1752
  batchSize?: number;
@@ -1254,7 +1254,8 @@ class Index extends BaseClient {
1254
1254
  limit: params.limit,
1255
1255
  sender: params.sender,
1256
1256
  type: params.type,
1257
- contract_id: params.contractId
1257
+ contract_id: params.contractId,
1258
+ function_name: params.functionName
1258
1259
  })}`);
1259
1260
  }
1260
1261
  async getMempoolTx(txId) {
@@ -2232,5 +2233,5 @@ export {
2232
2233
  Subgraphs
2233
2234
  };
2234
2235
 
2235
- //# debugId=0E0B0BAAF8B4C44E64756E2164756E21
2236
+ //# debugId=3D9CAB5A3A6813DD64756E2164756E21
2236
2237
  //# sourceMappingURL=index.js.map