@meterio/sumer-js 0.2.92 → 0.2.94

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.
Files changed (58) hide show
  1. package/dist/browser/sumer.min.js +7 -7
  2. package/dist/nodejs/abi.d.ts +43 -0
  3. package/dist/nodejs/abi.js +61 -0
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/core.d.ts +23 -4
  6. package/dist/nodejs/constants/core.js +94 -30
  7. package/dist/nodejs/constants/core.js.map +1 -1
  8. package/dist/nodejs/constants/sepolia.js +4 -4
  9. package/dist/nodejs/index.d.ts +43 -0
  10. package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +1 -0
  11. package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +12 -0
  12. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/IEarn.d.ts +25 -0
  13. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/IEarn.js +3 -0
  14. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/IEarn.js.map +1 -0
  15. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/IStCore.d.ts +25 -0
  16. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/IStCore.js +3 -0
  17. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/IStCore.js.map +1 -0
  18. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter.d.ts +25 -0
  19. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter.js +3 -0
  20. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter.js.map +1 -0
  21. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/index.d.ts +3 -0
  22. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/index.js +3 -0
  23. package/dist/nodejs/typechain/contracts/Oracle/stCoreAdapter.sol/index.js.map +1 -0
  24. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +1 -0
  25. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +3 -1
  26. package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
  27. package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/API3Adapter__factory.d.ts +1 -1
  28. package/dist/nodejs/typechain/factories/contracts/Oracle/API3Adapter.sol/API3Adapter__factory.js +1 -1
  29. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter__factory.d.ts +1 -1
  30. package/dist/nodejs/typechain/factories/contracts/Oracle/LayerBankAdapter.sol/LayerBankAdapter__factory.js +1 -1
  31. package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.d.ts +1 -1
  32. package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.js +1 -1
  33. package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.d.ts +1 -1
  34. package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.js +1 -1
  35. package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +6 -0
  36. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +7 -1
  37. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IEarn__factory.d.ts +17 -0
  39. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IEarn__factory.js +33 -0
  40. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IEarn__factory.js.map +1 -0
  41. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IStCore__factory.d.ts +17 -0
  42. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IStCore__factory.js +33 -0
  43. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IStCore__factory.js.map +1 -0
  44. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter__factory.d.ts +44 -0
  45. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter__factory.js +69 -0
  46. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter__factory.js.map +1 -0
  47. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/index.d.ts +3 -0
  48. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/index.js +13 -0
  49. package/dist/nodejs/typechain/factories/contracts/Oracle/stCoreAdapter.sol/index.js.map +1 -0
  50. package/dist/nodejs/typechain/factories/contracts/Oracle/stEURAdapter.sol/StEURAdapter__factory.d.ts +1 -1
  51. package/dist/nodejs/typechain/factories/contracts/Oracle/stEURAdapter.sol/StEURAdapter__factory.js +1 -1
  52. package/dist/nodejs/typechain/factories/contracts/Oracle/stUSDAdapter.sol/StUSDAdapter__factory.d.ts +1 -1
  53. package/dist/nodejs/typechain/factories/contracts/Oracle/stUSDAdapter.sol/StUSDAdapter__factory.js +1 -1
  54. package/dist/nodejs/typechain/hardhat.d.ts +252 -0
  55. package/dist/nodejs/typechain/index.d.ts +26 -0
  56. package/dist/nodejs/typechain/index.js +28 -2
  57. package/dist/nodejs/typechain/index.js.map +1 -1
  58. package/package.json +1 -1
@@ -36,7 +36,7 @@ const _abi = [
36
36
  type: "function",
37
37
  },
38
38
  ];
39
- const _bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e557600054630f451f7160e31b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea26469706673582212203a30c6f3a1a86fddf7840fd6c10e46c9b5cca69955214ac6d8c48e05c50f47f964736f6c634300081a0033";
39
+ const _bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e557600054630f451f7160e31b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea26469706673582212205d6a6c123c79c5e69d82c27f93c0a54c6bb0aa925717ffd9712216d54a0c06c964736f6c634300081a0033";
40
40
  const isSuperArgs = (xs) => xs.length > 1;
