2018-07-15 00:21:32 +03:00
|
|
|
"use strict";
|
|
|
|
///////////////////////////////
|
|
|
|
// Bytes
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2018-07-26 04:20:21 +03:00
|
|
|
function setType(object, type) {
|
|
|
|
Object.defineProperty(object, '_ethersType', { configurable: false, value: type, writable: false });
|
|
|
|
}
|
|
|
|
function isType(object, type) {
|
|
|
|
return (object._ethersType === type);
|
|
|
|
}
|
2018-07-16 10:59:25 +03:00
|
|
|
///////////////////////////////
|
|
|
|
// BigNumber
|
|
|
|
var BigNumber = /** @class */ (function () {
|
|
|
|
function BigNumber() {
|
2018-07-26 04:20:21 +03:00
|
|
|
setType(this, 'BigNumber');
|
2018-07-16 10:59:25 +03:00
|
|
|
}
|
2018-07-26 04:20:21 +03:00
|
|
|
BigNumber.isBigNumber = function (value) {
|
|
|
|
return isType(value, 'BigNumber');
|
|
|
|
};
|
2018-07-16 10:59:25 +03:00
|
|
|
return BigNumber;
|
|
|
|
}());
|
|
|
|
exports.BigNumber = BigNumber;
|
2018-07-15 00:21:32 +03:00
|
|
|
;
|
|
|
|
;
|
|
|
|
;
|
|
|
|
///////////////////////////////
|
|
|
|
// Interface
|
|
|
|
var Indexed = /** @class */ (function () {
|
|
|
|
function Indexed() {
|
2018-07-26 04:20:21 +03:00
|
|
|
setType(this, 'Indexed');
|
2018-07-15 00:21:32 +03:00
|
|
|
}
|
2018-07-26 04:20:21 +03:00
|
|
|
Indexed.isIndexed = function (value) {
|
|
|
|
return isType(value, 'Indexed');
|
|
|
|
};
|
2018-07-15 00:21:32 +03:00
|
|
|
return Indexed;
|
|
|
|
}());
|
|
|
|
exports.Indexed = Indexed;
|
|
|
|
var MinimalProvider = /** @class */ (function () {
|
|
|
|
function MinimalProvider() {
|
2018-07-26 04:20:21 +03:00
|
|
|
setType(this, 'Provider');
|
2018-07-15 00:21:32 +03:00
|
|
|
}
|
2018-07-26 04:20:21 +03:00
|
|
|
MinimalProvider.isProvider = function (value) {
|
|
|
|
return isType(value, 'Provider');
|
|
|
|
};
|
2018-07-15 00:21:32 +03:00
|
|
|
return MinimalProvider;
|
|
|
|
}());
|
|
|
|
exports.MinimalProvider = MinimalProvider;
|
|
|
|
var Signer = /** @class */ (function () {
|
|
|
|
function Signer() {
|
2018-07-26 04:20:21 +03:00
|
|
|
setType(this, 'Signer');
|
2018-07-15 00:21:32 +03:00
|
|
|
}
|
2018-07-26 04:20:21 +03:00
|
|
|
Signer.isSigner = function (value) {
|
|
|
|
return isType(value, 'Signer');
|
|
|
|
};
|
2018-07-15 00:21:32 +03:00
|
|
|
return Signer;
|
|
|
|
}());
|
|
|
|
exports.Signer = Signer;
|
2018-07-16 10:59:25 +03:00
|
|
|
///////////////////////////////
|
|
|
|
// HDNode
|
|
|
|
var HDNode = /** @class */ (function () {
|
|
|
|
function HDNode() {
|
2018-07-26 04:20:21 +03:00
|
|
|
setType(this, 'HDNode');
|
2018-07-16 10:59:25 +03:00
|
|
|
}
|
2018-07-26 04:20:21 +03:00
|
|
|
HDNode.isHDNode = function (value) {
|
|
|
|
return isType(value, 'HDNode');
|
|
|
|
};
|
2018-07-16 10:59:25 +03:00
|
|
|
return HDNode;
|
|
|
|
}());
|
|
|
|
exports.HDNode = HDNode;
|