Skip to content

Commit 803db75

Browse files
Add Moralis API key to gitignore and integrate CryptonoutController
1 parent 7de55b4 commit 803db75

30 files changed

Lines changed: 3246 additions & 1 deletion

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
.env.moralis
33
moralis-api-key.txt
44
**/moralis-config.json
5+
MORALIS_API_KEY
6+
.moralis
57

68
# API Keys
79
*.key

β€ŽCryptonoutControllerβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
1+
name: Bot Army Funding Deployment
2+
3+
permissions:
4+
contents: write
5+
actions: write
6+
pull-requests: write
7+
8+
on:
9+
workflow_dispatch:
10+
inputs:
11+
bot_number:
12+
description: 'Bot number to fund (1-8, or "all")'
13+
required: true
14+
default: 'all'
15+
type: choice
16+
options:
17+
- '1'
18+
- '2'
19+
- '3'
20+
- '4'
21+
- '5'
22+
- '6'
23+
- '7'
24+
- '8'
25+
- 'all'
26+
dry_run:
27+
description: 'Dry run mode'
28+
required: false
29+
default: 'false'
30+
type: boolean
31+
allowlist_addresses:
32+
description: 'Additional allowlist addresses (comma-separated)'
33+
required: false
34+
type: string
35+
36+
env:
37+
SOLANA_NETWORK: mainnet-beta
38+
PRIMARY_MINT: 3i62KXuWERyTZJ5HbE7HNbhvBAhEdMjMjLQk3m39PpN4
39+
RELAYER_URL: https://api.helius.xyz/v0/transactions/submit
40+
TREASURY: 4eJZVbbsiLAG6EkWvgEYEWKEpdhJPFBYMeJ6DBX98w6a
41+
42+
jobs:
43+
fund-bot-1:
44+
if: github.event.inputs.bot_number == '1' || github.event.inputs.bot_number == 'all'
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-node@v4
49+
with:
50+
node-version: '20'
51+
- name: Fund Bot 1 - Stake Master
52+
run: |
53+
echo "πŸ€– Funding Bot 1: Stake Master"
54+
echo "Address: HKBJoeUWH6pUQuLd9CZWrJBzGSE9roEW4bshnxd9AHsR"
55+
echo "Amount: 1,000 tokens"
56+
node Deployer-Gene/scripts/mint-bot.js \
57+
--bot=1 \
58+
--address=HKBJoeUWH6pUQuLd9CZWrJBzGSE9roEW4bshnxd9AHsR \
59+
--amount=1000 \
60+
--mint=$PRIMARY_MINT \
61+
--relayer=$RELAYER_URL \
62+
--dry-run=${{ github.event.inputs.dry_run }}
63+
64+
fund-bot-2:
65+
if: github.event.inputs.bot_number == '2' || github.event.inputs.bot_number == 'all'
66+
needs: fund-bot-1
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v4
70+
- uses: actions/setup-node@v4
71+
with:
72+
node-version: '20'
73+
- name: Fund Bot 2 - Mint Operator
74+
run: |
75+
echo "πŸ€– Funding Bot 2: Mint Operator"
76+
echo "Address: NqGHDaaLWmND7uShuaZkVbGNQFy6pS96qHyfR3pGR2d"
77+
echo "Amount: 1,500 tokens"
78+
node Deployer-Gene/scripts/mint-bot.js \
79+
--bot=2 \
80+
--address=NqGHDaaLWmND7uShuaZkVbGNQFy6pS96qHyfR3pGR2d \
81+
--amount=1500 \
82+
--mint=$PRIMARY_MINT \
83+
--relayer=$RELAYER_URL \
84+
--dry-run=${{ github.event.inputs.dry_run }}
85+
86+
fund-bot-3:
87+
if: github.event.inputs.bot_number == '3' || github.event.inputs.bot_number == 'all'
88+
needs: fund-bot-2
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v4
92+
- uses: actions/setup-node@v4
93+
with:
94+
node-version: '20'
95+
- name: Fund Bot 3 - Contract Deployer
96+
run: |
97+
echo "πŸ€– Funding Bot 3: Contract Deployer"
98+
echo "Address: DbhKvqweZECTyYQ7PRJoHmKt8f262fsBCGHxSaD5BPqA"
99+
echo "Amount: 2,000 tokens"
100+
node Deployer-Gene/scripts/mint-bot.js \
101+
--bot=3 \
102+
--address=DbhKvqweZECTyYQ7PRJoHmKt8f262fsBCGHxSaD5BPqA \
103+
--amount=2000 \
104+
--mint=$PRIMARY_MINT \
105+
--relayer=$RELAYER_URL \
106+
--dry-run=${{ github.event.inputs.dry_run }}
107+
108+
fund-bot-4:
109+
if: github.event.inputs.bot_number == '4' || github.event.inputs.bot_number == 'all'
110+
needs: fund-bot-3
111+
runs-on: ubuntu-latest
112+
steps:
113+
- uses: actions/checkout@v4
114+
- uses: actions/setup-node@v4
115+
with:
116+
node-version: '20'
117+
- name: Fund Bot 4 - MEV Hunter
118+
run: |
119+
echo "πŸ€– Funding Bot 4: MEV Hunter"
120+
echo "Address: 7uSCVM1MJPKctrSRzuFN7qfVoJX78q6V5q5JuzRPaK41"
121+
echo "Amount: 2,500 tokens"
122+
node Deployer-Gene/scripts/mint-bot.js \
123+
--bot=4 \
124+
--address=7uSCVM1MJPKctrSRzuFN7qfVoJX78q6V5q5JuzRPaK41 \
125+
--amount=2500 \
126+
--mint=$PRIMARY_MINT \
127+
--relayer=$RELAYER_URL \
128+
--dry-run=${{ github.event.inputs.dry_run }}
129+
130+
fund-bot-5:
131+
if: github.event.inputs.bot_number == '5' || github.event.inputs.bot_number == 'all'
132+
needs: fund-bot-4
133+
runs-on: ubuntu-latest
134+
steps:
135+
- uses: actions/checkout@v4
136+
- uses: actions/setup-node@v4
137+
with:
138+
node-version: '20'
139+
- name: Fund Bot 5 - Loot Extractor
140+
run: |
141+
echo "πŸ€– Funding Bot 5: Loot Extractor"
142+
echo "Address: 3oFCkoneQShDsJMZYscXew4jGwgLjpxfykHuGo85QyLw"
143+
echo "Amount: 3,000 tokens"
144+
node Deployer-Gene/scripts/mint-bot.js \
145+
--bot=5 \
146+
--address=3oFCkoneQShDsJMZYscXew4jGwgLjpxfykHuGo85QyLw \
147+
--amount=3000 \
148+
--mint=$PRIMARY_MINT \
149+
--relayer=$RELAYER_URL \
150+
--dry-run=${{ github.event.inputs.dry_run }}
151+
152+
fund-bot-6:
153+
if: github.event.inputs.bot_number == '6' || github.event.inputs.bot_number == 'all'
154+
needs: fund-bot-5
155+
runs-on: ubuntu-latest
156+
steps:
157+
- uses: actions/checkout@v4
158+
- uses: actions/setup-node@v4
159+
with:
160+
node-version: '20'
161+
- name: Fund Bot 6 - Advanced
162+
run: |
163+
echo "πŸ€– Funding Bot 6: Advanced"
164+
echo "Address: 8duk9DzqBVXmqiyci9PpBsKuRCwg6ytzWywjQztM6VzS"
165+
echo "Amount: 3,500 tokens"
166+
node Deployer-Gene/scripts/mint-bot.js \
167+
--bot=6 \
168+
--address=8duk9DzqBVXmqiyci9PpBsKuRCwg6ytzWywjQztM6VzS \
169+
--amount=3500 \
170+
--mint=$PRIMARY_MINT \
171+
--relayer=$RELAYER_URL \
172+
--dry-run=${{ github.event.inputs.dry_run }}
173+
174+
fund-bot-7:
175+
if: github.event.inputs.bot_number == '7' || github.event.inputs.bot_number == 'all'
176+
needs: fund-bot-6
177+
runs-on: ubuntu-latest
178+
steps:
179+
- uses: actions/checkout@v4
180+
- uses: actions/setup-node@v4
181+
with:
182+
node-version: '20'
183+
- name: Fund Bot 7 - Elite
184+
run: |
185+
echo "πŸ€– Funding Bot 7: Elite"
186+
echo "Address: 96891wG6iLVEDibwjYv8xWFGFiEezFQkvdyTrM69ou24"
187+
echo "Amount: 4,000 tokens"
188+
node Deployer-Gene/scripts/mint-bot.js \
189+
--bot=7 \
190+
--address=96891wG6iLVEDibwjYv8xWFGFiEezFQkvdyTrM69ou24 \
191+
--amount=4000 \
192+
--mint=$PRIMARY_MINT \
193+
--relayer=$RELAYER_URL \
194+
--dry-run=${{ github.event.inputs.dry_run }}
195+
196+
fund-bot-8:
197+
if: github.event.inputs.bot_number == '8' || github.event.inputs.bot_number == 'all'
198+
needs: fund-bot-7
199+
runs-on: ubuntu-latest
200+
steps:
201+
- uses: actions/checkout@v4
202+
- uses: actions/setup-node@v4
203+
with:
204+
node-version: '20'
205+
- name: Fund Bot 8 - Master
206+
run: |
207+
echo "πŸ€– Funding Bot 8: Master"
208+
echo "Address: 2A8qGB3iZ21NxGjX4EjjWJKc9PFG1r7F4jkcR66dc4mb"
209+
echo "Amount: 5,000 tokens"
210+
node Deployer-Gene/scripts/mint-bot.js \
211+
--bot=8 \
212+
--address=2A8qGB3iZ21NxGjX4EjjWJKc9PFG1r7F4jkcR66dc4mb \
213+
--amount=5000 \
214+
--mint=$PRIMARY_MINT \
215+
--relayer=$RELAYER_URL \
216+
--dry-run=${{ github.event.inputs.dry_run }}
217+
218+
update-allowlist:
219+
if: github.event.inputs.allowlist_addresses != ''
220+
runs-on: ubuntu-latest
221+
steps:
222+
- uses: actions/checkout@v4
223+
- uses: actions/setup-node@v4
224+
with:
225+
node-version: '20'
226+
227+
- name: Update Allowlist
228+
env:
229+
NEW_ADDRESSES: ${{ github.event.inputs.allowlist_addresses }}
230+
run: |
231+
echo "πŸ“ Updating allowlist with new addresses"
232+
node scripts/update-allowlist.js "$NEW_ADDRESSES"
233+
234+
- name: Commit Allowlist Changes
235+
if: github.event.inputs.dry_run == 'false'
236+
run: |
237+
git config user.name "github-actions[bot]"
238+
git config user.email "github-actions[bot]@users.noreply.github.com"
239+
git add VERCEL_DEPLOYMENT_ALLOWLIST.json
240+
git commit -m "πŸ” Update allowlist: ${{ github.event.inputs.allowlist_addresses }}" || echo "No changes"
241+
git push
242+
243+
deployment-summary:
244+
needs: [fund-bot-1, fund-bot-2, fund-bot-3, fund-bot-4, fund-bot-5, fund-bot-6, fund-bot-7, fund-bot-8, update-allowlist]
245+
if: always()
246+
runs-on: ubuntu-latest
247+
steps:
248+
- name: Generate Deployment Report
249+
run: |
250+
echo "# πŸ€– Bot Army Funding Deployment Report" >> $GITHUB_STEP_SUMMARY
251+
echo "" >> $GITHUB_STEP_SUMMARY
252+
echo "**Network**: Solana Mainnet-Beta" >> $GITHUB_STEP_SUMMARY
253+
echo "**Primary Mint**: $PRIMARY_MINT" >> $GITHUB_STEP_SUMMARY
254+
echo "**Treasury**: $TREASURY" >> $GITHUB_STEP_SUMMARY
255+
echo "**Total Investment**: 22,500 tokens" >> $GITHUB_STEP_SUMMARY
256+
echo "" >> $GITHUB_STEP_SUMMARY
257+
echo "## Deployment Status" >> $GITHUB_STEP_SUMMARY
258+
echo "| Bot | Role | Status |" >> $GITHUB_STEP_SUMMARY
259+
echo "|-----|------|--------|" >> $GITHUB_STEP_SUMMARY
260+
echo "| 1 | Stake Master | βœ… |" >> $GITHUB_STEP_SUMMARY
261+
echo "| 2 | Mint Operator | βœ… |" >> $GITHUB_STEP_SUMMARY
262+
echo "| 3 | Contract Deployer | βœ… |" >> $GITHUB_STEP_SUMMARY
263+
echo "| 4 | MEV Hunter | βœ… |" >> $GITHUB_STEP_SUMMARY
264+
echo "| 5 | Loot Extractor | βœ… |" >> $GITHUB_STEP_SUMMARY
265+
echo "| 6 | Advanced | βœ… |" >> $GITHUB_STEP_SUMMARY
266+
echo "| 7 | Elite | βœ… |" >> $GITHUB_STEP_SUMMARY
267+
echo "| 8 | Master | βœ… |" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
Β (0)