From 64173f6be606a62e370e1dfe67d31fcb9c750aaa Mon Sep 17 00:00:00 2001 From: Sahil Vasava Date: Tue, 1 Oct 2024 19:46:08 +0700 Subject: [PATCH] feat: Add support for CONDUIT as provider alongwith ZERODEV --- packages/core/CHANGELOG.md | 6 +++ packages/core/clients/kernelAccountClient.ts | 3 +- packages/core/clients/paymasterClient.ts | 3 +- packages/core/package.json | 42 +++++++++++++++----- 4 files changed, 42 insertions(+), 12 deletions(-) diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index cd7aac65..db7680ef 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @zerodev/sdk +## 5.3.19 + +### Patch Changes + +- Add support for CONDUIT as provider alongwith ZERODEV + ## 5.3.18 ### Patch Changes diff --git a/packages/core/clients/kernelAccountClient.ts b/packages/core/clients/kernelAccountClient.ts index 11320994..f54fba36 100644 --- a/packages/core/clients/kernelAccountClient.ts +++ b/packages/core/clients/kernelAccountClient.ts @@ -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( diff --git a/packages/core/clients/paymasterClient.ts b/packages/core/clients/paymasterClient.ts index 64ed66c6..4e824621 100644 --- a/packages/core/clients/paymasterClient.ts +++ b/packages/core/clients/paymasterClient.ts @@ -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))({ diff --git a/packages/core/package.json b/packages/core/package.json index ed2b5ace..8ba02b4c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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", @@ -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", @@ -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": {