@usdctofiat/offramp 4.4.7 → 4.4.8
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-4DUIEYWQ.js → chunk-WCW426U5.js} +2 -2
- package/dist/{chunk-4DUIEYWQ.js.map → chunk-WCW426U5.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/react.cjs +5 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +5 -5
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/react.cjs
CHANGED
|
@@ -40,7 +40,7 @@ var import_react = require("react");
|
|
|
40
40
|
|
|
41
41
|
// src/config.ts
|
|
42
42
|
var import_sdk = require("@zkp2p/sdk");
|
|
43
|
-
var SDK_VERSION = "4.4.
|
|
43
|
+
var SDK_VERSION = "4.4.8";
|
|
44
44
|
var BASE_CHAIN_ID = 8453;
|
|
45
45
|
var RUNTIME_ENV = "production";
|
|
46
46
|
var API_BASE_URL = "https://api.zkp2p.xyz";
|
|
@@ -1796,8 +1796,8 @@ function usePeerExtensionRegistration(platform, options = {}) {
|
|
|
1796
1796
|
[startRegistrationCapture]
|
|
1797
1797
|
);
|
|
1798
1798
|
const completeRegistration = (0, import_react2.useCallback)(
|
|
1799
|
-
async (walletClient, params,
|
|
1800
|
-
const metadata =
|
|
1799
|
+
async (walletClient, params, registrationOptions = {}) => {
|
|
1800
|
+
const metadata = registrationOptions.capturedMetadata ?? capturedMetadata;
|
|
1801
1801
|
if (!metadata) {
|
|
1802
1802
|
const message = "No Peer metadata captured yet. Start registration first.";
|
|
1803
1803
|
setError(message);
|
|
@@ -1811,7 +1811,7 @@ function usePeerExtensionRegistration(platform, options = {}) {
|
|
|
1811
1811
|
identifier: params.identifier,
|
|
1812
1812
|
capturedMetadata: metadata
|
|
1813
1813
|
});
|
|
1814
|
-
return await offramp(walletClient, params,
|
|
1814
|
+
return await offramp(walletClient, params, registrationOptions.onProgress);
|
|
1815
1815
|
} catch (err) {
|
|
1816
1816
|
setError(
|
|
1817
1817
|
err instanceof Error ? err.message : "Couldn't complete Peer extension registration. Try capturing metadata again."
|
|
@@ -1821,7 +1821,7 @@ function usePeerExtensionRegistration(platform, options = {}) {
|
|
|
1821
1821
|
if (mountedRef.current) setBusy(false);
|
|
1822
1822
|
}
|
|
1823
1823
|
},
|
|
1824
|
-
[
|
|
1824
|
+
[capturedMetadata]
|
|
1825
1825
|
);
|
|
1826
1826
|
return {
|
|
1827
1827
|
phase,
|