diff --git a/CHANGELOG.md b/CHANGELOG.md index e0ba3318563..89b3e0ed7eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -104,6 +104,7 @@ Cosmwasm bindings have been added, to make swapping and creating these new token * Cosmwasm builds on M1 macs * [#1435](https://github.com/osmosis-labs/osmosis/pull/1435) `x/tokenfactory` create denom fee for spam resistance * [#1253](https://github.com/osmosis-labs/osmosis/pull/1253) Add a message to increase the duration of a bonded lock. +* [#1632](https://github.com/osmosis-labs/osmosis/pull/1632) augment SuperfluidDelegationsByDelegator query, return osmo equivilent is staked via superfluid ## [v8.0.0 - Emergency proposals upgrade](https://github.com/osmosis-labs/osmosis/releases/tag/v8.0.0) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index abb1a4f9445..d44afbaafdc 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -3247,6 +3247,7 @@ and OSMO tokens for superfluid staking | `delegator_address` | [string](#string) | | | | `validator_address` | [string](#string) | | | | `delegation_amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | | +| `equivalent_staked_amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | | @@ -3691,6 +3692,7 @@ assets | ----- | ---- | ----- | ----------- | | `superfluid_delegation_records` | [SuperfluidDelegationRecord](#osmosis.superfluid.SuperfluidDelegationRecord) | repeated | | | `total_delegated_coins` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | | +| `total_equivalent_staked_amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | | diff --git a/proto/osmosis/superfluid/query.proto b/proto/osmosis/superfluid/query.proto index eb0e510a884..b97c64f423e 100644 --- a/proto/osmosis/superfluid/query.proto +++ b/proto/osmosis/superfluid/query.proto @@ -187,6 +187,10 @@ message SuperfluidDelegationsByDelegatorResponse { (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; + cosmos.base.v1beta1.Coin total_equivalent_staked_amount = 3 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin" + ]; } message SuperfluidUndelegationsByDelegatorRequest { diff --git a/proto/osmosis/superfluid/superfluid.proto b/proto/osmosis/superfluid/superfluid.proto index a38a729d935..4c0bf01b5ea 100644 --- a/proto/osmosis/superfluid/superfluid.proto +++ b/proto/osmosis/superfluid/superfluid.proto @@ -61,6 +61,8 @@ message SuperfluidDelegationRecord { (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin" ]; + cosmos.base.v1beta1.Coin equivalent_staked_amount = 4 + [ (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin" ]; } message LockIdIntermediaryAccountConnection { diff --git a/x/superfluid/keeper/grpc_query.go b/x/superfluid/keeper/grpc_query.go index 7ebbde7787f..f91f5d8f867 100644 --- a/x/superfluid/keeper/grpc_query.go +++ b/x/superfluid/keeper/grpc_query.go @@ -11,6 +11,8 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + appparams "github.com/osmosis-labs/osmosis/v7/app/params" + lockuptypes "github.com/osmosis-labs/osmosis/v7/x/lockup/types" "github.com/osmosis-labs/osmosis/v7/x/superfluid/types" ) @@ -195,6 +197,7 @@ func (q Querier) SuperfluidDelegationsByDelegator(goCtx context.Context, req *ty res := types.SuperfluidDelegationsByDelegatorResponse{ SuperfluidDelegationRecords: []types.SuperfluidDelegationRecord{}, TotalDelegatedCoins: sdk.NewCoins(), + TotalEquivalentStakedAmount: sdk.NewCoin(appparams.BaseCoinUnit, sdk.ZeroInt()), } syntheticLocks := q.Keeper.lk.GetAllSyntheticLockupsByAddr(ctx, delAddr) @@ -213,17 +216,25 @@ func (q Querier) SuperfluidDelegationsByDelegator(goCtx context.Context, req *ty baseDenom := periodLock.Coins.GetDenomByIndex(0) lockedCoins := sdk.NewCoin(baseDenom, periodLock.GetCoins().AmountOf(baseDenom)) valAddr, err := ValidatorAddressFromSyntheticDenom(syntheticLock.SynthDenom) + + // Find how many osmo tokens this delegation is worth at superfluids current risk adjustment + // and twap of the denom. + equivalentAmount := q.Keeper.GetSuperfluidOSMOTokens(ctx, baseDenom, lockedCoins.Amount) + coin := sdk.NewCoin(appparams.BaseCoinUnit, equivalentAmount) + if err != nil { return nil, err } res.SuperfluidDelegationRecords = append(res.SuperfluidDelegationRecords, types.SuperfluidDelegationRecord{ - DelegatorAddress: req.DelegatorAddress, - ValidatorAddress: valAddr, - DelegationAmount: lockedCoins, + DelegatorAddress: req.DelegatorAddress, + ValidatorAddress: valAddr, + DelegationAmount: lockedCoins, + EquivalentStakedAmount: &coin, }, ) res.TotalDelegatedCoins = res.TotalDelegatedCoins.Add(lockedCoins) + res.TotalEquivalentStakedAmount = res.TotalEquivalentStakedAmount.Add(coin) } return &res, nil diff --git a/x/superfluid/keeper/grpc_query_test.go b/x/superfluid/keeper/grpc_query_test.go index b7fef4fca0b..abbf5c2abb5 100644 --- a/x/superfluid/keeper/grpc_query_test.go +++ b/x/superfluid/keeper/grpc_query_test.go @@ -77,12 +77,22 @@ func (suite *KeeperTestSuite) TestGRPCQuerySuperfluidDelegations() { res, err := suite.queryClient.SuperfluidDelegationsByDelegator(sdk.WrapSDKContext(suite.Ctx), &types.SuperfluidDelegationsByDelegatorRequest{ DelegatorAddress: delegator.String(), }) + + multiplier0 := suite.querier.Keeper.GetOsmoEquivalentMultiplier(suite.Ctx, denoms[0]) + multiplier1 := suite.querier.Keeper.GetOsmoEquivalentMultiplier(suite.Ctx, denoms[1]) + minRiskFactor := suite.querier.Keeper.GetParams(suite.Ctx).MinimumRiskFactor + + expectAmount0 := multiplier0.Mul(sdk.NewDec(1000000)).Sub(multiplier0.Mul(sdk.NewDec(1000000)).Mul(minRiskFactor)) + expectAmount1 := multiplier1.Mul(sdk.NewDec(1000000)).Sub(multiplier1.Mul(sdk.NewDec(1000000)).Mul(minRiskFactor)) + suite.Require().NoError(err) suite.Require().Len(res.SuperfluidDelegationRecords, 2) suite.Require().True(res.TotalDelegatedCoins.IsEqual(sdk.NewCoins( sdk.NewInt64Coin(denoms[0], 1000000), sdk.NewInt64Coin(denoms[1], 1000000), ))) + suite.Require().True(res.SuperfluidDelegationRecords[0].EquivalentStakedAmount.IsEqual(sdk.NewCoin("uosmo", expectAmount0.RoundInt()))) + suite.Require().True(res.SuperfluidDelegationRecords[1].EquivalentStakedAmount.IsEqual(sdk.NewCoin("uosmo", expectAmount1.RoundInt()))) } // for each validator denom pair, make sure they have 1 delegations diff --git a/x/superfluid/types/query.pb.go b/x/superfluid/types/query.pb.go index 1a05efa2151..23d8df10721 100644 --- a/x/superfluid/types/query.pb.go +++ b/x/superfluid/types/query.pb.go @@ -849,6 +849,7 @@ func (m *SuperfluidDelegationsByDelegatorRequest) GetDelegatorAddress() string { type SuperfluidDelegationsByDelegatorResponse struct { SuperfluidDelegationRecords []SuperfluidDelegationRecord `protobuf:"bytes,1,rep,name=superfluid_delegation_records,json=superfluidDelegationRecords,proto3" json:"superfluid_delegation_records"` TotalDelegatedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=total_delegated_coins,json=totalDelegatedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_delegated_coins"` + TotalEquivalentStakedAmount types.Coin `protobuf:"bytes,3,opt,name=total_equivalent_staked_amount,json=totalEquivalentStakedAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"total_equivalent_staked_amount"` } func (m *SuperfluidDelegationsByDelegatorResponse) Reset() { @@ -900,6 +901,13 @@ func (m *SuperfluidDelegationsByDelegatorResponse) GetTotalDelegatedCoins() gith return nil } +func (m *SuperfluidDelegationsByDelegatorResponse) GetTotalEquivalentStakedAmount() types.Coin { + if m != nil { + return m.TotalEquivalentStakedAmount + } + return types.Coin{} +} + type SuperfluidUndelegationsByDelegatorRequest struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` @@ -1259,102 +1267,105 @@ func init() { func init() { proto.RegisterFile("osmosis/superfluid/query.proto", fileDescriptor_e3d9448e4ed3943f) } var fileDescriptor_e3d9448e4ed3943f = []byte{ - // 1516 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xdd, 0x6f, 0x14, 0x55, - 0x14, 0xef, 0xdd, 0x42, 0x0b, 0x87, 0x04, 0xca, 0x05, 0x65, 0x19, 0x61, 0x0b, 0x53, 0x68, 0xd7, - 0x02, 0x33, 0x52, 0x2c, 0x54, 0x14, 0xc2, 0x96, 0x02, 0x36, 0x29, 0x16, 0x17, 0x5a, 0x12, 0x3f, - 0x32, 0x99, 0xdd, 0xb9, 0x2c, 0x13, 0x66, 0x67, 0xb6, 0x7b, 0x67, 0x2a, 0x1b, 0x42, 0x8c, 0x18, - 0x13, 0x89, 0x2f, 0x26, 0xfc, 0x03, 0xbe, 0x98, 0xa8, 0x0f, 0xc6, 0x3f, 0xc0, 0x17, 0xe3, 0x0b, - 0x89, 0x31, 0x21, 0xf1, 0xc5, 0xf8, 0x00, 0x06, 0x7c, 0xf5, 0xc5, 0x47, 0x7d, 0x31, 0x73, 0xef, - 0x9d, 0x8f, 0xed, 0xce, 0xcc, 0xee, 0x56, 0x84, 0xa7, 0x9d, 0xb9, 0xe7, 0xf3, 0x77, 0xce, 0xb9, - 0x67, 0xcf, 0x19, 0x28, 0x38, 0xb4, 0xee, 0x50, 0x93, 0xaa, 0xd4, 0x6b, 0x90, 0xe6, 0x35, 0xcb, - 0x33, 0x0d, 0x75, 0xc5, 0x23, 0xcd, 0x96, 0xd2, 0x68, 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, 0xbd, 0x1a, 0xd1, 0x4c, 0x23, 0x3f, 0xb8, 0x0f, - 0x15, 0x37, 0x94, 0x87, 0xd9, 0xfb, 0xbc, 0x81, 0xf3, 0x30, 0xec, 0x4b, 0x10, 0x4a, 0xf3, 0x1b, - 0xb8, 0x90, 0x78, 0x95, 0xaf, 0x43, 0xa1, 0x64, 0x59, 0x09, 0x3e, 0x04, 0x39, 0xf4, 0xeb, 0x23, - 0xaa, 0x6c, 0x11, 0x8f, 0x71, 0x85, 0x5f, 0x03, 0xc5, 0xbf, 0x06, 0x0a, 0xef, 0x14, 0xe2, 0x1a, - 0x28, 0x97, 0xf4, 0x5a, 0x50, 0x86, 0xe5, 0x98, 0xa4, 0xfc, 0x23, 0x82, 0xd1, 0x54, 0x53, 0x22, - 0x17, 0x57, 0x61, 0x93, 0x2e, 0xce, 0x44, 0x71, 0x4c, 0x67, 0x17, 0x47, 0x4a, 0xf0, 0x44, 0xb9, - 0x84, 0xca, 0xf0, 0x85, 0x36, 0x10, 0x39, 0x06, 0x62, 0xa2, 0x2b, 0x08, 0xee, 0x55, 0x1b, 0x8a, - 0xd3, 0x30, 0x76, 0xd6, 0xb1, 0x6d, 0x52, 0x75, 0x49, 0x92, 0xf1, 0x20, 0x68, 0xbb, 0x60, 0xd8, - 0x6f, 0x1a, 0x7e, 0x2a, 0x10, 0x4b, 0xc5, 0x90, 0xff, 0x3a, 0x6f, 0xc8, 0x1f, 0xc0, 0x81, 0x6c, - 0x79, 0x11, 0x89, 0x45, 0x18, 0x16, 0xce, 0x8b, 0x90, 0xaf, 0x2f, 0x10, 0xe5, 0x40, 0x8b, 0x3c, - 0x06, 0xfb, 0xaf, 0x38, 0xae, 0x6e, 0x45, 0x22, 0x73, 0xc4, 0x22, 0x35, 0xde, 0x7e, 0x83, 0xfb, - 0xfa, 0x15, 0x02, 0x39, 0x8b, 0x4b, 0x38, 0xf7, 0x11, 0x82, 0x11, 0xd7, 0x67, 0x8b, 0x11, 0x79, - 0x99, 0x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, 0xa3, 0x7d, 0x0f, 0x50, 0x78, 0x21, 0x09, 0xc7, 0x7a, - 0xe7, 0x40, 0xe9, 0xe2, 0x53, 0xd2, 0x26, 0x22, 0xf4, 0x1e, 0x8b, 0xd0, 0x32, 0xbe, 0x92, 0x15, - 0x21, 0x22, 0xd4, 0x6b, 0x59, 0x0d, 0x21, 0x21, 0x60, 0xb3, 0x8b, 0xf7, 0x1f, 0x17, 0xd0, 0x83, - 0xc7, 0x05, 0xf4, 0xfb, 0xe3, 0x02, 0xfa, 0xfc, 0x49, 0x61, 0xe0, 0xc1, 0x93, 0xc2, 0xc0, 0xaf, - 0x4f, 0x0a, 0x03, 0xef, 0x4c, 0xc7, 0x66, 0x41, 0x61, 0xf9, 0x88, 0xa5, 0x57, 0x68, 0xe8, 0xc6, - 0xea, 0x09, 0xf5, 0x66, 0xdc, 0x17, 0x36, 0x1e, 0x56, 0x86, 0xd8, 0x37, 0xe5, 0x63, 0xff, 0x06, - 0x00, 0x00, 0xff, 0xff, 0xd7, 0xc7, 0xdc, 0x64, 0xab, 0x17, 0x00, 0x00, + // 1554 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0x14, 0x55, + 0x1c, 0xef, 0x6b, 0xa1, 0x85, 0x2f, 0x09, 0x94, 0x07, 0xca, 0x32, 0xc0, 0x16, 0xa6, 0xd0, 0xae, + 0x05, 0x66, 0xa4, 0x58, 0xa8, 0x28, 0x84, 0x2d, 0x05, 0x6c, 0x52, 0x2c, 0x2e, 0xb4, 0x24, 0xfe, + 0xc8, 0x64, 0x76, 0xe7, 0xb1, 0x4c, 0x3a, 0x3b, 0xb3, 0xdd, 0x37, 0x53, 0xd9, 0x10, 0x62, 0xc4, + 0x98, 0x48, 0x3c, 0x68, 0xc2, 0x3f, 0xe0, 0x51, 0x3d, 0x18, 0x6f, 0x5e, 0xbc, 0x18, 0x2f, 0x24, + 0xc6, 0x84, 0xc4, 0x8b, 0xf1, 0x00, 0x06, 0xbc, 0x7a, 0xf1, 0xa8, 0x17, 0x33, 0xef, 0xbd, 0xf9, + 0xb1, 0xdd, 0x99, 0xd9, 0xdd, 0x8a, 0x70, 0xda, 0x99, 0xf7, 0xfd, 0xf9, 0xf9, 0xfe, 0x78, 0xf3, + 0xfd, 0x2e, 0xe4, 0x1d, 0x5a, 0x73, 0xa8, 0x49, 0x55, 0xea, 0xd5, 0x49, 0xe3, 0xba, 0xe5, 0x99, + 0x86, 0xba, 0xe2, 0x91, 0x46, 0x53, 0xa9, 0x37, 0x1c, 0xd7, 0xc1, 0x58, 0xd0, 0x95, 0x88, 0x2e, + 0xed, 0xac, 0x3a, 0x55, 0x87, 0x91, 0x55, 0xff, 0x89, 0x73, 0x4a, 0xf9, 0x0a, 0x63, 0x55, 0xcb, + 0x3a, 0x25, 0xea, 0xea, 0xb1, 0x32, 0x71, 0xf5, 0x63, 0x6a, 0xc5, 0x31, 0x6d, 0x41, 0xdf, 0x5b, + 0x75, 0x9c, 0xaa, 0x45, 0x54, 0xbd, 0x6e, 0xaa, 0xba, 0x6d, 0x3b, 0xae, 0xee, 0x9a, 0x8e, 0x4d, + 0x05, 0x75, 0x44, 0x50, 0xd9, 0x5b, 0xd9, 0xbb, 0xae, 0xba, 0x66, 0x8d, 0x50, 0x57, 0xaf, 0xd5, + 0x03, 0xf5, 0x6b, 0x19, 0x0c, 0xaf, 0xc1, 0x34, 0x08, 0xfa, 0x68, 0x02, 0x90, 0xe8, 0x31, 0xb0, + 0x92, 0xc0, 0x54, 0xd7, 0x1b, 0x7a, 0x2d, 0x70, 0x63, 0x77, 0xc0, 0x60, 0x39, 0x95, 0x65, 0xaf, + 0xce, 0x7e, 0x04, 0x69, 0x22, 0x8e, 0x8f, 0x85, 0x28, 0x44, 0x59, 0xd7, 0xab, 0xa6, 0x1d, 0x73, + 0x46, 0xde, 0x09, 0xf8, 0x2d, 0x9f, 0xe3,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38, 0x0d, + 0xa3, 0x94, 0x73, 0x52, 0xe8, 0xf2, 0x5d, 0x04, 0x07, 0x22, 0x7c, 0x73, 0xb6, 0x4b, 0x1a, 0x35, + 0x62, 0x98, 0x7a, 0xa3, 0x59, 0xac, 0x54, 0x1c, 0xcf, 0x76, 0xe7, 0xec, 0xeb, 0x4e, 0x32, 0x12, + 0xbc, 0x1b, 0x36, 0xad, 0xea, 0x96, 0xa6, 0x1b, 0x46, 0x23, 0xd7, 0xcf, 0x08, 0x43, 0xab, 0xba, + 0x55, 0x34, 0x8c, 0x86, 0x4f, 0xaa, 0xea, 0x5e, 0x95, 0x68, 0xa6, 0x91, 0x1b, 0xd8, 0x8f, 0x0a, + 0x1b, 0x4a, 0x43, 0xec, 0x7d, 0xce, 0xc0, 0x39, 0x18, 0xf2, 0x25, 0x08, 0xa5, 0xb9, 0x0d, 0x5c, + 0x48, 0xbc, 0xca, 0x37, 0x20, 0x5f, 0xb4, 0xac, 0x04, 0x1f, 0x82, 0x1c, 0xfa, 0xf5, 0x11, 0x55, + 0xb6, 0x88, 0xc7, 0x98, 0xc2, 0xdb, 0x40, 0xf1, 0xdb, 0x40, 0xe1, 0x37, 0x85, 0x68, 0x03, 0xe5, + 0xb2, 0x5e, 0x0d, 0xca, 0xb0, 0x14, 0x93, 0x94, 0x7f, 0x44, 0x30, 0x92, 0x6a, 0x4a, 0xe4, 0xe2, + 0x1a, 0x6c, 0xd2, 0xc5, 0x99, 0x28, 0x8e, 0xa9, 0xec, 0xe2, 0x48, 0x09, 0x9e, 0x28, 0x97, 0x50, + 0x19, 0xbe, 0xd8, 0x02, 0xa2, 0x9f, 0x81, 0x18, 0xef, 0x08, 0x82, 0x7b, 0xd5, 0x82, 0xe2, 0x0c, + 0x8c, 0x9e, 0x73, 0x6c, 0x9b, 0x54, 0x5c, 0x92, 0x64, 0x3c, 0x08, 0xda, 0x2e, 0x18, 0xf2, 0x2f, + 0x0d, 0x3f, 0x15, 0x88, 0xa5, 0x62, 0x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, 0xfc, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0xbf, 0x9a, 0x5a, 0x3d, 0x18, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2487,6 +2498,16 @@ func (m *SuperfluidDelegationsByDelegatorResponse) MarshalToSizedBuffer(dAtA []b _ = i var l int _ = l + { + size, err := m.TotalEquivalentStakedAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a if len(m.TotalDelegatedCoins) > 0 { for iNdEx := len(m.TotalDelegatedCoins) - 1; iNdEx >= 0; iNdEx-- { { @@ -3042,6 +3063,8 @@ func (m *SuperfluidDelegationsByDelegatorResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) } } + l = m.TotalEquivalentStakedAmount.Size() + n += 1 + l + sovQuery(uint64(l)) return n } @@ -4814,6 +4837,39 @@ func (m *SuperfluidDelegationsByDelegatorResponse) Unmarshal(dAtA []byte) error return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalEquivalentStakedAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalEquivalentStakedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/superfluid/types/superfluid.pb.go b/x/superfluid/types/superfluid.pb.go index 8aa6c2c5314..284cd8b2c21 100644 --- a/x/superfluid/types/superfluid.pb.go +++ b/x/superfluid/types/superfluid.pb.go @@ -217,9 +217,10 @@ func (m *OsmoEquivalentMultiplierRecord) GetDenom() string { // SuperfluidDelegationRecord takes the role of intermediary between LP token // and OSMO tokens for superfluid staking type SuperfluidDelegationRecord struct { - DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` - ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` - DelegationAmount types.Coin `protobuf:"bytes,3,opt,name=delegation_amount,json=delegationAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"delegation_amount"` + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + DelegationAmount types.Coin `protobuf:"bytes,3,opt,name=delegation_amount,json=delegationAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"delegation_amount"` + EquivalentStakedAmount *types.Coin `protobuf:"bytes,4,opt,name=equivalent_staked_amount,json=equivalentStakedAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"equivalent_staked_amount,omitempty"` } func (m *SuperfluidDelegationRecord) Reset() { *m = SuperfluidDelegationRecord{} } @@ -276,6 +277,13 @@ func (m *SuperfluidDelegationRecord) GetDelegationAmount() types.Coin { return types.Coin{} } +func (m *SuperfluidDelegationRecord) GetEquivalentStakedAmount() *types.Coin { + if m != nil { + return m.EquivalentStakedAmount + } + return nil +} + type LockIdIntermediaryAccountConnection struct { LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` IntermediaryAccount string `protobuf:"bytes,2,opt,name=intermediary_account,json=intermediaryAccount,proto3" json:"intermediary_account,omitempty"` @@ -387,49 +395,51 @@ func init() { } var fileDescriptor_79d3c29d82dbb734 = []byte{ - // 664 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x4f, 0xd4, 0x4e, - 0x14, 0x6f, 0x59, 0xbe, 0xc0, 0x0e, 0xdf, 0xe8, 0x52, 0x88, 0xc2, 0x26, 0xb4, 0x58, 0x12, 0xd9, - 0x60, 0x68, 0x03, 0xc6, 0x98, 0x70, 0x5b, 0x40, 0x13, 0x12, 0x04, 0x52, 0x34, 0x26, 0x5c, 0x36, - 0xd3, 0xce, 0xd0, 0x9d, 0xec, 0xb4, 0x53, 0x3a, 0xd3, 0xea, 0xfe, 0x07, 0x1c, 0xfd, 0x13, 0x48, - 0xbc, 0xf9, 0x47, 0x78, 0xe6, 0xc8, 0xd1, 0x78, 0x40, 0x03, 0x17, 0x6f, 0x26, 0xfe, 0x05, 0xa6, - 0xd3, 0x6e, 0xb7, 0xc2, 0x9a, 0x78, 0xea, 0x7b, 0xef, 0xf3, 0xde, 0xe7, 0xfd, 0x9c, 0x82, 0x65, - 0xc6, 0x03, 0xc6, 0x09, 0xb7, 0x79, 0x12, 0xe1, 0xf8, 0x84, 0x26, 0x04, 0x55, 0x44, 0x2b, 0x8a, - 0x99, 0x60, 0x9a, 0x56, 0x38, 0x59, 0x43, 0xa4, 0x39, 0xe7, 0x33, 0x9f, 0x49, 0xd8, 0xce, 0xa4, - 0xdc, 0xb3, 0xa9, 0xfb, 0x8c, 0xf9, 0x14, 0xdb, 0x52, 0x73, 0x93, 0x13, 0x1b, 0x25, 0x31, 0x14, - 0x84, 0x85, 0x05, 0x6e, 0xdc, 0xc6, 0x05, 0x09, 0x30, 0x17, 0x30, 0x88, 0x06, 0x04, 0x9e, 0xcc, - 0x65, 0xbb, 0x90, 0x63, 0x3b, 0x5d, 0x77, 0xb1, 0x80, 0xeb, 0xb6, 0xc7, 0x48, 0x41, 0x60, 0xf6, - 0xc1, 0xfd, 0xa3, 0xb2, 0x88, 0x36, 0xe7, 0x58, 0x68, 0x73, 0xe0, 0x3f, 0x84, 0x43, 0x16, 0xcc, - 0xab, 0x4b, 0x6a, 0xab, 0xee, 0xe4, 0x8a, 0xf6, 0x12, 0x00, 0x98, 0xc1, 0x1d, 0xd1, 0x8f, 0xf0, - 0xfc, 0xd8, 0x92, 0xda, 0xba, 0xb7, 0xb1, 0x62, 0xdd, 0x6d, 0xc4, 0xba, 0x45, 0xf7, 0xba, 0x1f, - 0x61, 0xa7, 0x0e, 0x07, 0xe2, 0xe6, 0xd4, 0xd9, 0xb9, 0xa1, 0xfc, 0x38, 0x37, 0x54, 0xb3, 0x07, - 0x16, 0x87, 0xbe, 0xbb, 0xa1, 0xc0, 0x71, 0x80, 0x11, 0x81, 0x71, 0xbf, 0xed, 0x79, 0x2c, 0x09, - 0xff, 0x56, 0xc8, 0x02, 0x98, 0x4a, 0x21, 0xed, 0x40, 0x84, 0x62, 0x59, 0x46, 0xdd, 0x99, 0x4c, - 0x21, 0x6d, 0x23, 0x14, 0x67, 0x90, 0x0f, 0x13, 0x1f, 0x77, 0x08, 0x9a, 0xaf, 0x2d, 0xa9, 0xad, - 0x71, 0x67, 0x52, 0xea, 0xbb, 0xc8, 0xfc, 0xac, 0x02, 0xfd, 0x80, 0x07, 0xec, 0xc5, 0x69, 0x42, - 0x52, 0x48, 0x71, 0x28, 0x5e, 0x25, 0x54, 0x90, 0x88, 0x12, 0x1c, 0x3b, 0xd8, 0x63, 0x31, 0xd2, - 0x1e, 0x81, 0xff, 0x71, 0xc4, 0xbc, 0x6e, 0x27, 0x4c, 0x02, 0x17, 0xc7, 0x32, 0x6b, 0xcd, 0x99, - 0x96, 0xb6, 0x7d, 0x69, 0x1a, 0x56, 0x34, 0x56, 0xad, 0xc8, 0x03, 0x20, 0x28, 0xc9, 0x64, 0xe2, - 0xfa, 0xd6, 0xf6, 0xc5, 0x95, 0xa1, 0x7c, 0xbd, 0x32, 0x1e, 0xfb, 0x44, 0x74, 0x13, 0xd7, 0xf2, - 0x58, 0x60, 0x17, 0xab, 0xc8, 0x3f, 0x6b, 0x1c, 0xf5, 0xec, 0x6c, 0x96, 0xdc, 0xda, 0xc1, 0xde, - 0xaf, 0x2b, 0x63, 0xa6, 0x0f, 0x03, 0xba, 0x69, 0x0e, 0x99, 0x4c, 0xa7, 0x42, 0x6b, 0xfe, 0x54, - 0x41, 0x73, 0x38, 0xae, 0x1d, 0x4c, 0xb1, 0x2f, 0x0f, 0xa1, 0x28, 0xfe, 0x09, 0x98, 0x41, 0xb9, - 0x8d, 0xc5, 0x72, 0x36, 0x98, 0xf3, 0x62, 0x6e, 0x8d, 0x12, 0x68, 0xe7, 0xf6, 0xcc, 0x39, 0x85, - 0x94, 0xa0, 0x3f, 0x9c, 0xf3, 0x96, 0x1a, 0x25, 0x30, 0x70, 0x7e, 0x57, 0x32, 0x13, 0x16, 0x76, - 0x60, 0x90, 0xad, 0x46, 0x36, 0x39, 0xbd, 0xb1, 0x60, 0xe5, 0xbd, 0x58, 0xd9, 0x75, 0x59, 0xc5, - 0x75, 0x59, 0xdb, 0x8c, 0x84, 0x5b, 0x76, 0xd6, 0xff, 0xa7, 0x6f, 0xc6, 0xca, 0x3f, 0xf4, 0x9f, - 0x05, 0x94, 0x55, 0x12, 0x16, 0xb6, 0x65, 0x0e, 0xf3, 0x14, 0x2c, 0xef, 0x31, 0xaf, 0xb7, 0x3b, - 0xea, 0x36, 0xb6, 0x59, 0x18, 0x62, 0x2f, 0x73, 0xd6, 0x1e, 0x82, 0x49, 0xca, 0xbc, 0x5e, 0xb6, - 0x73, 0x55, 0xee, 0x7c, 0x82, 0xca, 0x28, 0x6d, 0x1d, 0xcc, 0x91, 0x4a, 0x64, 0x07, 0xe6, 0xa1, - 0x45, 0xa3, 0xb3, 0xe4, 0x2e, 0xab, 0xb9, 0x0a, 0x1e, 0xbc, 0x09, 0x23, 0xc6, 0xe8, 0xdb, 0x2e, - 0x11, 0x98, 0x12, 0x2e, 0x30, 0x3a, 0x64, 0x8c, 0x72, 0xad, 0x01, 0x6a, 0x04, 0x65, 0x13, 0xad, - 0xb5, 0xc6, 0x9d, 0x4c, 0x5c, 0x3d, 0x06, 0xb3, 0x23, 0x4e, 0x5d, 0x5b, 0x04, 0x0b, 0x23, 0xcc, - 0xfb, 0x50, 0x90, 0x14, 0x37, 0x14, 0x4d, 0xaf, 0x6e, 0xb1, 0x84, 0xf7, 0x0e, 0x8f, 0xba, 0x30, - 0xc6, 0x0d, 0xb5, 0x39, 0x7e, 0xf6, 0x51, 0x57, 0xb6, 0x0e, 0x2e, 0xae, 0x75, 0xf5, 0xf2, 0x5a, - 0x57, 0xbf, 0x5f, 0xeb, 0xea, 0x87, 0x1b, 0x5d, 0xb9, 0xbc, 0xd1, 0x95, 0x2f, 0x37, 0xba, 0x72, - 0xfc, 0xac, 0x32, 0xcf, 0xe2, 0xf1, 0xad, 0x51, 0xe8, 0xf2, 0x81, 0x62, 0xa7, 0xcf, 0xed, 0xf7, - 0xd5, 0x9f, 0x8f, 0x1c, 0xb1, 0x3b, 0x21, 0x5f, 0xfb, 0xd3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xf3, 0x9f, 0x25, 0x7c, 0x9f, 0x04, 0x00, 0x00, + // 694 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x4f, 0xd4, 0x40, + 0x14, 0xdf, 0xb2, 0x2b, 0xb0, 0x83, 0xd1, 0xa5, 0x10, 0x5c, 0x36, 0xa1, 0x8b, 0x25, 0x91, 0x0d, + 0x84, 0x36, 0x60, 0x8c, 0x09, 0xb7, 0x05, 0x34, 0x21, 0x41, 0x20, 0x45, 0x63, 0xc2, 0x65, 0x33, + 0xed, 0x0c, 0xdd, 0xc9, 0x4e, 0x3b, 0xa5, 0x33, 0xad, 0xee, 0xcd, 0x23, 0x47, 0x3f, 0x02, 0x89, + 0x37, 0x3f, 0x84, 0x67, 0x8e, 0x1c, 0x8d, 0x07, 0x34, 0x70, 0xf1, 0xcc, 0x27, 0x30, 0x9d, 0x76, + 0xbb, 0x15, 0x30, 0xea, 0xa9, 0x33, 0xef, 0xf7, 0xde, 0xef, 0xfd, 0xde, 0x9f, 0x0e, 0x58, 0x60, + 0xdc, 0x63, 0x9c, 0x70, 0x93, 0x47, 0x01, 0x0e, 0x8f, 0x68, 0x44, 0x50, 0xe1, 0x68, 0x04, 0x21, + 0x13, 0x4c, 0x55, 0x33, 0x27, 0x63, 0x88, 0x34, 0xa6, 0x5d, 0xe6, 0x32, 0x09, 0x9b, 0xc9, 0x29, + 0xf5, 0x6c, 0x68, 0x2e, 0x63, 0x2e, 0xc5, 0xa6, 0xbc, 0xd9, 0xd1, 0x91, 0x89, 0xa2, 0x10, 0x0a, + 0xc2, 0xfc, 0x0c, 0x6f, 0xde, 0xc4, 0x05, 0xf1, 0x30, 0x17, 0xd0, 0x0b, 0x06, 0x04, 0x8e, 0xcc, + 0x65, 0xda, 0x90, 0x63, 0x33, 0x5e, 0xb5, 0xb1, 0x80, 0xab, 0xa6, 0xc3, 0x48, 0x46, 0xa0, 0xf7, + 0xc1, 0xc3, 0x83, 0x5c, 0x44, 0x9b, 0x73, 0x2c, 0xd4, 0x69, 0x70, 0x0f, 0x61, 0x9f, 0x79, 0x75, + 0x65, 0x5e, 0x69, 0x55, 0xad, 0xf4, 0xa2, 0xbe, 0x04, 0x00, 0x26, 0x70, 0x47, 0xf4, 0x03, 0x5c, + 0x1f, 0x99, 0x57, 0x5a, 0x0f, 0xd6, 0x16, 0x8d, 0xdb, 0x85, 0x18, 0x37, 0xe8, 0x5e, 0xf7, 0x03, + 0x6c, 0x55, 0xe1, 0xe0, 0xb8, 0x3e, 0x7e, 0x72, 0xda, 0x2c, 0xfd, 0x3c, 0x6d, 0x2a, 0x7a, 0x0f, + 0xcc, 0x0d, 0x7d, 0xb7, 0x7d, 0x81, 0x43, 0x0f, 0x23, 0x02, 0xc3, 0x7e, 0xdb, 0x71, 0x58, 0xe4, + 0xff, 0x49, 0xc8, 0x2c, 0x18, 0x8f, 0x21, 0xed, 0x40, 0x84, 0x42, 0x29, 0xa3, 0x6a, 0x8d, 0xc5, + 0x90, 0xb6, 0x11, 0x0a, 0x13, 0xc8, 0x85, 0x91, 0x8b, 0x3b, 0x04, 0xd5, 0xcb, 0xf3, 0x4a, 0xab, + 0x62, 0x8d, 0xc9, 0xfb, 0x36, 0xd2, 0xbf, 0x28, 0x40, 0xdb, 0xe3, 0x1e, 0x7b, 0x71, 0x1c, 0x91, + 0x18, 0x52, 0xec, 0x8b, 0x57, 0x11, 0x15, 0x24, 0xa0, 0x04, 0x87, 0x16, 0x76, 0x58, 0x88, 0xd4, + 0xc7, 0xe0, 0x3e, 0x0e, 0x98, 0xd3, 0xed, 0xf8, 0x91, 0x67, 0xe3, 0x50, 0x66, 0x2d, 0x5b, 0x13, + 0xd2, 0xb6, 0x2b, 0x4d, 0x43, 0x45, 0x23, 0x45, 0x45, 0x0e, 0x00, 0x5e, 0x4e, 0x26, 0x13, 0x57, + 0x37, 0x36, 0xcf, 0x2e, 0x9a, 0xa5, 0x6f, 0x17, 0xcd, 0x27, 0x2e, 0x11, 0xdd, 0xc8, 0x36, 0x1c, + 0xe6, 0x99, 0xd9, 0x28, 0xd2, 0xcf, 0x0a, 0x47, 0x3d, 0x33, 0xe9, 0x25, 0x37, 0xb6, 0xb0, 0x73, + 0x7d, 0xd1, 0x9c, 0xec, 0x43, 0x8f, 0xae, 0xeb, 0x43, 0x26, 0xdd, 0x2a, 0xd0, 0xea, 0xd7, 0x23, + 0xa0, 0x31, 0x6c, 0xd7, 0x16, 0xa6, 0xd8, 0x95, 0x8b, 0x90, 0x89, 0x5f, 0x06, 0x93, 0x28, 0xb5, + 0xb1, 0x50, 0xf6, 0x06, 0x73, 0x9e, 0xf5, 0xad, 0x96, 0x03, 0xed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0xd7, 0x4a, 0xaa, 0x56, 0x5c, 0xa4, 0x1c, 0xde, 0xd9, 0x3f, 0xe8, 0xc2, 0x10, 0xd7, 0x94, + 0x46, 0xe5, 0xe4, 0x93, 0x56, 0xda, 0xd8, 0x3b, 0xbb, 0xd4, 0x94, 0xf3, 0x4b, 0x4d, 0xf9, 0x71, + 0xa9, 0x29, 0x1f, 0xaf, 0xb4, 0xd2, 0xf9, 0x95, 0x56, 0xfa, 0x7a, 0xa5, 0x95, 0x0e, 0x9f, 0x15, + 0xba, 0x9a, 0xfd, 0xff, 0x2b, 0x14, 0xda, 0x7c, 0x70, 0x31, 0xe3, 0xe7, 0xe6, 0xfb, 0xe2, 0xfb, + 0x27, 0x1b, 0x6d, 0x8f, 0xca, 0x07, 0xe7, 0xe9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xfb, + 0xa8, 0x75, 0x22, 0x05, 0x00, 0x00, } func (this *SuperfluidAsset) Equal(that interface{}) bool { @@ -601,6 +611,18 @@ func (m *SuperfluidDelegationRecord) MarshalToSizedBuffer(dAtA []byte) (int, err _ = i var l int _ = l + if m.EquivalentStakedAmount != nil { + { + size, err := m.EquivalentStakedAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSuperfluid(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } { size, err := m.DelegationAmount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -684,20 +706,20 @@ func (m *UnpoolWhitelistedPools) MarshalToSizedBuffer(dAtA []byte) (int, error) var l int _ = l if len(m.Ids) > 0 { - dAtA3 := make([]byte, len(m.Ids)*10) - var j2 int + dAtA4 := make([]byte, len(m.Ids)*10) + var j3 int for _, num := range m.Ids { for num >= 1<<7 { - dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j2++ + j3++ } - dAtA3[j2] = uint8(num) - j2++ + dAtA4[j3] = uint8(num) + j3++ } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintSuperfluid(dAtA, i, uint64(j2)) + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintSuperfluid(dAtA, i, uint64(j3)) i-- dAtA[i] = 0xa } @@ -785,6 +807,10 @@ func (m *SuperfluidDelegationRecord) Size() (n int) { } l = m.DelegationAmount.Size() n += 1 + l + sovSuperfluid(uint64(l)) + if m.EquivalentStakedAmount != nil { + l = m.EquivalentStakedAmount.Size() + n += 1 + l + sovSuperfluid(uint64(l)) + } return n } @@ -1321,6 +1347,42 @@ func (m *SuperfluidDelegationRecord) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EquivalentStakedAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSuperfluid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSuperfluid + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSuperfluid + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EquivalentStakedAmount == nil { + m.EquivalentStakedAmount = &types.Coin{} + } + if err := m.EquivalentStakedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSuperfluid(dAtA[iNdEx:])