Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci #95

Merged
merged 4 commits into from
Jul 9, 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
1 change: 0 additions & 1 deletion x/btcbridge/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ func CmdQueryBlock() *cobra.Command {
queryClient := types.NewQueryClient(clientCtx)

height, err := strconv.ParseUint(args[0], 10, 64)

if err != nil {
res, err := queryClient.QueryBlockHeaderByHash(cmd.Context(), &types.QueryBlockHeaderByHashRequest{Hash: args[0]})
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion x/btcbridge/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func CmdSubmitBlocks() *cobra.Command {
Short: "Submit Bitcoin block headers to the chain",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) (err error) {

clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
Expand Down
1 change: 0 additions & 1 deletion x/btcbridge/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
for _, utxo := range genState.Utxos {
k.SetUTXO(ctx, utxo)
}

}

// ExportGenesis returns the module's exported genesis
Expand Down
1 change: 0 additions & 1 deletion x/btcbridge/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
)

func TestGenesis(t *testing.T) {

mnemonic := "sunny bamboo garlic fold reopen exile letter addict forest vessel square lunar shell number deliver cruise calm artist fire just kangaroo suit wheel extend"
println(mnemonic)

Expand Down
3 changes: 0 additions & 3 deletions x/btcbridge/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func (m msgServer) SubmitDepositTransaction(goCtx context.Context, msg *types.Ms
)

return &types.MsgSubmitDepositTransactionResponse{}, nil

}

// SubmitTransaction implements types.MsgServer.
Expand Down Expand Up @@ -106,7 +105,6 @@ func (m msgServer) SubmitWithdrawTransaction(goCtx context.Context, msg *types.M
)

return &types.MsgSubmitWithdrawTransactionResponse{}, nil

}

// UpdateSenders implements types.MsgServer.
Expand Down Expand Up @@ -217,7 +215,6 @@ func (m msgServer) SubmitWithdrawSignatures(goCtx context.Context, msg *types.Ms
m.SetSigningRequest(ctx, request)

return &types.MsgSubmitWithdrawSignaturesResponse{}, nil

}

func (m msgServer) SubmitWithdrawStatus(goCtx context.Context, msg *types.MsgSubmitWithdrawStatusRequest) (*types.MsgSubmitWithdrawStatusResponse, error) {
Expand Down
1 change: 0 additions & 1 deletion x/btcbridge/types/merkle_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ func VerifyMerkleProof(proofs []string, txHash, root *chainhash.Hash) bool {
}

return current.IsEqual(root)

}
4 changes: 2 additions & 2 deletions x/gmm/keeper/pool_apr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
func TestAPRCalculation(t *testing.T) {
keeper, ctx := testkeeper.GmmKeeper(t)
amp := sdkmath.NewInt(100)
//params := types.DefaultParams()
// params := types.DefaultParams()
mockAssets := []types.PoolAsset{}
weight := sdkmath.NewInt(6)
tokenIn := sdk.NewCoin("usdt", sdk.NewInt(100))
//tokenOut := sdk.NewCoin("usdc", sdk.NewInt(80))
// tokenOut := sdk.NewCoin("usdc", sdk.NewInt(80))
mockAssets = append(mockAssets, types.PoolAsset{
Decimal: sdkmath.NewInt(6),
Weight: &weight,
Expand Down
3 changes: 1 addition & 2 deletions x/gmm/keeper/volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func TestVolumeQuery(t *testing.T) {
keeper, ctx := testkeeper.GmmKeeper(t)
amp := sdkmath.NewInt(100)
//params := types.DefaultParams()
// params := types.DefaultParams()
mockAssets := []types.PoolAsset{}
weight := sdkmath.NewInt(6)
tokenIn := sdk.NewCoin("usdt", sdk.NewInt(100))
Expand Down Expand Up @@ -73,5 +73,4 @@ func TestVolumeQuery(t *testing.T) {
require.Len(t, volumeInDay, 2, "24-hour volume should have two coins")
require.Equal(t, expected24HourVolumeUsdc, volumeInDay[0].Amount, "24-hour USDT volume does not match")
require.Equal(t, expected24HourVolumeUsdt, volumeInDay[1].Amount, "24-hour USDC volume does not match")

}
2 changes: 0 additions & 2 deletions x/gmm/types/message_add_liquidity.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ func (msg *MsgAddLiquidity) ValidateBasic() error {
}
return nil
}


Loading