Skip to content

Commit

Permalink
oh
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelSyntronic committed Mar 16, 2024
1 parent 310266b commit b0cc329
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/azure_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Deploy Node.js App to Azure VM
# name: Deploy Node.js App to Azure VM

on:
push:
branches:
- main # Set this to your default branch
# on:
# push:
# branches:
# - main # Set this to your default branch

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

- name: Pull latest changes, install packages, build and run
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AZURE_VM_IP }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd ~/apps/solana_bot/solana_sniper
git pull
npm install
npm run build
pm2 reload ecosystem.config.js || pm2 start ecosystem.config.js
# - name: Pull latest changes, install packages, build and run
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.AZURE_VM_IP }}
# username: ${{ secrets.SSH_USER }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# port: 22
# script: |
# cd ~/apps/solana_bot/solana_sniper
# git pull
# npm install
# npm run build
# pm2 reload ecosystem.config.js || pm2 start ecosystem.config.js
5 changes: 4 additions & 1 deletion client/TurboBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export class TurboBot {

const raydium = new PublicKey(RAYDIUM_PUBLIC_KEY);

const rInfo = await this.connection.getParsedAccountInfo(raydium)
console.log(`Raydium info: ${JSON.stringify(rInfo.value?.data)}`)

let isCheckingPool = false
const subId = this.connection.onLogs(raydium, async (txLogs) => {
console.log(`Log received. ${txLogs.signature}`)
Expand Down Expand Up @@ -122,7 +125,7 @@ export class TurboBot {
"method": "logsSubscribe",
"params": [
{
"mentions": RAYDIUM_PUBLIC_KEY
"mentions": [RAYDIUM_PUBLIC_KEY]
}
]
})
Expand Down

0 comments on commit b0cc329

Please sign in to comment.