Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvanceInput ¶
Represent an advance input from finish.
type FinishStatus ¶
type FinishStatus int
Status when finishing a rollups request.
const ( FinishStatusAccept FinishStatus = iota FinishStatusReject )
func (FinishStatus) String ¶
func (status FinishStatus) String() string
type InspectInput ¶
type InspectInput struct {
Payload []byte
}
Represent an inspect input from finish.
type Metadata ¶
type Metadata struct { InputIndex int Sender common.Address BlockNumber int64 BlockTimestamp int64 }
Metadata from the input.
type RollupsHTTP ¶
type RollupsHTTP struct {
// contains filtered or unexported fields
}
Implement the Rollups API using the Rollups HTTP server.
func NewRollupsHTTP ¶
func NewRollupsHTTP() *RollupsHTTP
Create a new Rollups HTTP client. Load the ROLLUP_HTTP_SERVER_URL from an environment variable.
func (*RollupsHTTP) Finish ¶
func (r *RollupsHTTP) Finish(status FinishStatus) (any, error)
Send a finish request to the Rollups API. If there is no error, return an AdvanceInput or an InspectInput.
func (*RollupsHTTP) SendNotice ¶
func (r *RollupsHTTP) SendNotice(payload []byte) (int, error)
Send a notice to the Rollups API. Return the notice index.
func (*RollupsHTTP) SendReport ¶
func (r *RollupsHTTP) SendReport(payload []byte) error
Send a report to the Rollups API.
func (*RollupsHTTP) SendVoucher ¶
Send a voucher to the Rollups API. Return the voucher index.
Click to show internal directories.
Click to hide internal directories.