migrationshard

package
v0.9.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_New

func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)

func INSMETHOD_AddFreeMigrationAddresses

func INSMETHOD_AddFreeMigrationAddresses(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetFreeMigrationAddress

func INSMETHOD_GetFreeMigrationAddress(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetMigrationAddressesAmount

func INSMETHOD_GetMigrationAddressesAmount(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetRef

func INSMETHOD_GetRef(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_SetRef

func INSMETHOD_SetRef(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

Types

type MigrationShard

type MigrationShard struct {
	foundation.BaseContract
	Map                    foundation.StableMap
	FreeMigrationAddresses []string
}

MigrationShard - shard contract for migration addresses.

func New

func New(migrationAddresses []string) (*MigrationShard, error)

New creates new member.

func (*MigrationShard) AddFreeMigrationAddresses

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

AddFreeMigrationAddresses add new addresses to the array of free migration addresses

func (*MigrationShard) GetFreeMigrationAddress

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

GetFreeMigrationAddress gets free migration address from list

func (MigrationShard) GetMigrationAddressesAmount

func (s MigrationShard) GetMigrationAddressesAmount(migrationAddresses []string) (int, error)

GetMigrationAddressesAmount gets amount of free migration addresses ins:immutable

func (MigrationShard) GetRef

func (s MigrationShard) GetRef(key string) (string, error)

GetRef gets ref by key. ins:immutable

func (*MigrationShard) SetRef

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

SetRef sets ref with migration address as a key.

Jump to

Keyboard shortcuts

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