Versions in this module Expand all Collapse all v0 v0.1.2 May 22, 2019 Changes in this version + const ScryProtocolABI + const ScryTokenABI + type ScryProtocol struct + func NewScryProtocol(address common.Address, backend bind.ContractBackend) (*ScryProtocol, error) + type ScryProtocolBuy struct + Buyer common.Address + Index uint8 + MetaDataIdEncSeller []byte + PublishId string + Raw types.Log + SeqNo string + State uint8 + TransactionId *big.Int + Users []common.Address + type ScryProtocolBuyIterator struct + Event *ScryProtocolBuy + func (it *ScryProtocolBuyIterator) Close() error + func (it *ScryProtocolBuyIterator) Error() error + func (it *ScryProtocolBuyIterator) Next() bool + type ScryProtocolCaller struct + func NewScryProtocolCaller(address common.Address, caller bind.ContractCaller) (*ScryProtocolCaller, error) + type ScryProtocolCallerRaw struct + Contract *ScryProtocolCaller + func (_ScryProtocol *ScryProtocolCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type ScryProtocolCallerSession struct + CallOpts bind.CallOpts + Contract *ScryProtocolCaller + type ScryProtocolDataPublish struct + DespDataId string + Price *big.Int + PublishId string + Raw types.Log + SeqNo string + SupportVerify bool + Users []common.Address + type ScryProtocolDataPublishIterator struct + Event *ScryProtocolDataPublish + func (it *ScryProtocolDataPublishIterator) Close() error + func (it *ScryProtocolDataPublishIterator) Error() error + func (it *ScryProtocolDataPublishIterator) Next() bool + type ScryProtocolFilterer struct + func NewScryProtocolFilterer(address common.Address, filterer bind.ContractFilterer) (*ScryProtocolFilterer, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterBuy(opts *bind.FilterOpts) (*ScryProtocolBuyIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterDataPublish(opts *bind.FilterOpts) (*ScryProtocolDataPublishIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterReadyForDownload(opts *bind.FilterOpts) (*ScryProtocolReadyForDownloadIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterRegisterVerifier(opts *bind.FilterOpts) (*ScryProtocolRegisterVerifierIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterTransactionClose(opts *bind.FilterOpts) (*ScryProtocolTransactionCloseIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterTransactionCreate(opts *bind.FilterOpts) (*ScryProtocolTransactionCreateIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterVerifierDisable(opts *bind.FilterOpts) (*ScryProtocolVerifierDisableIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterVerifiersChosen(opts *bind.FilterOpts) (*ScryProtocolVerifiersChosenIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) FilterVote(opts *bind.FilterOpts) (*ScryProtocolVoteIterator, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchBuy(opts *bind.WatchOpts, sink chan<- *ScryProtocolBuy) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchDataPublish(opts *bind.WatchOpts, sink chan<- *ScryProtocolDataPublish) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchReadyForDownload(opts *bind.WatchOpts, sink chan<- *ScryProtocolReadyForDownload) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchRegisterVerifier(opts *bind.WatchOpts, sink chan<- *ScryProtocolRegisterVerifier) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchTransactionClose(opts *bind.WatchOpts, sink chan<- *ScryProtocolTransactionClose) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchTransactionCreate(opts *bind.WatchOpts, sink chan<- *ScryProtocolTransactionCreate) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchVerifierDisable(opts *bind.WatchOpts, sink chan<- *ScryProtocolVerifierDisable) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchVerifiersChosen(opts *bind.WatchOpts, sink chan<- *ScryProtocolVerifiersChosen) (event.Subscription, error) + func (_ScryProtocol *ScryProtocolFilterer) WatchVote(opts *bind.WatchOpts, sink chan<- *ScryProtocolVote) (event.Subscription, error) + type ScryProtocolRaw struct + Contract *ScryProtocol + func (_ScryProtocol *ScryProtocolRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_ScryProtocol *ScryProtocolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ScryProtocolReadyForDownload struct + Index uint8 + MetaDataIdEncBuyer []byte + Raw types.Log + SeqNo string + State uint8 + TransactionId *big.Int + Users []common.Address + type ScryProtocolReadyForDownloadIterator struct + Event *ScryProtocolReadyForDownload + func (it *ScryProtocolReadyForDownloadIterator) Close() error + func (it *ScryProtocolReadyForDownloadIterator) Error() error + func (it *ScryProtocolReadyForDownloadIterator) Next() bool + type ScryProtocolRegisterVerifier struct + Raw types.Log + SeqNo string + Users []common.Address + type ScryProtocolRegisterVerifierIterator struct + Event *ScryProtocolRegisterVerifier + func (it *ScryProtocolRegisterVerifierIterator) Close() error + func (it *ScryProtocolRegisterVerifierIterator) Error() error + func (it *ScryProtocolRegisterVerifierIterator) Next() bool + type ScryProtocolSession struct + CallOpts bind.CallOpts + Contract *ScryProtocol + TransactOpts bind.TransactOpts + func (_ScryProtocol *ScryProtocolSession) BuyData(seqNo string, txId *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) CancelTransaction(seqNo string, txId *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) ConfirmDataTruth(seqNo string, txId *big.Int, truth bool) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) CreateTransaction(seqNo string, publishId string, startVerify bool) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) CreditsToVerifier(seqNo string, txId *big.Int, verifierIndex uint8, credit uint8) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) PublishDataInfo(seqNo string, publishId string, price *big.Int, metaDataIdEncSeller []byte, ...) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) RegisterAsVerifier(seqNo string) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) SetVerifierBonus(bonus *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) SetVerifierDepositToken(deposit *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) SetVerifierNum(num uint8) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) SubmitMetaDataIdEncWithBuyer(seqNo string, txId *big.Int, encryptedMetaDataId []byte) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolSession) Vote(seqNo string, txId *big.Int, judge bool, comments string) (*types.Transaction, error) + type ScryProtocolTransactionClose struct + Index uint8 + Raw types.Log + SeqNo string + State uint8 + TransactionId *big.Int + Users []common.Address + type ScryProtocolTransactionCloseIterator struct + Event *ScryProtocolTransactionClose + func (it *ScryProtocolTransactionCloseIterator) Close() error + func (it *ScryProtocolTransactionCloseIterator) Error() error + func (it *ScryProtocolTransactionCloseIterator) Next() bool + type ScryProtocolTransactionCreate struct + NeedVerify bool + ProofIds [][32]byte + PublishId string + Raw types.Log + SeqNo string + State uint8 + TransactionId *big.Int + Users []common.Address + type ScryProtocolTransactionCreateIterator struct + Event *ScryProtocolTransactionCreate + func (it *ScryProtocolTransactionCreateIterator) Close() error + func (it *ScryProtocolTransactionCreateIterator) Error() error + func (it *ScryProtocolTransactionCreateIterator) Next() bool + type ScryProtocolTransactor struct + func NewScryProtocolTransactor(address common.Address, transactor bind.ContractTransactor) (*ScryProtocolTransactor, error) + func (_ScryProtocol *ScryProtocolTransactor) BuyData(opts *bind.TransactOpts, seqNo string, txId *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) CancelTransaction(opts *bind.TransactOpts, seqNo string, txId *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) ConfirmDataTruth(opts *bind.TransactOpts, seqNo string, txId *big.Int, truth bool) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) CreateTransaction(opts *bind.TransactOpts, seqNo string, publishId string, startVerify bool) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) CreditsToVerifier(opts *bind.TransactOpts, seqNo string, txId *big.Int, verifierIndex uint8, ...) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) PublishDataInfo(opts *bind.TransactOpts, seqNo string, publishId string, price *big.Int, ...) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) RegisterAsVerifier(opts *bind.TransactOpts, seqNo string) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) SetVerifierBonus(opts *bind.TransactOpts, bonus *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) SetVerifierDepositToken(opts *bind.TransactOpts, deposit *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) SetVerifierNum(opts *bind.TransactOpts, num uint8) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) SubmitMetaDataIdEncWithBuyer(opts *bind.TransactOpts, seqNo string, txId *big.Int, ...) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactor) Vote(opts *bind.TransactOpts, seqNo string, txId *big.Int, judge bool, ...) (*types.Transaction, error) + type ScryProtocolTransactorRaw struct + Contract *ScryProtocolTransactor + func (_ScryProtocol *ScryProtocolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ScryProtocolTransactorSession struct + Contract *ScryProtocolTransactor + TransactOpts bind.TransactOpts + func (_ScryProtocol *ScryProtocolTransactorSession) BuyData(seqNo string, txId *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) CancelTransaction(seqNo string, txId *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) ConfirmDataTruth(seqNo string, txId *big.Int, truth bool) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) CreateTransaction(seqNo string, publishId string, startVerify bool) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) CreditsToVerifier(seqNo string, txId *big.Int, verifierIndex uint8, credit uint8) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) PublishDataInfo(seqNo string, publishId string, price *big.Int, metaDataIdEncSeller []byte, ...) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) RegisterAsVerifier(seqNo string) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) SetVerifierBonus(bonus *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) SetVerifierDepositToken(deposit *big.Int) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) SetVerifierNum(num uint8) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) SubmitMetaDataIdEncWithBuyer(seqNo string, txId *big.Int, encryptedMetaDataId []byte) (*types.Transaction, error) + func (_ScryProtocol *ScryProtocolTransactorSession) Vote(seqNo string, txId *big.Int, judge bool, comments string) (*types.Transaction, error) + type ScryProtocolVerifierDisable struct + Raw types.Log + SeqNo string + Users []common.Address + Verifier common.Address + type ScryProtocolVerifierDisableIterator struct + Event *ScryProtocolVerifierDisable + func (it *ScryProtocolVerifierDisableIterator) Close() error + func (it *ScryProtocolVerifierDisableIterator) Error() error + func (it *ScryProtocolVerifierDisableIterator) Next() bool + type ScryProtocolVerifiersChosen struct + ProofIds [][32]byte + PublishId string + Raw types.Log + SeqNo string + State uint8 + TransactionId *big.Int + Users []common.Address + type ScryProtocolVerifiersChosenIterator struct + Event *ScryProtocolVerifiersChosen + func (it *ScryProtocolVerifiersChosenIterator) Close() error + func (it *ScryProtocolVerifiersChosenIterator) Error() error + func (it *ScryProtocolVerifiersChosenIterator) Next() bool + type ScryProtocolVote struct + Comments string + Index uint8 + Judge bool + Raw types.Log + SeqNo string + State uint8 + TransactionId *big.Int + Users []common.Address + type ScryProtocolVoteIterator struct + Event *ScryProtocolVote + func (it *ScryProtocolVoteIterator) Close() error + func (it *ScryProtocolVoteIterator) Error() error + func (it *ScryProtocolVoteIterator) Next() bool + type ScryToken struct + func NewScryToken(address common.Address, backend bind.ContractBackend) (*ScryToken, error) + type ScryTokenApproval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type ScryTokenApprovalIterator struct + Event *ScryTokenApproval + func (it *ScryTokenApprovalIterator) Close() error + func (it *ScryTokenApprovalIterator) Error() error + func (it *ScryTokenApprovalIterator) Next() bool + type ScryTokenCaller struct + func NewScryTokenCaller(address common.Address, caller bind.ContractCaller) (*ScryTokenCaller, error) + func (_ScryToken *ScryTokenCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error) + func (_ScryToken *ScryTokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error) + func (_ScryToken *ScryTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_ScryToken *ScryTokenCaller) INITIALSUPPLY(opts *bind.CallOpts) (*big.Int, error) + func (_ScryToken *ScryTokenCaller) Name(opts *bind.CallOpts) (string, error) + func (_ScryToken *ScryTokenCaller) Symbol(opts *bind.CallOpts) (string, error) + func (_ScryToken *ScryTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type ScryTokenCallerRaw struct + Contract *ScryTokenCaller + func (_ScryToken *ScryTokenCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type ScryTokenCallerSession struct + CallOpts bind.CallOpts + Contract *ScryTokenCaller + func (_ScryToken *ScryTokenCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) + func (_ScryToken *ScryTokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error) + func (_ScryToken *ScryTokenCallerSession) Decimals() (uint8, error) + func (_ScryToken *ScryTokenCallerSession) INITIALSUPPLY() (*big.Int, error) + func (_ScryToken *ScryTokenCallerSession) Name() (string, error) + func (_ScryToken *ScryTokenCallerSession) Symbol() (string, error) + func (_ScryToken *ScryTokenCallerSession) TotalSupply() (*big.Int, error) + type ScryTokenFilterer struct + func NewScryTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ScryTokenFilterer, error) + func (_ScryToken *ScryTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ScryTokenApprovalIterator, error) + func (_ScryToken *ScryTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ScryTokenTransferIterator, error) + func (_ScryToken *ScryTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ScryTokenApproval, owner []common.Address, ...) (event.Subscription, error) + func (_ScryToken *ScryTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ScryTokenTransfer, from []common.Address, ...) (event.Subscription, error) + type ScryTokenRaw struct + Contract *ScryToken + func (_ScryToken *ScryTokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_ScryToken *ScryTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ScryToken *ScryTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ScryTokenSession struct + CallOpts bind.CallOpts + Contract *ScryToken + TransactOpts bind.TransactOpts + func (_ScryToken *ScryTokenSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) + func (_ScryToken *ScryTokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenSession) BalanceOf(_owner common.Address) (*big.Int, error) + func (_ScryToken *ScryTokenSession) Decimals() (uint8, error) + func (_ScryToken *ScryTokenSession) DecreaseApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenSession) INITIALSUPPLY() (*big.Int, error) + func (_ScryToken *ScryTokenSession) IncreaseApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenSession) Name() (string, error) + func (_ScryToken *ScryTokenSession) Symbol() (string, error) + func (_ScryToken *ScryTokenSession) TotalSupply() (*big.Int, error) + func (_ScryToken *ScryTokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) + type ScryTokenTransactor struct + func NewScryTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ScryTokenTransactor, error) + func (_ScryToken *ScryTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactor) DecreaseApproval(opts *bind.TransactOpts, _spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactor) IncreaseApproval(opts *bind.TransactOpts, _spender common.Address, _addedValue *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error) + type ScryTokenTransactorRaw struct + Contract *ScryTokenTransactor + func (_ScryToken *ScryTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ScryTokenTransactorSession struct + Contract *ScryTokenTransactor + TransactOpts bind.TransactOpts + func (_ScryToken *ScryTokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactorSession) DecreaseApproval(_spender common.Address, _subtractedValue *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactorSession) IncreaseApproval(_spender common.Address, _addedValue *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) + func (_ScryToken *ScryTokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) + type ScryTokenTransfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type ScryTokenTransferIterator struct + Event *ScryTokenTransfer + func (it *ScryTokenTransferIterator) Close() error + func (it *ScryTokenTransferIterator) Error() error + func (it *ScryTokenTransferIterator) Next() bool