crypto-ducatus-wallet-core
Version:
A multi-currency support library for address derivation, private key creation, and transaction creation
51 lines • 1.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var bch_1 = require("./bch");
var btc_1 = require("./btc");
var drc20_1 = require("./drc20");
var duc_1 = require("./duc");
var ducx_1 = require("./ducx");
var erc20_1 = require("./erc20");
var erc721_1 = require("./erc721");
var eth_1 = require("./eth");
var tob_1 = require("./tob");
var xrp_1 = require("./xrp");
var providers = {
BTC: new btc_1.BTCTxProvider(),
BCH: new bch_1.BCHTxProvider(),
DUC: new duc_1.DUCTxProvider(),
ETH: new eth_1.ETHTxProvider(),
DUCX: new ducx_1.DUCXTxProvider(),
ERC20: new erc20_1.ERC20TxProvider(),
DRC20: new drc20_1.DRC20TxProvider(),
ERC721: new erc721_1.ERC721TxProvider(),
XRP: new xrp_1.XRPTxProvider(),
TOB: new tob_1.TransferDUCXToWDUCXProvider()
};
var TransactionsProxy = (function () {
function TransactionsProxy() {
}
TransactionsProxy.prototype.get = function (_a) {
var chain = _a.chain;
return providers[chain];
};
TransactionsProxy.prototype.create = function (params) {
return this.get(params).create(params);
};
TransactionsProxy.prototype.sign = function (params) {
return this.get(params).sign(params);
};
TransactionsProxy.prototype.getSignature = function (params) {
return this.get(params).getSignature(params);
};
TransactionsProxy.prototype.applySignature = function (params) {
return this.get(params).applySignature(params);
};
TransactionsProxy.prototype.getHash = function (params) {
return this.get(params).getHash(params);
};
return TransactionsProxy;
}());
exports.TransactionsProxy = TransactionsProxy;
exports.default = new TransactionsProxy();
//# sourceMappingURL=index.js.map