This package provides the following services:
Athena-ide package
A package for writing smart contract in aergo using atom
Compatibility
- Atom: v1.28 or higher
- Aergo: v2.2.x
Need to rebuild for atom compatible electron version for grpc native modules in a herajs
- atom 1.28.0: electron 2.0.0
- atom 1.39.0: electron 3.1.1
- atom 1.41.0: electron 4.2.0
And for all platform (win32, linux, darwin) for packaging
Check release notes of atom
Features
./screenshots holds all the supported features
Build from source
- Install dependency:
npm install - Lint:
npm run lint - Run test (including lint):
npm run test - Link and run as dev mode (real time ui changes)
- Atom package link:
apm link - Run dev mode:
npm run dev
- Atom package link:
- Build dist:
npm run build - Make installer:
npm run archive
Product
Prerequisite
Install
With atom package manager
> apm install athena-ide-atom
With atom ui

With installer (use gitbash in windows)
> ./athena-ide-atom-x.x.x-installer.bin
Open panel
With shortcut: Alt + Shift + L

With menu bar

Editor
AutoComplete

Lint

Node
New

Remove

Account
New

Import

Export

Remove

Deployment
Compile
With shortcut: f7

With button

Deploy
Without args

Without args with gas limit

Without args with amount

With args

Import / Remove
Import deployed contract

Remove contract

Execute / Query
Execute contract

Execute with varargs

Execute contract set gas limit

Execute contract with fee delegation

Execute contract with amount

Query contract state

Redeploy (private mode only)
Redeploy to already deployed one (Deployer must be an origin deployer)

Contribution
-
Do not write custom scripts as external file like
"scripts": { "some-script": "scripts/some-script.sh", },It would break windows build in cmd.exe. Which causes package install failure in windows.
-
Since atom is electron-based, make sure external library is build on electron target.
Do not useelectron-rebuildbecause of grpc see also.
Following these rules, feel free to make any pull requests.