Skip to content

Commit

Permalink
update to Remix Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ryestew authored and Aniket-Engg committed Aug 23, 2021
1 parent 1de84b0 commit a088e67
Showing 1 changed file with 12 additions and 59 deletions.
71 changes: 12 additions & 59 deletions docs/remix_commands.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
Remix Commands
==============

In the console, you can run the commands listed below. Once you start to type a command, there is *auto completion*. These commands are using the following libraries:
In the console, you can run the commands listed below. Once you start to type a command, there is *auto complete*. These commands are using the following libraries:

+ *ethers*: The [ethers.js](https://docs.ethers.io/ethers.js/html/getting-started.html) library is a compact and complete JavaScript library for Ethereum.

+ *remix*: Ethereum IDE and tools for the web.
**remix**: Remix has a number of CLI commands for loading & executing file in a workspace. See the list below.

+ *web3*: The [web3.js](https://web3js.readthedocs.io/en/1.0/) library is a collection of modules which contain specific functionality for the ethereum ecosystem.
**ethers**: Remix IDE enables the use of ethersjs commands. See the [Ethers docs](https://docs.ethers.io/) for the full list.

+ *swarmgw*: This library can be used to upload/download files to Swarm via https://swarm-gateways.net/.
**web3**: Remix IDE enable the use of web3js commands. See the [Web3js docs](https://web3js.readthedocs.io/) for the full list.

#### Here's the list of commands
**remix.debug(hash)**: Start debugging a transaction.
**swarmgw**: This library can be used to upload/download files to Swarm via https://swarm-gateways.net/.

**remix.debugHelp()**: Display help message for debugging
### Remix Commands

**remix.execute(filepath)**: Run the script specified by file path. If filepath is empty, script currently displayed in the editor is executed.

Expand All @@ -28,66 +25,22 @@ In the console, you can run the commands listed below. Once you start to type a

**remix.loadurl(url)**: Load the given url in the file explorer. The url can be of type github, swarm or ipfs.

**remix.setFile(path, content)**: set the content of the file located at the given path

**remix.setproviderurl(url)**: Change the current provider to Web3 provider and set the url endpoint.

**swarmgw.get(url, cb)**: Download files from Swarm via https**://swarm-gateways.net/

**swarmgw.put(content, cb)**: Upload files to Swarm via https**://swarm-gateways.net/

**ethers.Contract**: This API provides a graceful connection to a contract deployed on the blockchain, simplifying calling and querying its functions and handling all the binary protocol and conversion as necessarily.

**ethers.HDNode**: A Hierarchical Deterministic Wallet represents a large tree of private keys which can reliably be reproduced from an initial seed.

**ethers.Interface**: The Interface Object is a meta-class that accepts a Solidity (or compatible) Application Binary Interface (ABI) and populates functions to deal with encoding and decoding the parameters to pass in and results returned.

### A few Ethers JS examples
**ethers.providers**: A Provider abstracts a connection to the Ethereum blockchain, for issuing queries and sending state changing transactions.

**ethers.SigningKey**: The SigningKey interface provides an abstraction around the secp256k1 elliptic curve cryptography library.

**ethers.utils**: The utility functions exposed in both the ethers umbrella package and the ethers-utils.

**ethers.utils.AbiCoder**: Create a new ABI Coder object

**ethers.utils.RLP**: This encoding method is used internally for several aspects of Ethereum, such as encoding transactions and determining contract addresses.

**ethers.Wallet**: A wallet manages a private/public key pair which is used to cryptographically sign transactions and prove ownership on the Ethereum network.
**ethers.utils**: The utility functions exposed in both the ethers umbrella package and the ethers-utils. eg ethers.utils.formatBytes32String( text )

**ethers.version**: Contains the version of the ethers container object.

**web3.bzz**: Bzz module for interacting with the swarm network.

**web3.eth**: Eth module for interacting with the Ethereum network.

**web3.eth.accounts**: The web3.eth.accounts contains functions to generate Ethereum accounts and sign transactions and data.
### A few Web3 JS examples

**web3.eth.abi**: The web3.eth.abi functions let you de- and encode parameters to ABI (Application Binary Interface) for function calls to the EVM (Ethereum Virtual Machine).

**web3.eth.ens**: The web3.eth.ens functions let you interacting with ENS.

**web3.eth.Iban**: The web3.eth.Iban function lets convert Ethereum addresses from and to IBAN and BBAN.

**web3.eth.net**: Net module for interacting with network properties.

**web3.eth.personal**: Personal module for interacting with the Ethereum accounts.

**web3.eth.subscribe**: The web3.eth.subscribe function lets you subscribe to specific events in the blockchain.

**web3.givenProvider**: When using web3.js in an Ethereum compatible browser, it will set with the current native provider by that browser. Will return the given provider by the (browser) environment, otherwise null.

**web3.modules**: Contains the version of the web3 container object.

**web3.providers**: Contains the current available providers.

**web3.shh**: Shh module for interacting with the whisper protocol

**web3.utils**: This package provides utility functions for Ethereum dapps and other **web3.js packages.

**web3.version**: Contains the version of the web3 container object.
### A few Swarm examples examples (these will be updated soon)

**web3.eth.clearSubscriptions();**: Resets subscriptions.
**swarmgw.get(url, cb)**: Download files from Swarm via https**://swarm-gateways.net/

**web3.eth.Contract(jsonInterface[, address][, options])**: The **web3.eth.Contract object makes it easy to interact with smart contracts on the ethereum blockchain.
**swarmgw.put(content, cb)**: Upload files to Swarm via https**://swarm-gateways.net/

**web3.eth.accounts.create([entropy]);**: The web3.eth.accounts contains functions to generate Ethereum accounts and sign transactions and data.

0 comments on commit a088e67

Please sign in to comment.