Skip to content

Commit

Permalink
Merge pull request #29 from MoonSHRD/feat/access-control
Browse files Browse the repository at this point in the history
Feat/access control
  • Loading branch information
JackBekket authored Nov 17, 2022
2 parents c53c5dd + c1e060b commit c876c01
Show file tree
Hide file tree
Showing 25 changed files with 258,454 additions and 39 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
secret.json
./secret.json
.env
coverage
coverage.json
Expand Down
14 changes: 8 additions & 6 deletions addresses.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@

Goerli:
TGPassport deployed to: 0x05044C88AB66a058D523038039d64cd101b9D8c9
Union deployed to: 0xef2DCEA186FA90FcD0c44C3caaE81E4586eE0685
Sample erc20 deployed to: 0xFbC45497848cc7438c528015271d73B9d8712385
test dao address: 0x9b393D071fa16458cb6CE3256F50eD1D2c776F7D
owner address: 0x16d97A46030C5D3D705bca45439e48529997D8b2
TGPassport deployed to: 0xC14f07F30aBB60F0A143fB99fCc6c1f1a8070567
Union deployed to: 0xc86aa41302E8ae8baAaB2Ce8647568AA17f10b7E
bytes32 moderator: 0xcea62fe6ecc79e221c545bf918f804693c542ead2549e37c2bb9baa66ee2e157
Murs account have moderator role: true
Sample ERC20 deployed to: 0xFbC45497848cc7438c528015271d73B9d8712385
test dao address: 0x18f060e4E6A7ff6f432d45629085AeF5E6Cc5081
passport fee: BigNumber { value: "1000" }
applierd user wallet : 0x16d97A46030C5D3D705bca45439e48529997D8b2
approved user wallet : 0x16d97A46030C5D3D705bca45439e48529997D8b2
apllied dao address: 0x9b393D071fa16458cb6CE3256F50eD1D2c776F7D
approved dao address: 0x9b393D071fa16458cb6CE3256F50eD1D2c776F7D
apllied dao address: 0x18f060e4E6A7ff6f432d45629085AeF5E6Cc5081
approved dao address: 0x18f060e4E6A7ff6f432d45629085AeF5E6Cc5081



Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/34250fecc113d2f2e1976d341dc85eaf.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "AccessControl",
"sourceName": "@openzeppelin/contracts/access/AccessControl.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/34250fecc113d2f2e1976d341dc85eaf.json"
}
Loading

1 comment on commit c876c01

@vercel
Copy link

@vercel vercel bot commented on c876c01 Nov 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ikytest – ./

ikytest-git-master-s0lidarnost.vercel.app
ikytest-s0lidarnost.vercel.app
ikytest.vercel.app

Please sign in to comment.