@whetstone-research/doppler-sdk 1.0.35 → 1.0.37
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 +39 -43
- package/dist/evm/index.cjs +1472 -1019
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +679 -280
- package/dist/evm/index.d.ts +679 -280
- package/dist/evm/index.js +1473 -1021
- package/dist/evm/index.js.map +1 -1
- package/dist/solana/index.cjs +10569 -3765
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +5474 -2179
- package/dist/solana/index.d.ts +5474 -2179
- package/dist/solana/index.js +10567 -3769
- package/dist/solana/index.js.map +1 -1
- package/package.json +2 -1
package/dist/evm/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Address, WalletClient, Hex, Hash, Account, PublicClient, TransactionReceipt } from 'viem';
|
|
2
|
-
import { mainnet, sepolia, base, baseSepolia, ink, unichain } from 'viem/chains';
|
|
2
|
+
import { mainnet, sepolia, arbitrum, base, baseSepolia, ink, unichain } from 'viem/chains';
|
|
3
3
|
|
|
4
4
|
declare const CHAIN_IDS: {
|
|
5
5
|
readonly MAINNET: 1;
|
|
6
6
|
readonly ETH_SEPOLIA: 11155111;
|
|
7
|
+
readonly ARBITRUM: 42161;
|
|
7
8
|
readonly BASE: 8453;
|
|
8
9
|
readonly BASE_SEPOLIA: 84532;
|
|
9
10
|
readonly INK: 57073;
|
|
@@ -78,7 +79,7 @@ declare const SUPPORTED_CHAIN_IDS: SupportedChainId[];
|
|
|
78
79
|
*/
|
|
79
80
|
declare function isSupportedChainId(id: number): id is SupportedChainId;
|
|
80
81
|
|
|
81
|
-
type SupportedChain = typeof mainnet | typeof sepolia | typeof base | typeof baseSepolia | typeof ink | typeof unichain;
|
|
82
|
+
type SupportedChain = typeof mainnet | typeof sepolia | typeof arbitrum | typeof base | typeof baseSepolia | typeof ink | typeof unichain;
|
|
82
83
|
type SupportedPublicClient = unknown;
|
|
83
84
|
interface StandardTokenConfig {
|
|
84
85
|
type: 'standard';
|
|
@@ -192,13 +193,13 @@ type VestingConfig = {
|
|
|
192
193
|
amounts?: never;
|
|
193
194
|
allocations: VestingAllocationConfig[];
|
|
194
195
|
};
|
|
195
|
-
declare const NO_OP_ENABLED_CHAIN_IDS: readonly [1, 11155111, 8453, 84532, 130, 1301, 4663, 10143, 143];
|
|
196
|
+
declare const NO_OP_ENABLED_CHAIN_IDS: readonly [1, 11155111, 42161, 8453, 84532, 130, 1301, 4663, 10143, 143];
|
|
196
197
|
type NoOpEnabledChainId = (typeof NO_OP_ENABLED_CHAIN_IDS)[number];
|
|
197
198
|
/**
|
|
198
199
|
* Check if a chain supports no-op governance
|
|
199
200
|
*/
|
|
200
201
|
declare function isNoOpEnabledChain(chainId: number): chainId is NoOpEnabledChainId;
|
|
201
|
-
declare const LAUNCHPAD_ENABLED_CHAIN_IDS: readonly [1, 8453, 84532, 4663, 143];
|
|
202
|
+
declare const LAUNCHPAD_ENABLED_CHAIN_IDS: readonly [1, 42161, 8453, 84532, 4663, 143];
|
|
202
203
|
type LaunchpadEnabledChainId = (typeof LAUNCHPAD_ENABLED_CHAIN_IDS)[number];
|
|
203
204
|
/**
|
|
204
205
|
* Check if a chain supports launchpad governance
|
|
@@ -678,18 +679,6 @@ interface V4PoolKey {
|
|
|
678
679
|
tickSpacing: number;
|
|
679
680
|
hooks: Address;
|
|
680
681
|
}
|
|
681
|
-
interface MulticurveBundleExactOutResult {
|
|
682
|
-
asset: Address;
|
|
683
|
-
poolKey: V4PoolKey;
|
|
684
|
-
amountIn: bigint;
|
|
685
|
-
gasEstimate: bigint;
|
|
686
|
-
}
|
|
687
|
-
interface MulticurveBundleExactInResult {
|
|
688
|
-
asset: Address;
|
|
689
|
-
poolKey: V4PoolKey;
|
|
690
|
-
amountOut: bigint;
|
|
691
|
-
gasEstimate: bigint;
|
|
692
|
-
}
|
|
693
682
|
interface RehypeFeeDistributionInfo {
|
|
694
683
|
assetFeesToAssetBuybackWad: bigint;
|
|
695
684
|
assetFeesToNumeraireBuybackWad: bigint;
|
|
@@ -739,15 +728,32 @@ type RehypeDopplerHookInitializerCommonConfig = {
|
|
|
739
728
|
farTick?: number;
|
|
740
729
|
};
|
|
741
730
|
type RehypeBuybackDestinationConfig = {
|
|
742
|
-
buybackDestination
|
|
731
|
+
buybackDestination?: Address;
|
|
743
732
|
feeBeneficiaries?: never;
|
|
744
733
|
feeRoutingMode?: RehypeFeeRoutingModeInput;
|
|
745
734
|
};
|
|
746
735
|
type RehypeFeeBeneficiariesConfig = {
|
|
747
|
-
buybackDestination?:
|
|
736
|
+
buybackDestination?: Address;
|
|
748
737
|
feeBeneficiaries: [BeneficiaryData, ...BeneficiaryData[]];
|
|
749
738
|
feeRoutingMode?: RehypeFeeRoutingMode.RouteToBeneficiaryFees | 'routeToBeneficiaryFees';
|
|
750
739
|
};
|
|
740
|
+
/**
|
|
741
|
+
* Rehype fee distribution controller requirements:
|
|
742
|
+
*
|
|
743
|
+
* `buybackDestination` is encoded as the hook's `buybackDst`: it is the only
|
|
744
|
+
* address authorized to call `setFeeDistribution` and also receives
|
|
745
|
+
* direct-buyback proceeds and legacy empty-beneficiary fees. Configured
|
|
746
|
+
* `feeBeneficiaries` control beneficiary fee recipients but do not grant that
|
|
747
|
+
* authority.
|
|
748
|
+
*
|
|
749
|
+
* Every Rehype configuration requires an explicit fee distribution controller.
|
|
750
|
+
* Direct factory callers must set `buybackDestination`. Builder callers may
|
|
751
|
+
* instead use `withFeeDistributionController`. These options configure the
|
|
752
|
+
* same on-chain field and cannot be used together.
|
|
753
|
+
*
|
|
754
|
+
* Governance configuration, governance factory results, fee beneficiaries,
|
|
755
|
+
* and LP reinvestment do not determine or provide the controller.
|
|
756
|
+
*/
|
|
751
757
|
type RehypeDopplerHookInitializerConfig = RehypeDopplerHookInitializerCommonConfig & (RehypeBuybackDestinationConfig | RehypeFeeBeneficiariesConfig);
|
|
752
758
|
/** @deprecated Use RehypeDopplerHookInitializerConfig instead. */
|
|
753
759
|
type RehypeDopplerHookConfig = RehypeDopplerHookInitializerConfig;
|
|
@@ -777,6 +783,23 @@ type MulticurveInitializerConfig = {
|
|
|
777
783
|
type: 'rehype';
|
|
778
784
|
config: RehypeDopplerHookInitializerConfig;
|
|
779
785
|
};
|
|
786
|
+
/**
|
|
787
|
+
* Bundler custody schedule for a multicurve dev buy.
|
|
788
|
+
*
|
|
789
|
+
* Durations are seconds. A permissionless claim changes who may trigger the
|
|
790
|
+
* claim, never the recipient.
|
|
791
|
+
*/
|
|
792
|
+
interface MulticurveDevBuyVestingConfig {
|
|
793
|
+
permissionlessClaim: boolean;
|
|
794
|
+
vestingDuration: bigint;
|
|
795
|
+
cliffDuration: bigint;
|
|
796
|
+
}
|
|
797
|
+
/** Exact-input purchase executed atomically with multicurve market creation. */
|
|
798
|
+
interface MulticurveDevBuyConfig {
|
|
799
|
+
exactAmountIn: bigint;
|
|
800
|
+
recipient: Address;
|
|
801
|
+
vesting: MulticurveDevBuyVestingConfig;
|
|
802
|
+
}
|
|
780
803
|
interface CreateMulticurveParams<C extends SupportedChainId = SupportedChainId> {
|
|
781
804
|
token: TokenConfig;
|
|
782
805
|
sale: SaleConfig;
|
|
@@ -800,6 +823,8 @@ interface CreateMulticurveParams<C extends SupportedChainId = SupportedChainId>
|
|
|
800
823
|
*/
|
|
801
824
|
dopplerHook?: RehypeDopplerHookConfig;
|
|
802
825
|
vesting?: VestingConfig;
|
|
826
|
+
/** Optional exact-input purchase executed atomically through Bundler. */
|
|
827
|
+
devBuy?: MulticurveDevBuyConfig;
|
|
803
828
|
governance: GovernanceOption<C>;
|
|
804
829
|
migration: MigrationConfig;
|
|
805
830
|
integrator?: Address;
|
|
@@ -837,26 +862,55 @@ interface MulticurveCreatePrediction {
|
|
|
837
862
|
poolOrHookAddress: Address;
|
|
838
863
|
governanceAddress: Address;
|
|
839
864
|
timelockAddress: Address;
|
|
840
|
-
migrationPoolAddress
|
|
865
|
+
migrationPoolAddress?: Address;
|
|
841
866
|
poolKey: V4PoolKey;
|
|
842
867
|
poolId: Hex;
|
|
843
868
|
tokenIsCurrency0: boolean;
|
|
844
869
|
}
|
|
870
|
+
interface PreparedMulticurveTransaction {
|
|
871
|
+
to: Address;
|
|
872
|
+
data: Hex;
|
|
873
|
+
value: bigint;
|
|
874
|
+
}
|
|
875
|
+
/** Dev-buy details returned by preparation and contract simulation. */
|
|
876
|
+
interface PreparedMulticurveDevBuy extends MulticurveDevBuyConfig {
|
|
877
|
+
bundler: Address;
|
|
878
|
+
simulatedAmountOut: bigint;
|
|
879
|
+
}
|
|
845
880
|
interface PreparedMulticurveCreate<C extends SupportedChainId = SupportedChainId> {
|
|
846
881
|
chainId: C;
|
|
847
882
|
account: Address;
|
|
848
883
|
airlock: Address;
|
|
849
884
|
createParams: CreateParams;
|
|
850
885
|
prediction: MulticurveCreatePrediction;
|
|
851
|
-
transaction:
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
value: 0n;
|
|
855
|
-
};
|
|
886
|
+
transaction: PreparedMulticurveTransaction;
|
|
887
|
+
approvalTransaction?: PreparedMulticurveTransaction;
|
|
888
|
+
devBuy?: PreparedMulticurveDevBuy;
|
|
856
889
|
gasEstimate: MulticurveCreateGasEstimate;
|
|
857
890
|
}
|
|
891
|
+
interface SimulatedMulticurveCreate<_C extends SupportedChainId = SupportedChainId> {
|
|
892
|
+
createParams: CreateParams;
|
|
893
|
+
tokenAddress: Address;
|
|
894
|
+
poolId: Hex;
|
|
895
|
+
gasEstimate?: bigint;
|
|
896
|
+
devBuy?: PreparedMulticurveDevBuy;
|
|
897
|
+
execute: () => Promise<MulticurveCreateResult>;
|
|
898
|
+
}
|
|
899
|
+
/** Dev-buy details verified from the executed Bundler receipt. */
|
|
900
|
+
interface MulticurveDevBuyResult extends MulticurveDevBuyConfig {
|
|
901
|
+
bundler: Address;
|
|
902
|
+
amountOut: bigint;
|
|
903
|
+
}
|
|
904
|
+
interface MulticurveCreateResult {
|
|
905
|
+
tokenAddress: Address;
|
|
906
|
+
poolId: Hex;
|
|
907
|
+
transactionHash: Hash;
|
|
908
|
+
approvalTransactionHash?: Hash;
|
|
909
|
+
devBuy?: MulticurveDevBuyResult;
|
|
910
|
+
}
|
|
858
911
|
interface ModuleAddressOverrides {
|
|
859
912
|
airlock?: Address;
|
|
913
|
+
bundler?: Address;
|
|
860
914
|
tokenFactory?: Address;
|
|
861
915
|
dopplerERC20V1Factory?: Address;
|
|
862
916
|
v3Initializer?: Address;
|
|
@@ -891,7 +945,6 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
891
945
|
private walletClient?;
|
|
892
946
|
private chainId;
|
|
893
947
|
private customMigrationEncoder?;
|
|
894
|
-
private multicurveBundlerSupport;
|
|
895
948
|
constructor(publicClient: SupportedPublicClient, walletClient: WalletClient | undefined, chainId: C);
|
|
896
949
|
private hasCustomV2Schedules;
|
|
897
950
|
private usesDerc20V2Vesting;
|
|
@@ -934,7 +987,6 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
934
987
|
encodeCreateStaticAuctionParams(params: CreateStaticAuctionParams<C>): Promise<CreateParams>;
|
|
935
988
|
/**
|
|
936
989
|
* Simulate a static auction creation and return predicted addresses.
|
|
937
|
-
* Useful for pre-buy flows (bundle) to know the token/pool before sending.
|
|
938
990
|
*/
|
|
939
991
|
simulateCreateStaticAuction(params: CreateStaticAuctionParams<C>): Promise<{
|
|
940
992
|
createParams: CreateParams;
|
|
@@ -1098,27 +1150,18 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1098
1150
|
private validateProceedsSplitConfig;
|
|
1099
1151
|
private resolveMulticurveInitializerMode;
|
|
1100
1152
|
encodeCreateMulticurveParams(params: CreateMulticurveParams<C>): CreateParams;
|
|
1153
|
+
private resolveBundlerAddress;
|
|
1154
|
+
private ensureDevBuyInitializerCompatibility;
|
|
1155
|
+
private parseBundleSimulation;
|
|
1101
1156
|
private resolveFinalMulticurveCreate;
|
|
1157
|
+
private buildDevBuyTransaction;
|
|
1158
|
+
private readDevBuyAllowance;
|
|
1159
|
+
private estimateDevBuyGas;
|
|
1102
1160
|
prepareCreateMulticurve(params: CreateMulticurveParams<C>, options: PrepareCreateMulticurveOptions): Promise<PreparedMulticurveCreate<C>>;
|
|
1103
|
-
simulateCreateMulticurve(params: CreateMulticurveParams<C>): Promise<
|
|
1104
|
-
createParams: CreateParams;
|
|
1105
|
-
tokenAddress: Address;
|
|
1106
|
-
poolId: Hex;
|
|
1107
|
-
gasEstimate?: bigint;
|
|
1108
|
-
/** Execute the create with the same params used in simulation (guarantees address match) */
|
|
1109
|
-
execute: () => Promise<{
|
|
1110
|
-
tokenAddress: Address;
|
|
1111
|
-
poolId: Hex;
|
|
1112
|
-
transactionHash: string;
|
|
1113
|
-
}>;
|
|
1114
|
-
}>;
|
|
1161
|
+
simulateCreateMulticurve(params: CreateMulticurveParams<C>): Promise<SimulatedMulticurveCreate<C>>;
|
|
1115
1162
|
createMulticurve(params: CreateMulticurveParams<C>, options?: {
|
|
1116
1163
|
_createParams?: CreateParams;
|
|
1117
|
-
}): Promise<
|
|
1118
|
-
tokenAddress: Address;
|
|
1119
|
-
poolId: Hex;
|
|
1120
|
-
transactionHash: string;
|
|
1121
|
-
}>;
|
|
1164
|
+
}): Promise<MulticurveCreateResult>;
|
|
1122
1165
|
/**
|
|
1123
1166
|
* Normalize user-provided multicurve positions and ensure they satisfy SDK constraints
|
|
1124
1167
|
*/
|
|
@@ -1131,59 +1174,17 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1131
1174
|
*/
|
|
1132
1175
|
private validateDynamicAuctionParams;
|
|
1133
1176
|
private validateOpeningAuctionParams;
|
|
1177
|
+
private validateMulticurveDevBuy;
|
|
1134
1178
|
/**
|
|
1135
1179
|
* Validate multicurve auction parameters
|
|
1136
1180
|
*/
|
|
1137
1181
|
private validateMulticurveParams;
|
|
1138
|
-
/**
|
|
1139
|
-
* Get the Bundler contract address for the current chain
|
|
1140
|
-
* Used to perform atomic create + swap ("bundle") flows for static auctions
|
|
1141
|
-
*/
|
|
1142
|
-
private getBundlerAddress;
|
|
1143
1182
|
/**
|
|
1144
1183
|
* Get the appropriate migrator address based on migration config
|
|
1145
1184
|
* Allows override via ModuleAddressOverrides when provided in params.
|
|
1146
1185
|
*/
|
|
1147
1186
|
private resolveUniswapV2Migrator;
|
|
1148
1187
|
private getMigratorAddress;
|
|
1149
|
-
/**
|
|
1150
|
-
* Simulate a bundle with exact input on Uniswap V3 as part of create
|
|
1151
|
-
* Returns the expected output amount for the provided exact input.
|
|
1152
|
-
*/
|
|
1153
|
-
simulateBundleExactInput(createParams: CreateParams, params: {
|
|
1154
|
-
tokenIn: Address;
|
|
1155
|
-
tokenOut: Address;
|
|
1156
|
-
amountIn: bigint;
|
|
1157
|
-
fee: number;
|
|
1158
|
-
sqrtPriceLimitX96: bigint;
|
|
1159
|
-
}): Promise<bigint>;
|
|
1160
|
-
/**
|
|
1161
|
-
* Simulate a bundle with exact output on Uniswap V3 as part of create
|
|
1162
|
-
* Returns the required input amount for the provided exact output.
|
|
1163
|
-
*/
|
|
1164
|
-
simulateBundleExactOutput(createParams: CreateParams, params: {
|
|
1165
|
-
tokenIn: Address;
|
|
1166
|
-
tokenOut: Address;
|
|
1167
|
-
amount: bigint;
|
|
1168
|
-
fee: number;
|
|
1169
|
-
sqrtPriceLimitX96: bigint;
|
|
1170
|
-
}): Promise<bigint>;
|
|
1171
|
-
simulateMulticurveBundleExactOut(createParams: CreateParams, params?: {
|
|
1172
|
-
exactAmountOut?: bigint;
|
|
1173
|
-
}): Promise<MulticurveBundleExactOutResult>;
|
|
1174
|
-
simulateMulticurveBundleExactIn(createParams: CreateParams, params: {
|
|
1175
|
-
exactAmountIn: bigint;
|
|
1176
|
-
}): Promise<MulticurveBundleExactInResult>;
|
|
1177
|
-
/**
|
|
1178
|
-
* Execute an atomic create + swap bundle through the Bundler
|
|
1179
|
-
* commands/inputs are Universal Router encoded values (e.g., from doppler-router)
|
|
1180
|
-
*/
|
|
1181
|
-
bundle(createParams: CreateParams, commands: Hex, inputs: Hex[], options?: {
|
|
1182
|
-
gas?: bigint;
|
|
1183
|
-
value?: bigint;
|
|
1184
|
-
}): Promise<Hash>;
|
|
1185
|
-
private ensureUint128;
|
|
1186
|
-
private parseMulticurveBundleResult;
|
|
1187
1188
|
private normalizePoolKey;
|
|
1188
1189
|
/**
|
|
1189
1190
|
* Mines a salt and hook address with the appropriate flags
|
|
@@ -1236,7 +1237,6 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1236
1237
|
* fields the initializer will register on-chain.
|
|
1237
1238
|
*/
|
|
1238
1239
|
private computeMulticurvePoolIdentity;
|
|
1239
|
-
private ensureMulticurveBundlerSupport;
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
1242
|
/**
|
|
@@ -1499,7 +1499,9 @@ declare class RehypeDopplerHookInitializer {
|
|
|
1499
1499
|
* The fee amounts are newly collected pool fees, not necessarily the caller's
|
|
1500
1500
|
* beneficiary payout.
|
|
1501
1501
|
*/
|
|
1502
|
-
claimFees(poolId: Hex
|
|
1502
|
+
claimFees(poolId: Hex, options?: {
|
|
1503
|
+
gas?: bigint;
|
|
1504
|
+
}): Promise<{
|
|
1503
1505
|
fees0: bigint;
|
|
1504
1506
|
fees1: bigint;
|
|
1505
1507
|
transactionHash: Hash;
|
|
@@ -1513,6 +1515,18 @@ declare class RehypeDopplerHookInitializer {
|
|
|
1513
1515
|
fees1: bigint;
|
|
1514
1516
|
transactionHash: Hash;
|
|
1515
1517
|
}>;
|
|
1518
|
+
/**
|
|
1519
|
+
* Replace a pool's complete fee distribution matrix.
|
|
1520
|
+
*
|
|
1521
|
+
* The connected wallet must be the pool's configured fee distribution
|
|
1522
|
+
* controller (`buybackDst`). The asset-fee allocations and numeraire-fee
|
|
1523
|
+
* allocations must each sum to WAD.
|
|
1524
|
+
*
|
|
1525
|
+
* @returns The confirmed transaction hash.
|
|
1526
|
+
*/
|
|
1527
|
+
setFeeDistribution(poolId: Hex, feeDistributionInfo: RehypeFeeDistributionInfo): Promise<{
|
|
1528
|
+
transactionHash: Hash;
|
|
1529
|
+
}>;
|
|
1516
1530
|
getFeeDistributionInfo(poolId: Hex): Promise<RehypeFeeDistributionInfo>;
|
|
1517
1531
|
getFeeRoutingMode(poolId: Hex): Promise<number>;
|
|
1518
1532
|
getFeeSchedule(poolId: Hex): Promise<RehypeFeeSchedule>;
|
|
@@ -2736,6 +2750,88 @@ declare class TopUpDistributor {
|
|
|
2736
2750
|
}): Promise<Hash>;
|
|
2737
2751
|
}
|
|
2738
2752
|
|
|
2753
|
+
/**
|
|
2754
|
+
* A token position held by Bundler for linear vesting.
|
|
2755
|
+
*
|
|
2756
|
+
* All timestamps and durations are expressed in seconds. Claims always pay the
|
|
2757
|
+
* recorded `recipient`; `permissionlessClaim` only controls who may trigger
|
|
2758
|
+
* the claim.
|
|
2759
|
+
*/
|
|
2760
|
+
interface BundlerVestingPosition {
|
|
2761
|
+
recipient: Address;
|
|
2762
|
+
permissionlessClaim: boolean;
|
|
2763
|
+
start: bigint;
|
|
2764
|
+
cliffDuration: bigint;
|
|
2765
|
+
vestingDuration: bigint;
|
|
2766
|
+
totalAmount: bigint;
|
|
2767
|
+
claimedAmount: bigint;
|
|
2768
|
+
}
|
|
2769
|
+
/** Result of simulating a Bundler vesting claim. */
|
|
2770
|
+
interface BundlerClaimSimulation {
|
|
2771
|
+
amount: bigint;
|
|
2772
|
+
request: Parameters<WalletClient['writeContract']>[0];
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Client for reading and claiming token positions held by a Bundler contract.
|
|
2776
|
+
*/
|
|
2777
|
+
declare class Bundler {
|
|
2778
|
+
private publicClient;
|
|
2779
|
+
private walletClient?;
|
|
2780
|
+
private bundlerAddress;
|
|
2781
|
+
constructor(publicClient: SupportedPublicClient, walletClient: WalletClient | undefined, bundlerAddress: Address);
|
|
2782
|
+
private get rpc();
|
|
2783
|
+
/** Returns the Bundler contract address used by this client. */
|
|
2784
|
+
getAddress(): Address;
|
|
2785
|
+
/**
|
|
2786
|
+
* Reads the vesting position for an asset.
|
|
2787
|
+
*
|
|
2788
|
+
* @param asset Token whose Bundler position should be read.
|
|
2789
|
+
*/
|
|
2790
|
+
getVesting(asset: Address): Promise<BundlerVestingPosition>;
|
|
2791
|
+
/**
|
|
2792
|
+
* Returns the amount currently claimable for an asset.
|
|
2793
|
+
*
|
|
2794
|
+
* @param asset Token whose claimable amount should be read.
|
|
2795
|
+
*/
|
|
2796
|
+
getClaimable(asset: Address): Promise<bigint>;
|
|
2797
|
+
/**
|
|
2798
|
+
* Simulates a claim and returns both the claimable amount and write request.
|
|
2799
|
+
*
|
|
2800
|
+
* The caller defaults to the configured wallet account. Pass `account` when
|
|
2801
|
+
* using a read-only SDK instance. For restricted positions, the caller must
|
|
2802
|
+
* be the recorded recipient.
|
|
2803
|
+
*
|
|
2804
|
+
* @param asset Token to claim.
|
|
2805
|
+
* @param account Account that will trigger the claim.
|
|
2806
|
+
*/
|
|
2807
|
+
simulateClaim(asset: Address, account?: Address | Account): Promise<BundlerClaimSimulation>;
|
|
2808
|
+
/**
|
|
2809
|
+
* Claims the currently vested amount to the position's recorded recipient.
|
|
2810
|
+
*
|
|
2811
|
+
* Requires a configured wallet client. Permissionless callers may trigger a
|
|
2812
|
+
* claim but cannot redirect its proceeds.
|
|
2813
|
+
*
|
|
2814
|
+
* @param asset Token to claim.
|
|
2815
|
+
* @param options Optional transaction gas override.
|
|
2816
|
+
* @returns Submitted transaction hash.
|
|
2817
|
+
*/
|
|
2818
|
+
claim(asset: Address, options?: {
|
|
2819
|
+
gas?: bigint;
|
|
2820
|
+
}): Promise<Hash>;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
/** Optional Bundler custody schedule for a builder-configured dev buy. */
|
|
2824
|
+
type BuilderDevBuyVestingInput = {
|
|
2825
|
+
permissionlessClaim?: boolean;
|
|
2826
|
+
vestingDuration: bigint;
|
|
2827
|
+
cliffDuration?: bigint;
|
|
2828
|
+
};
|
|
2829
|
+
/** Builder input for an exact-input multicurve dev buy. */
|
|
2830
|
+
type BuilderDevBuyInput = {
|
|
2831
|
+
exactAmountIn: bigint;
|
|
2832
|
+
recipient: Address;
|
|
2833
|
+
vesting?: BuilderDevBuyVestingInput;
|
|
2834
|
+
};
|
|
2739
2835
|
type BuilderVestingScheduleInput = {
|
|
2740
2836
|
duration?: bigint;
|
|
2741
2837
|
cliffDuration?: number;
|
|
@@ -3063,6 +3159,7 @@ declare class MulticurveBuilder<C extends SupportedChainId> implements BaseAucti
|
|
|
3063
3159
|
private schedule?;
|
|
3064
3160
|
private dopplerHook?;
|
|
3065
3161
|
private vesting?;
|
|
3162
|
+
private devBuy?;
|
|
3066
3163
|
private governance?;
|
|
3067
3164
|
private migration?;
|
|
3068
3165
|
private integrator?;
|
|
@@ -3070,6 +3167,7 @@ declare class MulticurveBuilder<C extends SupportedChainId> implements BaseAucti
|
|
|
3070
3167
|
private salt?;
|
|
3071
3168
|
private moduleAddresses?;
|
|
3072
3169
|
private gasLimit?;
|
|
3170
|
+
private feeDistributionControllerAddress?;
|
|
3073
3171
|
private numerairePrice?;
|
|
3074
3172
|
private tokenDecimals?;
|
|
3075
3173
|
private numeraireDecimals?;
|
|
@@ -3189,6 +3287,15 @@ declare class MulticurveBuilder<C extends SupportedChainId> implements BaseAucti
|
|
|
3189
3287
|
/** @deprecated Use withRehypeDopplerHookInitializer instead. */
|
|
3190
3288
|
withRehypeDopplerHook(params: RehypeDopplerHookConfig): this;
|
|
3191
3289
|
withVesting(params?: BuilderVestingInput): this;
|
|
3290
|
+
/**
|
|
3291
|
+
* Configures an exact-input purchase executed atomically with market creation.
|
|
3292
|
+
*
|
|
3293
|
+
* Omit `vesting` for direct delivery to `recipient`; when present, Bundler
|
|
3294
|
+
* holds the output and releases it under that schedule. This is independent
|
|
3295
|
+
* from `withVesting`, which configures token allocation vesting. Passing
|
|
3296
|
+
* `undefined` clears the dev buy.
|
|
3297
|
+
*/
|
|
3298
|
+
withDevBuy(params?: BuilderDevBuyInput): this;
|
|
3192
3299
|
private parseStartTimeSeconds;
|
|
3193
3300
|
private assertCanSetInitializer;
|
|
3194
3301
|
/**
|
|
@@ -3207,6 +3314,16 @@ declare class MulticurveBuilder<C extends SupportedChainId> implements BaseAucti
|
|
|
3207
3314
|
startTime: number | bigint | Date;
|
|
3208
3315
|
}): this;
|
|
3209
3316
|
withGovernance(params: GovernanceOption<C>): this;
|
|
3317
|
+
/**
|
|
3318
|
+
* Configure the address authorized to update a Rehype pool's fee
|
|
3319
|
+
* distribution matrix.
|
|
3320
|
+
*
|
|
3321
|
+
* This sets the on-chain `buybackDst`, which also receives direct-buyback
|
|
3322
|
+
* proceeds and legacy empty-beneficiary fees. Every Rehype initializer
|
|
3323
|
+
* requires either this method or `buybackDestination`; they configure the
|
|
3324
|
+
* same field and cannot be used together.
|
|
3325
|
+
*/
|
|
3326
|
+
withFeeDistributionController(address: Address): this;
|
|
3210
3327
|
withMigration(migration: MigrationConfig): this;
|
|
3211
3328
|
withUserAddress(address: Address): this;
|
|
3212
3329
|
withIntegrator(address?: Address): this;
|
|
@@ -3215,6 +3332,7 @@ declare class MulticurveBuilder<C extends SupportedChainId> implements BaseAucti
|
|
|
3215
3332
|
private overrideModule;
|
|
3216
3333
|
withTokenFactory(address: Address): this;
|
|
3217
3334
|
withAirlock(address: Address): this;
|
|
3335
|
+
withBundler(address: Address): this;
|
|
3218
3336
|
withV4MulticurveInitializer(address: Address): this;
|
|
3219
3337
|
withV4ScheduledMulticurveInitializer(address: Address): this;
|
|
3220
3338
|
withV4DecayMulticurveInitializer(address: Address): this;
|
|
@@ -3348,6 +3466,7 @@ declare class DopplerSDK<C extends SupportedChainId = SupportedChainId> {
|
|
|
3348
3466
|
private _factory?;
|
|
3349
3467
|
private _quoter?;
|
|
3350
3468
|
private _topUpDistributor?;
|
|
3469
|
+
private _bundler?;
|
|
3351
3470
|
constructor(config: DopplerSDKConfig);
|
|
3352
3471
|
/**
|
|
3353
3472
|
* Get the factory instance for creating auctions
|
|
@@ -3365,6 +3484,21 @@ declare class DopplerSDK<C extends SupportedChainId = SupportedChainId> {
|
|
|
3365
3484
|
* Get a TopUpDistributor instance using the chain default or an explicit override.
|
|
3366
3485
|
*/
|
|
3367
3486
|
getTopUpDistributor(topUpDistributorAddress?: Address): TopUpDistributor;
|
|
3487
|
+
/**
|
|
3488
|
+
* Gets the Bundler client configured for this chain.
|
|
3489
|
+
*
|
|
3490
|
+
* Throws when the chain has no Bundler deployment. Use `getBundler(address)`
|
|
3491
|
+
* for custom deployments.
|
|
3492
|
+
*/
|
|
3493
|
+
get bundler(): Bundler;
|
|
3494
|
+
/**
|
|
3495
|
+
* Creates a Bundler client using the chain default or an explicit address.
|
|
3496
|
+
*
|
|
3497
|
+
* Read methods work without a wallet client; claims require one.
|
|
3498
|
+
*
|
|
3499
|
+
* @param bundlerAddress Optional custom Bundler deployment.
|
|
3500
|
+
*/
|
|
3501
|
+
getBundler(bundlerAddress?: Address): Bundler;
|
|
3368
3502
|
/**
|
|
3369
3503
|
* Get a StaticAuction instance for interacting with a static auction pool
|
|
3370
3504
|
* @param poolAddress The address of the Uniswap V3 pool
|
|
@@ -3931,12 +4065,17 @@ type NormalizedBuybackConfig = NormalizedCommonConfig & {
|
|
|
3931
4065
|
feeRoutingMode: RehypeFeeRoutingMode;
|
|
3932
4066
|
};
|
|
3933
4067
|
type NormalizedBeneficiaryConfig = NormalizedCommonConfig & {
|
|
3934
|
-
buybackDestination
|
|
4068
|
+
buybackDestination: Address;
|
|
3935
4069
|
feeBeneficiaries: [BeneficiaryData, ...BeneficiaryData[]];
|
|
3936
4070
|
feeRoutingMode: RehypeFeeRoutingMode.RouteToBeneficiaryFees;
|
|
3937
4071
|
};
|
|
3938
4072
|
type NormalizedRehypeDopplerHookInitializerConfig = NormalizedBuybackConfig | NormalizedBeneficiaryConfig;
|
|
3939
|
-
|
|
4073
|
+
/**
|
|
4074
|
+
* Normalize a Rehype configuration after its fee distribution controller has
|
|
4075
|
+
* been configured. `buybackDestination` and `controllerOverride` configure the
|
|
4076
|
+
* same on-chain `buybackDst` field and cannot be used together.
|
|
4077
|
+
*/
|
|
4078
|
+
declare function normalizeRehypeDopplerHookInitializerConfig(config: RehypeDopplerHookInitializerConfig, controllerOverride?: Address): NormalizedRehypeDopplerHookInitializerConfig;
|
|
3940
4079
|
|
|
3941
4080
|
declare function encodeRehypeDopplerHookInitializerData(numeraire: Address, config: NormalizedRehypeDopplerHookInitializerConfig): Hex;
|
|
3942
4081
|
|
|
@@ -3959,7 +4098,7 @@ interface AirlockCreateResult {
|
|
|
3959
4098
|
blockNumber: bigint;
|
|
3960
4099
|
logIndex: number;
|
|
3961
4100
|
}
|
|
3962
|
-
type AirlockCreateReceiptErrorCode = 'RECEIPT_FAILED' | 'WRONG_TRANSACTION_TARGET' | 'WRONG_TRANSACTION_SENDER' | 'MISSING_CREATE_EVENT' | 'MULTIPLE_CREATE_EVENTS' | 'TOKEN_MISMATCH' | 'NUMERAIRE_MISMATCH' | 'INITIALIZER_MISMATCH' | 'POOL_OR_HOOK_MISMATCH' | 'TRANSACTION_HASH_MISMATCH' | 'TRANSACTION_INPUT_MISMATCH' | 'TRANSACTION_VALUE_MISMATCH';
|
|
4101
|
+
type AirlockCreateReceiptErrorCode = 'RECEIPT_FAILED' | 'WRONG_TRANSACTION_TARGET' | 'WRONG_TRANSACTION_SENDER' | 'MISSING_CREATE_EVENT' | 'MULTIPLE_CREATE_EVENTS' | 'TOKEN_MISMATCH' | 'NUMERAIRE_MISMATCH' | 'INITIALIZER_MISMATCH' | 'POOL_OR_HOOK_MISMATCH' | 'TRANSACTION_HASH_MISMATCH' | 'TRANSACTION_INPUT_MISMATCH' | 'TRANSACTION_VALUE_MISMATCH' | 'MISSING_BUNDLED_EVENT' | 'MULTIPLE_BUNDLED_EVENTS' | 'BUNDLED_RECIPIENT_MISMATCH' | 'BUNDLED_INPUT_MISMATCH' | 'BUNDLED_POOL_KEY_MISMATCH' | 'MISSING_VESTING_EVENT' | 'MULTIPLE_VESTING_EVENTS' | 'UNEXPECTED_VESTING_EVENT' | 'VESTING_MISMATCH';
|
|
3963
4102
|
declare class AirlockCreateReceiptError extends Error {
|
|
3964
4103
|
readonly code: AirlockCreateReceiptErrorCode;
|
|
3965
4104
|
readonly expected?: string | number;
|
|
@@ -3976,14 +4115,18 @@ interface PreparedMulticurveIdentity<C extends SupportedChainId = SupportedChain
|
|
|
3976
4115
|
poolOrHookAddress: Address;
|
|
3977
4116
|
governanceAddress: Address;
|
|
3978
4117
|
timelockAddress: Address;
|
|
3979
|
-
migrationPoolAddress
|
|
4118
|
+
migrationPoolAddress?: Address;
|
|
3980
4119
|
poolKey: V4PoolKey;
|
|
3981
4120
|
poolId: Hash;
|
|
3982
4121
|
tokenIsCurrency0: boolean;
|
|
3983
4122
|
}
|
|
4123
|
+
interface VerifiedMulticurveDevBuy {
|
|
4124
|
+
amountOut: bigint;
|
|
4125
|
+
}
|
|
3984
4126
|
interface VerifiedMulticurveCreate<C extends SupportedChainId = SupportedChainId> {
|
|
3985
4127
|
receiptIdentity: AirlockCreateResult;
|
|
3986
4128
|
preparedIdentity: PreparedMulticurveIdentity<C>;
|
|
4129
|
+
devBuy?: VerifiedMulticurveDevBuy;
|
|
3987
4130
|
}
|
|
3988
4131
|
type PreparedCreateTransactionClient = {
|
|
3989
4132
|
getTransaction(parameters: {
|
|
@@ -10439,6 +10582,92 @@ declare const dopplerLensAbi: readonly [{
|
|
|
10439
10582
|
readonly stateMutability: "nonpayable";
|
|
10440
10583
|
}];
|
|
10441
10584
|
declare const bundlerAbi: readonly [{
|
|
10585
|
+
readonly type: "function";
|
|
10586
|
+
readonly name: "airlock";
|
|
10587
|
+
readonly inputs: readonly [];
|
|
10588
|
+
readonly outputs: readonly [{
|
|
10589
|
+
readonly name: "";
|
|
10590
|
+
readonly type: "address";
|
|
10591
|
+
readonly internalType: "contract Airlock";
|
|
10592
|
+
}];
|
|
10593
|
+
readonly stateMutability: "view";
|
|
10594
|
+
}, {
|
|
10595
|
+
readonly type: "function";
|
|
10596
|
+
readonly name: "poolManager";
|
|
10597
|
+
readonly inputs: readonly [];
|
|
10598
|
+
readonly outputs: readonly [{
|
|
10599
|
+
readonly name: "";
|
|
10600
|
+
readonly type: "address";
|
|
10601
|
+
readonly internalType: "contract IPoolManager";
|
|
10602
|
+
}];
|
|
10603
|
+
readonly stateMutability: "view";
|
|
10604
|
+
}, {
|
|
10605
|
+
readonly type: "function";
|
|
10606
|
+
readonly name: "vestingOf";
|
|
10607
|
+
readonly inputs: readonly [{
|
|
10608
|
+
readonly name: "asset";
|
|
10609
|
+
readonly type: "address";
|
|
10610
|
+
readonly internalType: "address";
|
|
10611
|
+
}];
|
|
10612
|
+
readonly outputs: readonly [{
|
|
10613
|
+
readonly name: "recipient";
|
|
10614
|
+
readonly type: "address";
|
|
10615
|
+
readonly internalType: "address";
|
|
10616
|
+
}, {
|
|
10617
|
+
readonly name: "permissionlessClaim";
|
|
10618
|
+
readonly type: "bool";
|
|
10619
|
+
readonly internalType: "bool";
|
|
10620
|
+
}, {
|
|
10621
|
+
readonly name: "start";
|
|
10622
|
+
readonly type: "uint64";
|
|
10623
|
+
readonly internalType: "uint64";
|
|
10624
|
+
}, {
|
|
10625
|
+
readonly name: "cliffDuration";
|
|
10626
|
+
readonly type: "uint64";
|
|
10627
|
+
readonly internalType: "uint64";
|
|
10628
|
+
}, {
|
|
10629
|
+
readonly name: "vestingDuration";
|
|
10630
|
+
readonly type: "uint64";
|
|
10631
|
+
readonly internalType: "uint64";
|
|
10632
|
+
}, {
|
|
10633
|
+
readonly name: "totalAmount";
|
|
10634
|
+
readonly type: "uint128";
|
|
10635
|
+
readonly internalType: "uint128";
|
|
10636
|
+
}, {
|
|
10637
|
+
readonly name: "claimedAmount";
|
|
10638
|
+
readonly type: "uint128";
|
|
10639
|
+
readonly internalType: "uint128";
|
|
10640
|
+
}];
|
|
10641
|
+
readonly stateMutability: "view";
|
|
10642
|
+
}, {
|
|
10643
|
+
readonly type: "function";
|
|
10644
|
+
readonly name: "claimable";
|
|
10645
|
+
readonly inputs: readonly [{
|
|
10646
|
+
readonly name: "asset";
|
|
10647
|
+
readonly type: "address";
|
|
10648
|
+
readonly internalType: "address";
|
|
10649
|
+
}];
|
|
10650
|
+
readonly outputs: readonly [{
|
|
10651
|
+
readonly name: "amount";
|
|
10652
|
+
readonly type: "uint256";
|
|
10653
|
+
readonly internalType: "uint256";
|
|
10654
|
+
}];
|
|
10655
|
+
readonly stateMutability: "view";
|
|
10656
|
+
}, {
|
|
10657
|
+
readonly type: "function";
|
|
10658
|
+
readonly name: "claim";
|
|
10659
|
+
readonly inputs: readonly [{
|
|
10660
|
+
readonly name: "asset";
|
|
10661
|
+
readonly type: "address";
|
|
10662
|
+
readonly internalType: "address";
|
|
10663
|
+
}];
|
|
10664
|
+
readonly outputs: readonly [{
|
|
10665
|
+
readonly name: "amount";
|
|
10666
|
+
readonly type: "uint256";
|
|
10667
|
+
readonly internalType: "uint256";
|
|
10668
|
+
}];
|
|
10669
|
+
readonly stateMutability: "nonpayable";
|
|
10670
|
+
}, {
|
|
10442
10671
|
readonly type: "function";
|
|
10443
10672
|
readonly name: "bundle";
|
|
10444
10673
|
readonly inputs: readonly [{
|
|
@@ -10499,111 +10728,77 @@ declare const bundlerAbi: readonly [{
|
|
|
10499
10728
|
readonly internalType: "bytes32";
|
|
10500
10729
|
}];
|
|
10501
10730
|
}, {
|
|
10502
|
-
readonly name: "
|
|
10503
|
-
readonly type: "bytes";
|
|
10504
|
-
readonly internalType: "bytes";
|
|
10505
|
-
}, {
|
|
10506
|
-
readonly name: "inputs";
|
|
10507
|
-
readonly type: "bytes[]";
|
|
10508
|
-
readonly internalType: "bytes[]";
|
|
10509
|
-
}];
|
|
10510
|
-
readonly outputs: readonly [];
|
|
10511
|
-
readonly stateMutability: "payable";
|
|
10512
|
-
}, {
|
|
10513
|
-
readonly type: "function";
|
|
10514
|
-
readonly name: "simulateBundleExactIn";
|
|
10515
|
-
readonly inputs: readonly [{
|
|
10516
|
-
readonly name: "createData";
|
|
10731
|
+
readonly name: "vestingData";
|
|
10517
10732
|
readonly type: "tuple";
|
|
10518
|
-
readonly internalType: "struct
|
|
10733
|
+
readonly internalType: "struct Bundler.VestingParams";
|
|
10519
10734
|
readonly components: readonly [{
|
|
10520
|
-
readonly name: "
|
|
10521
|
-
readonly type: "
|
|
10522
|
-
readonly internalType: "
|
|
10735
|
+
readonly name: "permissionlessClaim";
|
|
10736
|
+
readonly type: "bool";
|
|
10737
|
+
readonly internalType: "bool";
|
|
10523
10738
|
}, {
|
|
10524
|
-
readonly name: "
|
|
10525
|
-
readonly type: "
|
|
10526
|
-
readonly internalType: "
|
|
10739
|
+
readonly name: "vestingDuration";
|
|
10740
|
+
readonly type: "uint64";
|
|
10741
|
+
readonly internalType: "uint64";
|
|
10527
10742
|
}, {
|
|
10528
|
-
readonly name: "
|
|
10743
|
+
readonly name: "cliffDuration";
|
|
10744
|
+
readonly type: "uint64";
|
|
10745
|
+
readonly internalType: "uint64";
|
|
10746
|
+
}];
|
|
10747
|
+
}, {
|
|
10748
|
+
readonly name: "exactAmountIn";
|
|
10749
|
+
readonly type: "uint128";
|
|
10750
|
+
readonly internalType: "uint128";
|
|
10751
|
+
}, {
|
|
10752
|
+
readonly name: "recipient";
|
|
10753
|
+
readonly type: "address";
|
|
10754
|
+
readonly internalType: "address";
|
|
10755
|
+
}];
|
|
10756
|
+
readonly outputs: readonly [{
|
|
10757
|
+
readonly name: "asset";
|
|
10758
|
+
readonly type: "address";
|
|
10759
|
+
readonly internalType: "address";
|
|
10760
|
+
}, {
|
|
10761
|
+
readonly name: "poolKey";
|
|
10762
|
+
readonly type: "tuple";
|
|
10763
|
+
readonly internalType: "struct PoolKey";
|
|
10764
|
+
readonly components: readonly [{
|
|
10765
|
+
readonly name: "currency0";
|
|
10529
10766
|
readonly type: "address";
|
|
10530
|
-
readonly internalType: "
|
|
10767
|
+
readonly internalType: "Currency";
|
|
10531
10768
|
}, {
|
|
10532
|
-
readonly name: "
|
|
10769
|
+
readonly name: "currency1";
|
|
10533
10770
|
readonly type: "address";
|
|
10534
|
-
readonly internalType: "
|
|
10535
|
-
}, {
|
|
10536
|
-
readonly name: "tokenFactoryData";
|
|
10537
|
-
readonly type: "bytes";
|
|
10538
|
-
readonly internalType: "bytes";
|
|
10539
|
-
}, {
|
|
10540
|
-
readonly name: "governanceFactory";
|
|
10541
|
-
readonly type: "address";
|
|
10542
|
-
readonly internalType: "contract IGovernanceFactory";
|
|
10543
|
-
}, {
|
|
10544
|
-
readonly name: "governanceFactoryData";
|
|
10545
|
-
readonly type: "bytes";
|
|
10546
|
-
readonly internalType: "bytes";
|
|
10547
|
-
}, {
|
|
10548
|
-
readonly name: "poolInitializer";
|
|
10549
|
-
readonly type: "address";
|
|
10550
|
-
readonly internalType: "contract IPoolInitializer";
|
|
10551
|
-
}, {
|
|
10552
|
-
readonly name: "poolInitializerData";
|
|
10553
|
-
readonly type: "bytes";
|
|
10554
|
-
readonly internalType: "bytes";
|
|
10555
|
-
}, {
|
|
10556
|
-
readonly name: "liquidityMigrator";
|
|
10557
|
-
readonly type: "address";
|
|
10558
|
-
readonly internalType: "contract ILiquidityMigrator";
|
|
10559
|
-
}, {
|
|
10560
|
-
readonly name: "liquidityMigratorData";
|
|
10561
|
-
readonly type: "bytes";
|
|
10562
|
-
readonly internalType: "bytes";
|
|
10563
|
-
}, {
|
|
10564
|
-
readonly name: "integrator";
|
|
10565
|
-
readonly type: "address";
|
|
10566
|
-
readonly internalType: "address";
|
|
10567
|
-
}, {
|
|
10568
|
-
readonly name: "salt";
|
|
10569
|
-
readonly type: "bytes32";
|
|
10570
|
-
readonly internalType: "bytes32";
|
|
10571
|
-
}];
|
|
10572
|
-
}, {
|
|
10573
|
-
readonly name: "params";
|
|
10574
|
-
readonly type: "tuple";
|
|
10575
|
-
readonly internalType: "struct IQuoterV2.QuoteExactInputSingleParams";
|
|
10576
|
-
readonly components: readonly [{
|
|
10577
|
-
readonly name: "tokenIn";
|
|
10578
|
-
readonly type: "address";
|
|
10579
|
-
readonly internalType: "address";
|
|
10580
|
-
}, {
|
|
10581
|
-
readonly name: "tokenOut";
|
|
10582
|
-
readonly type: "address";
|
|
10583
|
-
readonly internalType: "address";
|
|
10584
|
-
}, {
|
|
10585
|
-
readonly name: "amountIn";
|
|
10586
|
-
readonly type: "uint256";
|
|
10587
|
-
readonly internalType: "uint256";
|
|
10771
|
+
readonly internalType: "Currency";
|
|
10588
10772
|
}, {
|
|
10589
10773
|
readonly name: "fee";
|
|
10590
10774
|
readonly type: "uint24";
|
|
10591
10775
|
readonly internalType: "uint24";
|
|
10592
10776
|
}, {
|
|
10593
|
-
readonly name: "
|
|
10594
|
-
readonly type: "
|
|
10595
|
-
readonly internalType: "
|
|
10777
|
+
readonly name: "tickSpacing";
|
|
10778
|
+
readonly type: "int24";
|
|
10779
|
+
readonly internalType: "int24";
|
|
10780
|
+
}, {
|
|
10781
|
+
readonly name: "hooks";
|
|
10782
|
+
readonly type: "address";
|
|
10783
|
+
readonly internalType: "contract IHooks";
|
|
10596
10784
|
}];
|
|
10597
|
-
}
|
|
10598
|
-
|
|
10785
|
+
}, {
|
|
10786
|
+
readonly name: "governance";
|
|
10787
|
+
readonly type: "address";
|
|
10788
|
+
readonly internalType: "address";
|
|
10789
|
+
}, {
|
|
10790
|
+
readonly name: "timelock";
|
|
10791
|
+
readonly type: "address";
|
|
10792
|
+
readonly internalType: "address";
|
|
10793
|
+
}, {
|
|
10599
10794
|
readonly name: "amountOut";
|
|
10600
|
-
readonly type: "
|
|
10601
|
-
readonly internalType: "
|
|
10795
|
+
readonly type: "uint128";
|
|
10796
|
+
readonly internalType: "uint128";
|
|
10602
10797
|
}];
|
|
10603
|
-
readonly stateMutability: "
|
|
10798
|
+
readonly stateMutability: "payable";
|
|
10604
10799
|
}, {
|
|
10605
10800
|
readonly type: "function";
|
|
10606
|
-
readonly name: "
|
|
10801
|
+
readonly name: "simulateBundle";
|
|
10607
10802
|
readonly inputs: readonly [{
|
|
10608
10803
|
readonly name: "createData";
|
|
10609
10804
|
readonly type: "tuple";
|
|
@@ -10662,40 +10857,56 @@ declare const bundlerAbi: readonly [{
|
|
|
10662
10857
|
readonly internalType: "bytes32";
|
|
10663
10858
|
}];
|
|
10664
10859
|
}, {
|
|
10665
|
-
readonly name: "
|
|
10860
|
+
readonly name: "exactAmountIn";
|
|
10861
|
+
readonly type: "uint128";
|
|
10862
|
+
readonly internalType: "uint128";
|
|
10863
|
+
}];
|
|
10864
|
+
readonly outputs: readonly [{
|
|
10865
|
+
readonly name: "asset";
|
|
10866
|
+
readonly type: "address";
|
|
10867
|
+
readonly internalType: "address";
|
|
10868
|
+
}, {
|
|
10869
|
+
readonly name: "poolKey";
|
|
10666
10870
|
readonly type: "tuple";
|
|
10667
|
-
readonly internalType: "struct
|
|
10871
|
+
readonly internalType: "struct PoolKey";
|
|
10668
10872
|
readonly components: readonly [{
|
|
10669
|
-
readonly name: "
|
|
10873
|
+
readonly name: "currency0";
|
|
10670
10874
|
readonly type: "address";
|
|
10671
|
-
readonly internalType: "
|
|
10875
|
+
readonly internalType: "Currency";
|
|
10672
10876
|
}, {
|
|
10673
|
-
readonly name: "
|
|
10877
|
+
readonly name: "currency1";
|
|
10674
10878
|
readonly type: "address";
|
|
10675
|
-
readonly internalType: "
|
|
10676
|
-
}, {
|
|
10677
|
-
readonly name: "amount";
|
|
10678
|
-
readonly type: "uint256";
|
|
10679
|
-
readonly internalType: "uint256";
|
|
10879
|
+
readonly internalType: "Currency";
|
|
10680
10880
|
}, {
|
|
10681
10881
|
readonly name: "fee";
|
|
10682
10882
|
readonly type: "uint24";
|
|
10683
10883
|
readonly internalType: "uint24";
|
|
10684
10884
|
}, {
|
|
10685
|
-
readonly name: "
|
|
10686
|
-
readonly type: "
|
|
10687
|
-
readonly internalType: "
|
|
10885
|
+
readonly name: "tickSpacing";
|
|
10886
|
+
readonly type: "int24";
|
|
10887
|
+
readonly internalType: "int24";
|
|
10888
|
+
}, {
|
|
10889
|
+
readonly name: "hooks";
|
|
10890
|
+
readonly type: "address";
|
|
10891
|
+
readonly internalType: "contract IHooks";
|
|
10688
10892
|
}];
|
|
10689
|
-
}
|
|
10690
|
-
|
|
10691
|
-
readonly
|
|
10692
|
-
readonly
|
|
10693
|
-
|
|
10893
|
+
}, {
|
|
10894
|
+
readonly name: "governance";
|
|
10895
|
+
readonly type: "address";
|
|
10896
|
+
readonly internalType: "address";
|
|
10897
|
+
}, {
|
|
10898
|
+
readonly name: "timelock";
|
|
10899
|
+
readonly type: "address";
|
|
10900
|
+
readonly internalType: "address";
|
|
10901
|
+
}, {
|
|
10902
|
+
readonly name: "amountOut";
|
|
10903
|
+
readonly type: "uint128";
|
|
10904
|
+
readonly internalType: "uint128";
|
|
10694
10905
|
}];
|
|
10695
10906
|
readonly stateMutability: "nonpayable";
|
|
10696
10907
|
}, {
|
|
10697
10908
|
readonly type: "function";
|
|
10698
|
-
readonly name: "
|
|
10909
|
+
readonly name: "_simulateBundle";
|
|
10699
10910
|
readonly inputs: readonly [{
|
|
10700
10911
|
readonly name: "createData";
|
|
10701
10912
|
readonly type: "tuple";
|
|
@@ -10754,21 +10965,48 @@ declare const bundlerAbi: readonly [{
|
|
|
10754
10965
|
readonly internalType: "bytes32";
|
|
10755
10966
|
}];
|
|
10756
10967
|
}, {
|
|
10757
|
-
readonly name: "
|
|
10968
|
+
readonly name: "exactAmountIn";
|
|
10758
10969
|
readonly type: "uint128";
|
|
10759
10970
|
readonly internalType: "uint128";
|
|
10760
|
-
}
|
|
10761
|
-
|
|
10971
|
+
}];
|
|
10972
|
+
readonly outputs: readonly [];
|
|
10973
|
+
readonly stateMutability: "nonpayable";
|
|
10974
|
+
}, {
|
|
10975
|
+
readonly type: "function";
|
|
10976
|
+
readonly name: "unlockCallback";
|
|
10977
|
+
readonly inputs: readonly [{
|
|
10978
|
+
readonly name: "data";
|
|
10762
10979
|
readonly type: "bytes";
|
|
10763
10980
|
readonly internalType: "bytes";
|
|
10764
10981
|
}];
|
|
10765
10982
|
readonly outputs: readonly [{
|
|
10766
|
-
readonly name: "
|
|
10983
|
+
readonly name: "";
|
|
10984
|
+
readonly type: "bytes";
|
|
10985
|
+
readonly internalType: "bytes";
|
|
10986
|
+
}];
|
|
10987
|
+
readonly stateMutability: "nonpayable";
|
|
10988
|
+
}, {
|
|
10989
|
+
readonly type: "event";
|
|
10990
|
+
readonly name: "Bundled";
|
|
10991
|
+
readonly inputs: readonly [{
|
|
10992
|
+
readonly name: "recipient";
|
|
10767
10993
|
readonly type: "address";
|
|
10994
|
+
readonly indexed: true;
|
|
10768
10995
|
readonly internalType: "address";
|
|
10996
|
+
}, {
|
|
10997
|
+
readonly name: "amountIn";
|
|
10998
|
+
readonly type: "uint128";
|
|
10999
|
+
readonly indexed: false;
|
|
11000
|
+
readonly internalType: "uint128";
|
|
11001
|
+
}, {
|
|
11002
|
+
readonly name: "amountOut";
|
|
11003
|
+
readonly type: "uint128";
|
|
11004
|
+
readonly indexed: false;
|
|
11005
|
+
readonly internalType: "uint128";
|
|
10769
11006
|
}, {
|
|
10770
11007
|
readonly name: "poolKey";
|
|
10771
11008
|
readonly type: "tuple";
|
|
11009
|
+
readonly indexed: false;
|
|
10772
11010
|
readonly internalType: "struct PoolKey";
|
|
10773
11011
|
readonly components: readonly [{
|
|
10774
11012
|
readonly name: "currency0";
|
|
@@ -10791,86 +11029,72 @@ declare const bundlerAbi: readonly [{
|
|
|
10791
11029
|
readonly type: "address";
|
|
10792
11030
|
readonly internalType: "contract IHooks";
|
|
10793
11031
|
}];
|
|
11032
|
+
}];
|
|
11033
|
+
readonly anonymous: false;
|
|
11034
|
+
}, {
|
|
11035
|
+
readonly type: "event";
|
|
11036
|
+
readonly name: "VestingCreated";
|
|
11037
|
+
readonly inputs: readonly [{
|
|
11038
|
+
readonly name: "asset";
|
|
11039
|
+
readonly type: "address";
|
|
11040
|
+
readonly indexed: true;
|
|
11041
|
+
readonly internalType: "address";
|
|
10794
11042
|
}, {
|
|
10795
|
-
readonly name: "
|
|
10796
|
-
readonly type: "
|
|
10797
|
-
readonly
|
|
11043
|
+
readonly name: "recipient";
|
|
11044
|
+
readonly type: "address";
|
|
11045
|
+
readonly indexed: true;
|
|
11046
|
+
readonly internalType: "address";
|
|
10798
11047
|
}, {
|
|
10799
|
-
readonly name: "
|
|
10800
|
-
readonly type: "
|
|
10801
|
-
readonly
|
|
11048
|
+
readonly name: "permissionlessClaim";
|
|
11049
|
+
readonly type: "bool";
|
|
11050
|
+
readonly indexed: false;
|
|
11051
|
+
readonly internalType: "bool";
|
|
11052
|
+
}, {
|
|
11053
|
+
readonly name: "totalAmount";
|
|
11054
|
+
readonly type: "uint128";
|
|
11055
|
+
readonly indexed: false;
|
|
11056
|
+
readonly internalType: "uint128";
|
|
11057
|
+
}, {
|
|
11058
|
+
readonly name: "start";
|
|
11059
|
+
readonly type: "uint64";
|
|
11060
|
+
readonly indexed: false;
|
|
11061
|
+
readonly internalType: "uint64";
|
|
11062
|
+
}, {
|
|
11063
|
+
readonly name: "cliffDuration";
|
|
11064
|
+
readonly type: "uint64";
|
|
11065
|
+
readonly indexed: false;
|
|
11066
|
+
readonly internalType: "uint64";
|
|
11067
|
+
}, {
|
|
11068
|
+
readonly name: "vestingDuration";
|
|
11069
|
+
readonly type: "uint64";
|
|
11070
|
+
readonly indexed: false;
|
|
11071
|
+
readonly internalType: "uint64";
|
|
10802
11072
|
}];
|
|
10803
|
-
readonly
|
|
11073
|
+
readonly anonymous: false;
|
|
10804
11074
|
}, {
|
|
10805
|
-
readonly type: "
|
|
10806
|
-
readonly name: "
|
|
11075
|
+
readonly type: "event";
|
|
11076
|
+
readonly name: "VestingReleased";
|
|
10807
11077
|
readonly inputs: readonly [{
|
|
10808
|
-
readonly name: "
|
|
10809
|
-
readonly type: "
|
|
10810
|
-
readonly
|
|
10811
|
-
readonly
|
|
10812
|
-
readonly name: "initialSupply";
|
|
10813
|
-
readonly type: "uint256";
|
|
10814
|
-
readonly internalType: "uint256";
|
|
10815
|
-
}, {
|
|
10816
|
-
readonly name: "numTokensToSell";
|
|
10817
|
-
readonly type: "uint256";
|
|
10818
|
-
readonly internalType: "uint256";
|
|
10819
|
-
}, {
|
|
10820
|
-
readonly name: "numeraire";
|
|
10821
|
-
readonly type: "address";
|
|
10822
|
-
readonly internalType: "address";
|
|
10823
|
-
}, {
|
|
10824
|
-
readonly name: "tokenFactory";
|
|
10825
|
-
readonly type: "address";
|
|
10826
|
-
readonly internalType: "contract ITokenFactory";
|
|
10827
|
-
}, {
|
|
10828
|
-
readonly name: "tokenFactoryData";
|
|
10829
|
-
readonly type: "bytes";
|
|
10830
|
-
readonly internalType: "bytes";
|
|
10831
|
-
}, {
|
|
10832
|
-
readonly name: "governanceFactory";
|
|
10833
|
-
readonly type: "address";
|
|
10834
|
-
readonly internalType: "contract IGovernanceFactory";
|
|
10835
|
-
}, {
|
|
10836
|
-
readonly name: "governanceFactoryData";
|
|
10837
|
-
readonly type: "bytes";
|
|
10838
|
-
readonly internalType: "bytes";
|
|
10839
|
-
}, {
|
|
10840
|
-
readonly name: "poolInitializer";
|
|
10841
|
-
readonly type: "address";
|
|
10842
|
-
readonly internalType: "contract IPoolInitializer";
|
|
10843
|
-
}, {
|
|
10844
|
-
readonly name: "poolInitializerData";
|
|
10845
|
-
readonly type: "bytes";
|
|
10846
|
-
readonly internalType: "bytes";
|
|
10847
|
-
}, {
|
|
10848
|
-
readonly name: "liquidityMigrator";
|
|
10849
|
-
readonly type: "address";
|
|
10850
|
-
readonly internalType: "contract ILiquidityMigrator";
|
|
10851
|
-
}, {
|
|
10852
|
-
readonly name: "liquidityMigratorData";
|
|
10853
|
-
readonly type: "bytes";
|
|
10854
|
-
readonly internalType: "bytes";
|
|
10855
|
-
}, {
|
|
10856
|
-
readonly name: "integrator";
|
|
10857
|
-
readonly type: "address";
|
|
10858
|
-
readonly internalType: "address";
|
|
10859
|
-
}, {
|
|
10860
|
-
readonly name: "salt";
|
|
10861
|
-
readonly type: "bytes32";
|
|
10862
|
-
readonly internalType: "bytes32";
|
|
10863
|
-
}];
|
|
11078
|
+
readonly name: "asset";
|
|
11079
|
+
readonly type: "address";
|
|
11080
|
+
readonly indexed: true;
|
|
11081
|
+
readonly internalType: "address";
|
|
10864
11082
|
}, {
|
|
10865
|
-
readonly name: "
|
|
11083
|
+
readonly name: "recipient";
|
|
11084
|
+
readonly type: "address";
|
|
11085
|
+
readonly indexed: true;
|
|
11086
|
+
readonly internalType: "address";
|
|
11087
|
+
}, {
|
|
11088
|
+
readonly name: "amount";
|
|
10866
11089
|
readonly type: "uint128";
|
|
11090
|
+
readonly indexed: false;
|
|
10867
11091
|
readonly internalType: "uint128";
|
|
10868
|
-
}, {
|
|
10869
|
-
readonly name: "hookData";
|
|
10870
|
-
readonly type: "bytes";
|
|
10871
|
-
readonly internalType: "bytes";
|
|
10872
11092
|
}];
|
|
10873
|
-
readonly
|
|
11093
|
+
readonly anonymous: false;
|
|
11094
|
+
}, {
|
|
11095
|
+
readonly type: "error";
|
|
11096
|
+
readonly name: "BundleQuote";
|
|
11097
|
+
readonly inputs: readonly [{
|
|
10874
11098
|
readonly name: "asset";
|
|
10875
11099
|
readonly type: "address";
|
|
10876
11100
|
readonly internalType: "address";
|
|
@@ -10899,28 +11123,91 @@ declare const bundlerAbi: readonly [{
|
|
|
10899
11123
|
readonly type: "address";
|
|
10900
11124
|
readonly internalType: "contract IHooks";
|
|
10901
11125
|
}];
|
|
11126
|
+
}, {
|
|
11127
|
+
readonly name: "governance";
|
|
11128
|
+
readonly type: "address";
|
|
11129
|
+
readonly internalType: "address";
|
|
11130
|
+
}, {
|
|
11131
|
+
readonly name: "timelock";
|
|
11132
|
+
readonly type: "address";
|
|
11133
|
+
readonly internalType: "address";
|
|
10902
11134
|
}, {
|
|
10903
11135
|
readonly name: "amountOut";
|
|
11136
|
+
readonly type: "uint128";
|
|
11137
|
+
readonly internalType: "uint128";
|
|
11138
|
+
}];
|
|
11139
|
+
}, {
|
|
11140
|
+
readonly type: "error";
|
|
11141
|
+
readonly name: "ExactInputNotFullySpent";
|
|
11142
|
+
readonly inputs: readonly [{
|
|
11143
|
+
readonly name: "expected";
|
|
10904
11144
|
readonly type: "uint256";
|
|
10905
11145
|
readonly internalType: "uint256";
|
|
10906
11146
|
}, {
|
|
10907
|
-
readonly name: "
|
|
11147
|
+
readonly name: "actual";
|
|
10908
11148
|
readonly type: "uint256";
|
|
10909
11149
|
readonly internalType: "uint256";
|
|
10910
11150
|
}];
|
|
10911
|
-
readonly stateMutability: "nonpayable";
|
|
10912
11151
|
}, {
|
|
10913
11152
|
readonly type: "error";
|
|
10914
|
-
readonly name: "
|
|
11153
|
+
readonly name: "ExactInputAmountZero";
|
|
11154
|
+
readonly inputs: readonly [];
|
|
11155
|
+
}, {
|
|
11156
|
+
readonly type: "error";
|
|
11157
|
+
readonly name: "InvalidAddress";
|
|
11158
|
+
readonly inputs: readonly [];
|
|
11159
|
+
}, {
|
|
11160
|
+
readonly type: "error";
|
|
11161
|
+
readonly name: "InvalidNativeValue";
|
|
11162
|
+
readonly inputs: readonly [];
|
|
11163
|
+
}, {
|
|
11164
|
+
readonly type: "error";
|
|
11165
|
+
readonly name: "InvalidPool";
|
|
11166
|
+
readonly inputs: readonly [];
|
|
11167
|
+
}, {
|
|
11168
|
+
readonly type: "error";
|
|
11169
|
+
readonly name: "InvalidRecipient";
|
|
11170
|
+
readonly inputs: readonly [];
|
|
11171
|
+
}, {
|
|
11172
|
+
readonly type: "error";
|
|
11173
|
+
readonly name: "InvalidVestingSchedule";
|
|
11174
|
+
readonly inputs: readonly [];
|
|
11175
|
+
}, {
|
|
11176
|
+
readonly type: "error";
|
|
11177
|
+
readonly name: "NoClaimableAmount";
|
|
11178
|
+
readonly inputs: readonly [];
|
|
11179
|
+
}, {
|
|
11180
|
+
readonly type: "error";
|
|
11181
|
+
readonly name: "SenderNotPoolManager";
|
|
11182
|
+
readonly inputs: readonly [];
|
|
11183
|
+
}, {
|
|
11184
|
+
readonly type: "error";
|
|
11185
|
+
readonly name: "SenderNotRecipient";
|
|
10915
11186
|
readonly inputs: readonly [];
|
|
10916
11187
|
}, {
|
|
10917
11188
|
readonly type: "error";
|
|
10918
|
-
readonly name: "
|
|
11189
|
+
readonly name: "SenderNotSelf";
|
|
10919
11190
|
readonly inputs: readonly [];
|
|
10920
11191
|
}, {
|
|
10921
11192
|
readonly type: "error";
|
|
10922
|
-
readonly name: "
|
|
11193
|
+
readonly name: "SwapQuote";
|
|
11194
|
+
readonly inputs: readonly [{
|
|
11195
|
+
readonly name: "amountOut";
|
|
11196
|
+
readonly type: "uint128";
|
|
11197
|
+
readonly internalType: "uint128";
|
|
11198
|
+
}];
|
|
11199
|
+
}, {
|
|
11200
|
+
readonly type: "error";
|
|
11201
|
+
readonly name: "UnexpectedSimulationSuccess";
|
|
10923
11202
|
readonly inputs: readonly [];
|
|
11203
|
+
}, {
|
|
11204
|
+
readonly type: "error";
|
|
11205
|
+
readonly name: "VestingAlreadyExists";
|
|
11206
|
+
readonly inputs: readonly [{
|
|
11207
|
+
readonly name: "asset";
|
|
11208
|
+
readonly type: "address";
|
|
11209
|
+
readonly internalType: "address";
|
|
11210
|
+
}];
|
|
10924
11211
|
}];
|
|
10925
11212
|
declare const poolManagerAbi: readonly [{
|
|
10926
11213
|
readonly type: "function";
|
|
@@ -11469,6 +11756,16 @@ declare const rehypeDopplerHookInitializerAbi: readonly [{
|
|
|
11469
11756
|
readonly internalType: "contract IPoolManager";
|
|
11470
11757
|
}];
|
|
11471
11758
|
readonly stateMutability: "view";
|
|
11759
|
+
}, {
|
|
11760
|
+
readonly type: "function";
|
|
11761
|
+
readonly name: "bundler";
|
|
11762
|
+
readonly inputs: readonly [];
|
|
11763
|
+
readonly outputs: readonly [{
|
|
11764
|
+
readonly name: "";
|
|
11765
|
+
readonly type: "address";
|
|
11766
|
+
readonly internalType: "address";
|
|
11767
|
+
}];
|
|
11768
|
+
readonly stateMutability: "view";
|
|
11472
11769
|
}, {
|
|
11473
11770
|
readonly type: "function";
|
|
11474
11771
|
readonly name: "quoter";
|
|
@@ -11573,6 +11870,48 @@ declare const rehypeDopplerHookInitializerAbi: readonly [{
|
|
|
11573
11870
|
readonly internalType: "uint24";
|
|
11574
11871
|
}];
|
|
11575
11872
|
readonly anonymous: false;
|
|
11873
|
+
}, {
|
|
11874
|
+
readonly type: "function";
|
|
11875
|
+
readonly name: "setFeeDistribution";
|
|
11876
|
+
readonly inputs: readonly [{
|
|
11877
|
+
readonly name: "poolId";
|
|
11878
|
+
readonly type: "bytes32";
|
|
11879
|
+
readonly internalType: "PoolId";
|
|
11880
|
+
}, {
|
|
11881
|
+
readonly name: "assetFeesToAssetBuybackWad";
|
|
11882
|
+
readonly type: "uint256";
|
|
11883
|
+
readonly internalType: "uint256";
|
|
11884
|
+
}, {
|
|
11885
|
+
readonly name: "assetFeesToNumeraireBuybackWad";
|
|
11886
|
+
readonly type: "uint256";
|
|
11887
|
+
readonly internalType: "uint256";
|
|
11888
|
+
}, {
|
|
11889
|
+
readonly name: "assetFeesToBeneficiaryWad";
|
|
11890
|
+
readonly type: "uint256";
|
|
11891
|
+
readonly internalType: "uint256";
|
|
11892
|
+
}, {
|
|
11893
|
+
readonly name: "assetFeesToLpWad";
|
|
11894
|
+
readonly type: "uint256";
|
|
11895
|
+
readonly internalType: "uint256";
|
|
11896
|
+
}, {
|
|
11897
|
+
readonly name: "numeraireFeesToAssetBuybackWad";
|
|
11898
|
+
readonly type: "uint256";
|
|
11899
|
+
readonly internalType: "uint256";
|
|
11900
|
+
}, {
|
|
11901
|
+
readonly name: "numeraireFeesToNumeraireBuybackWad";
|
|
11902
|
+
readonly type: "uint256";
|
|
11903
|
+
readonly internalType: "uint256";
|
|
11904
|
+
}, {
|
|
11905
|
+
readonly name: "numeraireFeesToBeneficiaryWad";
|
|
11906
|
+
readonly type: "uint256";
|
|
11907
|
+
readonly internalType: "uint256";
|
|
11908
|
+
}, {
|
|
11909
|
+
readonly name: "numeraireFeesToLpWad";
|
|
11910
|
+
readonly type: "uint256";
|
|
11911
|
+
readonly internalType: "uint256";
|
|
11912
|
+
}];
|
|
11913
|
+
readonly outputs: readonly [];
|
|
11914
|
+
readonly stateMutability: "nonpayable";
|
|
11576
11915
|
}, {
|
|
11577
11916
|
readonly type: "error";
|
|
11578
11917
|
readonly name: "FeeBeneficiariesNotConfigured";
|
|
@@ -11585,6 +11924,10 @@ declare const rehypeDopplerHookInitializerAbi: readonly [{
|
|
|
11585
11924
|
readonly type: "error";
|
|
11586
11925
|
readonly name: "FeeDistributionMustAddUpToWAD";
|
|
11587
11926
|
readonly inputs: readonly [];
|
|
11927
|
+
}, {
|
|
11928
|
+
readonly type: "error";
|
|
11929
|
+
readonly name: "SenderNotAuthorized";
|
|
11930
|
+
readonly inputs: readonly [];
|
|
11588
11931
|
}, {
|
|
11589
11932
|
readonly type: "error";
|
|
11590
11933
|
readonly name: "FeeTooHigh";
|
|
@@ -12104,6 +12447,16 @@ declare const rehypeDopplerHookAbi: readonly [{
|
|
|
12104
12447
|
readonly internalType: "contract IPoolManager";
|
|
12105
12448
|
}];
|
|
12106
12449
|
readonly stateMutability: "view";
|
|
12450
|
+
}, {
|
|
12451
|
+
readonly type: "function";
|
|
12452
|
+
readonly name: "bundler";
|
|
12453
|
+
readonly inputs: readonly [];
|
|
12454
|
+
readonly outputs: readonly [{
|
|
12455
|
+
readonly name: "";
|
|
12456
|
+
readonly type: "address";
|
|
12457
|
+
readonly internalType: "address";
|
|
12458
|
+
}];
|
|
12459
|
+
readonly stateMutability: "view";
|
|
12107
12460
|
}, {
|
|
12108
12461
|
readonly type: "function";
|
|
12109
12462
|
readonly name: "quoter";
|
|
@@ -12208,6 +12561,48 @@ declare const rehypeDopplerHookAbi: readonly [{
|
|
|
12208
12561
|
readonly internalType: "uint24";
|
|
12209
12562
|
}];
|
|
12210
12563
|
readonly anonymous: false;
|
|
12564
|
+
}, {
|
|
12565
|
+
readonly type: "function";
|
|
12566
|
+
readonly name: "setFeeDistribution";
|
|
12567
|
+
readonly inputs: readonly [{
|
|
12568
|
+
readonly name: "poolId";
|
|
12569
|
+
readonly type: "bytes32";
|
|
12570
|
+
readonly internalType: "PoolId";
|
|
12571
|
+
}, {
|
|
12572
|
+
readonly name: "assetFeesToAssetBuybackWad";
|
|
12573
|
+
readonly type: "uint256";
|
|
12574
|
+
readonly internalType: "uint256";
|
|
12575
|
+
}, {
|
|
12576
|
+
readonly name: "assetFeesToNumeraireBuybackWad";
|
|
12577
|
+
readonly type: "uint256";
|
|
12578
|
+
readonly internalType: "uint256";
|
|
12579
|
+
}, {
|
|
12580
|
+
readonly name: "assetFeesToBeneficiaryWad";
|
|
12581
|
+
readonly type: "uint256";
|
|
12582
|
+
readonly internalType: "uint256";
|
|
12583
|
+
}, {
|
|
12584
|
+
readonly name: "assetFeesToLpWad";
|
|
12585
|
+
readonly type: "uint256";
|
|
12586
|
+
readonly internalType: "uint256";
|
|
12587
|
+
}, {
|
|
12588
|
+
readonly name: "numeraireFeesToAssetBuybackWad";
|
|
12589
|
+
readonly type: "uint256";
|
|
12590
|
+
readonly internalType: "uint256";
|
|
12591
|
+
}, {
|
|
12592
|
+
readonly name: "numeraireFeesToNumeraireBuybackWad";
|
|
12593
|
+
readonly type: "uint256";
|
|
12594
|
+
readonly internalType: "uint256";
|
|
12595
|
+
}, {
|
|
12596
|
+
readonly name: "numeraireFeesToBeneficiaryWad";
|
|
12597
|
+
readonly type: "uint256";
|
|
12598
|
+
readonly internalType: "uint256";
|
|
12599
|
+
}, {
|
|
12600
|
+
readonly name: "numeraireFeesToLpWad";
|
|
12601
|
+
readonly type: "uint256";
|
|
12602
|
+
readonly internalType: "uint256";
|
|
12603
|
+
}];
|
|
12604
|
+
readonly outputs: readonly [];
|
|
12605
|
+
readonly stateMutability: "nonpayable";
|
|
12211
12606
|
}, {
|
|
12212
12607
|
readonly type: "error";
|
|
12213
12608
|
readonly name: "FeeBeneficiariesNotConfigured";
|
|
@@ -12220,6 +12615,10 @@ declare const rehypeDopplerHookAbi: readonly [{
|
|
|
12220
12615
|
readonly type: "error";
|
|
12221
12616
|
readonly name: "FeeDistributionMustAddUpToWAD";
|
|
12222
12617
|
readonly inputs: readonly [];
|
|
12618
|
+
}, {
|
|
12619
|
+
readonly type: "error";
|
|
12620
|
+
readonly name: "SenderNotAuthorized";
|
|
12621
|
+
readonly inputs: readonly [];
|
|
12223
12622
|
}, {
|
|
12224
12623
|
readonly type: "error";
|
|
12225
12624
|
readonly name: "FeeTooHigh";
|
|
@@ -12559,4 +12958,4 @@ declare const rehypeDopplerHookMigratorAbi: readonly [{
|
|
|
12559
12958
|
|
|
12560
12959
|
declare const VERSION = "1.0.0";
|
|
12561
12960
|
|
|
12562
|
-
export { ADDRESSES, AirlockCreateReceiptError, type AirlockCreateReceiptErrorCode, type AirlockCreateResult, BASIS_POINTS, type BaseAuctionBuilder, type BeneficiaryData, CHAIN_IDS, type ChainAddresses, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateOpeningAuctionParams, type CreateParams, type CreateStaticAuctionParams, DAY_SECONDS, DEAD_ADDRESS, DECAY_MAX_START_FEE, DEFAULT_AIRLOCK_BENEFICIARY_SHARES, DEFAULT_AUCTION_DURATION, DEFAULT_EPOCH_LENGTH, DEFAULT_LOCK_DURATION, DEFAULT_MULTICURVE_LOWER_TICKS, DEFAULT_MULTICURVE_MAX_SUPPLY_SHARES, DEFAULT_MULTICURVE_NUM_POSITIONS, DEFAULT_MULTICURVE_UPPER_TICKS, DEFAULT_OPENING_AUCTION_DURATION, DEFAULT_OPENING_AUCTION_FEE, DEFAULT_OPENING_AUCTION_INCENTIVE_SHARE_BPS, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN0, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN1, DEFAULT_OPENING_AUCTION_MIN_LIQUIDITY, DEFAULT_OPENING_AUCTION_SHARE_TO_AUCTION_BPS, DEFAULT_OPENING_DOPPLER_DURATION, DEFAULT_OPENING_DOPPLER_EPOCH_LENGTH, DEFAULT_OPENING_DOPPLER_FEE, DEFAULT_OPENING_DOPPLER_NUM_PD_SLUGS, DEFAULT_OPENING_DOPPLER_TICK_SPACING, DEFAULT_PD_SLUGS, DEFAULT_V3_END_TICK, DEFAULT_V3_FEE, DEFAULT_V3_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V3_INITIAL_SUPPLY, DEFAULT_V3_INITIAL_VOTING_DELAY, DEFAULT_V3_INITIAL_VOTING_PERIOD, DEFAULT_V3_MAX_SHARE_TO_BE_SOLD, DEFAULT_V3_NUM_POSITIONS, DEFAULT_V3_NUM_TOKENS_TO_SELL, DEFAULT_V3_PRE_MINT, DEFAULT_V3_START_TICK, DEFAULT_V3_VESTING_DURATION, DEFAULT_V3_YEARLY_MINT_RATE, DEFAULT_V4_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V4_INITIAL_VOTING_DELAY, DEFAULT_V4_INITIAL_VOTING_PERIOD, DEFAULT_V4_YEARLY_MINT_RATE, _default$1 as DERC2080Bytecode, _default$2 as DERC20Bytecode, DOPPLER_FLAGS, DOPPLER_MAX_TICK_SPACING, DYNAMIC_FEE_FLAG, Derc20, Derc20V2, _default$6 as DopplerBytecode, DopplerDN404, _default$4 as DopplerDN404BaseSepoliaBytecode, _default$5 as DopplerDN404Bytecode, DopplerERC20V1, type DopplerERC20V1TokenConfig, DopplerFactory, type DopplerHookMigrationConfig, type DopplerHookMigratorConfig, DopplerSDK, type DopplerSDKConfig, DynamicAuction, DynamicAuctionBuilder, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, Eth, FEE_AMOUNT_MASK, FEE_TIERS, FLAG_MASK, type FeeTier, type GovernanceLaunchpad, type GovernanceOption, type HookInfo, INT24_MAX, INT24_MIN, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type MigrationEncoder, type ModuleAddressOverrides, MulticurveBuilder, type
|
|
12961
|
+
export { ADDRESSES, AirlockCreateReceiptError, type AirlockCreateReceiptErrorCode, type AirlockCreateResult, BASIS_POINTS, type BaseAuctionBuilder, type BeneficiaryData, type BuilderDevBuyInput, type BuilderDevBuyVestingInput, Bundler, type BundlerClaimSimulation, type BundlerVestingPosition, CHAIN_IDS, type ChainAddresses, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateOpeningAuctionParams, type CreateParams, type CreateStaticAuctionParams, DAY_SECONDS, DEAD_ADDRESS, DECAY_MAX_START_FEE, DEFAULT_AIRLOCK_BENEFICIARY_SHARES, DEFAULT_AUCTION_DURATION, DEFAULT_EPOCH_LENGTH, DEFAULT_LOCK_DURATION, DEFAULT_MULTICURVE_LOWER_TICKS, DEFAULT_MULTICURVE_MAX_SUPPLY_SHARES, DEFAULT_MULTICURVE_NUM_POSITIONS, DEFAULT_MULTICURVE_UPPER_TICKS, DEFAULT_OPENING_AUCTION_DURATION, DEFAULT_OPENING_AUCTION_FEE, DEFAULT_OPENING_AUCTION_INCENTIVE_SHARE_BPS, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN0, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN1, DEFAULT_OPENING_AUCTION_MIN_LIQUIDITY, DEFAULT_OPENING_AUCTION_SHARE_TO_AUCTION_BPS, DEFAULT_OPENING_DOPPLER_DURATION, DEFAULT_OPENING_DOPPLER_EPOCH_LENGTH, DEFAULT_OPENING_DOPPLER_FEE, DEFAULT_OPENING_DOPPLER_NUM_PD_SLUGS, DEFAULT_OPENING_DOPPLER_TICK_SPACING, DEFAULT_PD_SLUGS, DEFAULT_V3_END_TICK, DEFAULT_V3_FEE, DEFAULT_V3_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V3_INITIAL_SUPPLY, DEFAULT_V3_INITIAL_VOTING_DELAY, DEFAULT_V3_INITIAL_VOTING_PERIOD, DEFAULT_V3_MAX_SHARE_TO_BE_SOLD, DEFAULT_V3_NUM_POSITIONS, DEFAULT_V3_NUM_TOKENS_TO_SELL, DEFAULT_V3_PRE_MINT, DEFAULT_V3_START_TICK, DEFAULT_V3_VESTING_DURATION, DEFAULT_V3_YEARLY_MINT_RATE, DEFAULT_V4_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V4_INITIAL_VOTING_DELAY, DEFAULT_V4_INITIAL_VOTING_PERIOD, DEFAULT_V4_YEARLY_MINT_RATE, _default$1 as DERC2080Bytecode, _default$2 as DERC20Bytecode, DOPPLER_FLAGS, DOPPLER_MAX_TICK_SPACING, DYNAMIC_FEE_FLAG, Derc20, Derc20V2, _default$6 as DopplerBytecode, DopplerDN404, _default$4 as DopplerDN404BaseSepoliaBytecode, _default$5 as DopplerDN404Bytecode, DopplerERC20V1, type DopplerERC20V1TokenConfig, DopplerFactory, type DopplerHookMigrationConfig, type DopplerHookMigratorConfig, DopplerSDK, type DopplerSDKConfig, DynamicAuction, DynamicAuctionBuilder, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, Eth, FEE_AMOUNT_MASK, FEE_TIERS, FLAG_MASK, type FeeTier, type GovernanceLaunchpad, type GovernanceOption, type HookInfo, INT24_MAX, INT24_MIN, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type MigrationEncoder, type ModuleAddressOverrides, MulticurveBuilder, type MulticurveCreateGasEstimate, type MulticurveCreatePrediction, type MulticurveCreateResult, type MulticurveDecayFeeSchedule, type MulticurveDevBuyConfig, type MulticurveDevBuyResult, type MulticurveDevBuyVestingConfig, MulticurveFees, type MulticurveFeesOptions, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurveMaxTickLiquidityParams, type MulticurvePendingFees, type MulticurveFeesOptions as MulticurvePendingFeesOptions, MulticurvePool, type MulticurvePoolState, type MulticurveTokenPendingFeeBreakdown, type MulticurveTokenPendingFees, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type NormalizedRehypeDopplerHookInitializerConfig, OPENING_AUCTION_FLAGS, OPENING_AUCTION_PHASE_ACTIVE, OPENING_AUCTION_PHASE_CLOSED, OPENING_AUCTION_PHASE_NOT_STARTED, OPENING_AUCTION_PHASE_SETTLED, OPENING_AUCTION_STATUS_ACTIVE, OPENING_AUCTION_STATUS_DOPPLER_ACTIVE, OPENING_AUCTION_STATUS_EXITED, OPENING_AUCTION_STATUS_UNINITIALIZED, OpeningAuction, type OpeningAuctionAuctionSettledEvent, type OpeningAuctionBidArgs, type OpeningAuctionBidConstraints, type OpeningAuctionBidLookupArgs, OpeningAuctionBidManager, type OpeningAuctionBidManagerConfig, type OpeningAuctionBidPlacedEvent, type OpeningAuctionBidPositionInfo, type OpeningAuctionBidQuote, type OpeningAuctionBidSimulationResult, type OpeningAuctionBidStatus, type OpeningAuctionBidValidationResult, type OpeningAuctionBidWithdrawnEvent, OpeningAuctionBuilder, _default$3 as OpeningAuctionBytecode, type OpeningAuctionClaimAllIncentivesPreview, type OpeningAuctionClaimAllIncentivesResult, type OpeningAuctionClaimIncentivesSimulationResult, type OpeningAuctionCompleteResult, type OpeningAuctionConfig, type OpeningAuctionCreateResult, type OpeningAuctionDopplerConfig, type OpeningAuctionEstimatedClearingTickUpdatedEvent, type OpeningAuctionIncentiveData, type OpeningAuctionIncentivesClaimedEvent, OpeningAuctionLifecycle, type OpeningAuctionModifyLiquidityParams, type OpeningAuctionModifyLiquiditySimulationResult, type OpeningAuctionModuleAddressOverrides, type OpeningAuctionMoveBidArgs, type OpeningAuctionMoveBidResult, type OpeningAuctionMoveBidSimulationResult, type OpeningAuctionOwnerBidInfo, type OpeningAuctionOwnerBidStatus, OpeningAuctionPhase, type OpeningAuctionPhaseChangedEvent, type OpeningAuctionPosition, OpeningAuctionPositionManager, type OpeningAuctionQuoteFromTokenAmountArgs, type OpeningAuctionQuoteFromTokenAmountResult, type OpeningAuctionSettlementData, type OpeningAuctionState, OpeningAuctionStatus, type OpeningAuctionWatchBidPlacedOptions, type OpeningAuctionWatchBidStatusOptions, type OpeningAuctionWatchBidWithdrawnOptions, type OpeningAuctionWatchEstimatedClearingTickOptions, type OpeningAuctionWatchIncentivesClaimedOptions, type OpeningAuctionWatchPhaseChangeOptions, type OpeningAuctionWatchSettlementOptions, type OpeningAuctionWithdrawFullBidArgs, type OpeningAuctionWithdrawFullBidResult, type OpeningAuctionWithdrawFullBidSimulationResult, type ParseAirlockCreateReceiptParams, type PoolInfo, type PrepareCreateMulticurveOptions, type PreparedCreateTransactionClient, type PreparedMulticurveCreate, type PreparedMulticurveDevBuy, type PreparedMulticurveIdentity, type PreparedMulticurveTransaction, type ProceedsSplitConfig, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookInitializer, type RehypeDopplerHookInitializerConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type RehypePendingFees, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, type SimulatedMulticurveCreate, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type StreamableFeesConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, TopUpDistributor, type TopUpParams, type TopUpSimulationResult, type TopUpTransaction, type UniswapV2MigrationConfig, type UniswapV2SplitMigrationConfig, type UniswapV4MigrationConfig, type UniswapV4SplitMigrationConfig, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VerifiedMulticurveCreate, type VestingAllocationConfig, type VestingConfig, type VestingScheduleConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, derc20V2Abi, dopplerDN404Abi, dopplerERC20V1Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookInitializerData, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, feeClaimsInitializerAbi, feesManagerAbi, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxLiquiditySafeMulticurveTickUpper, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizeBeneficiaries, normalizePoolKey, normalizeRehypeDopplerHookInitializerConfig, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, parseAirlockCreateReceipt, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookInitializerAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sortBeneficiaries, sqrtPriceX96ToPrice, streamableFeesLockerAbi, streamableFeesLockerV2Abi, tickToMarketCap, tickToPrice, tokenPriceToRatio, topUpDistributorAbi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, verifyPreparedCreateExecution, verifyPreparedCreateReceipt, weth9Abi };
|