Skip to content

SolanaCore/swap-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

78 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SolanaCoreSwap Contract

Environment Setup

  1. Install Rust

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    rustup default 1.79.0
  2. Install Solana

    sh -c "$(curl -sSfL https://release.solana.com/v1.17.0/install)"

    then run solana-keygen new to create a keypair at the default location.

  3. install Anchor

    # Installing using Anchor version manager (avm) 
    cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
    # Install anchor
    avm install 0.31.1
    avm use 0.31.1

Quickstart

Clone the repository and enter the source code directory.

git clone https://github.com/SolanaCore/swap-tokens
cd swap-tokens/swap

Build

anchor build

After building, the smart contract files are all located in the target directory.

Deploy

anchor deploy

Attention, check your configuration and confirm the environment you want to deploy.

About

๐Ÿ” A Solana smart contract for swapping tokens via escrow-based orders between users.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors