Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/onit-labs/onit-contracts

Contracts for Onit smart account - A passkey controlled ERC-4337 Safe wallet
https://github.com/onit-labs/onit-contracts

erc-4337 foundry multisig passkey wallet

Last synced: about 2 months ago
JSON representation

Contracts for Onit smart account - A passkey controlled ERC-4337 Safe wallet

Lists

README

        

# Forum Group Contracts

Forum groups are [ERC4337](https://eips.ethereum.org/EIPS/eip-4337) accounts built on top of [Gnosis Safe](https://docs.gnosis.io/safe/docs/contracts_overview/) contracts. The members do not need existing EOA accounts, instead they use passkeys to generate signatures using FaceID.

## Highlights

### **Passkeys**

Users create a passkey on their phone (currently only available on iOS, requiring >v15) using FaceID or TouchID. This is securely stored in the device and is used to generate signatures for transactions. The P-256 signature is verified on-chain on the group contract.

This means **no more seed phrases**, you can add memebrs to your group by sharing a link, the new member does not need to create an EOA account to take part.

https://user-images.githubusercontent.com/68289880/225950006-dd4879ef-84a3-4ebf-9a6a-b2aba46fcc86.MP4

### **Chat focus**

Groups can discuss and execute trades directly from an in app group chat (Telegram/Discord/Messenger integrations coming soon)

https://user-images.githubusercontent.com/68289880/225950435-df2bf9d1-63d9-49d8-8b0f-9d26ea0e4ee6.mp4

### **Token tracking**

Forum groups use an [ERC-1155](https://eips.ethereum.org/EIPS/eip-1155) token to track voting power, and to determine the share of the safe treasury that each member is entitled to. Groups can even choose to mint new tokens to reward members, or build their own token gating for projects.

### **Extensions**

Forum groups will be extendedable with additional functionality, such as Fundraise to structure funding rounds, or Withdrawals to allow members to quickly withdraw their share from the group treasury. Other custom extensions for managing assets are in development, and groups can even develop their own extensions.

## Core Contracts

| Contract | Address | Description |
| :-------------------- | :---------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------- |
| Forum Group | [0xAce948FC346A00Eead396c23eCCB2f83c7f35ef6](https://polygonscan.com/address/0xAce948FC346A00Eead396c23eCCB2f83c7f35ef6#code) | ERC4337 enabled safe with P-256 passkey members |
| Forum Group Factory | [0xCD9dC60Ad2ceC294bB384B7C8190e58c39595694](https://polygonscan.com/address/0xCD9dC60Ad2ceC294bB384B7C8190e58c39595694#code) | Factory for Forum Groups |
| Forum Account | [0x9dE434EE5d7604e0A95626614AD76464dd2d65E5](https://polygonscan.com/address/0x9dE434EE5d7604e0A95626614AD76464dd2d65E5#code) | ERC4337 enabled safe with P-256 passkey owner |
| Forum Account Factory | [0x7504c55f1b6E10364f4735Ff56888BB721F97578](https://polygonscan.com/address/0x7504c55f1b6E10364f4735Ff56888BB721F97578#code) | Factory for Forum Accounts |




Current seperation of development, staging, and production environments means that multiple factories addresses have been deployed.

| Chain | **Account Factory** | **Group Factory** |
| :-----: | :-------------------------------------------------: | :-------------------------------------------------: |
| Mumbai | Dev: 0x27305c89Cc26d77bcbA3ccf82EF0bB171319C37e | Dev: 0xa780c7627205c39E4BA956f7ff1cc4Dc629EC5DC |
| Polygon | Staging: 0xD243610b2d09255C73692f26A446c71843768819 | Staging: 0x3FAb616EAc9c4dB46B0273D8C3fBCdaA0fFf9254 |

## Other Contracts

| Contract | Address | Description |
| :-------------------- | :---------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------- |
| Forum Qrcode NFT | [0x5ED55f1F6849352c13e06882C7b789de93c35700](https://polygonscan.com/address/0x5ED55f1F6849352c13e06882C7b789de93c35700#code) | Simple ERC721 NFT QR Code with Farcaster PFP |