Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carloocchiena/eth_smart_contract

A straight-forward smart contract implemented for testing purpose, allowing to send token to a wallet address.
https://github.com/carloocchiena/eth_smart_contract

ethereum evm smart-contracts solidity truffle

Last synced: 13 days ago
JSON representation

A straight-forward smart contract implemented for testing purpose, allowing to send token to a wallet address.

Awesome Lists containing this project

README

        

# eth_smart_contract

Two smart contracts implementation for studying and testing purpose, and fully working on Remix.ethereum.org.

_smart_contract.sol_ is a strightforward approach with just a token "ping" transaction (+1 ping, +1 token).

_marketplace.sol_ dive into the logics of buyer, seller, price and available funds.

Since those are the first smart contracts I ever created, I took a non-trivial journey scratching at least the surface of how Solidity works, based on Solidity Documentation, YT's DAPP University and Microsoft's Reactor (by Meg Lewis!).

You can see the commented line-by-line code of those researchs in my _misc_ repo Code Chunks: carloocchiena/code_chunks/solidity.

There I digged about the logic of time activation of smart contracts and the logic of ownership.

Proof of the works done by _smart_contract.sol_:

![image](https://user-images.githubusercontent.com/57464184/136544773-cd1c2e06-1dbf-4f23-85c8-7d7894e45da5.png) ![image](https://user-images.githubusercontent.com/57464184/136547399-c3f5e573-9940-4b3e-a51c-4bf2c1d0bf2f.png)

Proof of the work done by _marketplace.sol_:

![image](https://user-images.githubusercontent.com/57464184/136583658-b74a11e1-a3be-443b-b96e-f795da6b67ae.png) ![image](https://user-images.githubusercontent.com/57464184/136554927-cc5b3d4b-1e0a-4c90-b7a8-e69caffe2c31.png)