member

package
v0.9.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = insolar.NewReferenceFromBase58("0111A7UqbgvFXj9vkCAaNYSAkWLapu62eU5AUSv3y4JY")

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(rootDomain insolar.Reference, name string, key string, migrationAddress string, walletRef insolar.Reference) *ContractConstructorHolder

New is constructor

func (*ContractConstructorHolder) AsChild

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

AsChild saves object as child

type CreateResponse

type CreateResponse struct {
	Reference string `json:"reference"`
}

type DepositMigrationResult

type DepositMigrationResult struct {
	Reference string `json:"memberReference"`
}

type GetBalanceResponse

type GetBalanceResponse struct {
	Balance  string                 `json:"balance"`
	Deposits map[string]interface{} `json:"deposits"`
}

type GetResponse

type GetResponse struct {
	Reference        string `json:"reference"`
	MigrationAddress string `json:"migrationAddress,omitempty"`
}

type Member

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

Member holds proxy type

func GetObject

func GetObject(ref insolar.Reference) (r *Member)

GetObject returns proxy object

func (*Member) Call

func (r *Member) Call(signedRequest []byte) (interface{}, error)

CallAsImmutable is proxy generated method

func (*Member) CallAsMutable

func (r *Member) CallAsMutable(signedRequest []byte) (interface{}, error)

Call is proxy generated method

func (*Member) CallNoWait

func (r *Member) CallNoWait(signedRequest []byte) error

CallNoWait is proxy generated method

func (*Member) GetAccount

func (r *Member) GetAccount(assetName string) (*insolar.Reference, error)

GetAccountAsImmutable is proxy generated method

func (*Member) GetAccountAsMutable

func (r *Member) GetAccountAsMutable(assetName string) (*insolar.Reference, error)

GetAccount is proxy generated method

func (*Member) GetAccountNoWait

func (r *Member) GetAccountNoWait(assetName string) error

GetAccountNoWait is proxy generated method

func (*Member) GetCode

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

GetCode returns reference to the code

func (*Member) GetMigrationAddress

func (r *Member) GetMigrationAddress() (string, error)

GetMigrationAddressAsImmutable is proxy generated method

func (*Member) GetMigrationAddressAsMutable

func (r *Member) GetMigrationAddressAsMutable() (string, error)

GetMigrationAddress is proxy generated method

func (*Member) GetMigrationAddressNoWait

func (r *Member) GetMigrationAddressNoWait() error

GetMigrationAddressNoWait is proxy generated method

func (*Member) GetName

func (r *Member) GetName() (string, error)

GetNameAsImmutable is proxy generated method

func (*Member) GetNameAsMutable

func (r *Member) GetNameAsMutable() (string, error)

GetName is proxy generated method

func (*Member) GetNameNoWait

func (r *Member) GetNameNoWait() error

GetNameNoWait is proxy generated method

func (*Member) GetPrototype

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

GetPrototype returns reference to the code

func (*Member) GetPublicKey

func (r *Member) GetPublicKey() (string, error)

GetPublicKeyAsImmutable is proxy generated method

func (*Member) GetPublicKeyAsMutable

func (r *Member) GetPublicKeyAsMutable() (string, error)

GetPublicKey is proxy generated method

func (*Member) GetPublicKeyNoWait

func (r *Member) GetPublicKeyNoWait() error

GetPublicKeyNoWait is proxy generated method

func (*Member) GetReference

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

GetReference returns reference of the object

func (*Member) GetWallet

func (r *Member) GetWallet() (*insolar.Reference, error)

GetWalletAsImmutable is proxy generated method

func (*Member) GetWalletAsMutable

func (r *Member) GetWalletAsMutable() (*insolar.Reference, error)

GetWallet is proxy generated method

func (*Member) GetWalletNoWait

func (r *Member) GetWalletNoWait() error

GetWalletNoWait is proxy generated method

type MigrationCreateResponse

type MigrationCreateResponse struct {
	Reference        string `json:"reference"`
	MigrationAddress string `json:"migrationAddress"`
}

type Params

type Params struct {
	Seed       string      `json:"seed"`
	CallSite   string      `json:"callSite"`
	CallParams interface{} `json:"callParams,omitempty"`
	Reference  string      `json:"reference"`
	PublicKey  string      `json:"publicKey"`
	LogLevel   string      `json:"logLevel,omitempty"`
	Test       string      `json:"test,omitempty"`
}

type Request

type Request struct {
	JSONRPC string `json:"jsonrpc"`
	ID      uint64 `json:"id"`
	Method  string `json:"method"`
	Params  Params `json:"params"`
}

type TransferResponse

type TransferResponse struct {
	Fee string `json:"fee"`
}

Jump to

Keyboard shortcuts

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