Skip to content

Commit

Permalink
readme code updates (#40)
Browse files Browse the repository at this point in the history
* update code in README

* chore: changeset
  • Loading branch information
zeroXbrock authored Mar 20, 2024
1 parent 0890d22 commit 755bf6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-socks-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@flashbots/suave-viem": patch
---

update readme for NPM
7 changes: 5 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,15 @@

## Overview

First, see these instructions for spinning up a local devnet. Then install **[@flashbots/suave-viem](https://www.npmjs.com/package/@flashbots/suave-viem)** into your project and run this code:

```ts
import {http, Hex} from '@flashbots/suave-viem';
import { http, type Hex } from '@flashbots/suave-viem';
import { suaveRigil } from '@flashbots/suave-viem/chains';
import {
getSuaveProvider,
getSuaveWallet,
TransactionRequestSuave,
type TransactionRequestSuave,
SuaveTxRequestTypes
} from '@flashbots/suave-viem/chains/utils';

Expand Down

0 comments on commit 755bf6c

Please sign in to comment.