@gearbox-protocol/sdk 3.0.0-next.17 → 3.0.0-next.19
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/apy/curveAPY.js +2 -1
- package/lib/core/creditAccount.d.ts +1 -0
- package/lib/core/creditAccount.js +6 -4
- package/lib/core/events.js +14 -14
- package/lib/core/trade.js +1 -2
- package/lib/core/transactions.js +12 -13
- package/lib/parsers/abstractParser.js +1 -2
- package/lib/parsers/curveAdapterParser.js +2 -3
- package/lib/parsers/uniV2AdapterParser.js +2 -2
- package/lib/parsers/uniV3AdapterParser.js +3 -3
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +19 -4
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +5 -5
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +4 -4
- package/lib/types/ICreditFacadeV3Multicall.d.ts +11 -11
- package/lib/types/IDaiLikePermit.d.ts +59 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +5 -40
- package/lib/types/IPermit2.d.ts +130 -0
- package/lib/types/IPermit2.js +2 -0
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +2 -2
- package/lib/types/IWERC20Zapper.d.ts +1 -1
- package/lib/types/IWETH.d.ts +197 -0
- package/lib/types/IWETH.js +2 -0
- package/lib/types/IWETHZapper.d.ts +1 -1
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts → SafeERC20.d.ts} +4 -4
- package/lib/types/SafeERC20.js +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js} +12 -6
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +16 -1
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +19 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +2 -2
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +2 -2
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +4 -4
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +4 -4
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +4 -4
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +4 -4
- package/lib/types/factories/IDaiLikePermit__factory.d.ts +46 -0
- package/lib/types/factories/IDaiLikePermit__factory.js +67 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +1 -35
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +0 -44
- package/lib/types/factories/IPermit2__factory.d.ts +113 -0
- package/lib/types/factories/IPermit2__factory.js +155 -0
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +4 -4
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +4 -4
- package/lib/types/factories/IWERC20Zapper__factory.d.ts +2 -2
- package/lib/types/factories/IWERC20Zapper__factory.js +2 -2
- package/lib/types/factories/IWETHZapper__factory.d.ts +2 -2
- package/lib/types/factories/IWETHZapper__factory.js +2 -2
- package/lib/types/factories/IWETH__factory.d.ts +194 -0
- package/lib/types/factories/IWETH__factory.js +260 -0
- package/lib/types/factories/SafeERC20__factory.d.ts +49 -0
- package/lib/types/factories/SafeERC20__factory.js +77 -0
- package/lib/types/factories/index.d.ts +6 -2
- package/lib/types/factories/index.js +13 -5
- package/lib/types/index.d.ts +16 -10
- package/lib/types/index.js +14 -8
- package/lib/utils/formatter.d.ts +0 -3
- package/lib/utils/formatter.js +1 -67
- package/lib/utils/types.d.ts +1 -0
- package/package.json +8 -7
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +0 -39
- package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts +0 -18
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +0 -24
- package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
- /package/lib/types/{IConvexV1BoosterAdapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol → IConvexV1BoosterAdapter.sol}/index.js +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → IDaiLikePermit.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → ILidoV1Adapter.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { BaseContract, Signer, utils } from "ethers";
|
|
2
2
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
3
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "
|
|
4
|
-
export interface
|
|
3
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
4
|
+
export interface SafeERC20Interface extends utils.Interface {
|
|
5
5
|
functions: {};
|
|
6
6
|
events: {};
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface SafeERC20 extends BaseContract {
|
|
9
9
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
10
10
|
attach(addressOrName: string): this;
|
|
11
11
|
deployed(): Promise<this>;
|
|
12
|
-
interface:
|
|
12
|
+
interface: SafeERC20Interface;
|
|
13
13
|
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
14
14
|
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
15
15
|
listeners(eventName?: string): Array<Listener>;
|
package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IConvexV1BoosterAdapterEvents, IConvexV1BoosterAdapterEventsInterface } from "../../IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents";
|
|
4
|
+
export declare class IConvexV1BoosterAdapterEvents__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "pid";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: true;
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly name: "phantomToken";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}];
|
|
18
|
+
readonly name: "SetPidToPhantomToken";
|
|
19
|
+
readonly type: "event";
|
|
20
|
+
}];
|
|
21
|
+
static createInterface(): IConvexV1BoosterAdapterEventsInterface;
|
|
22
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IConvexV1BoosterAdapterEvents;
|
|
23
|
+
}
|
|
@@ -3,24 +3,30 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.IConvexV1BoosterAdapterEvents__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
10
10
|
anonymous: false,
|
|
11
11
|
inputs: [
|
|
12
12
|
{
|
|
13
|
-
indexed:
|
|
13
|
+
indexed: true,
|
|
14
14
|
internalType: "uint256",
|
|
15
|
-
name: "
|
|
15
|
+
name: "pid",
|
|
16
16
|
type: "uint256",
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "phantomToken",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
18
24
|
],
|
|
19
|
-
name: "
|
|
25
|
+
name: "SetPidToPhantomToken",
|
|
20
26
|
type: "event",
|
|
21
27
|
},
|
|
22
28
|
];
|
|
23
|
-
class
|
|
29
|
+
class IConvexV1BoosterAdapterEvents__factory {
|
|
24
30
|
static abi = _abi;
|
|
25
31
|
static createInterface() {
|
|
26
32
|
return new ethers_1.utils.Interface(_abi);
|
|
@@ -29,4 +35,4 @@ class ILidoV1AdapterEvents__factory {
|
|
|
29
35
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
30
36
|
}
|
|
31
37
|
}
|
|
32
|
-
exports.
|
|
38
|
+
exports.IConvexV1BoosterAdapterEvents__factory = IConvexV1BoosterAdapterEvents__factory;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type { IConvexV1BoosterAdapter, IConvexV1BoosterAdapterInterface } from "
|
|
3
|
+
import type { IConvexV1BoosterAdapter, IConvexV1BoosterAdapterInterface } from "../../IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter";
|
|
4
4
|
export declare class IConvexV1BoosterAdapter__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "uint256";
|
|
10
|
+
readonly name: "pid";
|
|
11
|
+
readonly type: "uint256";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: true;
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly name: "phantomToken";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}];
|
|
18
|
+
readonly name: "SetPidToPhantomToken";
|
|
19
|
+
readonly type: "event";
|
|
20
|
+
}, {
|
|
6
21
|
readonly inputs: readonly [];
|
|
7
22
|
readonly name: "_gearboxAdapterType";
|
|
8
23
|
readonly outputs: readonly [{
|
|
@@ -6,6 +6,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.IConvexV1BoosterAdapter__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "uint256",
|
|
15
|
+
name: "pid",
|
|
16
|
+
type: "uint256",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "phantomToken",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
name: "SetPidToPhantomToken",
|
|
26
|
+
type: "event",
|
|
27
|
+
},
|
|
9
28
|
{
|
|
10
29
|
inputs: [],
|
|
11
30
|
name: "_gearboxAdapterType",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IConvexV1BoosterAdapterEvents__factory = exports.IConvexV1BoosterAdapter__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var IConvexV1BoosterAdapter__factory_1 = require("./IConvexV1BoosterAdapter__factory");
|
|
8
|
+
Object.defineProperty(exports, "IConvexV1BoosterAdapter__factory", { enumerable: true, get: function () { return IConvexV1BoosterAdapter__factory_1.IConvexV1BoosterAdapter__factory; } });
|
|
9
|
+
var IConvexV1BoosterAdapterEvents__factory_1 = require("./IConvexV1BoosterAdapterEvents__factory");
|
|
10
|
+
Object.defineProperty(exports, "IConvexV1BoosterAdapterEvents__factory", { enumerable: true, get: function () { return IConvexV1BoosterAdapterEvents__factory_1.IConvexV1BoosterAdapterEvents__factory; } });
|
|
@@ -146,9 +146,9 @@ export declare class ICreditFacadeV3Events__factory {
|
|
|
146
146
|
readonly type: "address";
|
|
147
147
|
}, {
|
|
148
148
|
readonly indexed: false;
|
|
149
|
-
readonly internalType: "
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
150
|
readonly name: "referralCode";
|
|
151
|
-
readonly type: "
|
|
151
|
+
readonly type: "uint256";
|
|
152
152
|
}];
|
|
153
153
|
readonly name: "OpenCreditAccount";
|
|
154
154
|
readonly type: "event";
|
|
@@ -146,9 +146,9 @@ export declare class ICreditFacadeV3__factory {
|
|
|
146
146
|
readonly type: "address";
|
|
147
147
|
}, {
|
|
148
148
|
readonly indexed: false;
|
|
149
|
-
readonly internalType: "
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
150
|
readonly name: "referralCode";
|
|
151
|
-
readonly type: "
|
|
151
|
+
readonly type: "uint256";
|
|
152
152
|
}];
|
|
153
153
|
readonly name: "OpenCreditAccount";
|
|
154
154
|
readonly type: "event";
|
|
@@ -463,9 +463,9 @@ export declare class ICreditFacadeV3__factory {
|
|
|
463
463
|
readonly name: "calls";
|
|
464
464
|
readonly type: "tuple[]";
|
|
465
465
|
}, {
|
|
466
|
-
readonly internalType: "
|
|
466
|
+
readonly internalType: "uint256";
|
|
467
467
|
readonly name: "referralCode";
|
|
468
|
-
readonly type: "
|
|
468
|
+
readonly type: "uint256";
|
|
469
469
|
}];
|
|
470
470
|
readonly name: "openCreditAccount";
|
|
471
471
|
readonly outputs: readonly [{
|
|
@@ -185,9 +185,9 @@ const _abi = [
|
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
indexed: false,
|
|
188
|
-
internalType: "
|
|
188
|
+
internalType: "uint256",
|
|
189
189
|
name: "referralCode",
|
|
190
|
-
type: "
|
|
190
|
+
type: "uint256",
|
|
191
191
|
},
|
|
192
192
|
],
|
|
193
193
|
name: "OpenCreditAccount",
|
|
@@ -596,9 +596,9 @@ const _abi = [
|
|
|
596
596
|
type: "tuple[]",
|
|
597
597
|
},
|
|
598
598
|
{
|
|
599
|
-
internalType: "
|
|
599
|
+
internalType: "uint256",
|
|
600
600
|
name: "referralCode",
|
|
601
|
-
type: "
|
|
601
|
+
type: "uint256",
|
|
602
602
|
},
|
|
603
603
|
],
|
|
604
604
|
name: "openCreditAccount",
|
|
@@ -117,11 +117,11 @@ export declare class ICreditFacadeV3Multicall__factory {
|
|
|
117
117
|
readonly name: "token";
|
|
118
118
|
readonly type: "address";
|
|
119
119
|
}, {
|
|
120
|
-
readonly internalType: "
|
|
121
|
-
readonly name: "
|
|
122
|
-
readonly type: "
|
|
120
|
+
readonly internalType: "int256";
|
|
121
|
+
readonly name: "amount";
|
|
122
|
+
readonly type: "int256";
|
|
123
123
|
}];
|
|
124
|
-
readonly internalType: "struct
|
|
124
|
+
readonly internalType: "struct BalanceDelta[]";
|
|
125
125
|
readonly name: "balanceDeltas";
|
|
126
126
|
readonly type: "tuple[]";
|
|
127
127
|
}];
|
|
@@ -155,12 +155,12 @@ const _abi = [
|
|
|
155
155
|
type: "address",
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
internalType: "
|
|
159
|
-
name: "
|
|
160
|
-
type: "
|
|
158
|
+
internalType: "int256",
|
|
159
|
+
name: "amount",
|
|
160
|
+
type: "int256",
|
|
161
161
|
},
|
|
162
162
|
],
|
|
163
|
-
internalType: "struct
|
|
163
|
+
internalType: "struct BalanceDelta[]",
|
|
164
164
|
name: "balanceDeltas",
|
|
165
165
|
type: "tuple[]",
|
|
166
166
|
},
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IDaiLikePermit, IDaiLikePermitInterface } from "../IDaiLikePermit";
|
|
4
|
+
export declare class IDaiLikePermit__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "holder";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "spender";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "uint256";
|
|
16
|
+
readonly name: "nonce";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "expiry";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "bool";
|
|
24
|
+
readonly name: "allowed";
|
|
25
|
+
readonly type: "bool";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "uint8";
|
|
28
|
+
readonly name: "v";
|
|
29
|
+
readonly type: "uint8";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "bytes32";
|
|
32
|
+
readonly name: "r";
|
|
33
|
+
readonly type: "bytes32";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "bytes32";
|
|
36
|
+
readonly name: "s";
|
|
37
|
+
readonly type: "bytes32";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "permit";
|
|
40
|
+
readonly outputs: readonly [];
|
|
41
|
+
readonly stateMutability: "nonpayable";
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
}];
|
|
44
|
+
static createInterface(): IDaiLikePermitInterface;
|
|
45
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IDaiLikePermit;
|
|
46
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.IDaiLikePermit__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "holder",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "spender",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "nonce",
|
|
24
|
+
type: "uint256",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "expiry",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "bool",
|
|
33
|
+
name: "allowed",
|
|
34
|
+
type: "bool",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint8",
|
|
38
|
+
name: "v",
|
|
39
|
+
type: "uint8",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "bytes32",
|
|
43
|
+
name: "r",
|
|
44
|
+
type: "bytes32",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "bytes32",
|
|
48
|
+
name: "s",
|
|
49
|
+
type: "bytes32",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "permit",
|
|
53
|
+
outputs: [],
|
|
54
|
+
stateMutability: "nonpayable",
|
|
55
|
+
type: "function",
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
class IDaiLikePermit__factory {
|
|
59
|
+
static abi = _abi;
|
|
60
|
+
static createInterface() {
|
|
61
|
+
return new ethers_1.utils.Interface(_abi);
|
|
62
|
+
}
|
|
63
|
+
static connect(address, signerOrProvider) {
|
|
64
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.IDaiLikePermit__factory = IDaiLikePermit__factory;
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type { ILidoV1Adapter, ILidoV1AdapterInterface } from "
|
|
3
|
+
import type { ILidoV1Adapter, ILidoV1AdapterInterface } from "../ILidoV1Adapter";
|
|
4
4
|
export declare class ILidoV1Adapter__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
|
-
readonly inputs: readonly [];
|
|
7
|
-
readonly name: "LimitIsOverException";
|
|
8
|
-
readonly type: "error";
|
|
9
|
-
}, {
|
|
10
|
-
readonly anonymous: false;
|
|
11
|
-
readonly inputs: readonly [{
|
|
12
|
-
readonly indexed: false;
|
|
13
|
-
readonly internalType: "uint256";
|
|
14
|
-
readonly name: "_limit";
|
|
15
|
-
readonly type: "uint256";
|
|
16
|
-
}];
|
|
17
|
-
readonly name: "SetLimit";
|
|
18
|
-
readonly type: "event";
|
|
19
|
-
}, {
|
|
20
6
|
readonly inputs: readonly [];
|
|
21
7
|
readonly name: "_gearboxAdapterType";
|
|
22
8
|
readonly outputs: readonly [{
|
|
@@ -56,26 +42,6 @@ export declare class ILidoV1Adapter__factory {
|
|
|
56
42
|
}];
|
|
57
43
|
readonly stateMutability: "view";
|
|
58
44
|
readonly type: "function";
|
|
59
|
-
}, {
|
|
60
|
-
readonly inputs: readonly [];
|
|
61
|
-
readonly name: "limit";
|
|
62
|
-
readonly outputs: readonly [{
|
|
63
|
-
readonly internalType: "uint256";
|
|
64
|
-
readonly name: "";
|
|
65
|
-
readonly type: "uint256";
|
|
66
|
-
}];
|
|
67
|
-
readonly stateMutability: "view";
|
|
68
|
-
readonly type: "function";
|
|
69
|
-
}, {
|
|
70
|
-
readonly inputs: readonly [{
|
|
71
|
-
readonly internalType: "uint256";
|
|
72
|
-
readonly name: "_limit";
|
|
73
|
-
readonly type: "uint256";
|
|
74
|
-
}];
|
|
75
|
-
readonly name: "setLimit";
|
|
76
|
-
readonly outputs: readonly [];
|
|
77
|
-
readonly stateMutability: "nonpayable";
|
|
78
|
-
readonly type: "function";
|
|
79
45
|
}, {
|
|
80
46
|
readonly inputs: readonly [];
|
|
81
47
|
readonly name: "stETH";
|
|
@@ -6,24 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ILidoV1Adapter__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [],
|
|
11
|
-
name: "LimitIsOverException",
|
|
12
|
-
type: "error",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
anonymous: false,
|
|
16
|
-
inputs: [
|
|
17
|
-
{
|
|
18
|
-
indexed: false,
|
|
19
|
-
internalType: "uint256",
|
|
20
|
-
name: "_limit",
|
|
21
|
-
type: "uint256",
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
name: "SetLimit",
|
|
25
|
-
type: "event",
|
|
26
|
-
},
|
|
27
9
|
{
|
|
28
10
|
inputs: [],
|
|
29
11
|
name: "_gearboxAdapterType",
|
|
@@ -76,32 +58,6 @@ const _abi = [
|
|
|
76
58
|
stateMutability: "view",
|
|
77
59
|
type: "function",
|
|
78
60
|
},
|
|
79
|
-
{
|
|
80
|
-
inputs: [],
|
|
81
|
-
name: "limit",
|
|
82
|
-
outputs: [
|
|
83
|
-
{
|
|
84
|
-
internalType: "uint256",
|
|
85
|
-
name: "",
|
|
86
|
-
type: "uint256",
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
stateMutability: "view",
|
|
90
|
-
type: "function",
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
inputs: [
|
|
94
|
-
{
|
|
95
|
-
internalType: "uint256",
|
|
96
|
-
name: "_limit",
|
|
97
|
-
type: "uint256",
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
name: "setLimit",
|
|
101
|
-
outputs: [],
|
|
102
|
-
stateMutability: "nonpayable",
|
|
103
|
-
type: "function",
|
|
104
|
-
},
|
|
105
61
|
{
|
|
106
62
|
inputs: [],
|
|
107
63
|
name: "stETH",
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IPermit2, IPermit2Interface } from "../IPermit2";
|
|
4
|
+
export declare class IPermit2__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "user";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "token";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
readonly name: "spender";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "allowance";
|
|
20
|
+
readonly outputs: readonly [{
|
|
21
|
+
readonly components: readonly [{
|
|
22
|
+
readonly internalType: "uint160";
|
|
23
|
+
readonly name: "amount";
|
|
24
|
+
readonly type: "uint160";
|
|
25
|
+
}, {
|
|
26
|
+
readonly internalType: "uint48";
|
|
27
|
+
readonly name: "expiration";
|
|
28
|
+
readonly type: "uint48";
|
|
29
|
+
}, {
|
|
30
|
+
readonly internalType: "uint48";
|
|
31
|
+
readonly name: "nonce";
|
|
32
|
+
readonly type: "uint48";
|
|
33
|
+
}];
|
|
34
|
+
readonly internalType: "struct IPermit2.PackedAllowance";
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "tuple";
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
readonly name: "owner";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}, {
|
|
46
|
+
readonly components: readonly [{
|
|
47
|
+
readonly components: readonly [{
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "token";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly internalType: "uint160";
|
|
53
|
+
readonly name: "amount";
|
|
54
|
+
readonly type: "uint160";
|
|
55
|
+
}, {
|
|
56
|
+
readonly internalType: "uint48";
|
|
57
|
+
readonly name: "expiration";
|
|
58
|
+
readonly type: "uint48";
|
|
59
|
+
}, {
|
|
60
|
+
readonly internalType: "uint48";
|
|
61
|
+
readonly name: "nonce";
|
|
62
|
+
readonly type: "uint48";
|
|
63
|
+
}];
|
|
64
|
+
readonly internalType: "struct IPermit2.PermitDetails";
|
|
65
|
+
readonly name: "details";
|
|
66
|
+
readonly type: "tuple";
|
|
67
|
+
}, {
|
|
68
|
+
readonly internalType: "address";
|
|
69
|
+
readonly name: "spender";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
}, {
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
readonly name: "sigDeadline";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
}];
|
|
76
|
+
readonly internalType: "struct IPermit2.PermitSingle";
|
|
77
|
+
readonly name: "permitSingle";
|
|
78
|
+
readonly type: "tuple";
|
|
79
|
+
}, {
|
|
80
|
+
readonly internalType: "bytes";
|
|
81
|
+
readonly name: "signature";
|
|
82
|
+
readonly type: "bytes";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "permit";
|
|
85
|
+
readonly outputs: readonly [];
|
|
86
|
+
readonly stateMutability: "nonpayable";
|
|
87
|
+
readonly type: "function";
|
|
88
|
+
}, {
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "user";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly internalType: "address";
|
|
95
|
+
readonly name: "spender";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "uint160";
|
|
99
|
+
readonly name: "amount";
|
|
100
|
+
readonly type: "uint160";
|
|
101
|
+
}, {
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
readonly name: "token";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
}];
|
|
106
|
+
readonly name: "transferFrom";
|
|
107
|
+
readonly outputs: readonly [];
|
|
108
|
+
readonly stateMutability: "nonpayable";
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
}];
|
|
111
|
+
static createInterface(): IPermit2Interface;
|
|
112
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IPermit2;
|
|
113
|
+
}
|