-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use a single transaction builder (#175)
* add gas limit before signing commitments * initial integration test * debug, fix flags, and cleanup * change func name from DecodeChildTx -> UnwrapChildTx * update go mod to use event tracking and cleanup test * update to the latest commit from celestia-core * get rid of commented out code Co-authored-by: John Adler <[email protected]> * use a singular transaction builder and add options * fix bug and cleanup * Bump goreleaser/goreleaser-action from 2.7.0 to 2.8.0 (#137) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2.7.0 to 2.8.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](goreleaser/goreleaser-action@v2.7.0...v2.8.0) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/cache from 2.1.6 to 2.1.7 (#151) Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7. - [Release notes](https://github.com/actions/cache/releases) - [Commits](actions/cache@v2.1.6...v2.1.7) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump github.com/celestiaorg/nmt from 0.7.0 to 0.8.0 (#146) Bumps [github.com/celestiaorg/nmt](https://github.com/celestiaorg/nmt) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/celestiaorg/nmt/releases) - [Commits](celestiaorg/nmt@v0.7.0...v0.8.0) --- updated-dependencies: - dependency-name: github.com/celestiaorg/nmt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * use a singular transaction builder and add options * fix bug and cleanup Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3ce0f1e
commit b4c8ebd
Showing
6 changed files
with
105 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package types | ||
|
||
import ( | ||
sdkclient "github.com/cosmos/cosmos-sdk/client" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
type TxBuilderOption func(builder sdkclient.TxBuilder) sdkclient.TxBuilder | ||
|
||
func SetGasLimit(limit uint64) TxBuilderOption { | ||
return func(builder sdkclient.TxBuilder) sdkclient.TxBuilder { | ||
builder.SetGasLimit(limit) | ||
return builder | ||
} | ||
} | ||
|
||
func SetFeeAmount(fees sdk.Coins) TxBuilderOption { | ||
return func(builder sdkclient.TxBuilder) sdkclient.TxBuilder { | ||
builder.SetFeeAmount(fees) | ||
return builder | ||
} | ||
} |
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