Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
22484f77
Commit
22484f77
authored
Feb 02, 2021
by
aniket-engg
Committed by
Aniket
Feb 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example readme updated
parent
5cddc1fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
examples.js
apps/remix-ide/src/app/editor/examples.js
+11
-10
No files found.
apps/remix-ide/src/app/editor/examples.js
View file @
22484f77
...
...
@@ -313,21 +313,22 @@ const deployWithEthers = `// Right click on the script name and hit "Run" to exe
const
readme
=
`REMIX EXAMPLE PROJECT
Remix example project is
the project which is there at the time of very first loading of Remix. It contains mainly 3 directories:
'contracts', 'scripts' & 'tests'.
Remix example project is
present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
'contracts' directory holds 3 contracts with different complexity level
.
'scripts' directory holds the scripts to deploy a contract using web3.js or ethers.js libraries
.
'tests' directory contains a test file with unit tests for 'Ballot' contract
.
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name
.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below
.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity
.
DEPLOY CONTRACT
SCRIPTS
A contract can be deployed using the scripts in 'scripts' folder. Currently, they are configured to deploy the 'Storage' contract.
For deployment of any other contract, 'contractName' and 'constructorArgs' should be update (along with other code if required).
The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract.
For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required).
Scripts have full access to the web3.js and ethers.js libraries.
To run a script,
just right click on file name and click 'Run'
.
To run a script,
right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled
.
Consoles
from script will appear in remix terminal.
Output
from script will appear in remix terminal.
`
module
.
exports
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment