@zkp2p/sdk 0.0.11 → 0.0.12-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Zkp2pClient-BwGN8dWD.d.mts → Zkp2pClient-BRQLdrgN.d.mts} +322 -3
- package/dist/{Zkp2pClient-BwGN8dWD.d.ts → Zkp2pClient-BRQLdrgN.d.ts} +322 -3
- package/dist/{chunk-EIW43UIQ.mjs → chunk-JNGY2AAT.mjs} +5 -2
- package/dist/chunk-JNGY2AAT.mjs.map +1 -0
- package/dist/{chunk-LUOIIWYO.mjs → chunk-NDDOJKED.mjs} +2 -2
- package/dist/{chunk-LUOIIWYO.mjs.map → chunk-NDDOJKED.mjs.map} +1 -1
- package/dist/chunk-PQQWQF3C.mjs +375 -0
- package/dist/chunk-PQQWQF3C.mjs.map +1 -0
- package/dist/{chunk-FHWDNBNQ.mjs → chunk-VKO54HIJ.mjs} +204 -16
- package/dist/chunk-VKO54HIJ.mjs.map +1 -0
- package/dist/{constants-65JLA7QO.mjs → constants-ERPBGQ6P.mjs} +4 -4
- package/dist/{constants-65JLA7QO.mjs.map → constants-ERPBGQ6P.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 +1491 -207
- 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 +962 -159
- package/dist/index.mjs.map +1 -1
- package/dist/{paymentResolution-4Z3TKEVB.mjs → paymentResolution-5WNYTNYJ.mjs} +3 -3
- package/dist/{paymentResolution-4Z3TKEVB.mjs.map → paymentResolution-5WNYTNYJ.mjs.map} +1 -1
- package/dist/protocolViewerParsers-RIPSSUZA.mjs +6 -0
- package/dist/{protocolViewerParsers-HFBHDBSJ.mjs.map → protocolViewerParsers-RIPSSUZA.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 +16 -16
- package/dist/chunk-EIW43UIQ.mjs.map +0 -1
- package/dist/chunk-FHWDNBNQ.mjs.map +0 -1
- package/dist/chunk-MDLTLKWK.mjs +0 -126
- package/dist/chunk-MDLTLKWK.mjs.map +0 -1
- package/dist/protocolViewerParsers-HFBHDBSJ.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;
|
|
@@ -361,6 +378,8 @@ interface DepositEntity {
|
|
|
361
378
|
depositId: string;
|
|
362
379
|
depositor: string;
|
|
363
380
|
delegate?: string | null;
|
|
381
|
+
rateManagerId?: string | null;
|
|
382
|
+
rateManagerRegistry?: string | null;
|
|
364
383
|
token: string;
|
|
365
384
|
remainingDeposits: string;
|
|
366
385
|
intentAmountMin: string;
|
|
@@ -399,6 +418,9 @@ interface MethodCurrencyEntity {
|
|
|
399
418
|
paymentMethodHash: string;
|
|
400
419
|
currencyCode: string;
|
|
401
420
|
minConversionRate: string;
|
|
421
|
+
conversionRate?: string | null;
|
|
422
|
+
managerRate?: string | null;
|
|
423
|
+
rateManagerId?: string | null;
|
|
402
424
|
}
|
|
403
425
|
type IntentStatus = 'SIGNALED' | 'FULFILLED' | 'PRUNED' | 'MANUALLY_RELEASED';
|
|
404
426
|
interface IntentEntity {
|
|
@@ -423,6 +445,11 @@ interface IntentEntity {
|
|
|
423
445
|
fulfillTxHash?: string | null;
|
|
424
446
|
pruneTxHash?: string | null;
|
|
425
447
|
paymentMethodHash?: string | null;
|
|
448
|
+
rateManagerId?: string | null;
|
|
449
|
+
manager?: string | null;
|
|
450
|
+
managerFee?: string | null;
|
|
451
|
+
managerFeeRecipient?: string | null;
|
|
452
|
+
managerFeeAmount?: string | null;
|
|
426
453
|
paymentAmount?: string | null;
|
|
427
454
|
paymentCurrency?: string | null;
|
|
428
455
|
paymentTimestamp?: string | null;
|
|
@@ -440,9 +467,133 @@ interface IntentFulfilledEntity {
|
|
|
440
467
|
isManualRelease: boolean;
|
|
441
468
|
fundsTransferredTo?: string | null;
|
|
442
469
|
}
|
|
470
|
+
interface RateManagerEntity {
|
|
471
|
+
id: string;
|
|
472
|
+
chainId: number;
|
|
473
|
+
registry: string;
|
|
474
|
+
rateManagerId: string;
|
|
475
|
+
manager: string;
|
|
476
|
+
feeRecipient: string;
|
|
477
|
+
maxFee: string;
|
|
478
|
+
fee: string;
|
|
479
|
+
depositHook: string;
|
|
480
|
+
name: string;
|
|
481
|
+
uri: string;
|
|
482
|
+
createdAt: string;
|
|
483
|
+
updatedAt: string;
|
|
484
|
+
}
|
|
485
|
+
interface RateManagerRateEntity {
|
|
486
|
+
id: string;
|
|
487
|
+
chainId: number;
|
|
488
|
+
rateManagerId: string;
|
|
489
|
+
registry: string;
|
|
490
|
+
paymentMethodHash: string;
|
|
491
|
+
currencyCode: string;
|
|
492
|
+
managerRate: string;
|
|
493
|
+
updatedAt: string;
|
|
494
|
+
}
|
|
495
|
+
interface RateManagerDelegationEntity {
|
|
496
|
+
id: string;
|
|
497
|
+
chainId: number;
|
|
498
|
+
rateManagerId: string;
|
|
499
|
+
registry: string;
|
|
500
|
+
depositId: string;
|
|
501
|
+
createdAt: string;
|
|
502
|
+
updatedAt: string;
|
|
503
|
+
}
|
|
504
|
+
interface ManagerAggregateStatsEntity {
|
|
505
|
+
id: string;
|
|
506
|
+
chainId: number;
|
|
507
|
+
rateManagerId: string;
|
|
508
|
+
manager: string;
|
|
509
|
+
totalFilledVolume: string;
|
|
510
|
+
totalFeeAmount: string;
|
|
511
|
+
totalPnlUsdCents: string;
|
|
512
|
+
fulfilledIntents: number;
|
|
513
|
+
currentDelegatedBalance: string;
|
|
514
|
+
currentDelegatedDeposits: number;
|
|
515
|
+
firstSeenAt: string;
|
|
516
|
+
updatedAt: string;
|
|
517
|
+
}
|
|
518
|
+
interface ManagerStatsEntity {
|
|
519
|
+
id: string;
|
|
520
|
+
chainId: number;
|
|
521
|
+
rateManagerId: string;
|
|
522
|
+
manager: string;
|
|
523
|
+
intentId: string;
|
|
524
|
+
depositId: string;
|
|
525
|
+
paymentMethodHash: string;
|
|
526
|
+
currencyCode: string;
|
|
527
|
+
amount: string;
|
|
528
|
+
quoteConversionRate: string;
|
|
529
|
+
marketRate: string;
|
|
530
|
+
spreadBps: number;
|
|
531
|
+
pnlUsdCents: string;
|
|
532
|
+
managerFee: string;
|
|
533
|
+
managerFeeAmount: string;
|
|
534
|
+
createdAt: string;
|
|
535
|
+
}
|
|
536
|
+
interface ManagerDailySnapshotEntity {
|
|
537
|
+
id: string;
|
|
538
|
+
chainId: number;
|
|
539
|
+
rateManagerId: string;
|
|
540
|
+
dayTimestamp: string;
|
|
541
|
+
tvl: string;
|
|
542
|
+
delegatedDeposits: number;
|
|
543
|
+
dailyVolume: string;
|
|
544
|
+
dailyFees: string;
|
|
545
|
+
dailyPnlUsdCents: string;
|
|
546
|
+
dailyFulfilledIntents: number;
|
|
547
|
+
cumulativeVolume: string;
|
|
548
|
+
cumulativeFees: string;
|
|
549
|
+
cumulativePnlUsdCents: string;
|
|
550
|
+
cumulativeFulfilledIntents: number;
|
|
551
|
+
updatedAt: string;
|
|
552
|
+
}
|
|
553
|
+
interface RateManagerOracleConfigEntity {
|
|
554
|
+
id: string;
|
|
555
|
+
chainId: number;
|
|
556
|
+
rateManagerId: string;
|
|
557
|
+
registry: string;
|
|
558
|
+
paymentMethodHash: string;
|
|
559
|
+
currencyCode: string;
|
|
560
|
+
adapter: string;
|
|
561
|
+
adapterConfig: string;
|
|
562
|
+
feed: string;
|
|
563
|
+
feedDecimals: number;
|
|
564
|
+
spreadBps: number;
|
|
565
|
+
maxStaleness: string;
|
|
566
|
+
invert: boolean;
|
|
567
|
+
lastOracleUpdatedAt?: string | null;
|
|
568
|
+
kind: string;
|
|
569
|
+
createdAt: string;
|
|
570
|
+
updatedAt: string;
|
|
571
|
+
}
|
|
572
|
+
interface RateManagerHookMinLiquidityEntity {
|
|
573
|
+
id: string;
|
|
574
|
+
chainId: number;
|
|
575
|
+
registry: string;
|
|
576
|
+
rateManagerId: string;
|
|
577
|
+
minLiquidity: string;
|
|
578
|
+
createdAt: string;
|
|
579
|
+
updatedAt: string;
|
|
580
|
+
}
|
|
581
|
+
interface RateManagerListItem {
|
|
582
|
+
manager: RateManagerEntity;
|
|
583
|
+
aggregate?: ManagerAggregateStatsEntity | null;
|
|
584
|
+
}
|
|
585
|
+
interface RateManagerDetail {
|
|
586
|
+
manager: RateManagerEntity;
|
|
587
|
+
rates: RateManagerRateEntity[];
|
|
588
|
+
aggregate?: ManagerAggregateStatsEntity | null;
|
|
589
|
+
recentStats: ManagerStatsEntity[];
|
|
590
|
+
delegations: RateManagerDelegationEntity[];
|
|
591
|
+
oracleConfigs: RateManagerOracleConfigEntity[];
|
|
592
|
+
hookMinLiquidity: RateManagerHookMinLiquidityEntity | null;
|
|
593
|
+
}
|
|
443
594
|
|
|
444
595
|
type DepositOrderField = 'remainingDeposits' | 'outstandingIntentAmount' | 'totalAmountTaken' | 'totalWithdrawn' | 'updatedAt' | 'timestamp';
|
|
445
|
-
type OrderDirection = 'asc' | 'desc';
|
|
596
|
+
type OrderDirection$1 = 'asc' | 'desc';
|
|
446
597
|
type DepositFilter = Partial<{
|
|
447
598
|
status: 'ACTIVE' | 'CLOSED';
|
|
448
599
|
depositor: string;
|
|
@@ -459,7 +610,7 @@ type PaginationOptions = Partial<{
|
|
|
459
610
|
limit: number;
|
|
460
611
|
offset: number;
|
|
461
612
|
orderBy: DepositOrderField;
|
|
462
|
-
orderDirection: OrderDirection;
|
|
613
|
+
orderDirection: OrderDirection$1;
|
|
463
614
|
}>;
|
|
464
615
|
declare class IndexerDepositService {
|
|
465
616
|
private client;
|
|
@@ -504,6 +655,48 @@ declare class IndexerDepositService {
|
|
|
504
655
|
}): Promise<DepositWithRelations[]>;
|
|
505
656
|
}
|
|
506
657
|
|
|
658
|
+
type OrderDirection = 'asc' | 'desc';
|
|
659
|
+
type RateManagerOrderField = 'createdAt' | 'updatedAt' | 'fee' | 'maxFee' | 'rateManagerId' | 'currentDelegatedBalance' | 'totalFilledVolume';
|
|
660
|
+
type RateManagerFilter = Partial<{
|
|
661
|
+
manager: string;
|
|
662
|
+
name: string;
|
|
663
|
+
hasHook: boolean;
|
|
664
|
+
maxFee: string;
|
|
665
|
+
rateManagerIds: string[];
|
|
666
|
+
}>;
|
|
667
|
+
type RateManagerPaginationOptions = Partial<{
|
|
668
|
+
limit: number;
|
|
669
|
+
offset: number;
|
|
670
|
+
orderBy: RateManagerOrderField;
|
|
671
|
+
orderDirection: OrderDirection;
|
|
672
|
+
}>;
|
|
673
|
+
type RateManagerDelegationPaginationOptions = Partial<{
|
|
674
|
+
limit: number;
|
|
675
|
+
offset: number;
|
|
676
|
+
orderBy: 'createdAt' | 'updatedAt' | 'depositId';
|
|
677
|
+
orderDirection: OrderDirection;
|
|
678
|
+
registry: string;
|
|
679
|
+
}>;
|
|
680
|
+
declare class IndexerRateManagerService {
|
|
681
|
+
private client;
|
|
682
|
+
constructor(client: IndexerClient);
|
|
683
|
+
private buildWhere;
|
|
684
|
+
private buildOrderBy;
|
|
685
|
+
private toRateManagerListItems;
|
|
686
|
+
private buildDelegationOrderBy;
|
|
687
|
+
fetchRateManagers(pagination?: RateManagerPaginationOptions, filter?: RateManagerFilter): Promise<RateManagerListItem[]>;
|
|
688
|
+
fetchRateManagerDetail(rateManagerId: string, options?: {
|
|
689
|
+
statsLimit?: number;
|
|
690
|
+
registry?: string | null;
|
|
691
|
+
}): Promise<RateManagerDetail | null>;
|
|
692
|
+
fetchRateManagerDelegations(rateManagerId: string, pagination?: RateManagerDelegationPaginationOptions): Promise<RateManagerDelegationEntity[]>;
|
|
693
|
+
fetchManagerDailySnapshots(rateManagerId: string, options?: {
|
|
694
|
+
limit?: number;
|
|
695
|
+
registry?: string | null;
|
|
696
|
+
}): Promise<ManagerDailySnapshotEntity[]>;
|
|
697
|
+
fetchDelegationForDeposit(depositId: string): Promise<RateManagerDelegationEntity | null>;
|
|
698
|
+
}
|
|
699
|
+
|
|
507
700
|
type FulfillmentRecord = {
|
|
508
701
|
id: string;
|
|
509
702
|
intentHash: string;
|
|
@@ -934,6 +1127,7 @@ type Intent = {
|
|
|
934
1127
|
};
|
|
935
1128
|
type GetOwnerIntentsRequest = {
|
|
936
1129
|
ownerAddress: string;
|
|
1130
|
+
escrowAddress?: string;
|
|
937
1131
|
status?: ApiIntentStatus | ApiIntentStatus[];
|
|
938
1132
|
};
|
|
939
1133
|
type GetOwnerIntentsResponse = {
|
|
@@ -944,6 +1138,7 @@ type GetOwnerIntentsResponse = {
|
|
|
944
1138
|
};
|
|
945
1139
|
type GetIntentsByDepositRequest = {
|
|
946
1140
|
depositId: string;
|
|
1141
|
+
escrowAddress?: string;
|
|
947
1142
|
status?: ApiIntentStatus | ApiIntentStatus[];
|
|
948
1143
|
};
|
|
949
1144
|
type GetIntentsByDepositResponse = {
|
|
@@ -954,6 +1149,7 @@ type GetIntentsByDepositResponse = {
|
|
|
954
1149
|
};
|
|
955
1150
|
type GetIntentByHashRequest = {
|
|
956
1151
|
intentHash: string;
|
|
1152
|
+
escrowAddress?: string;
|
|
957
1153
|
};
|
|
958
1154
|
type GetIntentByHashResponse = {
|
|
959
1155
|
success: boolean;
|
|
@@ -1002,6 +1198,7 @@ type ApiDeposit = {
|
|
|
1002
1198
|
};
|
|
1003
1199
|
type GetOwnerDepositsRequest = {
|
|
1004
1200
|
ownerAddress: string;
|
|
1201
|
+
escrowAddress?: string;
|
|
1005
1202
|
/** Optional status filter: 'ACTIVE' | 'WITHDRAWN' | 'CLOSED' */
|
|
1006
1203
|
status?: DepositStatus;
|
|
1007
1204
|
};
|
|
@@ -1013,6 +1210,7 @@ type GetOwnerDepositsResponse = {
|
|
|
1013
1210
|
};
|
|
1014
1211
|
type GetDepositByIdRequest = {
|
|
1015
1212
|
depositId: string;
|
|
1213
|
+
escrowAddress?: string;
|
|
1016
1214
|
};
|
|
1017
1215
|
type GetDepositByIdResponse = {
|
|
1018
1216
|
success: boolean;
|
|
@@ -1282,6 +1480,14 @@ declare class Zkp2pClient {
|
|
|
1282
1480
|
readonly protocolViewerAddress?: Address;
|
|
1283
1481
|
/** ProtocolViewer contract ABI */
|
|
1284
1482
|
readonly protocolViewerAbi?: Abi;
|
|
1483
|
+
/** DepositRateManagerRegistryV1 contract address */
|
|
1484
|
+
readonly rateManagerRegistryAddress?: Address;
|
|
1485
|
+
/** DepositRateManagerRegistryV1 ABI */
|
|
1486
|
+
readonly rateManagerRegistryAbi?: Abi;
|
|
1487
|
+
/** DepositRateManagerController contract address */
|
|
1488
|
+
readonly rateManagerControllerAddress?: Address;
|
|
1489
|
+
/** DepositRateManagerController ABI */
|
|
1490
|
+
readonly rateManagerControllerAbi?: Abi;
|
|
1285
1491
|
/** Base API URL for ZKP2P services */
|
|
1286
1492
|
readonly baseApiUrl?: string;
|
|
1287
1493
|
/** API key for authenticated endpoints */
|
|
@@ -1293,6 +1499,7 @@ declare class Zkp2pClient {
|
|
|
1293
1499
|
private _usdcAddress?;
|
|
1294
1500
|
private readonly _indexerClient;
|
|
1295
1501
|
private readonly _indexerService;
|
|
1502
|
+
private readonly _indexerRateManagerService;
|
|
1296
1503
|
/**
|
|
1297
1504
|
* Creates a new Zkp2pClient instance.
|
|
1298
1505
|
*
|
|
@@ -1313,6 +1520,8 @@ declare class Zkp2pClient {
|
|
|
1313
1520
|
private executePreparedTransaction;
|
|
1314
1521
|
private prepareEscrowTransaction;
|
|
1315
1522
|
private prepareOrchestratorTransaction;
|
|
1523
|
+
private prepareContractTransaction;
|
|
1524
|
+
private buildContractMethod;
|
|
1316
1525
|
private buildEscrowMethod;
|
|
1317
1526
|
private buildOrchestratorMethod;
|
|
1318
1527
|
/**
|
|
@@ -1497,6 +1706,32 @@ declare class Zkp2pClient {
|
|
|
1497
1706
|
includeIntents?: boolean;
|
|
1498
1707
|
intentStatuses?: IntentStatus[];
|
|
1499
1708
|
}) => Promise<DepositWithRelations[]>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Fetches rate managers (vaults) with aggregate stats.
|
|
1711
|
+
*/
|
|
1712
|
+
getRateManagers: (pagination?: RateManagerPaginationOptions, filter?: RateManagerFilter) => Promise<RateManagerListItem[]>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Fetches detail for a single rate manager.
|
|
1715
|
+
*/
|
|
1716
|
+
getRateManagerDetail: (rateManagerId: string, options?: {
|
|
1717
|
+
statsLimit?: number;
|
|
1718
|
+
registry?: string | null;
|
|
1719
|
+
}) => Promise<RateManagerDetail | null>;
|
|
1720
|
+
/**
|
|
1721
|
+
* Fetches delegated deposits for a rate manager.
|
|
1722
|
+
*/
|
|
1723
|
+
getRateManagerDelegations: (rateManagerId: string, pagination?: RateManagerDelegationPaginationOptions) => Promise<RateManagerDelegationEntity[]>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Fetches delegation record for a specific composite deposit ID.
|
|
1726
|
+
*/
|
|
1727
|
+
getDelegationForDeposit: (depositId: string) => Promise<RateManagerDelegationEntity | null>;
|
|
1728
|
+
/**
|
|
1729
|
+
* Fetches daily snapshots for a rate manager (vault).
|
|
1730
|
+
*/
|
|
1731
|
+
getManagerDailySnapshots: (rateManagerId: string, options?: {
|
|
1732
|
+
limit?: number;
|
|
1733
|
+
registry?: string | null;
|
|
1734
|
+
}) => Promise<ManagerDailySnapshotEntity[]>;
|
|
1500
1735
|
/**
|
|
1501
1736
|
* Performs a raw GraphQL query against the indexer.
|
|
1502
1737
|
*/
|
|
@@ -1780,6 +2015,90 @@ declare class Zkp2pClient {
|
|
|
1780
2015
|
depositId: bigint;
|
|
1781
2016
|
txOverrides?: TxOverrides;
|
|
1782
2017
|
}, `0x${string}`>;
|
|
2018
|
+
/**
|
|
2019
|
+
* Assign a deposit to a rate manager (vault) through the controller.
|
|
2020
|
+
*/
|
|
2021
|
+
readonly setDepositRateManager: PrepareableMethod<{
|
|
2022
|
+
escrow: Address;
|
|
2023
|
+
depositId: bigint;
|
|
2024
|
+
registry: Address;
|
|
2025
|
+
rateManagerId: Hex;
|
|
2026
|
+
txOverrides?: TxOverrides;
|
|
2027
|
+
}, `0x${string}`>;
|
|
2028
|
+
/**
|
|
2029
|
+
* Clear an existing rate manager delegation for a deposit.
|
|
2030
|
+
*/
|
|
2031
|
+
readonly clearDepositRateManager: PrepareableMethod<{
|
|
2032
|
+
escrow: Address;
|
|
2033
|
+
depositId: bigint;
|
|
2034
|
+
txOverrides?: TxOverrides;
|
|
2035
|
+
}, `0x${string}`>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Create a new rate manager (vault).
|
|
2038
|
+
*/
|
|
2039
|
+
readonly createRateManager: PrepareableMethod<{
|
|
2040
|
+
config: {
|
|
2041
|
+
manager: Address;
|
|
2042
|
+
feeRecipient: Address;
|
|
2043
|
+
maxFee: bigint;
|
|
2044
|
+
fee: bigint;
|
|
2045
|
+
depositHook: Address;
|
|
2046
|
+
name: string;
|
|
2047
|
+
uri: string;
|
|
2048
|
+
};
|
|
2049
|
+
txOverrides?: TxOverrides;
|
|
2050
|
+
}, `0x${string}`>;
|
|
2051
|
+
/**
|
|
2052
|
+
* Set a manager floor for a single payment method/currency pair.
|
|
2053
|
+
*/
|
|
2054
|
+
readonly setVaultMinRate: PrepareableMethod<{
|
|
2055
|
+
rateManagerId: Hex;
|
|
2056
|
+
paymentMethodHash: `0x${string}`;
|
|
2057
|
+
currencyHash: `0x${string}`;
|
|
2058
|
+
rate: bigint;
|
|
2059
|
+
txOverrides?: TxOverrides;
|
|
2060
|
+
}, `0x${string}`>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Set manager floors in batch.
|
|
2063
|
+
*/
|
|
2064
|
+
readonly setVaultMinRatesBatch: PrepareableMethod<{
|
|
2065
|
+
rateManagerId: Hex;
|
|
2066
|
+
paymentMethods: `0x${string}`[];
|
|
2067
|
+
currencies: `0x${string}`[][];
|
|
2068
|
+
rates: bigint[][];
|
|
2069
|
+
txOverrides?: TxOverrides;
|
|
2070
|
+
}, `0x${string}`>;
|
|
2071
|
+
/**
|
|
2072
|
+
* Update vault manager fee.
|
|
2073
|
+
*/
|
|
2074
|
+
readonly setVaultFee: PrepareableMethod<{
|
|
2075
|
+
rateManagerId: Hex;
|
|
2076
|
+
newFee: bigint;
|
|
2077
|
+
txOverrides?: TxOverrides;
|
|
2078
|
+
}, `0x${string}`>;
|
|
2079
|
+
/**
|
|
2080
|
+
* Update vault manager/config metadata.
|
|
2081
|
+
*/
|
|
2082
|
+
readonly setVaultConfig: PrepareableMethod<{
|
|
2083
|
+
rateManagerId: Hex;
|
|
2084
|
+
newManager: Address;
|
|
2085
|
+
newFeeRecipient: Address;
|
|
2086
|
+
newHook: Address;
|
|
2087
|
+
newName: string;
|
|
2088
|
+
newUri: string;
|
|
2089
|
+
txOverrides?: TxOverrides;
|
|
2090
|
+
}, `0x${string}`>;
|
|
2091
|
+
/**
|
|
2092
|
+
* Read controller delegation state for a deposit.
|
|
2093
|
+
*/
|
|
2094
|
+
getDepositRateManager(escrow: Address, depositId: bigint | number | string): Promise<{
|
|
2095
|
+
registry: Address;
|
|
2096
|
+
rateManagerId: Hex;
|
|
2097
|
+
}>;
|
|
2098
|
+
/**
|
|
2099
|
+
* Read effective manager fee for a deposit.
|
|
2100
|
+
*/
|
|
2101
|
+
getManagerFee(escrow: Address, depositId: bigint | number | string): Promise<bigint>;
|
|
1783
2102
|
/**
|
|
1784
2103
|
* Adds new payment methods to an existing deposit.
|
|
1785
2104
|
*
|
|
@@ -2197,4 +2516,4 @@ declare class Zkp2pClient {
|
|
|
2197
2516
|
}>;
|
|
2198
2517
|
}
|
|
2199
2518
|
|
|
2200
|
-
export { type RegisterPayeeDetailsRequest as $, type ActionCallback as A, type DepositVerifierCurrency as B, type CancelIntentMethodParams as C, type DepositWithRelations as D, type DepositStatus as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetDepositByIdRequest as H, type IntentEntity as I, type GetDepositByIdResponse as J, type Intent as K, type ApiIntentStatus as L, type GetOwnerIntentsRequest as M, type NearbyQuote as N, type GetOwnerIntentsResponse as O, type PostDepositDetailsRequest as P, type QuoteRequest as Q, type Range as R, type SignalIntentMethodParams as S, type TxOverrides as T, type GetIntentsByDepositRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetIntentsByDepositResponse as X, type GetIntentByHashRequest as Y, Zkp2pClient as Z, type GetIntentByHashResponse as _, type ValidatePayeeDetailsResponse as a, type RegisterPayeeDetailsResponse as a0, type OnchainCurrency as a1, type DepositVerifierData as a2, type PreparedTransaction as a3, type OrderStats as a4, type DepositIntentStatistics as a5, type TakerTier as a6, type TakerTierStats as a7, type TakerTierLevel as a8, type PlatformLimit as a9,
|
|
2519
|
+
export { type RegisterPayeeDetailsRequest as $, type ActionCallback as A, type DepositVerifierCurrency as B, type CancelIntentMethodParams as C, type DepositWithRelations as D, type DepositStatus as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type GetDepositByIdRequest as H, type IntentEntity as I, type GetDepositByIdResponse as J, type Intent as K, type ApiIntentStatus as L, type GetOwnerIntentsRequest as M, type NearbyQuote as N, type GetOwnerIntentsResponse as O, type PostDepositDetailsRequest as P, type QuoteRequest as Q, type Range as R, type SignalIntentMethodParams as S, type TxOverrides as T, type GetIntentsByDepositRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetIntentsByDepositResponse as X, type GetIntentByHashRequest as Y, Zkp2pClient as Z, type GetIntentByHashResponse as _, type ValidatePayeeDetailsResponse as a, enrichPvIntentView as a$, type RegisterPayeeDetailsResponse as a0, type OnchainCurrency as a1, type DepositVerifierData as a2, type PreparedTransaction as a3, type OrderStats as a4, type DepositIntentStatistics as a5, type TakerTier as a6, type TakerTierStats as a7, type TakerTierLevel as a8, type PlatformLimit as a9, type RateManagerPaginationOptions as aA, type RateManagerDelegationPaginationOptions as aB, type RateManagerOrderField as aC, type OrderDirection as aD, type DeploymentEnv as aE, type FulfillmentRecord as aF, type PaymentVerifiedRecord as aG, type FulfillmentAndPaymentResponse as aH, PAYMENT_PLATFORMS as aI, type PaymentPlatformType as aJ, Currency as aK, currencyInfo as aL, getCurrencyInfoFromHash as aM, getCurrencyInfoFromCountryCode as aN, getCurrencyCodeFromHash as aO, isSupportedCurrencyHash as aP, mapConversionRatesToOnchainMinRate as aQ, type CurrencyType as aR, type CurrencyData as aS, getContracts as aT, getRateManagerContracts as aU, getPaymentMethodsCatalog as aV, getGatingServiceAddress as aW, type RuntimeEnv as aX, parseDepositView as aY, parseIntentView as aZ, enrichPvDepositView as a_, type PlatformRiskLevel as aa, IndexerClient as ab, defaultIndexerEndpoint as ac, IndexerDepositService as ad, IndexerRateManagerService as ae, fetchFulfillmentAndPayment as af, type DepositEntity as ag, type IntentFulfilledEntity as ah, type DepositPaymentMethodEntity as ai, type MethodCurrencyEntity as aj, type IntentStatus as ak, type RateManagerEntity as al, type RateManagerRateEntity as am, type RateManagerDelegationEntity as an, type ManagerAggregateStatsEntity as ao, type ManagerStatsEntity as ap, type ManagerDailySnapshotEntity as aq, type RateManagerOracleConfigEntity as ar, type RateManagerHookMinLiquidityEntity as as, type RateManagerListItem as at, type RateManagerDetail as au, type DepositFilter as av, type PaginationOptions as aw, type DepositOrderField as ax, type OrderDirection$1 as ay, type RateManagerFilter as az, type PostDepositDetailsResponse as b, type PV_DepositView as b0, type PV_Deposit as b1, type PV_PaymentMethodData as b2, type PV_Currency as b3, type PV_IntentView as b4, type PV_Intent as b5, 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 CreateDepositParams as k, type CreateDepositConversionRate as l, type SignalIntentParams as m, type FulfillIntentParams as n, type ReleaseFundsToPayerParams as o, type CancelIntentParams as p, type QuoteResponse as q, type QuoteResponseObject as r, type QuoteSingleResponse as s, type QuoteIntentResponse as t, type QuoteFeesResponse as u, type FiatResponse as v, type TokenResponse as w, type NearbySuggestions as x, type ApiDeposit as y, type DepositVerifier as z };
|