Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAnnounceNode(cmd *commandspb.AnnounceNode) error
- func CheckCancelTransfer(cmd *commandspb.CancelTransfer) error
- func CheckChainEvent(cmd *commandspb.ChainEvent) error
- func CheckDelegateSubmission(cmd *commandspb.DelegateSubmission) error
- func CheckEthereumKeyRotateSubmission(cmd *commandspb.EthereumKeyRotateSubmission) error
- func CheckKeyRotateSubmission(cmd *commandspb.KeyRotateSubmission) error
- func CheckLiquidityProvisionAmendment(cmd *commandspb.LiquidityProvisionAmendment) error
- func CheckLiquidityProvisionCancellation(cmd *commandspb.LiquidityProvisionCancellation) error
- func CheckLiquidityProvisionSubmission(cmd *commandspb.LiquidityProvisionSubmission) error
- func CheckNodeSignature(cmd *commandspb.NodeSignature) error
- func CheckNodeVote(cmd *commandspb.NodeVote) error
- func CheckOracleDataSubmission(cmd *commandspb.OracleDataSubmission) error
- func CheckOrderAmendment(cmd *commandspb.OrderAmendment) error
- func CheckOrderSubmission(cmd *commandspb.OrderSubmission) error
- func CheckProposalSubmission(cmd *commandspb.ProposalSubmission) error
- func CheckStateVariableProposal(cmd *commandspb.StateVariableProposal) error
- func CheckTransaction(tx *commandspb.Transaction) (*commandspb.InputData, error)
- func CheckTransfer(cmd *commandspb.Transfer) error
- func CheckUndelegateSubmission(cmd *commandspb.UndelegateSubmission) error
- func CheckValidatorHeartbeat(cmd *commandspb.ValidatorHeartbeat) error
- func CheckVoteSubmission(cmd *commandspb.VoteSubmission) error
- func CheckWithdrawSubmission(cmd *commandspb.WithdrawSubmission) error
- func NewInputData(height uint64) *commandspb.InputData
- func NewSignature(sig []byte, algo string, version uint32) *commandspb.Signature
- func NewTransaction(pubKey string, data []byte, signature *commandspb.Signature) *commandspb.Transaction
- type Errors
- func (e Errors) Add(err error)
- func (e Errors) AddForProperty(prop string, err error)
- func (e Errors) Empty() bool
- func (e Errors) Error() string
- func (e Errors) ErrorOrNil() error
- func (e Errors) FinalAdd(err error) Errors
- func (e Errors) FinalAddForProperty(prop string, err error) Errors
- func (e Errors) Get(prop string) []error
- func (e Errors) MarshalJSON() ([]byte, error)
- func (e Errors) Merge(oth Errors)
Constants ¶
View Source
const ReferenceMaxLen int = 100
Variables ¶
View Source
var ( ErrIsRequired = errors.New("is required") ErrMustBeValidDate = errors.New("must be a RFC3339 date") ErrMustBePositive = errors.New("must be positive") ErrMustBePositiveOrZero = errors.New("must be positive or zero") ErrMustBeNegative = errors.New("must be negative") ErrMustBeNegativeOrZero = errors.New("must be negative or zero") ErrMustBeLessThan150 = errors.New("must be less than 150") ErrMustBeLessThan7 = errors.New("must be less than 7") ErrIsNotValid = errors.New("is not a valid value") ErrIsNotValidNumber = errors.New("is not a valid number") ErrIsNotSupported = errors.New("is not supported") ErrCannotAmendToGFA = errors.New("cannot amend to time in force GFA") ErrCannotAmendToGFN = errors.New("cannot amend to time in force GFN") ErrNonGTTOrderWithExpiry = errors.New("non GTT order with expiry") ErrGTTOrderWithNoExpiry = errors.New("GTT order without expiry") ErrIsMismatching = errors.New("is mismatching") ErrReferenceTooLong = errors.New("reference is too long") ErrNotAValidInteger = errors.New("not a valid integer") ErrNotAValidFloat = errors.New("not a valid float") ErrMustBeLessThan100Chars = errors.New("must be less than 100 characters") ErrMustNotExceed1024Chars = errors.New("must not exceed 1024 characters") )
View Source
var ( ErrOrderInShapeWithoutReference = errors.New("order in shape without reference") ErrOrderInShapeWithoutProportion = errors.New("order in shape without a proportion") ErrOrderInBuySideShapeWithBestAskPrice = errors.New("order in buy side shape with best ask price reference") ErrOrderInBuySideShapeOffsetInf0 = errors.New("order in buy side shape offset must be >= 0") ErrOrderInBuySideShapeOffsetInfEq0 = errors.New("order in buy side shape offset must be > 0") ErrOrderInSellSideShapeOffsetInf0 = errors.New("order in sell shape offset must be >= 0") ErrOrderInSellSideShapeWithBestBidPrice = errors.New("order in sell side shape with best bid price reference") ErrOrderInSellSideShapeOffsetInfEq0 = errors.New("order in sell shape offset must be > 0") )
View Source
var (
ErrMustBeAfterStartEpoch = errors.New("must be after start_epoch")
)
View Source
var (
ErrShouldBeHexEncoded = errors.New("should be hex encoded")
)
Functions ¶
func CheckAnnounceNode ¶ added in v0.49.0
func CheckAnnounceNode(cmd *commandspb.AnnounceNode) error
func CheckCancelTransfer ¶ added in v0.48.0
func CheckCancelTransfer(cmd *commandspb.CancelTransfer) error
func CheckChainEvent ¶
func CheckChainEvent(cmd *commandspb.ChainEvent) error
func CheckDelegateSubmission ¶
func CheckDelegateSubmission(cmd *commandspb.DelegateSubmission) error
func CheckEthereumKeyRotateSubmission ¶ added in v0.50.0
func CheckEthereumKeyRotateSubmission(cmd *commandspb.EthereumKeyRotateSubmission) error
func CheckKeyRotateSubmission ¶ added in v0.46.0
func CheckKeyRotateSubmission(cmd *commandspb.KeyRotateSubmission) error
func CheckLiquidityProvisionAmendment ¶ added in v0.48.0
func CheckLiquidityProvisionAmendment(cmd *commandspb.LiquidityProvisionAmendment) error
func CheckLiquidityProvisionCancellation ¶ added in v0.48.0
func CheckLiquidityProvisionCancellation(cmd *commandspb.LiquidityProvisionCancellation) error
func CheckLiquidityProvisionSubmission ¶
func CheckLiquidityProvisionSubmission(cmd *commandspb.LiquidityProvisionSubmission) error
func CheckNodeSignature ¶
func CheckNodeSignature(cmd *commandspb.NodeSignature) error
func CheckNodeVote ¶
func CheckNodeVote(cmd *commandspb.NodeVote) error
func CheckOracleDataSubmission ¶
func CheckOracleDataSubmission(cmd *commandspb.OracleDataSubmission) error
func CheckOrderAmendment ¶
func CheckOrderAmendment(cmd *commandspb.OrderAmendment) error
func CheckOrderSubmission ¶
func CheckOrderSubmission(cmd *commandspb.OrderSubmission) error
func CheckProposalSubmission ¶
func CheckProposalSubmission(cmd *commandspb.ProposalSubmission) error
func CheckStateVariableProposal ¶ added in v0.48.0
func CheckStateVariableProposal(cmd *commandspb.StateVariableProposal) error
func CheckTransaction ¶
func CheckTransaction(tx *commandspb.Transaction) (*commandspb.InputData, error)
func CheckTransfer ¶ added in v0.48.0
func CheckTransfer(cmd *commandspb.Transfer) error
func CheckUndelegateSubmission ¶
func CheckUndelegateSubmission(cmd *commandspb.UndelegateSubmission) error
func CheckValidatorHeartbeat ¶ added in v0.49.0
func CheckValidatorHeartbeat(cmd *commandspb.ValidatorHeartbeat) error
func CheckVoteSubmission ¶
func CheckVoteSubmission(cmd *commandspb.VoteSubmission) error
func CheckWithdrawSubmission ¶
func CheckWithdrawSubmission(cmd *commandspb.WithdrawSubmission) error
func NewInputData ¶
func NewInputData(height uint64) *commandspb.InputData
func NewSignature ¶ added in v0.42.0
func NewSignature(sig []byte, algo string, version uint32) *commandspb.Signature
func NewTransaction ¶
func NewTransaction(pubKey string, data []byte, signature *commandspb.Signature) *commandspb.Transaction
Types ¶
type Errors ¶
func CheckNewFreeformChanges ¶ added in v0.46.0
func CheckNewFreeformChanges(change *types.ProposalTerms_NewFreeform) Errors
func (Errors) AddForProperty ¶
AddForProperty adds an error for a given property.
func (Errors) ErrorOrNil ¶
func (Errors) FinalAdd ¶
FinalAdd behaves like Add, but is meant to be called in a "return" statement. This helper is usually used for terminal errors.
func (Errors) FinalAddForProperty ¶
FinalAddForProperty behaves like AddForProperty, but is meant to be called in a "return" statement. This helper is usually used for terminal errors.
func (Errors) MarshalJSON ¶
Source Files ¶
- announce_node.go
- cancel_transfer.go
- chain_event.go
- delegate_submission.go
- errors.go
- ethereum_key_rotate_submission.go
- key_rotate_submission.go
- liquidity_provision_submission.go
- node_signature.go
- node_vote.go
- oracle_data_submission.go
- order_amendment.go
- order_submission.go
- proposal_submission.go
- state_var_proposal_submission.go
- transaction.go
- transfer_funds.go
- validator_heartbeat.go
- vote_submission.go
- withdraw_submission.go
Click to show internal directories.
Click to hide internal directories.