@defisaver/positions-sdk 2.1.127-dev → 2.1.127-midnight-dev

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 (73) hide show
  1. package/cjs/config/contracts.d.ts +249 -0
  2. package/cjs/config/contracts.js +11 -1
  3. package/cjs/contracts.d.ts +1510 -0
  4. package/cjs/contracts.js +3 -2
  5. package/cjs/helpers/index.d.ts +1 -0
  6. package/cjs/helpers/index.js +2 -1
  7. package/cjs/helpers/morphoBlueHelpers/index.js +0 -1
  8. package/cjs/helpers/morphoMidnightHelpers/index.d.ts +16 -0
  9. package/cjs/helpers/morphoMidnightHelpers/index.js +68 -0
  10. package/cjs/index.d.ts +2 -1
  11. package/cjs/index.js +3 -1
  12. package/cjs/markets/index.d.ts +1 -0
  13. package/cjs/markets/index.js +4 -1
  14. package/cjs/markets/morphoMidnight/index.d.ts +16 -0
  15. package/cjs/markets/morphoMidnight/index.js +159 -0
  16. package/cjs/morphoBlue/index.d.ts +6 -8
  17. package/cjs/morphoBlue/index.js +40 -69
  18. package/cjs/morphoMidnight/index.d.ts +14 -0
  19. package/cjs/morphoMidnight/index.js +220 -0
  20. package/cjs/portfolio/discovery.js +4 -0
  21. package/cjs/portfolio/index.js +45 -1
  22. package/cjs/services/viem.d.ts +11 -11
  23. package/cjs/types/index.d.ts +1 -0
  24. package/cjs/types/index.js +1 -0
  25. package/cjs/types/morphoBlue.d.ts +0 -9
  26. package/cjs/types/morphoMidnight.d.ts +91 -0
  27. package/cjs/types/morphoMidnight.js +15 -0
  28. package/cjs/types/portfolio.d.ts +4 -0
  29. package/esm/config/contracts.d.ts +249 -0
  30. package/esm/config/contracts.js +9 -0
  31. package/esm/contracts.d.ts +1510 -0
  32. package/esm/contracts.js +1 -0
  33. package/esm/helpers/index.d.ts +1 -0
  34. package/esm/helpers/index.js +1 -0
  35. package/esm/helpers/morphoBlueHelpers/index.js +0 -1
  36. package/esm/helpers/morphoMidnightHelpers/index.d.ts +16 -0
  37. package/esm/helpers/morphoMidnightHelpers/index.js +61 -0
  38. package/esm/index.d.ts +2 -1
  39. package/esm/index.js +2 -1
  40. package/esm/markets/index.d.ts +1 -0
  41. package/esm/markets/index.js +1 -0
  42. package/esm/markets/morphoMidnight/index.d.ts +16 -0
  43. package/esm/markets/morphoMidnight/index.js +148 -0
  44. package/esm/morphoBlue/index.d.ts +6 -8
  45. package/esm/morphoBlue/index.js +39 -62
  46. package/esm/morphoMidnight/index.d.ts +14 -0
  47. package/esm/morphoMidnight/index.js +207 -0
  48. package/esm/portfolio/discovery.js +5 -1
  49. package/esm/portfolio/index.js +47 -3
  50. package/esm/services/viem.d.ts +11 -11
  51. package/esm/types/index.d.ts +1 -0
  52. package/esm/types/index.js +1 -0
  53. package/esm/types/morphoBlue.d.ts +0 -9
  54. package/esm/types/morphoMidnight.d.ts +91 -0
  55. package/esm/types/morphoMidnight.js +12 -0
  56. package/esm/types/portfolio.d.ts +4 -0
  57. package/package.json +1 -1
  58. package/src/config/contracts.ts +9 -0
  59. package/src/contracts.ts +1 -0
  60. package/src/helpers/index.ts +1 -0
  61. package/src/helpers/morphoBlueHelpers/index.ts +0 -1
  62. package/src/helpers/morphoMidnightHelpers/index.ts +86 -0
  63. package/src/index.ts +2 -0
  64. package/src/markets/index.ts +1 -0
  65. package/src/markets/morphoMidnight/index.ts +161 -0
  66. package/src/morphoBlue/index.ts +44 -101
  67. package/src/morphoMidnight/index.ts +234 -0
  68. package/src/portfolio/discovery.ts +6 -0
  69. package/src/portfolio/index.ts +46 -2
  70. package/src/types/index.ts +1 -0
  71. package/src/types/morphoBlue.ts +0 -11
  72. package/src/types/morphoMidnight.ts +104 -0
  73. package/src/types/portfolio.ts +4 -0
