Skip to content
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 some docs to the payment module #187

Merged
merged 17 commits into from
Jan 21, 2022
Merged

Add some docs to the payment module #187

merged 17 commits into from
Jan 21, 2022

Conversation

evan-forbes
Copy link
Member

@evan-forbes evan-forbes commented Jan 18, 2022

Description

adds some better docs to the payment module
closes: #178

rendered

@evan-forbes evan-forbes self-assigned this Jan 18, 2022
func (k *KeyringSigner) BuildSignedTx(builder sdkclient.TxBuilder, msg sdktypes.Msg) (authsigning.Tx, error) {
func (k *KeyringSigner) BuildSignedTx(msg sdktypes.Msg, options ...TxBuilderOption) (authsigning.Tx, error) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this slight refactor isn't really inside the scope of this PR, I decided to include it anyway, as it is very minor.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we pull this out or can we add this into the pr description. In the future if we need to reference this PR for this code it could get confusing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pulled this out, and will add it in a different PR

x/payment/spec/docs.md Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
@evan-forbes evan-forbes marked this pull request as ready for review January 19, 2022 01:48
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
x/payment/spec/docs.md Outdated Show resolved Hide resolved
Co-authored-by: John Adler <[email protected]>
There are tools to programmatically create, sign, and broadcast `MsgWirePayForMessages`
```go
// use a keyring to sign messages programmatically
keyringSigner, err := NewKeyringSigner(keyring, "keyring account name", "chain-id-1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im guessing this is the keyringsinger of this module and not the general sdk. Would be good to mention as this is the most confusing part.

May be good to open a issue on how to delete this code too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, added some more details that hopefully make this clearer. Also created an issue to look into different ways to sign malleated transactions. #192 4f740a4

@evan-forbes evan-forbes merged commit 51e86d7 into master Jan 21, 2022
@liamsi liamsi deleted the evan/docs branch January 22, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add docs for payments module
4 participants