Smart Contracts
Interfaces
ICommitIntent

ICommitIntent

Git Source (opens in a new tab)

Functions

updateMaxBlockWaitForCommit

Allows the owner of the contract to set the max wait in blocks for registration of an SLD. While this is active other wallets can commit intent to register the SLD.

function updateMaxBlockWaitForCommit(uint256 _maxBlockWait) external;

Parameters

NameTypeDescription
_maxBlockWaituint256The maximum number of blocks to wait.

updateMinBlockWaitForCommit

Allows the owner of the contract to set the min wait in blocks for registration of an SLD. Required for reorg circumstances

function updateMinBlockWaitForCommit(uint256 _minBlockWait) external;

Parameters

NameTypeDescription
_minBlockWaituint256The minimum number of blocks to wait.

commitIntent

Allows a user to commit intent to register an SLD

function commitIntent(bytes32 _namehash) external;

Parameters

NameTypeDescription
_namehashbytes32The namehash of the SLD that the user intends to register

multiCommitIntent

Allows a user to commit intent to register multiple SLDs

function multiCommitIntent(bytes32[] calldata _namehash) external;

Parameters

NameTypeDescription
_namehashbytes32[]The namehash(s) of the SLDs that the user intends to register

allowedCommit

Allows a user to commit intent to register multiple SLDs

function allowedCommit(bytes32 _namehash, bytes32 _secret, address _addr) external view returns (bool);

Parameters

NameTypeDescription
_namehashbytes32The namehash(s) of the SLDs that the user intends to register
_secretbytes32
_addraddressthe address of the user

Returns

NameTypeDescription
<none>bool_ True/False value if the user is currently allowed to register the name

maxBlockWaitForCommit

Max time in blocks that an SLD is held for.

function maxBlockWaitForCommit() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256_ uint256 number of blocks

minBlockWaitForCommit

Min time in blocks that an account needs to wait before registering their SLD we do this becauses of potential reorgs

function minBlockWaitForCommit() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256_ uint256 number of blocks, probably set to 3 or something like that