Coder Social home page Coder Social logo

ckb-nft-scripts's Introduction

ckb-nft-scripts

License Github Actions CI

The NFT Type Scripts implement of RFC: Multi-purpose NFT Draft Spec on Nervos CKB.

Pre-requirement

Note: Capsule uses docker to build contracts and run tests. https://docs.docker.com/get-docker/ and docker and ckb-cli must be accessible in the PATH in order for them to be used by Capsule.

Getting Started

Build contracts:

capsule build

Run tests:

capsule test

Deployment

For the deployment information of the ckb-nft-scripts on Aggron Testnet and Lina Mainnet, please refer to the Aggron Deployment and Lina Deployment

1. Update the deployment configurations

Update the deployment.toml referring to the Capsule Docs

2. Build release version of the script

The release version of script doesn’t include debug symbols which makes the size smaller.

capsule build --release

3. Deploy the scripts

capsule deploy --address <ckt1....> --fee 0.001

If the ckb-cli has been installed and dev-chain RPC is connectable, you will see the deployment plan:

Deployment plan:
---
migrated_capacity: 25798.0 (CKB)
new_occupied_capacity: 184467436505.09551616 (CKB)
txs_fee_capacity: 0.001 (CKB)
total_occupied_capacity: 21566.0 (CKB)
recipe:
  cells:
    - name: nft-type
      index: 0
      tx_hash: "0xa105c3277ea36914e2af26e749adb307276f89f614dc945f9f44988b4be9c1d6"
      occupied_capacity: 21566.0 (CKB)
      data_hash: "0x2123504d48d69e6e4f5e749dcb551fb5dfe32af027daa35fcdbfc61a67bf9859"
      type_id: "0xb1837b5ad01a88558731953062d1f5cb547adf89ece01e8934a9f0aeed2d959f"
  dep_groups: []
Confirm deployment? (Yes/No)
Yes
Password:
(1/1) Sending tx a105c3277ea36914e2af26e749adb307276f89f614dc945f9f44988b4be9c1d6
Deployment complete

ckb-nft-scripts's People

Contributors

duanyytop avatar

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.