deposit

package
v0.0.0-...-5de87d6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewObjectReferenceFromString("insolar:0AAABAsPCPoB0_7TDBh7dydzcQcqFqlbDu0bDPGr27oY")

PrototypeReference to prototype of this contract error checking hides in generator

Functions

func GetPrototype

func GetPrototype() insolar.Reference

GetPrototype returns reference to the prototype

Types

type ContractConstructorHolder

type ContractConstructorHolder struct {
	// contains filtered or unexported fields
}

ContractConstructorHolder holds logic with object construction

func New

func New(migrationDaemonRef insolar.Reference, txHash string, amount string, lockup int64, vesting int64, vestingStep int64) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef insolar.Reference) (*Deposit, error)

AsChild saves object as child

type DaemonConfirm

type DaemonConfirm struct {
	Reference string `json:"reference"`
	Amount    string `json:"amount"`
}

type Deposit

type Deposit struct {
	Reference insolar.Reference
	Prototype insolar.Reference
	Code      insolar.Reference
}

Deposit holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *Deposit

GetObject returns proxy object

func (*Deposit) Accept

func (r *Deposit) Accept(arg appfoundation.SagaAcceptInfo) error

Accept is proxy generated method

func (*Deposit) Confirm

func (r *Deposit) Confirm(txHash string, amountStr string, fromMember insolar.Reference, request insolar.Reference) error

Confirm is proxy generated method

func (*Deposit) ConfirmAsImmutable

func (r *Deposit) ConfirmAsImmutable(txHash string, amountStr string, fromMember insolar.Reference, request insolar.Reference) error

ConfirmAsImmutable is proxy generated method

func (*Deposit) GetAmount

func (r *Deposit) GetAmount() (string, error)

GetAmountAsImmutable is proxy generated method

func (*Deposit) GetAmountAsMutable

func (r *Deposit) GetAmountAsMutable() (string, error)

GetAmount is proxy generated method

func (*Deposit) GetCode

func (r *Deposit) GetCode() (insolar.Reference, error)

GetCode returns reference to the code

func (*Deposit) GetPrototype

func (r *Deposit) GetPrototype() (insolar.Reference, error)

GetPrototype returns reference to the code

func (*Deposit) GetPulseUnHold

func (r *Deposit) GetPulseUnHold() (insolar.PulseNumber, error)

GetPulseUnHoldAsImmutable is proxy generated method

func (*Deposit) GetPulseUnHoldAsMutable

func (r *Deposit) GetPulseUnHoldAsMutable() (insolar.PulseNumber, error)

GetPulseUnHold is proxy generated method

func (*Deposit) GetReference

func (r *Deposit) GetReference() insolar.Reference

GetReference returns reference of the object

func (*Deposit) GetTxHash

func (r *Deposit) GetTxHash() (string, error)

GetTxHash is proxy generated method

func (*Deposit) GetTxHashAsImmutable

func (r *Deposit) GetTxHashAsImmutable() (string, error)

GetTxHashAsImmutable is proxy generated method

func (*Deposit) Itself

func (r *Deposit) Itself() (interface{}, error)

ItselfAsImmutable is proxy generated method

func (*Deposit) ItselfAsMutable

func (r *Deposit) ItselfAsMutable() (interface{}, error)

Itself is proxy generated method

func (*Deposit) Transfer

func (r *Deposit) Transfer(amountStr string, memberRef insolar.Reference, request insolar.Reference) (interface{}, error)

Transfer is proxy generated method

func (*Deposit) TransferAsImmutable

func (r *Deposit) TransferAsImmutable(amountStr string, memberRef insolar.Reference, request insolar.Reference) (interface{}, error)

TransferAsImmutable is proxy generated method

func (*Deposit) TransferToDeposit

func (r *Deposit) TransferToDeposit(amountStr string, toDeposit insolar.Reference, fromMember insolar.Reference, request insolar.Reference) error

TransferToDeposit is proxy generated method

func (*Deposit) TransferToDepositAsImmutable

func (r *Deposit) TransferToDepositAsImmutable(amountStr string, toDeposit insolar.Reference, fromMember insolar.Reference, request insolar.Reference) error

TransferToDepositAsImmutable is proxy generated method

type DepositOut

type DepositOut struct {
	Balance                 string                    `json:"balance"`
	HoldStartDate           int64                     `json:"holdStartDate"`
	PulseDepositUnHold      int64                     `json:"holdReleaseDate"`
	MigrationDaemonConfirms []DaemonConfirm           `json:"confirmerReferences"`
	Amount                  string                    `json:"amount"`
	TxHash                  string                    `json:"ethTxHash"`
	VestingType             appfoundation.VestingType `json:"vestingType"`
	Lockup                  int64                     `json:"lockup"`
	Vesting                 int64                     `json:"vesting"`
	VestingStep             int64                     `json:"vestingStep"`
}

Jump to

Keyboard shortcuts

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