/forum-contracts

Contracts for Forum ERC-4337 passkey wallets & groups

Primary LanguageSolidityGNU Affero General Public License v3.0AGPL-3.0

Forum Group Contracts

Forum groups are ERC4337 accounts built on top of Gnosis Safe 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.

IMG_1420.MP4

Chat focus

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

mobile-chat-1.mp4

Token tracking

Forum groups use an ERC-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 ERC4337 enabled safe with P-256 passkey members
Forum Group Factory 0xCD9dC60Ad2ceC294bB384B7C8190e58c39595694 Factory for Forum Groups
Forum Account 0x9dE434EE5d7604e0A95626614AD76464dd2d65E5 ERC4337 enabled safe with P-256 passkey owner
Forum Account Factory 0x7504c55f1b6E10364f4735Ff56888BB721F97578 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 Simple ERC721 NFT QR Code with Farcaster PFP