-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: add Denom type and embed into Token Adds Denom and Trace proto types Makes use of Denom type in Token Trace will be used in a later pr * refactor: begin migrating DenomTrace -> Denom * refactor: regenerate protos for genesis and query service * refactor: finish switching DenomTrace -> Denom * fix: self review * lint * Apply suggestions from code review * Update modules/apps/transfer/types/trace.go * chore: temporarily skips running unit tests on E2Es * Apply suggestions from code review * fix: build * fix: various issues * fix: Add back RPC endpoints Add back DenomTrace/DenomTraces as dependency for 08-wasm e2e's depends on them. Mark as deprecated and implement them to return nothing (to be replaced with sensible error). Remove repeated cast from proto definition to reduce required boilerplate to get it compiling. Remove hack in scripts/go-test-all.go to have e2e tests executing. * lint: fix linting issues. * Update proto/ibc/applications/transfer/v1/query.proto Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * tests: fix failing test. * fix: return error on unsupported grpc --------- Co-authored-by: chatton <cian@interchain.io> Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
977573b
commit 1f74f0b
Showing
32 changed files
with
1,987 additions
and
391 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,28 @@ | ||
package keeper | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
|
||
"github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" | ||
) | ||
|
||
// SetDenomTraces is a wrapper around iterateDenomTraces for testing purposes. | ||
func (k Keeper) SetDenomTrace(ctx sdk.Context, denomTrace types.DenomTrace) { | ||
k.setDenomTrace(ctx, denomTrace) | ||
} | ||
|
||
// IterateDenomTraces is a wrapper around iterateDenomTraces for testing purposes. | ||
func (k Keeper) IterateDenomTraces(ctx sdk.Context, cb func(denomTrace types.DenomTrace) bool) { | ||
k.iterateDenomTraces(ctx, cb) | ||
} | ||
|
||
// GetAllDenomTraces returns the trace information for all the denominations. | ||
func (k Keeper) GetAllDenomTraces(ctx sdk.Context) []types.DenomTrace { | ||
var traces []types.DenomTrace | ||
k.iterateDenomTraces(ctx, func(denomTrace types.DenomTrace) bool { | ||
traces = append(traces, denomTrace) | ||
return false | ||
}) | ||
|
||
return traces | ||
} |
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
Oops, something went wrong.