Documentation ¶
Index ¶
- Constants
- Variables
- type AdminI
- type MsgAddRoles
- func (*MsgAddRoles) Descriptor() ([]byte, []int)
- func (this *MsgAddRoles) Equal(that interface{}) bool
- func (m MsgAddRoles) GetSignBytes() []byte
- func (m MsgAddRoles) GetSigners() []sdk.AccAddress
- func (m *MsgAddRoles) Marshal() (dAtA []byte, err error)
- func (m *MsgAddRoles) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddRoles) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddRoles) ProtoMessage()
- func (m *MsgAddRoles) Reset()
- func (m MsgAddRoles) Route() string
- func (m *MsgAddRoles) Size() (n int)
- func (m *MsgAddRoles) String() string
- func (m MsgAddRoles) Type() string
- func (m *MsgAddRoles) Unmarshal(dAtA []byte) error
- func (m MsgAddRoles) ValidateBasic() error
- func (m *MsgAddRoles) XXX_DiscardUnknown()
- func (m *MsgAddRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddRoles) XXX_Merge(src proto.Message)
- func (m *MsgAddRoles) XXX_Size() int
- func (m *MsgAddRoles) 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 MsgRemoveRoles
- func (*MsgRemoveRoles) Descriptor() ([]byte, []int)
- func (this *MsgRemoveRoles) Equal(that interface{}) bool
- func (m MsgRemoveRoles) GetSignBytes() []byte
- func (m MsgRemoveRoles) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveRoles) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveRoles) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveRoles) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveRoles) ProtoMessage()
- func (m *MsgRemoveRoles) Reset()
- func (m MsgRemoveRoles) Route() string
- func (m *MsgRemoveRoles) Size() (n int)
- func (m *MsgRemoveRoles) String() string
- func (m MsgRemoveRoles) Type() string
- func (m *MsgRemoveRoles) Unmarshal(dAtA []byte) error
- func (m MsgRemoveRoles) ValidateBasic() error
- func (m *MsgRemoveRoles) XXX_DiscardUnknown()
- func (m *MsgRemoveRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveRoles) XXX_Merge(src proto.Message)
- func (m *MsgRemoveRoles) XXX_Size() int
- func (m *MsgRemoveRoles) 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 Role
Constants ¶
View Source
const (
// ModuleName is the name of the admin module
ModuleName = "admin"
)
Variables ¶
View Source
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // ModuleCdc references the global admin module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to admin and // defined at the application level. ModuleCdc = codec.NewHybridCodec(amino, types.NewInterfaceRegistry()) )
View Source
var Role_name = map[int32]string{
0: "ROLE_ROOT_ADMIN",
1: "ROLE_PERM_ADMIN",
2: "ROLE_BLACKLIST_ADMIN",
3: "ROLE_NODE_ADMIN",
4: "ROLE_PARAM_ADMIN",
5: "ROLE_POWER_USER",
}
View Source
var Role_value = map[string]int32{
"ROLE_ROOT_ADMIN": 0,
"ROLE_PERM_ADMIN": 1,
"ROLE_BLACKLIST_ADMIN": 2,
"ROLE_NODE_ADMIN": 3,
"ROLE_PARAM_ADMIN": 4,
"ROLE_POWER_USER": 5,
}
Functions ¶
This section is empty.
Types ¶
type AdminI ¶
type AdminI interface { sdk.Module AddRoles(address string, roles []Role, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) RemoveRoles(address string, roles []Role, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) BlockAccount(address string, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) UnblockAccount(address string, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) QueryRoles(address string) ([]Role, sdk.Error) QueryBlacklist(page, limit int) ([]string, sdk.Error) }
type MsgAddRoles ¶
type MsgAddRoles struct { Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */ Roles []Role `protobuf:"varint,2,rep,packed,name=roles,proto3,enum=irita.modules.admin.Role" json:"roles,omitempty"` Operator github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 129-byte string literal not displayed */ }
MsgAddRoles defines an SDK message for adding roles to a address.
func (*MsgAddRoles) Descriptor ¶
func (*MsgAddRoles) Descriptor() ([]byte, []int)
func (*MsgAddRoles) Equal ¶
func (this *MsgAddRoles) Equal(that interface{}) bool
func (MsgAddRoles) GetSignBytes ¶
func (m MsgAddRoles) GetSignBytes() []byte
func (MsgAddRoles) GetSigners ¶
func (m MsgAddRoles) GetSigners() []sdk.AccAddress
func (*MsgAddRoles) Marshal ¶
func (m *MsgAddRoles) Marshal() (dAtA []byte, err error)
func (*MsgAddRoles) MarshalToSizedBuffer ¶
func (m *MsgAddRoles) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddRoles) ProtoMessage ¶
func (*MsgAddRoles) ProtoMessage()
func (*MsgAddRoles) Reset ¶
func (m *MsgAddRoles) Reset()
func (MsgAddRoles) Route ¶
func (m MsgAddRoles) Route() string
func (*MsgAddRoles) Size ¶
func (m *MsgAddRoles) Size() (n int)
func (*MsgAddRoles) String ¶
func (m *MsgAddRoles) String() string
func (MsgAddRoles) Type ¶
func (m MsgAddRoles) Type() string
func (*MsgAddRoles) Unmarshal ¶
func (m *MsgAddRoles) Unmarshal(dAtA []byte) error
func (MsgAddRoles) ValidateBasic ¶
func (m MsgAddRoles) ValidateBasic() error
func (*MsgAddRoles) XXX_DiscardUnknown ¶
func (m *MsgAddRoles) XXX_DiscardUnknown()
func (*MsgAddRoles) XXX_Marshal ¶
func (m *MsgAddRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddRoles) XXX_Merge ¶
func (m *MsgAddRoles) XXX_Merge(src proto.Message)
func (*MsgAddRoles) XXX_Size ¶
func (m *MsgAddRoles) XXX_Size() int
func (*MsgAddRoles) XXX_Unmarshal ¶
func (m *MsgAddRoles) XXX_Unmarshal(b []byte) error
type MsgBlockAccount ¶
type MsgBlockAccount struct { Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */ Operator github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 129-byte string literal not displayed */ }
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) 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 MsgRemoveRoles ¶
type MsgRemoveRoles struct { Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */ Roles []Role `protobuf:"varint,2,rep,packed,name=roles,proto3,enum=irita.modules.admin.Role" json:"roles,omitempty"` Operator github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 129-byte string literal not displayed */ }
MsgRemoveRoles defines an SDK message for removing roles from an existing address.
func (*MsgRemoveRoles) Descriptor ¶
func (*MsgRemoveRoles) Descriptor() ([]byte, []int)
func (*MsgRemoveRoles) Equal ¶
func (this *MsgRemoveRoles) Equal(that interface{}) bool
func (MsgRemoveRoles) GetSignBytes ¶
func (m MsgRemoveRoles) GetSignBytes() []byte
func (MsgRemoveRoles) GetSigners ¶
func (m MsgRemoveRoles) GetSigners() []sdk.AccAddress
func (*MsgRemoveRoles) Marshal ¶
func (m *MsgRemoveRoles) Marshal() (dAtA []byte, err error)
func (*MsgRemoveRoles) MarshalToSizedBuffer ¶
func (m *MsgRemoveRoles) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveRoles) ProtoMessage ¶
func (*MsgRemoveRoles) ProtoMessage()
func (*MsgRemoveRoles) Reset ¶
func (m *MsgRemoveRoles) Reset()
func (MsgRemoveRoles) Route ¶
func (m MsgRemoveRoles) Route() string
func (*MsgRemoveRoles) Size ¶
func (m *MsgRemoveRoles) Size() (n int)
func (*MsgRemoveRoles) String ¶
func (m *MsgRemoveRoles) String() string
func (MsgRemoveRoles) Type ¶
func (m MsgRemoveRoles) Type() string
func (*MsgRemoveRoles) Unmarshal ¶
func (m *MsgRemoveRoles) Unmarshal(dAtA []byte) error
func (MsgRemoveRoles) ValidateBasic ¶
func (m MsgRemoveRoles) ValidateBasic() error
func (*MsgRemoveRoles) XXX_DiscardUnknown ¶
func (m *MsgRemoveRoles) XXX_DiscardUnknown()
func (*MsgRemoveRoles) XXX_Marshal ¶
func (m *MsgRemoveRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveRoles) XXX_Merge ¶
func (m *MsgRemoveRoles) XXX_Merge(src proto.Message)
func (*MsgRemoveRoles) XXX_Size ¶
func (m *MsgRemoveRoles) XXX_Size() int
func (*MsgRemoveRoles) XXX_Unmarshal ¶
func (m *MsgRemoveRoles) XXX_Unmarshal(b []byte) error
type MsgUnblockAccount ¶
type MsgUnblockAccount struct { Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */ Operator github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 129-byte string literal not displayed */ }
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 Role ¶
type Role int32
Role is a type alias that represents a proposal status as a byte
const ( // ROLE_ROOT_ADMIN defines the root admin role index. RoleRootAdmin Role = 0 // ROLE_PERM_ADMIN defines the permission admin role index. RolePermAdmin Role = 1 // ROLE_BLACKLIST_ADMIN defines the blacklist admin role index. RoleBlacklistAdmin Role = 2 // ROLE_NODE_ADMIN defines the validator node admin role index. RoleNodeAdmin Role = 3 // ROLE_PARAM_ADMIN defines the param admin role index. RoleParamAdmin Role = 4 // ROLE_POWER_USER defines the power user role index. RolePowerUser Role = 5 )
func (Role) EnumDescriptor ¶
func (Role) MarshalJSON ¶
MarshalJSON Marshals to JSON using string representation of the status
func (*Role) UnmarshalJSON ¶
UnmarshalJSON Unmarshals from JSON assuming Bech32 encoding
Click to show internal directories.
Click to hide internal directories.