Skip to content

andreimontchik/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli

A collection of useful command-line scripts for interacting with the Solana ecosystem.

  • tokens - list of supported [tokens]
  • quote - qoute token swap
  • swap - quote and swap tokens
  • order - get the tokens swap order
  • execute - get and exectute the tokens swap order

Setup

  1. Install NodeJS and TypeScript

  2. Clone the repository and navigate into it.

  3. Switch to the required NodeJS version specified in the .nvmrc file: nvm use

  4. Install dependencies from the package.json file: npm install

  5. Create the .env file, use env.template as a guide.

  6. Make sure that scripts in the ./bin directory are executable: chmod +x

  7. Set the "RESEARCH_CLI_PATH" env variable in .bashrc: export RESEARCH_CLI_PATH="$HOME/work/src/research/cli"

  8. Configure aliases for running shell scripts in .bashrc:

    alias tokens="cat $RESEARCH_CLI_PATH/tokens.json"
    alias quote="$RESEARCH_CLI_PATH/bin/quote.sh"
    alias swap="$RESEARCH_CLI_PATH/bin/swap.sh"
    alias order="$RESEARCH_CLI_PATH/bin/order.sh"
    alias execute="$RESEARCH_CLI_PATH/bin/execute.sh"
    

About

A collection of useful TypeScript scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors