SemanticSBT Deployment tool
The Relation team has built a front-end deployment tool so that developers can deploy and use contracts efficiently.
Quick Start
Download the tool
Clone the repository from github:
Install dependencies:
run the project:
If successful, you can access http://localhost:3000.
Contract deployment
Login via metamask:
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-6dc61bcd1e8f27a29cbd3119d13d5be7a4668331%252Fimage%2520%288%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=df94222d&sv=1)
Choose the blockchain which the contract will be deployed on:
Here we use Polygon as an example:
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-d1e4d19af1c5cf9ca3e291f73558606482eb55d9%252Fimage%2520%289%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=9331cc36&sv=1)
Create a new SBT contract and deploy it:
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-73295340a0356dc22b0bbe613522cc8b96a9c3c1%252Fimage%2520%2810%29%2520%281%29%2520%281%29%2520%281%29%2520%281%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=cd03c600&sv=1)
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:
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-9ffa7012cea31398d56f395b8c37fe32d6a634ff%252Fimage%2520%283%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d901e786&sv=1)
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.
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-4ef632242118a9f12248afc648f49c0ade76f068%252Fimage%2520%281%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d5fd65a0&sv=1)
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:
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-aee70d235f82de23ecb71126eb3a387abc2534c8%252Fimage%2520%282%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=64a1b41e&sv=1)
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:
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-3c91fb3b60d5ff6511c843106d2ea1f569c0e377%252Fimage%2520%284%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=df7f7691&sv=1)
4. Add to the whitelist
To specify addresses which can mint the SBT. You can add multiple addresses at a time.
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-3b2849af9a32fac8202120fadedc3548b6c77a31%252Fimage%2520%285%29%2520%281%29%2520%281%29%2520%281%29%2520%281%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4dab65f8&sv=1)
5. Mint SBT
![](https://relationlabs.gitbook.io/~gitbook/image?url=https%3A%2F%2F2101283974-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYeYon1a8IZta2Zm96hF1%252Fuploads%252Fgit-blob-3a7cb3209d5bad2f772f2dcfc36cee87a7322fd3%252Fimage%2520%2811%29%2520%281%29%2520%281%29%2520%281%29%2520%281%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=dead299c&sv=1)
Last updated