v2

package
v0.51.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remains solely for migration purposes and will be removed in a future release.

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 (
	ParamStoreKeyUploadAccess      = []byte("uploadAccess")
	ParamStoreKeyInstantiateAccess = []byte("instantiateAccess")
)
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

func MigrateStore

func MigrateStore(ctx sdk.Context, storeService corestoretypes.KVStoreService, legacySubspace exported.Subspace, cdc codec.BinaryCodec) error

MigrateStore migrates the x/wasm module state from the consensus version 2 to version 3. Specifically, it takes the parameters that are currently stored and managed by the x/params module and stores them directly into the x/wasm module state.

func ParamKeyTable deprecated added in v0.46.0

func ParamKeyTable() paramtypes.KeyTable

Deprecated: Type declaration for parameters

Types

type AccessConfig added in v0.46.0

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 added in v0.46.0

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

func (*AccessConfig) Equal added in v0.46.0

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

func (AccessConfig) Equals added in v0.46.0

func (a AccessConfig) Equals(o AccessConfig) bool

func (*AccessConfig) Marshal added in v0.46.0

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

func (*AccessConfig) MarshalTo added in v0.46.0

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

func (*AccessConfig) MarshalToSizedBuffer added in v0.46.0

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

func (*AccessConfig) ProtoMessage added in v0.46.0

func (*AccessConfig) ProtoMessage()

func (*AccessConfig) Reset added in v0.46.0

func (m *AccessConfig) Reset()

func (*AccessConfig) Size added in v0.46.0

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

func (*AccessConfig) String added in v0.46.0

func (m *AccessConfig) String() string

func (*AccessConfig) Unmarshal added in v0.46.0

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

func (AccessConfig) ValidateBasic added in v0.46.0

func (a AccessConfig) ValidateBasic() error

func (*AccessConfig) XXX_DiscardUnknown added in v0.46.0

func (m *AccessConfig) XXX_DiscardUnknown()

func (*AccessConfig) XXX_Marshal added in v0.46.0

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

func (*AccessConfig) XXX_Merge added in v0.46.0

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

func (*AccessConfig) XXX_Size added in v0.46.0

func (m *AccessConfig) XXX_Size() int

func (*AccessConfig) XXX_Unmarshal added in v0.46.0

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

type AccessType added in v0.46.0

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 added in v0.46.0

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

func (*AccessType) MarshalJSONPB added in v0.46.0

func (a *AccessType) MarshalJSONPB(_ *jsonpb.Marshaler) ([]byte, error)

func (AccessType) MarshalText added in v0.46.0

func (a AccessType) MarshalText() ([]byte, error)

func (AccessType) String added in v0.46.0

func (a AccessType) String() string

func (*AccessType) UnmarshalJSONPB added in v0.46.0

func (a *AccessType) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

func (*AccessType) UnmarshalText added in v0.46.0

func (a *AccessType) UnmarshalText(text []byte) error

type AccessTypeParam added in v0.46.0

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 added in v0.46.0

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

func (*AccessTypeParam) Equal added in v0.46.0

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

func (*AccessTypeParam) Marshal added in v0.46.0

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

func (*AccessTypeParam) MarshalTo added in v0.46.0

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

func (*AccessTypeParam) MarshalToSizedBuffer added in v0.46.0

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

func (*AccessTypeParam) ProtoMessage added in v0.46.0

func (*AccessTypeParam) ProtoMessage()

func (*AccessTypeParam) Reset added in v0.46.0

func (m *AccessTypeParam) Reset()

func (*AccessTypeParam) Size added in v0.46.0

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

func (*AccessTypeParam) String added in v0.46.0

func (m *AccessTypeParam) String() string

func (*AccessTypeParam) Unmarshal added in v0.46.0

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

func (*AccessTypeParam) XXX_DiscardUnknown added in v0.46.0

func (m *AccessTypeParam) XXX_DiscardUnknown()

func (*AccessTypeParam) XXX_Marshal added in v0.46.0

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

func (*AccessTypeParam) XXX_Merge added in v0.46.0

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

func (*AccessTypeParam) XXX_Size added in v0.46.0

func (m *AccessTypeParam) XXX_Size() int

func (*AccessTypeParam) XXX_Unmarshal added in v0.46.0

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

type CodeInfo added in v0.46.0

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 added in v0.46.0

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

func (*CodeInfo) Equal added in v0.46.0

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

func (*CodeInfo) Marshal added in v0.46.0

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

func (*CodeInfo) MarshalTo added in v0.46.0

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

func (*CodeInfo) MarshalToSizedBuffer added in v0.46.0

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

func (*CodeInfo) ProtoMessage added in v0.46.0

func (*CodeInfo) ProtoMessage()

func (*CodeInfo) Reset added in v0.46.0

func (m *CodeInfo) Reset()

func (*CodeInfo) Size added in v0.46.0

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

func (*CodeInfo) String added in v0.46.0

func (m *CodeInfo) String() string

func (*CodeInfo) Unmarshal added in v0.46.0

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

func (*CodeInfo) XXX_DiscardUnknown added in v0.46.0

func (m *CodeInfo) XXX_DiscardUnknown()

func (*CodeInfo) XXX_Marshal added in v0.46.0

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

func (*CodeInfo) XXX_Merge added in v0.46.0

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

func (*CodeInfo) XXX_Size added in v0.46.0

func (m *CodeInfo) XXX_Size() int

func (*CodeInfo) XXX_Unmarshal added in v0.46.0

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

type Params added in v0.46.0

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 added in v0.46.0

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

func (*Params) Equal added in v0.46.0

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

func (*Params) Marshal added in v0.46.0

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

func (*Params) MarshalTo added in v0.46.0

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

func (*Params) MarshalToSizedBuffer added in v0.46.0

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

func (*Params) ParamSetPairs added in v0.46.0

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage added in v0.46.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.46.0

func (m *Params) Reset()

func (*Params) Size added in v0.46.0

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

func (Params) String added in v0.46.0

func (p Params) String() string

func (*Params) Unmarshal added in v0.46.0

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

func (*Params) XXX_DiscardUnknown added in v0.46.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.46.0

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

func (*Params) XXX_Merge added in v0.46.0

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

func (*Params) XXX_Size added in v0.46.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.46.0

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

Jump to

Keyboard shortcuts

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