From b9d7d249c2386d8d8b83af4a23dfdb4fedc4d288 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Fri, 9 Aug 2024 00:23:39 +0700 Subject: [PATCH] Create SmartContractInterface.sol --- pi-nexus-smart-contracts/common/SmartContractInterface.sol | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pi-nexus-smart-contracts/common/SmartContractInterface.sol diff --git a/pi-nexus-smart-contracts/common/SmartContractInterface.sol b/pi-nexus-smart-contracts/common/SmartContractInterface.sol new file mode 100644 index 000000000..e638b9ba5 --- /dev/null +++ b/pi-nexus-smart-contracts/common/SmartContractInterface.sol @@ -0,0 +1,5 @@ +interface SmartContractInterface { + function deployContract(bytes memory bytecode) external returns (address); + function executeContract(address contractAddress, bytes memory input) external returns (bytes memory); + function getContractBalance(address contractAddress) external view returns (uint256); +}