migrationshard

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewObjectReferenceFromString("insolar:0AAABAp-wD4rEsoVt39uIJ6CdqepSCnt5xmwZcs4Twjw")

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(migrationAddresses []string) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

AsChild saves object as child

type MigrationShard

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

MigrationShard holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *MigrationShard

GetObject returns proxy object

func (*MigrationShard) AddFreeMigrationAddresses

func (r *MigrationShard) AddFreeMigrationAddresses(migrationAddresses []string) error

AddFreeMigrationAddresses is proxy generated method

func (*MigrationShard) AddFreeMigrationAddressesAsImmutable

func (r *MigrationShard) AddFreeMigrationAddressesAsImmutable(migrationAddresses []string) error

AddFreeMigrationAddressesAsImmutable is proxy generated method

func (*MigrationShard) GetCode

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

GetCode returns reference to the code

func (*MigrationShard) GetFreeMigrationAddress

func (r *MigrationShard) GetFreeMigrationAddress() (string, error)

GetFreeMigrationAddress is proxy generated method

func (*MigrationShard) GetFreeMigrationAddressAsImmutable

func (r *MigrationShard) GetFreeMigrationAddressAsImmutable() (string, error)

GetFreeMigrationAddressAsImmutable is proxy generated method

func (*MigrationShard) GetMigrationAddressesAmount

func (r *MigrationShard) GetMigrationAddressesAmount() (int, error)

GetMigrationAddressesAmountAsImmutable is proxy generated method

func (*MigrationShard) GetMigrationAddressesAmountAsMutable

func (r *MigrationShard) GetMigrationAddressesAmountAsMutable() (int, error)

GetMigrationAddressesAmount is proxy generated method

func (*MigrationShard) GetPrototype

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

GetPrototype returns reference to the code

func (*MigrationShard) GetRef

func (r *MigrationShard) GetRef(key string) (string, error)

GetRefAsImmutable is proxy generated method

func (*MigrationShard) GetRefAsMutable

func (r *MigrationShard) GetRefAsMutable(key string) (string, error)

GetRef is proxy generated method

func (*MigrationShard) GetReference

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

GetReference returns reference of the object

func (*MigrationShard) SetRef

func (r *MigrationShard) SetRef(ma string, ref string) error

SetRef is proxy generated method

func (*MigrationShard) SetRefAsImmutable

func (r *MigrationShard) SetRefAsImmutable(ma string, ref string) error

SetRefAsImmutable is proxy generated method

Jump to

Keyboard shortcuts

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