Versions in this module Expand all Collapse all v0 v0.4.4 Jul 9, 2021 Changes in this version + const AttoPhoton + const BaseDenomUnit + const Bech32PrefixAccAddr + const Bech32PrefixAccPub + const Bech32PrefixConsAddr + const Bech32PrefixConsPub + const Bech32PrefixValAddr + const Bech32PrefixValPub + const Bip44CoinType + const DefaultGasPrice + const DefaultRPCGasLimit + const EthBech32Prefix + const ProtocolVersion + const RootCodespace + var BIP44HDPath = ethaccounts.DefaultBaseDerivationPath.String() + var ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") + var ErrInvalidChainID = sdkerrors.Register(RootCodespace, 3, "invalid chain ID") + var ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidValue = sdkerrors.Register(RootCodespace, 2, "invalid value") + var ErrMarshalBigInt = sdkerrors.Register(RootCodespace, 5, "cannot marshal big.Int to string") + var ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") + var ErrUnmarshalBigInt = sdkerrors.Register(RootCodespace, 6, "cannot unmarshal big.Int from string") + var PowerReduction = sdk.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(18), nil)) + func BlockGasLimit(ctx sdk.Context) uint64 + func GenerateRandomChainID() string + func IsEmptyHash(hash string) bool + func IsValidChainID(chainID string) bool + func IsZeroAddress(address string) bool + func NewPhotonCoin(amount sdk.Int) sdk.Coin + func NewPhotonCoinInt64(amount int64) sdk.Coin + func NewPhotonDecCoin(amount sdk.Int) sdk.DecCoin + func ParseChainID(chainID string) (*big.Int, error) + func ProtoAccount() authtypes.AccountI + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func SetBech32Prefixes(config *sdk.Config) + func SetBip44CoinType(config *sdk.Config) + func ValidateAddress(address string) error + type Code []byte + func (c Code) String() string + type EthAccount struct + CodeHash string + func (*EthAccount) Descriptor() ([]byte, []int) + func (*EthAccount) ProtoMessage() + func (acc EthAccount) EthAddress() common.Address + func (acc EthAccount) GetCodeHash() common.Hash + func (m *EthAccount) Marshal() (dAtA []byte, err error) + func (m *EthAccount) MarshalTo(dAtA []byte) (int, error) + func (m *EthAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EthAccount) Reset() + func (m *EthAccount) Size() (n int) + func (m *EthAccount) Unmarshal(dAtA []byte) error + func (m *EthAccount) XXX_DiscardUnknown() + func (m *EthAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EthAccount) XXX_Merge(src proto.Message) + func (m *EthAccount) XXX_Size() int + func (m *EthAccount) XXX_Unmarshal(b []byte) error