8000 chore: minor cleanup by tac0turtle · Pull Request #764 · skip-mev/connect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

chore: minor cleanup #764

Merged
merged 5 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions abci/strategies/codec/mocks/vote_extension_codec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 57 additions & 56 deletions abci/strategies/currencypair/mocks/mock_oracle_keeper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions abci/strategies/currencypair/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package currencypair

import (
"context"
"math/big"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -13,12 +14,12 @@ import (
//
//go:generate mockery --name OracleKeeper --filename mock_oracle_keeper.go
type OracleKeeper interface {
GetCurrencyPairFromID(ctx sdk.Context, id uint64) (cp connecttypes.CurrencyPair, found bool)
GetIDForCurrencyPair(ctx sdk.Context, cp connecttypes.CurrencyPair) (uint64, bool)
GetPriceForCurrencyPair(ctx sdk.Context, cp connecttypes.CurrencyPair) (oracletypes.QuotePrice, error)
GetNumCurrencyPairs(ctx sdk.Context) (uint64, error)
GetNumRemovedCurrencyPairs(ctx sdk.Context) (uint64, error)
GetAllCurrencyPairs(ctx sdk.Context) []connecttypes.CurrencyPair
GetCurrencyPairFromID(ctx context.Context, id uint64) (cp connecttypes.CurrencyPair, found bool)
GetIDForCurrencyPair(ctx context.Context, cp connecttypes.CurrencyPair) (uint64, bool)
GetPriceForCurrencyPair(ctx context.Context, cp connecttypes.CurrencyPair) (oracletypes.QuotePrice, error)
GetNumCurrencyPairs(ctx context.Context) (uint64, error)
GetNumRemovedCurrencyPairs(ctx context.Context) (uint64, error)
GetAllCurrencyPairs(ctx context.Context) []connecttypes.CurrencyPair
}

// CurrencyPairStrategy is a strategy for generating a unique ID and price representation for a given currency pair.
Expand Down
Loading
Loading
0