1.4.4 • Published 5 months ago

@mountainpath9/overlord-viem v1.4.4

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
5 months ago

viem support for overlord

This library contains functions and types to extend the @mountainpath9/overlord-core library for use with viem.

In addition to rexporting all from @mountainpath9/overlord-core the following functions are provided:

function getPublicClient(ctx: TaskContext | TaskRunner, chain: Chain): Promise<PublicClient>
function getWalletClient(ctx: TaskContext, chain: Chain, walletName: string): Promise<WalletClient>
function getMevProtectedPublicClient(ctx: TaskContext, chain: Chain): Promise<PublicClient>
function getMevProtectedWalletClient(ctx: TaskContext, chain: Chain, walletName: string): Promise<WalletClient>
function createTransactionManager(ctx: TaskContext, client: WalletClient, params: TxSubmissionParams, opts?: VtmOptions)

The TransactionManager submits transactions to the blockchain, with controls to subsequently increase the gas tip, and ultimately cancel the transaction if unsuccessful:

export interface TransactionManager {
  /**
   * Sign and submit the given transaction and wait
   * for it to be mined. This interface combines these
   * operations so that an implementation can lock the current
   * nonce until the transaction has been successfully mined.
   *
   * If the transaction fails to be mined, this will throw an
   * exception.
   */
  submitAndWait(tx: ContractTransaction): Promise<TransactionReceipt>;
}
1.2.0

10 months ago

1.1.0

11 months ago

1.4.4

5 months ago

1.4.3

5 months ago

1.4.2

5 months ago

1.2.4

9 months ago

1.0.6

11 months ago

1.4.1

5 months ago

1.2.3

9 months ago

1.0.5

11 months ago

1.4.0

5 months ago

1.2.2

9 months ago

1.0.4

11 months ago

1.3.0

9 months ago

1.2.1

10 months ago

1.0.3

1 year ago

1.0.2

1 year ago

0.99.0

1 year ago