Checks that there is a valid domain record with the specified name and the address.
Entrypoint: check_address
Parameter | Type | Description |
name |
| The UTF-8 encoded name to check. |
address |
| The expected address. |
type check_address_param = [@layout:comb] {name: bytes;address: address}(* Checks that a name corresponds to an address. *)| Check_address of check_address_param
parameter (or(pair %check_address(bytes %name)(address %address)# ... more entrypoints outside of this interoperability spec);
Error | Description |
AMOUNT_NOT_ZERO | The transferred amount of tez is not zero. |
NAME_ADDRESS_MISMATCH | There is no valid domain record with the specified name or it resolves to an address different from the expected one. |
Claims a reverse record corresponding to a domain (a forward record). The claimed reverse record will map the sender's address to the specified domain name.
Entrypoint: claim_reverse_record
Parameter | Type | Description |
name |
| The UTF-8 encoded name to claim. |
owner |
| The owner of the record allowed to make changes. |
data |
| The map of any additional data that clients wish to store with the record. |
type claim_reverse_record_param = [@layout:comb] {name: bytes option;owner: address;data: (string, bytes) map;}| Claim_reverse_record of claim_reverse_record_param
TBD
Error | Description |
AMOUNT_NOT_ZERO | The transferred amount of tez is not zero. |
NAME_ADDRESS_MISMATCH | There is no domain record with the specified name or it resolves to an address different from the sender's address. |
Creates or overwrites an existing domain record. The current sender must be the owner of the parent record.
Entrypoint: set_child_record
Parameter | Type | Description |
label |
| The UTF-8 encoded label. |
parent |
| The UTF-8 encoded parent domain. |
address |
| The optional address the record resolves to. |
owner |
| The owner of the record allowed to make changes. |
data |
| A map of any additional data clients wish to store with the domain. |
expiry |
| The expiry of this record. Only applicable to second-level domains as all higher-level domains share the expiry of their ancestor 2LD. |
type set_child_record_param = [@layout:comb] {label: bytes;parent: bytes;address: address option;owner: address;data: (string, bytes) map;expiry: timestamp option;}| Set_child_record of set_child_record_param
TBD
Error | Description |
AMOUNT_NOT_ZERO | The transferred amount of tez is not zero. |
PARENT_NOT_FOUND | There is no record for the specified parent domain. |
NOT_AUTHORIZED | The current sender is not the current record owner. |
INVALID_LABEL | The given label is not valid. See Label Validation. |
Updates an existing domain record. The current sender must be its owner.
Entrypoint: update_record
Parameter | Type | Description |
name |
| The UTF-8 encoded name of the domain to update. |
address |
| The optional new address the record resolves to. |
owner |
| The new owner of the record allowed to make changes. |
data |
| The new map of any additional data that clients wish to store with the domain. |
type update_record_param = [@layout:comb] {name: bytes;address: address option;owner: address;data: (string, bytes) map;}| Update_record of update_record_param
TBD
Error | Description |
AMOUNT_NOT_ZERO | The transferred amount of tez is not zero. |
RECORD_NOT_FOUND | There is no domain record for the specified name. |
NOT_AUTHORIZED | The current sender is not the current record owner. |
Updates an existing reverse record. The current sender must be its owner. There must be a corresponding domain record.
Entrypoint: claim_reverse_record
Parameter | Type | Description |
address |
| The address of the reverse record to update. |
name |
| The new UTF-8 encoded name the record resolves to. |
owner |
| The owner of the record allowed to make changes. |
data |
| The map of any additional data that clients wish to store with the record. |
type update_reverse_record_param = [@layout:comb] {address: address;name: bytes option;owner: address;data: (string, bytes) map;}| Update_reverse_record of update_reverse_record_param
TBD
Error | Description |
AMOUNT_NOT_ZERO | The transferred amount of tez is not zero. |
RECORD_NOT_FOUND | There is no reverse record with the specified address. |
NOT_AUTHORIZED | The current sender is not the current record owner. |
NAME_ADDRESS_MISMATCH | There is no domain record with the specified name or it resolves to a different address. This can occur only if the name is specified. |