caller

package
v0.0.0-...-391a7ad Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller interface {
	Call(ctx context.Context, contract, entrypoint string, calldata []string) ([]data.Felt, error)
}

Caller -

type NodeRpcCaller

type NodeRpcCaller struct {
	// contains filtered or unexported fields
}

SequencerCaller -

func NewNodeRpcCaller

func NewNodeRpcCaller(cfg config.DataSource) *NodeRpcCaller

NewNodeRpcCaller -

func (*NodeRpcCaller) Call

func (nrc *NodeRpcCaller) Call(ctx context.Context, contract, entrypoint string, calldata []string) ([]data.Felt, error)

Call -

type NodeRpcConfig

type NodeRpcConfig struct {
	RpcUrl  string `yaml:"rpc_url" validate:"omitempty,url"`
	Rps     int    `yaml:"rps" validate:"omitempty,min=1"`
	Timeout uint64 `yaml:"timeout" validate:"min=1"`
}

NodeRpcConfig -

type SequencerCaller

type SequencerCaller struct {
	// contains filtered or unexported fields
}

SequencerCaller -

func NewSequencerCaller

func NewSequencerCaller(cfg config.DataSource) *SequencerCaller

NewSequencerCaller -

func (*SequencerCaller) Call

func (sc *SequencerCaller) Call(ctx context.Context, contract, entrypoint string, calldata []string) ([]data.Felt, error)

Call -

Jump to

Keyboard shortcuts

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