@gearbox-protocol/deploy-tools 5.39.1 → 5.39.3
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/index.mjs +109 -4
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -221662,6 +221662,7 @@ var require_config2 = __commonJS({
|
|
|
221662
221662
|
{ chainId: 130n, shortName: "unichain" },
|
|
221663
221663
|
{ chainId: 133n, shortName: "HSKT" },
|
|
221664
221664
|
{ chainId: 137n, shortName: "matic" },
|
|
221665
|
+
{ chainId: 143n, shortName: "mon" },
|
|
221665
221666
|
{ chainId: 146n, shortName: "sonic" },
|
|
221666
221667
|
{ chainId: 148n, shortName: "shimmerevm" },
|
|
221667
221668
|
{ chainId: 155n, shortName: "tenet-testnet" },
|
|
@@ -281274,7 +281275,7 @@ var require_getProtocolKitVersion = __commonJS({
|
|
|
281274
281275
|
"use strict";
|
|
281275
281276
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
281276
281277
|
exports2.getProtocolKitVersion = void 0;
|
|
281277
|
-
var getProtocolKitVersion = () => "5.2.
|
|
281278
|
+
var getProtocolKitVersion = () => "5.2.12";
|
|
281278
281279
|
exports2.getProtocolKitVersion = getProtocolKitVersion;
|
|
281279
281280
|
}
|
|
281280
281281
|
});
|
|
@@ -413082,6 +413083,79 @@ var pythPriceFeedAbi = [
|
|
|
413082
413083
|
{ type: "error", name: "PriceTimestampTooFarAheadException", inputs: [] },
|
|
413083
413084
|
{ type: "error", name: "PriceTimestampTooFarBehindException", inputs: [] }
|
|
413084
413085
|
];
|
|
413086
|
+
var constantPriceFeedAbi = [
|
|
413087
|
+
{
|
|
413088
|
+
type: "constructor",
|
|
413089
|
+
inputs: [
|
|
413090
|
+
{ name: "_price", type: "int256", internalType: "int256" },
|
|
413091
|
+
{ name: "_descriptionTicker", type: "string", internalType: "string" }
|
|
413092
|
+
],
|
|
413093
|
+
stateMutability: "nonpayable"
|
|
413094
|
+
},
|
|
413095
|
+
{
|
|
413096
|
+
type: "function",
|
|
413097
|
+
name: "contractType",
|
|
413098
|
+
inputs: [],
|
|
413099
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
413100
|
+
stateMutability: "view"
|
|
413101
|
+
},
|
|
413102
|
+
{
|
|
413103
|
+
type: "function",
|
|
413104
|
+
name: "decimals",
|
|
413105
|
+
inputs: [],
|
|
413106
|
+
outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
|
|
413107
|
+
stateMutability: "view"
|
|
413108
|
+
},
|
|
413109
|
+
{
|
|
413110
|
+
type: "function",
|
|
413111
|
+
name: "description",
|
|
413112
|
+
inputs: [],
|
|
413113
|
+
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
413114
|
+
stateMutability: "view"
|
|
413115
|
+
},
|
|
413116
|
+
{
|
|
413117
|
+
type: "function",
|
|
413118
|
+
name: "latestRoundData",
|
|
413119
|
+
inputs: [],
|
|
413120
|
+
outputs: [
|
|
413121
|
+
{ name: "", type: "uint80", internalType: "uint80" },
|
|
413122
|
+
{ name: "answer", type: "int256", internalType: "int256" },
|
|
413123
|
+
{ name: "", type: "uint256", internalType: "uint256" },
|
|
413124
|
+
{ name: "", type: "uint256", internalType: "uint256" },
|
|
413125
|
+
{ name: "", type: "uint80", internalType: "uint80" }
|
|
413126
|
+
],
|
|
413127
|
+
stateMutability: "view"
|
|
413128
|
+
},
|
|
413129
|
+
{
|
|
413130
|
+
type: "function",
|
|
413131
|
+
name: "price",
|
|
413132
|
+
inputs: [],
|
|
413133
|
+
outputs: [{ name: "", type: "int256", internalType: "int256" }],
|
|
413134
|
+
stateMutability: "view"
|
|
413135
|
+
},
|
|
413136
|
+
{
|
|
413137
|
+
type: "function",
|
|
413138
|
+
name: "serialize",
|
|
413139
|
+
inputs: [],
|
|
413140
|
+
outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
|
|
413141
|
+
stateMutability: "view"
|
|
413142
|
+
},
|
|
413143
|
+
{
|
|
413144
|
+
type: "function",
|
|
413145
|
+
name: "skipPriceCheck",
|
|
413146
|
+
inputs: [],
|
|
413147
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
413148
|
+
stateMutability: "view"
|
|
413149
|
+
},
|
|
413150
|
+
{
|
|
413151
|
+
type: "function",
|
|
413152
|
+
name: "version",
|
|
413153
|
+
inputs: [],
|
|
413154
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
413155
|
+
stateMutability: "view"
|
|
413156
|
+
},
|
|
413157
|
+
{ type: "error", name: "IncorrectPriceException", inputs: [] }
|
|
413158
|
+
];
|
|
413085
413159
|
|
|
413086
413160
|
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/isUpdatablePriceFeed.js
|
|
413087
413161
|
function isUpdatablePriceFeed(pf) {
|
|
@@ -413552,6 +413626,35 @@ var PendleTWAPPTPriceFeed = class extends AbstractPriceFeedContract {
|
|
|
413552
413626
|
}
|
|
413553
413627
|
};
|
|
413554
413628
|
|
|
413629
|
+
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/ConstantPriceFeed.js
|
|
413630
|
+
var ConstantPriceFeedContract = class extends AbstractPriceFeedContract {
|
|
413631
|
+
price;
|
|
413632
|
+
constructor(sdk, args) {
|
|
413633
|
+
super(sdk, {
|
|
413634
|
+
...args,
|
|
413635
|
+
name: "ConstantPriceFeed",
|
|
413636
|
+
abi: constantPriceFeedAbi,
|
|
413637
|
+
decimals: 8
|
|
413638
|
+
// always 8 for USD price feeds
|
|
413639
|
+
});
|
|
413640
|
+
const decoder = decodeAbiParameters(
|
|
413641
|
+
[
|
|
413642
|
+
{ type: "int256" }
|
|
413643
|
+
// price
|
|
413644
|
+
],
|
|
413645
|
+
args.baseParams.serializedParams
|
|
413646
|
+
);
|
|
413647
|
+
this.price = decoder[0];
|
|
413648
|
+
}
|
|
413649
|
+
stateHuman(raw = true) {
|
|
413650
|
+
return {
|
|
413651
|
+
...super.stateHuman(raw),
|
|
413652
|
+
contractType: "PRICE_FEED::CONSTANT",
|
|
413653
|
+
price: this.price
|
|
413654
|
+
};
|
|
413655
|
+
}
|
|
413656
|
+
};
|
|
413657
|
+
|
|
413555
413658
|
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/PythPriceFeed.js
|
|
413556
413659
|
var abi16 = pythPriceFeedAbi;
|
|
413557
413660
|
var PythPriceFeed = class extends AbstractPriceFeedContract {
|
|
@@ -414488,6 +414591,8 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
414488
414591
|
return new BoundedPriceFeedContract(this.sdk, data);
|
|
414489
414592
|
case "PRICE_FEED::COMPOSITE":
|
|
414490
414593
|
return new CompositePriceFeedContract(this.sdk, data);
|
|
414594
|
+
case "PRICE_FEED::CONSTANT":
|
|
414595
|
+
return new ConstantPriceFeedContract(this.sdk, data);
|
|
414491
414596
|
case "PRICE_FEED::CURVE_CRYPTO":
|
|
414492
414597
|
return new CurveCryptoPriceFeedContract(this.sdk, data);
|
|
414493
414598
|
case "PRICE_FEED::CURVE_STABLE":
|
|
@@ -448693,7 +448798,7 @@ function getRenderer(opts) {
|
|
|
448693
448798
|
var package_default = {
|
|
448694
448799
|
name: "@gearbox-protocol/deploy-tools",
|
|
448695
448800
|
description: "Gearbox deploy tools",
|
|
448696
|
-
version: "5.39.
|
|
448801
|
+
version: "5.39.3",
|
|
448697
448802
|
homepage: "https://gearbox.fi",
|
|
448698
448803
|
keywords: [
|
|
448699
448804
|
"gearbox"
|
|
@@ -448733,10 +448838,10 @@ var package_default = {
|
|
|
448733
448838
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
448734
448839
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
448735
448840
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
448736
|
-
"@gearbox-protocol/sdk": "8.
|
|
448841
|
+
"@gearbox-protocol/sdk": "8.11.0",
|
|
448737
448842
|
"@gearbox-protocol/sdk-gov": "2.37.0",
|
|
448738
448843
|
"@types/lodash-es": "^4.17.12",
|
|
448739
|
-
"@types/node": "^24.0
|
|
448844
|
+
"@types/node": "^24.1.0",
|
|
448740
448845
|
"@types/react": "^19.1.8",
|
|
448741
448846
|
"@types/react-dom": "^19.1.6",
|
|
448742
448847
|
abitype: "^1.0.8",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/deploy-tools",
|
|
3
3
|
"description": "Gearbox deploy tools",
|
|
4
|
-
"version": "5.39.
|
|
4
|
+
"version": "5.39.3",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
42
42
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
43
43
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
44
|
-
"@gearbox-protocol/sdk": "8.
|
|
44
|
+
"@gearbox-protocol/sdk": "8.11.0",
|
|
45
45
|
"@gearbox-protocol/sdk-gov": "2.37.0",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^24.0
|
|
47
|
+
"@types/node": "^24.1.0",
|
|
48
48
|
"@types/react": "^19.1.8",
|
|
49
49
|
"@types/react-dom": "^19.1.6",
|
|
50
50
|
"abitype": "^1.0.8",
|