Skip to content

Commit

Permalink
Merge pull request #31 from valory-xyz/mohan/bonds-main
Browse files Browse the repository at this point in the history
feat: Bonds update
  • Loading branch information
mohandast52 authored Jun 12, 2024
2 parents f8f8204 + bfb2d21 commit 5743c0e
Show file tree
Hide file tree
Showing 241 changed files with 13,907 additions and 5,248 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ NEXT_PUBLIC_ARBITRUM_SEPOLIA_URL=__value__
NEXT_PUBLIC_WALLET_PROJECT_ID=__URL__
NEXT_PUBLIC_SOLANA_MAINNET_BETA_URL=__value__
NEXT_PUBLIC_AUTONOLAS_SUB_GRAPH_URL=__URL__
NEXT_PUBLIC_OPTIMISM_URL=__URL__

# autonolas-registry-frontend
NEXT_PUBLIC_REGISTRY_URL=__value__
Expand All @@ -23,4 +24,6 @@ NEXT_PUBLIC_SOLANA_MAINNET_BETA_URL=__value__
NEXT_PUBLIC_SVM_PUBLIC_KEY=__value__

# autonolas-tokenomics-frontend
NEXT_PUBLIC_GRAPH_ENDPOINT_MAINNET=__URL__
NEXT_PUBLIC_SHYFT_API_KEY=__KEY__
NEXT_PUBLIC_IS_CONNECTED_TO_LOCAL=__TRUE_OR_FALSE__
14 changes: 13 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
node_modules
# Ignore built files
build/
dist/
.next/
.github/

# Ignore node_modules
node_modules/

# Ignore specific files or directories
*.log
.idea/
.vscode/
15 changes: 0 additions & 15 deletions .github/workflows/autonolas-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,3 @@ jobs:
run: yarn nx lint autonolas-registry
- name: Run Test
run: yarn nx test autonolas-registry
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.17.7'
- run: |
wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \
tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \
sudo install gitleaks /usr/bin && \
gitleaks detect -r apps/autonolas-registry/gitleaks-report.json -s apps/autonolas-registry -v
25 changes: 25 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint and Scan
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
scan:
name: Gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.17.7'
- run: |
wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \
tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \
sudo install gitleaks /usr/bin && \
gitleaks detect --report-format json --report-path leak_report -v
19 changes: 2 additions & 17 deletions .github/workflows/tokenomics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: '20.x'
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn nx lint tokenomics
- name: Run Test
run: yarn nx test tokenomics
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.17.7'
- run: |
wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \
tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \
sudo install gitleaks /usr/bin && \
gitleaks detect -r apps/tokenomics/gitleaks-report.json -s apps/tokenomics -v
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ Thumbs.db

# env
.env
.env.local

