Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
FNS Contracts
copy icon
Spheron
• version 1.0.0
FEVM

FNS Contracts

FNS is the ultimate solution for working with the .fil names on the FEVM chain. This contract handles FNS core registry logic.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Spheron

Last Publish

3/17/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
isApprovedForAll(address,address) :
Query if an address is an authorized operator for another address. - _owner: The address that owns the records. - operator: The address that acts on behalf of the owner.
owner(bytes32) :
Returns the address that owns the specified node. - node: The specified node.
recordExists(bytes32) :
Returns whether a record has been imported to the registry. - node: The specified node.
resolver(bytes32) :
Returns the address of the resolver for the specified node. - node: The specified node.
setApprovalForAll(address,bool) :
Enable or disable approval for a third party ("operator") to manage all of `msg.sender`'s FNS records. Emits the ApprovalForAll event. - approved: True if the operator is approved, false to revoke approval. - operator: Address to add to the set of authorized operators.
setOwner(bytes32,address) :
Transfers ownership of a node to a new address. May only be called by the current owner of the node. - _owner: The address of the new owner. - node: The node to transfer ownership of.
setRecord(bytes32,address,address,uint64) :
Sets the record for a node. - _owner: The address of the new owner. - _resolver: The address of the resolver. - _ttl: The TTL in seconds. - node: The node to update.
setResolver(bytes32,address) :
Sets the resolver address for the specified node. - _resolver: The address of the resolver. - node: The node to update.
setSubnodeOwner(bytes32,bytes32,address) :
Transfers ownership of a subnode keccak256(node, label) to a new address. May only be called by the owner of the parent node. - _owner: The address of the new owner. - label: The hash of the label specifying the subnode. - node: The parent node.
setSubnodeRecord(bytes32,bytes32,address,address,uint64) :
Sets the record for a subnode. - _owner: The address of the new owner. - _resolver: The address of the resolver. - _ttl: The TTL in seconds. - label: The hash of the label specifying the subnode. - node: The parent node.
setTTL(bytes32,uint64) :
Sets the TTL for the specified node. - _ttl: The TTL in seconds. - node: The node to update.
ttl(bytes32) :
Returns the TTL of a node, and any records associated with it. - node: The specified node.
setRecord(bytes32,address,address,uint64) :
This function sets the owner, resolver, and TTL for a given node in the ENS registry. It calls two internal functions to accomplish this. (autogenerated documentation)
setSubnodeRecord(bytes32,bytes32,address,address,uint64) :
This function sets the owner, resolver, and TTL for a subnode of a given node in the ENS registry. It calls setSubnodeOwner to set the owner and then calls _setResolverAndTTL to set the resolver and TTL. (autogenerated documentation)
setOwner(bytes32,address) :
This function sets the owner of a domain name and emits a transfer event. It requires authorization to execute. (autogenerated documentation)
setSubnodeOwner(bytes32,bytes32,address) :
This function sets the owner of a subnode under a given node, using the label and address provided. It emits an event and returns the subnode. (autogenerated documentation)
setSubnodeResolver(bytes32,bytes32,address) :
This function sets the resolver for a subnode of a given node, and emits an event if the resolver is changed. (autogenerated documentation)
setResolver(bytes32,address) :
This function sets the resolver address for a given node in the ENS registry, and emits an event to notify of the change. (autogenerated documentation)
setTTL(bytes32,uint64) :
This function sets the time-to-live (TTL) value for a given node in the DNS registry, allowing the owner to specify how long the record should be cached. (autogenerated documentation)
setApprovalForAll(address,bool) :
This function sets approval for an operator to manage the sender's assets, and emits an event to notify the change. (autogenerated documentation)
owner(bytes32) :
This function returns the owner of a domain name stored in a mapping. If the owner is the contract itself, it returns address(0x0). (autogenerated documentation)
resolver(bytes32) :
This function returns the resolver address for a given ENS node by looking it up in the records mapping. (autogenerated documentation)
ttl(bytes32) :
This function returns the time-to-live value of a DNS record stored in the "records" mapping, identified by the given node. (autogenerated documentation)
recordExists(bytes32) :
This function checks if a record exists by checking if the owner address is not 0x0. (autogenerated documentation)
isApprovedForAll(address,address) :
This function checks if an operator is approved to manage all tokens of an owner. It returns a boolean value based on the approval status. (autogenerated documentation)
_setOwner(bytes32,address) :
This function sets the owner of a given node in a mapping called "records" by updating the "owner" field with the provided address. (autogenerated documentation)
_setResolverAndTTL(bytes32,address,uint64) :
This function sets the resolver and time-to-live (TTL) for a given node in the ENS registry, emitting events if the values change. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i FNS-Registry-Contract
copy icon

Bytecode

Download

Verification

Download

Last Publish

3/17/2023

Solidity Compiler

v0.8.17+commit.8df45f5f

Version

1.0.0

Creator

Spheron

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.