@gearbox-protocol/sdk 1.20.5 → 1.20.7

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 (102) hide show
  1. package/lib/contracts/contractsRegister.d.ts +2 -1
  2. package/lib/contracts/contractsRegister.js +4 -1
  3. package/lib/core/pool.d.ts +9 -1
  4. package/lib/core/pool.js +46 -0
  5. package/lib/core/rewardConvex.spec.js +0 -1
  6. package/lib/oracles/priceFeeds.js +10 -0
  7. package/lib/pathfinder/pathfinder.d.ts +2 -3
  8. package/lib/tokens/decimals.js +1 -0
  9. package/lib/tokens/gear.d.ts +1 -1
  10. package/lib/tokens/gear.js +5 -0
  11. package/lib/tokens/token.js +2 -0
  12. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +106 -0
  13. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +218 -0
  14. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +2 -0
  15. package/lib/types/@gearbox-protocol/core-v2/contracts/index.d.ts +2 -0
  16. package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +28 -1
  17. package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +11 -0
  18. package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapter.d.ts +1 -9
  19. package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter.d.ts +1 -9
  20. package/lib/types/@gearbox-protocol/core-v2/contracts/pool/PoolService.d.ts +570 -0
  21. package/lib/types/@gearbox-protocol/core-v2/contracts/pool/index.d.ts +1 -0
  22. package/lib/types/@gearbox-protocol/core-v2/contracts/pool/index.js +2 -0
  23. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapter.d.ts +1 -9
  24. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BoosterAdapter.d.ts +1 -9
  25. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1Adapter.d.ts +1 -9
  26. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_2AssetsAdapter.d.ts +1 -9
  27. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_3AssetsAdapter.d.ts +1 -9
  28. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_4AssetsAdapter.d.ts +1 -9
  29. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter.d.ts +1 -9
  30. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/IwstETHV1Adapter.d.ts +1 -9
  31. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker.d.ts +106 -0
  32. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker.js +2 -0
  33. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/{IUniswapV2Adapter.d.ts → IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts} +2 -10
  34. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2Adapter.js +2 -0
  35. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions.d.ts +27 -0
  36. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions.js +2 -0
  37. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/index.d.ts +2 -0
  38. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/index.js +2 -0
  39. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +1 -9
  40. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/index.d.ts +3 -1
  41. package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter.d.ts +1 -9
  42. package/lib/types/contracts/IGnosisSafeSignatureValidator.d.ts +42 -0
  43. package/lib/types/contracts/IGnosisSafeSignatureValidator.js +2 -0
  44. package/lib/types/contracts/index.d.ts +3 -2
  45. package/lib/types/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2.d.ts +1 -1
  46. package/lib/types/contracts/support/MultiCall.sol/Multicall2.js +2 -0
  47. package/lib/types/contracts/support/MultiCall.sol/index.js +2 -0
  48. package/lib/types/contracts/support/index.d.ts +2 -0
  49. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.d.ts +35 -0
  50. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +149 -0
  51. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.d.ts +35 -0
  52. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +260 -0
  53. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +2 -0
  54. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +5 -1
  55. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/index.d.ts +1 -0
  56. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/index.js +2 -1
  57. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +13 -0
  58. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +26 -0
  59. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IAdapter.sol/IAdapter__factory.js +0 -13
  60. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter__factory.js +0 -13
  61. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.d.ts +65 -0
  62. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.js +884 -0
  63. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/index.d.ts +1 -0
  64. package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/index.js +8 -0
  65. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol/IConvexV1BaseRewardPoolAdapter__factory.js +0 -13
  66. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/convex/IConvexV1BoosterAdapter__factory.js +0 -13
  67. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1Adapter.sol/ICurveV1Adapter__factory.js +0 -13
  68. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_2AssetsAdapter__factory.js +0 -13
  69. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_3AssetsAdapter__factory.js +0 -13
  70. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/curve/ICurveV1_4AssetsAdapter__factory.js +0 -13
  71. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.js +0 -13
  72. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/IwstETHV1Adapter__factory.js +0 -13
  73. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker__factory.d.ts +22 -0
  74. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker__factory.js +99 -0
  75. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +12 -0
  76. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +27 -0
  77. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/{IUniswapV2Adapter__factory.d.ts → IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts} +1 -1
  78. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/{IUniswapV2Adapter__factory.js → IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js} +5 -13
  79. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/index.d.ts +2 -0
  80. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/index.js +10 -0
  81. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +1 -1
  82. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +1 -14
  83. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/index.d.ts +2 -1
  84. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/index.js +4 -3
  85. package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter__factory.js +0 -13
  86. package/lib/types/factories/contracts/IGnosisSafeSignatureValidator__factory.d.ts +22 -0
  87. package/lib/types/factories/contracts/IGnosisSafeSignatureValidator__factory.js +46 -0
  88. package/lib/types/factories/contracts/index.d.ts +2 -1
  89. package/lib/types/factories/contracts/index.js +4 -2
  90. package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2__factory.d.ts +2 -2
  91. package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2__factory.js +1 -1
  92. package/lib/types/factories/contracts/support/index.d.ts +1 -0
  93. package/lib/types/factories/contracts/support/index.js +25 -1
  94. package/lib/types/index.d.ts +16 -4
  95. package/lib/types/index.js +15 -3
  96. package/package.json +1 -1
  97. /package/lib/types/{@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.js → @chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.js} +0 -0
  98. /package/lib/types/{contracts/MultiCall.sol/Multicall2.js → @chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.js} +0 -0
  99. /package/lib/types/{contracts/MultiCall.sol/index.js → @gearbox-protocol/core-v2/contracts/pool/PoolService.js} +0 -0
  100. /package/lib/types/contracts/{MultiCall.sol → support/MultiCall.sol}/index.d.ts +0 -0
  101. /package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/index.d.ts +0 -0
  102. /package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/index.js +0 -0
