@bloom-trade/finance-connector
Version:
Is a package entended to be used with multiple web3 and web2 providers to interact with blockchains.
18 lines (17 loc) • 624 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProviderConnector = void 0;
const utils_1 = require("../utils");
class ProviderConnector {
constructor(connection) {
this._baseurl = '';
this._credentials = connection.provider.auth;
this._provider = connection.provider;
if (connection.addresses && connection.addresses.length > 0) {
this.addresses = connection.addresses;
}
this.chain = connection.chain;
this._baseurl = (0, utils_1.manageBaseUrl)(connection);
}
}
exports.ProviderConnector = ProviderConnector;