@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.
package/dist/index.d.ts CHANGED
@@ -1645,6 +1645,17 @@ type IndexPostCondition = {
1645
1645
  asset_value: unknown;
1646
1646
  condition_code: number;
1647
1647
  condition_code_name: string | null;
1648
+ } | {
1649
+ type: "staking";
1650
+ principal: string;
1651
+ condition_code: number;
1652
+ condition_code_name: string | null;
1653
+ amount: string;
1654
+ } | {
1655
+ type: "pox";
1656
+ principal: string;
1657
+ condition_code: number;
1658
+ condition_code_name: string | null;
1648
1659
  };
1649
1660
  /** Full transaction document: columnar fields plus `raw_tx`-decoded enrichment.
1650
1661
  * Payload sub-objects are present only for the matching `tx_type`; enrichment
@@ -1822,6 +1833,8 @@ type MempoolListParams = {
1822
1833
  type?: string;
1823
1834
  /** Filter to pending calls to a single contract (e.g. `SP….contract`). */
1824
1835
  contractId?: string;
1836
+ /** Filter to pending calls to a single function (composes with `contractId`). */
1837
+ functionName?: string;
1825
1838
  };
1826
1839
  type MempoolWalkParams = Omit<MempoolListParams, "limit"> & {
1827
1840
  batchSize?: number;
package/dist/index.js CHANGED
@@ -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) {
@@ -2929,5 +2930,5 @@ export {
2929
2930
  ApiError
2930
2931
  };
2931
2932
 
2932
- //# debugId=FF0374F12DD08F8A64756E2164756E21
2933
+ //# debugId=B1BDDF1D7FA0472C64756E2164756E21
2933
2934
  //# sourceMappingURL=index.js.map