-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor account contracts * update cairo syntax * bump cairo in tox * migrate mocks * check version in account * fix return vals * remove unused imports * update syntax * add static erc165 support * fix return val name * update IACCOUNT_ID * tmp comment out nile dep * fix syntax * refactor event assertion, fix cached_contract * update signers, add mock nile * remove unused function * fix tests * update id * update account id * update interface * update iaccount * remove unnecessary func * prepare signer for nile integration * fix comments * Update tests/mocks/ERC721SafeMintableMock.cairo Co-authored-by: Martín Triay <martriay@gmail.com> * Update tests/mocks/ERC721SafeMintableMock.cairo Co-authored-by: Martín Triay <martriay@gmail.com> * import signer from nile, add nile dep * remove unused import * replace res return val * update _exists * adjust _is_approved_or_owner, replace res * simplify return vals * Apply suggestions from code review Co-authored-by: Martín Triay <martriay@gmail.com> * fix implicit args order * add blank line * fix decimals check * simplify return * simplify return, rename res * rename res * remove comments * simplify view funcs, return success from lib * simplify return * remove kwarg * simplify presets * update return var * add from_address to events * remove unused import * simplify getters * simplify getters * simplify getters * simplify getters * fix return var * simplify getters * simplify externals * bind return vals * Update src/openzeppelin/account/presets/Account.cairo Co-authored-by: Martín Triay <martriay@gmail.com> * fix and test transferFrom Co-authored-by: Martín Triay <martriay@gmail.com>
- Loading branch information
1 parent
789ea11
commit a9894b4
Showing
70 changed files
with
3,696 additions
and
4,840 deletions.
There are no files selected for viewing
28 changes: 14 additions & 14 deletions
28
src/openzeppelin/access/accesscontrol/IAccessControl.cairo
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# SPDX-License-Identifier: MIT | ||
# OpenZeppelin Contracts for Cairo v0.3.2 (access/accesscontrol/IAccessControl.cairo) | ||
// SPDX-License-Identifier: MIT | ||
// OpenZeppelin Contracts for Cairo v0.3.2 (access/accesscontrol/IAccessControl.cairo) | ||
|
||
%lang starknet | ||
|
||
@contract_interface | ||
namespace IAccessControl: | ||
func hasRole(role: felt, account: felt) -> (hasRole: felt): | ||
end | ||
namespace IAccessControl { | ||
func hasRole(role: felt, account: felt) -> (hasRole: felt) { | ||
} | ||
|
||
func getRoleAdmin(role: felt) -> (admin: felt): | ||
end | ||
func getRoleAdmin(role: felt) -> (admin: felt) { | ||
} | ||
|
||
func grantRole(role: felt, account: felt): | ||
end | ||
func grantRole(role: felt, account: felt) { | ||
} | ||
|
||
func revokeRole(role: felt, account: felt): | ||
end | ||
func revokeRole(role: felt, account: felt) { | ||
} | ||
|
||
func renounceRole(role: felt, account: felt): | ||
end | ||
end | ||
func renounceRole(role: felt, account: felt) { | ||
} | ||
} |
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
Oops, something went wrong.