entity

package
v0.0.0-...-80a1494 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: OSL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	PublicAddress       string `json:"publicAddress"`
	EncryptedPrivateKey []byte `json:"encryptedPrivateKey"`
	Nonce               []byte `json:"nonce"`
	IsDefault           bool   `json:"-"`
}

type CollateralHealthCheckInput

type CollateralHealthCheckInput struct {
	Passphrase string
}

CollateralHealthCheck

type CollateralHealthCheckOutput

type CollateralHealthCheckOutput struct {
	CollateralAssetAddress   string
	CollateralAssetCode      string
	RequiredCollateralAmount string
	CollateralPoolAmount     string
}

type CreateAccountInput

type CreateAccountInput struct {
	Passphrase          string
	SetAsDefaultAccount bool
}

type CreateAccountOutput

type CreateAccountOutput struct {
	PublicAddress string
	PrivateKey    string
	IsDefault     bool
}

type ExportAccountInput

type ExportAccountInput struct {
	PublicAddress string
	Passphrase    string
}

type ExportAccountOutput

type ExportAccountOutput struct {
	PublicAddress string
	PrivateKey    string
}

type GetCreditExchangeInput

type GetCreditExchangeInput struct {
	AssetCode  string
	Passphrase string
}

GetCreditExchange

type GetCreditExchangeOutput

type GetCreditExchangeOutput struct {
	AssetCode                     string
	CollateralAssetCode           string
	PriceInCollateralPerAssetUnit string
}

type ImportAccountInput

type ImportAccountInput struct {
	PrivateKey          string
	Passphrase          string
	SetAsDefaultAccount bool
}

type ImportAccountOutput

type ImportAccountOutput struct {
	ImportedAccountAddress string
}

type MintCreditByCollateralInput

type MintCreditByCollateralInput struct {
	AssetCode        string
	CollateralAmount string
	Passphrase       string
}

MintCreditByCollateral

type MintCreditByCollateralOutput

type MintCreditByCollateralOutput struct {
	AssetCode          string
	StableCreditAmount string
	TxHash             string
}

type MintCreditByCreditInput

type MintCreditByCreditInput struct {
	Passphrase   string
	AssetCode    string
	CreditAmount string
}

MintCreditByCredit

type MintCreditByCreditOutput

type MintCreditByCreditOutput struct {
	TxHash              string
	AssetCode           string
	StableCreditAmount  string
	AssetAddress        string
	CollateralAssetCode string
	CollateralAmount    string
}

type NewClientInput

type NewClientInput struct {
	RpcUrl          string
	PrivateKey      string
	ContractAddress *vclient.ContractAddress
}

type RebalanceCollateralInput

type RebalanceCollateralInput struct {
	Passphrase string
}

RebalanceCredit

type RebalanceCollateralOutput

type RebalanceCollateralOutput struct {
	TxHash              string
	AssetCode           string
	CollateralAssetCode string
	RequiredAmount      string
	PresentAmount       string
}

type RedeemCreditInput

type RedeemCreditInput struct {
	RedeemAmount string
	AssetCode    string
	Passphrase   string
}

type RedeemCreditOutput

type RedeemCreditOutput struct {
	CollateralAmount    string
	CollateralAssetCode string
	TxHash              string
}

type SetDefaultAccountInput

type SetDefaultAccountInput struct {
	Account string
}

type SetDefaultAccountOutput

type SetDefaultAccountOutput struct {
	Account string
}

type SetEnvInput

type SetEnvInput struct {
	Env string
}

type SetEnvOutput

type SetEnvOutput struct {
	Env string
}

type SetupCreditInput

type SetupCreditInput struct {
	Passphrase          string
	AssetCode           string
	PeggedValue         string
	PeggedCurrency      string
	CollateralAssetCode string
}

SetupCredit

type SetupCreditOutput

type SetupCreditOutput struct {
	TxHash              string
	CreditOwnerAddress  string
	AssetCode           string
	AssetAddress        string
	PeggedValue         string
	PeggedCurrency      string
	CollateralAssetCode string
}

Jump to

Keyboard shortcuts

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