@peachprojects/aggregator-sdk 0.0.0-experimental-20260424021838 → 0.1.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/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,20 @@ export declare interface ApiFindRouteRequest {
|
|
|
131
131
|
*/
|
|
132
132
|
export declare type ApiFindRouteResponse = ApiResponse<ApiFindRouteData>;
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* PeachRouter fee configuration snapshot served by the aggregator `/router/status`
|
|
136
|
+
* endpoint. Lets clients discover the router address and current fee caps without
|
|
137
|
+
* a separate on-chain read.
|
|
138
|
+
*/
|
|
139
|
+
export declare interface ApiPeachRouterConfig {
|
|
140
|
+
/** Deployed PeachRouter contract address the aggregator routes through. */
|
|
141
|
+
router_address: string;
|
|
142
|
+
/** Current upper bound on `CustomFee.feeBps` the router will accept (bps). */
|
|
143
|
+
max_custom_fee_bps: number;
|
|
144
|
+
/** Current upper bound on the protocol's share of the custom fee (bps of the custom fee). */
|
|
145
|
+
max_protocol_cut_bps: number;
|
|
146
|
+
}
|
|
147
|
+
|
|
134
148
|
/**
|
|
135
149
|
* Aggregator API response wrapper
|
|
136
150
|
*/
|
|
@@ -174,6 +188,8 @@ export declare interface ApiStatusData {
|
|
|
174
188
|
providers: string[];
|
|
175
189
|
/** Chain sync status for each provider */
|
|
176
190
|
chainflows: ChainflowStatus[];
|
|
191
|
+
/** PeachRouter address + fee-cap configuration. */
|
|
192
|
+
peach_router: ApiPeachRouterConfig;
|
|
177
193
|
}
|
|
178
194
|
|
|
179
195
|
/**
|