Documentation ¶
Index ¶
- Variables
- func VerifyLockMode(ins []*avax.TransferableInput, outs []*avax.TransferableOutput, ...) error
- func VerifyNoLocks(ins []*avax.TransferableInput, outs []*avax.TransferableOutput) error
- type IDs
- func (lock *IDs) FixLockID(txID ids.ID, appliedLockState State)
- func (lock IDs) IsLocked() bool
- func (lock IDs) IsLockedWith(lockState State) bool
- func (lock IDs) IsNewlyLockedWith(lockState State) bool
- func (lock IDs) Lock(lockState State) IDs
- func (lock IDs) LockState() State
- func (lock *IDs) Match(lockState State, txIDs set.Set[ids.ID]) bool
- func (lock IDs) Unlock(lockState State) IDs
- type In
- type Out
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongInType = errors.New("wrong input type") ErrWrongOutType = errors.New("wrong output type") )
View Source
var (
ThisTxID = ids.ID{'t', 'h', 'i', 's', ' ', 't', 'x', ' ', 'i', 'd'}
)
Functions ¶
func VerifyLockMode ¶
func VerifyLockMode( ins []*avax.TransferableInput, outs []*avax.TransferableOutput, lockModeDepositBond bool, ) error
Verifies that [ins] and [outs] have allowed types depending on [lockModeBonding]. If lockModeBonding is true, than ins and outs can't be stakeable types. If lockModeBonding is false, than ins and outs can't be locked types.
func VerifyNoLocks ¶
func VerifyNoLocks( ins []*avax.TransferableInput, outs []*avax.TransferableOutput, ) error
Verifies that [ins] and [outs] aren't stakeable or locked types.
Types ¶
type IDs ¶
type IDs struct { DepositTxID ids.ID `serialize:"true" json:"depositTxID"` BondTxID ids.ID `serialize:"true" json:"bondTxID"` }
func (IDs) IsLockedWith ¶
func (IDs) IsNewlyLockedWith ¶
type In ¶
type In struct { IDs `serialize:"true" json:"lockIDs"` avax.TransferableIn `serialize:"true" json:"input"` }
type Out ¶
type Out struct { IDs `serialize:"true" json:"lockIDs"` avax.TransferableOut `serialize:"true" json:"output"` }
Click to show internal directories.
Click to hide internal directories.