FNSRegistry
Fraxtal0xd8599630ddd05aaa21ce48f9d596aab260352cb7
Solidity v0.8.21+commit.d9974bed
概覽
讀取函式
Return the address of the FRAX token contract used by this registry.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The FRAX token contract address.✨ AI |
Gets the address of the FXS token contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the FXS ERC-20 token contract.✨ AI |
Checks whether an operator is approved to manage all tokens for an owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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. |
Returns the human-readable name of this registry.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The registry's human-readable name as a string.✨ AI |
Returns the current owner address for a given namehash node.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The specified node. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address of the owner. |
Checks whether a record exists for the specified node.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The specified node. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Bool if record exists |
Returns the resolver address registered for a specific node.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The specified node. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address of the resolver. |
Returns the TTL (time-to-live) value for the specified node.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The specified node. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint64 | ttl of the node. |
寫入函式
Authorize or revoke an operator to manage all of the caller's names.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| operator | address | Address to add to the set of authorized operators. |
| approved | bool | True if the operator is approved, false to revoke approval. |
Sets the owner of a specified node in the registry.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The node to transfer ownership of. |
| owner | address | The address of the new owner. |
Sets the owner, resolver, and TTL for a specified node in the registry.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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. |
Sets the resolver for a node in the registry.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The node to update. |
| resolver | address | The address of the resolver. |
Creates a subnode under the given node with the specified label and assigns its owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Creates or updates a subnode record under the given node, setting owner, resolver, and TTL.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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. |
Set the time-to-live (TTL) for a DNS node in the registry.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| node | bytes32 | The node to update. |
| ttl | uint64 | The TTL in seconds. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| operator | address | ✓ | |
| approved | bool |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| node | bytes32 | ✓ | |
| label | bytes32 | ✓ | |
| owner | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| node | bytes32 | ✓ | |
| resolver | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| node | bytes32 | ✓ | |
| ttl | uint64 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| node | bytes32 | ✓ | |
| owner | address |