helloworld

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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

New is constructor

func (*ContractConstructorHolder) AsChild

AsChild saves object as child

type HelloWorld

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

HelloWorld holds proxy type

func GetObject

func GetObject(ref insolar.Reference) *HelloWorld

GetObject returns proxy object

func (*HelloWorld) Call

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

Call is proxy generated method

func (*HelloWorld) CallAsImmutable

func (r *HelloWorld) CallAsImmutable(signedRequest []byte) (interface{}, error)

CallAsImmutable is proxy generated method

func (*HelloWorld) Count

func (r *HelloWorld) Count() (interface{}, error)

Count is proxy generated method

func (*HelloWorld) CountAsImmutable

func (r *HelloWorld) CountAsImmutable() (interface{}, error)

CountAsImmutable is proxy generated method

func (*HelloWorld) CreateChild

func (r *HelloWorld) CreateChild() (interface{}, error)

CreateChild is proxy generated method

func (*HelloWorld) CreateChildAsImmutable

func (r *HelloWorld) CreateChildAsImmutable() (interface{}, error)

CreateChildAsImmutable is proxy generated method

func (*HelloWorld) Errored

func (r *HelloWorld) Errored() (interface{}, error)

Errored is proxy generated method

func (*HelloWorld) ErroredAsImmutable

func (r *HelloWorld) ErroredAsImmutable() (interface{}, error)

ErroredAsImmutable is proxy generated method

func (*HelloWorld) GetCode

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

GetCode returns reference to the code

func (*HelloWorld) GetPrototype

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

GetPrototype returns reference to the code

func (*HelloWorld) GetReference

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

GetReference returns reference of the object

func (*HelloWorld) Greet

func (r *HelloWorld) Greet(name string) (interface{}, error)

Greet is proxy generated method

func (*HelloWorld) GreetAsImmutable

func (r *HelloWorld) GreetAsImmutable(name string) (interface{}, error)

GreetAsImmutable is proxy generated method

func (*HelloWorld) PulseNumber

func (r *HelloWorld) PulseNumber() (insolar.PulseNumber, error)

PulseNumber is proxy generated method

func (*HelloWorld) PulseNumberAsImmutable

func (r *HelloWorld) PulseNumberAsImmutable() (insolar.PulseNumber, error)

PulseNumberAsImmutable is proxy generated method

func (*HelloWorld) ReturnObj

func (r *HelloWorld) ReturnObj() (interface{}, error)

ReturnObj is proxy generated method

func (*HelloWorld) ReturnObjAsImmutable

func (r *HelloWorld) ReturnObjAsImmutable() (interface{}, error)

ReturnObjAsImmutable is proxy generated method

type HwMessage

type HwMessage struct {
	Message Text `json:"message"`
}

type Params

type Params struct {
	Seed       string      `json:"seed"`
	CallSite   string      `json:"callSite"`
	CallParams interface{} `json:"callParams"`
	Reference  string      `json:"reference"`
	PublicKey  string      `json:"publicKey"`
}

type Request

type Request struct {
	JsonRpc  string `json:"jsonrpc"`
	Id       int    `json:"id"`
	Method   string `json:"method"`
	Params   Params `json:"params"`
	LogLevel string `json:"logLevel,omitempty"`
}

type Text

type Text struct {
	SomeText string `json:"someText"`
}

Jump to

Keyboard shortcuts

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