Documentation ¶
Index ¶
- Variables
- type AccountBalanceErrorsError
- type AliasDoesNotExistError
- type AlreadyInStateError
- type ApiAuthErrorID
- type ApiError
- type ApiKeyNotValidError
- type AssetDoesNotExistError
- type BlockDoesNotExistError
- type CustomValidationError
- type DataKeyDoesNotExistError
- type ErrorID
- type Identifier
- type InsufficientFeeError
- type InvalidAddressError
- type InvalidAssetIdError
- type InvalidBlockIdError
- type InvalidChainIdError
- type InvalidIdsError
- type InvalidMessageError
- type InvalidNameError
- type InvalidProofsError
- type InvalidPublicKeyError
- type InvalidSignatureError
- type InvalidTransactionIdError
- type MissingSenderPrivateKeyError
- type MistimingError
- type NegativeAmount
- type NegativeMinFeeError
- type NonPositiveAmountError
- type OrderInvalidError
- type OverflowError
- type ScriptCompilerError
- type ScriptExecutionError
- type StateCheckFailedError
- type ToSelfError
- type TooBigArrayAllocationError
- type TransactionDoesNotExistError
- type TransactionErrorID
- type TransactionNotAllowedByAccountScriptError
- type UnknownError
- type UnsupportedTransactionTypeError
- type ValidationErrorID
- type WrongJsonError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiKeyNotValid = &ApiKeyNotValidError{ genericError: genericError{ ID: ApiKeyNotValidErrorID, HttpCode: http.StatusBadRequest, Message: "Provided API key is not correct", }, } TooBigArrayAllocation = &TooBigArrayAllocationError{ genericError: genericError{ ID: TooBigArrayAllocationErrorID, HttpCode: http.StatusBadRequest, Message: "Too big sequence requested", }, } )
View Source
var ( TransactionDoesNotExist = &TransactionDoesNotExistError{ genericError: genericError{ ID: TransactionDoesNotExistErrorID, HttpCode: http.StatusNotFound, Message: "transactions does not exist", }, } UnsupportedTransactionType = &UnsupportedTransactionTypeError{ genericError: genericError{ ID: UnsupportedTransactionTypeErrorID, HttpCode: http.StatusNotImplemented, Message: "transaction type not supported", }, } InvalidAssetId = &InvalidAssetIdError{ genericError: genericError{ ID: InvalidAssetIdErrorID, HttpCode: http.StatusBadRequest, Message: "Invalid asset id", }, } )
View Source
var ( InvalidSignature = &InvalidSignatureError{ genericError: genericError{ ID: InvalidSignatureErrorID, HttpCode: http.StatusBadRequest, Message: "invalid signature", }, } InvalidAddress = &InvalidAddressError{ genericError: genericError{ ID: InvalidAddressErrorID, HttpCode: http.StatusBadRequest, Message: "invalid address", }, } InvalidPublicKey = &InvalidPublicKeyError{ genericError: genericError{ ID: InvalidPublicKeyErrorID, HttpCode: http.StatusBadRequest, Message: "invalid public key", }, } InvalidMessage = &InvalidMessageError{ genericError: genericError{ ID: InvalidMessageErrorID, HttpCode: http.StatusBadRequest, Message: "invalid message", }, } InvalidName = &InvalidNameError{ genericError: genericError{ ID: InvalidNameErrorID, HttpCode: http.StatusBadRequest, Message: "invalid name", }, } Overflow = &OverflowError{ genericError: genericError{ ID: OverflowErrorID, HttpCode: http.StatusBadRequest, Message: "overflow error", }, } ToSelf = &ToSelfError{ genericError: genericError{ ID: ToSelfErrorID, HttpCode: http.StatusBadRequest, Message: "Transaction to yourself", }, } MissingSenderPrivateKey = &MissingSenderPrivateKeyError{ genericError: genericError{ ID: MissingSenderPrivateKeyErrorID, HttpCode: http.StatusBadRequest, Message: "no private key for sender address in wallet", }, } BlockDoesNotExist = &BlockDoesNotExistError{ genericError: genericError{ ID: BlockDoesNotExistErrorID, HttpCode: http.StatusNotFound, Message: "block does not exist", }, } DataKeyDoesNotExist = &DataKeyDoesNotExistError{ genericError: genericError{ ID: DataKeyDoesNotExistErrorID, HttpCode: http.StatusNotFound, Message: "no data for this key", }, } )
Functions ¶
This section is empty.
Types ¶
type AccountBalanceErrorsError ¶
type AccountBalanceErrorsError struct { Details map[proto.WavesAddress]string `json:"details"` // contains filtered or unexported fields }
type AliasDoesNotExistError ¶
type AliasDoesNotExistError validationError
type AlreadyInStateError ¶
type AlreadyInStateError transactionError
type ApiAuthErrorID ¶
type ApiAuthErrorID ErrorID
const ( ApiKeyNotValidErrorID ApiAuthErrorID = 2 TooBigArrayAllocationErrorID ApiAuthErrorID = 10 )
API Auth
func (ApiAuthErrorID) IntCode ¶
func (e ApiAuthErrorID) IntCode() int
type ApiError ¶
type ApiError interface { error GetID() Identifier GetName() string GetHttpCode() int GetMessage() string }
ApiError is a basic interface for node HTTP API. Type which implements this interface MUST be serializable to JSON.
type ApiKeyNotValidError ¶
type ApiKeyNotValidError authError
type AssetDoesNotExistError ¶
type AssetDoesNotExistError transactionError
type BlockDoesNotExistError ¶
type BlockDoesNotExistError validationError
type CustomValidationError ¶
type CustomValidationError validationError
func NewCustomValidationError ¶ added in v0.10.0
func NewCustomValidationError(message string) *CustomValidationError
type DataKeyDoesNotExistError ¶
type DataKeyDoesNotExistError validationError
type Identifier ¶
type Identifier interface {
IntCode() int
}
type InsufficientFeeError ¶
type InsufficientFeeError transactionError
type InvalidAddressError ¶
type InvalidAddressError validationError
type InvalidAssetIdError ¶
type InvalidAssetIdError transactionError
type InvalidBlockIdError ¶
type InvalidBlockIdError transactionError
func NewInvalidBlockIDError ¶
func NewInvalidBlockIDError(message string) *InvalidBlockIdError
type InvalidChainIdError ¶
type InvalidChainIdError transactionError
type InvalidIdsError ¶
type InvalidIdsError struct { Ids []string `json:"ids"` // contains filtered or unexported fields }
type InvalidMessageError ¶
type InvalidMessageError validationError
type InvalidNameError ¶
type InvalidNameError validationError
type InvalidProofsError ¶
type InvalidProofsError transactionError
type InvalidPublicKeyError ¶
type InvalidPublicKeyError validationError
type InvalidSignatureError ¶
type InvalidSignatureError validationError
type InvalidTransactionIdError ¶
type InvalidTransactionIdError transactionError
func NewInvalidTransactionIDError ¶ added in v0.10.1
func NewInvalidTransactionIDError(message string) *InvalidTransactionIdError
type MissingSenderPrivateKeyError ¶
type MissingSenderPrivateKeyError validationError
type MistimingError ¶
type MistimingError validationError
type NegativeAmount ¶
type NegativeAmount transactionError
type NegativeMinFeeError ¶
type NegativeMinFeeError transactionError
type NonPositiveAmountError ¶
type NonPositiveAmountError transactionError
type OrderInvalidError ¶
type OrderInvalidError struct { Order order `json:"order"` // contains filtered or unexported fields }
type OverflowError ¶
type OverflowError validationError
type ScriptCompilerError ¶
type ScriptCompilerError validationError
type ScriptExecutionError ¶
type ScriptExecutionError validationErrorWithTransaction
type StateCheckFailedError ¶
type StateCheckFailedError struct {
// contains filtered or unexported fields
}
func (StateCheckFailedError) MarshalJSON ¶
func (e StateCheckFailedError) MarshalJSON() ([]byte, error)
type ToSelfError ¶
type ToSelfError validationError
type TooBigArrayAllocationError ¶
type TooBigArrayAllocationError authError
func NewTooBigArrayAllocationError ¶
func NewTooBigArrayAllocationError(limit int) *TooBigArrayAllocationError
type TransactionDoesNotExistError ¶
type TransactionDoesNotExistError transactionError
type TransactionErrorID ¶
type TransactionErrorID ErrorID
const ( TransactionDoesNotExistErrorID TransactionErrorID = 311 UnsupportedTransactionTypeErrorID TransactionErrorID = 312 AssetDoesNotExistErrorID TransactionErrorID = 313 NegativeAmountErrorID TransactionErrorID = 111 InsufficientFeeErrorID TransactionErrorID = 112 NegativeMinFeeErrorID TransactionErrorID = 114 NonPositiveAmountErrorID TransactionErrorID = 115 AlreadyInStateErrorID TransactionErrorID = 400 AccountBalanceErrorsErrorID TransactionErrorID = 402 OrderInvalidErrorID TransactionErrorID = 403 InvalidChainIdErrorID TransactionErrorID = 404 InvalidProofsErrorID TransactionErrorID = 405 InvalidTransactionIdErrorID TransactionErrorID = 4001 InvalidBlockIdErrorID TransactionErrorID = 4002 InvalidAssetIdErrorID TransactionErrorID = 4007 )
TRANSACTIONS
func (TransactionErrorID) IntCode ¶
func (e TransactionErrorID) IntCode() int
type TransactionNotAllowedByAccountScriptError ¶
type TransactionNotAllowedByAccountScriptError validationErrorWithTransaction
type UnknownError ¶
type UnknownError struct {
// contains filtered or unexported fields
}
UnknownError is a wrapper for any unknown internal error
func NewUnknownError ¶
func NewUnknownError(inner error) *UnknownError
func NewUnknownErrorWithMsg ¶
func NewUnknownErrorWithMsg(message string, inner error) *UnknownError
func (*UnknownError) Error ¶
func (u *UnknownError) Error() string
func (*UnknownError) GetHttpCode ¶
func (g *UnknownError) GetHttpCode() int
func (*UnknownError) GetID ¶
func (g *UnknownError) GetID() Identifier
func (*UnknownError) GetMessage ¶
func (g *UnknownError) GetMessage() string
func (*UnknownError) Unwrap ¶
func (u *UnknownError) Unwrap() error
type UnsupportedTransactionTypeError ¶
type UnsupportedTransactionTypeError transactionError
type ValidationErrorID ¶
type ValidationErrorID ErrorID
const ( InvalidSignatureErrorID ValidationErrorID = 101 InvalidAddressErrorID ValidationErrorID = 102 InvalidPublicKeyErrorID ValidationErrorID = 108 InvalidMessageErrorID ValidationErrorID = 110 InvalidNameErrorID ValidationErrorID = 111 StateCheckFailedErrorID ValidationErrorID = 112 OverflowErrorID ValidationErrorID = 113 ToSelfErrorID ValidationErrorID = 114 MissingSenderPrivateKeyErrorID ValidationErrorID = 115 InvalidIdsErrorID ValidationErrorID = 116 CustomValidationErrorErrorID ValidationErrorID = 199 BlockDoesNotExistErrorID ValidationErrorID = 301 AliasDoesNotExistErrorID ValidationErrorID = 302 MistimingErrorID ValidationErrorID = 303 DataKeyDoesNotExistErrorID ValidationErrorID = 304 ScriptCompilerErrorID ValidationErrorID = 305 ScriptExecutionErrorErrorID ValidationErrorID = 306 TransactionNotAllowedByAccountScriptErrorID ValidationErrorID = 307 TransactionNotAllowedByAssetScriptErrorID ValidationErrorID = 308 )
VALIDATION
func (ValidationErrorID) IntCode ¶
func (e ValidationErrorID) IntCode() int
type WrongJsonError ¶
type WrongJsonError struct { Cause string `json:"cause,omitempty"` ValidationErrors []error `json:"validationErrors,omitempty"` // contains filtered or unexported fields }
func NewWrongJsonError ¶
func NewWrongJsonError(cause string, validationErrors []error) *WrongJsonError
func (*WrongJsonError) GetHttpCode ¶
func (g *WrongJsonError) GetHttpCode() int
func (*WrongJsonError) GetID ¶
func (g *WrongJsonError) GetID() Identifier
func (*WrongJsonError) GetMessage ¶
func (g *WrongJsonError) GetMessage() string
Click to show internal directories.
Click to hide internal directories.