From 39f4777c98e4a8db22eeb4eb47dca156d61521f7 Mon Sep 17 00:00:00 2001 From: Ryan Goree Date: Fri, 29 Nov 2024 00:26:25 -0600 Subject: [PATCH] Version packages --- .changeset/pre.json | 13 +++++++++++++ packages/drift-ethers-v5/CHANGELOG.md | 20 ++++++++++++++++++++ packages/drift-ethers-v5/package.json | 10 ++++++---- packages/drift-ethers/CHANGELOG.md | 20 ++++++++++++++++++++ packages/drift-ethers/package.json | 10 ++++++---- packages/drift-viem/CHANGELOG.md | 20 ++++++++++++++++++++ packages/drift-viem/package.json | 10 ++++++---- packages/drift-web3/CHANGELOG.md | 20 ++++++++++++++++++++ packages/drift-web3/package.json | 10 ++++++---- packages/drift/CHANGELOG.md | 24 ++++++++++++++++++++++++ packages/drift/package.json | 14 ++++++++++---- 11 files changed, 151 insertions(+), 20 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index f97052e..3e65f14 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -19,31 +19,42 @@ "clean-apes-learn", "eight-islands-turn", "empty-lies-smile", + "few-otters-type", "fifty-mayflies-leave", + "five-readers-argue", "flat-peas-drum", "flat-rocks-worry", + "fluffy-spiders-repeat", "four-peas-tickle", + "giant-spoons-grab", "gold-apples-promise", "good-cycles-cross", "great-pumpkins-clap", "happy-clocks-beg", "happy-zebras-fly", + "heavy-keys-buy", "hot-coats-search", + "hot-cooks-rescue", "large-ducks-whisper", "late-dingos-guess", "lazy-clocks-eat", + "lazy-eels-exercise", "lemon-seas-pretend", "light-chefs-push", "long-ducks-call", "many-students-roll", + "moody-carrots-drive", + "moody-tigers-fry", "nasty-pillows-wave", "neat-houses-drop", + "odd-spies-flash", "old-keys-cry", "olive-countries-love", "orange-lemons-doubt", "pink-moles-marry", "quick-seals-exercise", "quiet-cheetahs-flow", + "rare-scissors-hammer", "shaggy-clouds-cheat", "sharp-mangos-search", "silly-falcons-scream", @@ -61,7 +72,9 @@ "thin-walls-teach", "thirty-buttons-sniff", "three-tips-invite", + "tidy-shirts-jump", "warm-oranges-help", + "warm-spoons-applaud", "yellow-balloons-search" ] } diff --git a/packages/drift-ethers-v5/CHANGELOG.md b/packages/drift-ethers-v5/CHANGELOG.md index 411b6b2..b4aac1d 100644 --- a/packages/drift-ethers-v5/CHANGELOG.md +++ b/packages/drift-ethers-v5/CHANGELOG.md @@ -1,5 +1,25 @@ # @delvtech/drift-ethers-v5 +## 0.0.1-beta.2 + +### Patch Changes + +- e7380c6: Update deps +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [e7380c6] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [a8a4f5f] + - @delvtech/drift@0.0.1-beta.21 + ## 0.0.1-beta.1 ### Patch Changes diff --git a/packages/drift-ethers-v5/package.json b/packages/drift-ethers-v5/package.json index 7ded5e0..40f4a38 100644 --- a/packages/drift-ethers-v5/package.json +++ b/packages/drift-ethers-v5/package.json @@ -1,7 +1,7 @@ { "name": "@delvtech/drift-ethers-v5", "description": "Ethers.js v5 adapter for Drift", - "version": "0.0.1-beta.1", + "version": "0.0.1-beta.2", "license": "Apache-2.0", "type": "module", "main": "dist/index.cjs", @@ -27,11 +27,11 @@ "watch": "tsup --watch" }, "peerDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "ethers": "^5.7.2" }, "devDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "@repo/typescript-config": "*", "abitype": "^1.0.6", "ethers": "^5.7.2", @@ -51,5 +51,7 @@ "publishConfig": { "access": "public" }, - "files": ["dist"] + "files": [ + "dist" + ] } diff --git a/packages/drift-ethers/CHANGELOG.md b/packages/drift-ethers/CHANGELOG.md index ff30c50..83ed648 100644 --- a/packages/drift-ethers/CHANGELOG.md +++ b/packages/drift-ethers/CHANGELOG.md @@ -1,5 +1,25 @@ # @delvtech/drift-ethers +## 0.0.0-beta.6 + +### Patch Changes + +- e7380c6: Update deps +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [e7380c6] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [a8a4f5f] + - @delvtech/drift@0.0.1-beta.21 + ## 0.0.0-beta.5 ### Patch Changes diff --git a/packages/drift-ethers/package.json b/packages/drift-ethers/package.json index 8990d50..07f4860 100644 --- a/packages/drift-ethers/package.json +++ b/packages/drift-ethers/package.json @@ -1,7 +1,7 @@ { "name": "@delvtech/drift-ethers", "description": "Ethers.js adapter for Drift", - "version": "0.0.0-beta.5", + "version": "0.0.0-beta.6", "license": "Apache-2.0", "type": "module", "main": "dist/index.cjs", @@ -27,11 +27,11 @@ "watch": "tsup --watch" }, "peerDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "ethers": "^6.13.4" }, "devDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "@repo/typescript-config": "*", "abitype": "^1.0.6", "ethers": "^6.13.4", @@ -51,5 +51,7 @@ "publishConfig": { "access": "public" }, - "files": ["dist"] + "files": [ + "dist" + ] } diff --git a/packages/drift-viem/CHANGELOG.md b/packages/drift-viem/CHANGELOG.md index c91f901..f950ee7 100644 --- a/packages/drift-viem/CHANGELOG.md +++ b/packages/drift-viem/CHANGELOG.md @@ -1,5 +1,25 @@ # @delvtech/drift-viem +## 0.0.1-beta.24 + +### Patch Changes + +- e7380c6: Update deps +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [e7380c6] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [a8a4f5f] + - @delvtech/drift@0.0.1-beta.21 + ## 0.0.1-beta.23 ### Patch Changes diff --git a/packages/drift-viem/package.json b/packages/drift-viem/package.json index efa0b3c..2d5f8f6 100644 --- a/packages/drift-viem/package.json +++ b/packages/drift-viem/package.json @@ -1,7 +1,7 @@ { "name": "@delvtech/drift-viem", "description": "Viem adapter for Drift", - "version": "0.0.1-beta.23", + "version": "0.0.1-beta.24", "license": "Apache-2.0", "type": "module", "main": "dist/index.cjs", @@ -27,11 +27,11 @@ "watch": "tsup --watch" }, "peerDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "viem": "^2.21.52" }, "devDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "@repo/typescript-config": "*", "tsconfig-paths": "^4.2.0", "tsup": "^8.3.5", @@ -50,5 +50,7 @@ "publishConfig": { "access": "public" }, - "files": ["dist"] + "files": [ + "dist" + ] } diff --git a/packages/drift-web3/CHANGELOG.md b/packages/drift-web3/CHANGELOG.md index 49401be..d67704e 100644 --- a/packages/drift-web3/CHANGELOG.md +++ b/packages/drift-web3/CHANGELOG.md @@ -1,5 +1,25 @@ # @delvtech/drift-web3 +## 0.0.0-beta.10 + +### Patch Changes + +- e7380c6: Update deps +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [e7380c6] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [d5fff4e] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [01a8004] +- Updated dependencies [a8a4f5f] + - @delvtech/drift@0.0.1-beta.21 + ## 0.0.0-beta.9 ### Patch Changes diff --git a/packages/drift-web3/package.json b/packages/drift-web3/package.json index eb8b594..5fc03fb 100644 --- a/packages/drift-web3/package.json +++ b/packages/drift-web3/package.json @@ -1,7 +1,7 @@ { "name": "@delvtech/drift-web3", "description": "Web3.js adapter for Drift", - "version": "0.0.0-beta.9", + "version": "0.0.0-beta.10", "license": "Apache-2.0", "type": "module", "main": "dist/index.cjs", @@ -27,11 +27,11 @@ "watch": "tsup --watch" }, "peerDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "web3": "^4.15.0" }, "devDependencies": { - "@delvtech/drift": "0.0.1-beta.20", + "@delvtech/drift": "0.0.1-beta.21", "@repo/typescript-config": "*", "abitype": "^1.0.6", "tsconfig-paths": "^4.2.0", @@ -51,5 +51,7 @@ "publishConfig": { "access": "public" }, - "files": ["dist"] + "files": [ + "dist" + ] } diff --git a/packages/drift/CHANGELOG.md b/packages/drift/CHANGELOG.md index b44b1a6..d449ddb 100644 --- a/packages/drift/CHANGELOG.md +++ b/packages/drift/CHANGELOG.md @@ -1,5 +1,29 @@ # @delvtech/drift +## 0.0.1-beta.21 + +### Patch Changes + +- a8a4f5f: Patched a bug with the built-in `OxAdapter` in which `onMined` was never called after write operations. +- 01a8004: Added a `BaseClient` class which contains most of the functionality that used to live in the `Drift` class and centralized logic for cache operations and namespace resolution, using the chain id as a default. This also removes a circular dependency between `Drift` and `Contract`. +- 01a8004: Added a `MockClient` class which mimics `BaseClient`. +- 01a8004: Refactored `Drift` and `MockDrift` to extend `BaseClient` and `MockClient`. +- 01a8004: Refactored `Contract` to go through a `BaseClient` instead of repeating cache and adapter logic. +- 01a8004: Removed `isReadWriteAdapter` util which simply checked if the `write` property was a function. +- 01a8004: Removed `Adapter` and `Network` prefix from param types, e.g. `AdapterReadParams` to just `ReadParams`, `NetworkGetBlockParams` to just `GetBlockParams`. Removed redundant types. +- 01a8004: Renamed constructor `Param` types to `Config`. +- 01a8004: Renamed `ContractEvent` to `EventLog` to be more consistent with other adapter types like `FunctionArgs`. +- 01a8004: Replaced the `createLruSimpleCache` function with a `LruSimpleCache` class. +- d5fff4e: Replaced the `createClientCache` function with a `ClientCache` class which requires a namespace or namespace resolver. All methods are async to allow for dynamic namespace resolution and external cache implementations. +- d5fff4e: Added new testing utils: + - `getRandomInt` + - `getRandomHex` + - `getRandomAddress` + - `createStubBlock` + - `createStubTransaction` + - `createStubTransactionReceipt` +- e7380c6: Update deps + ## 0.0.1-beta.20 ### Patch Changes diff --git a/packages/drift/package.json b/packages/drift/package.json index ee43858..6556d84 100644 --- a/packages/drift/package.json +++ b/packages/drift/package.json @@ -1,7 +1,7 @@ { "name": "@delvtech/drift", "description": "Effortless ethereum development across Web3 libraries", - "version": "0.0.1-beta.20", + "version": "0.0.1-beta.21", "license": "Apache-2.0", "type": "module", "main": "dist/index.cjs", @@ -31,8 +31,12 @@ }, "typesVersions": { "*": { - ".": ["./dist/index.d.ts"], - "testing": ["./dist/testing.d.ts"] + ".": [ + "./dist/index.d.ts" + ], + "testing": [ + "./dist/testing.d.ts" + ] } }, "scripts": { @@ -79,5 +83,7 @@ "publishConfig": { "access": "public" }, - "files": ["dist"] + "files": [ + "dist" + ] }