A toolkit consisting of everything you need to invent innovative token launches on Meteora.
Meet Metsumi, your personal launch assistant engineered to help you launch anything and do any action on Meteora programs with just a few configurations and CLI commands.
- Node.js >= 18.0.0
- pnpm >= 10.0.0
git clone https://github.com/MeteoraAg/meteora-invent.git# Install pnpm if you haven't already
npm install -g pnpm
# Install all dependencies
pnpm installThe studio workspace contains all the actions for interacting with Meteora's programs.
- Copy the
.env.examplefile to.envand configure the environment variables.
cp studio/.env.example studio/.env- (Optional) Start a Local Test Validator
You can also run the studio actions on localnet - http://localhost:8899 with the following command
pnpm studio start-test-validator- Generate a keypair from your private key:
pnpm studio generate-keypair
# For devnet (airdrops 5 SOL)
pnpm studio generate-keypair --network devnet --airdrop
# For localnet (airdrops 5 SOL)
# Ensure that you have already started the local validator with pnpm start-test-validator
pnpm studio generate-keypair --network localnet --airdrop- Configure the config files in the
studio/configdirectory.
- Configure DLMM
- Configure DAMM v2
- Configure DAMM v1
- Configure DBC
- Configure Alpha Vault
Note: You can use the provided example configurations as a starting point. Make sure to replace the placeholders with your actual values.
- (Optional) Airdrop SOL to your generated keypair if you need SOL to test on devnet or localnet:
# Airdrop 5 SOL on devnet
pnpm studio airdrop-sol --network devnet
# Airdrop 5 SOL on localnet
# Ensure that you have already started the local validator with pnpm start-test-validator
pnpm studio airdrop-sol --network localnetConfigure dlmmConfig in dlmm_config.jsonc file and run the following command to create the DLMM
pool.
If you don't have a base mint, you can configure createBaseToken in the config file and run the
following command.
pnpm studio dlmm-create-poolIf you already have a base mint created, you can provide it via the CLI with a --baseMint flag
and run the following command.
pnpm studio dlmm-create-pool --baseMint <YOUR_BASE_MINT_ADDRESS>Configure lfgSeedLiquidity in dlmm_config.jsonc file and run the following command to seed the
liquidity in the already deployed DLMM pool.
Note: You need to ensure that the deployed DLMM pool is not trading yet.
pnpm studio dlmm-seed-liquidity-lfg --baseMint <YOUR_BASE_MINT_ADDRESS>Configure singleBinSeedLiquidity in dlmm_config.jsonc file and run the following command to seed
the liquidity in a single bin in the already deployed DLMM pool.
Note: You need to ensure that the deployed DLMM pool is not trading yet.
pnpm studio dlmm-seed-liquidity-single-bin --baseMint <YOUR_BASE_MINT_ADDRESS>Configure setDlmmPoolStatus in dlmm_config.jsonc file and run the following command to set the
trading status of the DLMM pool. This command is used by the operator of the pool to either enable
or disable trading for the DLMM pool.
pnpm studio dlmm-set-pool-status --poolAddress <YOUR_POOL_ADDRESS>Configure dammV2Config in damm_v2_config.jsonc file and run the following command to create the
DAMM v2 pool.
If you don't have a base mint, you can configure createBaseToken in the config file and run the
following command.
pnpm studio damm-v2-create-balanced-poolIf you already have a base mint, you can provide it via the CLI with a --baseMint flag and run
the following command.
pnpm studio damm-v2-create-balanced-pool --baseMint <YOUR_BASE_MINT_ADDRESS>Configure dammV2Config in damm_v2_config.jsonc file and run the following command to create the
DAMM v2 one-sided pool.
If you don't have a base mint, you can configure createBaseToken in the config file and run the
following command.
pnpm studio damm-v2-create-one-sided-poolIf you already have a base mint, you can provide it via the CLI with a --baseMint flag and run
the following command.
pnpm studio damm-v2-create-one-sided-pool --baseMint <YOUR_BASE_MINT_ADDRESS>Configure splitPosition in damm_v2_config.jsonc file and run the following command to split an
existing position in the already deployed DAMM v2 pool.
pnpm studio damm-v2-split-position --poolAddress <YOUR_POOL_ADDRESS>If you already have an existing position in a DAMM v2 pool with unclaimed fees, you can run the following command to claim the fees.
pnpm studio damm-v2-claim-position-fee --poolAddress <YOUR_POOL_ADDRESS>Configure addLiquidity in damm_v2_config.jsonc file and run the following command to add
liquidity to an existing position in the already deployed DAMM v2 pool.
pnpm studio damm-v2-add-liquidity --poolAddress <YOUR_POOL_ADDRESS>If you already have an existing position in a DAMM v2 pool with liquidity, you can run the following command to remove the liquidity and close the position.
pnpm studio damm-v2-remove-liquidity --poolAddress <YOUR_POOL_ADDRESS>If you already have an existing position in a DAMM v2 pool without liquidity, you can run the following command to close the position.
pnpm studio damm-v2-close-position --poolAddress <YOUR_POOL_ADDRESS>Configure dammV1Config in damm_v1_config.jsonc file and run the following command to create the
DAMM v1 pool.
If you don't have a base mint, you can configure createBaseToken in the config file and run the
following command.
pnpm studio damm-v1-create-poolIf you already have a base mint created, you can provide it via the CLI with a --baseMint flag
and run the following command.
pnpm studio damm-v1-create-pool --baseMint <YOUR_BASE_MINT_ADDRESS>Configure dammV1LockLiquidity in damm_v1_config.jsonc file and run the following command to lock
the liquidity in the already deployed DAMM v1 pool.
pnpm studio damm-v1-lock-liquidity --baseMint <YOUR_BASE_MINT_ADDRESS>Configure stake2EarnFarm in damm_v1_config.jsonc file and run the following command to create
the Stake2Earn farm on top of the already deployed DAMM v1 pool.
pnpm studio damm-v1-create-stake2earn-farm --baseMint <YOUR_BASE_MINT_ADDRESS>Configure dammV1LockLiquidity in damm_v1_config.jsonc file and run the following command to lock
the liquidity in the already deployed DAMM v1 pool with the Stake2Earn farm.
pnpm studio damm-v1-lock-liquidity-stake2earn --baseMint <YOUR_BASE_MINT_ADDRESS>Configure dbcConfig in dbc_config.jsonc file and run the following command to create the DBC
config key. This config key is used to create the DBC pool and contains all the settings for the
pre-graduation and post-graduation pools.
pnpm studio dbc-create-configConfigure dbcPool in dbc_config.jsonc file and run the following command to create the DBC pool.
If you don't have a DBC config key, you can run the following command and the config key + pool will be created together.
pnpm studio dbc-create-poolIf you already have an existing DBC config key, you can provide it via the CLI with a --config
flag and run the following command.
pnpm studio dbc-create-pool --config <YOUR_DBC_CONFIG_KEY>If you already have an existing DBC pool with accumulated fees, you can run the following command
with the --baseMint flag to claim the fees.
pnpm studio dbc-claim-trading-fee --baseMint <YOUR_BASE_MINT_ADDRESS>If you already have an existing DBC pool, with poolState.quoteReserve >
poolConfig.migrationQuoteThreshold (100% bonding curve progress), you can run the following
command with the --baseMint flag to migrate the DBC pool to DAMM v1.
pnpm studio dbc-migrate-to-damm-v1 --baseMint <YOUR_BASE_MINT_ADDRESS>If you already have an existing DBC pool, with poolState.quoteReserve >
poolConfig.migrationQuoteThreshold (100% bonding curve progress), you can run the following
command with the --baseMint flag to migrate the DBC pool to DAMM v2.
pnpm studio dbc-migrate-to-damm-v2 --baseMint <YOUR_BASE_MINT_ADDRESS>Configure dbcSwap in dbc_config.jsonc file and run the following command to swap in the DBC
pool.
pnpm studio dbc-swap --baseMint <YOUR_BASE_MINT_ADDRESS>Configure dbcTransferPoolCreator in dbc_config.jsonc file and run the following command to
transfer the pool creator of the DBC pool.
pnpm studio dbc-transfer-pool-creator --baseMint <YOUR_BASE_MINT_ADDRESS>Configure alphaVault in alpha_vault_config.jsonc file and run the following command to create
the alpha vault with an existing DAMM v1 or DAMM v2 or DLMM pool.
pnpm studio alpha-vault-create --baseMint <YOUR_BASE_MINT_ADDRESS>Configure presaleVault in presale_vault_config.jsonc file and run the following command to
create the presale vault for a specific base token.
pnpm studio presale-vault-create --baseMint <YOUR_BASE_MINT_ADDRESS>A Next.js application template for creating a launchpad.
Copy the .env.example file to .env and configure the environment variables.
cp scaffolds/fun-launch/.env.example scaffolds/fun-launch/.envpnpm install# Run the fun-launch scaffold in development
pnpm --filter @meteora-invent/scaffold/fun-launch dev
# Build the fun-launch scaffold
pnpm --filter @meteora-invent/scaffold/fun-launch buildmeteora-invent/
βββ packages/ # Shared packages
β βββ config/
β βββ eslint/
β βββ prettier/
β βββ typescript/
βββ scaffolds/ # Scaffolds - production-ready frontend application templates
β βββ fun-launch/
βββ studio/ # Studio - a collection of actions for you to innovate and create
βββ config
β βββ alpha_vault_config.jsonc
β βββ damm_v1_config.jsonc
β βββ damm_v2_config.jsonc
β βββ dbc_config.jsonc
β βββ dlmm_config.jsonc
βββ data
β βββ image
β β βββ test-token.jpg
β βββ kv_proof_example.json
β βββ whitelist_wallet_example.csv
βββ LLM.txt
βββ package.json
βββ README.md
βββ src
β βββ actions
β β βββ alpha_vault
β β β βββ create_alpha_vault.ts
β β βββ damm_v1
β β β βββ create_pool.ts
β β β βββ create_stake2earn_farm.ts
β β β βββ lock_liquidity_stake2earn.ts
β β β βββ lock_liquidity.ts
β β βββ damm_v2
β β β βββ add_liquidity.ts
β β β βββ claim_position_fee.ts
β β β βββ close_position.ts
β β β βββ create_balanced_pool.ts
β β β βββ create_one_sided_pool.ts
β β β βββ remove_liquidity.ts
β β β βββ split_position.ts
β β βββ dbc
β β β βββ claim_trading_fee.ts
β β β βββ create_config.ts
β β β βββ create_pool.ts
β β β βββ migrate_damm_v1.ts
β β β βββ migrate_damm_v2.ts
β β β βββ swap.ts
β β β βββ transfer_pool_creator.ts
β β βββ dlmm
β β β βββ create_pool.ts
β β β βββ seed_liquidity_lfg.ts
β β β βββ seed_liquidity_single_bin.ts
β β β βββ set_pool_status.ts
β β βββ presale_vault
β β β βββ create_presale_vault.ts
β β βββ settings
β β βββ airdrop_sol.ts
β β βββ generate_keypair.ts
β βββ helpers
β β βββ accounts.ts
β β βββ cli.ts
β β βββ common.ts
β β βββ config.ts
β β βββ index.ts
β β βββ metadata.ts
β β βββ token.ts
β β βββ transaction.ts
β β βββ utils.ts
β β βββ validation.ts
β βββ lib
β β βββ alpha_vault
β β β βββ merkle_tree
β β β β βββ balance_tree.ts
β β β β βββ index.ts
β β β β βββ merkle_tree.ts
β β β β βββ metadata.ts
β β β βββ index.ts
β β β βββ utils.ts
β β βββ damm_v1
β β β βββ index.ts
β β β βββ stake2earn.ts
β β βββ damm_v2
β β β βββ index.ts
β β βββ dbc
β β β βββ index.ts
β β βββ dlmm
β β βββ index.ts
β βββ tests
β β βββ artifacts
β β β βββ accounts
β β β β βββ 3ifhD4Ywaa8aBZAaQSqYgN4Q1kaFArioLU8uumJMaqkE.json
β β β βββ alpha_vault.so
β β β βββ cp_amm.so
β β β βββ dynamic_amm.so
β β β βββ dynamic_bonding_curve.so
β β β βββ dynamic_fee_sharing.so
β β β βββ dynamic_vault.so
β β β βββ lb_clmm.so
β β β βββ locker.so
β β β βββ metaplex.so
β β βββ keys
β β βββ localnet
β β βββ admin-bossj3JvwiNK7pvjr149DqdtJxf2gdygbcmEPTkb2F1.json
β βββ utils
β βββ constants.ts
β βββ types.ts
- Create a feature branch
- Make your changes
- Run
pnpm formatandpnpm lint - Submit a pull request
ISC
