Documentation
¶
Index ¶
- Constants
- func CodeToDefaultMsg(code sdk.CodeType) string
- func ErrInvalidAssets(msg string) sdk.Error
- func ErrInvalidField(field string) sdk.Error
- func ErrInvalidInput(msg string) sdk.Error
- func ErrInvalidOutput(msg string) sdk.Error
- func ErrInvalidRevokeRecipient(addr sdk.Address) sdk.Error
- func ErrMissingField(field string) sdk.Error
- func ErrNoInputs() sdk.Error
- func ErrNoOutputs() sdk.Error
- func ErrUnknownAsset(msg string) sdk.Error
- func GetAccountDecoder(cdc *wire.Codec) sdk.AccountDecoder
- func InvalidTransaction(msg string) sdk.Error
- type AppAccount
- type GenesisAccount
- type GenesisState
Constants ¶
const ( CodeUnknownAsset sdk.CodeType = 500 CodeInvalidTransaction sdk.CodeType = 501 CodeInvalidInput sdk.CodeType = 502 CodeInvalidOutput sdk.CodeType = 503 CodeInvalidAssets sdk.CodeType = 504 CodeMissingField sdk.CodeType = 505 CodeInvalidField sdk.CodeType = 506 CodeInvalidRevokeRecipient sdk.CodeType = 507 DefaultCodespace sdk.CodespaceType = 10 )
ABCI Response Codes Base SDK reserves 500 - 599.
Variables ¶
This section is empty.
Functions ¶
func CodeToDefaultMsg ¶ added in v0.1.0
CodeToDefaultMsg NOTE: Don't stringer this, we'll put better messages in later.
func ErrInvalidAssets ¶ added in v0.1.0
func ErrInvalidField ¶ added in v0.1.0
ErrInvalidField ...
func ErrInvalidInput ¶ added in v0.1.0
func ErrInvalidOutput ¶ added in v0.1.0
func ErrInvalidRevokeRecipient ¶ added in v0.1.0
ErrInvalidRevokeRecipient is used when the recipient of a revoke proposal message is not in the asset's proposal list
func ErrMissingField ¶ added in v0.1.0
ErrMissingField ...
func ErrNoInputs ¶ added in v0.1.0
func ErrNoOutputs ¶ added in v0.1.0
func ErrUnknownAsset ¶ added in v0.1.0
ErrUnknownAsset ...
func GetAccountDecoder ¶
func GetAccountDecoder(cdc *wire.Codec) sdk.AccountDecoder
Get the AccountDecoder function for the custom AppAccount
func InvalidTransaction ¶ added in v0.1.0
InvalidTransaction ...
Types ¶
type AppAccount ¶
type AppAccount struct { auth.BaseAccount Name string `json:"name"` }
Custom extensions for this application. This is just an example of extending auth.BaseAccount with custom fields.
This is compatible with the stock auth.AccountStore, since auth.AccountStore uses the flexible go-amino library.
func (*AppAccount) SetName ¶
func (acc *AppAccount) SetName(name string)
type GenesisAccount ¶
type GenesisAccount struct { Name string `json:"name"` Address sdk.Address `json:"address"` Coins sdk.Coins `json:"coins"` }
GenesisAccount doesn't need pubkey or sequence
func NewGenesisAccount ¶
func NewGenesisAccount(aa *AppAccount) *GenesisAccount
func (*GenesisAccount) ToAppAccount ¶
func (ga *GenesisAccount) ToAppAccount() (acc *AppAccount, err error)
convert GenesisAccount to AppAccount
type GenesisState ¶
type GenesisState struct {
Accounts []*GenesisAccount `json:"accounts"`
}
State to Unmarshal