Skip to content

vegancat/escrow_learning_solana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is implementation of Escrow Program. Original Tutorial is in paulx.dev

Tokens and Accounts needed for test

  1. 2 throw away private keys
  2. 4 token mint address ( create yourself by spl-token create-token)
  3. 4 token accounts from mint addresses provided. 2 for initializer, 2 for taker. Both initailizer and taker should provide 1 token account for each mint address.

accounts_structure

UI for testing it

I'm a lazy cat. I didn't write any UI code for testing it. You can use The same UI I used in Paulx.dev

Environment Setup

  1. Install Rust from https://rustup.rs/
  2. Install Solana from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool

Build and test for program compiled natively

$ cargo build
$ cargo test

Build and test the program compiled for BPF

$ cargo build-bpf
$ cargo test-bpf

About

Not a real project! just learning the ropes!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published