@airgap/serializer 0.13.7-beta.16 → 0.13.7-beta.17
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.
|
@@ -138275,6 +138275,7 @@ function implementsInterface(object, schema) {
|
|
|
138275
138275
|
exports.implementsInterface = implementsInterface;
|
|
138276
138276
|
function hasConfigurableContract(object) {
|
|
138277
138277
|
return implementsInterface(object, {
|
|
138278
|
+
getContractAddress: 'required',
|
|
138278
138279
|
setContractAddress: 'required'
|
|
138279
138280
|
});
|
|
138280
138281
|
}
|
|
@@ -209456,6 +209457,14 @@ var TezosSaplingProtocol = /** @class */ (function (_super) {
|
|
|
209456
209457
|
});
|
|
209457
209458
|
});
|
|
209458
209459
|
};
|
|
209460
|
+
TezosSaplingProtocol.prototype.getContractAddress = function () {
|
|
209461
|
+
var _a;
|
|
209462
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
209463
|
+
return __generator(this, function (_b) {
|
|
209464
|
+
return [2 /*return*/, (_a = this.contract) === null || _a === void 0 ? void 0 : _a.address];
|
|
209465
|
+
});
|
|
209466
|
+
});
|
|
209467
|
+
};
|
|
209459
209468
|
TezosSaplingProtocol.prototype.setContractAddress = function (address) {
|
|
209460
209469
|
return __awaiter(this, void 0, void 0, function () {
|
|
209461
209470
|
return __generator(this, function (_a) {
|