Burrow supports experimental ewasm contracts. Any contract which can be compiled using Solang can run on Burrow.
Write a simple solidity contract which is supported by solang. For example:
contract foobar {
uint64 foo;
function setFoo(uint64 n) public {
foo = n;
}
function getFoo() public returns (uint64) {
return foo;
}
}
And a deploy yaml:
jobs:
- name: deployFoobar
deploy:
contract: foobar.sol
- name: setFoo
call:
destination: $deployFoobar
function: setFoo
data: [ 102 ]
- name: getFoo
call:
destination: $deployFoobar
function: getFoo
Now run this script using:
burrow deploy --wasm -a Participant_0 deploy.yaml