generated from dymensionxyz/rollapp
-
Notifications
You must be signed in to change notification settings - Fork 21
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 #6 from AllInBetsCom/cron-fix
module refactored post review
- Loading branch information
Showing
28 changed files
with
233 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
syntax = "proto3"; | ||
package wasmrollapp.cron.v1beta1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/dymensionxyz/rollapp-wasm/x/cron/types"; | ||
|
||
message WhitelistedContract { | ||
// game_id is the unique identifier for the game | ||
uint64 game_id = 1; | ||
// security_address is the address of the security contract | ||
string security_address = 2; | ||
// contract_admin is the address of the contract admin | ||
string contract_admin = 3; | ||
// game_name is the name of the game | ||
string game_name = 4; | ||
// contract_address is the address of the contract | ||
string contract_address = 5; | ||
// game_type is the type of the game, single player or multiplayer or both | ||
uint64 game_type = 6; | ||
} |
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 |
---|---|---|
@@ -1,32 +1,34 @@ | ||
syntax = "proto3"; | ||
package wasmrollapp.cron.v1beta1; | ||
import "gogoproto/gogo.proto"; | ||
|
||
import "cosmos/msg/v1/msg.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
import "wasmrollapp/cron/v1beta1/params.proto"; | ||
|
||
|
||
option go_package = "github.com/dymensionxyz/rollapp-wasm/x/cron/types"; | ||
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
rpc RegisterContract(MsgRegisterContract) returns(MsgRegisterContractResponse); | ||
rpc DeRegisterContract(MsgDeRegisterContract) returns(MsgDeRegisterContractResponse); | ||
rpc DeregisterContract(MsgDeregisterContract) returns(MsgDeregisterContractResponse); | ||
} | ||
|
||
// MsgRegisterContract defines the Msg/RegisterContract request type. | ||
message MsgRegisterContract { | ||
// security_address is the address of the security module | ||
string security_address = 1; | ||
// game_name is the name of the game | ||
string game_name = 2; | ||
// contract_address is the address of the contract | ||
string contract_address = 3; | ||
uint64 game_type = 4; // 1 -> single, 2 -> multi, 3 -> both | ||
// game_type is the type of the game 1 -> single, 2 -> multi, 3 -> both | ||
uint64 game_type = 4; | ||
} | ||
|
||
// MsgRegisterContractResponse defines the Msg/RegisterContract response type. | ||
message MsgRegisterContractResponse {} | ||
|
||
message MsgDeRegisterContract { | ||
// MsgDeregisterContract defines the Msg/DeregisterContract request type. | ||
message MsgDeregisterContract { | ||
string security_address = 1; | ||
uint64 game_id = 2; | ||
} | ||
|
||
message MsgDeRegisterContractResponse {} | ||
// MsgDeregisterContractResponse defines the Msg/DeregisterContract response type. | ||
message MsgDeregisterContractResponse {} |
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
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
Oops, something went wrong.