Application Scenarios
Example: Token 2049 event based on a Semantic contract
Initialize the contract
function initialize(
address minter,
string memory name_,
string memory symbol_,
string memory baseURI_,
string memory schemaURI_,
string[] memory classes_,
Predicate[] memory predicates_
) public initializer onlyOwner {}Specify an event
function addSubject(string memory value, string memory className_)
external onlyMinter returns (uint256 sIndex) {}Mint a SBT medal
Initialize the contract
It means that we will generate a medal for the Token2049 event.
Define the Subject
Call the method addSubject("Token2049","RelationActivity").
Mint a SBT Medal
Call the method mint("address",1,[],[1,"address"],[],[],[],[],[]) . Once the call is executed, we will have minted a SBT âRelationActivity_Token2049 WinnerIs addressâ.
Last updated