Documentation ¶
Index ¶
- Variables
- func NewBuyREX(from zsw.AccountName, amount zsw.Asset) *zsw.Action
- func NewCancelREXOrder(owner zsw.AccountName) *zsw.Action
- func NewCloseREX(owner zsw.AccountName) *zsw.Action
- func NewConsolidate(owner zsw.AccountName) *zsw.Action
- func NewDefundCPULoan(from zsw.AccountName, loanNumber uint64, amount zsw.Asset) *zsw.Action
- func NewDefundNetLoan(from zsw.AccountName, loanNumber uint64, amount zsw.Asset) *zsw.Action
- func NewDeposit(owner zsw.AccountName, amount zsw.Asset) *zsw.Action
- func NewFundCPULoan(from zsw.AccountName, loanNumber uint64, payment zsw.Asset) *zsw.Action
- func NewFundNetLoan(from zsw.AccountName, loanNumber uint64, payment zsw.Asset) *zsw.Action
- func NewMoveFromSavings(owner zsw.AccountName, rex zsw.Asset) *zsw.Action
- func NewMoveToSavings(owner zsw.AccountName, rex zsw.Asset) *zsw.Action
- func NewREXExec(user zsw.AccountName, max uint16) *zsw.Action
- func NewRentCPU(from zsw.AccountName, receiver zsw.AccountName, loanPayment zsw.Asset, ...) *zsw.Action
- func NewRentNet(from zsw.AccountName, receiver zsw.AccountName, loanPayment zsw.Asset, ...) *zsw.Action
- func NewSellREX(from zsw.AccountName, rex zsw.Asset) *zsw.Action
- func NewUnstakeToREX(owner zsw.AccountName, receiver zsw.AccountName, fromNet zsw.Asset, ...) *zsw.Action
- func NewUpdateREX(owner zsw.AccountName) *zsw.Action
- func NewWithdraw(owner zsw.AccountName, amount zsw.Asset) *zsw.Action
- type BuyREX
- type CancelREXOrder
- type CloseREX
- type Consolidate
- type DefundCPULoan
- type DefundNetLoan
- type Deposit
- type FundCPULoan
- type FundNetLoan
- type MoveFromSavings
- type MoveToSavings
- type REXExec
- type RentCPU
- type RentNet
- type SellREX
- type UnstakeToREX
- type UpdateREX
- type Withdraw
Constants ¶
This section is empty.
Variables ¶
View Source
var AN = zsw.AN
View Source
var ActN = zsw.ActN
View Source
var PN = zsw.PN
View Source
var REXAN = AN("zswhq")
Functions ¶
func NewCancelREXOrder ¶
func NewCancelREXOrder(owner zsw.AccountName) *zsw.Action
func NewCloseREX ¶
func NewCloseREX(owner zsw.AccountName) *zsw.Action
func NewConsolidate ¶
func NewConsolidate(owner zsw.AccountName) *zsw.Action
func NewDefundCPULoan ¶
func NewDefundNetLoan ¶
func NewDeposit ¶
func NewFundCPULoan ¶
func NewFundNetLoan ¶
func NewMoveFromSavings ¶
func NewMoveToSavings ¶
func NewREXExec ¶
func NewREXExec(user zsw.AccountName, max uint16) *zsw.Action
func NewRentCPU ¶
func NewRentCPU( from zsw.AccountName, receiver zsw.AccountName, loanPayment zsw.Asset, loanFund zsw.Asset, ) *zsw.Action
func NewRentNet ¶
func NewRentNet( from zsw.AccountName, receiver zsw.AccountName, loanPayment zsw.Asset, loanFund zsw.Asset, ) *zsw.Action
func NewSellREX ¶
func NewUnstakeToREX ¶
func NewUnstakeToREX( owner zsw.AccountName, receiver zsw.AccountName, fromNet zsw.Asset, fromCPU zsw.Asset, ) *zsw.Action
func NewUpdateREX ¶
func NewUpdateREX(owner zsw.AccountName) *zsw.Action
func NewWithdraw ¶
Types ¶
type CancelREXOrder ¶
type CancelREXOrder struct {
Owner zsw.AccountName
}
type CloseREX ¶
type CloseREX struct {
Ownwer zsw.AccountName
}
type Consolidate ¶
type Consolidate struct {
Owner zsw.AccountName
}
type DefundCPULoan ¶
type DefundCPULoan struct { From zsw.AccountName LoanNumber uint64 Amount zsw.Asset }
type DefundNetLoan ¶
type DefundNetLoan struct { From zsw.AccountName LoanNumber uint64 Amount zsw.Asset }
type FundCPULoan ¶
type FundCPULoan struct { From zsw.AccountName LoanNumber uint64 Payment zsw.Asset }
type FundNetLoan ¶
type FundNetLoan struct { From zsw.AccountName LoanNumber uint64 Payment zsw.Asset }
type MoveFromSavings ¶
type MoveFromSavings struct { Owner zsw.AccountName REX zsw.Asset }
type MoveToSavings ¶
type MoveToSavings struct { Owner zsw.AccountName REX zsw.Asset }
type REXExec ¶
type REXExec struct { User zsw.AccountName Max uint16 }
type RentCPU ¶
type RentCPU struct { From zsw.AccountName Receiver zsw.AccountName LoanPayment zsw.Asset LoanFund zsw.Asset }
type RentNet ¶
type RentNet struct { From zsw.AccountName Receiver zsw.AccountName LoanPayment zsw.Asset LoanFund zsw.Asset }
type UnstakeToREX ¶
type UnstakeToREX struct { Owner zsw.AccountName Receiver zsw.AccountName FromNet zsw.Asset FromCPU zsw.Asset }
type UpdateREX ¶
type UpdateREX struct {
Owner zsw.AccountName
}
Click to show internal directories.
Click to hide internal directories.