Skip to content

Blockchain demo contracts used for a demonstration in a lecture at Syntra AB

Notifications You must be signed in to change notification settings

bramvdbogaerde/blockchain-demo-jazzathome

Repository files navigation

Demo contracts

Purpose

The purpose of this repository is to show a few example contracts for a real event called "Jazzathome".

These example contracts facilitate the transaction of tickets for the event and as well reservations for the event.

Run in Remix

There are a few pitfalls when running the smart contracts in Remix:

  • Use stable compiler version 0.4.16 since this code is not compatible with release 0.5.0 of Solidity

  • Since the ABI formatter has changed in Remix you cannot pass a string as bytes32 anymore. You need to encode them first. This can be achieved using:

    web3.utils.utf8ToHex('Your string')
    

    In the console of the Remix IDE.

Web3 DApp

These contracts are indented to be used in tandem with a Web3 HTML,CSS, Javascript application. This application is yet to be uploaded to a public repository.

Security considerations

You should not base your code of these example contracts. There are written without much security considirations in mind and are also compiled against a (relatively) acient version of the compiler that has much less security analysis built-in as the current one.

The code might get update in the future.

Copyright and license

Copyright all rights reserved Green10 BVBA License: GPLv3.

About

Blockchain demo contracts used for a demonstration in a lecture at Syntra AB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published