Documentation
¶
Index ¶
Constants ¶
View Source
const APP_CONTRACT = "AppContract"
View Source
const AppContractKey contextKey = "appContract"
View Source
const DELEGATED_CALL_VOUCHER = "DelegatedCallVoucher"
View Source
const DELEGATED_CALL_VOUCHER_SELECTOR = "10321e8b"
View Source
const DESTINATION = "Destination"
View Source
const EXECUTED = "Executed"
View Source
const FALSE = "false"
View Source
const INPUT_INDEX = "InputIndex"
View Source
const NOTICE_SELECTOR = "c258d6e5"
View Source
const STATUS_PROPERTY = "Status"
View Source
const VOUCHER_SELECTOR = "237a816f"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvanceInput ¶
type AdvanceInput struct {
ID string `db:"id"`
Index int `db:"input_index"`
Status CompletionStatus `db:"status"`
MsgSender common.Address `db:"msg_sender"`
Payload string `db:"payload"`
BlockNumber uint64 `db:"block_number"`
BlockTimestamp time.Time `db:"block_timestamp"`
PrevRandao string `db:"prev_randao"`
ChainId string `db:"chain_id"`
AppContract common.Address `db:"app_contract"`
Vouchers []ConvenienceVoucher
Notices []ConvenienceNotice
Reports []Report
Exception []byte
EspressoBlockNumber int `db:"espresso_block_number"`
EspressoBlockTimestamp time.Time `db:"espresso_block_timestamp"`
InputBoxIndex int `db:"input_box_index"`
AvailBlockNumber int `db:"avail_block_number"`
AvailBlockTimestamp time.Time `db:"avail_block_timestamp"`
Type string `db:"type"`
CartesiTransactionId string `db:"cartesi_transaction_id"`
}
Rollups advance input type.
type CompletionStatus ¶
type CompletionStatus int
Completion status for inputs.
const ( CompletionStatusUnprocessed CompletionStatus = iota CompletionStatusAccepted CompletionStatusRejected CompletionStatusException CompletionStatusMachineHalted CompletionStatusCycleLimitExceeded CompletionStatusTimeLimitExceeded CompletionStatusPayloadLengthLimitExceeded )
type ConvenienceFilter ¶
type ConvenienceFilter struct {
Field *string `json:"field,omitempty"`
Eq *string `json:"eq,omitempty"`
Ne *string `json:"ne,omitempty"`
Gt *string `json:"gt,omitempty"`
Gte *string `json:"gte,omitempty"`
Lt *string `json:"lt,omitempty"`
Lte *string `json:"lte,omitempty"`
In []*string `json:"in,omitempty"`
Nin []*string `json:"nin,omitempty"`
And []*ConvenienceFilter `json:"and,omitempty"`
Or []*ConvenienceFilter `json:"or,omitempty"`
}
type ConvenienceNotice ¶
type ConvenienceVoucher ¶
type ConvenienceVoucher struct {
Destination common.Address `db:"destination"`
Payload string `db:"payload"`
InputIndex uint64 `db:"input_index"`
OutputIndex uint64 `db:"output_index"`
Executed bool `db:"executed"`
Value string `db:"value"`
AppContract common.Address `db:"app_contract"`
OutputHashesSiblings string `db:"output_hashes_siblings"`
TransactionHash string `db:"transaction_hash"`
ProofOutputIndex uint64 `db:"proof_output_index"`
IsDelegatedCall bool `db:"is_delegated_call"`
}
Voucher metadata type
type ConvertedInput ¶
type ConvertedInput struct {
ChainId *big.Int `json:"chainId"`
MsgSender common.Address `json:"msgSender"`
AppContract common.Address `json:"app_contract"`
BlockNumber *big.Int `json:"blockNumber"`
BlockTimestamp int64 `json:"blockTimestamp"`
PrevRandao string `json:"prevRandao"`
Payload string `json:"payload"`
InputBoxIndex int64 `json:"input_box_index"`
}
type DecoderInterface ¶
type DecoderInterface interface {
HandleOutputV2(
ctx context.Context,
processOutputData ProcessOutputData,
) error
HandleInput(
ctx context.Context,
input InputEdge,
status CompletionStatus,
) error
HandleReport(
ctx context.Context,
index int,
outputIndex int,
payload string,
) error
GetConvertedInput(output InputEdge) (ConvertedInput, error)
RetrieveDestination(payload string) (common.Address, error)
}
type OutputEdge ¶
type ProcessOutputData ¶
type RepoSynchronizer ¶
type Report ¶
type Report struct {
Index int
InputIndex int
Payload string
AppContract common.Address `json:"app_contract"`
RawID uint64
}
Rollups report type.
type SynchronizerFetch ¶
type SynchronizerFetch struct {
Id int64 `db:"id"`
TimestampAfter uint64 `db:"timestamp_after"`
IniCursorAfter string `db:"ini_cursor_after"`
LogVouchersIds string `db:"log_vouchers_ids"`
EndCursorAfter string `db:"end_cursor_after"`
IniInputCursorAfter string `db:"ini_input_cursor_after"`
EndInputCursorAfter string `db:"end_input_cursor_after"`
IniReportCursorAfter string `db:"ini_report_cursor_after"`
EndReportCursorAfter string `db:"end_report_cursor_after"`
}
Click to show internal directories.
Click to hide internal directories.