@gearbox-protocol/sdk 18.4.1 → 18.5.0-next.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/onchain/abi/index.js +2 -0
- package/dist/cjs/onchain/abi/oracles.js +617 -0
- package/dist/cjs/onchain/index.js +4 -0
- package/dist/cjs/onchain/market/index.js +4 -0
- package/dist/cjs/onchain/market/pricefeeds/PriceFeedRegistry.js +4 -0
- package/dist/cjs/onchain/market/pricefeeds/feeds/FixedRateWindowPriceFeed.js +15 -0
- package/dist/cjs/onchain/market/pricefeeds/feeds/MedianPriceFeed.js +15 -0
- package/dist/cjs/onchain/market/pricefeeds/feeds/index.js +4 -0
- package/dist/cjs/onchain/market/pricefeeds/index.js +4 -0
- package/dist/cjs/permissionless/bindings/price-feed-store.js +1 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/fix-rate-window.js +53 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/index.js +7 -3
- package/dist/cjs/permissionless/bindings/pricefeeds/median.js +22 -0
- package/dist/esm/onchain/abi/index.js +1 -1
- package/dist/esm/onchain/abi/oracles.js +616 -1
- package/dist/esm/onchain/index.js +3 -1
- package/dist/esm/onchain/market/index.js +3 -1
- package/dist/esm/onchain/market/pricefeeds/PriceFeedRegistry.js +4 -0
- package/dist/esm/onchain/market/pricefeeds/feeds/FixedRateWindowPriceFeed.js +14 -0
- package/dist/esm/onchain/market/pricefeeds/feeds/MedianPriceFeed.js +14 -0
- package/dist/esm/onchain/market/pricefeeds/feeds/index.js +3 -1
- package/dist/esm/onchain/market/pricefeeds/index.js +3 -1
- package/dist/esm/permissionless/bindings/price-feed-store.js +1 -0
- package/dist/esm/permissionless/bindings/pricefeeds/fix-rate-window.js +52 -0
- package/dist/esm/permissionless/bindings/pricefeeds/index.js +7 -3
- package/dist/esm/permissionless/bindings/pricefeeds/median.js +21 -0
- package/dist/types/onchain/abi/index.d.mts +2 -2
- package/dist/types/onchain/abi/oracles.d.mts +536 -0
- package/dist/types/onchain/index.d.mts +3 -1
- package/dist/types/onchain/market/index.d.mts +3 -1
- package/dist/types/onchain/market/pricefeeds/feeds/FixedRateWindowPriceFeed.d.mts +9 -0
- package/dist/types/onchain/market/pricefeeds/feeds/MedianPriceFeed.d.mts +9 -0
- package/dist/types/onchain/market/pricefeeds/feeds/index.d.mts +3 -1
- package/dist/types/onchain/market/pricefeeds/index.d.mts +3 -1
- package/dist/types/onchain/market/pricefeeds/types.d.mts +1 -1
- package/dist/types/permissionless/bindings/pricefeeds/fix-rate-window.d.mts +3 -0
- package/dist/types/permissionless/bindings/pricefeeds/median.d.mts +3 -0
- package/dist/types/permissionless/core/pricefeed-builder.d.mts +2 -0
- package/package.json +1 -6
- package/dist/cjs/testnets/TestnetsAPI.js +0 -178
- package/dist/cjs/testnets/errors/TestnetNotFoundError.js +0 -14
- package/dist/cjs/testnets/errors/TestnetRequestFailedError.js +0 -23
- package/dist/cjs/testnets/errors/TestnetStatusError.js +0 -18
- package/dist/cjs/testnets/errors/TestnetValidationError.js +0 -23
- package/dist/cjs/testnets/errors/TestnetWaitTimeoutError.js +0 -29
- package/dist/cjs/testnets/errors/TestnetsError.js +0 -33
- package/dist/cjs/testnets/errors/index.js +0 -13
- package/dist/cjs/testnets/index.js +0 -32
- package/dist/cjs/testnets/package.json +0 -1
- package/dist/cjs/testnets/schemas.js +0 -241
- package/dist/cjs/testnets/types.js +0 -1
- package/dist/esm/testnets/TestnetsAPI.js +0 -177
- package/dist/esm/testnets/errors/TestnetNotFoundError.js +0 -13
- package/dist/esm/testnets/errors/TestnetRequestFailedError.js +0 -22
- package/dist/esm/testnets/errors/TestnetStatusError.js +0 -17
- package/dist/esm/testnets/errors/TestnetValidationError.js +0 -22
- package/dist/esm/testnets/errors/TestnetWaitTimeoutError.js +0 -28
- package/dist/esm/testnets/errors/TestnetsError.js +0 -32
- package/dist/esm/testnets/errors/index.js +0 -7
- package/dist/esm/testnets/index.js +0 -11
- package/dist/esm/testnets/package.json +0 -1
- package/dist/esm/testnets/schemas.js +0 -227
- package/dist/esm/testnets/types.js +0 -1
- package/dist/types/testnets/TestnetsAPI.d.mts +0 -106
- package/dist/types/testnets/errors/TestnetNotFoundError.d.mts +0 -10
- package/dist/types/testnets/errors/TestnetRequestFailedError.d.mts +0 -9
- package/dist/types/testnets/errors/TestnetStatusError.d.mts +0 -13
- package/dist/types/testnets/errors/TestnetValidationError.d.mts +0 -14
- package/dist/types/testnets/errors/TestnetWaitTimeoutError.d.mts +0 -19
- package/dist/types/testnets/errors/TestnetsError.d.mts +0 -45
- package/dist/types/testnets/errors/index.d.mts +0 -7
- package/dist/types/testnets/index.d.mts +0 -17
- package/dist/types/testnets/schemas.d.mts +0 -552
- package/dist/types/testnets/types.d.mts +0 -715
|
@@ -10,6 +10,7 @@ exports.curveCryptoLpPriceFeedAbi = require_onchain_abi_oracles.curveCryptoLpPri
|
|
|
10
10
|
exports.curveStableLpPriceFeedAbi = require_onchain_abi_oracles.curveStableLpPriceFeedAbi;
|
|
11
11
|
exports.curveUsdPriceFeedAbi = require_onchain_abi_oracles.curveUsdPriceFeedAbi;
|
|
12
12
|
exports.erc4626PriceFeedAbi = require_onchain_abi_oracles.erc4626PriceFeedAbi;
|
|
13
|
+
exports.fixedRateWindowPriceFeedAbi = require_onchain_abi_oracles.fixedRateWindowPriceFeedAbi;
|
|
13
14
|
exports.iBalancerStablePoolAbi = require_onchain_abi_oracles.iBalancerStablePoolAbi;
|
|
14
15
|
exports.iBalancerWeightedPoolAbi = require_onchain_abi_oracles.iBalancerWeightedPoolAbi;
|
|
15
16
|
exports.iCurvePoolAbi = require_onchain_abi_oracles.iCurvePoolAbi;
|
|
@@ -19,6 +20,7 @@ exports.ilpPriceFeedAbi = require_onchain_abi_oracles.ilpPriceFeedAbi;
|
|
|
19
20
|
exports.ilpPriceFeedEventsAbi = require_onchain_abi_oracles.ilpPriceFeedEventsAbi;
|
|
20
21
|
exports.iwstEthAbi = require_onchain_abi_oracles.iwstEthAbi;
|
|
21
22
|
exports.iyVaultAbi = require_onchain_abi_oracles.iyVaultAbi;
|
|
23
|
+
exports.medianPriceFeedAbi = require_onchain_abi_oracles.medianPriceFeedAbi;
|
|
22
24
|
exports.mellowLrtPriceFeedAbi = require_onchain_abi_oracles.mellowLrtPriceFeedAbi;
|
|
23
25
|
exports.pendleTWAPPTPriceFeedAbi = require_onchain_abi_oracles.pendleTWAPPTPriceFeedAbi;
|
|
24
26
|
exports.pythPriceFeedAbi = require_onchain_abi_oracles.pythPriceFeedAbi;
|
|
@@ -7387,6 +7387,621 @@ const constantPriceFeedAbi = [
|
|
|
7387
7387
|
inputs: []
|
|
7388
7388
|
}
|
|
7389
7389
|
];
|
|
7390
|
+
const medianPriceFeedAbi = [
|
|
7391
|
+
{
|
|
7392
|
+
type: "constructor",
|
|
7393
|
+
inputs: [{
|
|
7394
|
+
name: "priceFeeds",
|
|
7395
|
+
type: "tuple[3]",
|
|
7396
|
+
internalType: "struct PriceFeedParams[3]",
|
|
7397
|
+
components: [{
|
|
7398
|
+
name: "priceFeed",
|
|
7399
|
+
type: "address",
|
|
7400
|
+
internalType: "address"
|
|
7401
|
+
}, {
|
|
7402
|
+
name: "stalenessPeriod",
|
|
7403
|
+
type: "uint32",
|
|
7404
|
+
internalType: "uint32"
|
|
7405
|
+
}]
|
|
7406
|
+
}, {
|
|
7407
|
+
name: "descriptionTicker",
|
|
7408
|
+
type: "string",
|
|
7409
|
+
internalType: "string"
|
|
7410
|
+
}],
|
|
7411
|
+
stateMutability: "nonpayable"
|
|
7412
|
+
},
|
|
7413
|
+
{
|
|
7414
|
+
type: "function",
|
|
7415
|
+
name: "contractType",
|
|
7416
|
+
inputs: [],
|
|
7417
|
+
outputs: [{
|
|
7418
|
+
name: "",
|
|
7419
|
+
type: "bytes32",
|
|
7420
|
+
internalType: "bytes32"
|
|
7421
|
+
}],
|
|
7422
|
+
stateMutability: "view"
|
|
7423
|
+
},
|
|
7424
|
+
{
|
|
7425
|
+
type: "function",
|
|
7426
|
+
name: "decimals",
|
|
7427
|
+
inputs: [],
|
|
7428
|
+
outputs: [{
|
|
7429
|
+
name: "",
|
|
7430
|
+
type: "uint8",
|
|
7431
|
+
internalType: "uint8"
|
|
7432
|
+
}],
|
|
7433
|
+
stateMutability: "view"
|
|
7434
|
+
},
|
|
7435
|
+
{
|
|
7436
|
+
type: "function",
|
|
7437
|
+
name: "description",
|
|
7438
|
+
inputs: [],
|
|
7439
|
+
outputs: [{
|
|
7440
|
+
name: "",
|
|
7441
|
+
type: "string",
|
|
7442
|
+
internalType: "string"
|
|
7443
|
+
}],
|
|
7444
|
+
stateMutability: "view"
|
|
7445
|
+
},
|
|
7446
|
+
{
|
|
7447
|
+
type: "function",
|
|
7448
|
+
name: "latestRoundData",
|
|
7449
|
+
inputs: [],
|
|
7450
|
+
outputs: [
|
|
7451
|
+
{
|
|
7452
|
+
name: "",
|
|
7453
|
+
type: "uint80",
|
|
7454
|
+
internalType: "uint80"
|
|
7455
|
+
},
|
|
7456
|
+
{
|
|
7457
|
+
name: "",
|
|
7458
|
+
type: "int256",
|
|
7459
|
+
internalType: "int256"
|
|
7460
|
+
},
|
|
7461
|
+
{
|
|
7462
|
+
name: "",
|
|
7463
|
+
type: "uint256",
|
|
7464
|
+
internalType: "uint256"
|
|
7465
|
+
},
|
|
7466
|
+
{
|
|
7467
|
+
name: "",
|
|
7468
|
+
type: "uint256",
|
|
7469
|
+
internalType: "uint256"
|
|
7470
|
+
},
|
|
7471
|
+
{
|
|
7472
|
+
name: "",
|
|
7473
|
+
type: "uint80",
|
|
7474
|
+
internalType: "uint80"
|
|
7475
|
+
}
|
|
7476
|
+
],
|
|
7477
|
+
stateMutability: "view"
|
|
7478
|
+
},
|
|
7479
|
+
{
|
|
7480
|
+
type: "function",
|
|
7481
|
+
name: "nFeeds",
|
|
7482
|
+
inputs: [],
|
|
7483
|
+
outputs: [{
|
|
7484
|
+
name: "",
|
|
7485
|
+
type: "uint16",
|
|
7486
|
+
internalType: "uint16"
|
|
7487
|
+
}],
|
|
7488
|
+
stateMutability: "view"
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
type: "function",
|
|
7492
|
+
name: "priceFeed0",
|
|
7493
|
+
inputs: [],
|
|
7494
|
+
outputs: [{
|
|
7495
|
+
name: "",
|
|
7496
|
+
type: "address",
|
|
7497
|
+
internalType: "address"
|
|
7498
|
+
}],
|
|
7499
|
+
stateMutability: "view"
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
type: "function",
|
|
7503
|
+
name: "priceFeed1",
|
|
7504
|
+
inputs: [],
|
|
7505
|
+
outputs: [{
|
|
7506
|
+
name: "",
|
|
7507
|
+
type: "address",
|
|
7508
|
+
internalType: "address"
|
|
7509
|
+
}],
|
|
7510
|
+
stateMutability: "view"
|
|
7511
|
+
},
|
|
7512
|
+
{
|
|
7513
|
+
type: "function",
|
|
7514
|
+
name: "priceFeed2",
|
|
7515
|
+
inputs: [],
|
|
7516
|
+
outputs: [{
|
|
7517
|
+
name: "",
|
|
7518
|
+
type: "address",
|
|
7519
|
+
internalType: "address"
|
|
7520
|
+
}],
|
|
7521
|
+
stateMutability: "view"
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
type: "function",
|
|
7525
|
+
name: "serialize",
|
|
7526
|
+
inputs: [],
|
|
7527
|
+
outputs: [{
|
|
7528
|
+
name: "",
|
|
7529
|
+
type: "bytes",
|
|
7530
|
+
internalType: "bytes"
|
|
7531
|
+
}],
|
|
7532
|
+
stateMutability: "pure"
|
|
7533
|
+
},
|
|
7534
|
+
{
|
|
7535
|
+
type: "function",
|
|
7536
|
+
name: "skipCheck0",
|
|
7537
|
+
inputs: [],
|
|
7538
|
+
outputs: [{
|
|
7539
|
+
name: "",
|
|
7540
|
+
type: "bool",
|
|
7541
|
+
internalType: "bool"
|
|
7542
|
+
}],
|
|
7543
|
+
stateMutability: "view"
|
|
7544
|
+
},
|
|
7545
|
+
{
|
|
7546
|
+
type: "function",
|
|
7547
|
+
name: "skipCheck1",
|
|
7548
|
+
inputs: [],
|
|
7549
|
+
outputs: [{
|
|
7550
|
+
name: "",
|
|
7551
|
+
type: "bool",
|
|
7552
|
+
internalType: "bool"
|
|
7553
|
+
}],
|
|
7554
|
+
stateMutability: "view"
|
|
7555
|
+
},
|
|
7556
|
+
{
|
|
7557
|
+
type: "function",
|
|
7558
|
+
name: "skipCheck2",
|
|
7559
|
+
inputs: [],
|
|
7560
|
+
outputs: [{
|
|
7561
|
+
name: "",
|
|
7562
|
+
type: "bool",
|
|
7563
|
+
internalType: "bool"
|
|
7564
|
+
}],
|
|
7565
|
+
stateMutability: "view"
|
|
7566
|
+
},
|
|
7567
|
+
{
|
|
7568
|
+
type: "function",
|
|
7569
|
+
name: "skipPriceCheck",
|
|
7570
|
+
inputs: [],
|
|
7571
|
+
outputs: [{
|
|
7572
|
+
name: "",
|
|
7573
|
+
type: "bool",
|
|
7574
|
+
internalType: "bool"
|
|
7575
|
+
}],
|
|
7576
|
+
stateMutability: "view"
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
type: "function",
|
|
7580
|
+
name: "stalenessPeriod0",
|
|
7581
|
+
inputs: [],
|
|
7582
|
+
outputs: [{
|
|
7583
|
+
name: "",
|
|
7584
|
+
type: "uint32",
|
|
7585
|
+
internalType: "uint32"
|
|
7586
|
+
}],
|
|
7587
|
+
stateMutability: "view"
|
|
7588
|
+
},
|
|
7589
|
+
{
|
|
7590
|
+
type: "function",
|
|
7591
|
+
name: "stalenessPeriod1",
|
|
7592
|
+
inputs: [],
|
|
7593
|
+
outputs: [{
|
|
7594
|
+
name: "",
|
|
7595
|
+
type: "uint32",
|
|
7596
|
+
internalType: "uint32"
|
|
7597
|
+
}],
|
|
7598
|
+
stateMutability: "view"
|
|
7599
|
+
},
|
|
7600
|
+
{
|
|
7601
|
+
type: "function",
|
|
7602
|
+
name: "stalenessPeriod2",
|
|
7603
|
+
inputs: [],
|
|
7604
|
+
outputs: [{
|
|
7605
|
+
name: "",
|
|
7606
|
+
type: "uint32",
|
|
7607
|
+
internalType: "uint32"
|
|
7608
|
+
}],
|
|
7609
|
+
stateMutability: "view"
|
|
7610
|
+
},
|
|
7611
|
+
{
|
|
7612
|
+
type: "function",
|
|
7613
|
+
name: "version",
|
|
7614
|
+
inputs: [],
|
|
7615
|
+
outputs: [{
|
|
7616
|
+
name: "",
|
|
7617
|
+
type: "uint256",
|
|
7618
|
+
internalType: "uint256"
|
|
7619
|
+
}],
|
|
7620
|
+
stateMutability: "view"
|
|
7621
|
+
},
|
|
7622
|
+
{
|
|
7623
|
+
type: "error",
|
|
7624
|
+
name: "AddressIsNotContractException",
|
|
7625
|
+
inputs: [{
|
|
7626
|
+
name: "",
|
|
7627
|
+
type: "address",
|
|
7628
|
+
internalType: "address"
|
|
7629
|
+
}]
|
|
7630
|
+
},
|
|
7631
|
+
{
|
|
7632
|
+
type: "error",
|
|
7633
|
+
name: "IncorrectParameterException",
|
|
7634
|
+
inputs: []
|
|
7635
|
+
},
|
|
7636
|
+
{
|
|
7637
|
+
type: "error",
|
|
7638
|
+
name: "IncorrectPriceException",
|
|
7639
|
+
inputs: []
|
|
7640
|
+
},
|
|
7641
|
+
{
|
|
7642
|
+
type: "error",
|
|
7643
|
+
name: "IncorrectPriceFeedException",
|
|
7644
|
+
inputs: []
|
|
7645
|
+
},
|
|
7646
|
+
{
|
|
7647
|
+
type: "error",
|
|
7648
|
+
name: "StalePriceException",
|
|
7649
|
+
inputs: []
|
|
7650
|
+
},
|
|
7651
|
+
{
|
|
7652
|
+
type: "error",
|
|
7653
|
+
name: "ZeroAddressException",
|
|
7654
|
+
inputs: []
|
|
7655
|
+
}
|
|
7656
|
+
];
|
|
7657
|
+
const fixedRateWindowPriceFeedAbi = [
|
|
7658
|
+
{
|
|
7659
|
+
type: "constructor",
|
|
7660
|
+
inputs: [
|
|
7661
|
+
{
|
|
7662
|
+
name: "_owner",
|
|
7663
|
+
type: "address",
|
|
7664
|
+
internalType: "address"
|
|
7665
|
+
},
|
|
7666
|
+
{
|
|
7667
|
+
name: "_priceFeed",
|
|
7668
|
+
type: "address",
|
|
7669
|
+
internalType: "address"
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
name: "_stalenessPeriod",
|
|
7673
|
+
type: "uint32",
|
|
7674
|
+
internalType: "uint32"
|
|
7675
|
+
},
|
|
7676
|
+
{
|
|
7677
|
+
name: "growthRateInitial",
|
|
7678
|
+
type: "uint16",
|
|
7679
|
+
internalType: "uint16"
|
|
7680
|
+
},
|
|
7681
|
+
{
|
|
7682
|
+
name: "lowerBoundInitial",
|
|
7683
|
+
type: "uint256",
|
|
7684
|
+
internalType: "uint256"
|
|
7685
|
+
},
|
|
7686
|
+
{
|
|
7687
|
+
name: "_maxGrowthRate",
|
|
7688
|
+
type: "uint16",
|
|
7689
|
+
internalType: "uint16"
|
|
7690
|
+
},
|
|
7691
|
+
{
|
|
7692
|
+
name: "descriptionTicker",
|
|
7693
|
+
type: "string",
|
|
7694
|
+
internalType: "string"
|
|
7695
|
+
}
|
|
7696
|
+
],
|
|
7697
|
+
stateMutability: "nonpayable"
|
|
7698
|
+
},
|
|
7699
|
+
{
|
|
7700
|
+
type: "function",
|
|
7701
|
+
name: "contractType",
|
|
7702
|
+
inputs: [],
|
|
7703
|
+
outputs: [{
|
|
7704
|
+
name: "",
|
|
7705
|
+
type: "bytes32",
|
|
7706
|
+
internalType: "bytes32"
|
|
7707
|
+
}],
|
|
7708
|
+
stateMutability: "view"
|
|
7709
|
+
},
|
|
7710
|
+
{
|
|
7711
|
+
type: "function",
|
|
7712
|
+
name: "decimals",
|
|
7713
|
+
inputs: [],
|
|
7714
|
+
outputs: [{
|
|
7715
|
+
name: "",
|
|
7716
|
+
type: "uint8",
|
|
7717
|
+
internalType: "uint8"
|
|
7718
|
+
}],
|
|
7719
|
+
stateMutability: "view"
|
|
7720
|
+
},
|
|
7721
|
+
{
|
|
7722
|
+
type: "function",
|
|
7723
|
+
name: "description",
|
|
7724
|
+
inputs: [],
|
|
7725
|
+
outputs: [{
|
|
7726
|
+
name: "",
|
|
7727
|
+
type: "string",
|
|
7728
|
+
internalType: "string"
|
|
7729
|
+
}],
|
|
7730
|
+
stateMutability: "view"
|
|
7731
|
+
},
|
|
7732
|
+
{
|
|
7733
|
+
type: "function",
|
|
7734
|
+
name: "growthRate",
|
|
7735
|
+
inputs: [],
|
|
7736
|
+
outputs: [{
|
|
7737
|
+
name: "",
|
|
7738
|
+
type: "uint16",
|
|
7739
|
+
internalType: "uint16"
|
|
7740
|
+
}],
|
|
7741
|
+
stateMutability: "view"
|
|
7742
|
+
},
|
|
7743
|
+
{
|
|
7744
|
+
type: "function",
|
|
7745
|
+
name: "latestRoundData",
|
|
7746
|
+
inputs: [],
|
|
7747
|
+
outputs: [
|
|
7748
|
+
{
|
|
7749
|
+
name: "",
|
|
7750
|
+
type: "uint80",
|
|
7751
|
+
internalType: "uint80"
|
|
7752
|
+
},
|
|
7753
|
+
{
|
|
7754
|
+
name: "",
|
|
7755
|
+
type: "int256",
|
|
7756
|
+
internalType: "int256"
|
|
7757
|
+
},
|
|
7758
|
+
{
|
|
7759
|
+
name: "",
|
|
7760
|
+
type: "uint256",
|
|
7761
|
+
internalType: "uint256"
|
|
7762
|
+
},
|
|
7763
|
+
{
|
|
7764
|
+
name: "",
|
|
7765
|
+
type: "uint256",
|
|
7766
|
+
internalType: "uint256"
|
|
7767
|
+
},
|
|
7768
|
+
{
|
|
7769
|
+
name: "",
|
|
7770
|
+
type: "uint80",
|
|
7771
|
+
internalType: "uint80"
|
|
7772
|
+
}
|
|
7773
|
+
],
|
|
7774
|
+
stateMutability: "view"
|
|
7775
|
+
},
|
|
7776
|
+
{
|
|
7777
|
+
type: "function",
|
|
7778
|
+
name: "lowerBoundBase",
|
|
7779
|
+
inputs: [],
|
|
7780
|
+
outputs: [{
|
|
7781
|
+
name: "",
|
|
7782
|
+
type: "uint256",
|
|
7783
|
+
internalType: "uint256"
|
|
7784
|
+
}],
|
|
7785
|
+
stateMutability: "view"
|
|
7786
|
+
},
|
|
7787
|
+
{
|
|
7788
|
+
type: "function",
|
|
7789
|
+
name: "maxGrowthRate",
|
|
7790
|
+
inputs: [],
|
|
7791
|
+
outputs: [{
|
|
7792
|
+
name: "",
|
|
7793
|
+
type: "uint16",
|
|
7794
|
+
internalType: "uint16"
|
|
7795
|
+
}],
|
|
7796
|
+
stateMutability: "view"
|
|
7797
|
+
},
|
|
7798
|
+
{
|
|
7799
|
+
type: "function",
|
|
7800
|
+
name: "owner",
|
|
7801
|
+
inputs: [],
|
|
7802
|
+
outputs: [{
|
|
7803
|
+
name: "",
|
|
7804
|
+
type: "address",
|
|
7805
|
+
internalType: "address"
|
|
7806
|
+
}],
|
|
7807
|
+
stateMutability: "view"
|
|
7808
|
+
},
|
|
7809
|
+
{
|
|
7810
|
+
type: "function",
|
|
7811
|
+
name: "priceFeed",
|
|
7812
|
+
inputs: [],
|
|
7813
|
+
outputs: [{
|
|
7814
|
+
name: "",
|
|
7815
|
+
type: "address",
|
|
7816
|
+
internalType: "address"
|
|
7817
|
+
}],
|
|
7818
|
+
stateMutability: "view"
|
|
7819
|
+
},
|
|
7820
|
+
{
|
|
7821
|
+
type: "function",
|
|
7822
|
+
name: "renounceOwnership",
|
|
7823
|
+
inputs: [],
|
|
7824
|
+
outputs: [],
|
|
7825
|
+
stateMutability: "nonpayable"
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
type: "function",
|
|
7829
|
+
name: "serialize",
|
|
7830
|
+
inputs: [],
|
|
7831
|
+
outputs: [{
|
|
7832
|
+
name: "",
|
|
7833
|
+
type: "bytes",
|
|
7834
|
+
internalType: "bytes"
|
|
7835
|
+
}],
|
|
7836
|
+
stateMutability: "pure"
|
|
7837
|
+
},
|
|
7838
|
+
{
|
|
7839
|
+
type: "function",
|
|
7840
|
+
name: "setRateAndBounds",
|
|
7841
|
+
inputs: [{
|
|
7842
|
+
name: "_growthRate",
|
|
7843
|
+
type: "uint16",
|
|
7844
|
+
internalType: "uint16"
|
|
7845
|
+
}, {
|
|
7846
|
+
name: "_lowerBoundBase",
|
|
7847
|
+
type: "uint256",
|
|
7848
|
+
internalType: "uint256"
|
|
7849
|
+
}],
|
|
7850
|
+
outputs: [],
|
|
7851
|
+
stateMutability: "nonpayable"
|
|
7852
|
+
},
|
|
7853
|
+
{
|
|
7854
|
+
type: "function",
|
|
7855
|
+
name: "skipCheck",
|
|
7856
|
+
inputs: [],
|
|
7857
|
+
outputs: [{
|
|
7858
|
+
name: "",
|
|
7859
|
+
type: "bool",
|
|
7860
|
+
internalType: "bool"
|
|
7861
|
+
}],
|
|
7862
|
+
stateMutability: "view"
|
|
7863
|
+
},
|
|
7864
|
+
{
|
|
7865
|
+
type: "function",
|
|
7866
|
+
name: "skipPriceCheck",
|
|
7867
|
+
inputs: [],
|
|
7868
|
+
outputs: [{
|
|
7869
|
+
name: "",
|
|
7870
|
+
type: "bool",
|
|
7871
|
+
internalType: "bool"
|
|
7872
|
+
}],
|
|
7873
|
+
stateMutability: "view"
|
|
7874
|
+
},
|
|
7875
|
+
{
|
|
7876
|
+
type: "function",
|
|
7877
|
+
name: "stalenessPeriod",
|
|
7878
|
+
inputs: [],
|
|
7879
|
+
outputs: [{
|
|
7880
|
+
name: "",
|
|
7881
|
+
type: "uint32",
|
|
7882
|
+
internalType: "uint32"
|
|
7883
|
+
}],
|
|
7884
|
+
stateMutability: "view"
|
|
7885
|
+
},
|
|
7886
|
+
{
|
|
7887
|
+
type: "function",
|
|
7888
|
+
name: "timestampLU",
|
|
7889
|
+
inputs: [],
|
|
7890
|
+
outputs: [{
|
|
7891
|
+
name: "",
|
|
7892
|
+
type: "uint256",
|
|
7893
|
+
internalType: "uint256"
|
|
7894
|
+
}],
|
|
7895
|
+
stateMutability: "view"
|
|
7896
|
+
},
|
|
7897
|
+
{
|
|
7898
|
+
type: "function",
|
|
7899
|
+
name: "transferOwnership",
|
|
7900
|
+
inputs: [{
|
|
7901
|
+
name: "newOwner",
|
|
7902
|
+
type: "address",
|
|
7903
|
+
internalType: "address"
|
|
7904
|
+
}],
|
|
7905
|
+
outputs: [],
|
|
7906
|
+
stateMutability: "nonpayable"
|
|
7907
|
+
},
|
|
7908
|
+
{
|
|
7909
|
+
type: "function",
|
|
7910
|
+
name: "version",
|
|
7911
|
+
inputs: [],
|
|
7912
|
+
outputs: [{
|
|
7913
|
+
name: "",
|
|
7914
|
+
type: "uint256",
|
|
7915
|
+
internalType: "uint256"
|
|
7916
|
+
}],
|
|
7917
|
+
stateMutability: "view"
|
|
7918
|
+
},
|
|
7919
|
+
{
|
|
7920
|
+
type: "event",
|
|
7921
|
+
name: "OwnershipTransferred",
|
|
7922
|
+
inputs: [{
|
|
7923
|
+
name: "previousOwner",
|
|
7924
|
+
type: "address",
|
|
7925
|
+
indexed: true,
|
|
7926
|
+
internalType: "address"
|
|
7927
|
+
}, {
|
|
7928
|
+
name: "newOwner",
|
|
7929
|
+
type: "address",
|
|
7930
|
+
indexed: true,
|
|
7931
|
+
internalType: "address"
|
|
7932
|
+
}],
|
|
7933
|
+
anonymous: false
|
|
7934
|
+
},
|
|
7935
|
+
{
|
|
7936
|
+
type: "event",
|
|
7937
|
+
name: "SetRateAndBounds",
|
|
7938
|
+
inputs: [
|
|
7939
|
+
{
|
|
7940
|
+
name: "growthRate",
|
|
7941
|
+
type: "uint16",
|
|
7942
|
+
indexed: false,
|
|
7943
|
+
internalType: "uint16"
|
|
7944
|
+
},
|
|
7945
|
+
{
|
|
7946
|
+
name: "lowerBoundBase",
|
|
7947
|
+
type: "uint256",
|
|
7948
|
+
indexed: false,
|
|
7949
|
+
internalType: "uint256"
|
|
7950
|
+
},
|
|
7951
|
+
{
|
|
7952
|
+
name: "upperBound",
|
|
7953
|
+
type: "uint256",
|
|
7954
|
+
indexed: false,
|
|
7955
|
+
internalType: "uint256"
|
|
7956
|
+
}
|
|
7957
|
+
],
|
|
7958
|
+
anonymous: false
|
|
7959
|
+
},
|
|
7960
|
+
{
|
|
7961
|
+
type: "error",
|
|
7962
|
+
name: "AddressIsNotContractException",
|
|
7963
|
+
inputs: [{
|
|
7964
|
+
name: "",
|
|
7965
|
+
type: "address",
|
|
7966
|
+
internalType: "address"
|
|
7967
|
+
}]
|
|
7968
|
+
},
|
|
7969
|
+
{
|
|
7970
|
+
type: "error",
|
|
7971
|
+
name: "IncorrectParameterException",
|
|
7972
|
+
inputs: []
|
|
7973
|
+
},
|
|
7974
|
+
{
|
|
7975
|
+
type: "error",
|
|
7976
|
+
name: "IncorrectPriceException",
|
|
7977
|
+
inputs: []
|
|
7978
|
+
},
|
|
7979
|
+
{
|
|
7980
|
+
type: "error",
|
|
7981
|
+
name: "IncorrectPriceFeedException",
|
|
7982
|
+
inputs: []
|
|
7983
|
+
},
|
|
7984
|
+
{
|
|
7985
|
+
type: "error",
|
|
7986
|
+
name: "InvalidGrowthRateException",
|
|
7987
|
+
inputs: []
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
type: "error",
|
|
7991
|
+
name: "StalePriceException",
|
|
7992
|
+
inputs: []
|
|
7993
|
+
},
|
|
7994
|
+
{
|
|
7995
|
+
type: "error",
|
|
7996
|
+
name: "ValueOutOfBoundsException",
|
|
7997
|
+
inputs: []
|
|
7998
|
+
},
|
|
7999
|
+
{
|
|
8000
|
+
type: "error",
|
|
8001
|
+
name: "ZeroAddressException",
|
|
8002
|
+
inputs: []
|
|
8003
|
+
}
|
|
8004
|
+
];
|
|
7390
8005
|
exports.boundedPriceFeedAbi = boundedPriceFeedAbi;
|
|
7391
8006
|
exports.bptStablePriceFeedAbi = bptStablePriceFeedAbi;
|
|
7392
8007
|
exports.bptWeightedPriceFeedAbi = bptWeightedPriceFeedAbi;
|
|
@@ -7397,6 +8012,7 @@ exports.curveCryptoLpPriceFeedAbi = curveCryptoLpPriceFeedAbi;
|
|
|
7397
8012
|
exports.curveStableLpPriceFeedAbi = curveStableLpPriceFeedAbi;
|
|
7398
8013
|
exports.curveUsdPriceFeedAbi = curveUsdPriceFeedAbi;
|
|
7399
8014
|
exports.erc4626PriceFeedAbi = erc4626PriceFeedAbi;
|
|
8015
|
+
exports.fixedRateWindowPriceFeedAbi = fixedRateWindowPriceFeedAbi;
|
|
7400
8016
|
exports.iBalancerStablePoolAbi = iBalancerStablePoolAbi;
|
|
7401
8017
|
exports.iBalancerWeightedPoolAbi = iBalancerWeightedPoolAbi;
|
|
7402
8018
|
exports.iCurvePoolAbi = iCurvePoolAbi;
|
|
@@ -7406,6 +8022,7 @@ exports.ilpPriceFeedAbi = ilpPriceFeedAbi;
|
|
|
7406
8022
|
exports.ilpPriceFeedEventsAbi = ilpPriceFeedEventsAbi;
|
|
7407
8023
|
exports.iwstEthAbi = iwstEthAbi;
|
|
7408
8024
|
exports.iyVaultAbi = iyVaultAbi;
|
|
8025
|
+
exports.medianPriceFeedAbi = medianPriceFeedAbi;
|
|
7409
8026
|
exports.mellowLrtPriceFeedAbi = mellowLrtPriceFeedAbi;
|
|
7410
8027
|
exports.pendleTWAPPTPriceFeedAbi = pendleTWAPPTPriceFeedAbi;
|
|
7411
8028
|
exports.pythPriceFeedAbi = pythPriceFeedAbi;
|
|
@@ -173,6 +173,8 @@ const require_onchain_market_pricefeeds_feeds_CurveStablePriceFeed = require("./
|
|
|
173
173
|
const require_onchain_market_pricefeeds_feeds_CurveUSDPriceFeed = require("./market/pricefeeds/feeds/CurveUSDPriceFeed.js");
|
|
174
174
|
const require_onchain_market_pricefeeds_feeds_Erc4626PriceFeed = require("./market/pricefeeds/feeds/Erc4626PriceFeed.js");
|
|
175
175
|
const require_onchain_market_pricefeeds_feeds_ExternalPriceFeed = require("./market/pricefeeds/feeds/ExternalPriceFeed.js");
|
|
176
|
+
const require_onchain_market_pricefeeds_feeds_FixedRateWindowPriceFeed = require("./market/pricefeeds/feeds/FixedRateWindowPriceFeed.js");
|
|
177
|
+
const require_onchain_market_pricefeeds_feeds_MedianPriceFeed = require("./market/pricefeeds/feeds/MedianPriceFeed.js");
|
|
176
178
|
const require_onchain_market_pricefeeds_feeds_MellowLRTPriceFeed = require("./market/pricefeeds/feeds/MellowLRTPriceFeed.js");
|
|
177
179
|
const require_onchain_market_pricefeeds_feeds_PendleTWAPPTPriceFeed = require("./market/pricefeeds/feeds/PendleTWAPPTPriceFeed.js");
|
|
178
180
|
const require_onchain_market_pricefeeds_feeds_PythPriceFeed = require("./market/pricefeeds/feeds/PythPriceFeed.js");
|
|
@@ -419,6 +421,7 @@ exports.ERC4626ReferralAdapterContract = require_onchain_market_adapters_contrac
|
|
|
419
421
|
exports.EXECUTE_BYTES_SELECTOR = require_onchain_utils_trace.EXECUTE_BYTES_SELECTOR;
|
|
420
422
|
exports.Erc4626PriceFeedContract = require_onchain_market_pricefeeds_feeds_Erc4626PriceFeed.Erc4626PriceFeedContract;
|
|
421
423
|
exports.ExternalPriceFeedContract = require_onchain_market_pricefeeds_feeds_ExternalPriceFeed.ExternalPriceFeedContract;
|
|
424
|
+
exports.FixedRateWindowPriceFeedContract = require_onchain_market_pricefeeds_feeds_FixedRateWindowPriceFeed.FixedRateWindowPriceFeedContract;
|
|
422
425
|
exports.FluidDexAdapterContract = require_onchain_market_adapters_contracts_FluidDexAdapterContract.FluidDexAdapterContract;
|
|
423
426
|
exports.GaugeContract = require_onchain_market_pool_GaugeContract.GaugeContract;
|
|
424
427
|
exports.IERC20ZapperContract = require_onchain_market_zapper_IERC20ZapperContract.IERC20ZapperContract;
|
|
@@ -446,6 +449,7 @@ exports.MIN_SAFE_HEALTH_FACTOR_FORM = require_onchain_validation_helpers_health_
|
|
|
446
449
|
exports.MULTICALL_ADDRESS = require_onchain_constants_addresses.MULTICALL_ADDRESS;
|
|
447
450
|
exports.MarketRegister = require_onchain_market_MarketRegister.MarketRegister;
|
|
448
451
|
exports.MarketSuite = require_onchain_market_MarketSuite.MarketSuite;
|
|
452
|
+
exports.MedianPriceFeedContract = require_onchain_market_pricefeeds_feeds_MedianPriceFeed.MedianPriceFeedContract;
|
|
449
453
|
exports.MellowClaimerAdapterContract = require_onchain_market_adapters_contracts_MellowClaimerAdapterContract.MellowClaimerAdapterContract;
|
|
450
454
|
exports.MellowDVVAdapterContract = require_onchain_market_adapters_contracts_MellowDVVAdapterContract.MellowDVVAdapterContract;
|
|
451
455
|
exports.MellowERC4626VaultAdapterContract = require_onchain_market_adapters_contracts_MellowERC4626VaultAdapterContract.MellowERC4626VaultAdapterContract;
|
|
@@ -122,6 +122,8 @@ const require_onchain_market_pricefeeds_feeds_CurveStablePriceFeed = require("./
|
|
|
122
122
|
const require_onchain_market_pricefeeds_feeds_CurveUSDPriceFeed = require("./pricefeeds/feeds/CurveUSDPriceFeed.js");
|
|
123
123
|
const require_onchain_market_pricefeeds_feeds_Erc4626PriceFeed = require("./pricefeeds/feeds/Erc4626PriceFeed.js");
|
|
124
124
|
const require_onchain_market_pricefeeds_feeds_ExternalPriceFeed = require("./pricefeeds/feeds/ExternalPriceFeed.js");
|
|
125
|
+
const require_onchain_market_pricefeeds_feeds_FixedRateWindowPriceFeed = require("./pricefeeds/feeds/FixedRateWindowPriceFeed.js");
|
|
126
|
+
const require_onchain_market_pricefeeds_feeds_MedianPriceFeed = require("./pricefeeds/feeds/MedianPriceFeed.js");
|
|
125
127
|
const require_onchain_market_pricefeeds_feeds_MellowLRTPriceFeed = require("./pricefeeds/feeds/MellowLRTPriceFeed.js");
|
|
126
128
|
const require_onchain_market_pricefeeds_feeds_PendleTWAPPTPriceFeed = require("./pricefeeds/feeds/PendleTWAPPTPriceFeed.js");
|
|
127
129
|
const require_onchain_market_pricefeeds_feeds_PythPriceFeed = require("./pricefeeds/feeds/PythPriceFeed.js");
|
|
@@ -197,6 +199,7 @@ exports.ERC4626AdapterContract = require_onchain_market_adapters_contracts_ERC46
|
|
|
197
199
|
exports.ERC4626ReferralAdapterContract = require_onchain_market_adapters_contracts_ERC4626ReferralAdapterContract.ERC4626ReferralAdapterContract;
|
|
198
200
|
exports.Erc4626PriceFeedContract = require_onchain_market_pricefeeds_feeds_Erc4626PriceFeed.Erc4626PriceFeedContract;
|
|
199
201
|
exports.ExternalPriceFeedContract = require_onchain_market_pricefeeds_feeds_ExternalPriceFeed.ExternalPriceFeedContract;
|
|
202
|
+
exports.FixedRateWindowPriceFeedContract = require_onchain_market_pricefeeds_feeds_FixedRateWindowPriceFeed.FixedRateWindowPriceFeedContract;
|
|
200
203
|
exports.FluidDexAdapterContract = require_onchain_market_adapters_contracts_FluidDexAdapterContract.FluidDexAdapterContract;
|
|
201
204
|
exports.GaugeContract = require_onchain_market_pool_GaugeContract.GaugeContract;
|
|
202
205
|
exports.IERC20ZapperContract = require_onchain_market_zapper_IERC20ZapperContract.IERC20ZapperContract;
|
|
@@ -210,6 +213,7 @@ exports.LinearInterestRateModelContract = require_onchain_market_pool_LinearInte
|
|
|
210
213
|
exports.MAX_LEVERAGE_BUFFER_BPS = require_onchain_market_math.MAX_LEVERAGE_BUFFER_BPS;
|
|
211
214
|
exports.MarketRegister = require_onchain_market_MarketRegister.MarketRegister;
|
|
212
215
|
exports.MarketSuite = require_onchain_market_MarketSuite.MarketSuite;
|
|
216
|
+
exports.MedianPriceFeedContract = require_onchain_market_pricefeeds_feeds_MedianPriceFeed.MedianPriceFeedContract;
|
|
213
217
|
exports.MellowClaimerAdapterContract = require_onchain_market_adapters_contracts_MellowClaimerAdapterContract.MellowClaimerAdapterContract;
|
|
214
218
|
exports.MellowDVVAdapterContract = require_onchain_market_adapters_contracts_MellowDVVAdapterContract.MellowDVVAdapterContract;
|
|
215
219
|
exports.MellowERC4626VaultAdapterContract = require_onchain_market_adapters_contracts_MellowERC4626VaultAdapterContract.MellowERC4626VaultAdapterContract;
|