-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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/client v2 #19738
!Feat/client v2 #19738
Conversation
Important Auto Review SkippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
client/v2/offchain/sign_context.go
Outdated
for k := range options.CustomGetSigners { | ||
customGetSignerFuncs[k] = options.CustomGetSigners[k] | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
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.
nice work! left a few comments
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.
this looks quite duplicated from x/tx
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 think we could simplify the apis here, we don't need so many
client/v2/internal/tx/context.go
Outdated
|
||
// Context implements a typical context created in SDK modules for transaction | ||
// handling and queries. | ||
type Context struct { |
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.
Do we really need all those information? Like From, FromName and FromAddress could only be set to one thing (and when using a from name we directly query the keyring -- if possible).
This looks like mostly the exact same one that we have currently
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
This PR aims to:
Remove unwanted dependencies such as x/tx, x/auth, specific crypto types (multisig related types, direct references to secp256k1).
New
TxBuilder
interface:New
Factory
struct:Sign()
is now a Factory's methodNew Context struct for client cmds: Located in internal/x/context.go. Will avoid struct bleeding across other modules.
Medium refactor of
TxConfig
:TODO:
Keyring
interfaces (autoicli's Keyring and crypto.Keyring)SetFeePayer
vsSetFeeGranter
#18886Closes:
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...