@airgap/astar
Version:
The @airgap/astar is an Astar implementation of the ICoinProtocol interface from @airgap/coinlib-core.
72 lines • 2.74 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShidenProtocol = void 0;
var ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
var AstarProtocol_1 = require("../astar/AstarProtocol");
var ShidenProtocolOptions_1 = require("./ShidenProtocolOptions");
var ShidenProtocol = /** @class */ (function (_super) {
__extends(ShidenProtocol, _super);
function ShidenProtocol(options) {
if (options === void 0) { options = new ShidenProtocolOptions_1.ShidenProtocolOptions(); }
var _this = _super.call(this, options) || this;
_this.options = options;
_this.symbol = 'SDN';
_this.name = 'Shiden';
_this.marketSymbol = 'SDN';
_this.feeSymbol = 'SDN';
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.SHIDEN;
_this.units = [
{
unitSymbol: 'SDN',
factor: '1'
},
{
unitSymbol: 'mSDN',
factor: '0.001'
},
{
unitSymbol: 'uSDN',
factor: '0.000001'
},
{
unitSymbol: 'nSDN',
factor: '0.000000001'
},
{
unitSymbol: 'pSDN',
factor: '0.000000000001'
},
{
unitSymbol: 'fSDN',
factor: '0.000000000000001'
},
{
unitSymbol: 'aSDN',
factor: '0.000000000000000001'
}
];
_this.standardDerivationPath = "m/44'/810'/0'/0/0";
_this.addressIsCaseSensitive = true;
_this.addressValidationPattern = '^[a-km-zA-HJ-NP-Z1-9]+$';
_this.addressPlaceholder = "ABC...";
return _this;
}
return ShidenProtocol;
}(AstarProtocol_1.AstarProtocol));
exports.ShidenProtocol = ShidenProtocol;
//# sourceMappingURL=ShidenProtocol.js.map