41
41
  class WstETHAdapter__factory extends ethers_1.ContractFactory {
42
42
  constructor(...args) {
@@ -14,7 +14,7 @@ export declare class WstMTRGAdapter__factory extends ContractFactory {
14
14
  deploymentTransaction(): ContractTransactionResponse;
15
15
  }>;
16
16
  connect(runner: ContractRunner | null): WstMTRGAdapter__factory;
17
- static readonly bytecode = "0x608034608657601f6101c738819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161011290816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460d757600036600319011260d757600154635638467b60e01b8252602090829060049082906001600160a01b03165afa90811560cb57600091606f575b602082604051908152f35b60203d60201160c5575b601f8101601f1916820167ffffffffffffffff81118382101760b15760209183916040528101031260ad5751905060206064565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6079565b6040513d6000823e3d90fd5b600080fdfea264697066735822122041bbfc6ef7ecb5301f5daadfb99b542431343099925f7a9d2de6a859d3765b2e64736f6c634300081a0033";
17
+ static readonly bytecode = "0x608034608657601f6101c738819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161011290816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460d757600036600319011260d757600154635638467b60e01b8252602090829060049082906001600160a01b03165afa90811560cb57600091606f575b602082604051908152f35b60203d60201160c5575b601f8101601f1916820167ffffffffffffffff81118382101760b15760209183916040528101031260ad5751905060206064565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6079565b6040513d6000823e3d90fd5b600080fdfea26469706673582212208c59aac9ad145821da7b0450b3214b566906e0f8b39d0b32f85ce5990d23fb2a64736f6c634300081a0033";
18
18
  static readonly abi: readonly [{
19
19
  readonly inputs: readonly [{
20
20
  readonly internalType: "address";
@@ -36,7 +36,7 @@ const _abi = [
36
36
  type: "function",
37
37
  },
38
38
  ];
39
- const _bytecode = "0x608034608657601f6101c738819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161011290816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460d757600036600319011260d757600154635638467b60e01b8252602090829060049082906001600160a01b03165afa90811560cb57600091606f575b602082604051908152f35b60203d60201160c5575b601f8101601f1916820167ffffffffffffffff81118382101760b15760209183916040528101031260ad5751905060206064565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6079565b6040513d6000823e3d90fd5b600080fdfea264697066735822122041bbfc6ef7ecb5301f5daadfb99b542431343099925f7a9d2de6a859d3765b2e64736f6c634300081a0033";
39
+ const _bytecode = "0x608034608657601f6101c738819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161011290816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460d757600036600319011260d757600154635638467b60e01b8252602090829060049082906001600160a01b03165afa90811560cb57600091606f575b602082604051908152f35b60203d60201160c5575b601f8101601f1916820167ffffffffffffffff81118382101760b15760209183916040528101031260ad5751905060206064565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6079565b6040513d6000823e3d90fd5b600080fdfea26469706673582212208c59aac9ad145821da7b0450b3214b566906e0f8b39d0b32f85ce5990d23fb2a64736f6c634300081a0033";
40
40
  const isSuperArgs = (xs) => xs.length > 1;
41
41
  class WstMTRGAdapter__factory extends ethers_1.ContractFactory {
42
42
  constructor(...args) {
@@ -1,5 +1,11 @@
1
+ export * as api3AdapterSol from "./API3Adapter.sol";
2
+ export * as layerBankAdapterSol from "./LayerBankAdapter.sol";
1
3
  export * as priceOracleSol from "./PriceOracle.sol";
4
+ export * as stakedAngleAdapterSol from "./StakedAngleAdapter.sol";
2
5
  export * as wstEthAdapterSol from "./WstETHAdapter.sol";
3
6
  export * as wstMtrgAdapterSol from "./WstMTRGAdapter.sol";
7
+ export * as stCoreAdapterSol from "./stCoreAdapter.sol";
8
+ export * as stEurAdapterSol from "./stEURAdapter.sol";
9
+ export * as stUsdAdapterSol from "./stUSDAdapter.sol";
4
10
  export * as wstMtrgOracleSol from "./wstMTRGOracle.sol";
5
11
  export { FeedPriceOracle__factory } from "./FeedPriceOracle__factory";
@@ -23,13 +23,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.FeedPriceOracle__factory = exports.wstMtrgOracleSol = exports.wstMtrgAdapterSol = exports.wstEthAdapterSol = exports.priceOracleSol = void 0;
26
+ exports.FeedPriceOracle__factory = exports.wstMtrgOracleSol = exports.stUsdAdapterSol = exports.stEurAdapterSol = exports.stCoreAdapterSol = exports.wstMtrgAdapterSol = exports.wstEthAdapterSol = exports.stakedAngleAdapterSol = exports.priceOracleSol = exports.layerBankAdapterSol = exports.api3AdapterSol = void 0;
27
27
  /* Autogenerated file. Do not edit manually. */
28
28
  /* tslint:disable */
29
29
  /* eslint-disable */
30
+ exports.api3AdapterSol = __importStar(require("./API3Adapter.sol"));
31
+ exports.layerBankAdapterSol = __importStar(require("./LayerBankAdapter.sol"));
30
32
  exports.priceOracleSol = __importStar(require("./PriceOracle.sol"));
33
+ exports.stakedAngleAdapterSol = __importStar(require("./StakedAngleAdapter.sol"));
31
34
  exports.wstEthAdapterSol = __importStar(require("./WstETHAdapter.sol"));
32
35
  exports.wstMtrgAdapterSol = __importStar(require("./WstMTRGAdapter.sol"));
36
+ exports.stCoreAdapterSol = __importStar(require("./stCoreAdapter.sol"));
37
+ exports.stEurAdapterSol = __importStar(require("./stEURAdapter.sol"));
38
+ exports.stUsdAdapterSol = __importStar(require("./stUSDAdapter.sol"));
33
39
  exports.wstMtrgOracleSol = __importStar(require("./wstMTRGOracle.sol"));
34
40
  var FeedPriceOracle__factory_1 = require("./FeedPriceOracle__factory");
35
41
  Object.defineProperty(exports, "FeedPriceOracle__factory", { enumerable: true, get: function () { return FeedPriceOracle__factory_1.FeedPriceOracle__factory; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/factories/contracts/Oracle/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,oEAAoD;AACpD,wEAAwD;AACxD,0EAA0D;AAC1D,wEAAwD;AACxD,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/factories/contracts/Oracle/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,oEAAoD;AACpD,8EAA8D;AAC9D,oEAAoD;AACpD,kFAAkE;AAClE,wEAAwD;AACxD,0EAA0D;AAC1D,wEAAwD;AACxD,sEAAsD;AACtD,sEAAsD;AACtD,wEAAwD;AACxD,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA"}
@@ -0,0 +1,17 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IEarn, IEarnInterface } from "../../../../contracts/Oracle/stCoreAdapter.sol/IEarn";
3
+ export declare class IEarn__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "getCurrentExchangeRate";
7
+ readonly outputs: readonly [{
8
+ readonly internalType: "uint256";
9
+ readonly name: "";
10
+ readonly type: "uint256";
11
+ }];
12
+ readonly stateMutability: "view";
13
+ readonly type: "function";
14
+ }];
15
+ static createInterface(): IEarnInterface;
16
+ static connect(address: string, runner?: ContractRunner | null): IEarn;
17
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IEarn__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "getCurrentExchangeRate",
12
+ outputs: [
13
+ {
14
+ internalType: "uint256",
15
+ name: "",
16
+ type: "uint256",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ ];
23
+ class IEarn__factory {
24
+ static createInterface() {
25
+ return new ethers_1.Interface(_abi);
26
+ }
27
+ static connect(address, runner) {
28
+ return new ethers_1.Contract(address, _abi, runner);
29
+ }
30
+ }
31
+ exports.IEarn__factory = IEarn__factory;
32
+ IEarn__factory.abi = _abi;
33
+ //# sourceMappingURL=IEarn__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IEarn__factory.js","sourceRoot":"","sources":["../../../../../../../src/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IEarn__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,cAAc;IAEzB,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAmB,CAAC;IAC/C,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAqB,CAAC;IACjE,CAAC;;AAPH,wCAQC;AAPiB,kBAAG,GAAG,IAAI,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IStCore, IStCoreInterface } from "../../../../contracts/Oracle/stCoreAdapter.sol/IStCore";
3
+ export declare class IStCore__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "earn";
7
+ readonly outputs: readonly [{
8
+ readonly internalType: "address";
9
+ readonly name: "";
10
+ readonly type: "address";
11
+ }];
12
+ readonly stateMutability: "view";
13
+ readonly type: "function";
14
+ }];
15
+ static createInterface(): IStCoreInterface;
16
+ static connect(address: string, runner?: ContractRunner | null): IStCore;
17
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IStCore__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "earn",
12
+ outputs: [
13
+ {
14
+ internalType: "address",
15
+ name: "",
16
+ type: "address",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ ];
23
+ class IStCore__factory {
24
+ static createInterface() {
25
+ return new ethers_1.Interface(_abi);
26
+ }
27
+ static connect(address, runner) {
28
+ return new ethers_1.Contract(address, _abi, runner);
29
+ }
30
+ }
31
+ exports.IStCore__factory = IStCore__factory;
32
+ IStCore__factory.abi = _abi;
33
+ //# sourceMappingURL=IStCore__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IStCore__factory.js","sourceRoot":"","sources":["../../../../../../../src/typechain/factories/contracts/Oracle/stCoreAdapter.sol/IStCore__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,gBAAgB;IAE3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAqB,CAAC;IACjD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAuB,CAAC;IACnE,CAAC;;AAPH,4CAQC;AAPiB,oBAAG,GAAG,IAAI,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../../common";
4
+ import type { StCoreAdapter, StCoreAdapterInterface } from "../../../../contracts/Oracle/stCoreAdapter.sol/StCoreAdapter";
5
+ type StCoreAdapterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class StCoreAdapter__factory extends ContractFactory {
7
+ constructor(...args: StCoreAdapterConstructorParams);
8
+ getDeployTransaction(_correlatedToken: AddressLike, _underlyingToken: AddressLike, overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(_correlatedToken: AddressLike, _underlyingToken: AddressLike, overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<StCoreAdapter & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): StCoreAdapter__factory;
17
+ static readonly bytecode = "0x608034608657601f61029538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b031991821617909155600080549290931691161790556040516101e090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe608080604052600436101561001357600080fd5b60003560e01c633ba0b9a91461002857600080fd5b3461016d57600036600319011261016d5760015463d389800f60e01b8252602090829060049082906001600160a01b03165afa90811561011a57600091610126575b50604051633ca967f360e01b815290602090829060049082906001600160a01b03165afa90811561011a576000916100e5575b50670de0b6b3a7640000810290808204670de0b6b3a764000014901517156100cf57602090620f424060405191048152f35b634e487b7160e01b600052601160045260246000fd5b906020823d602011610112575b816100ff60209383610172565b8101031261010f5750513861009d565b80fd5b3d91506100f2565b6040513d6000823e3d90fd5b6020813d602011610165575b8161013f60209383610172565b810103126101615751906001600160a01b038216820361010f5750602061006a565b5080fd5b3d9150610132565b600080fd5b90601f8019910116810190811067ffffffffffffffff82111761019457604052565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220a302dacf8f76b83598013ae3674b5c442e08591f750e2e88c567879c338de0a064736f6c634300081a0033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "address";
21
+ readonly name: "_correlatedToken";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly internalType: "address";
25
+ readonly name: "_underlyingToken";
26
+ readonly type: "address";
27
+ }];
28
+ readonly stateMutability: "nonpayable";
29
+ readonly type: "constructor";
30
+ }, {
31
+ readonly inputs: readonly [];
32
+ readonly name: "exchangeRate";
33
+ readonly outputs: readonly [{
34
+ readonly internalType: "uint256";
35
+ readonly name: "";
36
+ readonly type: "uint256";
37
+ }];
38
+ readonly stateMutability: "view";
39
+ readonly type: "function";
40
+ }];
41
+ static createInterface(): StCoreAdapterInterface;
42
+ static connect(address: string, runner?: ContractRunner | null): StCoreAdapter;
43
+ }
44
+ export {};
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StCoreAdapter__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "_correlatedToken",
14
+ type: "address",
15
+ },
16
+ {
17
+ internalType: "address",
18
+ name: "_underlyingToken",
19
+ type: "address",
20
+ },
21
+ ],
22
+ stateMutability: "nonpayable",
23
+ type: "constructor",
24
+ },
25
+ {
26
+ inputs: [],
27
+ name: "exchangeRate",
28
+ outputs: [
29
+ {
30
+ internalType: "uint256",
31
+ name: "",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ stateMutability: "view",
36
+ type: "function",
37
+ },
38
+ ];
39
+ const _bytecode = "0x608034608657601f61029538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b031991821617909155600080549290931691161790556040516101e090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe608080604052600436101561001357600080fd5b60003560e01c633ba0b9a91461002857600080fd5b3461016d57600036600319011261016d5760015463d389800f60e01b8252602090829060049082906001600160a01b03165afa90811561011a57600091610126575b50604051633ca967f360e01b815290602090829060049082906001600160a01b03165afa90811561011a576000916100e5575b50670de0b6b3a7640000810290808204670de0b6b3a764000014901517156100cf57602090620f424060405191048152f35b634e487b7160e01b600052601160045260246000fd5b906020823d602011610112575b816100ff60209383610172565b8101031261010f5750513861009d565b80fd5b3d91506100f2565b6040513d6000823e3d90fd5b6020813d602011610165575b8161013f60209383610172565b810103126101615751906001600160a01b038216820361010f5750602061006a565b5080fd5b3d9150610132565b600080fd5b90601f8019910116810190811067ffffffffffffffff82111761019457604052565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220a302dacf8f76b83598013ae3674b5c442e08591f750e2e88c567879c338de0a064736f6c634300081a0033";
40
+ const isSuperArgs = (xs) => xs.length > 1;
41
+ class StCoreAdapter__factory extends ethers_1.ContractFactory {
42
+ constructor(...args) {
43
+ if (isSuperArgs(args)) {
44
+ super(...args);
45
+ }
46
+ else {
47
+ super(_abi, _bytecode, args[0]);
48
+ }
49
+ }
50
+ getDeployTransaction(_correlatedToken, _underlyingToken, overrides) {
51
+ return super.getDeployTransaction(_correlatedToken, _underlyingToken, overrides || {});
52
+ }
53
+ deploy(_correlatedToken, _underlyingToken, overrides) {
54
+ return super.deploy(_correlatedToken, _underlyingToken, overrides || {});
55
+ }
56
+ connect(runner) {
57
+ return super.connect(runner);
58
+ }
59
+ static createInterface() {
60
+ return new ethers_1.Interface(_abi);
61
+ }
62
+ static connect(address, runner) {
63
+ return new ethers_1.Contract(address, _abi, runner);
64
+ }
65
+ }
66
+ exports.StCoreAdapter__factory = StCoreAdapter__factory;
67
+ StCoreAdapter__factory.bytecode = _bytecode;
68
+ StCoreAdapter__factory.abi = _abi;
69
+ //# sourceMappingURL=StCoreAdapter__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StCoreAdapter__factory.js","sourceRoot":"","sources":["../../../../../../../src/typechain/factories/contracts/Oracle/stCoreAdapter.sol/StCoreAdapter__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAahB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAM,SAAS,GACb,8yCAA8yC,CAAC;AAMjzC,MAAM,WAAW,GAAG,CAClB,EAAkC,EACmB,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,sBAAuB,SAAQ,wBAAe;IACzD,YAAY,GAAG,IAAoC;QACjD,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,gBAA6B,EAC7B,gBAA6B,EAC7B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAC/B,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,IAAI,EAAE,CAChB,CAAC;IACJ,CAAC;IACQ,MAAM,CACb,gBAA6B,EAC7B,gBAA6B,EAC7B,SAAmD;QAEnD,OAAO,KAAK,CAAC,MAAM,CACjB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,IAAI,EAAE,CAKhB,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA2B,CAAC;IACzD,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA2B,CAAC;IACvD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA6B,CAAC;IACzE,CAAC;;AAjDH,wDAkDC;AAXiB,+BAAQ,GAAG,SAAS,CAAC;AACrB,0BAAG,GAAG,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { IEarn__factory } from "./IEarn__factory";
2
+ export { IStCore__factory } from "./IStCore__factory";
3
+ export { StCoreAdapter__factory } from "./StCoreAdapter__factory";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StCoreAdapter__factory = exports.IStCore__factory = exports.IEarn__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IEarn__factory_1 = require("./IEarn__factory");
8
+ Object.defineProperty(exports, "IEarn__factory", { enumerable: true, get: function () { return IEarn__factory_1.IEarn__factory; } });
9
+ var IStCore__factory_1 = require("./IStCore__factory");
10
+ Object.defineProperty(exports, "IStCore__factory", { enumerable: true, get: function () { return IStCore__factory_1.IStCore__factory; } });
11
+ var StCoreAdapter__factory_1 = require("./StCoreAdapter__factory");
12
+ Object.defineProperty(exports, "StCoreAdapter__factory", { enumerable: true, get: function () { return StCoreAdapter__factory_1.StCoreAdapter__factory; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/typechain/factories/contracts/Oracle/stCoreAdapter.sol/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA"}
@@ -14,7 +14,7 @@ export declare class StEURAdapter__factory extends ContractFactory {
14
14
  deploymentTransaction(): ContractTransactionResponse;
15
15
  }>;
16
16
  connect(runner: ContractRunner | null): StEURAdapter__factory;
17
- static readonly bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea2646970667358221220bcfff0246e444237d386da66bfecfd4568a16cc8b3f561395be469882d3052b464736f6c634300081a0033";
17
+ static readonly bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea2646970667358221220c1c8c0dd215e2ecdfcf9868e0c794e1d8bde92ec8eba77a93cef3e26d91051c264736f6c634300081a0033";
18
18
  static readonly abi: readonly [{
19
19
  readonly inputs: readonly [{
20
20
  readonly internalType: "address";
@@ -36,7 +36,7 @@ const _abi = [
36
36
  type: "function",
37
37
  },
38
38
  ];
39
- const _bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea2646970667358221220bcfff0246e444237d386da66bfecfd4568a16cc8b3f561395be469882d3052b464736f6c634300081a0033";
39
+ const _bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea2646970667358221220c1c8c0dd215e2ecdfcf9868e0c794e1d8bde92ec8eba77a93cef3e26d91051c264736f6c634300081a0033";
40
40
  const isSuperArgs = (xs) => xs.length > 1;
41
41
  class StEURAdapter__factory extends ethers_1.ContractFactory {
42
42
  constructor(...args) {
@@ -14,7 +14,7 @@ export declare class StUSDAdapter__factory extends ContractFactory {
14
14
  deploymentTransaction(): ContractTransactionResponse;
15
15
  }>;
16
16
  connect(runner: ContractRunner | null): StUSDAdapter__factory;
17
- static readonly bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea2646970667358221220db98b005a1f6da8b0719c37d31b21dcc849a6e173acb103bd7609ec05f5d89de64736f6c634300081a0033";
17
+ static readonly bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea26469706673582212205150c4921ede80ece54174b126d4e5d47111600dcaa06508eac76a21fdb00fd264736f6c634300081a0033";
18
18
  static readonly abi: readonly [{
19
19
  readonly inputs: readonly [{
20
20
  readonly internalType: "address";
@@ -36,7 +36,7 @@ const _abi = [
36
36
  type: "function",
37
37
  },
38
38
  ];
39
- const _bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea2646970667358221220db98b005a1f6da8b0719c37d31b21dcc849a6e173acb103bd7609ec05f5d89de64736f6c634300081a0033";
39
+ const _bytecode = "0x608034608657601f6101d538819003918201601f19168301916001600160401b03831184841017608b578084926040948552833981010312608657604b602060458360a1565b920160a1565b600180546001600160a01b039384166001600160a01b0319918216179091556000805492909316911617905560405161012090816100b58239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820360865756fe6080806040526004361015601257600080fd5b60003560e01c633ba0b9a914602657600080fd5b3460e557600036600319011260e55760015463266d6a8360e11b8252670de0b6b3a76400006004830152602090829060249082906001600160a01b03165afa90811560d957600091607d575b602082604051908152f35b60203d60201160d3575b601f8101601f1916820167ffffffffffffffff81118382101760bf5760209183916040528101031260bb5751905060206072565b5080fd5b634e487b7160e01b84526041600452602484fd5b503d6087565b6040513d6000823e3d90fd5b600080fdfea26469706673582212205150c4921ede80ece54174b126d4e5d47111600dcaa06508eac76a21fdb00fd264736f6c634300081a0033";
40
40
  const isSuperArgs = (xs) => xs.length > 1;
41
41
  class StUSDAdapter__factory extends ethers_1.ContractFactory {
42
42
  constructor(...args) {