@zkp2p/sdk 0.14.10 → 0.14.11-rc.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/README.md +3 -3
- package/dist/build-metadata.json +2 -2
- package/dist/chunk-IYYNDUDP.mjs +12 -0
- package/dist/chunk-IYYNDUDP.mjs.map +1 -0
- package/dist/{chunk-PLUTAOT5.mjs → chunk-QDSNHQGS.mjs} +3 -3
- package/dist/{chunk-PLUTAOT5.mjs.map → chunk-QDSNHQGS.mjs.map} +1 -1
- package/dist/{currency-74LZHM6Q.mjs → currency-224A3JT3.mjs} +3 -3
- package/dist/{currency-74LZHM6Q.mjs.map → currency-224A3JT3.mjs.map} +1 -1
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +27 -16
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-XBMV53ND.mjs +5 -0
- package/dist/{protocolViewerParsers-6BOFKH3F.mjs.map → protocolViewerParsers-XBMV53ND.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/{timeout-WX76D6NU.mjs → timeout-G23BY4BS.mjs} +3 -3
- package/dist/{timeout-WX76D6NU.mjs.map → timeout-G23BY4BS.mjs.map} +1 -1
- package/dist/{vaultUtils-PRhZBjwX.d.mts → vaultUtils-rtYn04WQ.d.mts} +9 -7
- package/dist/{vaultUtils-PRhZBjwX.d.ts → vaultUtils-rtYn04WQ.d.ts} +9 -7
- package/package.json +1 -1
- package/dist/chunk-DIHRDN2W.mjs +0 -12
- package/dist/chunk-DIHRDN2W.mjs.map +0 -1
- package/dist/protocolViewerParsers-6BOFKH3F.mjs +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchain, mapConversionRatesToOnchainMinRate } from './chunk-WDEEWFEU.mjs';
|
|
2
|
-
import './chunk-
|
|
3
|
-
//# sourceMappingURL=currency-
|
|
4
|
-
//# sourceMappingURL=currency-
|
|
2
|
+
import './chunk-IYYNDUDP.mjs';
|
|
3
|
+
//# sourceMappingURL=currency-224A3JT3.mjs.map
|
|
4
|
+
//# sourceMappingURL=currency-224A3JT3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"currency-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"currency-224A3JT3.mjs"}
|
package/dist/index.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var __export = (target, all) => {
|
|
|
21
21
|
var define_ZKP2P_SDK_BUILD_METADATA_default;
|
|
22
22
|
var init_define_ZKP2P_SDK_BUILD_METADATA = __esm({
|
|
23
23
|
"<define:__ZKP2P_SDK_BUILD_METADATA__>"() {
|
|
24
|
-
define_ZKP2P_SDK_BUILD_METADATA_default = { schemaVersion: 2, source: { repository: "zkp2p/zkp2p-clients", commitSha: "
|
|
24
|
+
define_ZKP2P_SDK_BUILD_METADATA_default = { schemaVersion: 2, source: { repository: "zkp2p/zkp2p-clients", commitSha: "26dc03c06a65c8c09395cb30fc341aa20f550bf9", kind: "github", distributable: true }, sdkPackageVersion: "0.14.11-rc.0", contractsPackageVersion: "0.4.4-rc.2", indexerSchemaPackageVersion: "0.22.0", activeDisputeStack: { base: { version: 2, selectionHash: "ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c" }, baseStaging: { version: 2, selectionHash: "6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9" } } };
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -102767,7 +102767,10 @@ init_errors();
|
|
|
102767
102767
|
|
|
102768
102768
|
// src/adapters/attestationTransport.ts
|
|
102769
102769
|
init_define_ZKP2P_SDK_BUILD_METADATA();
|
|
102770
|
-
var
|
|
102770
|
+
var ATTESTATION_PROXY_URLS = {
|
|
102771
|
+
"https://attestation-service.zkp2p.xyz": "https://attestation-proxy.zkp2p.xyz",
|
|
102772
|
+
"https://attestation-service-staging.zkp2p.xyz": "https://api-staging.zkp2p.xyz/attestation"
|
|
102773
|
+
};
|
|
102771
102774
|
function normalizeOptionalString(value) {
|
|
102772
102775
|
if (typeof value !== "string") {
|
|
102773
102776
|
return null;
|
|
@@ -102783,7 +102786,8 @@ function normalizeAttestationBaseUrl(value, label) {
|
|
|
102783
102786
|
return normalized;
|
|
102784
102787
|
}
|
|
102785
102788
|
function resolveFallbackUrls(primaryBaseUrl, fallbackUrls) {
|
|
102786
|
-
const
|
|
102789
|
+
const proxyUrl = ATTESTATION_PROXY_URLS[primaryBaseUrl];
|
|
102790
|
+
const rawFallbackUrls = fallbackUrls ?? (proxyUrl ? [proxyUrl] : []);
|
|
102787
102791
|
const normalized = rawFallbackUrls.map((url) => normalizeOptionalString(url)?.replace(/\/+$/u, "") ?? null).filter((url) => Boolean(url));
|
|
102788
102792
|
return Array.from(new Set(normalized)).filter((url) => url !== primaryBaseUrl);
|
|
102789
102793
|
}
|
|
@@ -102819,6 +102823,7 @@ function rewriteInputBaseUrl(input, primaryBaseUrl, targetBaseUrl) {
|
|
|
102819
102823
|
if (url.origin === primaryUrl.origin) {
|
|
102820
102824
|
url.protocol = targetUrl.protocol;
|
|
102821
102825
|
url.host = targetUrl.host;
|
|
102826
|
+
url.pathname = `${targetUrl.pathname.replace(/\/$/u, "")}${url.pathname}`;
|
|
102822
102827
|
}
|
|
102823
102828
|
if (typeof Request !== "undefined" && input instanceof Request) {
|
|
102824
102829
|
return new Request(url.toString(), input.clone());
|
|
@@ -111103,11 +111108,15 @@ async function uploadICloudMailSellerCredential(params, context) {
|
|
|
111103
111108
|
const payeeId = suppliedPayeeId ?? await resolveVenmoPayeeId(payeeDetails, mailboxEmail, context);
|
|
111104
111109
|
let bundle;
|
|
111105
111110
|
try {
|
|
111111
|
+
const attestationTransport = createAttestationTransport(context.attestationServiceUrl, {
|
|
111112
|
+
fetch: context.attestationRuntime?.fetch
|
|
111113
|
+
});
|
|
111106
111114
|
const nitro = zkp2pAttestation.createNitroAttestationClient({
|
|
111107
111115
|
environment,
|
|
111108
111116
|
attestationServiceUrl: context.attestationServiceUrl,
|
|
111109
111117
|
timeoutMs: ATTESTOR_TIMEOUT_MS,
|
|
111110
|
-
...context.attestationRuntime
|
|
111118
|
+
...context.attestationRuntime,
|
|
111119
|
+
fetch: attestationTransport.fetch
|
|
111111
111120
|
});
|
|
111112
111121
|
bundle = await nitro.uploadSellerCredential({
|
|
111113
111122
|
platform,
|
|
@@ -114461,9 +114470,11 @@ var Zkp2pClient = class {
|
|
|
114461
114470
|
/**
|
|
114462
114471
|
* Connect an iCloud Mail receipt inbox for PayPal, Venmo or X Money seller automated
|
|
114463
114472
|
* release. The app-specific password is encrypted to the attested enclave and
|
|
114464
|
-
* posted
|
|
114465
|
-
*
|
|
114466
|
-
*
|
|
114473
|
+
* posted to the attestor. A request that fails at the network layer is sent
|
|
114474
|
+
* once through that attestor's proxy; nothing else is retried. The returned
|
|
114475
|
+
* bundle is verified against the pinned enclave signer, platform and
|
|
114476
|
+
* registered maker, then stored unchanged for that maker; the maker is not
|
|
114477
|
+
* re-registered.
|
|
114467
114478
|
*
|
|
114468
114479
|
* Rejects with `ICloudMailCredentialError` (`reason` names the failure)
|
|
114469
114480
|
* before any mailbox work when the payee does not hash to `payeeDetails`,
|