Relationship
Follow
FollowRegister
Deploy a follow contract
Deploy a user's follow and record it to the FollowRegister contract.
Parameters:
owner: The address receiving a Follow contract
Return value:
tokenId: The tokenID for a Follow contract in the FollowRegister contract.
Lookup the Follow contract addresses belonging to an address
Lookup the Follow contract addresses belonging to an address
Parameters:
owner: The address owning a Follow contract
Return value:
contractAddress: the address(es) of Follow contract(s).
Follow
Follow
To follow the owner of the current contract
Return value:
tokenId: The tokenId for this following in the contract.
Unfollow
To unfollow the owner of the current contract
Dao
DaoRegister
Deploy a DAO contract
Deploy a Dao contract and record it on the DaoRegister contract. The creator will be the owner of the contract.
Parameters:
owner: The intended owner of this Dao contract.
name: The name of this Dao contract.
Return value:
tokenId: The tokenId for this Dao contract in the DaoRegister contract.
Lookup the information on a DAO
Use tokenId to lookup the owner and address that a DAO contract is linked to.
Parameters:
tokenId
Return value:
owner: The creator of the DAO contract
contractAddress: The address of the DAO contract.
DAO
Set the URI for a dao
Set the URI for a dao. Pass the transaction hash related to the dao on Arweave.
Parameters:
daoURI: A resource address pointing to the data of a dao's information. It is a transaction hash on Arweave.
The content uploaded to Arweave is structured as follows:
The URI for a dao
Query the URI for a dao. Return the transaction hash related to the dao on Arweave.
Parameters:
daoURI: A resource address pointing to the data of a dao's information. It is a transaction hash on Arweave.
Is this an open dao?
Check if this dao is open to the public without an admin's invitation.
Return value:
isFreeJoin: true--free to join;false--closed to the public
Add the specified address to the dao.
Add the specified address to dao in batches, only executed by the creator of dao.
Parameters:
addr: The specified address.
Join a dao.
When user joins a dao:
Return value:
tokenId: The tokenId for this member in the dao.
Removed from a dao
Remove a certain member from a dao.
Parameters:
addr: The address of the member to be removed.
Is a member of the dao?
Query whether an address is a member of a dao
Parameters:
addr: The address of member
Return value:
isMember: true--is a member of the dao;false--not a member of the dao
The owner of a dao
Query the owner for a dao.
Return value:
owner: The owner of a dao
Last updated