@@ -0,0 +1 @@
1
+ export { PoolService__factory } from "./PoolService__factory";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PoolService__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var PoolService__factory_1 = require("./PoolService__factory");
8
+ Object.defineProperty(exports, "PoolService__factory", { enumerable: true, get: function () { return PoolService__factory_1.PoolService__factory; } });
@@ -73,19 +73,6 @@ var _abi = [
73
73
  stateMutability: "view",
74
74
  type: "function",
75
75
  },
76
- {
77
- inputs: [],
78
- name: "creditFacade",
79
- outputs: [
80
- {
81
- internalType: "address",
82
- name: "",
83
- type: "address",
84
- },
85
- ],
86
- stateMutability: "view",
87
- type: "function",
88
- },
89
76
  {
90
77
  inputs: [],
91
78
  name: "creditManager",
@@ -43,19 +43,6 @@ var _abi = [
43
43
  stateMutability: "pure",
44
44
  type: "function",
45
45
  },
46
- {
47
- inputs: [],
48
- name: "creditFacade",
49
- outputs: [
50
- {
51
- internalType: "address",
52
- name: "",
53
- type: "address",
54
- },
55
- ],
56
- stateMutability: "view",
57
- type: "function",
58
- },
59
46
  {
60
47
  inputs: [],
61
48
  name: "creditManager",
@@ -340,19 +340,6 @@ var _abi = [
340
340
  stateMutability: "view",
341
341
  type: "function",
342
342
  },
343
- {
344
- inputs: [],
345
- name: "creditFacade",
346
- outputs: [
347
- {
348
- internalType: "address",
349
- name: "",
350
- type: "address",
351
- },
352
- ],
353
- stateMutability: "view",
354
- type: "function",
355
- },
356
343
  {
357
344
  inputs: [],
358
345
  name: "creditManager",
@@ -382,19 +382,6 @@ var _abi = [
382
382
  stateMutability: "view",
383
383
  type: "function",
384
384
  },
385
- {
386
- inputs: [],
387
- name: "creditFacade",
388
- outputs: [
389
- {
390
- internalType: "address",
391
- name: "",
392
- type: "address",
393
- },
394
- ],
395
- stateMutability: "view",
396
- type: "function",
397
- },
398
385
  {
399
386
  inputs: [],
400
387
  name: "creditManager",
@@ -382,19 +382,6 @@ var _abi = [
382
382
  stateMutability: "view",
383
383
  type: "function",
384
384
  },
385
- {
386
- inputs: [],
387
- name: "creditFacade",
388
- outputs: [
389
- {
390
- internalType: "address",
391
- name: "",
392
- type: "address",
393
- },
394
- ],
395
- stateMutability: "view",
396
- type: "function",
397
- },
398
385
  {
399
386
  inputs: [],
400
387
  name: "creditManager",
@@ -382,19 +382,6 @@ var _abi = [
382
382
  stateMutability: "view",
383
383
  type: "function",
384
384
  },
385
- {
386
- inputs: [],
387
- name: "creditFacade",
388
- outputs: [
389
- {
390
- internalType: "address",
391
- name: "",
392
- type: "address",
393
- },
394
- ],
395
- stateMutability: "view",
396
- type: "function",
397
- },
398
385
  {
399
386
  inputs: [],
400
387
  name: "creditManager",
@@ -104,19 +104,6 @@ var _abi = [
104
104
  stateMutability: "view",
105
105
  type: "function",
106
106
  },
107
- {
108
- inputs: [],
109
- name: "creditFacade",
110
- outputs: [
111
- {
112
- internalType: "address",
113
- name: "",
114
- type: "address",
115
- },
116
- ],
117
- stateMutability: "view",
118
- type: "function",
119
- },
120
107
  {
121
108
  inputs: [],
122
109
  name: "creditManager",
@@ -86,19 +86,6 @@ var _abi = [
86
86
  stateMutability: "view",
87
87
  type: "function",
88
88
  },
89
- {
90
- inputs: [],
91
- name: "creditFacade",
92
- outputs: [
93
- {
94
- internalType: "address",
95
- name: "",
96
- type: "address",
97
- },
98
- ],
99
- stateMutability: "view",
100
- type: "function",
101
- },
102
89
  {
103
90
  inputs: [],
104
91
  name: "creditManager",
@@ -0,0 +1,22 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IUniswapPathChecker, IUniswapPathCheckerInterface } from "../../../../../../@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapPathChecker";
4
+ export declare class IUniswapPathChecker__factory {
5
+ static readonly abi: {
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ name: string;
12
+ outputs: {
13
+ internalType: string;
14
+ name: string;
15
+ type: string;
16
+ }[];
17
+ stateMutability: string;
18
+ type: string;
19
+ }[];
20
+ static createInterface(): IUniswapPathCheckerInterface;
21
+ static connect(address: string, signerOrProvider: Signer | Provider): IUniswapPathChecker;
22
+ }
@@ -0,0 +1,99 @@
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.IUniswapPathChecker__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "token",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "isConnector",
18
+ outputs: [
19
+ {
20
+ internalType: "bool",
21
+ name: "",
22
+ type: "bool",
23
+ },
24
+ ],
25
+ stateMutability: "view",
26
+ type: "function",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address[]",
32
+ name: "path",
33
+ type: "address[]",
34
+ },
35
+ ],
36
+ name: "parseUniV2Path",
37
+ outputs: [
38
+ {
39
+ internalType: "bool",
40
+ name: "valid",
41
+ type: "bool",
42
+ },
43
+ {
44
+ internalType: "address",
45
+ name: "tokenIn",
46
+ type: "address",
47
+ },
48
+ {
49
+ internalType: "address",
50
+ name: "tokenOut",
51
+ type: "address",
52
+ },
53
+ ],
54
+ stateMutability: "view",
55
+ type: "function",
56
+ },
57
+ {
58
+ inputs: [
59
+ {
60
+ internalType: "bytes",
61
+ name: "path",
62
+ type: "bytes",
63
+ },
64
+ ],
65
+ name: "parseUniV3Path",
66
+ outputs: [
67
+ {
68
+ internalType: "bool",
69
+ name: "valid",
70
+ type: "bool",
71
+ },
72
+ {
73
+ internalType: "address",
74
+ name: "tokenIn",
75
+ type: "address",
76
+ },
77
+ {
78
+ internalType: "address",
79
+ name: "tokenOut",
80
+ type: "address",
81
+ },
82
+ ],
83
+ stateMutability: "view",
84
+ type: "function",
85
+ },
86
+ ];
87
+ var IUniswapPathChecker__factory = /** @class */ (function () {
88
+ function IUniswapPathChecker__factory() {
89
+ }
90
+ IUniswapPathChecker__factory.createInterface = function () {
91
+ return new ethers_1.utils.Interface(_abi);
92
+ };
93
+ IUniswapPathChecker__factory.connect = function (address, signerOrProvider) {
94
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
95
+ };
96
+ IUniswapPathChecker__factory.abi = _abi;
97
+ return IUniswapPathChecker__factory;
98
+ }());
99
+ exports.IUniswapPathChecker__factory = IUniswapPathChecker__factory;
@@ -0,0 +1,12 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IUniswapV2AdapterExceptions, IUniswapV2AdapterExceptionsInterface } from "../../../../../../../@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions";
4
+ export declare class IUniswapV2AdapterExceptions__factory {
5
+ static readonly abi: {
6
+ inputs: never[];
7
+ name: string;
8
+ type: string;
9
+ }[];
10
+ static createInterface(): IUniswapV2AdapterExceptionsInterface;
11
+ static connect(address: string, signerOrProvider: Signer | Provider): IUniswapV2AdapterExceptions;
12
+ }
@@ -0,0 +1,27 @@
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.IUniswapV2AdapterExceptions__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "InvalidPathException",
12
+ type: "error",
13
+ },
14
+ ];
15
+ var IUniswapV2AdapterExceptions__factory = /** @class */ (function () {
16
+ function IUniswapV2AdapterExceptions__factory() {
17
+ }
18
+ IUniswapV2AdapterExceptions__factory.createInterface = function () {
19
+ return new ethers_1.utils.Interface(_abi);
20
+ };
21
+ IUniswapV2AdapterExceptions__factory.connect = function (address, signerOrProvider) {
22
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
23
+ };
24
+ IUniswapV2AdapterExceptions__factory.abi = _abi;
25
+ return IUniswapV2AdapterExceptions__factory;
26
+ }());
27
+ exports.IUniswapV2AdapterExceptions__factory = IUniswapV2AdapterExceptions__factory;
@@ -1,6 +1,6 @@
1
1
  import { Signer } from "ethers";
