-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cosmosclient): add tx options (incl memo setting) (#4276)
- Loading branch information
1 parent
e7aa711
commit 6bcbe4e
Showing
5 changed files
with
65 additions
and
24 deletions.
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
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,15 @@ | ||
package cosmosclient | ||
|
||
// TxOptions contains options for creating a transaction. | ||
// It is used by the CreateTxWithOptions method. | ||
type TxOptions struct { | ||
// Memo is the memo to be used for the transaction. | ||
Memo string | ||
|
||
// GasLimit is the gas limit to be used for the transaction. | ||
// If GasLimit is set to 0, the gas limit will be automatically calculated. | ||
GasLimit uint64 | ||
|
||
// Fees is the fees to be used for the transaction. | ||
Fees string | ||
} |