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

veION UI #669

Open
wants to merge 151 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
b4b389b
veion page
shikhar360 Sep 13, 2024
ab3d6e9
frontpage
shikhar360 Sep 16, 2024
606f519
Merge branch 'development' into feat/veion
shikhar360 Sep 18, 2024
641b43c
rip grammer mistakes
shikhar360 Sep 18, 2024
f0f246f
little grammer fix
shikhar360 Sep 18, 2024
b46c0ab
added other pages
shikhar360 Sep 23, 2024
d79b996
basic popup
shikhar360 Sep 25, 2024
8897450
added success state
shikhar360 Sep 25, 2024
486aa64
added governance page
shikhar360 Sep 25, 2024
3e4762b
added myveionRows
shikhar360 Sep 26, 2024
aa92fd0
added delegate
shikhar360 Sep 30, 2024
943621d
Merge branch 'development' into feat/veion
shikhar360 Sep 30, 2024
8fdc799
extend page and claim popup added
shikhar360 Sep 30, 2024
4914c21
Merge branch 'development' into feat/veion
shikhar360 Oct 3, 2024
bf471a7
mobile screen fix
shikhar360 Oct 3, 2024
e2e27e4
renamed delegate
shikhar360 Oct 3, 2024
2743635
build fix
shikhar360 Oct 3, 2024
559df50
build fix
shikhar360 Oct 3, 2024
ad44a53
added manage popup
shikhar360 Oct 4, 2024
2ed4630
added voting page
shikhar360 Oct 7, 2024
e212a78
added interaction for claim and getveion
shikhar360 Oct 10, 2024
0f92a44
Merge branch 'feat/veION' into feat/veion-ui
vidvidvid Oct 21, 2024
806d3df
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 21, 2024
c1109cb
set up shadcn
vidvidvid Oct 21, 2024
7c2c072
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 22, 2024
975dd00
fix imports
vidvidvid Oct 22, 2024
bb5ae61
refactor veion page to shadcn
vidvidvid Oct 22, 2024
e4502ee
fix ui
vidvidvid Oct 22, 2024
20c5165
ui update
vidvidvid Oct 22, 2024
44df7e1
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 24, 2024
e7ff10e
veion ui updates
vidvidvid Oct 24, 2024
36e357e
add veion/incentives page
vidvidvid Oct 24, 2024
24a97e2
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 24, 2024
7818d8a
main ui
vidvidvid Oct 25, 2024
da8c286
add liquidity dialog
vidvidvid Oct 25, 2024
de7a5b2
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 25, 2024
f55e666
rename and lint
vidvidvid Oct 25, 2024
b1a5cc4
get veion dialog
vidvidvid Oct 25, 2024
7e396d0
add network dropdown on get veion dialog
vidvidvid Oct 25, 2024
8aa5e9f
fix date slider
vidvidvid Oct 25, 2024
f769848
migrate ion dialog
vidvidvid Oct 25, 2024
7f0aec8
make NetworkSelect static
vidvidvid Oct 25, 2024
dd9bc74
improve tables
vidvidvid Oct 25, 2024
fb1fc3b
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 25, 2024
b72e8a1
improve myIon and delegate ui
vidvidvid Oct 25, 2024
279817b
ui fixes to governance page
vidvidvid Oct 25, 2024
0284ac8
lint
vidvidvid Oct 25, 2024
c31a47d
voting page
vidvidvid Oct 25, 2024
f5d9678
add network switcher and pending votes only switch
vidvidvid Oct 25, 2024
3eb50ef
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 28, 2024
d7ba5a0
manage dialog
vidvidvid Oct 28, 2024
369b255
improve governance header
vidvidvid Oct 28, 2024
031089b
universal claim
vidvidvid Oct 28, 2024
8856873
extend veion dialog
vidvidvid Oct 28, 2024
857605a
refactor and reuse precision slider
vidvidvid Oct 29, 2024
13b1360
reuse lock duration picker
vidvidvid Oct 29, 2024
f80c594
add emissions link
vidvidvid Oct 29, 2024
7bfe56d
rename label
vidvidvid Oct 29, 2024
c222ddd
feat: contracts build
rhlsthrm Oct 29, 2024
4d6da8d
lint fix
vidvidvid Oct 29, 2024
f368540
organise files
vidvidvid Oct 29, 2024
adfaf62
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 30, 2024
9d8159a
add toast
vidvidvid Oct 30, 2024
17306b8
export veIONContracts from sdk
vidvidvid Oct 30, 2024
89e2c82
set up useManageMyVeion and prepare increaseAmount fn
vidvidvid Oct 30, 2024
c5db612
set up calls for manage dialog
vidvidvid Oct 30, 2024
bc9962d
prepare useContractWrite and refactor useManageMyVeION
vidvidvid Oct 30, 2024
674477b
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 30, 2024
41302af
smol fix
vidvidvid Oct 30, 2024
f00213d
add, withdraw, lock
vidvidvid Oct 31, 2024
1fbd129
Merge branch 'development' into feat/veion-ui
vidvidvid Oct 31, 2024
a6a885a
set up universal claim
vidvidvid Oct 31, 2024
125ec30
set up extend and claim
vidvidvid Oct 31, 2024
a6e2e37
set up undelegate
vidvidvid Oct 31, 2024
4bbf471
set up market vote
vidvidvid Nov 1, 2024
96a8b02
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 1, 2024
efad6df
improve add, withdraw & lock
vidvidvid Nov 1, 2024
b9f4fb4
lint
vidvidvid Nov 1, 2024
48c781a
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 3, 2024
a546c78
fetch address balances & improve ui/ux
vidvidvid Nov 3, 2024
39345e2
unify ui & fix values. improve MaxDeposit
vidvidvid Nov 3, 2024
8e3dc03
update emission status ui
vidvidvid Nov 3, 2024
b707028
improvie /veion ui
vidvidvid Nov 4, 2024
b997f7b
improve incentives
vidvidvid Nov 4, 2024
c211bd4
improve network dropdown
vidvidvid Nov 4, 2024
1b20f63
wip
vidvidvid Nov 4, 2024
f12a9bd
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 4, 2024
0ef0193
prepare total, staked & locked values
vidvidvid Nov 5, 2024
cbd4b7d
simplify context
vidvidvid Nov 5, 2024
609ceb5
submodule issue fix
Nov 5, 2024
d90cb91
submodule issue fix
Nov 5, 2024
1fa8b19
netlify fix
Nov 5, 2024
759f099
netlify fix
Nov 5, 2024
1f30468
netlify fix
Nov 5, 2024
d13b8dc
fetch my and delegate veion lp
vidvidvid Nov 5, 2024
17a0628
Merge remote-tracking branch 'origin/feat/veion-ui' into feat/veion-ui
vidvidvid Nov 5, 2024
3b56dbe
build fix
vidvidvid Nov 5, 2024
f5ab810
Remove stale submodule configuration for packages/sdk/lib/contracts
Nov 5, 2024
342b0a2
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 6, 2024
dd7fa87
set up vote table & data
vidvidvid Nov 6, 2024
95327b3
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 7, 2024
b2d93fe
fix vote table inputs
vidvidvid Nov 7, 2024
045aa9c
set skeletons for table
vidvidvid Nov 7, 2024
2dfc463
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 7, 2024
6e948d6
add loaders to common table
vidvidvid Nov 7, 2024
97ce81a
fix build
vidvidvid Nov 7, 2024
fee96ff
unify universal claim
vidvidvid Nov 7, 2024
e769972
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 7, 2024
d29f4bb
improve universal claim ui
vidvidvid Nov 7, 2024
607b9bd
fix filtering
vidvidvid Nov 8, 2024
b14786d
simplify voting
vidvidvid Nov 8, 2024
956861e
Merge branch 'development' into feat/veion-ui
vidvidvid Nov 28, 2024
4a5efbd
fix
vidvidvid Nov 28, 2024
f4f1eff
Merge branch 'development' into feat/veion-ui
vidvidvid Dec 5, 2024
674c605
fix tables
vidvidvid Dec 5, 2024
9a5ba70
Merge branch 'development' into feat/veion-ui
vidvidvid Dec 24, 2024
dff6c4e
fix usestore
vidvidvid Dec 24, 2024
88a2439
Merge branch 'feat/dashboard-design-update' into feat/veion-ui
vidvidvid Dec 24, 2024
11eea1a
Merge branch 'development' into feat/veion-ui
vidvidvid Jan 7, 2025
bed7054
fix link
vidvidvid Jan 7, 2025
e609868
fix dialogs
vidvidvid Jan 7, 2025
9127c2f
add option for all chains
vidvidvid Jan 7, 2025
7153635
fix myveion
vidvidvid Jan 7, 2025
15a19f7
update vote page
vidvidvid Jan 7, 2025
01ee75f
filter chains
vidvidvid Jan 8, 2025
3dc6154
fix fetch vote markets
vidvidvid Jan 8, 2025
44ae75f
split vote elements to supply and borrow
vidvidvid Jan 8, 2025
81e82f8
ui improvements
vidvidvid Jan 8, 2025
ba635de
confirmation overview for votes
vidvidvid Jan 8, 2025
a3a3e09
update confirm dialog, remove auto vote
vidvidvid Jan 8, 2025
bb54156
add tooltips
vidvidvid Jan 8, 2025
3d6819c
return the vote column
vidvidvid Jan 9, 2025
98aea58
add reward breakdown
vidvidvid Jan 9, 2025
4921049
hide wusd+
vidvidvid Jan 9, 2025
c7935c4
Merge branch 'development' into feat/veion-ui
vidvidvid Jan 20, 2025
4fd9e4d
improve ui
vidvidvid Jan 20, 2025
710dcc9
prepare mock incentives
vidvidvid Jan 20, 2025
a469e4d
Merge branch 'refactor/veION-cleanup-fixes' into feat/veion-ui
vidvidvid Jan 22, 2025
dd55b00
Merge branch 'development' into feat/veion-ui
vidvidvid Jan 23, 2025
c32f712
add liquidity
vidvidvid Jan 23, 2025
ea365a5
fix amount input
vidvidvid Jan 23, 2025
d49f66c
fix providing liquidity
vidvidvid Jan 23, 2025
5f0b6e8
Merge branch 'development' into feat/veion-ui
vidvidvid Jan 23, 2025
41d686a
mint veion :')
vidvidvid Jan 23, 2025
4da294f
Merge branch 'development' into feat/veion-ui
vidvidvid Jan 23, 2025
336cea0
fix build
vidvidvid Jan 23, 2025
8307d4d
display base positions
vidvidvid Jan 24, 2025
6b43480
Merge branch 'development' into feat/veion-ui
vidvidvid Jan 24, 2025
bcf9858
add multichain support
vidvidvid Jan 24, 2025
6d81ade
fix build
vidvidvid Jan 24, 2025
059c39b
calculate veion percentage
vidvidvid Jan 24, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/package-contracts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ jobs:

