Skip to content

Commit

Permalink
chore: erc20 abi
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifechukwudaniel committed Dec 19, 2024
1 parent 8583606 commit 6d21c4e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/erc4262/tests/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ use alloy::sol;
sol!(
#[sol(rpc)]
contract Erc4262 {

function name() external view returns (string name);
function symbol() external view returns (string symbol);
function decimals() external view returns (uint8 decimals);
function totalSupply() external view returns (uint256 totalSupply);
function balanceOf(address account) external view returns (uint256 balance);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256 allowance);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
error ERC20InvalidSender(address sender);
Expand Down

0 comments on commit 6d21c4e

Please sign in to comment.