@zkp2p/sdk 0.0.13 → 0.0.14-rc.1
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/{Zkp2pClient-B0l_kPQB.d.mts → Zkp2pClient-DFD0AF2d.d.mts} +324 -3
- package/dist/{Zkp2pClient-B0l_kPQB.d.ts → Zkp2pClient-DFD0AF2d.d.ts} +324 -3
- package/dist/{chunk-2J2N74ZD.mjs → chunk-DJ7FJLYA.mjs} +44 -15
- package/dist/chunk-DJ7FJLYA.mjs.map +1 -0
- package/dist/chunk-PQQWQF3C.mjs +375 -0
- package/dist/chunk-PQQWQF3C.mjs.map +1 -0
- package/dist/{chunk-2CLQDBR3.mjs → chunk-RLCHSX5F.mjs} +5 -2
- package/dist/chunk-RLCHSX5F.mjs.map +1 -0
- package/dist/{chunk-QLGMIRQ5.mjs → chunk-YMWVT5KP.mjs} +2 -2
- package/dist/{chunk-QLGMIRQ5.mjs.map → chunk-YMWVT5KP.mjs.map} +1 -1
- package/dist/{constants-F3MNDOGF.mjs → constants-MCRAVLDF.mjs} +4 -4
- package/dist/{constants-F3MNDOGF.mjs.map → constants-MCRAVLDF.mjs.map} +1 -1
- package/dist/{currency-P4HY7S34.mjs → currency-5RZ6VCEA.mjs} +3 -3
- package/dist/{currency-P4HY7S34.mjs.map → currency-5RZ6VCEA.mjs.map} +1 -1
- package/dist/index.cjs +1106 -77
- 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 +781 -44
- package/dist/index.mjs.map +1 -1
- package/dist/{paymentResolution-F4I7TTEW.mjs → paymentResolution-HBYLUETP.mjs} +3 -3
- package/dist/{paymentResolution-F4I7TTEW.mjs.map → paymentResolution-HBYLUETP.mjs.map} +1 -1
- package/dist/protocolViewerParsers-DDQ4TKNB.mjs +6 -0
- package/dist/{protocolViewerParsers-5WBXCEHR.mjs.map → protocolViewerParsers-DDQ4TKNB.mjs.map} +1 -1
- package/dist/react.cjs +434 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.mts +86 -2
- package/dist/react.d.ts +86 -2
- package/dist/react.mjs +429 -1
- package/dist/react.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-2CLQDBR3.mjs.map +0 -1
- package/dist/chunk-2J2N74ZD.mjs.map +0 -1
- package/dist/chunk-MDLTLKWK.mjs +0 -126
- package/dist/chunk-MDLTLKWK.mjs.map +0 -1
- package/dist/protocolViewerParsers-5WBXCEHR.mjs +0 -6
|
@@ -20,6 +20,7 @@ declare const Currency: {
|
|
|
20
20
|
readonly AED: "AED";
|
|
21
21
|
readonly ARS: "ARS";
|
|
22
22
|
readonly AUD: "AUD";
|
|
23
|
+
readonly BRL: "BRL";
|
|
23
24
|
readonly CAD: "CAD";
|
|
24
25
|
readonly CHF: "CHF";
|
|
25
26
|
readonly CNY: "CNY";
|
|
@@ -172,6 +173,10 @@ type V2ContractAddresses = {
|
|
|
172
173
|
protocolViewer?: `0x${string}`;
|
|
173
174
|
/** USDC token address */
|
|
174
175
|
usdc?: `0x${string}`;
|
|
176
|
+
/** DepositRateManagerRegistryV1 contract */
|
|
177
|
+
rateManagerRegistry?: `0x${string}`;
|
|
178
|
+
/** DepositRateManagerController contract */
|
|
179
|
+
rateManagerController?: `0x${string}`;
|
|
175
180
|
};
|
|
176
181
|
/**
|
|
177
182
|
* Contract ABIs for a specific deployment.
|
|
@@ -181,6 +186,8 @@ type V2ContractAbis = {
|
|
|
181
186
|
orchestrator?: Abi;
|
|
182
187
|
unifiedPaymentVerifier?: Abi;
|
|
183
188
|
protocolViewer?: Abi;
|
|
189
|
+
rateManagerRegistry?: Abi;
|
|
190
|
+
rateManagerController?: Abi;
|
|
184
191
|
};
|
|
185
192
|
/**
|
|
186
193
|
* Runtime environment: 'production' for mainnet, 'staging' for testnet/dev.
|
|
@@ -245,6 +252,16 @@ declare function getPaymentMethodsCatalog(chainId: number, env?: RuntimeEnv): Pa
|
|
|
245
252
|
* @returns Gating service signer address
|
|
246
253
|
*/
|
|
247
254
|
declare function getGatingServiceAddress(chainId: number, env?: RuntimeEnv): `0x${string}`;
|
|
255
|
+
declare function getRateManagerContracts(chainId: number, env?: RuntimeEnv): {
|
|
256
|
+
addresses: {
|
|
257
|
+
registry: `0x${string}`;
|
|
258
|
+
controller: `0x${string}`;
|
|
259
|
+
};
|
|
260
|
+
abis: {
|
|
261
|
+
registry: Abi;
|
|
262
|
+
controller: Abi;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
248
265
|
|
|
249
266
|
type PV_Deposit = {
|
|
250
267
|
depositor: string;
|
|
@@ -372,6 +389,8 @@ interface DepositEntity {
|
|
|
372
389
|
depositId: string;
|
|
373
390
|
depositor: string;
|
|
374
391
|
delegate?: string | null;
|
|
392
|
+
rateManagerId?: string | null;
|
|
393
|
+
rateManagerRegistry?: string | null;
|
|
375
394
|
token: string;
|
|
376
395
|
remainingDeposits: string;
|
|
377
396
|
intentAmountMin: string;
|
|
@@ -410,6 +429,9 @@ interface MethodCurrencyEntity {
|
|
|
410
429
|
paymentMethodHash: string;
|
|
411
430
|
currencyCode: string;
|
|
412
431
|
minConversionRate: string;
|
|
432
|
+
conversionRate?: string | null;
|
|
433
|
+
managerRate?: string | null;
|
|
434
|
+
rateManagerId?: string | null;
|
|
413
435
|
}
|
|
414
436
|
type IntentStatus = 'SIGNALED' | 'FULFILLED' | 'PRUNED' | 'MANUALLY_RELEASED';
|
|
415
437
|
interface IntentEntity {
|
|
@@ -434,6 +456,11 @@ interface IntentEntity {
|
|
|
434
456
|
fulfillTxHash?: string | null;
|
|
435
457
|
pruneTxHash?: string | null;
|
|
436
458
|
paymentMethodHash?: string | null;
|
|
459
|
+
rateManagerId?: string | null;
|
|
460
|
+
manager?: string | null;
|
|
461
|
+
managerFee?: string | null;
|
|
462
|
+
managerFeeRecipient?: string | null;
|
|
463
|
+
managerFeeAmount?: string | null;
|
|
437
464
|
paymentAmount?: string | null;
|
|
438
465
|
paymentCurrency?: string | null;
|
|
439
466
|
paymentTimestamp?: string | null;
|
|
@@ -451,9 +478,133 @@ interface IntentFulfilledEntity {
|
|
|
451
478
|
isManualRelease: boolean;
|
|
452
479
|
fundsTransferredTo?: string | null;
|
|
453
480
|
}
|
|
481
|
+
interface RateManagerEntity {
|
|
482
|
+
id: string;
|
|
483
|
+
chainId: number;
|
|
484
|
+
registry: string;
|
|
485
|
+
rateManagerId: string;
|
|
486
|
+
manager: string;
|
|
487
|
+
feeRecipient: string;
|
|
488
|
+
maxFee: string;
|
|
489
|
+
fee: string;
|
|
490
|
+
depositHook: string;
|
|
491
|
+
name: string;
|
|
492
|
+
uri: string;
|
|
493
|
+
createdAt: string;
|
|
494
|
+
updatedAt: string;
|
|
495
|
+
}
|
|
496
|
+
interface RateManagerRateEntity {
|
|
497
|
+
id: string;
|
|
498
|
+
chainId: number;
|
|
499
|
+
rateManagerId: string;
|
|
500
|
+
registry: string;
|
|
501
|
+
paymentMethodHash: string;
|
|
502
|
+
currencyCode: string;
|
|
503
|
+
managerRate: string;
|
|
504
|
+
updatedAt: string;
|
|
505
|
+
}
|
|
506
|
+
interface RateManagerDelegationEntity {
|
|
507
|
+
id: string;
|
|
508
|
+
chainId: number;
|
|
509
|
+
rateManagerId: string;
|
|
510
|
+
registry: string;
|
|
511
|
+
depositId: string;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
updatedAt: string;
|
|
514
|
+
}
|
|
515
|
+
interface ManagerAggregateStatsEntity {
|
|
516
|
+
id: string;
|
|
517
|
+
chainId: number;
|
|
518
|
+
rateManagerId: string;
|
|
519
|
+
manager: string;
|
|
520
|
+
totalFilledVolume: string;
|
|
521
|
+
totalFeeAmount: string;
|
|
522
|
+
totalPnlUsdCents: string;
|
|
523
|
+
fulfilledIntents: number;
|
|
524
|
+
currentDelegatedBalance: string;
|
|
525
|
+
currentDelegatedDeposits: number;
|
|
526
|
+
firstSeenAt: string;
|
|
527
|
+
updatedAt: string;
|
|
528
|
+
}
|
|
529
|
+
interface ManagerStatsEntity {
|
|
530
|
+
id: string;
|
|
531
|
+
chainId: number;
|
|
532
|
+
rateManagerId: string;
|
|
533
|
+
manager: string;
|
|
534
|
+
intentId: string;
|
|
535
|
+
depositId: string;
|
|
536
|
+
paymentMethodHash: string;
|
|
537
|
+
currencyCode: string;
|
|
538
|
+
amount: string;
|
|
539
|
+
quoteConversionRate: string;
|
|
540
|
+
marketRate: string;
|
|
541
|
+
spreadBps: number;
|
|
542
|
+
pnlUsdCents: string;
|
|
543
|
+
managerFee: string;
|
|
544
|
+
managerFeeAmount: string;
|
|
545
|
+
createdAt: string;
|
|
546
|
+
}
|
|
547
|
+
interface ManagerDailySnapshotEntity {
|
|
548
|
+
id: string;
|
|
549
|
+
chainId: number;
|
|
550
|
+
rateManagerId: string;
|
|
551
|
+
dayTimestamp: string;
|
|
552
|
+
tvl: string;
|
|
553
|
+
delegatedDeposits: number;
|
|
554
|
+
dailyVolume: string;
|
|
555
|
+
dailyFees: string;
|
|
556
|
+
dailyPnlUsdCents: string;
|
|
557
|
+
dailyFulfilledIntents: number;
|
|
558
|
+
cumulativeVolume: string;
|
|
559
|
+
cumulativeFees: string;
|
|
560
|
+
cumulativePnlUsdCents: string;
|
|
561
|
+
cumulativeFulfilledIntents: number;
|
|
562
|
+
updatedAt: string;
|
|
563
|
+
}
|
|
564
|
+
interface RateManagerOracleConfigEntity {
|
|
565
|
+
id: string;
|
|
566
|
+
chainId: number;
|
|
567
|
+
rateManagerId: string;
|
|
568
|
+
registry: string;
|
|
569
|
+
paymentMethodHash: string;
|
|
570
|
+
currencyCode: string;
|
|
571
|
+
adapter: string;
|
|
572
|
+
adapterConfig: string;
|
|
573
|
+
feed: string;
|
|
574
|
+
feedDecimals: number;
|
|
575
|
+
spreadBps: number;
|
|
576
|
+
maxStaleness: string;
|
|
577
|
+
invert: boolean;
|
|
578
|
+
lastOracleUpdatedAt?: string | null;
|
|
579
|
+
kind: string;
|
|
580
|
+
createdAt: string;
|
|
581
|
+
updatedAt: string;
|
|
582
|
+
}
|
|
583
|
+
interface RateManagerHookMinLiquidityEntity {
|
|
584
|
+
id: string;
|
|
585
|
+
chainId: number;
|
|
586
|
+
registry: string;
|
|
587
|
+
rateManagerId: string;
|
|
588
|
+
minLiquidity: string;
|
|
589
|
+
createdAt: string;
|
|
590
|
+
updatedAt: string;
|
|
591
|
+
}
|
|
592
|
+
interface RateManagerListItem {
|
|
593
|
+
manager: RateManagerEntity;
|
|
594
|
+
aggregate?: ManagerAggregateStatsEntity | null;
|
|
595
|
+
}
|
|
596
|
+
interface RateManagerDetail {
|
|
597
|
+
manager: RateManagerEntity;
|
|
598
|
+
rates: RateManagerRateEntity[];
|
|
599
|
+
aggregate?: ManagerAggregateStatsEntity | null;
|
|
600
|
+
recentStats: ManagerStatsEntity[];
|
|
601
|
+
delegations: RateManagerDelegationEntity[];
|
|
602
|
+
oracleConfigs: RateManagerOracleConfigEntity[];
|
|
603
|
+
hookMinLiquidity: RateManagerHookMinLiquidityEntity | null;
|
|
604
|
+
}
|
|
454
605
|
|
|
455
606
|
type DepositOrderField = 'remainingDeposits' | 'outstandingIntentAmount' | 'totalAmountTaken' | 'totalWithdrawn' | 'updatedAt' | 'timestamp';
|
|
456
|
-
type OrderDirection = 'asc' | 'desc';
|
|
607
|
+
type OrderDirection$1 = 'asc' | 'desc';
|
|
457
608
|
type DepositFilter = Partial<{
|
|
458
609
|
status: 'ACTIVE' | 'CLOSED';
|
|
459
610
|
depositor: string;
|
|
@@ -470,7 +621,7 @@ type PaginationOptions = Partial<{
|
|
|
470
621
|
limit: number;
|
|
471
622
|
offset: number;
|
|
472
623
|
orderBy: DepositOrderField;
|
|
473
|
-
orderDirection: OrderDirection;
|
|
624
|
+
orderDirection: OrderDirection$1;
|
|
474
625
|
}>;
|
|
475
626
|
declare class IndexerDepositService {
|
|
476
627
|
private client;
|
|
@@ -515,6 +666,48 @@ declare class IndexerDepositService {
|
|
|
515
666
|
}): Promise<DepositWithRelations[]>;
|
|
516
667
|
}
|
|
517
668
|
|
|
669
|
+
type OrderDirection = 'asc' | 'desc';
|
|
670
|
+
type RateManagerOrderField = 'createdAt' | 'updatedAt' | 'fee' | 'maxFee' | 'rateManagerId' | 'currentDelegatedBalance' | 'totalFilledVolume';
|
|
671
|
+
type RateManagerFilter = Partial<{
|
|
672
|
+
manager: string;
|
|
673
|
+
name: string;
|
|
674
|
+
hasHook: boolean;
|
|
675
|
+
maxFee: string;
|
|
676
|
+
rateManagerIds: string[];
|
|
677
|
+
}>;
|
|
678
|
+
type RateManagerPaginationOptions = Partial<{
|
|
679
|
+
limit: number;
|
|
680
|
+
offset: number;
|
|
681
|
+
orderBy: RateManagerOrderField;
|
|
682
|
+
orderDirection: OrderDirection;
|
|
683
|
+
}>;
|
|
684
|
+
type RateManagerDelegationPaginationOptions = Partial<{
|
|
685
|
+
limit: number;
|
|
686
|
+
offset: number;
|
|
687
|
+
orderBy: 'createdAt' | 'updatedAt' | 'depositId';
|
|
688
|
+
orderDirection: OrderDirection;
|
|
689
|
+
registry: string;
|
|
690
|
+
}>;
|
|
691
|
+
declare class IndexerRateManagerService {
|
|
692
|
+
private client;
|
|
693
|
+
constructor(client: IndexerClient);
|
|
694
|
+
private buildWhere;
|
|
695
|
+
private buildOrderBy;
|
|
696
|
+
private toRateManagerListItems;
|
|
697
|
+
private buildDelegationOrderBy;
|
|
698
|
+
fetchRateManagers(pagination?: RateManagerPaginationOptions, filter?: RateManagerFilter): Promise<RateManagerListItem[]>;
|
|
699
|
+
fetchRateManagerDetail(rateManagerId: string, options?: {
|
|
700
|
+
statsLimit?: number;
|
|
701
|
+
registry?: string | null;
|
|
702
|
+
}): Promise<RateManagerDetail | null>;
|
|
703
|
+
fetchRateManagerDelegations(rateManagerId: string, pagination?: RateManagerDelegationPaginationOptions): Promise<RateManagerDelegationEntity[]>;
|
|
704
|
+
fetchManagerDailySnapshots(rateManagerId: string, options?: {
|
|
705
|
+
limit?: number;
|
|
706
|
+
registry?: string | null;
|
|
707
|
+
}): Promise<ManagerDailySnapshotEntity[]>;
|
|
708
|
+
fetchDelegationForDeposit(depositId: string): Promise<RateManagerDelegationEntity | null>;
|
|
709
|
+
}
|
|
710
|
+
|
|
518
711
|
type FulfillmentRecord = {
|
|
519
712
|
id: string;
|
|
520
713
|
intentHash: string;
|
|
@@ -948,6 +1141,7 @@ type Intent = {
|
|
|
948
1141
|
};
|
|
949
1142
|
type GetOwnerIntentsRequest = {
|
|
950
1143
|
ownerAddress: string;
|
|
1144
|
+
escrowAddress?: string;
|
|
951
1145
|
status?: ApiIntentStatus | ApiIntentStatus[];
|
|
952
1146
|
};
|
|
953
1147
|
type GetOwnerIntentsResponse = {
|
|
@@ -958,6 +1152,7 @@ type GetOwnerIntentsResponse = {
|
|
|
958
1152
|
};
|
|
959
1153
|
type GetIntentsByDepositRequest = {
|
|
960
1154
|
depositId: string;
|
|
1155
|
+
escrowAddress?: string;
|
|
961
1156
|
status?: ApiIntentStatus | ApiIntentStatus[];
|
|
962
1157
|
};
|
|
963
1158
|
type GetIntentsByDepositResponse = {
|
|
@@ -968,6 +1163,7 @@ type GetIntentsByDepositResponse = {
|
|
|
968
1163
|
};
|
|
969
1164
|
type GetIntentByHashRequest = {
|
|
970
1165
|
intentHash: string;
|
|
1166
|
+
escrowAddress?: string;
|
|
971
1167
|
};
|
|
972
1168
|
type GetIntentByHashResponse = {
|
|
973
1169
|
success: boolean;
|
|
@@ -1016,6 +1212,7 @@ type ApiDeposit = {
|
|
|
1016
1212
|
};
|
|
1017
1213
|
type GetOwnerDepositsRequest = {
|
|
1018
1214
|
ownerAddress: string;
|
|
1215
|
+
escrowAddress?: string;
|
|
1019
1216
|
/** Optional status filter: 'ACTIVE' | 'WITHDRAWN' | 'CLOSED' */
|
|
1020
1217
|
status?: DepositStatus;
|
|
1021
1218
|
};
|
|
@@ -1027,6 +1224,7 @@ type GetOwnerDepositsResponse = {
|
|
|
1027
1224
|
};
|
|
1028
1225
|
type GetDepositByIdRequest = {
|
|
1029
1226
|
depositId: string;
|
|
1227
|
+
escrowAddress?: string;
|
|
1030
1228
|
};
|
|
1031
1229
|
type GetDepositByIdResponse = {
|
|
1032
1230
|
success: boolean;
|
|
@@ -1165,6 +1363,8 @@ type SignalIntentMethodParams = {
|
|
|
1165
1363
|
referrerFee?: bigint | string;
|
|
1166
1364
|
/** Optional hook contract to call after signaling */
|
|
1167
1365
|
postIntentHook?: Address;
|
|
1366
|
+
/** Optional data for pre-intent hook (defaults to '0x') */
|
|
1367
|
+
preIntentHookData?: `0x${string}`;
|
|
1168
1368
|
/** Optional data to pass to the hook */
|
|
1169
1369
|
data?: `0x${string}`;
|
|
1170
1370
|
/** Pre-obtained signature (if not auto-fetching) */
|
|
@@ -1301,6 +1501,14 @@ declare class Zkp2pClient {
|
|
|
1301
1501
|
readonly protocolViewerAddress?: Address;
|
|
1302
1502
|
/** ProtocolViewer contract ABI */
|
|
1303
1503
|
readonly protocolViewerAbi?: Abi;
|
|
1504
|
+
/** DepositRateManagerRegistryV1 contract address */
|
|
1505
|
+
readonly rateManagerRegistryAddress?: Address;
|
|
1506
|
+
/** DepositRateManagerRegistryV1 ABI */
|
|
1507
|
+
readonly rateManagerRegistryAbi?: Abi;
|
|
1508
|
+
/** DepositRateManagerController contract address */
|
|
1509
|
+
readonly rateManagerControllerAddress?: Address;
|
|
1510
|
+
/** DepositRateManagerController ABI */
|
|
1511
|
+
readonly rateManagerControllerAbi?: Abi;
|
|
1304
1512
|
/** Base API URL for ZKP2P services */
|
|
1305
1513
|
readonly baseApiUrl?: string;
|
|
1306
1514
|
/** API key for authenticated endpoints */
|
|
@@ -1312,6 +1520,7 @@ declare class Zkp2pClient {
|
|
|
1312
1520
|
private _usdcAddress?;
|
|
1313
1521
|
private readonly _indexerClient;
|
|
1314
1522
|
private readonly _indexerService;
|
|
1523
|
+
private readonly _indexerRateManagerService;
|
|
1315
1524
|
/**
|
|
1316
1525
|
* Creates a new Zkp2pClient instance.
|
|
1317
1526
|
*
|
|
@@ -1332,6 +1541,8 @@ declare class Zkp2pClient {
|
|
|
1332
1541
|
private executePreparedTransaction;
|
|
1333
1542
|
private prepareEscrowTransaction;
|
|
1334
1543
|
private prepareOrchestratorTransaction;
|
|
1544
|
+
private prepareContractTransaction;
|
|
1545
|
+
private buildContractMethod;
|
|
1335
1546
|
private buildEscrowMethod;
|
|
1336
1547
|
private buildOrchestratorMethod;
|
|
1337
1548
|
/**
|
|
@@ -1516,6 +1727,32 @@ declare class Zkp2pClient {
|
|
|
1516
1727
|
includeIntents?: boolean;
|
|
1517
1728
|
intentStatuses?: IntentStatus[];
|
|
1518
1729
|
}) => Promise<DepositWithRelations[]>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Fetches rate managers (vaults) with aggregate stats.
|
|
1732
|
+
*/
|
|
1733
|
+
getRateManagers: (pagination?: RateManagerPaginationOptions, filter?: RateManagerFilter) => Promise<RateManagerListItem[]>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Fetches detail for a single rate manager.
|
|
1736
|
+
*/
|
|
1737
|
+
getRateManagerDetail: (rateManagerId: string, options?: {
|
|
1738
|
+
statsLimit?: number;
|
|
1739
|
+
registry?: string | null;
|
|
1740
|
+
}) => Promise<RateManagerDetail | null>;
|
|
1741
|
+
/**
|
|
1742
|
+
* Fetches delegated deposits for a rate manager.
|
|
1743
|
+
*/
|
|
1744
|
+
getRateManagerDelegations: (rateManagerId: string, pagination?: RateManagerDelegationPaginationOptions) => Promise<RateManagerDelegationEntity[]>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Fetches delegation record for a specific composite deposit ID.
|
|
1747
|
+
*/
|
|
1748
|
+
getDelegationForDeposit: (depositId: string) => Promise<RateManagerDelegationEntity | null>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Fetches daily snapshots for a rate manager (vault).
|
|
1751
|
+
*/
|
|
1752
|
+
getManagerDailySnapshots: (rateManagerId: string, options?: {
|
|
1753
|
+
limit?: number;
|
|
1754
|
+
registry?: string | null;
|
|
1755
|
+
}) => Promise<ManagerDailySnapshotEntity[]>;
|
|
1519
1756
|
/**
|
|
1520
1757
|
* Performs a raw GraphQL query against the indexer.
|
|
1521
1758
|
*/
|
|
@@ -1799,6 +2036,90 @@ declare class Zkp2pClient {
|
|
|
1799
2036
|
depositId: bigint;
|
|
1800
2037
|
txOverrides?: TxOverrides;
|
|
1801
2038
|
}, `0x${string}`>;
|
|
2039
|
+
/**
|
|
2040
|
+
* Assign a deposit to a rate manager (vault) through the controller.
|
|
2041
|
+
*/
|
|
2042
|
+
readonly setDepositRateManager: PrepareableMethod<{
|
|
2043
|
+
escrow: Address;
|
|
2044
|
+
depositId: bigint;
|
|
2045
|
+
registry: Address;
|
|
2046
|
+
rateManagerId: Hex;
|
|
2047
|
+
txOverrides?: TxOverrides;
|
|
2048
|
+
}, `0x${string}`>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Clear an existing rate manager delegation for a deposit.
|
|
2051
|
+
*/
|
|
2052
|
+
readonly clearDepositRateManager: PrepareableMethod<{
|
|
2053
|
+
escrow: Address;
|
|
2054
|
+
depositId: bigint;
|
|
2055
|
+
txOverrides?: TxOverrides;
|
|
2056
|
+
}, `0x${string}`>;
|
|
2057
|
+
/**
|
|
2058
|
+
* Create a new rate manager (vault).
|
|
2059
|
+
*/
|
|
2060
|
+
readonly createRateManager: PrepareableMethod<{
|
|
2061
|
+
config: {
|
|
2062
|
+
manager: Address;
|
|
2063
|
+
feeRecipient: Address;
|
|
2064
|
+
maxFee: bigint;
|
|
2065
|
+
fee: bigint;
|
|
2066
|
+
depositHook: Address;
|
|
2067
|
+
name: string;
|
|
2068
|
+
uri: string;
|
|
2069
|
+
};
|
|
2070
|
+
txOverrides?: TxOverrides;
|
|
2071
|
+
}, `0x${string}`>;
|
|
2072
|
+
/**
|
|
2073
|
+
* Set a manager floor for a single payment method/currency pair.
|
|
2074
|
+
*/
|
|
2075
|
+
readonly setVaultMinRate: PrepareableMethod<{
|
|
2076
|
+
rateManagerId: Hex;
|
|
2077
|
+
paymentMethodHash: `0x${string}`;
|
|
2078
|
+
currencyHash: `0x${string}`;
|
|
2079
|
+
rate: bigint;
|
|
2080
|
+
txOverrides?: TxOverrides;
|
|
2081
|
+
}, `0x${string}`>;
|
|
2082
|
+
/**
|
|
2083
|
+
* Set manager floors in batch.
|
|
2084
|
+
*/
|
|
2085
|
+
readonly setVaultMinRatesBatch: PrepareableMethod<{
|
|
2086
|
+
rateManagerId: Hex;
|
|
2087
|
+
paymentMethods: `0x${string}`[];
|
|
2088
|
+
currencies: `0x${string}`[][];
|
|
2089
|
+
rates: bigint[][];
|
|
2090
|
+
txOverrides?: TxOverrides;
|
|
2091
|
+
}, `0x${string}`>;
|
|
2092
|
+
/**
|
|
2093
|
+
* Update vault manager fee.
|
|
2094
|
+
*/
|
|
2095
|
+
readonly setVaultFee: PrepareableMethod<{
|
|
2096
|
+
rateManagerId: Hex;
|
|
2097
|
+
newFee: bigint;
|
|
2098
|
+
txOverrides?: TxOverrides;
|
|
2099
|
+
}, `0x${string}`>;
|
|
2100
|
+
/**
|
|
2101
|
+
* Update vault manager/config metadata.
|
|
2102
|
+
*/
|
|
2103
|
+
readonly setVaultConfig: PrepareableMethod<{
|
|
2104
|
+
rateManagerId: Hex;
|
|
2105
|
+
newManager: Address;
|
|
2106
|
+
newFeeRecipient: Address;
|
|
2107
|
+
newHook: Address;
|
|
2108
|
+
newName: string;
|
|
2109
|
+
newUri: string;
|
|
2110
|
+
txOverrides?: TxOverrides;
|
|
2111
|
+
}, `0x${string}`>;
|
|
2112
|
+
/**
|
|
2113
|
+
* Read controller delegation state for a deposit.
|
|
2114
|
+
*/
|
|
2115
|
+
getDepositRateManager(escrow: Address, depositId: bigint | number | string): Promise<{
|
|
2116
|
+
registry: Address;
|
|
2117
|
+
rateManagerId: Hex;
|
|
2118
|
+
}>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Read effective manager fee for a deposit.
|
|
2121
|
+
*/
|
|
2122
|
+
getManagerFee(escrow: Address, depositId: bigint | number | string): Promise<bigint>;
|
|
1802
2123
|
/**
|
|
1803
2124
|
* Adds new payment methods to an existing deposit.
|
|
1804
2125
|
*
|
|
@@ -2216,4 +2537,4 @@ declare class Zkp2pClient {
|
|
|
2216
2537
|
}>;
|
|
2217
2538
|
}
|
|
2218
2539
|
|
|
2219
|
-
export { type GetIntentByHashResponse as $, type AuthorizationTokenProvider as A, type DepositVerifier as B, type CancelIntentMethodParams as C, type DepositWithRelations as D, type DepositVerifierCurrency as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type DepositStatus as H, type IntentEntity as I, type GetDepositByIdRequest as J, type GetDepositByIdResponse as K, type Intent as L, type ApiIntentStatus as M, type NearbyQuote as N, type GetOwnerIntentsRequest as O, type PostDepositDetailsRequest as P, type QuoteRequest as Q, type Range as R, type SignalIntentMethodParams as S, type TxOverrides as T, type GetOwnerIntentsResponse as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetIntentsByDepositRequest as X, type GetIntentsByDepositResponse as Y, Zkp2pClient as Z, type GetIntentByHashRequest as _, type ValidatePayeeDetailsResponse as a, type RegisterPayeeDetailsRequest as a0, type RegisterPayeeDetailsResponse as a1, type OnchainCurrency as a2, type DepositVerifierData as a3, type PreparedTransaction as a4, type OrderStats as a5, type DepositIntentStatistics as a6, type TakerTier as a7, type TakerTierStats as a8, type TakerTierLevel as a9,
|
|
2540
|
+
export { type GetIntentByHashResponse as $, type AuthorizationTokenProvider as A, type DepositVerifier as B, type CancelIntentMethodParams as C, type DepositWithRelations as D, type DepositVerifierCurrency as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type DepositStatus as H, type IntentEntity as I, type GetDepositByIdRequest as J, type GetDepositByIdResponse as K, type Intent as L, type ApiIntentStatus as M, type NearbyQuote as N, type GetOwnerIntentsRequest as O, type PostDepositDetailsRequest as P, type QuoteRequest as Q, type Range as R, type SignalIntentMethodParams as S, type TxOverrides as T, type GetOwnerIntentsResponse as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetIntentsByDepositRequest as X, type GetIntentsByDepositResponse as Y, Zkp2pClient as Z, type GetIntentByHashRequest as _, type ValidatePayeeDetailsResponse as a, enrichPvDepositView as a$, type RegisterPayeeDetailsRequest as a0, type RegisterPayeeDetailsResponse as a1, type OnchainCurrency as a2, type DepositVerifierData as a3, type PreparedTransaction as a4, type OrderStats as a5, type DepositIntentStatistics as a6, type TakerTier as a7, type TakerTierStats as a8, type TakerTierLevel as a9, type RateManagerFilter as aA, type RateManagerPaginationOptions as aB, type RateManagerDelegationPaginationOptions as aC, type RateManagerOrderField as aD, type OrderDirection as aE, type DeploymentEnv as aF, type FulfillmentRecord as aG, type PaymentVerifiedRecord as aH, type FulfillmentAndPaymentResponse as aI, PAYMENT_PLATFORMS as aJ, type PaymentPlatformType as aK, Currency as aL, currencyInfo as aM, getCurrencyInfoFromHash as aN, getCurrencyInfoFromCountryCode as aO, getCurrencyCodeFromHash as aP, isSupportedCurrencyHash as aQ, mapConversionRatesToOnchainMinRate as aR, type CurrencyType as aS, type CurrencyData as aT, getContracts as aU, getRateManagerContracts as aV, getPaymentMethodsCatalog as aW, getGatingServiceAddress as aX, type RuntimeEnv as aY, parseDepositView as aZ, parseIntentView as a_, type PlatformLimit as aa, type PlatformRiskLevel as ab, IndexerClient as ac, defaultIndexerEndpoint as ad, IndexerDepositService as ae, IndexerRateManagerService as af, fetchFulfillmentAndPayment as ag, type DepositEntity as ah, type IntentFulfilledEntity as ai, type DepositPaymentMethodEntity as aj, type MethodCurrencyEntity as ak, type IntentStatus as al, type RateManagerEntity as am, type RateManagerRateEntity as an, type RateManagerDelegationEntity as ao, type ManagerAggregateStatsEntity as ap, type ManagerStatsEntity as aq, type ManagerDailySnapshotEntity as ar, type RateManagerOracleConfigEntity as as, type RateManagerHookMinLiquidityEntity as at, type RateManagerListItem as au, type RateManagerDetail as av, type DepositFilter as aw, type PaginationOptions as ax, type DepositOrderField as ay, type OrderDirection$1 as az, type PostDepositDetailsResponse as b, enrichPvIntentView as b0, type PV_DepositView as b1, type PV_Deposit as b2, type PV_PaymentMethodData as b3, type PV_Currency as b4, type PV_IntentView as b5, type PV_Intent as b6, type GetPayeeDetailsResponse as c, type GetOwnerDepositsRequest as d, type GetOwnerDepositsResponse as e, type GetTakerTierRequest as f, type GetTakerTierResponse as g, type PaymentMethodCatalog as h, type Zkp2pClientOptions as i, type TimeoutConfig as j, type ActionCallback as k, type CreateDepositParams as l, type CreateDepositConversionRate as m, type SignalIntentParams as n, type FulfillIntentParams as o, type ReleaseFundsToPayerParams as p, type CancelIntentParams as q, type QuoteResponse as r, type QuoteResponseObject as s, type QuoteSingleResponse as t, type QuoteIntentResponse as u, type QuoteFeesResponse as v, type FiatResponse as w, type TokenResponse as x, type NearbySuggestions as y, type ApiDeposit as z };
|