- name: Run forge tests locally
run: yarn workspace @ionicprotocol/contracts forge test -vv --no-match-contract '${{ env.EXCLUDE_TESTS }}|${{ env.FLAKY_TESTS }}|${{ env.SLOW_TESTS }}'
continue-on-error: true # Skip the job on test failure
continue-on-error: true # Skip the job on test failure
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ url = https://github.com/gelatodigital/ops
path = packages/contracts/lib/adrastia-periphery
url = https://github.com/adrastia-oracle/adrastia-periphery
[submodule "packages/contracts/lib/devtools"]
path = packages/contracts/lib/devtools
url = https://github.com/LayerZero-Labs/devtools
path = packages/contracts/lib/devtools
url = https://github.com/LayerZero-Labs/devtools
[submodule "packages/contracts/lib/layerzero-v2"]
path = packages/contracts/lib/layerzero-v2
url = https://github.com/LayerZero-Labs/layerzero-v2
path = packages/contracts/lib/layerzero-v2
url = https://github.com/LayerZero-Labs/layerzero-v2
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"@next/react-dev-overlay": "^14.1.4",
"@radix-ui/react-visually-hidden": "^1.1.1",
"@resolver-engine/core": "^0.3.3",
"@tanstack/react-table": "^8.20.5",
"lucide-react": "^0.454.0",
"next": "^14.2.4"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"dependencies": {
"@ionicprotocol/chains": "workspace:*",
"@ionicprotocol/types": "workspace:*",
"@radix-ui/react-visually-hidden": "^1.1.0",
"@supabase/supabase-js": "^2.44.1",
"bad-words": "^3.0.4",
"bufferutil": "^4.0.8",
Expand Down
28 changes: 27 additions & 1 deletion packages/sdk/src/IonicSdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
PublicClient,
WalletClient
} from "viem";
import { bob, lisk, mode } from "viem/chains";

