DeDust Hub
Technical Reference

Meme Factory

Messages

Message DeployMeme

Deploys a new meme token using one of the predefined deployment presets.

The operation deploys a Meme contract with the provided metadata, initializes its bonding curve configuration from the selected preset, and optionally performs an initial token purchase on behalf of the creator.

Affiliate partner and referrer configurations may also be attached for fee sharing and attribution.

struct (0x6ff416dc) DeployMemeMessage {
    queryId: uint64
    presetId: uint4
    metadata: MemeMetadata
    initialBuy: coins
    partnerConfig: PartnerConfig?
    referrerConfig: ReferrerConfig?
}
ParameterTypeDescription
queryIduint64Arbitrary tracing identifier for the message.
presetIduint4ID of the deployment preset used for the meme token configuration. See Meme Presets.
metadataMemeMetadataMetadata describing the token, such as name, symbol, image, and description.
initialBuycoinsAmount used for the creator’s initial token purchase.
partnerConfigPartnerConfig?Optional Affiliate Program partner configuration.
referrerConfigReferrerConfig?Optional Affiliate Program referrer configuration.

Message DeployCustomizedMeme

Creates and deploys a meme token with custom tokenomics and liquidity migration settings.

This operation gives full control over the bonding curve configuration, fundraising target, fee structure, partner revenue sharing, and post-graduation CPMM pool parameters.

Unlike DeployMeme, which uses a predefined preset, DeployCustomizedMeme allows configuring each economic parameter individually.

Once the fundraising target is reached, the token graduates and liquidity is migrated into a CPMM pool using the provided pool configuration.

Message is supported by Meme Factory v3.

struct (0x632f5d1c) DeployCustomizedMemeMessage {
    queryId: uint64
    totalSupplyPresetId: uint4
    baseFeePresetId: uint4
    raisingFunds: coins
    onSellSupplyPercent: uint8
    partnerAddress: address
    partnerFeeBps: uint16
    poolPartnerFeeBps: uint16
    poolBaseFeePresetId: uint16
    poolLiquidityOwnerAddress: address?
    metadataUri: string
    initialBuy: coins
    partnerConfig: Cell<PartnerConfig>?
    referrerConfig: Cell<ReferrerConfig>?
}
ParameterTypeDescription
queryIduint64Arbitrary tracing identifier for the message.
totalSupplyPresetIduint4ID of the total supply preset. See Total Supply Presets.
baseFeePresetIduint4ID of the base fee preset. See Fee Presets.
raisingFundscoinsRequired raise amount for graduation (excludes migration fee). Range: 800 TON – 1,000,000 TON.
onSellSupplyPercentuint8Percentage of the token supply allocated for bonding curve sales. Valid range: 60–80%.
partnerAddressaddressAddress eligible to receive partner fees from bonding curve sales and the CPMM pool after graduation.
partnerFeeBpsuint16Partner’s share of the base fee (in basis points). Maximum: 60%.
poolPartnerFeeBpsuint16Partner’s share of the base fee (in basis points) from the CPMM pool after migration. Maximum: 40%.
poolBaseFeePresetIduint16Fee preset ID for the migrated CPMM pool.
poolLiquidityOwnerAddressaddress? = nullCustom owner of the migrated liquidity. Defaults to the creator if not provided.
metadataUristringURI pointing to the token’s metadata.
initialBuycoinsAmount of the creator's initial token purchase.
partnerConfigCell<PartnerConfig>?Configuration data for the Affiliate Program partner.
referrerConfigCell<ReferrerConfig>?Configuration data for the Affiliate Program referrer.

Presets

Meme Presets

Common Parameters:

  • Migration Fee - 50 TON
  • Total Supply - 1 billion tokens

Presets 6-9 are available only since v2.

Preset IDRaising FundsTrading FeeMigration SupplyMigration Market Cap 1
31000 TON1%20% (200 millions)5000 TON
41000 TON3%20% (200 millions)5000 TON
51000 TON5%20% (200 millions)5000 TON
61500 TON1%25% (250 millions)6000 TON
71500 TON3%25% (250 millions)6000 TON
82500 TON1%25% (250 millions)10 000 TON
92500 TON3%25% (250 millions)10 000 TON

Total Supply Presets

Preset IDTotal Supply (tokens)
0100 millions
11 billion
210 billions

Fee Presets

Preset IDFee
00.1 %
10.25 %
20.5 %
31 %
42 %
53 %
65 %
710 %

Footnotes

  1. Market cap immediately after migration to the DeDust CPMM v2 pool.

On this page