Skip to content

shadmoney/Blockchain-ABAC

 
 

Repository files navigation

Blockchain-ABAC

Create a .env file in the top-level directory with these environment variables

API_URL = "<goerli API URL>"
MUMBAI_API_URL = "<Polygon Mumbai API URL>"
WALLET_ADDRESS_1 = "<Metamask wallet address>"
PRIVATE_KEY_1 = "<Private key for WALLET_ADDRESS_1>"
WALLET_ADDRESS_2 = "<Metamask wallet address>"
PRIVATE_KEY_2 = "Private key for WALLET_ADDRESS_2"
EVTOKEN_CONTRACT_ADDRESS = "<Address to deployed EVToken.sol>"
SUBJECT_ATTRIBUTE_CONTRACT_ADDRESS = "<Address to deployed SubjectAttribute.sol>"
POLICY_MANAGEMENT_CONTRACT_ADDRESS = "<Address to deployed PolicyManagement.sol>"
OBJECT_ATTRIBUTE_CONTRACT_ADDRESS = "<Address to deployed ObjectAttribute.sol>"
ACCESS_CONTROL_CONTRACT_ADDRESS = "<Address to deployed AccessControl.sol>"

compile smart contracts:

$ npx hardhat compile

deploy smart contracts:

$ npx hardhat run scripts/deploy.js --network <network name defined in hardhat.config.js>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 83.5%
  • Python 9.2%
  • JavaScript 7.3%