-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88d4599
commit a9393e7
Showing
4 changed files
with
59 additions
and
22 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,16 +1,20 @@ | ||
package contract | ||
|
||
// CustomQuery is a query request from a smart contract to the Babylon module | ||
// TODO: implement | ||
type CustomQuery struct { | ||
Test *TestQuery `json:"test,omitempty"` | ||
Params *ParamsQuery `json:"params,omitempty"` | ||
} | ||
|
||
type TestQuery struct { | ||
Placeholder string `json:"placeholder,omitempty"` | ||
} | ||
// ParamsQuery requests the current module parameters | ||
type ParamsQuery struct{} | ||
|
||
type TestResponse struct { | ||
// MaxCap is the max cap limit | ||
Placeholder2 string `json:"placeholder2"` | ||
// ParamsResponse contains the current module parameters | ||
type ParamsResponse struct { | ||
BabylonContractCodeId uint64 `json:"babylon_contract_code_id,omitempty"` | ||
BtcStakingContractCodeId uint64 `json:"btc_staking_contract_code_id,omitempty"` | ||
BtcFinalityContractCodeId uint64 `json:"btc_finality_contract_code_id,omitempty"` | ||
BabylonContractAddress string `json:"babylon_contract_address,omitempty"` | ||
BtcStakingContractAddress string `json:"btc_staking_contract_address,omitempty"` | ||
BtcFinalityContractAddress string `json:"btc_finality_contract_address,omitempty"` | ||
MaxGasBeginBlocker uint32 `json:"max_gas_begin_blocker,omitempty"` | ||
} |
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