FNSRegistry
Fraxtal0xd8599630ddd05aaa21ce48f9d596aab260352cb7
Solidity v0.8.21+commit.d9974bed
🤖
Query this contract from your AI
Reference:
0xd8599630ddd05aaa21ce48f9d596aab260352cb7
Sample prompt:
"Tell me the current state of fraxtal/0xd8599630ddd05aaa21ce48f9d596aab260352cb7"
No AI wired up yet? →
mcp.smarts.md
Fraxtal is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.
Overview
Read Functions
8
Write Functions
7
Events
5
Read Functions
FRAX()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
FXS()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
isApprovedForAll(owner: address, operator: address)
view
dev: Query if an address is an authorized operator for another address.
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | The address that owns the records. |
| operator | address | The address that acts on behalf of the owner. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if `operator` is an approved operator for `owner`, false otherwise. |
name()
view
dev: Returns the name of the token.
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
owner(node: bytes32)
view
dev: Returns the address that owns the specified node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The specified node. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address of the owner. |
recordExists(node: bytes32)
view
dev: Returns whether a record has been imported to the registry.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The specified node. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Bool if record exists |
resolver(node: bytes32)
view
dev: Returns the address of the resolver for the specified node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The specified node. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address of the resolver. |
ttl(node: bytes32)
view
dev: Returns the TTL of a node, and any records associated with it.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The specified node. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint64 | ttl of the node. |
Write Functions
setApprovalForAll(operator: address, approved: bool)
nonpayable
dev: Enable or disable approval for a third party ("operator") to manage all of `msg.sender`'s ENS records. Emits the ApprovalForAll event.
Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | Address to add to the set of authorized operators. |
| approved | bool | True if the operator is approved, false to revoke approval. |
setOwner(node: bytes32, owner: address)
nonpayable
dev: Transfers ownership of a node to a new address. May only be called by the current owner of the node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The node to transfer ownership of. |
| owner | address | The address of the new owner. |
setRecord(node: bytes32, owner: address, resolver: address, ttl: uint64)
nonpayable
dev: Sets the record for a node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The node to update. |
| owner | address | The address of the new owner. |
| resolver | address | The address of the resolver. |
| ttl | uint64 | The TTL in seconds. |
setResolver(node: bytes32, resolver: address)
nonpayable
dev: Sets the resolver address for the specified node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The node to update. |
| resolver | address | The address of the resolver. |
setSubnodeOwner(node: bytes32, label: bytes32, owner: address)
nonpayable
dev: Transfers ownership of a subnode keccak256(node, label) to a new address. May only be called by the owner of the parent node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The parent node. |
| label | bytes32 | The hash of the label specifying the subnode. |
| owner | address | The address of the new owner. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
setSubnodeRecord(node: bytes32, label: bytes32, owner: address, resolver: address, ttl: uint64)
nonpayable
dev: Sets the record for a subnode.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The parent node. |
| label | bytes32 | The hash of the label specifying the subnode. |
| owner | address | The address of the new owner. |
| resolver | address | The address of the resolver. |
| ttl | uint64 | The TTL in seconds. |
setTTL(node: bytes32, ttl: uint64)
nonpayable
dev: Sets the TTL for the specified node.
Parameters
| Name | Type | Description |
|---|---|---|
| node | bytes32 | The node to update. |
| ttl | uint64 | The TTL in seconds. |
Events
ApprovalForAll(owner: address, operator: address, approved: bool)
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| operator | address | ✓ | |
| approved | bool |
NewOwner(node: bytes32, label: bytes32, owner: address)
| Name | Type | Indexed | Description |
|---|---|---|---|
| node | bytes32 | ✓ | |
| label | bytes32 | ✓ | |
| owner | address |
NewResolver(node: bytes32, resolver: address)
| Name | Type | Indexed | Description |
|---|---|---|---|
| node | bytes32 | ✓ | |
| resolver | address |
NewTTL(node: bytes32, ttl: uint64)
| Name | Type | Indexed | Description |
|---|---|---|---|
| node | bytes32 | ✓ | |
| ttl | uint64 |
Transfer(node: bytes32, owner: address)
| Name | Type | Indexed | Description |
|---|---|---|---|
| node | bytes32 | ✓ | |
| owner | address |