@zkp2p/sdk 0.0.13 → 0.0.14-rc.2
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-B4BoFznc.d.mts} +353 -3
- package/dist/{Zkp2pClient-B0l_kPQB.d.ts → Zkp2pClient-B4BoFznc.d.ts} +353 -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 +1183 -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 +858 -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,150 @@ 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 ManualRateUpdateEntity {
|
|
593
|
+
id: string;
|
|
594
|
+
rateManagerId: string;
|
|
595
|
+
paymentMethod: string;
|
|
596
|
+
currency: string;
|
|
597
|
+
minRate: string;
|
|
598
|
+
}
|
|
599
|
+
interface OracleConfigUpdateEntity {
|
|
600
|
+
id: string;
|
|
601
|
+
rateManagerId: string;
|
|
602
|
+
paymentMethod: string;
|
|
603
|
+
currency: string;
|
|
604
|
+
adapter: string;
|
|
605
|
+
spreadBps: number;
|
|
606
|
+
maxStaleness: string;
|
|
607
|
+
adapterConfig: string;
|
|
608
|
+
}
|
|
609
|
+
interface RateManagerListItem {
|
|
610
|
+
manager: RateManagerEntity;
|
|
611
|
+
aggregate?: ManagerAggregateStatsEntity | null;
|
|
612
|
+
}
|
|
613
|
+
interface RateManagerDetail {
|
|
614
|
+
manager: RateManagerEntity;
|
|
615
|
+
rates: RateManagerRateEntity[];
|
|
616
|
+
aggregate?: ManagerAggregateStatsEntity | null;
|
|
617
|
+
recentStats: ManagerStatsEntity[];
|
|
618
|
+
delegations: RateManagerDelegationEntity[];
|
|
619
|
+
oracleConfigs: RateManagerOracleConfigEntity[];
|
|
620
|
+
hookMinLiquidity: RateManagerHookMinLiquidityEntity | null;
|
|
621
|
+
}
|
|
454
622
|
|
|
455
623
|
type DepositOrderField = 'remainingDeposits' | 'outstandingIntentAmount' | 'totalAmountTaken' | 'totalWithdrawn' | 'updatedAt' | 'timestamp';
|
|
456
|
-
type OrderDirection = 'asc' | 'desc';
|
|
624
|
+
type OrderDirection$1 = 'asc' | 'desc';
|
|
457
625
|
type DepositFilter = Partial<{
|
|
458
626
|
status: 'ACTIVE' | 'CLOSED';
|
|
459
627
|
depositor: string;
|
|
@@ -470,7 +638,7 @@ type PaginationOptions = Partial<{
|
|
|
470
638
|
limit: number;
|
|
471
639
|
offset: number;
|
|
472
640
|
orderBy: DepositOrderField;
|
|
473
|
-
orderDirection: OrderDirection;
|
|
641
|
+
orderDirection: OrderDirection$1;
|
|
474
642
|
}>;
|
|
475
643
|
declare class IndexerDepositService {
|
|
476
644
|
private client;
|
|
@@ -515,6 +683,54 @@ declare class IndexerDepositService {
|
|
|
515
683
|
}): Promise<DepositWithRelations[]>;
|
|
516
684
|
}
|
|
517
685
|
|
|
686
|
+
type OrderDirection = 'asc' | 'desc';
|
|
687
|
+
type RateManagerOrderField = 'createdAt' | 'updatedAt' | 'fee' | 'maxFee' | 'rateManagerId' | 'currentDelegatedBalance' | 'totalFilledVolume';
|
|
688
|
+
type RateManagerFilter = Partial<{
|
|
689
|
+
manager: string;
|
|
690
|
+
name: string;
|
|
691
|
+
hasHook: boolean;
|
|
692
|
+
maxFee: string;
|
|
693
|
+
rateManagerIds: string[];
|
|
694
|
+
}>;
|
|
695
|
+
type RateManagerPaginationOptions = Partial<{
|
|
696
|
+
limit: number;
|
|
697
|
+
offset: number;
|
|
698
|
+
orderBy: RateManagerOrderField;
|
|
699
|
+
orderDirection: OrderDirection;
|
|
700
|
+
}>;
|
|
701
|
+
type RateManagerDelegationPaginationOptions = Partial<{
|
|
702
|
+
limit: number;
|
|
703
|
+
offset: number;
|
|
704
|
+
orderBy: 'createdAt' | 'updatedAt' | 'depositId';
|
|
705
|
+
orderDirection: OrderDirection;
|
|
706
|
+
registry: string;
|
|
707
|
+
}>;
|
|
708
|
+
declare class IndexerRateManagerService {
|
|
709
|
+
private client;
|
|
710
|
+
constructor(client: IndexerClient);
|
|
711
|
+
private buildWhere;
|
|
712
|
+
private buildOrderBy;
|
|
713
|
+
private toRateManagerListItems;
|
|
714
|
+
private buildDelegationOrderBy;
|
|
715
|
+
fetchRateManagers(pagination?: RateManagerPaginationOptions, filter?: RateManagerFilter): Promise<RateManagerListItem[]>;
|
|
716
|
+
fetchRateManagerDetail(rateManagerId: string, options?: {
|
|
717
|
+
statsLimit?: number;
|
|
718
|
+
registry?: string | null;
|
|
719
|
+
}): Promise<RateManagerDetail | null>;
|
|
720
|
+
fetchRateManagerDelegations(rateManagerId: string, pagination?: RateManagerDelegationPaginationOptions): Promise<RateManagerDelegationEntity[]>;
|
|
721
|
+
fetchManagerDailySnapshots(rateManagerId: string, options?: {
|
|
722
|
+
limit?: number;
|
|
723
|
+
registry?: string | null;
|
|
724
|
+
}): Promise<ManagerDailySnapshotEntity[]>;
|
|
725
|
+
fetchDelegationForDeposit(depositId: string): Promise<RateManagerDelegationEntity | null>;
|
|
726
|
+
fetchManualRateUpdates(rateManagerId: string, options?: {
|
|
727
|
+
limit?: number;
|
|
728
|
+
}): Promise<ManualRateUpdateEntity[]>;
|
|
729
|
+
fetchOracleConfigUpdates(rateManagerId: string, options?: {
|
|
730
|
+
limit?: number;
|
|
731
|
+
}): Promise<OracleConfigUpdateEntity[]>;
|
|
732
|
+
}
|
|
733
|
+
|
|
518
734
|
type FulfillmentRecord = {
|
|
519
735
|
id: string;
|
|
520
736
|
intentHash: string;
|
|
@@ -948,6 +1164,7 @@ type Intent = {
|
|
|
948
1164
|
};
|
|
949
1165
|
type GetOwnerIntentsRequest = {
|
|
950
1166
|
ownerAddress: string;
|
|
1167
|
+
escrowAddress?: string;
|
|
951
1168
|
status?: ApiIntentStatus | ApiIntentStatus[];
|
|
952
1169
|
};
|
|
953
1170
|
type GetOwnerIntentsResponse = {
|
|
@@ -958,6 +1175,7 @@ type GetOwnerIntentsResponse = {
|
|
|
958
1175
|
};
|
|
959
1176
|
type GetIntentsByDepositRequest = {
|
|
960
1177
|
depositId: string;
|
|
1178
|
+
escrowAddress?: string;
|
|
961
1179
|
status?: ApiIntentStatus | ApiIntentStatus[];
|
|
962
1180
|
};
|
|
963
1181
|
type GetIntentsByDepositResponse = {
|
|
@@ -968,6 +1186,7 @@ type GetIntentsByDepositResponse = {
|
|
|
968
1186
|
};
|
|
969
1187
|
type GetIntentByHashRequest = {
|
|
970
1188
|
intentHash: string;
|
|
1189
|
+
escrowAddress?: string;
|
|
971
1190
|
};
|
|
972
1191
|
type GetIntentByHashResponse = {
|
|
973
1192
|
success: boolean;
|
|
@@ -1016,6 +1235,7 @@ type ApiDeposit = {
|
|
|
1016
1235
|
};
|
|
1017
1236
|
type GetOwnerDepositsRequest = {
|
|
1018
1237
|
ownerAddress: string;
|
|
1238
|
+
escrowAddress?: string;
|
|
1019
1239
|
/** Optional status filter: 'ACTIVE' | 'WITHDRAWN' | 'CLOSED' */
|
|
1020
1240
|
status?: DepositStatus;
|
|
1021
1241
|
};
|
|
@@ -1027,6 +1247,7 @@ type GetOwnerDepositsResponse = {
|
|
|
1027
1247
|
};
|
|
1028
1248
|
type GetDepositByIdRequest = {
|
|
1029
1249
|
depositId: string;
|
|
1250
|
+
escrowAddress?: string;
|
|
1030
1251
|
};
|
|
1031
1252
|
type GetDepositByIdResponse = {
|
|
1032
1253
|
success: boolean;
|
|
@@ -1165,6 +1386,8 @@ type SignalIntentMethodParams = {
|
|
|
1165
1386
|
referrerFee?: bigint | string;
|
|
1166
1387
|
/** Optional hook contract to call after signaling */
|
|
1167
1388
|
postIntentHook?: Address;
|
|
1389
|
+
/** Optional data for pre-intent hook (defaults to '0x') */
|
|
1390
|
+
preIntentHookData?: `0x${string}`;
|
|
1168
1391
|
/** Optional data to pass to the hook */
|
|
1169
1392
|
data?: `0x${string}`;
|
|
1170
1393
|
/** Pre-obtained signature (if not auto-fetching) */
|
|
@@ -1301,6 +1524,14 @@ declare class Zkp2pClient {
|
|
|
1301
1524
|
readonly protocolViewerAddress?: Address;
|
|
1302
1525
|
/** ProtocolViewer contract ABI */
|
|
1303
1526
|
readonly protocolViewerAbi?: Abi;
|
|
1527
|
+
/** DepositRateManagerRegistryV1 contract address */
|
|
1528
|
+
readonly rateManagerRegistryAddress?: Address;
|
|
1529
|
+
/** DepositRateManagerRegistryV1 ABI */
|
|
1530
|
+
readonly rateManagerRegistryAbi?: Abi;
|
|
1531
|
+
/** DepositRateManagerController contract address */
|
|
1532
|
+
readonly rateManagerControllerAddress?: Address;
|
|
1533
|
+
/** DepositRateManagerController ABI */
|
|
1534
|
+
readonly rateManagerControllerAbi?: Abi;
|
|
1304
1535
|
/** Base API URL for ZKP2P services */
|
|
1305
1536
|
readonly baseApiUrl?: string;
|
|
1306
1537
|
/** API key for authenticated endpoints */
|
|
@@ -1312,6 +1543,7 @@ declare class Zkp2pClient {
|
|
|
1312
1543
|
private _usdcAddress?;
|
|
1313
1544
|
private readonly _indexerClient;
|
|
1314
1545
|
private readonly _indexerService;
|
|
1546
|
+
private readonly _indexerRateManagerService;
|
|
1315
1547
|
/**
|
|
1316
1548
|
* Creates a new Zkp2pClient instance.
|
|
1317
1549
|
*
|
|
@@ -1332,6 +1564,8 @@ declare class Zkp2pClient {
|
|
|
1332
1564
|
private executePreparedTransaction;
|
|
1333
1565
|
private prepareEscrowTransaction;
|
|
1334
1566
|
private prepareOrchestratorTransaction;
|
|
1567
|
+
private prepareContractTransaction;
|
|
1568
|
+
private buildContractMethod;
|
|
1335
1569
|
private buildEscrowMethod;
|
|
1336
1570
|
private buildOrchestratorMethod;
|
|
1337
1571
|
/**
|
|
@@ -1516,6 +1750,38 @@ declare class Zkp2pClient {
|
|
|
1516
1750
|
includeIntents?: boolean;
|
|
1517
1751
|
intentStatuses?: IntentStatus[];
|
|
1518
1752
|
}) => Promise<DepositWithRelations[]>;
|
|
1753
|
+
/**
|
|
1754
|
+
* Fetches rate managers (vaults) with aggregate stats.
|
|
1755
|
+
*/
|
|
1756
|
+
getRateManagers: (pagination?: RateManagerPaginationOptions, filter?: RateManagerFilter) => Promise<RateManagerListItem[]>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Fetches detail for a single rate manager.
|
|
1759
|
+
*/
|
|
1760
|
+
getRateManagerDetail: (rateManagerId: string, options?: {
|
|
1761
|
+
statsLimit?: number;
|
|
1762
|
+
registry?: string | null;
|
|
1763
|
+
}) => Promise<RateManagerDetail | null>;
|
|
1764
|
+
/**
|
|
1765
|
+
* Fetches delegated deposits for a rate manager.
|
|
1766
|
+
*/
|
|
1767
|
+
getRateManagerDelegations: (rateManagerId: string, pagination?: RateManagerDelegationPaginationOptions) => Promise<RateManagerDelegationEntity[]>;
|
|
1768
|
+
/**
|
|
1769
|
+
* Fetches delegation record for a specific composite deposit ID.
|
|
1770
|
+
*/
|
|
1771
|
+
getDelegationForDeposit: (depositId: string) => Promise<RateManagerDelegationEntity | null>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Fetches daily snapshots for a rate manager (vault).
|
|
1774
|
+
*/
|
|
1775
|
+
getManagerDailySnapshots: (rateManagerId: string, options?: {
|
|
1776
|
+
limit?: number;
|
|
1777
|
+
registry?: string | null;
|
|
1778
|
+
}) => Promise<ManagerDailySnapshotEntity[]>;
|
|
1779
|
+
getManualRateUpdates: (rateManagerId: string, options?: {
|
|
1780
|
+
limit?: number;
|
|
1781
|
+
}) => Promise<ManualRateUpdateEntity[]>;
|
|
1782
|
+
getOracleConfigUpdates: (rateManagerId: string, options?: {
|
|
1783
|
+
limit?: number;
|
|
1784
|
+
}) => Promise<OracleConfigUpdateEntity[]>;
|
|
1519
1785
|
/**
|
|
1520
1786
|
* Performs a raw GraphQL query against the indexer.
|
|
1521
1787
|
*/
|
|
@@ -1799,6 +2065,90 @@ declare class Zkp2pClient {
|
|
|
1799
2065
|
depositId: bigint;
|
|
1800
2066
|
txOverrides?: TxOverrides;
|
|
1801
2067
|
}, `0x${string}`>;
|
|
2068
|
+
/**
|
|
2069
|
+
* Assign a deposit to a rate manager (vault) through the controller.
|
|
2070
|
+
*/
|
|
2071
|
+
readonly setDepositRateManager: PrepareableMethod<{
|
|
2072
|
+
escrow: Address;
|
|
2073
|
+
depositId: bigint;
|
|
2074
|
+
registry: Address;
|
|
2075
|
+
rateManagerId: Hex;
|
|
2076
|
+
txOverrides?: TxOverrides;
|
|
2077
|
+
}, `0x${string}`>;
|
|
2078
|
+
/**
|
|
2079
|
+
* Clear an existing rate manager delegation for a deposit.
|
|
2080
|
+
*/
|
|
2081
|
+
readonly clearDepositRateManager: PrepareableMethod<{
|
|
2082
|
+
escrow: Address;
|
|
2083
|
+
depositId: bigint;
|
|
2084
|
+
txOverrides?: TxOverrides;
|
|
2085
|
+
}, `0x${string}`>;
|
|
2086
|
+
/**
|
|
2087
|
+
* Create a new rate manager (vault).
|
|
2088
|
+
*/
|
|
2089
|
+
readonly createRateManager: PrepareableMethod<{
|
|
2090
|
+
config: {
|
|
2091
|
+
manager: Address;
|
|
2092
|
+
feeRecipient: Address;
|
|
2093
|
+
maxFee: bigint;
|
|
2094
|
+
fee: bigint;
|
|
2095
|
+
depositHook: Address;
|
|
2096
|
+
name: string;
|
|
2097
|
+
uri: string;
|
|
2098
|
+
};
|
|
2099
|
+
txOverrides?: TxOverrides;
|
|
2100
|
+
}, `0x${string}`>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Set a manager floor for a single payment method/currency pair.
|
|
2103
|
+
*/
|
|
2104
|
+
readonly setVaultMinRate: PrepareableMethod<{
|
|
2105
|
+
rateManagerId: Hex;
|
|
2106
|
+
paymentMethodHash: `0x${string}`;
|
|
2107
|
+
currencyHash: `0x${string}`;
|
|
2108
|
+
rate: bigint;
|
|
2109
|
+
txOverrides?: TxOverrides;
|
|
2110
|
+
}, `0x${string}`>;
|
|
2111
|
+
/**
|
|
2112
|
+
* Set manager floors in batch.
|
|
2113
|
+
*/
|
|
2114
|
+
readonly setVaultMinRatesBatch: PrepareableMethod<{
|
|
2115
|
+
rateManagerId: Hex;
|
|
2116
|
+
paymentMethods: `0x${string}`[];
|
|
2117
|
+
currencies: `0x${string}`[][];
|
|
2118
|
+
rates: bigint[][];
|
|
2119
|
+
txOverrides?: TxOverrides;
|
|
2120
|
+
}, `0x${string}`>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Update vault manager fee.
|
|
2123
|
+
*/
|
|
2124
|
+
readonly setVaultFee: PrepareableMethod<{
|
|
2125
|
+
rateManagerId: Hex;
|
|
2126
|
+
newFee: bigint;
|
|
2127
|
+
txOverrides?: TxOverrides;
|
|
2128
|
+
}, `0x${string}`>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Update vault manager/config metadata.
|
|
2131
|
+
*/
|
|
2132
|
+
readonly setVaultConfig: PrepareableMethod<{
|
|
2133
|
+
rateManagerId: Hex;
|
|
2134
|
+
newManager: Address;
|
|
2135
|
+
newFeeRecipient: Address;
|
|
2136
|
+
newHook: Address;
|
|
2137
|
+
newName: string;
|
|
2138
|
+
newUri: string;
|
|
2139
|
+
txOverrides?: TxOverrides;
|
|
2140
|
+
}, `0x${string}`>;
|
|
2141
|
+
/**
|
|
2142
|
+
* Read controller delegation state for a deposit.
|
|
2143
|
+
*/
|
|
2144
|
+
getDepositRateManager(escrow: Address, depositId: bigint | number | string): Promise<{
|
|
2145
|
+
registry: Address;
|
|
2146
|
+
rateManagerId: Hex;
|
|
2147
|
+
}>;
|
|
2148
|
+
/**
|
|
2149
|
+
* Read effective manager fee for a deposit.
|
|
2150
|
+
*/
|
|
2151
|
+
getManagerFee(escrow: Address, depositId: bigint | number | string): Promise<bigint>;
|
|
1802
2152
|
/**
|
|
1803
2153
|
* Adds new payment methods to an existing deposit.
|
|
1804
2154
|
*
|
|
@@ -2216,4 +2566,4 @@ declare class Zkp2pClient {
|
|
|
2216
2566
|
}>;
|
|
2217
2567
|
}
|
|
2218
2568
|
|
|
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,
|
|
2569
|
+
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, parseDepositView 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 DepositOrderField as aA, type OrderDirection$1 as aB, type RateManagerFilter as aC, type RateManagerPaginationOptions as aD, type RateManagerDelegationPaginationOptions as aE, type RateManagerOrderField as aF, type OrderDirection as aG, type DeploymentEnv as aH, type FulfillmentRecord as aI, type PaymentVerifiedRecord as aJ, type FulfillmentAndPaymentResponse as aK, PAYMENT_PLATFORMS as aL, type PaymentPlatformType as aM, Currency as aN, currencyInfo as aO, getCurrencyInfoFromHash as aP, getCurrencyInfoFromCountryCode as aQ, getCurrencyCodeFromHash as aR, isSupportedCurrencyHash as aS, mapConversionRatesToOnchainMinRate as aT, type CurrencyType as aU, type CurrencyData as aV, getContracts as aW, getRateManagerContracts as aX, getPaymentMethodsCatalog as aY, getGatingServiceAddress as aZ, type RuntimeEnv 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 ManualRateUpdateEntity as aw, type OracleConfigUpdateEntity as ax, type DepositFilter as ay, type PaginationOptions as az, type PostDepositDetailsResponse as b, parseIntentView as b0, enrichPvDepositView as b1, enrichPvIntentView as b2, type PV_DepositView as b3, type PV_Deposit as b4, type PV_PaymentMethodData as b5, type PV_Currency as b6, type PV_IntentView as b7, type PV_Intent as b8, 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 };
|