Code Monkey home page Code Monkey logo

tezketnft-contracts's Introduction

Tezket NFT contracts

Start Sandbox (Local Development)

$> chinstrap sandbox -i
$> chinstrap sandbox -p Jakarta -o 12345 -c 5
...

โœ” Sandbox is at level: 20 and ready for use!

Complie and Deploy to Local Node

$> chinstrap compile
โœ” my_contract.py compilation successful!

$> chinstrap originate -n development
Using development network
Loaded wallet tz1U7FSJhS8QggXhzuxQ3kRVxtZuivwrL4ho     . Balance: ๊œฉ 20000.022856

โœ” my_contract.py compilation successful!
โœ” my_contract_compiled's origination transaction at: op9HEUeiRp75cJFcsT6srs1YbhC1SQQm7EhE1Wmi2HqQBqBrPaz
โœ” Baking successful!
โœ” my_contract_compiled address: KT1HK5rgA2JMEAwoopwz2YLcjUL5yzys4kfW
โœ” Total Cost of originations:  ๊œฉ 0.076685

Note -- Setup scripts and console.log

Install chinstrap framework and tools.
# Install chinstrap framework.

nvm use v19.6.0

cd scripts

conda create -n py310-tezos-blockchain python=3.10
conda activate py310-tezos-blockchain

git clone https://github.com/ant4g0nist/chinstrap

cd chinstrap

brew tap cuber/homebrew-libsecp256k1
brew install libsodium libsecp256k1 gmp

export CFLAGS="-I`brew --prefix gmp`/include -I`brew --prefix libsecp256k1`/include"
export LDFLAGS="-L`brew --prefix gmp`/lib -L`brew --prefix libsecp256k1`/lib"
pip install . -U 

cd ..

chinstrap install
๐ŸŽ‰ Ligo installed
๐ŸŽ‰ SmartPy installed

Or try to compile with SmartPy (Legacy)

bash <(curl -s https://smartpy.io/cli/install.sh) --prefix `pwd`/scripts/smartpy-cli
./scripts/smartpy-cli/SmartPy.sh --version

./scripts/smartpy-cli/SmartPy.sh compile ./contracts/my_contract.py ./compilation
./scripts/smartpy-cli/SmartPy.sh test ./contracts/my_contract.py ./compilation

./scripts/SmartPy.sh originate-contract 
    --code ./compilation/my_contract/<...>_contract.tz \
    --storage ./scripts/compilation/my_contract/<...>_storage.tz \
    --rpc https://granadanet.smartpy.io \
    --private-key <edsk...>
    

tezketnft-contracts's People

Contributors

ubinix-warun avatar

Watchers

 avatar

tezketnft-contracts's Issues

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.