Releases: LimeChain/etherlime
[email protected]
Fixed
-Fixed bug related with compilation of nested contracts folders #239
[email protected]
Updated
etherlime-cli
- New assertions for tests are added:
assert.notRevert(),
assert.isAddress(),
assert.isPrivateKey(),
assert.isHash(),
assert.emitWithArgs(),
assert.balanceChanged(),
assert.balancesChanged() - Now the global utils object exposes also utils.snapshot(), utils.revertState()
More information about the assertions HERE
etherlime-lib
The contractWrapper object has also utils property that gives you the option to get easy the contract's balance.
More information about the method HERE
[email protected]
Updated
- Rewritten and removed some of the heavy dependencies that Etherlime uses.
[email protected]
Updated
- Etherlime is now using forked version of Ethers.js 5.0.0 where deploying of Vyper contracts with decimal type is fixed
- Documentation changes
[email protected]
Improved
- Fixed
etherlime init
command issue connected with missingmocha
dependency.
Etherlime 2.0.0
Updated
- Etherlime is now monorepo with a couple of packages.
Breaking changes
TLDR:
In your project run:
npm i etherlime-lib
Wherever you have require('etherlime')
you now need to change to require('etherlime-lib')
.
You can safely uninstall your project version of etherlime npm uninstall etherlime
.
Note: Do reinstall the global CLI version of etherlime: npm uninstall -g etherlime
, npm install -g etherlime
Installing v2.0
Installing the CLI:
npm i -g etherlime
This command in v2.0 will install only the etherlime CLI - (command line interface) library. You can use all the CLI commands.
Installing the LIB:
npm i etherlime-lib
This command will install only etherlime LIB . You can use LIB to deploy, instantiate or test smart contracts.
Deploying in v1.2
Deploying in v1.2 is as follows:
Example:
const etherlime = require('etherlime');
// Path to your etherlime compiled contract json file
const TestContract = require('../build/TestContract.json');
const deploy = async (network, secret) => {
const deployer = new etherlime.EtherlimeGanacheDeployer();
// Add params separated with ,
const result = await deployer.deploy(TestContract, {});
}
module.exports = { deploy }
Please note that here etherlime is required as etherlime
.
Deploying in v2.0
Deploying in v2.0 is as follows using Etherlime LIB.
Example:
const etherlime = require('etherlime-lib');
// Path to your etherlime compiled contract json file
const TestContract = require('../build/TestContract.json');
const deploy = async (network, secret) => {
const deployer = new etherlime.EtherlimeGanacheDeployer();
// Add params separated with ,
const result = await deployer.deploy(TestContract, {});
}
module.exports = { deploy }
Please note that here etherlime is required as etherlime-lib
.
Testing Smart Contracts v1.2
const etherlime = require('etherlime');
const Billboard = require('../build/Billboard.json');
describe('Example', () => {
let owner = accounts[3];
let deployer;
beforeEach(async () => {
deployer = new etherlime.EtherlimeGanacheDeployer(owner.secretKey);
});
it('should set correct owner', async () => {
const BillboardContract = await deployer.deploy(Billboard, {});
let _owner = await BillboardContract.owner();
assert.strictEqual(_owner, owner.signer.address,
'Initial contract owner does not match');
});
});
Please note that here etherlime is required as etherlime
.
Testing Smart Contracts v2.0
const etherlime = require('etherlime-lib');
const Billboard = require('../build/Billboard.json');
describe('Example', () => {
let owner = accounts[3];
let deployer;
beforeEach(async () => {
deployer = new etherlime.EtherlimeGanacheDeployer(owner.secretKey);
});
it('should set correct owner', async () => {
const BillboardContract = await deployer.deploy(Billboard, {});
let _owner = await BillboardContract.owner();
assert.strictEqual(_owner, owner.signer.address,
'Initial contract owner does not match');
});
});
Please note that here etherlime is required as etherlime-lib
.
v1.2.0
Added
Verifier
Etherlime now allows you to easily supply etherscanApiKey to your deployment scripts, receive it as last parameter in the deploy function and use it in the default overrides of the new deployAndVerify
method.
- Verifying smart contracts on Etherscan using automatic
deployAndVerify
method of thedeployer
- Improve report table with included information about
Solc Version
andContract Verification
More info & Examples - https://etherlime.readthedocs.io/en/latest/api/deployers.html#deployandverify-contract-libraries-params
Updated
- Documentation updated with the latest information and changes.
v1.1.4
v1.1.3
Improved
- Added
runs
flag for compiler optimizer onetherlime test
CLI command - Added
deleteCompiledFiles
flag for deleting already compiled files onetherlime compile
CLI command - Added MonoPlasma shape on
etherlime shape
command
Updated
- Documentation updated with the latest information and changes.