@whetstone-research/doppler-sdk 1.0.4 → 1.0.5

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.
@@ -1,4 +1,4 @@
1
- import { Address, WalletClient, Hex, Hash, Account } from 'viem';
1
+ import { Address, WalletClient, Hex, Hash, Account, PublicClient } from 'viem';
2
2
  import { mainnet, sepolia, base, baseSepolia, ink, unichain } from 'viem/chains';
3
3
 
4
4
  declare const CHAIN_IDS: {
@@ -17,6 +17,8 @@ type SupportedChainKey = keyof typeof CHAIN_IDS;
17
17
  interface ChainAddresses {
18
18
  airlock: Address;
19
19
  tokenFactory: Address;
20
+ derc20V2Factory?: Address;
21
+ derc20V2Implementation?: Address;
20
22
  v3Initializer: Address;
21
23
  v3Quoter: Address;
22
24
  lockableV3Initializer?: Address;
@@ -762,6 +764,14 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
762
764
  private customMigrationEncoder?;
763
765
  private multicurveBundlerSupport;
764
766
  constructor(publicClient: SupportedPublicClient, walletClient: WalletClient | undefined, chainId: C);
767
+ private usesDerc20V2Vesting;
768
+ private resolveVestingAllocations;
769
+ private resolveStandardTokenFactoryMode;
770
+ private assertStandardTokenFactoryCompatibility;
771
+ private buildStandardTokenFactoryData;
772
+ private encodeStandardTokenFactoryData;
773
+ private computeSoladyCloneInitCodeHash;
774
+ private computeStandardTokenInitHash;
765
775
  /**
766
776
  * Set a custom migration data encoder function
767
777
  * @param encoder Custom function to encode migration data
@@ -959,6 +969,7 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
959
969
  */
960
970
  private normalizeMulticurveCurves;
961
971
  private roundMaxTickDown;
972
+ private validateVestingConfig;
962
973
  private validateStaticAuctionParams;
963
974
  /**
964
975
  * Validate dynamic auction parameters
@@ -2180,11 +2191,15 @@ declare class Quoter {
2180
2191
  * and minting-related state information.
2181
2192
  */
2182
2193
  declare class Derc20 {
2183
- private publicClient;
2184
- private walletClient?;
2185
- private address;
2186
- private get rpc();
2187
- private static splitSignature;
2194
+ protected publicClient: SupportedPublicClient;
2195
+ protected walletClient?: WalletClient;
2196
+ protected address: Address;
2197
+ protected get rpc(): PublicClient;
2198
+ protected static splitSignature(signature: `0x${string}`): {
2199
+ v: number;
2200
+ r: `0x${string}`;
2201
+ s: `0x${string}`;
2202
+ };
2188
2203
  constructor(publicClient: SupportedPublicClient, walletClient: WalletClient | undefined, address: Address);
2189
2204
  /** Get the human-readable name of the token */
2190
2205
  getName(): Promise<string>;
@@ -2270,6 +2285,27 @@ declare class Derc20 {
2270
2285
  }): Promise<`0x${string}`>;
2271
2286
  }
2272
2287
 
2288
+ declare class Derc20V2 extends Derc20 {
2289
+ getVestingScheduleCount(): Promise<bigint>;
2290
+ getVestingSchedule(scheduleId: bigint): Promise<{
2291
+ cliffDuration: bigint;
2292
+ duration: bigint;
2293
+ }>;
2294
+ getScheduleIdsOf(beneficiary: Address): Promise<bigint[]>;
2295
+ getTotalAllocatedOf(beneficiary: Address): Promise<bigint>;
2296
+ getAvailableVestedAmountForSchedule(beneficiary: Address, scheduleId: bigint): Promise<bigint>;
2297
+ getVestingDataForSchedule(beneficiary: Address, scheduleId: bigint): Promise<{
2298
+ totalAmount: bigint;
2299
+ releasedAmount: bigint;
2300
+ }>;
2301
+ releaseSchedule(scheduleId: bigint, options?: {
2302
+ gas?: bigint;
2303
+ }): Promise<`0x${string}`>;
2304
+ releaseFor(beneficiary: Address, scheduleId?: bigint, options?: {
2305
+ gas?: bigint;
2306
+ }): Promise<`0x${string}`>;
2307
+ }
2308
+
2273
2309
  /**
2274
2310
  * A class providing read-only access to Ethereum (ETH) token information and balances.
2275
2311
  *
@@ -3048,6 +3084,11 @@ declare class DopplerSDK<C extends SupportedChainId = SupportedChainId> {
3048
3084
  * @param tokenAddress The address of the DERC20 token
3049
3085
  */
3050
3086
  getDerc20(tokenAddress: Address): Derc20;
3087
+ /**
3088
+ * Get a DERC20 V2 token instance for interacting with cliffed / multi-schedule vesting tokens
3089
+ * @param tokenAddress The address of the DERC20 V2 token
3090
+ */
3091
+ getDerc20V2(tokenAddress: Address): Derc20V2;
3051
3092
  /**
3052
3093
  * Get information about a static auction pool
3053
3094
  * @param poolAddress The address of the pool
@@ -3352,7 +3393,7 @@ declare function calculateFDV(totalSupply: bigint, pricePerToken: number, ethPri
3352
3393
  */
3353
3394
  declare function estimateSlippage(amountIn: bigint, liquidity: bigint, currentTick: number, fee: number): number;
3354
3395
 
3355
- type TokenVariant = 'standard' | 'doppler404';
3396
+ type TokenVariant = 'standard' | 'standard-v2' | 'doppler404';
3356
3397
  interface TokenAddressHookConfig {
3357
3398
  deployer: Address;
3358
3399
  initCodeHash: Hash;
@@ -3374,6 +3415,7 @@ interface TokenAddressMiningParams {
3374
3415
  tokenData: Hex;
3375
3416
  tokenVariant?: TokenVariant;
3376
3417
  customBytecode?: Hex;
3418
+ v2Implementation?: Address;
3377
3419
  maxIterations?: number;
3378
3420
  startSalt?: bigint;
3379
3421
  hook?: TokenAddressHookConfig;
@@ -4851,6 +4893,595 @@ declare const derc20Abi: readonly [{
4851
4893
  readonly internalType: "uint256";
4852
4894
  }];
4853
4895
  }];
4896
+ declare const derc20V2Abi: readonly [{
4897
+ readonly type: "function";
4898
+ readonly name: "allowance";
4899
+ readonly inputs: readonly [{
4900
+ readonly name: "owner";
4901
+ readonly type: "address";
4902
+ readonly internalType: "address";
4903
+ }, {
4904
+ readonly name: "spender";
4905
+ readonly type: "address";
4906
+ readonly internalType: "address";
4907
+ }];
4908
+ readonly outputs: readonly [{
4909
+ readonly name: "";
4910
+ readonly type: "uint256";
4911
+ readonly internalType: "uint256";
4912
+ }];
4913
+ readonly stateMutability: "view";
4914
+ }, {
4915
+ readonly type: "function";
4916
+ readonly name: "approve";
4917
+ readonly inputs: readonly [{
4918
+ readonly name: "spender";
4919
+ readonly type: "address";
4920
+ readonly internalType: "address";
4921
+ }, {
4922
+ readonly name: "value";
4923
+ readonly type: "uint256";
4924
+ readonly internalType: "uint256";
4925
+ }];
4926
+ readonly outputs: readonly [{
4927
+ readonly name: "";
4928
+ readonly type: "bool";
4929
+ readonly internalType: "bool";
4930
+ }];
4931
+ readonly stateMutability: "nonpayable";
4932
+ }, {
4933
+ readonly type: "function";
4934
+ readonly name: "delegate";
4935
+ readonly inputs: readonly [{
4936
+ readonly name: "delegatee";
4937
+ readonly type: "address";
4938
+ readonly internalType: "address";
4939
+ }];
4940
+ readonly outputs: readonly [];
4941
+ readonly stateMutability: "nonpayable";
4942
+ }, {
4943
+ readonly type: "function";
4944
+ readonly name: "delegateBySig";
4945
+ readonly inputs: readonly [{
4946
+ readonly name: "delegatee";
4947
+ readonly type: "address";
4948
+ readonly internalType: "address";
4949
+ }, {
4950
+ readonly name: "nonce";
4951
+ readonly type: "uint256";
4952
+ readonly internalType: "uint256";
4953
+ }, {
4954
+ readonly name: "expiry";
4955
+ readonly type: "uint256";
4956
+ readonly internalType: "uint256";
4957
+ }, {
4958
+ readonly name: "v";
4959
+ readonly type: "uint8";
4960
+ readonly internalType: "uint8";
4961
+ }, {
4962
+ readonly name: "r";
4963
+ readonly type: "bytes32";
4964
+ readonly internalType: "bytes32";
4965
+ }, {
4966
+ readonly name: "s";
4967
+ readonly type: "bytes32";
4968
+ readonly internalType: "bytes32";
4969
+ }];
4970
+ readonly outputs: readonly [];
4971
+ readonly stateMutability: "nonpayable";
4972
+ }, {
4973
+ readonly type: "function";
4974
+ readonly name: "delegates";
4975
+ readonly inputs: readonly [{
4976
+ readonly name: "account";
4977
+ readonly type: "address";
4978
+ readonly internalType: "address";
4979
+ }];
4980
+ readonly outputs: readonly [{
4981
+ readonly name: "";
4982
+ readonly type: "address";
4983
+ readonly internalType: "address";
4984
+ }];
4985
+ readonly stateMutability: "view";
4986
+ }, {
4987
+ readonly type: "function";
4988
+ readonly name: "getVotes";
4989
+ readonly inputs: readonly [{
4990
+ readonly name: "account";
4991
+ readonly type: "address";
4992
+ readonly internalType: "address";
4993
+ }];
4994
+ readonly outputs: readonly [{
4995
+ readonly name: "";
4996
+ readonly type: "uint256";
4997
+ readonly internalType: "uint256";
4998
+ }];
4999
+ readonly stateMutability: "view";
5000
+ }, {
5001
+ readonly type: "function";
5002
+ readonly name: "getPastVotes";
5003
+ readonly inputs: readonly [{
5004
+ readonly name: "account";
5005
+ readonly type: "address";
5006
+ readonly internalType: "address";
5007
+ }, {
5008
+ readonly name: "timepoint";
5009
+ readonly type: "uint256";
5010
+ readonly internalType: "uint256";
5011
+ }];
5012
+ readonly outputs: readonly [{
5013
+ readonly name: "";
5014
+ readonly type: "uint256";
5015
+ readonly internalType: "uint256";
5016
+ }];
5017
+ readonly stateMutability: "view";
5018
+ }, {
5019
+ readonly type: "function";
5020
+ readonly name: "getPastTotalSupply";
5021
+ readonly inputs: readonly [{
5022
+ readonly name: "timepoint";
5023
+ readonly type: "uint256";
5024
+ readonly internalType: "uint256";
5025
+ }];
5026
+ readonly outputs: readonly [{
5027
+ readonly name: "";
5028
+ readonly type: "uint256";
5029
+ readonly internalType: "uint256";
5030
+ }];
5031
+ readonly stateMutability: "view";
5032
+ }, {
5033
+ readonly type: "function";
5034
+ readonly name: "nonces";
5035
+ readonly inputs: readonly [{
5036
+ readonly name: "owner";
5037
+ readonly type: "address";
5038
+ readonly internalType: "address";
5039
+ }];
5040
+ readonly outputs: readonly [{
5041
+ readonly name: "";
5042
+ readonly type: "uint256";
5043
+ readonly internalType: "uint256";
5044
+ }];
5045
+ readonly stateMutability: "view";
5046
+ }, {
5047
+ readonly type: "function";
5048
+ readonly name: "DOMAIN_SEPARATOR";
5049
+ readonly inputs: readonly [];
5050
+ readonly outputs: readonly [{
5051
+ readonly name: "";
5052
+ readonly type: "bytes32";
5053
+ readonly internalType: "bytes32";
5054
+ }];
5055
+ readonly stateMutability: "view";
5056
+ }, {
5057
+ readonly type: "function";
5058
+ readonly name: "balanceOf";
5059
+ readonly inputs: readonly [{
5060
+ readonly name: "account";
5061
+ readonly type: "address";
5062
+ readonly internalType: "address";
5063
+ }];
5064
+ readonly outputs: readonly [{
5065
+ readonly name: "";
5066
+ readonly type: "uint256";
5067
+ readonly internalType: "uint256";
5068
+ }];
5069
+ readonly stateMutability: "view";
5070
+ }, {
5071
+ readonly type: "function";
5072
+ readonly name: "computeAvailableVestedAmount";
5073
+ readonly inputs: readonly [{
5074
+ readonly name: "account";
5075
+ readonly type: "address";
5076
+ readonly internalType: "address";
5077
+ }];
5078
+ readonly outputs: readonly [{
5079
+ readonly name: "";
5080
+ readonly type: "uint256";
5081
+ readonly internalType: "uint256";
5082
+ }];
5083
+ readonly stateMutability: "view";
5084
+ }, {
5085
+ readonly type: "function";
5086
+ readonly name: "currentYearStart";
5087
+ readonly inputs: readonly [];
5088
+ readonly outputs: readonly [{
5089
+ readonly name: "";
5090
+ readonly type: "uint256";
5091
+ readonly internalType: "uint256";
5092
+ }];
5093
+ readonly stateMutability: "view";
5094
+ }, {
5095
+ readonly type: "function";
5096
+ readonly name: "decimals";
5097
+ readonly inputs: readonly [];
5098
+ readonly outputs: readonly [{
5099
+ readonly name: "";
5100
+ readonly type: "uint8";
5101
+ readonly internalType: "uint8";
5102
+ }];
5103
+ readonly stateMutability: "view";
5104
+ }, {
5105
+ readonly type: "function";
5106
+ readonly name: "getVestingDataOf";
5107
+ readonly inputs: readonly [{
5108
+ readonly name: "account";
5109
+ readonly type: "address";
5110
+ readonly internalType: "address";
5111
+ }];
5112
+ readonly outputs: readonly [{
5113
+ readonly name: "totalAmount";
5114
+ readonly type: "uint256";
5115
+ readonly internalType: "uint256";
5116
+ }, {
5117
+ readonly name: "releasedAmount";
5118
+ readonly type: "uint256";
5119
+ readonly internalType: "uint256";
5120
+ }];
5121
+ readonly stateMutability: "view";
5122
+ }, {
5123
+ readonly type: "function";
5124
+ readonly name: "isPoolUnlocked";
5125
+ readonly inputs: readonly [];
5126
+ readonly outputs: readonly [{
5127
+ readonly name: "";
5128
+ readonly type: "bool";
5129
+ readonly internalType: "bool";
5130
+ }];
5131
+ readonly stateMutability: "view";
5132
+ }, {
5133
+ readonly type: "function";
5134
+ readonly name: "lastMintTimestamp";
5135
+ readonly inputs: readonly [];
5136
+ readonly outputs: readonly [{
5137
+ readonly name: "";
5138
+ readonly type: "uint256";
5139
+ readonly internalType: "uint256";
5140
+ }];
5141
+ readonly stateMutability: "view";
5142
+ }, {
5143
+ readonly type: "function";
5144
+ readonly name: "name";
5145
+ readonly inputs: readonly [];
5146
+ readonly outputs: readonly [{
5147
+ readonly name: "";
5148
+ readonly type: "string";
5149
+ readonly internalType: "string";
5150
+ }];
5151
+ readonly stateMutability: "view";
5152
+ }, {
5153
+ readonly type: "function";
5154
+ readonly name: "pool";
5155
+ readonly inputs: readonly [];
5156
+ readonly outputs: readonly [{
5157
+ readonly name: "";
5158
+ readonly type: "address";
5159
+ readonly internalType: "address";
5160
+ }];
5161
+ readonly stateMutability: "view";
5162
+ }, {
5163
+ readonly type: "function";
5164
+ readonly name: "release";
5165
+ readonly inputs: readonly [];
5166
+ readonly outputs: readonly [];
5167
+ readonly stateMutability: "nonpayable";
5168
+ }, {
5169
+ readonly type: "function";
5170
+ readonly name: "symbol";
5171
+ readonly inputs: readonly [];
5172
+ readonly outputs: readonly [{
5173
+ readonly name: "";
5174
+ readonly type: "string";
5175
+ readonly internalType: "string";
5176
+ }];
5177
+ readonly stateMutability: "view";
5178
+ }, {
5179
+ readonly type: "function";
5180
+ readonly name: "tokenURI";
5181
+ readonly inputs: readonly [];
5182
+ readonly outputs: readonly [{
5183
+ readonly name: "";
5184
+ readonly type: "string";
5185
+ readonly internalType: "string";
5186
+ }];
5187
+ readonly stateMutability: "view";
5188
+ }, {
5189
+ readonly type: "function";
5190
+ readonly name: "totalSupply";
5191
+ readonly inputs: readonly [];
5192
+ readonly outputs: readonly [{
5193
+ readonly name: "";
5194
+ readonly type: "uint256";
5195
+ readonly internalType: "uint256";
5196
+ }];
5197
+ readonly stateMutability: "view";
5198
+ }, {
5199
+ readonly type: "function";
5200
+ readonly name: "transfer";
5201
+ readonly inputs: readonly [{
5202
+ readonly name: "to";
5203
+ readonly type: "address";
5204
+ readonly internalType: "address";
5205
+ }, {
5206
+ readonly name: "value";
5207
+ readonly type: "uint256";
5208
+ readonly internalType: "uint256";
5209
+ }];
5210
+ readonly outputs: readonly [{
5211
+ readonly name: "";
5212
+ readonly type: "bool";
5213
+ readonly internalType: "bool";
5214
+ }];
5215
+ readonly stateMutability: "nonpayable";
5216
+ }, {
5217
+ readonly type: "function";
5218
+ readonly name: "transferFrom";
5219
+ readonly inputs: readonly [{
5220
+ readonly name: "from";
5221
+ readonly type: "address";
5222
+ readonly internalType: "address";
5223
+ }, {
5224
+ readonly name: "to";
5225
+ readonly type: "address";
5226
+ readonly internalType: "address";
5227
+ }, {
5228
+ readonly name: "value";
5229
+ readonly type: "uint256";
5230
+ readonly internalType: "uint256";
5231
+ }];
5232
+ readonly outputs: readonly [{
5233
+ readonly name: "";
5234
+ readonly type: "bool";
5235
+ readonly internalType: "bool";
5236
+ }];
5237
+ readonly stateMutability: "nonpayable";
5238
+ }, {
5239
+ readonly type: "function";
5240
+ readonly name: "vestedTotalAmount";
5241
+ readonly inputs: readonly [];
5242
+ readonly outputs: readonly [{
5243
+ readonly name: "";
5244
+ readonly type: "uint256";
5245
+ readonly internalType: "uint256";
5246
+ }];
5247
+ readonly stateMutability: "view";
5248
+ }, {
5249
+ readonly type: "function";
5250
+ readonly name: "vestingDuration";
5251
+ readonly inputs: readonly [];
5252
+ readonly outputs: readonly [{
5253
+ readonly name: "";
5254
+ readonly type: "uint256";
5255
+ readonly internalType: "uint256";
5256
+ }];
5257
+ readonly stateMutability: "view";
5258
+ }, {
5259
+ readonly type: "function";
5260
+ readonly name: "vestingStart";
5261
+ readonly inputs: readonly [];
5262
+ readonly outputs: readonly [{
5263
+ readonly name: "";
5264
+ readonly type: "uint256";
5265
+ readonly internalType: "uint256";
5266
+ }];
5267
+ readonly stateMutability: "view";
5268
+ }, {
5269
+ readonly type: "function";
5270
+ readonly name: "yearlyMintRate";
5271
+ readonly inputs: readonly [];
5272
+ readonly outputs: readonly [{
5273
+ readonly name: "";
5274
+ readonly type: "uint256";
5275
+ readonly internalType: "uint256";
5276
+ }];
5277
+ readonly stateMutability: "view";
5278
+ }, {
5279
+ readonly type: "error";
5280
+ readonly name: "MintingNotStartedYet";
5281
+ readonly inputs: readonly [];
5282
+ }, {
5283
+ readonly type: "error";
5284
+ readonly name: "ExceedsYearlyMintCap";
5285
+ readonly inputs: readonly [];
5286
+ }, {
5287
+ readonly type: "error";
5288
+ readonly name: "NoMintableAmount";
5289
+ readonly inputs: readonly [];
5290
+ }, {
5291
+ readonly type: "error";
5292
+ readonly name: "PoolLocked";
5293
+ readonly inputs: readonly [];
5294
+ }, {
5295
+ readonly type: "error";
5296
+ readonly name: "ArrayLengthsMismatch";
5297
+ readonly inputs: readonly [];
5298
+ }, {
5299
+ readonly type: "error";
5300
+ readonly name: "ReleaseAmountInvalid";
5301
+ readonly inputs: readonly [];
5302
+ }, {
5303
+ readonly type: "error";
5304
+ readonly name: "MaxPreMintPerAddressExceeded";
5305
+ readonly inputs: readonly [{
5306
+ readonly name: "amount";
5307
+ readonly type: "uint256";
5308
+ readonly internalType: "uint256";
5309
+ }, {
5310
+ readonly name: "limit";
5311
+ readonly type: "uint256";
5312
+ readonly internalType: "uint256";
5313
+ }];
5314
+ }, {
5315
+ readonly type: "error";
5316
+ readonly name: "MaxTotalPreMintExceeded";
5317
+ readonly inputs: readonly [{
5318
+ readonly name: "amount";
5319
+ readonly type: "uint256";
5320
+ readonly internalType: "uint256";
5321
+ }, {
5322
+ readonly name: "limit";
5323
+ readonly type: "uint256";
5324
+ readonly internalType: "uint256";
5325
+ }];
5326
+ }, {
5327
+ readonly type: "error";
5328
+ readonly name: "MaxTotalVestedExceeded";
5329
+ readonly inputs: readonly [{
5330
+ readonly name: "amount";
5331
+ readonly type: "uint256";
5332
+ readonly internalType: "uint256";
5333
+ }, {
5334
+ readonly name: "limit";
5335
+ readonly type: "uint256";
5336
+ readonly internalType: "uint256";
5337
+ }];
5338
+ }, {
5339
+ readonly type: "error";
5340
+ readonly name: "VestingNotStartedYet";
5341
+ readonly inputs: readonly [];
5342
+ }, {
5343
+ readonly type: "error";
5344
+ readonly name: "MaxYearlyMintRateExceeded";
5345
+ readonly inputs: readonly [{
5346
+ readonly name: "amount";
5347
+ readonly type: "uint256";
5348
+ readonly internalType: "uint256";
5349
+ }, {
5350
+ readonly name: "limit";
5351
+ readonly type: "uint256";
5352
+ readonly internalType: "uint256";
5353
+ }];
5354
+ }, {
5355
+ readonly type: "function";
5356
+ readonly name: "computeAvailableVestedAmount";
5357
+ readonly inputs: readonly [{
5358
+ readonly name: "beneficiary";
5359
+ readonly type: "address";
5360
+ readonly internalType: "address";
5361
+ }, {
5362
+ readonly name: "scheduleId";
5363
+ readonly type: "uint256";
5364
+ readonly internalType: "uint256";
5365
+ }];
5366
+ readonly outputs: readonly [{
5367
+ readonly name: "";
5368
+ readonly type: "uint256";
5369
+ readonly internalType: "uint256";
5370
+ }];
5371
+ readonly stateMutability: "view";
5372
+ }, {
5373
+ readonly type: "function";
5374
+ readonly name: "getScheduleIdsOf";
5375
+ readonly inputs: readonly [{
5376
+ readonly name: "beneficiary";
5377
+ readonly type: "address";
5378
+ readonly internalType: "address";
5379
+ }];
5380
+ readonly outputs: readonly [{
5381
+ readonly name: "";
5382
+ readonly type: "uint256[]";
5383
+ readonly internalType: "uint256[]";
5384
+ }];
5385
+ readonly stateMutability: "view";
5386
+ }, {
5387
+ readonly type: "function";
5388
+ readonly name: "release";
5389
+ readonly inputs: readonly [{
5390
+ readonly name: "scheduleId";
5391
+ readonly type: "uint256";
5392
+ readonly internalType: "uint256";
5393
+ }];
5394
+ readonly outputs: readonly [];
5395
+ readonly stateMutability: "nonpayable";
5396
+ }, {
5397
+ readonly type: "function";
5398
+ readonly name: "releaseFor";
5399
+ readonly inputs: readonly [{
5400
+ readonly name: "beneficiary";
5401
+ readonly type: "address";
5402
+ readonly internalType: "address";
5403
+ }, {
5404
+ readonly name: "scheduleId";
5405
+ readonly type: "uint256";
5406
+ readonly internalType: "uint256";
5407
+ }];
5408
+ readonly outputs: readonly [];
5409
+ readonly stateMutability: "nonpayable";
5410
+ }, {
5411
+ readonly type: "function";
5412
+ readonly name: "releaseFor";
5413
+ readonly inputs: readonly [{
5414
+ readonly name: "beneficiary";
5415
+ readonly type: "address";
5416
+ readonly internalType: "address";
5417
+ }];
5418
+ readonly outputs: readonly [];
5419
+ readonly stateMutability: "nonpayable";
5420
+ }, {
5421
+ readonly type: "function";
5422
+ readonly name: "totalAllocatedOf";
5423
+ readonly inputs: readonly [{
5424
+ readonly name: "beneficiary";
5425
+ readonly type: "address";
5426
+ readonly internalType: "address";
5427
+ }];
5428
+ readonly outputs: readonly [{
5429
+ readonly name: "";
5430
+ readonly type: "uint256";
5431
+ readonly internalType: "uint256";
5432
+ }];
5433
+ readonly stateMutability: "view";
5434
+ }, {
5435
+ readonly type: "function";
5436
+ readonly name: "vestingOf";
5437
+ readonly inputs: readonly [{
5438
+ readonly name: "beneficiary";
5439
+ readonly type: "address";
5440
+ readonly internalType: "address";
5441
+ }, {
5442
+ readonly name: "scheduleId";
5443
+ readonly type: "uint256";
5444
+ readonly internalType: "uint256";
5445
+ }];
5446
+ readonly outputs: readonly [{
5447
+ readonly name: "totalAmount";
5448
+ readonly type: "uint256";
5449
+ readonly internalType: "uint256";
5450
+ }, {
5451
+ readonly name: "releasedAmount";
5452
+ readonly type: "uint256";
5453
+ readonly internalType: "uint256";
5454
+ }];
5455
+ readonly stateMutability: "view";
5456
+ }, {
5457
+ readonly type: "function";
5458
+ readonly name: "vestingScheduleCount";
5459
+ readonly inputs: readonly [];
5460
+ readonly outputs: readonly [{
5461
+ readonly name: "";
5462
+ readonly type: "uint256";
5463
+ readonly internalType: "uint256";
5464
+ }];
5465
+ readonly stateMutability: "view";
5466
+ }, {
5467
+ readonly type: "function";
5468
+ readonly name: "vestingSchedules";
5469
+ readonly inputs: readonly [{
5470
+ readonly name: "";
5471
+ readonly type: "uint256";
5472
+ readonly internalType: "uint256";
5473
+ }];
5474
+ readonly outputs: readonly [{
5475
+ readonly name: "cliff";
5476
+ readonly type: "uint64";
5477
+ readonly internalType: "uint64";
5478
+ }, {
5479
+ readonly name: "duration";
5480
+ readonly type: "uint64";
5481
+ readonly internalType: "uint64";
5482
+ }];
5483
+ readonly stateMutability: "view";
5484
+ }];
4854
5485
  declare const uniswapV4InitializerAbi: readonly [{
4855
5486
  readonly type: "function";
4856
5487
  readonly name: "encodePoolInitializerData";
@@ -8530,4 +9161,4 @@ declare const rehypeDopplerHookMigratorAbi: readonly [{
8530
9161
 
8531
9162
  declare const VERSION = "1.0.0";
8532
9163
 
8533
- export { ADDRESSES, 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, _default$5 as DopplerBytecode, _default$4 as DopplerDN404Bytecode, DopplerFactory, type DopplerHookMigrationConfig, 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 MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, MulticurvePool, type MulticurvePoolState, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, 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 PoolInfo, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VestingConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizePoolKey, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sqrtPriceX96ToPrice, streamableFeesLockerAbi, tickToMarketCap, tickToPrice, tokenPriceToRatio, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, weth9Abi };
9164
+ export { ADDRESSES, 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$5 as DopplerBytecode, _default$4 as DopplerDN404Bytecode, DopplerFactory, type DopplerHookMigrationConfig, 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 MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, MulticurvePool, type MulticurvePoolState, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, 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 PoolInfo, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VestingConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, derc20V2Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizePoolKey, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sqrtPriceX96ToPrice, streamableFeesLockerAbi, tickToMarketCap, tickToPrice, tokenPriceToRatio, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, weth9Abi };