Documentation ¶
Index ¶
- type ArtifactStats
- type Assertion
- type Bounty
- type BountyRegistry
- func (br *BountyRegistry) DownloadArtifact(ipfshash string) (io.ReadCloser, error)
- func (br *BountyRegistry) GetActiveBounties() []*Bounty
- func (br *BountyRegistry) GetAssertionsByGuid(guid *big.Int) []*Assertion
- func (br *BountyRegistry) GetBounties() []*Bounty
- func (br *BountyRegistry) GetBountyByGuid(guid *big.Int) *Bounty
- func (br *BountyRegistry) ListArtifacts(ipfshash string) ([]string, error)
- func (br *BountyRegistry) PostAssertion(ctx context.Context, bountyGuid *big.Int, bid int, mask []bool, ...) error
- func (br *BountyRegistry) PostBounty(ctx context.Context, uri string, amount, blockDuration int) (*big.Int, error)
- func (br *BountyRegistry) StatArtifact(ipfshash string) (*ArtifactStats, error)
- func (br *BountyRegistry) UploadArtifacts(rs map[string]io.Reader) (string, error)
- func (br *BountyRegistry) WatchForEvents(eventChan chan *Event) error
- type Event
- type NewAssertionEvent
- type NewAssertionEventLog
- type NewBountyEvent
- type NewBountyEventLog
- type NewVerdictEvent
- type NewVerdictEventLog
- type RawBounty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactStats ¶
type Assertion ¶
type Assertion struct { Author common.Address `json:"author"` Bid *big.Int `json:"bid"` Mask *big.Int `json:"mask"` Verdicts *big.Int `json:"verdicts"` Metadata string `json:"metadata"` }
Keep these in sync with the BountyRegistry contract
type Bounty ¶
type Bounty struct { Guid uuid.UUID `json:"guid"` Author common.Address `json:"author"` Amount *big.Int `json:"amount"` ArtifactURI string `json:"uri"` ExpirationBlock *big.Int `json:"expiration"` Resolved bool `json:"resolved"` Verdicts []bool `json:"verdicts"` }
Keep these in sync with the BountyRegistry contract
func NewBountyFromRaw ¶
type BountyRegistry ¶
type BountyRegistry struct {
// contains filtered or unexported fields
}
func NewBountyRegistry ¶
func NewBountyRegistry(session *bindings.BountyRegistrySession, client *ethclient.Client, ipfs string) *BountyRegistry
func (*BountyRegistry) DownloadArtifact ¶
func (br *BountyRegistry) DownloadArtifact(ipfshash string) (io.ReadCloser, error)
func (*BountyRegistry) GetActiveBounties ¶
func (br *BountyRegistry) GetActiveBounties() []*Bounty
func (*BountyRegistry) GetAssertionsByGuid ¶
func (br *BountyRegistry) GetAssertionsByGuid(guid *big.Int) []*Assertion
func (*BountyRegistry) GetBounties ¶
func (br *BountyRegistry) GetBounties() []*Bounty
func (*BountyRegistry) GetBountyByGuid ¶
func (br *BountyRegistry) GetBountyByGuid(guid *big.Int) *Bounty
func (*BountyRegistry) ListArtifacts ¶
func (br *BountyRegistry) ListArtifacts(ipfshash string) ([]string, error)
func (*BountyRegistry) PostAssertion ¶
func (*BountyRegistry) PostBounty ¶
func (*BountyRegistry) StatArtifact ¶
func (br *BountyRegistry) StatArtifact(ipfshash string) (*ArtifactStats, error)
func (*BountyRegistry) UploadArtifacts ¶
func (*BountyRegistry) WatchForEvents ¶
func (br *BountyRegistry) WatchForEvents(eventChan chan *Event) error
type NewAssertionEvent ¶
type NewAssertionEvent struct { BountyGuid string Author common.Address Index *big.Int Bid *big.Int Mask []bool Verdicts []bool Metadata string }
func NewAssertionEventFromLog ¶
func NewAssertionEventFromLog(nae NewAssertionEventLog) *NewAssertionEvent
type NewAssertionEventLog ¶
type NewBountyEvent ¶
type NewBountyEvent struct { Guid string Author common.Address Amount *big.Int ArtifactURI string ExpirationBlock *big.Int }
func NewBountyEventFromLog ¶
func NewBountyEventFromLog(nbe NewBountyEventLog) *NewBountyEvent
type NewBountyEventLog ¶
type NewVerdictEvent ¶
func NewVerdictEventFromLog ¶
func NewVerdictEventFromLog(nve NewVerdictEventLog) *NewVerdictEvent
Click to show internal directories.
Click to hide internal directories.