claimemitter

package
v0.0.0-...-92ca402 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// BalanceUpdate emits an event that intends to trigger the update of a
	// claim's user balances.
	//
	//     inp[0] the block number at which the call to BalanceUpdate was made
	//     inp[1] the claim ID of the expired resolve
	//
	BalanceUpdate(uint64, objectid.ID) error

	// ResolveCreate emits an event that intends to trigger the creation of a
	// resolve using the given claim ID, which is from either a propose or
	// dispute. For the final dispute the event can be created with the optional
	// meta data of privileged staker addresses, which should be selected based on
	// their reputation metrics.
	//
	//     inp[0] the block number at which the call to ResolveCreate was made
	//     inp[1] the claim ID of either the expired propose or dispute
	//     inp[2] the list of staker indices to select as voters, if any
	//
	ResolveCreate(uint64, objectid.ID, ...string) error
}

type Rescue

type Rescue struct {
	// contains filtered or unexported fields
}

func NewRescue

func NewRescue(c RescueConfig) *Rescue

func (*Rescue) BalanceUpdate

func (r *Rescue) BalanceUpdate(blc uint64, res objectid.ID) error

func (*Rescue) ResolveCreate

func (r *Rescue) ResolveCreate(blc uint64, pod objectid.ID, ind ...string) error

type RescueConfig

type RescueConfig struct {
	Log logger.Interface
	Res rescue.Interface
}

Jump to

Keyboard shortcuts

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