AgentManager
ADMIN
APPROVE
ApproveAgent
BanAgent
DeclareProtocolSupport
RevokeProtocolSupport
PauseAgent
UnpauseAgent
isInit
setContracts init marker
agents
all agent addresses
stakingManager
stakingManager
externalDeveloperHub
externalDeveloperHub
masterSmartContract
masterSmartContract
globalConfig
globalConfig
approvedAgents
agents approved with KYB
pausedAgents
pausedAgents
rewardAddress
reward addresses for agents
transmitters
transmitter is agent worker address for protocol
agentByTransmitter
agentByTransmitter
transmitterCount
transmitter count for each agent
initialize
Initialize
Parameters
Name | Type | Description |
---|---|---|
initAddr | address[2] |
isApprovedAgent
Check if agent is KYB-approved.
setContracts
Set contracts addresses
_authorizeUpgrade
approveAgent
Approve agent after KYB and set its reward address
Parameters
Name | Type | Description |
---|---|---|
agent | address | - agent address |
_rewardAddress | address | - reward address for agent |
banAgent
Ban agent and remove it from protocols and slash full personal stake (TODO)
Parameters
Name | Type | Description |
---|---|---|
agent | address | - agent address |
declareProtocolSupport
Declare protocol support by agent and set transmitter address generated by agent for protocol
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | - protocol id |
transmitterAddress | address | - Agent's transmitter address for the protocol |
revokeProtocolSupport
Stop protocol support for given protocol
Parameters
Name | Type | Description |
---|---|---|
protocolId | bytes32 | - protocol id |
pauseAgent
Pause agent (self) from participating in next election
unpauseAgent
Unpause agent (self) and allow it to participate in next election
getAgents
Get agents qualified to participate in next election
protocolSupported
Check if agent supports protocol
Parameters
Name | Type | Description |
---|---|---|
_agent | address | - agent address |
_protocolId | bytes32 | - protocol id |
Last updated