integration

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

This package contains integration tests for rollmelette.

Index

Constants

View Source
const ApplicationAddress = "0xab7528bb862fb57e8a2bcd567a2e929a0be56a5e"
View Source
const SenderAddress = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
View Source
const TestMnemonic = "test test test test test test test test test test test junk"

Variables

This section is empty.

Functions

func Advance

func Advance(ctx context.Context, url string, payload []byte) error

Advance sends an input using the devnet contract addresses.

Types

type CompletionStatus

type CompletionStatus string
const (
	CompletionStatusUnprocessed                CompletionStatus = "UNPROCESSED"
	CompletionStatusAccepted                   CompletionStatus = "ACCEPTED"
	CompletionStatusRejected                   CompletionStatus = "REJECTED"
	CompletionStatusException                  CompletionStatus = "EXCEPTION"
	CompletionStatusMachineHalted              CompletionStatus = "MACHINE_HALTED"
	CompletionStatusCycleLimitExceeded         CompletionStatus = "CYCLE_LIMIT_EXCEEDED"
	CompletionStatusTimeLimitExceeded          CompletionStatus = "TIME_LIMIT_EXCEEDED"
	CompletionStatusPayloadLengthLimitExceeded CompletionStatus = "PAYLOAD_LENGTH_LIMIT_EXCEEDED"
)

type InspectCompletionStatus

type InspectCompletionStatus string

InspectCompletionStatus is the completion status for the inspect result.

const (
	Accepted           InspectCompletionStatus = "Accepted"
	CycleLimitExceeded InspectCompletionStatus = "CycleLimitExceeded"
	Exception          InspectCompletionStatus = "Exception"
	MachineHalted      InspectCompletionStatus = "MachineHalted"
	Rejected           InspectCompletionStatus = "Rejected"
	TimeLimitExceeded  InspectCompletionStatus = "TimeLimitExceeded"
)

type InspectReport

type InspectReport struct {
	Payload string `json:"payload"`
}

Report from the inspect result.

type InspectResult

type InspectResult struct {
	ExceptionPayload    string                  `json:"exception_payload"`
	ProcessedInputCount int                     `json:"processed_input_count"`
	Reports             []InspectReport         `json:"reports"`
	Status              InspectCompletionStatus `json:"status"`
}

InspectResult is the response of the inspect API.

func Inspect

func Inspect(ctx context.Context, url string, payload []byte) (*InspectResult, error)

Inspect makes an HTTP inspect request to the node.

type NotifyWriter

type NotifyWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

NotifyWriter is a wrapper for io.Writer that notifies a channel when it finds the lookFor string.

func NewNotifyWriter

func NewNotifyWriter(w io.Writer, lookFor string) *NotifyWriter

func (*NotifyWriter) Ready

func (w *NotifyWriter) Ready() <-chan struct{}

func (*NotifyWriter) Write

func (w *NotifyWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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