chaininterfacewrapper

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveTransfer

func ApproveTransfer(txParams *op.TransactParams, spender common.Address, value *big.Int) error

func BuyData

func BuyData(txParams *op.TransactParams, txId *big.Int) error

func Bytes32ToIpfsHash

func Bytes32ToIpfsHash(value [32]byte) (string, error)

func CancelTransaction

func CancelTransaction(txParams *op.TransactParams, txId *big.Int) error

func ConfirmDataTruth

func ConfirmDataTruth(txParams *op.TransactParams, txId *big.Int, truth bool) error

func CreditsToVerifier

func CreditsToVerifier(txParams *op.TransactParams, txId *big.Int, index uint8, credit uint8) error

func GetEthBalance

func GetEthBalance(owner common.Address) (*big.Int, error)

func GetTokenBalance

func GetTokenBalance(txParams *op.TransactParams, owner common.Address) (*big.Int, error)

func Initialize

func Initialize(protocolContractAddress common.Address, tokenContractAddress common.Address, clientConn *ethclient.Client) error

func PrepareToBuy

func PrepareToBuy(txParams *op.TransactParams, publishId string, startVerify bool) error

func Publish

func Publish(txParams *op.TransactParams, price *big.Int, metaDataID []byte, proofDataIDs []string,
	proofNum int, detailsID string, supportVerify bool) (string, error)

func RegisterAsVerifier

func RegisterAsVerifier(txParams *op.TransactParams) error

func SubmitMetaDataIdEncWithBuyer

func SubmitMetaDataIdEncWithBuyer(txParams *op.TransactParams, txId *big.Int, encyptedMetaDataId []byte) error

func TransferEth

func TransferEth(from common.Address,
	password string,
	to common.Address,
	value *big.Int) (*types.Transaction, error)

func TransferTokens

func TransferTokens(txParams *op.TransactParams, to common.Address, value *big.Int) error

func Vote

func Vote(txParams *op.TransactParams, txId *big.Int, judge bool, comments string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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