Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add socials #44

Merged
merged 129 commits into from
Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
3d1f4e1
Update App.tsx
VenkatTeja Apr 30, 2023
212d732
Update package.json
VenkatTeja Apr 30, 2023
a4090ab
Merge branch 'main' of github.com:VenkatTeja/VigilanceDAO
VenkatTeja Apr 30, 2023
167bcb2
update App.tsx
VenkatTeja Apr 30, 2023
6008b95
update .gitignore
VenkatTeja Apr 30, 2023
b9db874
constants.js added
R4j4t-Singh Jun 4, 2023
eb6ac24
Merge pull request #20 from R4j4t-Singh/rajat-mixpanel
VenkatTeja Jun 18, 2023
9eaee6e
Merge pull request #24 from VenkatTeja/master
VenkatTeja Jun 18, 2023
520602f
add release cicd
VenkatTeja Jun 18, 2023
1d84b93
split github workflows
VenkatTeja Jun 18, 2023
3f89790
fix workflow
VenkatTeja Jun 18, 2023
1bcdeb2
fix workflow @2
VenkatTeja Jun 18, 2023
2052fea
fix workflow @3
VenkatTeja Jun 18, 2023
112ec43
fix workflow @4
VenkatTeja Jun 18, 2023
0754691
Merge pull request #25 from VenkatTeja/feat/sahit-alert
VenkatTeja Jun 18, 2023
7430c69
fix workflow @5
VenkatTeja Jun 18, 2023
d2a29fb
Merge branch 'feat/sahit-alert' into staging
VenkatTeja Jun 18, 2023
e3909ad
fix workflow @6
VenkatTeja Jun 18, 2023
0c46c29
fix workflow @7
VenkatTeja Jun 18, 2023
8640ecd
fix workflow @8
VenkatTeja Jun 18, 2023
4695074
update extension url
VenkatTeja Jun 18, 2023
beb897b
update workflow @10
VenkatTeja Jun 18, 2023
e39e78d
update workflow @11
VenkatTeja Jun 18, 2023
8ed7d66
track Network
R4j4t-Singh Jun 18, 2023
fb277cc
feat: improve verified alert
sahithyandev Jun 19, 2023
20fb59d
chore: improve package scripts
sahithyandev Jun 19, 2023
f878a4e
format: ReviewForm using prettier
sahithyandev Jun 19, 2023
403903f
make changes in the form
sahithyandev Jun 23, 2023
2dbb419
show all descriptions in tooltip
sahithyandev Jun 24, 2023
922841c
25-06-2023
R4j4t-Singh Jun 25, 2023
1f2719b
add component and styles
sahithyandev Jun 26, 2023
8f06db3
add function to create financial alert dialog
sahithyandev Jun 26, 2023
119379e
Merge pull request #28 from R4j4t-Singh/task-25-06-2023
VenkatTeja Jun 28, 2023
f68dbfd
Revert "Added function to change network."
VenkatTeja Jun 28, 2023
e12e6f5
Merge pull request #32 from Vigilance-DAO/revert-28-task-25-06-2023
VenkatTeja Jun 28, 2023
707db81
Merge branch 'feat/sahit-alert' into task-2
VenkatTeja Jun 28, 2023
1e46b9f
Merge pull request #27 from sahithyandev/task-2
VenkatTeja Jun 28, 2023
782bdcd
Merge branch 'feat/sahit-alert' of github.com:VenkatTeja/VigilanceDAO…
VenkatTeja Jun 28, 2023
2c50fbf
merge network upgrades
VenkatTeja Jun 28, 2023
4c1c717
Contract-info
R4j4t-Singh Jun 29, 2023
03fff07
Added try-catch
R4j4t-Singh Jun 29, 2023
62710db
try-catch
R4j4t-Singh Jun 29, 2023
730a43b
add financial alert to prebuild script
sahithyandev Jun 30, 2023
468bd62
fix name issue in prebuild script
sahithyandev Jun 30, 2023
1e9cc4b
fix wrong attributes in svg
sahithyandev Jun 30, 2023
f5cbced
minor fixes
sahithyandev Jun 30, 2023
d335c8b
add proceed and close buttons
sahithyandev Jun 30, 2023
178f929
comment testing only code
sahithyandev Jun 30, 2023
b50d9b6
fix backdrop style issue
sahithyandev Jun 30, 2023
40a2e26
fix missing border
sahithyandev Jun 30, 2023
4a25d87
Merge pull request #33 from R4j4t-Singh/task-contractInfo
VenkatTeja Jun 30, 2023
65a3c6f
Merge remote-tracking branch 'upstream/feat/sahit-alert' into financi…
sahithyandev Jul 3, 2023
3d6d153
chore(deps): add @types/mixpanel-browser
sahithyandev Jul 3, 2023
92bd6ce
fix: scripts in package.json
sahithyandev Jul 3, 2023
007975a
add financialAlertDialog in inject.js
sahithyandev Jul 5, 2023
b584c0a
add comment about script injection
sahithyandev Jul 6, 2023
e3d0b0f
fix issue related to chrome.runtime
sahithyandev Jul 6, 2023
670b508
fix styling issues with financial-alert
sahithyandev Jul 6, 2023
8ae0490
minor refactor in inject.js
sahithyandev Jul 6, 2023
05ce7db
minor fixes
sahithyandev Jul 6, 2023
2529a09
minor changes
sahithyandev Jul 6, 2023
d498d8a
move typedef into .d.ts
sahithyandev Jul 6, 2023
952a6d6
correctly format date string
sahithyandev Jul 6, 2023
a994a0e
fix: show truncated reciever's address
sahithyandev Jul 6, 2023
3a948ca
fix contract name
sahithyandev Jul 7, 2023
d010e16
add contract risk details in api
VenkatTeja Jul 9, 2023
97729be
fix: show risk rating
sahithyandev Jul 9, 2023
9e979d7
fix: handle creationDate being null
sahithyandev Jul 9, 2023
736c823
fix: handle count being null
sahithyandev Jul 9, 2023
fc73cc1
fix: color for drained accounts value
sahithyandev Jul 9, 2023
4871cab
add loader
sahithyandev Jul 10, 2023
6672250
update code for testing
sahithyandev Jul 10, 2023
810d1d5
do some validation for api response
sahithyandev Jul 10, 2023
658ade7
show feedback in expandable section
sahithyandev Jul 10, 2023
3c9241b
minor fixes
sahithyandev Jul 10, 2023
c8c8304
fix: medium text color issue
sahithyandev Jul 11, 2023
1999c06
fix wrong info shown
sahithyandev Jul 12, 2023
48639f8
fix issue with font
sahithyandev Jul 12, 2023
520098c
fix financial-alert not showing again error
sahithyandev Jul 12, 2023
447242a
remove tooltip code (not used)
sahithyandev Jul 12, 2023
eba9d70
rename close button -> cancel button
sahithyandev Jul 12, 2023
f70e7f9
fix fonts by using google fonts
sahithyandev Jul 13, 2023
3b445f3
pass address through checksum function before fetching
sahithyandev Jul 13, 2023
9ed40fe
fix types
sahithyandev Jul 13, 2023
9ada1c2
change Drained Accounts to Risk
sahithyandev Jul 13, 2023
ba15c7d
minor fixes
sahithyandev Jul 13, 2023
78178aa
show alert for only selected chains
sahithyandev Jul 13, 2023
bd9b268
chore(server): add .env-example
sahithyandev Jul 18, 2023
7ad93fa
feat: integrate forta api
sahithyandev Jul 19, 2023
b83424c
chore: update packages to make discordjs work
sahithyandev Jul 19, 2023
66b2083
add /submit-contract-report
sahithyandev Jul 19, 2023
0b0221d
add report form to financial-alert
sahithyandev Jul 19, 2023
f071b83
load discord guild and channel info from env
sahithyandev Jul 19, 2023
14e9e45
add additional info to contract report
sahithyandev Jul 19, 2023
17cbbdf
fix issue with verified alert
sahithyandev Jul 20, 2023
e724314
fix: textarea inside financial-alert not editable on specific sites
sahithyandev Jul 20, 2023
4a81336
fix style issue on some websites
sahithyandev Jul 20, 2023
1154d7f
fix form submit response not shown
sahithyandev Jul 20, 2023
47b9675
fix: fraud type in discord message
sahithyandev Jul 20, 2023
ffac002
update api urls
sahithyandev Jul 21, 2023
dbefb23
reduce size of financial-alert
sahithyandev Jul 22, 2023
1bfdbcf
chore: minor changes
sahithyandev Jul 22, 2023
8814398
mention beta in credits
sahithyandev Jul 22, 2023
9885e09
Merge branch 'feat/sahit-alert' into financial-alert
VenkatTeja Jul 22, 2023
80c6e3e
Merge pull request #35 from sahithyandev/financial-alert
VenkatTeja Jul 22, 2023
e6b42fd
add lambda caching and cors
VenkatTeja Jul 22, 2023
e19a10c
merged
VenkatTeja Jul 22, 2023
46bbeed
fix: alert not dismissed in specific cases
sahithyandev Jul 22, 2023
d6b7af5
Merge branch 'financial-alert' of github.com:sahithyandev/VigilanceDA…
sahithyandev Jul 22, 2023
996d191
fix: wrong color and minor style issues
sahithyandev Jul 22, 2023
ff2ebda
Merge pull request #40 from sahithyandev/financial-alert
VenkatTeja Jul 22, 2023
1a5602a
Merge branch 'feat/sahit-alert' of github.com:VenkatTeja/VigilanceDAO…
VenkatTeja Jul 22, 2023
4b49d83
minor style fixes
sahithyandev Jul 23, 2023
275ba33
Merge pull request #41 from sahithyandev/financial-alert
VenkatTeja Jul 23, 2023
91017a0
add switch network
VenkatTeja Jul 23, 2023
7246703
remove excessing logging and fix contract popup bugs
VenkatTeja Jul 23, 2023
1363752
Merge branch 'staging' into feat/sahit-alert
VenkatTeja Jul 23, 2023
d3365f3
Update ReviewForm.tsx
VenkatTeja Jul 23, 2023
405940d
Merge pull request #42 from Vigilance-DAO/feat/sahit-alert
VenkatTeja Jul 23, 2023
19b098b
update yml
VenkatTeja Jul 23, 2023
2667234
update yml
VenkatTeja Jul 23, 2023
060669f
update yml @3
VenkatTeja Jul 23, 2023
fc3ba8f
fix links in website
VenkatTeja Jul 25, 2023
370eda7
Merge branch 'main' into staging
VenkatTeja Jul 25, 2023
4ff6b59
fix links in website
VenkatTeja Jul 25, 2023
ca33925
Merge branch 'staging' of github.com:VenkatTeja/VigilanceDAO into sta…
VenkatTeja Jul 25, 2023
9321772
add socials
VenkatTeja Aug 3, 2023
4d0505d
add mixp
VenkatTeja Aug 5, 2023
58cf559
refresh gitignore
VenkatTeja Aug 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/pr_build_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Check

