9. Architecture Decisions
Important, expensive, large scale or risky architecture decisions including rationales. With "decisions" we mean selecting one alternative based on given criteria.
9.1. ADR-001: Automated Reward Distribution
9.1.2. Context
Interaction with the blockchain requires a consistent strategy in an application. While direct wallet to blockchain interaction is good for small dApps, such as a minting dApp, it is not feasible for large applications that demand server interaction with blockchain. For medium sized applications, managed by one or a few admin, it is easiest to hide a secret key in the application’s environment variables and use that to transact with the blockchain. For larger applications with many admin a more sophisticated solution is required.
9.1.4. Consequences
Pros: * thirdweb offers an intuitive interface to manage the admin wallets used to transact with the blockchain. * thirdweb has robust APIs and SDKs available for our usage. * Engine integrates with Content+ existing use of thirdweb’s in-app wallets and smart accounts.
Cons: * More dependency on thirdweb