Skip to content

TrueFiEng/Mars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e01f0e · Mar 15, 2024

History

96 Commits
Oct 25, 2022
Aug 12, 2022
Mar 15, 2024
Mar 15, 2024
Apr 28, 2022
Oct 18, 2020
Apr 25, 2022
Oct 16, 2020
Jan 26, 2022
Oct 16, 2020
Oct 18, 2020
Dec 18, 2020
Apr 26, 2022
Jun 8, 2022
Apr 26, 2022
Dec 3, 2021

Repository files navigation

Ethereum Mars

CI

Devops tool for Ethereum Smart Contracts to take your project to the moon and beyond.

Features

Fearless deployments and updates

Forget about deployment pain! Write once, dry-run and deploy to multiple networks. With support for Proxy pattern, contract updates are first-class citizen.

Focus on what’s important

Don’t roll your own hacky script. Let Mars handle the details: gas fees, resuming broken deployments, waiting for confirmations and storing the results.

Infrastructure-as-code

Solidity source does not paint the full picture. Store deployment configuration, environments and infrastructure in your git repository.

Learn in 5 minutes

No need to learn a new language. Write your configuration in JS/TS with familiar tooling like ethers.js and Waffle.

Example

Configuration

import { deploy, connect, contract } from 'ethereum-mars'
import { ERC20, WETH9, AwesomeExchange } from './build/artifacts'

deploy(() => {
  const myToken = contract('myToken', ERC20, [20_000])
  const weth = connect('weth', WETH9, '0xC02a...6Cc2')
  contract(AwesomeExchange, [myToken, weth])
})

Output

> mars deploy

Transaction: Deploy myToken
  Fee: $5.72, Ξ0.00875217
  Balance: $753.86, Ξ1.15322565145876257
  Hash: 0x98dd...bdd8
  Block: 22650076
  Address: 0x4b0a4...F2f8b

Transaction: Deploy market
  Fee: $2.74, Ξ0.00419342
  Balance: $738.00, Ξ1.13018515145876257
  Sending ...
  Hash: 0x60c0...a2bd
  Block: 22650101
  Address: 0x0522...991F

Done in 20s.

Installation

To install mars use Yarn:

yarn add --dev ethereum-mars

or if you prefer you can use npm:

npm install --save-dev ethereum-mars