@airgap/cosmos 0.13.7-beta.13 → 0.13.7-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/airgap-coinlib-cosmos.min.js +175 -1455
- package/index.d.ts +0 -2
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/create-protocol.d.ts +0 -3
- package/utils/create-protocol.js +0 -16
- package/utils/create-protocol.js.map +0 -1
|
@@ -28726,435 +28726,8 @@ module.exports = function whichTypedArray(value) {
|
|
|
28726
28726
|
|
|
28727
28727
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
28728
28728
|
},{"available-typed-arrays":16,"call-bind/callBound":65,"es-abstract/helpers/getOwnPropertyDescriptor":103,"for-each":106,"has-tostringtag/shams":112,"is-typed-array":149}],209:[function(require,module,exports){
|
|
28729
|
-
"use strict";
|
|
28730
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28731
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28732
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28733
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28734
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
28735
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28736
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28737
|
-
});
|
|
28738
|
-
};
|
|
28739
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
28740
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28741
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28742
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28743
|
-
function step(op) {
|
|
28744
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28745
|
-
while (_) try {
|
|
28746
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
28747
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
28748
|
-
switch (op[0]) {
|
|
28749
|
-
case 0: case 1: t = op; break;
|
|
28750
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
28751
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
28752
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28753
|
-
default:
|
|
28754
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28755
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28756
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28757
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
28758
|
-
if (t[2]) _.ops.pop();
|
|
28759
|
-
_.trys.pop(); continue;
|
|
28760
|
-
}
|
|
28761
|
-
op = body.call(thisArg, _);
|
|
28762
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
28763
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
28764
|
-
}
|
|
28765
|
-
};
|
|
28766
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28767
|
-
exports.Action = exports.ActionState = void 0;
|
|
28768
|
-
var errors_1 = require("../errors");
|
|
28769
|
-
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
28770
|
-
var StateMachine_1 = require("./StateMachine");
|
|
28771
|
-
var ActionState;
|
|
28772
|
-
(function (ActionState) {
|
|
28773
|
-
ActionState[ActionState["READY"] = 0] = "READY";
|
|
28774
|
-
ActionState[ActionState["EXECUTING"] = 1] = "EXECUTING";
|
|
28775
|
-
ActionState[ActionState["COMPLETED"] = 2] = "COMPLETED";
|
|
28776
|
-
ActionState[ActionState["CANCELLED"] = 3] = "CANCELLED";
|
|
28777
|
-
})(ActionState = exports.ActionState || (exports.ActionState = {}));
|
|
28778
|
-
var Action = /** @class */ (function () {
|
|
28779
|
-
function Action(context) {
|
|
28780
|
-
this.stateMachine = new StateMachine_1.StateMachine(ActionState.READY, new Map([
|
|
28781
|
-
[ActionState.READY, []],
|
|
28782
|
-
[ActionState.EXECUTING, [ActionState.READY]],
|
|
28783
|
-
[ActionState.COMPLETED, [ActionState.EXECUTING]],
|
|
28784
|
-
[ActionState.CANCELLED, [ActionState.READY, ActionState.EXECUTING]]
|
|
28785
|
-
]));
|
|
28786
|
-
this.context = context;
|
|
28787
|
-
}
|
|
28788
|
-
Object.defineProperty(Action.prototype, "identifier", {
|
|
28789
|
-
get: function () {
|
|
28790
|
-
return 'action';
|
|
28791
|
-
},
|
|
28792
|
-
enumerable: false,
|
|
28793
|
-
configurable: true
|
|
28794
|
-
});
|
|
28795
|
-
Action.prototype.getState = function () {
|
|
28796
|
-
return this.stateMachine.getState();
|
|
28797
|
-
};
|
|
28798
|
-
Action.prototype.start = function () {
|
|
28799
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28800
|
-
var result, error_1;
|
|
28801
|
-
return __generator(this, function (_a) {
|
|
28802
|
-
switch (_a.label) {
|
|
28803
|
-
case 0:
|
|
28804
|
-
_a.trys.push([0, 2, , 3]);
|
|
28805
|
-
this.stateMachine.transitionTo(ActionState.EXECUTING);
|
|
28806
|
-
return [4 /*yield*/, this.perform()];
|
|
28807
|
-
case 1:
|
|
28808
|
-
result = _a.sent();
|
|
28809
|
-
this.handleSuccess(result);
|
|
28810
|
-
return [3 /*break*/, 3];
|
|
28811
|
-
case 2:
|
|
28812
|
-
error_1 = _a.sent();
|
|
28813
|
-
this.handleError(error_1);
|
|
28814
|
-
return [3 /*break*/, 3];
|
|
28815
|
-
case 3: return [2 /*return*/];
|
|
28816
|
-
}
|
|
28817
|
-
});
|
|
28818
|
-
});
|
|
28819
|
-
};
|
|
28820
|
-
Action.prototype.cancel = function () {
|
|
28821
|
-
this.stateMachine.transitionTo(ActionState.CANCELLED);
|
|
28822
|
-
if (this.onCancel) {
|
|
28823
|
-
this.onCancel();
|
|
28824
|
-
}
|
|
28825
|
-
};
|
|
28826
|
-
Action.prototype.addValidTransition = function (from, to) {
|
|
28827
|
-
this.stateMachine.addValidStateTransition(from, to);
|
|
28828
|
-
};
|
|
28829
|
-
Action.prototype.handleSuccess = function (result) {
|
|
28830
|
-
this.result = result;
|
|
28831
|
-
this.stateMachine.transitionTo(ActionState.COMPLETED);
|
|
28832
|
-
if (this.onComplete) {
|
|
28833
|
-
this.onComplete(result);
|
|
28834
|
-
}
|
|
28835
|
-
};
|
|
28836
|
-
Action.prototype.handleError = function (error) {
|
|
28837
|
-
this.error = error;
|
|
28838
|
-
this.stateMachine.transitionTo(ActionState.COMPLETED);
|
|
28839
|
-
if (this.onError) {
|
|
28840
|
-
this.onError(error);
|
|
28841
|
-
}
|
|
28842
|
-
throw new errors_1.InvalidValueError(coinlib_error_1.Domain.ACTIONS, error.message);
|
|
28843
|
-
};
|
|
28844
|
-
return Action;
|
|
28845
|
-
}());
|
|
28846
|
-
exports.Action = Action;
|
|
28847
|
-
|
|
28848
|
-
},{"../errors":344,"../errors/coinlib-error":343,"./StateMachine":213}],210:[function(require,module,exports){
|
|
28849
|
-
"use strict";
|
|
28850
|
-
var __extends = (this && this.__extends) || (function () {
|
|
28851
|
-
var extendStatics = function (d, b) {
|
|
28852
|
-
extendStatics = Object.setPrototypeOf ||
|
|
28853
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28854
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
28855
|
-
return extendStatics(d, b);
|
|
28856
|
-
};
|
|
28857
|
-
return function (d, b) {
|
|
28858
|
-
extendStatics(d, b);
|
|
28859
|
-
function __() { this.constructor = d; }
|
|
28860
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28861
|
-
};
|
|
28862
|
-
})();
|
|
28863
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28864
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28865
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28866
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28867
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
28868
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28869
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28870
|
-
});
|
|
28871
|
-
};
|
|
28872
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
28873
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28874
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28875
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28876
|
-
function step(op) {
|
|
28877
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28878
|
-
while (_) try {
|
|
28879
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
28880
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
28881
|
-
switch (op[0]) {
|
|
28882
|
-
case 0: case 1: t = op; break;
|
|
28883
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
28884
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
28885
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28886
|
-
default:
|
|
28887
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28888
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28889
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28890
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
28891
|
-
if (t[2]) _.ops.pop();
|
|
28892
|
-
_.trys.pop(); continue;
|
|
28893
|
-
}
|
|
28894
|
-
op = body.call(thisArg, _);
|
|
28895
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
28896
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
28897
|
-
}
|
|
28898
|
-
};
|
|
28899
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28900
|
-
exports.LinkedAction = void 0;
|
|
28901
|
-
var Action_1 = require("./Action");
|
|
28902
|
-
var LinkedAction = /** @class */ (function (_super) {
|
|
28903
|
-
__extends(LinkedAction, _super);
|
|
28904
|
-
function LinkedAction(action, linkedActionType) {
|
|
28905
|
-
var _this = _super.call(this) || this;
|
|
28906
|
-
_this.linkedActionType = linkedActionType;
|
|
28907
|
-
_this.action = action;
|
|
28908
|
-
return _this;
|
|
28909
|
-
}
|
|
28910
|
-
LinkedAction.prototype.getLinkedAction = function () {
|
|
28911
|
-
return this.linkedAction;
|
|
28912
|
-
};
|
|
28913
|
-
LinkedAction.prototype.perform = function () {
|
|
28914
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28915
|
-
return __generator(this, function (_a) {
|
|
28916
|
-
switch (_a.label) {
|
|
28917
|
-
case 0: return [4 /*yield*/, this.action.start()];
|
|
28918
|
-
case 1:
|
|
28919
|
-
_a.sent();
|
|
28920
|
-
this.linkedAction = new this.linkedActionType(this.action.result);
|
|
28921
|
-
return [4 /*yield*/, this.linkedAction.start()];
|
|
28922
|
-
case 2:
|
|
28923
|
-
_a.sent();
|
|
28924
|
-
return [2 /*return*/, this.linkedAction.result];
|
|
28925
|
-
}
|
|
28926
|
-
});
|
|
28927
|
-
});
|
|
28928
|
-
};
|
|
28929
|
-
LinkedAction.prototype.cancel = function () {
|
|
28930
|
-
if (this.action.getState() === Action_1.ActionState.EXECUTING) {
|
|
28931
|
-
this.action.cancel();
|
|
28932
|
-
}
|
|
28933
|
-
else if (this.linkedAction !== undefined && this.linkedAction.getState() === Action_1.ActionState.EXECUTING) {
|
|
28934
|
-
this.linkedAction.cancel();
|
|
28935
|
-
}
|
|
28936
|
-
_super.prototype.cancel.call(this);
|
|
28937
|
-
};
|
|
28938
|
-
return LinkedAction;
|
|
28939
|
-
}(Action_1.Action));
|
|
28940
|
-
exports.LinkedAction = LinkedAction;
|
|
28941
|
-
|
|
28942
|
-
},{"./Action":209}],211:[function(require,module,exports){
|
|
28943
|
-
"use strict";
|
|
28944
|
-
var __extends = (this && this.__extends) || (function () {
|
|
28945
|
-
var extendStatics = function (d, b) {
|
|
28946
|
-
extendStatics = Object.setPrototypeOf ||
|
|
28947
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28948
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
28949
|
-
return extendStatics(d, b);
|
|
28950
|
-
};
|
|
28951
|
-
return function (d, b) {
|
|
28952
|
-
extendStatics(d, b);
|
|
28953
|
-
function __() { this.constructor = d; }
|
|
28954
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28955
|
-
};
|
|
28956
|
-
})();
|
|
28957
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28958
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28959
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28960
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28961
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
28962
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28963
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28964
|
-
});
|
|
28965
|
-
};
|
|
28966
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
28967
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28968
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28969
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28970
|
-
function step(op) {
|
|
28971
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28972
|
-
while (_) try {
|
|
28973
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
28974
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
28975
|
-
switch (op[0]) {
|
|
28976
|
-
case 0: case 1: t = op; break;
|
|
28977
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
28978
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
28979
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28980
|
-
default:
|
|
28981
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
28982
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28983
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28984
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
28985
|
-
if (t[2]) _.ops.pop();
|
|
28986
|
-
_.trys.pop(); continue;
|
|
28987
|
-
}
|
|
28988
|
-
op = body.call(thisArg, _);
|
|
28989
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
28990
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
28991
|
-
}
|
|
28992
|
-
};
|
|
28993
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28994
|
-
exports.RepeatableAction = void 0;
|
|
28995
|
-
var Action_1 = require("./Action");
|
|
28996
|
-
var RepeatableAction = /** @class */ (function (_super) {
|
|
28997
|
-
__extends(RepeatableAction, _super);
|
|
28998
|
-
function RepeatableAction(context, actionFactory) {
|
|
28999
|
-
var _this = _super.call(this, context) || this;
|
|
29000
|
-
_this.actionFactory = actionFactory;
|
|
29001
|
-
_this.addValidTransition(Action_1.ActionState.EXECUTING, Action_1.ActionState.EXECUTING);
|
|
29002
|
-
_this.addValidTransition(Action_1.ActionState.COMPLETED, Action_1.ActionState.EXECUTING);
|
|
29003
|
-
_this.addValidTransition(Action_1.ActionState.CANCELLED, Action_1.ActionState.EXECUTING);
|
|
29004
|
-
return _this;
|
|
29005
|
-
}
|
|
29006
|
-
RepeatableAction.prototype.perform = function () {
|
|
29007
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
29008
|
-
return __generator(this, function (_a) {
|
|
29009
|
-
switch (_a.label) {
|
|
29010
|
-
case 0:
|
|
29011
|
-
if (this.innerAction !== undefined && this.innerAction.getState() === Action_1.ActionState.EXECUTING) {
|
|
29012
|
-
this.innerAction.cancel();
|
|
29013
|
-
}
|
|
29014
|
-
this.innerAction = this.actionFactory();
|
|
29015
|
-
return [4 /*yield*/, this.innerAction.start()];
|
|
29016
|
-
case 1:
|
|
29017
|
-
_a.sent();
|
|
29018
|
-
return [2 /*return*/, this.innerAction.result];
|
|
29019
|
-
}
|
|
29020
|
-
});
|
|
29021
|
-
});
|
|
29022
|
-
};
|
|
29023
|
-
RepeatableAction.prototype.cancel = function () {
|
|
29024
|
-
if (this.innerAction !== undefined && this.innerAction.getState() === Action_1.ActionState.EXECUTING) {
|
|
29025
|
-
this.innerAction.cancel();
|
|
29026
|
-
}
|
|
29027
|
-
_super.prototype.cancel.call(this);
|
|
29028
|
-
};
|
|
29029
|
-
return RepeatableAction;
|
|
29030
|
-
}(Action_1.Action));
|
|
29031
|
-
exports.RepeatableAction = RepeatableAction;
|
|
29032
|
-
|
|
29033
|
-
},{"./Action":209}],212:[function(require,module,exports){
|
|
29034
|
-
"use strict";
|
|
29035
|
-
var __extends = (this && this.__extends) || (function () {
|
|
29036
|
-
var extendStatics = function (d, b) {
|
|
29037
|
-
extendStatics = Object.setPrototypeOf ||
|
|
29038
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
29039
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
29040
|
-
return extendStatics(d, b);
|
|
29041
|
-
};
|
|
29042
|
-
return function (d, b) {
|
|
29043
|
-
extendStatics(d, b);
|
|
29044
|
-
function __() { this.constructor = d; }
|
|
29045
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29046
|
-
};
|
|
29047
|
-
})();
|
|
29048
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29049
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29050
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29051
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29052
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29053
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
29054
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
29055
|
-
});
|
|
29056
|
-
};
|
|
29057
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
29058
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
29059
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29060
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29061
|
-
function step(op) {
|
|
29062
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
29063
|
-
while (_) try {
|
|
29064
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29065
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
29066
|
-
switch (op[0]) {
|
|
29067
|
-
case 0: case 1: t = op; break;
|
|
29068
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
29069
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
29070
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
29071
|
-
default:
|
|
29072
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
29073
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
29074
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29075
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29076
|
-
if (t[2]) _.ops.pop();
|
|
29077
|
-
_.trys.pop(); continue;
|
|
29078
|
-
}
|
|
29079
|
-
op = body.call(thisArg, _);
|
|
29080
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
29081
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
29082
|
-
}
|
|
29083
|
-
};
|
|
29084
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29085
|
-
exports.SimpleAction = void 0;
|
|
29086
|
-
var Action_1 = require("./Action");
|
|
29087
|
-
var SimpleAction = /** @class */ (function (_super) {
|
|
29088
|
-
__extends(SimpleAction, _super);
|
|
29089
|
-
function SimpleAction(promise) {
|
|
29090
|
-
var _this = _super.call(this) || this;
|
|
29091
|
-
_this.promise = promise;
|
|
29092
|
-
return _this;
|
|
29093
|
-
}
|
|
29094
|
-
Object.defineProperty(SimpleAction.prototype, "identifier", {
|
|
29095
|
-
get: function () {
|
|
29096
|
-
return 'simple-action';
|
|
29097
|
-
},
|
|
29098
|
-
enumerable: false,
|
|
29099
|
-
configurable: true
|
|
29100
|
-
});
|
|
29101
|
-
SimpleAction.prototype.perform = function () {
|
|
29102
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
29103
|
-
return __generator(this, function (_a) {
|
|
29104
|
-
return [2 /*return*/, this.promise()];
|
|
29105
|
-
});
|
|
29106
|
-
});
|
|
29107
|
-
};
|
|
29108
|
-
return SimpleAction;
|
|
29109
|
-
}(Action_1.Action));
|
|
29110
|
-
exports.SimpleAction = SimpleAction;
|
|
29111
|
-
|
|
29112
|
-
},{"./Action":209}],213:[function(require,module,exports){
|
|
29113
|
-
"use strict";
|
|
29114
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29115
|
-
exports.StateMachine = void 0;
|
|
29116
|
-
var errors_1 = require("../errors");
|
|
29117
|
-
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
29118
|
-
var StateMachine = /** @class */ (function () {
|
|
29119
|
-
function StateMachine(initialState, validTransitions) {
|
|
29120
|
-
this.state = initialState;
|
|
29121
|
-
this.validTransitions = validTransitions;
|
|
29122
|
-
}
|
|
29123
|
-
StateMachine.prototype.transitionTo = function (state) {
|
|
29124
|
-
if (this.canTransitionTo(state)) {
|
|
29125
|
-
this.state = state;
|
|
29126
|
-
}
|
|
29127
|
-
else {
|
|
29128
|
-
throw new errors_1.OperationFailedError(coinlib_error_1.Domain.ACTIONS, "Invalid state transition: " + this.state + " -> " + state);
|
|
29129
|
-
}
|
|
29130
|
-
};
|
|
29131
|
-
StateMachine.prototype.getState = function () {
|
|
29132
|
-
return this.state;
|
|
29133
|
-
};
|
|
29134
|
-
StateMachine.prototype.addValidStateTransition = function (from, to) {
|
|
29135
|
-
var states = this.validTransitions.get(to);
|
|
29136
|
-
if (states !== undefined && states.indexOf(from) === -1) {
|
|
29137
|
-
states.push(from);
|
|
29138
|
-
this.validTransitions.set(to, states);
|
|
29139
|
-
}
|
|
29140
|
-
else {
|
|
29141
|
-
this.validTransitions.set(to, [from]);
|
|
29142
|
-
}
|
|
29143
|
-
};
|
|
29144
|
-
StateMachine.prototype.canTransitionTo = function (state) {
|
|
29145
|
-
var states = this.validTransitions.get(state);
|
|
29146
|
-
if (states !== undefined) {
|
|
29147
|
-
return states.indexOf(this.state) !== -1;
|
|
29148
|
-
}
|
|
29149
|
-
return false;
|
|
29150
|
-
};
|
|
29151
|
-
return StateMachine;
|
|
29152
|
-
}());
|
|
29153
|
-
exports.StateMachine = StateMachine;
|
|
29154
|
-
|
|
29155
|
-
},{"../errors":344,"../errors/coinlib-error":343}],214:[function(require,module,exports){
|
|
29156
28729
|
module.exports = require('./lib/axios');
|
|
29157
|
-
},{"./lib/axios":
|
|
28730
|
+
},{"./lib/axios":211}],210:[function(require,module,exports){
|
|
29158
28731
|
'use strict';
|
|
29159
28732
|
|
|
29160
28733
|
var utils = require('./../utils');
|
|
@@ -29330,7 +28903,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
29330
28903
|
});
|
|
29331
28904
|
};
|
|
29332
28905
|
|
|
29333
|
-
},{"../core/createError":
|
|
28906
|
+
},{"../core/createError":217,"./../core/settle":221,"./../helpers/buildURL":225,"./../helpers/cookies":227,"./../helpers/isURLSameOrigin":229,"./../helpers/parseHeaders":231,"./../utils":233}],211:[function(require,module,exports){
|
|
29334
28907
|
'use strict';
|
|
29335
28908
|
|
|
29336
28909
|
var utils = require('./utils');
|
|
@@ -29385,7 +28958,7 @@ module.exports = axios;
|
|
|
29385
28958
|
// Allow use of default import syntax in TypeScript
|
|
29386
28959
|
module.exports.default = axios;
|
|
29387
28960
|
|
|
29388
|
-
},{"./cancel/Cancel":
|
|
28961
|
+
},{"./cancel/Cancel":212,"./cancel/CancelToken":213,"./cancel/isCancel":214,"./core/Axios":215,"./core/mergeConfig":220,"./defaults":223,"./helpers/bind":224,"./helpers/spread":232,"./utils":233}],212:[function(require,module,exports){
|
|
29389
28962
|
'use strict';
|
|
29390
28963
|
|
|
29391
28964
|
/**
|
|
@@ -29406,7 +28979,7 @@ Cancel.prototype.__CANCEL__ = true;
|
|
|
29406
28979
|
|
|
29407
28980
|
module.exports = Cancel;
|
|
29408
28981
|
|
|
29409
|
-
},{}],
|
|
28982
|
+
},{}],213:[function(require,module,exports){
|
|
29410
28983
|
'use strict';
|
|
29411
28984
|
|
|
29412
28985
|
var Cancel = require('./Cancel');
|
|
@@ -29465,14 +29038,14 @@ CancelToken.source = function source() {
|
|
|
29465
29038
|
|
|
29466
29039
|
module.exports = CancelToken;
|
|
29467
29040
|
|
|
29468
|
-
},{"./Cancel":
|
|
29041
|
+
},{"./Cancel":212}],214:[function(require,module,exports){
|
|
29469
29042
|
'use strict';
|
|
29470
29043
|
|
|
29471
29044
|
module.exports = function isCancel(value) {
|
|
29472
29045
|
return !!(value && value.__CANCEL__);
|
|
29473
29046
|
};
|
|
29474
29047
|
|
|
29475
|
-
},{}],
|
|
29048
|
+
},{}],215:[function(require,module,exports){
|
|
29476
29049
|
'use strict';
|
|
29477
29050
|
|
|
29478
29051
|
var utils = require('./../utils');
|
|
@@ -29560,7 +29133,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
29560
29133
|
|
|
29561
29134
|
module.exports = Axios;
|
|
29562
29135
|
|
|
29563
|
-
},{"../helpers/buildURL":
|
|
29136
|
+
},{"../helpers/buildURL":225,"./../utils":233,"./InterceptorManager":216,"./dispatchRequest":218,"./mergeConfig":220}],216:[function(require,module,exports){
|
|
29564
29137
|
'use strict';
|
|
29565
29138
|
|
|
29566
29139
|
var utils = require('./../utils');
|
|
@@ -29614,7 +29187,7 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
29614
29187
|
|
|
29615
29188
|
module.exports = InterceptorManager;
|
|
29616
29189
|
|
|
29617
|
-
},{"./../utils":
|
|
29190
|
+
},{"./../utils":233}],217:[function(require,module,exports){
|
|
29618
29191
|
'use strict';
|
|
29619
29192
|
|
|
29620
29193
|
var enhanceError = require('./enhanceError');
|
|
@@ -29634,7 +29207,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
29634
29207
|
return enhanceError(error, config, code, request, response);
|
|
29635
29208
|
};
|
|
29636
29209
|
|
|
29637
|
-
},{"./enhanceError":
|
|
29210
|
+
},{"./enhanceError":219}],218:[function(require,module,exports){
|
|
29638
29211
|
'use strict';
|
|
29639
29212
|
|
|
29640
29213
|
var utils = require('./../utils');
|
|
@@ -29722,7 +29295,7 @@ module.exports = function dispatchRequest(config) {
|
|
|
29722
29295
|
});
|
|
29723
29296
|
};
|
|
29724
29297
|
|
|
29725
|
-
},{"../cancel/isCancel":
|
|
29298
|
+
},{"../cancel/isCancel":214,"../defaults":223,"./../helpers/combineURLs":226,"./../helpers/isAbsoluteURL":228,"./../utils":233,"./transformData":222}],219:[function(require,module,exports){
|
|
29726
29299
|
'use strict';
|
|
29727
29300
|
|
|
29728
29301
|
/**
|
|
@@ -29766,7 +29339,7 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
|
29766
29339
|
return error;
|
|
29767
29340
|
};
|
|
29768
29341
|
|
|
29769
|
-
},{}],
|
|
29342
|
+
},{}],220:[function(require,module,exports){
|
|
29770
29343
|
'use strict';
|
|
29771
29344
|
|
|
29772
29345
|
var utils = require('../utils');
|
|
@@ -29819,7 +29392,7 @@ module.exports = function mergeConfig(config1, config2) {
|
|
|
29819
29392
|
return config;
|
|
29820
29393
|
};
|
|
29821
29394
|
|
|
29822
|
-
},{"../utils":
|
|
29395
|
+
},{"../utils":233}],221:[function(require,module,exports){
|
|
29823
29396
|
'use strict';
|
|
29824
29397
|
|
|
29825
29398
|
var createError = require('./createError');
|
|
@@ -29846,7 +29419,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
29846
29419
|
}
|
|
29847
29420
|
};
|
|
29848
29421
|
|
|
29849
|
-
},{"./createError":
|
|
29422
|
+
},{"./createError":217}],222:[function(require,module,exports){
|
|
29850
29423
|
'use strict';
|
|
29851
29424
|
|
|
29852
29425
|
var utils = require('./../utils');
|
|
@@ -29868,7 +29441,7 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
29868
29441
|
return data;
|
|
29869
29442
|
};
|
|
29870
29443
|
|
|
29871
|
-
},{"./../utils":
|
|
29444
|
+
},{"./../utils":233}],223:[function(require,module,exports){
|
|
29872
29445
|
(function (process){(function (){
|
|
29873
29446
|
'use strict';
|
|
29874
29447
|
|
|
@@ -29970,7 +29543,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
29970
29543
|
module.exports = defaults;
|
|
29971
29544
|
|
|
29972
29545
|
}).call(this)}).call(this,require('_process'))
|
|
29973
|
-
},{"./adapters/http":
|
|
29546
|
+
},{"./adapters/http":210,"./adapters/xhr":210,"./helpers/normalizeHeaderName":230,"./utils":233,"_process":166}],224:[function(require,module,exports){
|
|
29974
29547
|
'use strict';
|
|
29975
29548
|
|
|
29976
29549
|
module.exports = function bind(fn, thisArg) {
|
|
@@ -29983,7 +29556,7 @@ module.exports = function bind(fn, thisArg) {
|
|
|
29983
29556
|
};
|
|
29984
29557
|
};
|
|
29985
29558
|
|
|
29986
|
-
},{}],
|
|
29559
|
+
},{}],225:[function(require,module,exports){
|
|
29987
29560
|
'use strict';
|
|
29988
29561
|
|
|
29989
29562
|
var utils = require('./../utils');
|
|
@@ -30056,7 +29629,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
|
30056
29629
|
return url;
|
|
30057
29630
|
};
|
|
30058
29631
|
|
|
30059
|
-
},{"./../utils":
|
|
29632
|
+
},{"./../utils":233}],226:[function(require,module,exports){
|
|
30060
29633
|
'use strict';
|
|
30061
29634
|
|
|
30062
29635
|
/**
|
|
@@ -30072,7 +29645,7 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
|
30072
29645
|
: baseURL;
|
|
30073
29646
|
};
|
|
30074
29647
|
|
|
30075
|
-
},{}],
|
|
29648
|
+
},{}],227:[function(require,module,exports){
|
|
30076
29649
|
'use strict';
|
|
30077
29650
|
|
|
30078
29651
|
var utils = require('./../utils');
|
|
@@ -30127,7 +29700,7 @@ module.exports = (
|
|
|
30127
29700
|
})()
|
|
30128
29701
|
);
|
|
30129
29702
|
|
|
30130
|
-
},{"./../utils":
|
|
29703
|
+
},{"./../utils":233}],228:[function(require,module,exports){
|
|
30131
29704
|
'use strict';
|
|
30132
29705
|
|
|
30133
29706
|
/**
|
|
@@ -30143,7 +29716,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
30143
29716
|
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
30144
29717
|
};
|
|
30145
29718
|
|
|
30146
|
-
},{}],
|
|
29719
|
+
},{}],229:[function(require,module,exports){
|
|
30147
29720
|
'use strict';
|
|
30148
29721
|
|
|
30149
29722
|
var utils = require('./../utils');
|
|
@@ -30213,7 +29786,7 @@ module.exports = (
|
|
|
30213
29786
|
})()
|
|
30214
29787
|
);
|
|
30215
29788
|
|
|
30216
|
-
},{"./../utils":
|
|
29789
|
+
},{"./../utils":233}],230:[function(require,module,exports){
|
|
30217
29790
|
'use strict';
|
|
30218
29791
|
|
|
30219
29792
|
var utils = require('../utils');
|
|
@@ -30227,7 +29800,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
|
30227
29800
|
});
|
|
30228
29801
|
};
|
|
30229
29802
|
|
|
30230
|
-
},{"../utils":
|
|
29803
|
+
},{"../utils":233}],231:[function(require,module,exports){
|
|
30231
29804
|
'use strict';
|
|
30232
29805
|
|
|
30233
29806
|
var utils = require('./../utils');
|
|
@@ -30282,7 +29855,7 @@ module.exports = function parseHeaders(headers) {
|
|
|
30282
29855
|
return parsed;
|
|
30283
29856
|
};
|
|
30284
29857
|
|
|
30285
|
-
},{"./../utils":
|
|
29858
|
+
},{"./../utils":233}],232:[function(require,module,exports){
|
|
30286
29859
|
'use strict';
|
|
30287
29860
|
|
|
30288
29861
|
/**
|
|
@@ -30311,7 +29884,7 @@ module.exports = function spread(callback) {
|
|
|
30311
29884
|
};
|
|
30312
29885
|
};
|
|
30313
29886
|
|
|
30314
|
-
},{}],
|
|
29887
|
+
},{}],233:[function(require,module,exports){
|
|
30315
29888
|
'use strict';
|
|
30316
29889
|
|
|
30317
29890
|
var bind = require('./helpers/bind');
|
|
@@ -30647,7 +30220,7 @@ module.exports = {
|
|
|
30647
30220
|
trim: trim
|
|
30648
30221
|
};
|
|
30649
30222
|
|
|
30650
|
-
},{"../../is-buffer-2.0.3/index":
|
|
30223
|
+
},{"../../is-buffer-2.0.3/index":301,"./helpers/bind":224}],234:[function(require,module,exports){
|
|
30651
30224
|
'use strict'
|
|
30652
30225
|
// base-x encoding / decoding
|
|
30653
30226
|
// Copyright (c) 2018 base-x contributors
|
|
@@ -30769,7 +30342,7 @@ function base (ALPHABET) {
|
|
|
30769
30342
|
}
|
|
30770
30343
|
module.exports = base
|
|
30771
30344
|
|
|
30772
|
-
},{"../../safe-buffer-5.2.0/index":
|
|
30345
|
+
},{"../../safe-buffer-5.2.0/index":312}],235:[function(require,module,exports){
|
|
30773
30346
|
'use strict'
|
|
30774
30347
|
var ALPHABET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'
|
|
30775
30348
|
|
|
@@ -30918,7 +30491,7 @@ module.exports = {
|
|
|
30918
30491
|
fromWords: fromWords
|
|
30919
30492
|
}
|
|
30920
30493
|
|
|
30921
|
-
},{}],
|
|
30494
|
+
},{}],236:[function(require,module,exports){
|
|
30922
30495
|
;(function (globalObject) {
|
|
30923
30496
|
'use strict';
|
|
30924
30497
|
|
|
@@ -33822,7 +33395,7 @@ module.exports = {
|
|
|
33822
33395
|
}
|
|
33823
33396
|
})(this);
|
|
33824
33397
|
|
|
33825
|
-
},{}],
|
|
33398
|
+
},{}],237:[function(require,module,exports){
|
|
33826
33399
|
(function (Buffer){(function (){
|
|
33827
33400
|
"use strict";
|
|
33828
33401
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -34116,7 +33689,7 @@ function fromSeed(seed, network) {
|
|
|
34116
33689
|
exports.fromSeed = fromSeed;
|
|
34117
33690
|
|
|
34118
33691
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
34119
|
-
},{"../../bs58check-2.1.2/index":
|
|
33692
|
+
},{"../../bs58check-2.1.2/index":254,"../../tiny-secp256k1-1.1.3/js":330,"../../typeforce-1.18.0/index":334,"../../wif-2.0.6/index":337,"./crypto":238,"buffer":63}],238:[function(require,module,exports){
|
|
34120
33693
|
"use strict";
|
|
34121
33694
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34122
33695
|
const createHash = require('../../create-hash-1.2.0/browser');
|
|
@@ -34144,7 +33717,7 @@ function hmacSHA512(key, data) {
|
|
|
34144
33717
|
}
|
|
34145
33718
|
exports.hmacSHA512 = hmacSHA512;
|
|
34146
33719
|
|
|
34147
|
-
},{"../../create-hash-1.2.0/browser":
|
|
33720
|
+
},{"../../create-hash-1.2.0/browser":257,"../../create-hmac-1.1.7/browser":261}],239:[function(require,module,exports){
|
|
34148
33721
|
"use strict";
|
|
34149
33722
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34150
33723
|
var bip32_1 = require("./bip32");
|
|
@@ -34153,7 +33726,7 @@ exports.fromBase58 = bip32_1.fromBase58;
|
|
|
34153
33726
|
exports.fromPublicKey = bip32_1.fromPublicKey;
|
|
34154
33727
|
exports.fromPrivateKey = bip32_1.fromPrivateKey;
|
|
34155
33728
|
|
|
34156
|
-
},{"./bip32":
|
|
33729
|
+
},{"./bip32":237}],240:[function(require,module,exports){
|
|
34157
33730
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
34158
33731
|
var createHash = require('../create-hash-1.2.0/browser')
|
|
34159
33732
|
var pbkdf2 = require('../pbkdf2-3.0.17/index').pbkdf2Sync
|
|
@@ -34308,7 +33881,7 @@ module.exports = {
|
|
|
34308
33881
|
}
|
|
34309
33882
|
}
|
|
34310
33883
|
|
|
34311
|
-
},{"../create-hash-1.2.0/browser":
|
|
33884
|
+
},{"../create-hash-1.2.0/browser":257,"../pbkdf2-3.0.17/index":305,"../randombytes-2.1.0/browser":310,"../safe-buffer-5.2.0/index":312,"../unorm-1.6.0/lib/unorm":336,"./wordlists/chinese_simplified.json":241,"./wordlists/chinese_traditional.json":242,"./wordlists/english.json":243,"./wordlists/french.json":244,"./wordlists/italian.json":245,"./wordlists/japanese.json":246,"./wordlists/korean.json":247,"./wordlists/spanish.json":248}],241:[function(require,module,exports){
|
|
34312
33885
|
module.exports=[
|
|
34313
33886
|
"的",
|
|
34314
33887
|
"一",
|
|
@@ -36359,7 +35932,7 @@ module.exports=[
|
|
|
36359
35932
|
"矮",
|
|
36360
35933
|
"歇"
|
|
36361
35934
|
]
|
|
36362
|
-
},{}],
|
|
35935
|
+
},{}],242:[function(require,module,exports){
|
|
36363
35936
|
module.exports=[
|
|
36364
35937
|
"的",
|
|
36365
35938
|
"一",
|
|
@@ -38410,7 +37983,7 @@ module.exports=[
|
|
|
38410
37983
|
"矮",
|
|
38411
37984
|
"歇"
|
|
38412
37985
|
]
|
|
38413
|
-
},{}],
|
|
37986
|
+
},{}],243:[function(require,module,exports){
|
|
38414
37987
|
module.exports=[
|
|
38415
37988
|
"abandon",
|
|
38416
37989
|
"ability",
|
|
@@ -40461,7 +40034,7 @@ module.exports=[
|
|
|
40461
40034
|
"zone",
|
|
40462
40035
|
"zoo"
|
|
40463
40036
|
]
|
|
40464
|
-
},{}],
|
|
40037
|
+
},{}],244:[function(require,module,exports){
|
|
40465
40038
|
module.exports=[
|
|
40466
40039
|
"abaisser",
|
|
40467
40040
|
"abandon",
|
|
@@ -42512,7 +42085,7 @@ module.exports=[
|
|
|
42512
42085
|
"zeste",
|
|
42513
42086
|
"zoologie"
|
|
42514
42087
|
]
|
|
42515
|
-
},{}],
|
|
42088
|
+
},{}],245:[function(require,module,exports){
|
|
42516
42089
|
module.exports=[
|
|
42517
42090
|
"abaco",
|
|
42518
42091
|
"abbaglio",
|
|
@@ -44563,7 +44136,7 @@ module.exports=[
|
|
|
44563
44136
|
"zulu",
|
|
44564
44137
|
"zuppa"
|
|
44565
44138
|
]
|
|
44566
|
-
},{}],
|
|
44139
|
+
},{}],246:[function(require,module,exports){
|
|
44567
44140
|
module.exports=[
|
|
44568
44141
|
"あいこくしん",
|
|
44569
44142
|
"あいさつ",
|
|
@@ -46614,7 +46187,7 @@ module.exports=[
|
|
|
46614
46187
|
"わらう",
|
|
46615
46188
|
"われる"
|
|
46616
46189
|
]
|
|
46617
|
-
},{}],
|
|
46190
|
+
},{}],247:[function(require,module,exports){
|
|
46618
46191
|
module.exports=[
|
|
46619
46192
|
"가격",
|
|
46620
46193
|
"가끔",
|
|
@@ -48665,7 +48238,7 @@ module.exports=[
|
|
|
48665
48238
|
"흰색",
|
|
48666
48239
|
"힘껏"
|
|
48667
48240
|
]
|
|
48668
|
-
},{}],
|
|
48241
|
+
},{}],248:[function(require,module,exports){
|
|
48669
48242
|
module.exports=[
|
|
48670
48243
|
"ábaco",
|
|
48671
48244
|
"abdomen",
|
|
@@ -50716,7 +50289,7 @@ module.exports=[
|
|
|
50716
50289
|
"zumo",
|
|
50717
50290
|
"zurdo"
|
|
50718
50291
|
]
|
|
50719
|
-
},{}],
|
|
50292
|
+
},{}],249:[function(require,module,exports){
|
|
50720
50293
|
// Reference https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki
|
|
50721
50294
|
// Format: 0x30 [total-length] 0x02 [R-length] [R] 0x02 [S-length] [S]
|
|
50722
50295
|
// NOTE: SIGHASH byte ignored AND restricted, truncate before use
|
|
@@ -50831,7 +50404,7 @@ module.exports = {
|
|
|
50831
50404
|
encode: encode
|
|
50832
50405
|
}
|
|
50833
50406
|
|
|
50834
|
-
},{"../safe-buffer-5.2.0/index":
|
|
50407
|
+
},{"../safe-buffer-5.2.0/index":312}],250:[function(require,module,exports){
|
|
50835
50408
|
(function (module, exports) {
|
|
50836
50409
|
'use strict';
|
|
50837
50410
|
|
|
@@ -54260,15 +53833,15 @@ module.exports = {
|
|
|
54260
53833
|
};
|
|
54261
53834
|
})(typeof module === 'undefined' || module, this);
|
|
54262
53835
|
|
|
54263
|
-
},{"buffer":63}],
|
|
53836
|
+
},{"buffer":63}],251:[function(require,module,exports){
|
|
54264
53837
|
arguments[4][19][0].apply(exports,arguments)
|
|
54265
|
-
},{"crypto":74,"dup":19}],
|
|
53838
|
+
},{"crypto":74,"dup":19}],252:[function(require,module,exports){
|
|
54266
53839
|
var basex = require('../base-x-3.0.7/src/index')
|
|
54267
53840
|
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
|
|
54268
53841
|
|
|
54269
53842
|
module.exports = basex(ALPHABET)
|
|
54270
53843
|
|
|
54271
|
-
},{"../base-x-3.0.7/src/index":
|
|
53844
|
+
},{"../base-x-3.0.7/src/index":234}],253:[function(require,module,exports){
|
|
54272
53845
|
'use strict'
|
|
54273
53846
|
|
|
54274
53847
|
var base58 = require('../bs58-4.0.1/index')
|
|
@@ -54320,7 +53893,7 @@ module.exports = function (checksumFn) {
|
|
|
54320
53893
|
}
|
|
54321
53894
|
}
|
|
54322
53895
|
|
|
54323
|
-
},{"../bs58-4.0.1/index":
|
|
53896
|
+
},{"../bs58-4.0.1/index":252,"../safe-buffer-5.2.0/index":312}],254:[function(require,module,exports){
|
|
54324
53897
|
'use strict'
|
|
54325
53898
|
|
|
54326
53899
|
var createHash = require('../create-hash-1.2.0/browser')
|
|
@@ -54334,7 +53907,7 @@ function sha256x2 (buffer) {
|
|
|
54334
53907
|
|
|
54335
53908
|
module.exports = bs58checkBase(sha256x2)
|
|
54336
53909
|
|
|
54337
|
-
},{"../create-hash-1.2.0/browser":
|
|
53910
|
+
},{"../create-hash-1.2.0/browser":257,"./base":253}],255:[function(require,module,exports){
|
|
54338
53911
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
54339
53912
|
var Transform = require('stream').Transform
|
|
54340
53913
|
var StringDecoder = require('string_decoder').StringDecoder
|
|
@@ -54435,7 +54008,7 @@ CipherBase.prototype._toString = function (value, enc, fin) {
|
|
|
54435
54008
|
|
|
54436
54009
|
module.exports = CipherBase
|
|
54437
54010
|
|
|
54438
|
-
},{"../inherits-2.0.4/inherits":
|
|
54011
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"stream":187,"string_decoder":202}],256:[function(require,module,exports){
|
|
54439
54012
|
"use strict";
|
|
54440
54013
|
var __assign = (this && this.__assign) || function () {
|
|
54441
54014
|
__assign = Object.assign || function(t) {
|
|
@@ -55727,7 +55300,7 @@ var decodeTxBytes = function (bytes) { return __awaiter(void 0, void 0, void 0,
|
|
|
55727
55300
|
}); };
|
|
55728
55301
|
exports.decodeTxBytes = decodeTxBytes;
|
|
55729
55302
|
|
|
55730
|
-
},{"base64-js":17,"long":
|
|
55303
|
+
},{"base64-js":17,"long":357,"protobufjs/minimal.js":358}],257:[function(require,module,exports){
|
|
55731
55304
|
'use strict'
|
|
55732
55305
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
55733
55306
|
var MD5 = require('../md5.js-1.3.5/index')
|
|
@@ -55759,17 +55332,17 @@ module.exports = function createHash (alg) {
|
|
|
55759
55332
|
return new Hash(sha(alg))
|
|
55760
55333
|
}
|
|
55761
55334
|
|
|
55762
|
-
},{"../cipher-base-1.0.4/index":
|
|
55335
|
+
},{"../cipher-base-1.0.4/index":255,"../inherits-2.0.4/inherits":299,"../md5.js-1.3.5/index":302,"../ripemd160-2.0.2/index":311,"../sha.js-2.4.11/index":323}],258:[function(require,module,exports){
|
|
55763
55336
|
module.exports = require('crypto').createHash
|
|
55764
55337
|
|
|
55765
|
-
},{"crypto":74}],
|
|
55338
|
+
},{"crypto":74}],259:[function(require,module,exports){
|
|
55766
55339
|
var MD5 = require('../md5.js-1.3.5/index')
|
|
55767
55340
|
|
|
55768
55341
|
module.exports = function (buffer) {
|
|
55769
55342
|
return new MD5().update(buffer).digest()
|
|
55770
55343
|
}
|
|
55771
55344
|
|
|
55772
|
-
},{"../md5.js-1.3.5/index":
|
|
55345
|
+
},{"../md5.js-1.3.5/index":302}],260:[function(require,module,exports){
|
|
55773
55346
|
(function (Buffer){(function (){
|
|
55774
55347
|
'use strict';
|
|
55775
55348
|
var createHash = require('../create-hash-1.2.0/browser')
|
|
@@ -55841,7 +55414,7 @@ module.exports = function createHmac(alg, key) {
|
|
|
55841
55414
|
}
|
|
55842
55415
|
|
|
55843
55416
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
55844
|
-
},{"../create-hash-1.2.0/browser":
|
|
55417
|
+
},{"../create-hash-1.2.0/browser":257,"../inherits-2.0.4/inherits":299,"buffer":63,"stream":187}],261:[function(require,module,exports){
|
|
55845
55418
|
'use strict'
|
|
55846
55419
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
55847
55420
|
var Legacy = require('./legacy')
|
|
@@ -55905,7 +55478,7 @@ module.exports = function createHmac (alg, key) {
|
|
|
55905
55478
|
return new Hmac(alg, key)
|
|
55906
55479
|
}
|
|
55907
55480
|
|
|
55908
|
-
},{"../cipher-base-1.0.4/index":
|
|
55481
|
+
},{"../cipher-base-1.0.4/index":255,"../create-hash-1.2.0/md5":259,"../inherits-2.0.4/inherits":299,"../ripemd160-2.0.2/index":311,"../safe-buffer-5.2.0/index":312,"../sha.js-2.4.11/index":323,"./legacy":262}],262:[function(require,module,exports){
|
|
55909
55482
|
'use strict'
|
|
55910
55483
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
55911
55484
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
@@ -55953,7 +55526,7 @@ Hmac.prototype._final = function () {
|
|
|
55953
55526
|
}
|
|
55954
55527
|
module.exports = Hmac
|
|
55955
55528
|
|
|
55956
|
-
},{"../cipher-base-1.0.4/index":
|
|
55529
|
+
},{"../cipher-base-1.0.4/index":255,"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312}],263:[function(require,module,exports){
|
|
55957
55530
|
(function (Buffer){(function (){
|
|
55958
55531
|
"use strict";
|
|
55959
55532
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -55987,7 +55560,7 @@ exports.utils = {
|
|
|
55987
55560
|
};
|
|
55988
55561
|
|
|
55989
55562
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
55990
|
-
},{"./keys":
|
|
55563
|
+
},{"./keys":266,"./utils":267,"buffer":63}],264:[function(require,module,exports){
|
|
55991
55564
|
(function (Buffer){(function (){
|
|
55992
55565
|
"use strict";
|
|
55993
55566
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -56048,7 +55621,7 @@ var PrivateKey = /** @class */ (function () {
|
|
|
56048
55621
|
exports.default = PrivateKey;
|
|
56049
55622
|
|
|
56050
55623
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
56051
|
-
},{"../../../futoin-hkdf-1.3.3/hkdf.js":
|
|
55624
|
+
},{"../../../futoin-hkdf-1.3.3/hkdf.js":284,"../../../secp256k1-4.0.2/elliptic":319,"../utils":267,"./PublicKey":265,"buffer":63}],265:[function(require,module,exports){
|
|
56052
55625
|
(function (Buffer){(function (){
|
|
56053
55626
|
"use strict";
|
|
56054
55627
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -56112,7 +55685,7 @@ var PublicKey = /** @class */ (function () {
|
|
|
56112
55685
|
exports.default = PublicKey;
|
|
56113
55686
|
|
|
56114
55687
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
56115
|
-
},{"../../../futoin-hkdf-1.3.3/hkdf.js":
|
|
55688
|
+
},{"../../../futoin-hkdf-1.3.3/hkdf.js":284,"../../../secp256k1-4.0.2/elliptic":319,"../utils":267,"buffer":63}],266:[function(require,module,exports){
|
|
56116
55689
|
"use strict";
|
|
56117
55690
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
56118
55691
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -56124,7 +55697,7 @@ Object.defineProperty(exports, "PrivateKey", { enumerable: true, get: function (
|
|
|
56124
55697
|
var PublicKey_1 = require("./PublicKey");
|
|
56125
55698
|
Object.defineProperty(exports, "PublicKey", { enumerable: true, get: function () { return __importDefault(PublicKey_1).default; } });
|
|
56126
55699
|
|
|
56127
|
-
},{"./PrivateKey":
|
|
55700
|
+
},{"./PrivateKey":264,"./PublicKey":265}],267:[function(require,module,exports){
|
|
56128
55701
|
(function (Buffer){(function (){
|
|
56129
55702
|
"use strict";
|
|
56130
55703
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -56188,7 +55761,7 @@ function aesDecrypt(key, cipherText) {
|
|
|
56188
55761
|
exports.aesDecrypt = aesDecrypt;
|
|
56189
55762
|
|
|
56190
55763
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
56191
|
-
},{"../../secp256k1-4.0.2/elliptic":
|
|
55764
|
+
},{"../../secp256k1-4.0.2/elliptic":319,"buffer":63,"crypto":74}],268:[function(require,module,exports){
|
|
56192
55765
|
'use strict';
|
|
56193
55766
|
|
|
56194
55767
|
var elliptic = exports;
|
|
@@ -56203,7 +55776,7 @@ elliptic.curves = require('./elliptic/curves');
|
|
|
56203
55776
|
elliptic.ec = require('./elliptic/ec');
|
|
56204
55777
|
elliptic.eddsa = require('./elliptic/eddsa');
|
|
56205
55778
|
|
|
56206
|
-
},{"../../brorand-1.1.0/index":
|
|
55779
|
+
},{"../../brorand-1.1.0/index":251,"../package.json":283,"./elliptic/curve":271,"./elliptic/curves":274,"./elliptic/ec":275,"./elliptic/eddsa":278,"./elliptic/utils":282}],269:[function(require,module,exports){
|
|
56207
55780
|
'use strict';
|
|
56208
55781
|
|
|
56209
55782
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -56581,7 +56154,7 @@ BasePoint.prototype.dblp = function dblp(k) {
|
|
|
56581
56154
|
return r;
|
|
56582
56155
|
};
|
|
56583
56156
|
|
|
56584
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
56157
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../utils":282}],270:[function(require,module,exports){
|
|
56585
56158
|
'use strict';
|
|
56586
56159
|
|
|
56587
56160
|
var utils = require('../utils');
|
|
@@ -57015,9 +56588,9 @@ Point.prototype.eqXToP = function eqXToP(x) {
|
|
|
57015
56588
|
Point.prototype.toP = Point.prototype.normalize;
|
|
57016
56589
|
Point.prototype.mixedAdd = Point.prototype.add;
|
|
57017
56590
|
|
|
57018
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
56591
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../../../../inherits-2.0.4/inherits":299,"../utils":282,"./base":269}],271:[function(require,module,exports){
|
|
57019
56592
|
arguments[4][89][0].apply(exports,arguments)
|
|
57020
|
-
},{"./base":
|
|
56593
|
+
},{"./base":269,"./edwards":270,"./mont":272,"./short":273,"dup":89}],272:[function(require,module,exports){
|
|
57021
56594
|
'use strict';
|
|
57022
56595
|
|
|
57023
56596
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -57197,7 +56770,7 @@ Point.prototype.getX = function getX() {
|
|
|
57197
56770
|
return this.x.fromRed();
|
|
57198
56771
|
};
|
|
57199
56772
|
|
|
57200
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
56773
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../../../../inherits-2.0.4/inherits":299,"../utils":282,"./base":269}],273:[function(require,module,exports){
|
|
57201
56774
|
'use strict';
|
|
57202
56775
|
|
|
57203
56776
|
var utils = require('../utils');
|
|
@@ -58136,7 +57709,7 @@ JPoint.prototype.isInfinity = function isInfinity() {
|
|
|
58136
57709
|
return this.z.cmpn(0) === 0;
|
|
58137
57710
|
};
|
|
58138
57711
|
|
|
58139
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
57712
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../../../../inherits-2.0.4/inherits":299,"../utils":282,"./base":269}],274:[function(require,module,exports){
|
|
58140
57713
|
'use strict';
|
|
58141
57714
|
|
|
58142
57715
|
var curves = exports;
|
|
@@ -58344,7 +57917,7 @@ defineCurve('secp256k1', {
|
|
|
58344
57917
|
]
|
|
58345
57918
|
});
|
|
58346
57919
|
|
|
58347
|
-
},{"../../../hash.js-1.1.7/lib/hash":
|
|
57920
|
+
},{"../../../hash.js-1.1.7/lib/hash":286,"./curve":271,"./precomputed/secp256k1":281,"./utils":282}],275:[function(require,module,exports){
|
|
58348
57921
|
'use strict';
|
|
58349
57922
|
|
|
58350
57923
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -58587,7 +58160,7 @@ EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
|
|
|
58587
58160
|
throw new Error('Unable to find valid recovery factor');
|
|
58588
58161
|
};
|
|
58589
58162
|
|
|
58590
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
58163
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../../../../brorand-1.1.0/index":251,"../../../../hmac-drbg-1.0.1/lib/hmac-drbg":298,"../curves":274,"../utils":282,"./key":276,"./signature":277}],276:[function(require,module,exports){
|
|
58591
58164
|
'use strict';
|
|
58592
58165
|
|
|
58593
58166
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -58707,7 +58280,7 @@ KeyPair.prototype.inspect = function inspect() {
|
|
|
58707
58280
|
' pub: ' + (this.pub && this.pub.inspect()) + ' >';
|
|
58708
58281
|
};
|
|
58709
58282
|
|
|
58710
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
58283
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../utils":282}],277:[function(require,module,exports){
|
|
58711
58284
|
'use strict';
|
|
58712
58285
|
|
|
58713
58286
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -58875,7 +58448,7 @@ Signature.prototype.toDER = function toDER(enc) {
|
|
|
58875
58448
|
return utils.encode(res, enc);
|
|
58876
58449
|
};
|
|
58877
58450
|
|
|
58878
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
58451
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../utils":282}],278:[function(require,module,exports){
|
|
58879
58452
|
'use strict';
|
|
58880
58453
|
|
|
58881
58454
|
var hash = require('../../../../hash.js-1.1.7/lib/hash');
|
|
@@ -58995,9 +58568,9 @@ EDDSA.prototype.isPoint = function isPoint(val) {
|
|
|
58995
58568
|
return val instanceof this.pointClass;
|
|
58996
58569
|
};
|
|
58997
58570
|
|
|
58998
|
-
},{"../../../../hash.js-1.1.7/lib/hash":
|
|
58571
|
+
},{"../../../../hash.js-1.1.7/lib/hash":286,"../curves":274,"../utils":282,"./key":279,"./signature":280}],279:[function(require,module,exports){
|
|
58999
58572
|
arguments[4][97][0].apply(exports,arguments)
|
|
59000
|
-
},{"../utils":
|
|
58573
|
+
},{"../utils":282,"dup":97}],280:[function(require,module,exports){
|
|
59001
58574
|
'use strict';
|
|
59002
58575
|
|
|
59003
58576
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -59064,7 +58637,7 @@ Signature.prototype.toHex = function toHex() {
|
|
|
59064
58637
|
|
|
59065
58638
|
module.exports = Signature;
|
|
59066
58639
|
|
|
59067
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
58640
|
+
},{"../../../../bn.js-4.11.8/lib/bn":250,"../utils":282}],281:[function(require,module,exports){
|
|
59068
58641
|
module.exports = {
|
|
59069
58642
|
doubles: {
|
|
59070
58643
|
step: 4,
|
|
@@ -59846,7 +59419,7 @@ module.exports = {
|
|
|
59846
59419
|
}
|
|
59847
59420
|
};
|
|
59848
59421
|
|
|
59849
|
-
},{}],
|
|
59422
|
+
},{}],282:[function(require,module,exports){
|
|
59850
59423
|
'use strict';
|
|
59851
59424
|
|
|
59852
59425
|
var utils = exports;
|
|
@@ -59967,7 +59540,7 @@ function intFromLE(bytes) {
|
|
|
59967
59540
|
utils.intFromLE = intFromLE;
|
|
59968
59541
|
|
|
59969
59542
|
|
|
59970
|
-
},{"../../../bn.js-4.11.8/lib/bn":
|
|
59543
|
+
},{"../../../bn.js-4.11.8/lib/bn":250,"../../../minimalistic-assert-1.0.1/index":303,"../../../minimalistic-crypto-utils-1.0.1/lib/utils":304}],283:[function(require,module,exports){
|
|
59971
59544
|
module.exports={
|
|
59972
59545
|
"name": "elliptic",
|
|
59973
59546
|
"version": "6.5.3",
|
|
@@ -60023,7 +59596,7 @@ module.exports={
|
|
|
60023
59596
|
"minimalistic-crypto-utils": "^1.0.0"
|
|
60024
59597
|
}
|
|
60025
59598
|
}
|
|
60026
|
-
},{}],
|
|
59599
|
+
},{}],284:[function(require,module,exports){
|
|
60027
59600
|
(function (Buffer){(function (){
|
|
60028
59601
|
'use strict';
|
|
60029
59602
|
|
|
@@ -60201,7 +59774,7 @@ Object.defineProperties( hkdf, {
|
|
|
60201
59774
|
module.exports = hkdf;
|
|
60202
59775
|
|
|
60203
59776
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
60204
|
-
},{"buffer":63,"crypto":74}],
|
|
59777
|
+
},{"buffer":63,"crypto":74}],285:[function(require,module,exports){
|
|
60205
59778
|
'use strict'
|
|
60206
59779
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
60207
59780
|
var Transform = require('stream').Transform
|
|
@@ -60298,9 +59871,9 @@ HashBase.prototype._digest = function () {
|
|
|
60298
59871
|
|
|
60299
59872
|
module.exports = HashBase
|
|
60300
59873
|
|
|
60301
|
-
},{"../inherits-2.0.4/inherits":
|
|
59874
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"stream":187}],286:[function(require,module,exports){
|
|
60302
59875
|
arguments[4][130][0].apply(exports,arguments)
|
|
60303
|
-
},{"./hash/common":
|
|
59876
|
+
},{"./hash/common":287,"./hash/hmac":288,"./hash/ripemd":289,"./hash/sha":290,"./hash/utils":297,"dup":130}],287:[function(require,module,exports){
|
|
60304
59877
|
'use strict';
|
|
60305
59878
|
|
|
60306
59879
|
var utils = require('./utils');
|
|
@@ -60394,7 +59967,7 @@ BlockHash.prototype._pad = function pad() {
|
|
|
60394
59967
|
return res;
|
|
60395
59968
|
};
|
|
60396
59969
|
|
|
60397
|
-
},{"../../../minimalistic-assert-1.0.1/index":
|
|
59970
|
+
},{"../../../minimalistic-assert-1.0.1/index":303,"./utils":297}],288:[function(require,module,exports){
|
|
60398
59971
|
'use strict';
|
|
60399
59972
|
|
|
60400
59973
|
var utils = require('./utils');
|
|
@@ -60443,15 +60016,15 @@ Hmac.prototype.digest = function digest(enc) {
|
|
|
60443
60016
|
return this.outer.digest(enc);
|
|
60444
60017
|
};
|
|
60445
60018
|
|
|
60446
|
-
},{"../../../minimalistic-assert-1.0.1/index":
|
|
60019
|
+
},{"../../../minimalistic-assert-1.0.1/index":303,"./utils":297}],289:[function(require,module,exports){
|
|
60447
60020
|
arguments[4][133][0].apply(exports,arguments)
|
|
60448
|
-
},{"./common":
|
|
60021
|
+
},{"./common":287,"./utils":297,"dup":133}],290:[function(require,module,exports){
|
|
60449
60022
|
arguments[4][134][0].apply(exports,arguments)
|
|
60450
|
-
},{"./sha/1":
|
|
60023
|
+
},{"./sha/1":291,"./sha/224":292,"./sha/256":293,"./sha/384":294,"./sha/512":295,"dup":134}],291:[function(require,module,exports){
|
|
60451
60024
|
arguments[4][135][0].apply(exports,arguments)
|
|
60452
|
-
},{"../common":
|
|
60025
|
+
},{"../common":287,"../utils":297,"./common":296,"dup":135}],292:[function(require,module,exports){
|
|
60453
60026
|
arguments[4][136][0].apply(exports,arguments)
|
|
60454
|
-
},{"../utils":
|
|
60027
|
+
},{"../utils":297,"./256":293,"dup":136}],293:[function(require,module,exports){
|
|
60455
60028
|
'use strict';
|
|
60456
60029
|
|
|
60457
60030
|
var utils = require('../utils');
|
|
@@ -60558,9 +60131,9 @@ SHA256.prototype._digest = function digest(enc) {
|
|
|
60558
60131
|
return utils.split32(this.h, 'big');
|
|
60559
60132
|
};
|
|
60560
60133
|
|
|
60561
|
-
},{"../../../../minimalistic-assert-1.0.1/index":
|
|
60134
|
+
},{"../../../../minimalistic-assert-1.0.1/index":303,"../common":287,"../utils":297,"./common":296}],294:[function(require,module,exports){
|
|
60562
60135
|
arguments[4][138][0].apply(exports,arguments)
|
|
60563
|
-
},{"../utils":
|
|
60136
|
+
},{"../utils":297,"./512":295,"dup":138}],295:[function(require,module,exports){
|
|
60564
60137
|
'use strict';
|
|
60565
60138
|
|
|
60566
60139
|
var utils = require('../utils');
|
|
@@ -60892,9 +60465,9 @@ function g1_512_lo(xh, xl) {
|
|
|
60892
60465
|
return r;
|
|
60893
60466
|
}
|
|
60894
60467
|
|
|
60895
|
-
},{"../../../../minimalistic-assert-1.0.1/index":
|
|
60468
|
+
},{"../../../../minimalistic-assert-1.0.1/index":303,"../common":287,"../utils":297}],296:[function(require,module,exports){
|
|
60896
60469
|
arguments[4][140][0].apply(exports,arguments)
|
|
60897
|
-
},{"../utils":
|
|
60470
|
+
},{"../utils":297,"dup":140}],297:[function(require,module,exports){
|
|
60898
60471
|
'use strict';
|
|
60899
60472
|
|
|
60900
60473
|
var assert = require('../../../minimalistic-assert-1.0.1/index');
|
|
@@ -61174,7 +60747,7 @@ function shr64_lo(ah, al, num) {
|
|
|
61174
60747
|
}
|
|
61175
60748
|
exports.shr64_lo = shr64_lo;
|
|
61176
60749
|
|
|
61177
|
-
},{"../../../inherits-2.0.4/inherits":
|
|
60750
|
+
},{"../../../inherits-2.0.4/inherits":299,"../../../minimalistic-assert-1.0.1/index":303}],298:[function(require,module,exports){
|
|
61178
60751
|
'use strict';
|
|
61179
60752
|
|
|
61180
60753
|
var hash = require('../../hash.js-1.1.7/lib/hash');
|
|
@@ -61289,7 +60862,7 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
|
|
|
61289
60862
|
return utils.encode(res, enc);
|
|
61290
60863
|
};
|
|
61291
60864
|
|
|
61292
|
-
},{"../../hash.js-1.1.7/lib/hash":
|
|
60865
|
+
},{"../../hash.js-1.1.7/lib/hash":286,"../../minimalistic-assert-1.0.1/index":303,"../../minimalistic-crypto-utils-1.0.1/lib/utils":304}],299:[function(require,module,exports){
|
|
61293
60866
|
try {
|
|
61294
60867
|
var util = require('util');
|
|
61295
60868
|
/* istanbul ignore next */
|
|
@@ -61300,9 +60873,9 @@ try {
|
|
|
61300
60873
|
module.exports = require('./inherits_browser.js');
|
|
61301
60874
|
}
|
|
61302
60875
|
|
|
61303
|
-
},{"./inherits_browser.js":
|
|
60876
|
+
},{"./inherits_browser.js":300,"util":207}],300:[function(require,module,exports){
|
|
61304
60877
|
arguments[4][144][0].apply(exports,arguments)
|
|
61305
|
-
},{"dup":144}],
|
|
60878
|
+
},{"dup":144}],301:[function(require,module,exports){
|
|
61306
60879
|
/*!
|
|
61307
60880
|
* Determine if an object is a Buffer
|
|
61308
60881
|
*
|
|
@@ -61315,7 +60888,7 @@ module.exports = function isBuffer (obj) {
|
|
|
61315
60888
|
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
61316
60889
|
}
|
|
61317
60890
|
|
|
61318
|
-
},{}],
|
|
60891
|
+
},{}],302:[function(require,module,exports){
|
|
61319
60892
|
'use strict'
|
|
61320
60893
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
61321
60894
|
var HashBase = require('../hash-base-3.0.4/index')
|
|
@@ -61463,11 +61036,11 @@ function fnI (a, b, c, d, m, k, s) {
|
|
|
61463
61036
|
|
|
61464
61037
|
module.exports = MD5
|
|
61465
61038
|
|
|
61466
|
-
},{"../hash-base-3.0.4/index":
|
|
61039
|
+
},{"../hash-base-3.0.4/index":285,"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312}],303:[function(require,module,exports){
|
|
61467
61040
|
arguments[4][153][0].apply(exports,arguments)
|
|
61468
|
-
},{"dup":153}],
|
|
61041
|
+
},{"dup":153}],304:[function(require,module,exports){
|
|
61469
61042
|
arguments[4][154][0].apply(exports,arguments)
|
|
61470
|
-
},{"dup":154}],
|
|
61043
|
+
},{"dup":154}],305:[function(require,module,exports){
|
|
61471
61044
|
var checkParameters = require('./lib/precondition')
|
|
61472
61045
|
var native = require('crypto')
|
|
61473
61046
|
|
|
@@ -61500,7 +61073,7 @@ if (!native.pbkdf2Sync || native.pbkdf2Sync.toString().indexOf('keylen, digest')
|
|
|
61500
61073
|
exports.pbkdf2 = nativePBKDF2
|
|
61501
61074
|
}
|
|
61502
61075
|
|
|
61503
|
-
},{"./lib/async":
|
|
61076
|
+
},{"./lib/async":306,"./lib/precondition":308,"./lib/sync":309,"crypto":74}],306:[function(require,module,exports){
|
|
61504
61077
|
(function (process,global){(function (){
|
|
61505
61078
|
var checkParameters = require('./precondition')
|
|
61506
61079
|
var defaultEncoding = require('./default-encoding')
|
|
@@ -61604,7 +61177,7 @@ module.exports = function (password, salt, iterations, keylen, digest, callback)
|
|
|
61604
61177
|
}
|
|
61605
61178
|
|
|
61606
61179
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61607
|
-
},{"../../safe-buffer-5.2.0/index":
|
|
61180
|
+
},{"../../safe-buffer-5.2.0/index":312,"./default-encoding":307,"./precondition":308,"./sync":309,"_process":166}],307:[function(require,module,exports){
|
|
61608
61181
|
(function (process){(function (){
|
|
61609
61182
|
var defaultEncoding
|
|
61610
61183
|
/* istanbul ignore next */
|
|
@@ -61618,7 +61191,7 @@ if (process.browser) {
|
|
|
61618
61191
|
module.exports = defaultEncoding
|
|
61619
61192
|
|
|
61620
61193
|
}).call(this)}).call(this,require('_process'))
|
|
61621
|
-
},{"_process":166}],
|
|
61194
|
+
},{"_process":166}],308:[function(require,module,exports){
|
|
61622
61195
|
(function (Buffer){(function (){
|
|
61623
61196
|
var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs
|
|
61624
61197
|
|
|
@@ -61650,7 +61223,7 @@ module.exports = function (password, salt, iterations, keylen) {
|
|
|
61650
61223
|
}
|
|
61651
61224
|
|
|
61652
61225
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
|
|
61653
|
-
},{"../../../../../../../node_modules/is-buffer/index.js":146}],
|
|
61226
|
+
},{"../../../../../../../node_modules/is-buffer/index.js":146}],309:[function(require,module,exports){
|
|
61654
61227
|
var sizes = {
|
|
61655
61228
|
md5: 16,
|
|
61656
61229
|
sha1: 20,
|
|
@@ -61703,7 +61276,7 @@ function pbkdf2 (password, salt, iterations, keylen, digest) {
|
|
|
61703
61276
|
|
|
61704
61277
|
module.exports = pbkdf2
|
|
61705
61278
|
|
|
61706
|
-
},{"../../create-hmac-1.1.4/browser":
|
|
61279
|
+
},{"../../create-hmac-1.1.4/browser":260,"../../safe-buffer-5.2.0/index":312,"../lib/default-encoding":307,"../lib/precondition":308}],310:[function(require,module,exports){
|
|
61707
61280
|
(function (process,global){(function (){
|
|
61708
61281
|
'use strict'
|
|
61709
61282
|
|
|
@@ -61757,7 +61330,7 @@ function randomBytes (size, cb) {
|
|
|
61757
61330
|
}
|
|
61758
61331
|
|
|
61759
61332
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61760
|
-
},{"../safe-buffer-5.2.0/index":
|
|
61333
|
+
},{"../safe-buffer-5.2.0/index":312,"_process":166}],311:[function(require,module,exports){
|
|
61761
61334
|
'use strict'
|
|
61762
61335
|
var Buffer = require('buffer').Buffer
|
|
61763
61336
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
@@ -61922,7 +61495,7 @@ function fn5 (a, b, c, d, e, m, k, s) {
|
|
|
61922
61495
|
|
|
61923
61496
|
module.exports = RIPEMD160
|
|
61924
61497
|
|
|
61925
|
-
},{"../hash-base-3.0.4/index":
|
|
61498
|
+
},{"../hash-base-3.0.4/index":285,"../inherits-2.0.4/inherits":299,"buffer":63}],312:[function(require,module,exports){
|
|
61926
61499
|
/* eslint-disable node/no-deprecated-api */
|
|
61927
61500
|
var buffer = require('buffer')
|
|
61928
61501
|
var Buffer = buffer.Buffer
|
|
@@ -61988,11 +61561,11 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
61988
61561
|
return buffer.SlowBuffer(size)
|
|
61989
61562
|
}
|
|
61990
61563
|
|
|
61991
|
-
},{"buffer":63}],
|
|
61564
|
+
},{"buffer":63}],313:[function(require,module,exports){
|
|
61992
61565
|
'use strict'
|
|
61993
61566
|
module.exports = require('./lib')(require('./lib/elliptic'))
|
|
61994
61567
|
|
|
61995
|
-
},{"./lib":
|
|
61568
|
+
},{"./lib":317,"./lib/elliptic":316}],314:[function(require,module,exports){
|
|
61996
61569
|
(function (Buffer){(function (){
|
|
61997
61570
|
'use strict'
|
|
61998
61571
|
var toString = Object.prototype.toString
|
|
@@ -62040,7 +61613,7 @@ exports.isNumberInInterval = function (number, x, y, message) {
|
|
|
62040
61613
|
}
|
|
62041
61614
|
|
|
62042
61615
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
|
|
62043
|
-
},{"../../../../../../../node_modules/is-buffer/index.js":146}],
|
|
61616
|
+
},{"../../../../../../../node_modules/is-buffer/index.js":146}],315:[function(require,module,exports){
|
|
62044
61617
|
'use strict'
|
|
62045
61618
|
var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
|
|
62046
61619
|
var bip66 = require('../../bip66-1.1.5/index')
|
|
@@ -62235,7 +61808,7 @@ exports.signatureImportLax = function (sig) {
|
|
|
62235
61808
|
return { r: r, s: s }
|
|
62236
61809
|
}
|
|
62237
61810
|
|
|
62238
|
-
},{"../../bip66-1.1.5/index":
|
|
61811
|
+
},{"../../bip66-1.1.5/index":249,"../../safe-buffer-5.2.0/index":312}],316:[function(require,module,exports){
|
|
62239
61812
|
'use strict'
|
|
62240
61813
|
var Buffer = require('../../../safe-buffer-5.2.0/index').Buffer
|
|
62241
61814
|
var createHash = require('../../../create-hash-1.2.0/browser')
|
|
@@ -62500,7 +62073,7 @@ exports.ecdhUnsafe = function (publicKey, privateKey, compressed) {
|
|
|
62500
62073
|
return Buffer.from(pair.pub.mul(scalar).encode(true, compressed))
|
|
62501
62074
|
}
|
|
62502
62075
|
|
|
62503
|
-
},{"../../../bn.js-4.11.8/lib/bn":
|
|
62076
|
+
},{"../../../bn.js-4.11.8/lib/bn":250,"../../../create-hash-1.2.0/browser":257,"../../../elliptic-6.5.3/lib/elliptic":268,"../../../safe-buffer-5.2.0/index":312,"../messages.json":318}],317:[function(require,module,exports){
|
|
62504
62077
|
'use strict'
|
|
62505
62078
|
var assert = require('./assert')
|
|
62506
62079
|
var der = require('./der')
|
|
@@ -62747,7 +62320,7 @@ module.exports = function (secp256k1) {
|
|
|
62747
62320
|
}
|
|
62748
62321
|
}
|
|
62749
62322
|
|
|
62750
|
-
},{"./assert":
|
|
62323
|
+
},{"./assert":314,"./der":315,"./messages.json":318}],318:[function(require,module,exports){
|
|
62751
62324
|
module.exports={
|
|
62752
62325
|
"COMPRESSED_TYPE_INVALID": "compressed should be a boolean",
|
|
62753
62326
|
"EC_PRIVATE_KEY_TYPE_INVALID": "private key should be a Buffer",
|
|
@@ -62785,10 +62358,10 @@ module.exports={
|
|
|
62785
62358
|
"TWEAK_TYPE_INVALID": "tweak should be a Buffer",
|
|
62786
62359
|
"TWEAK_LENGTH_INVALID": "tweak length is invalid"
|
|
62787
62360
|
}
|
|
62788
|
-
},{}],
|
|
62361
|
+
},{}],319:[function(require,module,exports){
|
|
62789
62362
|
module.exports = require('./lib')(require('./lib/elliptic'))
|
|
62790
62363
|
|
|
62791
|
-
},{"./lib":
|
|
62364
|
+
},{"./lib":321,"./lib/elliptic":320}],320:[function(require,module,exports){
|
|
62792
62365
|
const EC = require('../../elliptic-6.5.3/lib/elliptic').ec
|
|
62793
62366
|
|
|
62794
62367
|
const ec = new EC('secp256k1')
|
|
@@ -63192,7 +62765,7 @@ module.exports = {
|
|
|
63192
62765
|
}
|
|
63193
62766
|
}
|
|
63194
62767
|
|
|
63195
|
-
},{"../../elliptic-6.5.3/lib/elliptic":
|
|
62768
|
+
},{"../../elliptic-6.5.3/lib/elliptic":268}],321:[function(require,module,exports){
|
|
63196
62769
|
const errors = {
|
|
63197
62770
|
IMPOSSIBLE_CASE: 'Impossible case. Please create issue.',
|
|
63198
62771
|
TWEAK_ADD:
|
|
@@ -63530,7 +63103,7 @@ module.exports = (secp256k1) => {
|
|
|
63530
63103
|
}
|
|
63531
63104
|
}
|
|
63532
63105
|
|
|
63533
|
-
},{}],
|
|
63106
|
+
},{}],322:[function(require,module,exports){
|
|
63534
63107
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
63535
63108
|
|
|
63536
63109
|
// prototype class for hash functions
|
|
@@ -63613,7 +63186,7 @@ Hash.prototype._update = function () {
|
|
|
63613
63186
|
|
|
63614
63187
|
module.exports = Hash
|
|
63615
63188
|
|
|
63616
|
-
},{"../safe-buffer-5.2.0/index":
|
|
63189
|
+
},{"../safe-buffer-5.2.0/index":312}],323:[function(require,module,exports){
|
|
63617
63190
|
'use strict'
|
|
63618
63191
|
var exports = (module.exports = function SHA(algorithm) {
|
|
63619
63192
|
algorithm = algorithm.toLowerCase()
|
|
@@ -63631,7 +63204,7 @@ exports.sha256 = require('./sha256')
|
|
|
63631
63204
|
exports.sha384 = require('./sha384')
|
|
63632
63205
|
exports.sha512 = require('./sha512')
|
|
63633
63206
|
|
|
63634
|
-
},{"./sha":
|
|
63207
|
+
},{"./sha":324,"./sha1":325,"./sha224":326,"./sha256":327,"./sha384":328,"./sha512":329}],324:[function(require,module,exports){
|
|
63635
63208
|
/*
|
|
63636
63209
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined
|
|
63637
63210
|
* in FIPS PUB 180-1
|
|
@@ -63727,7 +63300,7 @@ Sha.prototype._hash = function () {
|
|
|
63727
63300
|
|
|
63728
63301
|
module.exports = Sha
|
|
63729
63302
|
|
|
63730
|
-
},{"../inherits-2.0.4/inherits":
|
|
63303
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"./hash":322}],325:[function(require,module,exports){
|
|
63731
63304
|
/*
|
|
63732
63305
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
|
|
63733
63306
|
* in FIPS PUB 180-1
|
|
@@ -63828,7 +63401,7 @@ Sha1.prototype._hash = function () {
|
|
|
63828
63401
|
|
|
63829
63402
|
module.exports = Sha1
|
|
63830
63403
|
|
|
63831
|
-
},{"../inherits-2.0.4/inherits":
|
|
63404
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"./hash":322}],326:[function(require,module,exports){
|
|
63832
63405
|
/**
|
|
63833
63406
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
|
|
63834
63407
|
* in FIPS 180-2
|
|
@@ -63883,7 +63456,7 @@ Sha224.prototype._hash = function () {
|
|
|
63883
63456
|
|
|
63884
63457
|
module.exports = Sha224
|
|
63885
63458
|
|
|
63886
|
-
},{"../inherits-2.0.4/inherits":
|
|
63459
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"./hash":322,"./sha256":327}],327:[function(require,module,exports){
|
|
63887
63460
|
/**
|
|
63888
63461
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
|
|
63889
63462
|
* in FIPS 180-2
|
|
@@ -64020,7 +63593,7 @@ Sha256.prototype._hash = function () {
|
|
|
64020
63593
|
|
|
64021
63594
|
module.exports = Sha256
|
|
64022
63595
|
|
|
64023
|
-
},{"../inherits-2.0.4/inherits":
|
|
63596
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"./hash":322}],328:[function(require,module,exports){
|
|
64024
63597
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
64025
63598
|
var SHA512 = require('./sha512')
|
|
64026
63599
|
var Hash = require('./hash')
|
|
@@ -64079,7 +63652,7 @@ Sha384.prototype._hash = function () {
|
|
|
64079
63652
|
|
|
64080
63653
|
module.exports = Sha384
|
|
64081
63654
|
|
|
64082
|
-
},{"../inherits-2.0.4/inherits":
|
|
63655
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"./hash":322,"./sha512":329}],329:[function(require,module,exports){
|
|
64083
63656
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
64084
63657
|
var Hash = require('./hash')
|
|
64085
63658
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
@@ -64341,7 +63914,7 @@ Sha512.prototype._hash = function () {
|
|
|
64341
63914
|
|
|
64342
63915
|
module.exports = Sha512
|
|
64343
63916
|
|
|
64344
|
-
},{"../inherits-2.0.4/inherits":
|
|
63917
|
+
},{"../inherits-2.0.4/inherits":299,"../safe-buffer-5.2.0/index":312,"./hash":322}],330:[function(require,module,exports){
|
|
64345
63918
|
(function (Buffer){(function (){
|
|
64346
63919
|
const BN = require('../bn.js-4.11.8/lib/bn')
|
|
64347
63920
|
const EC = require('../elliptic-6.5.3/lib/elliptic').ec
|
|
@@ -64621,7 +64194,7 @@ module.exports = {
|
|
|
64621
64194
|
}
|
|
64622
64195
|
|
|
64623
64196
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
64624
|
-
},{"../bn.js-4.11.8/lib/bn":
|
|
64197
|
+
},{"../bn.js-4.11.8/lib/bn":250,"../elliptic-6.5.3/lib/elliptic":268,"./rfc6979":331,"buffer":63}],331:[function(require,module,exports){
|
|
64625
64198
|
(function (Buffer){(function (){
|
|
64626
64199
|
const createHmac = require('../create-hmac-1.1.7/browser')
|
|
64627
64200
|
|
|
@@ -64687,7 +64260,7 @@ function deterministicGenerateK (hash, x, checkSig, isPrivate, extraEntropy) {
|
|
|
64687
64260
|
module.exports = deterministicGenerateK
|
|
64688
64261
|
|
|
64689
64262
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
64690
|
-
},{"../create-hmac-1.1.7/browser":
|
|
64263
|
+
},{"../create-hmac-1.1.7/browser":261,"buffer":63}],332:[function(require,module,exports){
|
|
64691
64264
|
var native = require('./native')
|
|
64692
64265
|
|
|
64693
64266
|
function getTypeName (fn) {
|
|
@@ -64799,7 +64372,7 @@ module.exports = {
|
|
|
64799
64372
|
getValueTypeName: getValueTypeName
|
|
64800
64373
|
}
|
|
64801
64374
|
|
|
64802
|
-
},{"./native":
|
|
64375
|
+
},{"./native":335}],333:[function(require,module,exports){
|
|
64803
64376
|
(function (Buffer){(function (){
|
|
64804
64377
|
var NATIVE = require('./native')
|
|
64805
64378
|
var ERRORS = require('./errors')
|
|
@@ -64894,7 +64467,7 @@ for (var typeName in types) {
|
|
|
64894
64467
|
module.exports = types
|
|
64895
64468
|
|
|
64896
64469
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../node_modules/is-buffer/index.js")})
|
|
64897
|
-
},{"../../../../../../node_modules/is-buffer/index.js":146,"./errors":
|
|
64470
|
+
},{"../../../../../../node_modules/is-buffer/index.js":146,"./errors":332,"./native":335}],334:[function(require,module,exports){
|
|
64898
64471
|
var ERRORS = require('./errors')
|
|
64899
64472
|
var NATIVE = require('./native')
|
|
64900
64473
|
|
|
@@ -65156,7 +64729,7 @@ typeforce.TfPropertyTypeError = TfPropertyTypeError
|
|
|
65156
64729
|
|
|
65157
64730
|
module.exports = typeforce
|
|
65158
64731
|
|
|
65159
|
-
},{"./errors":
|
|
64732
|
+
},{"./errors":332,"./extra":333,"./native":335}],335:[function(require,module,exports){
|
|
65160
64733
|
var types = {
|
|
65161
64734
|
Array: function (value) { return value !== null && value !== undefined && value.constructor === Array },
|
|
65162
64735
|
Boolean: function (value) { return typeof value === 'boolean' },
|
|
@@ -65179,7 +64752,7 @@ for (var typeName in types) {
|
|
|
65179
64752
|
|
|
65180
64753
|
module.exports = types
|
|
65181
64754
|
|
|
65182
|
-
},{}],
|
|
64755
|
+
},{}],336:[function(require,module,exports){
|
|
65183
64756
|
(function (root) {
|
|
65184
64757
|
"use strict";
|
|
65185
64758
|
|
|
@@ -65633,7 +65206,7 @@ UChar.udata={
|
|
|
65633
65206
|
}
|
|
65634
65207
|
}(this));
|
|
65635
65208
|
|
|
65636
|
-
},{}],
|
|
65209
|
+
},{}],337:[function(require,module,exports){
|
|
65637
65210
|
(function (Buffer){(function (){
|
|
65638
65211
|
var bs58check = require('../bs58check-2.1.2/index')
|
|
65639
65212
|
|
|
@@ -65700,7 +65273,7 @@ module.exports = {
|
|
|
65700
65273
|
}
|
|
65701
65274
|
|
|
65702
65275
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
65703
|
-
},{"../bs58check-2.1.2/index":
|
|
65276
|
+
},{"../bs58check-2.1.2/index":254,"buffer":63}],338:[function(require,module,exports){
|
|
65704
65277
|
"use strict";
|
|
65705
65278
|
var __extends = (this && this.__extends) || (function () {
|
|
65706
65279
|
var extendStatics = function (d, b) {
|
|
@@ -65760,7 +65333,7 @@ var CoinlibAssertionError = /** @class */ (function (_super) {
|
|
|
65760
65333
|
}(Error));
|
|
65761
65334
|
exports.CoinlibAssertionError = CoinlibAssertionError;
|
|
65762
65335
|
|
|
65763
|
-
},{}],
|
|
65336
|
+
},{}],339:[function(require,module,exports){
|
|
65764
65337
|
"use strict";
|
|
65765
65338
|
var __extends = (this && this.__extends) || (function () {
|
|
65766
65339
|
var extendStatics = function (d, b) {
|
|
@@ -66039,63 +65612,7 @@ var InvalidString = /** @class */ (function (_super) {
|
|
|
66039
65612
|
}(SerializerError));
|
|
66040
65613
|
exports.InvalidString = InvalidString;
|
|
66041
65614
|
|
|
66042
|
-
},{"./coinlib-error":
|
|
66043
|
-
"use strict";
|
|
66044
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66045
|
-
exports.bufferFrom = exports.assertNever = exports.SubProtocolType = exports.TimeInterval = exports.Domain = exports.TransactionError = exports.BalanceError = exports.ProtocolErrorType = exports.SerializerErrorType = exports.CoinlibError = exports.NetworkError = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.TypeNotSupported = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.isProtocolSymbol = exports.isNetworkEqual = exports.SimpleAction = exports.LinkedAction = exports.RepeatableAction = exports.Action = exports.NetworkType = exports.SubProtocolSymbols = exports.MainProtocolSymbols = exports.ProtocolNetwork = exports.ProtocolBlockExplorer = exports.CryptoClient = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapMarketWallet = exports.AirGapWallet = void 0;
|
|
66046
|
-
var Action_1 = require("./actions/Action");
|
|
66047
|
-
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
|
|
66048
|
-
var LinkedAction_1 = require("./actions/LinkedAction");
|
|
66049
|
-
Object.defineProperty(exports, "LinkedAction", { enumerable: true, get: function () { return LinkedAction_1.LinkedAction; } });
|
|
66050
|
-
var RepeatableAction_1 = require("./actions/RepeatableAction");
|
|
66051
|
-
Object.defineProperty(exports, "RepeatableAction", { enumerable: true, get: function () { return RepeatableAction_1.RepeatableAction; } });
|
|
66052
|
-
var SimpleAction_1 = require("./actions/SimpleAction");
|
|
66053
|
-
Object.defineProperty(exports, "SimpleAction", { enumerable: true, get: function () { return SimpleAction_1.SimpleAction; } });
|
|
66054
|
-
var errors_1 = require("./errors");
|
|
66055
|
-
Object.defineProperty(exports, "BalanceError", { enumerable: true, get: function () { return errors_1.BalanceError; } });
|
|
66056
|
-
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } });
|
|
66057
|
-
Object.defineProperty(exports, "ProtocolErrorType", { enumerable: true, get: function () { return errors_1.ProtocolErrorType; } });
|
|
66058
|
-
Object.defineProperty(exports, "ProtocolNotSupported", { enumerable: true, get: function () { return errors_1.ProtocolNotSupported; } });
|
|
66059
|
-
Object.defineProperty(exports, "SerializerErrorType", { enumerable: true, get: function () { return errors_1.SerializerErrorType; } });
|
|
66060
|
-
Object.defineProperty(exports, "SerializerVersionMismatch", { enumerable: true, get: function () { return errors_1.SerializerVersionMismatch; } });
|
|
66061
|
-
Object.defineProperty(exports, "TransactionError", { enumerable: true, get: function () { return errors_1.TransactionError; } });
|
|
66062
|
-
Object.defineProperty(exports, "TypeNotSupported", { enumerable: true, get: function () { return errors_1.TypeNotSupported; } });
|
|
66063
|
-
var coinlib_error_1 = require("./errors/coinlib-error");
|
|
66064
|
-
Object.defineProperty(exports, "CoinlibError", { enumerable: true, get: function () { return coinlib_error_1.CoinlibError; } });
|
|
66065
|
-
Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return coinlib_error_1.Domain; } });
|
|
66066
|
-
var CryptoClient_1 = require("./protocols/CryptoClient");
|
|
66067
|
-
Object.defineProperty(exports, "CryptoClient", { enumerable: true, get: function () { return CryptoClient_1.CryptoClient; } });
|
|
66068
|
-
var ICoinSubProtocol_1 = require("./protocols/ICoinSubProtocol");
|
|
66069
|
-
Object.defineProperty(exports, "SubProtocolType", { enumerable: true, get: function () { return ICoinSubProtocol_1.SubProtocolType; } });
|
|
66070
|
-
var assert_1 = require("./utils/assert");
|
|
66071
|
-
Object.defineProperty(exports, "assertNever", { enumerable: true, get: function () { return assert_1.assertNever; } });
|
|
66072
|
-
var buffer_1 = require("./utils/buffer");
|
|
66073
|
-
Object.defineProperty(exports, "bufferFrom", { enumerable: true, get: function () { return buffer_1.bufferFrom; } });
|
|
66074
|
-
var Network_1 = require("./utils/Network");
|
|
66075
|
-
Object.defineProperty(exports, "isNetworkEqual", { enumerable: true, get: function () { return Network_1.isNetworkEqual; } });
|
|
66076
|
-
var ProtocolBlockExplorer_1 = require("./utils/ProtocolBlockExplorer");
|
|
66077
|
-
Object.defineProperty(exports, "ProtocolBlockExplorer", { enumerable: true, get: function () { return ProtocolBlockExplorer_1.ProtocolBlockExplorer; } });
|
|
66078
|
-
var ProtocolNetwork_1 = require("./utils/ProtocolNetwork");
|
|
66079
|
-
Object.defineProperty(exports, "NetworkType", { enumerable: true, get: function () { return ProtocolNetwork_1.NetworkType; } });
|
|
66080
|
-
Object.defineProperty(exports, "ProtocolNetwork", { enumerable: true, get: function () { return ProtocolNetwork_1.ProtocolNetwork; } });
|
|
66081
|
-
var ProtocolSymbols_1 = require("./utils/ProtocolSymbols");
|
|
66082
|
-
Object.defineProperty(exports, "isMainProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isMainProtocolSymbol; } });
|
|
66083
|
-
Object.defineProperty(exports, "isProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isProtocolSymbol; } });
|
|
66084
|
-
Object.defineProperty(exports, "isSubProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isSubProtocolSymbol; } });
|
|
66085
|
-
Object.defineProperty(exports, "MainProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.MainProtocolSymbols; } });
|
|
66086
|
-
Object.defineProperty(exports, "SubProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.SubProtocolSymbols; } });
|
|
66087
|
-
var AirGapCoinWallet_1 = require("./wallet/AirGapCoinWallet");
|
|
66088
|
-
Object.defineProperty(exports, "AirGapCoinWallet", { enumerable: true, get: function () { return AirGapCoinWallet_1.AirGapCoinWallet; } });
|
|
66089
|
-
Object.defineProperty(exports, "TimeInterval", { enumerable: true, get: function () { return AirGapCoinWallet_1.TimeInterval; } });
|
|
66090
|
-
var AirGapMarketWallet_1 = require("./wallet/AirGapMarketWallet");
|
|
66091
|
-
Object.defineProperty(exports, "AirGapMarketWallet", { enumerable: true, get: function () { return AirGapMarketWallet_1.AirGapMarketWallet; } });
|
|
66092
|
-
var AirGapNFTWallet_1 = require("./wallet/AirGapNFTWallet");
|
|
66093
|
-
Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: function () { return AirGapNFTWallet_1.AirGapNFTWallet; } });
|
|
66094
|
-
var AirGapWallet_1 = require("./wallet/AirGapWallet");
|
|
66095
|
-
Object.defineProperty(exports, "AirGapWallet", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWallet; } });
|
|
66096
|
-
Object.defineProperty(exports, "AirGapWalletStatus", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWalletStatus; } });
|
|
66097
|
-
|
|
66098
|
-
},{"./actions/Action":209,"./actions/LinkedAction":210,"./actions/RepeatableAction":211,"./actions/SimpleAction":212,"./errors":344,"./errors/coinlib-error":343,"./protocols/CryptoClient":347,"./protocols/ICoinSubProtocol":348,"./utils/Network":352,"./utils/ProtocolBlockExplorer":353,"./utils/ProtocolNetwork":354,"./utils/ProtocolSymbols":355,"./utils/assert":356,"./utils/buffer":357,"./wallet/AirGapCoinWallet":360,"./wallet/AirGapMarketWallet":361,"./wallet/AirGapNFTWallet":362,"./wallet/AirGapWallet":363}],346:[function(require,module,exports){
|
|
65615
|
+
},{"./coinlib-error":338}],340:[function(require,module,exports){
|
|
66099
65616
|
"use strict";
|
|
66100
65617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66101
65618
|
exports.AirGapTransactionWarningType = exports.AirGapTransactionStatus = exports.AirGapTransactionType = void 0;
|
|
@@ -66118,7 +65635,7 @@ var AirGapTransactionWarningType;
|
|
|
66118
65635
|
AirGapTransactionWarningType["ERROR"] = "error";
|
|
66119
65636
|
})(AirGapTransactionWarningType = exports.AirGapTransactionWarningType || (exports.AirGapTransactionWarningType = {}));
|
|
66120
65637
|
|
|
66121
|
-
},{}],
|
|
65638
|
+
},{}],341:[function(require,module,exports){
|
|
66122
65639
|
"use strict";
|
|
66123
65640
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
66124
65641
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -66203,17 +65720,7 @@ var CryptoClient = /** @class */ (function () {
|
|
|
66203
65720
|
}());
|
|
66204
65721
|
exports.CryptoClient = CryptoClient;
|
|
66205
65722
|
|
|
66206
|
-
},{"../errors":
|
|
66207
|
-
"use strict";
|
|
66208
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66209
|
-
exports.SubProtocolType = void 0;
|
|
66210
|
-
var SubProtocolType;
|
|
66211
|
-
(function (SubProtocolType) {
|
|
66212
|
-
SubProtocolType["ACCOUNT"] = "account";
|
|
66213
|
-
SubProtocolType["TOKEN"] = "token";
|
|
66214
|
-
})(SubProtocolType = exports.SubProtocolType || (exports.SubProtocolType = {}));
|
|
66215
|
-
|
|
66216
|
-
},{}],349:[function(require,module,exports){
|
|
65723
|
+
},{"../errors":339,"../errors/coinlib-error":338,"../utils/AES":344}],342:[function(require,module,exports){
|
|
66217
65724
|
"use strict";
|
|
66218
65725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66219
65726
|
exports.NonExtendedProtocol = void 0;
|
|
@@ -66257,7 +65764,7 @@ var NonExtendedProtocol = /** @class */ (function () {
|
|
|
66257
65764
|
}());
|
|
66258
65765
|
exports.NonExtendedProtocol = NonExtendedProtocol;
|
|
66259
65766
|
|
|
66260
|
-
},{}],
|
|
65767
|
+
},{}],343:[function(require,module,exports){
|
|
66261
65768
|
(function (Buffer){(function (){
|
|
66262
65769
|
"use strict";
|
|
66263
65770
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -66337,7 +65844,7 @@ var Secp256k1CryptoClient = /** @class */ (function (_super) {
|
|
|
66337
65844
|
exports.Secp256k1CryptoClient = Secp256k1CryptoClient;
|
|
66338
65845
|
|
|
66339
65846
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
66340
|
-
},{"../dependencies/src/eciesjs-0.3.9/src/index":
|
|
65847
|
+
},{"../dependencies/src/eciesjs-0.3.9/src/index":263,"./CryptoClient":341,"buffer":63}],344:[function(require,module,exports){
|
|
66341
65848
|
(function (Buffer){(function (){
|
|
66342
65849
|
"use strict";
|
|
66343
65850
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -66501,28 +66008,7 @@ var AES = /** @class */ (function () {
|
|
|
66501
66008
|
exports.AES = AES;
|
|
66502
66009
|
|
|
66503
66010
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
66504
|
-
},{"../errors":
|
|
66505
|
-
"use strict";
|
|
66506
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66507
|
-
exports.isNetworkEqual = void 0;
|
|
66508
|
-
var isNetworkEqual = function (network1, network2) {
|
|
66509
|
-
return network1.name === network2.name && network1.type === network2.type && network1.rpcUrl === network2.rpcUrl;
|
|
66510
|
-
};
|
|
66511
|
-
exports.isNetworkEqual = isNetworkEqual;
|
|
66512
|
-
|
|
66513
|
-
},{}],353:[function(require,module,exports){
|
|
66514
|
-
"use strict";
|
|
66515
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66516
|
-
exports.ProtocolBlockExplorer = void 0;
|
|
66517
|
-
var ProtocolBlockExplorer = /** @class */ (function () {
|
|
66518
|
-
function ProtocolBlockExplorer(blockExplorer) {
|
|
66519
|
-
this.blockExplorer = blockExplorer;
|
|
66520
|
-
}
|
|
66521
|
-
return ProtocolBlockExplorer;
|
|
66522
|
-
}());
|
|
66523
|
-
exports.ProtocolBlockExplorer = ProtocolBlockExplorer;
|
|
66524
|
-
|
|
66525
|
-
},{}],354:[function(require,module,exports){
|
|
66011
|
+
},{"../errors":339,"../errors/coinlib-error":338,"./hex":348,"buffer":63,"crypto":74}],345:[function(require,module,exports){
|
|
66526
66012
|
"use strict";
|
|
66527
66013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66528
66014
|
exports.ProtocolNetwork = exports.NetworkType = void 0;
|
|
@@ -66558,7 +66044,7 @@ var ProtocolNetwork = /** @class */ (function () {
|
|
|
66558
66044
|
}());
|
|
66559
66045
|
exports.ProtocolNetwork = ProtocolNetwork;
|
|
66560
66046
|
|
|
66561
|
-
},{"../dependencies/src/create-hash-1.2.0/index":
|
|
66047
|
+
},{"../dependencies/src/create-hash-1.2.0/index":258}],346:[function(require,module,exports){
|
|
66562
66048
|
"use strict";
|
|
66563
66049
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66564
66050
|
exports.isProtocolSymbol = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.SubProtocolSymbols = exports.MainProtocolSymbols = void 0;
|
|
@@ -66617,7 +66103,7 @@ function isProtocolSymbol(identifier) {
|
|
|
66617
66103
|
}
|
|
66618
66104
|
exports.isProtocolSymbol = isProtocolSymbol;
|
|
66619
66105
|
|
|
66620
|
-
},{}],
|
|
66106
|
+
},{}],347:[function(require,module,exports){
|
|
66621
66107
|
"use strict";
|
|
66622
66108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66623
66109
|
exports.assertFields = exports.assertNever = void 0;
|
|
@@ -66638,18 +66124,7 @@ function assertFields(name, object) {
|
|
|
66638
66124
|
}
|
|
66639
66125
|
exports.assertFields = assertFields;
|
|
66640
66126
|
|
|
66641
|
-
},{"../errors":
|
|
66642
|
-
(function (Buffer){(function (){
|
|
66643
|
-
"use strict";
|
|
66644
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66645
|
-
exports.bufferFrom = void 0;
|
|
66646
|
-
var bufferFrom = function (data, encoding) {
|
|
66647
|
-
return Buffer.from(data, encoding);
|
|
66648
|
-
};
|
|
66649
|
-
exports.bufferFrom = bufferFrom;
|
|
66650
|
-
|
|
66651
|
-
}).call(this)}).call(this,require("buffer").Buffer)
|
|
66652
|
-
},{"buffer":63}],358:[function(require,module,exports){
|
|
66127
|
+
},{"../errors":339,"../errors/coinlib-error":338}],348:[function(require,module,exports){
|
|
66653
66128
|
(function (Buffer){(function (){
|
|
66654
66129
|
"use strict";
|
|
66655
66130
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -66764,7 +66239,7 @@ function fillToTargetLength(hexString, bitLength) {
|
|
|
66764
66239
|
}
|
|
66765
66240
|
|
|
66766
66241
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
66767
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":
|
|
66242
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":236,"./padStart":349,"buffer":63}],349:[function(require,module,exports){
|
|
66768
66243
|
"use strict";
|
|
66769
66244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66770
66245
|
exports.padStart = void 0;
|
|
@@ -66785,743 +66260,7 @@ function padStart(targetString, targetLength, padString) {
|
|
|
66785
66260
|
}
|
|
66786
66261
|
exports.padStart = padStart;
|
|
66787
66262
|
|
|
66788
|
-
},{}],
|
|
66789
|
-
"use strict";
|
|
66790
|
-
var __extends = (this && this.__extends) || (function () {
|
|
66791
|
-
var extendStatics = function (d, b) {
|
|
66792
|
-
extendStatics = Object.setPrototypeOf ||
|
|
66793
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
66794
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
66795
|
-
return extendStatics(d, b);
|
|
66796
|
-
};
|
|
66797
|
-
return function (d, b) {
|
|
66798
|
-
extendStatics(d, b);
|
|
66799
|
-
function __() { this.constructor = d; }
|
|
66800
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
66801
|
-
};
|
|
66802
|
-
})();
|
|
66803
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
66804
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
66805
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
66806
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
66807
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
66808
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
66809
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
66810
|
-
});
|
|
66811
|
-
};
|
|
66812
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
66813
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
66814
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
66815
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
66816
|
-
function step(op) {
|
|
66817
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
66818
|
-
while (_) try {
|
|
66819
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
66820
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
66821
|
-
switch (op[0]) {
|
|
66822
|
-
case 0: case 1: t = op; break;
|
|
66823
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
66824
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
66825
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
66826
|
-
default:
|
|
66827
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66828
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66829
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66830
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
66831
|
-
if (t[2]) _.ops.pop();
|
|
66832
|
-
_.trys.pop(); continue;
|
|
66833
|
-
}
|
|
66834
|
-
op = body.call(thisArg, _);
|
|
66835
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
66836
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
66837
|
-
}
|
|
66838
|
-
};
|
|
66839
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
66840
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
66841
|
-
};
|
|
66842
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66843
|
-
exports.AirGapCoinWallet = exports.TimeInterval = void 0;
|
|
66844
|
-
var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
66845
|
-
var ProtocolNetwork_1 = require("../utils/ProtocolNetwork");
|
|
66846
|
-
var ProtocolSymbols_1 = require("../utils/ProtocolSymbols");
|
|
66847
|
-
var AirGapMarketWallet_1 = require("./AirGapMarketWallet");
|
|
66848
|
-
var TimeInterval;
|
|
66849
|
-
(function (TimeInterval) {
|
|
66850
|
-
TimeInterval["HOURS"] = "24h";
|
|
66851
|
-
TimeInterval["DAYS"] = "7d";
|
|
66852
|
-
TimeInterval["MONTH"] = "30d";
|
|
66853
|
-
})(TimeInterval = exports.TimeInterval || (exports.TimeInterval = {}));
|
|
66854
|
-
var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
66855
|
-
__extends(AirGapCoinWallet, _super);
|
|
66856
|
-
function AirGapCoinWallet() {
|
|
66857
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
66858
|
-
}
|
|
66859
|
-
AirGapCoinWallet.prototype.getCurrentBalance = function () {
|
|
66860
|
-
return this.currentBalance;
|
|
66861
|
-
};
|
|
66862
|
-
AirGapCoinWallet.prototype.setCurrentBalance = function (balance) {
|
|
66863
|
-
this.currentBalance = balance;
|
|
66864
|
-
};
|
|
66865
|
-
AirGapCoinWallet.prototype.getCurrentMarketPrice = function () {
|
|
66866
|
-
return this.currentMarketPrice;
|
|
66867
|
-
};
|
|
66868
|
-
AirGapCoinWallet.prototype.setCurrentMarketPrice = function (marketPrice) {
|
|
66869
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
66870
|
-
var _a;
|
|
66871
|
-
return __generator(this, function (_b) {
|
|
66872
|
-
switch (_b.label) {
|
|
66873
|
-
case 0:
|
|
66874
|
-
_a = this;
|
|
66875
|
-
return [4 /*yield*/, this.protocol.getOptions()];
|
|
66876
|
-
case 1:
|
|
66877
|
-
_a.currentMarketPrice = (_b.sent()).network.type === ProtocolNetwork_1.NetworkType.MAINNET ? marketPrice : new bignumber_1.default(0);
|
|
66878
|
-
return [2 /*return*/];
|
|
66879
|
-
}
|
|
66880
|
-
});
|
|
66881
|
-
});
|
|
66882
|
-
};
|
|
66883
|
-
AirGapCoinWallet.prototype._synchronize = function () {
|
|
66884
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
66885
|
-
var _a, balance, marketPrice;
|
|
66886
|
-
return __generator(this, function (_b) {
|
|
66887
|
-
switch (_b.label) {
|
|
66888
|
-
case 0: return [4 /*yield*/, Promise.all([this.balanceOf(), this.fetchCurrentMarketPrice()])];
|
|
66889
|
-
case 1:
|
|
66890
|
-
_a = _b.sent(), balance = _a[0], marketPrice = _a[1];
|
|
66891
|
-
this.setCurrentBalance(balance);
|
|
66892
|
-
return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice)];
|
|
66893
|
-
case 2:
|
|
66894
|
-
_b.sent();
|
|
66895
|
-
return [2 /*return*/];
|
|
66896
|
-
}
|
|
66897
|
-
});
|
|
66898
|
-
});
|
|
66899
|
-
};
|
|
66900
|
-
AirGapCoinWallet.prototype.reset = function () {
|
|
66901
|
-
this.currentBalance = undefined;
|
|
66902
|
-
this.currentMarketPrice = undefined;
|
|
66903
|
-
};
|
|
66904
|
-
AirGapCoinWallet.prototype.fetchCurrentMarketPrice = function (baseSymbol) {
|
|
66905
|
-
if (baseSymbol === void 0) { baseSymbol = 'USD'; }
|
|
66906
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
66907
|
-
var marketPrice;
|
|
66908
|
-
return __generator(this, function (_a) {
|
|
66909
|
-
switch (_a.label) {
|
|
66910
|
-
case 0: return [4 /*yield*/, this.priceService.getCurrentMarketPrice(this.protocol, baseSymbol)];
|
|
66911
|
-
case 1:
|
|
66912
|
-
marketPrice = _a.sent();
|
|
66913
|
-
return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice)];
|
|
66914
|
-
case 2:
|
|
66915
|
-
_a.sent();
|
|
66916
|
-
return [2 /*return*/, marketPrice];
|
|
66917
|
-
}
|
|
66918
|
-
});
|
|
66919
|
-
});
|
|
66920
|
-
};
|
|
66921
|
-
AirGapCoinWallet.prototype.balanceOf = function () {
|
|
66922
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
66923
|
-
var protocolIdentifier, result, _a, _b, _c, _d, _e;
|
|
66924
|
-
return __generator(this, function (_f) {
|
|
66925
|
-
switch (_f.label) {
|
|
66926
|
-
case 0: return [4 /*yield*/, this.protocol.getIdentifier()];
|
|
66927
|
-
case 1:
|
|
66928
|
-
protocolIdentifier = _f.sent();
|
|
66929
|
-
if (!((protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC ||
|
|
66930
|
-
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC_SEGWIT ||
|
|
66931
|
-
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.GRS) &&
|
|
66932
|
-
this.isExtendedPublicKey)) return [3 /*break*/, 3];
|
|
66933
|
-
_a = bignumber_1.default.bind;
|
|
66934
|
-
return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0)];
|
|
66935
|
-
case 2:
|
|
66936
|
-
// TODO: Remove and test
|
|
66937
|
-
/*
|
|
66938
|
-
We should remove this if BTC also uses blockbook. (And change the order of the if/else below)
|
|
66939
|
-
|
|
66940
|
-
The problem is that we have addresses cached for all protocols. But blockbook (grs) doesn't allow
|
|
66941
|
-
multiple addresses to be checked at once, so we need to xPub key there (or we would do 100s of requests).
|
|
66942
|
-
|
|
66943
|
-
We can also not simply change the order of the following if/else, because then it would use the xPub method for
|
|
66944
|
-
BTC as well, which results in the addresses being derived again, which causes massive lags in the apps.
|
|
66945
|
-
*/
|
|
66946
|
-
result = new (_a.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
66947
|
-
return [3 /*break*/, 11];
|
|
66948
|
-
case 3:
|
|
66949
|
-
if (!(protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED) /* TODO: cover ALL sapling protocols */) return [3 /*break*/, 5]; /* TODO: cover ALL sapling protocols */
|
|
66950
|
-
_b = bignumber_1.default.bind;
|
|
66951
|
-
return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey)];
|
|
66952
|
-
case 4:
|
|
66953
|
-
result = new (_b.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
66954
|
-
return [3 /*break*/, 11];
|
|
66955
|
-
case 5:
|
|
66956
|
-
if (!(this.addresses.length > 0)) return [3 /*break*/, 7];
|
|
66957
|
-
_c = bignumber_1.default.bind;
|
|
66958
|
-
return [4 /*yield*/, this.protocol.getBalanceOfAddresses(this.addressesToCheck())];
|
|
66959
|
-
case 6:
|
|
66960
|
-
result = new (_c.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
66961
|
-
return [3 /*break*/, 11];
|
|
66962
|
-
case 7:
|
|
66963
|
-
if (!this.isExtendedPublicKey) return [3 /*break*/, 9];
|
|
66964
|
-
_d = bignumber_1.default.bind;
|
|
66965
|
-
return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0)];
|
|
66966
|
-
case 8:
|
|
66967
|
-
result = new (_d.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
66968
|
-
return [3 /*break*/, 11];
|
|
66969
|
-
case 9:
|
|
66970
|
-
_e = bignumber_1.default.bind;
|
|
66971
|
-
return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey)];
|
|
66972
|
-
case 10:
|
|
66973
|
-
result = new (_e.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
66974
|
-
_f.label = 11;
|
|
66975
|
-
case 11:
|
|
66976
|
-
this.setCurrentBalance(result);
|
|
66977
|
-
return [2 /*return*/, result];
|
|
66978
|
-
}
|
|
66979
|
-
});
|
|
66980
|
-
});
|
|
66981
|
-
};
|
|
66982
|
-
return AirGapCoinWallet;
|
|
66983
|
-
}(AirGapMarketWallet_1.AirGapMarketWallet));
|
|
66984
|
-
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
66985
|
-
|
|
66986
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":241,"../utils/ProtocolNetwork":354,"../utils/ProtocolSymbols":355,"./AirGapMarketWallet":361}],361:[function(require,module,exports){
|
|
66987
|
-
"use strict";
|
|
66988
|
-
var __extends = (this && this.__extends) || (function () {
|
|
66989
|
-
var extendStatics = function (d, b) {
|
|
66990
|
-
extendStatics = Object.setPrototypeOf ||
|
|
66991
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
66992
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
66993
|
-
return extendStatics(d, b);
|
|
66994
|
-
};
|
|
66995
|
-
return function (d, b) {
|
|
66996
|
-
extendStatics(d, b);
|
|
66997
|
-
function __() { this.constructor = d; }
|
|
66998
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
66999
|
-
};
|
|
67000
|
-
})();
|
|
67001
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
67002
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
67003
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
67004
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
67005
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
67006
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
67007
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
67008
|
-
});
|
|
67009
|
-
};
|
|
67010
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
67011
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
67012
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
67013
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
67014
|
-
function step(op) {
|
|
67015
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
67016
|
-
while (_) try {
|
|
67017
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
67018
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
67019
|
-
switch (op[0]) {
|
|
67020
|
-
case 0: case 1: t = op; break;
|
|
67021
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
67022
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
67023
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
67024
|
-
default:
|
|
67025
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
67026
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67027
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67028
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67029
|
-
if (t[2]) _.ops.pop();
|
|
67030
|
-
_.trys.pop(); continue;
|
|
67031
|
-
}
|
|
67032
|
-
op = body.call(thisArg, _);
|
|
67033
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
67034
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
67035
|
-
}
|
|
67036
|
-
};
|
|
67037
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
67038
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
67039
|
-
};
|
|
67040
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67041
|
-
exports.AirGapMarketWallet = void 0;
|
|
67042
|
-
var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
67043
|
-
var ProtocolSymbols_1 = require("../utils/ProtocolSymbols");
|
|
67044
|
-
var AirGapWallet_1 = require("./AirGapWallet");
|
|
67045
|
-
var AirGapMarketWallet = /** @class */ (function (_super) {
|
|
67046
|
-
__extends(AirGapMarketWallet, _super);
|
|
67047
|
-
function AirGapMarketWallet(protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, priceService, addressIndex) {
|
|
67048
|
-
var _this = _super.call(this, protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, addressIndex) || this;
|
|
67049
|
-
_this.protocol = protocol;
|
|
67050
|
-
_this.publicKey = publicKey;
|
|
67051
|
-
_this.isExtendedPublicKey = isExtendedPublicKey;
|
|
67052
|
-
_this.derivationPath = derivationPath;
|
|
67053
|
-
_this.masterFingerprint = masterFingerprint;
|
|
67054
|
-
_this.status = status;
|
|
67055
|
-
_this.priceService = priceService;
|
|
67056
|
-
_this.addressIndex = addressIndex;
|
|
67057
|
-
return _this;
|
|
67058
|
-
}
|
|
67059
|
-
AirGapMarketWallet.prototype.addressesToCheck = function () {
|
|
67060
|
-
var addressesToReceive = this.addressIndex !== undefined ? [this.addresses[this.addressIndex]] : this.addresses;
|
|
67061
|
-
return addressesToReceive;
|
|
67062
|
-
};
|
|
67063
|
-
AirGapMarketWallet.prototype.setProtocol = function (protocol) {
|
|
67064
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67065
|
-
return __generator(this, function (_a) {
|
|
67066
|
-
switch (_a.label) {
|
|
67067
|
-
case 0: return [4 /*yield*/, _super.prototype.setProtocol.call(this, protocol)];
|
|
67068
|
-
case 1:
|
|
67069
|
-
_a.sent();
|
|
67070
|
-
this.reset();
|
|
67071
|
-
return [4 /*yield*/, this.synchronize()];
|
|
67072
|
-
case 2:
|
|
67073
|
-
_a.sent();
|
|
67074
|
-
return [2 /*return*/];
|
|
67075
|
-
}
|
|
67076
|
-
});
|
|
67077
|
-
});
|
|
67078
|
-
};
|
|
67079
|
-
AirGapMarketWallet.prototype.synchronize = function () {
|
|
67080
|
-
var args = [];
|
|
67081
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
67082
|
-
args[_i] = arguments[_i];
|
|
67083
|
-
}
|
|
67084
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67085
|
-
var _this = this;
|
|
67086
|
-
return __generator(this, function (_a) {
|
|
67087
|
-
if (this.synchronizePromise === undefined) {
|
|
67088
|
-
this.synchronizePromise = this._synchronize.apply(this, args).finally(function () {
|
|
67089
|
-
_this.synchronizePromise = undefined;
|
|
67090
|
-
});
|
|
67091
|
-
}
|
|
67092
|
-
return [2 /*return*/, this.synchronizePromise];
|
|
67093
|
-
});
|
|
67094
|
-
});
|
|
67095
|
-
};
|
|
67096
|
-
AirGapMarketWallet.prototype.fetchTransactions = function (limit, cursor) {
|
|
67097
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67098
|
-
var protocolIdentifier, transactionResult;
|
|
67099
|
-
return __generator(this, function (_a) {
|
|
67100
|
-
switch (_a.label) {
|
|
67101
|
-
case 0: return [4 /*yield*/, this.protocol.getIdentifier()
|
|
67102
|
-
// let transactions: IAirGapTransaction[] = []
|
|
67103
|
-
];
|
|
67104
|
-
case 1:
|
|
67105
|
-
protocolIdentifier = _a.sent();
|
|
67106
|
-
if (!((protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC ||
|
|
67107
|
-
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC_SEGWIT ||
|
|
67108
|
-
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.GRS) &&
|
|
67109
|
-
this.isExtendedPublicKey)) return [3 /*break*/, 3];
|
|
67110
|
-
return [4 /*yield*/, this.protocol.getTransactionsFromExtendedPublicKey(this.publicKey, limit, cursor)];
|
|
67111
|
-
case 2:
|
|
67112
|
-
// TODO: Remove and test
|
|
67113
|
-
/*
|
|
67114
|
-
We should remove this if BTC also uses blockbook. (And change the order of the if/else below)
|
|
67115
|
-
|
|
67116
|
-
The problem is that we have addresses cached for all protocols. But blockbook (grs) doesn't allow
|
|
67117
|
-
multiple addresses to be checked at once, so we need to xPub key there (or we would do 100s of requests).
|
|
67118
|
-
|
|
67119
|
-
We can also not simply change the order of the following if/else, because then it would use the xPub method for
|
|
67120
|
-
BTC as well, which results in the addresses being derived again, which causes massive lags in the apps.
|
|
67121
|
-
*/
|
|
67122
|
-
transactionResult = _a.sent();
|
|
67123
|
-
return [3 /*break*/, 11];
|
|
67124
|
-
case 3:
|
|
67125
|
-
if (!(protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED) /* TODO: cover ALL sapling protocols */) return [3 /*break*/, 5]; /* TODO: cover ALL sapling protocols */
|
|
67126
|
-
return [4 /*yield*/, this.protocol.getTransactionsFromPublicKey(this.publicKey, limit, cursor)];
|
|
67127
|
-
case 4:
|
|
67128
|
-
transactionResult = _a.sent();
|
|
67129
|
-
return [3 /*break*/, 11];
|
|
67130
|
-
case 5:
|
|
67131
|
-
if (!(this.addresses.length > 0)) return [3 /*break*/, 7];
|
|
67132
|
-
return [4 /*yield*/, this.protocol.getTransactionsFromAddresses(this.addressesToCheck(), limit, cursor)];
|
|
67133
|
-
case 6:
|
|
67134
|
-
transactionResult = _a.sent();
|
|
67135
|
-
return [3 /*break*/, 11];
|
|
67136
|
-
case 7:
|
|
67137
|
-
if (!this.isExtendedPublicKey) return [3 /*break*/, 9];
|
|
67138
|
-
return [4 /*yield*/, this.protocol.getTransactionsFromExtendedPublicKey(this.publicKey, limit, cursor)];
|
|
67139
|
-
case 8:
|
|
67140
|
-
transactionResult = _a.sent();
|
|
67141
|
-
return [3 /*break*/, 11];
|
|
67142
|
-
case 9: return [4 /*yield*/, this.protocol.getTransactionsFromPublicKey(this.publicKey, limit, cursor)];
|
|
67143
|
-
case 10:
|
|
67144
|
-
transactionResult = _a.sent();
|
|
67145
|
-
_a.label = 11;
|
|
67146
|
-
case 11: return [2 /*return*/, transactionResult];
|
|
67147
|
-
}
|
|
67148
|
-
});
|
|
67149
|
-
});
|
|
67150
|
-
};
|
|
67151
|
-
AirGapMarketWallet.prototype.prepareTransaction = function (recipients, values, fee, data) {
|
|
67152
|
-
if (this.isExtendedPublicKey) {
|
|
67153
|
-
return this.protocol.prepareTransactionFromExtendedPublicKey(this.publicKey, 0, recipients, values, fee, data);
|
|
67154
|
-
}
|
|
67155
|
-
else {
|
|
67156
|
-
if (this.addressIndex) {
|
|
67157
|
-
data = Object.assign(data, { addressIndex: this.addressIndex });
|
|
67158
|
-
}
|
|
67159
|
-
return this.protocol.prepareTransactionFromPublicKey(this.publicKey, recipients, values, fee, data);
|
|
67160
|
-
}
|
|
67161
|
-
};
|
|
67162
|
-
AirGapMarketWallet.prototype.getMaxTransferValue = function (recipients, fee, data) {
|
|
67163
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67164
|
-
var _a, _b;
|
|
67165
|
-
return __generator(this, function (_c) {
|
|
67166
|
-
switch (_c.label) {
|
|
67167
|
-
case 0:
|
|
67168
|
-
if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
|
|
67169
|
-
_a = bignumber_1.default.bind;
|
|
67170
|
-
return [4 /*yield*/, this.protocol.estimateMaxTransactionValueFromExtendedPublicKey(this.publicKey, recipients, fee, data)];
|
|
67171
|
-
case 1: return [2 /*return*/, new (_a.apply(bignumber_1.default, [void 0, _c.sent()]))()];
|
|
67172
|
-
case 2:
|
|
67173
|
-
if (this.addressIndex) {
|
|
67174
|
-
data = Object.assign(data, { addressIndex: this.addressIndex });
|
|
67175
|
-
}
|
|
67176
|
-
_b = bignumber_1.default.bind;
|
|
67177
|
-
return [4 /*yield*/, this.protocol.estimateMaxTransactionValueFromPublicKey(this.publicKey, recipients, fee, data)];
|
|
67178
|
-
case 3: return [2 /*return*/, new (_b.apply(bignumber_1.default, [void 0, _c.sent()]))()];
|
|
67179
|
-
}
|
|
67180
|
-
});
|
|
67181
|
-
});
|
|
67182
|
-
};
|
|
67183
|
-
AirGapMarketWallet.prototype.estimateFees = function (recipients, values, data) {
|
|
67184
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67185
|
-
return __generator(this, function (_a) {
|
|
67186
|
-
if (this.isExtendedPublicKey) {
|
|
67187
|
-
return [2 /*return*/, this.protocol.estimateFeeDefaultsFromExtendedPublicKey(this.publicKey, recipients, values, data)];
|
|
67188
|
-
}
|
|
67189
|
-
else {
|
|
67190
|
-
if (this.addressIndex) {
|
|
67191
|
-
data = Object.assign(data, { addressIndex: this.addressIndex });
|
|
67192
|
-
}
|
|
67193
|
-
return [2 /*return*/, this.protocol.estimateFeeDefaultsFromPublicKey(this.publicKey, recipients, values, data)];
|
|
67194
|
-
}
|
|
67195
|
-
return [2 /*return*/];
|
|
67196
|
-
});
|
|
67197
|
-
});
|
|
67198
|
-
};
|
|
67199
|
-
return AirGapMarketWallet;
|
|
67200
|
-
}(AirGapWallet_1.AirGapWallet));
|
|
67201
|
-
exports.AirGapMarketWallet = AirGapMarketWallet;
|
|
67202
|
-
|
|
67203
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":241,"../utils/ProtocolSymbols":355,"./AirGapWallet":363}],362:[function(require,module,exports){
|
|
67204
|
-
"use strict";
|
|
67205
|
-
var __extends = (this && this.__extends) || (function () {
|
|
67206
|
-
var extendStatics = function (d, b) {
|
|
67207
|
-
extendStatics = Object.setPrototypeOf ||
|
|
67208
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
67209
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
67210
|
-
return extendStatics(d, b);
|
|
67211
|
-
};
|
|
67212
|
-
return function (d, b) {
|
|
67213
|
-
extendStatics(d, b);
|
|
67214
|
-
function __() { this.constructor = d; }
|
|
67215
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
67216
|
-
};
|
|
67217
|
-
})();
|
|
67218
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
67219
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
67220
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
67221
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
67222
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
67223
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
67224
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
67225
|
-
});
|
|
67226
|
-
};
|
|
67227
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
67228
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
67229
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
67230
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
67231
|
-
function step(op) {
|
|
67232
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
67233
|
-
while (_) try {
|
|
67234
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
67235
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
67236
|
-
switch (op[0]) {
|
|
67237
|
-
case 0: case 1: t = op; break;
|
|
67238
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
67239
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
67240
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
67241
|
-
default:
|
|
67242
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
67243
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67244
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67245
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67246
|
-
if (t[2]) _.ops.pop();
|
|
67247
|
-
_.trys.pop(); continue;
|
|
67248
|
-
}
|
|
67249
|
-
op = body.call(thisArg, _);
|
|
67250
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
67251
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
67252
|
-
}
|
|
67253
|
-
};
|
|
67254
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
67255
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
67256
|
-
};
|
|
67257
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67258
|
-
exports.AirGapNFTWallet = void 0;
|
|
67259
|
-
var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
67260
|
-
var ProtocolNetwork_1 = require("../utils/ProtocolNetwork");
|
|
67261
|
-
var AirGapMarketWallet_1 = require("./AirGapMarketWallet");
|
|
67262
|
-
var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
67263
|
-
__extends(AirGapNFTWallet, _super);
|
|
67264
|
-
function AirGapNFTWallet() {
|
|
67265
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67266
|
-
_this.currentBalance = {};
|
|
67267
|
-
_this.currentMarketPrice = {};
|
|
67268
|
-
return _this;
|
|
67269
|
-
}
|
|
67270
|
-
AirGapNFTWallet.prototype.getCurrentBalance = function (assetID) {
|
|
67271
|
-
return this.currentBalance[assetID];
|
|
67272
|
-
};
|
|
67273
|
-
AirGapNFTWallet.prototype.setCurrentBalance = function (balance, assetID) {
|
|
67274
|
-
this.currentBalance[assetID] = balance;
|
|
67275
|
-
};
|
|
67276
|
-
AirGapNFTWallet.prototype.getCurrentMarketPrice = function (assetID) {
|
|
67277
|
-
return this.currentMarketPrice[assetID];
|
|
67278
|
-
};
|
|
67279
|
-
AirGapNFTWallet.prototype.setCurrentMarketPrice = function (marketPrice, assetID) {
|
|
67280
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67281
|
-
var _a, _b;
|
|
67282
|
-
return __generator(this, function (_c) {
|
|
67283
|
-
switch (_c.label) {
|
|
67284
|
-
case 0:
|
|
67285
|
-
_a = this.getCurrentMarketPrice;
|
|
67286
|
-
_b = assetID;
|
|
67287
|
-
return [4 /*yield*/, this.protocol.getOptions()];
|
|
67288
|
-
case 1:
|
|
67289
|
-
_a[_b] =
|
|
67290
|
-
(_c.sent()).network.type === ProtocolNetwork_1.NetworkType.MAINNET ? marketPrice : new bignumber_1.default(0);
|
|
67291
|
-
return [2 /*return*/];
|
|
67292
|
-
}
|
|
67293
|
-
});
|
|
67294
|
-
});
|
|
67295
|
-
};
|
|
67296
|
-
AirGapNFTWallet.prototype.synchronize = function (assetsID) {
|
|
67297
|
-
if (assetsID === void 0) { assetsID = []; }
|
|
67298
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67299
|
-
return __generator(this, function (_a) {
|
|
67300
|
-
return [2 /*return*/, _super.prototype.synchronize.call(this, assetsID)];
|
|
67301
|
-
});
|
|
67302
|
-
});
|
|
67303
|
-
};
|
|
67304
|
-
AirGapNFTWallet.prototype._synchronize = function (assetIDs) {
|
|
67305
|
-
if (assetIDs === void 0) { assetIDs = []; }
|
|
67306
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67307
|
-
var _this = this;
|
|
67308
|
-
return __generator(this, function (_a) {
|
|
67309
|
-
switch (_a.label) {
|
|
67310
|
-
case 0: return [4 /*yield*/, Promise.all(assetIDs.map(function (assetID) { return __awaiter(_this, void 0, void 0, function () {
|
|
67311
|
-
var _a, balance, marketPrice;
|
|
67312
|
-
return __generator(this, function (_b) {
|
|
67313
|
-
switch (_b.label) {
|
|
67314
|
-
case 0: return [4 /*yield*/, Promise.all([this.balanceOf(assetID), this.fetchCurrentMarketPrice(assetID)])];
|
|
67315
|
-
case 1:
|
|
67316
|
-
_a = _b.sent(), balance = _a[0], marketPrice = _a[1];
|
|
67317
|
-
this.setCurrentBalance(balance, assetID);
|
|
67318
|
-
return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice, assetID)];
|
|
67319
|
-
case 2:
|
|
67320
|
-
_b.sent();
|
|
67321
|
-
return [2 /*return*/];
|
|
67322
|
-
}
|
|
67323
|
-
});
|
|
67324
|
-
}); }))];
|
|
67325
|
-
case 1:
|
|
67326
|
-
_a.sent();
|
|
67327
|
-
return [2 /*return*/];
|
|
67328
|
-
}
|
|
67329
|
-
});
|
|
67330
|
-
});
|
|
67331
|
-
};
|
|
67332
|
-
AirGapNFTWallet.prototype.reset = function () {
|
|
67333
|
-
this.currentBalance = {};
|
|
67334
|
-
this.currentMarketPrice = {};
|
|
67335
|
-
};
|
|
67336
|
-
AirGapNFTWallet.prototype.fetchCurrentMarketPrice = function (assetID, _baseSymbol) {
|
|
67337
|
-
if (_baseSymbol === void 0) { _baseSymbol = 'USD'; }
|
|
67338
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67339
|
-
var result;
|
|
67340
|
-
return __generator(this, function (_a) {
|
|
67341
|
-
switch (_a.label) {
|
|
67342
|
-
case 0:
|
|
67343
|
-
result = new bignumber_1.default(0);
|
|
67344
|
-
return [4 /*yield*/, this.setCurrentMarketPrice(result, assetID)];
|
|
67345
|
-
case 1:
|
|
67346
|
-
_a.sent();
|
|
67347
|
-
return [2 /*return*/, result];
|
|
67348
|
-
}
|
|
67349
|
-
});
|
|
67350
|
-
});
|
|
67351
|
-
};
|
|
67352
|
-
AirGapNFTWallet.prototype.balanceOf = function (assetID) {
|
|
67353
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67354
|
-
var result, _a, _b;
|
|
67355
|
-
return __generator(this, function (_c) {
|
|
67356
|
-
switch (_c.label) {
|
|
67357
|
-
case 0:
|
|
67358
|
-
if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
|
|
67359
|
-
_a = bignumber_1.default.bind;
|
|
67360
|
-
return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0, { assetID: assetID })];
|
|
67361
|
-
case 1:
|
|
67362
|
-
result = new (_a.apply(bignumber_1.default, [void 0, _c.sent()]))();
|
|
67363
|
-
return [3 /*break*/, 4];
|
|
67364
|
-
case 2:
|
|
67365
|
-
_b = bignumber_1.default.bind;
|
|
67366
|
-
return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey, { addressIndex: this.addressIndex, assetID: assetID })];
|
|
67367
|
-
case 3:
|
|
67368
|
-
result = new (_b.apply(bignumber_1.default, [void 0, _c.sent()]))();
|
|
67369
|
-
_c.label = 4;
|
|
67370
|
-
case 4:
|
|
67371
|
-
this.setCurrentBalance(result, assetID);
|
|
67372
|
-
return [2 /*return*/, result];
|
|
67373
|
-
}
|
|
67374
|
-
});
|
|
67375
|
-
});
|
|
67376
|
-
};
|
|
67377
|
-
return AirGapNFTWallet;
|
|
67378
|
-
}(AirGapMarketWallet_1.AirGapMarketWallet));
|
|
67379
|
-
exports.AirGapNFTWallet = AirGapNFTWallet;
|
|
67380
|
-
|
|
67381
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":241,"../utils/ProtocolNetwork":354,"./AirGapMarketWallet":361}],363:[function(require,module,exports){
|
|
67382
|
-
"use strict";
|
|
67383
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
67384
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
67385
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
67386
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
67387
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
67388
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
67389
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
67390
|
-
});
|
|
67391
|
-
};
|
|
67392
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
67393
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
67394
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
67395
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
67396
|
-
function step(op) {
|
|
67397
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
67398
|
-
while (_) try {
|
|
67399
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
67400
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
67401
|
-
switch (op[0]) {
|
|
67402
|
-
case 0: case 1: t = op; break;
|
|
67403
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
67404
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
67405
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
67406
|
-
default:
|
|
67407
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
67408
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67409
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67410
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67411
|
-
if (t[2]) _.ops.pop();
|
|
67412
|
-
_.trys.pop(); continue;
|
|
67413
|
-
}
|
|
67414
|
-
op = body.call(thisArg, _);
|
|
67415
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
67416
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
67417
|
-
}
|
|
67418
|
-
};
|
|
67419
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67420
|
-
exports.AirGapWallet = exports.AirGapWalletStatus = void 0;
|
|
67421
|
-
var errors_1 = require("../errors");
|
|
67422
|
-
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
67423
|
-
var AirGapWalletStatus;
|
|
67424
|
-
(function (AirGapWalletStatus) {
|
|
67425
|
-
AirGapWalletStatus["ACTIVE"] = "active";
|
|
67426
|
-
AirGapWalletStatus["HIDDEN"] = "hidden";
|
|
67427
|
-
AirGapWalletStatus["DELETED"] = "deleted";
|
|
67428
|
-
AirGapWalletStatus["TRANSIENT"] = "transient";
|
|
67429
|
-
})(AirGapWalletStatus = exports.AirGapWalletStatus || (exports.AirGapWalletStatus = {}));
|
|
67430
|
-
var AirGapWallet = /** @class */ (function () {
|
|
67431
|
-
function AirGapWallet(protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, addressIndex) {
|
|
67432
|
-
this.protocol = protocol;
|
|
67433
|
-
this.publicKey = publicKey;
|
|
67434
|
-
this.isExtendedPublicKey = isExtendedPublicKey;
|
|
67435
|
-
this.derivationPath = derivationPath;
|
|
67436
|
-
this.masterFingerprint = masterFingerprint;
|
|
67437
|
-
this.status = status;
|
|
67438
|
-
this.addressIndex = addressIndex;
|
|
67439
|
-
this.addresses = []; // used for cache
|
|
67440
|
-
}
|
|
67441
|
-
Object.defineProperty(AirGapWallet.prototype, "receivingPublicAddress", {
|
|
67442
|
-
get: function () {
|
|
67443
|
-
return this.addresses[this.addressIndex !== undefined ? this.addressIndex : 0];
|
|
67444
|
-
},
|
|
67445
|
-
enumerable: false,
|
|
67446
|
-
configurable: true
|
|
67447
|
-
});
|
|
67448
|
-
AirGapWallet.prototype.setProtocol = function (protocol) {
|
|
67449
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67450
|
-
var _a;
|
|
67451
|
-
return __generator(this, function (_b) {
|
|
67452
|
-
switch (_b.label) {
|
|
67453
|
-
case 0: return [4 /*yield*/, this.protocol.getIdentifier()];
|
|
67454
|
-
case 1:
|
|
67455
|
-
_a = (_b.sent());
|
|
67456
|
-
return [4 /*yield*/, protocol.getIdentifier()];
|
|
67457
|
-
case 2:
|
|
67458
|
-
if (_a !== (_b.sent())) {
|
|
67459
|
-
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.WALLET, 'Can only set same protocol with a different network');
|
|
67460
|
-
}
|
|
67461
|
-
this.protocol = protocol;
|
|
67462
|
-
return [2 /*return*/];
|
|
67463
|
-
}
|
|
67464
|
-
});
|
|
67465
|
-
});
|
|
67466
|
-
};
|
|
67467
|
-
AirGapWallet.prototype.deriveAddresses = function (amount) {
|
|
67468
|
-
if (amount === void 0) { amount = 50; }
|
|
67469
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67470
|
-
var addresses, parts, offset;
|
|
67471
|
-
return __generator(this, function (_a) {
|
|
67472
|
-
switch (_a.label) {
|
|
67473
|
-
case 0:
|
|
67474
|
-
if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
|
|
67475
|
-
parts = this.derivationPath.split('/');
|
|
67476
|
-
offset = 0;
|
|
67477
|
-
if (!parts[parts.length - 1].endsWith("'")) {
|
|
67478
|
-
offset = Number.parseInt(parts[parts.length - 1], 10);
|
|
67479
|
-
}
|
|
67480
|
-
return [4 /*yield*/, Promise.all([
|
|
67481
|
-
this.protocol.getAddressesFromExtendedPublicKey(this.publicKey, 0, amount, offset),
|
|
67482
|
-
this.protocol.getAddressesFromExtendedPublicKey(this.publicKey, 1, amount, offset)
|
|
67483
|
-
])];
|
|
67484
|
-
case 1:
|
|
67485
|
-
addresses = (_a.sent()).reduce(function (flatten, next) { return flatten.concat(next); }, []);
|
|
67486
|
-
return [3 /*break*/, 4];
|
|
67487
|
-
case 2: return [4 /*yield*/, this.protocol.getAddressesFromPublicKey(this.publicKey)];
|
|
67488
|
-
case 3:
|
|
67489
|
-
addresses = _a.sent();
|
|
67490
|
-
_a.label = 4;
|
|
67491
|
-
case 4: return [2 /*return*/, addresses.map(function (address) { return address.address; })];
|
|
67492
|
-
}
|
|
67493
|
-
});
|
|
67494
|
-
});
|
|
67495
|
-
};
|
|
67496
|
-
AirGapWallet.prototype.toJSON = function () {
|
|
67497
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67498
|
-
var _a;
|
|
67499
|
-
return __generator(this, function (_b) {
|
|
67500
|
-
switch (_b.label) {
|
|
67501
|
-
case 0:
|
|
67502
|
-
_a = {};
|
|
67503
|
-
return [4 /*yield*/, this.protocol.getIdentifier()];
|
|
67504
|
-
case 1:
|
|
67505
|
-
_a.protocolIdentifier = _b.sent();
|
|
67506
|
-
return [4 /*yield*/, this.protocol.getOptions()];
|
|
67507
|
-
case 2: return [2 /*return*/, (_a.networkIdentifier = (_b.sent()).network.identifier,
|
|
67508
|
-
_a.publicKey = this.publicKey,
|
|
67509
|
-
_a.isExtendedPublicKey = this.isExtendedPublicKey,
|
|
67510
|
-
_a.derivationPath = this.derivationPath,
|
|
67511
|
-
_a.addresses = this.addresses,
|
|
67512
|
-
_a.masterFingerprint = this.masterFingerprint,
|
|
67513
|
-
_a.status = this.status,
|
|
67514
|
-
_a.addressIndex = this.addressIndex,
|
|
67515
|
-
_a)];
|
|
67516
|
-
}
|
|
67517
|
-
});
|
|
67518
|
-
});
|
|
67519
|
-
};
|
|
67520
|
-
return AirGapWallet;
|
|
67521
|
-
}());
|
|
67522
|
-
exports.AirGapWallet = AirGapWallet;
|
|
67523
|
-
|
|
67524
|
-
},{"../errors":344,"../errors/coinlib-error":343}],364:[function(require,module,exports){
|
|
66263
|
+
},{}],350:[function(require,module,exports){
|
|
67525
66264
|
"use strict";
|
|
67526
66265
|
module.exports = asPromise;
|
|
67527
66266
|
|
|
@@ -67575,7 +66314,7 @@ function asPromise(fn, ctx/*, varargs */) {
|
|
|
67575
66314
|
});
|
|
67576
66315
|
}
|
|
67577
66316
|
|
|
67578
|
-
},{}],
|
|
66317
|
+
},{}],351:[function(require,module,exports){
|
|
67579
66318
|
"use strict";
|
|
67580
66319
|
|
|
67581
66320
|
/**
|
|
@@ -67716,7 +66455,7 @@ base64.test = function test(string) {
|
|
|
67716
66455
|
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
67717
66456
|
};
|
|
67718
66457
|
|
|
67719
|
-
},{}],
|
|
66458
|
+
},{}],352:[function(require,module,exports){
|
|
67720
66459
|
"use strict";
|
|
67721
66460
|
module.exports = EventEmitter;
|
|
67722
66461
|
|
|
@@ -67794,7 +66533,7 @@ EventEmitter.prototype.emit = function emit(evt) {
|
|
|
67794
66533
|
return this;
|
|
67795
66534
|
};
|
|
67796
66535
|
|
|
67797
|
-
},{}],
|
|
66536
|
+
},{}],353:[function(require,module,exports){
|
|
67798
66537
|
"use strict";
|
|
67799
66538
|
|
|
67800
66539
|
module.exports = factory(factory);
|
|
@@ -68131,7 +66870,7 @@ function readUintBE(buf, pos) {
|
|
|
68131
66870
|
| buf[pos + 3]) >>> 0;
|
|
68132
66871
|
}
|
|
68133
66872
|
|
|
68134
|
-
},{}],
|
|
66873
|
+
},{}],354:[function(require,module,exports){
|
|
68135
66874
|
"use strict";
|
|
68136
66875
|
module.exports = inquire;
|
|
68137
66876
|
|
|
@@ -68150,7 +66889,7 @@ function inquire(moduleName) {
|
|
|
68150
66889
|
return null;
|
|
68151
66890
|
}
|
|
68152
66891
|
|
|
68153
|
-
},{}],
|
|
66892
|
+
},{}],355:[function(require,module,exports){
|
|
68154
66893
|
"use strict";
|
|
68155
66894
|
module.exports = pool;
|
|
68156
66895
|
|
|
@@ -68200,7 +66939,7 @@ function pool(alloc, slice, size) {
|
|
|
68200
66939
|
};
|
|
68201
66940
|
}
|
|
68202
66941
|
|
|
68203
|
-
},{}],
|
|
66942
|
+
},{}],356:[function(require,module,exports){
|
|
68204
66943
|
"use strict";
|
|
68205
66944
|
|
|
68206
66945
|
/**
|
|
@@ -68307,7 +67046,7 @@ utf8.write = function utf8_write(string, buffer, offset) {
|
|
|
68307
67046
|
return offset - start;
|
|
68308
67047
|
};
|
|
68309
67048
|
|
|
68310
|
-
},{}],
|
|
67049
|
+
},{}],357:[function(require,module,exports){
|
|
68311
67050
|
// GENERATED FILE. DO NOT EDIT.
|
|
68312
67051
|
var Long = (function(exports) {
|
|
68313
67052
|
"use strict";
|
|
@@ -69741,13 +68480,13 @@ var Long = (function(exports) {
|
|
|
69741
68480
|
if (typeof define === 'function' && define.amd) define([], function() { return Long; });
|
|
69742
68481
|
else if (typeof module === 'object' && typeof exports==='object') module.exports = Long;
|
|
69743
68482
|
|
|
69744
|
-
},{}],
|
|
68483
|
+
},{}],358:[function(require,module,exports){
|
|
69745
68484
|
// minimal library entry point.
|
|
69746
68485
|
|
|
69747
68486
|
"use strict";
|
|
69748
68487
|
module.exports = require("./src/index-minimal");
|
|
69749
68488
|
|
|
69750
|
-
},{"./src/index-minimal":
|
|
68489
|
+
},{"./src/index-minimal":359}],359:[function(require,module,exports){
|
|
69751
68490
|
"use strict";
|
|
69752
68491
|
var protobuf = exports;
|
|
69753
68492
|
|
|
@@ -69785,7 +68524,7 @@ function configure() {
|
|
|
69785
68524
|
// Set up buffer utility according to the environment
|
|
69786
68525
|
configure();
|
|
69787
68526
|
|
|
69788
|
-
},{"./reader":
|
|
68527
|
+
},{"./reader":360,"./reader_buffer":361,"./roots":362,"./rpc":363,"./util/minimal":366,"./writer":367,"./writer_buffer":368}],360:[function(require,module,exports){
|
|
69789
68528
|
"use strict";
|
|
69790
68529
|
module.exports = Reader;
|
|
69791
68530
|
|
|
@@ -70198,7 +68937,7 @@ Reader._configure = function(BufferReader_) {
|
|
|
70198
68937
|
});
|
|
70199
68938
|
};
|
|
70200
68939
|
|
|
70201
|
-
},{"./util/minimal":
|
|
68940
|
+
},{"./util/minimal":366}],361:[function(require,module,exports){
|
|
70202
68941
|
"use strict";
|
|
70203
68942
|
module.exports = BufferReader;
|
|
70204
68943
|
|
|
@@ -70251,7 +68990,7 @@ BufferReader.prototype.string = function read_string_buffer() {
|
|
|
70251
68990
|
|
|
70252
68991
|
BufferReader._configure();
|
|
70253
68992
|
|
|
70254
|
-
},{"./reader":
|
|
68993
|
+
},{"./reader":360,"./util/minimal":366}],362:[function(require,module,exports){
|
|
70255
68994
|
"use strict";
|
|
70256
68995
|
module.exports = {};
|
|
70257
68996
|
|
|
@@ -70271,7 +69010,7 @@ module.exports = {};
|
|
|
70271
69010
|
* var root = protobuf.roots["myroot"];
|
|
70272
69011
|
*/
|
|
70273
69012
|
|
|
70274
|
-
},{}],
|
|
69013
|
+
},{}],363:[function(require,module,exports){
|
|
70275
69014
|
"use strict";
|
|
70276
69015
|
|
|
70277
69016
|
/**
|
|
@@ -70309,7 +69048,7 @@ var rpc = exports;
|
|
|
70309
69048
|
|
|
70310
69049
|
rpc.Service = require("./rpc/service");
|
|
70311
69050
|
|
|
70312
|
-
},{"./rpc/service":
|
|
69051
|
+
},{"./rpc/service":364}],364:[function(require,module,exports){
|
|
70313
69052
|
"use strict";
|
|
70314
69053
|
module.exports = Service;
|
|
70315
69054
|
|
|
@@ -70453,7 +69192,7 @@ Service.prototype.end = function end(endedByRPC) {
|
|
|
70453
69192
|
return this;
|
|
70454
69193
|
};
|
|
70455
69194
|
|
|
70456
|
-
},{"../util/minimal":
|
|
69195
|
+
},{"../util/minimal":366}],365:[function(require,module,exports){
|
|
70457
69196
|
"use strict";
|
|
70458
69197
|
module.exports = LongBits;
|
|
70459
69198
|
|
|
@@ -70655,7 +69394,7 @@ LongBits.prototype.length = function length() {
|
|
|
70655
69394
|
: part2 < 128 ? 9 : 10;
|
|
70656
69395
|
};
|
|
70657
69396
|
|
|
70658
|
-
},{"../util/minimal":
|
|
69397
|
+
},{"../util/minimal":366}],366:[function(require,module,exports){
|
|
70659
69398
|
(function (global){(function (){
|
|
70660
69399
|
"use strict";
|
|
70661
69400
|
var util = exports;
|
|
@@ -71080,7 +69819,7 @@ util._configure = function() {
|
|
|
71080
69819
|
};
|
|
71081
69820
|
|
|
71082
69821
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
71083
|
-
},{"./longbits":
|
|
69822
|
+
},{"./longbits":365,"@protobufjs/aspromise":350,"@protobufjs/base64":351,"@protobufjs/eventemitter":352,"@protobufjs/float":353,"@protobufjs/inquire":354,"@protobufjs/pool":355,"@protobufjs/utf8":356}],367:[function(require,module,exports){
|
|
71084
69823
|
"use strict";
|
|
71085
69824
|
module.exports = Writer;
|
|
71086
69825
|
|
|
@@ -71547,7 +70286,7 @@ Writer._configure = function(BufferWriter_) {
|
|
|
71547
70286
|
BufferWriter._configure();
|
|
71548
70287
|
};
|
|
71549
70288
|
|
|
71550
|
-
},{"./util/minimal":
|
|
70289
|
+
},{"./util/minimal":366}],368:[function(require,module,exports){
|
|
71551
70290
|
"use strict";
|
|
71552
70291
|
module.exports = BufferWriter;
|
|
71553
70292
|
|
|
@@ -71634,10 +70373,10 @@ BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
|
71634
70373
|
|
|
71635
70374
|
BufferWriter._configure();
|
|
71636
70375
|
|
|
71637
|
-
},{"./util/minimal":
|
|
70376
|
+
},{"./util/minimal":366,"./writer":367}],369:[function(require,module,exports){
|
|
71638
70377
|
"use strict";
|
|
71639
70378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71640
|
-
exports.
|
|
70379
|
+
exports.CosmosTransaction = exports.CosmosAddress = exports.CosmosDelegationActionType = exports.CosmosProtocolOptions = exports.CosmosProtocolConfig = exports.CosmosProtocolNetwork = exports.MintscanBlockExplorer = exports.CosmosCryptoClient = exports.CosmosProtocol = void 0;
|
|
71641
70380
|
var CosmosAddress_1 = require("./protocol/CosmosAddress");
|
|
71642
70381
|
Object.defineProperty(exports, "CosmosAddress", { enumerable: true, get: function () { return CosmosAddress_1.CosmosAddress; } });
|
|
71643
70382
|
var CosmosCryptoClient_1 = require("./protocol/CosmosCryptoClient");
|
|
@@ -71652,10 +70391,8 @@ Object.defineProperty(exports, "CosmosProtocolOptions", { enumerable: true, get:
|
|
|
71652
70391
|
Object.defineProperty(exports, "MintscanBlockExplorer", { enumerable: true, get: function () { return CosmosProtocolOptions_1.MintscanBlockExplorer; } });
|
|
71653
70392
|
var CosmosTransaction_1 = require("./protocol/CosmosTransaction");
|
|
71654
70393
|
Object.defineProperty(exports, "CosmosTransaction", { enumerable: true, get: function () { return CosmosTransaction_1.CosmosTransaction; } });
|
|
71655
|
-
var create_protocol_1 = require("./utils/create-protocol");
|
|
71656
|
-
Object.defineProperty(exports, "createProtocolByIdentifier", { enumerable: true, get: function () { return create_protocol_1.createProtocolByIdentifier; } });
|
|
71657
70394
|
|
|
71658
|
-
},{"./protocol/CosmosAddress":
|
|
70395
|
+
},{"./protocol/CosmosAddress":370,"./protocol/CosmosCryptoClient":372,"./protocol/CosmosProtocol":375,"./protocol/CosmosProtocolOptions":376,"./protocol/CosmosTransaction":377}],370:[function(require,module,exports){
|
|
71659
70396
|
(function (Buffer){(function (){
|
|
71660
70397
|
"use strict";
|
|
71661
70398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -71683,7 +70420,7 @@ var CosmosAddress = /** @class */ (function () {
|
|
|
71683
70420
|
exports.CosmosAddress = CosmosAddress;
|
|
71684
70421
|
|
|
71685
70422
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
71686
|
-
},{"@airgap/coinlib-core/dependencies/src/bech32-1.1.3/index":
|
|
70423
|
+
},{"@airgap/coinlib-core/dependencies/src/bech32-1.1.3/index":235,"@airgap/coinlib-core/dependencies/src/ripemd160-2.0.2/index":311,"@airgap/coinlib-core/dependencies/src/sha.js-2.4.11/index":323,"buffer":63}],371:[function(require,module,exports){
|
|
71687
70424
|
"use strict";
|
|
71688
70425
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
71689
70426
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -71739,7 +70476,7 @@ var CosmosCoin = /** @class */ (function () {
|
|
|
71739
70476
|
}());
|
|
71740
70477
|
exports.CosmosCoin = CosmosCoin;
|
|
71741
70478
|
|
|
71742
|
-
},{"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":
|
|
70479
|
+
},{"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":236,"@airgap/coinlib-core/errors":339,"@airgap/coinlib-core/errors/coinlib-error":338}],372:[function(require,module,exports){
|
|
71743
70480
|
(function (Buffer){(function (){
|
|
71744
70481
|
"use strict";
|
|
71745
70482
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -71828,7 +70565,7 @@ var CosmosCryptoClient = /** @class */ (function (_super) {
|
|
|
71828
70565
|
exports.CosmosCryptoClient = CosmosCryptoClient;
|
|
71829
70566
|
|
|
71830
70567
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
71831
|
-
},{"@airgap/coinlib-core/dependencies/src/secp256k1-3.7.1/elliptic":
|
|
70568
|
+
},{"@airgap/coinlib-core/dependencies/src/secp256k1-3.7.1/elliptic":313,"@airgap/coinlib-core/dependencies/src/sha.js-2.4.11/index":323,"@airgap/coinlib-core/protocols/Secp256k1CryptoClient":343,"buffer":63}],373:[function(require,module,exports){
|
|
71832
70569
|
"use strict";
|
|
71833
70570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71834
70571
|
exports.CosmosFee = void 0;
|
|
@@ -71860,7 +70597,7 @@ var CosmosFee = /** @class */ (function () {
|
|
|
71860
70597
|
}());
|
|
71861
70598
|
exports.CosmosFee = CosmosFee;
|
|
71862
70599
|
|
|
71863
|
-
},{"./CosmosCoin":
|
|
70600
|
+
},{"./CosmosCoin":371}],374:[function(require,module,exports){
|
|
71864
70601
|
"use strict";
|
|
71865
70602
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
71866
70603
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -72243,7 +70980,7 @@ var CosmosNodeClient = /** @class */ (function () {
|
|
|
72243
70980
|
}());
|
|
72244
70981
|
exports.CosmosNodeClient = CosmosNodeClient;
|
|
72245
70982
|
|
|
72246
|
-
},{"./CosmosCoin":
|
|
70983
|
+
},{"./CosmosCoin":371,"@airgap/coinlib-core/dependencies/src/axios-0.19.0/index":209,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":236}],375:[function(require,module,exports){
|
|
72247
70984
|
(function (Buffer){(function (){
|
|
72248
70985
|
"use strict";
|
|
72249
70986
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -73393,7 +72130,7 @@ var CosmosProtocol = /** @class */ (function (_super) {
|
|
|
73393
72130
|
exports.CosmosProtocol = CosmosProtocol;
|
|
73394
72131
|
|
|
73395
72132
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
73396
|
-
},{"./CosmosAddress":
|
|
72133
|
+
},{"./CosmosAddress":370,"./CosmosCoin":371,"./CosmosCryptoClient":372,"./CosmosFee":373,"./CosmosProtocolOptions":376,"./CosmosTransaction":377,"./CosmosTypes":378,"./cosmos-message/CosmosDelegateMessage":379,"./cosmos-message/CosmosMessage":380,"./cosmos-message/CosmosSendMessage":381,"./cosmos-message/CosmosWithdrawDelegationRewardMessage":382,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":236,"@airgap/coinlib-core/dependencies/src/bip32-2.0.4/src/index":239,"@airgap/coinlib-core/dependencies/src/bip39-2.5.0/index":240,"@airgap/coinlib-core/dependencies/src/cosmjs":256,"@airgap/coinlib-core/dependencies/src/secp256k1-3.7.1/elliptic":313,"@airgap/coinlib-core/dependencies/src/sha.js-2.4.11/index":323,"@airgap/coinlib-core/errors":339,"@airgap/coinlib-core/errors/coinlib-error":338,"@airgap/coinlib-core/protocols/NonExtendedProtocol":342,"@airgap/coinlib-core/utils/ProtocolSymbols":346,"@airgap/coinlib-core/utils/assert":347,"buffer":63}],376:[function(require,module,exports){
|
|
73397
72134
|
"use strict";
|
|
73398
72135
|
var __extends = (this && this.__extends) || (function () {
|
|
73399
72136
|
var extendStatics = function (d, b) {
|
|
@@ -73508,7 +72245,7 @@ var CosmosProtocolOptions = /** @class */ (function () {
|
|
|
73508
72245
|
}());
|
|
73509
72246
|
exports.CosmosProtocolOptions = CosmosProtocolOptions;
|
|
73510
72247
|
|
|
73511
|
-
},{"./CosmosNodeClient":
|
|
72248
|
+
},{"./CosmosNodeClient":374,"@airgap/coinlib-core/utils/ProtocolNetwork":345}],377:[function(require,module,exports){
|
|
73512
72249
|
"use strict";
|
|
73513
72250
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73514
72251
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -73615,7 +72352,7 @@ var CosmosTransaction = /** @class */ (function () {
|
|
|
73615
72352
|
}());
|
|
73616
72353
|
exports.CosmosTransaction = CosmosTransaction;
|
|
73617
72354
|
|
|
73618
|
-
},{"./CosmosFee":
|
|
72355
|
+
},{"./CosmosFee":373,"./cosmos-message/CosmosDelegateMessage":379,"./cosmos-message/CosmosMessage":380,"./cosmos-message/CosmosSendMessage":381,"./cosmos-message/CosmosWithdrawDelegationRewardMessage":382,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":236,"@airgap/coinlib-core/errors":339,"@airgap/coinlib-core/errors/coinlib-error":338}],378:[function(require,module,exports){
|
|
73619
72356
|
"use strict";
|
|
73620
72357
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73621
72358
|
exports.calculateTransactionLimit = void 0;
|
|
@@ -73624,7 +72361,7 @@ var calculateTransactionLimit = function (limit, selfTotal, otherTotal, selfOffs
|
|
|
73624
72361
|
};
|
|
73625
72362
|
exports.calculateTransactionLimit = calculateTransactionLimit;
|
|
73626
72363
|
|
|
73627
|
-
},{}],
|
|
72364
|
+
},{}],379:[function(require,module,exports){
|
|
73628
72365
|
"use strict";
|
|
73629
72366
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73630
72367
|
exports.CosmosDelegateMessage = void 0;
|
|
@@ -73697,7 +72434,7 @@ var CosmosDelegateMessage = /** @class */ (function () {
|
|
|
73697
72434
|
}());
|
|
73698
72435
|
exports.CosmosDelegateMessage = CosmosDelegateMessage;
|
|
73699
72436
|
|
|
73700
|
-
},{"../CosmosCoin":
|
|
72437
|
+
},{"../CosmosCoin":371,"./CosmosMessage":380,"@airgap/coinlib-core/interfaces/IAirGapTransaction":340}],380:[function(require,module,exports){
|
|
73701
72438
|
"use strict";
|
|
73702
72439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73703
72440
|
exports.CosmosMessageType = exports.CosmosMessageTypeValue = exports.CosmosMessageTypeIndex = void 0;
|
|
@@ -73745,7 +72482,7 @@ var CosmosMessageType = /** @class */ (function () {
|
|
|
73745
72482
|
}());
|
|
73746
72483
|
exports.CosmosMessageType = CosmosMessageType;
|
|
73747
72484
|
|
|
73748
|
-
},{"@airgap/coinlib-core/errors":
|
|
72485
|
+
},{"@airgap/coinlib-core/errors":339,"@airgap/coinlib-core/errors/coinlib-error":338}],381:[function(require,module,exports){
|
|
73749
72486
|
"use strict";
|
|
73750
72487
|
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
73751
72488
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
@@ -73829,7 +72566,7 @@ var CosmosSendMessage = /** @class */ (function () {
|
|
|
73829
72566
|
}());
|
|
73830
72567
|
exports.CosmosSendMessage = CosmosSendMessage;
|
|
73831
72568
|
|
|
73832
|
-
},{"../CosmosCoin":
|
|
72569
|
+
},{"../CosmosCoin":371,"./CosmosMessage":380,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":236,"@airgap/coinlib-core/interfaces/IAirGapTransaction":340}],382:[function(require,module,exports){
|
|
73833
72570
|
"use strict";
|
|
73834
72571
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73835
72572
|
exports.CosmosWithdrawDelegationRewardMessage = void 0;
|
|
@@ -73891,22 +72628,5 @@ var CosmosWithdrawDelegationRewardMessage = /** @class */ (function () {
|
|
|
73891
72628
|
}());
|
|
73892
72629
|
exports.CosmosWithdrawDelegationRewardMessage = CosmosWithdrawDelegationRewardMessage;
|
|
73893
72630
|
|
|
73894
|
-
},{"./CosmosMessage":
|
|
73895
|
-
"use strict";
|
|
73896
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73897
|
-
exports.createProtocolByIdentifier = void 0;
|
|
73898
|
-
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
73899
|
-
var CosmosProtocol_1 = require("../protocol/CosmosProtocol");
|
|
73900
|
-
// tslint:disable-next-line: cyclomatic-complexity
|
|
73901
|
-
function createProtocolByIdentifier(identifier, options) {
|
|
73902
|
-
switch (identifier) {
|
|
73903
|
-
case coinlib_core_1.MainProtocolSymbols.COSMOS:
|
|
73904
|
-
return new CosmosProtocol_1.CosmosProtocol(options);
|
|
73905
|
-
default:
|
|
73906
|
-
throw new Error("Unkown protocol identifier " + identifier + ".");
|
|
73907
|
-
}
|
|
73908
|
-
}
|
|
73909
|
-
exports.createProtocolByIdentifier = createProtocolByIdentifier;
|
|
73910
|
-
|
|
73911
|
-
},{"../protocol/CosmosProtocol":389,"@airgap/coinlib-core":345}]},{},[383])(383)
|
|
72631
|
+
},{"./CosmosMessage":380}]},{},[369])(369)
|
|
73912
72632
|
});
|