2
2
  import type { Provider } from "@ethersproject/providers";
3
- import type { IUniswapV2Adapter, IUniswapV2AdapterInterface } from "../../../../../../@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter";
3
+ import type { IUniswapV2Adapter, IUniswapV2AdapterInterface } from "../../../../../../../@gearbox-protocol/integrations-v2/contracts/interfaces/uniswap/IUniswapV2Adapter.sol/IUniswapV2Adapter";
4
4
  export declare class IUniswapV2Adapter__factory {
5
5
  static readonly abi: ({
6
6
  inputs: {
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IUniswapV2Adapter__factory = void 0;
7
7
  var ethers_1 = require("ethers");
8
8
  var _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "InvalidPathException",
12
+ type: "error",
13
+ },
9
14
  {
10
15
  inputs: [
11
16
  {
@@ -174,19 +179,6 @@ var _abi = [
174
179
  stateMutability: "payable",
175
180
  type: "function",
176
181
  },
177
- {
178
- inputs: [],
179
- name: "creditFacade",
180
- outputs: [
181
- {
182
- internalType: "address",
183
- name: "",
184
- type: "address",
185
- },
186
- ],
187
- stateMutability: "view",
188
- type: "function",
189
- },
190
182
  {
191
183
  inputs: [],
192
184
  name: "creditManager",
@@ -0,0 +1,2 @@
1
+ export { IUniswapV2Adapter__factory } from "./IUniswapV2Adapter__factory";
2
+ export { IUniswapV2AdapterExceptions__factory } from "./IUniswapV2AdapterExceptions__factory";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IUniswapV2AdapterExceptions__factory = exports.IUniswapV2Adapter__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IUniswapV2Adapter__factory_1 = require("./IUniswapV2Adapter__factory");
8
+ Object.defineProperty(exports, "IUniswapV2Adapter__factory", { enumerable: true, get: function () { return IUniswapV2Adapter__factory_1.IUniswapV2Adapter__factory; } });
9
+ var IUniswapV2AdapterExceptions__factory_1 = require("./IUniswapV2AdapterExceptions__factory");
10
+ Object.defineProperty(exports, "IUniswapV2AdapterExceptions__factory", { enumerable: true, get: function () { return IUniswapV2AdapterExceptions__factory_1.IUniswapV2AdapterExceptions__factory; } });
@@ -8,7 +8,7 @@ var ethers_1 = require("ethers");
8
8
  var _abi = [
9
9
  {
10
10
  inputs: [],
11
- name: "IncorrectPathLengthException",
11
+ name: "InvalidPathException",
12
12
  type: "error",
13
13
  },
14
14
  ];
@@ -8,7 +8,7 @@ var ethers_1 = require("ethers");
8
8
  var _abi = [
9
9
  {
10
10
  inputs: [],
11
- name: "IncorrectPathLengthException",
11
+ name: "InvalidPathException",
12
12
  type: "error",
13
13
  },
14
14
  {
@@ -48,19 +48,6 @@ var _abi = [
48
48
  stateMutability: "pure",
49
49
  type: "function",
50
50
  },
51
- {
52
- inputs: [],
53
- name: "creditFacade",
54
- outputs: [
55
- {
56
- internalType: "address",
57
- name: "",
58
- type: "address",
59
- },
60
- ],
61
- stateMutability: "view",
62
- type: "function",
63
- },
64
51
  {
65
52
  inputs: [],
66
53
  name: "creditManager",
@@ -1,2 +1,3 @@
1
+ export * as iUniswapV2AdapterSol from "./IUniswapV2Adapter.sol";
1
2
  export * as iUniswapV3AdapterSol from "./IUniswapV3Adapter.sol";
2
- export { IUniswapV2Adapter__factory } from "./IUniswapV2Adapter__factory";
3
+ export { IUniswapPathChecker__factory } from "./IUniswapPathChecker__factory";
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.IUniswapV2Adapter__factory = exports.iUniswapV3AdapterSol = void 0;
26
+ exports.IUniswapPathChecker__factory = exports.iUniswapV3AdapterSol = exports.iUniswapV2AdapterSol = void 0;
27
27
  /* Autogenerated file. Do not edit manually. */
28
28
  /* tslint:disable */
29
29
  /* eslint-disable */
30
+ exports.iUniswapV2AdapterSol = __importStar(require("./IUniswapV2Adapter.sol"));
30
31
  exports.iUniswapV3AdapterSol = __importStar(require("./IUniswapV3Adapter.sol"));
31
- var IUniswapV2Adapter__factory_1 = require("./IUniswapV2Adapter__factory");
32
- Object.defineProperty(exports, "IUniswapV2Adapter__factory", { enumerable: true, get: function () { return IUniswapV2Adapter__factory_1.IUniswapV2Adapter__factory; } });
32
+ var IUniswapPathChecker__factory_1 = require("./IUniswapPathChecker__factory");
33
+ Object.defineProperty(exports, "IUniswapPathChecker__factory", { enumerable: true, get: function () { return IUniswapPathChecker__factory_1.IUniswapPathChecker__factory; } });
@@ -160,19 +160,6 @@ var _abi = [
160
160
  stateMutability: "view",
161
161
  type: "function",
162
162
  },
163
- {
164
- inputs: [],
165
- name: "creditFacade",
166
- outputs: [
167
- {
168
- internalType: "address",
169
- name: "",
170
- type: "address",
171
- },
172
- ],
173
- stateMutability: "view",
174
- type: "function",
175
- },
176
163
  {
177
164
  inputs: [],
178
165
  name: "creditManager",
@@ -0,0 +1,22 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IGnosisSafeSignatureValidator, IGnosisSafeSignatureValidatorInterface } from "../../contracts/IGnosisSafeSignatureValidator";
4
+ export declare class IGnosisSafeSignatureValidator__factory {
5
+ static readonly abi: {
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ name: string;
12
+ outputs: {
13
+ internalType: string;
14
+ name: string;
15
+ type: string;
16
+ }[];
17
+ stateMutability: string;
18
+ type: string;
19
+ }[];
20
+ static createInterface(): IGnosisSafeSignatureValidatorInterface;
21
+ static connect(address: string, signerOrProvider: Signer | Provider): IGnosisSafeSignatureValidator;
22
+ }
@@ -0,0 +1,46 @@
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.IGnosisSafeSignatureValidator__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "bytes",
13
+ name: "_data",
14
+ type: "bytes",
15
+ },
16
+ {
17
+ internalType: "bytes",
18
+ name: "_signature",
19
+ type: "bytes",
20
+ },
21
+ ],
22
+ name: "isValidSignature",
23
+ outputs: [
24
+ {
25
+ internalType: "bytes4",
26
+ name: "",
27
+ type: "bytes4",
28
+ },
29
+ ],
30
+ stateMutability: "view",
31
+ type: "function",
32
+ },
33
+ ];
34
+ var IGnosisSafeSignatureValidator__factory = /** @class */ (function () {
35
+ function IGnosisSafeSignatureValidator__factory() {
36
+ }
37
+ IGnosisSafeSignatureValidator__factory.createInterface = function () {
38
+ return new ethers_1.utils.Interface(_abi);
39
+ };
40
+ IGnosisSafeSignatureValidator__factory.connect = function (address, signerOrProvider) {
41
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
42
+ };
43
+ IGnosisSafeSignatureValidator__factory.abi = _abi;
44
+ return IGnosisSafeSignatureValidator__factory;
45
+ }());
46
+ exports.IGnosisSafeSignatureValidator__factory = IGnosisSafeSignatureValidator__factory;
@@ -1,3 +1,4 @@
1
1
  export * as iTokenDistributorSol from "./ITokenDistributor.sol";
2
- export * as multiCallSol from "./MultiCall.sol";
2
+ export * as support from "./support";
3
3
  export { IGas__factory } from "./IGas__factory";
4
+ export { IGnosisSafeSignatureValidator__factory } from "./IGnosisSafeSignatureValidator__factory";
@@ -23,11 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.IGas__factory = exports.multiCallSol = exports.iTokenDistributorSol = void 0;
26
+ exports.IGnosisSafeSignatureValidator__factory = exports.IGas__factory = exports.support = exports.iTokenDistributorSol = void 0;
27
27
  /* Autogenerated file. Do not edit manually. */
28
28
  /* tslint:disable */
29
29
  /* eslint-disable */
30
30
  exports.iTokenDistributorSol = __importStar(require("./ITokenDistributor.sol"));
31
- exports.multiCallSol = __importStar(require("./MultiCall.sol"));
31
+ exports.support = __importStar(require("./support"));
32
32
  var IGas__factory_1 = require("./IGas__factory");
33
33
  Object.defineProperty(exports, "IGas__factory", { enumerable: true, get: function () { return IGas__factory_1.IGas__factory; } });
34
+ var IGnosisSafeSignatureValidator__factory_1 = require("./IGnosisSafeSignatureValidator__factory");
35
+ Object.defineProperty(exports, "IGnosisSafeSignatureValidator__factory", { enumerable: true, get: function () { return IGnosisSafeSignatureValidator__factory_1.IGnosisSafeSignatureValidator__factory; } });
@@ -1,6 +1,6 @@
1
1
  import { Signer, ContractFactory, Overrides } from "ethers";
2
2
  import type { Provider, TransactionRequest } from "@ethersproject/providers";
3
- import type { Multicall2, Multicall2Interface } from "../../../contracts/MultiCall.sol/Multicall2";
3
+ import type { Multicall2, Multicall2Interface } from "../../../../contracts/support/MultiCall.sol/Multicall2";
4
4
  declare type Multicall2ConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
5
5
  export declare class Multicall2__factory extends ContractFactory {
6
6
  constructor(...args: Multicall2ConstructorParams);
@@ -12,7 +12,7 @@ export declare class Multicall2__factory extends ContractFactory {
12
12
  }): TransactionRequest;
13
13
  attach(address: string): Multicall2;
14
14
  connect(signer: Signer): Multicall2__factory;
15
- static readonly bytecode = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea26469706673582212203437759157f9685592dd19b2bcb03324914eebaf1a1bf76e588f72f60c8d8d7c64736f6c634300080a0033";
15
+ static readonly bytecode = "0x608060405234801561001057600080fd5b50610b51806100206000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806372425d9d11610081578063bce38bd71161005b578063bce38bd714610181578063c3077fa9146101a1578063ee82ac5e146101b457600080fd5b806372425d9d1461016757806386d516e81461016d578063a8b0574e1461017357600080fd5b8063399542e9116100b2578063399542e91461011757806342cbb15c146101395780634d2301cc1461013f57600080fd5b80630f28c97d146100d9578063252dba42146100ee57806327e86d6e1461010f575b600080fd5b425b6040519081526020015b60405180910390f35b6101016100fc3660046107df565b6101c6565b6040516100e5929190610896565b6100db610373565b61012a61012536600461091e565b610386565b6040516100e5939291906109db565b436100db565b6100db61014d366004610a03565b73ffffffffffffffffffffffffffffffffffffffff163190565b446100db565b456100db565b6040514181526020016100e5565b61019461018f36600461091e565b61039e565b6040516100e59190610a25565b61012a6101af3660046107df565b610599565b6100db6101c2366004610a38565b4090565b8051439060609067ffffffffffffffff8111156101e5576101e56105b6565b60405190808252806020026020018201604052801561021857816020015b60608152602001906001900390816102035790505b50905060005b835181101561036d5760008085838151811061023c5761023c610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1686848151811061027057610270610a51565b6020026020010151602001516040516102899190610a80565b6000604051808303816000865af19150503d80600081146102c6576040519150601f19603f3d011682016040523d82523d6000602084013e6102cb565b606091505b50915091508161033c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4d756c746963616c6c206167677265676174653a2063616c6c206661696c656460448201526064015b60405180910390fd5b8084848151811061034f5761034f610a51565b602002602001018190525050508061036690610acb565b905061021e565b50915091565b6000610380600143610b04565b40905090565b4380406060610395858561039e565b90509250925092565b6060815167ffffffffffffffff8111156103ba576103ba6105b6565b60405190808252806020026020018201604052801561040057816020015b6040805180820190915260008152606060208201528152602001906001900390816103d85790505b50905060005b82518110156105925760008084838151811061042457610424610a51565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1685848151811061045857610458610a51565b6020026020010151602001516040516104719190610a80565b6000604051808303816000865af19150503d80600081146104ae576040519150601f19603f3d011682016040523d82523d6000602084013e6104b3565b606091505b5091509150851561054b578161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4d756c746963616c6c32206167677265676174653a2063616c6c206661696c6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610333565b604051806040016040528083151581526020018281525084848151811061057457610574610a51565b602002602001018190525050508061058b90610acb565b9050610406565b5092915050565b60008060606105a9600185610386565b9196909550909350915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715610608576106086105b6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610655576106556105b6565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461068157600080fd5b919050565b6000601f838184011261069857600080fd5b8235602067ffffffffffffffff808311156106b5576106b56105b6565b8260051b6106c483820161060e565b93845286810183019383810190898611156106de57600080fd5b84890192505b858310156107d2578235848111156106fc5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156107335760008081fd5b61073b6105e5565b61074689850161065d565b8152828401358881111561075a5760008081fd5b8085019450508d603f8501126107705760008081fd5b8884013588811115610784576107846105b6565b6107938a848e8401160161060e565b92508083528e848287010111156107aa5760008081fd5b808486018b85013760009083018a0152808901919091528452505091840191908401906106e4565b9998505050505050505050565b6000602082840312156107f157600080fd5b813567ffffffffffffffff81111561080857600080fd5b61081484828501610686565b949350505050565b60005b8381101561083757818101518382015260200161081f565b83811115610846576000848401525b50505050565b6000815180845261086481602086016020860161081c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610910577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184526108fe86835161084c565b955092840192908401906001016108c4565b509398975050505050505050565b6000806040838503121561093157600080fd5b8235801515811461094157600080fd5b9150602083013567ffffffffffffffff81111561095d57600080fd5b61096985828601610686565b9150509250929050565b6000815180845260208085019450848260051b860182860160005b858110156109ce578383038952815180511515845285015160408685018190526109ba8186018361084c565b9a87019a945050509084019060010161098e565b5090979650505050505050565b8381528260208201526060604082015260006109fa6060830184610973565b95945050505050565b600060208284031215610a1557600080fd5b610a1e8261065d565b9392505050565b602081526000610a1e6020830184610973565b600060208284031215610a4a57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008251610a9281846020870161081c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610afd57610afd610a9c565b5060010190565b600082821015610b1657610b16610a9c565b50039056fea264697066735822122092d61a9709ff595b49607930e3d51d9c38e79d27aa8d99be52568187de248c6264736f6c634300080a0033";
16
16
  static readonly abi: {
17
17
  inputs: ({
18
18
  internalType: string;