@steerprotocol/sdk 4.0.0-next.12 → 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 +226 -3
- package/dist/index.cjs +14735 -10572
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +148 -5
- package/dist/index.d.mts +148 -5
- package/dist/index.mjs +14726 -10574
- 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,12 +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",
|
|
279
|
+
SushiSwapV3Base = "sushiswap-v3-base",
|
|
280
|
+
SushiSwapV3Bsc = "sushiswap-v3-bsc",
|
|
281
|
+
UniswapV3Bsc = "uniswap-v3-bsc",
|
|
243
282
|
SushiSwapV3Polygon = "sushiswap-v3-polygon",
|
|
244
283
|
RetroV3Polygon = "retro-v3-polygon",
|
|
284
|
+
UniswapV3Optimism = "uniswap-v3-optimism",
|
|
285
|
+
UniswapV3Arbitrum = "uniswap-v3-arbitrum",
|
|
245
286
|
UniswapV3Polygon = "uniswap-v3-polygon",
|
|
246
287
|
QuickSwapV4Polygon = "quickswap-integral-polygon",
|
|
247
288
|
UniswapV3Base = "uniswap-v3-base",
|
|
@@ -406,6 +447,18 @@ export declare class QuickSwapIntegral extends AlgebraIntegralAdapter {
|
|
|
406
447
|
readonly protocol = AmmProtocol.QuickSwap;
|
|
407
448
|
readonly version = QuickSwapVersion.V4;
|
|
408
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
|
+
}
|
|
409
462
|
//#endregion
|
|
410
463
|
//#region src/amm/adapters/algebra-integral/data-adapter.d.ts
|
|
411
464
|
export declare class AlgebraIntegralDataAdapter extends PoolDataAdapter<AlgebraPoolReference> {
|
|
@@ -467,6 +520,14 @@ export declare class QuickSwap extends AlgebraLegacyAdapter {
|
|
|
467
520
|
readonly version = QuickSwapVersion.V3;
|
|
468
521
|
}
|
|
469
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
|
|
470
531
|
//#region src/amm/adapters/pancakeswap-infinity-cl/types.d.ts
|
|
471
532
|
interface InfinityCLPoolKey {
|
|
472
533
|
readonly currency0: Address;
|
|
@@ -680,7 +741,7 @@ export declare abstract class V4PoolDataAdapter extends PoolDataAdapter<V4PoolKe
|
|
|
680
741
|
/** Indexed references carry full keys; every onchain use still validates the configured manager. */
|
|
681
742
|
export declare class UniswapV4DataAdapter extends V4PoolDataAdapter {
|
|
682
743
|
#private;
|
|
683
|
-
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext);
|
|
744
|
+
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext, positionManager?: Address);
|
|
684
745
|
listPools(request?: PoolListRequest, options?: DataAdapterRequestOptions): Promise<Page<V4PoolKey>>;
|
|
685
746
|
getPoolKey(id: Hex, options?: V4ReadOptions): Promise<V4PoolKey>;
|
|
686
747
|
}
|
|
@@ -709,6 +770,12 @@ export declare class V4PoolKeyNotFoundError extends Error {
|
|
|
709
770
|
constructor(message?: string);
|
|
710
771
|
}
|
|
711
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
|
|
712
779
|
//#region src/amm/adapters/pancakeswap-v3/adapter.d.ts
|
|
713
780
|
/** Pancake V3 uses the V3 family with a wider slot0 protocol-fee field. */
|
|
714
781
|
export declare class PancakeSwapV3 extends RpcUniswapV3Adapter {
|
|
@@ -722,6 +789,12 @@ export declare class RetroV3 extends RpcUniswapV3Adapter {
|
|
|
722
789
|
readonly version = RetroVersion.V3;
|
|
723
790
|
}
|
|
724
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
|
|
725
798
|
//#region src/amm/adapters/sushiswap-v3/adapter.d.ts
|
|
726
799
|
export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
727
800
|
readonly protocol = AmmProtocol.SushiSwap;
|
|
@@ -730,6 +803,40 @@ export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
|
730
803
|
//#endregion
|
|
731
804
|
//#region src/amm/selection.d.ts
|
|
732
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
|
+
};
|
|
733
840
|
readonly aerodrome: {
|
|
734
841
|
readonly slipstream: {
|
|
735
842
|
readonly adapter: typeof AerodromeSlipstream;
|
|
@@ -801,7 +908,7 @@ declare const ammDefinitions: {
|
|
|
801
908
|
};
|
|
802
909
|
//#endregion
|
|
803
910
|
//#region src/amm/types.d.ts
|
|
804
|
-
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;
|
|
805
912
|
type AdapterFromDefinition<T> = T extends {
|
|
806
913
|
readonly adapter: abstract new (...args: never[]) => infer TAdapter;
|
|
807
914
|
} ? TAdapter : never;
|
|
@@ -3383,6 +3490,11 @@ export declare abstract class LiquidityVault<TAmm extends AmmAdapter = AmmAdapte
|
|
|
3383
3490
|
executeDataConnectors(context: SmartPoolExecutionContext, options?: IpfsRequestOptions): Promise<readonly unknown[]>;
|
|
3384
3491
|
/** Execute the registered WASM locally. Returns parsed output without submitting transactions. */
|
|
3385
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>;
|
|
3386
3498
|
/** Calculate the other token maximum at the vault's current deposit ratio. Does not swap. */
|
|
3387
3499
|
abstract quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3388
3500
|
abstract previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3520,6 +3632,25 @@ interface VaultRewardPayout {
|
|
|
3520
3632
|
readonly recipient: Address;
|
|
3521
3633
|
readonly amount: PoolTokenBalance;
|
|
3522
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
|
+
}
|
|
3523
3654
|
/** Reward paid to the shareholder during withdrawal. */
|
|
3524
3655
|
type WithdrawRewards = VaultRewardPayout;
|
|
3525
3656
|
/** Actual withdrawal simulation, including contract burn rounding and fee policy. */
|
|
@@ -3706,6 +3837,12 @@ interface VaultUserPosition<TPool extends LiquidityPool = LiquidityPool> {
|
|
|
3706
3837
|
readonly position: LiquidityVaultUserPosition<TPool>;
|
|
3707
3838
|
}
|
|
3708
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
|
+
}
|
|
3709
3846
|
//#endregion
|
|
3710
3847
|
//#region src/vault/data-adapter.d.ts
|
|
3711
3848
|
export declare abstract class SteerDataAdapter extends DataAdapter {
|
|
@@ -3835,16 +3972,19 @@ export declare abstract class AerodromeVault extends LiquidityVault<AerodromeSli
|
|
|
3835
3972
|
readonly amm: AerodromeSlipstreamAdapter;
|
|
3836
3973
|
readonly pool: Address;
|
|
3837
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>;
|
|
3838
3978
|
getPositions(options?: ReadOptions): Promise<readonly LiquidityPosition<`0x${string}`>[]>;
|
|
3839
3979
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3840
3980
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3841
3981
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<AerodromeDepositPreview>;
|
|
3842
3982
|
prepareDeposit(request: PrepareDepositRequest, options?: ReadOptions): Promise<Readonly<{
|
|
3843
3983
|
preview: AerodromeDepositPreview;
|
|
3984
|
+
transactions: readonly TransactionRequest[];
|
|
3844
3985
|
account: Address;
|
|
3845
3986
|
minimumAmounts: TokenPairAmounts;
|
|
3846
3987
|
chainId: number;
|
|
3847
|
-
transactions: readonly TransactionRequest[];
|
|
3848
3988
|
}>>;
|
|
3849
3989
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPreview>;
|
|
3850
3990
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPlan>;
|
|
@@ -3919,6 +4059,9 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3919
4059
|
constructor(context: ResolvedVaultContext);
|
|
3920
4060
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3921
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>;
|
|
3922
4065
|
getPositions(options?: ReadOptions): Promise<readonly BlackholePosition[]>;
|
|
3923
4066
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3924
4067
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3926,7 +4069,7 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3926
4069
|
prepareUnwrapNative(request: {
|
|
3927
4070
|
readonly account: Address;
|
|
3928
4071
|
readonly amount: bigint;
|
|
3929
|
-
}, options?: ReadOptions): Promise<
|
|
4072
|
+
}, options?: ReadOptions): Promise<NativeUnwrapPlan>;
|
|
3930
4073
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPreview>;
|
|
3931
4074
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPlan>;
|
|
3932
4075
|
}
|
|
@@ -4026,5 +4169,5 @@ declare const vaultConfigSchema: v.SchemaWithPipe<readonly [v.LooseObjectSchema<
|
|
|
4026
4169
|
/** Stored manifest. Each strategy, vault and connector owns its configuration schema. */
|
|
4027
4170
|
type VaultConfig = v.InferOutput<typeof vaultConfigSchema>;
|
|
4028
4171
|
//#endregion
|
|
4029
|
-
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 };
|
|
4030
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,12 +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",
|
|
279
|
+
SushiSwapV3Base = "sushiswap-v3-base",
|
|
280
|
+
SushiSwapV3Bsc = "sushiswap-v3-bsc",
|
|
281
|
+
UniswapV3Bsc = "uniswap-v3-bsc",
|
|
243
282
|
SushiSwapV3Polygon = "sushiswap-v3-polygon",
|
|
244
283
|
RetroV3Polygon = "retro-v3-polygon",
|
|
284
|
+
UniswapV3Optimism = "uniswap-v3-optimism",
|
|
285
|
+
UniswapV3Arbitrum = "uniswap-v3-arbitrum",
|
|
245
286
|
UniswapV3Polygon = "uniswap-v3-polygon",
|
|
246
287
|
QuickSwapV4Polygon = "quickswap-integral-polygon",
|
|
247
288
|
UniswapV3Base = "uniswap-v3-base",
|
|
@@ -406,6 +447,18 @@ export declare class QuickSwapIntegral extends AlgebraIntegralAdapter {
|
|
|
406
447
|
readonly protocol = AmmProtocol.QuickSwap;
|
|
407
448
|
readonly version = QuickSwapVersion.V4;
|
|
408
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
|
+
}
|
|
409
462
|
//#endregion
|
|
410
463
|
//#region src/amm/adapters/algebra-integral/data-adapter.d.ts
|
|
411
464
|
export declare class AlgebraIntegralDataAdapter extends PoolDataAdapter<AlgebraPoolReference> {
|
|
@@ -467,6 +520,14 @@ export declare class QuickSwap extends AlgebraLegacyAdapter {
|
|
|
467
520
|
readonly version = QuickSwapVersion.V3;
|
|
468
521
|
}
|
|
469
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
|
|
470
531
|
//#region src/amm/adapters/pancakeswap-infinity-cl/types.d.ts
|
|
471
532
|
interface InfinityCLPoolKey {
|
|
472
533
|
readonly currency0: Address;
|
|
@@ -680,7 +741,7 @@ export declare abstract class V4PoolDataAdapter extends PoolDataAdapter<V4PoolKe
|
|
|
680
741
|
/** Indexed references carry full keys; every onchain use still validates the configured manager. */
|
|
681
742
|
export declare class UniswapV4DataAdapter extends V4PoolDataAdapter {
|
|
682
743
|
#private;
|
|
683
|
-
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext);
|
|
744
|
+
constructor(definition: DataAdapterDefinition, manager: Address, context: ChainContext, positionManager?: Address);
|
|
684
745
|
listPools(request?: PoolListRequest, options?: DataAdapterRequestOptions): Promise<Page<V4PoolKey>>;
|
|
685
746
|
getPoolKey(id: Hex, options?: V4ReadOptions): Promise<V4PoolKey>;
|
|
686
747
|
}
|
|
@@ -709,6 +770,12 @@ export declare class V4PoolKeyNotFoundError extends Error {
|
|
|
709
770
|
constructor(message?: string);
|
|
710
771
|
}
|
|
711
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
|
|
712
779
|
//#region src/amm/adapters/pancakeswap-v3/adapter.d.ts
|
|
713
780
|
/** Pancake V3 uses the V3 family with a wider slot0 protocol-fee field. */
|
|
714
781
|
export declare class PancakeSwapV3 extends RpcUniswapV3Adapter {
|
|
@@ -722,6 +789,12 @@ export declare class RetroV3 extends RpcUniswapV3Adapter {
|
|
|
722
789
|
readonly version = RetroVersion.V3;
|
|
723
790
|
}
|
|
724
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
|
|
725
798
|
//#region src/amm/adapters/sushiswap-v3/adapter.d.ts
|
|
726
799
|
export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
727
800
|
readonly protocol = AmmProtocol.SushiSwap;
|
|
@@ -730,6 +803,40 @@ export declare class SushiSwapV3 extends RpcUniswapV3Adapter {
|
|
|
730
803
|
//#endregion
|
|
731
804
|
//#region src/amm/selection.d.ts
|
|
732
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
|
+
};
|
|
733
840
|
readonly aerodrome: {
|
|
734
841
|
readonly slipstream: {
|
|
735
842
|
readonly adapter: typeof AerodromeSlipstream;
|
|
@@ -801,7 +908,7 @@ declare const ammDefinitions: {
|
|
|
801
908
|
};
|
|
802
909
|
//#endregion
|
|
803
910
|
//#region src/amm/types.d.ts
|
|
804
|
-
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;
|
|
805
912
|
type AdapterFromDefinition<T> = T extends {
|
|
806
913
|
readonly adapter: abstract new (...args: never[]) => infer TAdapter;
|
|
807
914
|
} ? TAdapter : never;
|
|
@@ -3383,6 +3490,11 @@ export declare abstract class LiquidityVault<TAmm extends AmmAdapter = AmmAdapte
|
|
|
3383
3490
|
executeDataConnectors(context: SmartPoolExecutionContext, options?: IpfsRequestOptions): Promise<readonly unknown[]>;
|
|
3384
3491
|
/** Execute the registered WASM locally. Returns parsed output without submitting transactions. */
|
|
3385
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>;
|
|
3386
3498
|
/** Calculate the other token maximum at the vault's current deposit ratio. Does not swap. */
|
|
3387
3499
|
abstract quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3388
3500
|
abstract previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3520,6 +3632,25 @@ interface VaultRewardPayout {
|
|
|
3520
3632
|
readonly recipient: Address;
|
|
3521
3633
|
readonly amount: PoolTokenBalance;
|
|
3522
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
|
+
}
|
|
3523
3654
|
/** Reward paid to the shareholder during withdrawal. */
|
|
3524
3655
|
type WithdrawRewards = VaultRewardPayout;
|
|
3525
3656
|
/** Actual withdrawal simulation, including contract burn rounding and fee policy. */
|
|
@@ -3706,6 +3837,12 @@ interface VaultUserPosition<TPool extends LiquidityPool = LiquidityPool> {
|
|
|
3706
3837
|
readonly position: LiquidityVaultUserPosition<TPool>;
|
|
3707
3838
|
}
|
|
3708
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
|
+
}
|
|
3709
3846
|
//#endregion
|
|
3710
3847
|
//#region src/vault/data-adapter.d.ts
|
|
3711
3848
|
export declare abstract class SteerDataAdapter extends DataAdapter {
|
|
@@ -3835,16 +3972,19 @@ export declare abstract class AerodromeVault extends LiquidityVault<AerodromeSli
|
|
|
3835
3972
|
readonly amm: AerodromeSlipstreamAdapter;
|
|
3836
3973
|
readonly pool: Address;
|
|
3837
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>;
|
|
3838
3978
|
getPositions(options?: ReadOptions): Promise<readonly LiquidityPosition<`0x${string}`>[]>;
|
|
3839
3979
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3840
3980
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3841
3981
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<AerodromeDepositPreview>;
|
|
3842
3982
|
prepareDeposit(request: PrepareDepositRequest, options?: ReadOptions): Promise<Readonly<{
|
|
3843
3983
|
preview: AerodromeDepositPreview;
|
|
3984
|
+
transactions: readonly TransactionRequest[];
|
|
3844
3985
|
account: Address;
|
|
3845
3986
|
minimumAmounts: TokenPairAmounts;
|
|
3846
3987
|
chainId: number;
|
|
3847
|
-
transactions: readonly TransactionRequest[];
|
|
3848
3988
|
}>>;
|
|
3849
3989
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPreview>;
|
|
3850
3990
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<AerodromeWithdrawPlan>;
|
|
@@ -3919,6 +4059,9 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3919
4059
|
constructor(context: ResolvedVaultContext);
|
|
3920
4060
|
getShareBalance(account: Address, options?: ReadOptions): Promise<bigint>;
|
|
3921
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>;
|
|
3922
4065
|
getPositions(options?: ReadOptions): Promise<readonly BlackholePosition[]>;
|
|
3923
4066
|
quoteDeposit(input: AssetAmount, options?: ReadOptions): Promise<DepositQuote>;
|
|
3924
4067
|
previewDeposit(request: DepositRequest, options?: ReadOptions): Promise<LiquidityDepositPreview>;
|
|
@@ -3926,7 +4069,7 @@ export declare class BlackholeVault extends LiquidityVault<AlgebraIntegralAdapte
|
|
|
3926
4069
|
prepareUnwrapNative(request: {
|
|
3927
4070
|
readonly account: Address;
|
|
3928
4071
|
readonly amount: bigint;
|
|
3929
|
-
}, options?: ReadOptions): Promise<
|
|
4072
|
+
}, options?: ReadOptions): Promise<NativeUnwrapPlan>;
|
|
3930
4073
|
previewWithdraw(request: WithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPreview>;
|
|
3931
4074
|
prepareWithdraw(request: PrepareWithdrawRequest, options?: ReadOptions): Promise<BlackholeWithdrawPlan>;
|
|
3932
4075
|
}
|
|
@@ -4026,5 +4169,5 @@ declare const vaultConfigSchema: v.SchemaWithPipe<readonly [v.LooseObjectSchema<
|
|
|
4026
4169
|
/** Stored manifest. Each strategy, vault and connector owns its configuration schema. */
|
|
4027
4170
|
type VaultConfig = v.InferOutput<typeof vaultConfigSchema>;
|
|
4028
4171
|
//#endregion
|
|
4029
|
-
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 };
|
|
4030
4173
|
//# sourceMappingURL=index.d.mts.map
|