Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julius278/solidity-tests
https://github.com/julius278/solidity-tests
ethereum solidity solidity-contracts testing
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/julius278/solidity-tests
- Owner: Julius278
- Created: 2022-08-12T07:35:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-06T13:23:54.000Z (about 2 years ago)
- Last Synced: 2023-04-25T11:45:07.455Z (over 1 year ago)
- Topics: ethereum, solidity, solidity-contracts, testing
- Language: Solidity
- Homepage:
- Size: 2.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created with 'Default' template
iii. There are no files existing in the File ExplorerThis workspace contains 3 directories:
1. 'contracts': Holds three contracts with increasing levels of complexity.
2. 'scripts': Contains four typescript files to deploy a contract. It is explained below.
3. 'tests': Contains one Solidity test file for 'Ballot' contract & one JS test file for 'Storage' contract.SCRIPTS
The 'scripts' folder has four typescript files which help to deploy the 'Storage' contract using 'web3.js' and 'ethers.js' libraries.
For the deployment of any other contract, just update the contract's name from 'Storage' to the desired contract and provide constructor arguments accordingly
in the file `deploy_with_ethers.ts` or `deploy_with_web3.ts`In the 'tests' folder there is a script containing Mocha-Chai unit tests for 'Storage' contract.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.Please note, require/import is supported in a limited manner for Remix supported modules.
For now, modules supported by Remix are ethers, web3, swarmgw, chai, multihashes, remix and hardhat only for hardhat.ethers object/plugin.
For unsupported modules, an error like this will be thrown: ' module require is not supported by Remix IDE' will be shown.