Skip to content

Latest commit

ย 

History

History
138 lines (97 loc) ยท 3.76 KB

File metadata and controls

138 lines (97 loc) ยท 3.76 KB

Zenswarm

Planetmint Broadcast Zencode
Execute Zenroom SC in Planetmint monitoring

Dyne.org



A python script to execute a Zenroom smart contract in Planetmint.

The script performs a POST to a Planetmint node, which is executed on chain. Upon successful execution, Planetmint returns a txId. Data passed to Planetmint is:

  • A smart contract written in Zencode
  • Input for the smart contract
  • ED259 public key of the actor executing the smart contract

Example

curl -X POST localhost:5000/broadcast --data-urlencode "data@data.json" --data-urlencode "keys@keys.json" --data-urlencode "script@script.zen" --data-urlencode "asset@asset.json" --data-urlencode "ed_public_key=5Uv4KLinWJpKFagfab9r3P9jMRJhWMZv3CgRdBZZ4vvb" --data-urlencode "metadata@metadata.json"
๐Ÿšฉ Table of Contents (click to expand)

๐Ÿ’พ Install

pnpm install
pnpm run build
pnpm run start

๐ŸŽฎ Quick start

pnpm run dev


๐Ÿ” back to top


๐Ÿ˜ Acknowledgements

software by Dyne.org

Copyleft (ษ”) 2021 by Dyne.org foundation, Amsterdam

Designed, written and maintained by Puria Nafisi Azizi.

Special thanks to Mr. W. White for his special contributions.

๐Ÿ” back to top


๐ŸŒ Links

https://github.com/dyne/zenswarm https://dyne.org/

๐Ÿ” back to top


๐Ÿ‘ค Contributing

Please first take a look at the Dyne.org - Contributor License Agreement then

  1. ๐Ÿ”€ FORK IT
  2. Create your feature branch git checkout -b feature/branch
  3. Commit your changes git commit -am 'Add some fooBar'
  4. Push to the branch git push origin feature/branch
  5. Create a new Pull Request
  6. ๐Ÿ™ Thank you

๐Ÿ” back to top


๐Ÿ’ผ License

Planetmint Broadcast Zencode - {tagline}
Copyleft (ษ”) 2021 Dyne.org foundation, Amsterdam

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

๐Ÿ” back to top