Skip to content

Instantly share code, notes, and snippets.

View samuel-esp's full-sized avatar
🎯

Samuel Esposito samuel-esp

🎯
View GitHub Profile
@samuel-esp
samuel-esp / .deps...remix-tests...remix_accounts.sol
Created May 16, 2022 10:39
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@samuel-esp
samuel-esp / supplychain.sol
Created May 16, 2022 10:39
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.13;
contract AssetTracker{
struct State{
string description;
address currentOwner;
}
struct Product{
@samuel-esp
samuel-esp / supplychain.sol
Created May 17, 2022 09:45
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.13;
//dvx
contract AssetTracker{
struct State{
string description;
address currentOwner;
}
@samuel-esp
samuel-esp / supplychain.sol
Created May 17, 2022 09:45
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.13;
//dvx
contract AssetTracker{
struct State{
string description;
address currentOwner;
}