Skip to content

v2.0.0 — Full rewrite for npm publishing under @aigen-protocol scope#1

Open
Aigen-Protocol wants to merge 2 commits intomainfrom
v2
Open

v2.0.0 — Full rewrite for npm publishing under @aigen-protocol scope#1
Aigen-Protocol wants to merge 2 commits intomainfrom
v2

Conversation

@Aigen-Protocol
Copy link
Copy Markdown
Owner

Prepares the plugin for npm publish. Per elizaOS maintainer @lalalune, plugins must be developed in own repo + published to npm — this is that publication-ready state.

Changes

  • Scope: @elizaos/plugin-safeagent (not ours) → @aigen-protocol/plugin-safeagent (ours)
  • Version: 1.0.0 → 2.0.0
  • 4 actions instead of 1: SHIELD, WATCH_WALLET, SAFE_CHECK, SAFE_SWAP_CALLDATA
  • Full TypeScript build (dist/ artifacts via tsc)
  • Updated README with on-chain contract table + signature verification example
  • LICENSE + .gitignore + tsconfig.json + lockfile

Verified

  • tsc clean (no errors)
  • Loaded via require('./dist/index.js').default — plugin name safeagent-aigen, 4 actions registered
  • SHIELD live test: USDC on Base returns 100/100 SYSTEM TOKEN, decision GO

Publish (requires owner npm login):

npm login
npm publish    # configured for access:public

Renamed scope to @aigen-protocol/plugin-safeagent (we control this scope;
@elizaos/* is the upstream's). Built dist/ for npm publish.

Actions (4):
- SHIELD              — pre-trade safety check via HTTP /scan + /honeypot
- WATCH_WALLET        — register wallet for HMAC-signed webhook alerts
- SAFE_CHECK          — view-only on-chain SafeRouter.checkBeforeBuy (Base)
- SAFE_SWAP_CALLDATA  — build calldata for SafeRouter.safeSwap (custody-safe)

Build: tsc → dist/{index.js,index.d.ts,index.js.map,index.d.ts.map}
Verified end-to-end: SHIELD returned correct 100/100 SYSTEM TOKEN for USDC
on Base via fetch. Plugin loads cleanly, all 4 actions registered.

Per @lalalune (eliza issues #6706, #6707, #6708): plugin proposals must
be developed in own repo + published to npm. This is that publication.

To publish (requires npm account + login):
  npm login
  npm publish    # access:public configured

Once published:
  npm install @aigen-protocol/plugin-safeagent
Aigen-Protocol pushed a commit to Aigen-Protocol/aigen-protocol that referenced this pull request May 7, 2026
- SafeRouter V2 deployed on Optimism (0x38be6AA1044e866FcDFE34d4B4273F703668B80E,
  block 151287236, tx 0x1df8010ade30a2d622af9f6e1248619dd8cfb6b5af9447986981b8639fce5f6c)
  wrapping Velodrome V2. Same code as Base V2, atomic safety guarantee, same
  custom-error revert path. Cost $0.005 from OP-ETH balance.
- ElizaOS plugin install line: `npm install @aigen-protocol/plugin-safeagent`
  (PR Aigen-Protocol/plugin-safeagent#1, awaiting npm publish)
- New ERC submitted to ethereum/ERCs#1729 (Token Safety Score, Standards Track,
  category ERC). Reference implementations are our deployed oracles + SafeRouter.
  Replaces our withdrawn 7913-update PR (we incorrectly targeted OZ Signature
  Verifiers; this is a new unassigned-number proposal).
- Multi-chain table at top, on-chain proof tx hashes inline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant