-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.go
29 lines (23 loc) · 891 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
// ibcclienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
// ibcLightClient "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
sdk "github.com/cosmos/cosmos-sdk/types"
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
bankTypes "github.com/cosmos/cosmos-sdk/x/bank/types"
)
func InitZone() {
config := sdk.GetConfig()
prefix := "cosmos"
config.SetBech32PrefixForAccount(prefix, prefix+"pub")
}
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
// ibcclienttypes.RegisterInterfaces(registry)
// ibcLightClient.RegisterInterfaces(registry)
sdk.RegisterInterfaces(registry)
txtypes.RegisterInterfaces(registry)
cryptocodec.RegisterInterfaces(registry)
bankTypes.RegisterInterfaces(registry)
}