WIP: Chain138 deployment scripts, flash receivers, HYBX OMNL recovery

This commit is contained in:
defiQUG
2026-06-02 06:09:44 -07:00
parent e1560a880b
commit f04a7cb7c8
35 changed files with 2279 additions and 83 deletions

View File

@@ -103,13 +103,14 @@ contract DeployM00DiamondHub138 is Script {
}
function _accessSelectors() internal pure returns (bytes4[] memory s) {
s = new bytes4[](6);
s = new bytes4[](7);
s[0] = AccessFacet.grantRoles.selector;
s[1] = AccessFacet.revokeRoles.selector;
s[2] = AccessFacet.ROLE_UPGRADE_BIT.selector;
s[3] = AccessFacet.ROLE_GOVERNANCE_BIT.selector;
s[4] = AccessFacet.ROLE_INDEX_BIT.selector;
s[5] = AccessFacet.ROLE_MONETARY_BIT.selector;
s[2] = AccessFacet.hasRoles.selector;
s[3] = AccessFacet.ROLE_UPGRADE_BIT.selector;
s[4] = AccessFacet.ROLE_GOVERNANCE_BIT.selector;
s[5] = AccessFacet.ROLE_INDEX_BIT.selector;
s[6] = AccessFacet.ROLE_MONETARY_BIT.selector;
}
function _bridgeSelectors() internal pure returns (bytes4[] memory s) {
@@ -137,15 +138,19 @@ contract DeployM00DiamondHub138 is Script {
}
function _rwaDocSelectors() internal pure returns (bytes4[] memory s) {
s = new bytes4[](2);
s = new bytes4[](4);
s[0] = RWADocumentFacet.anchorDocument.selector;
s[1] = RWADocumentFacet.setPrimaryContentHash.selector;
s[2] = RWADocumentFacet.documentCount.selector;
s[3] = RWADocumentFacet.getDocument.selector;
}
function _rwaStdSelectors() internal pure returns (bytes4[] memory s) {
s = new bytes4[](3);
s = new bytes4[](5);
s[0] = RWAStandardsRegistryFacet.enableStandard.selector;
s[1] = RWAStandardsRegistryFacet.disableStandard.selector;
s[2] = RWAStandardsRegistryFacet.bindAssetStandardFacet.selector;
s[3] = RWAStandardsRegistryFacet.isStandardEnabled.selector;
s[4] = RWAStandardsRegistryFacet.assetStandardFacet.selector;
}
}