GithubHelp home page GithubHelp logo

onomyprotocol / aurora-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aurora-is-near/aurora-cli

0.0 2.0 0.0 1.4 MB

Aurora Engine command-line interface (CLI).

Home Page: https://aurora-is-near.github.io/aurora-cli/

License: Creative Commons Zero v1.0 Universal

JavaScript 96.31% Makefile 3.69%

aurora-cli's Introduction

Aurora Engine Command-Line Interface (CLI)

Project license Discord Lints

Prerequisites

  • Node.js (v14+)

Installation

npm install -g @auroraisnear/cli

Usage

See https://github.com/aurora-is-near/aurora-engine#usage for usage examples.

Key Management

The CLI will load the following local keys by default, if found:

  • $HOME/.near-credentials/*/*.json: credentials stored by the NEAR CLI

  • $HOME/.near/validator_key.json: the local nearcore validator key (for the test.near master account)

Reference

aurora help

$ aurora help
Usage: aurora [options] [command]

Options:
  -d, --debug                                    enable debug output
  -v, --verbose                                  enable verbose output
  --network <network>                            specify NEAR network ID (default: "local")
  --endpoint <url>                               specify NEAR RPC endpoint URL
  --engine <account>                             specify Aurora Engine account ID
  --signer <account>                             specify signer account ID (default: "test.near")
  -h, --help                                     display help for command

Commands:
  install|upgrade [options] <contract>
  initialize|init [options]
  get-version
  get-owner
  get-bridge-prover
  get-chain-id|get-chain
  get-upgrade-index
  stage-upgrade
  deploy-upgrade
  deploy-code|deploy <bytecode>
  call <address> <input>
  meta-call
  view [options] <address> <input>
  get-code <address>
  get-balance <address>
  get-nonce <address>
  get-storage-at|get-storage <address> <key>
  begin-chain <id>
  begin-block <hash>
  dump-storage
  encode-address <account>
  encode-hash <base58>
  help [command]                              display help for command

aurora install

$ aurora install -h
Usage: aurora install|upgrade [options] <contract>

Options:
  --chain <id>               specify EVM chain ID (default: "0")
  --owner <account>          specify owner account ID (default: "")
  --bridge-prover <account>  specify bridge prover account ID (default: "")
  --upgrade-delay <blocks>   specify upgrade delay block count (default: "0")
  -h, --help                 display help for command

aurora init

$ aurora init -h
Usage: aurora initialize|init [options]

Options:
  --chain <id>               specify EVM chain ID (default: "0")
  --owner <account>          specify owner account ID (default: "")
  --bridge-prover <account>  specify bridge prover account ID (default: "")
  --upgrade-delay <blocks>   specify upgrade delay block count (default: "0")
  -h, --help                 display help for command

aurora get-version

$ aurora get-version -h
Usage: aurora get-version|get_version [options]

Options:
  -h, --help  display help for command

aurora get-owner

$ aurora get-owner -h
Usage: aurora get-owner|get_owner [options]

Options:
  -h, --help  display help for command

aurora get-bridge-prover

$ aurora get-bridge-prover -h
Usage: aurora get-bridge-prover|get_bridge_prover [options]

Options:
  -h, --help  display help for command

aurora get-chain-id

$ aurora get-chain-id -h
Usage: aurora get-chain-id|get_chain_id [options]

Options:
  -h, --help  display help for command

aurora get-upgrade-index

$ aurora get-upgrade-index -h
Usage: aurora get-upgrade-index|get_upgrade_index [options]

Options:
  -h, --help  display help for command

aurora stage-upgrade

$ aurora stage-upgrade -h
Usage: aurora stage-upgrade|stage_upgrade [options]

Options:
  -h, --help  display help for command

aurora deploy-upgrade

$ aurora deploy-upgrade -h
Usage: aurora deploy-upgrade|deploy_upgrade [options]

Options:
  -h, --help  display help for command

aurora deploy-code

$ aurora deploy-code -h
Usage: aurora deploy-code|deploy [options] <bytecode>

Options:
  -h, --help  display help for command

aurora call

$ aurora call -h
Usage: aurora call [options] <address> <input>

Options:
  -h, --help  display help for command

aurora meta-call

$ aurora meta-call -h
Usage: aurora meta-call|meta_call [options]

Options:
  -h, --help  display help for command

aurora view

$ aurora view -h
Usage: aurora view [options] <address> <input>

Options:
  --sender <address>  specify the sender address (default:
                      "0x0000000000000000000000000000000000000000")
  --amount <value>    attach an ETH amount (default: "0")
  -h, --help          display help for command

aurora get-code

$ aurora get-code -h
Usage: aurora get-code|get_code [options] <address>

Options:
  -h, --help  display help for command

aurora get-balance

$ aurora get-balance -h
Usage: aurora get-balance|get_balance [options] <address>

Options:
  -h, --help  display help for command

aurora get-nonce

$ aurora get-nonce -h
Usage: aurora get-nonce|get_nonce [options] <address>

Options:
  -h, --help  display help for command

aurora get-storage-at

$ aurora get-storage-at -h
Usage: aurora get-storage-at|get_storage_at [options] <address> <key>

Options:
  -h, --help  display help for command

aurora begin-chain

$ aurora begin-chain -h
Usage: aurora begin-chain|begin_chain [options] <id>

Options:
  -h, --help  display help for command

aurora begin-block

$ aurora begin-block -h
Usage: aurora begin-block|begin_block [options] <hash>

Options:
  -h, --help  display help for command

aurora dump-storage

$ aurora dump-storage -h
Usage: aurora dump-storage|dump_storage [options]

Options:
  -h, --help  display help for command

aurora encode-address

$ aurora encode-address -h
Usage: aurora encode-address [options] <account>

Options:
  -h, --help  display help for command

aurora encode-hash

$ aurora encode-hash -h
Usage: aurora encode-hash [options] <base58>

Options:
  -h, --help  display help for command

Development

Local development

alias aurora='node lib/aurora.js'
export NEAR_URL=http://localhost:3030

aurora-cli's People

Contributors

0x3bfc avatar artob avatar birchmd avatar frankbraun avatar luciotato avatar strokovok avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.