Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Releases: LimeChain/etherlime

[email protected]

14 Jun 19:48
Compare
Choose a tag to compare

Fixed

-Fixed bug related with compilation of nested contracts folders #239

[email protected]

11 Jun 13:28
Compare
Choose a tag to compare

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]

31 May 11:53
Compare
Choose a tag to compare

Updated

  • Rewritten and removed some of the heavy dependencies that Etherlime uses.

[email protected]

30 May 08:15
Compare
Choose a tag to compare

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]

23 May 12:55
Compare
Choose a tag to compare

Improved

  • Fixed etherlime init command issue connected with missing mocha dependency.

Etherlime 2.0.0

23 May 06:43
Compare
Choose a tag to compare

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

17 May 11:45
Compare
Choose a tag to compare

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 the deployer
  • Improve report table with included information about Solc Version and Contract 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

17 May 08:36
Compare
Choose a tag to compare

Improved

  • Fixed etherlime test command issue

Updated

  • Documentation updated with the latest information and changes.

v1.1.3

14 May 13:34
Compare
Choose a tag to compare

Improved

  • Added runs flag for compiler optimizer on etherlime test CLI command
  • Added deleteCompiledFiles flag for deleting already compiled files on etherlime compile CLI command
  • Added MonoPlasma shape on etherlime shape command

Updated

  • Documentation updated with the latest information and changes.

v1.1.2

22 Apr 06:44
Compare
Choose a tag to compare

Improved

  • ZK Proof Improvements

Updated

  • Documentation updated with the latest information and changes.