ContractFee
Contents
Globals
Var | Type |
---|---|
feeOf | mapping(address => uint256) |
creatorOf | mapping(address => address) |
Functions
generateAddress
Generate contract address.
Declaration:
Modifiers: No modifiers
Args:
Arg | Type | Description |
---|---|---|
| address | Creator address |
| uint256 | Creator nonce |
generateAddress2
Generate contract address(create2).
Declaration:
Modifiers: No modifiers
Args:
Arg | Type | Description |
---|---|---|
| address | Creator address |
| bytes32 | Salt |
| bytes32 | Deploy code hash, notice: this is not the same as the account code hash |
register
Register the contract creator.
Declaration:
Modifiers: No modifiers
Args:
Arg | Type | Description |
---|---|---|
| address | Root creator address |
| bool[] | A list of flags, if the flag is true, it means |
| uint256[] | A list of nonces |
| struct Create2Info[] | A list of |
setFee
Set contract fee. The contract fee can be set only when the sender is the creator of the contract.
Declaration:
Modifiers: No modifiers
Args:
Arg | Type | Description |
---|---|---|
| address | Target contract address |
| uint256 | Contract fee |
Events
Register
Registration event, emit when someone registers their contract.
Params:
Param | Type | Indexed | Description |
---|---|---|---|
| address | Creator | |
| address | Contract address |
Last updated