Skip to content

Commit

Permalink
fix: fix some action errors
Browse files Browse the repository at this point in the history
  • Loading branch information
trestinlsd committed Apr 11, 2024
1 parent 85151f0 commit 94b902b
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 795 deletions.
5 changes: 0 additions & 5 deletions precompiles/avsTask/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ func (s *TaskPrecompileTestSuite) TestIsTransaction() {
s.precompile.Methods[task.MethodRegisterAVSTask].Name,
true,
},
{
task.MethodRegisterBLSPublicKey,
s.precompile.Methods[task.MethodRegisterBLSPublicKey].Name,
true,
},
{
"invalid",
"invalid",
Expand Down
2 changes: 0 additions & 2 deletions proto/exocore/task/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package exocore.task.v1;

import "cosmos_proto/cosmos.proto";
import "exocore/task/v1/tx.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "tendermint/crypto/keys.proto";

option go_package = "github.com/ExocoreNetwork/exocore/x/avs_task/types";

Expand Down
10 changes: 5 additions & 5 deletions proto/exocore/task/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import "gogoproto/gogo.proto";
option go_package = "github.com/ExocoreNetwork/exocore/x/avs_task/types";
// TaskContractInfo is the task info.
message TaskContractInfo {
string TaskContractAddress = 1;
string Name = 2;
string MetaInfo = 3;
string Status = 4;
string sourceCode = 5;
string task_contract_address = 1;
string name = 2;
string meta_info = 3;
string status = 4;
string source_code = 5;
}

// RegisterAVSTaskReq is the request to register a new task for avs.
Expand Down
27 changes: 0 additions & 27 deletions x/avs_task/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ package avs_task

import (
"context"
"encoding/json"
"fmt"

"github.com/ExocoreNetwork/exocore/x/avs_task/client/cli"
"github.com/ExocoreNetwork/exocore/x/avs_task/keeper"
"github.com/ExocoreNetwork/exocore/x/avs_task/types"
Expand Down Expand Up @@ -100,27 +97,3 @@ func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.V
//am.keeper.EndBlock(ctx, req)

Check failure on line 97 in x/avs_task/module.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

commentFormatting: put a space between `//` and comment text (gocritic)
return []abci.ValidatorUpdate{}
}

// DefaultGenesis returns a default GenesisState for the module, marshaled to json.RawMessage.
// The default GenesisState need to be defined by the module developer and is primarily used for
// testing
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(types.DefaultGenesis())
}

// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form
func (AppModuleBasic) ValidateGenesis(
cdc codec.JSONCodec,
_ client.TxEncodingConfig,
bz json.RawMessage,
) error {
var genState types.GenesisState
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
return fmt.Errorf(
"failed to unmarshal %s genesis state: %w",
types.ModuleName,
err,
)
}
return genState.Validate()
}
20 changes: 0 additions & 20 deletions x/avs_task/types/genesis.go

This file was deleted.

Loading

0 comments on commit 94b902b

Please sign in to comment.