KIP Registration
This contract is used as the
MINTER_ROLEto manage identification registration within the ecosystem.The current version of the contract supports three types of registration:
App registration
Model registration
Dataset registration
Deployed
KIPRegistrationcontract:Network
Sepolia Base: 0x51A80578dC332B5B7AA04b4E65318b4a5700CED2
Supported roles/actors/users (
msg.sender):DEFAULT_ADMIN_ROLE:bytes32 DEFAULT_ADMIN_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000000;OPERATOR_ROLE:/// OPERATOR_ROLE = keccak256("OPERATOR_ROLE") bytes32 OPERATOR_ROLE = 0x97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929;Users:App OwnerModel OwnerDataset Owner
Contract Interfaces
Getter functions:
Purpose: Query the current address of the
KIPManagementcontract.Parameters:
NoneReturn:
Type:
addressValue: The address of the
KIPManagementcontract
Purpose: Query the current address of the
KIPIdentificationcontract.Parameters:
NoneReturn:
Type:
addressValue: The address of the
KIPIdentificationcontract
Purpose: Query the current registration fee.
Parameters:
NoneReturn:
Type:
uint256Value: The registration fee
Purpose: Query the total number of successful registrations handled by this contract.
Parameters:
NoneReturn:
Type:
uint256Value: The number of successful registrations
Purpose: Query the
modelIdanddataId(optional) that theappIdhas bound.Parameter:
appId:Type:
uint256Value: The unique ID assigned to an
app
Returns:
modelId:Type:
uint256Value: The unique ID assigned to a
model
dataId:Type:
uint256Value: The unique ID assigned to a
dataset(optional = 0, otherwise != 0)
Setter functions:
Purpose: Update the address of
KIPManagementcontractRequirement:
Caller must have
DEFAULT_ADMIN_ROLE
Parameter:
management:Type:
addressValue: The address of the
KIPManagementcontract
Purpose: Update the registration fee.
Requirement:
Caller must have
OPERATOR_ROLE
Parameter:
newFee:Type:
uint256Value: The new registration fee
Purpose: Register the
modelRequirement:
NoneParameter:
url:Type:
stringValue: The string value of
tokenURIlinking to its metadata
Purpose: Register the
datasetRequirement:
NoneParameter:
url:Type:
stringValue: The string value of
tokenURIlinking to its metadata
Purpose: Register the
app.App Ownerhas two options:Option 1: Register the app and bind it to both a
modeland adatasetOption 2: Register the app and bind it to a
modelonly (without adataset)
Requirements:
Option 1:
modelIdanddataIdmust be validThe
idTypeof each must be valid
Option 2:
modelIdand itsidTypemust be valid
Parameters:
modelId:Type:
uint256Value: The unique ID assigned to the
model
dataId:Type:
uint256Value: The unique ID assigned to the
dataset
url:Type:
stringValue: The string value of
tokenURIlinking to the app's metadata
Last updated