Class MsgBase<Params, ProtoRepresentation, ObjectRepresentation> Abstract
Type Parameters
Params
ProtoRepresentation extends Object
ObjectRepresentation extends Record<string, unknown> = {}
Constructors
constructor
- new MsgBase<Params, ProtoRepresentation, ObjectRepresentation>(params: Params): MsgBase<Params, ProtoRepresentation, ObjectRepresentation>
Type Parameters
Params
ProtoRepresentation extends Object
ObjectRepresentation extends Record<string, unknown> = {}
Parameters
Returns MsgBase<Params, ProtoRepresentation, ObjectRepresentation>
Methods
Abstract toAmino
- toAmino(): { type: string; value: ObjectRepresentation | SnakeCaseKeys<ProtoRepresentation, true, [], ""> }
Returns { type: string; value: ObjectRepresentation | SnakeCaseKeys<ProtoRepresentation, true, [], ""> }
type: string
value: ObjectRepresentation | SnakeCaseKeys<ProtoRepresentation, true, [], "">
Abstract toData
- toData(): ProtoRepresentation & { @type: string }
Returns ProtoRepresentation & { @type: string }
Abstract toDirectSign
- toDirectSign(): { message: ProtoRepresentation; type: string }
Returns { message: ProtoRepresentation; type: string }
message: ProtoRepresentation
type: string
toDirectSignJSON
- toDirectSignJSON(): string
toEip712
- toEip712(): { type: string; value: Record<string, unknown> }
Returns { type: string; value: Record<string, unknown> }
type: string
value: Record<string, unknown>
Abstract toProto
- toProto(): ProtoRepresentation
Returns ProtoRepresentation
Abstract toWeb3
- toWeb3(): ObjectRepresentation | SnakeCaseKeys<ProtoRepresentation, true, [], ""> & { @type: string }
Returns ObjectRepresentation | SnakeCaseKeys<ProtoRepresentation, true, [], ""> & { @type: string }
Returns the values of the message for EIP712