helloworld

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INSATTR_Greet_API = true

Functions

func INSCONSTRUCTOR_New

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

func INSMETHOD_Call

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

func INSMETHOD_Count

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

func INSMETHOD_CreateChild

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

func INSMETHOD_Errored

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

func INSMETHOD_GetCode

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

func INSMETHOD_GetPrototype

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

func INSMETHOD_Greet

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

func INSMETHOD_PulseNumber

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

func INSMETHOD_ReturnObj

func INSMETHOD_ReturnObj(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 HelloWorld

type HelloWorld struct {
	foundation.BaseContract
	Greeted int
}

HelloWorld contract

func New

func New() (*HelloWorld, error)

New returns a new empty contract

func (*HelloWorld) Call

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

func (*HelloWorld) Count

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

func (*HelloWorld) CreateChild

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

func (*HelloWorld) Errored

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

func (*HelloWorld) Greet

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

Greet greats the caller

func (*HelloWorld) PulseNumber

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

Get number pulse from foundation.

func (*HelloWorld) ReturnObj

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

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