@gearbox-protocol/sdk 3.0.0-next.5 → 3.0.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/contracts/IAirdropDistributor.sol +55 -0
  2. package/contracts/IDegenDistributor.sol +28 -0
  3. package/contracts/IOffchainOracle.sol +17 -0
  4. package/contracts/IWETHGateway.sol +33 -0
  5. package/contracts/IwstETHGateway.sol +24 -0
  6. package/contracts/index.sol +2 -0
  7. package/lib/config.d.ts +0 -1
  8. package/lib/config.js +1 -2
  9. package/lib/core/creditManager.d.ts +11 -6
  10. package/lib/core/creditManager.js +47 -24
  11. package/lib/core/pool/data.d.ts +3 -2
  12. package/lib/core/pool/data.js +4 -1
  13. package/lib/parsers/txParser.d.ts +3 -3
  14. package/lib/pathfinder/core.d.ts +4 -4
  15. package/lib/pathfinder/pathfinder.js +3 -2
  16. package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +124 -0
  17. package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.js +2 -0
  18. package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +73 -0
  19. package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.js +2 -0
  20. package/lib/types/IAirdropDistributor.sol/index.d.ts +2 -0
  21. package/lib/types/IAirdropDistributor.sol/index.js +2 -0
  22. package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +96 -0
  23. package/lib/types/IDegenDistributor.sol/IDegenDistributor.js +2 -0
  24. package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +53 -0
  25. package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.js +2 -0
  26. package/lib/types/IDegenDistributor.sol/index.d.ts +2 -0
  27. package/lib/types/IDegenDistributor.sol/index.js +2 -0
  28. package/lib/types/IOffchainOracle.d.ts +58 -0
  29. package/lib/types/IOffchainOracle.js +2 -0
  30. package/lib/types/IWETHGateway.d.ts +90 -0
  31. package/lib/types/IWETHGateway.js +2 -0
  32. package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +70 -0
  33. package/lib/types/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
  34. package/lib/types/IwstETHGateway.sol/index.d.ts +1 -0
  35. package/lib/types/IwstETHGateway.sol/index.js +2 -0
  36. package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.d.ts +1 -1
  37. package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.js +1 -1
  38. package/lib/types/factories/AddressProvider__factory.d.ts +1 -1
  39. package/lib/types/factories/AddressProvider__factory.js +1 -1
  40. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +1 -1
  41. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +1 -1
  42. package/lib/types/factories/Claimable__factory.d.ts +1 -1
  43. package/lib/types/factories/Claimable__factory.js +1 -1
  44. package/lib/types/factories/ERC20__factory.d.ts +1 -1
  45. package/lib/types/factories/ERC20__factory.js +1 -1
  46. package/lib/types/factories/Errors__factory.d.ts +1 -1
  47. package/lib/types/factories/Errors__factory.js +1 -1
  48. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +63 -0
  49. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +88 -0
  50. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +119 -0
  51. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +161 -0
  52. package/lib/types/factories/IAirdropDistributor.sol/index.d.ts +2 -0
  53. package/lib/types/factories/IAirdropDistributor.sol/index.js +10 -0
  54. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +38 -0
  55. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +57 -0
  56. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +84 -0
  57. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +117 -0
  58. package/lib/types/factories/IDegenDistributor.sol/index.d.ts +2 -0
  59. package/lib/types/factories/IDegenDistributor.sol/index.js +10 -0
  60. package/lib/types/factories/IOffchainOracle__factory.d.ts +48 -0
  61. package/lib/types/factories/IOffchainOracle__factory.js +72 -0
  62. package/lib/types/factories/IWETHGateway__factory.d.ts +58 -0
  63. package/lib/types/factories/IWETHGateway__factory.js +83 -0
  64. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +48 -0
  65. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +71 -0
  66. package/lib/types/factories/IwstETHGateway.sol/index.d.ts +1 -0
  67. package/lib/types/factories/IwstETHGateway.sol/index.js +8 -0
  68. package/lib/types/factories/SafeERC20__factory.d.ts +1 -1
  69. package/lib/types/factories/SafeERC20__factory.js +1 -1
  70. package/lib/types/factories/WATokenZapper__factory.d.ts +1 -1
  71. package/lib/types/factories/WATokenZapper__factory.js +1 -1
  72. package/lib/types/factories/WETHZapper__factory.d.ts +1 -1
  73. package/lib/types/factories/WETHZapper__factory.js +1 -1
  74. package/lib/types/factories/WstETHZapper__factory.d.ts +1 -1
  75. package/lib/types/factories/WstETHZapper__factory.js +1 -1
  76. package/lib/types/factories/index.d.ts +5 -0
  77. package/lib/types/factories/index.js +9 -2
  78. package/lib/types/index.d.ts +31 -12
  79. package/lib/types/index.js +32 -20
  80. package/package.json +2 -2
