rex

package
v1.12.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

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 NewBuyREX

func NewBuyREX(from zsw.AccountName, amount zsw.Asset) *zsw.Action

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 NewDefundCPULoan(from zsw.AccountName, loanNumber uint64, amount zsw.Asset) *zsw.Action

func NewDefundNetLoan

func NewDefundNetLoan(from zsw.AccountName, loanNumber uint64, amount zsw.Asset) *zsw.Action

func NewDeposit

func NewDeposit(owner zsw.AccountName, amount zsw.Asset) *zsw.Action

func NewFundCPULoan

func NewFundCPULoan(from zsw.AccountName, loanNumber uint64, payment zsw.Asset) *zsw.Action

func NewFundNetLoan

func NewFundNetLoan(from zsw.AccountName, loanNumber uint64, payment zsw.Asset) *zsw.Action

func NewMoveFromSavings

func NewMoveFromSavings(owner zsw.AccountName, rex zsw.Asset) *zsw.Action

func NewMoveToSavings

func NewMoveToSavings(owner zsw.AccountName, rex zsw.Asset) *zsw.Action

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 NewSellREX(from zsw.AccountName, rex zsw.Asset) *zsw.Action

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

func NewWithdraw(owner zsw.AccountName, amount zsw.Asset) *zsw.Action

Types

type BuyREX

type BuyREX struct {
	From   zsw.AccountName
	Amount zsw.Asset
}

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 Deposit

type Deposit struct {
	Owner  zsw.AccountName
	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 SellREX

type SellREX struct {
	From zsw.AccountName
	REX  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
}

type Withdraw

type Withdraw struct {
	Owner  zsw.AccountName
	Amount zsw.Asset
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL