Conversation
WalkthroughA new entry mapping the package Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use oxc to improve the quality of JavaScript and TypeScript code reviews.Add a configuration file to your project to customize how CodeRabbit runs oxc. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@index.json`:
- Line 360: The index.json entry for "@moltraffle/elizaos-plugin" points to
"github:Hizarcu/elizaos-plugin-moltraffle" but the published package metadata
shows repository "https://github.com/Hizarcu/moltraffle-mainnet.git"; confirm
which repo is authoritative (check the npm package
`@moltraffle/elizaos-plugin`@0.1.1 and the upstream GitHub org), then update the
value for the "@moltraffle/elizaos-plugin" entry to the correct repository
identifier/URL to match the npm package metadata (or change the npm metadata if
the GitHub repo is correct), ensuring the string in index.json equals the
confirmed repository.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "@kudo-dev/plugin-kudo": "github:Kudo-Archi/plugin-kudo", | ||
| "@mascotai/plugin-connections": "github:mascotai/plugin-connections", | ||
| "@mazzz/plugin-elizaos-compchembridge": "github:Mazzz-zzz/plugin-elizaos-compchembridge", | ||
| "@moltraffle/elizaos-plugin": "github:Hizarcu/elizaos-plugin-moltraffle", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify GitHub repository exists and npm package is published
echo "=== Checking GitHub repository ==="
gh repo view Hizarcu/elizaos-plugin-moltraffle --json name,description,url,createdAt,pushedAt,isArchived,visibility
echo -e "\n=== Checking npm package ==="
npm view `@moltraffle/elizaos-plugin` name version description repository homepage
echo -e "\n=== Checking for security advisories ==="
npm audit --package-lock-only --registry=https://registry.npmjs.org `@moltraffle/elizaos-plugin` 2>&1 || echo "Note: Full audit requires package installation"Repository: elizaos-plugins/registry
Length of output: 580
🏁 Script executed:
#!/bin/bash
# Check if the referenced repository exists and clarify the discrepancy
echo "=== Checking if referenced GitHub repo exists (via curl) ==="
curl -s -I https://github.com/Hizarcu/elizaos-plugin-moltraffle 2>&1 | head -1
echo -e "\n=== Checking npm package registry info in detail ==="
npm view `@moltraffle/elizaos-plugin` --json 2>&1 | python3 << 'PYTHON'
import json, sys
try:
data = json.load(sys.stdin)
print(f"Package: {data.get('name')}")
print(f"Version: {data.get('version')}")
repo = data.get('repository', {})
if isinstance(repo, dict):
print(f"Repository URL: {repo.get('url')}")
else:
print(f"Repository: {repo}")
except Exception as e:
print(f"Error: {e}")
PYTHON
echo -e "\n=== Verifying against index.json entry ==="
echo "index.json references: github:Hizarcu/elizaos-plugin-moltraffle"
echo "npm registry lists repo: (see above)"Repository: elizaos-plugins/registry
Length of output: 389
🏁 Script executed:
#!/bin/bash
# Verify the actual entry in index.json
echo "=== Content around line 360 in index.json ==="
sed -n '355,365p' index.json
echo -e "\n=== Also check for any other moltraffle or Hizarcu entries ==="
grep -n "moltraffle\|Hizarcu" index.jsonRepository: elizaos-plugins/registry
Length of output: 1059
Resolve repository URL mismatch before merging.
The entry format and alphabetical ordering are correct, but there is a critical discrepancy: index.json references github:Hizarcu/elizaos-plugin-moltraffle, however the published npm package (@moltraffle/elizaos-plugin@0.1.1) lists its repository as https://github.com/Hizarcu/moltraffle-mainnet.git.
These are two different repositories. Confirm which repository is the authoritative source for this plugin and update the index.json entry accordingly to match the npm package metadata.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@index.json` at line 360, The index.json entry for
"@moltraffle/elizaos-plugin" points to
"github:Hizarcu/elizaos-plugin-moltraffle" but the published package metadata
shows repository "https://github.com/Hizarcu/moltraffle-mainnet.git"; confirm
which repo is authoritative (check the npm package
`@moltraffle/elizaos-plugin`@0.1.1 and the upstream GitHub org), then update the
value for the "@moltraffle/elizaos-plugin" entry to the correct repository
identifier/URL to match the npm package metadata (or change the npm metadata if
the GitHub repo is correct), ensuring the string in index.json equals the
confirmed repository.
|
Fixed. The npm package metadata was pointing to the old monorepo ( |
Plugin: @moltraffle/elizaos-plugin
Adds moltraffle.fun plugin to the registry.
npm: https://www.npmjs.com/package/@moltraffle/elizaos-plugin
GitHub: https://github.com/Hizarcu/elizaos-plugin-moltraffle
Homepage: https://moltraffle.fun
What it does
Permissionless on-chain raffles on Base mainnet. Humans and AI agents can create raffles, sell tickets, and earn commission.
Actions (5)
LIST_RAFFLES— browse active rafflesGET_RAFFLE— full details by addressJOIN_RAFFLE— calldata to buy ticketsCREATE_RAFFLE— calldata to deploy a new raffleDRAW_WINNER— calldata to trigger Chainlink VRF draw (permissionless)Usage
All actions return transaction calldata — wallet provider handles signing. Live on Base mainnet.
Summary by CodeRabbit
Release Notes
@moltraffle/elizaos-pluginto the package registry, making it available for installation and use.Greptile Summary
This PR registers the
@moltraffle/elizaos-plugincommunity plugin in the ElizaOS plugin registry. The plugin provides permissionless on-chain raffle functionality on Base mainnet, exposing five actions (LIST_RAFFLES,GET_RAFFLE,JOIN_RAFFLE,CREATE_RAFFLE,DRAW_WINNER) that return transaction calldata for wallet signing.Changes:
"@moltraffle/elizaos-plugin": "github:Hizarcu/elizaos-plugin-moltraffle"— correctly placed in alphabetical order between@mazzz/plugin-elizaos-compchembridgeand@nuggetslife/plugin-nuggetsObservations:
@blockrun/elizaos-pluginfollows the same@scope/elizaos-pluginnaming pattern)mazzz→moltraffle→nuggetslife)Confidence Score: 4/5
Important Files Changed
@moltraffle/elizaos-pluginpointing togithub:Hizarcu/elizaos-plugin-moltrafflein the correct alphabetical position, and fixes a pre-existing missing newline at end of file.Sequence Diagram
sequenceDiagram participant User/Agent participant moltrafflePlugin participant MoltraffleAPI participant BaseMainnet User/Agent->>moltrafflePlugin: LIST_RAFFLES moltrafflePlugin->>MoltraffleAPI: fetch active raffles MoltraffleAPI-->>moltrafflePlugin: raffle list moltrafflePlugin-->>User/Agent: raffle list User/Agent->>moltrafflePlugin: GET_RAFFLE (address) moltrafflePlugin->>MoltraffleAPI: fetch raffle details MoltraffleAPI-->>moltrafflePlugin: raffle details moltrafflePlugin-->>User/Agent: full raffle details User/Agent->>moltrafflePlugin: JOIN_RAFFLE / CREATE_RAFFLE / DRAW_WINNER moltrafflePlugin->>MoltraffleAPI: build transaction calldata MoltraffleAPI-->>moltrafflePlugin: calldata moltrafflePlugin-->>User/Agent: transaction calldata User/Agent->>BaseMainnet: wallet provider signs & submits tx BaseMainnet-->>User/Agent: tx confirmationLast reviewed commit: "Add @moltraffle/eliz..."
(2/5) Greptile learns from your feedback when you react with thumbs up/down!