You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added wallet to action constructor
* Update ton plugin to fix bugs.
Needed to add a sleep function as Ton SDK has a ratelimit of 1 request per second.
* Remove test only.
* Update dobby.character.json
---------
Co-authored-by: Sayo <hi@sayo.wtf>
description: "Transfer tokens from the agent's wallet to another",
163
+
name: "SEND_TON_TOKEN",
164
+
similes: ["SEND_TON","SEND_TON_TOKENS"],
165
+
description:
166
+
"Call this action to send TON tokens to another wallet address. Supports sending any amount of TON to any valid TON wallet address. Transaction will be signed and broadcast to the TON blockchain.",
text: "Send 1 TON tokens to EQCGScrZe1xbyWqWDvdI6mzP-GAcAWFv6ZXuaJOuSqemxku4",
209
-
action: "SEND_TOKENS",
237
+
action: "SEND_TON_TOKEN",
210
238
},
211
239
},
212
240
{
213
241
user: "{{user2}}",
214
242
content: {
215
243
text: "I'll send 1 TON tokens now...",
216
-
action: "SEND_TOKENS",
244
+
action: "SEND_TON_TOKEN",
217
245
},
218
246
},
219
247
{
@@ -223,5 +251,49 @@ export default {
223
251
},
224
252
},
225
253
],
254
+
[
255
+
{
256
+
user: "{{user1}}",
257
+
content: {
258
+
text: "Transfer 0.5 TON to EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N",
259
+
action: "SEND_TON_TOKEN",
260
+
},
261
+
},
262
+
{
263
+
user: "{{user2}}",
264
+
content: {
265
+
text: "Processing transfer of 0.5 TON...",
266
+
action: "SEND_TON_TOKEN",
267
+
},
268
+
},
269
+
{
270
+
user: "{{user2}}",
271
+
content: {
272
+
text: "Successfully sent 0.5 TON to EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N, Transaction: c8ee4a2c1bd070005e6cd31b32270aa461c69b927c3f4c28b293c80786f78b43",
273
+
},
274
+
},
275
+
],
276
+
[
277
+
{
278
+
user: "{{user1}}",
279
+
content: {
280
+
text: "Please move 2.5 TON to EQByzSQE5Mf_UBf5YYVF_fRhP_oZwM_h7mGAymWBjxkY5yVm",
281
+
action: "SEND_TON_TOKEN",
282
+
},
283
+
},
284
+
{
285
+
user: "{{user2}}",
286
+
content: {
287
+
text: "Initiating transfer of 2.5 TON...",
288
+
action: "SEND_TON_TOKEN",
289
+
},
290
+
},
291
+
{
292
+
user: "{{user2}}",
293
+
content: {
294
+
text: "Successfully sent 2.5 TON to EQByzSQE5Mf_UBf5YYVF_fRhP_oZwM_h7mGAymWBjxkY5yVm, Transaction: c8ee4a2c1bd070005e6cd31b32270aa461c69b927c3f4c28b293c80786f78b43",
0 commit comments