rex

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AN = roxe.AN
View Source
var ActN = roxe.ActN
View Source
var PN = roxe.PN
View Source
var REXAN = AN("roxe")

Functions

func NewBuyREX

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

func NewCancelREXOrder

func NewCancelREXOrder(owner roxe.AccountName) *roxe.Action

func NewCloseREX

func NewCloseREX(owner roxe.AccountName) *roxe.Action

func NewConsolidate

func NewConsolidate(owner roxe.AccountName) *roxe.Action

func NewDefundCPULoan

func NewDefundCPULoan(from roxe.AccountName, loanNumber uint64, amount roxe.Asset) *roxe.Action

func NewDefundNetLoan

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

func NewDeposit

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

func NewFundCPULoan

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

func NewFundNetLoan

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

func NewMoveFromSavings

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

func NewMoveToSavings

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

func NewREXExec

func NewREXExec(user roxe.AccountName, max uint16) *roxe.Action

func NewRentCPU

func NewRentCPU(
	from roxe.AccountName,
	receiver roxe.AccountName,
	loanPayment roxe.Asset,
	loanFund roxe.Asset,
) *roxe.Action

func NewRentNet

func NewRentNet(
	from roxe.AccountName,
	receiver roxe.AccountName,
	loanPayment roxe.Asset,
	loanFund roxe.Asset,
) *roxe.Action

func NewSellREX

func NewSellREX(from roxe.AccountName, rex roxe.Asset) *roxe.Action

func NewUnstakeToREX

func NewUnstakeToREX(
	owner roxe.AccountName,
	receiver roxe.AccountName,
	fromNet roxe.Asset,
	fromCPU roxe.Asset,
) *roxe.Action

func NewUpdateREX

func NewUpdateREX(owner roxe.AccountName) *roxe.Action

func NewWithdraw

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

Types

type BuyREX

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

type CancelREXOrder

type CancelREXOrder struct {
	Owner roxe.AccountName
}

type CloseREX

type CloseREX struct {
	Ownwer roxe.AccountName
}

type Consolidate

type Consolidate struct {
	Owner roxe.AccountName
}

type DefundCPULoan

type DefundCPULoan struct {
	From       roxe.AccountName
	LoanNumber uint64
	Amount     roxe.Asset
}

type DefundNetLoan

type DefundNetLoan struct {
	From       roxe.AccountName
	LoanNumber uint64
	Amount     roxe.Asset
}

type Deposit

type Deposit struct {
	Owner  roxe.AccountName
	Amount roxe.Asset
}

type FundCPULoan

type FundCPULoan struct {
	From       roxe.AccountName
	LoanNumber uint64
	Payment    roxe.Asset
}

type FundNetLoan

type FundNetLoan struct {
	From       roxe.AccountName
	LoanNumber uint64
	Payment    roxe.Asset
}

type MoveFromSavings

type MoveFromSavings struct {
	Owner roxe.AccountName
	REX   roxe.Asset
}

type MoveToSavings

type MoveToSavings struct {
	Owner roxe.AccountName
	REX   roxe.Asset
}

type REXExec

type REXExec struct {
	User roxe.AccountName
	Max  uint16
}

type RentCPU

type RentCPU struct {
	From        roxe.AccountName
	Receiver    roxe.AccountName
	LoanPayment roxe.Asset
	LoanFund    roxe.Asset
}

type RentNet

type RentNet struct {
	From        roxe.AccountName
	Receiver    roxe.AccountName
	LoanPayment roxe.Asset
	LoanFund    roxe.Asset
}

type SellREX

type SellREX struct {
	From roxe.AccountName
	REX  roxe.Asset
}

type UnstakeToREX

type UnstakeToREX struct {
	Owner    roxe.AccountName
	Receiver roxe.AccountName
	FromNet  roxe.Asset
	FromCPU  roxe.Asset
}

type UpdateREX

type UpdateREX struct {
	Owner roxe.AccountName
}

type Withdraw

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

Jump to

Keyboard shortcuts

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