Documentation ¶
Index ¶
- Variables
- type AccessConfig
- func (*AccessConfig) Descriptor() ([]byte, []int)
- func (m *AccessConfig) Equal(that interface{}) 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 (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
- 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 Migrator
- 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 (*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
- type StoreCodeInfoFn
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) 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) 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) MarshalToSizedBuffer ¶
func (*CodeInfo) ProtoMessage ¶
func (*CodeInfo) ProtoMessage()
func (*CodeInfo) XXX_DiscardUnknown ¶
func (m *CodeInfo) XXX_DiscardUnknown()
func (*CodeInfo) XXX_Marshal ¶
func (*CodeInfo) XXX_Unmarshal ¶
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, storeService corestoretypes.KVStoreService, 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) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.