@@ -9,6 +9,7 @@ import { LiquityTroveInfo } from './liquity';
9
9
  import { LlamaLendUserData, LlamaLendVersionsType } from './llamaLend';
10
10
  import { CdpData } from './maker';
11
11
  import { MorphoBluePositionData, MorphoBlueVersions } from './morphoBlue';
12
+ import { MorphoMidnightPositionData, MorphoMidnightVersions } from './morphoMidnight';
12
13
  import { SparkPositionData, SparkVersions } from './spark';
13
14
  export interface PortfolioProtocolData<T> {
14
15
  error: string;
@@ -21,6 +22,9 @@ export interface PortfolioPositionsDataForAddress {
21
22
  morphoBlue: {
22
23
  [key in MorphoBlueVersions]?: PortfolioProtocolData<MorphoBluePositionData>;
23
24
  };
25
+ morphoMidnight: {
26
+ [key in MorphoMidnightVersions]?: PortfolioProtocolData<MorphoMidnightPositionData>;
27
+ };
24
28
  compoundV3: {
25
29
  [key in CompoundVersions]?: PortfolioProtocolData<CompoundV3PositionData>;
26
30
  };
@@ -87015,6 +87015,255 @@ export declare const MorphoBlueView: {
87015
87015
  };
87016
87016
  };
87017
87017
  };
