### Clanker v4.0.0 Core Contracts Source: https://context7_llms Documentation for the core smart contracts of Clanker version 4.0.0. This includes details on deployment parameters, fee management, and various extensions that enhance token functionality. ```APIDOC ClankerFeeLocker: Description: Manages fees for Clanker tokens. Methods: - lockFees(amountBase, amountQuote): Locks specified amounts of base and quote tokens. - unlockFees(): Unlocks accumulated fees. - getLockedFees(): Retrieves the current locked fee amounts. ClankerLpLockerFeeConversion [Deprecated]: Description: Handles conversion of LP tokens to fees. This contract is deprecated. ClankerLpLockerFeeConvsersion: Description: Handles conversion of LP tokens to fees. Methods: - convertLpToFees(lpTokenAmount): Converts a given amount of LP tokens into fees. - getFeeDistribution(): Returns the current fee distribution parameters. ClankerVault: Description: Manages token vaults, potentially for holding or distributing assets. Methods: - deposit(token, amount): Deposits a specified amount of a token into the vault. - withdraw(token, amount): Withdraws a specified amount of a token from the vault. - getBalance(token): Retrieves the balance of a specific token in the vault. ClankerAirdrop: Description: Facilitates the distribution of tokens via airdrops. Methods: - createAirdrop(token, recipients, amounts): Creates a new airdrop campaign. - claimAirdrop(airdropId): Allows a recipient to claim their airdrop tokens. - getAirdropDetails(airdropId): Retrieves details of a specific airdrop campaign. ClankerUniv4EthDevBuy: Description: Handles developer buy operations, potentially for purchasing tokens using ETH. Methods: - devBuy(token, amount): Executes a developer buy transaction. - setDevBuyRate(rate): Sets the rate for developer buys. ClankerHook: Description: A general hook mechanism for extending Clanker contract functionality. ClankerHookStaticFee: Description: A specific hook implementation for managing static fees. Methods: - setStaticFee(feePercentage): Sets a static fee percentage. - getStaticFee(): Retrieves the current static fee percentage. ``` -------------------------------- ### Authenticated API Endpoints Source: https://context7_llms Documentation for API endpoints requiring authentication on Clanker. These endpoints allow users to perform actions such as deploying tokens, managing data, and retrieving sensitive information. ```APIDOC POST /tokens/deploy/v4.0.0 Description: Deploys a new token on Clanker v4.0.0. Authentication: Required. Request Body: - deploymentConfig (object): Configuration parameters for token deployment. Returns: - Transaction receipt or token details upon successful deployment. GET /tokens/{address} Description: Retrieves detailed information about a Clanker token using its contract address. Authentication: Required. Parameters: - address (string): The contract address of the Clanker token. Returns: - Detailed token object. GET /tokens/deployed-by/{address} Description: Retrieves all tokens deployed by a specific Ethereum address. Authentication: Required. Parameters: - address (string): The Ethereum address that deployed the tokens. Returns: - Array of token objects deployed by the specified address. GET /rewards/estimated/{poolAddress} Description: Gets estimated rewards for a specific token pool address. Authentication: Required. Parameters: - poolAddress (string): The address of the token pool. Returns: - Estimated rewards object. GET /fees/uncollected/{contractAddress} Description: Gets estimated uncollected fees (in base and quote tokens) for a specific token contract. Authentication: Required. Parameters: - contractAddress (string): The contract address of the token. Returns: - Object containing estimated uncollected fees. POST /tokens/deploy/v3.1.0 Description: Deploys a new token with Clanker's standard configuration (v3.1.0). Authentication: Required. Request Body: - standardConfig (object): Standard configuration parameters. Returns: - Transaction receipt or token details. POST /tokens/deploy/v3.1.0/with-splits Description: Deploys a new token with standard configuration and custom split configurations for reward distribution (v3.1.0). Authentication: Required. Request Body: - standardConfig (object): Standard configuration parameters. - splitsConfig (object): Custom split configurations for reward distribution. Returns: - Transaction receipt or token details. ``` -------------------------------- ### Public API Endpoints Source: https://context7_llms Documentation for publicly accessible API endpoints on Clanker. This section details how to interact with Clanker's services without requiring authentication, typically for read-only operations or general information retrieval. ```APIDOC GET /tokens Description: Retrieves a list of available tokens. Parameters: - query (string, optional): Search query for tokens. - limit (integer, optional): Maximum number of tokens to return. - offset (integer, optional): Number of tokens to skip. Returns: - Array of token objects, each containing token details. GET /tokens/search Description: [PLANNED EOL] Retrieves tokens using a search query. Note: This endpoint is planned for End-of-Life. Use GET /tokens instead. Parameters: - q (string): The search query. Returns: - Array of token objects. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.