Skip to content

Commit f6b0338

Browse files
committed
Merge branch '1.x' of https://github.com/elizaos-plugins/plugin-solana into 1.x-test-coverage
2 parents a3e779e + 913093f commit f6b0338

File tree

2 files changed

+82
-17
lines changed

2 files changed

+82
-17
lines changed

.github/workflows/npm-deploy.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- 1.x
7-
- 0.x
87
workflow_dispatch:
98

109
jobs:
@@ -84,22 +83,13 @@ jobs:
8483
uses: oven-sh/setup-bun@v2
8584

8685
- name: Install dependencies
87-
run: bun install --frozen-lockfile
86+
run: bun install
8887

8988
- name: Build package
9089
run: bun run build
9190

9291
- name: Publish to npm
93-
run: |
94-
# strip “refs/heads/” prefix
95-
BRANCH=${GITHUB_REF#refs/heads/}
96-
if [[ "$BRANCH" == "1.x" ]]; then
97-
echo "Publishing to npm under the 'beta' tag"
98-
bun publish --tag beta
99-
else
100-
echo "Publishing to npm under the 'latest' tag"
101-
bun publish
102-
fi
92+
run: bun publish
10393
env:
10494
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
10595

package.json

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@elizaos/plugin-solana",
3-
"version": "1.0.0.52",
3+
"version": "1.0.3",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/elizaos-plugins/plugin-solana"
10+
"url": "git+https://github.com/elizaos-plugins/plugin-solana.git"
1111
},
1212
"exports": {
1313
"./package.json": "./package.json",
@@ -22,8 +22,7 @@
2222
"dist"
2323
],
2424
"dependencies": {
25-
"@elizaos/core": "workspace:*",
26-
"@elizaos/cli": "^1.0.0",
25+
"@elizaos/core": "^1.0.0",
2726
"@solana/spl-token": "0.4.13",
2827
"@solana/web3.js": "^1.98.0",
2928
"bignumber.js": "9.3.0",
@@ -44,5 +43,81 @@
4443
"format": "prettier --write ./src",
4544
"format:check": "prettier --check ./src"
4645
},
47-
"gitHead": "646c632924826e2b75c2304a75ee56959fe4a460"
46+
"peerDependencies": {
47+
"form-data": "4.0.2",
48+
"whatwg-url": "7.1.0"
49+
},
50+
"gitHead": "646c632924826e2b75c2304a75ee56959fe4a460",
51+
"agentConfig": {
52+
"pluginType": "elizaos:plugin:1.0.0",
53+
"pluginParameters": {
54+
"SOL_ADDRESS": {
55+
"type": "string",
56+
"description": "The mint/contract address used to represent native SOL when interacting with token swap logic.",
57+
"required": true,
58+
"sensitive": false
59+
},
60+
"SOLANA_RPC_URL": {
61+
"type": "string",
62+
"description": "The Solana RPC endpoint the application should connect to.",
63+
"required": false,
64+
"default": "https://api.mainnet-beta.solana.com",
65+
"sensitive": false
66+
},
67+
"WALLET_SECRET_SALT": {
68+
"type": "string",
69+
"description": "Salt used to derive or encrypt the Solana wallet’s secret key; required if the direct secret key is not provided.",
70+
"required": false,
71+
"sensitive": false
72+
},
73+
"WALLET_SECRET_KEY": {
74+
"type": "string",
75+
"description": "Base58-encoded Solana wallet secret (private) key; required if WALLET_SECRET_SALT is not supplied.",
76+
"required": false,
77+
"sensitive": true
78+
},
79+
"WALLET_PUBLIC_KEY": {
80+
"type": "string",
81+
"description": "Base58-encoded Solana wallet public key corresponding to WALLET_SECRET_KEY.",
82+
"required": false,
83+
"sensitive": false
84+
},
85+
"SOLANA_PUBLIC_KEY": {
86+
"type": "string",
87+
"description": "Alternative name accepted by runtime for the wallet’s public key.",
88+
"required": false,
89+
"sensitive": false
90+
},
91+
"SLIPPAGE": {
92+
"type": "string",
93+
"description": "Maximum acceptable slippage (likely as a percentage or basis points) for Solana swaps/transactions.",
94+
"required": true,
95+
"sensitive": false
96+
},
97+
"HELIUS_API_KEY": {
98+
"type": "string",
99+
"description": "API key for accessing the Helius Solana infrastructure services.",
100+
"required": true,
101+
"sensitive": true
102+
},
103+
"BIRDEYE_API_KEY": {
104+
"type": "string",
105+
"description": "API key for accessing Birdeye market data services.",
106+
"required": true,
107+
"sensitive": true
108+
},
109+
"SOLANA_PRIVATE_KEY": {
110+
"type": "string",
111+
"description": "The Solana wallet private key in base58 or base64 format, used to create a Keypair when private key access is required.",
112+
"required": false,
113+
"sensitive": true
114+
},
115+
"WALLET_PRIVATE_KEY": {
116+
"type": "string",
117+
"description": "Alternative variable name for the Solana wallet private key in base58 or base64.",
118+
"required": false,
119+
"sensitive": true
120+
}
121+
}
122+
}
48123
}

0 commit comments

Comments
 (0)