Skip to content

Commit

Permalink
Update README and package manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Nov 19, 2024
1 parent e372f73 commit 1def3fd
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 37 deletions.
7 changes: 7 additions & 0 deletions .changeset/three-tips-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@delvtech/drift-viem": patch
"@delvtech/drift-web3": patch
"@delvtech/drift": patch
---

Update package manifests, add `sinon` guidance to README
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Building on Ethereum often means dealing with:

Install Drift and an optional adapter for your preferred web3 library:

```bash
```sh
npm install @delvtech/drift

# Optional
Expand Down Expand Up @@ -337,6 +337,14 @@ Testing smart contract interactions can be complex and time-consuming. Drift
simplifies this process by providing built-in mocks that allow you to stub
responses and focus on testing your application logic.

> [!IMPORTANT]
> Drift's testing mocks have a peer dependency on `sinon`. Make sure to install
> it before using the mocks.
>
> ```sh
> npm install --save-dev sinon
> ```
#### Example: Testing Client Methods with Multiple RPC Calls
Suppose you have a method `getAccountValue` in your `ReadVault` client that
Expand Down
17 changes: 3 additions & 14 deletions packages/drift-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@delvtech/drift-viem",
"description": "Viem adapter for Drift",
"version": "0.0.1-beta.15",
"license": "AGPL-3.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.cts",
Expand All @@ -16,16 +17,6 @@
"require": "./dist/index.cjs"
}
},
"./testing": {
"types": {
"import": "./dist/testing.d.ts",
"require": "./dist/testing.d.cts"
},
"default": {
"import": "./dist/testing.js",
"require": "./dist/testing.cjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
Expand Down Expand Up @@ -59,7 +50,5 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
]
"files": ["dist"]
}
12 changes: 1 addition & 11 deletions packages/drift-web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@delvtech/drift-web3",
"description": "Web3.js adapter for Drift",
"version": "0.0.0-beta.2",
"license": "AGPL-3.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.cts",
Expand All @@ -17,16 +17,6 @@
"require": "./dist/index.cjs"
}
},
"./testing": {
"types": {
"import": "./dist/testing.d.ts",
"require": "./dist/testing.d.cts"
},
"default": {
"import": "./dist/testing.js",
"require": "./dist/testing.cjs"
}
},
"./package.json": "./package.json"
},
"scripts": {
Expand Down
10 changes: 9 additions & 1 deletion packages/drift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Building on Ethereum often means dealing with:

Install Drift and an optional adapter for your preferred web3 library:

```bash
```sh
npm install @delvtech/drift

# Optional
Expand Down Expand Up @@ -337,6 +337,14 @@ Testing smart contract interactions can be complex and time-consuming. Drift
simplifies this process by providing built-in mocks that allow you to stub
responses and focus on testing your application logic.

> [!IMPORTANT]
> Drift's testing mocks have a peer dependency on `sinon`. Make sure to install
> it before using the mocks.
>
> ```sh
> npm install --save-dev sinon
> ```
#### Example: Testing Client Methods with Multiple RPC Calls
Suppose you have a method `getAccountValue` in your `ReadVault` client that
Expand Down
15 changes: 5 additions & 10 deletions packages/drift/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@delvtech/drift",
"description": "Effortless ethereum development across Web3 libraries",
"version": "0.0.1-beta.13",
"license": "AGPL-3.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.cts",
Expand Down Expand Up @@ -30,12 +31,8 @@
},
"typesVersions": {
"*": {
".": [
"./dist/index.d.ts"
],
"testing": [
"./dist/testing.d.ts"
]
".": ["./dist/index.d.ts"],
"testing": ["./dist/testing.d.ts"]
}
},
"scripts": {
Expand Down Expand Up @@ -82,7 +79,5 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist"
]
"files": ["dist"]
}

0 comments on commit 1def3fd

Please sign in to comment.