@gearbox-protocol/sdk 1.18.3 → 1.18.4

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 (44) hide show
  1. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +0 -2
  2. package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributor.d.ts +198 -0
  3. package/lib/types/{@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.js → contracts/ITokenDistributor.sol/ITokenDistributor.js} +0 -0
  4. package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorEvents.d.ts +86 -0
  5. package/lib/types/{@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.js → contracts/ITokenDistributor.sol/ITokenDistributorEvents.js} +0 -0
  6. package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorExceptions.d.ts +27 -0
  7. package/lib/types/contracts/{support/IOffchainOracle.js → ITokenDistributor.sol/ITokenDistributorExceptions.js} +0 -0
  8. package/lib/types/contracts/ITokenDistributor.sol/index.d.ts +3 -0
  9. package/lib/types/contracts/{support/MultiCall.sol → ITokenDistributor.sol}/index.js +0 -0
  10. package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2.d.ts +1 -1
  11. package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2.js +0 -0
  12. package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/index.d.ts +0 -0
  13. package/lib/types/contracts/{support → MultiCall.sol}/index.js +0 -0
  14. package/lib/types/contracts/index.d.ts +4 -2
  15. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +0 -2
  16. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +1 -5
  17. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.d.ts +18 -0
  18. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js +110 -0
  19. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.d.ts +16 -0
  20. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js +64 -0
  21. package/lib/types/factories/{@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.d.ts → contracts/ITokenDistributor.sol/ITokenDistributor__factory.d.ts} +15 -4
  22. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributor__factory.js +297 -0
  23. package/lib/types/factories/contracts/ITokenDistributor.sol/index.d.ts +3 -0
  24. package/lib/types/factories/contracts/ITokenDistributor.sol/index.js +12 -0
  25. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2__factory.d.ts +2 -2
  26. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2__factory.js +1 -1
  27. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/index.d.ts +0 -0
  28. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/index.js +0 -0
  29. package/lib/types/factories/contracts/index.d.ts +2 -1
  30. package/lib/types/factories/contracts/index.js +3 -2
  31. package/lib/types/index.d.ts +8 -8
  32. package/lib/types/index.js +8 -8
  33. package/package.json +1 -1
  34. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +0 -106
  35. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +0 -218
  36. package/lib/types/contracts/support/IOffchainOracle.d.ts +0 -54
  37. package/lib/types/contracts/support/index.d.ts +0 -3
  38. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +0 -149
  39. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.d.ts +0 -35
  40. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +0 -260
  41. package/lib/types/factories/contracts/support/IOffchainOracle__factory.d.ts +0 -22
  42. package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +0 -75
  43. package/lib/types/factories/contracts/support/index.d.ts +0 -2
  44. package/lib/types/factories/contracts/support/index.js +0 -32
