@gearbox-protocol/deploy-tools 5.39.2 → 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 +106 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -413083,6 +413083,79 @@ var pythPriceFeedAbi = [
|
|
|
413083
413083
|
{ type: "error", name: "PriceTimestampTooFarAheadException", inputs: [] },
|
|
413084
413084
|
{ type: "error", name: "PriceTimestampTooFarBehindException", inputs: [] }
|
|
413085
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
|
+
];
|
|
413086
413159
|
|
|
413087
413160
|
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/isUpdatablePriceFeed.js
|
|
413088
413161
|
function isUpdatablePriceFeed(pf) {
|
|
@@ -413553,6 +413626,35 @@ var PendleTWAPPTPriceFeed = class extends AbstractPriceFeedContract {
|
|
|
413553
413626
|
}
|
|
413554
413627
|
};
|
|
413555
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
|
+
|
|
413556
413658
|
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/PythPriceFeed.js
|
|
413557
413659
|
var abi16 = pythPriceFeedAbi;
|
|
413558
413660
|
var PythPriceFeed = class extends AbstractPriceFeedContract {
|
|
@@ -414489,6 +414591,8 @@ var PriceFeedRegister = class extends SDKConstruct {
|
|
|
414489
414591
|
return new BoundedPriceFeedContract(this.sdk, data);
|
|
414490
414592
|
case "PRICE_FEED::COMPOSITE":
|
|
414491
414593
|
return new CompositePriceFeedContract(this.sdk, data);
|
|
414594
|
+
case "PRICE_FEED::CONSTANT":
|
|
414595
|
+
return new ConstantPriceFeedContract(this.sdk, data);
|
|
414492
414596
|
case "PRICE_FEED::CURVE_CRYPTO":
|
|
414493
414597
|
return new CurveCryptoPriceFeedContract(this.sdk, data);
|
|
414494
414598
|
case "PRICE_FEED::CURVE_STABLE":
|
|
@@ -448694,7 +448798,7 @@ function getRenderer(opts) {
|
|
|
448694
448798
|
var package_default = {
|
|
448695
448799
|
name: "@gearbox-protocol/deploy-tools",
|
|
448696
448800
|
description: "Gearbox deploy tools",
|
|
448697
|
-
version: "5.39.
|
|
448801
|
+
version: "5.39.3",
|
|
448698
448802
|
homepage: "https://gearbox.fi",
|
|
448699
448803
|
keywords: [
|
|
448700
448804
|
"gearbox"
|
|
@@ -448734,7 +448838,7 @@ var package_default = {
|
|
|
448734
448838
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
448735
448839
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
448736
448840
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
448737
|
-
"@gearbox-protocol/sdk": "8.
|
|
448841
|
+
"@gearbox-protocol/sdk": "8.11.0",
|
|
448738
448842
|
"@gearbox-protocol/sdk-gov": "2.37.0",
|
|
448739
448843
|
"@types/lodash-es": "^4.17.12",
|
|
448740
448844
|
"@types/node": "^24.1.0",
|
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,7 +41,7 @@
|
|
|
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
47
|
"@types/node": "^24.1.0",
|