FNSRegistry

Fraxtal

0xd8599630ddd05aaa21ce48f9d596aab260352cb7

Solidity v0.8.21+commit.d9974bed

🤖
通过你的 AI 查询此合约
引用: 0xd8599630ddd05aaa21ce48f9d596aab260352cb7
示例提示词: "Tell me the current state of fraxtal/0xd8599630ddd05aaa21ce48f9d596aab260352cb7"
还没有接入 AI?→ mcp.smarts.md
Fraxtal 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
8
写入函数
7
事件
5

读取函数

FRAX() view

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

返回值

名称 类型 描述
address The FRAX token contract address.✨ AI
FXS() view

Gets the address of the FXS token contract.✨ AI

返回值

名称 类型 描述
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

开发者: Query if an address is an authorized operator for another address.

参数

名称 类型 描述
owner address The address that owns the records.
operator address The address that acts on behalf of the owner.

返回值

名称 类型 描述
bool True if `operator` is an approved operator for `owner`, false otherwise.
name() view

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

开发者: Returns the name of the token.

返回值

名称 类型 描述
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

开发者: Returns the address that owns the specified node.

参数

名称 类型 描述
node bytes32 The specified node.

返回值

名称 类型 描述
address address of the owner.
recordExists(node: bytes32) view

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

开发者: Returns whether a record has been imported to the registry.

参数

名称 类型 描述
node bytes32 The specified node.

返回值

名称 类型 描述
bool Bool if record exists
resolver(node: bytes32) view

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

开发者: Returns the address of the resolver for the specified node.

参数

名称 类型 描述
node bytes32 The specified node.

返回值

名称 类型 描述
address address of the resolver.
ttl(node: bytes32) view

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

开发者: Returns the TTL of a node, and any records associated with it.

参数

名称 类型 描述
node bytes32 The specified node.

返回值

名称 类型 描述
uint64 ttl of the node.

写入函数

setApprovalForAll(operator: address, approved: bool) nonpayable

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

开发者: Enable or disable approval for a third party ("operator") to manage all of `msg.sender`'s ENS records. Emits the ApprovalForAll event.

参数

名称 类型 描述
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

开发者: Transfers ownership of a node to a new address. May only be called by the current owner of the node.

参数

名称 类型 描述
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

开发者: Sets the record for a node.

参数

名称 类型 描述
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

开发者: Sets the resolver address for the specified node.

参数

名称 类型 描述
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

开发者: Transfers ownership of a subnode keccak256(node, label) to a new address. May only be called by the owner of the parent node.

参数

名称 类型 描述
node bytes32 The parent node.
label bytes32 The hash of the label specifying the subnode.
owner address The address of the new owner.

返回值

名称 类型 描述
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

开发者: Sets the record for a subnode.

参数

名称 类型 描述
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

开发者: Sets the TTL for the specified node.

参数

名称 类型 描述
node bytes32 The node to update.
ttl uint64 The TTL in seconds.

事件

ApprovalForAll(owner: address, operator: address, approved: bool)
名称 类型 已索引 描述
owner address
operator address
approved bool
NewOwner(node: bytes32, label: bytes32, owner: address)
名称 类型 已索引 描述
node bytes32
label bytes32
owner address
NewResolver(node: bytes32, resolver: address)
名称 类型 已索引 描述
node bytes32
resolver address
NewTTL(node: bytes32, ttl: uint64)
名称 类型 已索引 描述
node bytes32
ttl uint64
Transfer(node: bytes32, owner: address)
名称 类型 已索引 描述
node bytes32
owner address