GithubHelp home page GithubHelp logo

arunavo4 / sol-sell-escrow Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 6.0 721 KB

Anchor Solana Escrow Program for Selling NFT's

Home Page: https://sol-sell-escrow.vercel.app/

TypeScript 91.73% Rust 7.17% JavaScript 0.86% CSS 0.23%
anchor escrow escrow-contract nft solana

sol-sell-escrow's Introduction

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.

sol-sell-escrow's People

Contributors

arunavo4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sol-sell-escrow's Issues

Error: Error loading workspace IDL for test

hi when i run anchor test , after successful build & deploy i get this error Error: Error loading workspace IDL for test

yarn run v1.22.18
warning package.json: No license field
$ /home/max/solana-project/sol-sell-escrow-v3/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 1000000 'tests/**/*.ts'

Error: Error loading workspace IDL for test
    at /home/max/solana-project/sol-sell-escrow-v3/node_modules/@project-serum/anchor/src/workspace.ts:102:13
    at Array.forEach (<anonymous>)
    at attachWorkspaceOverride (/home/max/solana-project/sol-sell-escrow-v3/node_modules/@project-serum/anchor/src/workspace.ts:91:31)
    at Object.get (/home/max/solana-project/sol-sell-escrow-v3/node_modules/@project-serum/anchor/src/workspace.ts:72:9)
    at Suite.<anonymous> (/home/max/solana-project/sol-sell-escrow-v3/tests/escrow.ts:15:38)
    at Object.create (/home/max/solana-project/sol-sell-escrow-v3/node_modules/mocha/lib/interfaces/common.js:148:19)
    at context.describe.context.context (/home/max/solana-project/sol-sell-escrow-v3/node_modules/mocha/lib/interfaces/bdd.js:42:27)
    at Object.<anonymous> (/home/max/solana-project/sol-sell-escrow-v3/tests/escrow.ts:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module.m._compile (/home/max/solana-project/sol-sell-escrow-v3/node_modules/ts-node/src/index.ts:439:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require.extensions.<computed> [as .ts] (/home/max/solana-project/sol-sell-escrow-v3/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.exports.requireOrImport (/home/max/solana-project/sol-sell-escrow-v3/node_modules/mocha/lib/nodejs/esm-utils.js:60:20)
    at Object.exports.loadFilesAsync (/home/max/solana-project/sol-sell-escrow-v3/node_modules/mocha/lib/nodejs/esm-utils.js:103:20)
    at singleRun (/home/max/solana-project/sol-sell-escrow-v3/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at Object.exports.handler (/home/max/solana-project/sol-sell-escrow-v3/node_modules/mocha/lib/cli/run.js:374:5)
error Command failed with exit code 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.