Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/dull-pumas-buy.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/fair-guests-talk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-lies-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-roses-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/grumpy-garlics-nail.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/honest-doors-hear.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/honest-terms-hug.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/hot-ghosts-divide.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/lazy-trainers-clap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-lemons-grin.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/orange-impalas-bake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/popular-kings-tie.md

This file was deleted.

31 changes: 0 additions & 31 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/real-moose-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-snails-tap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-rivers-hang.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"sdk": "tsx -r dotenv/config src/sdk.ts"
},
"dependencies": {
"@delvtech/drift": "^0.8.0-next.9",
"@delvtech/drift": "^0.8.0",
"@delvtech/fixed-point-wasm": "^0.0.8"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/drift-ethers-v5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @delvtech/drift-ethers-v5

## 0.8.0

### Patch Changes

- bb25099: Added `deploy` and `encodeDeployData` methods to `Adapter` and clients.

## 0.8.0-next.9

## 0.8.0-next.8
Expand Down
4 changes: 2 additions & 2 deletions packages/drift-ethers-v5/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@delvtech/drift-ethers-v5",
"description": "Ethers.js v5 adapter for Drift",
"version": "0.8.0-next.9",
"version": "0.8.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"ethers": "^5.7.2"
},
"devDependencies": {
"@delvtech/drift": "^0.8.0-next.9",
"@delvtech/drift": "^0.8.0",
"@repo/typescript-config": "*",
"ethers": "^5.7.2",
"tsconfig-paths": "^4.2.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/drift-ethers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @delvtech/drift-ethers

## 0.8.0

### Patch Changes

- bb25099: Added `deploy` and `encodeDeployData` methods to `Adapter` and clients.

## 0.8.0-next.9

## 0.8.0-next.8
Expand Down
4 changes: 2 additions & 2 deletions packages/drift-ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@delvtech/drift-ethers",
"description": "Ethers.js adapter for Drift",
"version": "0.8.0-next.9",
"version": "0.8.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"ethers": "^6.13.5"
},
"devDependencies": {
"@delvtech/drift": "^0.8.0-next.9",
"@delvtech/drift": "^0.8.0",
"@repo/typescript-config": "*",
"ethers": "^6.13.5",
"tsconfig-paths": "^4.2.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/drift-viem/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @delvtech/drift-viem

## 0.8.0

### Patch Changes

- bb25099: Added `deploy` and `encodeDeployData` methods to `Adapter` and clients.

## 0.8.0-next.9

## 0.8.0-next.8
Expand Down
4 changes: 2 additions & 2 deletions packages/drift-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@delvtech/drift-viem",
"description": "Viem adapter for Drift",
"version": "0.8.0-next.9",
"version": "0.8.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"viem": "^2.22.16"
},
"devDependencies": {
"@delvtech/drift": "^0.8.0-next.9",
"@delvtech/drift": "^0.8.0",
"@repo/typescript-config": "*",
"tsconfig-paths": "^4.2.0",
"tsup": "^8.3.6",
Expand Down
6 changes: 6 additions & 0 deletions packages/drift-web3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @delvtech/drift-web3

## 0.8.0

### Patch Changes

- bb25099: Added `deploy` and `encodeDeployData` methods to `Adapter` and clients.

## 0.8.0-next.9

## 0.8.0-next.8
Expand Down
4 changes: 2 additions & 2 deletions packages/drift-web3/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@delvtech/drift-web3",
"description": "Web3.js adapter for Drift",
"version": "0.8.0-next.9",
"version": "0.8.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"web3": "^4.16.0"
},
"devDependencies": {
"@delvtech/drift": "^0.8.0-next.9",
"@delvtech/drift": "^0.8.0",
"@repo/typescript-config": "*",
"tsconfig-paths": "^4.2.0",
"tsup": "^8.3.6",
Expand Down
44 changes: 44 additions & 0 deletions packages/drift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# @delvtech/drift

## 0.8.0

### Minor Changes

- 94b9230: Added missing fields to the return type of `createStub*` utils and renamed `getRandom*` utils to `random*`.
- `getRandomAddress` is now `randomAddress`
- `getRandomHex` is now `randomHex`
- `getRandomInt` is now `randomInt`
- 8c08620: Removed the `find` method from the `Store` interface.
- 1752a54: Removed the `getBlockOrThrow` method and added an optional `GetBlockOptions` argument to `getBlock` which accepts a `throws` option. If `throws` is `true`, a `BlockNotFoundError` error will be thrown if the block isn't found and `undefined` will be remove from the return type.
```ts
const maybeBlock = await drift.getBlock(123n); // => Block<123n> | undefined
const block = await drift.getBlock(123n, { throws: true }); // => Block<123n>
```
- bd20749: Renamed the `BaseTypes` export to `BaseTypeOverrides` to be consistent with the precedent set by `BlockOverrides`.

### Patch Changes

- 4050ec9: Improved type inference for contracts created via `Drift.contract(...)`. A contract created in contexts where `Drift.isReadWrite()` returns `true` will now be properly inferred as a `ReadWriteContract`.
- 2a131a1: Patched extension hook inference in generic contexts.
- bb25099: Added `deploy` and `encodeDeployData` methods to `Adapter` and clients.
- 1a03e83: Added first-class getter methods to `ClientCache` and `ContractCache` which return values from the `store` using their corresponding `*Key` methods. For example: `contract.cache.getRead('name')` gets the value associated with `contract.cache.readKey('name')` from `contract.cache.store`.
- eb818b8: Refactored param types to make more fields optional:
- All params for `invalidateCallsMatching` are now optional.
- All args in the `args` param of the following methods are now optional:
- `invalidateReadsMatching`
- `onRead`
- `onSimulateWrite`
- `onRead`
- `onSimulateWrite`
- `onWrite`
- `onDeploy`
- 7427bb6: Added an `epochBlock` option to contract clients to limit how far back function calls and event queries can go. More details in the doc comment.
- 22a3fb9: Cleaned up cache APIs and added more methods:
- On the `ClientCache` (i.e. `drift.cache`):
- `clearBlocks()`
- `clearBalances()`
- `clearTransactions()`
- `clearReads()`
- On the `ContractCache` (i.e. `contract.cache`):
- `clearReads()`
- 6e816ad: Added `Client` extension methods to inferred hook names. This means autocompletion for `Client.hooks` will be available for methods added via `extend(...)`, including the `contract(...)` method added by the main `Drift` client.
- 4e2a1fc: Renamed `OxAdapter` to `DefaultAdapter`

## 0.8.0-next.9

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/drift/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@delvtech/drift",
"description": "Effortless ethereum development across Web3 libraries",
"version": "0.8.0-next.9",
"version": "0.8.0",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.cjs",
Expand Down
Loading