"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getWallet = exports.setWallet = exports.getWeb3Provider = exports.setWeb3Provider = void 0;

var _ethers = require("ethers");

var _types = require("./types");

let savedWeb3Provider = (0, _ethers.getDefaultProvider)(_types.EthereumNetwork.Default);
let savedWallet;

const setWeb3Provider = provider => {
  savedWeb3Provider = provider;
};

exports.setWeb3Provider = setWeb3Provider;

const getWeb3Provider = () => savedWeb3Provider;

exports.getWeb3Provider = getWeb3Provider;

const setWallet = wallet => {
  savedWallet = wallet;
};

exports.setWallet = setWallet;

const getWallet = () => savedWallet;

exports.getWallet = getWallet;