KIP Registration
This contract is used as the
MINTER_ROLE
to manage identification registration within the ecosystem.The current version of the contract supports three types of registration:
App registration
Model registration
Dataset registration
Deployed
KIPRegistration
contract:Network
Sepolia Base
: 0x51A80578dC332B5B7AA04b4E65318b4a5700CED2
Supported roles/actors/users (
msg.sender
):DEFAULT_ADMIN_ROLE
:OPERATOR_ROLE
:Users
:App Owner
Model Owner
Dataset Owner
Contract Interfaces
Getter functions:
Purpose: Query the current address of the
KIPManagement
contract.Parameters:
None
Return:
Type:
address
Value: The address of the
KIPManagement
contract
Purpose: Query the current address of the
KIPIdentification
contract.Parameters:
None
Return:
Type:
address
Value: The address of the
KIPIdentification
contract
Purpose: Query the current registration fee.
Parameters:
None
Return:
Type:
uint256
Value: The registration fee
Purpose: Query the total number of successful registrations handled by this contract.
Parameters:
None
Return:
Type:
uint256
Value: The number of successful registrations
Purpose: Query the
modelId
anddataId
(optional) that theappId
has bound.Parameter:
appId
:Type:
uint256
Value: The unique ID assigned to an
app
Returns:
modelId
:Type:
uint256
Value: The unique ID assigned to a
model
dataId
:Type:
uint256
Value: The unique ID assigned to a
dataset
(optional = 0, otherwise != 0)
Setter functions:
Purpose: Update the address of
KIPManagement
contractRequirement:
Caller must have
DEFAULT_ADMIN_ROLE
Parameter:
management
:Type:
address
Value: The address of the
KIPManagement
contract
Purpose: Update the registration fee.
Requirement:
Caller must have
OPERATOR_ROLE
Parameter:
newFee
:Type:
uint256
Value: The new registration fee
Purpose: Register the
model
Requirement:
None
Parameter:
url
:Type:
string
Value: The string value of
tokenURI
linking to its metadata
Purpose: Register the
dataset
Requirement:
None
Parameter:
url
:Type:
string
Value: The string value of
tokenURI
linking to its metadata
Purpose: Register the
app
.App Owner
has two options:Option 1: Register the app and bind it to both a
model
and adataset
Option 2: Register the app and bind it to a
model
only (without adataset
)
Requirements:
Option 1:
modelId
anddataId
must be validThe
idType
of each must be valid
Option 2:
modelId
and itsidType
must be valid
Parameters:
modelId
:Type:
uint256
Value: The unique ID assigned to the
model
dataId
:Type:
uint256
Value: The unique ID assigned to the
dataset
url
:Type:
string
Value: The string value of
tokenURI
linking to the app's metadata
Last updated