provider

package
v0.0.0-...-34fe852 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalSigner

type LocalSigner struct {
	KeyName    string
	KeyringDir string
	// contains filtered or unexported fields
}

func (*LocalSigner) BuildAndSignTx

func (ls *LocalSigner) BuildAndSignTx(ctx sdk.Context, acct sdk.AccountI, msg auction.MsgBid) sdk.Tx

func (*LocalSigner) Init

func (ls *LocalSigner) Init(txCfg client.TxConfig, cdc codec.Codec, logger log.Logger) error

func (*LocalSigner) RetreiveSigner

func (ls *LocalSigner) RetreiveSigner(ctx sdk.Context, actKeeper authkeeper.AccountKeeper) (sdk.AccountI, error)

type LocalTxProvider

type LocalTxProvider struct {
	Logger     log.Logger
	Codec      codec.Codec
	Signer     LocalSigner
	TxConfig   client.TxConfig
	AcctKeeper authkeeper.AccountKeeper
}

func (*LocalTxProvider) BuildProposal

func (b *LocalTxProvider) BuildProposal(ctx sdk.Context, proposalTxs []sdk.Tx) ([]sdk.Tx, error)

func (*LocalTxProvider) Init

func (bp *LocalTxProvider) Init() error

type TxProvider

type TxProvider interface {
	BuildProposal(ctx sdk.Context, proposalTxs []sdk.Tx) ([]sdk.Tx, error)
	// contains filtered or unexported methods
}

This implementation is for demo purposes only and does not reflect all limitations and constraints of a live distributed network.

Transaction Provider is an embedded solution to demonstrate an interface an application could leverage to extract MEV when building and proposing a block. In this example, the application is building and signing transactions locally for the sake of a simplicity. Alternatively, another implementation could instead take transactions submitted directly via RPC to its app side mempool, and could even implement a separate custom mempool for special transactions of this nature.

Jump to

Keyboard shortcuts

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