Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.25 KB

3-contracts.md

File metadata and controls

30 lines (18 loc) · 1.25 KB

Contracts

Burrow supports both Solidity and WASM smart contracts. You may be familiar with this former language if you have worked previously with Ethereum. If so, you will be pleased to know that Burrow can be used with Remix.

Getting Started

Let's start a chain with a single validator:

burrow spec -v1 | burrow configure -s- | burrow start -c-

Deploy Artifacts

For this step, we need two things: one or more solidity contracts and a deploy file. Let's take a simple example, found in this directory.

We need deploy.yaml and storage.sol in the same directory with no other yaml or sol files.

Solc is required to compile Solidity code.

From inside that directory, we are ready to deploy.

burrow deploy --address $ADDRESS deploy.yaml

Replace $ADDRESS with the address at the top of your burrow.toml.

That's it! You've successfully deployed (and tested) a Solidity contract to a Burrow node.