github.com/InjectiveLabs/sdk-go@v1.53.0/chain/codec/codec.go (about)

     1  package codec
     2  
     3  import (
     4  	"github.com/cosmos/cosmos-sdk/codec"
     5  	codectypes "github.com/cosmos/cosmos-sdk/codec/types"
     6  	"github.com/cosmos/cosmos-sdk/std"
     7  	sdk "github.com/cosmos/cosmos-sdk/types"
     8  
     9  	cryptocodec "github.com/InjectiveLabs/sdk-go/chain/crypto/codec"
    10  	injective "github.com/InjectiveLabs/sdk-go/chain/types"
    11  )
    12  
    13  // RegisterLegacyAminoCodec registers Interfaces from types, crypto, and SDK std.
    14  func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
    15  	sdk.RegisterLegacyAminoCodec(cdc)
    16  	cryptocodec.RegisterCrypto(cdc)
    17  }
    18  
    19  // RegisterInterfaces registers Interfaces from types, crypto, and SDK std.
    20  func RegisterInterfaces(interfaceRegistry codectypes.InterfaceRegistry) {
    21  	std.RegisterInterfaces(interfaceRegistry)
    22  	cryptocodec.RegisterInterfaces(interfaceRegistry)
    23  	injective.RegisterInterfaces(interfaceRegistry)
    24  }