Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bisonai/orakl-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Orakl Network CLI
The Orakl Network CLI is a tool to configure and manage the Orakl Network. To learn more about the Orakl Network CLI, visit Orakl Network CLI documentation page.
Development
yarn install
yarn buildTest
yarn testLint
yarn lintEnvironment Variables
The Orakl Network CLI needs to communicate with other Orakl Network services (Orakl Network API, Orakl Network Fetcher, and Orakl Network Delegator) to function properly. The services are expected to be launched before using the Orakl Network CLI. The Orakl Network CLI tries to connect to the required services with URL environment variables.
ORAKL_NETWORK_API_URLORAKL_NETWORK_FETCHER_URLORAKL_NETWORK_DELEGATOR_URL
Publishing
The @bisonai/orakl-cli package is published through Github Actions pipeline when the version the package specified in package.json changes.
The package is published at NPM registry.
License
MIT
How to Run Delegator throught Cli
Insert New Organization
yarn cli delegator organizationInsert --name BisonAIList Organizations
yarn cli delegator organizationListInsert New Reporter
yarn cli delegator reporterInsert \
--address "0x0000000000000000000000000000000000000000" \
--organizationId 1List Reporters
yarn cli delegator reporterListInsert New Contract
yarn cli delegator contractInsert \
--address "0x0000000000000000000000000000000000000001"List Contracts
yarn cli delegator contractListInsert New Function
yarn cli delegator functionInsert \
--name "sendRequest()" \
--contractId 1List Functions
yarn cli delegator functionListConnect contract with reporter
yarn cli delegator contractConnect \
--contractId 1 \
--reporterId 1yarn cli delegator reporterList