Developer Hub
Relation ProtocolRelation ONE APIRelation Graph API
English
English
  • Overview
  • QUICK START
    • Deploy a Semantic SBT contract leveraging Relation Protocol
    • Deploying query services using Graph Indexer
  • KEY CONCEPTS
    • RDF
    • Semantic SBTs
    • Social Graph
  • Architecture
  • Schema Standard
    • Overview
    • How schemas limit smart contracts
    • Store schema
    • List of schemas
  • Contract Open Standard
    • Overview
    • Identity
      • Name Service
    • Relationship
      • Follow
      • Dao
    • Publication
      • Content
      • Privacy Content
  • Open Standard API
    • Introduction
    • EIP-6239
    • Business Interface
      • Identity
      • Relationship
      • Publication
  • Graph Indexer
    • Definition and usage
    • Listen to events
    • To parse RDF data
    • To build a social graph
  • Integrations
    • Quick start
    • Construct a social graph with Relation Protocol
    • List of resources
    • NameService contract guide
    • Follow contract guide
    • Dao contract guide
    • Content contract guide
    • PrivacyContent contract guide
  • Relation Name Service
    • Name Service Api
  • Use Case
  • APPENDIX
    • Deploy a contract using Hardhat
    • SemanticSBT Deployment tool
Powered by GitBook
On this page
  • Quick Start
  • Download the tool
  • Install dependencies:
  • run the project:
  • Contract deployment
  • Login via metamask:
  • Choose the blockchain which the contract will be deployed on:
  • Create a new SBT contract and deploy it:
  1. APPENDIX

SemanticSBT Deployment tool

The Relation team has built a front-end deployment tool so that developers can deploy and use contracts efficiently.

Last updated 2 years ago

Quick Start

Download the tool

Clone the repository from github:

git clone git@github.com:relationlabs/sbt-deployment-utils.git

Install dependencies:

yarn

run the project:

yarn dev

If successful, you can access .

Contract deployment

Login via metamask:

Choose the blockchain which the contract will be deployed on:

Here we use Polygon as an example:

Create a new SBT contract and deploy it:

The contract deployment procedure includes: 1. Deploying the SBT and Verification contract. 2. Initialize the SBT contract. 3. Initialize the Verification contract. 4. Add to the whitelist. 5. Mint SBT (These subsequent procedures need enough gas fee in the wallet).

1. Deploy the contract:

Deploy the SBT contract and its Verification contract:

2. Initialize the SBT contract:

If the contract deployment is successful, you can see its contract address. Then the initialization process of the SBT can begin.

During initializing the SBT, we will need to fill in certain properties of the SBT based on the needs of the project. Here we take the TestSBT as an example:

3. Initialize the Verification contract:

Based on the needs of the project, we should fill in the name of the Object. Here we will use the Token2049 as an example:

4. Add to the whitelist

To specify addresses which can mint the SBT. You can add multiple addresses at a time.

5. Mint SBT

http://localhost:3000
Figure 9-1 Connect Wallet
Figure 9-2 Select a Network
Figure 9-3 Start Deploy
Figure 9-4 Deploy Contract
Figure 9-5 Start Init Contract
Figure 9-6 Init Contract
Figure 9-7 Init Verification Contract
Figure 9-8 Add Whitelist
Figure 9-9 Mint SBT