@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.
- package/dist/{chunk-4IW4V7YJ.cjs → chunk-UHXVYWTF.cjs} +9 -2
- package/dist/chunk-UHXVYWTF.cjs.map +1 -0
- package/dist/{chunk-SAJ7K5WT.js → chunk-ZVUMV4NR.js} +10 -4
- package/dist/chunk-ZVUMV4NR.js.map +1 -0
- package/dist/index.cjs +351 -271
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +115 -35
- package/dist/index.js.map +1 -1
- package/dist/on-ramp.cjs +3 -3
- package/dist/on-ramp.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4IW4V7YJ.cjs.map +0 -1
- package/dist/chunk-SAJ7K5WT.js.map +0 -1
|
@@ -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-
|
|
3805
|
-
//# sourceMappingURL=chunk-
|
|
3811
|
+
//# sourceMappingURL=chunk-UHXVYWTF.cjs.map
|
|
3812
|
+
//# sourceMappingURL=chunk-UHXVYWTF.cjs.map
|