Skip to content

Commit

Permalink
feat: Add support for CONDUIT as provider alongwith ZERODEV
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed Oct 1, 2024
1 parent 0db57d8 commit 64173f6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zerodev/sdk

## 5.3.19

### Patch Changes

- Add support for CONDUIT as provider alongwith ZERODEV

## 5.3.18

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/core/clients/kernelAccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export const createKernelAccountClient = <
!shouldIncludePimlicoProvider ||
isProviderSet(_bundlerTransport.value?.url, "ALCHEMY") ||
isProviderSet(_bundlerTransport.value?.url, "ZERODEV") ||
isProviderSet(_bundlerTransport.value?.url, "THIRDWEB")
isProviderSet(_bundlerTransport.value?.url, "THIRDWEB") ||
isProviderSet(_bundlerTransport.value?.url, "CONDUIT")
)
return _bundlerTransport
_bundlerTransport = http(
Expand Down
3 changes: 2 additions & 1 deletion packages/core/clients/paymasterClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export const createZeroDevPaymasterClient = <
!shouldIncludePimlicoProvider ||
isProviderSet(_transport.value?.url, "ALCHEMY") ||
isProviderSet(_transport.value?.url, "ZERODEV") ||
isProviderSet(_transport.value?.url, "THIRDWEB")
isProviderSet(_transport.value?.url, "THIRDWEB") ||
isProviderSet(_transport.value?.url, "CONDUIT")
)
return _transport
_transport = http(setPimlicoAsProvider(_transport.value?.url))({
Expand Down
42 changes: 32 additions & 10 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zerodev/sdk",
"version": "5.3.18",
"version": "5.3.19",
"author": "ZeroDev",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
Expand All @@ -9,7 +9,13 @@
"type": "module",
"sideEffects": false,
"description": "A utility library for working with ERC-4337",
"keywords": ["ethereum", "erc-4337", "eip-4337", "paymaster", "bundler"],
"keywords": [
"ethereum",
"erc-4337",
"eip-4337",
"paymaster",
"bundler"
],
"license": "MIT",
"files": [
"_esm",
Expand Down Expand Up @@ -90,14 +96,30 @@
},
"typesVersions": {
"*": {
"accounts": ["./_types/accounts/index.d.ts"],
"plugins": ["./_types/plugins/index.d.ts"],
"actions": ["./_types/actions/index.d.ts"],
"types": ["./_types/types/index.d.ts"],
"actions/kernel": ["./_types/actions/kernel/index.d.ts"],
"clients": ["./_types/clients/index.d.ts"],
"clients/kernel": ["./_types/clients/kernel/index.d.ts"],
"providers": ["./_types/providers/index.d.ts"]
"accounts": [
"./_types/accounts/index.d.ts"
],
"plugins": [
"./_types/plugins/index.d.ts"
],
"actions": [
"./_types/actions/index.d.ts"
],
"types": [
"./_types/types/index.d.ts"
],
"actions/kernel": [
"./_types/actions/kernel/index.d.ts"
],
"clients": [
"./_types/clients/index.d.ts"
],
"clients/kernel": [
"./_types/clients/kernel/index.d.ts"
],
"providers": [
"./_types/providers/index.d.ts"
]
}
},
"peerDependencies": {
Expand Down

0 comments on commit 64173f6

Please sign in to comment.