@@ -1,260 +0,0 @@
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.AggregatorV2V3Interface__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- anonymous: false,
11
- inputs: [
12
- {
13
- indexed: true,
14
- internalType: "int256",
15
- name: "current",
16
- type: "int256",
17
- },
18
- {
19
- indexed: true,
20
- internalType: "uint256",
21
- name: "roundId",
22
- type: "uint256",
23
- },
24
- {
25
- indexed: false,
26
- internalType: "uint256",
27
- name: "updatedAt",
28
- type: "uint256",
29
- },
30
- ],
31
- name: "AnswerUpdated",
32
- type: "event",
33
- },
34
- {
35
- anonymous: false,
36
- inputs: [
37
- {
38
- indexed: true,
39
- internalType: "uint256",
40
- name: "roundId",
41
- type: "uint256",
42
- },
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "startedBy",
47
- type: "address",
48
- },
49
- {
50
- indexed: false,
51
- internalType: "uint256",
52
- name: "startedAt",
53
- type: "uint256",
54
- },
55
- ],
56
- name: "NewRound",
57
- type: "event",
58
- },
59
- {
60
- inputs: [],
61
- name: "decimals",
62
- outputs: [
63
- {
64
- internalType: "uint8",
65
- name: "",
66
- type: "uint8",
67
- },
68
- ],
69
- stateMutability: "view",
70
- type: "function",
71
- },
72
- {
73
- inputs: [],
74
- name: "description",
75
- outputs: [
76
- {
77
- internalType: "string",
78
- name: "",
79
- type: "string",
80
- },
81
- ],
82
- stateMutability: "view",
83
- type: "function",
84
- },
85
- {
86
- inputs: [
87
- {
88
- internalType: "uint256",
89
- name: "roundId",
90
- type: "uint256",
91
- },
92
- ],
93
- name: "getAnswer",
94
- outputs: [
95
- {
96
- internalType: "int256",
97
- name: "",
98
- type: "int256",
99
- },
100
- ],
101
- stateMutability: "view",
102
- type: "function",
103
- },
104
- {
105
- inputs: [
106
- {
107
- internalType: "uint80",
108
- name: "_roundId",
109
- type: "uint80",
110
- },
111
- ],
112
- name: "getRoundData",
113
- outputs: [
114
- {
115
- internalType: "uint80",
116
- name: "roundId",
117
- type: "uint80",
118
- },
119
- {
120
- internalType: "int256",
121
- name: "answer",
122
- type: "int256",
123
- },
124
- {
125
- internalType: "uint256",
126
- name: "startedAt",
127
- type: "uint256",
128
- },
129
- {
130
- internalType: "uint256",
131
- name: "updatedAt",
132
- type: "uint256",
133
- },
134
- {
135
- internalType: "uint80",
136
- name: "answeredInRound",
137
- type: "uint80",
138
- },
139
- ],
140
- stateMutability: "view",
141
- type: "function",
142
- },
143
- {
144
- inputs: [
145
- {
146
- internalType: "uint256",
147
- name: "roundId",
148
- type: "uint256",
149
- },
150
- ],
151
- name: "getTimestamp",
152
- outputs: [
153
- {
154
- internalType: "uint256",
155
- name: "",
156
- type: "uint256",
157
- },
158
- ],
159
- stateMutability: "view",
160
- type: "function",
161
- },
162
- {
163
- inputs: [],
164
- name: "latestAnswer",
165
- outputs: [
166
- {
167
- internalType: "int256",
168
- name: "",
169
- type: "int256",
170
- },
171
- ],
172
- stateMutability: "view",
173
- type: "function",
174
- },
175
- {
176
- inputs: [],
177
- name: "latestRound",
178
- outputs: [
179
- {
180
- internalType: "uint256",
181
- name: "",
182
- type: "uint256",
183
- },
184
- ],
185
- stateMutability: "view",
186
- type: "function",
187
- },
188
- {
189
- inputs: [],
190
- name: "latestRoundData",
191
- outputs: [
192
- {
193
- internalType: "uint80",
194
- name: "roundId",
195
- type: "uint80",
196
- },
197
- {
198
- internalType: "int256",
199
- name: "answer",
200
- type: "int256",
201
- },
202
- {
203
- internalType: "uint256",
204
- name: "startedAt",
205
- type: "uint256",
206
- },
207
- {
208
- internalType: "uint256",
209
- name: "updatedAt",
210
- type: "uint256",
211
- },
212
- {
213
- internalType: "uint80",
214
- name: "answeredInRound",
215
- type: "uint80",
216
- },
217
- ],
218
- stateMutability: "view",
219
- type: "function",
220
- },
221
- {
222
- inputs: [],
223
- name: "latestTimestamp",
224
- outputs: [
225
- {
226
- internalType: "uint256",
227
- name: "",
228
- type: "uint256",
229
- },
230
- ],
231
- stateMutability: "view",
232
- type: "function",
233
- },
234
- {
235
- inputs: [],
236
- name: "version",
237
- outputs: [
238
- {
239
- internalType: "uint256",
240
- name: "",
241
- type: "uint256",
242
- },
243
- ],
244
- stateMutability: "view",
245
- type: "function",
246
- },
247
- ];
248
- var AggregatorV2V3Interface__factory = /** @class */ (function () {
249
- function AggregatorV2V3Interface__factory() {
250
- }
251
- AggregatorV2V3Interface__factory.createInterface = function () {
252
- return new ethers_1.utils.Interface(_abi);
253
- };
254
- AggregatorV2V3Interface__factory.connect = function (address, signerOrProvider) {
255
- return new ethers_1.Contract(address, _abi, signerOrProvider);
256
- };
257
- AggregatorV2V3Interface__factory.abi = _abi;
258
- return AggregatorV2V3Interface__factory;
259
- }());
260
- exports.AggregatorV2V3Interface__factory = AggregatorV2V3Interface__factory;
@@ -1,22 +0,0 @@
1
- import { Signer } from "ethers";
2
- import type { Provider } from "@ethersproject/providers";
3
- import type { IOffchainOracle, IOffchainOracleInterface } from "../../../contracts/support/IOffchainOracle";
4
- export declare class IOffchainOracle__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(): IOffchainOracleInterface;
21
- static connect(address: string, signerOrProvider: Signer | Provider): IOffchainOracle;
22
- }
@@ -1,75 +0,0 @@
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.IOffchainOracle__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [
11
- {
12
- internalType: "address",
13
- name: "srcToken",
14
- type: "address",
15
- },
16
- {
17
- internalType: "address",
18
- name: "dstToken",
19
- type: "address",
20
- },
21
- {
22
- internalType: "bool",
23
- name: "useWrappers",
24
- type: "bool",
25
- },
26
- ],
27
- name: "getRate",
28
- outputs: [
29
- {
30
- internalType: "uint256",
31
- name: "weightedRate",
32
- type: "uint256",
33
- },
34
- ],
35
- stateMutability: "view",
36
- type: "function",
37
- },
38
- {
39
- inputs: [
40
- {
41
- internalType: "address",
42
- name: "srcToken",
43
- type: "address",
44
- },
45
- {
46
- internalType: "bool",
47
- name: "useSrcWrappers",
48
- type: "bool",
49
- },
50
- ],
51
- name: "getRateToEth",
52
- outputs: [
53
- {
54
- internalType: "uint256",
55
- name: "weightedRate",
56
- type: "uint256",
57
- },
58
- ],
59
- stateMutability: "view",
60
- type: "function",
61
- },
62
- ];
63
- var IOffchainOracle__factory = /** @class */ (function () {
64
- function IOffchainOracle__factory() {
65
- }
66
- IOffchainOracle__factory.createInterface = function () {
67
- return new ethers_1.utils.Interface(_abi);
68
- };
69
- IOffchainOracle__factory.connect = function (address, signerOrProvider) {
70
- return new ethers_1.Contract(address, _abi, signerOrProvider);
71
- };
72
- IOffchainOracle__factory.abi = _abi;
73
- return IOffchainOracle__factory;
74
- }());
75
- exports.IOffchainOracle__factory = IOffchainOracle__factory;
@@ -1,2 +0,0 @@
1
- export * as multiCallSol from "./MultiCall.sol";
2
- export { IOffchainOracle__factory } from "./IOffchainOracle__factory";
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.IOffchainOracle__factory = exports.multiCallSol = void 0;
27
- /* Autogenerated file. Do not edit manually. */
28
- /* tslint:disable */
29
- /* eslint-disable */
30
- exports.multiCallSol = __importStar(require("./MultiCall.sol"));
31
- var IOffchainOracle__factory_1 = require("./IOffchainOracle__factory");
32
- Object.defineProperty(exports, "IOffchainOracle__factory", { enumerable: true, get: function () { return IOffchainOracle__factory_1.IOffchainOracle__factory; } });