All Projects → tryethernal → ethernal-cli

tryethernal / ethernal-cli

Licence: MIT license
CLI to sync transactions and Truffle artifacts with Ethernal.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ethernal-cli

niftygate
Drop-in Access Control via NFT Ownership
Stars: ✭ 61 (+335.71%)
Mutual labels:  web3
hivemind
Hive API server (offloads most API calls from hived) implemented using Python+SQL
Stars: ✭ 46 (+228.57%)
Mutual labels:  web3
solidity-cli
Compile solidity-code faster, easier and more reliable
Stars: ✭ 49 (+250%)
Mutual labels:  web3
datamodels
A collection of data models used by Ceramic applications
Stars: ✭ 66 (+371.43%)
Mutual labels:  web3
emerald-web3-gateway
The Web3 Gateway for the Oasis Emerald ParaTime.
Stars: ✭ 19 (+35.71%)
Mutual labels:  web3
web3-provider-ledger
A web3 provider for Ledger hardware wallets
Stars: ✭ 15 (+7.14%)
Mutual labels:  web3
cybaca
Small app for huge community growth
Stars: ✭ 16 (+14.29%)
Mutual labels:  web3
EnvCLI
Don't install Node, Go, ... locally - use containers you define within your project. If you have a new machine / other contributors you just have to install docker and envcli to get started.
Stars: ✭ 93 (+564.29%)
Mutual labels:  developer-tools
web3-webpacked
Drop-in web3 solution for single-page Ethereum dApps
Stars: ✭ 36 (+157.14%)
Mutual labels:  web3
DEGEN
Distributing POAPs to DAOs in discord, twitter, and more.
Stars: ✭ 27 (+92.86%)
Mutual labels:  web3
ape
The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
Stars: ✭ 339 (+2321.43%)
Mutual labels:  web3
attestation
Paper and implementation of blockchain attestations
Stars: ✭ 44 (+214.29%)
Mutual labels:  web3
widgets
💸 Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion with state-of-the-art widgets.
Stars: ✭ 32 (+128.57%)
Mutual labels:  web3
openst-platform
OpenST Platform provides an interface to tokenise mainstream consumer applications with crypto-assets on Ethereum [deprecated in favour of openst.js and mosaic.js]
Stars: ✭ 84 (+500%)
Mutual labels:  web3
www-react-postgres
A complete template for 2022 focused on around React, Postgres and various web3 integrations. You can use the template to make a website, a web application, a hybrid decentralized web application, or even a DAO.
Stars: ✭ 36 (+157.14%)
Mutual labels:  web3
etherbrite
🗓 Clone eventbrite on Ethereum, built in Solidity, TruffleJS, Web3js and React/Redux.
Stars: ✭ 19 (+35.71%)
Mutual labels:  web3
multisol
CLI application for verifying Solidity contracts on Etherscan
Stars: ✭ 94 (+571.43%)
Mutual labels:  web3
juice-interface
🧃 An app for using the JBX protocol.
Stars: ✭ 132 (+842.86%)
Mutual labels:  web3
feater
Tool for rapid deployment of selected features of your web application to isolated testing or demo environments.
Stars: ✭ 27 (+92.86%)
Mutual labels:  developer-tools
likecoin-tx-poll
Firestore based service of polling eth status and resending tx
Stars: ✭ 13 (-7.14%)
Mutual labels:  web3

ethernal-cli

CLI to sync transactions with Ethernal.

Truffle & Brownie artifacts are also synced through this CLI, if you are using Hardhat, use this plugin.

If you are looking for more detailed doc about Ethernal: https://doc.tryethernal.com

Installation

OSX / Windows

npm install ethernal -g

Linux

On Linux systems, Ethernal CLI relies on libsecret to securely store your password. Make sure it's installed by running the following command, depending on your distribution:

  • Debian/Ubuntu: sudo apt-get install libsecret-1-dev
  • Red Hat-based: sudo yum install libsecret-devel
  • Arch Linux: sudo pacman -S libsecret

Source

Then run:

npm install ethernal -g

Usage

Login

First, you need to login using your Ethernal credentials (only needed once).

ethernal login

Otherwise, you can pass the env variables ETHERNAL_EMAIL and ETHERNAL_PASSWORD to any of the commands below. This is especially useful if you are running Ethernal on Ubuntu or in a Docker container as you might run into issues with the keychain on there.

Listening to transactions

This will synchronize blocks, transactions & contracts to Ethernal The CLI will connect to the URL set on the workspace you used last.

ethernal listen

For blocks & transactions, the whole object returned by web3 is synchronized with Ethernal.

Options

-w

Connect to the specified workspace

ethernal listen -w workspace

-d

Specifiy which directory to watch (one or more, separated by a comma)

ethernal listen -d ~/solidity/project,~/solidity/project2

-s

Only listen to transactions, do not watch artifacts for changes. Useful if your blockchain is not on your local environment. Will be ignore if the -l flag is passed

ethernal listen -s

-l

Only watch artifact changes, do not listen to transactions. Useful if you ran the ethernal listen -s somewhere else.

ethernal listen -l

-h

Display help

ethernal listen -h

Artifacts Uploading

Running the listen command in a Truffle or Brownie project will automatically watch your artifacts, and upload the data everytime it changes. You can also pass a path to watch with the -d flag.

ethernal listen -d ~/solidity/my-project

Watch multiple directories at once:

ethernal listen -d ~/solidity/my-project,~/solidity/other-project

By default, only the name and the ABI of the contract are going to be uploaded. If you want to use the "Storage" tab of contracts page, you'll need to have the AST uploaded as well. To do so, pass the --astUpload flag as a parameter. ethernal listen --astUpload (this will upload the ast field, as well as the source field).

For Brownie projects, the flag dev_deployment_artifacts needs to be set to true in brownie-config.yaml.

Syncing a range of blocks

This will sync all blocks in a range (start and end of the range included), and their transactions. It takes two mandatory parameters: -f or --from is the first block to be synchronized, and -t or --to which is the last block.

ethernal sync -f 1 -t 10

Resetting a workspace

This will delete all accounts/blocks/transactions/contracts from a specific workspace

ethernal reset [workspace]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].