# after migrating autonolas-registry
# others
ganache_data
.unlighthouse
.env.local
.swc
113 changes: 113 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
f1a064d508341c1cd7558246ff2e05d18b026538:components/Home/Bonding/BondingList/useBondingList.jsx:generic-api-key:478
c75f3d58591bc836cad3124bab6223fa6acdc66b:components/Home/Bonding/BondingList/useBondingList.jsx:generic-api-key:495
a5a0e5fc9c27dc59bacb69d4bc3396fd7f3fd7be:common-util/constants/addresses.js:generic-api-key:18
1c1e2b5d37277712514f90d7ae6b0d2b3522508e:apps/autonolas-registry/tests/helpers/index.jsx:generic-api-key:56
1c1e2b5d37277712514f90d7ae6b0d2b3522508e:apps/autonolas-registry/tests/helpers/index.jsx:generic-api-key:57
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:11
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:13
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:18
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:20
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:25
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:27
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:39
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:41
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:54
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:56
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:61
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:63
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:72
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:74
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:79
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:81
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:86
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:88
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:93
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:95
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:100
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:102
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:120
704a273235caf65600e5c7842a74852ae54e7489:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:123
704a273235caf65600e5c7842a74852ae54e7489:apps/tokenomics/common-util/Contracts/index.jsx:generic-api-key:23
2006db156dae601f21f7e36950d47945f9595d0f:components/Home/Bonding/requests.jsx:generic-api-key:389
00bef6706f518a64eb82c47807a12e81ecb9c39f:common-util/Contracts/index.jsx:generic-api-key:23
a9adae070555266a5155a51250eff13e918f43f0:common-util/Contracts/index.jsx:generic-api-key:43
0a7012fc4f0721642a8d80021cc4fb3729b95db4:common-util/AbiAndAddresses/tokenomics.jsx:generic-api-key:3
bc87efea151df7a3d2c8e61a2644d2b9ceeaa396:common-util/AbiAndAddresses/tokenomics.jsx:generic-api-key:3
319d4d090ac13817d6d8cf97b338efb2028f6f36:components/Home/Bonding/requests.jsx:generic-api-key:247
9d0f4e29d2b471860e3fa8cee7c6d09b798f2e0c:common-util/AbiAndAddresses/tokenomics.jsx:generic-api-key:3
8659c438979a3430d024f43efed302188270da75:components/Home/Products/Deposit.jsx:generic-api-key:25
8659c438979a3430d024f43efed302188270da75:components/Home/Products/Deposit.jsx:generic-api-key:33
805ac04cb8e616c11dd2eecb18ae0d32bdf22662:common-util/Contracts/index.jsx:generic-api-key:37
b10e727341b413f31fd5a3a1240787006093e8bd:common-util/Contracts/addresses.jsx:generic-api-key:85
b10e727341b413f31fd5a3a1240787006093e8bd:common-util/Contracts/addresses.jsx:generic-api-key:87
b10e727341b413f31fd5a3a1240787006093e8bd:common-util/Contracts/addresses.jsx:generic-api-key:92
b10e727341b413f31fd5a3a1240787006093e8bd:common-util/Contracts/addresses.jsx:generic-api-key:94
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:25
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:27
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:39
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:41
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:60
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:62
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:71
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:73
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:85
a7a7f39302f3bf8bf230df42f64d1c972cbc0206:apps/autonolas-registry/common-util/Contracts/addresses.jsx:generic-api-key:87
a4bc6cb49b5e0fd1b62fe5da49900fbc70a2c876:common-util/Contracts/addresses.jsx:generic-api-key:39
a4bc6cb49b5e0fd1b62fe5da49900fbc70a2c876:common-util/Contracts/addresses.jsx:generic-api-key:41
a4bc6cb49b5e0fd1b62fe5da49900fbc70a2c876:common-util/Contracts/addresses.jsx:generic-api-key:60
a4bc6cb49b5e0fd1b62fe5da49900fbc70a2c876:common-util/Contracts/addresses.jsx:generic-api-key:62
a4bc6cb49b5e0fd1b62fe5da49900fbc70a2c876:common-util/Contracts/addresses.jsx:generic-api-key:71
a4bc6cb49b5e0fd1b62fe5da49900fbc70a2c876:common-util/Contracts/addresses.jsx:generic-api-key:73
ab9d5c0fcfb2e68ccb61f2829ddbcfafbcb63a75:common-util/Contracts/addresses.jsx:generic-api-key:60
ab9d5c0fcfb2e68ccb61f2829ddbcfafbcb63a75:common-util/Contracts/addresses.jsx:generic-api-key:62
ab9d5c0fcfb2e68ccb61f2829ddbcfafbcb63a75:common-util/Contracts/addresses.jsx:generic-api-key:67
ab9d5c0fcfb2e68ccb61f2829ddbcfafbcb63a75:common-util/Contracts/addresses.jsx:generic-api-key:69
51d69459b0d7da19b568cb898507b8f3ba285a9c:common-util/Contracts/addresses.jsx:generic-api-key:57
51d69459b0d7da19b568cb898507b8f3ba285a9c:common-util/Contracts/addresses.jsx:generic-api-key:59
91124f27bb8f2a76c480b5deef8e81712098625d:common-util/Contracts/addresses.jsx:generic-api-key:25
91124f27bb8f2a76c480b5deef8e81712098625d:common-util/Contracts/addresses.jsx:generic-api-key:27
785013249f1d2458233fa9de206fa5c7990d166f:components/Login/SolanaSignTransaction.jsx:generic-api-key:12
785013249f1d2458233fa9de206fa5c7990d166f:components/Login/SolanaSignTransaction.jsx:generic-api-key:13
c7975451ede820f5db3f7b04f462be26b05a5a7d:nx.json:generic-api-key:59
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:11
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:13
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:18
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:20
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:37
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:39
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:48
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:50
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:65
cc9d00ff4447b787d8aaafedc16b813ca6234284:common-util/Contracts/addresses.jsx:generic-api-key:68
360753689078e6d358a716faf159b6e8b4a8755e:common-util/Contracts/index.jsx:generic-api-key:50
360753689078e6d358a716faf159b6e8b4a8755e:common-util/Contracts/index.jsx:generic-api-key:52
360753689078e6d358a716faf159b6e8b4a8755e:common-util/Contracts/index.jsx:generic-api-key:80
360753689078e6d358a716faf159b6e8b4a8755e:common-util/Contracts/index.jsx:generic-api-key:82
ebec939b86591e440927ac4882b7205e36605983:common-util/Contracts/index.jsx:generic-api-key:28
ebec939b86591e440927ac4882b7205e36605983:common-util/Contracts/index.jsx:generic-api-key:52
73d555fac1333eb69b708bb55462699f8b3f94ef:common-util/Contracts/index.jsx:generic-api-key:78
73d555fac1333eb69b708bb55462699f8b3f94ef:common-util/Contracts/index.jsx:generic-api-key:81
051dcddf1bdad77a849b30053e7ab6e2463a7e46:common-util/Contracts/index.jsx:generic-api-key:30
9e4672afe3597a6d7c5056421f1d771a8e2a9030:common-util/Contracts/index.jsx:generic-api-key:90
5ed4ad9c3102d32b8f89d22f110a4ccddd17fbd8:common-util/Contracts/index.jsx:generic-api-key:26
5ed4ad9c3102d32b8f89d22f110a4ccddd17fbd8:common-util/Contracts/index.jsx:generic-api-key:36
5044a52841de1c0ef6a3a48840a930a81741d283:common-util/Contracts/index.jsx:generic-api-key:60
5044a52841de1c0ef6a3a48840a930a81741d283:common-util/Contracts/index.jsx:generic-api-key:62
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:21
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:48
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:75
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:123
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:151
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:171
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/components/Paths/data.json:generic-api-key:180
fc68bf731a424486ec9b54ed2db284b3e64c5277:apps/bond/util/constants.js:generic-api-key:1
f98a69480ea33a20952cce0f7c508ed2ee6cb9db:apps/bond/common-util/constants/addresses.js:generic-api-key:17
22b9e0df995017c7c20b6cf18053054a14ef9114:util/constants.js:generic-api-key:1
0531ab7069ff22639ed0e78546dfc19f3b4abd45:components/Paths/data.json:generic-api-key:67
0531ab7069ff22639ed0e78546dfc19f3b4abd45:components/Paths/data.json:generic-api-key:39
0531ab7069ff22639ed0e78546dfc19f3b4abd45:components/Paths/data.json:generic-api-key:18
38c5f615a49fb45483c1b35b2bfb72694c1dd897:components/Paths/data.json:generic-api-key:123
8ca2111a0b1994cec8cf0038b6008b8e58973409:components/Paths/data.json:generic-api-key:150
9b513174ee896aec67c1466ab8ae68e725854de8:components/Paths/data.json:generic-api-key:179
9b513174ee896aec67c1466ab8ae68e725854de8:components/Paths/data.json:generic-api-key:170
3f205cea71bc3bd5fec7889846567f94d01203d0:apps/tokenomics/common-util/constants/addresses.js:generic-api-key:17
12 changes: 11 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrder": [
"^@autonolas/(.*)$",
"^[libs/*]",
"^(store|util|common-util|components|data)/(.*)$",
"^[./]"
]
}
5 changes: 1 addition & 4 deletions apps/autonolas-registry/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
}
}
],
[
"import",
{ "libraryName": "antd", "libraryDirectory": "lib", "style": true }
]
["import", { "libraryName": "antd", "libraryDirectory": "lib", "style": true }]
]
}
11 changes: 2 additions & 9 deletions apps/autonolas-registry/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": [
"plugin:@nx/react-typescript",
"next/core-web-vitals",
"../../.eslintrc.json"
],
"extends": ["plugin:@nx/react-typescript", "next/core-web-vitals", "../../.eslintrc.json"],
"ignorePatterns": ["!**/*", ".next/**/*"],
"rules": {
"@nx/enforce-module-boundaries": [
Expand All @@ -23,10 +19,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": [
"error",
"apps/autonolas-registry/pages"
]
"@next/next/no-html-link-for-pages": ["error", "apps/autonolas-registry/pages"]
}
},
{
Expand Down
Loading

0 comments on commit 5743c0e

Please sign in to comment.