Functions
uri
@dev ID metadata fetcher.
@param id ID to fetch from.
@return tokenURI Metadata.
Metadata
Type | Value |
---|
functionSelector | 0e89341c |
---|
stateMutability | view |
---|
visibility | public |
---|
_authorized
@dev Access control check for ID key balance holders.
Metadata
Type | Value |
---|
functionSelector | |
---|
stateMutability | view |
---|
visibility | internal |
---|
_coreKeyHolder
@dev Core access control check.
Initalizes with `address(this)` having implicit permission
without writing to storage by checking `totalSupply()` is zero.
Otherwise, this permission can be set to additional accounts,
including retaining `address(this)`, via `mint()`.
Metadata
Type | Value |
---|
functionSelector | |
---|
stateMutability | view |
---|
visibility | internal |
---|
supportsInterface
@dev ERC165 interface detection.
@param interfaceId ID to check.
@return Fetch detection success.
Metadata
Type | Value |
---|
functionSelector | 01ffc9a7 |
---|
stateMutability | view |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
interfaceId | bytes4 |
onERC721Received
-----------------------------------------------------------------------
ERC721 Receiver Logic
-----------------------------------------------------------------------
Metadata
Type | Value |
---|
functionSelector | 150b7a02 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
| address |
| address |
| uint256 |
| bytes |
constructor
@notice Create Keep template.
@param _uriFetcher Metadata default.
Parameters
Name | Type |
---|
_uriFetcher | contract Keep |
initialize
@notice Initialize Keep configuration.
@param calls Initial Keep operations.
@param signers Initial signer set.
@param threshold Initial quorum.
Metadata
Type | Value |
---|
functionSelector | 3d30ef47 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
calls | struct Call[] |
signers | address[] |
threshold | uint256 |
execute
@notice Execute operation from Keep with signatures.
@param op Enum operation to execute.
@param to Address to send operation to.
@param value Amount of ETH to send in operation.
@param data Payload to send in operation.
@param sigs Array of Keep signatures sorted in ascending order by addresses.
@dev Make sure signatures are sorted in ascending order - otherwise verification will fail.
@return success Fetch whether operation succeeded.
Metadata
Type | Value |
---|
functionSelector | 6c4b5546 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
op | enum Operation |
to | address |
value | uint256 |
data | bytes |
sigs | struct Signature[] |
_recoverSig
Metadata
Type | Value |
---|
functionSelector | |
---|
stateMutability | view |
---|
visibility | internal |
---|
Parameters
Name | Type |
---|
hash | bytes32 |
user | address |
v | uint8 |
r | bytes32 |
s | bytes32 |
multiExecute
@notice Execute operations from Keep with `execute()` or as key holder.
@param calls Keep operations as arrays of `op, to, value, data`.
@return successes Fetches whether operations succeeded.
Metadata
Type | Value |
---|
functionSelector | 8cb18c12 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
calls | struct Call[] |
_execute
Metadata
Type | Value |
---|
functionSelector | |
---|
stateMutability | nonpayable |
---|
visibility | internal |
---|
Parameters
Name | Type |
---|
op | enum Operation |
to | address |
value | uint256 |
data | bytes |
mint
@notice ID minter.
@param to Recipient of mint.
@param id ID to mint.
@param amount ID balance to mint.
@param data Optional data payload.
Metadata
Type | Value |
---|
functionSelector | 731133e9 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
to | address |
id | uint256 |
amount | uint256 |
data | bytes |
burn
@notice ID burner.
@param from Account to burn from.
@param id ID to burn.
@param amount Balance to burn.
Metadata
Type | Value |
---|
functionSelector | f5298aca |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
from | address |
id | uint256 |
amount | uint256 |
setQuorum
@notice Update Keep quorum threshold.
@param threshold Signature threshold for `execute()`.
Metadata
Type | Value |
---|
functionSelector | c1ba4e59 |
---|
stateMutability | payable |
---|
visibility | public |
---|
setTransferability
@notice ID transferability setter.
@param id ID to set transferability for.
@param transferability Transferability setting.
Metadata
Type | Value |
---|
functionSelector | 7140d960 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
id | uint256 |
transferability | bool |
setPermission
@notice ID transfer permission toggle.
@param id ID to set permission for.
@param set Permission setting.
@dev This sets account-based ID restriction globally.
Metadata
Type | Value |
---|
functionSelector | 7769ea0b |
---|
stateMutability | payable |
---|
visibility | public |
---|
setUserPermission
@notice ID transfer permission setting.
@param to Account to set permission for.
@param id ID to set permission for.
@param set Permission setting.
@dev This sets account-based ID restriction specifically.
Metadata
Type | Value |
---|
functionSelector | 49e5078c |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
to | address |
id | uint256 |
set | bool |
setURI
@notice ID metadata setter.
@param id ID to set metadata for.
@param tokenURI Metadata setting.
Metadata
Type | Value |
---|
functionSelector | 862440e2 |
---|
stateMutability | payable |
---|
visibility | public |
---|
Parameters
Name | Type |
---|
id | uint256 |
tokenURI | string |