Skip to content

Commit

Permalink
Merge branch 'hotfix/v0.9.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
haasted committed Mar 7, 2021
2 parents 12b0302 + c454105 commit 9656581
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/liquidityprovider/types/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ import (
)

var _ auth.Account = LiquidityProviderAccount{}
var _ auth.GenesisAccount = LiquidityProviderAccount{}

type LiquidityProviderAccount struct {
auth.Account

Mintable sdk.Coins `json:"mintable" yaml:"mintable"`
}

func (acc LiquidityProviderAccount) Validate() error {
return acc.Validate()
}

func NewLiquidityProviderAccount(baseAccount auth.Account, mintable sdk.Coins) *LiquidityProviderAccount {
return &LiquidityProviderAccount{
Account: baseAccount,
Expand Down
5 changes: 5 additions & 0 deletions x/liquidityprovider/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ package types
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/x/auth"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)

// generic sealed codec to be used throughout this module
var ModuleCdc *codec.Codec

func init() {
authtypes.RegisterAccountTypeCodec(&LiquidityProviderAccount{}, "e-money/LiquidityProviderAccount")
}

func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(&LiquidityProviderAccount{}, "e-money/LiquidityProviderAccount", nil)
cdc.RegisterConcrete(MsgMintTokens{}, "e-money/MsgMintTokens", nil)
Expand Down

0 comments on commit 9656581

Please sign in to comment.