-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add Third Party Feepayer #424
Merged
Merged
Changes from all commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
69413f8
feat: prompt user to pick an acount to pay transaction fees
ymekuria 5c1ae19
refactor: reword prompt text
ymekuria ca12e94
add value property to fee payor response
ymekuria 9f434eb
feat: prompt user to add base58 key if recover existing fee-payer acc…
ymekuria da7128f
feat: prompt user to choose a fee-payer alias
ymekuria 835a1a8
feat: validate fee-payer alias input
ymekuria aa42fb8
feat: prompt user to enter existing base58 key only if recover option…
ymekuria ce66c06
feat: add create feepayer keypair step
ymekuria 778a7cd
feat: generate feepayor keypayer
ymekuria c5d61fe
refactor: create feepayer keypayer in function
ymekuria c5e404a
refactor: create zkapp key pair in helper function
ymekuria b1d70b0
refactor: add network argument to create keypair helper
ymekuria 6a5566c
feat: get users home directory path
ymekuria 18a4c33
feat: add fee payer key pair to cache after create
ymekuria fafbb4a
feat: link feepayer public key to faucet link
ymekuria 35359e0
feat: add feepayer alias to config.json
ymekuria 9b41a42
feat: read feepayor key from users dir for deploy
ymekuria 8ded5b1
feat: deploy using 3rd party feepayor
ymekuria 40def10
feat: display feepayor key on error if account not found
ymekuria 174e76e
feat: add feepayer key path to config.json
ymekuria dc59684
feat: display feepayer alais during deploy
ymekuria 3f4e135
feat: check if feepayor is cached
ymekuria 2b4e6d3
feat: prompt user to use cached feepayor as an option
ymekuria 0ab58be
feat: only prompt for feepayer alias if not in cache
ymekuria c34434a
Update Next UI scaffold defaults (#402)
ymekuria aa6c579
use true key path instead misleading key path (#404)
wizicer eee3715
Clean up deploy and log full errors to the console (#408)
mitschabaude 006d816
feat: read feepayor key from users dir for deploy
ymekuria 70f01b4
refactor: get cached feepayer aliases in function
ymekuria ee77f13
refactor: get cached feepayer address in function
ymekuria 66090fb
feat:display all cached fee payers in prompt
ymekuria bd2cc00
feat: skip alternative cached feepayer prompt if default selected
ymekuria fd09bef
refactor: get feepayor prompt options in function
ymekuria f8d9078
refactor: updated feepayor prompt
ymekuria 1cdd8ee
refactor: display correct prompt if no feepayer is cached
ymekuria 86d310b
refactor: seperate deploy alias prompts
ymekuria 13890ee
refactor: move feepayor prompts to seperate variable
ymekuria 3020cb0
refactor: move recover feepayor prompts to seperate variable
ymekuria f2bc51c
refactor: seperate other feepayor prompts
ymekuria 3cc2272
refactor: seperate feepayor alias prompts
ymekuria bc9701c
refactor: consitent method names
ymekuria aab8d7d
feat: add option to select from multiple saved feepayors
ymekuria cbc6428
feat: do not prompt user for fee-payer alias if saved alias selected
ymekuria 1dd6e8a
refactor: add config prompts file
ymekuria 0e97124
refactor: move deploy alias prompts to seperate file
ymekuria b02bed1
refactor: move recover fee-payer prompts to seperate file
ymekuria 6aba713
feat: reorder recover feepayor prompts
ymekuria feaa8ad
feat: update prompt to create a deploy alias
ymekuria c2f0820
feat: update feepayor alias prompt
ymekuria 87a5fd1
fix: workaround for enquirer skip prompt bug
ymekuria 26bfc60
refactor: rename fee-payer -> feepayer in prompts
ymekuria 3b073f2
feat: capitilze url in deploy alias table
ymekuria 8d224ba
feat: replace choose -> create in alias prompts
ymekuria 983a04c
feat: update feepayer -> fee payer in prompts
ymekuria 5a4bc23
refactor: move fee payer alias prompt to prompts file
ymekuria e934029
feat: update branch prompt order
ymekuria 059184b
refactor: move other fee payer prompts to prompts file
ymekuria 7331ad7
feat: move create key pair step to function
ymekuria 2d0f61f
add recover feepayor step to function
ymekuria ce8bc73
feat: add cached keypair step to a seperate function
ymekuria b46a9ed
feat: update key pair steps
ymekuria 53023c8
feat: add account recover warning prompt
ymekuria 4ab7f46
refactor: remove logs
ymekuria 9d05792
merge branch main into feature/third-party-feepayer
ymekuria 2003915
refactor: remove unused code
ymekuria b6f4bdd
feat: add keypair storage note to create prompt
ymekuria d1c111a
refactor: capitalize url field in deploy prompt
ymekuria 722a0fa
feat: deploy with fee payer public key
ymekuria 1414d37
feat: sanitize fee payer alais input
ymekuria 645b960
feat distinguish stored fee payer alias in prompt
ymekuria 4b383b7
feat: add incorrect private key input validation
ymekuria 5338fd0
feat: add validation if fee payer alias already exits
ymekuria f55ff99
feat: update fee payer alias check
ymekuria 0095110
feat: display error and exit config flow if invalid fee payer alias
ymekuria 7479108
refactor: format invalid fee payer alais error message
ymekuria f5bcd3a
feat: update existing feepayer alias check
ymekuria a92b6bb
feat: sign deploy txn withfee payer key
ymekuria 9428dcd
feat: update config type in interact script
ymekuria ef0b83c
feat: read fee payer key in interact script
ymekuria 66a5b08
feat: add fee payer as txn sender
ymekuria 08d35cb
feat: sign interact txn with fee payer key
ymekuria 5771334
feat: pay zkapp account creation fee with feepayer
ymekuria 3f081be
feat: replace groups of whitespace user input with single dash
ymekuria c8d0b6a
feat: rename to fee payer alias in config
ymekuria bdd9fe3
feat: rename to fee payer alias in interact script
ymekuria 98b8edf
feat: use fee from config in interact script
ymekuria d54c517
feat: log errors in interact script
ymekuria 768e7c5
feat: sanitize whitespaces for deploy alias input
ymekuria 7ceb0b8
bump version => 0.10.0
ymekuria b441027
Merge branch 'main' into feature/third-party-feepayer
ymekuria 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.
I chose this approach of feeding the response of the initial prompts into the subsequent branching prompt options because there is not a good api and way to handle nested prompts that depend on previous answers with the package we are using in the cli.