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 ¶
- Variables
- func MigrateStore(ctx sdk.Context, storeService corestoretypes.KVStoreService, ...) error
- func ParamKeyTable() paramtypes.KeyTabledeprecated
- type AccessConfig
- func (*AccessConfig) Descriptor() ([]byte, []int)
- func (m *AccessConfig) Equal(that interface{}) bool
- func (a AccessConfig) Equals(o AccessConfig) bool
- func (m *AccessConfig) Marshal() (dAtA []byte, err error)
- func (m *AccessConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessConfig) ProtoMessage()
- func (m *AccessConfig) Reset()
- func (m *AccessConfig) Size() (n int)
- func (m *AccessConfig) String() string
- func (m *AccessConfig) Unmarshal(dAtA []byte) error
- func (a AccessConfig) ValidateBasic() error
- func (m *AccessConfig) XXX_DiscardUnknown()
- func (m *AccessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessConfig) XXX_Merge(src proto.Message)
- func (m *AccessConfig) XXX_Size() int
- func (m *AccessConfig) XXX_Unmarshal(b []byte) error
- type AccessType
- func (AccessType) EnumDescriptor() ([]byte, []int)
- func (a *AccessType) MarshalJSONPB(_ *jsonpb.Marshaler) ([]byte, error)
- func (a AccessType) MarshalText() ([]byte, error)
- func (a AccessType) String() string
- func (a *AccessType) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error
- func (a *AccessType) UnmarshalText(text []byte) error
- type AccessTypeParam
- func (*AccessTypeParam) Descriptor() ([]byte, []int)
- func (m *AccessTypeParam) Equal(that interface{}) bool
- func (m *AccessTypeParam) Marshal() (dAtA []byte, err error)
- func (m *AccessTypeParam) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessTypeParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessTypeParam) ProtoMessage()
- func (m *AccessTypeParam) Reset()
- func (m *AccessTypeParam) Size() (n int)
- func (m *AccessTypeParam) String() string
- func (m *AccessTypeParam) Unmarshal(dAtA []byte) error
- func (m *AccessTypeParam) XXX_DiscardUnknown()
- func (m *AccessTypeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessTypeParam) XXX_Merge(src proto.Message)
- func (m *AccessTypeParam) XXX_Size() int
- func (m *AccessTypeParam) XXX_Unmarshal(b []byte) error
- type CodeInfo
- func (*CodeInfo) Descriptor() ([]byte, []int)
- func (m *CodeInfo) Equal(that interface{}) bool
- func (m *CodeInfo) Marshal() (dAtA []byte, err error)
- func (m *CodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CodeInfo) ProtoMessage()
- func (m *CodeInfo) Reset()
- func (m *CodeInfo) Size() (n int)
- func (m *CodeInfo) String() string
- func (m *CodeInfo) Unmarshal(dAtA []byte) error
- func (m *CodeInfo) XXX_DiscardUnknown()
- func (m *CodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CodeInfo) XXX_Merge(src proto.Message)
- func (m *CodeInfo) XXX_Size() int
- func (m *CodeInfo) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ( ParamStoreKeyUploadAccess = []byte("uploadAccess") ParamStoreKeyInstantiateAccess = []byte("instantiateAccess") )
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",
}
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,
}
var AllAccessTypes = []AccessType{ AccessTypeNobody, AccessTypeOnlyAddress, AccessTypeAnyOfAddresses, AccessTypeEverybody, }
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) MarshalToSizedBuffer ¶ added in v0.46.0
func (*CodeInfo) ProtoMessage ¶ added in v0.46.0
func (*CodeInfo) ProtoMessage()
func (*CodeInfo) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *CodeInfo) XXX_DiscardUnknown()
func (*CodeInfo) XXX_Marshal ¶ added in v0.46.0
func (*CodeInfo) XXX_Unmarshal ¶ added in v0.46.0
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) MarshalToSizedBuffer ¶ added in v0.46.0
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) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *Params) XXX_DiscardUnknown()