v3

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AccessType_name = map[int32]string{
	0: "ACCESS_TYPE_UNSPECIFIED",
	1: "ACCESS_TYPE_NOBODY",
	2: "ACCESS_TYPE_ONLY_ADDRESS",
	3: "ACCESS_TYPE_EVERYBODY",
	4: "ACCESS_TYPE_ANY_OF_ADDRESSES",
}
View Source
var AccessType_value = map[string]int32{
	"ACCESS_TYPE_UNSPECIFIED":      0,
	"ACCESS_TYPE_NOBODY":           1,
	"ACCESS_TYPE_ONLY_ADDRESS":     2,
	"ACCESS_TYPE_EVERYBODY":        3,
	"ACCESS_TYPE_ANY_OF_ADDRESSES": 4,
}

Functions

This section is empty.

Types

type AccessConfig

type AccessConfig struct {
	Permission AccessType `protobuf:"varint,1,opt,name=permission,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"permission,omitempty" yaml:"permission"`
	// Address
	// Deprecated: replaced by addresses
	Address   string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty" yaml:"addresses"`
}

AccessConfig access control type.

func (*AccessConfig) Descriptor

func (*AccessConfig) Descriptor() ([]byte, []int)

func (*AccessConfig) Equal

func (m *AccessConfig) Equal(that interface{}) bool

func (*AccessConfig) Marshal

func (m *AccessConfig) Marshal() (dAtA []byte, err error)

func (*AccessConfig) MarshalTo

func (m *AccessConfig) MarshalTo(dAtA []byte) (int, error)

func (*AccessConfig) MarshalToSizedBuffer

func (m *AccessConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccessConfig) ProtoMessage

func (*AccessConfig) ProtoMessage()

func (*AccessConfig) Reset

func (m *AccessConfig) Reset()

func (*AccessConfig) Size

func (m *AccessConfig) Size() (n int)

func (*AccessConfig) String

func (m *AccessConfig) String() string

func (*AccessConfig) Unmarshal

func (m *AccessConfig) Unmarshal(dAtA []byte) error

func (*AccessConfig) XXX_DiscardUnknown

func (m *AccessConfig) XXX_DiscardUnknown()

func (*AccessConfig) XXX_Marshal

func (m *AccessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessConfig) XXX_Merge

func (m *AccessConfig) XXX_Merge(src proto.Message)

func (*AccessConfig) XXX_Size

func (m *AccessConfig) XXX_Size() int

func (*AccessConfig) XXX_Unmarshal

func (m *AccessConfig) XXX_Unmarshal(b []byte) error

type AccessType

type AccessType int32

AccessType permission types

const (
	// AccessTypeUnspecified placeholder for empty value
	AccessTypeUnspecified AccessType = 0
	// AccessTypeNobody forbidden
	AccessTypeNobody AccessType = 1
	// AccessTypeOnlyAddress restricted to a single address
	// Deprecated: use AccessTypeAnyOfAddresses instead
	AccessTypeOnlyAddress AccessType = 2
	// AccessTypeEverybody unrestricted
	AccessTypeEverybody AccessType = 3
	// AccessTypeAnyOfAddresses allow any of the addresses
	AccessTypeAnyOfAddresses AccessType = 4
)

func (AccessType) EnumDescriptor

func (AccessType) EnumDescriptor() ([]byte, []int)

type AccessTypeParam

type AccessTypeParam struct {
	Value AccessType `protobuf:"varint,1,opt,name=value,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"value,omitempty" yaml:"value"`
}

AccessTypeParam

func (*AccessTypeParam) Descriptor

func (*AccessTypeParam) Descriptor() ([]byte, []int)

func (*AccessTypeParam) Equal

func (m *AccessTypeParam) Equal(that interface{}) bool

func (*AccessTypeParam) Marshal

func (m *AccessTypeParam) Marshal() (dAtA []byte, err error)

func (*AccessTypeParam) MarshalTo

func (m *AccessTypeParam) MarshalTo(dAtA []byte) (int, error)

func (*AccessTypeParam) MarshalToSizedBuffer

func (m *AccessTypeParam) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccessTypeParam) ProtoMessage

func (*AccessTypeParam) ProtoMessage()

func (*AccessTypeParam) Reset

func (m *AccessTypeParam) Reset()

func (*AccessTypeParam) Size

func (m *AccessTypeParam) Size() (n int)

func (*AccessTypeParam) String

func (m *AccessTypeParam) String() string

func (*AccessTypeParam) Unmarshal

func (m *AccessTypeParam) Unmarshal(dAtA []byte) error

func (*AccessTypeParam) XXX_DiscardUnknown

func (m *AccessTypeParam) XXX_DiscardUnknown()

func (*AccessTypeParam) XXX_Marshal

func (m *AccessTypeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessTypeParam) XXX_Merge

func (m *AccessTypeParam) XXX_Merge(src proto.Message)

func (*AccessTypeParam) XXX_Size

func (m *AccessTypeParam) XXX_Size() int

func (*AccessTypeParam) XXX_Unmarshal

func (m *AccessTypeParam) XXX_Unmarshal(b []byte) error

type CodeInfo

type CodeInfo struct {
	// CodeHash is the unique identifier created by wasmvm
	CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
	// Creator address who initially stored the code
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// InstantiateConfig access control to apply on contract creation, optional
	InstantiateConfig AccessConfig `protobuf:"bytes,5,opt,name=instantiate_config,json=instantiateConfig,proto3" json:"instantiate_config"`
}

CodeInfo is data for the uploaded contract WASM code

func (*CodeInfo) Descriptor

func (*CodeInfo) Descriptor() ([]byte, []int)

func (*CodeInfo) Equal

func (m *CodeInfo) Equal(that interface{}) bool

func (*CodeInfo) Marshal

func (m *CodeInfo) Marshal() (dAtA []byte, err error)

func (*CodeInfo) MarshalTo

func (m *CodeInfo) MarshalTo(dAtA []byte) (int, error)

func (*CodeInfo) MarshalToSizedBuffer

func (m *CodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CodeInfo) ProtoMessage

func (*CodeInfo) ProtoMessage()

func (*CodeInfo) Reset

func (m *CodeInfo) Reset()

func (*CodeInfo) Size

func (m *CodeInfo) Size() (n int)

func (*CodeInfo) String

func (m *CodeInfo) String() string

func (*CodeInfo) Unmarshal

func (m *CodeInfo) Unmarshal(dAtA []byte) error

func (*CodeInfo) XXX_DiscardUnknown

func (m *CodeInfo) XXX_DiscardUnknown()

func (*CodeInfo) XXX_Marshal

func (m *CodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CodeInfo) XXX_Merge

func (m *CodeInfo) XXX_Merge(src proto.Message)

func (*CodeInfo) XXX_Size

func (m *CodeInfo) XXX_Size() int

func (*CodeInfo) XXX_Unmarshal

func (m *CodeInfo) XXX_Unmarshal(b []byte) error

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(k wasmKeeper, fn StoreCodeInfoFn) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate3to4

func (m Migrator) Migrate3to4(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error

Migrate3to4 migrates from version 3 to 4.

type Params

type Params struct {
	CodeUploadAccess             AccessConfig `` /* 127-byte string literal not displayed */
	InstantiateDefaultPermission AccessType   `` /* 219-byte string literal not displayed */
}

Params defines the set of wasm parameters.

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (m *Params) Equal(that interface{}) bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type StoreCodeInfoFn

type StoreCodeInfoFn func(ctx sdk.Context, codeID uint64, codeInfo types.CodeInfo)

StoreCodeInfoFn stores code info

Jump to

Keyboard shortcuts

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