rex

package
v0.0.0-...-b2c0fe3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 NewBuyREX

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

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

func NewDefundNetLoan

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

func NewDeposit

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

func NewFundCPULoan

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

func NewFundNetLoan

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

func NewMoveFromSavings

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

func NewMoveToSavings

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

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

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

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

Types

type BuyREX

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

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 Deposit

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

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

type Withdraw

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

Jump to

Keyboard shortcuts

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