blockchain

package
v0.0.0-...-42c6bbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2020 License: GPL-2.0, GPL-3.0 Imports: 17 Imported by: 0

README

blockchain

Contains all handlers relevant to interacting with Ethereum.

Folder structure

  • hash.go: Function for hashing data to be stored on blockchain.

Smart Contracts:

During development stage we deployed smart contracts on the Kovan testnet.

Yale Openlab ERC20 tokens
  • YOCL (GRC20) token is deployed. Initial supply is 1000000000,
  • ERC20 contract address 0xb19ac159b87a4491b3b8bef4554b59da2bf42555,
  • owner 0xfE1827f2F1C366c04d458b3c07B8Bd207D42eab4
IPFS Merkle Root storage contract
  • test Root storage contract is deployed to address 0x1d0a334994a361111a193b98e6548bf0e8395879
  • check timestamp 1565752643

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTokenBalance

func CheckTokenBalance()

func CommitToChain

func CommitToChain(timeStamp *big.Int, rootHash string) error

func RetrieveActorEmissions

func RetrieveActorEmissions(id int) (map[string]string, error)

func RetrieveActorReductions

func RetrieveActorReductions(id int) (map[string]string, error)

Types

type RootStorage

type RootStorage struct {
	// contains filtered or unexported fields
}

func NewRoot

func NewRoot(address common.Address, client *ethclient.Client, timeStamp *big.Int, rootHash [32]byte) (*RootStorage, error)

type Token

type Token struct {
	// contains filtered or unexported fields
}

func NewToken

func NewToken(address common.Address, client *ethclient.Client) (*Token, error)

Directories

Path Synopsis
contracts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL