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