Type declaration
create:function
- create<I>(base?): MessageReceived
Type Parameters
- I extends {
id?: string;
payloadHash?: Uint8Array;
recipient?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
};
sender?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
};
} & {
id?: string;
payloadHash?: Uint8Array;
recipient?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
} & {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
[K in string | number | symbol]: never
};
} & {
[K in string | number | symbol]: never
};
sender?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
} & {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
[K in string | number | symbol]: never
};
} & {
[K in string | number | symbol]: never
};
} & {
[K in string | number | symbol]: never
}
decode:function
- decode(input, length?): MessageReceived
Parameters
- input: Uint8Array | Reader
Optional
length: number
encode:function
- encode(message, writer?): Writer
Returns Writer
fromJSON:function
fromPartial:function
- fromPartial<I>(object): MessageReceived
Type Parameters
- I extends {
id?: string;
payloadHash?: Uint8Array;
recipient?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
};
sender?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
};
} & {
id?: string;
payloadHash?: Uint8Array;
recipient?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
} & {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
[K in string | number | symbol]: never
};
} & {
[K in string | number | symbol]: never
};
sender?: {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
};
} & {
address?: string;
chain?: {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
keyType?: KeyType;
module?: string;
name?: string;
supportsForeignAssets?: boolean;
} & {
[K in string | number | symbol]: never
};
} & {
[K in string | number | symbol]: never
};
} & {
[K in string | number | symbol]: never
}
toJSON:function
- toJSON(message): unknown
Returns unknown