Documentation ¶
Index ¶
- Variables
- func GetPrototype() insolar.Reference
- type ContractConstructorHolder
- type MigrationShard
- func (r *MigrationShard) AddFreeMigrationAddresses(migrationAddresses []string) error
- func (r *MigrationShard) AddFreeMigrationAddressesAsImmutable(migrationAddresses []string) error
- func (r *MigrationShard) GetCode() (insolar.Reference, error)
- func (r *MigrationShard) GetFreeMigrationAddress() (string, error)
- func (r *MigrationShard) GetFreeMigrationAddressAsImmutable() (string, error)
- func (r *MigrationShard) GetMigrationAddressesAmount() (int, error)
- func (r *MigrationShard) GetMigrationAddressesAmountAsMutable() (int, error)
- func (r *MigrationShard) GetPrototype() (insolar.Reference, error)
- func (r *MigrationShard) GetRef(key string) (string, error)
- func (r *MigrationShard) GetRefAsMutable(key string) (string, error)
- func (r *MigrationShard) GetReference() insolar.Reference
- func (r *MigrationShard) SetRef(ma string, ref string) error
- func (r *MigrationShard) SetRefAsImmutable(ma string, ref string) error
Constants ¶
This section is empty.
Variables ¶
var PrototypeReference, _ = insolar.NewObjectReferenceFromString("insolar:0AAABAp-wD4rEsoVt39uIJ6CdqepSCnt5xmwZcs4Twjw")
PrototypeReference to prototype of this contract error checking hides in generator
Functions ¶
func GetPrototype ¶
GetPrototype returns reference to the prototype
Types ¶
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
func (*ContractConstructorHolder) AsChild ¶
func (r *ContractConstructorHolder) AsChild(objRef insolar.Reference) (*MigrationShard, error)
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