IAccount

Interface for accounts.

IAccount Contract

This interface defines the basic functions for an account.

Functions

  • deposit(uint256 amount): Deposits funds into the account.
  • withdraw(uint256 amount): Withdraws funds from the account.
  • getBalance(): Returns the current balance of the account.

Usage

This interface can be implemented by any contract that needs to represent an account with basic functionalities like deposits, withdrawals, and balance checks.