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

feat: cross chain boost sync support #3377

Merged
merged 84 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
4a94eb6
feat: add cross chain cards
alter-eggo May 2, 2023
1c195fa
feat: add cross chain sync modal
alter-eggo May 3, 2023
62b6c85
feat: add modal info selectors
alter-eggo May 7, 2023
7c7340d
wip
alter-eggo May 8, 2023
7e23191
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo May 15, 2023
093436c
feat: add omni escrow request
alter-eggo May 16, 2023
39c7c32
wip
alter-eggo May 16, 2023
170dfc2
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo May 17, 2023
e75fad3
feat: create feature base branch
alter-eggo May 17, 2023
6f35aa4
feat: add sync state logic
alter-eggo May 18, 2023
d56c5d7
feat: add sync modals
alter-eggo May 20, 2023
d8b647b
wip
alter-eggo May 20, 2023
39606bf
feat: add omni escrow voting contract
alter-eggo May 22, 2023
e8a02cd
feat: add tx error handling
alter-eggo May 23, 2023
8883926
feat: add syncing network logic
alter-eggo May 23, 2023
2ef5f74
wip
alter-eggo May 24, 2023
4b489ac
feat: add veBal balance display
alter-eggo May 25, 2023
773b63b
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo May 28, 2023
9061074
feat: add comments
alter-eggo May 29, 2023
134ab4a
feat: add balances calculation
alter-eggo May 29, 2023
4cc3fbb
Merge branch 'feat/chain-boost-sync' of github.com:balancer/frontend-…
alter-eggo May 29, 2023
f5d3f57
feat: add sort in omni and vote escrow requests
alter-eggo May 29, 2023
a8c151b
feat: add all unsynced state
alter-eggo May 29, 2023
26b99b1
feat: add balances on final state
alter-eggo May 30, 2023
2c0e87c
fix: loader lint
alter-eggo May 30, 2023
cb298b5
feat: change icons
alter-eggo May 31, 2023
7ed4bc6
feat: add refetch icons
alter-eggo May 31, 2023
6e98c5b
feat: add polygon network
alter-eggo Jun 1, 2023
f8971b8
Merge branch 'develop' into feat/cross-chain-boost
agualis Jun 2, 2023
8ed2ab2
feat: add temp syncing networks
alter-eggo Jun 2, 2023
5d205a7
Merge branch 'feat/cross-chain-boost' of github.com:balancer-labs/fro…
agualis Jun 2, 2023
781bf26
Add unit tests for useCrossChainSync
agualis Jun 2, 2023
e86b040
wip
alter-eggo Jun 5, 2023
d44028e
feat: add sync refetch watcher
alter-eggo Jun 6, 2023
11db89c
feat: add cross chain sync provider
alter-eggo Jun 6, 2023
f885f12
feat: add gnosis and optimism networks
alter-eggo Jun 6, 2023
8f70ac4
feat: change networks icons
alter-eggo Jun 6, 2023
0a0a786
merge dev
alter-eggo Jun 6, 2023
f0f3146
feat: proper add gnosis url
alter-eggo Jun 6, 2023
0285594
Refactor: extract useCrossChainNetwork (#3505)
agualis Jun 7, 2023
302f97e
feat: add warning and info alerts
alter-eggo Jun 9, 2023
1c694d6
feat: add procees to sync vebal modal
alter-eggo Jun 11, 2023
7b004e4
feat: add l2 vebal balance on portfolio page
alter-eggo Jun 11, 2023
73715d5
feat: add portfolio sync tip component
alter-eggo Jun 12, 2023
50f083d
feat: app proper sync tip condition
alter-eggo Jun 12, 2023
29caccf
feat: increase sync state refetch time
alter-eggo Jun 12, 2023
9669883
feat: change claim page texts
alter-eggo Jun 13, 2023
1fecfee
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jun 13, 2023
9bdd111
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jun 13, 2023
23f71bc
feat: add boost calculation on l2s
alter-eggo Jun 13, 2023
a713cd7
fix: tests
alter-eggo Jun 14, 2023
b099c26
fix: use boosts test
alter-eggo Jun 14, 2023
882363c
feat: change refresh logic
alter-eggo Jun 14, 2023
e5655d2
feat: change subgraph urls
alter-eggo Jun 14, 2023
b844668
feat: add error alert
alter-eggo Jun 14, 2023
f2ec5b0
feat: check tx with response mock
alter-eggo Jun 14, 2023
812a147
fix: temp remove set to local storage
alter-eggo Jun 14, 2023
2d0e8ad
fix: temp remove set to local storage
alter-eggo Jun 14, 2023
df9e30a
feat: add clear temp sync condition
alter-eggo Jun 15, 2023
199ada5
feat: prevent memory leaking on localstorage set
alter-eggo Jun 15, 2023
fda33ea
Merge pull request #3538 from balancer/fix/cross-chain-tx-submit
alter-eggo Jun 15, 2023
372027f
feat: remove icons
alter-eggo Jun 15, 2023
b84af3a
feat: remove logs
alter-eggo Jun 15, 2023
20a5ed6
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jun 15, 2023
ec5dfe3
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jun 16, 2023
4eb440a
feat: change final state text
alter-eggo Jun 16, 2023
f5df63d
feat: change l2 pools apr calc
alter-eggo Jun 16, 2023
34ccfb1
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jun 16, 2023
7f1f487
feat: put sync data in config
alter-eggo Jun 16, 2023
b86193e
feat: get data from configs
alter-eggo Jun 19, 2023
e5ee84e
Merge pull request #3303 from balancer/feat/cross-chain-boost
alter-eggo Jun 19, 2023
4f1bb90
fix: omni escrow locks value
alter-eggo Jun 19, 2023
0efe083
feat: add success check icon
alter-eggo Jun 19, 2023
d91baa8
Fix tests
agualis Jun 20, 2023
df96c10
fix: naming
alter-eggo Jun 20, 2023
7ba06d3
Updated network icons
pkattera Jun 21, 2023
7b3d222
UI clean up cross chain sync
pkattera Jun 21, 2023
8560cbb
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jun 26, 2023
57aa06e
fix: review fixes
alter-eggo Jun 27, 2023
37e0d9d
feat: sync related ui alerts on pool page (#3542)
alter-eggo Jun 30, 2023
49388c0
chore: update wording (#3620)
garethfuller Jul 4, 2023
dd4673d
feat: add layer zero tx link (#3625)
alter-eggo Jul 5, 2023
f904dc9
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
alter-eggo Jul 6, 2023
dc5a684
fix package lock
alter-eggo Jul 6, 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
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@
"wait-for-expect": "^3.0.2",
"walletlink": "^2.1.5",
"web3-utils": "^1.3.1",
"worker-loader": "^3.0.8"
"worker-loader": "^3.0.8",
"@layerzerolabs/scan-client": "^0.0.5"
},
"lint-staged": {
"*.{js,ts,vue}": "eslint --cache --fix --max-warnings 0",
Expand Down
2 changes: 2 additions & 0 deletions src/Root.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { provideTokens } from '@/providers/tokens.provider';
import { provideUserData } from '@/providers/user-data.provider';
import { provideWallets } from './providers/wallet.provider';
import { createProviderComponent } from './providers/createProviderComponent';
import { provideCrossChainSync } from './providers/cross-chain-sync.provider';

// The other providers call useWallets so we need to provide it in a higher level
const WalletsProvider = createProviderComponent(() => provideWallets());
Expand All @@ -18,6 +19,7 @@ const GlobalProvider = createProviderComponent(() => {
const tokenLists = provideTokenLists();
provideTokens(userSettings, tokenLists);
provideUserData();
provideCrossChainSync();
});

/**
Expand Down
30 changes: 30 additions & 0 deletions src/__mocks__/transactions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
import BigNumber from 'bignumber.js';

const txReceiptMock = {
to: '0x1234567890abcdef',
from: '0xabcdef1234567890',
contractAddress: '0xabcdefabcdef1234567890',
transactionIndex: 1,
root: '0xabcdef1234567890abcdef',
gasUsed: new BigNumber('100000'),
logsBloom: '0xabcdef1234567890abcdef',
blockHash: '0xabcdef1234567890abcdef',
transactionHash: '0xabcdef1234567890abcdef',
logs: [
{
// Sample log object
address: '0xabcdef1234567890abcdef',
data: '0xabcdef1234567890abcdef',
topics: ['0xabcdef1234567890abcdef', '0xabcdef1234567890abcdef'],
},
],
blockNumber: 1000,
confirmations: 10,
cumulativeGasUsed: new BigNumber('200000'),
effectiveGasPrice: new BigNumber('5000000000'),
byzantium: true,
type: 1,
status: 1,
};

export const txResponseMock = {
hash: '0xdac16ca21df7e4e2c9e013a7c1b8e1b869bf0bc6e97dde103e280703a60ff00d',
type: 2,
Expand Down Expand Up @@ -35,4 +64,5 @@ export const txResponseMock = {
v: 1,
creates: null,
chainId: 0,
wait: () => txReceiptMock,
};
1 change: 1 addition & 0 deletions src/assets/data/contracts/arbitrum.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"ChildChainGauge": "0xa523f47A933D5020b23629dDf689695AA94612Dc",
"ChildChainGaugeFactory": "0x6817149cb753BF529565B4D023d7507eD2ff4Bc0",
"ChildChainGaugeRewardHelper": "0xA0DAbEBAAd1b243BBb243f933013d560819eB66f",
"ChildChainGaugeWorkingBalanceHelper": "0xEa924b45a3fcDAAdf4E5cFB1665823B8F8F2039B",
"ChildChainGaugeTokenAdder": "0xbfD9769b061E57e478690299011A028194D66e3C",
"ChildChainLiquidityGaugeFactory": "0xb08E16cFc07C684dAA2f93C70323BAdb2A6CBFd2",
"ChildChainStreamer": "0xD7FAD3bd59D6477cbe1BE7f646F7f1BA25b230f8",
Expand Down
1 change: 1 addition & 0 deletions src/assets/data/contracts/gnosis.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"ChildChainGauge": "0x96484f2aBF5e58b15176dbF1A799627B53F13B6d",
"ChildChainGaugeFactory": "0x83E443EF4f9963C77bd860f94500075556668cb8",
"ChildChainGaugeRewardHelper": "0xf7D5DcE55E6D47852F054697BAB6A1B48A00ddbd",
"ChildChainGaugeWorkingBalanceHelper": "0x682f0dDBFd41D1272982f64a499Fb62d80e27589",
"ChildChainGaugeTokenAdder": "0x1802953277FD955f9a254B80Aa0582f193cF1d77",
"ChildChainLiquidityGaugeFactory": "0x809B79b53F18E9bc08A961ED4678B901aC93213a",
"ChildChainStreamer": "0x230a59F4d9ADc147480f03B0D3fFfeCd56c3289a",
Expand Down
1 change: 1 addition & 0 deletions src/assets/data/contracts/optimism.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"ChildChainGauge": "0x81cFAE226343B24BA12EC6521Db2C79E7aeeb310",
"ChildChainGaugeFactory": "0xa523f47A933D5020b23629dDf689695AA94612Dc",
"ChildChainGaugeRewardHelper": "0x8aB784368A1883DA90D8513b48801e2Db1cb2D5D",
"ChildChainGaugeWorkingBalanceHelper": "0x9129E834e15eA19b6069e8f08a8EcFc13686B8dC",
"ChildChainGaugeTokenAdder": "0x6f5a2eE11E7a772AeB5114A20d0D7c0ff61EB8A0",
"ChildChainLiquidityGaugeFactory": "0x2E96068b3D5B5BAE3D7515da4A1D2E52d08A2647",
"ChildChainStreamer": "0x239e55F427D44C3cc793f49bFB507ebe76638a2b",
Expand Down
1 change: 1 addition & 0 deletions src/assets/data/contracts/polygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"ChildChainGauge": "0xc9b36096f5201ea332Db35d6D195774ea0D5988f",
"ChildChainGaugeFactory": "0x22625eEDd92c81a219A83e1dc48f88d54786B017",
"ChildChainGaugeRewardHelper": "0xaEb406b0E430BF5Ea2Dc0B9Fe62E4E53f74B3a33",
"ChildChainGaugeWorkingBalanceHelper": "0x08fd003D8F1892D4EC684E6C3EE0128081be461b",
"ChildChainGaugeTokenAdder": "0x1554ee754707D5C93b7934AF404747Aba521Aaf2",
"ChildChainLiquidityGaugeFactory": "0x3b8cA519122CdD8efb272b0D3085453404B25bD0",
"ChildChainStreamer": "0x6f5a2eE11E7a772AeB5114A20d0D7c0ff61EB8A0",
Expand Down
19 changes: 19 additions & 0 deletions src/assets/images/icons/frame-loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions src/assets/images/icons/networks/arbitrum-one.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions src/assets/images/icons/networks/arbitrum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 14 additions & 7 deletions src/assets/images/icons/networks/ethereum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading