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

Misc Upgrades with ebip 17 and master #961

Merged
merged 1,019 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1019 commits
Select commit Hold shift + click to select a range
319ca8f
cleanup
uncoolzero Jun 22, 2024
b2adb90
relocate calendarbutton file
uncoolzero Jun 22, 2024
be4c1c6
improved handling of old pool data
uncoolzero Jun 22, 2024
49cd86e
save chart settings
uncoolzero Jun 22, 2024
25928a0
Merge branch 'master' into bean-ui-analytics-v2
uncoolzero Jun 22, 2024
e61c4ec
bugfix
uncoolzero Jun 22, 2024
5136364
bugfix
uncoolzero Jun 22, 2024
cf52a5c
fix selected preset being shown incorrectly
uncoolzero Jun 22, 2024
bfe6801
chart settings fixes
uncoolzero Jun 23, 2024
47403dc
cleanup
uncoolzero Jun 23, 2024
03caece
fix select dialog not saving selection issue
uncoolzero Jun 24, 2024
f497d53
add lightweight charts vertical line plugin
uncoolzero Jun 24, 2024
0b337a6
clarity
uncoolzero Jun 24, 2024
d9c77fa
feat: add dropdown package
Space-Bean Jun 25, 2024
853f327
feat: create dropdown component
Space-Bean Jun 25, 2024
c9d3468
feat: update create well component
Space-Bean Jun 25, 2024
d2348f6
feat: remaining bugs
Space-Bean Jun 25, 2024
4f7948b
feat: remove build route gate
Space-Bean Jun 25, 2024
d507572
retry system, error state, error handling
uncoolzero Jun 25, 2024
c137620
mobile tweaks
uncoolzero Jun 25, 2024
450a7cf
feat: [dex-ui/well-creator]: Final Bug Pass through (#930)
Space-Bean Jun 25, 2024
8d77d4f
feat: update well tokens on abritrary tokens + fix token dropdown offset
Space-Bean Jun 25, 2024
7d039fe
feat: [dex-ui]: Well Creator UI (#897)
Space-Bean Jun 25, 2024
47aeabf
bug: fix frame on mobile
Space-Bean Jun 25, 2024
5f9f62f
bug: [dex-ui]: Fix frame on mobile (#931)
Space-Bean Jun 25, 2024
89051da
Merge branch 'master' into bean-ui-analytics-v2
uncoolzero Jun 25, 2024
4c228b7
css tweaks
uncoolzero Jun 25, 2024
4b3e13d
feat: update bug fixes
Space-Bean Jun 26, 2024
40ab486
feat: update
Space-Bean Jun 26, 2024
993d7fb
feat: remove incorrect price lookup for wbtc
Space-Bean Jun 26, 2024
edc158b
bug-fix: [dex-ui: well-creator]: post deploy bug fixes (#935)
Space-Bean Jun 26, 2024
b358a05
prevent chart buttons from overflowing
uncoolzero Jun 26, 2024
37e312e
Merge branch 'master' into bean-ui-analytics-v2
uncoolzero Jun 26, 2024
c015a32
update snapshot-labs endpoint, subgraph schemas
uncoolzero Jun 26, 2024
550006c
update codegen-individual
uncoolzero Jun 26, 2024
b473775
feat: fix too many token balances to load error
Space-Bean Jun 26, 2024
a8c949f
Merge branch 'master' into spacebean/dex-ui/well-creator-deploy-bugs
Space-Bean Jun 26, 2024
24b9837
feat: token metadata json
Space-Bean Jun 26, 2024
a382f7b
Bean UI - Analytics v2 (#921)
uncoolzero Jun 26, 2024
358c429
feat: update add-liquidity
Space-Bean Jun 26, 2024
f79e244
adjust mini chart height
uncoolzero Jun 26, 2024
24fc873
add ebip 15 and 16 to ebip page
uncoolzero Jun 26, 2024
bfc4d64
remove alternative convert path
uncoolzero Jun 27, 2024
d0f2f60
Merge branch 'master' into sk/fix/pod-market2
soilking Jun 27, 2024
e49b45e
Remove deprecated test and bump version
soilking Jun 27, 2024
72b9492
Merge branch 'sk/fix/apy-efficiency' into subgraph-beanstalk2.3.0
soilking Jun 27, 2024
bd44d1f
remove graft
soilking Jun 27, 2024
c78c801
update codegen
soilking Jun 27, 2024
736a21a
bug fix: fix add liquidity
Space-Bean Jun 27, 2024
fb911f3
bug: remove ! operators
Space-Bean Jun 27, 2024
be229b6
fix: add liquidity button
Space-Bean Jun 27, 2024
3de99bf
bug: fix all UI related to price
Space-Bean Jun 27, 2024
70ca84c
Merge branch 'master' into spacebean/dex-ui/well-creator-side-effects
Space-Bean Jun 27, 2024
9b6464b
fix: well page on mobile
Space-Bean Jun 27, 2024
ef05d6f
feat: update well position usd
Space-Bean Jun 27, 2024
7d121d3
feat: update well position usd v2
Space-Bean Jun 27, 2024
959324b
feat: update token input
Space-Bean Jun 27, 2024
7cd924c
feat: fix token picker mobile
Space-Bean Jun 27, 2024
b68c79b
feat: fix mobile drawer
Space-Bean Jun 27, 2024
c5c01b7
feat: add usdt price lookup
Space-Bean Jun 27, 2024
3186d7a
Revert "remove alternative convert path"
uncoolzero Jun 27, 2024
7869257
feat: add more price lookups
Space-Bean Jun 27, 2024
9c65c38
feat: update token picker
Space-Bean Jun 27, 2024
1bd0d86
feat: require both token amounts create well
Space-Bean Jun 27, 2024
bebe35e
Bug Fix: [dex-ui]: Add Liquidity, Token Balances, Swap bugs (#937)
BeanstalkFarmsOperations Jun 27, 2024
90b810d
Merge branch 'master' into bean-ui-misc-fixes
uncoolzero Jun 27, 2024
178fd74
Bean UI - Misc Tweaks and Fixes (#938)
uncoolzero Jun 27, 2024
b99d18c
feat: update where we set token metadata
Space-Bean Jun 27, 2024
03a6b40
feat: update token metadata in useWells
Space-Bean Jun 27, 2024
81ea662
feat: update display decimals on well detail row
Space-Bean Jun 27, 2024
86b1256
feat: remove useless useeffect
Space-Bean Jun 27, 2024
6eb09c6
feat: fix token marquee
Space-Bean Jun 27, 2024
d6da11a
feat: update well components infos
Space-Bean Jun 27, 2024
842e51d
feat: update swap
Space-Bean Jun 27, 2024
4ff7e05
feat: update max height on mobile drawer
Space-Bean Jun 27, 2024
2ded3ee
feat: fix formatting
Space-Bean Jun 27, 2024
9f85450
Merge branch 'master' into bean-ui-unripe-stem-fix
uncoolzero Jun 28, 2024
c62f53d
fix base unripe stalk calculation
uncoolzero Jun 28, 2024
1d6ed98
feat: update liquidity
Space-Bean Jun 28, 2024
9f62361
feat: remove fetch well fn
Space-Bean Jun 28, 2024
4321be5
fix mowable grown stalk calculation
uncoolzero Jun 28, 2024
d53bcb3
bugs: [dex-ui]: Post Well Creator cleanup (#939)
Space-Bean Jun 28, 2024
2072846
mowable stalk calc
uncoolzero Jun 28, 2024
80c3037
feat: update token metadatas
Space-Bean Jun 28, 2024
1699e8b
feat: add additional wells sorting
Space-Bean Jun 28, 2024
0b4ae7f
feat: add comments
Space-Bean Jun 28, 2024
f6b3afc
feat: update other section col align
Space-Bean Jun 28, 2024
42aec1e
bugs: [dex-ui]: Token Metadata + add new tokens to token-metadata + f…
Space-Bean Jun 28, 2024
73a9e93
cleanup
uncoolzero Jun 28, 2024
f568391
Merge branch 'master' into bean-ui-unripe-stem-fix
uncoolzero Jun 28, 2024
0a4d5f9
Bean UI - Stem handling fix (#917)
uncoolzero Jun 29, 2024
db13023
Merge branch 'master' into add-steth-oracle-merge
Brean0 Jun 29, 2024
0c52bc4
merge master.
Brean0 Jun 29, 2024
7df1462
Merge branch 'add-steth-oracle' into add-steth-oracle-merge
Brean0 Jun 29, 2024
4c9aba5
Merge branch 'add-steth-oracle-merge' into add-steth-oracle
Brean0 Jun 29, 2024
933a74b
Germination order fix
pizzaman1337 Jul 3, 2024
3c456fa
Merge branch 'immunefi-plenty-bug-master' into july-ebip
pizzaman1337 Jul 3, 2024
213ac9b
Cleanup
pizzaman1337 Jul 3, 2024
ebc8f1d
Remove total bdv counter
pizzaman1337 Jul 3, 2024
0e5446e
use placeInLine
uncoolzero Jul 3, 2024
d8ecc3f
Update comment
pizzaman1337 Jul 4, 2024
e976f3e
Merge branch 'silov3-migration-fix' into july-ebip
pizzaman1337 Jul 4, 2024
41e6fb2
feat: fix whitelisted components incremement
Space-Bean Jul 4, 2024
3b96687
feat: remove console logs
Space-Bean Jul 4, 2024
5e1b353
feat: add token metadata logs
Space-Bean Jul 4, 2024
e6fadb7
update pod listings/orders queries
uncoolzero Jul 4, 2024
0566153
feat: update tokenmetadatas
Space-Bean Jul 4, 2024
ec8f59c
remove fetchMoreData
uncoolzero Jul 4, 2024
53cc612
update marketevents query
uncoolzero Jul 4, 2024
c56097b
updateActivityData now fetches all market events
uncoolzero Jul 4, 2024
afc1191
feat: add wstETH
Space-Bean Jul 4, 2024
257a0c1
update table spacings
uncoolzero Jul 4, 2024
26b1324
fix broken forms
uncoolzero Jul 4, 2024
f08a363
update chart tooltip
uncoolzero Jul 4, 2024
9e42ead
fix pod amount on orders
uncoolzero Jul 4, 2024
9878b79
rename cancelled_partial column
uncoolzero Jul 4, 2024
b7fc316
bug-fix: [dex-ui]: Build page bugs (#942)
Space-Bean Jul 4, 2024
4835ad9
mark orders >99.99% filled as filled
uncoolzero Jul 5, 2024
7583ce8
update allPodListings/allPodOrders queries
uncoolzero Jul 6, 2024
bb6de55
add support for more than 1000 listings/orders
uncoolzero Jul 6, 2024
a446674
fix issue on first load
uncoolzero Jul 6, 2024
88dc535
Initial setup of init hot fix 6 script
pizzaman1337 Jul 7, 2024
1c03776
Update to use checksummed addresses as solidity requires
pizzaman1337 Jul 7, 2024
a64fb74
Emit events
pizzaman1337 Jul 7, 2024
f3e393c
Fix system level stalk and roots
pizzaman1337 Jul 7, 2024
c501218
Script to run ebip
pizzaman1337 Jul 7, 2024
3fea162
Fix deployment
pizzaman1337 Jul 7, 2024
8072b7e
Merge branch 'ebip-stalk-fix' into july-ebip
pizzaman1337 Jul 7, 2024
ac10181
Fix immunefi report balanceOfPlenty related bug
pizzaman1337 Jul 7, 2024
eb87026
Merge branch 'plenty-report-july-ebip' into july-ebip
pizzaman1337 Jul 7, 2024
ca73468
Fix deployment
pizzaman1337 Jul 7, 2024
2cfdafb
Add back burn stalk fix
pizzaman1337 Jul 7, 2024
680b6fe
fix error on successfull pod order fill
uncoolzero Jul 7, 2024
e1bc8f0
fix dust pods on pod order fill
uncoolzero Jul 7, 2024
2624084
update subgraph endpoints
uncoolzero Jul 8, 2024
460653b
minor copy tweak on governance page
uncoolzero Jul 8, 2024
56f6b43
Update endpoints.ts
uncoolzero Jul 8, 2024
0acd470
Bean UI - Small copy tweak (#944)
BeanstalkFarmsOperations Jul 8, 2024
02e646c
Merge branch 'master' into bean-ui-switch-subgraph-endpoints
uncoolzero Jul 8, 2024
30c86e7
Bean UI - Change subgraph endpoint (#943)
uncoolzero Jul 8, 2024
00adb3b
Merge branch 'master' into bip-45-quorum
BeanstalkFarmsOperations Jul 8, 2024
b14cc37
BIP-47: Adjust Quorum (#866)
BeanstalkFarmsOperations Jul 8, 2024
64e80cc
fix dust pods on pod listing fill
uncoolzero Jul 8, 2024
ad56663
Merge branch 'july-ebip' into misc-upgrades-with-july-ebip
pizzaman1337 Jul 8, 2024
dab4066
Make all tests pass
pizzaman1337 Jul 9, 2024
8a11c14
fix css errors
uncoolzero Jul 9, 2024
5cc483f
fix css warning message
uncoolzero Jul 9, 2024
16d3843
update error message parsing
uncoolzero Jul 9, 2024
06e5aee
simplify
uncoolzero Jul 9, 2024
90b092b
feat: add source hook
Space-Bean Jul 9, 2024
40f94d6
feat: update proposal voting pct
Space-Bean Jul 9, 2024
4f6a41f
Merge branch 'master' into sk/fix/pod-market2
soilking Jul 9, 2024
9637263
Merge branch 'master' into subgraph-beanstalk2.3.0
soilking Jul 9, 2024
7364865
fix build
uncoolzero Jul 9, 2024
c80c989
updated codegen
soilking Jul 9, 2024
38dda50
feat: update l2sr tooltip + add html support for useChartSetupData
Space-Bean Jul 9, 2024
1c1f241
feat: update seed decimals on token rewards
Space-Bean Jul 9, 2024
2e103bc
Transfer rain roots upon deposit transfer (rain roots transferred first)
pizzaman1337 Jul 10, 2024
92b2fd4
Add amount requirement to _transferPlot
pizzaman1337 Jul 10, 2024
f4f1a6c
fix market activity table values
uncoolzero Jul 10, 2024
54a9aa1
feat: create hook for getting balancesUsedBySource
Space-Bean Jul 10, 2024
b7d4e23
feat: update swap actions
Space-Bean Jul 10, 2024
ecbeecf
feat: add deposit.tsx
Space-Bean Jul 10, 2024
422b04d
fix values of pod order creation events
uncoolzero Jul 10, 2024
d36503a
feat: update swap actions
Space-Bean Jul 10, 2024
29d255e
Burn rain roots upon transfer
pizzaman1337 Jul 10, 2024
bcdad48
feat: update swap
Space-Bean Jul 10, 2024
7f12331
feat: remove logic from transfer
Space-Bean Jul 10, 2024
9d36462
feat: unlint chartv2
Space-Bean Jul 10, 2024
7c54912
feat: remove changes for transfer action
Space-Bean Jul 10, 2024
b3423e0
feat: fix types
Space-Bean Jul 10, 2024
243233f
feat: update Transfer actions for combined balance
Space-Bean Jul 10, 2024
06aa623
fix pod amount on pod order cancellations
uncoolzero Jul 10, 2024
4c749ac
feat: update unripe updater
Space-Bean Jul 10, 2024
c50e1ea
feat: update unripe updater
Space-Bean Jul 10, 2024
e5534a8
feat: update unripe updater comments
Space-Bean Jul 11, 2024
7d68ca0
feat: update basin chart
Space-Bean Jul 11, 2024
47b0a81
Add total rain roots getter
pizzaman1337 Jul 11, 2024
a1c6b2e
Add total roots manipulation test, fix end germination in mock, chang…
pizzaman1337 Jul 11, 2024
0b21037
feat: remove refetching prop
Space-Bean Jul 11, 2024
2a8df37
feat: update copy on whitelist
Space-Bean Jul 11, 2024
4d0b34c
Germination roots fix
pizzaman1337 Jul 12, 2024
a7c25b0
Second germination related test
pizzaman1337 Jul 12, 2024
44e5a99
Revert "Revert "wstETH Migration Remediations""
pizzaman1337 Jul 12, 2024
5b20cb7
Revert "Revert "wstETH Migration Remediations"" (#955)
pizzaman1337 Jul 12, 2024
467ad96
WIP generate locked underlying if ladder
pizzaman1337 Jul 12, 2024
d8f8f7d
Update if ladder script
pizzaman1337 Jul 12, 2024
905853a
Update locked underlying script, add updated numbers
pizzaman1337 Jul 12, 2024
3ab5a27
Update wsteth well and barn raise well address
pizzaman1337 Jul 12, 2024
6aa757c
Update pump address
pizzaman1337 Jul 12, 2024
e378223
[WIP]: bug-fix: [UI]: misc bugs (#951)
Space-Bean Jul 13, 2024
052f6cf
Number formatting
pizzaman1337 Jul 14, 2024
f7ce932
Repro rain and withdraw issue
pizzaman1337 Jul 14, 2024
efc28ac
Test user still has rain roots even through they have no roots
pizzaman1337 Jul 14, 2024
c56df9d
Transfer partial stalk burn rain roots test
pizzaman1337 Jul 14, 2024
e2668ea
Transfer stalk adjustment and tests
pizzaman1337 Jul 14, 2024
dde9f47
Merge branch 'sk/fix/pod-market2' into subgraph-beanstalk2.3.0
soilking Jul 14, 2024
61dd27d
Fix tests and other changes
pizzaman1337 Jul 14, 2024
7f49d8c
update handleRainAndSops to omit roots from deposits 1 season before …
Brean0 Jul 14, 2024
5cea6b0
m
aloceros Jul 14, 2024
35143e4
m
aloceros Jul 14, 2024
53653bf
fix contract size, update ebip
Brean0 Jul 14, 2024
f2a9f6d
Update Basin and Multi Flow Pump whitepapers (#958)
BeanstalkFarmsOperations Jul 14, 2024
f552dd6
fix linked libraries
Brean0 Jul 14, 2024
b7a2430
Update wells v1.1 package to prerelease1, fixes checksum issue
pizzaman1337 Jul 15, 2024
59b8157
Update gauge points and optimal percent deposited bdv for wsteth
pizzaman1337 Jul 15, 2024
36d115f
End germination in more mock sunrise functions
pizzaman1337 Jul 15, 2024
e130c01
Merge pull request #64 from AgrarianAlliance/add-steth-oracle-updates
pizzaman1337 Jul 15, 2024
da0b8c2
Merge pull request #63 from AgrarianAlliance/add-steth-oracle-addresses
pizzaman1337 Jul 15, 2024
10e1be9
Add init facet contract name
pizzaman1337 Jul 15, 2024
2330778
comment on 43
soilking Jul 15, 2024
9759b3e
Merge branch 'master' into sk/fix/pod-market2
soilking Jul 15, 2024
253a8f1
Pod Marketplace Subgraph + UI Fixes (#952)
soilking Jul 15, 2024
85838b1
Merge branch 'master' into subgraph-beanstalk2.3.0
soilking Jul 15, 2024
31d18d8
Subgraph Beanstalk 2.3.0 - Pod market fixes + apy calculation improve…
soilking Jul 15, 2024
ab222b0
Add impersonateBeanWstethWell to fert test
pizzaman1337 Jul 15, 2024
a8fcdf8
All tests passing again
pizzaman1337 Jul 16, 2024
d76fd45
Merge branch 'july-ebip' into add-steth-oracle
pizzaman1337 Jul 16, 2024
e6e3589
update wsteth-migration bip with proper linking.
Space-Bean Jul 16, 2024
59935db
tokenOrder field
soilking Jul 16, 2024
a568927
update name
soilking Jul 16, 2024
f74c1bb
Basin subgraph - add token order field (#959)
soilking Jul 16, 2024
2ae2505
Fix tests
pizzaman1337 Jul 16, 2024
cbdb187
Merge branch 'master' into july-ebip
pizzaman1337 Jul 16, 2024
ce144b3
Update if ladder and code generation for it
pizzaman1337 Jul 17, 2024
591ac6e
Update extreme weather test
pizzaman1337 Jul 17, 2024
314c68f
Merge branch 'ebip-17' into misc-upgrades-with-july-ebip
pizzaman1337 Jul 17, 2024
c04db80
Fix bip script
pizzaman1337 Jul 17, 2024
71bf653
Merge branch 'ebip-17' into add-steth-oracle
pizzaman1337 Jul 17, 2024
b126bd8
Merge branch 'add-steth-oracle' of github.com:BeanstalkFarms/Beanstal…
pizzaman1337 Jul 17, 2024
2cebe70
Merge branch 'add-steth-oracle' origin into add-steth-oracle
pizzaman1337 Jul 17, 2024
36b8574
EBIP-17 (#960)
pizzaman1337 Jul 18, 2024
1204111
Merge branch 'master' into add-steth-oracle
pizzaman1337 Jul 18, 2024
ce25abb
Revert M-02 codehawks suggestion in favor of returning 0 if max diffe…
pizzaman1337 Jul 18, 2024
69724dd
Tests passing
pizzaman1337 Jul 18, 2024
a08b091
Add init fert upgrade script and fert uri mainnet test
nickkatsios Jul 18, 2024
8b2fe9c
remove appstorage from init script
nickkatsios Jul 18, 2024
ae1e78d
Remove migration facet from deployment script
pizzaman1337 Jul 18, 2024
7099445
Remove duplicate require statement
pizzaman1337 Jul 18, 2024
c9cc2ce
Add deployWstethMigration to hardhat config
pizzaman1337 Jul 18, 2024
29970cf
Update bpf remaining calculation
nickkatsios Jul 18, 2024
f95e657
Update selectors to remove
pizzaman1337 Jul 18, 2024
d958cf9
Set mock back to true
pizzaman1337 Jul 18, 2024
45afeaf
Add back oracle deployment
pizzaman1337 Jul 18, 2024
76d8227
Add new fertilizer URI Mainnet test and update BPF remaining calculat…
Brean0 Jul 22, 2024
470adbb
Merge branch 'add-steth-oracle' into misc-upgrades-with-ebip-17
Brean0 Jul 24, 2024
899fa09
add await.
Brean0 Jul 24, 2024
f24ccb6
update tests to properly match/use latest blocks.
Brean0 Jul 24, 2024
b56ea97
update complex weather to use high pod rate.
Brean0 Jul 24, 2024
577d77b
update LibLockedUnderlying spec.
Brean0 Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
78 changes: 78 additions & 0 deletions .github/workflows/ci.subgraph-basin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Subgraph Basin

on:
pull_request:
types: [opened, synchronize]
paths:
- "projects/subgraph-basin/**"
- "projects/subgraph-core/**"

jobs:
compile:
runs-on: ubuntu-latest
name: Compile
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-basin

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-basin
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'yarn codegen' locally and commit the generated files!"

- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-basin
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-basin

- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-basin

- name: Run Tests
run: yarn test
working-directory: projects/subgraph-basin
38 changes: 33 additions & 5 deletions .github/workflows/ci.subgraph-bean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [opened, synchronize]
paths:
- "projects/subgraph-bean/**"
- "projects/subgraph-core/**"

jobs:
compile:
Expand All @@ -16,7 +17,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
Expand All @@ -28,6 +29,7 @@ jobs:
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-bean

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
Expand All @@ -44,7 +46,33 @@ jobs:
- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-bean
# TODO: add matchstick test suite
#- name: Run Tests
# run: yarn test
# working-directory: "${{ matrix.value }}"
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-bean

- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-bean

- name: Run Tests
run: yarn test
working-directory: projects/subgraph-bean
78 changes: 78 additions & 0 deletions .github/workflows/ci.subgraph-beanft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Subgraph BeaNFT

on:
pull_request:
types: [opened, synchronize]
paths:
- "projects/subgraph-beanft/**"
- "projects/subgraph-core/**"

jobs:
compile:
runs-on: ubuntu-latest
name: Compile
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-beanft

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-beanft
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'yarn codegen' locally and commit the generated files!"

- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-beanft
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-beanft

- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-beanft

- name: Run Tests
run: yarn test
working-directory: projects/subgraph-beanft
38 changes: 33 additions & 5 deletions .github/workflows/ci.subgraph-beanstalk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [opened, synchronize]
paths:
- "projects/subgraph-beanstalk/**"
- "projects/subgraph-core/**"

jobs:
compile:
Expand All @@ -16,7 +17,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
Expand All @@ -28,6 +29,7 @@ jobs:
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-beanstalk

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
Expand All @@ -44,7 +46,33 @@ jobs:
- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-beanstalk
# TODO: add matchstick test suite
#- name: Run Tests
# run: yarn test
# working-directory: "${{ matrix.value }}"
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-beanstalk

- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-beanstalk

- name: Run Tests
run: yarn test
working-directory: projects/subgraph-beanstalk
48 changes: 48 additions & 0 deletions .github/workflows/deploy.subgraph.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy Subgraph

on:
workflow_dispatch:
inputs:
environment:
description: "Deployment environment (prod/dev/testing)"
required: true
subgraph:
description: "Subgraph name (beanstalk/bean/basin/beanft)"
required: true
branch:
description: "Branch name"
required: true

jobs:
validation:
runs-on: ubuntu-latest
outputs:
environment: ${{ steps.check_env.outputs.environment }}
steps:
- name: Validate environment input
id: check_env
run: |
# Check if the environment is prod/dev/testing/prev
if [[ "${{ github.event.inputs.environment }}" != "prod" && "${{ github.event.inputs.environment }}" != "dev" && "${{ github.event.inputs.environment }}" != "testing" && "${{ github.event.inputs.environment }}" != "prev" ]]; then
echo "Error: Environment must be one of 'prod', 'dev', 'testing'."
exit 1
fi
# Check if the subgraph is a valid selection
if [[ "${{ github.event.inputs.subgraph }}" != "beanstalk" && "${{ github.event.inputs.subgraph }}" != "bean" && "${{ github.event.inputs.subgraph }}" != "basin" && "${{ github.event.inputs.subgraph }}" != "beanft" ]]; then
echo "Error: Subgraph must be one of 'beanstalk', 'bean', 'basin', 'beanft'."
exit 1
fi

deploy:
needs: validation
runs-on: ubuntu-latest
steps:
- name: Install SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GRAPH_SERVER_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H ${{ secrets.GRAPH_SERVER_HOST }} >> ~/.ssh/known_hosts

- name: Execute Remote Deployment Script
run: ssh -i ~/.ssh/id_ed25519 github@${{ secrets.GRAPH_SERVER_HOST }} "bash /home/github/deploy.sh ${{ github.event.inputs.branch }} ${{ github.event.inputs.subgraph }} ${{ github.event.inputs.environment }}"
10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
"printWidth": 100,
"singleQuote": false,
"semi": true,
"trailingComma": "none"
"trailingComma": "none",
"overrides": [
{
"files": "projects/subgraph-*/**",
"options": {
"printWidth": 140
}
}
]
}
8 changes: 8 additions & 0 deletions PROPOSALS.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ You can read more about BIPs [here](https://docs.bean.money/almanac/governance/p
* [BIP-39](https://bean.money/bip-39): Beanstalk Farms 2024 Development Budget
* [BIP-40](https://bean.money/bip-40): Beanstalk Farms 2024 Development Budget
* [BIP-41](https://bean.money/bip-41): Immunefi Program Update
* [BIP-42](https://bean.money/bip-42): Seed Gauge System
* [BIP-43](https://bean.money/bip-43): Hypernative
* [BIP-44](https://bean.money/bip-44): Seed Gauge System
* [BIP-45](https://bean.money/bip-45): Seed Gauge System
* [BIP-46](https://bean.money/bip-46): Hypernative
* [BIP-47](https://bean.money/bip-47): Adjust Quorum

## Emergency Beanstalk Improvement Proposal (EBIP)

Expand All @@ -72,6 +78,8 @@ You can read about the BCM's Emergency Response Procedures [here](https://docs.b
* [EBIP-12](https://bean.money/ebip-12): Remove Convert
* [EBIP-13](https://bean.money/ebip-13): Re-Add Convert
* [EBIP-14](https://bean.money/ebip-14): Remove Vesting Period
* [EBIP-15](https://bean.money/ebip-15): Seed Gauge System Fixes
* [EBIP-16](https://bean.money/ebip-16): Fix Germinating Earned Bean Deposits

## Beanstalk Operations Proposal (BOP)

Expand Down
2 changes: 1 addition & 1 deletion projects/cli/src/commands/setbalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const setbalance = async (sdk, chain, { account, symbol, amount }) => {
if (!symbol) {
await chain.setAllBalances(account, amount);
} else {
const symbols = ["ETH", "WETH", "BEAN", "USDT", "USDC", "DAI", "3CRV", "BEAN3CRV", "BEANWETH", "urBEAN", "urBEANWETH", "ROOT"];
const symbols = ["ETH", "WETH", "BEAN", "USDT", "USDC", "DAI", "CRV3", "BEAN3CRV", "BEANWETH", "urBEAN", "urBEANWETH", "ROOT"];
if (!symbols.includes(symbol)) {
console.log(`${chalk.bold.red("Error")} - ${chalk.bold.white(symbol)} is not a valid token. Valid options are: `);
console.log(symbols.map((s) => chalk.green(s)).join(", "));
Expand Down
Loading
Loading