Implementation of the FDA DSCSA supply chain regulation in a Consortium Blockchain implemented on Ethereum.
The DSCSA is a FDA regulation to track drug packages through the supply chain. The FDA completed a DSCSA blockchain pilot in 2020: FDA Blockchain Pilot Report.
Reference OpenZeppelin for details in setting up the development environment. A summary is provided in the 31_Installation.md.
Create Solidity code to inherit from DSCSAOwner:
pragma solidity 0.8.4;
import "./DSCSAOwner.sol";
contract DSCSAOwnerMock is DSCSAOwner {
// Real use case would add custom logic here
}
npx truffle compile ./contracts/DSCSAOwnerMock.sol
npx truffle migrate --network development
Launch Ganache for Blockchain testing and then run the test:
npx truffle test ./test/DSCSAOwnerMock.test.js
The Ganache blockchain explorer shows a contract being created and the holder being changed by the MAH.
Visit OpenZeppelin for additional information.
Next steps for this repository:
- Implement the DSCSA via the ERC1155 Multi Token Standard
- Add AccessControl