sdkinterface

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFromBlock

func SetFromBlock(fromBlock uint64)

Types

type SDKWrapper

type SDKWrapper interface {
	CreateUserWithLogin(password string) (string, error)
	UserLogin(address string, password string) (bool, error)
	TransferTokenFromDeployer(token *big.Int) error
	SubscribeEvents(eventName []string, cb ...chainevents2.EventCallback) error
	UnsubscribeEvents(eventName []string) error
	PublishData(data *settings.PublishData) (string, error)
	ApproveTransferToken(password string, quantity *big.Int) error
	CreateTransaction(publishId string, password string, startVerify bool) error
	Buy(txId string, password string) error
	SubmitMetaDataIdEncWithBuyer(txId string, password, seller, buyer string, metaDataIDEncSeller []byte) error
	CancelTransaction(txId, password string) error
	DecryptAndGetMetaDataFromIPFS(password string, metaDataIdEncWithBuyer []byte, buyer, extension string) (string, error)
	ConfirmDataTruth(txId string, password string, truth bool) error
	RegisterAsVerifier(password string) error
	Vote(password, txId string, judge bool, comment string) error
	CreditToVerifiers(creditData *settings.CreditData) error
}

wrap sdk interface call.

func CreateSDKWrapperImp

func CreateSDKWrapperImp(cw scry.ChainWrapper, si *settings.ScryInfo) SDKWrapper

Jump to

Keyboard shortcuts

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