JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 32
  • Score
    100M100P100Q25894F
  • License MIT

The Orakl Network CLI

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 build

    Test

    yarn test

    Lint

    yarn lint

    Environment 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_URL
    • ORAKL_NETWORK_FETCHER_URL
    • ORAKL_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 BisonAI

    List Organizations

     yarn cli delegator organizationList

    Insert New Reporter

    yarn cli delegator reporterInsert \
          --address "0x0000000000000000000000000000000000000000" \
          --organizationId 1

    List Reporters

    yarn cli delegator reporterList

    Insert New Contract

    yarn cli delegator contractInsert \
          --address "0x0000000000000000000000000000000000000001"

    List Contracts

    yarn cli delegator contractList

    Insert New Function

    yarn cli delegator functionInsert \
          --name "sendRequest()" \
          --contractId 1

    List Functions

    yarn cli delegator functionList

    Connect contract with reporter

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