@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
|
@@ -0,0 +1,155 @@
|
|
|
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.IPermit2__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "user",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "token",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "spender",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "allowance",
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
components: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint160",
|
|
33
|
+
name: "amount",
|
|
34
|
+
type: "uint160",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint48",
|
|
38
|
+
name: "expiration",
|
|
39
|
+
type: "uint48",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "uint48",
|
|
43
|
+
name: "nonce",
|
|
44
|
+
type: "uint48",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
internalType: "struct IPermit2.PackedAllowance",
|
|
48
|
+
name: "",
|
|
49
|
+
type: "tuple",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
stateMutability: "view",
|
|
53
|
+
type: "function",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "owner",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
components: [
|
|
64
|
+
{
|
|
65
|
+
components: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "address",
|
|
68
|
+
name: "token",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "uint160",
|
|
73
|
+
name: "amount",
|
|
74
|
+
type: "uint160",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint48",
|
|
78
|
+
name: "expiration",
|
|
79
|
+
type: "uint48",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: "uint48",
|
|
83
|
+
name: "nonce",
|
|
84
|
+
type: "uint48",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
internalType: "struct IPermit2.PermitDetails",
|
|
88
|
+
name: "details",
|
|
89
|
+
type: "tuple",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "spender",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "sigDeadline",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
internalType: "struct IPermit2.PermitSingle",
|
|
103
|
+
name: "permitSingle",
|
|
104
|
+
type: "tuple",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "bytes",
|
|
108
|
+
name: "signature",
|
|
109
|
+
type: "bytes",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
name: "permit",
|
|
113
|
+
outputs: [],
|
|
114
|
+
stateMutability: "nonpayable",
|
|
115
|
+
type: "function",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "user",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "address",
|
|
126
|
+
name: "spender",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "uint160",
|
|
131
|
+
name: "amount",
|
|
132
|
+
type: "uint160",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "token",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "transferFrom",
|
|
141
|
+
outputs: [],
|
|
142
|
+
stateMutability: "nonpayable",
|
|
143
|
+
type: "function",
|
|
144
|
+
},
|
|
145
|
+
];
|
|
146
|
+
class IPermit2__factory {
|
|
147
|
+
static abi = _abi;
|
|
148
|
+
static createInterface() {
|
|
149
|
+
return new ethers_1.utils.Interface(_abi);
|
|
150
|
+
}
|
|
151
|
+
static connect(address, signerOrProvider) {
|
|
152
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.IPermit2__factory = IPermit2__factory;
|
|
@@ -480,9 +480,9 @@ export declare class IPoolV3__factory {
|
|
|
480
480
|
readonly name: "receiver";
|
|
481
481
|
readonly type: "address";
|
|
482
482
|
}, {
|
|
483
|
-
readonly internalType: "
|
|
483
|
+
readonly internalType: "uint256";
|
|
484
484
|
readonly name: "referralCode";
|
|
485
|
-
readonly type: "
|
|
485
|
+
readonly type: "uint256";
|
|
486
486
|
}];
|
|
487
487
|
readonly name: "depositWithReferral";
|
|
488
488
|
readonly outputs: readonly [{
|
|
@@ -640,9 +640,9 @@ export declare class IPoolV3__factory {
|
|
|
640
640
|
readonly name: "receiver";
|
|
641
641
|
readonly type: "address";
|
|
642
642
|
}, {
|
|
643
|
-
readonly internalType: "
|
|
643
|
+
readonly internalType: "uint256";
|
|
644
644
|
readonly name: "referralCode";
|
|
645
|
-
readonly type: "
|
|
645
|
+
readonly type: "uint256";
|
|
646
646
|
}];
|
|
647
647
|
readonly name: "mintWithReferral";
|
|
648
648
|
readonly outputs: readonly [{
|
|
@@ -624,9 +624,9 @@ const _abi = [
|
|
|
624
624
|
type: "address",
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
|
-
internalType: "
|
|
627
|
+
internalType: "uint256",
|
|
628
628
|
name: "referralCode",
|
|
629
|
-
type: "
|
|
629
|
+
type: "uint256",
|
|
630
630
|
},
|
|
631
631
|
],
|
|
632
632
|
name: "depositWithReferral",
|
|
@@ -836,9 +836,9 @@ const _abi = [
|
|
|
836
836
|
type: "address",
|
|
837
837
|
},
|
|
838
838
|
{
|
|
839
|
-
internalType: "
|
|
839
|
+
internalType: "uint256",
|
|
840
840
|
name: "referralCode",
|
|
841
|
-
type: "
|
|
841
|
+
type: "uint256",
|
|
842
842
|
},
|
|
843
843
|
],
|
|
844
844
|
name: "mintWithReferral",
|
|
@@ -30,9 +30,9 @@ export declare class IWERC20Zapper__factory {
|
|
|
30
30
|
readonly name: "receiver";
|
|
31
31
|
readonly type: "address";
|
|
32
32
|
}, {
|
|
33
|
-
readonly internalType: "
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
34
|
readonly name: "referralCode";
|
|
35
|
-
readonly type: "
|
|
35
|
+
readonly type: "uint256";
|
|
36
36
|
}];
|
|
37
37
|
readonly name: "depositWithReferral";
|
|
38
38
|
readonly outputs: readonly [{
|
|
@@ -22,9 +22,9 @@ export declare class IWETHZapper__factory {
|
|
|
22
22
|
readonly name: "receiver";
|
|
23
23
|
readonly type: "address";
|
|
24
24
|
}, {
|
|
25
|
-
readonly internalType: "
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
26
|
readonly name: "referralCode";
|
|
27
|
-
readonly type: "
|
|
27
|
+
readonly type: "uint256";
|
|
28
28
|
}];
|
|
29
29
|
readonly name: "depositWithReferral";
|
|
30
30
|
readonly outputs: readonly [{
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IWETH, IWETHInterface } from "../IWETH";
|
|
4
|
+
export declare class IWETH__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly name: "owner";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: true;
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly name: "spender";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly indexed: false;
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "value";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "Approval";
|
|
24
|
+
readonly type: "event";
|
|
25
|
+
}, {
|
|
26
|
+
readonly anonymous: false;
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly name: "dst";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly indexed: false;
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "wad";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}];
|
|
38
|
+
readonly name: "Deposit";
|
|
39
|
+
readonly type: "event";
|
|
40
|
+
}, {
|
|
41
|
+
readonly anonymous: false;
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly indexed: true;
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "from";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly indexed: true;
|
|
49
|
+
readonly internalType: "address";
|
|
50
|
+
readonly name: "to";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly indexed: false;
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
readonly name: "value";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly name: "Transfer";
|
|
59
|
+
readonly type: "event";
|
|
60
|
+
}, {
|
|
61
|
+
readonly anonymous: false;
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly name: "src";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}, {
|
|
68
|
+
readonly indexed: false;
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "wad";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "Withdrawal";
|
|
74
|
+
readonly type: "event";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
readonly name: "owner";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly internalType: "address";
|
|
82
|
+
readonly name: "spender";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
}];
|
|
85
|
+
readonly name: "allowance";
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
readonly name: "";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
}, {
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "spender";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
readonly name: "amount";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
}];
|
|
103
|
+
readonly name: "approve";
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly internalType: "bool";
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly type: "bool";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "nonpayable";
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly name: "account";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "balanceOf";
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly name: "";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
readonly stateMutability: "view";
|
|
124
|
+
readonly type: "function";
|
|
125
|
+
}, {
|
|
126
|
+
readonly inputs: readonly [];
|
|
127
|
+
readonly name: "deposit";
|
|
128
|
+
readonly outputs: readonly [];
|
|
129
|
+
readonly stateMutability: "payable";
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "totalSupply";
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly type: "uint256";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
readonly type: "function";
|
|
141
|
+
}, {
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly internalType: "address";
|
|
144
|
+
readonly name: "to";
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
}, {
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly name: "amount";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "transfer";
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly internalType: "bool";
|
|
154
|
+
readonly name: "";
|
|
155
|
+
readonly type: "bool";
|
|
156
|
+
}];
|
|
157
|
+
readonly stateMutability: "nonpayable";
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
readonly name: "from";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
}, {
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
readonly name: "to";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
}, {
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
readonly name: "amount";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
readonly name: "transferFrom";
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly internalType: "bool";
|
|
176
|
+
readonly name: "";
|
|
177
|
+
readonly type: "bool";
|
|
178
|
+
}];
|
|
179
|
+
readonly stateMutability: "nonpayable";
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
}, {
|
|
182
|
+
readonly inputs: readonly [{
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "amount";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "withdraw";
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
}];
|
|
192
|
+
static createInterface(): IWETHInterface;
|
|
193
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IWETH;
|
|
194
|
+
}
|