You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/data-feeds/mvr-feeds/guides/evm-solidity.mdx
+9-13Lines changed: 9 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,25 +62,21 @@ struct Data {
62
62
63
63
Your consumer contract must replicate this structure in the **exact same order** and with the same data types to decode the feed data correctly.
64
64
65
-
### 2. Set Up the BundleAggregatorProxy
65
+
### 2. Import the IBundleAggregatorProxy Interface
66
66
67
-
Your contract will need a reference to the [`IBundleAggregatorProxy`](/data-feeds/mvr-feeds/api-reference#ibundleaggregatorproxy) interface so it can:
67
+
Your contract will need to interact with the MVR feed's proxy contract. The [`IBundleAggregatorProxy`](/data-feeds/mvr-feeds/api-reference#ibundleaggregatorproxy) interface provides the necessary functions:
68
68
69
-
-Retrieve the raw bytes via [`latestBundle()`](/data-feeds/mvr-feeds/api-reference#latestbundle).
70
-
-Retrieve decimals via [`bundleDecimals()`](/data-feeds/mvr-feeds/api-reference#bundledecimals) if the feed includes numeric fields.
71
-
-Check the timestamp of the last update via [`latestBundleTimestamp()`](/data-feeds/mvr-feeds/api-reference#latestbundletimestamp).
69
+
-[`latestBundle()`](/data-feeds/mvr-feeds/api-reference#latestbundle): Retrieves the raw data bundle.
70
+
-[`bundleDecimals()`](/data-feeds/mvr-feeds/api-reference#bundledecimals): Retrieves the decimal places for numeric fields.
71
+
-[`latestBundleTimestamp()`](/data-feeds/mvr-feeds/api-reference#latestbundletimestamp): Retrieves the timestamp of the last update.
72
72
73
-
```solidity
74
-
interface IBundleAggregatorProxy {
75
-
function latestBundle() external view returns (bytes memory);
76
-
function bundleDecimals() external view returns (uint8[] memory);
77
-
function latestBundleTimestamp() external view returns (uint256);
0 commit comments