API
API for the @astralprotocol/contracts package
State modifying methods
constructor
Initiates the smart contract with an hardcoded uri type representing the did method (did:geo). Also initiates the msg.sender as the default admin and as a data supplier role.
registerRole
Registers a new user with the ability to register a spatial asset. Contract creator is hardcoded as default admin and data supplier roles.
enableStorage
Registers a new storage that can accept GeoDID document creation.
disableStorage
Disables an existing storage.
registerSpatialAsset
Registers on-chain one Spatial Asset.
addChildrenGeoDIDs
Adds children GeoDIDs to an existing GeoDID. GeoDIDId must correspond to a GeoDID type that can be a parent (Collection or type 0).
addParentGeoDID
Adds a GeoDID as a parent to an already existing GeoDID.
removeChildrenGeoDIDs
Removes children GeoDIDs from a specified GeoDID.
removeParentGeoDID
Removes a specified parent GeoDID from a GeoDID.
deactivateSpatialAsset
De-registers a spatial asset.