@hyperbridge/simplex 0.18.0 → 0.18.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/bin/simplex.js +7461 -7300
- package/dist/bin/simplex.js.map +1 -1
- package/dist/index.cjs +14318 -14211
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +14452 -14345
- package/dist/index.js.map +1 -1
- package/dist/ui/assets/index-BEaKgtAo.js +2168 -0
- package/dist/ui/assets/{index-DWJcHNgO.css → index-aSBiKM_B.css} +1 -1
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/index-Dy5dPCr_.js +0 -2168
package/dist/index.d.cts
CHANGED
|
@@ -201,6 +201,21 @@ interface NativeSetupNeed {
|
|
|
201
201
|
feeToken: "USDC" | "USDT";
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
/** Whether a chain can fill: the gateway fee token, the native its paymaster setup needs, and the delegation. */
|
|
205
|
+
interface ChainFunding {
|
|
206
|
+
/** The gateway's fee token: USDC on most chains, USDT on BNB Chain. */
|
|
207
|
+
feeToken: {
|
|
208
|
+
symbol: string;
|
|
209
|
+
balance: number;
|
|
210
|
+
};
|
|
211
|
+
/** Native the paymaster's one-time setup still needs, when the paymaster's token has no permit. */
|
|
212
|
+
nativeSetup: NativeSetupNeed | null;
|
|
213
|
+
/** The wallet holds {@link MIN_FEE_TOKEN_BALANCE} of the fee token and any native its setup needs. */
|
|
214
|
+
funded: boolean;
|
|
215
|
+
/** The wallet is delegated to the SolverAccount here, so fills are enabled. */
|
|
216
|
+
delegated: boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
204
219
|
interface ChainBalanceRow {
|
|
205
220
|
chainId: number;
|
|
206
221
|
native?: {
|
|
@@ -217,6 +232,8 @@ interface ChainBalanceRow {
|
|
|
217
232
|
assets: AssetBalanceRow[];
|
|
218
233
|
/** Set when the paymaster cannot sponsor this chain until the wallet holds some native gas. */
|
|
219
234
|
nativeSetup?: NativeSetupNeed;
|
|
235
|
+
/** Whether the wallet can fill here, and whether fills are enabled. Absent when it could not be read. */
|
|
236
|
+
funding?: ChainFunding;
|
|
220
237
|
}
|
|
221
238
|
type AssetBalanceStatus = "fresh" | "partial" | "unavailable";
|
|
222
239
|
interface VaultBalanceRow {
|
|
@@ -2201,6 +2218,11 @@ declare class IntentFiller {
|
|
|
2201
2218
|
* order at all. Any failure rolls the queue back and rethrows.
|
|
2202
2219
|
*/
|
|
2203
2220
|
addChain(chainConfig: ChainConfig): Promise<void>;
|
|
2221
|
+
/**
|
|
2222
|
+
* Delegates the wallet on a chain that is already running, so it can fill without a
|
|
2223
|
+
* restart. Rejects when the delegation fails.
|
|
2224
|
+
*/
|
|
2225
|
+
enableFills(chainId: number): Promise<void>;
|
|
2204
2226
|
/**
|
|
2205
2227
|
* Removes a chain. Stops the scanner first so nothing new is queued, then
|
|
2206
2228
|
* drains what is already in flight — dropping the queue under a running fill
|
|
@@ -2701,6 +2723,12 @@ declare class ChainController {
|
|
|
2701
2723
|
setRpcUrls(chainId: number, rpcUrls: string[]): Promise<void>;
|
|
2702
2724
|
/** Monitor without filling. Takes effect on the next order. */
|
|
2703
2725
|
setWatchOnly(chainId: number, watchOnly: boolean): Promise<void>;
|
|
2726
|
+
/**
|
|
2727
|
+
* Enables fills on a running chain now: delegates the wallet to the SolverAccount there,
|
|
2728
|
+
* so it fills without a restart, and clears any watch-only flag. Rejects while the wallet
|
|
2729
|
+
* lacks the gateway fee token or the native the paymaster's one-time setup needs.
|
|
2730
|
+
*/
|
|
2731
|
+
enableFills(chainId: number): Promise<void>;
|
|
2704
2732
|
/** A global boolean is left alone — expanding it per chain changes how the config validates. */
|
|
2705
2733
|
private syncWatchOnlyToConfig;
|
|
2706
2734
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -201,6 +201,21 @@ interface NativeSetupNeed {
|
|
|
201
201
|
feeToken: "USDC" | "USDT";
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
/** Whether a chain can fill: the gateway fee token, the native its paymaster setup needs, and the delegation. */
|
|
205
|
+
interface ChainFunding {
|
|
206
|
+
/** The gateway's fee token: USDC on most chains, USDT on BNB Chain. */
|
|
207
|
+
feeToken: {
|
|
208
|
+
symbol: string;
|
|
209
|
+
balance: number;
|
|
210
|
+
};
|
|
211
|
+
/** Native the paymaster's one-time setup still needs, when the paymaster's token has no permit. */
|
|
212
|
+
nativeSetup: NativeSetupNeed | null;
|
|
213
|
+
/** The wallet holds {@link MIN_FEE_TOKEN_BALANCE} of the fee token and any native its setup needs. */
|
|
214
|
+
funded: boolean;
|
|
215
|
+
/** The wallet is delegated to the SolverAccount here, so fills are enabled. */
|
|
216
|
+
delegated: boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
204
219
|
interface ChainBalanceRow {
|
|
205
220
|
chainId: number;
|
|
206
221
|
native?: {
|
|
@@ -217,6 +232,8 @@ interface ChainBalanceRow {
|
|
|
217
232
|
assets: AssetBalanceRow[];
|
|
218
233
|
/** Set when the paymaster cannot sponsor this chain until the wallet holds some native gas. */
|
|
219
234
|
nativeSetup?: NativeSetupNeed;
|
|
235
|
+
/** Whether the wallet can fill here, and whether fills are enabled. Absent when it could not be read. */
|
|
236
|
+
funding?: ChainFunding;
|
|
220
237
|
}
|
|
221
238
|
type AssetBalanceStatus = "fresh" | "partial" | "unavailable";
|
|
222
239
|
interface VaultBalanceRow {
|
|
@@ -2201,6 +2218,11 @@ declare class IntentFiller {
|
|
|
2201
2218
|
* order at all. Any failure rolls the queue back and rethrows.
|
|
2202
2219
|
*/
|
|
2203
2220
|
addChain(chainConfig: ChainConfig): Promise<void>;
|
|
2221
|
+
/**
|
|
2222
|
+
* Delegates the wallet on a chain that is already running, so it can fill without a
|
|
2223
|
+
* restart. Rejects when the delegation fails.
|
|
2224
|
+
*/
|
|
2225
|
+
enableFills(chainId: number): Promise<void>;
|
|
2204
2226
|
/**
|
|
2205
2227
|
* Removes a chain. Stops the scanner first so nothing new is queued, then
|
|
2206
2228
|
* drains what is already in flight — dropping the queue under a running fill
|
|
@@ -2701,6 +2723,12 @@ declare class ChainController {
|
|
|
2701
2723
|
setRpcUrls(chainId: number, rpcUrls: string[]): Promise<void>;
|
|
2702
2724
|
/** Monitor without filling. Takes effect on the next order. */
|
|
2703
2725
|
setWatchOnly(chainId: number, watchOnly: boolean): Promise<void>;
|
|
2726
|
+
/**
|
|
2727
|
+
* Enables fills on a running chain now: delegates the wallet to the SolverAccount there,
|
|
2728
|
+
* so it fills without a restart, and clears any watch-only flag. Rejects while the wallet
|
|
2729
|
+
* lacks the gateway fee token or the native the paymaster's one-time setup needs.
|
|
2730
|
+
*/
|
|
2731
|
+
enableFills(chainId: number): Promise<void>;
|
|
2704
2732
|
/** A global boolean is left alone — expanding it per chain changes how the config validates. */
|
|
2705
2733
|
private syncWatchOnlyToConfig;
|
|
2706
2734
|
}
|