-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from neutron-org/feat/choose-cron-blocker-2
Cron improvements
- Loading branch information
Showing
30 changed files
with
2,702 additions
and
162 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
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,32 @@ | ||
syntax = "proto3"; | ||
package neutron.cron.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/neutron-org/neutron/v4/x/cron/types/v1"; | ||
|
||
// Defines the schedule for execution | ||
message Schedule { | ||
// Name of schedule | ||
string name = 1; | ||
// Period in blocks | ||
uint64 period = 2; | ||
// Msgs that will be executed every certain number of blocks, specified in the `period` field | ||
repeated MsgExecuteContract msgs = 3 [(gogoproto.nullable) = false]; | ||
// Last execution's block height | ||
uint64 last_execute_height = 4; | ||
} | ||
|
||
// Defines the contract and the message to pass | ||
message MsgExecuteContract { | ||
// The address of the smart contract | ||
string contract = 1; | ||
// JSON encoded message to be passed to the contract | ||
string msg = 2; | ||
} | ||
|
||
// Defines the number of current schedules | ||
message ScheduleCount { | ||
// The number of current schedules | ||
int32 count = 1; | ||
} |
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,44 @@ | ||
syntax = "proto3"; | ||
|
||
package ibc.core.client.v1; | ||
|
||
option go_package = "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"; | ||
|
||
import "ibc/core/client/v1/client.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
// GenesisState defines the ibc client submodule's genesis state. | ||
message GenesisState { | ||
// client states with their corresponding identifiers | ||
repeated IdentifiedClientState clients = 1 | ||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "IdentifiedClientStates"]; | ||
// consensus states from each client | ||
repeated ClientConsensusStates clients_consensus = 2 | ||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "ClientsConsensusStates"]; | ||
// metadata from each client | ||
repeated IdentifiedGenesisMetadata clients_metadata = 3 [(gogoproto.nullable) = false]; | ||
Params params = 4 [(gogoproto.nullable) = false]; | ||
// Deprecated: create_localhost has been deprecated. | ||
// The localhost client is automatically created at genesis. | ||
bool create_localhost = 5 [deprecated = true]; | ||
// the sequence for the next generated client identifier | ||
uint64 next_client_sequence = 6; | ||
} | ||
|
||
// GenesisMetadata defines the genesis type for metadata that clients may return | ||
// with ExportMetadata | ||
message GenesisMetadata { | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
// store key of metadata without clientID-prefix | ||
bytes key = 1; | ||
// metadata value | ||
bytes value = 2; | ||
} | ||
|
||
// IdentifiedGenesisMetadata has the client metadata with the corresponding | ||
// client id. | ||
message IdentifiedGenesisMetadata { | ||
string client_id = 1; | ||
repeated GenesisMetadata client_metadata = 2 [(gogoproto.nullable) = false]; | ||
} |
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 @@ | ||
syntax = "proto3"; | ||
|
||
package ibc.core.commitment.v1; | ||
|
||
option go_package = "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/ics23/v1/proofs.proto"; | ||
|
||
// MerkleRoot defines a merkle root hash. | ||
// In the Cosmos SDK, the AppHash of a block header becomes the root. | ||
message MerkleRoot { | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
bytes hash = 1; | ||
} | ||
|
||
// MerklePrefix is merkle path prefixed to the key. | ||
// The constructed key from the Path and the key will be append(Path.KeyPath, | ||
// append(Path.KeyPrefix, key...)) | ||
message MerklePrefix { | ||
bytes key_prefix = 1; | ||
} | ||
|
||
// MerklePath is the path used to verify commitment proofs, which can be an | ||
// arbitrary structured object (defined by a commitment type). | ||
// MerklePath is represented from root-to-leaf | ||
message MerklePath { | ||
repeated string key_path = 1; | ||
} | ||
|
||
// MerkleProof is a wrapper type over a chain of CommitmentProofs. | ||
// It demonstrates membership or non-membership for an element or set of | ||
// elements, verifiable in conjunction with a known commitment root. Proofs | ||
// should be succinct. | ||
// MerkleProofs are ordered from leaf-to-root | ||
message MerkleProof { | ||
repeated cosmos.ics23.v1.CommitmentProof proofs = 1; | ||
} |
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.