@gearbox-protocol/sdk 0.0.109 → 0.0.110

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 (112) hide show
  1. package/lib/apy/convexAPY copy.d.ts +6 -0
  2. package/lib/apy/convexAPY copy.js +201 -0
  3. package/lib/apy/convexAPY.d.ts +9 -5
  4. package/lib/apy/convexAPY.js +29 -69
  5. package/lib/apy/curveAPY.d.ts +4 -0
  6. package/lib/apy/curveAPY.js +94 -0
  7. package/lib/apy/index.d.ts +6 -0
  8. package/lib/apy/index.js +20 -0
  9. package/lib/apy/lidoAPY.d.ts +1 -1
  10. package/lib/apy/lidoAPY.js +3 -3
  11. package/lib/apy/yearnAPY.d.ts +4 -0
  12. package/lib/apy/yearnAPY.js +90 -0
  13. package/lib/contracts/contractsRegister.js +2 -1
  14. package/lib/core/creditAccount.d.ts +2 -1
  15. package/lib/core/creditAccount.js +19 -12
  16. package/lib/core/creditManager.d.ts +3 -1
  17. package/lib/core/creditManager.js +22 -8
  18. package/lib/core/errors.d.ts +1 -1
  19. package/lib/core/pool.js +4 -4
  20. package/lib/core/strategy.d.ts +5 -3
  21. package/lib/core/strategy.js +6 -4
  22. package/lib/index.d.ts +4 -4
  23. package/lib/index.js +7 -6
  24. package/lib/tokens/convex.d.ts +3 -0
  25. package/lib/tokens/convex.js +44 -18
  26. package/lib/tokens/curveLP.d.ts +1 -0
  27. package/lib/tokens/curveLP.js +11 -7
  28. package/lib/tokens/normal.d.ts +1 -0
  29. package/lib/tokens/normal.js +5 -1
  30. package/lib/tokens/token.d.ts +7 -2
  31. package/lib/tokens/token.js +10 -1
  32. package/lib/tokens/tokenData.js +2 -3
  33. package/lib/tokens/yearn.d.ts +1 -0
  34. package/lib/tokens/yearn.js +11 -7
  35. package/lib/utils/extracter.d.ts +11 -0
  36. package/lib/utils/extracter.js +19 -0
  37. package/lib/utils/mappers.d.ts +2 -2
  38. package/lib/utils/price.d.ts +8 -0
  39. package/lib/utils/price.js +26 -0
  40. package/package.json +1 -1
  41. package/src/apy/convexAPY.ts +47 -96
  42. package/src/apy/curveAPY.ts +68 -0
  43. package/src/apy/index.ts +8 -0
  44. package/src/apy/lidoAPY.ts +1 -1
  45. package/src/apy/yearnAPY.ts +66 -0
  46. package/src/contracts/contractsRegister.ts +2 -1
  47. package/src/core/creditAccount.ts +20 -12
  48. package/src/core/creditManager.ts +35 -10
  49. package/src/core/errors.ts +1 -0
  50. package/src/core/pool.ts +4 -4
  51. package/src/core/strategy.ts +16 -10
  52. package/src/index.ts +4 -4
  53. package/src/tokens/convex.ts +43 -20
  54. package/src/tokens/curveLP.ts +9 -6
  55. package/src/tokens/normal.ts +3 -0
  56. package/src/tokens/token.ts +24 -6
  57. package/src/tokens/tokenData.ts +2 -4
  58. package/src/tokens/yearn.ts +9 -6
  59. package/src/utils/extracter.ts +30 -0
  60. package/src/utils/mappers.ts +2 -2
  61. package/src/utils/price.ts +33 -0
  62. package/lib/core/price.d.ts +0 -2
  63. package/lib/core/price.js +0 -14
  64. package/lib/types/@chainlink/contracts/src/v0.6/index.d.ts +0 -2
  65. package/lib/types/@chainlink/contracts/src/v0.6/index.js +0 -2
  66. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.d.ts +0 -146
  67. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.js +0 -2
  68. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/index.d.ts +0 -1
  69. package/lib/types/@chainlink/contracts/src/v0.6/interfaces/index.js +0 -2
  70. package/lib/types/contracts/integrations/lido/IstETH.d.ts +0 -154
  71. package/lib/types/contracts/integrations/lido/IstETH.js +0 -2
  72. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker.d.ts +0 -50
  73. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker.js +0 -2
  74. package/lib/types/contracts/pathfinder/Balances.sol/BalanceOps.d.ts +0 -27
  75. package/lib/types/contracts/pathfinder/Balances.sol/BalanceOps.js +0 -2
  76. package/lib/types/contracts/pathfinder/Balances.sol/index.d.ts +0 -1
  77. package/lib/types/contracts/pathfinder/Balances.sol/index.js +0 -2
  78. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder.d.ts +0 -269
  79. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder.js +0 -2
  80. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/index.d.ts +0 -1
  81. package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/index.js +0 -2
  82. package/lib/types/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper.d.ts +0 -58
  83. package/lib/types/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper.js +0 -2
  84. package/lib/types/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest.d.ts +0 -528
  85. package/lib/types/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest.js +0 -2
  86. package/lib/types/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest.d.ts +0 -528
  87. package/lib/types/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest.js +0 -2
  88. package/lib/types/factories/@chainlink/contracts/src/v0.6/index.d.ts +0 -1
  89. package/lib/types/factories/@chainlink/contracts/src/v0.6/index.js +0 -30
  90. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface__factory.d.ts +0 -22
  91. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface__factory.js +0 -133
  92. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/index.d.ts +0 -1
  93. package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/index.js +0 -8
  94. package/lib/types/factories/contracts/integrations/lido/IstETH__factory.d.ts +0 -35
  95. package/lib/types/factories/contracts/integrations/lido/IstETH__factory.js +0 -224
  96. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker__factory.d.ts +0 -18
  97. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker__factory.js +0 -40
  98. package/lib/types/factories/contracts/pathfinder/Balances.sol/BalanceOps__factory.d.ts +0 -28
  99. package/lib/types/factories/contracts/pathfinder/Balances.sol/BalanceOps__factory.js +0 -76
  100. package/lib/types/factories/contracts/pathfinder/Balances.sol/index.d.ts +0 -1
  101. package/lib/types/factories/contracts/pathfinder/Balances.sol/index.js +0 -8
  102. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder__factory.d.ts +0 -144
  103. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder__factory.js +0 -522
  104. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/index.d.ts +0 -1
  105. package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/index.js +0 -8
  106. package/lib/types/factories/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper__factory.d.ts +0 -34
  107. package/lib/types/factories/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper__factory.js +0 -110
  108. package/lib/types/factories/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest__factory.d.ts +0 -65
  109. package/lib/types/factories/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest__factory.js +0 -775
  110. package/lib/types/factories/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest__factory.d.ts +0 -65
  111. package/lib/types/factories/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest__factory.js +0 -775
  112. package/src/core/price.ts +0 -13