on:
pull_request:
branches: [ "staging" ]

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'

# Tests have been split into various categories to reduce runtime and ensure rough 15-20min to complete all tests
jobs:
build-publish:
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.14.0]
env:
EXTENSION_ID: olgmmbfdmfbnihhcfhalglddbjobgpli
steps:
- name: "Checkout this repo"
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}


- name: "Setup .env"
run: |
cd chrome-extension
touch .env
echo 'REACT_APP_SUPPORTED_NETWORKS=80001' >> .env
echo 'REACT_APP_DEFAULT_NETWORK=80001' >> .env
echo 'REACT_APP_WEB3_STORAGE_KEY=${{secrets.REACT_APP_WEB3_STORAGE_KEY}}' >> .env
echo 'REACT_APP_THEGRAPH_URL=https://api.thegraph.com/subgraphs/name/venkatteja/vigilancedao' >> .env

- name: "Install node_modules"
run: |
cd chrome-extension
npm install

- name: "Create release build"
run: |
cd chrome-extension
npm run release
zip -r chrome-extension-${{ github.event.pull_request.head.sha }}.zip build
106 changes: 106 additions & 0 deletions .github/workflows/push_build_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Build & Upload release

on:
push:
branches: [ "staging" ]

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'

# Tests have been split into various categories to reduce runtime and ensure rough 15-20min to complete all tests
jobs:
build-publish:
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.14.0]
env:
EXTENSION_ID: olgmmbfdmfbnihhcfhalglddbjobgpli
steps:
- name: "Checkout this repo"
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: "Setup .env"
run: |
cd chrome-extension
touch .env
echo 'REACT_APP_SUPPORTED_NETWORKS=80001' >> .env
echo 'REACT_APP_DEFAULT_NETWORK=80001' >> .env
echo 'REACT_APP_WEB3_STORAGE_KEY=${{secrets.REACT_APP_WEB3_STORAGE_KEY}}' >> .env
echo 'REACT_APP_THEGRAPH_URL=https://api.thegraph.com/subgraphs/name/venkatteja/vigilancedao' >> .env

