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
Click to show internal directories.
Click to hide internal directories.