mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
24 lines
748 B
Go
24 lines
748 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package interfaces
|
|
|
|
import (
|
|
"context"
|
|
|
|
ethereum "github.com/luxfi/geth"
|
|
"github.com/luxfi/geth/common"
|
|
)
|
|
|
|
// An AcceptedStateReceiver provides access to the accepted state ie. the state of the
|
|
// most recently accepted block.
|
|
type AcceptedStateReader interface {
|
|
AcceptedCodeAt(ctx context.Context, account common.Address) ([]byte, error)
|
|
AcceptedNonceAt(ctx context.Context, account common.Address) (uint64, error)
|
|
}
|
|
|
|
// AcceptedContractCaller can be used to perform calls against the accepted state.
|
|
type AcceptedContractCaller interface {
|
|
AcceptedCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
|
|
}
|