- name: "Install node_modules"
run: |
cd chrome-extension
npm install

- name: "Create release build"
run: |
cd chrome-extension
npm run release
zip -r chrome-extension.zip build

# - name: Install webstore cli
# run: |-
# npm install -g chrome-webstore-upload-cli

# # acc: vedik....@gm... : Vigilance-dao
# - name: Upload step
# run: |-
# cd chrome-extension
# chrome-webstore-upload upload --source chrome-extension.zip --extension-id ${{ env.EXTENSION_ID }} --client-id ${{ secrets.CI_GOOGLE_CLIENT_ID }} --client-secret ${{ secrets.CI_GOOGLE_CLIENT_SECRET }} --refresh-token ${{ secrets.CI_GOOGLE_REFRESH_TOKEN }}

# - uses: wemogy/next-version-action@2.0.2
# id: release-version
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# projects: 'Single'

# - name: get-npm-version
# id: package-version
# uses: martinbeentjes/npm-get-version-action@v1.3.1
# with:
# path: chrome-extension\public\manifest.json

- name: Read manifest.json
id: set_version
run: |
echo 'MANIFEST_JSON<<EOF' >> $GITHUB_ENV
cat ./chrome-extension/public/manifest.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV

- name: Get current version
run: echo '${{ fromJson(env.MANIFEST_JSON).version }}'

