import * as types from './types';
export type TRequestTransactionSignature = typeof requestTransactionSignature;
export function requestTransactionSignature(
from: string,
data: string
): types.RequestTransactionSignatureAction {
return {
type: types.ParitySignerActions.REQUEST_TX_SIGNATURE,
payload: {
isMessage: false,
from,
data
}
};
export type TRequestMessageSignature = typeof requestMessageSignature;
export function requestMessageSignature(
): types.RequestMessageSignatureAction {
type: types.ParitySignerActions.REQUEST_MSG_SIGNATURE,
isMessage: true,
export type TFinalizeSignature = typeof finalizeSignature;
export function finalizeSignature(signature: string | null): types.FinalizeSignatureAction {
type: types.ParitySignerActions.FINALIZE_SIGNATURE,
payload: signature