Skip to content

Commit

Permalink
Merge pull request #3114 from ethereum/urlParamWam
Browse files Browse the repository at this point in the history
update locations with github  url & calls to multiple apis
  • Loading branch information
ryestew committed Sep 6, 2022
2 parents 5a40fde + 62c282f commit b032024
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/locations.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ https://remix.ethereum.org/?#activate=defiexplorer,solidity&call=fileManager//op
https://remix.ethereum.org/?#activate=solidityUnitTesting,solidity,LearnEth&call=LearnEth//startTutorial//ethereum/remix-workshops//master//proxycontract
```

### Make calls to a number of different plugins' APIs
Use the `calls` parameter to call a series of plugins. Use `///` to separate the calls.

For example, this command, after activating a list of plugins, calls the LearnEth plugin's API and then calls the File Explorer's API.

```
https://remix.ethereum.org/?#activate=solidityUnitTesting,solidity,LearnEth&calls=LearnEth//startTutorial//ethereum/remix-workshops//master//proxycontract///fileManager//open//contracts/3_Ballot.sol
```
## Load a file via a URL into the Editor
The `url` parameter takes a URL, loads it into the Editor and saves it into the code-sample workspace of the File Explorer:
```
Expand All @@ -124,6 +132,21 @@ The `address` parameter takes an address, loads all the **verified contracts** f
https://remix.ethereum.org/#address=0xdac17f958d2ee523a2206206994597c13d831ec7
```

## Load a Solidity contract from Github
With a github url of a Solidity contract like this one:

```
https://github.com/ethereum/remix-project/blob/master/apps/remix-ide/contracts/app/solidity/mode.sol
```

Then delete the **github** part and type in **remix.ethereum.org** in its place, like this:

```
https://remix.ethereum.org/ethereum/remix-project/blob/master/apps/remix-ide/contracts/app/solidity/mode.sol
```

Remix will fetch the Solidity file and open it up in the File Explorer in a Workspace named<br> **code-sample**.

## Load a GIST
The URL parameter here is `gist`.
```
Expand Down

0 comments on commit b032024

Please sign in to comment.