Delegator

Register organization, reporters, contracts, functions, and connect them together to create your white list rules

Insert new organization

yarn cli delegator organizationInsert \
    --name ${orgName}
  • example

yarn cli delegator organizationInsert --name bisonai

List organizations

yarn cli delegator organizationList

Insert new reporter

yarn cli delegator reporterInsert \
      --address ${address} \
      --organizationId ${organizationId}
  • example

yarn cli delegator reporterInsert --address 0xab --organizationId 10

List reporters

yarn cli delegator reporterList

Insert new contract

yarn cli delegator contractInsert \
      --address ${address}
  • example

yarn cli delegator contractInsert --address 0x23

List contracts

yarn cli delegator contractList

Insert new function

yarn cli delegator functionInsert \
      --name ${functionSignature} \
      --contractId ${contractId}
  • example

yarn cli delegator functionInsert --name "submit(int256,uint256)" --contractId 15

List functions

yarn cli delegator functionList

Connect contract with reporter

yarn cli delegator contractConnect \
      --contractId 1 \
      --reporterId 1

List reporters

yarn cli delegator reporterList

Last updated