mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00

* Move `encoding.go` to lib to avoid import cycle * [lib] Add `SetEncodingConfig` to avoid import cycle ``` package github.com/planetmint/planetmint-go/app imports github.com/planetmint/planetmint-go/app/ante imports github.com/planetmint/planetmint-go/x/dao imports github.com/planetmint/planetmint-go/util imports github.com/planetmint/planetmint-go/app: import cycle not allowed ``` * Use RPC instead of `exec.Command(...)` // Closes #152 Signed-off-by: Julian Strobl <jmastr@mailbox.org>
17 lines
489 B
Go
17 lines
489 B
Go
package params
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
|
)
|
|
|
|
// EncodingConfig specifies the concrete encoding types to use for a given app.
|
|
// This is provided for compatibility between protobuf and amino implementations.
|
|
type EncodingConfig struct {
|
|
InterfaceRegistry types.InterfaceRegistry
|
|
Marshaler codec.Codec
|
|
TxConfig client.TxConfig
|
|
Amino *codec.LegacyAmino
|
|
}
|