@gearbox-protocol/sdk 9.15.0 → 9.15.2
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/dist/cjs/abi/package.json +1 -0
- package/dist/cjs/abi/router/pendleRouterWorker.js +0 -16
- package/dist/cjs/dev/mint/factory.js +1 -1
- package/dist/cjs/permissionless/bindings/address-provider.js +1 -1
- package/dist/cjs/permissionless/bindings/base-contract.js +2 -2
- package/dist/cjs/permissionless/bindings/bytecode-repository.js +3 -3
- package/dist/cjs/permissionless/bindings/compressors/index.js +4 -4
- package/dist/cjs/permissionless/bindings/compressors/token-compressor.js +1 -1
- package/dist/cjs/permissionless/bindings/compressors/withdrawal-compressor.js +1 -1
- package/dist/cjs/permissionless/bindings/cross-chain-multisig.js +6 -6
- package/dist/cjs/permissionless/bindings/factory/abstract-factory.js +2 -2
- package/dist/cjs/permissionless/bindings/factory/credit-factory.js +1 -1
- package/dist/cjs/permissionless/bindings/factory/pool-factory.js +1 -1
- package/dist/cjs/permissionless/bindings/factory/price-oracle-factory.js +1 -1
- package/dist/cjs/permissionless/bindings/governance/batches-chain.js +1 -1
- package/dist/cjs/permissionless/bindings/governance/governor.js +6 -6
- package/dist/cjs/permissionless/bindings/governance/index.js +6 -6
- package/dist/cjs/permissionless/bindings/governance/timelock.js +1 -1
- package/dist/cjs/permissionless/bindings/index.js +28 -28
- package/dist/cjs/permissionless/bindings/instance-manager.js +5 -5
- package/dist/cjs/permissionless/bindings/market-configurator-factory.js +1 -1
- package/dist/cjs/permissionless/bindings/market-configurator.js +10 -10
- package/dist/cjs/permissionless/bindings/price-feed-store.js +4 -4
- package/dist/cjs/permissionless/bindings/pricefeeds/index.js +17 -17
- package/dist/cjs/permissionless/bindings/router/index.js +2 -2
- package/dist/cjs/permissionless/bindings/router/routing-manager.js +1 -1
- package/dist/cjs/permissionless/bindings/treasury-splitter.js +1 -1
- package/dist/cjs/permissionless/core/index.js +12 -12
- package/dist/cjs/permissionless/index.js +12 -12
- package/dist/cjs/permissionless/plugins/index.js +3 -3
- package/dist/cjs/permissionless/utils/abi-decoder.js +2 -2
- package/dist/cjs/permissionless/utils/governance/index.js +6 -6
- package/dist/cjs/permissionless/utils/governance/timelock-txs.js +1 -1
- package/dist/cjs/permissionless/utils/index.js +18 -18
- package/dist/cjs/permissionless/utils/price-update/get-price-feeds.js +4 -4
- package/dist/cjs/permissionless/utils/price-update/get-price-update-tx.js +2 -2
- package/dist/cjs/permissionless/utils/price-update/index.js +8 -8
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +4 -1
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +5 -3
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +8 -3
- package/dist/cjs/plugins/adapters/abi/utils.js +6 -6
- package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +29 -9
- package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +45 -0
- package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +52 -23
- package/dist/cjs/plugins/adapters/contracts/types.js +17 -0
- package/dist/cjs/plugins/adapters/index.js +4 -4
- package/dist/cjs/plugins/adapters/types.js +1 -0
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/curveLP.js +1 -1
- package/dist/cjs/sdk/sdk-legacy/core/transactions.js +30 -30
- package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +1 -1
- package/dist/esm/abi/package.json +1 -0
- package/dist/esm/abi/router/pendleRouterWorker.js +0 -16
- package/dist/esm/dev/mint/factory.js +1 -1
- package/dist/esm/permissionless/bindings/address-provider.js +1 -1
- package/dist/esm/permissionless/bindings/base-contract.js +2 -2
- package/dist/esm/permissionless/bindings/bytecode-repository.js +3 -3
- package/dist/esm/permissionless/bindings/compressors/index.js +2 -2
- package/dist/esm/permissionless/bindings/compressors/token-compressor.js +1 -1
- package/dist/esm/permissionless/bindings/compressors/withdrawal-compressor.js +1 -1
- package/dist/esm/permissionless/bindings/cross-chain-multisig.js +6 -6
- package/dist/esm/permissionless/bindings/factory/abstract-factory.js +2 -2
- package/dist/esm/permissionless/bindings/factory/credit-factory.js +1 -1
- package/dist/esm/permissionless/bindings/factory/pool-factory.js +1 -1
- package/dist/esm/permissionless/bindings/factory/price-oracle-factory.js +1 -1
- package/dist/esm/permissionless/bindings/governance/batches-chain.js +1 -1
- package/dist/esm/permissionless/bindings/governance/governor.js +6 -6
- package/dist/esm/permissionless/bindings/governance/index.js +3 -3
- package/dist/esm/permissionless/bindings/governance/timelock.js +1 -1
- package/dist/esm/permissionless/bindings/index.js +14 -14
- package/dist/esm/permissionless/bindings/instance-manager.js +5 -5
- package/dist/esm/permissionless/bindings/market-configurator-factory.js +1 -1
- package/dist/esm/permissionless/bindings/market-configurator.js +8 -8
- package/dist/esm/permissionless/bindings/price-feed-store.js +4 -4
- package/dist/esm/permissionless/bindings/pricefeeds/index.js +17 -17
- package/dist/esm/permissionless/bindings/router/index.js +1 -1
- package/dist/esm/permissionless/bindings/router/routing-manager.js +1 -1
- package/dist/esm/permissionless/bindings/treasury-splitter.js +1 -1
- package/dist/esm/permissionless/core/index.js +6 -6
- package/dist/esm/permissionless/index.js +6 -6
- package/dist/esm/permissionless/plugins/index.js +3 -3
- package/dist/esm/permissionless/utils/abi-decoder.js +2 -2
- package/dist/esm/permissionless/utils/governance/index.js +3 -3
- package/dist/esm/permissionless/utils/governance/timelock-txs.js +1 -1
- package/dist/esm/permissionless/utils/index.js +9 -9
- package/dist/esm/permissionless/utils/price-update/get-price-feeds.js +4 -4
- package/dist/esm/permissionless/utils/price-update/get-price-update-tx.js +4 -2
- package/dist/esm/permissionless/utils/price-update/get-prices.js +2 -6
- package/dist/esm/permissionless/utils/price-update/index.js +4 -4
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +4 -1
- package/dist/esm/plugins/adapters/abi/actionAbi.js +5 -3
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +8 -3
- package/dist/esm/plugins/adapters/abi/utils.js +2 -2
- package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +29 -9
- package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -0
- package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +52 -23
- package/dist/esm/plugins/adapters/contracts/types.js +15 -0
- package/dist/esm/plugins/adapters/index.js +2 -2
- package/dist/esm/plugins/adapters/types.js +1 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/curveLP.js +1 -1
- package/dist/esm/sdk/sdk-legacy/core/transactions.js +31 -31
- package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +1 -1
- package/dist/types/abi/router/pendleRouterWorker.d.ts +0 -20
- package/dist/types/dev/mint/factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/address-provider.d.ts +1 -1
- package/dist/types/permissionless/bindings/base-contract.d.ts +2 -2
- package/dist/types/permissionless/bindings/bytecode-repository.d.ts +4 -4
- package/dist/types/permissionless/bindings/compressors/index.d.ts +2 -2
- package/dist/types/permissionless/bindings/compressors/token-compressor.d.ts +1 -1
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +2 -2
- package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/credit-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/pool-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/governance/batches-chain.d.ts +1 -1
- package/dist/types/permissionless/bindings/governance/governor.d.ts +4 -4
- package/dist/types/permissionless/bindings/governance/index.d.ts +3 -3
- package/dist/types/permissionless/bindings/governance/timelock.d.ts +2 -2
- package/dist/types/permissionless/bindings/index.d.ts +14 -14
- package/dist/types/permissionless/bindings/instance-manager.d.ts +2 -2
- package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +1 -1
- package/dist/types/permissionless/bindings/market-configurator.d.ts +6 -6
- package/dist/types/permissionless/bindings/price-feed-store.d.ts +3 -3
- package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/bounded.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/composite.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/constant.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/external.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/index.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/pyth.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/redstone.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.ts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/zero.d.ts +1 -1
- package/dist/types/permissionless/bindings/router/index.d.ts +1 -1
- package/dist/types/permissionless/bindings/router/routing-manager.d.ts +2 -2
- package/dist/types/permissionless/bindings/treasury-splitter.d.ts +2 -2
- package/dist/types/permissionless/core/index.d.ts +6 -6
- package/dist/types/permissionless/index.d.ts +6 -6
- package/dist/types/permissionless/plugins/index.d.ts +3 -3
- package/dist/types/permissionless/utils/governance/batch.d.ts +1 -1
- package/dist/types/permissionless/utils/governance/index.d.ts +3 -3
- package/dist/types/permissionless/utils/governance/timelock-txs.d.ts +1 -1
- package/dist/types/permissionless/utils/governance/types.d.ts +1 -1
- package/dist/types/permissionless/utils/index.d.ts +9 -9
- package/dist/types/permissionless/utils/price-update/get-price-feeds.d.ts +1 -1
- package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.ts +1 -1
- package/dist/types/permissionless/utils/price-update/index.d.ts +4 -4
- package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
- package/dist/types/plugins/adapters/abi/conctructorAbi.d.ts +1 -1
- package/dist/types/plugins/adapters/abi/utils.d.ts +1 -1
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +5 -1
- package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +7 -1
- package/dist/types/plugins/adapters/contracts/types.d.ts +11 -0
- package/dist/types/plugins/adapters/index.d.ts +2 -2
- package/dist/types/plugins/adapters/types.d.ts +2 -1
- package/dist/types/plugins/zappers/extraZappers.d.ts +2 -2
- package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +1 -2
- package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +1 -2
- package/dist/types/sdk/market/oracle/PriceOracleV300Contract.d.ts +1 -1
- package/package.json +1 -11
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { formatBN } from "../../utils/index.js";
|
|
1
|
+
import { formatBN, json_parse, json_stringify } from "../../utils/index.js";
|
|
2
2
|
import { BigIntMath } from "../utils/math.js";
|
|
3
3
|
import { EVMTx } from "./eventOrTx.js";
|
|
4
4
|
const GEAR_DECIMALS = 18;
|
|
5
5
|
class TxSerializer {
|
|
6
6
|
static serialize(items) {
|
|
7
|
-
return
|
|
7
|
+
return json_stringify(items.map((i) => i.serialize()));
|
|
8
8
|
}
|
|
9
9
|
static deserialize(data) {
|
|
10
|
-
return
|
|
11
|
-
const params =
|
|
10
|
+
return json_parse(data).map((e) => {
|
|
11
|
+
const params = json_parse(e.content);
|
|
12
12
|
switch (e.type) {
|
|
13
13
|
case "TxAddLiquidity":
|
|
14
14
|
return new TxAddLiquidity(params);
|
|
@@ -90,7 +90,7 @@ class TxAddLiquidity extends EVMTx {
|
|
|
90
90
|
serialize() {
|
|
91
91
|
return {
|
|
92
92
|
type: "TxAddLiquidity",
|
|
93
|
-
content:
|
|
93
|
+
content: json_stringify(this)
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -114,7 +114,7 @@ class TxRemoveLiquidity extends EVMTx {
|
|
|
114
114
|
serialize() {
|
|
115
115
|
return {
|
|
116
116
|
type: "TxRemoveLiquidity",
|
|
117
|
-
content:
|
|
117
|
+
content: json_stringify(this)
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -141,7 +141,7 @@ class TxStakeDiesel extends EVMTx {
|
|
|
141
141
|
serialize() {
|
|
142
142
|
return {
|
|
143
143
|
type: "TxStakeDiesel",
|
|
144
|
-
content:
|
|
144
|
+
content: json_stringify(this)
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -168,7 +168,7 @@ class TxUnstakeDiesel extends EVMTx {
|
|
|
168
168
|
serialize() {
|
|
169
169
|
return {
|
|
170
170
|
type: "TxUnstakeDiesel",
|
|
171
|
-
content:
|
|
171
|
+
content: json_stringify(this)
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -200,7 +200,7 @@ class TXSwap extends EVMTx {
|
|
|
200
200
|
serialize() {
|
|
201
201
|
return {
|
|
202
202
|
type: "TxSwap",
|
|
203
|
-
content:
|
|
203
|
+
content: json_stringify(this)
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
}
|
|
@@ -224,7 +224,7 @@ class TxAddCollateral extends EVMTx {
|
|
|
224
224
|
serialize() {
|
|
225
225
|
return {
|
|
226
226
|
type: "TxAddCollateral",
|
|
227
|
-
content:
|
|
227
|
+
content: json_stringify(this)
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -248,7 +248,7 @@ class TxIncreaseBorrowAmount extends EVMTx {
|
|
|
248
248
|
serialize() {
|
|
249
249
|
return {
|
|
250
250
|
type: "TxIncreaseBorrowAmount",
|
|
251
|
-
content:
|
|
251
|
+
content: json_stringify(this)
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -272,7 +272,7 @@ class TxDecreaseBorrowAmount extends EVMTx {
|
|
|
272
272
|
serialize() {
|
|
273
273
|
return {
|
|
274
274
|
type: "TxIncreaseBorrowAmount",
|
|
275
|
-
content:
|
|
275
|
+
content: json_stringify(this)
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -313,7 +313,7 @@ class TxOpenMultitokenAccount extends EVMTx {
|
|
|
313
313
|
serialize() {
|
|
314
314
|
return {
|
|
315
315
|
type: "TxOpenMultitokenAccount",
|
|
316
|
-
content:
|
|
316
|
+
content: json_stringify(this)
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -324,7 +324,7 @@ class TxClaimNFT extends EVMTx {
|
|
|
324
324
|
serialize() {
|
|
325
325
|
return {
|
|
326
326
|
type: "TxClaimNFT",
|
|
327
|
-
content:
|
|
327
|
+
content: json_stringify(this)
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -350,7 +350,7 @@ class TxClaimRewards extends EVMTx {
|
|
|
350
350
|
serialize() {
|
|
351
351
|
return {
|
|
352
352
|
type: "TxClaimRewards",
|
|
353
|
-
content:
|
|
353
|
+
content: json_stringify(this)
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -395,7 +395,7 @@ class TxStartDelayedWithdrawal extends EVMTx {
|
|
|
395
395
|
serialize() {
|
|
396
396
|
return {
|
|
397
397
|
type: "TxStartDelayedWithdrawal",
|
|
398
|
-
content:
|
|
398
|
+
content: json_stringify(this)
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -411,7 +411,7 @@ class TxMigrateCreditAccount extends EVMTx {
|
|
|
411
411
|
serialize() {
|
|
412
412
|
return {
|
|
413
413
|
type: "TxMigrateCreditAccount",
|
|
414
|
-
content:
|
|
414
|
+
content: json_stringify(this)
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -427,7 +427,7 @@ class TxRepayAccount extends EVMTx {
|
|
|
427
427
|
serialize() {
|
|
428
428
|
return {
|
|
429
429
|
type: "TxRepayAccount",
|
|
430
|
-
content:
|
|
430
|
+
content: json_stringify(this)
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
433
|
}
|
|
@@ -443,7 +443,7 @@ class TxLiquidateAccount extends EVMTx {
|
|
|
443
443
|
serialize() {
|
|
444
444
|
return {
|
|
445
445
|
type: "TxLiquidateAccount",
|
|
446
|
-
content:
|
|
446
|
+
content: json_stringify(this)
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -459,7 +459,7 @@ class TxCloseAccount extends EVMTx {
|
|
|
459
459
|
serialize() {
|
|
460
460
|
return {
|
|
461
461
|
type: "TxCloseAccount",
|
|
462
|
-
content:
|
|
462
|
+
content: json_stringify(this)
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -476,7 +476,7 @@ class TxApprove extends EVMTx {
|
|
|
476
476
|
serialize() {
|
|
477
477
|
return {
|
|
478
478
|
type: "TxApprove",
|
|
479
|
-
content:
|
|
479
|
+
content: json_stringify(this)
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
}
|
|
@@ -509,7 +509,7 @@ class TxUpdateQuota extends EVMTx {
|
|
|
509
509
|
serialize() {
|
|
510
510
|
return {
|
|
511
511
|
type: "TxUpdateQuota",
|
|
512
|
-
content:
|
|
512
|
+
content: json_stringify(this)
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -526,7 +526,7 @@ class TxGaugeStake extends EVMTx {
|
|
|
526
526
|
serialize() {
|
|
527
527
|
return {
|
|
528
528
|
type: "TxGaugeStake",
|
|
529
|
-
content:
|
|
529
|
+
content: json_stringify(this)
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
532
|
}
|
|
@@ -543,7 +543,7 @@ class TxGaugeUnstake extends EVMTx {
|
|
|
543
543
|
serialize() {
|
|
544
544
|
return {
|
|
545
545
|
type: "TxGaugeUnstake",
|
|
546
|
-
content:
|
|
546
|
+
content: json_stringify(this)
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -554,7 +554,7 @@ class TxGaugeClaim extends EVMTx {
|
|
|
554
554
|
serialize() {
|
|
555
555
|
return {
|
|
556
556
|
type: "TxGaugeClaim",
|
|
557
|
-
content:
|
|
557
|
+
content: json_stringify(this)
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -573,7 +573,7 @@ class TxGaugeVote extends EVMTx {
|
|
|
573
573
|
serialize() {
|
|
574
574
|
return {
|
|
575
575
|
type: "TxGaugeVote",
|
|
576
|
-
content:
|
|
576
|
+
content: json_stringify(this)
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
}
|
|
@@ -599,7 +599,7 @@ class TxWithdrawCollateral extends EVMTx {
|
|
|
599
599
|
serialize() {
|
|
600
600
|
return {
|
|
601
601
|
type: "TxWithdrawCollateral",
|
|
602
|
-
content:
|
|
602
|
+
content: json_stringify(this)
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
}
|
|
@@ -615,7 +615,7 @@ class TxAddBot extends EVMTx {
|
|
|
615
615
|
serialize() {
|
|
616
616
|
return {
|
|
617
617
|
type: "TxAddBot",
|
|
618
|
-
content:
|
|
618
|
+
content: json_stringify(this)
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
}
|
|
@@ -631,7 +631,7 @@ class TxRemoveBot extends EVMTx {
|
|
|
631
631
|
serialize() {
|
|
632
632
|
return {
|
|
633
633
|
type: "TxAddBot",
|
|
634
|
-
content:
|
|
634
|
+
content: json_stringify(this)
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
}
|
|
@@ -659,7 +659,7 @@ class TxEnableTokens extends EVMTx {
|
|
|
659
659
|
serialize() {
|
|
660
660
|
return {
|
|
661
661
|
type: "TxEnableTokens",
|
|
662
|
-
content:
|
|
662
|
+
content: json_stringify(this)
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -683,7 +683,7 @@ class TxFillOrder extends EVMTx {
|
|
|
683
683
|
serialize() {
|
|
684
684
|
return {
|
|
685
685
|
type: "TxFillOrder",
|
|
686
|
-
content:
|
|
686
|
+
content: json_stringify(this)
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
689
|
}
|
|
@@ -19,7 +19,7 @@ const HUMAN_READABLE_TITLES = {
|
|
|
19
19
|
PT_uptBTC_14AUG2025: "pt.uptBTC(14.08.25)",
|
|
20
20
|
PT_sUSDX_1SEP2025: "pt.sUSDX(1.09.25)",
|
|
21
21
|
PT_sUSDf_25SEP2025: "pt.sUSDf(25.09.25)",
|
|
22
|
-
|
|
22
|
+
"PT-sUSDf-29JAN2026": "pt.sUSDf(29.01.26)",
|
|
23
23
|
PT_USDf_29JAN2026: "pt.USDf(29.01.26)",
|
|
24
24
|
stkcvxllamathena_v3_1: "stkcvxllamathena",
|
|
25
25
|
stkcvxRLUSDUSDC_v3_1: "stkcvxRLUSDUSDC",
|
|
@@ -10,16 +10,6 @@ export declare const pendleRouterWorkerAbi: readonly [{
|
|
|
10
10
|
readonly internalType: "address";
|
|
11
11
|
}];
|
|
12
12
|
readonly stateMutability: "nonpayable";
|
|
13
|
-
}, {
|
|
14
|
-
readonly type: "function";
|
|
15
|
-
readonly name: "approxSlippage";
|
|
16
|
-
readonly inputs: readonly [];
|
|
17
|
-
readonly outputs: readonly [{
|
|
18
|
-
readonly name: "";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
readonly internalType: "uint256";
|
|
21
|
-
}];
|
|
22
|
-
readonly stateMutability: "view";
|
|
23
13
|
}, {
|
|
24
14
|
readonly type: "function";
|
|
25
15
|
readonly name: "buildEdges";
|
|
@@ -567,16 +557,6 @@ export declare const pendleRouterWorkerAbi: readonly [{
|
|
|
567
557
|
readonly internalType: "address";
|
|
568
558
|
}];
|
|
569
559
|
readonly stateMutability: "view";
|
|
570
|
-
}, {
|
|
571
|
-
readonly type: "function";
|
|
572
|
-
readonly name: "setApproxSlippage";
|
|
573
|
-
readonly inputs: readonly [{
|
|
574
|
-
readonly name: "_approxSlippage";
|
|
575
|
-
readonly type: "uint256";
|
|
576
|
-
readonly internalType: "uint256";
|
|
577
|
-
}];
|
|
578
|
-
readonly outputs: readonly [];
|
|
579
|
-
readonly stateMutability: "nonpayable";
|
|
580
560
|
}, {
|
|
581
561
|
readonly type: "function";
|
|
582
562
|
readonly name: "trimSpecialVertex";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from "viem";
|
|
2
2
|
import type { GearboxSDK } from "../../sdk/index.js";
|
|
3
|
-
import type { AnvilClient } from "../createAnvilClient";
|
|
3
|
+
import type { AnvilClient } from "../createAnvilClient.js";
|
|
4
4
|
import type { IMinter } from "./types.js";
|
|
5
|
-
export declare function createMinter(sdk: GearboxSDK, anvil: AnvilClient,
|
|
5
|
+
export declare function createMinter(sdk: GearboxSDK, anvil: AnvilClient, _token: Address): IMinter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Abi, type Address, type Client, type ContractEventArgs, type ContractEventName, type ContractFunctionName, type DecodeFunctionDataReturnType, type EncodeFunctionDataParameters, type GetContractEventsReturnType, type GetContractReturnType, type Hex, type PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import type { CrossChainCall, ParsedCall } from "../core/proposal";
|
|
3
|
+
import type { CrossChainCall, ParsedCall } from "../core/proposal.js";
|
|
4
4
|
export declare class BaseContract<const abi extends Abi | readonly unknown[]> {
|
|
5
5
|
readonly abi: abi;
|
|
6
6
|
readonly address: Address;
|
|
@@ -13,7 +13,7 @@ export declare class BaseContract<const abi extends Abi | readonly unknown[]> {
|
|
|
13
13
|
static parse(address: Address, calldata: Hex): ParsedCall;
|
|
14
14
|
parseFunctionData(calldata: Hex): ParsedCall;
|
|
15
15
|
protected wrapParseCall(params: DecodeFunctionDataReturnType<abi>, parsedParams: Record<string, string>): ParsedCall;
|
|
16
|
-
parseFunctionParams(
|
|
16
|
+
parseFunctionParams(_params: DecodeFunctionDataReturnType<abi>): ParsedCall | undefined;
|
|
17
17
|
createRawTx<functionName extends ContractFunctionName<abi> | undefined = undefined>(parameters: Omit<EncodeFunctionDataParameters<abi, functionName>, "abi"> & {
|
|
18
18
|
description?: string;
|
|
19
19
|
}): RawTx;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type Hex, type Log, type PublicClient, type WalletClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import type { Auditor } from "../core/auditor";
|
|
4
|
-
import type { AuditEvent, Bytecode, DeploymentExtended } from "../core/bytecode";
|
|
5
|
-
import type { ParsedCall } from "../core/proposal";
|
|
6
|
-
import { BaseContract } from "./base-contract";
|
|
3
|
+
import type { Auditor } from "../core/auditor.js";
|
|
4
|
+
import type { AuditEvent, Bytecode, DeploymentExtended } from "../core/bytecode.js";
|
|
5
|
+
import type { ParsedCall } from "../core/proposal.js";
|
|
6
|
+
import { BaseContract } from "./base-contract.js";
|
|
7
7
|
declare const abi: readonly [{
|
|
8
8
|
readonly type: "function";
|
|
9
9
|
readonly inputs: readonly [];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./token-compressor";
|
|
2
|
-
export * from "./withdrawal-compressor";
|
|
1
|
+
export * from "./token-compressor.js";
|
|
2
|
+
export * from "./withdrawal-compressor.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type PublicClient } from "viem";
|
|
2
|
-
import type { ParsedCall } from "../../core";
|
|
3
|
-
import { BaseContract } from "../base-contract";
|
|
2
|
+
import type { ParsedCall } from "../../core/index.js";
|
|
3
|
+
import { BaseContract } from "../base-contract.js";
|
|
4
4
|
declare const abi: readonly [{
|
|
5
5
|
readonly type: "constructor";
|
|
6
6
|
readonly inputs: readonly [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type Hex, type PublicClient, type WalletClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import type { Batch, ParsedCall, RecoveryMessage } from "../core/proposal";
|
|
4
|
-
import { BaseContract } from "./base-contract";
|
|
3
|
+
import type { Batch, ParsedCall, RecoveryMessage } from "../core/proposal.js";
|
|
4
|
+
import { BaseContract } from "./base-contract.js";
|
|
5
5
|
declare const abi: readonly [{
|
|
6
6
|
readonly type: "constructor";
|
|
7
7
|
readonly inputs: readonly [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Address, type Hex } from "viem";
|
|
2
|
-
import type { DeployParams, SetExpirationDateParams, SetFeesParams } from "../types";
|
|
3
|
-
import { AbstractFactory } from "./abstract-factory";
|
|
2
|
+
import type { DeployParams, SetExpirationDateParams, SetFeesParams } from "../types.js";
|
|
3
|
+
import { AbstractFactory } from "./abstract-factory.js";
|
|
4
4
|
declare const abi: readonly [{
|
|
5
5
|
readonly type: "function";
|
|
6
6
|
readonly inputs: readonly [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Hex } from "viem";
|
|
2
|
-
import type { SetTokenQuotaIncreaseFeeParams } from "../types";
|
|
3
|
-
import { AbstractFactory } from "./abstract-factory";
|
|
2
|
+
import type { SetTokenQuotaIncreaseFeeParams } from "../types.js";
|
|
3
|
+
import { AbstractFactory } from "./abstract-factory.js";
|
|
4
4
|
declare const abi: readonly [{
|
|
5
5
|
readonly type: "function";
|
|
6
6
|
readonly inputs: readonly [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hex } from "viem";
|
|
2
|
-
import type { SetPriceFeedParams, SetReservePriceFeedParams } from "../types";
|
|
3
|
-
import { AbstractFactory } from "./abstract-factory";
|
|
2
|
+
import type { SetPriceFeedParams, SetReservePriceFeedParams } from "../types.js";
|
|
3
|
+
import { AbstractFactory } from "./abstract-factory.js";
|
|
4
4
|
declare const abi: readonly [{
|
|
5
5
|
readonly type: "function";
|
|
6
6
|
readonly inputs: readonly [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Hash, PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../../sdk/types/index.js";
|
|
3
|
-
import { BaseContract } from "../base-contract";
|
|
3
|
+
import { BaseContract } from "../base-contract.js";
|
|
4
4
|
declare const abi: readonly [{
|
|
5
5
|
readonly type: "function";
|
|
6
6
|
readonly name: "contractType";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type Hash, type Hex, type PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../../sdk/types/index.js";
|
|
3
|
-
import type { ParsedCall } from "../../core";
|
|
4
|
-
import { BaseContract } from "../base-contract";
|
|
5
|
-
import { BatchesChainContract } from "./batches-chain";
|
|
6
|
-
import type { SafeTx } from "./types";
|
|
3
|
+
import type { ParsedCall } from "../../core/index.js";
|
|
4
|
+
import { BaseContract } from "../base-contract.js";
|
|
5
|
+
import { BatchesChainContract } from "./batches-chain.js";
|
|
6
|
+
import type { SafeTx } from "./types.js";
|
|
7
7
|
declare const abi: readonly [{
|
|
8
8
|
readonly type: "constructor";
|
|
9
9
|
readonly inputs: readonly [{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./governor";
|
|
2
|
-
export * from "./timelock";
|
|
3
|
-
export * from "./types";
|
|
1
|
+
export * from "./governor.js";
|
|
2
|
+
export * from "./timelock.js";
|
|
3
|
+
export * from "./types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address, PublicClient } from "viem";
|
|
2
2
|
import { iTimeLockAbi } from "../../../abi/governance/iTimeLock.js";
|
|
3
|
-
import { BaseContract } from "../base-contract";
|
|
4
|
-
import type { QueuedAndExecutedTransaction } from "./types";
|
|
3
|
+
import { BaseContract } from "../base-contract.js";
|
|
4
|
+
import type { QueuedAndExecutedTransaction } from "./types.js";
|
|
5
5
|
export declare class TimeLockContract extends BaseContract<typeof iTimeLockAbi> {
|
|
6
6
|
constructor(address: Address, client: PublicClient);
|
|
7
7
|
admin(): Promise<Address>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./address-provider";
|
|
2
|
-
export * from "./base-contract";
|
|
3
|
-
export * from "./bytecode-repository";
|
|
4
|
-
export * from "./compressors";
|
|
5
|
-
export * from "./cross-chain-multisig";
|
|
6
|
-
export * from "./governance";
|
|
7
|
-
export * from "./instance-manager";
|
|
8
|
-
export * from "./market-configurator";
|
|
9
|
-
export * from "./market-configurator-factory";
|
|
10
|
-
export * from "./price-feed-store";
|
|
11
|
-
export * from "./pricefeeds";
|
|
12
|
-
export * from "./router";
|
|
13
|
-
export * from "./treasury-splitter";
|
|
14
|
-
export * from "./types";
|
|
1
|
+
export * from "./address-provider.js";
|
|
2
|
+
export * from "./base-contract.js";
|
|
3
|
+
export * from "./bytecode-repository.js";
|
|
4
|
+
export * from "./compressors/index.js";
|
|
5
|
+
export * from "./cross-chain-multisig.js";
|
|
6
|
+
export * from "./governance/index.js";
|
|
7
|
+
export * from "./instance-manager.js";
|
|
8
|
+
export * from "./market-configurator.js";
|
|
9
|
+
export * from "./market-configurator-factory.js";
|
|
10
|
+
export * from "./price-feed-store.js";
|
|
11
|
+
export * from "./pricefeeds/index.js";
|
|
12
|
+
export * from "./router/index.js";
|
|
13
|
+
export * from "./treasury-splitter.js";
|
|
14
|
+
export * from "./types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type Hex, type PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import type { ParsedCall } from "../core/proposal";
|
|
4
|
-
import { BaseContract } from "./base-contract";
|
|
3
|
+
import type { ParsedCall } from "../core/proposal.js";
|
|
4
|
+
import { BaseContract } from "./base-contract.js";
|
|
5
5
|
declare const abi: readonly [{
|
|
6
6
|
readonly type: "constructor";
|
|
7
7
|
readonly inputs: readonly [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import { BaseContract } from "./base-contract";
|
|
3
|
+
import { BaseContract } from "./base-contract.js";
|
|
4
4
|
declare const abi: readonly [{
|
|
5
5
|
readonly type: "function";
|
|
6
6
|
readonly inputs: readonly [{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type Hex, type PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import type { ParsedCall } from "../core/proposal";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import type { AddAssetParams, AllowTokenParams, DeployParams, ForbidAdapterParams, ForbidTokenParams, Market, PauseCreditManagerParams, SetExpirationDateParams, SetFeesParams, SetPriceFeedParams, SetReservePriceFeedParams, SetTokenQuotaIncreaseFeeParams, UnpauseCreditManagerParams } from "./types";
|
|
3
|
+
import type { ParsedCall } from "../core/proposal.js";
|
|
4
|
+
import { CreditFactory } from "./factory/credit-factory.js";
|
|
5
|
+
import { PoolFactory } from "./factory/pool-factory.js";
|
|
6
|
+
import { PriceOracleFactory } from "./factory/price-oracle-factory.js";
|
|
7
|
+
import { AddressProviderContract, BaseContract } from "./index.js";
|
|
8
|
+
import type { AddAssetParams, AllowTokenParams, DeployParams, ForbidAdapterParams, ForbidTokenParams, Market, PauseCreditManagerParams, SetExpirationDateParams, SetFeesParams, SetPriceFeedParams, SetReservePriceFeedParams, SetTokenQuotaIncreaseFeeParams, UnpauseCreditManagerParams } from "./types.js";
|
|
9
9
|
declare const abi: readonly [{
|
|
10
10
|
readonly type: "function";
|
|
11
11
|
readonly inputs: readonly [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Address, type DecodeFunctionDataReturnType, type Hex, type PublicClient } from "viem";
|
|
2
2
|
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
-
import type { InputValueParams, ParsedCall, PriceFeed } from "../core";
|
|
4
|
-
import { BaseContract } from "./base-contract";
|
|
5
|
-
import type { PriceUpdate } from "./types";
|
|
3
|
+
import type { InputValueParams, ParsedCall, PriceFeed } from "../core/index.js";
|
|
4
|
+
import { BaseContract } from "./base-contract.js";
|
|
5
|
+
import type { PriceUpdate } from "./types.js";
|
|
6
6
|
declare const abi: readonly [{
|
|
7
7
|
readonly type: "function";
|
|
8
8
|
readonly inputs: readonly [{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const balancerStablePriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const balancerWeightedPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const boundedPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const compositePriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const constantPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const curveCryptoPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const curveStablePriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const curveTwapPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const curveUsdPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const erc4626PriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const externalPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const priceFeedSetupParams: PriceFeedSetupParams[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const kodiakPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const mellowLrtPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const pendlePtTwapPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const pythPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const redstonePriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const wstethPriceFeed: PriceFeedSetupParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PriceFeedSetupParams } from "../../core";
|
|
1
|
+
import type { PriceFeedSetupParams } from "../../core/index.js";
|
|
2
2
|
export declare const zeroPriceFeed: PriceFeedSetupParams;
|