@temporalabs/treasury 0.1.2 → 0.1.4

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.
Files changed (83) hide show
  1. package/README.md +45 -13
  2. package/THIRD_PARTY_NOTICES.connect-page.md +494 -24
  3. package/THIRD_PARTY_NOTICES.md +579 -6
  4. package/dist/cli.js +28 -5
  5. package/dist/cli.js.map +1 -1
  6. package/dist/client.d.ts +50 -209
  7. package/dist/client.js +66 -11
  8. package/dist/client.js.map +1 -1
  9. package/dist/config/earn.d.ts +16 -1
  10. package/dist/config/earn.js +16 -1
  11. package/dist/config/earn.js.map +1 -1
  12. package/dist/connect/ack.d.ts +88 -1
  13. package/dist/connect/ack.js +177 -6
  14. package/dist/connect/ack.js.map +1 -1
  15. package/dist/connect/commands.d.ts +30 -0
  16. package/dist/connect/commands.js +846 -88
  17. package/dist/connect/commands.js.map +1 -1
  18. package/dist/connect/config.d.ts +7 -5
  19. package/dist/connect/config.js +8 -6
  20. package/dist/connect/config.js.map +1 -1
  21. package/dist/connect/gate-solana.d.ts +8 -0
  22. package/dist/connect/gate-solana.js +147 -0
  23. package/dist/connect/gate-solana.js.map +1 -0
  24. package/dist/connect/http.d.ts +17 -2
  25. package/dist/connect/http.js +45 -13
  26. package/dist/connect/http.js.map +1 -1
  27. package/dist/connect/page.d.ts +1 -1
  28. package/dist/connect/page.js +2 -2
  29. package/dist/connect/page.js.map +1 -1
  30. package/dist/connect/session.d.ts +40 -1
  31. package/dist/connect/session.js +243 -2
  32. package/dist/connect/session.js.map +1 -1
  33. package/dist/connect/solana.d.ts +112 -0
  34. package/dist/connect/solana.js +370 -0
  35. package/dist/connect/solana.js.map +1 -0
  36. package/dist/connect-page.js +835 -671
  37. package/dist/disclosures.d.ts +7 -4
  38. package/dist/disclosures.js +7 -4
  39. package/dist/disclosures.js.map +1 -1
  40. package/dist/earn/commands.js +127 -54
  41. package/dist/earn/commands.js.map +1 -1
  42. package/dist/earn/solana.d.ts +278 -0
  43. package/dist/earn/solana.js +316 -0
  44. package/dist/earn/solana.js.map +1 -0
  45. package/dist/guide.d.ts +15 -0
  46. package/dist/guide.js +50 -0
  47. package/dist/guide.js.map +1 -0
  48. package/dist/links.js +2 -0
  49. package/dist/links.js.map +1 -1
  50. package/dist/position.d.ts +3 -2
  51. package/dist/position.js +6 -3
  52. package/dist/position.js.map +1 -1
  53. package/dist/quote.js +2 -2
  54. package/dist/quote.js.map +1 -1
  55. package/dist/redact.js +7 -1
  56. package/dist/redact.js.map +1 -1
  57. package/dist/registry-schema.d.ts +79 -2
  58. package/dist/registry-schema.js +77 -1
  59. package/dist/registry-schema.js.map +1 -1
  60. package/dist/registry.d.ts +21 -1
  61. package/dist/registry.js +48 -10
  62. package/dist/registry.js.map +1 -1
  63. package/dist/solana/constants.d.ts +49 -0
  64. package/dist/solana/constants.js +50 -0
  65. package/dist/solana/constants.js.map +1 -0
  66. package/dist/solana/kvault.d.ts +99 -0
  67. package/dist/solana/kvault.js +192 -0
  68. package/dist/solana/kvault.js.map +1 -0
  69. package/dist/solana/layout.d.ts +143 -0
  70. package/dist/solana/layout.js +209 -0
  71. package/dist/solana/layout.js.map +1 -0
  72. package/dist/solana/rpc.d.ts +24 -0
  73. package/dist/solana/rpc.js +66 -0
  74. package/dist/solana/rpc.js.map +1 -0
  75. package/dist/solana/vault.d.ts +153 -0
  76. package/dist/solana/vault.js +322 -0
  77. package/dist/solana/vault.js.map +1 -0
  78. package/dist/treasury.mjs +37410 -27965
  79. package/dist/version.js +5 -10
  80. package/dist/version.js.map +1 -1
  81. package/llms.txt +637 -0
  82. package/package.json +14 -8
  83. package/registry/vaults.json +113 -0
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
  Open Agent Treasury (OAT) helps agents manage on-chain capital. Its first skill, **Earn**, lets
14
- agents inspect vaults curated by Tempora Labs on Base, Arbitrum One and Robinhood Chain, track positions, and prepare deposits and
14
+ agents inspect vaults curated by Tempora Labs on Base, Arbitrum One, Robinhood Chain, Ethereum, Monad and Solana, track positions, and prepare deposits and
15
15
  withdrawals. It ships as an agent plugin, a command-line program, and a TypeScript/JavaScript library.