@@ -1,133 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AggregatorV3Interface__factory = void 0;
7
- var ethers_1 = require("ethers");
8
- var _abi = [
9
- {
10
- inputs: [],
11
- name: "decimals",
12
- outputs: [
13
- {
14
- internalType: "uint8",
15
- name: "",
16
- type: "uint8",
17
- },
18
- ],
19
- stateMutability: "view",
20
- type: "function",
21
- },
22
- {
23
- inputs: [],
24
- name: "description",
25
- outputs: [
26
- {
27
- internalType: "string",
28
- name: "",
29
- type: "string",
30
- },
31
- ],
32
- stateMutability: "view",
33
- type: "function",
34
- },
35
- {
36
- inputs: [
37
- {
38
- internalType: "uint80",
39
- name: "_roundId",
40
- type: "uint80",
41
- },
42
- ],
43
- name: "getRoundData",
44
- outputs: [
45
- {
46
- internalType: "uint80",
47
- name: "roundId",
48
- type: "uint80",
49
- },
50
- {
51
- internalType: "int256",
52
- name: "answer",
53
- type: "int256",
54
- },
55
- {
56
- internalType: "uint256",
57
- name: "startedAt",
58
- type: "uint256",
59
- },
60
- {
61
- internalType: "uint256",
62
- name: "updatedAt",
63
- type: "uint256",
64
- },
65
- {
66
- internalType: "uint80",
67
- name: "answeredInRound",
68
- type: "uint80",
69
- },
70
- ],
71
- stateMutability: "view",
72
- type: "function",
73
- },
74
- {
75
- inputs: [],
76
- name: "latestRoundData",
77
- outputs: [
78
- {
79
- internalType: "uint80",
80
- name: "roundId",
81
- type: "uint80",
82
- },
83
- {
84
- internalType: "int256",
85
- name: "answer",
86
- type: "int256",
87
- },
88
- {
89
- internalType: "uint256",
90
- name: "startedAt",
91
- type: "uint256",
92
- },
93
- {
94
- internalType: "uint256",
95
- name: "updatedAt",
96
- type: "uint256",
97
- },
98
- {
99
- internalType: "uint80",
100
- name: "answeredInRound",
101
- type: "uint80",
102
- },
103
- ],
104
- stateMutability: "view",
105
- type: "function",
106
- },
107
- {
108
- inputs: [],
109
- name: "version",
110
- outputs: [
111
- {
112
- internalType: "uint256",
113
- name: "",
114
- type: "uint256",
115
- },
116
- ],
117
- stateMutability: "view",
118
- type: "function",
119
- },
120
- ];
121
- var AggregatorV3Interface__factory = /** @class */ (function () {
122
- function AggregatorV3Interface__factory() {
123
- }
124
- AggregatorV3Interface__factory.createInterface = function () {
125
- return new ethers_1.utils.Interface(_abi);
126
- };
127
- AggregatorV3Interface__factory.connect = function (address, signerOrProvider) {
128
- return new ethers_1.Contract(address, _abi, signerOrProvider);
129
- };
130
- AggregatorV3Interface__factory.abi = _abi;
131
- return AggregatorV3Interface__factory;
132
- }());
133
- exports.AggregatorV3Interface__factory = AggregatorV3Interface__factory;
@@ -1 +0,0 @@
1
- export { AggregatorV3Interface__factory } from "./AggregatorV3Interface__factory";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AggregatorV3Interface__factory = void 0;
4
- /* Autogenerated file. Do not edit manually. */
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- var AggregatorV3Interface__factory_1 = require("./AggregatorV3Interface__factory");
8
- Object.defineProperty(exports, "AggregatorV3Interface__factory", { enumerable: true, get: function () { return AggregatorV3Interface__factory_1.AggregatorV3Interface__factory; } });
@@ -1,35 +0,0 @@
1
- import { Signer } from "ethers";
2
- import type { Provider } from "@ethersproject/providers";
3
- import type { IstETH, IstETHInterface } from "../../../../contracts/integrations/lido/IstETH";
4
- export declare class IstETH__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
- outputs?: undefined;
16
- stateMutability?: undefined;
17
- } | {
18
- inputs: {
19
- internalType: string;
20
- name: string;
21
- type: string;
22
- }[];
23
- name: string;
24
- outputs: {
25
- internalType: string;
26
- name: string;
27
- type: string;
28
- }[];
29
- stateMutability: string;
30
- type: string;
31
- anonymous?: undefined;
32
- })[];
33
- static createInterface(): IstETHInterface;
34
- static connect(address: string, signerOrProvider: Signer | Provider): IstETH;
35
- }
@@ -1,224 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IstETH__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: "owner",
16
- type: "address",
17
- },
18
- {
19
- indexed: true,
20
- internalType: "address",
21
- name: "spender",
22
- type: "address",
23
- },
24
- {
25
- indexed: false,
26
- internalType: "uint256",
27
- name: "value",
28
- type: "uint256",
29
- },
30
- ],
31
- name: "Approval",
32
- type: "event",
33
- },
34
- {
35
- anonymous: false,
36
- inputs: [
37
- {
38
- indexed: true,
39
- internalType: "address",
40
- name: "from",
41
- type: "address",
42
- },
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "to",
47
- type: "address",
48
- },
49
- {
50
- indexed: false,
51
- internalType: "uint256",
52
- name: "value",
53
- type: "uint256",
54
- },
55
- ],
56
- name: "Transfer",
57
- type: "event",
58
- },
59
- {
60
- inputs: [
61
- {
62
- internalType: "address",
63
- name: "owner",
64
- type: "address",
65
- },
66
- {
67
- internalType: "address",
68
- name: "spender",
69
- type: "address",
70
- },
71
- ],
72
- name: "allowance",
73
- outputs: [
74
- {
75
- internalType: "uint256",
76
- name: "",
77
- type: "uint256",
78
- },
79
- ],
80
- stateMutability: "view",
81
- type: "function",
82
- },
83
- {
84
- inputs: [
85
- {
86
- internalType: "address",
87
- name: "spender",
88
- type: "address",
89
- },
90
- {
91
- internalType: "uint256",
92
- name: "amount",
93
- type: "uint256",
94
- },
95
- ],
96
- name: "approve",
97
- outputs: [
98
- {
99
- internalType: "bool",
100
- name: "",
101
- type: "bool",
102
- },
103
- ],
104
- stateMutability: "nonpayable",
105
- type: "function",
106
- },
107
- {
108
- inputs: [
109
- {
110
- internalType: "address",
111
- name: "account",
112
- type: "address",
113
- },
114
- ],
115
- name: "balanceOf",
116
- outputs: [
117
- {
118
- internalType: "uint256",
119
- name: "",
120
- type: "uint256",
121
- },
122
- ],
123
- stateMutability: "view",
124
- type: "function",
125
- },
126
- {
127
- inputs: [
128
- {
129
- internalType: "address",
130
- name: "_referral",
131
- type: "address",
132
- },
133
- ],
134
- name: "submit",
135
- outputs: [
136
- {
137
- internalType: "uint256",
138
- name: "",
139
- type: "uint256",
140
- },
141
- ],
142
- stateMutability: "payable",
143
- type: "function",
144
- },
145
- {
146
- inputs: [],
147
- name: "totalSupply",
148
- outputs: [
149
- {
150
- internalType: "uint256",
151
- name: "",
152
- type: "uint256",
153
- },
154
- ],
155
- stateMutability: "view",
156
- type: "function",
157
- },
158
- {
159
- inputs: [
160
- {
161
- internalType: "address",
162
- name: "recipient",
163
- type: "address",
164
- },
165
- {
166
- internalType: "uint256",
167
- name: "amount",
168
- type: "uint256",
169
- },
170
- ],
171
- name: "transfer",
172
- outputs: [
173
- {
174
- internalType: "bool",
175
- name: "",
176
- type: "bool",
177
- },
178
- ],
179
- stateMutability: "nonpayable",
180
- type: "function",
181
- },
182
- {
183
- inputs: [
184
- {
185
- internalType: "address",
186
- name: "sender",
187
- type: "address",
188
- },
189
- {
190
- internalType: "address",
191
- name: "recipient",
192
- type: "address",
193
- },
194
- {
195
- internalType: "uint256",
196
- name: "amount",
197
- type: "uint256",
198
- },
199
- ],
200
- name: "transferFrom",
201
- outputs: [
202
- {
203
- internalType: "bool",
204
- name: "",
205
- type: "bool",
206
- },
207
- ],
208
- stateMutability: "nonpayable",
209
- type: "function",
210
- },
211
- ];
212
- var IstETH__factory = /** @class */ (function () {
213
- function IstETH__factory() {
214
- }
215
- IstETH__factory.createInterface = function () {
216
- return new ethers_1.utils.Interface(_abi);
217
- };
218
- IstETH__factory.connect = function (address, signerOrProvider) {
219
- return new ethers_1.Contract(address, _abi, signerOrProvider);
220
- };
221
- IstETH__factory.abi = _abi;
222
- return IstETH__factory;
223
- }());
224
- exports.IstETH__factory = IstETH__factory;
@@ -1,18 +0,0 @@
1
- import { Signer } from "ethers";
2
- import type { Provider } from "@ethersproject/providers";
3
- import type { ICreditFacadeBalanceChecker, ICreditFacadeBalanceCheckerInterface } from "../../../../contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker";
4
- export declare class ICreditFacadeBalanceChecker__factory {
5
- static readonly abi: {
6
- inputs: {
7
- internalType: string;
8
- name: string;
9
- type: string;
10
- }[];
11
- name: string;
12
- outputs: never[];
13
- stateMutability: string;
14
- type: string;
15
- }[];
16
- static createInterface(): ICreditFacadeBalanceCheckerInterface;
17
- static connect(address: string, signerOrProvider: Signer | Provider): ICreditFacadeBalanceChecker;
18
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ICreditFacadeBalanceChecker__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: "uint256",
18
- name: "minBalance",
19
- type: "uint256",
20
- },
21
- ],
22
- name: "revertIfBalanceLessThan",
23
- outputs: [],
24
- stateMutability: "nonpayable",
25
- type: "function",
26
- },
27
- ];
28
- var ICreditFacadeBalanceChecker__factory = /** @class */ (function () {
29
- function ICreditFacadeBalanceChecker__factory() {
30
- }
31
- ICreditFacadeBalanceChecker__factory.createInterface = function () {
32
- return new ethers_1.utils.Interface(_abi);
33
- };
34
- ICreditFacadeBalanceChecker__factory.connect = function (address, signerOrProvider) {
35
- return new ethers_1.Contract(address, _abi, signerOrProvider);
36
- };
37
- ICreditFacadeBalanceChecker__factory.abi = _abi;
38
- return ICreditFacadeBalanceChecker__factory;
39
- }());
40
- exports.ICreditFacadeBalanceChecker__factory = ICreditFacadeBalanceChecker__factory;
@@ -1,28 +0,0 @@
1
- import { Signer, ContractFactory, Overrides } from "ethers";
2
- import type { Provider, TransactionRequest } from "@ethersproject/providers";
3
- import type { BalanceOps, BalanceOpsInterface } from "../../../../contracts/pathfinder/Balances.sol/BalanceOps";
4
- declare type BalanceOpsConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
5
- export declare class BalanceOps__factory extends ContractFactory {
6
- constructor(...args: BalanceOpsConstructorParams);
7
- deploy(overrides?: Overrides & {
8
- from?: string | Promise<string>;
9
- }): Promise<BalanceOps>;
10
- getDeployTransaction(overrides?: Overrides & {
11
- from?: string | Promise<string>;
12
- }): TransactionRequest;
13
- attach(address: string): BalanceOps;
14
- connect(signer: Signer): BalanceOps__factory;
15
- static readonly bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212208e3c01175eb72141637d06397c3fbcb24a1663a5a3161e45f323521175acaa7b64736f6c634300080a0033";
16
- static readonly abi: {
17
- inputs: {
18
- internalType: string;
19
- name: string;
20
- type: string;
21
- }[];
22
- name: string;
23
- type: string;
24
- }[];
25
- static createInterface(): BalanceOpsInterface;
26
- static connect(address: string, signerOrProvider: Signer | Provider): BalanceOps;
27
- }
28
- export {};
@@ -1,76 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.BalanceOps__factory = void 0;
19
- /* Autogenerated file. Do not edit manually. */
20
- /* tslint:disable */
21
- /* eslint-disable */
22
- var ethers_1 = require("ethers");
23
- var _abi = [
24
- {
25
- inputs: [
26
- {
27
- internalType: "address",
28
- name: "",
29
- type: "address",
30
- },
31
- ],
32
- name: "UnknownToken",
33
- type: "error",
34
- },
35
- ];
36
- var _bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212208e3c01175eb72141637d06397c3fbcb24a1663a5a3161e45f323521175acaa7b64736f6c634300080a0033";
37
- var isSuperArgs = function (xs) { return xs.length > 1; };
38
- var BalanceOps__factory = /** @class */ (function (_super) {
39
- __extends(BalanceOps__factory, _super);
40
- function BalanceOps__factory() {
41
- var args = [];
42
- for (var _i = 0; _i < arguments.length; _i++) {
43
- args[_i] = arguments[_i];
44
- }
45
- var _this = this;
46
- if (isSuperArgs(args)) {
47
- _this = _super.apply(this, args) || this;
48
- }
49
- else {
50
- _this = _super.call(this, _abi, _bytecode, args[0]) || this;
51
- }
52
- return _this;
53
- }
54
- BalanceOps__factory.prototype.deploy = function (overrides) {
55
- return _super.prototype.deploy.call(this, overrides || {});
56
- };
57
- BalanceOps__factory.prototype.getDeployTransaction = function (overrides) {
58
- return _super.prototype.getDeployTransaction.call(this, overrides || {});
59
- };
60
- BalanceOps__factory.prototype.attach = function (address) {
61
- return _super.prototype.attach.call(this, address);
62
- };
63
- BalanceOps__factory.prototype.connect = function (signer) {
64
- return _super.prototype.connect.call(this, signer);
65
- };
66
- BalanceOps__factory.createInterface = function () {
67
- return new ethers_1.utils.Interface(_abi);
68
- };
69
- BalanceOps__factory.connect = function (address, signerOrProvider) {
70
- return new ethers_1.Contract(address, _abi, signerOrProvider);
71
- };
72
- BalanceOps__factory.bytecode = _bytecode;
73
- BalanceOps__factory.abi = _abi;
74
- return BalanceOps__factory;
75
- }(ethers_1.ContractFactory));
76
- exports.BalanceOps__factory = BalanceOps__factory;
@@ -1 +0,0 @@
1
- export { BalanceOps__factory } from "./BalanceOps__factory";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BalanceOps__factory = void 0;
4
- /* Autogenerated file. Do not edit manually. */
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- var BalanceOps__factory_1 = require("./BalanceOps__factory");
8
- Object.defineProperty(exports, "BalanceOps__factory", { enumerable: true, get: function () { return BalanceOps__factory_1.BalanceOps__factory; } });