Skip to content

Commit

Permalink
Remove param subspace
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Jun 25, 2024
1 parent d3374c9 commit 0d21ad5
Show file tree
Hide file tree
Showing 9 changed files with 613 additions and 242 deletions.
245 changes: 58 additions & 187 deletions docs/proto/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,104 +4,54 @@

## Table of Contents

- [osmosis/meshsecurity/v1beta1/meshsecurity.proto](#osmosis/meshsecurity/v1beta1/meshsecurity.proto)
- [Params](#osmosis.meshsecurity.v1beta1.Params)
- [VirtualStakingMaxCapInfo](#osmosis.meshsecurity.v1beta1.VirtualStakingMaxCapInfo)
- [osmosis/meshsecurityprovider/genesis.proto](#osmosis/meshsecurityprovider/genesis.proto)
- [GenesisState](#osmosis.meshsecurityprovider.GenesisState)
- [Params](#osmosis.meshsecurityprovider.Params)

- [osmosis/meshsecurity/v1beta1/genesis.proto](#osmosis/meshsecurity/v1beta1/genesis.proto)
- [GenesisState](#osmosis.meshsecurity.v1beta1.GenesisState)
- [osmosis/meshsecurityprovider/query.proto](#osmosis/meshsecurityprovider/query.proto)
- [ParamsRequest](#osmosis.meshsecurityprovider.ParamsRequest)
- [ParamsResponse](#osmosis.meshsecurityprovider.ParamsResponse)

- [osmosis/meshsecurity/v1beta1/query.proto](#osmosis/meshsecurity/v1beta1/query.proto)
- [QueryParamsRequest](#osmosis.meshsecurity.v1beta1.QueryParamsRequest)
- [QueryParamsResponse](#osmosis.meshsecurity.v1beta1.QueryParamsResponse)
- [QueryVirtualStakingMaxCapLimitRequest](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitRequest)
- [QueryVirtualStakingMaxCapLimitResponse](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitResponse)
- [QueryVirtualStakingMaxCapLimitsRequest](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitsRequest)
- [QueryVirtualStakingMaxCapLimitsResponse](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitsResponse)
- [Query](#osmosis.meshsecurityprovider.Query)

- [Query](#osmosis.meshsecurity.v1beta1.Query)
- [osmosis/meshsecurityprovider/tx.proto](#osmosis/meshsecurityprovider/tx.proto)
- [MsgTest](#osmosis.meshsecurityprovider.MsgTest)
- [MsgTestResponse](#osmosis.meshsecurityprovider.MsgTestResponse)
- [MsgUpdateParams](#osmosis.meshsecurityprovider.MsgUpdateParams)
- [MsgUpdateParamsResponse](#osmosis.meshsecurityprovider.MsgUpdateParamsResponse)

- [osmosis/meshsecurity/v1beta1/scheduler.proto](#osmosis/meshsecurity/v1beta1/scheduler.proto)
- [ScheduledWork](#osmosis.meshsecurity.v1beta1.ScheduledWork)
- [ValidatorAddress](#osmosis.meshsecurity.v1beta1.ValidatorAddress)

- [osmosis/meshsecurity/v1beta1/tx.proto](#osmosis/meshsecurity/v1beta1/tx.proto)
- [MsgSetVirtualStakingMaxCap](#osmosis.meshsecurity.v1beta1.MsgSetVirtualStakingMaxCap)
- [MsgSetVirtualStakingMaxCapResponse](#osmosis.meshsecurity.v1beta1.MsgSetVirtualStakingMaxCapResponse)

- [Msg](#osmosis.meshsecurity.v1beta1.Msg)
- [Msg](#osmosis.meshsecurityprovider.Msg)

- [Scalar Value Types](#scalar-value-types)



<a name="osmosis/meshsecurity/v1beta1/meshsecurity.proto"></a>
<a name="osmosis/meshsecurityprovider/genesis.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## osmosis/meshsecurity/v1beta1/meshsecurity.proto



<a name="osmosis.meshsecurity.v1beta1.Params"></a>

### Params
Params defines the parameters for the x/meshsecurity module.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `total_contracts_max_cap` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | TotalContractsMaxCap is the maximum that the sum of all contract max caps must not exceed |
| `epoch_length` | [uint32](#uint32) | | Epoch length is the number of blocks that defines an epoch |
| `max_gas_end_blocker` | [uint32](#uint32) | | MaxGasEndBlocker defines the maximum gas that can be spent in a contract sudo callback |

## osmosis/meshsecurityprovider/genesis.proto



<a name="osmosis.meshsecurityprovider.GenesisState"></a>


<a name="osmosis.meshsecurity.v1beta1.VirtualStakingMaxCapInfo"></a>

### VirtualStakingMaxCapInfo
VirtualStakingMaxCapInfo stores info about
virtual staking max cap
### GenesisState
GenesisState defines the meshsecurityprovider module's genesis state.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `contract` | [string](#string) | | Contract is the address of the contract |
| `delegated` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | Delegated is the total amount currently delegated |
| `cap` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | Cap is the current max cap limit |



| `params` | [Params](#osmosis.meshsecurityprovider.Params) | | params is the container of meshsecurityprovider parameters. |


<!-- end messages -->

<!-- end enums -->

<!-- end HasExtensions -->

<!-- end services -->


<a name="osmosis.meshsecurityprovider.Params"></a>

<a name="osmosis/meshsecurity/v1beta1/genesis.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## osmosis/meshsecurity/v1beta1/genesis.proto



<a name="osmosis.meshsecurity.v1beta1.GenesisState"></a>

### GenesisState
GenesisState defines meshsecurity module's genesis state.

### Params

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `params` | [Params](#osmosis.meshsecurity.v1beta1.Params) | | |



Expand All @@ -117,94 +67,32 @@ GenesisState defines meshsecurity module's genesis state.



<a name="osmosis/meshsecurity/v1beta1/query.proto"></a>
<a name="osmosis/meshsecurityprovider/query.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## osmosis/meshsecurity/v1beta1/query.proto



<a name="osmosis.meshsecurity.v1beta1.QueryParamsRequest"></a>

### QueryParamsRequest
QueryParamsRequest is the request type for the
Query/Params RPC method






<a name="osmosis.meshsecurity.v1beta1.QueryParamsResponse"></a>

### QueryParamsResponse
QueryParamsResponse is the response type for the
Query/Params RPC method


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `params` | [Params](#osmosis.meshsecurity.v1beta1.Params) | | |




## osmosis/meshsecurityprovider/query.proto


<a name="osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitRequest"></a>

### QueryVirtualStakingMaxCapLimitRequest
QueryVirtualStakingMaxCapLimitRequest is the request type for the
Query/VirtualStakingMaxCapLimit RPC method
<a name="osmosis.meshsecurityprovider.ParamsRequest"></a>

### ParamsRequest
=============================== Params

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `address` | [string](#string) | | Address is the address of the contract to query |





<a name="osmosis.meshsecurityprovider.ParamsResponse"></a>

<a name="osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitResponse"></a>
### ParamsResponse

### QueryVirtualStakingMaxCapLimitResponse
QueryVirtualStakingMaxCapLimitResponse is the response type for the
Query/VirtualStakingMaxCapLimit RPC method


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `delegated` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |
| `cap` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |






<a name="osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitsRequest"></a>

### QueryVirtualStakingMaxCapLimitsRequest
QueryVirtualStakingMaxCapLimitsRequest is the request type for the
Query/VirtualStakingMaxCapLimits RPC method






<a name="osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitsResponse"></a>

### QueryVirtualStakingMaxCapLimitsResponse
QueryVirtualStakingMaxCapLimitsResponse is the response type for the
Query/VirtualStakingMaxCapLimits RPC method


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `max_cap_infos` | [VirtualStakingMaxCapInfo](#osmosis.meshsecurity.v1beta1.VirtualStakingMaxCapInfo) | repeated | |
| `params` | [Params](#osmosis.meshsecurityprovider.Params) | | |



Expand All @@ -217,96 +105,78 @@ Query/VirtualStakingMaxCapLimits RPC method
<!-- end HasExtensions -->


<a name="osmosis.meshsecurity.v1beta1.Query"></a>
<a name="osmosis.meshsecurityprovider.Query"></a>

### Query
Query provides defines the gRPC querier service


| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `VirtualStakingMaxCapLimit` | [QueryVirtualStakingMaxCapLimitRequest](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitRequest) | [QueryVirtualStakingMaxCapLimitResponse](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitResponse) | VirtualStakingMaxCapLimit gets max cap limit for the given contract | GET|/osmosis/meshsecurity/v1beta1/max_cap_limit/{address}|
| `VirtualStakingMaxCapLimits` | [QueryVirtualStakingMaxCapLimitsRequest](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitsRequest) | [QueryVirtualStakingMaxCapLimitsResponse](#osmosis.meshsecurity.v1beta1.QueryVirtualStakingMaxCapLimitsResponse) | VirtualStakingMaxCapLimits gets max cap limits | GET|/osmosis/meshsecurity/v1beta1/max_cap_limits|
| `Params` | [QueryParamsRequest](#osmosis.meshsecurity.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#osmosis.meshsecurity.v1beta1.QueryParamsResponse) | Params queries the parameters of x/meshsecurity module. | GET|/osmosis/meshsecurity/v1beta1/params|
| `Params` | [ParamsRequest](#osmosis.meshsecurityprovider.ParamsRequest) | [ParamsResponse](#osmosis.meshsecurityprovider.ParamsResponse) | | GET|/osmosis/meshsecurityprovider/Params|

<!-- end services -->



<a name="osmosis/meshsecurity/v1beta1/scheduler.proto"></a>
<a name="osmosis/meshsecurityprovider/tx.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## osmosis/meshsecurity/v1beta1/scheduler.proto
## osmosis/meshsecurityprovider/tx.proto



<a name="osmosis.meshsecurity.v1beta1.ScheduledWork"></a>

### ScheduledWork
<a name="osmosis.meshsecurityprovider.MsgTest"></a>

### MsgTest
===================== MsgTest


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `repeat` | [bool](#bool) | | |


| `sender` | [string](#string) | | |




<a name="osmosis.meshsecurity.v1beta1.ValidatorAddress"></a>

### ValidatorAddress
ValidatorAddress payload data to be used with the scheduler

<a name="osmosis.meshsecurityprovider.MsgTestResponse"></a>

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `address` | [string](#string) | | Address is the ValAddress bech32 string |
### MsgTestResponse





<!-- end messages -->

<!-- end enums -->

<!-- end HasExtensions -->
<a name="osmosis.meshsecurityprovider.MsgUpdateParams"></a>

<!-- end services -->
### MsgUpdateParams
MsgUpdateParams is the Msg/UpdateParams request type.



<a name="osmosis/meshsecurity/v1beta1/tx.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## osmosis/meshsecurity/v1beta1/tx.proto



<a name="osmosis.meshsecurity.v1beta1.MsgSetVirtualStakingMaxCap"></a>

### MsgSetVirtualStakingMaxCap
MsgSetVirtualStakingMaxCap creates or updates a maximum cap limit for virtual
staking coins to the given contract.
Since: cosmos-sdk 0.47


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `authority` | [string](#string) | | Authority is the address that controls the module (defaults to x/gov unless overwritten). |
| `contract` | [string](#string) | | Contract is the address of the smart contract that is given permission do virtual staking which includes minting and burning staking tokens. |
| `max_cap` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | MaxCap is the limit up this the virtual tokens can be minted. |
| `authority` | [string](#string) | | authority is the address that controls the module (defaults to x/gov unless overwritten). |
| `params` | [Params](#osmosis.meshsecurityprovider.Params) | | params defines the x/staking parameters to update.

NOTE: All parameters must be supplied. |






<a name="osmosis.meshsecurity.v1beta1.MsgSetVirtualStakingMaxCapResponse"></a>
<a name="osmosis.meshsecurityprovider.MsgUpdateParamsResponse"></a>

### MsgSetVirtualStakingMaxCapResponse
MsgSetVirtualStakingMaxCap returns result data.
### MsgUpdateParamsResponse
MsgUpdateParamsResponse defines the response structure for executing a
MsgUpdateParams message.

Since: cosmos-sdk 0.47



Expand All @@ -319,14 +189,15 @@ MsgSetVirtualStakingMaxCap returns result data.
<!-- end HasExtensions -->


<a name="osmosis.meshsecurity.v1beta1.Msg"></a>
<a name="osmosis.meshsecurityprovider.Msg"></a>

### Msg
Msg defines the wasm Msg service.


| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `SetVirtualStakingMaxCap` | [MsgSetVirtualStakingMaxCap](#osmosis.meshsecurity.v1beta1.MsgSetVirtualStakingMaxCap) | [MsgSetVirtualStakingMaxCapResponse](#osmosis.meshsecurity.v1beta1.MsgSetVirtualStakingMaxCapResponse) | SetVirtualStakingMaxCap creates or updates a maximum cap limit for virtual staking coins | |
| `Test` | [MsgTest](#osmosis.meshsecurityprovider.MsgTest) | [MsgTestResponse](#osmosis.meshsecurityprovider.MsgTestResponse) | | |
| `UpdateParams` | [MsgUpdateParams](#osmosis.meshsecurityprovider.MsgUpdateParams) | [MsgUpdateParamsResponse](#osmosis.meshsecurityprovider.MsgUpdateParamsResponse) | UpdateParams defines an operation for updating the x/staking module parameters. Since: cosmos-sdk 0.47 | |

<!-- end services -->

Expand Down
7 changes: 2 additions & 5 deletions proto/osmosis/meshsecurity/v1beta1/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ option (gogoproto.goproto_getters_all) = false;
option (gogoproto.equal_all) = false;

//
message ScheduledWork {
bool repeat = 1;
}

message ScheduledWork { bool repeat = 1; }

// ValidatorAddress payload data to be used with the scheduler
message ValidatorAddress {
// Address is the ValAddress bech32 string
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
}
1 change: 0 additions & 1 deletion proto/osmosis/meshsecurityprovider/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package osmosis.meshsecurityprovider;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "osmosis/meshsecurityprovider/genesis.proto";
import "osmosis/meshsecurityprovider/tx.proto";

option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types";

Expand Down
Loading

0 comments on commit 0d21ad5

Please sign in to comment.