@steerprotocol/sdk 4.0.0-next.13 → 4.0.0-next.14
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/README.md +220 -3
- package/dist/index.cjs +15253 -11280
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +145 -5
- package/dist/index.d.mts +145 -5
- package/dist/index.mjs +15244 -11282
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -196,6 +196,11 @@ export declare abstract class PoolDataAdapter<TPoolRef> extends DataAdapter {
|
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/amm/enums.d.ts
|
|
198
198
|
export declare enum AmmProtocol {
|
|
199
|
+
Bittensor = "bittensor",
|
|
200
|
+
Cypher = "cypher",
|
|
201
|
+
Spark = "spark",
|
|
202
|
+
Thena = "thena",
|
|
203
|
+
Hydrex = "hydrex",
|
|
199
204
|
Blackhole = "blackhole",
|
|
200
205
|
Aerodrome = "aerodrome",
|
|
201
206
|
SushiSwap = "sushiswap",
|
|
@@ -210,6 +215,16 @@ export declare enum AerodromeVersion {
|
|
|
210
215
|
SlipstreamV2 = "slipstream-v2",
|
|
211
216
|
SlipstreamV3 = "slipstream-v3"
|
|
212
217
|
}
|
|
218
|
+
export declare enum CypherVersion {
|
|
219
|
+
V4 = "v4"
|
|
220
|
+
}
|
|
221
|
+
export declare enum BittensorVersion {
|
|
222
|
+
V3 = "v3"
|
|
223
|
+
}
|
|
224
|
+
export declare enum SparkVersion {
|
|
225
|
+
V4 = "v4",
|
|
226
|
+
V3_2 = "v3.2"
|
|
227
|
+
}
|
|
213
228
|
export declare enum SushiSwapVersion {
|
|
214
229
|
V3 = "v3"
|
|
215
230
|
}
|
|
@@ -224,6 +239,12 @@ export declare enum QuickSwapVersion {
|
|
|
224
239
|
V3 = "v3",
|
|
225
240
|
V4 = "v4"
|
|
226
241
|
}
|
|
242
|
+
export declare enum ThenaVersion {
|
|
243
|
+
Fusion = "fusion"
|
|
244
|
+
}
|
|
245
|
+
export declare enum HydrexVersion {
|
|
246
|
+
Integral = "integral"
|
|
247
|
+
}
|
|
227
248
|
export declare enum BlackholeVersion {
|
|
228
249
|
CL = "cl"
|
|
229
250
|
}
|
|
@@ -236,15 +257,32 @@ export declare enum PancakeSwapVersion {
|
|
|
236
257
|
}
|
|
237
258
|
/** Named deployments for explicitly selecting between otherwise ambiguous matches. */
|
|
238
259
|
export declare enum AmmDeployment {
|
|
260
|
+
SushiSwapV3Ethereum = "sushiswap-v3-ethereum",
|
|
261
|
+
UniswapV3Ethereum = "uniswap-v3-ethereum",
|
|
262
|
+
SushiSwapV3Avalanche = "sushiswap-v3-avalanche",
|
|
263
|
+
SushiSwapV3Katana = "sushiswap-v3-katana",
|
|
264
|
+
BittensorV3 = "bittensor-v3",
|
|
265
|
+
CypherV4Ethereum = "cypher-integral-ethereum",
|
|
266
|
+
SparkV4Flare = "spark-integral-flare",
|
|
267
|
+
SparkV32Flare = "spark-v3.2-flare",
|
|
268
|
+
SushiSwapV3Optimism = "sushiswap-v3-optimism",
|
|
269
|
+
SushiSwapV3Arbitrum = "sushiswap-v3-arbitrum",
|
|
270
|
+
PancakeSwapV3Arbitrum = "pancakeswap-v3-arbitrum",
|
|
271
|
+
ThenaFusionBsc = "thena-fusion-bsc",
|
|
272
|
+
HydrexIntegralBase = "hydrex-integral-base",
|
|
239
273
|
BlackholeCLAvalanche = "blackhole-cl-avalanche",
|
|
240
274
|
AerodromeSlipstreamBase = "aerodrome-slipstream-base",
|
|
241
275
|
AerodromeSlipstreamV2Base = "aerodrome-slipstream-v2-base",
|
|
242
276
|
AerodromeSlipstreamV3Base = "aerodrome-slipstream-v3-base",
|
|
277
|
+
SushiSwapV3Robinhood = "sushiswap-v3-robinhood",
|
|
278
|
+
UniswapV3Robinhood = "uniswap-v3-robinhood",
|
|
243
279
|
SushiSwapV3Base = "sushiswap-v3-base",
|
|
244
280
|
SushiSwapV3Bsc = "sushiswap-v3-bsc",
|
|
245
281
|
UniswapV3Bsc = "uniswap-v3-bsc",
|
|
246
282
|
SushiSwapV3Polygon = "sushiswap-v3-polygon",
|
|
247
283
|
RetroV3Polygon = "retro-v3-polygon",
|
|
284
|
+
UniswapV3Optimism = "uniswap-v3-optimism",
|
|
285
|
+
UniswapV3Arbitrum = "uniswap-v3-arbitrum",
|
|
248
286
|
UniswapV3Polygon = "uniswap-v3-polygon",
|
|
249
287
|
QuickSwapV4Polygon = "quickswap-integral-polygon",
|
|
250
288
|
UniswapV3Base = "uniswap-v3-base",
|
|
@@ -409,6 +447,18 @@ export declare class QuickSwapIntegral extends AlgebraIntegralAdapter {
|
|
|
409
447
|
readonly protocol = AmmProtocol.QuickSwap;
|
|
410
448
|
readonly version = QuickSwapVersion.V4;
|
|
411
449
|
}
|
|
450
|
+
export declare class Hydrex extends AlgebraIntegralAdapter {
|
|
451
|
+
readonly protocol = AmmProtocol.Hydrex;
|
|
452
|
+
readonly version = HydrexVersion.Integral;
|
|
453
|
+
}
|
|
454
|
+
export declare class Cypher extends AlgebraIntegralAdapter {
|
|
455
|
+
readonly protocol = AmmProtocol.Cypher;
|
|
456
|
+
readonly version = CypherVersion.V4;
|
|
457
|
+
}
|
|
458
|
+
export declare class SparkIntegral extends AlgebraIntegralAdapter {
|
|
459
|
+
readonly protocol = AmmProtocol.Spark;
|
|
460
|
+
readonly version = SparkVersion.V4;
|
|
461
|
+
}
|
|
412
462
|
//#endregion
|
|
413
463
|
//#region src/amm/adapters/algebra-integral/data-adapter.d.ts
|
|
414
464
|
export declare class AlgebraIntegralDataAdapter extends PoolDataAdapter<AlgebraPoolReference> {
|
|
@@ -470,6 +520,14 @@ export declare class QuickSwap extends AlgebraLegacyAdapter {
|
|
|
470
520
|
readonly version = QuickSwapVersion.V3;
|
|
471
521
|
}
|
|
472
522
|
//#endregion
|
|
523
|
+
//#region src/amm/adapters/algebra-legacy/thena.d.ts
|
|
524
|
+
/** Fusion v1 uses the symmetric legacy Algebra pool interface. */
|
|
525
|
+
export declare class Thena extends AlgebraLegacyAdapter {
|
|
526
|
+
readonly protocol = AmmProtocol.Thena;
|
|
527
|
+
readonly version = ThenaVersion.Fusion;
|
|
528
|
+
quote(request: SwapQuoteRequest<Address>, options?: ReadOptions): Promise<SwapQuote>;
|
|
529
|
+
}
|
|
530
|
+
//#endregion
|
|
473
531
|
//#region src/amm/adapters/pancakeswap-infinity-cl/types.d.ts
|
|
474
532
|
interface InfinityCLPoolKey {
|
|
475
533
|
readonly currency0: Address;
|
|
@@ -683,7 +741,7 @@ export declare abstract class V4PoolDataAdapter extends PoolDataAdapter<V4PoolKe
|
|
|
683
741
|
/** Indexed references carry full keys; every onchain use still validates the configured manager. */
|
|
684
742
|
export declare class UniswapV4DataAdapter extends V4PoolDataAdapter {
|
|
685
743
|
#private;
|
|
686
|
-
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext);
|
|
744
|
+
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext, positionManager?: Address);
|
|
687
745
|
listPools(request?: PoolListRequest, options?: DataAdapterRequestOptions): Promise<Page<V4PoolKey>>;
|
|
688
746
|
getPoolKey(id: Hex, options?: V4ReadOptions): Promise<V4PoolKey>;
|
|
689
747
|
}
|
|
@@ -712,6 +770,12 @@ export declare class V4PoolKeyNotFoundError extends Error {
|
|
|
712
770
|
constructor(message?: string);
|
|
713
771
|
}
|
|
714
772
|
//#endregion
|
|
773
|
+
//#region src/amm/adapters/bittensor-v3/adapter.d.ts
|
|
774
|
+
export declare class BittensorV3 extends RpcUniswapV3Adapter {
|
|
775
|
+
readonly protocol = AmmProtocol.Bittensor;
|
|
776
|
+
readonly version = BittensorVersion.V3;
|
|
777
|
+
}
|
|
778
|
+
//#endregion
|
|
715
779
|
//#region src/amm/adapters/pancakeswap-v3/adapter.d.ts
|
|
716
780
|
/** Pancake V3 uses the V3 family with a wider slot0 protocol-fee field. */
|
|
717
781
|
export declare class PancakeSwapV3 extends RpcUniswapV3Adapter {
|
|
@@ -725,6 +789,12 @@ export declare class RetroV3 extends RpcUniswapV3Adapter {
|
|
|
725
789
|
readonly version = RetroVersion.V3;
|
|
726
790
|
}
|
|
727
791
|
//#endregion
|
|
792
|
+
//#region src/amm/adapters/spark-v3/adapter.d.ts
|
|
793
|
+
export declare class SparkV32 extends RpcUniswapV3Adapter {
|
|
794
|
+
readonly protocol = AmmProtocol.Spark;
|
|
795
|
+
readonly version = SparkVersion.V3_2;
|
|
796
|
+
}
|
|
797
|
+
//#endregion
|
|
728
798
|
//#region src/amm/adapters/sushiswap-v3/adapter.d.ts
|
|
729
799
|
export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
730
800
|
readonly protocol = AmmProtocol.SushiSwap;
|
|
@@ -733,6 +803,40 @@ export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
|
733
803
|
//#endregion
|
|
734
804
|
//#region src/amm/selection.d.ts
|
|
735
805
|
declare const ammDefinitions: {
|
|
806
|
+
readonly bittensor: {
|
|
807
|
+
readonly v3: {
|
|
808
|
+
readonly adapter: typeof BittensorV3;
|
|
809
|
+
readonly family: AmmFamily.UniswapV3;
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
readonly cypher: {
|
|
813
|
+
readonly v4: {
|
|
814
|
+
readonly adapter: typeof Cypher;
|
|
815
|
+
readonly family: AmmFamily.AlgebraIntegral;
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
readonly spark: {
|
|
819
|
+
readonly v4: {
|
|
820
|
+
readonly adapter: typeof SparkIntegral;
|
|
821
|
+
readonly family: AmmFamily.AlgebraIntegral;
|
|
822
|
+
};
|
|
823
|
+
readonly "v3.2": {
|
|
824
|
+
readonly adapter: typeof SparkV32;
|
|
825
|
+
readonly family: AmmFamily.UniswapV3;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly thena: {
|
|
829
|
+
readonly fusion: {
|
|
830
|
+
readonly adapter: typeof Thena;
|
|
831
|
+
readonly family: AmmFamily.AlgebraLegacy;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
readonly hydrex: {
|
|
835
|
+
readonly integral: {
|
|
836
|
+
readonly adapter: typeof Hydrex;
|
|
837
|
+
readonly family: AmmFamily.AlgebraIntegral;
|
|
838
|
+
};
|
|
839
|
+
};
|
|
736
840
|
readonly aerodrome: {
|
|
737
841
|
readonly slipstream: {
|
|
738
842
|
readonly adapter: typeof AerodromeSlipstream;
|
|
@@ -804,7 +908,7 @@ declare const ammDefinitions: {
|
|
|
804
908
|
};
|
|
805
909
|
//#endregion
|
|
806
910
|
//#region src/amm/types.d.ts
|
|
807
|
-
type AmmVersion = AerodromeVersion | SushiSwapVersion | RetroVersion | UniswapVersion | QuickSwapVersion | BlackholeVersion | CamelotVersion | PancakeSwapVersion;
|
|
911
|
+
type AmmVersion = AerodromeVersion | SparkVersion | SushiSwapVersion | RetroVersion | UniswapVersion | QuickSwapVersion | BittensorVersion | BlackholeVersion | CypherVersion | HydrexVersion | ThenaVersion | CamelotVersion | PancakeSwapVersion;
|
|
808
912
|
type AdapterFromDefinition<T> = T extends {
|
|
809
913
|
readonly adapter: abstract new (...args: never[]) => infer TAdapter;
|
|
810
914
|
} ? TAdapter : never;
|
|
@@ -3386,6 +3490,11 @@ export declare abstract class LiquidityVault<TAmm extends AmmAdapter = AmmAdapte
|
|
|
3386
3490
|
executeDataConnectors(context: SmartPoolExecutionContext, options?: IpfsRequestOptions): Promise<readonly unknown[]>;
|
|
3387
3491
|
/** Execute the registered WASM locally. Returns parsed output without submitting transactions. */
|
|
3388
3492
|
executeStrategy(context: SmartPoolExecutionContext, connectorData: readonly unknown[], options?: IpfsRequestOptions): Promise<unknown>;
|
|
3493
|
+
/** Prepare after withdrawal confirmation, using actual received wrapped currency. */
|
|
3494
|
+
prepareUnwrapNative(request: {
|
|
3495
|
+
readonly account: Address;
|
|
3496
|
+
readonly amount: bigint;
|
|
3497
|
+
}, options?: ReadOptions): Promise<NativeUnwrapPlan>;
|
|
3389
3498
|
/** Calculate the other token maximum at the vault's current deposit ratio. Does not swap. */
|
|
3390
3499
|
abstract quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3391
3500
|
abstract previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3523,6 +3632,25 @@ interface VaultRewardPayout {
|
|
|
3523
3632
|
readonly recipient: Address;
|
|
3524
3633
|
readonly amount: PoolTokenBalance;
|
|
3525
3634
|
}
|
|
3635
|
+
/** One wallet's original-contract claim simulation and stored accounting checkpoint. */
|
|
3636
|
+
interface VaultUserReward {
|
|
3637
|
+
readonly token: Address;
|
|
3638
|
+
readonly decimals: number;
|
|
3639
|
+
readonly claimable: PoolTokenBalance;
|
|
3640
|
+
/** Stored pre-claim checkpoint preventing double payment; not a liability owed by the user. */
|
|
3641
|
+
readonly rewardDebt: PoolTokenBalance;
|
|
3642
|
+
}
|
|
3643
|
+
interface VaultUserRewards {
|
|
3644
|
+
readonly account: Address;
|
|
3645
|
+
readonly blockNumber: bigint;
|
|
3646
|
+
readonly shares: bigint;
|
|
3647
|
+
readonly rewards: readonly VaultUserReward[];
|
|
3648
|
+
}
|
|
3649
|
+
/** Caller-owned reward claim; no share burn, approval or configurable recipient. */
|
|
3650
|
+
interface ClaimRewardsPlan extends TransactionPlan {
|
|
3651
|
+
readonly account: Address;
|
|
3652
|
+
readonly preview: VaultUserRewards;
|
|
3653
|
+
}
|
|
3526
3654
|
/** Reward paid to the shareholder during withdrawal. */
|
|
3527
3655
|
type WithdrawRewards = VaultRewardPayout;
|
|
3528
3656
|
/** Actual withdrawal simulation, including contract burn rounding and fee policy. */
|
|
@@ -3709,6 +3837,12 @@ interface VaultUserPosition<TPool extends LiquidityPool = LiquidityPool> {
|
|
|
3709
3837
|
readonly position: LiquidityVaultUserPosition<TPool>;
|
|
3710
3838
|
}
|
|
3711
3839
|
type KnownSteerVault = LiquidityVault | LendingVault | CompositeVault;
|
|
3840
|
+
/** Separate post-confirmation unwrap using an explicitly requested, actual wrapped balance. */
|
|
3841
|
+
interface NativeUnwrapPlan extends TransactionPlan {
|
|
3842
|
+
readonly account: Address;
|
|
3843
|
+
readonly blockNumber: bigint;
|
|
3844
|
+
readonly amount: PoolTokenBalance;
|
|
3845
|
+
}
|
|
3712
3846
|
//#endregion
|
|
3713
3847
|
//#region src/vault/data-adapter.d.ts
|
|
3714
3848
|
export declare abstract class SteerDataAdapter extends DataAdapter {
|
|
@@ -3838,16 +3972,19 @@ export declare abstract class AerodromeVault extends LiquidityVault<AerodromeSli
|
|
|
3838
3972
|
readonly amm: AerodromeSlipstreamAdapter;
|
|
3839
3973
|
readonly pool: Address;
|
|
3840
3974
|
getSnapshot(options?: ReadOptions): Promise<AerodromeVaultSnapshot>;
|
|
3975
|
+
/** Simulate the original claim as this wallet without persisting transfers. */
|
|
3976
|
+
getUserRewards(account: Address, options?: ReadOptions): Promise<VaultUserRewards>;
|
|
3977
|
+
prepareClaimRewards(account: Address, options?: ReadOptions): Promise<ClaimRewardsPlan>;
|
|
3841
3978
|
getPositions(options?: ReadOptions): Promise<readonly LiquidityPosition<`0x${string}`>[]>;
|
|
3842
3979
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3843
3980
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3844
3981
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<AerodromeDepositPreview>;
|
|
3845
3982
|
prepareDeposit(request: PrepareDepositRequest, options?: ReadOptions): Promise<Readonly<{
|
|
3846
3983
|
preview: AerodromeDepositPreview;
|
|
3984
|
+
transactions: readonly TransactionRequest[];
|
|
3847
3985
|
account: Address;
|
|
3848
3986
|
minimumAmounts: TokenPairAmounts;
|
|
3849
3987
|
chainId: number;
|
|
3850
|
-
transactions: readonly TransactionRequest[];
|
|
3851
3988
|
}>>;
|
|
3852
3989
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPreview>;
|
|
3853
3990
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPlan>;
|
|
@@ -3922,6 +4059,9 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3922
4059
|
constructor(context: ResolvedVaultContext);
|
|
3923
4060
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3924
4061
|
getSnapshot(options?: ReadOptions): Promise<BlackholeVaultSnapshot>;
|
|
4062
|
+
/** Simulate the original claim as this wallet without persisting transfers. */
|
|
4063
|
+
getUserRewards(account: Address, options?: ReadOptions): Promise<VaultUserRewards>;
|
|
4064
|
+
prepareClaimRewards(account: Address, options?: ReadOptions): Promise<ClaimRewardsPlan>;
|
|
3925
4065
|
getPositions(options?: ReadOptions): Promise<readonly BlackholePosition[]>;
|
|
3926
4066
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3927
4067
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3929,7 +4069,7 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3929
4069
|
prepareUnwrapNative(request: {
|
|
3930
4070
|
readonly account: Address;
|
|
3931
4071
|
readonly amount: bigint;
|
|
3932
|
-
}, options?: ReadOptions): Promise<
|
|
4072
|
+
}, options?: ReadOptions): Promise<NativeUnwrapPlan>;
|
|
3933
4073
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPreview>;
|
|
3934
4074
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPlan>;
|
|
3935
4075
|
}
|
|
@@ -4029,5 +4169,5 @@ declare const vaultConfigSchema: v.SchemaWithPipe<readonly [v.LooseObjectSchema<
|
|
|
4029
4169
|
/** Stored manifest. Each strategy, vault and connector owns its configuration schema. */
|
|
4030
4170
|
type VaultConfig = v.InferOutput<typeof vaultConfigSchema>;
|
|
4031
4171
|
//#endregion
|
|
4032
|
-
export { type AerodromeDepositPlan, type AerodromeDepositPreview, type AerodromeVaultSnapshot, type AerodromeWithdrawPlan, type AerodromeWithdrawPreview, type AlgebraContracts, type AlgebraIntegralContracts, type AlgebraIntegralPoolState, type AlgebraLegacyContracts, type AlgebraLegacyPoolLookupRequest, type AlgebraLegacyPoolState, type AlgebraLegacyPoolsLookupRequest, type AlgebraPoolLookupRequest, type AlgebraPoolReference, type AlgebraPoolState, type AlgebraPoolsLookupRequest, type AlgebraSwapFee, type AmmLookupRequest, type AmmProtocolAdapter, type AmmProtocolAdapters, type AmmProtocolVersion, type AmmVersion, type AssetAmount, type BlackholeNativeUnwrapPlan, type BlackholePosition, type BlackholeVaultSnapshot, type BlackholeWithdrawPlan, type BlackholeWithdrawPreview, type ConcentratedPoolState, type DepositPlan, type DepositPreview, type DepositQuote, type DepositRequest, type DiscoveredPool, type ExecutionContextRequest, type IndexerConfig, type InfinityCLContracts, type InfinityCLDirectionalFees, type InfinityCLPoolFees, type InfinityCLPoolIdReference, type InfinityCLPoolKey, type InfinityCLPoolKeyInput, type InfinityCLPoolLookupRequest, type InfinityCLPoolReference, type InfinityCLPoolState, type InfinityCLPoolsLookupRequest, type InfinityCLSwapQuoteRequest, type IpfsClientOptions, type IpfsRequestOptions, type KnownSteerVault, type LiquidityDepositPreview, type LiquidityDepth, type LiquidityDepthRequest, type LiquidityDistribution, type LiquidityFees, type LiquidityInterval, type LiquidityPool, type LiquidityPosition, type LiquidityPositionRange, type LiquidityVaultRewards, type LiquidityVaultSnapshot, type LiquidityVaultUserPosition, type LogEvent, type Logger, type PoolBatchReadOptions, type PoolLookupRequest, type PoolPrice, type PoolReadOptions, type PoolReadResult, type PoolState, type PoolTicks, type PoolTokenBalance, type PoolsLookupRequest, type PrepareDepositRequest, type PrepareWithdrawRequest, type SlipstreamContracts, type SlipstreamPoolFees, type SlipstreamPoolLookupRequest, type SlipstreamPoolState, type SlipstreamPoolsLookupRequest, type SlipstreamQuoteOptions, type StrategyPosition, type SurroundingTicks, type SwapQuote, type SwapQuoteRequest, type TheGraphIndexerConfig, type TickLiquidity, type TickPoolState, type TickRange, type TokenPairAmounts, type UserVaultDiscoveryRequest, type UserVaultListRequest, type UserVaultPage, type V3Contracts, type V3PoolFees, type V3PoolLookupRequest, type V3PoolState, type V3PoolsLookupRequest, type V4Contracts, type V4DirectionalFees, type V4PoolFees, type V4PoolKey, type V4PoolLookupRequest, type V4PoolReference, type V4PoolState, type V4PoolsLookupRequest, type V4ReadOptions, type V4SwapQuoteRequest, type V4VaultPool, type VaultAmmFilter, type VaultConfig, type VaultDiscoveryRequest, type VaultExecutionHistoryRequest, type VaultListRequest, type VaultLoadOptions, type VaultLoadResult, type VaultMetadata, type VaultRewardAsset, type VaultRewardFee, type VaultRewardPayout, type VaultSnapshotResult, type VaultUnderlying, type VaultUserPosition, type WithdrawPlan, type WithdrawPreview, type WithdrawRequest, type WithdrawRewards, ethereumContracts as mainnetContracts };
|
|
4172
|
+
export { type AerodromeDepositPlan, type AerodromeDepositPreview, type AerodromeVaultSnapshot, type AerodromeWithdrawPlan, type AerodromeWithdrawPreview, type AlgebraContracts, type AlgebraIntegralContracts, type AlgebraIntegralPoolState, type AlgebraLegacyContracts, type AlgebraLegacyPoolLookupRequest, type AlgebraLegacyPoolState, type AlgebraLegacyPoolsLookupRequest, type AlgebraPoolLookupRequest, type AlgebraPoolReference, type AlgebraPoolState, type AlgebraPoolsLookupRequest, type AlgebraSwapFee, type AmmLookupRequest, type AmmProtocolAdapter, type AmmProtocolAdapters, type AmmProtocolVersion, type AmmVersion, type AssetAmount, type BlackholeNativeUnwrapPlan, type BlackholePosition, type BlackholeVaultSnapshot, type BlackholeWithdrawPlan, type BlackholeWithdrawPreview, type ClaimRewardsPlan, type ConcentratedPoolState, type DepositPlan, type DepositPreview, type DepositQuote, type DepositRequest, type DiscoveredPool, type ExecutionContextRequest, type IndexerConfig, type InfinityCLContracts, type InfinityCLDirectionalFees, type InfinityCLPoolFees, type InfinityCLPoolIdReference, type InfinityCLPoolKey, type InfinityCLPoolKeyInput, type InfinityCLPoolLookupRequest, type InfinityCLPoolReference, type InfinityCLPoolState, type InfinityCLPoolsLookupRequest, type InfinityCLSwapQuoteRequest, type IpfsClientOptions, type IpfsRequestOptions, type KnownSteerVault, type LiquidityDepositPreview, type LiquidityDepth, type LiquidityDepthRequest, type LiquidityDistribution, type LiquidityFees, type LiquidityInterval, type LiquidityPool, type LiquidityPosition, type LiquidityPositionRange, type LiquidityVaultRewards, type LiquidityVaultSnapshot, type LiquidityVaultUserPosition, type LogEvent, type Logger, type NativeUnwrapPlan, type PoolBatchReadOptions, type PoolLookupRequest, type PoolPrice, type PoolReadOptions, type PoolReadResult, type PoolState, type PoolTicks, type PoolTokenBalance, type PoolsLookupRequest, type PrepareDepositRequest, type PrepareWithdrawRequest, type SlipstreamContracts, type SlipstreamPoolFees, type SlipstreamPoolLookupRequest, type SlipstreamPoolState, type SlipstreamPoolsLookupRequest, type SlipstreamQuoteOptions, type StrategyPosition, type SurroundingTicks, type SwapQuote, type SwapQuoteRequest, type TheGraphIndexerConfig, type TickLiquidity, type TickPoolState, type TickRange, type TokenPairAmounts, type UserVaultDiscoveryRequest, type UserVaultListRequest, type UserVaultPage, type V3Contracts, type V3PoolFees, type V3PoolLookupRequest, type V3PoolState, type V3PoolsLookupRequest, type V4Contracts, type V4DirectionalFees, type V4PoolFees, type V4PoolKey, type V4PoolLookupRequest, type V4PoolReference, type V4PoolState, type V4PoolsLookupRequest, type V4ReadOptions, type V4SwapQuoteRequest, type V4VaultPool, type VaultAmmFilter, type VaultConfig, type VaultDiscoveryRequest, type VaultExecutionHistoryRequest, type VaultListRequest, type VaultLoadOptions, type VaultLoadResult, type VaultMetadata, type VaultRewardAsset, type VaultRewardFee, type VaultRewardPayout, type VaultSnapshotResult, type VaultUnderlying, type VaultUserPosition, type VaultUserReward, type VaultUserRewards, type WithdrawPlan, type WithdrawPreview, type WithdrawRequest, type WithdrawRewards, ethereumContracts as mainnetContracts };
|
|
4033
4173
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -196,6 +196,11 @@ export declare abstract class PoolDataAdapter<TPoolRef> extends DataAdapter {
|
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/amm/enums.d.ts
|
|
198
198
|
export declare enum AmmProtocol {
|
|
199
|
+
Bittensor = "bittensor",
|
|
200
|
+
Cypher = "cypher",
|
|
201
|
+
Spark = "spark",
|
|
202
|
+
Thena = "thena",
|
|
203
|
+
Hydrex = "hydrex",
|
|
199
204
|
Blackhole = "blackhole",
|
|
200
205
|
Aerodrome = "aerodrome",
|
|
201
206
|
SushiSwap = "sushiswap",
|
|
@@ -210,6 +215,16 @@ export declare enum AerodromeVersion {
|
|
|
210
215
|
SlipstreamV2 = "slipstream-v2",
|
|
211
216
|
SlipstreamV3 = "slipstream-v3"
|
|
212
217
|
}
|
|
218
|
+
export declare enum CypherVersion {
|
|
219
|
+
V4 = "v4"
|
|
220
|
+
}
|
|
221
|
+
export declare enum BittensorVersion {
|
|
222
|
+
V3 = "v3"
|
|
223
|
+
}
|
|
224
|
+
export declare enum SparkVersion {
|
|
225
|
+
V4 = "v4",
|
|
226
|
+
V3_2 = "v3.2"
|
|
227
|
+
}
|
|
213
228
|
export declare enum SushiSwapVersion {
|
|
214
229
|
V3 = "v3"
|
|
215
230
|
}
|
|
@@ -224,6 +239,12 @@ export declare enum QuickSwapVersion {
|
|
|
224
239
|
V3 = "v3",
|
|
225
240
|
V4 = "v4"
|
|
226
241
|
}
|
|
242
|
+
export declare enum ThenaVersion {
|
|
243
|
+
Fusion = "fusion"
|
|
244
|
+
}
|
|
245
|
+
export declare enum HydrexVersion {
|
|
246
|
+
Integral = "integral"
|
|
247
|
+
}
|
|
227
248
|
export declare enum BlackholeVersion {
|
|
228
249
|
CL = "cl"
|
|
229
250
|
}
|
|
@@ -236,15 +257,32 @@ export declare enum PancakeSwapVersion {
|
|
|
236
257
|
}
|
|
237
258
|
/** Named deployments for explicitly selecting between otherwise ambiguous matches. */
|
|
238
259
|
export declare enum AmmDeployment {
|
|
260
|
+
SushiSwapV3Ethereum = "sushiswap-v3-ethereum",
|
|
261
|
+
UniswapV3Ethereum = "uniswap-v3-ethereum",
|
|
262
|
+
SushiSwapV3Avalanche = "sushiswap-v3-avalanche",
|
|
263
|
+
SushiSwapV3Katana = "sushiswap-v3-katana",
|
|
264
|
+
BittensorV3 = "bittensor-v3",
|
|
265
|
+
CypherV4Ethereum = "cypher-integral-ethereum",
|
|
266
|
+
SparkV4Flare = "spark-integral-flare",
|
|
267
|
+
SparkV32Flare = "spark-v3.2-flare",
|
|
268
|
+
SushiSwapV3Optimism = "sushiswap-v3-optimism",
|
|
269
|
+
SushiSwapV3Arbitrum = "sushiswap-v3-arbitrum",
|
|
270
|
+
PancakeSwapV3Arbitrum = "pancakeswap-v3-arbitrum",
|
|
271
|
+
ThenaFusionBsc = "thena-fusion-bsc",
|
|
272
|
+
HydrexIntegralBase = "hydrex-integral-base",
|
|
239
273
|
BlackholeCLAvalanche = "blackhole-cl-avalanche",
|
|
240
274
|
AerodromeSlipstreamBase = "aerodrome-slipstream-base",
|
|
241
275
|
AerodromeSlipstreamV2Base = "aerodrome-slipstream-v2-base",
|
|
242
276
|
AerodromeSlipstreamV3Base = "aerodrome-slipstream-v3-base",
|
|
277
|
+
SushiSwapV3Robinhood = "sushiswap-v3-robinhood",
|
|
278
|
+
UniswapV3Robinhood = "uniswap-v3-robinhood",
|
|
243
279
|
SushiSwapV3Base = "sushiswap-v3-base",
|
|
244
280
|
SushiSwapV3Bsc = "sushiswap-v3-bsc",
|
|
245
281
|
UniswapV3Bsc = "uniswap-v3-bsc",
|
|
246
282
|
SushiSwapV3Polygon = "sushiswap-v3-polygon",
|
|
247
283
|
RetroV3Polygon = "retro-v3-polygon",
|
|
284
|
+
UniswapV3Optimism = "uniswap-v3-optimism",
|
|
285
|
+
UniswapV3Arbitrum = "uniswap-v3-arbitrum",
|
|
248
286
|
UniswapV3Polygon = "uniswap-v3-polygon",
|
|
249
287
|
QuickSwapV4Polygon = "quickswap-integral-polygon",
|
|
250
288
|
UniswapV3Base = "uniswap-v3-base",
|
|
@@ -409,6 +447,18 @@ export declare class QuickSwapIntegral extends AlgebraIntegralAdapter {
|
|
|
409
447
|
readonly protocol = AmmProtocol.QuickSwap;
|
|
410
448
|
readonly version = QuickSwapVersion.V4;
|
|
411
449
|
}
|
|
450
|
+
export declare class Hydrex extends AlgebraIntegralAdapter {
|
|
451
|
+
readonly protocol = AmmProtocol.Hydrex;
|
|
452
|
+
readonly version = HydrexVersion.Integral;
|
|
453
|
+
}
|
|
454
|
+
export declare class Cypher extends AlgebraIntegralAdapter {
|
|
455
|
+
readonly protocol = AmmProtocol.Cypher;
|
|
456
|
+
readonly version = CypherVersion.V4;
|
|
457
|
+
}
|
|
458
|
+
export declare class SparkIntegral extends AlgebraIntegralAdapter {
|
|
459
|
+
readonly protocol = AmmProtocol.Spark;
|
|
460
|
+
readonly version = SparkVersion.V4;
|
|
461
|
+
}
|
|
412
462
|
//#endregion
|
|
413
463
|
//#region src/amm/adapters/algebra-integral/data-adapter.d.ts
|
|
414
464
|
export declare class AlgebraIntegralDataAdapter extends PoolDataAdapter<AlgebraPoolReference> {
|
|
@@ -470,6 +520,14 @@ export declare class QuickSwap extends AlgebraLegacyAdapter {
|
|
|
470
520
|
readonly version = QuickSwapVersion.V3;
|
|
471
521
|
}
|
|
472
522
|
//#endregion
|
|
523
|
+
//#region src/amm/adapters/algebra-legacy/thena.d.ts
|
|
524
|
+
/** Fusion v1 uses the symmetric legacy Algebra pool interface. */
|
|
525
|
+
export declare class Thena extends AlgebraLegacyAdapter {
|
|
526
|
+
readonly protocol = AmmProtocol.Thena;
|
|
527
|
+
readonly version = ThenaVersion.Fusion;
|
|
528
|
+
quote(request: SwapQuoteRequest<Address>, options?: ReadOptions): Promise<SwapQuote>;
|
|
529
|
+
}
|
|
530
|
+
//#endregion
|
|
473
531
|
//#region src/amm/adapters/pancakeswap-infinity-cl/types.d.ts
|
|
474
532
|
interface InfinityCLPoolKey {
|
|
475
533
|
readonly currency0: Address;
|
|
@@ -683,7 +741,7 @@ export declare abstract class V4PoolDataAdapter extends PoolDataAdapter<V4PoolKe
|
|
|
683
741
|
/** Indexed references carry full keys; every onchain use still validates the configured manager. */
|
|
684
742
|
export declare class UniswapV4DataAdapter extends V4PoolDataAdapter {
|
|
685
743
|
#private;
|
|
686
|
-
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext);
|
|
744
|
+
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext, positionManager?: Address);
|
|
687
745
|
listPools(request?: PoolListRequest, options?: DataAdapterRequestOptions): Promise<Page<V4PoolKey>>;
|
|
688
746
|
getPoolKey(id: Hex, options?: V4ReadOptions): Promise<V4PoolKey>;
|
|
689
747
|
}
|
|
@@ -712,6 +770,12 @@ export declare class V4PoolKeyNotFoundError extends Error {
|
|
|
712
770
|
constructor(message?: string);
|
|
713
771
|
}
|
|
714
772
|
//#endregion
|
|
773
|
+
//#region src/amm/adapters/bittensor-v3/adapter.d.ts
|
|
774
|
+
export declare class BittensorV3 extends RpcUniswapV3Adapter {
|
|
775
|
+
readonly protocol = AmmProtocol.Bittensor;
|
|
776
|
+
readonly version = BittensorVersion.V3;
|
|
777
|
+
}
|
|
778
|
+
//#endregion
|
|
715
779
|
//#region src/amm/adapters/pancakeswap-v3/adapter.d.ts
|
|
716
780
|
/** Pancake V3 uses the V3 family with a wider slot0 protocol-fee field. */
|
|
717
781
|
export declare class PancakeSwapV3 extends RpcUniswapV3Adapter {
|
|
@@ -725,6 +789,12 @@ export declare class RetroV3 extends RpcUniswapV3Adapter {
|
|
|
725
789
|
readonly version = RetroVersion.V3;
|
|
726
790
|
}
|
|
727
791
|
//#endregion
|
|
792
|
+
//#region src/amm/adapters/spark-v3/adapter.d.ts
|
|
793
|
+
export declare class SparkV32 extends RpcUniswapV3Adapter {
|
|
794
|
+
readonly protocol = AmmProtocol.Spark;
|
|
795
|
+
readonly version = SparkVersion.V3_2;
|
|
796
|
+
}
|
|
797
|
+
//#endregion
|
|
728
798
|
//#region src/amm/adapters/sushiswap-v3/adapter.d.ts
|
|
729
799
|
export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
730
800
|
readonly protocol = AmmProtocol.SushiSwap;
|
|
@@ -733,6 +803,40 @@ export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
|
733
803
|
//#endregion
|
|
734
804
|
//#region src/amm/selection.d.ts
|
|
735
805
|
declare const ammDefinitions: {
|
|
806
|
+
readonly bittensor: {
|
|
807
|
+
readonly v3: {
|
|
808
|
+
readonly adapter: typeof BittensorV3;
|
|
809
|
+
readonly family: AmmFamily.UniswapV3;
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
readonly cypher: {
|
|
813
|
+
readonly v4: {
|
|
814
|
+
readonly adapter: typeof Cypher;
|
|
815
|
+
readonly family: AmmFamily.AlgebraIntegral;
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
readonly spark: {
|
|
819
|
+
readonly v4: {
|
|
820
|
+
readonly adapter: typeof SparkIntegral;
|
|
821
|
+
readonly family: AmmFamily.AlgebraIntegral;
|
|
822
|
+
};
|
|
823
|
+
readonly "v3.2": {
|
|
824
|
+
readonly adapter: typeof SparkV32;
|
|
825
|
+
readonly family: AmmFamily.UniswapV3;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly thena: {
|
|
829
|
+
readonly fusion: {
|
|
830
|
+
readonly adapter: typeof Thena;
|
|
831
|
+
readonly family: AmmFamily.AlgebraLegacy;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
readonly hydrex: {
|
|
835
|
+
readonly integral: {
|
|
836
|
+
readonly adapter: typeof Hydrex;
|
|
837
|
+
readonly family: AmmFamily.AlgebraIntegral;
|
|
838
|
+
};
|
|
839
|
+
};
|
|
736
840
|
readonly aerodrome: {
|
|
737
841
|
readonly slipstream: {
|
|
738
842
|
readonly adapter: typeof AerodromeSlipstream;
|
|
@@ -804,7 +908,7 @@ declare const ammDefinitions: {
|
|
|
804
908
|
};
|
|
805
909
|
//#endregion
|
|
806
910
|
//#region src/amm/types.d.ts
|
|
807
|
-
type AmmVersion = AerodromeVersion | SushiSwapVersion | RetroVersion | UniswapVersion | QuickSwapVersion | BlackholeVersion | CamelotVersion | PancakeSwapVersion;
|
|
911
|
+
type AmmVersion = AerodromeVersion | SparkVersion | SushiSwapVersion | RetroVersion | UniswapVersion | QuickSwapVersion | BittensorVersion | BlackholeVersion | CypherVersion | HydrexVersion | ThenaVersion | CamelotVersion | PancakeSwapVersion;
|
|
808
912
|
type AdapterFromDefinition<T> = T extends {
|
|
809
913
|
readonly adapter: abstract new (...args: never[]) => infer TAdapter;
|
|
810
914
|
} ? TAdapter : never;
|
|
@@ -3386,6 +3490,11 @@ export declare abstract class LiquidityVault<TAmm extends AmmAdapter = AmmAdapte
|
|
|
3386
3490
|
executeDataConnectors(context: SmartPoolExecutionContext, options?: IpfsRequestOptions): Promise<readonly unknown[]>;
|
|
3387
3491
|
/** Execute the registered WASM locally. Returns parsed output without submitting transactions. */
|
|
3388
3492
|
executeStrategy(context: SmartPoolExecutionContext, connectorData: readonly unknown[], options?: IpfsRequestOptions): Promise<unknown>;
|
|
3493
|
+
/** Prepare after withdrawal confirmation, using actual received wrapped currency. */
|
|
3494
|
+
prepareUnwrapNative(request: {
|
|
3495
|
+
readonly account: Address;
|
|
3496
|
+
readonly amount: bigint;
|
|
3497
|
+
}, options?: ReadOptions): Promise<NativeUnwrapPlan>;
|
|
3389
3498
|
/** Calculate the other token maximum at the vault's current deposit ratio. Does not swap. */
|
|
3390
3499
|
abstract quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3391
3500
|
abstract previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3523,6 +3632,25 @@ interface VaultRewardPayout {
|
|
|
3523
3632
|
readonly recipient: Address;
|
|
3524
3633
|
readonly amount: PoolTokenBalance;
|
|
3525
3634
|
}
|
|
3635
|
+
/** One wallet's original-contract claim simulation and stored accounting checkpoint. */
|
|
3636
|
+
interface VaultUserReward {
|
|
3637
|
+
readonly token: Address;
|
|
3638
|
+
readonly decimals: number;
|
|
3639
|
+
readonly claimable: PoolTokenBalance;
|
|
3640
|
+
/** Stored pre-claim checkpoint preventing double payment; not a liability owed by the user. */
|
|
3641
|
+
readonly rewardDebt: PoolTokenBalance;
|
|
3642
|
+
}
|
|
3643
|
+
interface VaultUserRewards {
|
|
3644
|
+
readonly account: Address;
|
|
3645
|
+
readonly blockNumber: bigint;
|
|
3646
|
+
readonly shares: bigint;
|
|
3647
|
+
readonly rewards: readonly VaultUserReward[];
|
|
3648
|
+
}
|
|
3649
|
+
/** Caller-owned reward claim; no share burn, approval or configurable recipient. */
|
|
3650
|
+
interface ClaimRewardsPlan extends TransactionPlan {
|
|
3651
|
+
readonly account: Address;
|
|
3652
|
+
readonly preview: VaultUserRewards;
|
|
3653
|
+
}
|
|
3526
3654
|
/** Reward paid to the shareholder during withdrawal. */
|
|
3527
3655
|
type WithdrawRewards = VaultRewardPayout;
|
|
3528
3656
|
/** Actual withdrawal simulation, including contract burn rounding and fee policy. */
|
|
@@ -3709,6 +3837,12 @@ interface VaultUserPosition<TPool extends LiquidityPool = LiquidityPool> {
|
|
|
3709
3837
|
readonly position: LiquidityVaultUserPosition<TPool>;
|
|
3710
3838
|
}
|
|
3711
3839
|
type KnownSteerVault = LiquidityVault | LendingVault | CompositeVault;
|
|
3840
|
+
/** Separate post-confirmation unwrap using an explicitly requested, actual wrapped balance. */
|
|
3841
|
+
interface NativeUnwrapPlan extends TransactionPlan {
|
|
3842
|
+
readonly account: Address;
|
|
3843
|
+
readonly blockNumber: bigint;
|
|
3844
|
+
readonly amount: PoolTokenBalance;
|
|
3845
|
+
}
|
|
3712
3846
|
//#endregion
|
|
3713
3847
|
//#region src/vault/data-adapter.d.ts
|
|
3714
3848
|
export declare abstract class SteerDataAdapter extends DataAdapter {
|
|
@@ -3838,16 +3972,19 @@ export declare abstract class AerodromeVault extends LiquidityVault<AerodromeSli
|
|
|
3838
3972
|
readonly amm: AerodromeSlipstreamAdapter;
|
|
3839
3973
|
readonly pool: Address;
|
|
3840
3974
|
getSnapshot(options?: ReadOptions): Promise<AerodromeVaultSnapshot>;
|
|
3975
|
+
/** Simulate the original claim as this wallet without persisting transfers. */
|
|
3976
|
+
getUserRewards(account: Address, options?: ReadOptions): Promise<VaultUserRewards>;
|
|
3977
|
+
prepareClaimRewards(account: Address, options?: ReadOptions): Promise<ClaimRewardsPlan>;
|
|
3841
3978
|
getPositions(options?: ReadOptions): Promise<readonly LiquidityPosition<`0x${string}`>[]>;
|
|
3842
3979
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3843
3980
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3844
3981
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<AerodromeDepositPreview>;
|
|
3845
3982
|
prepareDeposit(request: PrepareDepositRequest, options?: ReadOptions): Promise<Readonly<{
|
|
3846
3983
|
preview: AerodromeDepositPreview;
|
|
3984
|
+
transactions: readonly TransactionRequest[];
|
|
3847
3985
|
account: Address;
|
|
3848
3986
|
minimumAmounts: TokenPairAmounts;
|
|
3849
3987
|
chainId: number;
|
|
3850
|
-
transactions: readonly TransactionRequest[];
|
|
3851
3988
|
}>>;
|
|
3852
3989
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPreview>;
|
|
3853
3990
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPlan>;
|
|
@@ -3922,6 +4059,9 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3922
4059
|
constructor(context: ResolvedVaultContext);
|
|
3923
4060
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3924
4061
|
getSnapshot(options?: ReadOptions): Promise<BlackholeVaultSnapshot>;
|
|
4062
|
+
/** Simulate the original claim as this wallet without persisting transfers. */
|
|
4063
|
+
getUserRewards(account: Address, options?: ReadOptions): Promise<VaultUserRewards>;
|
|
4064
|
+
prepareClaimRewards(account: Address, options?: ReadOptions): Promise<ClaimRewardsPlan>;
|
|
3925
4065
|
getPositions(options?: ReadOptions): Promise<readonly BlackholePosition[]>;
|
|
3926
4066
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3927
4067
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3929,7 +4069,7 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3929
4069
|
prepareUnwrapNative(request: {
|
|
3930
4070
|
readonly account: Address;
|
|
3931
4071
|
readonly amount: bigint;
|
|
3932
|
-
}, options?: ReadOptions): Promise<
|
|
4072
|
+
}, options?: ReadOptions): Promise<NativeUnwrapPlan>;
|
|
3933
4073
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPreview>;
|
|
3934
4074
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPlan>;
|
|
3935
4075
|
}
|
|
@@ -4029,5 +4169,5 @@ declare const vaultConfigSchema: v.SchemaWithPipe<readonly [v.LooseObjectSchema<
|
|
|
4029
4169
|
/** Stored manifest. Each strategy, vault and connector owns its configuration schema. */
|
|
4030
4170
|
type VaultConfig = v.InferOutput<typeof vaultConfigSchema>;
|
|
4031
4171
|
//#endregion
|
|
4032
|
-
export { type AerodromeDepositPlan, type AerodromeDepositPreview, type AerodromeVaultSnapshot, type AerodromeWithdrawPlan, type AerodromeWithdrawPreview, type AlgebraContracts, type AlgebraIntegralContracts, type AlgebraIntegralPoolState, type AlgebraLegacyContracts, type AlgebraLegacyPoolLookupRequest, type AlgebraLegacyPoolState, type AlgebraLegacyPoolsLookupRequest, type AlgebraPoolLookupRequest, type AlgebraPoolReference, type AlgebraPoolState, type AlgebraPoolsLookupRequest, type AlgebraSwapFee, type AmmLookupRequest, type AmmProtocolAdapter, type AmmProtocolAdapters, type AmmProtocolVersion, type AmmVersion, type AssetAmount, type BlackholeNativeUnwrapPlan, type BlackholePosition, type BlackholeVaultSnapshot, type BlackholeWithdrawPlan, type BlackholeWithdrawPreview, type ConcentratedPoolState, type DepositPlan, type DepositPreview, type DepositQuote, type DepositRequest, type DiscoveredPool, type ExecutionContextRequest, type IndexerConfig, type InfinityCLContracts, type InfinityCLDirectionalFees, type InfinityCLPoolFees, type InfinityCLPoolIdReference, type InfinityCLPoolKey, type InfinityCLPoolKeyInput, type InfinityCLPoolLookupRequest, type InfinityCLPoolReference, type InfinityCLPoolState, type InfinityCLPoolsLookupRequest, type InfinityCLSwapQuoteRequest, type IpfsClientOptions, type IpfsRequestOptions, type KnownSteerVault, type LiquidityDepositPreview, type LiquidityDepth, type LiquidityDepthRequest, type LiquidityDistribution, type LiquidityFees, type LiquidityInterval, type LiquidityPool, type LiquidityPosition, type LiquidityPositionRange, type LiquidityVaultRewards, type LiquidityVaultSnapshot, type LiquidityVaultUserPosition, type LogEvent, type Logger, type PoolBatchReadOptions, type PoolLookupRequest, type PoolPrice, type PoolReadOptions, type PoolReadResult, type PoolState, type PoolTicks, type PoolTokenBalance, type PoolsLookupRequest, type PrepareDepositRequest, type PrepareWithdrawRequest, type SlipstreamContracts, type SlipstreamPoolFees, type SlipstreamPoolLookupRequest, type SlipstreamPoolState, type SlipstreamPoolsLookupRequest, type SlipstreamQuoteOptions, type StrategyPosition, type SurroundingTicks, type SwapQuote, type SwapQuoteRequest, type TheGraphIndexerConfig, type TickLiquidity, type TickPoolState, type TickRange, type TokenPairAmounts, type UserVaultDiscoveryRequest, type UserVaultListRequest, type UserVaultPage, type V3Contracts, type V3PoolFees, type V3PoolLookupRequest, type V3PoolState, type V3PoolsLookupRequest, type V4Contracts, type V4DirectionalFees, type V4PoolFees, type V4PoolKey, type V4PoolLookupRequest, type V4PoolReference, type V4PoolState, type V4PoolsLookupRequest, type V4ReadOptions, type V4SwapQuoteRequest, type V4VaultPool, type VaultAmmFilter, type VaultConfig, type VaultDiscoveryRequest, type VaultExecutionHistoryRequest, type VaultListRequest, type VaultLoadOptions, type VaultLoadResult, type VaultMetadata, type VaultRewardAsset, type VaultRewardFee, type VaultRewardPayout, type VaultSnapshotResult, type VaultUnderlying, type VaultUserPosition, type WithdrawPlan, type WithdrawPreview, type WithdrawRequest, type WithdrawRewards, ethereumContracts as mainnetContracts };
|
|
4172
|
+
export { type AerodromeDepositPlan, type AerodromeDepositPreview, type AerodromeVaultSnapshot, type AerodromeWithdrawPlan, type AerodromeWithdrawPreview, type AlgebraContracts, type AlgebraIntegralContracts, type AlgebraIntegralPoolState, type AlgebraLegacyContracts, type AlgebraLegacyPoolLookupRequest, type AlgebraLegacyPoolState, type AlgebraLegacyPoolsLookupRequest, type AlgebraPoolLookupRequest, type AlgebraPoolReference, type AlgebraPoolState, type AlgebraPoolsLookupRequest, type AlgebraSwapFee, type AmmLookupRequest, type AmmProtocolAdapter, type AmmProtocolAdapters, type AmmProtocolVersion, type AmmVersion, type AssetAmount, type BlackholeNativeUnwrapPlan, type BlackholePosition, type BlackholeVaultSnapshot, type BlackholeWithdrawPlan, type BlackholeWithdrawPreview, type ClaimRewardsPlan, type ConcentratedPoolState, type DepositPlan, type DepositPreview, type DepositQuote, type DepositRequest, type DiscoveredPool, type ExecutionContextRequest, type IndexerConfig, type InfinityCLContracts, type InfinityCLDirectionalFees, type InfinityCLPoolFees, type InfinityCLPoolIdReference, type InfinityCLPoolKey, type InfinityCLPoolKeyInput, type InfinityCLPoolLookupRequest, type InfinityCLPoolReference, type InfinityCLPoolState, type InfinityCLPoolsLookupRequest, type InfinityCLSwapQuoteRequest, type IpfsClientOptions, type IpfsRequestOptions, type KnownSteerVault, type LiquidityDepositPreview, type LiquidityDepth, type LiquidityDepthRequest, type LiquidityDistribution, type LiquidityFees, type LiquidityInterval, type LiquidityPool, type LiquidityPosition, type LiquidityPositionRange, type LiquidityVaultRewards, type LiquidityVaultSnapshot, type LiquidityVaultUserPosition, type LogEvent, type Logger, type NativeUnwrapPlan, type PoolBatchReadOptions, type PoolLookupRequest, type PoolPrice, type PoolReadOptions, type PoolReadResult, type PoolState, type PoolTicks, type PoolTokenBalance, type PoolsLookupRequest, type PrepareDepositRequest, type PrepareWithdrawRequest, type SlipstreamContracts, type SlipstreamPoolFees, type SlipstreamPoolLookupRequest, type SlipstreamPoolState, type SlipstreamPoolsLookupRequest, type SlipstreamQuoteOptions, type StrategyPosition, type SurroundingTicks, type SwapQuote, type SwapQuoteRequest, type TheGraphIndexerConfig, type TickLiquidity, type TickPoolState, type TickRange, type TokenPairAmounts, type UserVaultDiscoveryRequest, type UserVaultListRequest, type UserVaultPage, type V3Contracts, type V3PoolFees, type V3PoolLookupRequest, type V3PoolState, type V3PoolsLookupRequest, type V4Contracts, type V4DirectionalFees, type V4PoolFees, type V4PoolKey, type V4PoolLookupRequest, type V4PoolReference, type V4PoolState, type V4PoolsLookupRequest, type V4ReadOptions, type V4SwapQuoteRequest, type V4VaultPool, type VaultAmmFilter, type VaultConfig, type VaultDiscoveryRequest, type VaultExecutionHistoryRequest, type VaultListRequest, type VaultLoadOptions, type VaultLoadResult, type VaultMetadata, type VaultRewardAsset, type VaultRewardFee, type VaultRewardPayout, type VaultSnapshotResult, type VaultUnderlying, type VaultUserPosition, type VaultUserReward, type VaultUserRewards, type WithdrawPlan, type WithdrawPreview, type WithdrawRequest, type WithdrawRewards, ethereumContracts as mainnetContracts };
|
|
4033
4173
|
//# sourceMappingURL=index.d.mts.map
|