Add ERC6909 Implementation along with extensions (#5394)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
Arr00
2025-02-04 07:47:21 -05:00
committed by GitHub
parent df878c87fc
commit 43b3319e5b
19 changed files with 1008 additions and 0 deletions

View File

@ -90,6 +90,15 @@ const SIGNATURES = {
Governor: GOVERNOR_INTERFACE,
Governor_5_3: GOVERNOR_INTERFACE.concat('getProposalId(address[],uint256[],bytes[],bytes32)'),
ERC2981: ['royaltyInfo(uint256,uint256)'],
ERC6909: [
'balanceOf(address,uint256)',
'allowance(address,address,uint256)',
'isOperator(address,address)',
'transfer(address,uint256,uint256)',
'transferFrom(address,address,uint256,uint256)',
'approve(address,uint256,uint256)',
'setOperator(address,bool)',
],
};
const INTERFACE_IDS = mapValues(SIGNATURES, interfaceId);