Check warning on line 22 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

'bob' is defined but never used

Check warning on line 22 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

'lisk' is defined but never used

Check warning on line 22 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

'mode' is defined but never used

import {
addressesProviderAbi,
Expand All @@ -33,7 +33,9 @@
poolDirectoryAbi,
poolLensAbi,
poolLensSecondaryAbi,
unitrollerAbi
unitrollerAbi,
veIonAbi,
voterAbi
} from "../generated";
import { withAsset } from "../modules/Asset";
import { withConvertMantissa } from "../modules/ConvertMantissa";
Expand Down Expand Up @@ -64,14 +66,25 @@
};

export interface Logger {
trace(message?: string, ...optionalParams: any[]): void;

Check warning on line 69 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
debug(message?: string, ...optionalParams: any[]): void;

Check warning on line 70 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
info(message?: string, ...optionalParams: any[]): void;

Check warning on line 71 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
warn(message?: string, ...optionalParams: any[]): void;

Check warning on line 72 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
error(message?: string, ...optionalParams: any[]): void;

Check warning on line 73 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
[x: string]: any;

Check warning on line 74 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
}

interface Contracts {
veION: {
address: Address;
abi: any;

Check warning on line 80 in packages/sdk/src/IonicSdk/index.ts

View workflow job for this annotation

GitHub Actions / build-lint-and-test-local

Unexpected any. Specify a different type
};
voter: {
address: Address;
abi: any;
};
}

export class IonicBase {
static CTOKEN_ERROR_CODES = CTOKEN_ERROR_CODES;
public _publicClient: PublicClient;
Expand Down Expand Up @@ -157,6 +170,19 @@
};
}

public get veIONContracts(): Contracts {
return {
veION: {
address: "0x8865E0678E3b1BD0F5302e4C178a4B576F6aAA27",
abi: veIonAbi
},
voter: {
address: "0x669A6F5421dA53696fa06f1043CF127d380f6EB9",
abi: voterAbi
}
};
}

setWalletClient(walletClient: WalletClient) {
this._walletClient = walletClient;
return this;
Expand Down
Loading
Loading