@oasisprotocol/privana-sdk 0.5.1 → 0.5.2

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.
@@ -2309,6 +2309,12 @@ async function getConnectorClient(config, parameters = {}) {
2309
2309
  transport: (opts) => viem.custom(provider)({ ...opts, retryCount: 0 })
2310
2310
  });
2311
2311
  }
2312
+ function getBlockNumber(config, parameters = {}) {
2313
+ const { chainId, ...rest } = parameters;
2314
+ const client = config.getClient({ chainId });
2315
+ const action = getAction(client, actions$1.getBlockNumber, "getBlockNumber");
2316
+ return action(rest);
2317
+ }
2312
2318
 
2313
2319
  // ../../node_modules/@wagmi/core/dist/esm/actions/getChainId.js
2314
2320
  function getChainId2(config) {
@@ -3761,6 +3767,7 @@ exports.formatTimeRemaining = formatTimeRemaining;
3761
3767
  exports.formatTokenAmount = formatTokenAmount;
3762
3768
  exports.getAccountingContract = getAccountingContract;
3763
3769
  exports.getApiUrl = getApiUrl;
3770
+ exports.getBlockNumber = getBlockNumber;
3764
3771
  exports.getBrowserStorageItem = getBrowserStorageItem;
3765
3772
  exports.getChainById = getChainById;
3766
3773
  exports.getChainId = getChainId;
@@ -3801,5 +3808,5 @@ exports.useSafeAccount = useSafeAccount;
3801
3808
  exports.useSafePrivanaContext = useSafePrivanaContext;
3802
3809
  exports.useSiweAuth = useSiweAuth;
3803
3810
  exports.waitForTransactionReceipt = waitForTransactionReceipt;
3804
- //# sourceMappingURL=chunk-4IW4V7YJ.cjs.map
3805
- //# sourceMappingURL=chunk-4IW4V7YJ.cjs.map
3811
+ //# sourceMappingURL=chunk-UHXVYWTF.cjs.map
3812
+ //# sourceMappingURL=chunk-UHXVYWTF.cjs.map