Home Reference Source

lib/session/actions/index.js

export const START = "SESSION_START";
export function start(txHash, provider) {
  return {
    type: START,
    txHash, provider
  };
}

export const READY = "SESSION_READY";
export function ready() {
  return {
    type: READY,
  };
}

export const ERROR = "SESSION_ERROR";
export function error(error) {
  return {
    type: ERROR,
    error
  };
}

export const FINISH = "SESSION_FINISH";
export function finish() {
  return {
    type: FINISH,
  };
}

export const RECORD_CONTRACTS = "RECORD_CONTRACTS";
export function recordContracts(contexts, sources) {
  return {
    type: RECORD_CONTRACTS,
    contexts, sources
  }
}