Skip to content

arunavo4/sol-sell-escrow

Repository files navigation

NFT (SPL Token) Sell Escrow

This project is inspired from Sol-Hayama but its opposite, its a NFT Sell Offer rather than NFT Buy Offer.

Another Major change is the contract is written in anchor and not native rust.

Test it out, currently deployed on Solana devnet.

Screenshot 2022-04-15 at 11 08 35 AM

Development Cycle

# Make sure you’re on the localnet.
solana config set --url localhost
# And check your Anchor.toml file.

# Code…

# Run the tests.
anchor test

# Build, deploy and start a local ledger.
anchor localnet
# Or
solana-test-validator
anchor build
anchor deploy

# Copy the new IDL to the frontend.
anchor run copy-idl

# Serve your frontend application locally.
npm run serve

# Switch to the devnet cluster to deploy there.
solana config set --url devnet
# And update your Anchor.toml file.

# Airdrop yourself some money if necessary.
solana airdrop 5

# Build and deploy to devnet.
anchor build
anchor deploy

# Push your code to the main branch to auto-deploy on Netlify.
git push

Known Issues:

There might be this issue when trying to deploy the contract Link I have fixed it here in a seperate repo for now, once I can get some time to integrate the front end I will redeploy the program.