deposit

package
v0.9.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewObjectReferenceFromBase58("0111A7ctasuNUug8BoK4VJNuAFJ73rnH8bH5zqd5HrDj")

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 added in v0.9.9

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(amountStr string) error

Accept is proxy generated method

func (*Deposit) Confirm

func (r *Deposit) Confirm(migrationDaemonRef string, txHash string, amountStr string) error

Confirm is proxy generated method

func (*Deposit) ConfirmAsImmutable

func (r *Deposit) ConfirmAsImmutable(migrationDaemonRef string, txHash string, amountStr string) 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 added in v0.9.8

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) (interface{}, error)

Transfer is proxy generated method

func (*Deposit) TransferAsImmutable

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

TransferAsImmutable is proxy generated method

type DepositOut added in v0.9.9

type DepositOut struct {
	Balance                 string                 `json:"balance"`
	PulseDepositUnHold      insolar.PulseNumber    `json:"holdReleaseDate"`
	MigrationDaemonConfirms []DaemonConfirm        `json:"confirmerReferences"`
	Amount                  string                 `json:"amount"`
	TxHash                  string                 `json:"ethTxHash"`
	VestingType             foundation.VestingType `json:"vestingType"`
	MaturePulse             insolar.PulseNumber    `json:"maturePulse"`
	Lockup                  int64                  `json:"lockupInPulses"`
	Vesting                 int64                  `json:"vestingInPulses"`
	VestingStep             int64                  `json:"vestingStepInPulses"`
}

Jump to

Keyboard shortcuts

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