Documentation ¶
Index ¶
- Constants
- Variables
- func ErrInvalidAddress(addr string) error
- func ErrInvalidCoins(msg string) error
- func ErrUnauthorized(msg string) error
- func ErrUnknownRequest(msg string) error
- func SignerCreds() (string, string)
- type AccAddress
- type Account
- type Attribute
- type Coin
- type Coins
- type Context
- type Dec
- type Event
- type Events
- type Handler
- type Int
- type Iterator
- type KeybaseStore
- type Msg
- type Result
- type StoreKey
- type TxResponse
- type Uint
Constants ¶
View Source
const ( DefaultCoinDecimals = 8 EnvSignerName = "SIGNER_NAME" EnvSignerPassword = "SIGNER_PASSWD" EnvChainHome = "CHAIN_HOME_FOLDER" )
Variables ¶
View Source
var ( KeyringServiceName = sdk.KeyringServiceName NewKVStoreKeys = storetypes.NewKVStoreKeys NewUint = sdkmath.NewUint ParseUint = sdkmath.ParseUint NewInt = sdkmath.NewInt NewDec = sdkmath.LegacyNewDec ZeroInt = sdkmath.ZeroInt ZeroUint = sdkmath.ZeroUint ZeroDec = sdkmath.LegacyZeroDec OneUint = sdkmath.OneUint NewCoin = sdk.NewCoin NewCoins = sdk.NewCoins ParseCoins = sdk.ParseCoinsNormalized NewDecWithPrec = sdkmath.LegacyNewDecWithPrec NewDecFromBigInt = sdkmath.LegacyNewDecFromBigInt NewIntFromBigInt = sdkmath.NewIntFromBigInt NewUintFromBigInt = sdkmath.NewUintFromBigInt AccAddressFromBech32 = sdk.AccAddressFromBech32 VerifyAddressFormat = sdk.VerifyAddressFormat GetFromBech32 = sdk.GetFromBech32 NewAttribute = sdk.NewAttribute NewDecFromStr = sdkmath.LegacyNewDecFromStr GetConfig = sdk.GetConfig NewEvent = sdk.NewEvent RegisterLegacyAminoCodec = sdk.RegisterLegacyAminoCodec NewEventManager = sdk.NewEventManager EventTypeMessage = sdk.EventTypeMessage AttributeKeyModule = sdk.AttributeKeyModule KVStorePrefixIterator = storetypes.KVStorePrefixIterator KVStoreReversePrefixIterator = storetypes.KVStoreReversePrefixIterator NewKVStoreKey = storetypes.NewKVStoreKey NewTransientStoreKey = storetypes.NewTransientStoreKey StoreTypeTransient = storetypes.StoreTypeTransient StoreTypeIAVL = storetypes.StoreTypeIAVL NewContext = sdk.NewContext NewUintFromString = sdkmath.NewUintFromString GetPubKeyFromBech32 = legacybech32.UnmarshalPubKey // nolint SA1019 deprecated Bech32ifyPubKey = legacybech32.MarshalPubKey // nolint SA1019 deprecated Bech32PubKeyTypeConsPub = legacybech32.ConsPK Bech32PubKeyTypeAccPub = legacybech32.AccPK MustSortJSON = sdk.MustSortJSON CodeInsufficientFunds = uint32(5) )
Functions ¶
func ErrInvalidAddress ¶
func ErrInvalidCoins ¶
func ErrUnauthorized ¶
func ErrUnknownRequest ¶
func SignerCreds ¶
Types ¶
type AccAddress ¶
type AccAddress = sdk.AccAddress
type Iterator ¶
type Iterator = storetypes.Iterator
type KeybaseStore ¶
KeybaseStore to store keys
func GetKeybase ¶
func GetKeybase(thorchainHome string) (KeybaseStore, error)
GetKeybase will create an instance of Keybase
type StoreKey ¶
type StoreKey = storetypes.StoreKey
type TxResponse ¶
type TxResponse = sdk.TxResponse
type Uint ¶
func RoundToDecimal ¶
RoundToDecimal round the given amt to the desire decimals
func SafeUintFromInt64 ¶
SafeUintFromInt64 create a new Uint from an int64. It is expected that the int64 is positive - if not, we log an error and return zero to prevent overflow errors.
Click to show internal directories.
Click to hide internal directories.