attackclient

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client defines typed wrappers for the Ethereum RPC API.

func Dial

func Dial(rawurl string, valIdx int) (*Client, error)

Dial connects a client to the given URL.

func DialContext

func DialContext(ctx context.Context, rawurl string, valIdx int) (*Client, error)

DialContext connects a client to the given URL with context.

func NewClient

func NewClient(c *rpc.Client, valIdx int) *Client

NewClient creates a client that uses the given RPC client.

func (*Client) AttestAfterBroadCast added in v0.0.8

func (ec *Client) AttestAfterBroadCast(ctx context.Context, slot uint64) (types.AttackerResponse, error)

func (*Client) AttestAfterPropose added in v0.0.8

func (ec *Client) AttestAfterPropose(ctx context.Context, slot uint64, pubkey string, siginedAttestDataBase64 string) (types.AttackerResponse, error)

func (*Client) AttestAfterSign added in v0.0.8

func (ec *Client) AttestAfterSign(ctx context.Context, slot uint64, pubkey string, siginedAttestDataBase64 string) (types.AttackerResponse, error)

func (*Client) AttestBeforeBroadCast added in v0.0.8

func (ec *Client) AttestBeforeBroadCast(ctx context.Context, slot uint64) (types.AttackerResponse, error)

func (*Client) AttestBeforePropose added in v0.0.8

func (ec *Client) AttestBeforePropose(ctx context.Context, slot uint64, pubkey string, siginedAttestDataBase64 string) (types.AttackerResponse, error)

func (*Client) AttestBeforeSign added in v0.0.8

func (ec *Client) AttestBeforeSign(ctx context.Context, slot uint64, pubkey string, attestDataBase64 string) (types.AttackerResponse, error)

func (*Client) BlockAfterBroadCast added in v0.0.8

func (ec *Client) BlockAfterBroadCast(ctx context.Context, slot uint64) (types.AttackerResponse, error)

func (*Client) BlockAfterPropose added in v0.0.8

func (ec *Client) BlockAfterPropose(ctx context.Context, slot uint64, pubkey string, siginedBlockDataBase64 string) (types.AttackerResponse, error)

func (*Client) BlockAfterSign added in v0.0.8

func (ec *Client) BlockAfterSign(ctx context.Context, slot uint64, pubkey string, siginedBlockDataBase64 string) (types.AttackerResponse, error)

func (*Client) BlockBeforeBroadCast added in v0.0.8

func (ec *Client) BlockBeforeBroadCast(ctx context.Context, slot uint64) (types.AttackerResponse, error)

func (*Client) BlockBeforePropose added in v0.0.8

func (ec *Client) BlockBeforePropose(ctx context.Context, slot uint64, pubkey string, siginedBlockDataBase64 string) (types.AttackerResponse, error)

func (*Client) BlockBeforeSign added in v0.0.8

func (ec *Client) BlockBeforeSign(ctx context.Context, slot uint64, pubkey string, blockDataBase64 string) (types.AttackerResponse, error)

func (*Client) Client

func (ec *Client) Client() *rpc.Client

Client gets the underlying RPC client.

func (*Client) Close

func (ec *Client) Close()

Close closes the underlying RPC connection.

func (*Client) DelayForReceiveBlock added in v0.0.10

func (ec *Client) DelayForReceiveBlock(ctx context.Context, slot uint64) (types.AttackerResponse, error)

Jump to

Keyboard shortcuts

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