Skip to content

Commit

Permalink
generic bot script + external config for each chain
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Aug 28, 2023
1 parent c31436d commit a8757bd
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 353 deletions.
4 changes: 0 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
NETWORK=localterra
LCD_ENDPOINT=http://localhost:1317
CHAIN_ID=localterra
MNEMONIC_KEY=notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius
6 changes: 6 additions & 0 deletions config.injective.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"NETWORK": "mainnet",
"CHAIN": "injective",
"MNEMONIC_KEY": "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius",
"COIN_TYPE": 60
}
6 changes: 6 additions & 0 deletions config.neutron.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"NETWORK": "mainnet",
"CHAIN": "neutron",
"MNEMONIC_KEY": "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius",
"COIN_TYPE": 118
}
6 changes: 6 additions & 0 deletions config.terra.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"NETWORK": "mainnet",
"CHAIN": "terra",
"MNEMONIC_KEY": "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius",
"COIN_TYPE": 330
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"build:node": "node build.js && tsc",
"build:browser": "BUILD_TARGET=browser node build.js",
"start": "yarn bot-terra",
"bot-terra": "esbuild src/bot.terra.ts --bundle --platform=node --outdir=dist --outbase=src && node ./dist/bot.terra.js",
"bot-injective": "esbuild src/bot.injective.ts --bundle --platform=node --outdir=dist --outbase=src && node ./dist/bot.injective.js",
"bot-neutron": "esbuild src/bot.neutron.ts --bundle --platform=node --outdir=dist --outbase=src && node ./dist/bot.neutron.js",
"bot-terra": "esbuild src/bot.ts --bundle --platform=node --outdir=dist --outbase=src && node ./dist/bot.js ./config.terra.json",
"bot-neutron": "esbuild src/bot.ts --bundle --platform=node --outdir=dist --outbase=src && node ./dist/bot.js ./config.neutron.json",
"bot-injective": "esbuild src/bot.ts --bundle --platform=node --outdir=dist --outbase=src && node ./dist/bot.js ./config.injective.json",
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
"generate-types": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/generate-types.js warp-protocol",
"postinstall": "husky install",
Expand Down
157 changes: 0 additions & 157 deletions src/bot.injective.ts

This file was deleted.

156 changes: 0 additions & 156 deletions src/bot.neutron.ts

This file was deleted.

Loading

0 comments on commit a8757bd

Please sign in to comment.