liquidity-staking-module
liquidity-staking-module copied to clipboard
CosmWasm
Currently, the LSM is type-incompatible with CosmWasm, the same way that it was with ibc-go here:
- https://github.com/iqlusioninc/liquidity-staking-module/pull/44
I'm going to try and copy the style Vuong used for the Shimmy in #44 and make LSM more easily compatible with CosmWasm.
have GetAllDelegatorDelegations(ctx "github.com/cosmos/cosmos-sdk/types".Context, delegator "github.com/cosmos/cosmos-sdk/types".AccAddress) []"github.com/iqlusioninc/liquidity-staking-module/x/staking/types".Delegation
want GetAllDelegatorDelegations(ctx "github.com/cosmos/cosmos-sdk/types".Context, delegator "github.com/cosmos/cosmos-sdk/types".AccAddress) []"github.com/cosmos/cosmos-sdk/x/staking/types".Delegation
have DelegationRewards(c "context".Context, req *"github.com/iqlusioninc/liquidity-staking-module/x/distribution/types".QueryDelegationRewardsRequest) (*"github.com/iqlusioninc/liquidity-staking-module/x/distribution/types".QueryDelegationRewardsResponse, error)
want DelegationRewards(c "context".Context, req *"github.com/cosmos/cosmos-sdk/x/distribution/types".QueryDelegationRewardsRequest) (*"github.com/cosmos/cosmos-sdk/x/distribution/types".QueryDelegationRewardsResponse, error)
vendored genutil, distribution, staking and slashing into eve.
Next is to make them return cosmos-sdk types and then upstream the changes so that the lsm can be imported more easily in chains supporting cosmwasm.