@gearbox-protocol/sdk 1.16.15 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/eventOrTx.d.ts +1 -1
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +106 -0
- package/lib/types/{contracts/MultiCall.sol/Multicall2.js → @chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.js} +0 -0
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +218 -0
- package/lib/types/{contracts/MultiCall.sol/index.js → @chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.js} +0 -0
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/index.js +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite.d.ts +148 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite.js +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts.d.ts +66 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/index.d.ts +4 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents.d.ts +45 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.js +2 -0
- package/lib/types/contracts/index.d.ts +2 -2
- package/lib/types/contracts/support/IOffchainOracle.d.ts +54 -0
- package/lib/types/contracts/support/IOffchainOracle.js +2 -0
- package/lib/types/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2.d.ts +1 -1
- package/lib/types/contracts/support/MultiCall.sol/Multicall2.js +2 -0
- package/lib/types/contracts/{MultiCall.sol → support/MultiCall.sol}/index.d.ts +0 -0
- package/lib/types/contracts/support/MultiCall.sol/index.js +2 -0
- package/lib/types/contracts/support/index.d.ts +3 -0
- package/lib/types/contracts/support/index.js +2 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.d.ts +35 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +149 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.d.ts +35 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +260 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +2 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +5 -1
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/index.js +2 -1
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/index.js +30 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.d.ts +22 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.js +181 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/index.js +2 -1
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.d.ts +22 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.js +92 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/index.js +30 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/index.d.ts +2 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/index.js +31 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.js +30 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.d.ts +18 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.js +47 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.js +30 -0
- package/lib/types/factories/contracts/index.d.ts +1 -1
- package/lib/types/factories/contracts/index.js +2 -2
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.d.ts +22 -0
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +75 -0
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2__factory.d.ts +2 -2
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2__factory.js +1 -1
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/index.d.ts +0 -0
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/index.js +0 -0
- package/lib/types/factories/contracts/support/index.d.ts +2 -0
- package/lib/types/factories/contracts/support/index.js +32 -0
- package/lib/types/index.d.ts +14 -2
- package/lib/types/index.js +15 -3
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as interfaces from "./interfaces";
|
|
@@ -0,0 +1,30 @@
|
|
|
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.interfaces = void 0;
|
|
27
|
+
/* Autogenerated file. Do not edit manually. */
|
|
28
|
+
/* tslint:disable */
|
|
29
|
+
/* eslint-disable */
|
|
30
|
+
exports.interfaces = __importStar(require("./interfaces"));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ITokenTestSuite, ITokenTestSuiteInterface } from "../../../../../../@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite";
|
|
4
|
+
export declare class ITokenTestSuite__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(): ITokenTestSuiteInterface;
|
|
21
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ITokenTestSuite;
|
|
22
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
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.ITokenTestSuite__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
|
+
internalType: "address",
|
|
18
|
+
name: "holder",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "targetContract",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "amount",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "approve",
|
|
33
|
+
outputs: [],
|
|
34
|
+
stateMutability: "nonpayable",
|
|
35
|
+
type: "function",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
inputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "token",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "holder",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "targetContract",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "approve",
|
|
56
|
+
outputs: [],
|
|
57
|
+
stateMutability: "nonpayable",
|
|
58
|
+
type: "function",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "token",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "holder",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
name: "balanceOf",
|
|
74
|
+
outputs: [
|
|
75
|
+
{
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "balance",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
stateMutability: "view",
|
|
82
|
+
type: "function",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "address",
|
|
88
|
+
name: "token",
|
|
89
|
+
type: "address",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "from",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "amount",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
name: "burn",
|
|
103
|
+
outputs: [],
|
|
104
|
+
stateMutability: "nonpayable",
|
|
105
|
+
type: "function",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
inputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "address",
|
|
111
|
+
name: "token",
|
|
112
|
+
type: "address",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
internalType: "address",
|
|
116
|
+
name: "to",
|
|
117
|
+
type: "address",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
internalType: "uint256",
|
|
121
|
+
name: "amount",
|
|
122
|
+
type: "uint256",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "mint",
|
|
126
|
+
outputs: [],
|
|
127
|
+
stateMutability: "nonpayable",
|
|
128
|
+
type: "function",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
inputs: [],
|
|
132
|
+
name: "topUpWETH",
|
|
133
|
+
outputs: [],
|
|
134
|
+
stateMutability: "payable",
|
|
135
|
+
type: "function",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
inputs: [
|
|
139
|
+
{
|
|
140
|
+
internalType: "address",
|
|
141
|
+
name: "onBehalfOf",
|
|
142
|
+
type: "address",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
internalType: "uint256",
|
|
146
|
+
name: "value",
|
|
147
|
+
type: "uint256",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
name: "topUpWETH",
|
|
151
|
+
outputs: [],
|
|
152
|
+
stateMutability: "nonpayable",
|
|
153
|
+
type: "function",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [],
|
|
157
|
+
name: "wethToken",
|
|
158
|
+
outputs: [
|
|
159
|
+
{
|
|
160
|
+
internalType: "address",
|
|
161
|
+
name: "",
|
|
162
|
+
type: "address",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
stateMutability: "view",
|
|
166
|
+
type: "function",
|
|
167
|
+
},
|
|
168
|
+
];
|
|
169
|
+
var ITokenTestSuite__factory = /** @class */ (function () {
|
|
170
|
+
function ITokenTestSuite__factory() {
|
|
171
|
+
}
|
|
172
|
+
ITokenTestSuite__factory.createInterface = function () {
|
|
173
|
+
return new ethers_1.utils.Interface(_abi);
|
|
174
|
+
};
|
|
175
|
+
ITokenTestSuite__factory.connect = function (address, signerOrProvider) {
|
|
176
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
177
|
+
};
|
|
178
|
+
ITokenTestSuite__factory.abi = _abi;
|
|
179
|
+
return ITokenTestSuite__factory;
|
|
180
|
+
}());
|
|
181
|
+
exports.ITokenTestSuite__factory = ITokenTestSuite__factory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ITokenTestSuite__factory } from "./ITokenTestSuite__factory";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ITokenTestSuite__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var ITokenTestSuite__factory_1 = require("./ITokenTestSuite__factory");
|
|
8
|
+
Object.defineProperty(exports, "ITokenTestSuite__factory", { enumerable: true, get: function () { return ITokenTestSuite__factory_1.ITokenTestSuite__factory; } });
|
|
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.interfaces = exports.integrations = void 0;
|
|
26
|
+
exports.test = exports.interfaces = exports.integrations = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
30
30
|
exports.integrations = __importStar(require("./integrations"));
|
|
31
31
|
exports.interfaces = __importStar(require("./interfaces"));
|
|
32
|
+
exports.test = __importStar(require("./test"));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ISupportedContracts, ISupportedContractsInterface } from "../../../../../../../@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts";
|
|
4
|
+
export declare class ISupportedContracts__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(): ISupportedContractsInterface;
|
|
21
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ISupportedContracts;
|
|
22
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.ISupportedContracts__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "enum Contracts",
|
|
13
|
+
name: "c",
|
|
14
|
+
type: "uint8",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "addressOf",
|
|
18
|
+
outputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
stateMutability: "view",
|
|
26
|
+
type: "function",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: "contractCount",
|
|
31
|
+
outputs: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
stateMutability: "view",
|
|
39
|
+
type: "function",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
name: "contractIndex",
|
|
50
|
+
outputs: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "enum Contracts",
|
|
53
|
+
name: "",
|
|
54
|
+
type: "uint8",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
stateMutability: "view",
|
|
58
|
+
type: "function",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "enum Contracts",
|
|
64
|
+
name: "c",
|
|
65
|
+
type: "uint8",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: "nameOf",
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
internalType: "string",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "string",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
var ISupportedContracts__factory = /** @class */ (function () {
|
|
81
|
+
function ISupportedContracts__factory() {
|
|
82
|
+
}
|
|
83
|
+
ISupportedContracts__factory.createInterface = function () {
|
|
84
|
+
return new ethers_1.utils.Interface(_abi);
|
|
85
|
+
};
|
|
86
|
+
ISupportedContracts__factory.connect = function (address, signerOrProvider) {
|
|
87
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
88
|
+
};
|
|
89
|
+
ISupportedContracts__factory.abi = _abi;
|
|
90
|
+
return ISupportedContracts__factory;
|
|
91
|
+
}());
|
|
92
|
+
exports.ISupportedContracts__factory = ISupportedContracts__factory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ISupportedContracts__factory } from "./ISupportedContracts__factory";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ISupportedContracts__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var ISupportedContracts__factory_1 = require("./ISupportedContracts__factory");
|
|
8
|
+
Object.defineProperty(exports, "ISupportedContracts__factory", { enumerable: true, get: function () { return ISupportedContracts__factory_1.ISupportedContracts__factory; } });
|
package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as supportedContractsSol from "./SupportedContracts.sol";
|
|
@@ -0,0 +1,30 @@
|
|
|
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.supportedContractsSol = void 0;
|
|
27
|
+
/* Autogenerated file. Do not edit manually. */
|
|
28
|
+
/* tslint:disable */
|
|
29
|
+
/* eslint-disable */
|
|
30
|
+
exports.supportedContractsSol = __importStar(require("./SupportedContracts.sol"));
|
|
@@ -0,0 +1,31 @@
|
|
|
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.mocks = exports.config = void 0;
|
|
27
|
+
/* Autogenerated file. Do not edit manually. */
|
|
28
|
+
/* tslint:disable */
|
|
29
|
+
/* eslint-disable */
|
|
30
|
+
exports.config = __importStar(require("./config"));
|
|
31
|
+
exports.mocks = __importStar(require("./mocks"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as integrations from "./integrations";
|
|
@@ -0,0 +1,30 @@
|
|
|
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.integrations = void 0;
|
|
27
|
+
/* Autogenerated file. Do not edit manually. */
|
|
28
|
+
/* tslint:disable */
|
|
29
|
+
/* eslint-disable */
|
|
30
|
+
exports.integrations = __importStar(require("./integrations"));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ILidoMockEvents, ILidoMockEventsInterface } from "../../../../../../../../@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents";
|
|
4
|
+
export declare class ILidoMockEvents__factory {
|
|
5
|
+
static readonly abi: {
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}[];
|
|
16
|
+
static createInterface(): ILidoMockEventsInterface;
|
|
17
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ILidoMockEvents;
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ILidoMockEvents__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "sender",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: false,
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "amount",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "referral",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "Mock_Submitted",
|
|
32
|
+
type: "event",
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
var ILidoMockEvents__factory = /** @class */ (function () {
|
|
36
|
+
function ILidoMockEvents__factory() {
|
|
37
|
+
}
|
|
38
|
+
ILidoMockEvents__factory.createInterface = function () {
|
|
39
|
+
return new ethers_1.utils.Interface(_abi);
|
|
40
|
+
};
|
|
41
|
+
ILidoMockEvents__factory.connect = function (address, signerOrProvider) {
|
|
42
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
43
|
+
};
|
|
44
|
+
ILidoMockEvents__factory.abi = _abi;
|
|
45
|
+
return ILidoMockEvents__factory;
|
|
46
|
+
}());
|
|
47
|
+
exports.ILidoMockEvents__factory = ILidoMockEvents__factory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ILidoMockEvents__factory } from "./ILidoMockEvents__factory";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ILidoMockEvents__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var ILidoMockEvents__factory_1 = require("./ILidoMockEvents__factory");
|
|
8
|
+
Object.defineProperty(exports, "ILidoMockEvents__factory", { enumerable: true, get: function () { return ILidoMockEvents__factory_1.ILidoMockEvents__factory; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as lidoMockSol from "./LidoMock.sol";
|
|
@@ -0,0 +1,30 @@
|
|
|
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.lidoMockSol = void 0;
|
|
27
|
+
/* Autogenerated file. Do not edit manually. */
|
|
28
|
+
/* tslint:disable */
|
|
29
|
+
/* eslint-disable */
|
|
30
|
+
exports.lidoMockSol = __importStar(require("./LidoMock.sol"));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as support from "./support";
|
|
2
2
|
export { IGas__factory } from "./IGas__factory";
|
|
@@ -23,10 +23,10 @@ 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.
|
|
26
|
+
exports.IGas__factory = exports.support = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
exports.
|
|
30
|
+
exports.support = __importStar(require("./support"));
|
|
31
31
|
var IGas__factory_1 = require("./IGas__factory");
|
|
32
32
|
Object.defineProperty(exports, "IGas__factory", { enumerable: true, get: function () { return IGas__factory_1.IGas__factory; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|