How shreenithib/access-modifier works
This repository centers on the DCF authorization contract, with TypeScript scripts for deploying it and managing authorized people. The deployment script records versioned contract addresses in a JSON file; the management script reads the latest address, checks ownership and authorization, and submits add/remove transactions. The contract’s internal behavior is not shown in the sampled source, so its implementation details and other capabilities are omitted.
Main entry points: deploy.ts Deploy DCF · managePeople.ts Manage people · DCF.sol DCF contract · sepolia.json Sepolia deployment record
Components 6
Operations
- Deploy DCF
scripts/deploy.ts - Manage people
scripts/managePeople.ts
On-chain contract
- DCF contract
contracts/DCF.sol
Deployment state
- Sepolia deployment record
deployments/sepolia.json
Other components
- Operator
- Ethereum network
Connections 8
- Operator → Deploy DCF: runs
- Deploy DCF → Ethereum network: deploys to
scripts/deploy.ts - Deploy DCF → DCF contract: deploys
scripts/deploy.ts - Deploy DCF → Sepolia deployment record: writes version
scripts/deploy.ts - Operator → Manage people: runs
- Manage people → Sepolia deployment record: reads address
scripts/managePeople.ts - Manage people → DCF contract: reads and updates
scripts/managePeople.ts - Manage people → Ethereum network: submits transactions
scripts/managePeople.ts