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
Name | Type | Description |
---|---|---|
_maxBlockWait | uint256 | The 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
Name | Type | Description |
---|---|---|
_minBlockWait | uint256 | The minimum number of blocks to wait. |
commitIntent
Allows a user to commit intent to register an SLD
function commitIntent(bytes32 _namehash) external;
Parameters
Name | Type | Description |
---|---|---|
_namehash | bytes32 | The 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
Name | Type | Description |
---|---|---|
_namehash | bytes32[] | 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
Name | Type | Description |
---|---|---|
_namehash | bytes32 | The namehash(s) of the SLDs that the user intends to register |
_secret | bytes32 | |
_addr | address | the address of the user |
Returns
Name | Type | Description |
---|---|---|
<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
Name | Type | Description |
---|---|---|
<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
Name | Type | Description |
---|---|---|
<none> | uint256 | _ uint256 number of blocks, probably set to 3 or something like that |