Documentation ¶
Index ¶
- Constants
- Variables
- func Bytes2Hex(d []byte) string
- func CopyBytes(b []byte) (copiedBytes []byte)
- func FromHex(s string) []byte
- func GetAuthKey(addr sdk.AccAddress) []byte
- func GetBlackKey(addr sdk.AccAddress) []byte
- func GetContractDenyListKey(contractAddress Address) []byte
- func Hex2Bytes(str string) []byte
- func Hex2BytesFixed(str string, flen int) []byte
- func IsHexAddress(s string) bool
- func LeftPadBytes(slice []byte, l int) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func RightPadBytes(slice []byte, l int) []byte
- func TrimLeftZeroes(s []byte) []byte
- func TrimRightZeroes(s []byte) []byte
- func ValidRole(role Role) bool
- type Address
- type Auth
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBlackList() []string
- func (m *GenesisState) GetContractDenyList() []string
- func (m *GenesisState) GetRoleAccounts() []RoleAccount
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAssignRoles
- func (*MsgAssignRoles) Descriptor() ([]byte, []int)
- func (this *MsgAssignRoles) Equal(that interface{}) bool
- func (m MsgAssignRoles) GetSignBytes() []byte
- func (m MsgAssignRoles) GetSigners() []sdk.AccAddress
- func (m *MsgAssignRoles) Marshal() (dAtA []byte, err error)
- func (m *MsgAssignRoles) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAssignRoles) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAssignRoles) ProtoMessage()
- func (m *MsgAssignRoles) Reset()
- func (m MsgAssignRoles) Route() string
- func (m *MsgAssignRoles) Size() (n int)
- func (m *MsgAssignRoles) String() string
- func (m MsgAssignRoles) Type() string
- func (m *MsgAssignRoles) Unmarshal(dAtA []byte) error
- func (m MsgAssignRoles) ValidateBasic() error
- func (m *MsgAssignRoles) XXX_DiscardUnknown()
- func (m *MsgAssignRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAssignRoles) XXX_Merge(src proto.Message)
- func (m *MsgAssignRoles) XXX_Size() int
- func (m *MsgAssignRoles) XXX_Unmarshal(b []byte) error
- type MsgAssignRolesResponse
- func (*MsgAssignRolesResponse) Descriptor() ([]byte, []int)
- func (m *MsgAssignRolesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAssignRolesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAssignRolesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAssignRolesResponse) ProtoMessage()
- func (m *MsgAssignRolesResponse) Reset()
- func (m *MsgAssignRolesResponse) Size() (n int)
- func (m *MsgAssignRolesResponse) String() string
- func (m *MsgAssignRolesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAssignRolesResponse) XXX_DiscardUnknown()
- func (m *MsgAssignRolesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAssignRolesResponse) XXX_Merge(src proto.Message)
- func (m *MsgAssignRolesResponse) XXX_Size() int
- func (m *MsgAssignRolesResponse) XXX_Unmarshal(b []byte) error
- type MsgBlockAccount
- func (*MsgBlockAccount) Descriptor() ([]byte, []int)
- func (this *MsgBlockAccount) Equal(that interface{}) bool
- func (m MsgBlockAccount) GetSignBytes() []byte
- func (m MsgBlockAccount) GetSigners() []sdk.AccAddress
- func (m *MsgBlockAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockAccount) ProtoMessage()
- func (m *MsgBlockAccount) Reset()
- func (m MsgBlockAccount) Route() string
- func (m *MsgBlockAccount) Size() (n int)
- func (m *MsgBlockAccount) String() string
- func (m MsgBlockAccount) Type() string
- func (m *MsgBlockAccount) Unmarshal(dAtA []byte) error
- func (m MsgBlockAccount) ValidateBasic() error
- func (m *MsgBlockAccount) XXX_DiscardUnknown()
- func (m *MsgBlockAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockAccount) XXX_Merge(src proto.Message)
- func (m *MsgBlockAccount) XXX_Size() int
- func (m *MsgBlockAccount) XXX_Unmarshal(b []byte) error
- type MsgBlockAccountResponse
- func (*MsgBlockAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgBlockAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockAccountResponse) ProtoMessage()
- func (m *MsgBlockAccountResponse) Reset()
- func (m *MsgBlockAccountResponse) Size() (n int)
- func (m *MsgBlockAccountResponse) String() string
- func (m *MsgBlockAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBlockAccountResponse) XXX_DiscardUnknown()
- func (m *MsgBlockAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgBlockAccountResponse) XXX_Size() int
- func (m *MsgBlockAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgBlockContract
- func (*MsgBlockContract) Descriptor() ([]byte, []int)
- func (this *MsgBlockContract) Equal(that interface{}) bool
- func (m *MsgBlockContract) GetSigners() []sdk.AccAddress
- func (m *MsgBlockContract) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockContract) ProtoMessage()
- func (m *MsgBlockContract) Reset()
- func (m *MsgBlockContract) Size() (n int)
- func (m *MsgBlockContract) String() string
- func (m *MsgBlockContract) Unmarshal(dAtA []byte) error
- func (m MsgBlockContract) ValidateBasic() error
- func (m *MsgBlockContract) XXX_DiscardUnknown()
- func (m *MsgBlockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockContract) XXX_Merge(src proto.Message)
- func (m *MsgBlockContract) XXX_Size() int
- func (m *MsgBlockContract) XXX_Unmarshal(b []byte) error
- type MsgBlockContractResponse
- func (*MsgBlockContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgBlockContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockContractResponse) ProtoMessage()
- func (m *MsgBlockContractResponse) Reset()
- func (m *MsgBlockContractResponse) Size() (n int)
- func (m *MsgBlockContractResponse) String() string
- func (m *MsgBlockContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBlockContractResponse) XXX_DiscardUnknown()
- func (m *MsgBlockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgBlockContractResponse) XXX_Size() int
- func (m *MsgBlockContractResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUnassignRoles
- func (*MsgUnassignRoles) Descriptor() ([]byte, []int)
- func (this *MsgUnassignRoles) Equal(that interface{}) bool
- func (m MsgUnassignRoles) GetSignBytes() []byte
- func (m MsgUnassignRoles) GetSigners() []sdk.AccAddress
- func (m *MsgUnassignRoles) Marshal() (dAtA []byte, err error)
- func (m *MsgUnassignRoles) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnassignRoles) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnassignRoles) ProtoMessage()
- func (m *MsgUnassignRoles) Reset()
- func (m MsgUnassignRoles) Route() string
- func (m *MsgUnassignRoles) Size() (n int)
- func (m *MsgUnassignRoles) String() string
- func (m MsgUnassignRoles) Type() string
- func (m *MsgUnassignRoles) Unmarshal(dAtA []byte) error
- func (m MsgUnassignRoles) ValidateBasic() error
- func (m *MsgUnassignRoles) XXX_DiscardUnknown()
- func (m *MsgUnassignRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnassignRoles) XXX_Merge(src proto.Message)
- func (m *MsgUnassignRoles) XXX_Size() int
- func (m *MsgUnassignRoles) XXX_Unmarshal(b []byte) error
- type MsgUnassignRolesResponse
- func (*MsgUnassignRolesResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnassignRolesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnassignRolesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnassignRolesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnassignRolesResponse) ProtoMessage()
- func (m *MsgUnassignRolesResponse) Reset()
- func (m *MsgUnassignRolesResponse) Size() (n int)
- func (m *MsgUnassignRolesResponse) String() string
- func (m *MsgUnassignRolesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnassignRolesResponse) XXX_DiscardUnknown()
- func (m *MsgUnassignRolesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnassignRolesResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnassignRolesResponse) XXX_Size() int
- func (m *MsgUnassignRolesResponse) XXX_Unmarshal(b []byte) error
- type MsgUnblockAccount
- func (*MsgUnblockAccount) Descriptor() ([]byte, []int)
- func (this *MsgUnblockAccount) Equal(that interface{}) bool
- func (m MsgUnblockAccount) GetSignBytes() []byte
- func (m MsgUnblockAccount) GetSigners() []sdk.AccAddress
- func (m *MsgUnblockAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgUnblockAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnblockAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnblockAccount) ProtoMessage()
- func (m *MsgUnblockAccount) Reset()
- func (m MsgUnblockAccount) Route() string
- func (m *MsgUnblockAccount) Size() (n int)
- func (m *MsgUnblockAccount) String() string
- func (m MsgUnblockAccount) Type() string
- func (m *MsgUnblockAccount) Unmarshal(dAtA []byte) error
- func (m MsgUnblockAccount) ValidateBasic() error
- func (m *MsgUnblockAccount) XXX_DiscardUnknown()
- func (m *MsgUnblockAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnblockAccount) XXX_Merge(src proto.Message)
- func (m *MsgUnblockAccount) XXX_Size() int
- func (m *MsgUnblockAccount) XXX_Unmarshal(b []byte) error
- type MsgUnblockAccountResponse
- func (*MsgUnblockAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnblockAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnblockAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnblockAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnblockAccountResponse) ProtoMessage()
- func (m *MsgUnblockAccountResponse) Reset()
- func (m *MsgUnblockAccountResponse) Size() (n int)
- func (m *MsgUnblockAccountResponse) String() string
- func (m *MsgUnblockAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnblockAccountResponse) XXX_DiscardUnknown()
- func (m *MsgUnblockAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnblockAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnblockAccountResponse) XXX_Size() int
- func (m *MsgUnblockAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgUnblockContract
- func (*MsgUnblockContract) Descriptor() ([]byte, []int)
- func (this *MsgUnblockContract) Equal(that interface{}) bool
- func (m *MsgUnblockContract) GetSigners() []sdk.AccAddress
- func (m *MsgUnblockContract) Marshal() (dAtA []byte, err error)
- func (m *MsgUnblockContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnblockContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnblockContract) ProtoMessage()
- func (m *MsgUnblockContract) Reset()
- func (m *MsgUnblockContract) Size() (n int)
- func (m *MsgUnblockContract) String() string
- func (m *MsgUnblockContract) Unmarshal(dAtA []byte) error
- func (m MsgUnblockContract) ValidateBasic() error
- func (m *MsgUnblockContract) XXX_DiscardUnknown()
- func (m *MsgUnblockContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnblockContract) XXX_Merge(src proto.Message)
- func (m *MsgUnblockContract) XXX_Size() int
- func (m *MsgUnblockContract) XXX_Unmarshal(b []byte) error
- type MsgUnblockContractResponse
- func (*MsgUnblockContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnblockContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnblockContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnblockContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnblockContractResponse) ProtoMessage()
- func (m *MsgUnblockContractResponse) Reset()
- func (m *MsgUnblockContractResponse) Size() (n int)
- func (m *MsgUnblockContractResponse) String() string
- func (m *MsgUnblockContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnblockContractResponse) XXX_DiscardUnknown()
- func (m *MsgUnblockContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnblockContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnblockContractResponse) XXX_Size() int
- func (m *MsgUnblockContractResponse) XXX_Unmarshal(b []byte) error
- type QueryBlacklistParams
- type QueryBlockListRequest
- func (*QueryBlockListRequest) Descriptor() ([]byte, []int)
- func (m *QueryBlockListRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBlockListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBlockListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBlockListRequest) ProtoMessage()
- func (m *QueryBlockListRequest) Reset()
- func (m *QueryBlockListRequest) Size() (n int)
- func (m *QueryBlockListRequest) String() string
- func (m *QueryBlockListRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBlockListRequest) XXX_DiscardUnknown()
- func (m *QueryBlockListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockListRequest) XXX_Merge(src proto.Message)
- func (m *QueryBlockListRequest) XXX_Size() int
- func (m *QueryBlockListRequest) XXX_Unmarshal(b []byte) error
- type QueryBlockListResponse
- func (*QueryBlockListResponse) Descriptor() ([]byte, []int)
- func (m *QueryBlockListResponse) GetAddresses() []string
- func (m *QueryBlockListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBlockListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBlockListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBlockListResponse) ProtoMessage()
- func (m *QueryBlockListResponse) Reset()
- func (m *QueryBlockListResponse) Size() (n int)
- func (m *QueryBlockListResponse) String() string
- func (m *QueryBlockListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBlockListResponse) XXX_DiscardUnknown()
- func (m *QueryBlockListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockListResponse) XXX_Merge(src proto.Message)
- func (m *QueryBlockListResponse) XXX_Size() int
- func (m *QueryBlockListResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryContractDenyList
- func (*QueryContractDenyList) Descriptor() ([]byte, []int)
- func (m *QueryContractDenyList) Marshal() (dAtA []byte, err error)
- func (m *QueryContractDenyList) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractDenyList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractDenyList) ProtoMessage()
- func (m *QueryContractDenyList) Reset()
- func (m *QueryContractDenyList) Size() (n int)
- func (m *QueryContractDenyList) String() string
- func (m *QueryContractDenyList) Unmarshal(dAtA []byte) error
- func (m *QueryContractDenyList) XXX_DiscardUnknown()
- func (m *QueryContractDenyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractDenyList) XXX_Merge(src proto.Message)
- func (m *QueryContractDenyList) XXX_Size() int
- func (m *QueryContractDenyList) XXX_Unmarshal(b []byte) error
- type QueryContractDenyListResponse
- func (*QueryContractDenyListResponse) Descriptor() ([]byte, []int)
- func (m *QueryContractDenyListResponse) GetAddresses() []string
- func (m *QueryContractDenyListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractDenyListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractDenyListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractDenyListResponse) ProtoMessage()
- func (m *QueryContractDenyListResponse) Reset()
- func (m *QueryContractDenyListResponse) Size() (n int)
- func (m *QueryContractDenyListResponse) String() string
- func (m *QueryContractDenyListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractDenyListResponse) XXX_DiscardUnknown()
- func (m *QueryContractDenyListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractDenyListResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractDenyListResponse) XXX_Size() int
- func (m *QueryContractDenyListResponse) XXX_Unmarshal(b []byte) error
- type QueryRolesParams
- type QueryRolesRequest
- func (*QueryRolesRequest) Descriptor() ([]byte, []int)
- func (m *QueryRolesRequest) GetAddress() string
- func (m *QueryRolesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRolesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRolesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRolesRequest) ProtoMessage()
- func (m *QueryRolesRequest) Reset()
- func (m *QueryRolesRequest) Size() (n int)
- func (m *QueryRolesRequest) String() string
- func (m *QueryRolesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRolesRequest) XXX_DiscardUnknown()
- func (m *QueryRolesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRolesRequest) XXX_Merge(src proto.Message)
- func (m *QueryRolesRequest) XXX_Size() int
- func (m *QueryRolesRequest) XXX_Unmarshal(b []byte) error
- type QueryRolesResponse
- func (*QueryRolesResponse) Descriptor() ([]byte, []int)
- func (m *QueryRolesResponse) GetRoles() []Role
- func (m *QueryRolesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRolesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRolesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRolesResponse) ProtoMessage()
- func (m *QueryRolesResponse) Reset()
- func (m *QueryRolesResponse) Size() (n int)
- func (m *QueryRolesResponse) String() string
- func (m *QueryRolesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRolesResponse) XXX_DiscardUnknown()
- func (m *QueryRolesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRolesResponse) XXX_Merge(src proto.Message)
- func (m *QueryRolesResponse) XXX_Size() int
- func (m *QueryRolesResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Role
- type RoleAccount
- func (*RoleAccount) Descriptor() ([]byte, []int)
- func (m *RoleAccount) GetAddress() string
- func (m *RoleAccount) GetRoles() []Role
- func (m *RoleAccount) Marshal() (dAtA []byte, err error)
- func (m *RoleAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *RoleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoleAccount) ProtoMessage()
- func (m *RoleAccount) Reset()
- func (m *RoleAccount) Size() (n int)
- func (m *RoleAccount) String() string
- func (m *RoleAccount) Unmarshal(dAtA []byte) error
- func (m *RoleAccount) XXX_DiscardUnknown()
- func (m *RoleAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleAccount) XXX_Merge(src proto.Message)
- func (m *RoleAccount) XXX_Size() int
- func (m *RoleAccount) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AssignRoles(ctx context.Context, req *MsgAssignRoles) (*MsgAssignRolesResponse, error)
- func (*UnimplementedMsgServer) BlockAccount(ctx context.Context, req *MsgBlockAccount) (*MsgBlockAccountResponse, error)
- func (*UnimplementedMsgServer) BlockContract(ctx context.Context, req *MsgBlockContract) (*MsgBlockContractResponse, error)
- func (*UnimplementedMsgServer) UnassignRoles(ctx context.Context, req *MsgUnassignRoles) (*MsgUnassignRolesResponse, error)
- func (*UnimplementedMsgServer) UnblockAccount(ctx context.Context, req *MsgUnblockAccount) (*MsgUnblockAccountResponse, error)
- func (*UnimplementedMsgServer) UnblockContract(ctx context.Context, req *MsgUnblockContract) (*MsgUnblockContractResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccountBlockList(ctx context.Context, req *QueryBlockListRequest) (*QueryBlockListResponse, error)
- func (*UnimplementedQueryServer) ContractDenyList(ctx context.Context, req *QueryContractDenyList) (*QueryContractDenyListResponse, error)
- func (*UnimplementedQueryServer) Roles(ctx context.Context, req *QueryRolesRequest) (*QueryRolesResponse, error)
Constants ¶
const ( EventTypeAssignRoles = "assign_roles" EventTypeUnassignRoles = "unassign_roles" EventTypeBlockAccount = "block_account" EventTypeUnblockAccount = "unblock_account" EventTypeContractAdd = "block_contract" EventTypeContractRemove = "unblock_contract" AttributeKeyAccount = "account" AttributeKeyContract = "contract" AttributeValueCategory = ModuleName )
perm module event types
const ( // ModuleName is the name of the perm module ModuleName = "perm" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the perm module QuerierRoute = ModuleName // RouterKey is the msg router key for the perm module RouterKey = ModuleName ContractDenyListName = "contract-deny-list" )
const ( TypeMsgAssignRoles = "assign_roles" // type for MsgAssignRoles TypeMsgUnassignRoles = "unassign_roles" // type for MsgUnassignRoles TypeMsgBlockAccount = "block_account" // type for MsgBlockAccount TypeMsgUnblockAccount = "unblock_account" // type for MsgUnblockAccount )
const ( QueryRoles = "roles" QueryBlacklist = "blacklist" )
query endpoints supported by the validator Querier
const (
// AddressLength is the expected length of the address
AddressLength = 20
)
Lengths of hashes and addresses in bytes.
const (
AuthDefault = Auth(0)
)
Variables ¶
var ( ErrAlreadyBlockedAccount = sdkerrors.Register(ModuleName, 3, "account already blocked") ErrBlockAdminAccount = sdkerrors.Register(ModuleName, 4, "can not block admin account") ErrUnknownBlockedAccount = sdkerrors.Register(ModuleName, 5, "unknown blocked account") ErrAddRootAdmin = sdkerrors.Register(ModuleName, 6, "can not add root account") ErrRemoveRootAdmin = sdkerrors.Register(ModuleName, 7, "can not remove root account") ErrRemoveUnknownRole = sdkerrors.Register(ModuleName, 8, "the account does not have this role") ErrInvalidMsgURL = sdkerrors.Register(ModuleName, 9, "invalid url") // ErrInvalidContractAddress returns an error that the contract address is invalid ErrInvalidContractAddress = sdkerrors.Register(ModuleName, 10, "contract address is invalid") ErrContractDisable = sdkerrors.Register(ModuleName, 11, "contract is disable") ErrOperateRootAdmin = sdkerrors.Wrap(ErrUnauthorizedOperation, "can not operate root admin") ErrOperatePermAdmin = sdkerrors.Wrap(ErrUnauthorizedOperation, "can not operate another permission admin") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( AuthKey = []byte{0x01} // prefix for each key to a account auth BlackKey = []byte{0x02} // prefix for each key to a black account ContractDenyListKey = []byte{0x03} // prefix for each key to a contract deny list )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
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",
10: "POWER_USER_ADMIN",
11: "SIDE_CHAIN_USER",
}
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,
"POWER_USER_ADMIN": 10,
"SIDE_CHAIN_USER": 11,
}
Functions ¶
func FromHex ¶
FromHex returns the bytes represented by the hexadecimal string s. s may be prefixed with "0x".
func GetAuthKey ¶
func GetAuthKey(addr sdk.AccAddress) []byte
GetAuthKey gets the key for the role with address
func GetBlackKey ¶
func GetBlackKey(addr sdk.AccAddress) []byte
GetBlackKey gets the key for the black with address
func GetContractDenyListKey ¶
GetContractDenyListKey defines the full key under which a contract deny list is stored.
func Hex2BytesFixed ¶
Hex2BytesFixed returns bytes of a specified fixed length flen.
func IsHexAddress ¶
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
func LeftPadBytes ¶
LeftPadBytes zero-pads slice to the left up to length l.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RightPadBytes ¶
RightPadBytes zero-pads slice to the right up to length l.
func TrimLeftZeroes ¶
TrimLeftZeroes returns a subslice of s without leading zeroes
func TrimRightZeroes ¶
TrimRightZeroes returns a subslice of s without trailing zeroes
Types ¶
type Address ¶
type Address [AddressLength]byte
Address represents the 20 byte address of an Ethereum account.
func BigToAddress ¶
BigToAddress returns Address with byte values of b. If b is larger than len(h), b will be cropped from the left.
func BytesToAddress ¶
BytesToAddress returns Address with value b. If b is larger than len(h), b will be cropped from the left.
func HexToAddress ¶
HexToAddress returns Address with byte values of s. If s is larger than len(h), s will be cropped from the left.
func (Address) Format ¶
Format implements fmt.Formatter. Address supports the %v, %s, %q, %x, %X and %d format verbs.
type GenesisState ¶
type GenesisState struct { RoleAccounts []RoleAccount `protobuf:"bytes,1,rep,name=role_accounts,json=roleAccounts,proto3" json:"role_accounts" yaml:"role_accounts"` BlackList []string `protobuf:"bytes,2,rep,name=black_list,json=blackList,proto3" json:"black_list,omitempty" yaml:"black_list"` ContractDenyList []string `` /* 137-byte string literal not displayed */ }
GenesisState defines the perm module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns modules/perm GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(roleAccounts []RoleAccount, blackList, contractDenyList []string) *GenesisState
NewGenesisState creates a new GenesisState instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBlackList ¶
func (m *GenesisState) GetBlackList() []string
func (*GenesisState) GetContractDenyList ¶
func (m *GenesisState) GetContractDenyList() []string
func (*GenesisState) GetRoleAccounts ¶
func (m *GenesisState) GetRoleAccounts() []RoleAccount
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
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 NewMsgAssignRoles ¶
func NewMsgAssignRoles(roles []Role, address, operator sdk.AccAddress) *MsgAssignRoles
NewMsgAssignRoles creates a new MsgAssignRoles instance.
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
GetSignBytes returns the sign bytes
func (MsgAssignRoles) GetSigners ¶
func (m MsgAssignRoles) GetSigners() []sdk.AccAddress
GetSigners returns the signers of MsgAssignRoles
func (*MsgAssignRoles) Marshal ¶
func (m *MsgAssignRoles) Marshal() (dAtA []byte, err 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
Route returns the RouterKey of MsgAssignRoles
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
Type returns the type of MsgAssignRoles
func (*MsgAssignRoles) Unmarshal ¶
func (m *MsgAssignRoles) Unmarshal(dAtA []byte) error
func (MsgAssignRoles) ValidateBasic ¶
func (m MsgAssignRoles) ValidateBasic() error
ValidateBasic validates the message MsgAssignRoles
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 NewMsgBlockAccount ¶
func NewMsgBlockAccount(address, operator sdk.AccAddress) *MsgBlockAccount
NewMsgBlockAccount creates a new MsgBlockAccount instance.
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
GetSignBytes returns the sign bytes
func (MsgBlockAccount) GetSigners ¶
func (m MsgBlockAccount) GetSigners() []sdk.AccAddress
GetSigners returns the signers of MsgBlockAccount
func (*MsgBlockAccount) Marshal ¶
func (m *MsgBlockAccount) Marshal() (dAtA []byte, err 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
Route returns the RouterKey of MsgBlockAccount
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
Type returns the type of MsgBlockAccount
func (*MsgBlockAccount) Unmarshal ¶
func (m *MsgBlockAccount) Unmarshal(dAtA []byte) error
func (MsgBlockAccount) ValidateBasic ¶
func (m MsgBlockAccount) ValidateBasic() error
ValidateBasic validates the message MsgBlockAccount
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 NewMsgBlockContract ¶
func NewMsgBlockContract(contractAddr, from string) *MsgBlockContract
func (*MsgBlockContract) Descriptor ¶
func (*MsgBlockContract) Descriptor() ([]byte, []int)
func (*MsgBlockContract) Equal ¶
func (this *MsgBlockContract) Equal(that interface{}) bool
func (*MsgBlockContract) GetSigners ¶
func (m *MsgBlockContract) GetSigners() []sdk.AccAddress
func (*MsgBlockContract) Marshal ¶
func (m *MsgBlockContract) Marshal() (dAtA []byte, err 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) Size ¶
func (m *MsgBlockContract) Size() (n int)
func (*MsgBlockContract) String ¶
func (m *MsgBlockContract) String() 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 NewMsgUnassignRoles ¶
func NewMsgUnassignRoles(roles []Role, address, operator sdk.AccAddress) *MsgUnassignRoles
NewMsgUnassignRoles creates a new MsgUnassignRoles instance.
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
GetSignBytes returns the sign bytes
func (MsgUnassignRoles) GetSigners ¶
func (m MsgUnassignRoles) GetSigners() []sdk.AccAddress
GetSigners returns the signers of MsgAssignRoles
func (*MsgUnassignRoles) Marshal ¶
func (m *MsgUnassignRoles) Marshal() (dAtA []byte, err 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
Route returns the RouterKey of MsgUnassignRoles
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
Type returns the type of MsgUnassignRoles
func (*MsgUnassignRoles) Unmarshal ¶
func (m *MsgUnassignRoles) Unmarshal(dAtA []byte) error
func (MsgUnassignRoles) ValidateBasic ¶
func (m MsgUnassignRoles) ValidateBasic() error
ValidateBasic validates the message MsgUnassignRoles
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 NewMsgUnblockAccount ¶
func NewMsgUnblockAccount(address, operator sdk.AccAddress) *MsgUnblockAccount
NewMsgUnblockAccount creates a new MsgUnblockAccount instance.
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
GetSignBytes returns the sign bytes
func (MsgUnblockAccount) GetSigners ¶
func (m MsgUnblockAccount) GetSigners() []sdk.AccAddress
GetSigners returns the signers of MsgUnblockAccount
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
Route returns the RouterKey of MsgUnblockAccount
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
Type returns the type of MsgUnblockAccount
func (*MsgUnblockAccount) Unmarshal ¶
func (m *MsgUnblockAccount) Unmarshal(dAtA []byte) error
func (MsgUnblockAccount) ValidateBasic ¶
func (m MsgUnblockAccount) ValidateBasic() error
ValidateBasic validates the message MsgUnblockAccount
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 NewMsgUnblockContract ¶
func NewMsgUnblockContract(contractAddr, from string) *MsgUnblockContract
func (*MsgUnblockContract) Descriptor ¶
func (*MsgUnblockContract) Descriptor() ([]byte, []int)
func (*MsgUnblockContract) Equal ¶
func (this *MsgUnblockContract) Equal(that interface{}) bool
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) Size ¶
func (m *MsgUnblockContract) Size() (n int)
func (*MsgUnblockContract) String ¶
func (m *MsgUnblockContract) String() 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 QueryBlacklistParams ¶
func NewQueryBlacklistParams ¶
func NewQueryBlacklistParams(page, limit int) QueryBlacklistParams
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 (m *QueryContractDenyListResponse) String() 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 QueryRolesParams ¶
type QueryRolesParams struct {
Address sdk.AccAddress
}
func NewQueryRolesParams ¶
func NewQueryRolesParams(address sdk.AccAddress) QueryRolesParams
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 // POWER_USER_ADMIN defines the power admin role index. RolePowerUserAdmin Role = 10 // SIDE_CHAIN_USER defines the side chain user role index. RoleSideChainUser Role = 11 )
func GetRolesFromStr ¶
func RoleFromstring ¶
RoleFromstring turns a string into a Auth
func (Role) EnumDescriptor ¶
type RoleAccount ¶
type RoleAccount 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"` }
RoleAccount represents an account with roles.
func (*RoleAccount) Descriptor ¶
func (*RoleAccount) Descriptor() ([]byte, []int)
func (*RoleAccount) GetAddress ¶
func (m *RoleAccount) GetAddress() string
func (*RoleAccount) GetRoles ¶
func (m *RoleAccount) GetRoles() []Role
func (*RoleAccount) Marshal ¶
func (m *RoleAccount) Marshal() (dAtA []byte, err error)
func (*RoleAccount) MarshalToSizedBuffer ¶
func (m *RoleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoleAccount) ProtoMessage ¶
func (*RoleAccount) ProtoMessage()
func (*RoleAccount) Reset ¶
func (m *RoleAccount) Reset()
func (*RoleAccount) Size ¶
func (m *RoleAccount) Size() (n int)
func (*RoleAccount) String ¶
func (m *RoleAccount) String() string
func (*RoleAccount) Unmarshal ¶
func (m *RoleAccount) Unmarshal(dAtA []byte) error
func (*RoleAccount) XXX_DiscardUnknown ¶
func (m *RoleAccount) XXX_DiscardUnknown()
func (*RoleAccount) XXX_Marshal ¶
func (m *RoleAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleAccount) XXX_Merge ¶
func (m *RoleAccount) XXX_Merge(src proto.Message)
func (*RoleAccount) XXX_Size ¶
func (m *RoleAccount) XXX_Size() int
func (*RoleAccount) XXX_Unmarshal ¶
func (m *RoleAccount) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AssignRoles ¶
func (*UnimplementedMsgServer) AssignRoles(ctx context.Context, req *MsgAssignRoles) (*MsgAssignRolesResponse, error)
func (*UnimplementedMsgServer) BlockAccount ¶
func (*UnimplementedMsgServer) BlockAccount(ctx context.Context, req *MsgBlockAccount) (*MsgBlockAccountResponse, error)
func (*UnimplementedMsgServer) BlockContract ¶
func (*UnimplementedMsgServer) BlockContract(ctx context.Context, req *MsgBlockContract) (*MsgBlockContractResponse, error)
func (*UnimplementedMsgServer) UnassignRoles ¶
func (*UnimplementedMsgServer) UnassignRoles(ctx context.Context, req *MsgUnassignRoles) (*MsgUnassignRolesResponse, error)
func (*UnimplementedMsgServer) UnblockAccount ¶
func (*UnimplementedMsgServer) UnblockAccount(ctx context.Context, req *MsgUnblockAccount) (*MsgUnblockAccountResponse, error)
func (*UnimplementedMsgServer) UnblockContract ¶
func (*UnimplementedMsgServer) UnblockContract(ctx context.Context, req *MsgUnblockContract) (*MsgUnblockContractResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccountBlockList ¶
func (*UnimplementedQueryServer) AccountBlockList(ctx context.Context, req *QueryBlockListRequest) (*QueryBlockListResponse, error)
func (*UnimplementedQueryServer) ContractDenyList ¶
func (*UnimplementedQueryServer) ContractDenyList(ctx context.Context, req *QueryContractDenyList) (*QueryContractDenyListResponse, error)
func (*UnimplementedQueryServer) Roles ¶
func (*UnimplementedQueryServer) Roles(ctx context.Context, req *QueryRolesRequest) (*QueryRolesResponse, error)