perm

package
v0.0.0-...-f5d8f09 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the perm module
	ModuleName             = "perm"
	TypeMsgAssignRoles     = "assign_roles"     // type for MsgAssignRoles
	TypeMsgUnassignRoles   = "unassign_roles"   // type for MsgUnassignRoles
	TypeMsgBlockAccount    = "block_account"    // type for MsgBlockAccount
	TypeMsgUnblockAccount  = "unblock_account"  // type for MsgUnblockAccount
	TypeMsgBlockContract   = "block_contract"   // type for MsgBlockContract
	TypeMsgUnblockContract = "unblock_contract" // type for MsgUnblockContract
)
View Source
const CodeSpace = ModuleName

Variables

View Source
var (
	ErrQueryAddress  = sdk.Wrapf(CodeSpace, 1, "query address error")
	ErrBuildAndSend  = sdk.Wrapf(CodeSpace, 2, "BuildAndSend error")
	ErrGenConn       = sdk.Wrapf(CodeSpace, 3, "generate conn error")
	ErrBench32       = sdk.Wrapf(CodeSpace, 4, "err bench32")
	ErrHexAddr       = sdk.Wrapf(CodeSpace, 5, "err hex address")
	ErrQueryPerm     = sdk.Wrapf(CodeSpace, 6, "query perm fail")
	ErrValidateBasic = sdk.Wrapf(CodeSpace, 7, "ValidateBasic fail")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var Role_name = map[int32]string{
	0: "ROOT_ADMIN",
	1: "PERM_ADMIN",
	2: "BLACKLIST_ADMIN",
	3: "NODE_ADMIN",
	4: "PARAM_ADMIN",
	5: "POWER_USER",
	6: "RELAYER_USER",
	7: "ID_ADMIN",
	8: "BASE_M1_ADMIN",
	9: "PLATFORM_USER",
}
View Source
var Role_value = map[string]int32{
	"ROOT_ADMIN":      0,
	"PERM_ADMIN":      1,
	"BLACKLIST_ADMIN": 2,
	"NODE_ADMIN":      3,
	"PARAM_ADMIN":     4,
	"POWER_USER":      5,
	"RELAYER_USER":    6,
	"ID_ADMIN":        7,
	"BASE_M1_ADMIN":   8,
	"PLATFORM_USER":   9,
}

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Client

type Client interface {
	sdk.Module

	AssignRoles(address string, roles []Role, baseTx sdk.BaseTx) (sdk.ResultTx, error)
	UnassignRoles(address string, roles []Role, baseTx sdk.BaseTx) (sdk.ResultTx, error)
	BlockAccount(address string, baseTx sdk.BaseTx) (sdk.ResultTx, error)
	UnblockAccount(address string, baseTx sdk.BaseTx) (sdk.ResultTx, error)
	BlockContract(address string, baseTx sdk.BaseTx) (sdk.ResultTx, error)
	UnblockContract(address string, baseTx sdk.BaseTx) (sdk.ResultTx, error)

	QueryRoles(address string) ([]Role, error)
	QueryAccountBlockList() ([]string, error)
	QueryContractDenyList() ([]string, error)
}

Client export a group api for Admin module

func NewClient

func NewClient(bc sdk.BaseClient, cdc codec.Marshaler) Client

type MsgAssignRoles

type MsgAssignRoles struct {
	Address  string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Roles    []Role `protobuf:"varint,2,rep,packed,name=roles,proto3,enum=iritamod.perm.Role" json:"roles,omitempty"`
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgAssignRoles defines an SDK message for assigning roles to an address.

func (*MsgAssignRoles) Descriptor

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

func (*MsgAssignRoles) Equal

func (this *MsgAssignRoles) Equal(that interface{}) bool

func (MsgAssignRoles) GetSignBytes

func (m MsgAssignRoles) GetSignBytes() []byte

func (MsgAssignRoles) GetSigners

func (m MsgAssignRoles) GetSigners() []sdk.AccAddress

func (*MsgAssignRoles) Marshal

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

func (*MsgAssignRoles) MarshalTo

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

func (*MsgAssignRoles) MarshalToSizedBuffer

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

func (*MsgAssignRoles) ProtoMessage

func (*MsgAssignRoles) ProtoMessage()

func (*MsgAssignRoles) Reset

func (m *MsgAssignRoles) Reset()

func (MsgAssignRoles) Route

func (m MsgAssignRoles) Route() string

func (*MsgAssignRoles) Size

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

func (*MsgAssignRoles) String

func (m *MsgAssignRoles) String() string

func (MsgAssignRoles) Type

func (m MsgAssignRoles) Type() string

func (*MsgAssignRoles) Unmarshal

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

func (MsgAssignRoles) ValidateBasic

func (m MsgAssignRoles) ValidateBasic() error

func (*MsgAssignRoles) XXX_DiscardUnknown

func (m *MsgAssignRoles) XXX_DiscardUnknown()

func (*MsgAssignRoles) XXX_Marshal

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

func (*MsgAssignRoles) XXX_Merge

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

func (*MsgAssignRoles) XXX_Size

func (m *MsgAssignRoles) XXX_Size() int

func (*MsgAssignRoles) XXX_Unmarshal

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

type MsgAssignRolesResponse

type MsgAssignRolesResponse struct {
}

MsgAssignRolesResponse defines the Msg/AssignRoles response type.

func (*MsgAssignRolesResponse) Descriptor

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

func (*MsgAssignRolesResponse) Marshal

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

func (*MsgAssignRolesResponse) MarshalTo

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

func (*MsgAssignRolesResponse) MarshalToSizedBuffer

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

func (*MsgAssignRolesResponse) ProtoMessage

func (*MsgAssignRolesResponse) ProtoMessage()

func (*MsgAssignRolesResponse) Reset

func (m *MsgAssignRolesResponse) Reset()

func (*MsgAssignRolesResponse) Size

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

func (*MsgAssignRolesResponse) String

func (m *MsgAssignRolesResponse) String() string

func (*MsgAssignRolesResponse) Unmarshal

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

func (*MsgAssignRolesResponse) XXX_DiscardUnknown

func (m *MsgAssignRolesResponse) XXX_DiscardUnknown()

func (*MsgAssignRolesResponse) XXX_Marshal

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

func (*MsgAssignRolesResponse) XXX_Merge

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

func (*MsgAssignRolesResponse) XXX_Size

func (m *MsgAssignRolesResponse) XXX_Size() int

func (*MsgAssignRolesResponse) XXX_Unmarshal

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

type MsgBlockAccount

type MsgBlockAccount struct {
	Address  string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgBlockAccount defines an SDK message for blocking an account.

func (*MsgBlockAccount) Descriptor

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

func (*MsgBlockAccount) Equal

func (this *MsgBlockAccount) Equal(that interface{}) bool

func (MsgBlockAccount) GetSignBytes

func (m MsgBlockAccount) GetSignBytes() []byte

func (MsgBlockAccount) GetSigners

func (m MsgBlockAccount) GetSigners() []sdk.AccAddress

func (*MsgBlockAccount) Marshal

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

func (*MsgBlockAccount) MarshalTo

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

func (*MsgBlockAccount) MarshalToSizedBuffer

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

func (*MsgBlockAccount) ProtoMessage

func (*MsgBlockAccount) ProtoMessage()

func (*MsgBlockAccount) Reset

func (m *MsgBlockAccount) Reset()

func (MsgBlockAccount) Route

func (m MsgBlockAccount) Route() string

func (*MsgBlockAccount) Size

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

func (*MsgBlockAccount) String

func (m *MsgBlockAccount) String() string

func (MsgBlockAccount) Type

func (m MsgBlockAccount) Type() string

func (*MsgBlockAccount) Unmarshal

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

func (MsgBlockAccount) ValidateBasic

func (m MsgBlockAccount) ValidateBasic() error

func (*MsgBlockAccount) XXX_DiscardUnknown

func (m *MsgBlockAccount) XXX_DiscardUnknown()

func (*MsgBlockAccount) XXX_Marshal

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

func (*MsgBlockAccount) XXX_Merge

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

func (*MsgBlockAccount) XXX_Size

func (m *MsgBlockAccount) XXX_Size() int

func (*MsgBlockAccount) XXX_Unmarshal

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

type MsgBlockAccountResponse

type MsgBlockAccountResponse struct {
}

MsgBlockAccountResponse defines the Msg/BlockAccount response type.

func (*MsgBlockAccountResponse) Descriptor

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

func (*MsgBlockAccountResponse) Marshal

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

func (*MsgBlockAccountResponse) MarshalTo

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

func (*MsgBlockAccountResponse) MarshalToSizedBuffer

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

func (*MsgBlockAccountResponse) ProtoMessage

func (*MsgBlockAccountResponse) ProtoMessage()

func (*MsgBlockAccountResponse) Reset

func (m *MsgBlockAccountResponse) Reset()

func (*MsgBlockAccountResponse) Size

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

func (*MsgBlockAccountResponse) String

func (m *MsgBlockAccountResponse) String() string

func (*MsgBlockAccountResponse) Unmarshal

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

func (*MsgBlockAccountResponse) XXX_DiscardUnknown

func (m *MsgBlockAccountResponse) XXX_DiscardUnknown()

func (*MsgBlockAccountResponse) XXX_Marshal

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

func (*MsgBlockAccountResponse) XXX_Merge

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

func (*MsgBlockAccountResponse) XXX_Size

func (m *MsgBlockAccountResponse) XXX_Size() int

func (*MsgBlockAccountResponse) XXX_Unmarshal

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

type MsgBlockContract

type MsgBlockContract struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Operator        string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgBlockContract defines an SDK message for blocking an contract.

func (*MsgBlockContract) Descriptor

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

func (*MsgBlockContract) Equal

func (this *MsgBlockContract) Equal(that interface{}) bool

func (MsgBlockContract) GetSignBytes

func (m MsgBlockContract) GetSignBytes() []byte

func (MsgBlockContract) GetSigners

func (m MsgBlockContract) GetSigners() []sdk.AccAddress

func (*MsgBlockContract) Marshal

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

func (*MsgBlockContract) MarshalTo

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

func (*MsgBlockContract) MarshalToSizedBuffer

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

func (*MsgBlockContract) ProtoMessage

func (*MsgBlockContract) ProtoMessage()

func (*MsgBlockContract) Reset

func (m *MsgBlockContract) Reset()

func (MsgBlockContract) Route

func (m MsgBlockContract) Route() string

func (*MsgBlockContract) Size

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

func (*MsgBlockContract) String

func (m *MsgBlockContract) String() string

func (MsgBlockContract) Type

func (m MsgBlockContract) Type() string

func (*MsgBlockContract) Unmarshal

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

func (MsgBlockContract) ValidateBasic

func (m MsgBlockContract) ValidateBasic() error

func (*MsgBlockContract) XXX_DiscardUnknown

func (m *MsgBlockContract) XXX_DiscardUnknown()

func (*MsgBlockContract) XXX_Marshal

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

func (*MsgBlockContract) XXX_Merge

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

func (*MsgBlockContract) XXX_Size

func (m *MsgBlockContract) XXX_Size() int

func (*MsgBlockContract) XXX_Unmarshal

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

type MsgBlockContractResponse

type MsgBlockContractResponse struct {
}

MsgBlockContractResponse defines the Msg/MsgBlockContract response type.

func (*MsgBlockContractResponse) Descriptor

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

func (*MsgBlockContractResponse) Marshal

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

func (*MsgBlockContractResponse) MarshalTo

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

func (*MsgBlockContractResponse) MarshalToSizedBuffer

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

func (*MsgBlockContractResponse) ProtoMessage

func (*MsgBlockContractResponse) ProtoMessage()

func (*MsgBlockContractResponse) Reset

func (m *MsgBlockContractResponse) Reset()

func (*MsgBlockContractResponse) Size

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

func (*MsgBlockContractResponse) String

func (m *MsgBlockContractResponse) String() string

func (*MsgBlockContractResponse) Unmarshal

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

func (*MsgBlockContractResponse) XXX_DiscardUnknown

func (m *MsgBlockContractResponse) XXX_DiscardUnknown()

func (*MsgBlockContractResponse) XXX_Marshal

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

func (*MsgBlockContractResponse) XXX_Merge

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

func (*MsgBlockContractResponse) XXX_Size

func (m *MsgBlockContractResponse) XXX_Size() int

func (*MsgBlockContractResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AssignRoles defines a method for assigning roles for the operator.
	AssignRoles(ctx context.Context, in *MsgAssignRoles, opts ...grpc.CallOption) (*MsgAssignRolesResponse, error)
	// UnassignRoles defines a method for unassigning roles from the operator.
	UnassignRoles(ctx context.Context, in *MsgUnassignRoles, opts ...grpc.CallOption) (*MsgUnassignRolesResponse, error)
	// BlockAccount defines a method for blocking an account
	BlockAccount(ctx context.Context, in *MsgBlockAccount, opts ...grpc.CallOption) (*MsgBlockAccountResponse, error)
	// UnblockAccount defines a method for unblocking a blocked account
	UnblockAccount(ctx context.Context, in *MsgUnblockAccount, opts ...grpc.CallOption) (*MsgUnblockAccountResponse, error)
	// BlockContract defines a method for blocking an contract
	BlockContract(ctx context.Context, in *MsgBlockContract, opts ...grpc.CallOption) (*MsgBlockContractResponse, error)
	// UnblockContract defines a method for unblocking a blocked contract
	UnblockContract(ctx context.Context, in *MsgUnblockContract, opts ...grpc.CallOption) (*MsgUnblockContractResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// AssignRoles defines a method for assigning roles for the operator.
	AssignRoles(context.Context, *MsgAssignRoles) (*MsgAssignRolesResponse, error)
	// UnassignRoles defines a method for unassigning roles from the operator.
	UnassignRoles(context.Context, *MsgUnassignRoles) (*MsgUnassignRolesResponse, error)
	// BlockAccount defines a method for blocking an account
	BlockAccount(context.Context, *MsgBlockAccount) (*MsgBlockAccountResponse, error)
	// UnblockAccount defines a method for unblocking a blocked account
	UnblockAccount(context.Context, *MsgUnblockAccount) (*MsgUnblockAccountResponse, error)
	// BlockContract defines a method for blocking an contract
	BlockContract(context.Context, *MsgBlockContract) (*MsgBlockContractResponse, error)
	// UnblockContract defines a method for unblocking a blocked contract
	UnblockContract(context.Context, *MsgUnblockContract) (*MsgUnblockContractResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnassignRoles

type MsgUnassignRoles struct {
	Address  string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Roles    []Role `protobuf:"varint,2,rep,packed,name=roles,proto3,enum=iritamod.perm.Role" json:"roles,omitempty"`
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgUnassignRoles defines an SDK message for unassigning roles from an address.

func (*MsgUnassignRoles) Descriptor

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

func (*MsgUnassignRoles) Equal

func (this *MsgUnassignRoles) Equal(that interface{}) bool

func (MsgUnassignRoles) GetSignBytes

func (m MsgUnassignRoles) GetSignBytes() []byte

func (MsgUnassignRoles) GetSigners

func (m MsgUnassignRoles) GetSigners() []sdk.AccAddress

func (*MsgUnassignRoles) Marshal

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

func (*MsgUnassignRoles) MarshalTo

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

func (*MsgUnassignRoles) MarshalToSizedBuffer

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

func (*MsgUnassignRoles) ProtoMessage

func (*MsgUnassignRoles) ProtoMessage()

func (*MsgUnassignRoles) Reset

func (m *MsgUnassignRoles) Reset()

func (MsgUnassignRoles) Route

func (m MsgUnassignRoles) Route() string

func (*MsgUnassignRoles) Size

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

func (*MsgUnassignRoles) String

func (m *MsgUnassignRoles) String() string

func (MsgUnassignRoles) Type

func (m MsgUnassignRoles) Type() string

func (*MsgUnassignRoles) Unmarshal

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

func (MsgUnassignRoles) ValidateBasic

func (m MsgUnassignRoles) ValidateBasic() error

func (*MsgUnassignRoles) XXX_DiscardUnknown

func (m *MsgUnassignRoles) XXX_DiscardUnknown()

func (*MsgUnassignRoles) XXX_Marshal

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

func (*MsgUnassignRoles) XXX_Merge

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

func (*MsgUnassignRoles) XXX_Size

func (m *MsgUnassignRoles) XXX_Size() int

func (*MsgUnassignRoles) XXX_Unmarshal

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

type MsgUnassignRolesResponse

type MsgUnassignRolesResponse struct {
}

MsgUnassignRolesResponse defines the Msg/UnassignRoles response type.

func (*MsgUnassignRolesResponse) Descriptor

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

func (*MsgUnassignRolesResponse) Marshal

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

func (*MsgUnassignRolesResponse) MarshalTo

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

func (*MsgUnassignRolesResponse) MarshalToSizedBuffer

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

func (*MsgUnassignRolesResponse) ProtoMessage

func (*MsgUnassignRolesResponse) ProtoMessage()

func (*MsgUnassignRolesResponse) Reset

func (m *MsgUnassignRolesResponse) Reset()

func (*MsgUnassignRolesResponse) Size

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

func (*MsgUnassignRolesResponse) String

func (m *MsgUnassignRolesResponse) String() string

func (*MsgUnassignRolesResponse) Unmarshal

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

func (*MsgUnassignRolesResponse) XXX_DiscardUnknown

func (m *MsgUnassignRolesResponse) XXX_DiscardUnknown()

func (*MsgUnassignRolesResponse) XXX_Marshal

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

func (*MsgUnassignRolesResponse) XXX_Merge

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

func (*MsgUnassignRolesResponse) XXX_Size

func (m *MsgUnassignRolesResponse) XXX_Size() int

func (*MsgUnassignRolesResponse) XXX_Unmarshal

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

type MsgUnblockAccount

type MsgUnblockAccount struct {
	Address  string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgUnblockAccount defines an SDK message for unblocking an account.

func (*MsgUnblockAccount) Descriptor

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

func (*MsgUnblockAccount) Equal

func (this *MsgUnblockAccount) Equal(that interface{}) bool

func (MsgUnblockAccount) GetSignBytes

func (m MsgUnblockAccount) GetSignBytes() []byte

func (MsgUnblockAccount) GetSigners

func (m MsgUnblockAccount) GetSigners() []sdk.AccAddress

func (*MsgUnblockAccount) Marshal

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

func (*MsgUnblockAccount) MarshalTo

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

func (*MsgUnblockAccount) MarshalToSizedBuffer

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

func (*MsgUnblockAccount) ProtoMessage

func (*MsgUnblockAccount) ProtoMessage()

func (*MsgUnblockAccount) Reset

func (m *MsgUnblockAccount) Reset()

func (MsgUnblockAccount) Route

func (m MsgUnblockAccount) Route() string

func (*MsgUnblockAccount) Size

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

func (*MsgUnblockAccount) String

func (m *MsgUnblockAccount) String() string

func (MsgUnblockAccount) Type

func (m MsgUnblockAccount) Type() string

func (*MsgUnblockAccount) Unmarshal

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

func (MsgUnblockAccount) ValidateBasic

func (m MsgUnblockAccount) ValidateBasic() error

func (*MsgUnblockAccount) XXX_DiscardUnknown

func (m *MsgUnblockAccount) XXX_DiscardUnknown()

func (*MsgUnblockAccount) XXX_Marshal

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

func (*MsgUnblockAccount) XXX_Merge

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

func (*MsgUnblockAccount) XXX_Size

func (m *MsgUnblockAccount) XXX_Size() int

func (*MsgUnblockAccount) XXX_Unmarshal

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

type MsgUnblockAccountResponse

type MsgUnblockAccountResponse struct {
}

MsgUnblockAccountResponse defines the Msg/UnblockAccount response type.

func (*MsgUnblockAccountResponse) Descriptor

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

func (*MsgUnblockAccountResponse) Marshal

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

func (*MsgUnblockAccountResponse) MarshalTo

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

func (*MsgUnblockAccountResponse) MarshalToSizedBuffer

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

func (*MsgUnblockAccountResponse) ProtoMessage

func (*MsgUnblockAccountResponse) ProtoMessage()

func (*MsgUnblockAccountResponse) Reset

func (m *MsgUnblockAccountResponse) Reset()

func (*MsgUnblockAccountResponse) Size

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

func (*MsgUnblockAccountResponse) String

func (m *MsgUnblockAccountResponse) String() string

func (*MsgUnblockAccountResponse) Unmarshal

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

func (*MsgUnblockAccountResponse) XXX_DiscardUnknown

func (m *MsgUnblockAccountResponse) XXX_DiscardUnknown()

func (*MsgUnblockAccountResponse) XXX_Marshal

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

func (*MsgUnblockAccountResponse) XXX_Merge

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

func (*MsgUnblockAccountResponse) XXX_Size

func (m *MsgUnblockAccountResponse) XXX_Size() int

func (*MsgUnblockAccountResponse) XXX_Unmarshal

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

type MsgUnblockContract

type MsgUnblockContract struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Operator        string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgUnblockContract defines an SDK message for unblocking an contract.

func (*MsgUnblockContract) Descriptor

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

func (*MsgUnblockContract) Equal

func (this *MsgUnblockContract) Equal(that interface{}) bool

func (MsgUnblockContract) GetSignBytes

func (m MsgUnblockContract) GetSignBytes() []byte

func (MsgUnblockContract) GetSigners

func (m MsgUnblockContract) GetSigners() []sdk.AccAddress

func (*MsgUnblockContract) Marshal

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

func (*MsgUnblockContract) MarshalTo

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

func (*MsgUnblockContract) MarshalToSizedBuffer

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

func (*MsgUnblockContract) ProtoMessage

func (*MsgUnblockContract) ProtoMessage()

func (*MsgUnblockContract) Reset

func (m *MsgUnblockContract) Reset()

func (MsgUnblockContract) Route

func (m MsgUnblockContract) Route() string

func (*MsgUnblockContract) Size

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

func (*MsgUnblockContract) String

func (m *MsgUnblockContract) String() string

func (MsgUnblockContract) Type

func (m MsgUnblockContract) Type() string

func (*MsgUnblockContract) Unmarshal

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

func (MsgUnblockContract) ValidateBasic

func (m MsgUnblockContract) ValidateBasic() error

func (*MsgUnblockContract) XXX_DiscardUnknown

func (m *MsgUnblockContract) XXX_DiscardUnknown()

func (*MsgUnblockContract) XXX_Marshal

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

func (*MsgUnblockContract) XXX_Merge

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

func (*MsgUnblockContract) XXX_Size

func (m *MsgUnblockContract) XXX_Size() int

func (*MsgUnblockContract) XXX_Unmarshal

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

type MsgUnblockContractResponse

type MsgUnblockContractResponse struct {
}

MsgUnblockAccountResponse defines the Msg/MsgUnblockContract response type.

func (*MsgUnblockContractResponse) Descriptor

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

func (*MsgUnblockContractResponse) Marshal

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

func (*MsgUnblockContractResponse) MarshalTo

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

func (*MsgUnblockContractResponse) MarshalToSizedBuffer

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

func (*MsgUnblockContractResponse) ProtoMessage

func (*MsgUnblockContractResponse) ProtoMessage()

func (*MsgUnblockContractResponse) Reset

func (m *MsgUnblockContractResponse) Reset()

func (*MsgUnblockContractResponse) Size

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

func (*MsgUnblockContractResponse) String

func (m *MsgUnblockContractResponse) String() string

func (*MsgUnblockContractResponse) Unmarshal

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

func (*MsgUnblockContractResponse) XXX_DiscardUnknown

func (m *MsgUnblockContractResponse) XXX_DiscardUnknown()

func (*MsgUnblockContractResponse) XXX_Marshal

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

func (*MsgUnblockContractResponse) XXX_Merge

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

func (*MsgUnblockContractResponse) XXX_Size

func (m *MsgUnblockContractResponse) XXX_Size() int

func (*MsgUnblockContractResponse) XXX_Unmarshal

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

type QueryBlockListRequest

type QueryBlockListRequest struct {
}

QueryBlacklistRequest is request type for the Query/Blacklist RPC method

func (*QueryBlockListRequest) Descriptor

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

func (*QueryBlockListRequest) Marshal

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

func (*QueryBlockListRequest) MarshalTo

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

func (*QueryBlockListRequest) MarshalToSizedBuffer

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

func (*QueryBlockListRequest) ProtoMessage

func (*QueryBlockListRequest) ProtoMessage()

func (*QueryBlockListRequest) Reset

func (m *QueryBlockListRequest) Reset()

func (*QueryBlockListRequest) Size

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

func (*QueryBlockListRequest) String

func (m *QueryBlockListRequest) String() string

func (*QueryBlockListRequest) Unmarshal

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

func (*QueryBlockListRequest) XXX_DiscardUnknown

func (m *QueryBlockListRequest) XXX_DiscardUnknown()

func (*QueryBlockListRequest) XXX_Marshal

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

func (*QueryBlockListRequest) XXX_Merge

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

func (*QueryBlockListRequest) XXX_Size

func (m *QueryBlockListRequest) XXX_Size() int

func (*QueryBlockListRequest) XXX_Unmarshal

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

type QueryBlockListResponse

type QueryBlockListResponse struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

QueryBlacklistResponse is response type for the Query/Blacklist RPC method

func (*QueryBlockListResponse) Descriptor

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

func (*QueryBlockListResponse) GetAddresses

func (m *QueryBlockListResponse) GetAddresses() []string

func (*QueryBlockListResponse) Marshal

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

func (*QueryBlockListResponse) MarshalTo

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

func (*QueryBlockListResponse) MarshalToSizedBuffer

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

func (*QueryBlockListResponse) ProtoMessage

func (*QueryBlockListResponse) ProtoMessage()

func (*QueryBlockListResponse) Reset

func (m *QueryBlockListResponse) Reset()

func (*QueryBlockListResponse) Size

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

func (*QueryBlockListResponse) String

func (m *QueryBlockListResponse) String() string

func (*QueryBlockListResponse) Unmarshal

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

func (*QueryBlockListResponse) XXX_DiscardUnknown

func (m *QueryBlockListResponse) XXX_DiscardUnknown()

func (*QueryBlockListResponse) XXX_Marshal

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

func (*QueryBlockListResponse) XXX_Merge

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

func (*QueryBlockListResponse) XXX_Size

func (m *QueryBlockListResponse) XXX_Size() int

func (*QueryBlockListResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Roles queries the roles of a given address
	Roles(ctx context.Context, in *QueryRolesRequest, opts ...grpc.CallOption) (*QueryRolesResponse, error)
	// Blacklist queries the black list
	AccountBlockList(ctx context.Context, in *QueryBlockListRequest, opts ...grpc.CallOption) (*QueryBlockListResponse, error)
	// ContractDenyList queries the contract deny list
	ContractDenyList(ctx context.Context, in *QueryContractDenyList, opts ...grpc.CallOption) (*QueryContractDenyListResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryContractDenyList

type QueryContractDenyList struct {
}

QueryBlacklistRequest is request type for the Query/Blacklist RPC method

func (*QueryContractDenyList) Descriptor

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

func (*QueryContractDenyList) Marshal

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

func (*QueryContractDenyList) MarshalTo

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

func (*QueryContractDenyList) MarshalToSizedBuffer

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

func (*QueryContractDenyList) ProtoMessage

func (*QueryContractDenyList) ProtoMessage()

func (*QueryContractDenyList) Reset

func (m *QueryContractDenyList) Reset()

func (*QueryContractDenyList) Size

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

func (*QueryContractDenyList) String

func (m *QueryContractDenyList) String() string

func (*QueryContractDenyList) Unmarshal

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

func (*QueryContractDenyList) XXX_DiscardUnknown

func (m *QueryContractDenyList) XXX_DiscardUnknown()

func (*QueryContractDenyList) XXX_Marshal

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

func (*QueryContractDenyList) XXX_Merge

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

func (*QueryContractDenyList) XXX_Size

func (m *QueryContractDenyList) XXX_Size() int

func (*QueryContractDenyList) XXX_Unmarshal

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

type QueryContractDenyListResponse

type QueryContractDenyListResponse struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

QueryBlacklistResponse is response type for the Query/Blacklist RPC method

func (*QueryContractDenyListResponse) Descriptor

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

func (*QueryContractDenyListResponse) GetAddresses

func (m *QueryContractDenyListResponse) GetAddresses() []string

func (*QueryContractDenyListResponse) Marshal

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

func (*QueryContractDenyListResponse) MarshalTo

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

func (*QueryContractDenyListResponse) MarshalToSizedBuffer

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

func (*QueryContractDenyListResponse) ProtoMessage

func (*QueryContractDenyListResponse) ProtoMessage()

func (*QueryContractDenyListResponse) Reset

func (m *QueryContractDenyListResponse) Reset()

func (*QueryContractDenyListResponse) Size

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

func (*QueryContractDenyListResponse) String

func (*QueryContractDenyListResponse) Unmarshal

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

func (*QueryContractDenyListResponse) XXX_DiscardUnknown

func (m *QueryContractDenyListResponse) XXX_DiscardUnknown()

func (*QueryContractDenyListResponse) XXX_Marshal

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

func (*QueryContractDenyListResponse) XXX_Merge

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

func (*QueryContractDenyListResponse) XXX_Size

func (m *QueryContractDenyListResponse) XXX_Size() int

func (*QueryContractDenyListResponse) XXX_Unmarshal

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

type QueryRolesRequest

type QueryRolesRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryRolesRequest is request type for the Query/Roles RPC method

func (*QueryRolesRequest) Descriptor

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

func (*QueryRolesRequest) GetAddress

func (m *QueryRolesRequest) GetAddress() string

func (*QueryRolesRequest) Marshal

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

func (*QueryRolesRequest) MarshalTo

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

func (*QueryRolesRequest) MarshalToSizedBuffer

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

func (*QueryRolesRequest) ProtoMessage

func (*QueryRolesRequest) ProtoMessage()

func (*QueryRolesRequest) Reset

func (m *QueryRolesRequest) Reset()

func (*QueryRolesRequest) Size

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

func (*QueryRolesRequest) String

func (m *QueryRolesRequest) String() string

func (*QueryRolesRequest) Unmarshal

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

func (*QueryRolesRequest) XXX_DiscardUnknown

func (m *QueryRolesRequest) XXX_DiscardUnknown()

func (*QueryRolesRequest) XXX_Marshal

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

func (*QueryRolesRequest) XXX_Merge

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

func (*QueryRolesRequest) XXX_Size

func (m *QueryRolesRequest) XXX_Size() int

func (*QueryRolesRequest) XXX_Unmarshal

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

type QueryRolesResponse

type QueryRolesResponse struct {
	Roles []Role `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=iritamod.perm.Role" json:"roles,omitempty"`
}

QueryRolesResponse is response type for the Query/Roles RPC method

func (*QueryRolesResponse) Descriptor

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

func (*QueryRolesResponse) GetRoles

func (m *QueryRolesResponse) GetRoles() []Role

func (*QueryRolesResponse) Marshal

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

func (*QueryRolesResponse) MarshalTo

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

func (*QueryRolesResponse) MarshalToSizedBuffer

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

func (*QueryRolesResponse) ProtoMessage

func (*QueryRolesResponse) ProtoMessage()

func (*QueryRolesResponse) Reset

func (m *QueryRolesResponse) Reset()

func (*QueryRolesResponse) Size

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

func (*QueryRolesResponse) String

func (m *QueryRolesResponse) String() string

func (*QueryRolesResponse) Unmarshal

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

func (*QueryRolesResponse) XXX_DiscardUnknown

func (m *QueryRolesResponse) XXX_DiscardUnknown()

func (*QueryRolesResponse) XXX_Marshal

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

func (*QueryRolesResponse) XXX_Merge

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

func (*QueryRolesResponse) XXX_Size

func (m *QueryRolesResponse) XXX_Size() int

func (*QueryRolesResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Roles queries the roles of a given address
	Roles(context.Context, *QueryRolesRequest) (*QueryRolesResponse, error)
	// Blacklist queries the black list
	AccountBlockList(context.Context, *QueryBlockListRequest) (*QueryBlockListResponse, error)
	// ContractDenyList queries the contract deny list
	ContractDenyList(context.Context, *QueryContractDenyList) (*QueryContractDenyListResponse, error)
}

QueryServer is the server API for Query service.

type Role

type Role int32

Role represents a role

const (
	// ROOT_ADMIN defines the root admin role index.
	RoleRootAdmin Role = 0
	// PERM_ADMIN defines the permission admin role index.
	RolePermAdmin Role = 1
	// BLACKLIST_ADMIN defines the blacklist admin role index.
	RoleBlacklistAdmin Role = 2
	// NODE_ADMIN defines the node admin role index.
	RoleNodeAdmin Role = 3
	// PARAM_ADMIN defines the param admin role index.
	RoleParamAdmin Role = 4
	// POWER_USER defines the power user role index.
	RolePowerUser Role = 5
	// RELAYER_USER defines the relayer user role index.
	RoleRelayerUser Role = 6
	// ID_ADMIN defines the identity admin role index.
	RoleIDAdmin Role = 7
	// BASE_M1_ADMIN defines the base M1 admin role index.
	RoleBaseM1Admin Role = 8
	// Chain_Account_Role defines the platform admin role index.
	RolePlatformUser Role = 9
)

func (Role) EnumDescriptor

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

func (Role) Marshal

func (r Role) Marshal() ([]byte, error)

Marshal needed for protobuf compatibility

func (Role) MarshalJSON

func (r Role) MarshalJSON() ([]byte, error)

MarshalJSON Marshals to JSON using string representation of the status

func (Role) String

func (x Role) String() string

func (*Role) Unmarshal

func (r *Role) Unmarshal(data []byte) error

Unmarshal needed for protobuf compatibility

func (*Role) UnmarshalJSON

func (r *Role) UnmarshalJSON(data []byte) error

UnmarshalJSON Unmarshals from JSON assuming Bech32 encoding

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AssignRoles

func (*UnimplementedMsgServer) BlockAccount

func (*UnimplementedMsgServer) BlockContract

func (*UnimplementedMsgServer) UnassignRoles

func (*UnimplementedMsgServer) UnblockAccount

func (*UnimplementedMsgServer) UnblockContract

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountBlockList

func (*UnimplementedQueryServer) ContractDenyList

func (*UnimplementedQueryServer) Roles

Jump to

Keyboard shortcuts

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