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