lynx-client 0.0.4 → 0.0.6
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/dist/cjs/index.js +10 -2
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
- package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
- package/dist/cjs/lib/contractsIntegration/PNLRService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
- package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
- package/dist/cjs/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
- package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
- package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
- package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +10 -2
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PNLRService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
- package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
- package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
- package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
- package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
- package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
- package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
- package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
- package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
- package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
- package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
|
|
17
|
+
exports.tradeIntentsVerifierPayloadTypes = exports.liquidityIntentsVerifierPayloadTypes = exports.chipsIntentsVerifierPayloadTypes = exports.TradeIntentsVerifierService = exports.LiquidityIntentsVerifierService = exports.ChipsIntentsVerifierService = void 0;
|
|
18
18
|
__exportStar(require("./lib/chains/chainConstants"), exports);
|
|
19
19
|
__exportStar(require("./lib/chains/chainTypes"), exports);
|
|
20
20
|
__exportStar(require("./lib/utils/addresses"), exports);
|
|
@@ -55,11 +55,19 @@ __exportStar(require("./lib/typechain/contracts/Peripheral/Lens/IntentsVerifierL
|
|
|
55
55
|
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens"), exports);
|
|
56
56
|
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/LexLens"), exports);
|
|
57
57
|
__exportStar(require("./lib/typechain/contracts/Peripheral/Lens/TradingFloorLens"), exports);
|
|
58
|
-
// Intents Verifier types
|
|
58
|
+
// Intents Verifier payload types for EIP-712 signature generation
|
|
59
|
+
var chipsIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes");
|
|
60
|
+
Object.defineProperty(exports, "chipsIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return chipsIntentsVerifierPayloadTypes_1.chipsIntentsVerifierPayloadTypes; } });
|
|
61
|
+
var liquidityIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes");
|
|
62
|
+
Object.defineProperty(exports, "liquidityIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return liquidityIntentsVerifierPayloadTypes_1.liquidityIntentsVerifierPayloadTypes; } });
|
|
63
|
+
var tradeIntentsVerifierPayloadTypes_1 = require("./lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes");
|
|
64
|
+
Object.defineProperty(exports, "tradeIntentsVerifierPayloadTypes", { enumerable: true, get: function () { return tradeIntentsVerifierPayloadTypes_1.tradeIntentsVerifierPayloadTypes; } });
|
|
65
|
+
// Contract factory exports for Lens contracts
|
|
59
66
|
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory"), exports);
|
|
60
67
|
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory"), exports);
|
|
61
68
|
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory"), exports);
|
|
62
69
|
__exportStar(require("./lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory"), exports);
|
|
70
|
+
// Contract factory exports for Intents Verifiers
|
|
63
71
|
__exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/ChipsIntentsVerifierV1__factory"), exports);
|
|
64
72
|
__exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/LiquidityIntentsVerifierV1__factory"), exports);
|
|
65
73
|
__exportStar(require("./lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AcceptableImplementationClaimableAdminService = void 0;
|
|
4
|
+
const AcceptableImplementationClaimableAdmin__factory_1 = require("../../typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory");
|
|
5
|
+
class AcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement {
|
|
6
|
+
constructor(contract) {
|
|
7
|
+
this.contract = contract;
|
|
8
|
+
}
|
|
9
|
+
async _setPendingAdmin(newPendingAdmin) {
|
|
10
|
+
return this.contract._setPendingAdmin(newPendingAdmin);
|
|
11
|
+
}
|
|
12
|
+
async _acceptAdmin() {
|
|
13
|
+
return this.contract._acceptAdmin();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class AcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement {
|
|
17
|
+
constructor(contract) {
|
|
18
|
+
this.contract = contract;
|
|
19
|
+
}
|
|
20
|
+
async _setPendingImplementation(newPendingImplementation) {
|
|
21
|
+
return this.contract._setPendingImplementation(newPendingImplementation);
|
|
22
|
+
}
|
|
23
|
+
async _acceptImplementation() {
|
|
24
|
+
// This function modifies state and returns a uint status code (0 on success) via transaction receipt
|
|
25
|
+
return this.contract._acceptImplementation();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class AcceptableImplementationClaimableAdminFunctionsGroup_StateVariables {
|
|
29
|
+
constructor(contract) {
|
|
30
|
+
this.contract = contract;
|
|
31
|
+
}
|
|
32
|
+
async admin() {
|
|
33
|
+
return this.contract.admin();
|
|
34
|
+
}
|
|
35
|
+
async pendingAdmin() {
|
|
36
|
+
return this.contract.pendingAdmin();
|
|
37
|
+
}
|
|
38
|
+
async implementation() {
|
|
39
|
+
return this.contract.implementation();
|
|
40
|
+
}
|
|
41
|
+
async pendingImplementation() {
|
|
42
|
+
return this.contract.pendingImplementation();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
class AcceptableImplementationClaimableAdminService {
|
|
46
|
+
constructor(signerOrProvider, address) {
|
|
47
|
+
this.proxyContract = AcceptableImplementationClaimableAdmin__factory_1.AcceptableImplementationClaimableAdmin__factory.connect(address, signerOrProvider);
|
|
48
|
+
this.adminManagement = new AcceptableImplementationClaimableAdminFunctionsGroup_AdminManagement(this.proxyContract);
|
|
49
|
+
this.implementationManagement = new AcceptableImplementationClaimableAdminFunctionsGroup_ImplementationManagement(this.proxyContract);
|
|
50
|
+
this.stateVariables = new AcceptableImplementationClaimableAdminFunctionsGroup_StateVariables(this.proxyContract);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.AcceptableImplementationClaimableAdminService = AcceptableImplementationClaimableAdminService;
|
package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AcceptableImplementationClaimableAdminService = void 0;
|
|
4
|
+
var AcceptableImplementationClaimableAdminService_1 = require("./AcceptableImplementationClaimableAdminService");
|
|
5
|
+
Object.defineProperty(exports, "AcceptableImplementationClaimableAdminService", { enumerable: true, get: function () { return AcceptableImplementationClaimableAdminService_1.AcceptableImplementationClaimableAdminService; } });
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LexPoolV1Service = void 0;
|
|
4
|
+
const LexPoolV1__factory_1 = require("../../typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory");
|
|
5
|
+
class LexPoolV1FunctionsGroup_Initialization {
|
|
6
|
+
constructor(contract) {
|
|
7
|
+
this.contract = contract;
|
|
8
|
+
}
|
|
9
|
+
async _become(proxy) {
|
|
10
|
+
return this.contract._become(proxy);
|
|
11
|
+
}
|
|
12
|
+
async initialize(underlying, tradingFloor, epochDuration) {
|
|
13
|
+
return this.contract.initialize(underlying, tradingFloor, epochDuration);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class LexPoolV1FunctionsGroup_AdminConfiguration {
|
|
17
|
+
constructor(contract) {
|
|
18
|
+
this.contract = contract;
|
|
19
|
+
}
|
|
20
|
+
async setPoolAccountant(poolAccountant) {
|
|
21
|
+
return this.contract.setPoolAccountant(poolAccountant);
|
|
22
|
+
}
|
|
23
|
+
async setPnlRole(pnl) {
|
|
24
|
+
return this.contract.setPnlRole(pnl);
|
|
25
|
+
}
|
|
26
|
+
async setMaxExtraWithdrawalAmountF(maxExtra) {
|
|
27
|
+
return this.contract.setMaxExtraWithdrawalAmountF(maxExtra);
|
|
28
|
+
}
|
|
29
|
+
async setEpochsDelayDeposit(delay) {
|
|
30
|
+
return this.contract.setEpochsDelayDeposit(delay);
|
|
31
|
+
}
|
|
32
|
+
async setEpochsDelayRedeem(delay) {
|
|
33
|
+
return this.contract.setEpochsDelayRedeem(delay);
|
|
34
|
+
}
|
|
35
|
+
async setEpochDuration(duration) {
|
|
36
|
+
return this.contract.setEpochDuration(duration);
|
|
37
|
+
}
|
|
38
|
+
async setMinDepositAmount(amount) {
|
|
39
|
+
return this.contract.setMinDepositAmount(amount);
|
|
40
|
+
}
|
|
41
|
+
async toggleImmediateDepositAllowed() {
|
|
42
|
+
return this.contract.toggleImmediateDepositAllowed();
|
|
43
|
+
}
|
|
44
|
+
async reduceReserves(to) {
|
|
45
|
+
const result = await this.contract.reduceReserves.staticCall(to);
|
|
46
|
+
return {
|
|
47
|
+
interestShare: result[0],
|
|
48
|
+
totalFundingShare: result[1],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
class LexPoolV1FunctionsGroup_UserDeposits {
|
|
53
|
+
constructor(contract) {
|
|
54
|
+
this.contract = contract;
|
|
55
|
+
}
|
|
56
|
+
async immediateDeposit(depositAmount, domain, referralCode) {
|
|
57
|
+
return this.contract.immediateDeposit(depositAmount, domain, referralCode);
|
|
58
|
+
}
|
|
59
|
+
async requestDeposit(amount, minAmountOut, domain, referralCode) {
|
|
60
|
+
return this.contract.requestDeposit(amount, minAmountOut, domain, referralCode);
|
|
61
|
+
}
|
|
62
|
+
async requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode) {
|
|
63
|
+
return this.contract.requestDepositViaIntent(user, amount, minAmountOut, domain, referralCode);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
class LexPoolV1FunctionsGroup_UserRedeems {
|
|
67
|
+
constructor(contract) {
|
|
68
|
+
this.contract = contract;
|
|
69
|
+
}
|
|
70
|
+
async requestRedeem(amount, minAmountOut) {
|
|
71
|
+
return this.contract.requestRedeem(amount, minAmountOut);
|
|
72
|
+
}
|
|
73
|
+
async requestRedeemViaIntent(user, amount, minAmountOut) {
|
|
74
|
+
return this.contract.requestRedeemViaIntent(user, amount, minAmountOut);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
class LexPoolV1FunctionsGroup_Processing {
|
|
78
|
+
constructor(contract) {
|
|
79
|
+
this.contract = contract;
|
|
80
|
+
}
|
|
81
|
+
async processDeposit(users) {
|
|
82
|
+
const result = await this.contract.processDeposit.staticCall(users);
|
|
83
|
+
return {
|
|
84
|
+
amountDeposited: result[0],
|
|
85
|
+
amountCanceled: result[1],
|
|
86
|
+
counterDeposited: result[2],
|
|
87
|
+
counterCanceled: result[3],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
async processRedeems(users) {
|
|
91
|
+
const result = await this.contract.processRedeems.staticCall(users);
|
|
92
|
+
return {
|
|
93
|
+
amountRedeemed: result[0],
|
|
94
|
+
amountCanceled: result[1],
|
|
95
|
+
counterRedeemed: result[2],
|
|
96
|
+
counterCanceled: result[3],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
async cancelDeposits(users, epochs) {
|
|
100
|
+
return this.contract.cancelDeposits(users, epochs);
|
|
101
|
+
}
|
|
102
|
+
async cancelRedeems(users, epochs) {
|
|
103
|
+
return this.contract.cancelRedeems(users, epochs);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
class LexPoolV1FunctionsGroup_EpochManagement {
|
|
107
|
+
constructor(contract) {
|
|
108
|
+
this.contract = contract;
|
|
109
|
+
}
|
|
110
|
+
async nextEpoch(totalUnrealizedPricePnL) {
|
|
111
|
+
return this.contract.nextEpoch.staticCall(totalUnrealizedPricePnL);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
class LexPoolV1FunctionsGroup_TradingFloorInteraction {
|
|
115
|
+
constructor(contract) {
|
|
116
|
+
this.contract = contract;
|
|
117
|
+
}
|
|
118
|
+
async sendAssetToTrader(to, amount) {
|
|
119
|
+
return this.contract.sendAssetToTrader(to, amount);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
class LexPoolV1Service {
|
|
123
|
+
constructor(signerOrProvider, address) {
|
|
124
|
+
this.lexPoolContract = LexPoolV1__factory_1.LexPoolV1__factory.connect(address, signerOrProvider);
|
|
125
|
+
this.initialization = new LexPoolV1FunctionsGroup_Initialization(this.lexPoolContract);
|
|
126
|
+
this.adminConfiguration = new LexPoolV1FunctionsGroup_AdminConfiguration(this.lexPoolContract);
|
|
127
|
+
this.userDeposits = new LexPoolV1FunctionsGroup_UserDeposits(this.lexPoolContract);
|
|
128
|
+
this.userRedeems = new LexPoolV1FunctionsGroup_UserRedeems(this.lexPoolContract);
|
|
129
|
+
this.processing = new LexPoolV1FunctionsGroup_Processing(this.lexPoolContract);
|
|
130
|
+
this.epochManagement = new LexPoolV1FunctionsGroup_EpochManagement(this.lexPoolContract);
|
|
131
|
+
this.tradingFloorInteraction = new LexPoolV1FunctionsGroup_TradingFloorInteraction(this.lexPoolContract);
|
|
132
|
+
// Initialize remaining groups with direct method mappings
|
|
133
|
+
this.viewFunctions = this.createViewFunctionsGroup();
|
|
134
|
+
this.stateVariables = this.createStateVariablesGroup();
|
|
135
|
+
this.erc20 = this.createERC20Group();
|
|
136
|
+
this.constants = this.createConstantsGroup();
|
|
137
|
+
this.contractInfo = this.createContractInfoGroup();
|
|
138
|
+
}
|
|
139
|
+
createViewFunctionsGroup() {
|
|
140
|
+
return {
|
|
141
|
+
calcNextEpochStartMin: () => this.lexPoolContract.calcNextEpochStartMin(),
|
|
142
|
+
currentBalanceInternal: () => this.lexPoolContract.currentBalanceInternal(),
|
|
143
|
+
underlyingBalanceForExchangeRate: () => this.lexPoolContract.underlyingBalanceForExchangeRate(),
|
|
144
|
+
virtualBalanceForUtilization: (extraAmount, unrealizedFunding) => this.lexPoolContract["virtualBalanceForUtilization(uint256,int256)"](extraAmount, unrealizedFunding),
|
|
145
|
+
virtualBalanceForUtilizationCurrent: () => this.lexPoolContract["virtualBalanceForUtilization()"](),
|
|
146
|
+
currentVirtualUtilization: (totalBorrows, interestShare, unrealizedFunding) => this.lexPoolContract["currentVirtualUtilization(uint256,uint256,int256)"](totalBorrows, interestShare, unrealizedFunding),
|
|
147
|
+
currentVirtualUtilizationSimple: () => this.lexPoolContract["currentVirtualUtilization()"](),
|
|
148
|
+
isUtilizationForLPsValid: () => this.lexPoolContract.isUtilizationForLPsValid(),
|
|
149
|
+
underlyingAmountToOwnAmount: (underlyingAmount) => this.lexPoolContract.underlyingAmountToOwnAmount(underlyingAmount),
|
|
150
|
+
getDepositorsCount: (epoch) => this.lexPoolContract.getDepositorsCount(epoch),
|
|
151
|
+
getRedeemersCount: (epoch) => this.lexPoolContract.getRedeemersCount(epoch),
|
|
152
|
+
getDepositors: (epoch, indexFrom, count) => this.lexPoolContract.getDepositors(epoch, indexFrom, count),
|
|
153
|
+
getRedeemers: (epoch, indexFrom, count) => this.lexPoolContract.getRedeemers(epoch, indexFrom, count),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
createStateVariablesGroup() {
|
|
157
|
+
return {
|
|
158
|
+
// Configuration
|
|
159
|
+
underlyingDecimals: () => this.lexPoolContract.underlyingDecimals(),
|
|
160
|
+
epochDuration: () => this.lexPoolContract.epochDuration(),
|
|
161
|
+
epochsDelayDeposit: () => this.lexPoolContract.epochsDelayDeposit(),
|
|
162
|
+
epochsDelayRedeem: () => this.lexPoolContract.epochsDelayRedeem(),
|
|
163
|
+
minDepositAmount: () => this.lexPoolContract.minDepositAmount(),
|
|
164
|
+
maxExtraWithdrawalAmountF: () => this.lexPoolContract.maxExtraWithdrawalAmountF(),
|
|
165
|
+
immediateDepositAllowed: () => this.lexPoolContract.immediateDepositAllowed(),
|
|
166
|
+
// Epoch state
|
|
167
|
+
currentEpoch: () => this.lexPoolContract.currentEpoch(),
|
|
168
|
+
nextEpochStartMin: () => this.lexPoolContract.nextEpochStartMin(),
|
|
169
|
+
currentExchangeRate: () => this.lexPoolContract.currentExchangeRate(),
|
|
170
|
+
// Pending amounts
|
|
171
|
+
pendingDepositAmount: () => this.lexPoolContract.pendingDepositAmount(),
|
|
172
|
+
pendingWithdrawalAmount: () => this.lexPoolContract.pendingWithdrawalAmount(),
|
|
173
|
+
// Contract references
|
|
174
|
+
poolAccountant: () => this.lexPoolContract.poolAccountant(),
|
|
175
|
+
pnlRole: () => this.lexPoolContract.pnlRole(),
|
|
176
|
+
underlying: () => this.lexPoolContract.underlying(),
|
|
177
|
+
registry: () => this.lexPoolContract.registry(),
|
|
178
|
+
tradingFloor: () => this.lexPoolContract.tradingFloor(),
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
createERC20Group() {
|
|
182
|
+
return {
|
|
183
|
+
name: () => this.lexPoolContract.name(),
|
|
184
|
+
symbol: () => this.lexPoolContract.symbol(),
|
|
185
|
+
decimals: () => this.lexPoolContract.decimals(),
|
|
186
|
+
totalSupply: () => this.lexPoolContract.totalSupply(),
|
|
187
|
+
balanceOf: (account) => this.lexPoolContract.balanceOf(account),
|
|
188
|
+
allowance: (owner, spender) => this.lexPoolContract.allowance(owner, spender),
|
|
189
|
+
transfer: (to, amount) => this.lexPoolContract.transfer(to, amount),
|
|
190
|
+
transferFrom: (from, to, amount) => this.lexPoolContract.transferFrom(from, to, amount),
|
|
191
|
+
approve: (spender, amount) => this.lexPoolContract.approve(spender, amount),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
createConstantsGroup() {
|
|
195
|
+
return {
|
|
196
|
+
SELF_UNIT_SCALE: () => this.lexPoolContract.SELF_UNIT_SCALE(),
|
|
197
|
+
PRECISION: () => this.lexPoolContract.PRECISION(),
|
|
198
|
+
FRACTION_SCALE: () => this.lexPoolContract.FRACTION_SCALE(),
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
createContractInfoGroup() {
|
|
202
|
+
return {
|
|
203
|
+
admin: () => this.lexPoolContract.admin(),
|
|
204
|
+
pendingAdmin: () => this.lexPoolContract.pendingAdmin(),
|
|
205
|
+
implementation: () => this.lexPoolContract.implementation(),
|
|
206
|
+
pendingImplementation: () => this.lexPoolContract.pendingImplementation(),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
exports.LexPoolV1Service = LexPoolV1Service;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LexPoolV1Service = void 0;
|
|
4
|
+
var LexPoolV1Service_1 = require("./LexPoolV1Service");
|
|
5
|
+
Object.defineProperty(exports, "LexPoolV1Service", { enumerable: true, get: function () { return LexPoolV1Service_1.LexPoolV1Service; } });
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PNLRService = void 0;
|
|
4
|
+
const PNLR__factory_1 = require("../../typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory");
|
|
5
|
+
class PNLRFunctionsGroup_EpochManagement {
|
|
6
|
+
constructor(contract) {
|
|
7
|
+
this.contract = contract;
|
|
8
|
+
}
|
|
9
|
+
async advanceEpoch(pool, pairsPrices, value) {
|
|
10
|
+
const options = value ? { value } : {};
|
|
11
|
+
return this.contract.advanceEpoch(pool, pairsPrices, options);
|
|
12
|
+
}
|
|
13
|
+
async advanceEpochAllowMissingZeroOI(pool, pairsPrices, value) {
|
|
14
|
+
const options = value ? { value } : {};
|
|
15
|
+
return this.contract.advanceEpochAllowMissingZeroOI(pool, pairsPrices, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
class PNLRFunctionsGroup_PnLCalculation {
|
|
19
|
+
constructor(contract) {
|
|
20
|
+
this.contract = contract;
|
|
21
|
+
}
|
|
22
|
+
async calculateUnrealizedPricePnl(poolAccountant, pairsPrices, value) {
|
|
23
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
24
|
+
return this.contract.calculateUnrealizedPricePnl.staticCall(poolAccountant, pairsPrices);
|
|
25
|
+
}
|
|
26
|
+
async calculateUnrealizedPricePnlAllowMissingZeroOI(poolAccountant, pairsPrices, value) {
|
|
27
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
28
|
+
return this.contract.calculateUnrealizedPricePnlAllowMissingZeroOI.staticCall(poolAccountant, pairsPrices);
|
|
29
|
+
}
|
|
30
|
+
async pairsTradersPricePnl(poolAccountant, pairsPrices, value) {
|
|
31
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
32
|
+
return this.contract.pairsTradersPricePnl.staticCall(poolAccountant, pairsPrices);
|
|
33
|
+
}
|
|
34
|
+
async pairsTradersPricePnlWithMissingPairs(poolAccountant, pairsPrices, allowMissingZeroOI, value) {
|
|
35
|
+
// Payable view function - value parameter is optional for gas estimation
|
|
36
|
+
return this.contract.pairsTradersPricePnlWithMissingPairs.staticCall(poolAccountant, pairsPrices, allowMissingZeroOI);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class PNLRFunctionsGroup_PermissionManagement {
|
|
40
|
+
constructor(contract) {
|
|
41
|
+
this.contract = contract;
|
|
42
|
+
}
|
|
43
|
+
async allowEpochAdvancingAccount(account) {
|
|
44
|
+
return this.contract.allowEpochAdvancingAccount(account);
|
|
45
|
+
}
|
|
46
|
+
async disallowEpochAdvancingAccount(account) {
|
|
47
|
+
return this.contract.disallowEpochAdvancingAccount(account);
|
|
48
|
+
}
|
|
49
|
+
async isAllowedToTrigger(account) {
|
|
50
|
+
return this.contract.isAllowedToTrigger(account);
|
|
51
|
+
}
|
|
52
|
+
async getAllTriggerPermissionedAccounts() {
|
|
53
|
+
return this.contract.getAllTriggerPermissionedAccounts();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class PNLRFunctionsGroup_Configuration {
|
|
57
|
+
constructor(contract) {
|
|
58
|
+
this.contract = contract;
|
|
59
|
+
}
|
|
60
|
+
async maxPriceDelay() {
|
|
61
|
+
return this.contract.maxPriceDelay();
|
|
62
|
+
}
|
|
63
|
+
async setMaxPriceDelay(delay) {
|
|
64
|
+
return this.contract.setMaxPriceDelay(delay);
|
|
65
|
+
}
|
|
66
|
+
async priceValidator() {
|
|
67
|
+
return this.contract.priceValidator();
|
|
68
|
+
}
|
|
69
|
+
async priceValidatorType() {
|
|
70
|
+
return this.contract.priceValidatorType();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
class PNLRFunctionsGroup_ContractInfo {
|
|
74
|
+
constructor(contract) {
|
|
75
|
+
this.contract = contract;
|
|
76
|
+
}
|
|
77
|
+
async admin() {
|
|
78
|
+
return this.contract.admin();
|
|
79
|
+
}
|
|
80
|
+
async pendingAdmin() {
|
|
81
|
+
return this.contract.pendingAdmin();
|
|
82
|
+
}
|
|
83
|
+
async getContractName() {
|
|
84
|
+
return this.contract.getContractName();
|
|
85
|
+
}
|
|
86
|
+
async getContractVersion() {
|
|
87
|
+
return this.contract.getContractVersion();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
class PNLRFunctionsGroup_AdminManagement {
|
|
91
|
+
constructor(contract) {
|
|
92
|
+
this.contract = contract;
|
|
93
|
+
}
|
|
94
|
+
async _setPendingAdmin(newPendingAdmin) {
|
|
95
|
+
return this.contract._setPendingAdmin(newPendingAdmin);
|
|
96
|
+
}
|
|
97
|
+
async _acceptAdmin() {
|
|
98
|
+
return this.contract._acceptAdmin();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
class PNLRFunctionsGroup_Constants {
|
|
102
|
+
constructor(contract) {
|
|
103
|
+
this.contract = contract;
|
|
104
|
+
}
|
|
105
|
+
async CONTRACT_NAME() {
|
|
106
|
+
return this.contract.CONTRACT_NAME();
|
|
107
|
+
}
|
|
108
|
+
async CONTRACT_VERSION() {
|
|
109
|
+
return this.contract.CONTRACT_VERSION();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
class PNLRService {
|
|
113
|
+
constructor(signerOrProvider, address) {
|
|
114
|
+
this.pnlrContract = PNLR__factory_1.PNLR__factory.connect(address, signerOrProvider);
|
|
115
|
+
this.epochManagement = new PNLRFunctionsGroup_EpochManagement(this.pnlrContract);
|
|
116
|
+
this.pnlCalculation = new PNLRFunctionsGroup_PnLCalculation(this.pnlrContract);
|
|
117
|
+
this.permissionManagement = new PNLRFunctionsGroup_PermissionManagement(this.pnlrContract);
|
|
118
|
+
this.configuration = new PNLRFunctionsGroup_Configuration(this.pnlrContract);
|
|
119
|
+
this.adminManagement = new PNLRFunctionsGroup_AdminManagement(this.pnlrContract);
|
|
120
|
+
this.contractInfo = new PNLRFunctionsGroup_ContractInfo(this.pnlrContract);
|
|
121
|
+
this.constants = new PNLRFunctionsGroup_Constants(this.pnlrContract);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.PNLRService = PNLRService;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PNLRService = void 0;
|
|
4
|
+
var PNLRService_1 = require("./PNLRService");
|
|
5
|
+
Object.defineProperty(exports, "PNLRService", { enumerable: true, get: function () { return PNLRService_1.PNLRService; } });
|