Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodeSuccess = iota CodeTxFailed CodeNoResult CodeServerUnresponsive CodeUnsupportedTransaction CodeInvalidFormat )
Variables ¶
View Source
var (
ErrNoEVMTypes = errors.New("no evm types were given to the server")
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { routerv1.MsgServer // Serve serves the application in a new go routine. Serve() error Shutdown() }
func NewServer ¶
NewServer returns a new EVM connection server. This server is responsible for handling requests originating from the EVM. It runs on a default port of 9020, but a custom port can be set using options, or by setting an env variable with key CARDINAL_EVM_PORT.
NewServer will return ErrNoEvmTypes if no transactions OR queries were given with EVM support.
Click to show internal directories.
Click to hide internal directories.