@zkp2p/sdk 0.12.2-rc.3 → 0.13.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 +26 -10
- package/dist/build-metadata.json +3 -3
- package/dist/chunk-EHLMW7OM.mjs +12 -0
- package/dist/chunk-EHLMW7OM.mjs.map +1 -0
- package/dist/{chunk-RVINERIL.mjs → chunk-MQYPXD7D.mjs} +770 -103
- package/dist/{chunk-RVINERIL.mjs.map → chunk-MQYPXD7D.mjs.map} +1 -1
- package/dist/{currency-CTXWPQTT.mjs → currency-5W2J2RG5.mjs} +3 -3
- package/dist/{currency-CTXWPQTT.mjs.map → currency-5W2J2RG5.mjs.map} +1 -1
- package/dist/index.cjs +4326 -612
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +118 -275
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-DBVBXRYN.mjs +5 -0
- package/dist/{protocolViewerParsers-YYBBYCEJ.mjs.map → protocolViewerParsers-DBVBXRYN.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-TJYY2GX6.mjs → timeout-WA3MYQQ5.mjs} +3 -3
- package/dist/{timeout-TJYY2GX6.mjs.map → timeout-WA3MYQQ5.mjs.map} +1 -1
- package/dist/{vaultUtils-CqUssXB-.d.mts → vaultUtils-D9um2feo.d.mts} +28 -136
- package/dist/{vaultUtils-CqUssXB-.d.ts → vaultUtils-D9um2feo.d.ts} +28 -136
- package/package.json +3 -3
- package/dist/chunk-FYCYFFYS.mjs +0 -12
- package/dist/chunk-FYCYFFYS.mjs.map +0 -1
- package/dist/protocolViewerParsers-YYBBYCEJ.mjs +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { enrichPvDepositView, enrichPvIntentView, parseDepositView, parseIntentView } from './chunk-MQYPXD7D.mjs';
|
|
2
|
+
import './chunk-ZB22BZLZ.mjs';
|
|
3
|
+
import './chunk-EHLMW7OM.mjs';
|
|
4
|
+
//# sourceMappingURL=protocolViewerParsers-DBVBXRYN.mjs.map
|
|
5
|
+
//# sourceMappingURL=protocolViewerParsers-DBVBXRYN.mjs.map
|
package/dist/{protocolViewerParsers-YYBBYCEJ.mjs.map → protocolViewerParsers-DBVBXRYN.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"protocolViewerParsers-DBVBXRYN.mjs"}
|
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams, bR as PreparedTransaction, a2 as FulfillIntentMethodParams, dB as SendTransactionFn, dC as SendBatchFn, dz as DelegationDepositTarget, dA as BatchResult, ai as IntentGuardianErrorCode, ae as IntentGuardianPolicy, af as IntentGuardianQuote } from './vaultUtils-D9um2feo.mjs';
|
|
2
|
+
export { dx as DelegationRoute, dy as DelegationState, dF as VAULT_ZERO_ADDRESS, dr as ZERO_RATE_MANAGER_ID, dG as asErrorMessage, dH as assertDelegationMethodSupport, dw as classifyDelegationState, dv as getDelegationRoute, ds as isZeroRateManagerId, dt as normalizeRateManagerId, du as normalizeRegistry } from './vaultUtils-D9um2feo.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,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, a1 as SignalIntentMethodParams, bR as PreparedTransaction, a2 as FulfillIntentMethodParams, dB as SendTransactionFn, dC as SendBatchFn, dz as DelegationDepositTarget, dA as BatchResult, ai as IntentGuardianErrorCode, ae as IntentGuardianPolicy, af as IntentGuardianQuote } from './vaultUtils-D9um2feo.js';
|
|
2
|
+
export { dx as DelegationRoute, dy as DelegationState, dF as VAULT_ZERO_ADDRESS, dr as ZERO_RATE_MANAGER_ID, dG as asErrorMessage, dH as assertDelegationMethodSupport, dw as classifyDelegationState, dv as getDelegationRoute, ds as isZeroRateManagerId, dt as normalizeRateManagerId, du as normalizeRegistry } from './vaultUtils-D9um2feo.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
package/dist/react.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asErrorMessage, ZERO_ADDRESS, getDelegationRoute, assertDelegationMethodSupport, prepareClearDelegationTx, normalizeRateManagerId, normalizeRegistry, isZeroRateManagerId, assertAtomicDelegationSwitchSupport, prepareSetDelegationTx, classifyIntentGuardianError } from './chunk-YA67SM3A.mjs';
|
|
2
2
|
export { ZERO_ADDRESS as VAULT_ZERO_ADDRESS, ZERO_RATE_MANAGER_ID, asErrorMessage, assertDelegationMethodSupport, classifyDelegationState, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-EHLMW7OM.mjs';
|
|
4
4
|
import { useState, useCallback, useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
function useCreateDeposit({ client, onSuccess, onError }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NetworkError } from './chunk-3J4FPMPW.mjs';
|
|
2
|
-
import './chunk-
|
|
2
|
+
import './chunk-EHLMW7OM.mjs';
|
|
3
3
|
|
|
4
4
|
// src/utils/timeout.ts
|
|
5
5
|
async function withTimeout(promise, timeoutMs, timeoutMessage) {
|
|
@@ -30,5 +30,5 @@ var DEFAULT_TIMEOUTS = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export { DEFAULT_TIMEOUTS, withTimeout };
|
|
33
|
-
//# sourceMappingURL=timeout-
|
|
34
|
-
//# sourceMappingURL=timeout-
|
|
33
|
+
//# sourceMappingURL=timeout-WA3MYQQ5.mjs.map
|
|
34
|
+
//# sourceMappingURL=timeout-WA3MYQQ5.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/timeout.ts"],"names":[],"mappings":";;;;AASA,eAAsB,WAAA,CACpB,OAAA,EACA,SAAA,EACA,cAAA,EACY;AACZ,EAAA,IAAI,SAAA;AAEJ,EAAA,MAAM,cAAA,GAAiB,IAAI,OAAA,CAAe,CAAC,GAAG,MAAA,KAAW;AACvD,IAAA,SAAA,GAAY,WAAW,MAAM;AAC3B,MAAA,MAAA,CAAO,IAAI,YAAA,CAAa,cAAA,EAAgB,EAAE,OAAA,EAAS,SAAA,EAAW,CAAC,CAAA;AAAA,IACjE,GAAG,SAAS,CAAA;AAAA,EACd,CAAC,CAAA;AAED,EAAA,IAAI;AACF,IAAA,MAAM,SAAS,MAAM,OAAA,CAAQ,KAAK,CAAC,OAAA,EAAS,cAAc,CAAC,CAAA;AAC3D,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,OAAO,MAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA;AAAA,EACR;AACF;AAKO,IAAM,gBAAA,GAAmB;AAAA;AAAA,EAE9B,GAAA,EAAK,GAAA;AAAA;AAAA,EAEL,WAAA,EAAa,GAAA;AAAA;AAAA,EAEb,gBAAA,EAAkB,IAAA;AAAA;AAAA,EAElB,SAAA,EAAW;AACb","file":"timeout-
|
|
1
|
+
{"version":3,"sources":["../src/utils/timeout.ts"],"names":[],"mappings":";;;;AASA,eAAsB,WAAA,CACpB,OAAA,EACA,SAAA,EACA,cAAA,EACY;AACZ,EAAA,IAAI,SAAA;AAEJ,EAAA,MAAM,cAAA,GAAiB,IAAI,OAAA,CAAe,CAAC,GAAG,MAAA,KAAW;AACvD,IAAA,SAAA,GAAY,WAAW,MAAM;AAC3B,MAAA,MAAA,CAAO,IAAI,YAAA,CAAa,cAAA,EAAgB,EAAE,OAAA,EAAS,SAAA,EAAW,CAAC,CAAA;AAAA,IACjE,GAAG,SAAS,CAAA;AAAA,EACd,CAAC,CAAA;AAED,EAAA,IAAI;AACF,IAAA,MAAM,SAAS,MAAM,OAAA,CAAQ,KAAK,CAAC,OAAA,EAAS,cAAc,CAAC,CAAA;AAC3D,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,OAAO,MAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,IAAI,SAAA,eAAwB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA;AAAA,EACR;AACF;AAKO,IAAM,gBAAA,GAAmB;AAAA;AAAA,EAE9B,GAAA,EAAK,GAAA;AAAA;AAAA,EAEL,WAAA,EAAa,GAAA;AAAA;AAAA,EAEb,gBAAA,EAAkB,IAAA;AAAA;AAAA,EAElB,SAAA,EAAW;AACb","file":"timeout-WA3MYQQ5.mjs","sourcesContent":["import { NetworkError } from '../errors';\n\n/**\n * Wraps a promise with a timeout\n * @param promise - The promise to wrap\n * @param timeoutMs - Timeout in milliseconds\n * @param timeoutMessage - Error message when timeout occurs\n * @returns Promise that rejects if timeout occurs\n */\nexport async function withTimeout<T>(\n promise: Promise<T>,\n timeoutMs: number,\n timeoutMessage: string\n): Promise<T> {\n let timeoutId: NodeJS.Timeout | undefined;\n\n const timeoutPromise = new Promise<never>((_, reject) => {\n timeoutId = setTimeout(() => {\n reject(new NetworkError(timeoutMessage, { timeout: timeoutMs }));\n }, timeoutMs);\n });\n\n try {\n const result = await Promise.race([promise, timeoutPromise]);\n if (timeoutId) clearTimeout(timeoutId);\n return result;\n } catch (error) {\n if (timeoutId) clearTimeout(timeoutId);\n throw error;\n }\n}\n\n/**\n * Default timeout values for different operation types\n */\nexport const DEFAULT_TIMEOUTS = {\n /** API call timeout (30 seconds) */\n API: 30000,\n /** Blockchain transaction timeout (60 seconds) */\n TRANSACTION: 60000,\n /** Proof generation timeout (120 seconds) */\n PROOF_GENERATION: 120000,\n /** Extension communication timeout (60 seconds) */\n EXTENSION: 60000,\n} as const;"]}
|
|
@@ -1802,7 +1802,7 @@ type GetOrderbookTableResponse = {
|
|
|
1802
1802
|
rows: OrderbookTableRow[];
|
|
1803
1803
|
};
|
|
1804
1804
|
|
|
1805
|
-
declare const PAYMENT_PLATFORMS: readonly ["wise", "venmo", "revolut", "cashapp", "mercadopago", "zelle", "paypal", "monzo", "chime", "luxon", "n26"];
|
|
1805
|
+
declare const PAYMENT_PLATFORMS: readonly ["wise", "venmo", "revolut", "cashapp", "mercadopago", "zelle", "paypal", "monzo", "chime", "luxon", "n26", "upi"];
|
|
1806
1806
|
type PaymentPlatformType = (typeof PAYMENT_PLATFORMS)[number];
|
|
1807
1807
|
|
|
1808
1808
|
type ReferralReadOptions$1 = {
|
|
@@ -1836,99 +1836,10 @@ type UpdateReferralCodeSignatureOptions$1 = ReferralSignatureOptions$1 & {
|
|
|
1836
1836
|
oldCode: string;
|
|
1837
1837
|
};
|
|
1838
1838
|
|
|
1839
|
-
/**
|
|
1840
|
-
* Deterministic persisted -> draft diff for a deposit's access policy.
|
|
1841
|
-
*
|
|
1842
|
-
* `WhitelistPolicy` cannot replace a policy in one call: `configureDeposit`
|
|
1843
|
-
* replaces only the enabled flag and *appends* groups and takers, so removals
|
|
1844
|
-
* are always separate calls. A single "Save policy" action is therefore a plan
|
|
1845
|
-
* of one or more steps, and the ordering matters:
|
|
1846
|
-
*
|
|
1847
|
-
* - Staying or becoming Restricted: add before removing, so the deposit is
|
|
1848
|
-
* never left enforcing against an empty allow set.
|
|
1849
|
-
* - Becoming Public: disable first, so the fail-open switch lands before any
|
|
1850
|
-
* destructive cleanup and a partially applied plan cannot strand the deposit
|
|
1851
|
-
* enforcing a half-removed list.
|
|
1852
|
-
* - Swapping more groups than the cap allows: fail open, remove, add, then
|
|
1853
|
-
* restore enforcement, because `addAllowedGroups` reverts once the stored
|
|
1854
|
-
* array reaches the maximum.
|
|
1855
|
-
*
|
|
1856
|
-
* Every step is idempotent at the contract level (duplicate adds and absent
|
|
1857
|
-
* removals are no-ops), so a partially applied plan can be retried from the
|
|
1858
|
-
* beginning without corrupting state.
|
|
1859
|
-
*/
|
|
1860
|
-
declare const MAX_GROUPS_PER_DEPOSIT_PAYMENT_METHOD = 10;
|
|
1861
|
-
/**
|
|
1862
|
-
* Direct addresses written per transaction.
|
|
1863
|
-
*
|
|
1864
|
-
* `WhitelistPolicy` caps groups at ten but places no limit on the taker array,
|
|
1865
|
-
* so an unchunked editor draft becomes one call whose calldata and per-entry
|
|
1866
|
-
* storage writes can exceed what a wallet will submit or a block will accept —
|
|
1867
|
-
* an unmineable transaction rather than a clean revert. Fifty entries keeps a
|
|
1868
|
-
* single call comfortably inside a normal wallet gas ceiling.
|
|
1869
|
-
*/
|
|
1870
|
-
declare const MAX_ADDRESSES_PER_CALL = 50;
|
|
1871
|
-
/**
|
|
1872
|
-
* Total direct addresses one deposit may hold from this client.
|
|
1873
|
-
*
|
|
1874
|
-
* The contract has no such limit; this is a product cap, chosen so the worst
|
|
1875
|
-
* case is ten address transactions rather than an unbounded confirmation queue.
|
|
1876
|
-
* Groups are the intended mechanism for admitting many takers — a maker who
|
|
1877
|
-
* needs more than this wants a group, not a longer list.
|
|
1878
|
-
*/
|
|
1879
|
-
declare const MAX_WHITELISTED_ADDRESSES = 500;
|
|
1880
|
-
type AccessPolicyState = {
|
|
1881
|
-
enabled: boolean;
|
|
1882
|
-
groupIds: string[];
|
|
1883
|
-
addresses: string[];
|
|
1884
|
-
};
|
|
1885
|
-
type AccessPolicyPlanStep = {
|
|
1886
|
-
kind: 'configureDeposit';
|
|
1887
|
-
enabled: boolean;
|
|
1888
|
-
groupIds: string[];
|
|
1889
|
-
takers: string[];
|
|
1890
|
-
} | {
|
|
1891
|
-
kind: 'setEnabled';
|
|
1892
|
-
enabled: boolean;
|
|
1893
|
-
} | {
|
|
1894
|
-
kind: 'addAllowedGroups';
|
|
1895
|
-
groupIds: string[];
|
|
1896
|
-
} | {
|
|
1897
|
-
kind: 'removeAllowedGroups';
|
|
1898
|
-
groupIds: string[];
|
|
1899
|
-
} | {
|
|
1900
|
-
kind: 'addWhitelistedAddresses';
|
|
1901
|
-
takers: string[];
|
|
1902
|
-
} | {
|
|
1903
|
-
kind: 'removeWhitelistedAddresses';
|
|
1904
|
-
takers: string[];
|
|
1905
|
-
};
|
|
1906
|
-
type AccessPolicyViolation = 'group-cap-exceeded' | 'empty-restricted-policy' | 'address-cap-exceeded';
|
|
1907
|
-
type AccessPolicyOrdering = 'no-changes' | 'additions-first' | 'removals-first' | 'disable-first';
|
|
1908
|
-
type AccessPolicyDiff = {
|
|
1909
|
-
addedGroupIds: string[];
|
|
1910
|
-
removedGroupIds: string[];
|
|
1911
|
-
addedAddresses: string[];
|
|
1912
|
-
removedAddresses: string[];
|
|
1913
|
-
enabledChanged: boolean;
|
|
1914
|
-
};
|
|
1915
|
-
type AccessPolicyPlan = {
|
|
1916
|
-
diff: AccessPolicyDiff;
|
|
1917
|
-
steps: AccessPolicyPlanStep[];
|
|
1918
|
-
hasChanges: boolean;
|
|
1919
|
-
ordering: AccessPolicyOrdering;
|
|
1920
|
-
/** Non-empty means the draft must not be submitted. */
|
|
1921
|
-
violations: AccessPolicyViolation[];
|
|
1922
|
-
/** Group count once the plan has fully applied. */
|
|
1923
|
-
resultingGroupCount: number;
|
|
1924
|
-
};
|
|
1925
|
-
/** Normalizes a state so callers cannot smuggle duplicates or casing through. */
|
|
1926
|
-
declare const normalizeAccessPolicyState: (state: AccessPolicyState) => AccessPolicyState;
|
|
1927
|
-
declare const diffAccessPolicy: (persistedInput: AccessPolicyState, draftInput: AccessPolicyState) => AccessPolicyDiff;
|
|
1928
|
-
declare const planAccessPolicyUpdate: (persistedInput: AccessPolicyState, draftInput: AccessPolicyState) => AccessPolicyPlan;
|
|
1929
|
-
|
|
1930
1839
|
type AccessPolicyOperationsConfig = {
|
|
1931
1840
|
getPublicClient: () => PublicClient;
|
|
1841
|
+
/** Required only for environment-owned policy writes. */
|
|
1842
|
+
getRuntimeEnv?: () => RuntimeEnv;
|
|
1932
1843
|
/** Undefined wherever the policy is not deployed. */
|
|
1933
1844
|
getPolicyAddress: () => Address | undefined;
|
|
1934
1845
|
getPolicyAbi: () => Abi | undefined;
|
|
@@ -1946,14 +1857,16 @@ declare class AccessPolicyUnsupportedError extends Error {
|
|
|
1946
1857
|
constructor(contract: 'WhitelistPolicy' | 'AddressGroupRegistry');
|
|
1947
1858
|
}
|
|
1948
1859
|
/**
|
|
1949
|
-
*
|
|
1860
|
+
* Historical reads and narrowly scoped writes for `WhitelistPolicy` and
|
|
1861
|
+
* `AddressGroupRegistry`.
|
|
1950
1862
|
*
|
|
1951
1863
|
* Writes are depositor-only at the contract level: `onlyDepositor` resolves the
|
|
1952
1864
|
* escrow's recorded depositor, so a deposit delegate is rejected. Callers must
|
|
1953
1865
|
* gate the UI on that rather than relying on a revert.
|
|
1954
1866
|
*
|
|
1955
|
-
*
|
|
1956
|
-
*
|
|
1867
|
+
* General-purpose group management is retired. New sell deposits may still
|
|
1868
|
+
* configure the protocol-owned Peer Pay merchant default; every other write
|
|
1869
|
+
* remains limited to failing open or removing historical entries.
|
|
1957
1870
|
*/
|
|
1958
1871
|
declare class AccessPolicyOperations {
|
|
1959
1872
|
private readonly config;
|
|
@@ -1989,27 +1902,18 @@ declare class AccessPolicyOperations {
|
|
|
1989
1902
|
account: Address;
|
|
1990
1903
|
}): Promise<boolean>;
|
|
1991
1904
|
private preparePolicyCall;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
depositId: bigint;
|
|
1995
|
-
paymentMethod: Hex;
|
|
1996
|
-
enabled: boolean;
|
|
1997
|
-
groupIds: readonly Hex[];
|
|
1998
|
-
takers: readonly Address[];
|
|
1999
|
-
txOverrides?: TxOverrides;
|
|
2000
|
-
}): PreparedTransactionWithAbi;
|
|
2001
|
-
prepareSetEnabled(params: {
|
|
1905
|
+
/** Configure the fixed Peer Pay merchant default while creating a sell deposit. */
|
|
1906
|
+
prepareConfigurePeerPayMerchantDeposit(params: {
|
|
2002
1907
|
escrow: Address;
|
|
2003
1908
|
depositId: bigint;
|
|
2004
1909
|
paymentMethod: Hex;
|
|
2005
|
-
enabled: boolean;
|
|
2006
1910
|
txOverrides?: TxOverrides;
|
|
2007
1911
|
}): PreparedTransactionWithAbi;
|
|
2008
|
-
|
|
1912
|
+
/** Fail open before removing historical policy entries. */
|
|
1913
|
+
prepareDisable(params: {
|
|
2009
1914
|
escrow: Address;
|
|
2010
1915
|
depositId: bigint;
|
|
2011
1916
|
paymentMethod: Hex;
|
|
2012
|
-
groupIds: readonly Hex[];
|
|
2013
1917
|
txOverrides?: TxOverrides;
|
|
2014
1918
|
}): PreparedTransactionWithAbi;
|
|
2015
1919
|
prepareRemoveAllowedGroups(params: {
|
|
@@ -2019,39 +1923,12 @@ declare class AccessPolicyOperations {
|
|
|
2019
1923
|
groupIds: readonly Hex[];
|
|
2020
1924
|
txOverrides?: TxOverrides;
|
|
2021
1925
|
}): PreparedTransactionWithAbi;
|
|
2022
|
-
prepareAddWhitelistedAddresses(params: {
|
|
2023
|
-
escrow: Address;
|
|
2024
|
-
depositId: bigint;
|
|
2025
|
-
takers: readonly Address[];
|
|
2026
|
-
txOverrides?: TxOverrides;
|
|
2027
|
-
}): PreparedTransactionWithAbi;
|
|
2028
1926
|
prepareRemoveWhitelistedAddresses(params: {
|
|
2029
1927
|
escrow: Address;
|
|
2030
1928
|
depositId: bigint;
|
|
2031
1929
|
takers: readonly Address[];
|
|
2032
1930
|
txOverrides?: TxOverrides;
|
|
2033
1931
|
}): PreparedTransactionWithAbi;
|
|
2034
|
-
/** Encodes one planner step. */
|
|
2035
|
-
preparePlanStep(params: {
|
|
2036
|
-
escrow: Address;
|
|
2037
|
-
depositId: bigint;
|
|
2038
|
-
paymentMethod: Hex;
|
|
2039
|
-
step: AccessPolicyPlanStep;
|
|
2040
|
-
txOverrides?: TxOverrides;
|
|
2041
|
-
}): PreparedTransactionWithAbi;
|
|
2042
|
-
/**
|
|
2043
|
-
* Encodes a whole plan, in order.
|
|
2044
|
-
*
|
|
2045
|
-
* A plan with violations encodes to nothing: an invalid draft must be
|
|
2046
|
-
* rejected before a wallet is ever opened.
|
|
2047
|
-
*/
|
|
2048
|
-
preparePlan(params: {
|
|
2049
|
-
escrow: Address;
|
|
2050
|
-
depositId: bigint;
|
|
2051
|
-
paymentMethod: Hex;
|
|
2052
|
-
plan: AccessPolicyPlan;
|
|
2053
|
-
txOverrides?: TxOverrides;
|
|
2054
|
-
}): PreparedTransactionWithAbi[];
|
|
2055
1932
|
}
|
|
2056
1933
|
|
|
2057
1934
|
type IntentGuardianWriteFunction = 'extendIntent';
|
|
@@ -2758,6 +2635,21 @@ type DisputeProtectionReadinessOptions = {
|
|
|
2758
2635
|
/** Also prove the dormant successor stack while the recognized predecessor remains active. */
|
|
2759
2636
|
verifyPassiveSuccessor?: boolean;
|
|
2760
2637
|
};
|
|
2638
|
+
type DisputeAttestationConfig = {
|
|
2639
|
+
asOfBlock: bigint;
|
|
2640
|
+
chainId: number;
|
|
2641
|
+
policyAddress: Address;
|
|
2642
|
+
verifierAddress: Address;
|
|
2643
|
+
trustedSigners: readonly Address[];
|
|
2644
|
+
requiredSignatures: number;
|
|
2645
|
+
};
|
|
2646
|
+
type ReadDisputeAttestationConfigParams = {
|
|
2647
|
+
publicClient: PublicClient;
|
|
2648
|
+
chainId: number;
|
|
2649
|
+
environment?: RuntimeEnv;
|
|
2650
|
+
};
|
|
2651
|
+
/** Read the canonical dispute addresses and live attestation trust roots at one block. */
|
|
2652
|
+
declare function readDisputeAttestationConfig({ publicClient, chainId, environment, }: ReadDisputeAttestationConfigParams): Promise<DisputeAttestationConfig>;
|
|
2761
2653
|
|
|
2762
2654
|
type FulfillmentRecord = {
|
|
2763
2655
|
id: string;
|
|
@@ -4805,4 +4697,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
4805
4697
|
value?: bigint;
|
|
4806
4698
|
}>) => Promise<string>;
|
|
4807
4699
|
|
|
4808
|
-
export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetDepositBundleParams as E, type GetDepositBundleResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetOrderbookParams as H, type IntentEntity as I, type GetOrderbookResponse as J, type GetOrderbookTableResponse as K, type QuoteRequest as L, type QuoteResponse as M, type CuratorMetadata as N, type CurrencyType as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type PaymentMethodCatalog as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type TxOverrides as W, type ReferralBearerWriteOptions as X, type ReferralReadOptions as Y, Zkp2pClient as Z, type ReferralSignatureOptions as _, type IdentityAttestationRequestBody as a, type RegisterPayeeDetailsRequest as a$, type SignalIntentReferralFee as a0, type SignalIntentMethodParams as a1, type FulfillIntentMethodParams as a2, type CancelIntentMethodParams as a3, type UpdateReferralCodeSignatureOptions as a4, type Zkp2pNextOptions as a5, type StakeVaultState as a6, type StakeVaultWriteFunction as a7, type StakeVaultWriteParams as a8, type DisputeProtectionReadinessOptions as a9, type GetNearbyQuote as aA, type GetNearbySuggestions as aB, type GetQuoteResponse as aC, type GetQuoteResponseObject as aD, type GetQuoteSingleResponse as aE, type QuoteResponseObject as aF, type QuoteSingleResponse as aG, type QuoteIntentResponse as aH, type QuoteFeesResponse as aI, type FiatResponse as aJ, type TokenResponse as aK, type NearbyQuote as aL, type NearbySuggestions as aM, type ApiDeposit as aN, type DepositVerifier as aO, type DepositVerifierCurrency as aP, type DepositStatus$1 as aQ, type GetDepositByIdRequest as aR, type GetDepositByIdResponse as aS, type Intent as aT, type ApiIntentStatus as aU, type GetOwnerIntentsRequest as aV, type GetOwnerIntentsResponse as aW, type GetIntentsByDepositRequest as aX, type GetIntentsByDepositResponse as aY, type GetIntentByHashRequest as aZ, type GetIntentByHashResponse as a_, type DisputeProtectionReadinessResult as aa, type IntentGuardianPolicy as ab, type IntentGuardianQuote as ac, type IntentGuardianWriteFunction as ad, type IntentGuardianWriteParams as ae, type IntentGuardianErrorCode as af, classifyIntentGuardianError as ag, type AuthorizationTokenProvider as ah, type TimeoutConfig as ai, type ActionCallback as aj, type ReferralRedemption as ak, type ReferralSignatureBody as al, type CreateDepositParams as am, type CreateDepositConversionRate as an, type Range as ao, type WithdrawDepositParams as ap, type SignalIntentParams as aq, type FulfillIntentParams as ar, type ReleaseFundsToPayerParams as as, type CancelIntentParams as at, type BestByPlatformResponseObject as au, type GetBestByPlatformResponse as av, type GetBestByPlatformResponseObject as aw, type GetPlatformQuote as ax, type PlatformQuote as ay, type QuotePreference as az, type AttestationServiceSellerVerifyResponse as b, buildStakingEntityIds as b$, type RegisterPayeeDetailsResponse as b0, type SellerPlatform as b1, type VenmoSessionMaterial as b2, type CashAppSessionMaterial as b3, type WiseSessionMaterial as b4, type WiseProfileInfo as b5, type WiseProfileSelectionRequired as b6, type WiseProfileNotFound as b7, type PayPalGoogleOAuthSellerCredentialUploadBody as b8, type VenmoCredentialUploadInput as b9, type RegisteredUploadSellerCredentialParams as bA, type UploadSellerCredentialOptions as bB, type GetSellerCredentialStatusParams as bC, type UploadPayPalGoogleOAuthSellerCredentialParams as bD, type UploadGoogleOAuthSellerCredentialParams as bE, type VerifySellerPaymentParams as bF, type IdentityAttestationActionType as bG, type IdentityAttestationOutput as bH, type IdentityAttestationOutputFor as bI, type IdentityAttestationParams as bJ, type MakerIdentityAttestationRequestBody as bK, type MakerIdentityPlatform as bL, type OnchainCurrency as bM, type DepositVerifierData as bN, type PreparedTransaction as bO, type OrderStats as bP, type DepositIntentStatistics as bQ, type UsdcAmount as bR, type StakeEnvironment as bS, type TakerStakeBalances as bT, type OrderbookEntry as bU, type OrderbookTableRow as bV, IndexerClient as bW, defaultIndexerEndpoint as bX, IndexerDepositService as bY, IndexerRateManagerService as bZ, compareEventCursorIdsByRecency as b_, type CashAppCredentialUploadInput as ba, type WiseCredentialUploadInput as bb, type SellerCredentialUploadInputByPlatform as bc, type SellerCiphertextBundle as bd, type SellerSignedCiphertextBundle as be, type SellerVerifyIntentDetails as bf, type SellerVerifyInput as bg, type SellerProbeInput as bh, type SellerCredentialBundleUpload as bi, type SellerCredentialStatusValue as bj, type SellerCredentialStatus as bk, type SellerVerifyProxyBody as bl, type SellerTypedDataField as bm, type SellerTypedDataSpec as bn, type SellerPaymentTypedDataValue as bo, type SellerAttestationOutput as bp, type SellerCredentialProbeResponse as bq, type FulfillIntentAttestationResponse as br, type AttestationServiceSellerCredentialProbeResponse as bs, type BuyerTeePaymentParams as bt, type BuyerTeePaymentProofInput as bu, type BuyerTeeSessionMaterial as bv, type CuratorSellerCredentialStatusResponse as bw, type CuratorSellerVerifyResponse as bx, type RegisteredSellerCredentialPlatform as by, type UploadSellerCredentialParams as bz, type SellerCredentialUploadInput as c, hasIntentGuardian as c$, IndexerStakingService as c0, fetchFulfillmentAndPayment as c1, type DepositEntity as c2, type IntentFulfilledEntity as c3, type IntentFulfillmentAmountsEntity as c4, type DepositPaymentMethodEntity as c5, type MethodCurrencyEntity as c6, type IntentStatus as c7, type RateManagerEntity as c8, type RateManagerRateEntity as c9, type StakingEntityIds as cA, type TakerStakeAuthorizationPageParams as cB, type DepositFilter as cC, type PaginationOptions as cD, type DepositOrderField as cE, type OrderDirection$1 as cF, type RateManagerFilter as cG, type RateManagerPaginationOptions as cH, type RateManagerDelegationPaginationOptions as cI, type RateManagerOrderField as cJ, type OrderDirection as cK, type DeploymentEnv as cL, type FulfillmentRecord as cM, type PaymentVerifiedRecord as cN, type FulfillmentAndPaymentResponse as cO, PAYMENT_PLATFORMS as cP, type PaymentPlatformType as cQ, Currency as cR, currencyInfo as cS, getCurrencyInfoFromHash as cT, getCurrencyInfoFromCountryCode as cU, getCurrencyCodeFromHash as cV, isSupportedCurrencyHash as cW, mapConversionRatesToOnchainMinRate as cX, type CurrencyData as cY, getContracts as cZ, getIntentGuardianContract as c_, type RateManagerDelegationEntity as ca, type ManagerAggregateStatsEntity as cb, type ManagerStatsEntity as cc, type ManagerDailySnapshotEntity as cd, type RateManagerListItem as ce, type RateManagerDetail as cf, type ManualRateUpdateEntity as cg, type OracleConfigUpdateEntity as ch, type DepositFundActivityEntity as ci, type DepositDailySnapshotEntity as cj, type DepositFundActivityType as ck, type DisputeProtectionIntentPage as cl, type DisputeProtectionIntentPageParams as cm, type IndexedDisputeProtectionIntent as cn, type IndexedPage as co, type IndexedPageAsOf as cp, type IndexedRiskWindow as cq, type IndexedStakeActivity as cr, type IndexedStakeLock as cs, type IndexedStakingRowFreshness as ct, type IndexedStakingState as cu, type IndexedStakingStateParams as cv, type IndexedTakerAuthorization as cw, type IndexedTakerStakeAuthorization as cx, type StakeActivityPageParams as cy, type StakeLockPageParams as cz, type SellerCredentialUploadPlatform as d, getRateManagerContracts as d0, getStakeVaultContract as d1, getOrchestratorV3Contract as d2, getDisputeProtectionPolicyContract as d3, getPaymentMethodsCatalog as d4, getGatingServiceAddress as d5, ORCHESTRATOR_V3_ABI as d6, DISPUTE_PROTECTION_POLICY_ABI as d7, STAKE_VAULT_ABI as d8, type RuntimeEnv as d9, AccessPolicyOperations as dA, AccessPolicyUnsupportedError as dB, MAX_GROUPS_PER_DEPOSIT_PAYMENT_METHOD as dC, MAX_ADDRESSES_PER_CALL as dD, MAX_WHITELISTED_ADDRESSES as dE, diffAccessPolicy as dF, normalizeAccessPolicyState as dG, planAccessPolicyUpdate as dH, type AccessPolicyDiff as dI, type AccessPolicyOrdering as dJ, type AccessPolicyPlan as dK, type AccessPolicyPlanStep as dL, type AccessPolicyState as dM, type AccessPolicyViolation as dN, ZERO_ADDRESS as dO, asErrorMessage as dP, assertDelegationMethodSupport as dQ, type V2ContractAddresses as da, type V2ContractAbis as db, parseDepositView as dc, parseIntentView as dd, enrichPvDepositView as de, enrichPvIntentView as df, type PV_DepositView as dg, type PV_Deposit as dh, type PV_PaymentMethodData as di, type PV_Currency as dj, type PV_ReferralFee as dk, type PV_IntentView as dl, type PV_Intent as dm, ZERO_RATE_MANAGER_ID as dn, isZeroRateManagerId as dp, normalizeRateManagerId as dq, normalizeRegistry as dr, getDelegationRoute as ds, classifyDelegationState as dt, type DelegationRoute as du, type DelegationState as dv, type DelegationDepositTarget as dw, type BatchResult as dx, type SendTransactionFn as dy, type SendBatchFn as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type BestByPlatformResponse as t, type ValidatePayeeDetailsResponse as u, type PostDepositDetailsResponse as v, type GetPayeeDetailsRequest as w, type GetPayeeDetailsResponse as x, type GetOwnerDepositsRequest as y, type GetOwnerDepositsResponse as z };
|
|
4700
|
+
export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetDepositBundleParams as E, type GetDepositBundleResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetOrderbookParams as H, type IntentEntity as I, type GetOrderbookResponse as J, type GetOrderbookTableResponse as K, type QuoteRequest as L, type QuoteResponse as M, type CuratorMetadata as N, type CurrencyType as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type PaymentMethodCatalog as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type TxOverrides as W, type ReferralBearerWriteOptions as X, type ReferralReadOptions as Y, Zkp2pClient as Z, type ReferralSignatureOptions as _, type IdentityAttestationRequestBody as a, type GetIntentsByDepositResponse as a$, type SignalIntentReferralFee as a0, type SignalIntentMethodParams as a1, type FulfillIntentMethodParams as a2, type CancelIntentMethodParams as a3, type UpdateReferralCodeSignatureOptions as a4, type Zkp2pNextOptions as a5, type StakeVaultState as a6, type StakeVaultWriteFunction as a7, type StakeVaultWriteParams as a8, readDisputeAttestationConfig as a9, type GetPlatformQuote as aA, type PlatformQuote as aB, type QuotePreference as aC, type GetNearbyQuote as aD, type GetNearbySuggestions as aE, type GetQuoteResponse as aF, type GetQuoteResponseObject as aG, type GetQuoteSingleResponse as aH, type QuoteResponseObject as aI, type QuoteSingleResponse as aJ, type QuoteIntentResponse as aK, type QuoteFeesResponse as aL, type FiatResponse as aM, type TokenResponse as aN, type NearbyQuote as aO, type NearbySuggestions as aP, type ApiDeposit as aQ, type DepositVerifier as aR, type DepositVerifierCurrency as aS, type DepositStatus$1 as aT, type GetDepositByIdRequest as aU, type GetDepositByIdResponse as aV, type Intent as aW, type ApiIntentStatus as aX, type GetOwnerIntentsRequest as aY, type GetOwnerIntentsResponse as aZ, type GetIntentsByDepositRequest as a_, type DisputeAttestationConfig as aa, type DisputeProtectionReadinessOptions as ab, type DisputeProtectionReadinessResult as ac, type ReadDisputeAttestationConfigParams as ad, type IntentGuardianPolicy as ae, type IntentGuardianQuote as af, type IntentGuardianWriteFunction as ag, type IntentGuardianWriteParams as ah, type IntentGuardianErrorCode as ai, classifyIntentGuardianError as aj, type AuthorizationTokenProvider as ak, type TimeoutConfig as al, type ActionCallback as am, type ReferralRedemption as an, type ReferralSignatureBody as ao, type CreateDepositParams as ap, type CreateDepositConversionRate as aq, type Range as ar, type WithdrawDepositParams as as, type SignalIntentParams as at, type FulfillIntentParams as au, type ReleaseFundsToPayerParams as av, type CancelIntentParams as aw, type BestByPlatformResponseObject as ax, type GetBestByPlatformResponse as ay, type GetBestByPlatformResponseObject as az, type AttestationServiceSellerVerifyResponse as b, IndexerDepositService as b$, type GetIntentByHashRequest as b0, type GetIntentByHashResponse as b1, type RegisterPayeeDetailsRequest as b2, type RegisterPayeeDetailsResponse as b3, type SellerPlatform as b4, type VenmoSessionMaterial as b5, type CashAppSessionMaterial as b6, type WiseSessionMaterial as b7, type WiseProfileInfo as b8, type WiseProfileSelectionRequired as b9, type CuratorSellerVerifyResponse as bA, type RegisteredSellerCredentialPlatform as bB, type UploadSellerCredentialParams as bC, type RegisteredUploadSellerCredentialParams as bD, type UploadSellerCredentialOptions as bE, type GetSellerCredentialStatusParams as bF, type UploadPayPalGoogleOAuthSellerCredentialParams as bG, type UploadGoogleOAuthSellerCredentialParams as bH, type VerifySellerPaymentParams as bI, type IdentityAttestationActionType as bJ, type IdentityAttestationOutput as bK, type IdentityAttestationOutputFor as bL, type IdentityAttestationParams as bM, type MakerIdentityAttestationRequestBody as bN, type MakerIdentityPlatform as bO, type OnchainCurrency as bP, type DepositVerifierData as bQ, type PreparedTransaction as bR, type OrderStats as bS, type DepositIntentStatistics as bT, type UsdcAmount as bU, type StakeEnvironment as bV, type TakerStakeBalances as bW, type OrderbookEntry as bX, type OrderbookTableRow as bY, IndexerClient as bZ, defaultIndexerEndpoint as b_, type WiseProfileNotFound as ba, type PayPalGoogleOAuthSellerCredentialUploadBody as bb, type VenmoCredentialUploadInput as bc, type CashAppCredentialUploadInput as bd, type WiseCredentialUploadInput as be, type SellerCredentialUploadInputByPlatform as bf, type SellerCiphertextBundle as bg, type SellerSignedCiphertextBundle as bh, type SellerVerifyIntentDetails as bi, type SellerVerifyInput as bj, type SellerProbeInput as bk, type SellerCredentialBundleUpload as bl, type SellerCredentialStatusValue as bm, type SellerCredentialStatus as bn, type SellerVerifyProxyBody as bo, type SellerTypedDataField as bp, type SellerTypedDataSpec as bq, type SellerPaymentTypedDataValue as br, type SellerAttestationOutput as bs, type SellerCredentialProbeResponse as bt, type FulfillIntentAttestationResponse as bu, type AttestationServiceSellerCredentialProbeResponse as bv, type BuyerTeePaymentParams as bw, type BuyerTeePaymentProofInput as bx, type BuyerTeeSessionMaterial as by, type CuratorSellerCredentialStatusResponse as bz, type SellerCredentialUploadInput as c, type CurrencyData as c$, IndexerRateManagerService as c0, compareEventCursorIdsByRecency as c1, buildStakingEntityIds as c2, IndexerStakingService as c3, fetchFulfillmentAndPayment as c4, type DepositEntity as c5, type IntentFulfilledEntity as c6, type IntentFulfillmentAmountsEntity as c7, type DepositPaymentMethodEntity as c8, type MethodCurrencyEntity as c9, type IndexedTakerStakeAuthorization as cA, type StakeActivityPageParams as cB, type StakeLockPageParams as cC, type StakingEntityIds as cD, type TakerStakeAuthorizationPageParams as cE, type DepositFilter as cF, type PaginationOptions as cG, type DepositOrderField as cH, type OrderDirection$1 as cI, type RateManagerFilter as cJ, type RateManagerPaginationOptions as cK, type RateManagerDelegationPaginationOptions as cL, type RateManagerOrderField as cM, type OrderDirection as cN, type DeploymentEnv as cO, type FulfillmentRecord as cP, type PaymentVerifiedRecord as cQ, type FulfillmentAndPaymentResponse as cR, PAYMENT_PLATFORMS as cS, type PaymentPlatformType as cT, Currency as cU, currencyInfo as cV, getCurrencyInfoFromHash as cW, getCurrencyInfoFromCountryCode as cX, getCurrencyCodeFromHash as cY, isSupportedCurrencyHash as cZ, mapConversionRatesToOnchainMinRate as c_, type IntentStatus as ca, type RateManagerEntity as cb, type RateManagerRateEntity as cc, type RateManagerDelegationEntity as cd, type ManagerAggregateStatsEntity as ce, type ManagerStatsEntity as cf, type ManagerDailySnapshotEntity as cg, type RateManagerListItem as ch, type RateManagerDetail as ci, type ManualRateUpdateEntity as cj, type OracleConfigUpdateEntity as ck, type DepositFundActivityEntity as cl, type DepositDailySnapshotEntity as cm, type DepositFundActivityType as cn, type DisputeProtectionIntentPage as co, type DisputeProtectionIntentPageParams as cp, type IndexedDisputeProtectionIntent as cq, type IndexedPage as cr, type IndexedPageAsOf as cs, type IndexedRiskWindow as ct, type IndexedStakeActivity as cu, type IndexedStakeLock as cv, type IndexedStakingRowFreshness as cw, type IndexedStakingState as cx, type IndexedStakingStateParams as cy, type IndexedTakerAuthorization as cz, type SellerCredentialUploadPlatform as d, getContracts as d0, getIntentGuardianContract as d1, hasIntentGuardian as d2, getRateManagerContracts as d3, getStakeVaultContract as d4, getOrchestratorV3Contract as d5, getDisputeProtectionPolicyContract as d6, getPaymentMethodsCatalog as d7, getGatingServiceAddress as d8, ORCHESTRATOR_V3_ABI as d9, type BatchResult as dA, type SendTransactionFn as dB, type SendBatchFn as dC, AccessPolicyOperations as dD, AccessPolicyUnsupportedError as dE, ZERO_ADDRESS as dF, asErrorMessage as dG, assertDelegationMethodSupport as dH, DISPUTE_PROTECTION_POLICY_ABI as da, STAKE_VAULT_ABI as db, type RuntimeEnv as dc, type V2ContractAddresses as dd, type V2ContractAbis as de, parseDepositView as df, parseIntentView as dg, enrichPvDepositView as dh, enrichPvIntentView as di, type PV_DepositView as dj, type PV_Deposit as dk, type PV_PaymentMethodData as dl, type PV_Currency as dm, type PV_ReferralFee as dn, type PV_IntentView as dp, type PV_Intent as dq, ZERO_RATE_MANAGER_ID as dr, isZeroRateManagerId as ds, normalizeRateManagerId as dt, normalizeRegistry as du, getDelegationRoute as dv, classifyDelegationState as dw, type DelegationRoute as dx, type DelegationState as dy, type DelegationDepositTarget as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type BestByPlatformResponse as t, type ValidatePayeeDetailsResponse as u, type PostDepositDetailsResponse as v, type GetPayeeDetailsRequest as w, type GetPayeeDetailsResponse as x, type GetOwnerDepositsRequest as y, type GetOwnerDepositsResponse as z };
|
|
@@ -1802,7 +1802,7 @@ type GetOrderbookTableResponse = {
|
|
|
1802
1802
|
rows: OrderbookTableRow[];
|
|
1803
1803
|
};
|
|
1804
1804
|
|
|
1805
|
-
declare const PAYMENT_PLATFORMS: readonly ["wise", "venmo", "revolut", "cashapp", "mercadopago", "zelle", "paypal", "monzo", "chime", "luxon", "n26"];
|
|
1805
|
+
declare const PAYMENT_PLATFORMS: readonly ["wise", "venmo", "revolut", "cashapp", "mercadopago", "zelle", "paypal", "monzo", "chime", "luxon", "n26", "upi"];
|
|
1806
1806
|
type PaymentPlatformType = (typeof PAYMENT_PLATFORMS)[number];
|
|
1807
1807
|
|
|
1808
1808
|
type ReferralReadOptions$1 = {
|
|
@@ -1836,99 +1836,10 @@ type UpdateReferralCodeSignatureOptions$1 = ReferralSignatureOptions$1 & {
|
|
|
1836
1836
|
oldCode: string;
|
|
1837
1837
|
};
|
|
1838
1838
|
|
|
1839
|
-
/**
|
|
1840
|
-
* Deterministic persisted -> draft diff for a deposit's access policy.
|
|
1841
|
-
*
|
|
1842
|
-
* `WhitelistPolicy` cannot replace a policy in one call: `configureDeposit`
|
|
1843
|
-
* replaces only the enabled flag and *appends* groups and takers, so removals
|
|
1844
|
-
* are always separate calls. A single "Save policy" action is therefore a plan
|
|
1845
|
-
* of one or more steps, and the ordering matters:
|
|
1846
|
-
*
|
|
1847
|
-
* - Staying or becoming Restricted: add before removing, so the deposit is
|
|
1848
|
-
* never left enforcing against an empty allow set.
|
|
1849
|
-
* - Becoming Public: disable first, so the fail-open switch lands before any
|
|
1850
|
-
* destructive cleanup and a partially applied plan cannot strand the deposit
|
|
1851
|
-
* enforcing a half-removed list.
|
|
1852
|
-
* - Swapping more groups than the cap allows: fail open, remove, add, then
|
|
1853
|
-
* restore enforcement, because `addAllowedGroups` reverts once the stored
|
|
1854
|
-
* array reaches the maximum.
|
|
1855
|
-
*
|
|
1856
|
-
* Every step is idempotent at the contract level (duplicate adds and absent
|
|
1857
|
-
* removals are no-ops), so a partially applied plan can be retried from the
|
|
1858
|
-
* beginning without corrupting state.
|
|
1859
|
-
*/
|
|
1860
|
-
declare const MAX_GROUPS_PER_DEPOSIT_PAYMENT_METHOD = 10;
|
|
1861
|
-
/**
|
|
1862
|
-
* Direct addresses written per transaction.
|
|
1863
|
-
*
|
|
1864
|
-
* `WhitelistPolicy` caps groups at ten but places no limit on the taker array,
|
|
1865
|
-
* so an unchunked editor draft becomes one call whose calldata and per-entry
|
|
1866
|
-
* storage writes can exceed what a wallet will submit or a block will accept —
|
|
1867
|
-
* an unmineable transaction rather than a clean revert. Fifty entries keeps a
|
|
1868
|
-
* single call comfortably inside a normal wallet gas ceiling.
|
|
1869
|
-
*/
|
|
1870
|
-
declare const MAX_ADDRESSES_PER_CALL = 50;
|
|
1871
|
-
/**
|
|
1872
|
-
* Total direct addresses one deposit may hold from this client.
|
|
1873
|
-
*
|
|
1874
|
-
* The contract has no such limit; this is a product cap, chosen so the worst
|
|
1875
|
-
* case is ten address transactions rather than an unbounded confirmation queue.
|
|
1876
|
-
* Groups are the intended mechanism for admitting many takers — a maker who
|
|
1877
|
-
* needs more than this wants a group, not a longer list.
|
|
1878
|
-
*/
|
|
1879
|
-
declare const MAX_WHITELISTED_ADDRESSES = 500;
|
|
1880
|
-
type AccessPolicyState = {
|
|
1881
|
-
enabled: boolean;
|
|
1882
|
-
groupIds: string[];
|
|
1883
|
-
addresses: string[];
|
|
1884
|
-
};
|
|
1885
|
-
type AccessPolicyPlanStep = {
|
|
1886
|
-
kind: 'configureDeposit';
|
|
1887
|
-
enabled: boolean;
|
|
1888
|
-
groupIds: string[];
|
|
1889
|
-
takers: string[];
|
|
1890
|
-
} | {
|
|
1891
|
-
kind: 'setEnabled';
|
|
1892
|
-
enabled: boolean;
|
|
1893
|
-
} | {
|
|
1894
|
-
kind: 'addAllowedGroups';
|
|
1895
|
-
groupIds: string[];
|
|
1896
|
-
} | {
|
|
1897
|
-
kind: 'removeAllowedGroups';
|
|
1898
|
-
groupIds: string[];
|
|
1899
|
-
} | {
|
|
1900
|
-
kind: 'addWhitelistedAddresses';
|
|
1901
|
-
takers: string[];
|
|
1902
|
-
} | {
|
|
1903
|
-
kind: 'removeWhitelistedAddresses';
|
|
1904
|
-
takers: string[];
|
|
1905
|
-
};
|
|
1906
|
-
type AccessPolicyViolation = 'group-cap-exceeded' | 'empty-restricted-policy' | 'address-cap-exceeded';
|
|
1907
|
-
type AccessPolicyOrdering = 'no-changes' | 'additions-first' | 'removals-first' | 'disable-first';
|
|
1908
|
-
type AccessPolicyDiff = {
|
|
1909
|
-
addedGroupIds: string[];
|
|
1910
|
-
removedGroupIds: string[];
|
|
1911
|
-
addedAddresses: string[];
|
|
1912
|
-
removedAddresses: string[];
|
|
1913
|
-
enabledChanged: boolean;
|
|
1914
|
-
};
|
|
1915
|
-
type AccessPolicyPlan = {
|
|
1916
|
-
diff: AccessPolicyDiff;
|
|
1917
|
-
steps: AccessPolicyPlanStep[];
|
|
1918
|
-
hasChanges: boolean;
|
|
1919
|
-
ordering: AccessPolicyOrdering;
|
|
1920
|
-
/** Non-empty means the draft must not be submitted. */
|
|
1921
|
-
violations: AccessPolicyViolation[];
|
|
1922
|
-
/** Group count once the plan has fully applied. */
|
|
1923
|
-
resultingGroupCount: number;
|
|
1924
|
-
};
|
|
1925
|
-
/** Normalizes a state so callers cannot smuggle duplicates or casing through. */
|
|
1926
|
-
declare const normalizeAccessPolicyState: (state: AccessPolicyState) => AccessPolicyState;
|
|
1927
|
-
declare const diffAccessPolicy: (persistedInput: AccessPolicyState, draftInput: AccessPolicyState) => AccessPolicyDiff;
|
|
1928
|
-
declare const planAccessPolicyUpdate: (persistedInput: AccessPolicyState, draftInput: AccessPolicyState) => AccessPolicyPlan;
|
|
1929
|
-
|
|
1930
1839
|
type AccessPolicyOperationsConfig = {
|
|
1931
1840
|
getPublicClient: () => PublicClient;
|
|
1841
|
+
/** Required only for environment-owned policy writes. */
|
|
1842
|
+
getRuntimeEnv?: () => RuntimeEnv;
|
|
1932
1843
|
/** Undefined wherever the policy is not deployed. */
|
|
1933
1844
|
getPolicyAddress: () => Address | undefined;
|
|
1934
1845
|
getPolicyAbi: () => Abi | undefined;
|
|
@@ -1946,14 +1857,16 @@ declare class AccessPolicyUnsupportedError extends Error {
|
|
|
1946
1857
|
constructor(contract: 'WhitelistPolicy' | 'AddressGroupRegistry');
|
|
1947
1858
|
}
|
|
1948
1859
|
/**
|
|
1949
|
-
*
|
|
1860
|
+
* Historical reads and narrowly scoped writes for `WhitelistPolicy` and
|
|
1861
|
+
* `AddressGroupRegistry`.
|
|
1950
1862
|
*
|
|
1951
1863
|
* Writes are depositor-only at the contract level: `onlyDepositor` resolves the
|
|
1952
1864
|
* escrow's recorded depositor, so a deposit delegate is rejected. Callers must
|
|
1953
1865
|
* gate the UI on that rather than relying on a revert.
|
|
1954
1866
|
*
|
|
1955
|
-
*
|
|
1956
|
-
*
|
|
1867
|
+
* General-purpose group management is retired. New sell deposits may still
|
|
1868
|
+
* configure the protocol-owned Peer Pay merchant default; every other write
|
|
1869
|
+
* remains limited to failing open or removing historical entries.
|
|
1957
1870
|
*/
|
|
1958
1871
|
declare class AccessPolicyOperations {
|
|
1959
1872
|
private readonly config;
|
|
@@ -1989,27 +1902,18 @@ declare class AccessPolicyOperations {
|
|
|
1989
1902
|
account: Address;
|
|
1990
1903
|
}): Promise<boolean>;
|
|
1991
1904
|
private preparePolicyCall;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
depositId: bigint;
|
|
1995
|
-
paymentMethod: Hex;
|
|
1996
|
-
enabled: boolean;
|
|
1997
|
-
groupIds: readonly Hex[];
|
|
1998
|
-
takers: readonly Address[];
|
|
1999
|
-
txOverrides?: TxOverrides;
|
|
2000
|
-
}): PreparedTransactionWithAbi;
|
|
2001
|
-
prepareSetEnabled(params: {
|
|
1905
|
+
/** Configure the fixed Peer Pay merchant default while creating a sell deposit. */
|
|
1906
|
+
prepareConfigurePeerPayMerchantDeposit(params: {
|
|
2002
1907
|
escrow: Address;
|
|
2003
1908
|
depositId: bigint;
|
|
2004
1909
|
paymentMethod: Hex;
|
|
2005
|
-
enabled: boolean;
|
|
2006
1910
|
txOverrides?: TxOverrides;
|
|
2007
1911
|
}): PreparedTransactionWithAbi;
|
|
2008
|
-
|
|
1912
|
+
/** Fail open before removing historical policy entries. */
|
|
1913
|
+
prepareDisable(params: {
|
|
2009
1914
|
escrow: Address;
|
|
2010
1915
|
depositId: bigint;
|
|
2011
1916
|
paymentMethod: Hex;
|
|
2012
|
-
groupIds: readonly Hex[];
|
|
2013
1917
|
txOverrides?: TxOverrides;
|
|
2014
1918
|
}): PreparedTransactionWithAbi;
|
|
2015
1919
|
prepareRemoveAllowedGroups(params: {
|
|
@@ -2019,39 +1923,12 @@ declare class AccessPolicyOperations {
|
|
|
2019
1923
|
groupIds: readonly Hex[];
|
|
2020
1924
|
txOverrides?: TxOverrides;
|
|
2021
1925
|
}): PreparedTransactionWithAbi;
|
|
2022
|
-
prepareAddWhitelistedAddresses(params: {
|
|
2023
|
-
escrow: Address;
|
|
2024
|
-
depositId: bigint;
|
|
2025
|
-
takers: readonly Address[];
|
|
2026
|
-
txOverrides?: TxOverrides;
|
|
2027
|
-
}): PreparedTransactionWithAbi;
|
|
2028
1926
|
prepareRemoveWhitelistedAddresses(params: {
|
|
2029
1927
|
escrow: Address;
|
|
2030
1928
|
depositId: bigint;
|
|
2031
1929
|
takers: readonly Address[];
|
|
2032
1930
|
txOverrides?: TxOverrides;
|
|
2033
1931
|
}): PreparedTransactionWithAbi;
|
|
2034
|
-
/** Encodes one planner step. */
|
|
2035
|
-
preparePlanStep(params: {
|
|
2036
|
-
escrow: Address;
|
|
2037
|
-
depositId: bigint;
|
|
2038
|
-
paymentMethod: Hex;
|
|
2039
|
-
step: AccessPolicyPlanStep;
|
|
2040
|
-
txOverrides?: TxOverrides;
|
|
2041
|
-
}): PreparedTransactionWithAbi;
|
|
2042
|
-
/**
|
|
2043
|
-
* Encodes a whole plan, in order.
|
|
2044
|
-
*
|
|
2045
|
-
* A plan with violations encodes to nothing: an invalid draft must be
|
|
2046
|
-
* rejected before a wallet is ever opened.
|
|
2047
|
-
*/
|
|
2048
|
-
preparePlan(params: {
|
|
2049
|
-
escrow: Address;
|
|
2050
|
-
depositId: bigint;
|
|
2051
|
-
paymentMethod: Hex;
|
|
2052
|
-
plan: AccessPolicyPlan;
|
|
2053
|
-
txOverrides?: TxOverrides;
|
|
2054
|
-
}): PreparedTransactionWithAbi[];
|
|
2055
1932
|
}
|
|
2056
1933
|
|
|
2057
1934
|
type IntentGuardianWriteFunction = 'extendIntent';
|
|
@@ -2758,6 +2635,21 @@ type DisputeProtectionReadinessOptions = {
|
|
|
2758
2635
|
/** Also prove the dormant successor stack while the recognized predecessor remains active. */
|
|
2759
2636
|
verifyPassiveSuccessor?: boolean;
|
|
2760
2637
|
};
|
|
2638
|
+
type DisputeAttestationConfig = {
|
|
2639
|
+
asOfBlock: bigint;
|
|
2640
|
+
chainId: number;
|
|
2641
|
+
policyAddress: Address;
|
|
2642
|
+
verifierAddress: Address;
|
|
2643
|
+
trustedSigners: readonly Address[];
|
|
2644
|
+
requiredSignatures: number;
|
|
2645
|
+
};
|
|
2646
|
+
type ReadDisputeAttestationConfigParams = {
|
|
2647
|
+
publicClient: PublicClient;
|
|
2648
|
+
chainId: number;
|
|
2649
|
+
environment?: RuntimeEnv;
|
|
2650
|
+
};
|
|
2651
|
+
/** Read the canonical dispute addresses and live attestation trust roots at one block. */
|
|
2652
|
+
declare function readDisputeAttestationConfig({ publicClient, chainId, environment, }: ReadDisputeAttestationConfigParams): Promise<DisputeAttestationConfig>;
|
|
2761
2653
|
|
|
2762
2654
|
type FulfillmentRecord = {
|
|
2763
2655
|
id: string;
|
|
@@ -4805,4 +4697,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
4805
4697
|
value?: bigint;
|
|
4806
4698
|
}>) => Promise<string>;
|
|
4807
4699
|
|
|
4808
|
-
export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetDepositBundleParams as E, type GetDepositBundleResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetOrderbookParams as H, type IntentEntity as I, type GetOrderbookResponse as J, type GetOrderbookTableResponse as K, type QuoteRequest as L, type QuoteResponse as M, type CuratorMetadata as N, type CurrencyType as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type PaymentMethodCatalog as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type TxOverrides as W, type ReferralBearerWriteOptions as X, type ReferralReadOptions as Y, Zkp2pClient as Z, type ReferralSignatureOptions as _, type IdentityAttestationRequestBody as a, type RegisterPayeeDetailsRequest as a$, type SignalIntentReferralFee as a0, type SignalIntentMethodParams as a1, type FulfillIntentMethodParams as a2, type CancelIntentMethodParams as a3, type UpdateReferralCodeSignatureOptions as a4, type Zkp2pNextOptions as a5, type StakeVaultState as a6, type StakeVaultWriteFunction as a7, type StakeVaultWriteParams as a8, type DisputeProtectionReadinessOptions as a9, type GetNearbyQuote as aA, type GetNearbySuggestions as aB, type GetQuoteResponse as aC, type GetQuoteResponseObject as aD, type GetQuoteSingleResponse as aE, type QuoteResponseObject as aF, type QuoteSingleResponse as aG, type QuoteIntentResponse as aH, type QuoteFeesResponse as aI, type FiatResponse as aJ, type TokenResponse as aK, type NearbyQuote as aL, type NearbySuggestions as aM, type ApiDeposit as aN, type DepositVerifier as aO, type DepositVerifierCurrency as aP, type DepositStatus$1 as aQ, type GetDepositByIdRequest as aR, type GetDepositByIdResponse as aS, type Intent as aT, type ApiIntentStatus as aU, type GetOwnerIntentsRequest as aV, type GetOwnerIntentsResponse as aW, type GetIntentsByDepositRequest as aX, type GetIntentsByDepositResponse as aY, type GetIntentByHashRequest as aZ, type GetIntentByHashResponse as a_, type DisputeProtectionReadinessResult as aa, type IntentGuardianPolicy as ab, type IntentGuardianQuote as ac, type IntentGuardianWriteFunction as ad, type IntentGuardianWriteParams as ae, type IntentGuardianErrorCode as af, classifyIntentGuardianError as ag, type AuthorizationTokenProvider as ah, type TimeoutConfig as ai, type ActionCallback as aj, type ReferralRedemption as ak, type ReferralSignatureBody as al, type CreateDepositParams as am, type CreateDepositConversionRate as an, type Range as ao, type WithdrawDepositParams as ap, type SignalIntentParams as aq, type FulfillIntentParams as ar, type ReleaseFundsToPayerParams as as, type CancelIntentParams as at, type BestByPlatformResponseObject as au, type GetBestByPlatformResponse as av, type GetBestByPlatformResponseObject as aw, type GetPlatformQuote as ax, type PlatformQuote as ay, type QuotePreference as az, type AttestationServiceSellerVerifyResponse as b, buildStakingEntityIds as b$, type RegisterPayeeDetailsResponse as b0, type SellerPlatform as b1, type VenmoSessionMaterial as b2, type CashAppSessionMaterial as b3, type WiseSessionMaterial as b4, type WiseProfileInfo as b5, type WiseProfileSelectionRequired as b6, type WiseProfileNotFound as b7, type PayPalGoogleOAuthSellerCredentialUploadBody as b8, type VenmoCredentialUploadInput as b9, type RegisteredUploadSellerCredentialParams as bA, type UploadSellerCredentialOptions as bB, type GetSellerCredentialStatusParams as bC, type UploadPayPalGoogleOAuthSellerCredentialParams as bD, type UploadGoogleOAuthSellerCredentialParams as bE, type VerifySellerPaymentParams as bF, type IdentityAttestationActionType as bG, type IdentityAttestationOutput as bH, type IdentityAttestationOutputFor as bI, type IdentityAttestationParams as bJ, type MakerIdentityAttestationRequestBody as bK, type MakerIdentityPlatform as bL, type OnchainCurrency as bM, type DepositVerifierData as bN, type PreparedTransaction as bO, type OrderStats as bP, type DepositIntentStatistics as bQ, type UsdcAmount as bR, type StakeEnvironment as bS, type TakerStakeBalances as bT, type OrderbookEntry as bU, type OrderbookTableRow as bV, IndexerClient as bW, defaultIndexerEndpoint as bX, IndexerDepositService as bY, IndexerRateManagerService as bZ, compareEventCursorIdsByRecency as b_, type CashAppCredentialUploadInput as ba, type WiseCredentialUploadInput as bb, type SellerCredentialUploadInputByPlatform as bc, type SellerCiphertextBundle as bd, type SellerSignedCiphertextBundle as be, type SellerVerifyIntentDetails as bf, type SellerVerifyInput as bg, type SellerProbeInput as bh, type SellerCredentialBundleUpload as bi, type SellerCredentialStatusValue as bj, type SellerCredentialStatus as bk, type SellerVerifyProxyBody as bl, type SellerTypedDataField as bm, type SellerTypedDataSpec as bn, type SellerPaymentTypedDataValue as bo, type SellerAttestationOutput as bp, type SellerCredentialProbeResponse as bq, type FulfillIntentAttestationResponse as br, type AttestationServiceSellerCredentialProbeResponse as bs, type BuyerTeePaymentParams as bt, type BuyerTeePaymentProofInput as bu, type BuyerTeeSessionMaterial as bv, type CuratorSellerCredentialStatusResponse as bw, type CuratorSellerVerifyResponse as bx, type RegisteredSellerCredentialPlatform as by, type UploadSellerCredentialParams as bz, type SellerCredentialUploadInput as c, hasIntentGuardian as c$, IndexerStakingService as c0, fetchFulfillmentAndPayment as c1, type DepositEntity as c2, type IntentFulfilledEntity as c3, type IntentFulfillmentAmountsEntity as c4, type DepositPaymentMethodEntity as c5, type MethodCurrencyEntity as c6, type IntentStatus as c7, type RateManagerEntity as c8, type RateManagerRateEntity as c9, type StakingEntityIds as cA, type TakerStakeAuthorizationPageParams as cB, type DepositFilter as cC, type PaginationOptions as cD, type DepositOrderField as cE, type OrderDirection$1 as cF, type RateManagerFilter as cG, type RateManagerPaginationOptions as cH, type RateManagerDelegationPaginationOptions as cI, type RateManagerOrderField as cJ, type OrderDirection as cK, type DeploymentEnv as cL, type FulfillmentRecord as cM, type PaymentVerifiedRecord as cN, type FulfillmentAndPaymentResponse as cO, PAYMENT_PLATFORMS as cP, type PaymentPlatformType as cQ, Currency as cR, currencyInfo as cS, getCurrencyInfoFromHash as cT, getCurrencyInfoFromCountryCode as cU, getCurrencyCodeFromHash as cV, isSupportedCurrencyHash as cW, mapConversionRatesToOnchainMinRate as cX, type CurrencyData as cY, getContracts as cZ, getIntentGuardianContract as c_, type RateManagerDelegationEntity as ca, type ManagerAggregateStatsEntity as cb, type ManagerStatsEntity as cc, type ManagerDailySnapshotEntity as cd, type RateManagerListItem as ce, type RateManagerDetail as cf, type ManualRateUpdateEntity as cg, type OracleConfigUpdateEntity as ch, type DepositFundActivityEntity as ci, type DepositDailySnapshotEntity as cj, type DepositFundActivityType as ck, type DisputeProtectionIntentPage as cl, type DisputeProtectionIntentPageParams as cm, type IndexedDisputeProtectionIntent as cn, type IndexedPage as co, type IndexedPageAsOf as cp, type IndexedRiskWindow as cq, type IndexedStakeActivity as cr, type IndexedStakeLock as cs, type IndexedStakingRowFreshness as ct, type IndexedStakingState as cu, type IndexedStakingStateParams as cv, type IndexedTakerAuthorization as cw, type IndexedTakerStakeAuthorization as cx, type StakeActivityPageParams as cy, type StakeLockPageParams as cz, type SellerCredentialUploadPlatform as d, getRateManagerContracts as d0, getStakeVaultContract as d1, getOrchestratorV3Contract as d2, getDisputeProtectionPolicyContract as d3, getPaymentMethodsCatalog as d4, getGatingServiceAddress as d5, ORCHESTRATOR_V3_ABI as d6, DISPUTE_PROTECTION_POLICY_ABI as d7, STAKE_VAULT_ABI as d8, type RuntimeEnv as d9, AccessPolicyOperations as dA, AccessPolicyUnsupportedError as dB, MAX_GROUPS_PER_DEPOSIT_PAYMENT_METHOD as dC, MAX_ADDRESSES_PER_CALL as dD, MAX_WHITELISTED_ADDRESSES as dE, diffAccessPolicy as dF, normalizeAccessPolicyState as dG, planAccessPolicyUpdate as dH, type AccessPolicyDiff as dI, type AccessPolicyOrdering as dJ, type AccessPolicyPlan as dK, type AccessPolicyPlanStep as dL, type AccessPolicyState as dM, type AccessPolicyViolation as dN, ZERO_ADDRESS as dO, asErrorMessage as dP, assertDelegationMethodSupport as dQ, type V2ContractAddresses as da, type V2ContractAbis as db, parseDepositView as dc, parseIntentView as dd, enrichPvDepositView as de, enrichPvIntentView as df, type PV_DepositView as dg, type PV_Deposit as dh, type PV_PaymentMethodData as di, type PV_Currency as dj, type PV_ReferralFee as dk, type PV_IntentView as dl, type PV_Intent as dm, ZERO_RATE_MANAGER_ID as dn, isZeroRateManagerId as dp, normalizeRateManagerId as dq, normalizeRegistry as dr, getDelegationRoute as ds, classifyDelegationState as dt, type DelegationRoute as du, type DelegationState as dv, type DelegationDepositTarget as dw, type BatchResult as dx, type SendTransactionFn as dy, type SendBatchFn as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type BestByPlatformResponse as t, type ValidatePayeeDetailsResponse as u, type PostDepositDetailsResponse as v, type GetPayeeDetailsRequest as w, type GetPayeeDetailsResponse as x, type GetOwnerDepositsRequest as y, type GetOwnerDepositsResponse as z };
|
|
4700
|
+
export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetDepositBundleParams as E, type GetDepositBundleResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetOrderbookParams as H, type IntentEntity as I, type GetOrderbookResponse as J, type GetOrderbookTableResponse as K, type QuoteRequest as L, type QuoteResponse as M, type CuratorMetadata as N, type CurrencyType as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type PaymentMethodCatalog as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type TxOverrides as W, type ReferralBearerWriteOptions as X, type ReferralReadOptions as Y, Zkp2pClient as Z, type ReferralSignatureOptions as _, type IdentityAttestationRequestBody as a, type GetIntentsByDepositResponse as a$, type SignalIntentReferralFee as a0, type SignalIntentMethodParams as a1, type FulfillIntentMethodParams as a2, type CancelIntentMethodParams as a3, type UpdateReferralCodeSignatureOptions as a4, type Zkp2pNextOptions as a5, type StakeVaultState as a6, type StakeVaultWriteFunction as a7, type StakeVaultWriteParams as a8, readDisputeAttestationConfig as a9, type GetPlatformQuote as aA, type PlatformQuote as aB, type QuotePreference as aC, type GetNearbyQuote as aD, type GetNearbySuggestions as aE, type GetQuoteResponse as aF, type GetQuoteResponseObject as aG, type GetQuoteSingleResponse as aH, type QuoteResponseObject as aI, type QuoteSingleResponse as aJ, type QuoteIntentResponse as aK, type QuoteFeesResponse as aL, type FiatResponse as aM, type TokenResponse as aN, type NearbyQuote as aO, type NearbySuggestions as aP, type ApiDeposit as aQ, type DepositVerifier as aR, type DepositVerifierCurrency as aS, type DepositStatus$1 as aT, type GetDepositByIdRequest as aU, type GetDepositByIdResponse as aV, type Intent as aW, type ApiIntentStatus as aX, type GetOwnerIntentsRequest as aY, type GetOwnerIntentsResponse as aZ, type GetIntentsByDepositRequest as a_, type DisputeAttestationConfig as aa, type DisputeProtectionReadinessOptions as ab, type DisputeProtectionReadinessResult as ac, type ReadDisputeAttestationConfigParams as ad, type IntentGuardianPolicy as ae, type IntentGuardianQuote as af, type IntentGuardianWriteFunction as ag, type IntentGuardianWriteParams as ah, type IntentGuardianErrorCode as ai, classifyIntentGuardianError as aj, type AuthorizationTokenProvider as ak, type TimeoutConfig as al, type ActionCallback as am, type ReferralRedemption as an, type ReferralSignatureBody as ao, type CreateDepositParams as ap, type CreateDepositConversionRate as aq, type Range as ar, type WithdrawDepositParams as as, type SignalIntentParams as at, type FulfillIntentParams as au, type ReleaseFundsToPayerParams as av, type CancelIntentParams as aw, type BestByPlatformResponseObject as ax, type GetBestByPlatformResponse as ay, type GetBestByPlatformResponseObject as az, type AttestationServiceSellerVerifyResponse as b, IndexerDepositService as b$, type GetIntentByHashRequest as b0, type GetIntentByHashResponse as b1, type RegisterPayeeDetailsRequest as b2, type RegisterPayeeDetailsResponse as b3, type SellerPlatform as b4, type VenmoSessionMaterial as b5, type CashAppSessionMaterial as b6, type WiseSessionMaterial as b7, type WiseProfileInfo as b8, type WiseProfileSelectionRequired as b9, type CuratorSellerVerifyResponse as bA, type RegisteredSellerCredentialPlatform as bB, type UploadSellerCredentialParams as bC, type RegisteredUploadSellerCredentialParams as bD, type UploadSellerCredentialOptions as bE, type GetSellerCredentialStatusParams as bF, type UploadPayPalGoogleOAuthSellerCredentialParams as bG, type UploadGoogleOAuthSellerCredentialParams as bH, type VerifySellerPaymentParams as bI, type IdentityAttestationActionType as bJ, type IdentityAttestationOutput as bK, type IdentityAttestationOutputFor as bL, type IdentityAttestationParams as bM, type MakerIdentityAttestationRequestBody as bN, type MakerIdentityPlatform as bO, type OnchainCurrency as bP, type DepositVerifierData as bQ, type PreparedTransaction as bR, type OrderStats as bS, type DepositIntentStatistics as bT, type UsdcAmount as bU, type StakeEnvironment as bV, type TakerStakeBalances as bW, type OrderbookEntry as bX, type OrderbookTableRow as bY, IndexerClient as bZ, defaultIndexerEndpoint as b_, type WiseProfileNotFound as ba, type PayPalGoogleOAuthSellerCredentialUploadBody as bb, type VenmoCredentialUploadInput as bc, type CashAppCredentialUploadInput as bd, type WiseCredentialUploadInput as be, type SellerCredentialUploadInputByPlatform as bf, type SellerCiphertextBundle as bg, type SellerSignedCiphertextBundle as bh, type SellerVerifyIntentDetails as bi, type SellerVerifyInput as bj, type SellerProbeInput as bk, type SellerCredentialBundleUpload as bl, type SellerCredentialStatusValue as bm, type SellerCredentialStatus as bn, type SellerVerifyProxyBody as bo, type SellerTypedDataField as bp, type SellerTypedDataSpec as bq, type SellerPaymentTypedDataValue as br, type SellerAttestationOutput as bs, type SellerCredentialProbeResponse as bt, type FulfillIntentAttestationResponse as bu, type AttestationServiceSellerCredentialProbeResponse as bv, type BuyerTeePaymentParams as bw, type BuyerTeePaymentProofInput as bx, type BuyerTeeSessionMaterial as by, type CuratorSellerCredentialStatusResponse as bz, type SellerCredentialUploadInput as c, type CurrencyData as c$, IndexerRateManagerService as c0, compareEventCursorIdsByRecency as c1, buildStakingEntityIds as c2, IndexerStakingService as c3, fetchFulfillmentAndPayment as c4, type DepositEntity as c5, type IntentFulfilledEntity as c6, type IntentFulfillmentAmountsEntity as c7, type DepositPaymentMethodEntity as c8, type MethodCurrencyEntity as c9, type IndexedTakerStakeAuthorization as cA, type StakeActivityPageParams as cB, type StakeLockPageParams as cC, type StakingEntityIds as cD, type TakerStakeAuthorizationPageParams as cE, type DepositFilter as cF, type PaginationOptions as cG, type DepositOrderField as cH, type OrderDirection$1 as cI, type RateManagerFilter as cJ, type RateManagerPaginationOptions as cK, type RateManagerDelegationPaginationOptions as cL, type RateManagerOrderField as cM, type OrderDirection as cN, type DeploymentEnv as cO, type FulfillmentRecord as cP, type PaymentVerifiedRecord as cQ, type FulfillmentAndPaymentResponse as cR, PAYMENT_PLATFORMS as cS, type PaymentPlatformType as cT, Currency as cU, currencyInfo as cV, getCurrencyInfoFromHash as cW, getCurrencyInfoFromCountryCode as cX, getCurrencyCodeFromHash as cY, isSupportedCurrencyHash as cZ, mapConversionRatesToOnchainMinRate as c_, type IntentStatus as ca, type RateManagerEntity as cb, type RateManagerRateEntity as cc, type RateManagerDelegationEntity as cd, type ManagerAggregateStatsEntity as ce, type ManagerStatsEntity as cf, type ManagerDailySnapshotEntity as cg, type RateManagerListItem as ch, type RateManagerDetail as ci, type ManualRateUpdateEntity as cj, type OracleConfigUpdateEntity as ck, type DepositFundActivityEntity as cl, type DepositDailySnapshotEntity as cm, type DepositFundActivityType as cn, type DisputeProtectionIntentPage as co, type DisputeProtectionIntentPageParams as cp, type IndexedDisputeProtectionIntent as cq, type IndexedPage as cr, type IndexedPageAsOf as cs, type IndexedRiskWindow as ct, type IndexedStakeActivity as cu, type IndexedStakeLock as cv, type IndexedStakingRowFreshness as cw, type IndexedStakingState as cx, type IndexedStakingStateParams as cy, type IndexedTakerAuthorization as cz, type SellerCredentialUploadPlatform as d, getContracts as d0, getIntentGuardianContract as d1, hasIntentGuardian as d2, getRateManagerContracts as d3, getStakeVaultContract as d4, getOrchestratorV3Contract as d5, getDisputeProtectionPolicyContract as d6, getPaymentMethodsCatalog as d7, getGatingServiceAddress as d8, ORCHESTRATOR_V3_ABI as d9, type BatchResult as dA, type SendTransactionFn as dB, type SendBatchFn as dC, AccessPolicyOperations as dD, AccessPolicyUnsupportedError as dE, ZERO_ADDRESS as dF, asErrorMessage as dG, assertDelegationMethodSupport as dH, DISPUTE_PROTECTION_POLICY_ABI as da, STAKE_VAULT_ABI as db, type RuntimeEnv as dc, type V2ContractAddresses as dd, type V2ContractAbis as de, parseDepositView as df, parseIntentView as dg, enrichPvDepositView as dh, enrichPvIntentView as di, type PV_DepositView as dj, type PV_Deposit as dk, type PV_PaymentMethodData as dl, type PV_Currency as dm, type PV_ReferralFee as dn, type PV_IntentView as dp, type PV_Intent as dq, ZERO_RATE_MANAGER_ID as dr, isZeroRateManagerId as ds, normalizeRateManagerId as dt, normalizeRegistry as du, getDelegationRoute as dv, classifyDelegationState as dw, type DelegationRoute as dx, type DelegationState as dy, type DelegationDepositTarget as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type BestByPlatformResponse as t, type ValidatePayeeDetailsResponse as u, type PostDepositDetailsResponse as v, type GetPayeeDetailsRequest as w, type GetPayeeDetailsResponse as x, type GetOwnerDepositsRequest as y, type GetOwnerDepositsResponse as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"node": ">=22"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@zkp2p/indexer-schema": "0.22.0
|
|
77
|
+
"@zkp2p/indexer-schema": "0.22.0",
|
|
78
78
|
"@zkp2p/contracts-v2": "0.4.1-rc.9",
|
|
79
|
-
"@zkp2p/zkp2p-attestation": "3.0
|
|
79
|
+
"@zkp2p/zkp2p-attestation": "3.1.0",
|
|
80
80
|
"ethers": "^6.0.0",
|
|
81
81
|
"ox": "^0.11.1"
|
|
82
82
|
},
|
package/dist/chunk-FYCYFFYS.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// <define:__ZKP2P_SDK_BUILD_METADATA__>
|
|
8
|
-
var define_ZKP2P_SDK_BUILD_METADATA_default = { schemaVersion: 2, source: { repository: "zkp2p/zkp2p-clients", commitSha: "2bfd85ca62723745a95168bae6a48886a237de7e", kind: "github", distributable: true }, sdkPackageVersion: "0.12.2-rc.3", contractsPackageVersion: "0.4.1-rc.9", indexerSchemaPackageVersion: "0.22.0-rc.3", activeDisputeStack: { base: { version: 2, selectionHash: "ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c" }, baseStaging: { version: 2, selectionHash: "6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9" } } };
|
|
9
|
-
|
|
10
|
-
export { __export, define_ZKP2P_SDK_BUILD_METADATA_default };
|
|
11
|
-
//# sourceMappingURL=chunk-FYCYFFYS.mjs.map
|
|
12
|
-
//# sourceMappingURL=chunk-FYCYFFYS.mjs.map
|