forked from savechainwallet/honeypot-detector-forta-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit baccc1d
Showing
12 changed files
with
7,505 additions
and
0 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,3 @@ | ||
node_modules | ||
dist | ||
forta.config.json |
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,3 @@ | ||
node_modules | ||
dist | ||
forta.config.json |
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,21 @@ | ||
# Build stage: compile Typescript to Javascript | ||
FROM node:12-alpine AS builder | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm ci | ||
RUN npm run build | ||
# obfuscate compiled Javascript (optional) | ||
# RUN npm install -g javascript-obfuscator | ||
# RUN javascript-obfuscator ./dist --output ./obfuscated --split-strings true --split-strings-chunk-length 3 | ||
|
||
# Final stage: copy compiled Javascript from previous stage and install production dependencies | ||
FROM node:12-alpine | ||
ENV NODE_ENV=production | ||
WORKDIR /app | ||
# if using obfuscated code: | ||
# COPY --from=builder /app/obfuscated ./src | ||
# else if using unobfuscated code: | ||
COPY --from=builder /app/dist ./src | ||
COPY package*.json ./ | ||
RUN npm ci --production | ||
CMD [ "npm", "run", "start:prod" ] |
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,10 @@ | ||
# Honeyspot detector forta agent | ||
|
||
## Supported Chains | ||
BSC only!!! | ||
## Alerts | ||
HONEYPOT_DETECTED | ||
|
||
Fired when new honeypot token detected | ||
Severity is always set to "medium" | ||
|
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 @@ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
testPathIgnorePatterns: ["dist"], | ||
}; |
Oops, something went wrong.