-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing protocol revenue panic issue * adding closing ratio to event * changing default protocol-revenue-address * optimizing end blocker * Add asset profile genesis state to test cases This commit updates various test cases to include the asset profile genesis state with a USDC entry. This ensures consistency across tests and prepares the state with necessary data for more comprehensive testing. * Update x/masterchef/types/params.go Co-authored-by: Amit Yadav <amy29981@gmail.com> * fixing test cases and refactoring names * fixing query pulsar --------- Co-authored-by: Amit Yadav <amy29981@gmail.com> Co-authored-by: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com>
- Loading branch information
1 parent
001425f
commit 922d67b
Showing
33 changed files
with
1,085 additions
and
661 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,39 @@ | ||
package cli_test | ||
|
||
import ( | ||
"io" | ||
"testing" | ||
|
||
rpcclientmock "github.com/cometbft/cometbft/rpc/client/mock" | ||
"github.com/stretchr/testify/suite" | ||
|
||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/cosmos/cosmos-sdk/crypto/keyring" | ||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" | ||
testutilmod "github.com/cosmos/cosmos-sdk/types/module/testutil" | ||
"github.com/cosmos/cosmos-sdk/x/bank" | ||
) | ||
|
||
type CLITestSuite struct { | ||
suite.Suite | ||
|
||
kr keyring.Keyring | ||
encCfg testutilmod.TestEncodingConfig | ||
baseCtx client.Context | ||
} | ||
|
||
func TestMigrateTestSuite(t *testing.T) { | ||
suite.Run(t, new(CLITestSuite)) | ||
} | ||
|
||
func (s *CLITestSuite) SetupSuite() { | ||
s.encCfg = testutilmod.MakeTestEncodingConfig(bank.AppModuleBasic{}) | ||
s.kr = keyring.NewInMemory(s.encCfg.Codec) | ||
s.baseCtx = client.Context{}. | ||
WithKeyring(s.kr). | ||
WithTxConfig(s.encCfg.TxConfig). | ||
WithCodec(s.encCfg.Codec). | ||
WithClient(clitestutil.MockCometRPC{Client: rpcclientmock.Client{}}). | ||
WithAccountRetriever(client.MockAccountRetriever{}). | ||
WithOutput(io.Discard) | ||
} |
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.