-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cuong Truong
committed
Sep 21, 2023
1 parent
1246b8c
commit 5b89911
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
lib/ain-contracts/dfi_intrinsics/ExampleDFIIntrinsicsIntegration.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "./IDFIIntrinsicsV1.sol"; | ||
|
||
contract ExampleDFIIntrinsicsV1Integration { | ||
|
||
address DFIIntrinsicsV1Address; | ||
|
||
function getVersion() external view returns (uint256) { | ||
return IDFIIntrinsicsV1(DFIIntrinsicsV1Address).version(); | ||
} | ||
|
||
function getEvmBlockCount() external view returns (uint256) { | ||
return IDFIIntrinsicsV1(DFIIntrinsicsV1Address).evmBlockCount(); | ||
} | ||
|
||
function getDvmBlockCount() external view returns (uint256) { | ||
return IDFIIntrinsicsV1(DFIIntrinsicsV1Address).evmBlockCount(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
} | ||
} |
should be dvmBlockCount?