-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/refactor, fix build, lint issues and tests. #40
Merged
Merged
Changes from all commits
Commits
Show all changes
1691 commits
Select commit
Hold shift + click to select a range
2898811
Added fix for selected quote case ERC20 paymaster
GabiDev45 638daee
Merge branch 'v4' into feature/SMA-526_add-tsdoc
joepegler 68cce44
Changed send user op approach in ERC20 paymaster test
GabiDev45 56424b5
Modify sendUserOp function description
GabiDev45 693bf08
Added throw instead of return user op
GabiDev45 25f77ee
continued
joepegler 290cede
Fix branch for deployment of docs
joepegler fa09e4d
Removed try catch
GabiDev45 41a50c6
Added utility func to get balance in tests
GabiDev45 74d0432
Merge pull request #369 from bcnmy/feature/SMA-526_add-tsdoc
AmanRaj1608 f1185b4
Merge branch 'v4' of https://github.com/bcnmy/biconomy-client-sdk int…
GabiDev45 b1e5b5e
Removed unused value param from tx obj
GabiDev45 4a0597d
Merge pull request #371 from bcnmy/feat/SMA-540-check-paymaster-userop
livingrockrises 8c8e983
Fix UserOpResponse wait confirmations
au2001 0670f1e
Merge pull request #374 from arl-sh/fixes/userop-response-wait
livingrockrises 1d1f9da
Apply Signer Abstraction to modules (#375)
joepegler 68a59d6
fix:circular_dependency
joepegler 3ba9702
Merge pull request #376 from bcnmy/fix/circular_dep
livingrockrises 5dce507
Resolved SM-547
joepegler 965e44c
lint:fix
joepegler 6735141
Merge pull request #378 from bcnmy/chore/SMA-547_move-common-code
AmanRaj1608 2a625cb
Removed lint-staged (#382)
VGabriel45 56c87c6
README tweaks (#377)
joepegler 232472c
createSmartAccountClient (#385)
joepegler ff28ebd
Add paymasterAndData validation in e2e tests (#381)
VGabriel45 f56b4da
Use RpcUrl from provider (#379)
joepegler bb54888
Feat/sma 540 check paymaster userop (#384)
VGabriel45 c2100ee
update lockfile
livingrockrises 9727fd5
Add ethersV6 compatibility (#387)
VGabriel45 741806d
Feat(SMA-559): Improved dx for erc20 paymaster calls (#388)
joepegler 203391b
Added more tests and checks
GabiDev45 c5aa4f6
Except sessionStorageData folder from gitignore but not files (#389)
VGabriel45 efc811b
fixes in v4 for front end frameworks (#392)
livingrockrises 25d2bee
Added simulationType flag (#390)
VGabriel45 d6205c4
Fix(SMA-574): ESM builds (#393)
joepegler 20a4d57
Fix check for maxApproval in BiconomySmartAccountV2 (#395)
VGabriel45 99715b0
Bugfix/api error message (#396)
VGabriel45 5b86983
Change type: sessionSigner: SupportedSigner (#397)
joepegler dce4a0c
Fixed merkletreejs import (#400)
VGabriel45 8246483
Feat(SMA-579): Allow empty tokenInfo fields during getTokenFees (#399)
joepegler 5d3af2e
yarn lock
livingrockrises 08f83be
Feat(SMA-583): Update README.md with v4 examples (#405)
joepegler 22d5de3
update lockfile
livingrockrises b905dcf
Added string as a supported Transaction value type (#404)
VGabriel45 ec36bc9
Added export for UserOpStatus type from /account (#403)
VGabriel45 4971287
Added needed exports from modules (#402)
VGabriel45 2ee540e
Added readme (#409)
VGabriel45 78db73e
Commented overrides and skipBundlerGasEstimation params (#407)
VGabriel45 8ce04a5
V4 with viem v2 (bump aa-core and viem) (#406)
livingrockrises 2388003
Merge branch 'develop' into v4
joepegler 8205a76
update lockfile
livingrockrises c56cd8b
Merge branch 'v4' of https://github.com/bcnmy/biconomy-client-sdk int…
livingrockrises 9278ecc
Added a new param to sendRequest "service" (#412)
VGabriel45 80a90f1
Added changelog (#410)
joepegler ebff7e3
Make package exports consistent (#411)
joepegler 3d86837
birth of V4 SDK (#401)
livingrockrises cfea08f
Merge branch 'v4' of https://github.com/bcnmy/biconomy-client-sdk int…
GabiDev45 af84712
Merged with v4
GabiDev45 7bb3813
Release 8 - Biconomy V4 SDK (#414)
livingrockrises db298a5
Replaced baseGoerli with baseSepolia (#415)
VGabriel45 b82c3e2
Merge branch 'develop' of https://github.com/bcnmy/biconomy-client-sd…
GabiDev45 1688f9d
Batched session router fix
GabiDev45 3c94de1
Added ethers defaultAbiCoder
GabiDev45 b27061e
Fix for encodeAbiParameters inside batched session module (#416)
VGabriel45 11a7e6e
Merge Develop to Main (#417)
livingrockrises 4e0141c
Merge branch 'develop' of https://github.com/bcnmy/biconomy-client-sd…
GabiDev45 2eb9765
Batched session router testing
GabiDev45 536f099
Fixed logs
GabiDev45 da340fb
Get smart account balances
joepegler f8a1b2e
lint:fix
joepegler b7e0d98
fix comments
joepegler d8d2cb2
remove log
joepegler 66eb3c4
fix build
joepegler 8a7eb0d
continued
joepegler 00ad1da
Fix tests (#422)
joepegler 7374c79
Merge remote-tracking branch 'origin/develop' into feature/SMA-599_ba…
joepegler b66648e
Batched session router tests
GabiDev45 b2f2c33
Fix batched router test
GabiDev45 6541707
Test fixes
GabiDev45 2824a60
Merge branch 'develop' of https://github.com/bcnmy/biconomy-client-sd…
GabiDev45 bf11eff
Merge with develop
GabiDev45 74a24ab
Fixed broken tests
GabiDev45 15e8a6d
Delete packages/common/src/typechain directory
VGabriel45 fe73494
Resolve SMA-673
joepegler 1a8f296
Chore(SMA-604): ecdsa tests (#418)
joepegler be0a8b6
Merge pull request #432 from bcnmy/hotfix/SMA-673_rpc_provider_cors
livingrockrises 5fb3eed
Fix(SMA-677): Particle auth build broken
joepegler a619434
Increased test timeouts
GabiDev45 363fa3b
fix(SMA-682): docs-currently-are-down
joepegler b7d86d9
cont.
joepegler 75c9548
Merge pull request #435 from bcnmy/fix/SMA-682_docs-fix
livingrockrises a480670
bump aa-core version
joepegler 329003c
Merge branch 'develop' into DEVX-441/increase-test-coverage
livingrockrises acac619
update lockfile
livingrockrises 70fbb34
Merge pull request #394 from bcnmy/DEVX-441/increase-test-coverage
livingrockrises d331bc5
Merge pull request #419 from bcnmy/bugfix/fix-log
livingrockrises 20fd54c
Added StateOverrideSet parameter (#427)
VGabriel45 24b4c32
Merge pull request #433 from bcnmy/fix/SMA-677_particle-auth-build
livingrockrises 4b8bae4
Feat(SMA-599): Get balances (#420)
joepegler e6cd7db
fix yarn
joepegler 891dd98
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler b689dc9
fix comment
joepegler 8b9fb5d
Feat(SMA-663): Minimal Reproducible Example request (#426)
joepegler 6d2fb27
Feat(SMA-597): Supported Tokens method (#425)
joepegler 1949e68
rpcUrl as required and removed redundant code (#430)
VGabriel45 c411f55
Update changelogs
joepegler 5264016
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler 66d5d56
Merge pull request #436 from bcnmy/hotfix/changelo_update
livingrockrises 4bb17a7
default recipient
joepegler fa30abb
default with empty string
joepegler be9dc4d
Feat(SMA-670): SmartAccount deploy method (#429)
joepegler 480e47f
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler e74dbf4
Particle build revert
joepegler f316562
bump version
joepegler 5a9c3b0
Merge pull request #438 from bcnmy/hotfix/particle-build-revert
livingrockrises 5051ba5
Feat(SMA-675): Add optimism tests (#437)
joepegler 7a2bd59
Merge branch 'develop' into feature/SMA-598_withdrawal
joepegler e4f067c
usdt fix
joepegler d2e8ee1
Fix: E2E tests (#440)
joepegler 37ed719
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler e2193ad
cont.
joepegler 75698c8
added flag to skip calldata approval patch (#441)
livingrockrises 2371b23
Remove extra call to Bundler for Sponsored User ops (#408)
livingrockrises 01f4c4d
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler de02980
reinclude publicClient
joepegler bc0c6da
fix/e2e_tests (#444)
joepegler eeb55fd
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler 8908d6a
feat: support custom chains (#443)
joepegler 49c9682
Added ABI SVM test (#439)
VGabriel45 5d2f34d
Refactor to paymaster url & added check for chain ids + tests (#434)
VGabriel45 d27d84d
Improved balances (#445)
joepegler 635db84
Back merge main branch (#446)
joepegler 6874311
Changelog
joepegler 4ddc6fe
Merge branch 'main' into chore/changelog
joepegler 3c048c0
version bump
joepegler 6df7c65
Merge pull request #448 from bcnmy/chore/changelog
livingrockrises 99c65a5
Add getChain helper (#449)
joepegler 466968d
Merge pull request #447 from bcnmy/develop
livingrockrises 815e944
yml formatting
joepegler a8af7fd
merge develop
joepegler 007b703
lint: fix
joepegler 93186ad
Fix esm builds
joepegler 345753c
Merge pull request #450 from bcnmy/hotfix/issue_report
livingrockrises 04bc6c5
Merge pull request #451 from bcnmy/hotfix/esm_builld
livingrockrises d9b895b
Merge pull request #453 from bcnmy/hotfix/issue_report
livingrockrises af8b725
Merge pull request #452 from bcnmy/hotfix/esm_builld
livingrockrises f256712
Fix wrong falsy check for user op nonce (#455)
VGabriel45 4125973
update docs link
himanshugarg06 bab0818
Merge pull request #456 from bcnmy/update_docs
livingrockrises fd832fe
added 1271 support + tests
GabiDev45 28422f1
continued
joepegler 7a93d87
Merge branch 'develop' into feature/SMA-598_withdrawal
joepegler 079def2
lint:fix
joepegler eaef063
yarn lock
joepegler 44d2529
fix comment
joepegler cb4b60a
fix comment
joepegler f963c10
renamed test and remove redundant variable
GabiDev45 55a12d4
Merge pull request #457 from bcnmy/feat/1271-integration
VGabriel45 050d542
Merge remote-tracking branch 'origin/develop' into feature/SMA-598_wi…
joepegler f7e5420
Merge pull request #424 from bcnmy/feature/SMA-598_withdrawal
livingrockrises 7c594fa
chore: modernise tooling and reduce package size (#466)
joepegler 539269e
chore: add further tests (#471)
joepegler facab25
chore: add 6492 signature (#468)
VGabriel45 6c6583f
chore: remove buffer (#473)
joepegler e290fd1
chore: export abi svm helper (#476)
joepegler 8694366
chore: add token balances in getSupportedTokens (#470)
VGabriel45 950a521
feat: gas estimates (#477)
joepegler e39bb88
update docs link (#480)
joepegler 44999e7
chore: backmerge main
joepegler 8d34d14
chore: dumy pnd override (#481)
livingrockrises b44a7bf
chore: update readme (#482)
joepegler c06a8d4
chore: version bump (#483)
joepegler 8fc9038
Merge pull request #479 from bcnmy/develop
joepegler 73965ab
feat: gas offset param for sendTransaction and sendUserOp (#474)
VGabriel45 000fa86
feat: transfer ownership (#484)
VGabriel45 76be2c0
feat: transfer_ownership_v2 (#488)
VGabriel45 498b79b
chore: r11 - v4.2.1 (#489)
VGabriel45 9941115
chore: release v4.3.0 (#491)
VGabriel45 37ebce9
Merge branch 'main' of https://github.com/bcnmy/biconomy-client-sdk i…
GabiDev45 b9b2077
chore: sessions dx (#486)
joepegler f4976f4
Merge branch 'main' into develop
joepegler 71b5b04
fix: process.env errors (#494)
joepegler 81854a1
chore: tests counterfactual address (#485)
joepegler c172a40
chore: v4.4.1 (#495)
joepegler c70febb
ci: tests
joepegler 39761a7
fix: reference value (#498)
joepegler 5d4406e
chore: improve useSession dx (#502)
joepegler 6a0ddee
feat: simulate user op tests + ts doc (#503)
VGabriel45 b969a91
feat: custom chains support (#500)
joepegler 97c8fcd
chore: add test concurrency using nonceOptions (#506)
VGabriel45 6678f24
chore: batch session with token gas payments (#505)
joepegler 5606954
chore: release v4.4.5 (#511)
joepegler e74606a
chore: skip transfer tests (#514)
joepegler ec082bd
fix: remove file storage (#515)
joepegler 1af2f31
feat: nexus integration draft
GabiDev45 49431dd
fix: lint fixes
GabiDev45 21a693f
refactor: refactor calldata encoding
GabiDev45 1d8e651
refactor: calldata encoding and types
GabiDev45 3d6f494
refactor: cleaning and removing unused code
GabiDev45 c74a612
feat: install & uninstall module
GabiDev45 78b7327
feat: added batch execution, wait() for receipt, account modes ++
GabiDev45 1527f79
refactor: lint fixes
GabiDev45 eab0825
feat: added executor module + more module helper metods
GabiDev45 5f3ce6e
refactor: lint fix
GabiDev45 0f0c022
feat: executor module
GabiDev45 f9cb261
fix: fix mode
GabiDev45 330d3ac
fix: lint
GabiDev45 7363f52
feat: added tests for hook and handler
GabiDev45 9d1ece2
feat: cleaning & fix batch call from executor
GabiDev45 bdb8444
feat: modules integration +++
GabiDev45 c350fe4
fix: linting
GabiDev45 3249944
feat: added ownable validator module
GabiDev45 9a5b8df
fix: lint
GabiDev45 cc4530f
feat: improve install/uninstall flow, renaming, error handling, refactor
GabiDev45 2268af2
feat: add account address argument
GabiDev45 21dab0d
refactor: lint
GabiDev45 4f329f7
feat: extra argument to executor + test case
GabiDev45 35778ee
refactor: fix lint issues
GabiDev45 e102c3d
feat: nexus enable mode (#543)
VGabriel45 99463a3
feat: added getInstalledModules function + minor refactor
GabiDev45 60cddcd
refactor: refactor after new contracts
GabiDev45 d5855fd
feat: Nexus signature tests (draft)
GabiDev45 2ecb682
refactor: eip712 signature tests (draft)
GabiDev45 d42a1de
refactor: fixed signature methods & tests
GabiDev45 4eb51f4
refactor: lint fixes
GabiDev45 7278f08
chore: add dotenv
joepegler 36bad84
Update parsing of the URL from config (#554)
veljkovranic 8da8bd2
feat: added sendUserOperation script
GabiDev45 bb812ed
Merge branch 'feat/nexus' of https://github.com/bcnmy/biconomy-client…
GabiDev45 95f8862
refactor: change testing chain to baseSepolia
GabiDev45 c2af94a
refactor: cleanup
GabiDev45 d283ea4
refactor: cleanup + tsdoc + tests
GabiDev45 dc9f53a
fix: fixed script
GabiDev45 b3fe78f
refactor: removed initCode from packing
GabiDev45 43bca20
refactor: cleanup variable names and added 1 more test
81acdef
refactor: changes for interoperability between account sdks + removin…
8c25a8e
refactor: rename module field
b66b611
refactor: updated test case for OwnableExecutor
a67103d
broken links fixed
B-Venkatesh7210 678a5cc
feat: testing framework (#561)
joepegler b2a3e28
chore: test support for smart sessions (#565)
joepegler 1a85cb6
chore: add paymaster (#566)
joepegler 7cb4ff8
chore: fix nexus import (#567)
joepegler 0175646
chore: fix gas estimate endpoint
joepegler ce0b025
chore: return script
joepegler 08365da
signTypedData implementation + tests + nexus contracts update (#573)
VGabriel45 f548ab4
chore: refactor (#574)
joepegler 4ad18e4
Nexus fix: OwnableValidator & OwnableExecutor integration + tests, + …
VGabriel45 b23737a
Merge branch 'feat/nexus' of https://github.com/bcnmy/biconomy-client…
3b3cc57
refactor: add missing pieces, fix build, fix lint issues, fix tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,4 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
slug: bcnmy/sdk | ||
slug: bcnmy/sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# @biconomy/sdk | ||
|
||
## 0.0.0 | ||
## 0.0.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import { | ||
type Account, | ||
type Address, | ||
type Chain, | ||
type EIP1193Provider, | ||
type EIP1193RequestFn, | ||
type EIP1474Methods, | ||
type LocalAccount, | ||
type OneOf, | ||
type Transport, | ||
type WalletClient, | ||
createWalletClient, | ||
custom | ||
} from "viem" | ||
import { toAccount } from "viem/accounts" | ||
|
||
import { signTypedData } from "viem/actions" | ||
import { getAction } from "viem/utils" | ||
|
||
export type Signer = LocalAccount | ||
export type UnknownSigner = OneOf< | ||
| EIP1193Provider | ||
| WalletClient<Transport, Chain | undefined, Account> | ||
| LocalAccount | ||
| Account | ||
> | ||
export async function toSigner({ | ||
signer, | ||
address | ||
}: { | ||
signer: UnknownSigner | ||
address?: Address | ||
}): Promise<LocalAccount> { | ||
if ("type" in signer && signer.type === "local") { | ||
return signer as LocalAccount | ||
} | ||
|
||
let walletClient: | ||
| WalletClient<Transport, Chain | undefined, Account> | ||
| undefined = undefined | ||
|
||
if ("request" in signer) { | ||
if (!address) { | ||
try { | ||
;[address] = await (signer.request as EIP1193RequestFn<EIP1474Methods>)( | ||
{ | ||
method: "eth_requestAccounts" | ||
} | ||
) | ||
} catch { | ||
;[address] = await (signer.request as EIP1193RequestFn<EIP1474Methods>)( | ||
{ | ||
method: "eth_accounts" | ||
} | ||
) | ||
} | ||
} | ||
if (!address) throw new Error("address required") | ||
|
||
walletClient = createWalletClient({ | ||
account: address, | ||
transport: custom(signer as EIP1193Provider) | ||
}) | ||
} | ||
|
||
if (!walletClient) { | ||
walletClient = signer as WalletClient<Transport, Chain | undefined, Account> | ||
} | ||
|
||
return toAccount({ | ||
address: walletClient.account.address, | ||
async signMessage({ message }) { | ||
return walletClient.signMessage({ message }) | ||
}, | ||
async signTypedData(typedData) { | ||
return getAction( | ||
walletClient, | ||
signTypedData, | ||
"signTypedData" | ||
)(typedData as any) | ||
}, | ||
async signTransaction(_) { | ||
throw new Error("Not supported") | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments