-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from horuslabsio/ft_v3_account
Feat: Account V3
- Loading branch information
Showing
3 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ pub mod IExecutable; | |
pub mod ILockable; | ||
pub mod ISignatory; | ||
pub mod IPermissionable; | ||
pub mod IAccountV3; |
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,20 @@ | ||
use starknet::{ContractAddress, ClassHash,}; | ||
|
||
|
||
#[starknet::interface] | ||
pub trait IAccountV3<TContractState> { | ||
// fn on_erc721_received( | ||
// self: @TContractState, | ||
// token_contract: ContractAddress, | ||
// token_id: u256, | ||
// calldata: Span<felt252> | ||
// ) -> (felt252, ByteArray); | ||
fn on_erc721_received( | ||
self: @TContractState, | ||
_token_contract: ContractAddress, | ||
_token_id: u256, | ||
calldata: Span<felt252> | ||
) -> ByteArray; | ||
fn get_context(self: @TContractState) -> (ContractAddress, felt252, felt252); | ||
} | ||
|