bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 70쪽
ovative token launches on Meteora. Run the following command in your terminal to get started.
```bash Terminal theme={"system"}
git clone https://github.com/MeteoraAg/meteora-invent.git
```
Once you've cloned the repository, you'll have a new project directory with a meteora-invent folder. Run the following to install pnpm and the project dependencies.
```bash Terminal theme={"system"}
cd meteora-invent
pnpm install
```
<Frame>
<img />
</Frame>
</Step>
<Step title="Setup Environment Variables">
Copy the `.env.example` file to `.env` and configure the environment variables.
```bash Terminal theme={"system"}
cp studio/.env.example studio/.env
```
Configure the following variables:
* `PRIVATE_KEY` - Your private key for the wallet you will be using to deploy the pool.
</Step>
<Step title="Optional: Start a Local Test Validator">
You can also run the studio scripts on localnet - [http://localhost:8899](http://localhost:8899) with the following command
```bash Terminal theme={"system"}
pnpm studio start-test-validator
```
This will start a local validator on your machine which will be hosted on `http://localhost:8899`.
</Step>
<Step title="Generate Keypair">
Generate a keypair from your private key:
```bash Terminal theme={"system"}
# 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
```
This will generate a `keypair.json` file in the `studio` directory which will be used for all actions.
</Step>
<Step title="Configure Pool Settings">
Configure the config files in the `studio/config` directory.
* Configure [DLMM](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/dlmm_config.jsonc)
* Configure [DAMM v2](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/damm_v2_config.jsonc)
* Configure [DAMM v1](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/damm_v1_config.jsonc)
* Configure [DBC](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/dbc_config.jsonc)
* Configure [Alpha Vault](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/alpha_vault_config.jsonc)
* Configure [Presale Vault](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/presale_vault_config.jsonc)
* Configure [Met Lock](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/lock_config.jsonc)
* Configure [Dynamic Vault](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/dynamic_vault_config.jsonc)
* Configure [Dynamic Fee Sharing](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/fee_sharing_config.jsonc)
* Configure [Pool Farms](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/farming_config.jsonc)
* Configure [Zap](https://github.com/MeteoraAg/meteora-invent/blob/main/studio/config/zap_config.jsonc)
<Tip>After configuring the settings in the JSON files, you can choose the action you want to perform.</Tip>
<Note>Timestamp fields in these templates ship as placeholder dates that have already passed. Replace them with future values before you run an action that uses them, such as a presale end time, an Alpha Vault deposit window, or a vesting cliff.</Note>
</Step>
</Steps>
# Actions
## DLMM
<CardGroup>
<Card title="Launch a DLMM pool" icon="bolt-lightning" href="/invent/launch-pools/dlmm-launch-pool">
Launch a DLMM customizable launch pool
</Card>
<Card title="Seed Liquidity" icon="seedling" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#seed-liquidity-lfg">
Seed Liquidity with your preferred curve
</Card>
<Card title="Seed Liquidity Single Bin" icon="trash" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#seed-liquidity-single-bin">
Seed Liquidity in a single bin
</Card>
<Card title="Set Pool Status" icon="signal-bars" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#set-dlmm-pool-status">
Set your DLMM Pool Status
</Card>
<Card title="Place a Limit Order" icon="tag" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#place-a-limit-order">
Place a bid or ask limit order on your DLMM pool
</Card>
<Card title="Get Limit Orders" icon="list" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#get-limit-orders">
List your open limit orders with fill status
</Card>
<Card title="Cancel a Limit Order" icon="ban" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#cancel-a-limit-order">
Cancel limit orders and withdraw proceeds
</Card>
<Card title="Swap" icon="arrow-right-arrow-left" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#dlmm-swap">
Swap tokens on a DLMM pool with a quote and slippage protection
</Card>
<Card title="Claim Fees" icon="hand-holding-dollar" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#dlmm-claim-fees">
Claim swap fees and LM rewards across your DLMM positions
</Card>
<Card title="Get Positions" icon="magnifying-glass-chart" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#dlmm-get-positions">
List your DLMM positions with bin ranges, amounts, and unclaimed fees
</Card>
</CardGroup>
## DAMM v2
<CardGroup>
<Card title="Launch a DAMM v2 balanced pool" icon="scale-balanced" href="/invent/launch-pools/damm-v2-launch-pool">
Launch a DAMM v2 balanced pool
</Card>
<Card title="Launch a DAMM v2 one-sided pool" icon="scale-unbalanced" href="/invent/launch-pools/damm-v2-launch-pool">
Launch a DAMM v2 one-sided pool
</Card>
<Card title="Split position" icon="split" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#split-position">
Split an existing LP Position on DAMM v2 pool
</Card>
<Card title="Claim Position Fee" icon="money-bill-1" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#claim-position-fee">
Claim an existing DAMM v2 pool position fee
</Card>
<Card title="Add Liquidity" icon="plus" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#add-liquidity">
Add liquidity to an existing DAMM v2 pool position
</Card>
<Card title="Remove Liquidity" icon="minus" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#remove-liquidity">
Remove liquidity from an existing DAMM v2 pool position (includes refresh vesting and closing position)
</Card>
<Card title="Close Position" icon="xmark" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#close-position">
Close an existing DAMM v2 pool position
</Card>
<Card title="Swap" icon="arrow-right-arrow-left" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#damm-v2-swap">
Swap tokens on a DAMM v2 pool (Token-2022 aware)
</Card>
<Card title="Get Positions" icon="magnifying-glass-chart" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#damm-v2-get-positions">
List your DAMM v2 positions with liquidity and unclaimed fees
</Card>
</CardGroup>
## DAMM v1
<CardGroup>
<Card title="Launch a DAMM v1 pool" icon="rocket" href="/invent/launch-pools/damm-v1-launch-pool">
Launch a DAMM v1 constant product launch pool
</Card>
<Card title="Lock Liquidity" icon="lock" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#lock-liquidity">
Lock liquidity for a DAMM v1 pool
</Card>
<Card title="Create a Stake2Earn Farm" icon="farm" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#create-a-stake2earn-farm">
Create a Stake2Earn Farm for a DAMM v1 pool
</Card>
<Card title="Lock Liquidity for Stake2Earn Farm Pool" icon="lock-a" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#lock-liquidity-stake2earn">
Lock liquidity for a Stake2Earn Farm pool
</Card>
<Card title="Swap" icon="arrow-right-arrow-left" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#damm-v1-swap">
Swap tokens on a DAMM v1 pool
</Card>
</CardGroup>
## DBC
<CardGroup>
<Card title="Launch a DBC token pool" icon="chart-simple" href="/invent/launch-pools/dbc-token-launch-pool">
Launch a Dynamic Bonding Curve token pool
</Card>
<Card title="Create a DBC Config" icon="gear" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#create-a-dbc-config">
Create a Dynamic Bonding Curve config containing the settings for pre-graduation and post-graduation pools
</Card>
<Card title="Claim Trading Fees" icon="money-bill" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#claim-trading-fees">
Claim partner and/or creator trading fees for a DBC pool
</Card>
<Card title="Migrate to DAMM v1" icon="house" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#migrate-to-damm-v1">
Migrate your DBC pool to a DAMM v1 pool
</Card>
<Card title="Migrate to DAMM v2" icon="house-heart" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#migrate-to-damm-v2">
Migrate your DBC pool to a DAMM v2 pool
</Card>
<Card title="Swap (Buy/Sell)" icon="arrows-split-up-and-left" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#swap-buysell">
Swap (Buy/Sell) tokens on a DBC pool
</Card>
<Card title="Get Pool Status" icon="gauge-high" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#dbc-get-status">
Read graduation progress, migration state, reserves, and unclaimed fees
</Card>
</CardGroup>
## Alpha Vault
<CardGroup>
<Card title="Create an Alpha Vault " icon="box" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#create-an-alpha-vault">
Create an Alpha Vault with an already existing DAMM v1 or DAMM v2 or DLMM pool
</Card>
<Card title="Deposit" icon="arrow-down-to-arc" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#alpha-vault-deposit">
Deposit quote tokens into a vault, with the merkle proof fetched for you on permissioned vaults
</Card>
<Card title="Withdraw" icon="arrow-up-from-arc" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#alpha-vault-withdraw">
Withdraw a deposit during the deposit phase of a prorata vault
</Card>
<Card title="Claim Tokens" icon="hand-holding-dollar" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#alpha-vault-claim">
Claim your vested tokens once the vault has bought from the pool
</Card>
<Card title="Withdraw Remaining Quote" icon="rotate-left" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#alpha-vault-withdraw-remaining-quote">
Recover the unused portion of a prorata deposit after the vault has filled
</Card>
<Card title="Crank the Fill" icon="rotate" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#alpha-vault-crank-fill">
Run the permissionless crank that buys from the pool until the vault is filled
</Card>
<Card title="Get Vault Status" icon="gauge-high" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#alpha-vault-get-status">
Read the vault mode, phase, caps, and totals, plus your own escrow when a keypair is present
</Card>
</CardGroup>
## Presale Vault
<CardGroup>
<Card title="Create a Presale Vault" icon="gavel" href="https://github.com/MeteoraAg/meteora-invent?tab=readme-ov-file#create-a-presale-vault">
Create a Fixed Price or FCFS or Prorata Presale Vault
</Card>
<Card title="Deposit" icon="arrow-down-to-arc" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-deposit">
Deposit quote tokens into a presale tier, creating your escrow in the same transaction
</Card>
<Card title="Withdraw" icon="arrow-up-from-arc" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-withdraw">
Withdraw a deposit while the presale still allows it
</Card>
<Card title="Claim Allocation" icon="hand-holding-dollar" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-claim">
Claim your purchased tokens, including the vesting schedule when one is set
</Card>
<Card title="Withdraw Remaining Quote" icon="rotate-left" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-withdraw-remaining-quote">
Sweep the unused quote left over across every tier you deposited into
</Card>
<Card title="Close Escrow" icon="broom" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-close-escrow">
Reclaim escrow rent once your escrow is fully settled
</Card>
<Card title="Creator Withdraw" icon="money-bill-transfer" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-creator-withdraw">
Withdraw the raise as the creator, optionally collecting the deposit fee
</Card>
<Card title="Handle Unsold Tokens" icon="fire" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-handle-unsold">
Refund or burn the base tokens the presale did not sell
</Card>
<Card title="Get Presale Status" icon="gauge-high" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#presale-vault-get-status">
Read progress, totals, average price, and per-tier state, or find a presale by its base mint
</Card>
</CardGroup>
## Met Lock
<CardGroup>
<Card title="Create a Vesting Escrow" icon="lock" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#lock-create-vesting-escrow">
Lock any SPL or Token-2022 mint for a recipient on a cliff and vesting schedule
</Card>
<Card title="Create Escrow Metadata" icon="tag" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#lock-create-escrow-metadata">
Attach a name and contact details to an escrow so recipients can identify it
</Card>
<Card title="Claim Vested Tokens" icon="hand-holding-dollar" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#lock-claim">
Claim whatever has vested so far as the escrow recipient
</Card>
<Card title="Get Escrow" icon="magnifying-glass-chart" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#lock-get-escrow">
Read one escrow's schedule, total locked, claimed, and claimable amounts
</Card>
<Card title="List Escrows" icon="list" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#lock-list-escrows">
List every escrow where a wallet is the recipient or the creator
</Card>
</CardGroup>
## Stake2Earn
<CardGroup>
<Card title="Stake" icon="coins" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#stake2earn-stake">
Stake tokens into a DAMM v1 pool's fee farm to earn a share of trading fees
</Card>
<Card title="Claim Fees" icon="hand-holding-dollar" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#stake2earn-claim-fee">
Claim the fees your stake has earned in both pool tokens
</Card>
<Card title="Start an Unstake" icon="hourglass-start" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#stake2earn-unstake">
Begin the unstake cooldown, saving the unstake address you will need to finish it
</Card>
<Card title="Cancel or Withdraw an Unstake" icon="arrows-rotate" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#stake2earn-cancel-unstake--stake2earn-withdraw">
Cancel a pending unstake to restake, or withdraw once the cooldown has passed
</Card>
<Card title="Get Farm Status" icon="gauge-high" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#stake2earn-get-status">
Read the farm's top-list threshold and your staked amount, pending fees, and open unstakes
</Card>
</CardGroup>
## Pool Farms
<CardGroup>
<Card title="Stake LP" icon="seedling" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#farm-stake">
Stake DAMM v1 LP tokens into a reward farm
</Card>
<Card title="Unstake LP" icon="arrow-up-from-arc" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#farm-unstake">
Withdraw some or all of your staked LP tokens
</Card>
<Card title="Claim Rewards" icon="gift" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#farm-claim">
Claim accumulated rewards from a single farm
</Card>
<Card title="Claim from Several Farms" icon="layer-group" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#farm-claim-all">
Batch reward claims across a list of farms
</Card>
<Card title="Get Farm Status" icon="gauge-high" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#farm-get-status">
Read the farm's staking mint, total staked, reward schedule, and your own position
</Card>
</CardGroup>
## Dynamic Vault
<CardGroup>
<Card title="Deposit" icon="piggy-bank" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#vault-deposit">
Deposit a token into its dynamic vault to earn lending yield on idle balances
</Card>
<Card title="Withdraw" icon="arrow-up-from-arc" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#vault-withdraw">
Redeem vault LP shares back into the underlying token
</Card>
<Card title="Get Vault Status" icon="gauge-high" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#vault-get-status">
Read total supply, withdrawable amount, virtual price, and your redemption value
</Card>
</CardGroup>
## Dynamic Fee Sharing
<CardGroup>
<Card title="Create a Fee Vault" icon="box" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#fee-sharing-create-vault">
Split a fee stream between up to five recipients on fixed shares
</Card>
<Card title="Fund the Vault" icon="money-bill" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#fee-sharing-fund">
Transfer tokens straight into a fee vault for distribution
</Card>
<Card title="Transfer a DAMM v2 Position" icon="right-left" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#fee-sharing-transfer-damm-v2-position">
Hand a position's NFT to the fee vault so the vault can claim its fees
</Card>
<Card title="Fund from DAMM v2 Fees" icon="money-bill-transfer" href="https://github.com/MeteoraAg/meteora-invent/blob/main/skills/meteora/references/studio-actions.md#fee-sharing-fund-from-damm-v2">
Claim a vault-owned position's trading fees directly into the fee vault
</Card>
<Card title="Fund from DAMM v2 Rewards" icon="gift" 프로젝트로 돌아가기