Skip to content

Version 0.3.2 - Social interaction

Pre-release
Pre-release
Compare
Choose a tag to compare
@toledoroy toledoroy released this 06 Jul 14:35
· 123 commits to main since this release

Summary

Usability Upgrades & Social Interaction

Added Functionality

Apply to Join Jurisdictions & Cases

//Request to Join/add Jurisdiction/Case
function nominate(soulToken, uri)

Emits Event:

Nominate(address account, uint256 indexed id, string uri)

Jurisdiction Config

Set generic contract configuration

/// Generic Config Set Function
function confSet(string memory key, string memory value)

Emits Event:

StringSet(ownerContract, key, value)

Closed Jurisdictions

Prevent people from minting their own membership tokens

//Change to Closed Jurisdiction
jurisdictionContract.confSet("isClosed", "true")

Jurisdiction Posts (Like Case

/// Add Post 
function post(string entRole, uint256 tokenId, string uri_)

Example

jurisdictionContract.post(entRole, tokenId, uri)

Emits Event:

event Post(address indexed account, uint256 tokenId, string entRole, string uri);

Avatar Posts

/// Post
function post(uint256 tokenId, string calldata uri_)

Example

avatarContract.post(tokenId, uri)

Emits Event:

event Post(_msgSender(), tokenId, uri_)