Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserve Withdrawals #239

Merged
merged 19 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ func NewIxoApp(

// NOTE: we may consider parsing `appOpts` inside module constructors. For the moment
// we prefer to be more strict in what arguments the modules expect.
//var skipGenesisInvariants = cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants))
var skipGenesisInvariants = cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants))

// add keepers (for custom ixo modules)
Expand Down
84 changes: 74 additions & 10 deletions docs/core/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
- [bonds/query.proto](#bonds/query.proto)
- [QueryAlphaMaximumsRequest](#bonds.QueryAlphaMaximumsRequest)
- [QueryAlphaMaximumsResponse](#bonds.QueryAlphaMaximumsResponse)
- [QueryAvailableReserveRequest](#bonds.QueryAvailableReserveRequest)
- [QueryAvailableReserveResponse](#bonds.QueryAvailableReserveResponse)
- [QueryBatchRequest](#bonds.QueryBatchRequest)
- [QueryBatchResponse](#bonds.QueryBatchResponse)
- [QueryBondRequest](#bonds.QueryBondRequest)
Expand Down Expand Up @@ -64,6 +66,8 @@
- [MsgSwapResponse](#bonds.MsgSwapResponse)
- [MsgUpdateBondState](#bonds.MsgUpdateBondState)
- [MsgUpdateBondStateResponse](#bonds.MsgUpdateBondStateResponse)
- [MsgWithdrawReserve](#bonds.MsgWithdrawReserve)
- [MsgWithdrawReserveResponse](#bonds.MsgWithdrawReserveResponse)
- [MsgWithdrawShare](#bonds.MsgWithdrawShare)
- [MsgWithdrawShareResponse](#bonds.MsgWithdrawShareResponse)

Expand Down Expand Up @@ -271,14 +275,17 @@
| tx_fee_percentage | [string](#string) | | |
| exit_fee_percentage | [string](#string) | | |
| fee_address | [string](#string) | | |
| reserve_withdrawal_address | [string](#string) | | |
| max_supply | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |
| order_quantity_limits | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
| sanity_rate | [string](#string) | | |
| sanity_margin_percentage | [string](#string) | | |
| current_supply | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |
| current_reserve | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
| available_reserve | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
| current_outcome_payment_reserve | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
| allow_sells | [bool](#bool) | | |
| allow_reserve_withdrawals | [bool](#bool) | | |
| alpha_bond | [bool](#bool) | | |
| batch_blocks | [string](#string) | | |
| outcome_payment | [string](#string) | | |
Expand Down Expand Up @@ -466,6 +473,36 @@ GenesisState defines the bonds module's genesis state.



<a name="bonds.QueryAvailableReserveRequest"></a>

### QueryAvailableReserveRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| bond_did | [string](#string) | | |






<a name="bonds.QueryAvailableReserveResponse"></a>

### QueryAvailableReserveResponse



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| available_reserve | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |






<a name="bonds.QueryBatchRequest"></a>

### QueryBatchRequest
Expand Down Expand Up @@ -554,8 +591,7 @@ GenesisState defines the bonds module&#39;s genesis state.
<a name="bonds.QueryBondsRequest"></a>

### QueryBondsRequest
Request/response types from old x/bonds/client/cli/query.go and
x/bonds/client/rest/query.go




Expand Down Expand Up @@ -849,6 +885,7 @@ and check all cases in NewQuerier(). REST endpoints taken from bonds/client/rest
| LastBatch | [QueryLastBatchRequest](#bonds.QueryLastBatchRequest) | [QueryLastBatchResponse](#bonds.QueryLastBatchResponse) | |
| CurrentPrice | [QueryCurrentPriceRequest](#bonds.QueryCurrentPriceRequest) | [QueryCurrentPriceResponse](#bonds.QueryCurrentPriceResponse) | |
| CurrentReserve | [QueryCurrentReserveRequest](#bonds.QueryCurrentReserveRequest) | [QueryCurrentReserveResponse](#bonds.QueryCurrentReserveResponse) | |
| AvailableReserve | [QueryAvailableReserveRequest](#bonds.QueryAvailableReserveRequest) | [QueryAvailableReserveResponse](#bonds.QueryAvailableReserveResponse) | |
| CustomPrice | [QueryCustomPriceRequest](#bonds.QueryCustomPriceRequest) | [QueryCustomPriceResponse](#bonds.QueryCustomPriceResponse) | |
| BuyPrice | [QueryBuyPriceRequest](#bonds.QueryBuyPriceRequest) | [QueryBuyPriceResponse](#bonds.QueryBuyPriceResponse) | |
| SellReturn | [QuerySellReturnRequest](#bonds.QuerySellReturnRequest) | [QuerySellReturnResponse](#bonds.QuerySellReturnResponse) | |
Expand Down Expand Up @@ -914,11 +951,13 @@ and check all cases in NewQuerier(). REST endpoints taken from bonds/client/rest
| tx_fee_percentage | [string](#string) | | |
| exit_fee_percentage | [string](#string) | | |
| fee_address | [string](#string) | | |
| reserve_withdrawal_address | [string](#string) | | |
| max_supply | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |
| order_quantity_limits | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
| sanity_rate | [string](#string) | | |
| sanity_margin_percentage | [string](#string) | | |
| allow_sells | [bool](#bool) | | |
| allow_reserve_withdrawals | [bool](#bool) | | |
| alpha_bond | [bool](#bool) | | |
| batch_blocks | [string](#string) | | |
| outcome_payment | [string](#string) | | |
Expand Down Expand Up @@ -1105,6 +1144,33 @@ and check all cases in NewQuerier(). REST endpoints taken from bonds/client/rest



<a name="bonds.MsgWithdrawReserve"></a>

### MsgWithdrawReserve



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| withdrawer_did | [string](#string) | | |
| amount | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | |
| bond_did | [string](#string) | | |






<a name="bonds.MsgWithdrawReserveResponse"></a>

### MsgWithdrawReserveResponse







<a name="bonds.MsgWithdrawShare"></a>

### MsgWithdrawShare
Expand Down Expand Up @@ -1154,6 +1220,7 @@ check all cases in NewHandler().
| Swap | [MsgSwap](#bonds.MsgSwap) | [MsgSwapResponse](#bonds.MsgSwapResponse) | |
| MakeOutcomePayment | [MsgMakeOutcomePayment](#bonds.MsgMakeOutcomePayment) | [MsgMakeOutcomePaymentResponse](#bonds.MsgMakeOutcomePaymentResponse) | |
| WithdrawShare | [MsgWithdrawShare](#bonds.MsgWithdrawShare) | [MsgWithdrawShareResponse](#bonds.MsgWithdrawShareResponse) | |
| WithdrawReserve | [MsgWithdrawReserve](#bonds.MsgWithdrawReserve) | [MsgWithdrawReserveResponse](#bonds.MsgWithdrawReserveResponse) | |



Expand Down Expand Up @@ -1378,7 +1445,7 @@ GenesisState defines the did module&#39;s genesis state.
<a name="did.QueryAllDidDocsRequest"></a>

### QueryAllDidDocsRequest
no input needed




Expand All @@ -1403,7 +1470,7 @@ no input needed
<a name="did.QueryAllDidsRequest"></a>

### QueryAllDidsRequest
no input needed




Expand All @@ -1428,8 +1495,7 @@ no input needed
<a name="did.QueryDidDocRequest"></a>

### QueryDidDocRequest
Request/response types from old x/did/client/cli/query.go and
x/did/client/rest/query.go



| Field | Type | Label | Description |
Expand Down Expand Up @@ -1466,8 +1532,7 @@ x/did/client/rest/query.go

### Query
To get a list of all module queries, go to your module&#39;s keeper/querier.go
and check all cases in NewQuerier(). REST endpoints taken from previous
did/client/rest/query.go
and check all cases in NewQuerier(). REST endpoints taken from did/client/rest/query.go

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
Expand Down Expand Up @@ -1889,8 +1954,7 @@ GenesisState defines the payments module&#39;s genesis state.

### Query
To get a list of all module queries, go to your module&#39;s keeper/querier.go
and check all cases in NewQuerier(). REST endpoints taken from previous
payments/client/rest/query.go
and check all cases in NewQuerier(). REST endpoints taken from payments/client/rest/query.go

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ require (
github.com/tendermint/go-amino v0.16.0
github.com/tendermint/tendermint v0.34.11 //latest
github.com/tendermint/tm-db v0.6.4
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.26.0
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
google.golang.org/genproto v0.0.0-20210729151513-df9385d47c1b
google.golang.org/grpc v1.39.0
google.golang.org/protobuf v1.27.1
)

replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.2-alpha.regen.4
Expand Down
16 changes: 9 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,8 @@ golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPh
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
Expand Down Expand Up @@ -740,8 +740,9 @@ golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand Down Expand Up @@ -780,7 +781,7 @@ golang.org/x/tools v0.0.0-20200110213125-a7a6caa82ab2/go.mod h1:TB2adYChydJhpapK
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down Expand Up @@ -815,8 +816,8 @@ google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6D
google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
google.golang.org/genproto v0.0.0-20210114201628-6edceaf6022f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced h1:c5geK1iMU3cDKtFrCVQIcjR3W+JOZMuhIyICMCTbtus=
google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24=
google.golang.org/genproto v0.0.0-20210729151513-df9385d47c1b h1:4xoALQmXxqVdDdLimpPyPeDdsJzo+nFTJw9euAMpqgM=
google.golang.org/genproto v0.0.0-20210729151513-df9385d47c1b/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o=
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
Expand All @@ -830,8 +831,9 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
29 changes: 16 additions & 13 deletions proto/bonds/bonds.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,22 @@ message Bond {
string tx_fee_percentage = 9 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"tx_fee_percentage\""];
string exit_fee_percentage = 10 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"exit_fee_percentage\""];
string fee_address = 11 [(gogoproto.moretags) = "yaml:\"fee_address\""];
cosmos.base.v1beta1.Coin max_supply = 12 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"max_supply\""];
repeated cosmos.base.v1beta1.Coin order_quantity_limits = 13 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"order_quantity_limits\""];
string sanity_rate = 14 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"sanity_rate\""];
string sanity_margin_percentage = 15 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"sanity_margin_percentage\""];
cosmos.base.v1beta1.Coin current_supply = 16 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"current_supply\""];
repeated cosmos.base.v1beta1.Coin current_reserve = 17 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"current_reserve\""];
repeated cosmos.base.v1beta1.Coin current_outcome_payment_reserve = 18 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"current_outcome_payment_reserve\""];
bool allow_sells = 19 [(gogoproto.moretags) = "yaml:\"allow_sells\""];
bool alpha_bond = 20 [(gogoproto.moretags) = "yaml:\"alpha_bond\""];
string batch_blocks = 21 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"batch_blocks\""];
string outcome_payment = 22 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outcome_payment\""];
string state = 23 [(gogoproto.moretags) = "yaml:\"state\""];
string bond_did = 24 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string reserve_withdrawal_address = 12 [(gogoproto.moretags) = "yaml:\"reserve_withdrawal_address\""];
cosmos.base.v1beta1.Coin max_supply = 13 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"max_supply\""];
repeated cosmos.base.v1beta1.Coin order_quantity_limits = 14 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"order_quantity_limits\""];
string sanity_rate = 15 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"sanity_rate\""];
string sanity_margin_percentage = 16 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"sanity_margin_percentage\""];
cosmos.base.v1beta1.Coin current_supply = 17 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"current_supply\""];
repeated cosmos.base.v1beta1.Coin current_reserve = 18 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"current_reserve\""];
repeated cosmos.base.v1beta1.Coin available_reserve = 19 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"available_reserve\""];
repeated cosmos.base.v1beta1.Coin current_outcome_payment_reserve = 20 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"current_outcome_payment_reserve\""];
bool allow_sells = 21 [(gogoproto.moretags) = "yaml:\"allow_sells\""];
bool allow_reserve_withdrawals = 22 [(gogoproto.moretags) = "yaml:\"allow_reserve_withdrawals\""];
bool alpha_bond = 23 [(gogoproto.moretags) = "yaml:\"alpha_bond\""];
string batch_blocks = 24 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"batch_blocks\""];
string outcome_payment = 25 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outcome_payment\""];
string state = 26 [(gogoproto.moretags) = "yaml:\"state\""];
string bond_did = 27 [(gogoproto.moretags) = "yaml:\"bond_did\""];
}

message BaseOrder {
Expand Down
1 change: 1 addition & 0 deletions proto/bonds/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "bonds/bonds.proto";

option go_package = "github.com/ixofoundation/ixo-blockchain/x/bonds/types";

// GenesisState defines the bonds module's genesis state.
message GenesisState {
repeated Bond bonds = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"bonds\""];
repeated Batch batches = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"batches\""];
Expand Down
Loading