Documentation ¶
Index ¶
- type ArbCore
- func (ac *ArbCore) AdvanceExecutionCursor(executionCursor core.ExecutionCursor, maxGas *big.Int, goOverGas bool) error
- func (ac *ArbCore) DeliverMessages(messages []inbox.InboxMessage, previousInboxAcc common.Hash, ...) bool
- func (ac *ArbCore) GetExecutionCursor(totalGasUsed *big.Int) (core.ExecutionCursor, error)
- func (ac *ArbCore) GetInboxAcc(index *big.Int) (ret common.Hash, err error)
- func (ac *ArbCore) GetInboxAccPair(index1 *big.Int, index2 *big.Int) (ret1 common.Hash, ret2 common.Hash, err error)
- func (ac *ArbCore) GetLogCount() (*big.Int, error)
- func (ac *ArbCore) GetLogs(startIndex *big.Int, count *big.Int) ([]value.Value, error)
- func (ac *ArbCore) GetMachineForSideload(blockNumber uint64) (machine.Machine, error)
- func (ac *ArbCore) GetMessageCount() (*big.Int, error)
- func (ac *ArbCore) GetMessages(startIndex *big.Int, count *big.Int) ([]inbox.InboxMessage, error)
- func (ac *ArbCore) GetSendCount() (*big.Int, error)
- func (ac *ArbCore) GetSends(startIndex *big.Int, count *big.Int) ([][]byte, error)
- func (ac *ArbCore) LogsCursorCheckError(cursorIndex *big.Int) error
- func (ac *ArbCore) LogsCursorConfirmReceived(cursorIndex *big.Int) (bool, error)
- func (ac *ArbCore) LogsCursorGetLogs(cursorIndex *big.Int) (*big.Int, []value.Value, []value.Value, error)
- func (ac *ArbCore) LogsCursorPosition(cursorIndex *big.Int) (*big.Int, error)
- func (ac *ArbCore) LogsCursorRequest(cursorIndex *big.Int, count *big.Int) error
- func (ac *ArbCore) MachineIdle() bool
- func (ac *ArbCore) MachineMessagesRead() *big.Int
- func (ac *ArbCore) MessagesStatus() (core.MessageStatus, error)
- func (ac *ArbCore) StartThread() bool
- func (ac *ArbCore) StopThread()
- func (ac *ArbCore) TakeMachine(executionCursor core.ExecutionCursor) (machine.Machine, error)
- type ArbStorage
- type ExecutionCursor
- func (ec *ExecutionCursor) Clone() core.ExecutionCursor
- func (ec *ExecutionCursor) InboxAcc() common.Hash
- func (ec *ExecutionCursor) LogAcc() common.Hash
- func (ec *ExecutionCursor) MachineHash() (common.Hash, error)
- func (ec *ExecutionCursor) SendAcc() common.Hash
- func (ec *ExecutionCursor) TotalGasConsumed() *big.Int
- func (ec *ExecutionCursor) TotalLogCount() *big.Int
- func (ec *ExecutionCursor) TotalMessagesRead() *big.Int
- func (ec *ExecutionCursor) TotalSendCount() *big.Int
- func (ec *ExecutionCursor) TotalSteps() *big.Int
- type Machine
- func (m *Machine) Clone() machine.Machine
- func (m *Machine) CurrentStatus() machine.Status
- func (m *Machine) ExecuteAssertion(maxGas uint64, goOverGas bool, messages []inbox.InboxMessage, ...) (*protocol.ExecutionAssertion, []value.Value, uint64)
- func (m *Machine) ExecuteAssertionAdvanced(maxGas uint64, goOverGas bool, messages []inbox.InboxMessage, ...) (*protocol.ExecutionAssertion, []value.Value, uint64)
- func (m *Machine) Hash() (ret common.Hash, err error)
- func (m *Machine) IsBlocked(newMessages bool) machine.BlockReason
- func (m *Machine) MarshalForProof() ([]byte, []byte, error)
- func (m *Machine) MarshalState() ([]byte, error)
- func (m *Machine) String() string
- type NodeStore
- func (as *NodeStore) BlockCount() (uint64, error)
- func (as *NodeStore) CurrentLogCount() (*big.Int, error)
- func (as *NodeStore) GetBlockInfo(height uint64) (*machine.BlockInfo, error)
- func (as *NodeStore) GetMessageBatch(batchNum *big.Int) *uint64
- func (as *NodeStore) GetPossibleBlock(blockHash common.Hash) *uint64
- func (as *NodeStore) GetPossibleRequestInfo(requestId common.Hash) *uint64
- func (as *NodeStore) Reorg(height uint64) error
- func (as *NodeStore) SaveBlock(header *types.Header, logIndex uint64, logCount uint64, ...) error
- func (as *NodeStore) SaveMessageBatch(batchNum *big.Int, logIndex uint64) error
- func (as *NodeStore) UpdateCurrentLogCount(count *big.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArbCore ¶ added in v0.8.0
type ArbCore struct {
// contains filtered or unexported fields
}
func NewArbCore ¶ added in v0.8.0
func NewArbCore(c unsafe.Pointer, storage *ArbStorage) *ArbCore
func (*ArbCore) AdvanceExecutionCursor ¶ added in v0.8.0
func (*ArbCore) DeliverMessages ¶ added in v0.8.0
func (*ArbCore) GetExecutionCursor ¶ added in v0.8.0
func (*ArbCore) GetInboxAcc ¶ added in v0.8.0
func (*ArbCore) GetInboxAccPair ¶ added in v0.8.0
func (*ArbCore) GetMachineForSideload ¶ added in v0.8.0
func (*ArbCore) GetMessageCount ¶ added in v0.8.0
func (*ArbCore) GetMessages ¶ added in v0.8.0
func (*ArbCore) LogsCursorCheckError ¶ added in v0.8.0
func (*ArbCore) LogsCursorConfirmReceived ¶ added in v0.8.0
func (*ArbCore) LogsCursorGetLogs ¶ added in v0.8.0
func (*ArbCore) LogsCursorPosition ¶ added in v0.8.0
func (*ArbCore) LogsCursorRequest ¶ added in v0.8.0
func (*ArbCore) MachineIdle ¶ added in v0.8.0
func (*ArbCore) MachineMessagesRead ¶ added in v0.8.0
func (*ArbCore) MessagesStatus ¶ added in v0.8.0
func (ac *ArbCore) MessagesStatus() (core.MessageStatus, error)
func (*ArbCore) StartThread ¶ added in v0.8.0
func (*ArbCore) StopThread ¶ added in v0.8.0
func (ac *ArbCore) StopThread()
func (*ArbCore) TakeMachine ¶ added in v0.8.0
type ArbStorage ¶ added in v0.8.0
type ArbStorage struct {
// contains filtered or unexported fields
}
func NewArbStorage ¶ added in v0.8.0
func NewArbStorage(dbPath string) (*ArbStorage, error)
func (*ArbStorage) CloseArbStorage ¶ added in v0.8.0
func (s *ArbStorage) CloseArbStorage() bool
func (*ArbStorage) GetArbCore ¶ added in v0.8.0
func (s *ArbStorage) GetArbCore() core.ArbCore
func (*ArbStorage) GetNodeStore ¶ added in v0.8.0
func (s *ArbStorage) GetNodeStore() machine.NodeStore
func (*ArbStorage) Initialize ¶ added in v0.8.0
func (s *ArbStorage) Initialize(contractPath string) error
func (*ArbStorage) Initialized ¶ added in v0.8.0
func (s *ArbStorage) Initialized() bool
type ExecutionCursor ¶ added in v0.8.0
type ExecutionCursor struct {
// contains filtered or unexported fields
}
func NewExecutionCursor ¶ added in v0.8.0
func NewExecutionCursor(c unsafe.Pointer) (*ExecutionCursor, error)
func (*ExecutionCursor) Clone ¶ added in v0.8.0
func (ec *ExecutionCursor) Clone() core.ExecutionCursor
func (*ExecutionCursor) InboxAcc ¶ added in v0.8.0
func (ec *ExecutionCursor) InboxAcc() common.Hash
func (*ExecutionCursor) LogAcc ¶ added in v0.8.0
func (ec *ExecutionCursor) LogAcc() common.Hash
func (*ExecutionCursor) MachineHash ¶ added in v0.8.0
func (ec *ExecutionCursor) MachineHash() (common.Hash, error)
func (*ExecutionCursor) SendAcc ¶ added in v0.8.0
func (ec *ExecutionCursor) SendAcc() common.Hash
func (*ExecutionCursor) TotalGasConsumed ¶ added in v0.8.0
func (ec *ExecutionCursor) TotalGasConsumed() *big.Int
func (*ExecutionCursor) TotalLogCount ¶ added in v0.8.0
func (ec *ExecutionCursor) TotalLogCount() *big.Int
func (*ExecutionCursor) TotalMessagesRead ¶ added in v0.8.0
func (ec *ExecutionCursor) TotalMessagesRead() *big.Int
func (*ExecutionCursor) TotalSendCount ¶ added in v0.8.0
func (ec *ExecutionCursor) TotalSendCount() *big.Int
func (*ExecutionCursor) TotalSteps ¶ added in v0.8.0
func (ec *ExecutionCursor) TotalSteps() *big.Int
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
func WrapCMachine ¶ added in v0.8.0
func (*Machine) CurrentStatus ¶
func (*Machine) ExecuteAssertion ¶
func (*Machine) ExecuteAssertionAdvanced ¶ added in v0.8.0
func (*Machine) IsBlocked ¶ added in v0.4.0
func (m *Machine) IsBlocked(newMessages bool) machine.BlockReason
func (*Machine) MarshalState ¶ added in v0.7.0
type NodeStore ¶ added in v0.6.0
type NodeStore struct {
// contains filtered or unexported fields
}
func NewNodeStore ¶ added in v0.6.0
func (*NodeStore) BlockCount ¶ added in v0.8.0
func (*NodeStore) CurrentLogCount ¶ added in v0.8.0
func (*NodeStore) GetBlockInfo ¶ added in v0.8.0
func (*NodeStore) GetMessageBatch ¶ added in v0.8.0
func (*NodeStore) GetPossibleBlock ¶ added in v0.8.0
func (*NodeStore) GetPossibleRequestInfo ¶ added in v0.8.0
func (*NodeStore) SaveMessageBatch ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.