Skip to content

Instantly share code, notes, and snippets.

[{
"uuid": "uniqueId evento di tracciabilità",
"name": "Event Name",
"eventType": "One of: commission, observation, transformation",
"bizStep": "One of receiving and shipping only on observation",
"eventTime": "ISOString Date", //required
"inputs" : [{
"prodCode": "Codice Interno del prodotto", //required
"uom": "Unità di misura",
"lotNumber": "Numero di lotto", //required
@AleChelli
AleChelli / IxellionMDACL.sol
Created January 7, 2021 08:52
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.6.6+commit.6c089d02.js&optimize=false&runs=200&gist=
pragma solidity >=0.4.22 <0.8.0;
contract IxellionMDACL {
struct IxellionMD {
address publicKeyAccount;
string email;
uint8 status; //0 notActive - 1 active
}
IxellionMD[] mdAccounts;
@AleChelli
AleChelli / BusinessTransactions.sol
Created January 6, 2021 17:32
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.6.6+commit.6c089d02.js&optimize=false&runs=200&gist=
pragma solidity >=0.4.22 <0.6.0;
contract BusinessTransactions {
struct PurchaseOrder{
string OrderId;
string metadata;
string hashMetadata;
uint[] products;
string datetime;
address Buyer;
@AleChelli
AleChelli / 1_Storage.sol
Created October 8, 2020 16:42
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.6.12+commit.27d51765.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
@AleChelli
AleChelli / Coupon.sol
Last active October 12, 2020 15:16
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.6.0;
import "./FaterCore.sol";
import "./FaterCoin.sol";
contract Coupon is FaterCore, FaterCoin {
struct Coupon {
uint identifier;
string code;
uint token;
address owner;
@AleChelli
AleChelli / 1_Storage.sol
Created October 8, 2020 14:46
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.6.12+commit.27d51765.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
Verifying my Blockstack ID is secured with the address 1HTaXMsg8ZsGDLEKWGD9Mu5uENjVUwLTbW https://explorer.blockstack.org/address/1HTaXMsg8ZsGDLEKWGD9Mu5uENjVUwLTbW
Verifying my Blockstack ID is secured with the address 1FAf1npbHCg5LA75ZSbALGwvuacZPJX5re https://explorer.blockstack.org/address/1FAf1npbHCg5LA75ZSbALGwvuacZPJX5re