Documentation ¶
Index ¶
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- type GenericSubspaceAuthorization
- func (a GenericSubspaceAuthorization) Accept(ctx sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
- func (*GenericSubspaceAuthorization) Descriptor() ([]byte, []int)
- func (m *GenericSubspaceAuthorization) GetMsg() string
- func (m *GenericSubspaceAuthorization) GetSubspacesIDs() []uint64
- func (m *GenericSubspaceAuthorization) Marshal() (dAtA []byte, err error)
- func (m *GenericSubspaceAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *GenericSubspaceAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (a GenericSubspaceAuthorization) MsgTypeURL() string
- func (*GenericSubspaceAuthorization) ProtoMessage()
- func (m *GenericSubspaceAuthorization) Reset()
- func (m *GenericSubspaceAuthorization) Size() (n int)
- func (m *GenericSubspaceAuthorization) String() string
- func (m *GenericSubspaceAuthorization) Unmarshal(dAtA []byte) error
- func (a GenericSubspaceAuthorization) ValidateBasic() error
- func (m *GenericSubspaceAuthorization) XXX_DiscardUnknown()
- func (m *GenericSubspaceAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenericSubspaceAuthorization) XXX_Merge(src proto.Message)
- func (m *GenericSubspaceAuthorization) XXX_Size() int
- func (m *GenericSubspaceAuthorization) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
Types ¶
type GenericSubspaceAuthorization ¶
type GenericSubspaceAuthorization struct { // Ids of the subspaces inside which to grant the permission SubspacesIDs []uint64 `protobuf:"varint,1,rep,packed,name=subspaces_ids,json=subspacesIds,proto3" json:"subspaces_ids,omitempty"` // Msg, identified by it's type URL, to grant unrestricted permissions to // execute within the subspace Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
GenericSubspaceAuthorization defines an authorization to perform any operation only inside a specific subspace.
func NewGenericSubspaceAuthorization ¶
func NewGenericSubspaceAuthorization(subspacesIDs []uint64, msgTypeURL string) *GenericSubspaceAuthorization
NewGenericSubspaceAuthorization creates a new GenericSubspaceAuthorization object.
func (GenericSubspaceAuthorization) Accept ¶
func (a GenericSubspaceAuthorization) Accept(ctx sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*GenericSubspaceAuthorization) Descriptor ¶
func (*GenericSubspaceAuthorization) Descriptor() ([]byte, []int)
func (*GenericSubspaceAuthorization) GetMsg ¶
func (m *GenericSubspaceAuthorization) GetMsg() string
func (*GenericSubspaceAuthorization) GetSubspacesIDs ¶
func (m *GenericSubspaceAuthorization) GetSubspacesIDs() []uint64
func (*GenericSubspaceAuthorization) Marshal ¶
func (m *GenericSubspaceAuthorization) Marshal() (dAtA []byte, err error)
func (*GenericSubspaceAuthorization) MarshalTo ¶
func (m *GenericSubspaceAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*GenericSubspaceAuthorization) MarshalToSizedBuffer ¶
func (m *GenericSubspaceAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (GenericSubspaceAuthorization) MsgTypeURL ¶
func (a GenericSubspaceAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (*GenericSubspaceAuthorization) ProtoMessage ¶
func (*GenericSubspaceAuthorization) ProtoMessage()
func (*GenericSubspaceAuthorization) Reset ¶
func (m *GenericSubspaceAuthorization) Reset()
func (*GenericSubspaceAuthorization) Size ¶
func (m *GenericSubspaceAuthorization) Size() (n int)
func (*GenericSubspaceAuthorization) String ¶
func (m *GenericSubspaceAuthorization) String() string
func (*GenericSubspaceAuthorization) Unmarshal ¶
func (m *GenericSubspaceAuthorization) Unmarshal(dAtA []byte) error
func (GenericSubspaceAuthorization) ValidateBasic ¶
func (a GenericSubspaceAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*GenericSubspaceAuthorization) XXX_DiscardUnknown ¶
func (m *GenericSubspaceAuthorization) XXX_DiscardUnknown()
func (*GenericSubspaceAuthorization) XXX_Marshal ¶
func (m *GenericSubspaceAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenericSubspaceAuthorization) XXX_Merge ¶
func (m *GenericSubspaceAuthorization) XXX_Merge(src proto.Message)
func (*GenericSubspaceAuthorization) XXX_Size ¶
func (m *GenericSubspaceAuthorization) XXX_Size() int
func (*GenericSubspaceAuthorization) XXX_Unmarshal ¶
func (m *GenericSubspaceAuthorization) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.