clanker-sdk 4.1.20 → 4.1.22
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/.env.example +7 -1
- package/dist/{clankerTokenV4-BoDH1QfY.d.ts → clankerTokenV4-K5Wc0bcj.d.ts} +20 -1
- package/dist/cli/cli.js +633 -4
- package/dist/cli/create-clanker.js +624 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +25 -2
- package/dist/v3/index.d.ts +1381 -1
- package/dist/v3/index.js +623 -2
- package/dist/v4/extensions/index.d.ts +2 -2
- package/dist/v4/extensions/index.js +7 -2
- package/dist/v4/index.d.ts +3 -3
- package/dist/v4/index.js +116 -24
- package/dist/{write-clanker-contracts-DZjOiPlv.d.ts → write-clanker-contracts-CvBfOw1h.d.ts} +671 -1
- package/package.json +1 -1
package/.env.example
CHANGED
|
@@ -5,4 +5,10 @@ PRIVATE_KEY=0x123...
|
|
|
5
5
|
FACTORY_ADDRESS=0x123...
|
|
6
6
|
|
|
7
7
|
# Optional: Custom RPC URL (if not provided, will use default Base RPC)
|
|
8
|
-
RPC_URL=https://...
|
|
8
|
+
RPC_URL=https://...
|
|
9
|
+
|
|
10
|
+
# Necessary for tests to run
|
|
11
|
+
TESTS_RPC_URL=https://...
|
|
12
|
+
|
|
13
|
+
# Necessary for tests to run
|
|
14
|
+
TESTS_RPC_URL_SEPOLIA=https://...
|
|
@@ -22,6 +22,9 @@ type RelatedV4 = {
|
|
|
22
22
|
feeLocker: `0x${string}`;
|
|
23
23
|
feeStaticHook: `0x${string}`;
|
|
24
24
|
feeDynamicHook: `0x${string}`;
|
|
25
|
+
mevModuleV2?: `0x${string}`;
|
|
26
|
+
feeStaticHookV2?: `0x${string}`;
|
|
27
|
+
feeDynamicHookV2?: `0x${string}`;
|
|
25
28
|
};
|
|
26
29
|
type RelatedAddresses = RelatedV0 | RelatedV1 | RelatedV2 | RelatedV3 | RelatedV4;
|
|
27
30
|
type ClankerDeployment<T extends RelatedAddresses = RelatedAddresses> = {
|
|
@@ -5301,9 +5304,12 @@ declare const CLANKERS: {
|
|
|
5301
5304
|
airdrop: "0xf652B3610D75D81871bf96DB50825d9af28391E0";
|
|
5302
5305
|
devbuy: "0x1331f0788F9c08C8F38D52c7a1152250A9dE00be";
|
|
5303
5306
|
mevModule: "0xFdc013ce003980889cFfd66b0c8329545ae1d1E8";
|
|
5307
|
+
mevModuleV2: "0xebB25BB797D82CB78E1bc70406b13233c0854413";
|
|
5304
5308
|
feeLocker: "0xF3622742b1E446D92e45E22923Ef11C2fcD55D68";
|
|
5305
5309
|
feeStaticHook: "0xDd5EeaFf7BD481AD55Db083062b13a3cdf0A68CC";
|
|
5310
|
+
feeStaticHookV2: "0xb429d62f8f3bFFb98CdB9569533eA23bF0Ba28CC";
|
|
5306
5311
|
feeDynamicHook: "0x34a45c6B61876d739400Bd71228CbcbD4F53E8cC";
|
|
5312
|
+
feeDynamicHookV2: "0xd60D6B218116cFd801E28F78d011a203D2b068Cc";
|
|
5307
5313
|
};
|
|
5308
5314
|
};
|
|
5309
5315
|
readonly clanker_v4_sepolia: {
|
|
@@ -6136,7 +6142,9 @@ declare const CLANKERS: {
|
|
|
6136
6142
|
mevModule: "0x261fE99C4D0D41EE8d0e594D11aec740E8354ab0";
|
|
6137
6143
|
feeLocker: "0x42A95190B4088C88Dd904d930c79deC1158bF09D";
|
|
6138
6144
|
feeStaticHook: "0xDFcCcfBeef7F3Fc8b16027Ce6feACb48024068cC";
|
|
6145
|
+
feeStaticHookV2: "0x11b51DBC2f7F683b81CeDa83DC0078D57bA328cc";
|
|
6139
6146
|
feeDynamicHook: "0xE63b0A59100698f379F9B577441A561bAF9828cc";
|
|
6147
|
+
feeDynamicHookV2: "0xBF4983dC0f2F8FE78C5cf8Fc621f294A993728Cc";
|
|
6140
6148
|
};
|
|
6141
6149
|
};
|
|
6142
6150
|
readonly clanker_v4_arbitrum: {
|
|
@@ -7849,6 +7857,11 @@ declare const clankerTokenV4: z.ZodObject<{
|
|
|
7849
7857
|
messageId: z.ZodOptional<z.ZodString>;
|
|
7850
7858
|
id: z.ZodOptional<z.ZodString>;
|
|
7851
7859
|
}, z.core.$strict>>;
|
|
7860
|
+
/** [v4.1+ only] Custom developer extension */
|
|
7861
|
+
poolExtension: z.ZodPrefault<z.ZodObject<{
|
|
7862
|
+
address: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
7863
|
+
initData: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
7864
|
+
}, z.core.$strip>>;
|
|
7852
7865
|
/** Pool information */
|
|
7853
7866
|
pool: z.ZodPrefault<z.ZodObject<{
|
|
7854
7867
|
pairedToken: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"WETH">, z.ZodCustom<`0x${string}`, `0x${string}`>]>>;
|
|
@@ -7907,6 +7920,12 @@ declare const clankerTokenV4: z.ZodObject<{
|
|
|
7907
7920
|
feeControlNumerator: z.ZodNumber;
|
|
7908
7921
|
decayFilterBps: z.ZodNumber;
|
|
7909
7922
|
}, z.core.$strip>]>>;
|
|
7923
|
+
/** [v4.1+ only] Sniper fees */
|
|
7924
|
+
sniperFees: z.ZodPrefault<z.ZodObject<{
|
|
7925
|
+
startingFee: z.ZodNumber;
|
|
7926
|
+
endingFee: z.ZodNumber;
|
|
7927
|
+
secondsToDecay: z.ZodNumber;
|
|
7928
|
+
}, z.core.$strip>>;
|
|
7910
7929
|
/** Rewards & recipients for rewards generated by the token. */
|
|
7911
7930
|
rewards: z.ZodOptional<z.ZodObject<{
|
|
7912
7931
|
recipients: z.ZodArray<z.ZodObject<{
|
|
@@ -7927,7 +7946,7 @@ type ClankerTokenV4 = z.input<typeof clankerTokenV4>;
|
|
|
7927
7946
|
* @param clankerConfig A clanker configuration
|
|
7928
7947
|
* @returns A correctly formatted fee configuration
|
|
7929
7948
|
*/
|
|
7930
|
-
declare function encodeFeeConfig(
|
|
7949
|
+
declare function encodeFeeConfig(tokenConfig: z.infer<typeof clankerTokenV4>, clankerConfig: ClankerDeployment<RelatedV4>): {
|
|
7931
7950
|
hook: Address;
|
|
7932
7951
|
poolData: `0x${string}`;
|
|
7933
7952
|
};
|