Documentation ¶
Index ¶
- type LocalSigner
- func (ls *LocalSigner) BuildAndSignTx(ctx sdk.Context, acct sdk.AccountI, msg auction.MsgBid) sdk.Tx
- func (ls *LocalSigner) Init(txCfg client.TxConfig, cdc codec.Codec, logger log.Logger) error
- func (ls *LocalSigner) RetreiveSigner(ctx sdk.Context, actKeeper authkeeper.AccountKeeper) (sdk.AccountI, error)
- type LocalTxProvider
- type TxProvider
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 (*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 (*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.
Click to show internal directories.
Click to hide internal directories.