Skip to content

Commit

Permalink
feat: basedbot wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Jul 13, 2024
1 parent 6bc2695 commit 632b1b3
Show file tree
Hide file tree
Showing 81 changed files with 7,858 additions and 18 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
"@solana/web3.js": "^1.91.8",
"@staratlas/atlas-prime": "^0.13.1",
"@staratlas/cargo": "^1.0.2",
"@staratlas/points": "^1.0.4",
"@staratlas/claim-stake": "^0.11.5",
"@staratlas/crafting": "^1.0.2",
"@staratlas/data-source": "^0.7.4",
"@staratlas/factory": "^0.7.0",
"@staratlas/player-profile": "^0.9.1",
"@staratlas/points": "^1.0.4",
"@staratlas/profile-faction": "^0.4.1",
"@staratlas/sage": "^1.0.2",
"big.js": "^6.2.1",
Expand All @@ -55,6 +55,7 @@
"superagent": "^9.0.2",
"telegraf": "^4.16.3",
"typeorm": "^0.3.20",
"undici": "^6.19.2",
"winston": "^3.13.0"
},
"devDependencies": {
Expand All @@ -73,5 +74,5 @@
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.5"
},
"packageManager": "pnpm@9.1.0"
"packageManager": "pnpm@9.4.0"
}
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface Config {
user: {
keyMode: string
mnemonic: string
pubKey: string
secretKey: number[]
walletId: number
address1: string
Expand Down Expand Up @@ -61,6 +62,7 @@ export const config: Config = {
user: {
keyMode: env.get('KEY_MODE'),
secretKey: env.get('SECRET_KEY').split(',').map(s => Number(s)),
pubKey: env.get('PUBKEY'),
mnemonic: env.get('MNEMONIC'),
walletId: Number(env.get('WALLET_ID')),
address1: env.get('BOT_ADDRESS_1'),
Expand Down
2 changes: 2 additions & 0 deletions src/dayjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import utc from 'dayjs/plugin/utc'
export { Dayjs } from 'dayjs'
export { Duration } from 'dayjs/plugin/duration'

export const now = (): dayjs.Dayjs => dayjs()

dayjs.extend(customParseFormat)
dayjs.extend(advancedFormat)
dayjs.extend(duration)
Expand Down
Loading

0 comments on commit 632b1b3

Please sign in to comment.