FNSRegistry

Fraxtal Browse chains

0xd8599630ddd05aaa21ce48f9d596aab260352cb7

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 · Browse chains
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

Return the address of the FRAX token contract used by this registry.✨ AI

Returns

Name Type Description
address The FRAX token contract address.✨ AI
FXS() view

Gets the address of the FXS token contract.✨ AI

Returns

Name Type Description
address Address of the FXS ERC-20 token contract.✨ AI
isApprovedForAll(owner: address, operator: address) view

Checks whether an operator is approved to manage all tokens for an owner.✨ AI

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

Returns the human-readable name of this registry.✨ AI

dev: Returns the name of the token.

Returns

Name Type Description
string The registry's human-readable name as a string.✨ AI
owner(node: bytes32) view

Returns the current owner address for a given namehash node.✨ AI

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

Checks whether a record exists for the specified node.✨ AI

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

Returns the resolver address registered for a specific node.✨ AI

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

Returns the TTL (time-to-live) value for the specified node.✨ AI

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

Authorize or revoke an operator to manage all of the caller's names.✨ AI

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

Sets the owner of a specified node in the registry.✨ AI

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

Sets the owner, resolver, and TTL for a specified node in the registry.✨ AI

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

Sets the resolver for a node in the registry.✨ AI

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

Creates a subnode under the given node with the specified label and assigns its owner.✨ AI

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 Namehash (bytes32) of the created or updated subnode.✨ AI
setSubnodeRecord(node: bytes32, label: bytes32, owner: address, resolver: address, ttl: uint64) nonpayable

Creates or updates a subnode record under the given node, setting owner, resolver, and TTL.✨ AI

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

Set the time-to-live (TTL) for a DNS node in the registry.✨ AI

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