Skip to content

Commit

Permalink
✨ Adding allowance in IERC20
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-bellotti committed May 31, 2024
1 parent d9c44c6 commit 9368c09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interfaces/erc20.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use starknet::{ContractAddress};
#[starknet::interface]
pub trait IERC20<TStorage> {
fn approve(ref self: TStorage, spender: ContractAddress, amount: u256);
fn allowance(self: @TState, owner: ContractAddress, spender: ContractAddress) -> u256;
fn transferFrom(ref self: TStorage, from: ContractAddress, to: ContractAddress, amount: u256);
fn transfer(ref self: TStorage, to: ContractAddress, amount: u256);
fn balanceOf(self: @TStorage, account: ContractAddress) -> u256;
Expand Down

0 comments on commit 9368c09

Please sign in to comment.