-
Notifications
You must be signed in to change notification settings - Fork 22
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
Biconomy integration #277
Merged
Merged
Biconomy integration #277
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
4cf7925
implemented starting smart account api
nerfZael 3b66585
removed the reliance on manager.balance_of
nerfZael cf5e542
decoupling safe manager from smart wallet
nerfZael b0f9076
Merge remote-tracking branch 'origin/main' into nerfzael/biconomy
nerfZael ca52a5d
Merge remote-tracking branch 'origin/dev' into nerfzael/biconomy
nerfZael eca4e24
smart-account-api docker implementation
nerfZael 56cff6d
sending transactions with local biconomy account
nerfZael e352897
initial biconomy api implementation
nerfZael 27d67ef
updated readme with biconomy instructions
nerfZael 0f45fbb
added network with bundler url
nerfZael d03dc70
typing fixes
nerfZael a0b62cc
Merge remote-tracking branch 'origin/nerfzael/logging-and-errors' int…
nerfZael 8197f6b
swapping is now async
nerfZael 52c0bd1
lowered max rounds to 20 when testing
nerfZael 224fb06
added execution logs
nerfZael 7649dce
fixed inverted bool
nerfZael e95d49d
catching all exceptions for swap
nerfZael 0fa32df
added pytest timeout
nerfZael 0214491
fixes issue where benchmarks break if first test fails
nerfZael 625acef
added timeouts to tests
nerfZael 906aef9
using aiohttp directly to not dispose of session
nerfZael 305acc4
added constants for test timeouts
nerfZael e7ab90c
executing transactions one by one in safe if the multisend fails to e…
nerfZael 0749613
raising exception where appropriate
nerfZael 4c2d438
Merge remote-tracking branch 'origin/dev' into nerfzael/biconomy
nerfZael 6532b06
increased test timeout of research tests
nerfZael fd61f5c
updated tests with intents and using more gaming categories as valid
nerfZael 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Biconomy Smart Accounts | ||
|
||
## Description | ||
AutoTx can be used with a Biconomy Smart Account. | ||
|
||
## Getting started | ||
First, add the private key of the account you want to use as the owner to the `.env` file. Use the variable `SMART_ACCOUNT_OWNER_PK`. | ||
Since the private key is stored as plain text, it is recommended to use a test account. | ||
|
||
Next, start the `smart_account_api`, run: `poetry run start-smart-account-api`. This API server will be used to interact with the Biconomy Smart Account. | ||
You can run `poetry run stop-smart-account-api` to stop the server. | ||
|
||
To start AutoTx, you can now run: `poetry run ask "my-prompt-here"`. | ||
|
||
When running for the first time, you will be prompted to send funds to your new Biconomy Smart Account in order to pay for the gas fees. | ||
``` | ||
Using Biconomy smart account: {SMART-ACCOUNT-ADDRESS} | ||
Detected empty account balance. | ||
To use your new smart account, please top it up with some native currency. | ||
Send the funds to: {SMART-ACCOUNT-ADDRESS} on {NETWORK-NAME} | ||
Waiting... | ||
``` | ||
After sending the funds, AutoTx will automatically detect the balance and continue with the transaction. |
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
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.
is there any reason to make this async? this is expected to be run through the script
poetry run load-token
; I just tried it and got the error