@zkp2p/sdk 0.12.0 → 0.12.2-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 +6 -5
- package/dist/{chunk-RYBXFY6X.mjs → chunk-4U4GTDCJ.mjs} +99 -859
- package/dist/chunk-4U4GTDCJ.mjs.map +1 -0
- package/dist/index.cjs +183 -957
- 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 +9 -11
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-JGW65QV4.mjs +5 -0
- package/dist/{protocolViewerParsers-LCSRVC7F.mjs.map → protocolViewerParsers-JGW65QV4.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-xNLHO5lY.d.mts → vaultUtils-BmJ6T8rn.d.mts} +3 -6
- package/dist/{vaultUtils-xNLHO5lY.d.ts → vaultUtils-BmJ6T8rn.d.ts} +3 -6
- package/package.json +2 -2
- package/dist/chunk-RYBXFY6X.mjs.map +0 -1
- package/dist/protocolViewerParsers-LCSRVC7F.mjs +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-4U4GTDCJ.mjs';
|
|
2
|
+
import './chunk-ZFBH4HD7.mjs';
|
|
3
|
+
import './chunk-J5LGTIGS.mjs';
|
|
4
|
+
//# sourceMappingURL=protocolViewerParsers-JGW65QV4.mjs.map
|
|
5
|
+
//# sourceMappingURL=protocolViewerParsers-JGW65QV4.mjs.map
|
package/dist/{protocolViewerParsers-LCSRVC7F.mjs.map → protocolViewerParsers-JGW65QV4.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-JGW65QV4.mjs"}
|
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams, bM as PreparedTransaction, a2 as FulfillIntentMethodParams, dk as SendTransactionFn, dl as SendBatchFn, di as DelegationDepositTarget, dj as BatchResult, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote } from './vaultUtils-
|
|
2
|
-
export { dg as DelegationRoute, dh as DelegationState, dB as VAULT_ZERO_ADDRESS, da as ZERO_RATE_MANAGER_ID, dC as asErrorMessage, dD as assertDelegationMethodSupport, df as classifyDelegationState, de as getDelegationRoute, db as isZeroRateManagerId, dc as normalizeRateManagerId, dd as normalizeRegistry } from './vaultUtils-
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams, bM as PreparedTransaction, a2 as FulfillIntentMethodParams, dk as SendTransactionFn, dl as SendBatchFn, di as DelegationDepositTarget, dj as BatchResult, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote } from './vaultUtils-BmJ6T8rn.mjs';
|
|
2
|
+
export { dg as DelegationRoute, dh as DelegationState, dB as VAULT_ZERO_ADDRESS, da as ZERO_RATE_MANAGER_ID, dC as asErrorMessage, dD as assertDelegationMethodSupport, df as classifyDelegationState, de as getDelegationRoute, db as isZeroRateManagerId, dc as normalizeRateManagerId, dd as normalizeRegistry } from './vaultUtils-BmJ6T8rn.mjs';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams, bM as PreparedTransaction, a2 as FulfillIntentMethodParams, dk as SendTransactionFn, dl as SendBatchFn, di as DelegationDepositTarget, dj as BatchResult, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote } from './vaultUtils-
|
|
2
|
-
export { dg as DelegationRoute, dh as DelegationState, dB as VAULT_ZERO_ADDRESS, da as ZERO_RATE_MANAGER_ID, dC as asErrorMessage, dD as assertDelegationMethodSupport, df as classifyDelegationState, de as getDelegationRoute, db as isZeroRateManagerId, dc as normalizeRateManagerId, dd as normalizeRegistry } from './vaultUtils-
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams, bM as PreparedTransaction, a2 as FulfillIntentMethodParams, dk as SendTransactionFn, dl as SendBatchFn, di as DelegationDepositTarget, dj as BatchResult, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote } from './vaultUtils-BmJ6T8rn.js';
|
|
2
|
+
export { dg as DelegationRoute, dh as DelegationState, dB as VAULT_ZERO_ADDRESS, da as ZERO_RATE_MANAGER_ID, dC as asErrorMessage, dD as assertDelegationMethodSupport, df as classifyDelegationState, de as getDelegationRoute, db as isZeroRateManagerId, dc as normalizeRateManagerId, dd as normalizeRegistry } from './vaultUtils-BmJ6T8rn.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
@@ -2,7 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
|
|
|
2
2
|
import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
|
|
3
3
|
import { Address, Hex, AccessList, AuthorizationList, Hash, PublicClient, WalletClient, Transport } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
|
-
import { IdentityPlatform, IdentityAttestationOutputFor as IdentityAttestationOutputFor$1, IdentityActionTypeByPlatform, IdentityParamsByPlatform } from '@zkp2p/zkp2p-attestation';
|
|
5
|
+
import { IdentityPlatform, IdentityAttestationOutputFor as IdentityAttestationOutputFor$1, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityRequestPlatform } from '@zkp2p/zkp2p-attestation';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Contract resolution utilities for the SDK.
|
|
@@ -43,8 +43,6 @@ type V2ContractAddresses = {
|
|
|
43
43
|
orchestratorAddresses?: `0x${string}`[];
|
|
44
44
|
/** UnifiedPaymentVerifier contract (verifies payment proofs) */
|
|
45
45
|
unifiedPaymentVerifier?: `0x${string}`;
|
|
46
|
-
/** UnifiedPaymentVerifierV2 contract (updated verifier) */
|
|
47
|
-
unifiedPaymentVerifierV2?: `0x${string}`;
|
|
48
46
|
/** ProtocolViewer contract (batch read operations) */
|
|
49
47
|
protocolViewer?: `0x${string}`;
|
|
50
48
|
/** Ordered list of supported ProtocolViewer instances for the current deployment */
|
|
@@ -91,7 +89,6 @@ type V2ContractAbis = {
|
|
|
91
89
|
orchestratorV2?: Abi;
|
|
92
90
|
orchestratorV3?: Abi;
|
|
93
91
|
unifiedPaymentVerifier?: Abi;
|
|
94
|
-
unifiedPaymentVerifierV2?: Abi;
|
|
95
92
|
protocolViewer?: Abi;
|
|
96
93
|
rateManagerV1?: Abi;
|
|
97
94
|
orchestratorRegistry?: Abi;
|
|
@@ -1049,8 +1046,8 @@ type BuyerTeeVerifyPaymentBody = {
|
|
|
1049
1046
|
intent: SellerVerifyIntentDetails;
|
|
1050
1047
|
params: BuyerTeePaymentParams;
|
|
1051
1048
|
};
|
|
1052
|
-
type MakerIdentityPlatform = Extract<
|
|
1053
|
-
type IdentityAttestationParams = IdentityParamsByPlatform[
|
|
1049
|
+
type MakerIdentityPlatform = Extract<IdentityRequestPlatform, 'paypal' | 'wise' | 'alipay'>;
|
|
1050
|
+
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityRequestPlatform] | Record<string, string | number | boolean>;
|
|
1054
1051
|
type IdentityAttestationRequestBody = {
|
|
1055
1052
|
callerAddress: string;
|
|
1056
1053
|
encryptedSessionMaterial: string;
|
|
@@ -2,7 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
|
|
|
2
2
|
import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
|
|
3
3
|
import { Address, Hex, AccessList, AuthorizationList, Hash, PublicClient, WalletClient, Transport } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
|
-
import { IdentityPlatform, IdentityAttestationOutputFor as IdentityAttestationOutputFor$1, IdentityActionTypeByPlatform, IdentityParamsByPlatform } from '@zkp2p/zkp2p-attestation';
|
|
5
|
+
import { IdentityPlatform, IdentityAttestationOutputFor as IdentityAttestationOutputFor$1, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityRequestPlatform } from '@zkp2p/zkp2p-attestation';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Contract resolution utilities for the SDK.
|
|
@@ -43,8 +43,6 @@ type V2ContractAddresses = {
|
|
|
43
43
|
orchestratorAddresses?: `0x${string}`[];
|
|
44
44
|
/** UnifiedPaymentVerifier contract (verifies payment proofs) */
|
|
45
45
|
unifiedPaymentVerifier?: `0x${string}`;
|
|
46
|
-
/** UnifiedPaymentVerifierV2 contract (updated verifier) */
|
|
47
|
-
unifiedPaymentVerifierV2?: `0x${string}`;
|
|
48
46
|
/** ProtocolViewer contract (batch read operations) */
|
|
49
47
|
protocolViewer?: `0x${string}`;
|
|
50
48
|
/** Ordered list of supported ProtocolViewer instances for the current deployment */
|
|
@@ -91,7 +89,6 @@ type V2ContractAbis = {
|
|
|
91
89
|
orchestratorV2?: Abi;
|
|
92
90
|
orchestratorV3?: Abi;
|
|
93
91
|
unifiedPaymentVerifier?: Abi;
|
|
94
|
-
unifiedPaymentVerifierV2?: Abi;
|
|
95
92
|
protocolViewer?: Abi;
|
|
96
93
|
rateManagerV1?: Abi;
|
|
97
94
|
orchestratorRegistry?: Abi;
|
|
@@ -1049,8 +1046,8 @@ type BuyerTeeVerifyPaymentBody = {
|
|
|
1049
1046
|
intent: SellerVerifyIntentDetails;
|
|
1050
1047
|
params: BuyerTeePaymentParams;
|
|
1051
1048
|
};
|
|
1052
|
-
type MakerIdentityPlatform = Extract<
|
|
1053
|
-
type IdentityAttestationParams = IdentityParamsByPlatform[
|
|
1049
|
+
type MakerIdentityPlatform = Extract<IdentityRequestPlatform, 'paypal' | 'wise' | 'alipay'>;
|
|
1050
|
+
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityRequestPlatform] | Record<string, string | number | boolean>;
|
|
1054
1051
|
type IdentityAttestationRequestBody = {
|
|
1055
1052
|
callerAddress: string;
|
|
1056
1053
|
encryptedSessionMaterial: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.12.0",
|
|
3
|
+
"version": "0.12.2-rc.0",
|
|
4
4
|
"description": "ZKP2P Client SDK - TypeScript SDK for deposit management, liquidity provision, and onramping",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@zkp2p/indexer-schema": "0.20.0",
|
|
91
91
|
"@zkp2p/contracts-v2": "0.4.0",
|
|
92
|
-
"@zkp2p/zkp2p-attestation": "
|
|
92
|
+
"@zkp2p/zkp2p-attestation": "3.0.1",
|
|
93
93
|
"ethers": "^6.0.0",
|
|
94
94
|
"ox": "^0.11.1"
|
|
95
95
|
},
|