-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bumping sdk and jit dependencies to 2.104.0-beta.31 and 0.12.18 * Bumping sdk and jit dependencies to 2.104.0-beta.32 and 0.12.19 * Nour/pyth lazer cranker (#321) * add pyth lazer cranker * rm unncessary libraries * remove unnecessary code * add entrypoint for the cranker * added improvements * increase the chunk size * Bumping sdk and jit dependencies to 2.104.0-beta.33 and 0.12.20 * Bumping sdk and jit dependencies to 2.104.0-beta.34 and 0.12.21 * liquidator: use SOL routes when swapping LSTs (#322) * Bumping sdk and jit dependencies to 2.104.0-beta.35 and 0.12.22 * fillers: fix multimaker retry logic (#325) * fillers: fix multimaker retry logic * add missing tip ix * extend auction duration for filler examples * Bumping sdk and jit dependencies to 2.104.0-beta.36 and 0.12.23 * Bumping sdk and jit dependencies to 2.104.0-beta.37 and 0.12.24 * dont throw on timeout * ignore settled markets (#326) * Nour/swift filler (#300) * swift subscriber process * integrate dlob builder * everything working but txs too large * protected maker * fix fill ix bug * prettify * working with filling swift orders * final ixs working * revert taker example * fix weird merge conflict error * uncomment error code to suppress * makerBidAskTwapCrank: skip simulation if updating switchboard oracle (#328) * Bumping sdk and jit dependencies to 2.104.0-beta.38 and 0.12.25 * Bumping sdk and jit dependencies to 2.104.0-beta.39 and 0.12.26 * Bumping sdk and jit dependencies to 2.105.0-beta.0 and 0.12.27 * Chore/esbuild (#316) * increase swift maker heartbeat window * esbuild it * fix * optimize --------- Co-authored-by: wphan <[email protected]> --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: moosecat <[email protected]> Co-authored-by: jordy25519 <[email protected]>
- Loading branch information
1 parent
11feb57
commit 3a99543
Showing
14 changed files
with
1,084 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*/**/node_modules | ||
*/**/lib | ||
*/**/dist | ||
.git/ | ||
.husky/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
FROM public.ecr.aws/bitnami/node:20.18.1 | ||
RUN apt-get install git | ||
ENV NODE_ENV=production | ||
RUN npm install -g typescript | ||
RUN npm install -g ts-node | ||
FROM node:20.18.1 AS builder | ||
RUN npm install -g husky | ||
|
||
COPY package.json yarn.lock ./ | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
RUN yarn install | ||
RUN yarn build | ||
RUN yarn install --production | ||
RUN node esbuild.config.js | ||
|
||
FROM node:20.18.1-alpine | ||
# 'bigint-buffer' native lib for performance | ||
RUN apk add python3 make g++ --virtual .build &&\ | ||
npm install -C /lib bigint-buffer &&\ | ||
apk del .build | ||
COPY --from=builder /app/lib/ ./lib/ | ||
|
||
EXPOSE 9464 | ||
|
||
CMD [ "yarn", "start:all" ] | ||
CMD ["node", "./lib/index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const esbuild = require('esbuild'); | ||
const glob = require('tiny-glob'); | ||
|
||
const commonConfig = { | ||
bundle: true, | ||
platform: 'node', | ||
target: 'es2020', | ||
sourcemap: false, | ||
// minify: true, makes messy debug/error output | ||
treeShaking: true, | ||
legalComments: 'none', | ||
mainFields: ['module', 'main'], | ||
metafile: true, | ||
format: 'cjs', | ||
external: [ | ||
'bigint-buffer' | ||
] | ||
}; | ||
|
||
(async () => { | ||
let entryPoints = await glob("./src/*.ts", { filesOnly: true }); | ||
await esbuild.build({ | ||
...commonConfig, | ||
entryPoints, | ||
outdir: 'lib', | ||
}); | ||
})().catch(() => process.exit(1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.