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

https://github.com/boopi7/tipjar_plugin_package


https://github.com/boopi7/tipjar_plugin_package

Last synced: about 16 hours ago
JSON representation

Awesome Lists containing this project

README

          

TipJar Plugin - Package (ARC-0058 compatible)

Contents:
- tipjar_plugin.algo.ts : TypeScript ARC4 contract skeleton (plugin)
- deploy_tipjar.js : Deployment template script (Node.js / algosdk)
- integration_example.md : Step-by-step integration flow with AbstractedAccount (ARC-0058)
- frontend_hook.js : Frontend snippet template for creating atomic group and invoking tip

Step-by-step (high-level):
1) Compile contract
- Use the ARC4 / algorand-typescript toolchain to compile TypeScript contract to TEAL.
- Example: arc4 compile ./tipjar_plugin.algo.ts -> outputs approval.teal & clear.teal
2) Deploy plugin contract to TestNet
- Use algosdk or Algorand tooling (algob/algokit) to deploy approval.teal & clear.teal as an Application.
3) Register plugin with AbstractedAccount
- Call arc58_addPlugin on the AbstractedAccount instance with plugin app ID, allowed caller, methods, cooldowns, and escrow info.
4) Invoke tip flow from frontend
- Construct atomic group: arc58_rekeyToPlugin -> TipJarPlugin.executeTip -> arc58_verifyAuthAddr
5) Testing checklist
- Verify rekey flash flows, enforce allowance rules, test asset transfers and fee splits, test insufficient balance scenarios.

Files exported in this package are templates — adjust them to match your deployment toolchain (algob, algokit, arc4 compiler).