wasmrequests

package
v0.5.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "requests"
	ScDescription = "WasmLib request structures"
	HScName       = wasmtypes.ScHname(0x98e19453)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallRequest

type CallRequest struct {
	// caller assets that the call is allowed to access
	Allowance []byte
	Contract  wasmtypes.ScHname
	Function  wasmtypes.ScHname
	Params    []byte
}

func NewCallRequestFromBytes

func NewCallRequestFromBytes(buf []byte) *CallRequest

func (*CallRequest) Bytes

func (o *CallRequest) Bytes() []byte

type DeployRequest

type DeployRequest struct {
	Description string
	Name        string
	Params      []byte
	ProgHash    wasmtypes.ScHash
}

func NewDeployRequestFromBytes

func NewDeployRequestFromBytes(buf []byte) *DeployRequest

func (*DeployRequest) Bytes

func (o *DeployRequest) Bytes() []byte

type ImmutableCallRequest

type ImmutableCallRequest struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableCallRequest) Exists

func (o ImmutableCallRequest) Exists() bool

func (ImmutableCallRequest) Value

func (o ImmutableCallRequest) Value() *CallRequest

type ImmutableDeployRequest

type ImmutableDeployRequest struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableDeployRequest) Exists

func (o ImmutableDeployRequest) Exists() bool

func (ImmutableDeployRequest) Value

type ImmutablePostRequest

type ImmutablePostRequest struct {
	Proxy wasmtypes.Proxy
}

func (ImmutablePostRequest) Exists

func (o ImmutablePostRequest) Exists() bool

func (ImmutablePostRequest) Value

func (o ImmutablePostRequest) Value() *PostRequest

type ImmutableSendRequest

type ImmutableSendRequest struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableSendRequest) Exists

func (o ImmutableSendRequest) Exists() bool

func (ImmutableSendRequest) Value

func (o ImmutableSendRequest) Value() *SendRequest

type ImmutableTransferRequest

type ImmutableTransferRequest struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableTransferRequest) Exists

func (o ImmutableTransferRequest) Exists() bool

func (ImmutableTransferRequest) Value

type MutableCallRequest

type MutableCallRequest struct {
	Proxy wasmtypes.Proxy
}

func (MutableCallRequest) Delete

func (o MutableCallRequest) Delete()

func (MutableCallRequest) Exists

func (o MutableCallRequest) Exists() bool

func (MutableCallRequest) SetValue

func (o MutableCallRequest) SetValue(value *CallRequest)

func (MutableCallRequest) Value

func (o MutableCallRequest) Value() *CallRequest

type MutableDeployRequest

type MutableDeployRequest struct {
	Proxy wasmtypes.Proxy
}

func (MutableDeployRequest) Delete

func (o MutableDeployRequest) Delete()

func (MutableDeployRequest) Exists

func (o MutableDeployRequest) Exists() bool

func (MutableDeployRequest) SetValue

func (o MutableDeployRequest) SetValue(value *DeployRequest)

func (MutableDeployRequest) Value

type MutablePostRequest

type MutablePostRequest struct {
	Proxy wasmtypes.Proxy
}

func (MutablePostRequest) Delete

func (o MutablePostRequest) Delete()

func (MutablePostRequest) Exists

func (o MutablePostRequest) Exists() bool

func (MutablePostRequest) SetValue

func (o MutablePostRequest) SetValue(value *PostRequest)

func (MutablePostRequest) Value

func (o MutablePostRequest) Value() *PostRequest

type MutableSendRequest

type MutableSendRequest struct {
	Proxy wasmtypes.Proxy
}

func (MutableSendRequest) Delete

func (o MutableSendRequest) Delete()

func (MutableSendRequest) Exists

func (o MutableSendRequest) Exists() bool

func (MutableSendRequest) SetValue

func (o MutableSendRequest) SetValue(value *SendRequest)

func (MutableSendRequest) Value

func (o MutableSendRequest) Value() *SendRequest

type MutableTransferRequest

type MutableTransferRequest struct {
	Proxy wasmtypes.Proxy
}

func (MutableTransferRequest) Delete

func (o MutableTransferRequest) Delete()

func (MutableTransferRequest) Exists

func (o MutableTransferRequest) Exists() bool

func (MutableTransferRequest) SetValue

func (o MutableTransferRequest) SetValue(value *TransferRequest)

func (MutableTransferRequest) Value

type PostRequest

type PostRequest struct {
	// caller assets that the call is allowed to access
	Allowance []byte
	ChainID   wasmtypes.ScChainID
	Contract  wasmtypes.ScHname
	Delay     uint32
	Function  wasmtypes.ScHname
	Params    []byte
	// assets that are transferred into caller account
	Transfer []byte
}

func NewPostRequestFromBytes

func NewPostRequestFromBytes(buf []byte) *PostRequest

func (*PostRequest) Bytes

func (o *PostRequest) Bytes() []byte

type SendRequest

type SendRequest struct {
	Address  wasmtypes.ScAddress
	Transfer []byte
}

func NewSendRequestFromBytes

func NewSendRequestFromBytes(buf []byte) *SendRequest

func (*SendRequest) Bytes

func (o *SendRequest) Bytes() []byte

type TransferRequest

type TransferRequest struct {
	AgentID  wasmtypes.ScAgentID
	Transfer []byte
}

func NewTransferRequestFromBytes

func NewTransferRequestFromBytes(buf []byte) *TransferRequest

func (*TransferRequest) Bytes

func (o *TransferRequest) Bytes() []byte

Jump to

Keyboard shortcuts

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