@@ -0,0 +1,161 @@
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.IAirdropDistributor__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "account",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: false,
20
+ internalType: "uint256",
21
+ name: "amount",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ indexed: true,
26
+ internalType: "bool",
27
+ name: "historic",
28
+ type: "bool",
29
+ },
30
+ ],
31
+ name: "Claimed",
32
+ type: "event",
33
+ },
34
+ {
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ indexed: false,
39
+ internalType: "bytes32",
40
+ name: "oldRoot",
41
+ type: "bytes32",
42
+ },
43
+ {
44
+ indexed: true,
45
+ internalType: "bytes32",
46
+ name: "newRoot",
47
+ type: "bytes32",
48
+ },
49
+ ],
50
+ name: "RootUpdated",
51
+ type: "event",
52
+ },
53
+ {
54
+ anonymous: false,
55
+ inputs: [
56
+ {
57
+ indexed: true,
58
+ internalType: "address",
59
+ name: "account",
60
+ type: "address",
61
+ },
62
+ {
63
+ indexed: true,
64
+ internalType: "uint8",
65
+ name: "campaignId",
66
+ type: "uint8",
67
+ },
68
+ {
69
+ indexed: false,
70
+ internalType: "uint256",
71
+ name: "amount",
72
+ type: "uint256",
73
+ },
74
+ ],
75
+ name: "TokenAllocated",
76
+ type: "event",
77
+ },
78
+ {
79
+ inputs: [
80
+ {
81
+ internalType: "uint256",
82
+ name: "index",
83
+ type: "uint256",
84
+ },
85
+ {
86
+ internalType: "address",
87
+ name: "account",
88
+ type: "address",
89
+ },
90
+ {
91
+ internalType: "uint256",
92
+ name: "totalAmount",
93
+ type: "uint256",
94
+ },
95
+ {
96
+ internalType: "bytes32[]",
97
+ name: "merkleProof",
98
+ type: "bytes32[]",
99
+ },
100
+ ],
101
+ name: "claim",
102
+ outputs: [],
103
+ stateMutability: "nonpayable",
104
+ type: "function",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "user",
111
+ type: "address",
112
+ },
113
+ ],
114
+ name: "claimed",
115
+ outputs: [
116
+ {
117
+ internalType: "uint256",
118
+ name: "",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ stateMutability: "view",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [],
127
+ name: "merkleRoot",
128
+ outputs: [
129
+ {
130
+ internalType: "bytes32",
131
+ name: "",
132
+ type: "bytes32",
133
+ },
134
+ ],
135
+ stateMutability: "view",
136
+ type: "function",
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "token",
141
+ outputs: [
142
+ {
143
+ internalType: "contract IERC20",
144
+ name: "",
145
+ type: "address",
146
+ },
147
+ ],
148
+ stateMutability: "view",
149
+ type: "function",
150
+ },
151
+ ];
152
+ class IAirdropDistributor__factory {
153
+ static abi = _abi;
154
+ static createInterface() {
155
+ return new ethers_1.utils.Interface(_abi);
156
+ }
157
+ static connect(address, signerOrProvider) {
158
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
159
+ }
160
+ }
161
+ exports.IAirdropDistributor__factory = IAirdropDistributor__factory;
@@ -0,0 +1,2 @@
1
+ export { IAirdropDistributor__factory } from "./IAirdropDistributor__factory";
2
+ export { IAirdropDistributorEvents__factory } from "./IAirdropDistributorEvents__factory";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IAirdropDistributorEvents__factory = exports.IAirdropDistributor__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IAirdropDistributor__factory_1 = require("./IAirdropDistributor__factory");
8
+ Object.defineProperty(exports, "IAirdropDistributor__factory", { enumerable: true, get: function () { return IAirdropDistributor__factory_1.IAirdropDistributor__factory; } });
9
+ var IAirdropDistributorEvents__factory_1 = require("./IAirdropDistributorEvents__factory");
10
+ Object.defineProperty(exports, "IAirdropDistributorEvents__factory", { enumerable: true, get: function () { return IAirdropDistributorEvents__factory_1.IAirdropDistributorEvents__factory; } });
@@ -0,0 +1,38 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IDegenDistributorEvents, IDegenDistributorEventsInterface } from "../../IDegenDistributor.sol/IDegenDistributorEvents";
4
+ export declare class IDegenDistributorEvents__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: "account";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly indexed: false;
14
+ readonly internalType: "uint256";
15
+ readonly name: "amount";
16
+ readonly type: "uint256";
17
+ }];
18
+ readonly name: "Claimed";
19
+ readonly type: "event";
20
+ }, {
21
+ readonly anonymous: false;
22
+ readonly inputs: readonly [{
23
+ readonly indexed: false;
24
+ readonly internalType: "bytes32";
25
+ readonly name: "oldRoot";
26
+ readonly type: "bytes32";
27
+ }, {
28
+ readonly indexed: true;
29
+ readonly internalType: "bytes32";
30
+ readonly name: "newRoot";
31
+ readonly type: "bytes32";
32
+ }];
33
+ readonly name: "RootUpdated";
34
+ readonly type: "event";
35
+ }];
36
+ static createInterface(): IDegenDistributorEventsInterface;
37
+ static connect(address: string, signerOrProvider: Signer | Provider): IDegenDistributorEvents;
38
+ }
@@ -0,0 +1,57 @@
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.IDegenDistributorEvents__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "account",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: false,
20
+ internalType: "uint256",
21
+ name: "amount",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ name: "Claimed",
26
+ type: "event",
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: false,
33
+ internalType: "bytes32",
34
+ name: "oldRoot",
35
+ type: "bytes32",
36
+ },
37
+ {
38
+ indexed: true,
39
+ internalType: "bytes32",
40
+ name: "newRoot",
41
+ type: "bytes32",
42
+ },
43
+ ],
44
+ name: "RootUpdated",
45
+ type: "event",
46
+ },
47
+ ];
48
+ class IDegenDistributorEvents__factory {
49
+ static abi = _abi;
50
+ static createInterface() {
51
+ return new ethers_1.utils.Interface(_abi);
52
+ }
53
+ static connect(address, signerOrProvider) {
54
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
55
+ }
56
+ }
57
+ exports.IDegenDistributorEvents__factory = IDegenDistributorEvents__factory;
@@ -0,0 +1,84 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IDegenDistributor, IDegenDistributorInterface } from "../../IDegenDistributor.sol/IDegenDistributor";
4
+ export declare class IDegenDistributor__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: "account";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly indexed: false;
14
+ readonly internalType: "uint256";
15
+ readonly name: "amount";
16
+ readonly type: "uint256";
17
+ }];
18
+ readonly name: "Claimed";
19
+ readonly type: "event";
20
+ }, {
21
+ readonly anonymous: false;
22
+ readonly inputs: readonly [{
23
+ readonly indexed: false;
24
+ readonly internalType: "bytes32";
25
+ readonly name: "oldRoot";
26
+ readonly type: "bytes32";
27
+ }, {
28
+ readonly indexed: true;
29
+ readonly internalType: "bytes32";
30
+ readonly name: "newRoot";
31
+ readonly type: "bytes32";
32
+ }];
33
+ readonly name: "RootUpdated";
34
+ readonly type: "event";
35
+ }, {
36
+ readonly inputs: readonly [{
37
+ readonly internalType: "uint256";
38
+ readonly name: "index";
39
+ readonly type: "uint256";
40
+ }, {
41
+ readonly internalType: "address";
42
+ readonly name: "account";
43
+ readonly type: "address";
44
+ }, {
45
+ readonly internalType: "uint256";
46
+ readonly name: "totalAmount";
47
+ readonly type: "uint256";
48
+ }, {
49
+ readonly internalType: "bytes32[]";
50
+ readonly name: "merkleProof";
51
+ readonly type: "bytes32[]";
52
+ }];
53
+ readonly name: "claim";
54
+ readonly outputs: readonly [];
55
+ readonly stateMutability: "nonpayable";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly inputs: readonly [{
59
+ readonly internalType: "address";
60
+ readonly name: "user";
61
+ readonly type: "address";
62
+ }];
63
+ readonly name: "claimed";
64
+ readonly outputs: readonly [{
65
+ readonly internalType: "uint256";
66
+ readonly name: "";
67
+ readonly type: "uint256";
68
+ }];
69
+ readonly stateMutability: "view";
70
+ readonly type: "function";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "merkleRoot";
74
+ readonly outputs: readonly [{
75
+ readonly internalType: "bytes32";
76
+ readonly name: "";
77
+ readonly type: "bytes32";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }];
82
+ static createInterface(): IDegenDistributorInterface;
83
+ static connect(address: string, signerOrProvider: Signer | Provider): IDegenDistributor;
84
+ }
@@ -0,0 +1,117 @@
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.IDegenDistributor__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "account",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: false,
20
+ internalType: "uint256",
21
+ name: "amount",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ name: "Claimed",
26
+ type: "event",
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: false,
33
+ internalType: "bytes32",
34
+ name: "oldRoot",
35
+ type: "bytes32",
36
+ },
37
+ {
38
+ indexed: true,
39
+ internalType: "bytes32",
40
+ name: "newRoot",
41
+ type: "bytes32",
42
+ },
43
+ ],
44
+ name: "RootUpdated",
45
+ type: "event",
46
+ },
47
+ {
48
+ inputs: [
49
+ {
50
+ internalType: "uint256",
51
+ name: "index",
52
+ type: "uint256",
53
+ },
54
+ {
55
+ internalType: "address",
56
+ name: "account",
57
+ type: "address",
58
+ },
59
+ {
60
+ internalType: "uint256",
61
+ name: "totalAmount",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ internalType: "bytes32[]",
66
+ name: "merkleProof",
67
+ type: "bytes32[]",
68
+ },
69
+ ],
70
+ name: "claim",
71
+ outputs: [],
72
+ stateMutability: "nonpayable",
73
+ type: "function",
74
+ },
75
+ {
76
+ inputs: [
77
+ {
78
+ internalType: "address",
79
+ name: "user",
80
+ type: "address",
81
+ },
82
+ ],
83
+ name: "claimed",
84
+ outputs: [
85
+ {
86
+ internalType: "uint256",
87
+ name: "",
88
+ type: "uint256",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "merkleRoot",
97
+ outputs: [
98
+ {
99
+ internalType: "bytes32",
100
+ name: "",
101
+ type: "bytes32",
102
+ },
103
+ ],
104
+ stateMutability: "view",
105
+ type: "function",
106
+ },
107
+ ];
108
+ class IDegenDistributor__factory {
109
+ static abi = _abi;
110
+ static createInterface() {
111
+ return new ethers_1.utils.Interface(_abi);
112
+ }
113
+ static connect(address, signerOrProvider) {
114
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
115
+ }
116
+ }
117
+ exports.IDegenDistributor__factory = IDegenDistributor__factory;
@@ -0,0 +1,2 @@
1
+ export { IDegenDistributor__factory } from "./IDegenDistributor__factory";
2
+ export { IDegenDistributorEvents__factory } from "./IDegenDistributorEvents__factory";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IDegenDistributorEvents__factory = exports.IDegenDistributor__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IDegenDistributor__factory_1 = require("./IDegenDistributor__factory");
8
+ Object.defineProperty(exports, "IDegenDistributor__factory", { enumerable: true, get: function () { return IDegenDistributor__factory_1.IDegenDistributor__factory; } });
9
+ var IDegenDistributorEvents__factory_1 = require("./IDegenDistributorEvents__factory");
10
+ Object.defineProperty(exports, "IDegenDistributorEvents__factory", { enumerable: true, get: function () { return IDegenDistributorEvents__factory_1.IDegenDistributorEvents__factory; } });
@@ -0,0 +1,48 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IOffchainOracle, IOffchainOracleInterface } from "../IOffchainOracle";
4
+ export declare class IOffchainOracle__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "address";
8
+ readonly name: "srcToken";
9
+ readonly type: "address";
10
+ }, {
11
+ readonly internalType: "address";
12
+ readonly name: "dstToken";
13
+ readonly type: "address";
14
+ }, {
15
+ readonly internalType: "bool";
16
+ readonly name: "useWrappers";
17
+ readonly type: "bool";
18
+ }];
19
+ readonly name: "getRate";
20
+ readonly outputs: readonly [{
21
+ readonly internalType: "uint256";
22
+ readonly name: "weightedRate";
23
+ readonly type: "uint256";
24
+ }];
25
+ readonly stateMutability: "view";
26
+ readonly type: "function";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "address";
30
+ readonly name: "srcToken";
31
+ readonly type: "address";
32
+ }, {
33
+ readonly internalType: "bool";
34
+ readonly name: "useSrcWrappers";
35
+ readonly type: "bool";
36
+ }];
37
+ readonly name: "getRateToEth";
38
+ readonly outputs: readonly [{
39
+ readonly internalType: "uint256";
40
+ readonly name: "weightedRate";
41
+ readonly type: "uint256";
42
+ }];
43
+ readonly stateMutability: "view";
44
+ readonly type: "function";
45
+ }];
46
+ static createInterface(): IOffchainOracleInterface;
47
+ static connect(address: string, signerOrProvider: Signer | Provider): IOffchainOracle;
48
+ }
@@ -0,0 +1,72 @@
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
+ const ethers_1 = require("ethers");
8
+ const _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
+ class IOffchainOracle__factory {
64
+ static abi = _abi;
65
+ static createInterface() {
66
+ return new ethers_1.utils.Interface(_abi);
67
+ }
68
+ static connect(address, signerOrProvider) {
69
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
70
+ }
71
+ }
72
+ exports.IOffchainOracle__factory = IOffchainOracle__factory;
@@ -0,0 +1,58 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IWETHGateway, IWETHGatewayInterface } from "../IWETHGateway";
4
+ export declare class IWETHGateway__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "address";
8
+ readonly name: "pool";
9
+ readonly type: "address";
10
+ }, {
11
+ readonly internalType: "address";
12
+ readonly name: "onBehalfOf";
13
+ readonly type: "address";
14
+ }, {
15
+ readonly internalType: "uint16";
16
+ readonly name: "referralCode";
17
+ readonly type: "uint16";
18
+ }];
19
+ readonly name: "addLiquidityETH";
20
+ readonly outputs: readonly [];
21
+ readonly stateMutability: "payable";
22
+ readonly type: "function";
23
+ }, {
24
+ readonly inputs: readonly [{
25
+ readonly internalType: "address";
26
+ readonly name: "pool";
27
+ readonly type: "address";
28
+ }, {
29
+ readonly internalType: "uint256";
30
+ readonly name: "amount";
31
+ readonly type: "uint256";
32
+ }, {
33
+ readonly internalType: "address payable";
34
+ readonly name: "to";
35
+ readonly type: "address";
36
+ }];
37
+ readonly name: "removeLiquidityETH";
38
+ readonly outputs: readonly [];
39
+ readonly stateMutability: "nonpayable";
40
+ readonly type: "function";
41
+ }, {
42
+ readonly inputs: readonly [{
43
+ readonly internalType: "address";
44
+ readonly name: "to";
45
+ readonly type: "address";
46
+ }, {
47
+ readonly internalType: "uint256";
48
+ readonly name: "amount";
49
+ readonly type: "uint256";
50
+ }];
51
+ readonly name: "unwrapWETH";
52
+ readonly outputs: readonly [];
53
+ readonly stateMutability: "nonpayable";
54
+ readonly type: "function";
55
+ }];
56
+ static createInterface(): IWETHGatewayInterface;
57
+ static connect(address: string, signerOrProvider: Signer | Provider): IWETHGateway;
58
+ }