- name: Create Pre-Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ fromJson(env.MANIFEST_JSON).version }}
release_name: Release ${{ fromJson(env.MANIFEST_JSON).version }}
draft: false
prerelease: true

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./chrome-extension/chrome-extension.zip
asset_name: chrome-extension.zip
asset_content_type: application/zip
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ _prisma
package-lock.json
yarn.lock

chrome-extension-build/static/*
chrome-extension-build/static/*

1 change: 0 additions & 1 deletion chrome-extension-build/.gitignore

This file was deleted.

42 changes: 0 additions & 42 deletions chrome-extension-build/alert.html

This file was deleted.

Binary file removed chrome-extension-build/assets/discord.png
Binary file not shown.
Binary file removed chrome-extension-build/assets/email.png
Binary file not shown.
Binary file removed chrome-extension-build/assets/new_tab_link.png
Binary file not shown.
Binary file removed chrome-extension-build/assets/website.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alert.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon19-red.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon19.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon38-red.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon38.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon128 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon128.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon16 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon16.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon32 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon32.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon48 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon48.png
Binary file not shown.
1 change: 0 additions & 1 deletion chrome-extension-build/index.html

This file was deleted.

30 changes: 0 additions & 30 deletions chrome-extension-build/manifest.json

This file was deleted.

26 changes: 0 additions & 26 deletions chrome-extension-build/src/alert.html

This file was deleted.

2 changes: 0 additions & 2 deletions chrome-extension-build/src/background.html

This file was deleted.

Loading