Deployment Config
Documentation of v4's Token Deployment Parameters
Token Deployment
/**
* Deployment function for new Clanker token launches. Callable by anyone.
**/
function deployToken(DeploymentConfig memory deploymentConfig)
external
payable
returns (address tokenAddress);
/**
* Configuration settings for token creation. Explanation of fields defined below.
*/
struct DeploymentConfig {
TokenConfig tokenConfig;
PoolConfig poolConfig;
LockerConfig lockerConfig;
MevModuleConfig mevModuleConfig;
ExtensionConfig[] extensionConfigs;
}
struct TokenConfig {
address tokenAdmin;
string name;
string symbol;
bytes32 salt;
string image;
string metadata;
string context;
uint256 originatingChainId;
}
struct PoolConfig {
address hook;
address pairedToken;
int24 tickIfToken0IsClanker;
int24 tickSpacing;
bytes poolData;
}
struct LockerConfig {
address locker;
// reward info
address[] rewardAdmins;
address[] rewardRecipients;
uint16[] rewardBps;
// liquidity placement info
int24[] tickLower;
int24[] tickUpper;
uint16[] positionBps;
bytes lockerData;
}
struct ExtensionConfig {
address extension;
uint256 msgValue;
uint16 extensionBps;
bytes extensionData;
}
struct MevModuleConfig {
address mevModule;
bytes mevModuleData;
}Token Config
Pool Config
Locker Config
Extension Config
MEV Module Config
Last updated