10000 Feat/access control by JackBekket · Pull Request #29 · MoonSHRD/IKY · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat/access control #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
0