https://github.com/julienbrg/affix-contracts
Affix your digital seal and let the world verify it
https://github.com/julienbrg/affix-contracts
filecoin foundry ipfs
Last synced: about 1 month ago
JSON representation
Affix your digital seal and let the world verify it
- Host: GitHub
- URL: https://github.com/julienbrg/affix-contracts
- Owner: julienbrg
- License: gpl-3.0
- Created: 2025-06-05T10:19:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-04T13:29:23.000Z (12 months ago)
- Last Synced: 2025-07-04T14:54:10.683Z (12 months ago)
- Topics: filecoin, foundry, ipfs
- Language: Solidity
- Homepage: https://affix.vercel.app/
- Size: 99.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Affix Contracts
Affix your onchain seal and let the world verify it.
- UI repo: https://github.com/julienbrg/affix-ui
- Live demo: https://affix-ui.vercel.app
Organisations, businesses and individuals can authenticate their documents using Filecoin while keeping their existing
workflows intact. Anyone can then instantly verify that documents are genuine and unaltered.
### Install
```bash
# Clone the repository
git clone https://github.com/julienbrg/affix-contracts.git
cd affix-contracts
# Install dependencies
bun install
# Build the project
forge build
```
## Test
Run the basic test suite:
```bash
forge test
```
## Deploy
In a seperated shell:
```bash
supersim fork --chains=op
```
Then:
```bash
forge script script/DeployAffixFactory.sol --rpc-url op --broadcast
forge script script/RegisterEntity.s.sol --rpc-url op --broadcast
forge script script/AddAgent.s.sol --rpc-url op --broadcast
forge script script/IssueDocument.s.sol --rpc-url op --broadcast
forge script script/VerifyDocument.s.sol --rpc-url op --broadcast
```
## Deploy to OP Mainnet
#### 1. Deploy Factory
```bash
forge script script/DeployAffixFactory.sol \
--rpc-url optimism \
--broadcast \
--verify
```
#### 2. Update Factory Address
After successful factory deployment, update the factory address in `script/RegisterEntity.s.sol`:
```solidity
// Update this line with your deployed factory address
address constant AFFIX_FACTORY_ADDRESS = ;
```
#### 3. Register Entity
```bash
forge script script/RegisterEntity.s.sol \
--rpc-url optimism \
--broadcast \
--verify
```
#### 4. Add Agents (Optional)
```bash
forge script script/AddAgent.s.sol \
--rpc-url optimism \
--broadcast
```
#### 5. Issue Documents
```bash
forge script script/IssueDocument.s.sol \
--rpc-url optimism \
--broadcast
```
## Support
Feel free to reach out to [Julien](https://github.com/julienbrg) on [Farcaster](https://warpcast.com/julien-),
[Element](https://matrix.to/#/@julienbrg:matrix.org),
[Status](https://status.app/u/iwSACggKBkp1bGllbgM=#zQ3shmh1sbvE6qrGotuyNQB22XU5jTrZ2HFC8bA56d5kTS2fy),
[Telegram](https://t.me/julienbrg), [Twitter](https://twitter.com/julienbrg),
[Discord](https://discordapp.com/users/julienbrg), or [LinkedIn](https://www.linkedin.com/in/julienberanger/).
## License
This project is licensed under the GNU General Public License v3.0.