liquidity-staking-module icon indicating copy to clipboard operation
liquidity-staking-module copied to clipboard

CosmWasm

Open faddat opened this issue 2 years ago • 1 comments

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.

faddat avatar Sep 06 '22 22:09 faddat

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.

faddat avatar Sep 11 '22 16:09 faddat