16
16
 
17
17
  **OAT prepares transactions. Your wallet executes them.** It never holds private keys or signs: with
@@ -23,6 +23,16 @@ A transaction goes out only from your own wallet, after you approve it there. Yo
23
23
  > and withdrawals depend on available liquidity. Review every transaction before signing and
24
24
  > read the [risks](docs/risks.md) before depositing.
25
25
 
26
+ ## Two ways to use the vaults
27
+
28
+ - **In a browser, at [app.temporalabs.com](https://app.temporalabs.com).** Connect a wallet, then deposit
29
+ and withdraw from the page. The app shows the Cash Plus vaults it currently supports, which can be fewer
30
+ than OAT offers.
31
+ - **With an agent, through OAT.** Your agent quotes, prepares and confirms deposits and withdrawals through
32
+ the plugin or the CLI, and you approve each transaction in your own wallet.
33
+
34
+ Either way the vaults are the same on-chain contracts.
35
+
26
36
  ## What you can do
27
37
 
28
38
  - **Inspect vaults:** check assets, fees, and deposit access.
@@ -30,11 +40,11 @@ A transaction goes out only from your own wallet, after you approve it there. Yo
30
40
  - **Track a position:** see its value, deposits, and earnings from on-chain records.
31
41
  - **Prepare a withdrawal:** check how much is withdrawable now and build unsigned calls.
32
42
 
33
- Earn currently supports **USDC in, USDC out** through Tempora Labs' ERC-4626 vaults on Base and
34
- Arbitrum One, and **USDG in, USDG out** on Robinhood Chain. Base is the default chain, and Test 2B its
43
+ Earn currently supports **USDC in, USDC out** through Tempora Labs' ERC-4626 vaults on Base,
44
+ Arbitrum One, Ethereum and Monad, through a Kamino vault on Solana, and **USDG in, USDG out** on Robinhood Chain. Base is the default chain, and Test 2B its
35
45
  default vault; the agent asks which chain when you have not said, and the funds have to be on that
36
46
  chain already. See [Vaults](#vaults).
37
- See the [command reference](docs/tools.md), the eight `earn` commands and the five `connect` commands, for inputs, outputs, and limits.
47
+ See the [command reference](docs/tools.md), the eight `earn` commands and the six `connect` commands, for inputs, outputs, and limits.
38
48
 
39
49
  ## Quick start
40
50
 
@@ -46,11 +56,14 @@ See the [command reference](docs/tools.md), the eight `earn` commands and the fi
46
56
  export TREASURY_RPC_BASE=https://... # replace with your Base RPC URL
47
57
  export TREASURY_RPC_ARBITRUM=https://... # only if you will use a vault on Arbitrum One
48
58
  export TREASURY_RPC_ROBINHOOD=https://... # only if you will use a vault on Robinhood Chain
49
- claude plugin marketplace add TemporaLabs/treasury@v0.1.2
59
+ export TREASURY_RPC_ETHEREUM=https://... # only if you will use a vault on Ethereum
60
+ export TREASURY_RPC_MONAD=https://... # only if you will use a vault on Monad
61
+ export TREASURY_RPC_SOLANA=https://... # only if you will use the vault on Solana
62
+ claude plugin marketplace add TemporaLabs/treasury@v0.1.4
50
63
  claude plugin install treasury@treasury
51
64
  ```
52
65
 
53
- Start a new Claude Code session after installing so the Earn skill loads. Keep the `TemporaLabs/treasury@v0.1.2` ref
66
+ Start a new Claude Code session after installing so the Earn skill loads. Keep the `TemporaLabs/treasury@v0.1.4` ref
54
67
  explicit so the install stays on a release rather than tracking the default branch. Upgrading an
55
68
  earlier install? Run `claude plugin marketplace remove treasury` first, then the two `claude plugin` lines above
56
69
  ([details](docs/install.md#upgrading-an-earlier-install)).
@@ -62,11 +75,14 @@ command at a time; nothing stays running.
62
75
  ### Any agent with a shell
63
76
 
64
77
  ```bash
65
- npm install --save-exact @temporalabs/treasury@0.1.2
78
+ npm install --save-exact @temporalabs/treasury@0.1.4
66
79
  npx --no-install treasury earn --help # every command and flag, as JSON
67
80
  ```
68
81
 
69
82
  Each command prints one JSON document; a refusal exits 1 with `{ "error": … }` on stderr.
83
+ `treasury --help` points to [`llms.txt`](llms.txt), the guide an agent without the plugin should read first: the rules the
84
+ plugin's Earn skill carries (which questions to ask the operator, what to show before a first deposit) and every command with its flags.
85
+ It is generated from that skill and the command descriptions, and CI fails when it drifts.
70
86
  For library usage, other hosts, and troubleshooting, see [installation](docs/install.md).
71
87
 
72
88
  ### Try it
@@ -85,15 +101,22 @@ Later, ask: **“What is my position worth, and how much can I withdraw now?”*
85
101
  ## Vaults
86
102
 
87
103
  A command that names no vault or chain uses **Cash Plus USDC (Test 2B)** on Base; the agent still asks
88
- which chain first when you have not said. There are other options, and a demo.
104
+ which chain first when you have not said. These are Tempora Labs' curated test vaults, on six chains: Base,
105
+ Arbitrum One, Robinhood Chain, Ethereum, Monad and Solana. There are other options, and a demo.
89
106
 
90
107
  | | vault | chain | choose it by |
91
108
  |---|---|---|---|
92
- | **Default** | **Cash Plus USDC (Test 2B)** | Base | naming nothing, or `--chain base` |
93
- | **Demo** | **Cash Plus USDC (Test 2)** | Base | `--vault tlCashPlusUSDC2` |
94
- | Option | **Cash Plus USDC (Test 2C)** | Arbitrum One | `--chain arbitrum` |
95
- | Option | **Cash Plus USDG (Test 2D)** | Robinhood Chain | `--chain robinhood` |
96
- | Option | **Cash Plus USDC (Test 2A)** | Base | `--vault tlCashPlusUSDC2A` (whitelist only) |
109
+ | **Default** | **Cash Plus USDC (Test 2B)** | <img src="docs/assets/chains/base.webp" alt="" width="20" height="20"> Base | naming nothing, or `--chain base` |
110
+ | **Demo** | **Cash Plus USDC (Test 2)** | <img src="docs/assets/chains/base.webp" alt="" width="20" height="20"> Base | `--vault tlCashPlusUSDC2` |
111
+ | Option | **Cash Plus USDC (Test 2C)** | <img src="docs/assets/chains/arbitrum.webp" alt="" width="20" height="20"> Arbitrum One | `--chain arbitrum` |
112
+ | Option | **Cash Plus USDG (Test 2D)** | <img src="docs/assets/chains/robinhood.webp" alt="" width="20" height="20"> Robinhood Chain | `--chain robinhood` |
113
+ | Option | **Cash Plus USDC (Test 2E)** | <img src="docs/assets/chains/ethereum.webp" alt="" width="20" height="20"> Ethereum | `--chain ethereum` |
114
+ | Option | **Cash Plus USDC (Test 2F)** | <img src="docs/assets/chains/monad.webp" alt="" width="20" height="20"> Monad | `--chain monad` |
115
+ | Option | **Cash Plus USDC (Test 2G)** | <img src="docs/assets/chains/solana.webp" alt="" width="20" height="20"> Solana | `--chain solana` |
116
+ | Option | **Cash Plus USDC (Test 2A)** | <img src="docs/assets/chains/base.webp" alt="" width="20" height="20"> Base | `--vault tlCashPlusUSDC2A` (whitelist only) |
117
+
118
+ Chain logos are the marks of their respective owners, shown only to identify the chains; the icons come from
119
+ [DefiLlama](https://defillama.com)'s chain icon set.
97
120
 
98
121
  - **Test 2B, the default.** A Morpho Vault V2 on Base, open to any account. Its first position is a
99
122
  savings-rate token rather than a lending vault, and its other two positions differ from Test 2's too
@@ -109,6 +132,15 @@ which chain first when you have not said. There are other options, and a demo.
109
132
  - **Test 2D, Robinhood Chain.** A Morpho Vault V2 over **USDG**, not USDC, open to any account.
110
133
  [Blockscout](https://robinhoodchain.blockscout.com/address/0x758f00731943aA88e8C7fB709e0B727903B4F833).
111
134
  The USDG has to be on Robinhood Chain already.
135
+ - **Test 2E, Ethereum.** A Morpho Vault V2 over USDC, open to any account.
136
+ [Etherscan](https://etherscan.io/address/0x2AA9B1F12bbFE1E01dcb4DD52E6836d68416e3B6). Gas on
137
+ Ethereum costs far more than on the other chains, which matters for a small deposit.
138
+ - **Test 2F, Monad.** A Morpho Vault V2 over USDC, open to any account.
139
+ [MonadScan](https://monadscan.com/address/0x163295A4d4381745A205DC5E9A436a3f51791593).
140
+ - **Test 2G, Solana.** A Kamino vault over USDC, open to any account.
141
+ [Solscan](https://solscan.io/account/8qV54zrW2piQgBbVaUUtGajf4KuVDKLUDquHv9VZBfS7). It takes a Solana
142
+ wallet (`treasury connect wallet --chain solana`), the account needs a little SOL for fees, and every
143
+ withdrawal keeps up to 0.001 USDC in the vault per instruction (a charge Kamino sets for every vault on its program, and can change).
112
144
  - **Test 2A.** IPOR Fusion, listed so an admitted account can read and exit its position.
113
145
 
114
146
  When you have not said which chain, the agent shows these and asks before it prepares a deposit.