Skip to content

Carlys17/memesis-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memesis-sdk

SDK and CLI for Memesis — the token launch Aapp on the Nara chain.

What's included

  • Config — create bonding curve parameters
  • Pool — launch tokens with bonding curve
  • Swap — buy/sell tokens (auto-routes between bonding curve and DAMM V2)
  • Migrate — graduate tokens from bonding curve to DAMM V2

For chain-level operations (wallet, quest), see nara-sdk.

Install

npm install memesis-sdk

CLI Usage

npx memesis <command> [options]

Config

memesis config create [--fee-claimer <addr>] [--leftover-receiver <addr>] \
  [--total-supply 1000000000] [--initial-mcap 30] [--migration-mcap 540] [-e]

Pool

memesis pool create -n <name> -s <symbol> -u <uri> --dbc-config <addr> [--creator <addr>] [-e]
memesis pool create-with-buy -n <name> -s <symbol> -u <uri> --dbc-config <addr> --amount <nara> [-e]
memesis pool info <token-address>
memesis pool progress <token-address>

Swap

memesis swap buy <token-address> <amount> [--slippage 100] [--mode partial-fill] [-e]
memesis swap sell <token-address> <amount> [--decimals 6] [--slippage 100] [-e]
memesis swap quote <token-address> <amount> <buy|sell>

Migrate

memesis migrate check <token-address>
memesis migrate launch <token-address> [-e]
memesis migrate create-locker <token-address> [-e]

Global Options

Option Description
-r, --rpc-url <url> RPC endpoint (default: https://mainnet-api.nara.build/)
-w, --wallet <path> Wallet keypair JSON (default: ~/.config/nara/id.json)
-j, --json JSON output

SDK Usage

import { MemesisClient, buyToken, SwapMode } from "memesis-sdk";

const client = new MemesisClient({
  rpcUrl: "https://mainnet-api.nara.build/",
});

// Buy tokens
const result = await buyToken(client, {
  tokenAddress: "...",
  amountInSOL: 1.0,
  owner: wallet.publicKey,
  swapMode: SwapMode.PartialFill,
});

Architecture

Memesis is an Aapp (Agent App) on the Nara chain. This SDK is independent from the chain-level nara-sdk, demonstrating the Aapp pattern — each Aapp has its own SDK while settling on the Nara chain.

nara-sdk         ← Chain-level (wallet, quest)
memesis-sdk      ← Memesis Aapp (token launch, swap, migrate)

License

MIT

About

Memesis Aapp SDK for the Nara chain - token launch, swap, and migration

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.8%
  • JavaScript 0.2%