@wzrd_sol/eliza-plugin 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/claim.d.ts +7 -1
- package/dist/actions/deposit.js +10 -1
- package/package.json +2 -2
package/dist/actions/claim.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* ELIZA Action: WZRD_CLAIM — claim accrued CCM via gasless relay (auth).
|
|
3
|
+
*
|
|
4
|
+
* Agents can check current APR before deciding whether to claim or hold:
|
|
5
|
+
* WzrdClient.getMarketApr(marketId) — projected_total_apr_bps shows current yield rate.
|
|
6
|
+
* WzrdClient.getMarketPreview(marketId) — projected_multiplier_bps for live attention signal.
|
|
7
|
+
*/
|
|
2
8
|
import type { Action } from '@elizaos/core';
|
|
3
9
|
export declare const claimAction: Action;
|
package/dist/actions/deposit.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* ELIZA Action: WZRD_DEPOSIT — deposit USDC into attention market, mint vLOFI (auth + keypair).
|
|
3
|
+
*
|
|
4
|
+
* Before depositing, agents can check expected returns via the APR endpoint:
|
|
5
|
+
* GET /v1/markets/:id/apr — returns base_apr_bps, attention_multiplier_bps,
|
|
6
|
+
* projected_total_apr_bps, tvl_usdc, and the yield formula.
|
|
7
|
+
* GET /v1/markets/:id/preview — returns projected_multiplier_bps and freshness_secs
|
|
8
|
+
* for a live multiplier snapshot before committing capital.
|
|
9
|
+
* Use WzrdClient.getMarketApr(marketId) or WzrdClient.getMarketPreview(marketId).
|
|
10
|
+
*/
|
|
2
11
|
import { Keypair, ComputeBudgetProgram, TransactionMessage, VersionedTransaction, Connection } from '@solana/web3.js';
|
|
3
12
|
export const depositAction = {
|
|
4
13
|
name: 'WZRD_DEPOSIT',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wzrd_sol/eliza-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "WZRD Liquid Attention Protocol plugin for ElizaOS — leaderboard, portfolio, deposit, claim, velocity",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
|
-
"url": "https://github.com/twzrd-sol/wzrd-final",
|
|
51
|
+
"url": "git+https://github.com/twzrd-sol/wzrd-final.git",
|
|
52
52
|
"directory": "agents/eliza-plugin"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|