Documentation ¶
Index ¶
- Constants
- func ErrInvalidAddress(codespace sdk.CodespaceType, msg string, args ...interface{}) sdk.Error
- func ErrInvalidAmount(codespace sdk.CodespaceType, msg string) sdk.Error
- func ErrInvalidOIndex(codespace sdk.CodespaceType, msg string) sdk.Error
- func ErrInvalidTransaction(codespace sdk.CodespaceType, msg string, args ...interface{}) sdk.Error
- func ProtoPosition() utxo.Position
- func RegisterAmino(cdc *amino.Codec)
- type BaseTx
- type Deposit
- type PlasmaPosition
- type SpendMsg
Constants ¶
View Source
const ( DefaultCodespace sdk.CodespaceType = 3 CodeInvalidAddress sdk.CodeType = 201 CodeInvalidOIndex sdk.CodeType = 202 CodeInvalidAmount sdk.CodeType = 203 CodeInvalidTransaction sdk.CodeType = 204 )
Reserve errors 100 ~ 199
View Source
const (
// Only allowed Denomination on this plasma chain
Denom = "Ether"
)
Variables ¶
This section is empty.
Functions ¶
func ErrInvalidAddress ¶
func ErrInvalidAddress(codespace sdk.CodespaceType, msg string, args ...interface{}) sdk.Error
func ErrInvalidAmount ¶
func ErrInvalidAmount(codespace sdk.CodespaceType, msg string) sdk.Error
func ErrInvalidOIndex ¶
func ErrInvalidOIndex(codespace sdk.CodespaceType, msg string) sdk.Error
func ErrInvalidTransaction ¶
func ErrInvalidTransaction(codespace sdk.CodespaceType, msg string, args ...interface{}) sdk.Error
---------------------------------------- Error constructors
func ProtoPosition ¶
func RegisterAmino ¶
------------------------------------------------------- misc
Types ¶
type BaseTx ¶
func (BaseTx) GetSignatures ¶
type PlasmaPosition ¶
func NewPlasmaPosition ¶
func NewPlasmaPosition(blknum uint64, txIndex uint16, oIndex uint8, depositNum uint64) PlasmaPosition
func (PlasmaPosition) Get ¶
func (position PlasmaPosition) Get() []sdk.Uint
func (PlasmaPosition) IsDeposit ¶
func (position PlasmaPosition) IsDeposit() bool
func (PlasmaPosition) IsValid ¶
func (position PlasmaPosition) IsValid() bool
check that the position is formatted correctly Implements Position
Click to show internal directories.
Click to hide internal directories.