Skip to content

Commit 3457f66

Browse files
authored
docs: it is processAction instead of triggerAction
There is only processAction in runtime instance. Update them correctly.
1 parent 5696099 commit 3457f66

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/docs/packages/plugins.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ runtime.character.settings.secrets = {
263263
**Example Call**
264264

265265
```typescript
266-
const response = await runtime.triggerAction("SEND_MASS_PAYOUT", {
266+
const response = await runtime.processAction("SEND_MASS_PAYOUT", {
267267
receivingAddresses: [
268268
"0xA0ba2ACB5846A54834173fB0DD9444F756810f06",
269269
"0xF14F2c49aa90BaFA223EE074C1C33b59891826bF",
@@ -388,7 +388,7 @@ All contract deployments and interactions are logged to a CSV file for record-ke
388388
1. **ERC20 Token**
389389

390390
```typescript
391-
const response = await runtime.triggerAction("DEPLOY_TOKEN_CONTRACT", {
391+
const response = await runtime.processAction("DEPLOY_TOKEN_CONTRACT", {
392392
contractType: "ERC20",
393393
name: "MyToken",
394394
symbol: "MTK",
@@ -400,7 +400,7 @@ All contract deployments and interactions are logged to a CSV file for record-ke
400400
2. **NFT Collection**
401401

402402
```typescript
403-
const response = await runtime.triggerAction("DEPLOY_TOKEN_CONTRACT", {
403+
const response = await runtime.processAction("DEPLOY_TOKEN_CONTRACT", {
404404
contractType: "ERC721",
405405
name: "MyNFT",
406406
symbol: "MNFT",
@@ -411,7 +411,7 @@ All contract deployments and interactions are logged to a CSV file for record-ke
411411

412412
3. **Multi-token Collection**
413413
```typescript
414-
const response = await runtime.triggerAction("DEPLOY_TOKEN_CONTRACT", {
414+
const response = await runtime.processAction("DEPLOY_TOKEN_CONTRACT", {
415415
contractType: "ERC1155",
416416
name: "MyMultiToken",
417417
symbol: "MMT",
@@ -423,7 +423,7 @@ All contract deployments and interactions are logged to a CSV file for record-ke
423423
**Contract Interaction Example:**
424424

425425
```typescript
426-
const response = await runtime.triggerAction("INVOKE_CONTRACT", {
426+
const response = await runtime.processAction("INVOKE_CONTRACT", {
427427
contractAddress: "0x123...",
428428
method: "transfer",
429429
abi: [...],
@@ -597,7 +597,7 @@ The Webhook Plugin enables Eliza to interact with the Coinbase SDK to create and
597597
To create a webhook:
598598

599599
```typescript
600-
const response = await runtime.triggerAction("CREATE_WEBHOOK", {
600+
const response = await runtime.processAction("CREATE_WEBHOOK", {
601601
networkId: "base",
602602
eventType: "transfers",
603603
notificationUri: "https://your-notification-uri.com",

0 commit comments

Comments
 (0)