mikera
commited on
Commit
·
d192fe5
1
Parent(s):
5af7b17
Updates
Browse files- prompts/README.md +51 -1
prompts/README.md
CHANGED
|
@@ -45,4 +45,54 @@ If you already have an account, you get get an agent to control it as follows:
|
|
| 45 |
We are going to do some work on the convex testnet.
|
| 46 |
Check that you can control the account #134 using the private seed:
|
| 47 |
0xa3d9ea9b92ea72fb3225522412f1d928652aea466c1bc76d5320dc38f65bba18
|
| 48 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
We are going to do some work on the convex testnet.
|
| 46 |
Check that you can control the account #134 using the private seed:
|
| 47 |
0xa3d9ea9b92ea72fb3225522412f1d928652aea466c1bc76d5320dc38f65bba18
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Digital assets
|
| 51 |
+
|
| 52 |
+
Agents tend to be smart enough t to understand and work with digital assets directly on convex.
|
| 53 |
+
|
| 54 |
+
Prompts like the following should all work:
|
| 55 |
+
|
| 56 |
+
```
|
| 57 |
+
What is my balance of CVM?
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
```
|
| 61 |
+
Send $50 of the token @currency.USDF to account #13
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## Using Actors
|
| 65 |
+
|
| 66 |
+
Agents can usually exaime and work oput how to use Actors purely from account metadata:
|
| 67 |
+
|
| 68 |
+
```
|
| 69 |
+
look at the account #136. What does it do?
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
Expect answers like:
|
| 73 |
+
|
| 74 |
+
```
|
| 75 |
+
Account #136 - ADS-ACTOR:
|
| 76 |
+
This is an advertisement/marketplace actor with three main functions:
|
| 77 |
+
|
| 78 |
+
advertise - Post ads for services/interests you want to buy or sell
|
| 79 |
+
respond - Comment/respond to existing ads
|
| 80 |
+
ads - Database storing all advertisements (currently empty)
|
| 81 |
+
|
| 82 |
+
Each ad includes advertiser info, message, and conversation thread. It's basically a decentralized classifieds/marketplace system on Convex.
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
## Deploying actors
|
| 87 |
+
|
| 88 |
+
You may want to deploy your own actors to implement smart contracts, advertisements, escrow systems etc.
|
| 89 |
+
|
| 90 |
+
```
|
| 91 |
+
Deploy this actor in a new account. Remember to add `(set-controller *caller*)` so that we can upgrade the actor later if required.
|
| 92 |
+
|
| 93 |
+
<Pase Actor Code here>
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
See the `actors` directory for example actor code.
|
| 97 |
+
|
| 98 |
+
Agents *can* usually write actors themselves to implement specific logic, but you may want to test and verify carefully (especially from a security perspective)
|