Point
Introduction
The Point ADO allows users to store the coordinates for one point. This ADO can then be referenced in the Graph ADO to save this coordinate for the user.
The Point ADO can be set to one of the following:
Private: Only accessible by the contract owner of the ADO.
Public: Accessible by anyone.
Restricted: Only accessible to the address that set the point the first time.
Ado_type: point
Version: 0.1.0
InstantiateMsg
kernel_address
String
Contract address of the kernel contract to be used for AMP messaging. Kernel contract address can be found in our deployed contracts.
owner
Option<String>
Optional address to specify as the owner of the ADO being created. Defaults to the sender if not specified.
PointRestriction
An enum defining the different types of restrictions that can be set.
Private: Only accessible by the contract owner of the ADO.
Public: Accessible by anyone.
Restricted: Only accessible to the key owner (The address that first set the point).
ExecuteMsg
SetPoint
Sets the point coordinates.
Authorization for this message depends on the set PointRestriction.
PointCoordinate
x_coordinate
String
The x coordinate for the point.
y_coordinate
String
The y coordinate for the point.
z_coordinate
Option<String>
The z coordinate for the point. Do not specify in case the graph is 2D.
DeletePoint
Deletes the data attached to set point.
Authorization for this message depends on the set PointRestriction.
UpdateRestriction
Changes the restriction set on the Point ADO.
Only available to the contract owner.
Base Executes
The rest of the execute messages can be found in the ADO Base section.
QueryMsg
GetPoint
Gets the coordinates of the stored point.
GetValueResponse
x_coordinate
String
The x coordinate for the point.
y_coordinate
String
The y coordinate for the point.
z_coordinate
Option<String>
The z coordinate for the point.
GetDataOwner
Queries the address of the user who set the point coordinates.
GetDataOwnerResponse
owner
AndrAddr
The address that set the point coordinates.
Base Queries
The rest of the query messages can be found in the ADO Base section.
Last updated
Was this helpful?