87018
+ export declare const MidnightView: {
87019
+ readonly abi: readonly [{
87020
+ readonly inputs: readonly [{
87021
+ readonly internalType: "bytes32";
87022
+ readonly name: "_id";
87023
+ readonly type: "bytes32";
87024
+ }];
87025
+ readonly name: "getMarketInfo";
87026
+ readonly outputs: readonly [{
87027
+ readonly components: readonly [{
87028
+ readonly internalType: "bytes32";
87029
+ readonly name: "id";
87030
+ readonly type: "bytes32";
87031
+ }, {
87032
+ readonly internalType: "uint128";
87033
+ readonly name: "totalUnits";
87034
+ readonly type: "uint128";
87035
+ }, {
87036
+ readonly internalType: "uint128";
87037
+ readonly name: "lossFactor";
87038
+ readonly type: "uint128";
87039
+ }, {
87040
+ readonly internalType: "uint128";
87041
+ readonly name: "withdrawable";
87042
+ readonly type: "uint128";
87043
+ }, {
87044
+ readonly internalType: "uint128";
87045
+ readonly name: "continuousFeeCredit";
87046
+ readonly type: "uint128";
87047
+ }, {
87048
+ readonly internalType: "uint16[7]";
87049
+ readonly name: "settlementFees";
87050
+ readonly type: "uint16[7]";
87051
+ }, {
87052
+ readonly internalType: "uint32";
87053
+ readonly name: "continuousFee";
87054
+ readonly type: "uint32";
87055
+ }, {
87056
+ readonly internalType: "uint8";
87057
+ readonly name: "tickSpacing";
87058
+ readonly type: "uint8";
87059
+ }, {
87060
+ readonly internalType: "uint256[]";
87061
+ readonly name: "prices";
87062
+ readonly type: "uint256[]";
87063
+ }];
87064
+ readonly internalType: "struct MidnightView.MarketInfo";
87065
+ readonly name: "info";
87066
+ readonly type: "tuple";
87067
+ }];
87068
+ readonly stateMutability: "view";
87069
+ readonly type: "function";
87070
+ }, {
87071
+ readonly inputs: readonly [{
87072
+ readonly internalType: "bytes32";
87073
+ readonly name: "_id";
87074
+ readonly type: "bytes32";
87075
+ }, {
87076
+ readonly internalType: "address";
87077
+ readonly name: "_user";
87078
+ readonly type: "address";
87079
+ }];
87080
+ readonly name: "getPositionInfo";
87081
+ readonly outputs: readonly [{
87082
+ readonly components: readonly [{
87083
+ readonly internalType: "uint128";
87084
+ readonly name: "credit";
87085
+ readonly type: "uint128";
87086
+ }, {
87087
+ readonly internalType: "uint128";
87088
+ readonly name: "pendingFee";
87089
+ readonly type: "uint128";
87090
+ }, {
87091
+ readonly internalType: "uint128";
87092
+ readonly name: "debt";
87093
+ readonly type: "uint128";
87094
+ }, {
87095
+ readonly internalType: "uint128";
87096
+ readonly name: "collateralBitmap";
87097
+ readonly type: "uint128";
87098
+ }, {
87099
+ readonly internalType: "uint128[]";
87100
+ readonly name: "collateral";
87101
+ readonly type: "uint128[]";
87102
+ }, {
87103
+ readonly internalType: "uint256";
87104
+ readonly name: "ratio";
87105
+ readonly type: "uint256";
87106
+ }];
87107
+ readonly internalType: "struct MidnightView.PositionInfo";
87108
+ readonly name: "pos";
87109
+ readonly type: "tuple";
87110
+ }];
87111
+ readonly stateMutability: "view";
87112
+ readonly type: "function";
87113
+ }, {
87114
+ readonly inputs: readonly [{
87115
+ readonly internalType: "bytes32";
87116
+ readonly name: "_id";
87117
+ readonly type: "bytes32";
87118
+ }, {
87119
+ readonly internalType: "address";
87120
+ readonly name: "_user";
87121
+ readonly type: "address";
87122
+ }];
87123
+ readonly name: "getRatio";
87124
+ readonly outputs: readonly [{
87125
+ readonly internalType: "uint256";
87126
+ readonly name: "ratio";
87127
+ readonly type: "uint256";
87128
+ }];
87129
+ readonly stateMutability: "view";
87130
+ readonly type: "function";
87131
+ }, {
87132
+ readonly inputs: readonly [{
87133
+ readonly components: readonly [{
87134
+ readonly internalType: "uint256";
87135
+ readonly name: "chainId";
87136
+ readonly type: "uint256";
87137
+ }, {
87138
+ readonly internalType: "address";
87139
+ readonly name: "midnight";
87140
+ readonly type: "address";
87141
+ }, {
87142
+ readonly internalType: "address";
87143
+ readonly name: "loanToken";
87144
+ readonly type: "address";
87145
+ }, {
87146
+ readonly components: readonly [{
87147
+ readonly internalType: "address";
87148
+ readonly name: "token";
87149
+ readonly type: "address";
87150
+ }, {
87151
+ readonly internalType: "uint256";
87152
+ readonly name: "lltv";
87153
+ readonly type: "uint256";
87154
+ }, {
87155
+ readonly internalType: "uint256";
87156
+ readonly name: "liquidationCursor";
87157
+ readonly type: "uint256";
87158
+ }, {
87159
+ readonly internalType: "address";
87160
+ readonly name: "oracle";
87161
+ readonly type: "address";
87162
+ }];
87163
+ readonly internalType: "struct CollateralParams[]";
87164
+ readonly name: "collateralParams";
87165
+ readonly type: "tuple[]";
87166
+ }, {
87167
+ readonly internalType: "uint256";
87168
+ readonly name: "maturity";
87169
+ readonly type: "uint256";
87170
+ }, {
87171
+ readonly internalType: "uint256";
87172
+ readonly name: "rcfThreshold";
87173
+ readonly type: "uint256";
87174
+ }, {
87175
+ readonly internalType: "address";
87176
+ readonly name: "enterGate";
87177
+ readonly type: "address";
87178
+ }, {
87179
+ readonly internalType: "address";
87180
+ readonly name: "liquidatorGate";
87181
+ readonly type: "address";
87182
+ }];
87183
+ readonly internalType: "struct Market";
87184
+ readonly name: "_market";
87185
+ readonly type: "tuple";
87186
+ }];
87187
+ readonly name: "toId";
87188
+ readonly outputs: readonly [{
87189
+ readonly internalType: "bytes32";
87190
+ readonly name: "id";
87191
+ readonly type: "bytes32";
87192
+ }];
87193
+ readonly stateMutability: "pure";
87194
+ readonly type: "function";
87195
+ }, {
87196
+ readonly inputs: readonly [{
87197
+ readonly internalType: "bytes32";
87198
+ readonly name: "_id";
87199
+ readonly type: "bytes32";
87200
+ }];
87201
+ readonly name: "toMarket";
87202
+ readonly outputs: readonly [{
87203
+ readonly components: readonly [{
87204
+ readonly internalType: "uint256";
87205
+ readonly name: "chainId";
87206
+ readonly type: "uint256";
87207
+ }, {
87208
+ readonly internalType: "address";
87209
+ readonly name: "midnight";
87210
+ readonly type: "address";
87211
+ }, {
87212
+ readonly internalType: "address";
87213
+ readonly name: "loanToken";
87214
+ readonly type: "address";
87215
+ }, {
87216
+ readonly components: readonly [{
87217
+ readonly internalType: "address";
87218
+ readonly name: "token";
87219
+ readonly type: "address";
87220
+ }, {
87221
+ readonly internalType: "uint256";
87222
+ readonly name: "lltv";
87223
+ readonly type: "uint256";
87224
+ }, {
87225
+ readonly internalType: "uint256";
87226
+ readonly name: "liquidationCursor";
87227
+ readonly type: "uint256";
87228
+ }, {
87229
+ readonly internalType: "address";
87230
+ readonly name: "oracle";
87231
+ readonly type: "address";
87232
+ }];
87233
+ readonly internalType: "struct CollateralParams[]";
87234
+ readonly name: "collateralParams";
87235
+ readonly type: "tuple[]";
87236
+ }, {
87237
+ readonly internalType: "uint256";
87238
+ readonly name: "maturity";
87239
+ readonly type: "uint256";
87240
+ }, {
87241
+ readonly internalType: "uint256";
87242
+ readonly name: "rcfThreshold";
87243
+ readonly type: "uint256";
87244
+ }, {
87245
+ readonly internalType: "address";
87246
+ readonly name: "enterGate";
87247
+ readonly type: "address";
87248
+ }, {
87249
+ readonly internalType: "address";
87250
+ readonly name: "liquidatorGate";
87251
+ readonly type: "address";
87252
+ }];
87253
+ readonly internalType: "struct Market";
87254
+ readonly name: "market";
87255
+ readonly type: "tuple";
87256
+ }];
87257
+ readonly stateMutability: "view";
87258
+ readonly type: "function";
87259
+ }];
87260
+ readonly networks: {
87261
+ readonly "8453": {
87262
+ readonly address: "0x3aa272f329E8B562A3bA56Bb6979a44D23A28839";
87263
+ readonly createdBlock: 48932293;
87264
+ };
87265
+ };
87266
+ };
87018
87267
  export declare const FeedRegistry: {
87019
87268
  readonly abi: readonly [{
87020
87269
  readonly anonymous: false;
@@ -1111,6 +1111,15 @@ export const MorphoBlueView = {
1111
1111
  }
1112
1112
  },
1113
1113
  };
1114
+ export const MidnightView = {
1115
+ "abi": [{ "inputs": [{ "internalType": "bytes32", "name": "_id", "type": "bytes32" }], "name": "getMarketInfo", "outputs": [{ "components": [{ "internalType": "bytes32", "name": "id", "type": "bytes32" }, { "internalType": "uint128", "name": "totalUnits", "type": "uint128" }, { "internalType": "uint128", "name": "lossFactor", "type": "uint128" }, { "internalType": "uint128", "name": "withdrawable", "type": "uint128" }, { "internalType": "uint128", "name": "continuousFeeCredit", "type": "uint128" }, { "internalType": "uint16[7]", "name": "settlementFees", "type": "uint16[7]" }, { "internalType": "uint32", "name": "continuousFee", "type": "uint32" }, { "internalType": "uint8", "name": "tickSpacing", "type": "uint8" }, { "internalType": "uint256[]", "name": "prices", "type": "uint256[]" }], "internalType": "struct MidnightView.MarketInfo", "name": "info", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_id", "type": "bytes32" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getPositionInfo", "outputs": [{ "components": [{ "internalType": "uint128", "name": "credit", "type": "uint128" }, { "internalType": "uint128", "name": "pendingFee", "type": "uint128" }, { "internalType": "uint128", "name": "debt", "type": "uint128" }, { "internalType": "uint128", "name": "collateralBitmap", "type": "uint128" }, { "internalType": "uint128[]", "name": "collateral", "type": "uint128[]" }, { "internalType": "uint256", "name": "ratio", "type": "uint256" }], "internalType": "struct MidnightView.PositionInfo", "name": "pos", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_id", "type": "bytes32" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getRatio", "outputs": [{ "internalType": "uint256", "name": "ratio", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "midnight", "type": "address" }, { "internalType": "address", "name": "loanToken", "type": "address" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "lltv", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationCursor", "type": "uint256" }, { "internalType": "address", "name": "oracle", "type": "address" }], "internalType": "struct CollateralParams[]", "name": "collateralParams", "type": "tuple[]" }, { "internalType": "uint256", "name": "maturity", "type": "uint256" }, { "internalType": "uint256", "name": "rcfThreshold", "type": "uint256" }, { "internalType": "address", "name": "enterGate", "type": "address" }, { "internalType": "address", "name": "liquidatorGate", "type": "address" }], "internalType": "struct Market", "name": "_market", "type": "tuple" }], "name": "toId", "outputs": [{ "internalType": "bytes32", "name": "id", "type": "bytes32" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_id", "type": "bytes32" }], "name": "toMarket", "outputs": [{ "components": [{ "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "midnight", "type": "address" }, { "internalType": "address", "name": "loanToken", "type": "address" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "lltv", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationCursor", "type": "uint256" }, { "internalType": "address", "name": "oracle", "type": "address" }], "internalType": "struct CollateralParams[]", "name": "collateralParams", "type": "tuple[]" }, { "internalType": "uint256", "name": "maturity", "type": "uint256" }, { "internalType": "uint256", "name": "rcfThreshold", "type": "uint256" }, { "internalType": "address", "name": "enterGate", "type": "address" }, { "internalType": "address", "name": "liquidatorGate", "type": "address" }], "internalType": "struct Market", "name": "market", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
1116
+ "networks": {
1117
+ "8453": {
1118
+ "address": "0x3aa272f329E8B562A3bA56Bb6979a44D23A28839",
1119
+ "createdBlock": 48932293,
1120
+ }
1121
+ },
1122
+ };
1114
1123
  export const FeedRegistry = {
1115
1124
  "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }], "name": "OwnershipTransferRequested", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "name": "confirmFeed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "description", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAccessController", "outputs": [{ "internalType": "contract AccessControllerInterface", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" }], "name": "getAnswer", "outputs": [{ "internalType": "int256", "name": "answer", "type": "int256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getCurrentPhaseId", "outputs": [{ "internalType": "uint16", "name": "currentPhaseId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "getNextRoundId", "outputs": [{ "internalType": "uint80", "name": "nextRoundId", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint16", "name": "phaseId", "type": "uint16" }], "name": "getPhase", "outputs": [{ "components": [{ "internalType": "uint16", "name": "phaseId", "type": "uint16" }, { "internalType": "uint80", "name": "startingAggregatorRoundId", "type": "uint80" }, { "internalType": "uint80", "name": "endingAggregatorRoundId", "type": "uint80" }], "internalType": "struct FeedRegistryInterface.Phase", "name": "phase", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint16", "name": "phaseId", "type": "uint16" }], "name": "getPhaseFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint16", "name": "phaseId", "type": "uint16" }], "name": "getPhaseRange", "outputs": [{ "internalType": "uint80", "name": "startingRoundId", "type": "uint80" }, { "internalType": "uint80", "name": "endingRoundId", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "getPreviousRoundId", "outputs": [{ "internalType": "uint80", "name": "previousRoundId", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getProposedFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "proposedAggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "_roundId", "type": "uint80" }], "name": "getRoundData", "outputs": [{ "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "getRoundFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" }], "name": "getTimestamp", "outputs": [{ "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "aggregator", "type": "address" }], "name": "isFeedEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestAnswer", "outputs": [{ "internalType": "int256", "name": "answer", "type": "int256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestRound", "outputs": [{ "internalType": "uint256", "name": "roundId", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestRoundData", "outputs": [{ "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestTimestamp", "outputs": [{ "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "name": "proposeFeed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "proposedGetRoundData", "outputs": [{ "internalType": "uint80", "name": "id", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "proposedLatestRoundData", "outputs": [{ "internalType": "uint80", "name": "id", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract AccessControllerInterface", "name": "_accessController", "type": "address" }], "name": "setAccessController", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "typeAndVersion", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "version", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
1116
1125
  "networks": {