Compiling Contracts
Zeus supports compiling EOSIO and EVM compatible contracts.
Let's first create a contract
1
zeus create contract compiler
Copied!
This places an EOSIO contract in /contracts/eosNow let's compile it.
1
zeus compile compiler
Copied!
If you wanted to compile all contracts within the./contracts directory, you can run
Compile
Options
1
zeus compile
Copied!
1
zeus compile [contract]
2
​
3
compile contracts
4
​
5
Options:
6
--version Show version number [boolean]
7
--storage-path path for persistent storage [default: "/home/ubuntu/.zeus"]
8
--rc-file use rc file to load options from
9
[default: "/home/ubuntu/.zeus/zeusrc.json"]
10
--rc-ignore ignore rc file [default: false]
11
--verbose, -v [default: false]
12
-h, --help Show help [boolean]
13
--all compile all contracts [default: true]
14
--chain chain to work on [default: "eos"]
15
--sidechain sidechain name to use for liquidx [default: ""]
16
--phase select compile option [dapp-services-eos, eos] [default: ""]
17
​
18
Examples:
19
zeus compile --all
20
zeus compile helloworld
Copied!
To compile an ETH contract run:
Zeus
Truffle
1
zeus compile link --phase eth
2
# to compile all
3
zeus compile --phase eth
Copied!
1
npx truffle compile
2
# run any truffle command
Copied!
If you wish to add your own ethereum contract, you can place it in the ./contracts/eth directory.
If you want to change the compiler version, or any truffle settings, see the ./truffle-config.js file.
Last modified 6mo ago
Copy link