Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
621 commits
Select commit Hold shift + click to select a range
35d414f
fix: fix function typings
Space-Bean Dec 13, 2023
7dc8607
Only load pools if they exist for supply percent
cujowolf Dec 13, 2023
b3b1dad
Correct pool value being updated for pool cross checks
cujowolf Dec 13, 2023
a7cad1f
update: make loading components for liquidity
Space-Bean Dec 13, 2023
8c3f424
Merge branch 'spacebean/dex-ui/design-fixes' into spacebean/dex-ui/yi…
Space-Bean Dec 13, 2023
a49fb92
Basin UI (3) - Yield info + misc fixes (#713)
Space-Bean Dec 13, 2023
e523ffd
Merge branch 'spacebean/dex-ui/qol' into spacebean/dex-ui/design-fixes
Space-Bean Dec 13, 2023
aa98873
Basin UI (2) - Design fixes (#712)
Space-Bean Dec 13, 2023
0dd9b9b
Merge branch 'master' into spacebean/dex-ui/qol
Space-Bean Dec 13, 2023
fd106a1
fix: fix from merge
Space-Bean Dec 13, 2023
f04e6a2
Basin UI (1) - QOL Fixes (#711)
0xalecks Dec 13, 2023
65f8d13
fix: table headers + pricing fn cell
Space-Bean Dec 13, 2023
0cf7cc6
fix: fix table pricing fn table header name
Space-Bean Dec 13, 2023
79648c1
fix: rename header 2
Space-Bean Dec 13, 2023
53f5158
fix vapy link
astnexperiments Dec 13, 2023
f40dcab
Fix table headers + Pricing fn cell (#718)
astnexperiments Dec 13, 2023
50a824d
add support for pre-exploit data
uncoolzero Dec 14, 2023
3621ad2
Merge branch 'master' into bean-ui-stacked-liq-chart
uncoolzero Dec 14, 2023
778972d
change labels on old pools
uncoolzero Dec 14, 2023
46eb5d1
change oracle to minting whitelist
astnexperiments Dec 14, 2023
056712a
rm boolean oracles
funderbrker Dec 14, 2023
2bcb484
fix addr placement, expand junctions
funderbrker Dec 14, 2023
b287509
Tractor Mow test. Implement JS Tractor helpers
funderbrker Dec 14, 2023
6da9816
fix home height + fix connect wallet disabled
Space-Bean Dec 14, 2023
9f8ba00
update: implement more flexible connect wallet wrapper
Space-Bean Dec 14, 2023
dfe356e
Basin UI - Fix home height + Fix connect wallet disabled (#723)
0xalecks Dec 14, 2023
1f2623f
Update whitepaper 2.7.0
BeanstalkFarmsOperations Dec 14, 2023
b6b1913
Update whitepaper 2.7.0 (#724)
BeanstalkFarmsOperations Dec 14, 2023
92dcaa3
Filter tokens shown on tooltip
uncoolzero Dec 14, 2023
b79b4f1
Bean subgraph: Correct pool cross handler (#717)
astnexperiments Dec 14, 2023
ab12580
test Tractor Plant
funderbrker Dec 14, 2023
b925493
js fixes
funderbrker Dec 14, 2023
858c90d
Updated season filter
uncoolzero Dec 14, 2023
fa5c023
Tweaked colors
uncoolzero Dec 14, 2023
168a8af
Update Liquidity chart on Analytics page
uncoolzero Dec 15, 2023
5ed3088
cleanup
uncoolzero Dec 15, 2023
4647479
Merge branch 'master' into bean-ui-stacked-liq-chart
uncoolzero Dec 15, 2023
781a6cd
remove blueprint data type byte
funderbrker Dec 15, 2023
2765547
move tractor external
funderbrker Dec 16, 2023
8aa4281
Merge branch 'master' into bean-ui-mowing-fixes
uncoolzero Dec 17, 2023
070b057
tractor: urBean -> urLP test
funderbrker Dec 18, 2023
d8a9654
Update Mow logic, Enroot fix
uncoolzero Dec 18, 2023
0284f5b
generalized bidirectional unripe convert blueprint
funderbrker Dec 18, 2023
a7380fd
junctions update
funderbrker Dec 18, 2023
7b7f48a
test of 1 blueprint being used in both directions
funderbrker Dec 19, 2023
90ad965
tractor counters, with test/example
funderbrker Dec 19, 2023
f69f807
Merge branch 'bip39-seedGauge' into tractor-generalized
funderbrker Dec 19, 2023
95846e9
merge fix
funderbrker Dec 19, 2023
8fa0c5b
tractor facet cleanup
funderbrker Dec 19, 2023
759d7aa
rm debugging logs. glhf operators
funderbrker Dec 19, 2023
198020d
Update Enroot tx details copy
uncoolzero Dec 19, 2023
9fe3027
Bean UI - Form and FarmStep fixes (#714)
astnexperiments Dec 20, 2023
0338e96
Bean UI - Stacked liquidity chart (#710)
astnexperiments Dec 20, 2023
15152e8
ui: handle silo migration requirements
0xalecks Dec 21, 2023
4f8f545
UI: Show warning when silo migration is needed (#730)
0xalecks Dec 21, 2023
fea2f2e
winter theme
uncoolzero Dec 22, 2023
fb5a64a
winter icons
uncoolzero Dec 22, 2023
ceacfd2
more winter icons
uncoolzero Dec 22, 2023
d5ddbb4
winter drawer bg
uncoolzero Dec 22, 2023
e4d8244
Bean UI - Winter Theme (#732)
BeanstalkFarmsOperations Dec 22, 2023
3d9a8d9
winter themed morning auction chart
uncoolzero Dec 22, 2023
8064006
Bean UI - Winter Themed Morning Auction Chart (#733)
BeanstalkFarmsOperations Dec 22, 2023
3ddca96
feat: update wagmi client
Space-Bean Dec 23, 2023
b20a950
feat: update naming + env files
Space-Bean Dec 23, 2023
f6dac4b
Route WETH<->USDC swaps through Uniswap
uncoolzero Dec 30, 2023
dbbed3e
feat: handle no project id
Space-Bean Jan 3, 2024
abb4890
ui: update spinners
0xalecks Jan 4, 2024
07597b6
Add wallet connect (#735)
0xalecks Jan 4, 2024
d572313
Removed exact output quote, cleaned up debug msgs
uncoolzero Jan 5, 2024
fba676f
Tag cleanup
uncoolzero Jan 5, 2024
23ecd37
cleanup, simplify
uncoolzero Jan 6, 2024
fc3b8b1
add clipboard
uncoolzero Jan 7, 2024
0c82cf9
update deposit graph
uncoolzero Jan 7, 2024
585b350
update deposit presets
uncoolzero Jan 7, 2024
5023df6
update deposit workflow
uncoolzero Jan 7, 2024
03a6b01
condense univ3 and well swap steps
uncoolzero Jan 7, 2024
f6f1071
Merge branch 'master' into siloloadersv2
0xalecks Jan 8, 2024
01e9b95
ui: update silo loading (#738)
0xalecks Jan 8, 2024
0d18af9
Merge branch 'master' into bean-ui-uniswap-routing
uncoolzero Jan 9, 2024
014ab03
tweaked rpc settings
uncoolzero Jan 10, 2024
fb9c0be
Bean UI - Tweaked RPC settings (#745)
0xalecks Jan 10, 2024
95732f1
Merge branch 'master' into bean-ui-uniswap-routing
uncoolzero Jan 10, 2024
8c0a87e
Cleanup, formatting
uncoolzero Jan 10, 2024
631931e
comments, formatting, tweaked clipboard settings
uncoolzero Jan 11, 2024
54ca40c
Fix handling of invalid plot/order
uncoolzero Jan 11, 2024
e62dabf
Bean UI - Market - Improved handling of nonexistent plot/order (#746)
BeanstalkFarmsOperations Jan 11, 2024
7cee8cc
Refactor silo entity helpers
cujowolf Dec 13, 2023
153e597
Stalk per BDV tracking and vAPY calc updates
cujowolf Dec 13, 2023
837fb20
Add timestamp to TokenYield
cujowolf Dec 13, 2023
3107492
Initial vAPY changes related to subgraph schema update
cujowolf Dec 13, 2023
a5bc75d
Use testing endpoint for subgraph
cujowolf Dec 13, 2023
00a7937
Schema update for token yield timestamp
cujowolf Dec 13, 2023
a389a21
Update query config for different APY charts
cujowolf Dec 13, 2023
880b682
Remove old fields and historical vAPY cache
cujowolf Dec 14, 2023
78b9c65
Move default stalk/seeds for unripe setters
cujowolf Dec 20, 2023
499d0c1
fix bigint math
cujowolf Dec 20, 2023
d79e0e7
Use grown stalk for BDV when displaying seeds
cujowolf Dec 20, 2023
62c7019
Historical cache update
cujowolf Jan 5, 2024
104d6cb
Use correct asset settings for bulk grown stalk changes
cujowolf Jan 5, 2024
5160893
Update codegen to prod
cujowolf Jan 11, 2024
287ee38
Use stalk per BDV for vAPYs (#719)
0xalecks Jan 11, 2024
9cfc397
Merge branch 'master' into bean-ui-uniswap-routing
uncoolzero Jan 11, 2024
8749bd1
feat: update apys for wells
Space-Bean Jan 12, 2024
d48222b
remove non-related comments
Space-Bean Jan 12, 2024
d8aa40a
Basin UI - update APYs query (#747)
0xalecks Jan 12, 2024
d8ceb42
use advancedFarm on all swap calls
uncoolzero Jan 12, 2024
94236e5
tweaked clipboard settings
uncoolzero Jan 12, 2024
23f8227
tweaked clipboard settings
uncoolzero Jan 13, 2024
3092aae
exact output support
uncoolzero Jan 13, 2024
4d82ff2
exposed uniswap v3 fee tier setting
uncoolzero Jan 13, 2024
865824f
debug logs
uncoolzero Jan 13, 2024
9de544a
Merge branch 'master' into bean-ui-uniswap-routing
uncoolzero Jan 14, 2024
7f9e92e
use shift instead of swap
uncoolzero Jan 15, 2024
6c9a13b
fix approve/transfer
uncoolzero Jan 15, 2024
1ea34b0
add more deposit routes
uncoolzero Jan 15, 2024
5796b2d
update clipboard settings
uncoolzero Jan 15, 2024
ee93d0d
update deposit settings
uncoolzero Jan 15, 2024
bca6f8c
disable swap output field
uncoolzero Jan 15, 2024
9cab864
enable reverse direction on well shifts
uncoolzero Jan 15, 2024
4c04ba0
use shift on bean weth route
uncoolzero Jan 16, 2024
f4b4d30
updated tests
uncoolzero Jan 17, 2024
9cf81ad
cleanup
uncoolzero Jan 17, 2024
2cb5092
updated clipboard settings
uncoolzero Jan 17, 2024
71c1df7
ui/sdk: implement readonly provider
0xalecks Jan 18, 2024
132af06
cleanup
uncoolzero Jan 18, 2024
457b1d7
Add votes table to governance proposal page
uncoolzero Jan 22, 2024
bfc0617
Implement read-only provider (#749)
0xalecks Jan 22, 2024
62eeaab
Merge branch 'master' into bean-ui-uniswap-routing
uncoolzero Jan 23, 2024
06f6ad6
Bean UI - Add Uniswap routing (#744)
BeanstalkFarmsOperations Jan 23, 2024
4bf7cad
use drawer on mobile
uncoolzero Jan 24, 2024
b26efb6
decreased amount of votes per page
uncoolzero Jan 24, 2024
1d0df74
Merge branch 'master' into bean-ui-governance-votes
uncoolzero Jan 24, 2024
d1dd124
use tablepagination
uncoolzero Jan 24, 2024
ba23b5e
update breakpoint
uncoolzero Jan 24, 2024
39b15d1
cleanup, types
uncoolzero Jan 24, 2024
7d9fab7
add comment
uncoolzero Jan 24, 2024
6aa63fe
sizing tweaks
uncoolzero Jan 25, 2024
ba0f0d5
keys
uncoolzero Jan 25, 2024
e02f831
fix dom nesting errors
uncoolzero Jan 25, 2024
996d1ac
cleanup
uncoolzero Jan 25, 2024
53c9be9
cleanup
uncoolzero Jan 25, 2024
d2194cd
Bean UI - Add Votes table to Governance proposal page (#753)
uncoolzero Jan 25, 2024
0c908e0
ui: upgrade swap form inputs to v2
0xalecks Jan 23, 2024
fa3775b
update token inputs to v2
0xalecks Jan 29, 2024
92376bc
cleanup
0xalecks Jan 29, 2024
466f583
cleanup
0xalecks Jan 29, 2024
87533de
ui: fix typescript
0xalecks Jan 30, 2024
bcd3cff
Add older governance proposals to UI
uncoolzero Jan 30, 2024
9f5233f
add missing proposals
uncoolzero Jan 31, 2024
4eabbeb
cleanup
uncoolzero Jan 31, 2024
614c0e3
remove delegation dialog when not relevant
uncoolzero Jan 31, 2024
5f85fc0
init
Brean0 Jan 31, 2024
32f64f5
update handling of view-only proposals
uncoolzero Feb 1, 2024
ea7a1fd
hide quorum display when unnecessary
uncoolzero Feb 1, 2024
ce6f2a0
cleanup
uncoolzero Feb 1, 2024
746eb44
cleanup
uncoolzero Feb 1, 2024
9e68016
update test
uncoolzero Feb 1, 2024
e6477f7
cleanup
uncoolzero Feb 1, 2024
afb1758
spacing fix
uncoolzero Feb 1, 2024
b25bf0c
Update token input fields (#759)
0xalecks Feb 1, 2024
46181cf
Add uint128 safeCast
Brean0 Feb 1, 2024
ea0dc98
update choice formatter
uncoolzero Feb 1, 2024
b3c7c2d
add ens support to vote list
uncoolzero Feb 2, 2024
e5f553c
Merge branch 'master' into bean-ui-governance-archive
uncoolzero Feb 2, 2024
cc0b2f2
cleanup
uncoolzero Feb 2, 2024
42d430a
add script
Brean0 Feb 3, 2024
3fe1971
merge
Brean0 Feb 3, 2024
990e5dd
ebip13 -> ebip14
Brean0 Feb 3, 2024
c0438d0
rescued old bip votes from bip heaven
uncoolzero Feb 3, 2024
df85f77
remove
Brean0 Feb 3, 2024
4f7f458
add
Brean0 Feb 3, 2024
205e85e
remove unvotes
uncoolzero Feb 3, 2024
3b5dad4
cleanup
uncoolzero Feb 3, 2024
db9e0f5
update bip markdown
uncoolzero Feb 3, 2024
d7769f8
EBIP-14: Remove Vesting Period (#762)
BCMLiaison Feb 6, 2024
06c99b5
fix ref forwarding error
uncoolzero Feb 6, 2024
1b98976
[WIP] Bean UI - Clean up minor errors and warning messages (#763)
0xalecks Feb 6, 2024
314ad76
Merge branch 'master' into bean-ui-governance-archive
uncoolzero Feb 6, 2024
af5c4e3
ui: fix unmigrated silo
0xalecks Feb 7, 2024
8e01dff
ui: fix unmigrated silo (#764)
0xalecks Feb 7, 2024
8391ef1
Merge branch 'master' into bean-ui-governance-archive
uncoolzero Feb 7, 2024
f278f99
markdown tweaks
uncoolzero Feb 7, 2024
b3ec25d
reenable proposal function
uncoolzero Feb 7, 2024
26be687
add files to netlify settings
uncoolzero Feb 7, 2024
d394150
move bip data
uncoolzero Feb 7, 2024
163662a
fetch and populate list of bips with old bips
uncoolzero Feb 7, 2024
75047cf
fix jsonified markdown
uncoolzero Feb 7, 2024
72a6ff3
enable onchain bips
uncoolzero Feb 7, 2024
6e46040
fix fetch errors
uncoolzero Feb 7, 2024
6b5ec86
fix build error
uncoolzero Feb 7, 2024
3d58517
update netlify settings
uncoolzero Feb 7, 2024
a5f4757
add ebips
uncoolzero Feb 7, 2024
ea7120e
add ebips to netlify function
uncoolzero Feb 7, 2024
4a836a8
update fetch with renamed function
uncoolzero Feb 7, 2024
71adbcd
fetch and populate list of ebips
uncoolzero Feb 7, 2024
c7025d4
enable ebips
uncoolzero Feb 7, 2024
fcdce5e
fix netlify function
uncoolzero Feb 8, 2024
4f5858a
format ebip markdown
uncoolzero Feb 8, 2024
7daf2a3
split netlify function into two separate functions
uncoolzero Feb 8, 2024
30b634a
remove votes column
uncoolzero Feb 8, 2024
0aac6e4
add loading state to vote list panel
uncoolzero Feb 8, 2024
b51ed64
add loading state to governance page
uncoolzero Feb 8, 2024
fedf68e
fix not found state
uncoolzero Feb 8, 2024
abcda0d
cleanup
uncoolzero Feb 8, 2024
45b9fa2
add note about on chain governance
uncoolzero Feb 13, 2024
d1ceffd
add ebip note
uncoolzero Feb 13, 2024
5bdf41b
fixed earned beans-only converts
uncoolzero Feb 14, 2024
50fa54b
cleanup
uncoolzero Feb 14, 2024
7c2a01e
cleanup, changed response code
uncoolzero Feb 14, 2024
d758e1d
updated response codes
uncoolzero Feb 14, 2024
788513a
Bean UI - Convert form fix (#774)
uncoolzero Feb 14, 2024
91211c9
Merge branch 'master' into bean-ui-governance-archive
uncoolzero Feb 14, 2024
6480b6b
Bean UI - Update Governance page (#761)
BeanstalkFarmsOperations Feb 15, 2024
309c957
temperature changes at low/high debt levels
Brean0 Feb 15, 2024
82c72a1
temperature changes at low/high debt levels (#776)
Brean0 Feb 16, 2024
b46b795
fix convert bug
0xalecks Feb 16, 2024
4bea762
Merge branch 'master' into bug
0xalecks Feb 16, 2024
a9076a6
fix convert bug (#777)
0xalecks Feb 16, 2024
20b08c9
fix text in governance page
uncoolzero Feb 19, 2024
683b0a8
Bean UI - Fix text in governance page (#780)
BeanstalkFarmsOperations Feb 19, 2024
2e745a4
update percent fert sold language
astnexperiments Feb 19, 2024
a24abee
update percent fert sold language (#781)
astnexperiments Feb 19, 2024
85c49d6
add unwrap contract to junction
Brean0 Feb 20, 2024
99ac464
update CI
Brean0 Feb 20, 2024
eefadf4
Merge remote-tracking branch 'origin/master' into bip39-seedGauge
Brean0 Feb 20, 2024
41029b7
remove vesting period, IWETH
Brean0 Feb 20, 2024
d2334b7
initial gauge points from 1000 -> 100
Brean0 Feb 21, 2024
54446e0
LibGerminate external library
Brean0 Feb 21, 2024
68388be
merged
BrendanSanderson Mar 21, 2024
1d0734b
remove s.barnRaiseWell
Brean0 Mar 21, 2024
b95a667
add LibGerminate
BrendanSanderson Mar 21, 2024
bb66b8d
Merge branch 'add-steth-oracle' into removeBarnRaiseStorage
BrendanSanderson Mar 21, 2024
ed0a1a0
remove barnRaiseWell from appstorage
BrendanSanderson Mar 21, 2024
8dc9cbf
remove s.barnRaiseWell (#800)
Brean0 Mar 21, 2024
4a251a8
fix tests.
Brean0 Mar 21, 2024
51e8d43
Merge branch 'bip39-seedGauge' of https://github.com/BeanstalkFarms/B…
funderbrker Mar 22, 2024
2105f77
Merge branch 'add-steth-oracle' of https://github.com/BeanstalkFarms/…
funderbrker Mar 22, 2024
a9ee30c
fix Tractor.test.js after merge
funderbrker Mar 27, 2024
b00c975
remove tractor init requirement. use payable addr for publisher
funderbrker Mar 27, 2024
6164fb0
msg.sender -> LibTractor._getUser()
funderbrker Mar 27, 2024
64b26e7
fix tests for changed error msg
funderbrker Mar 27, 2024
5a50ba7
decode
Brean0 Mar 29, 2024
65ab6bb
remove.
Brean0 Mar 29, 2024
854de6b
remove file.
Brean0 Mar 29, 2024
3f46790
patch clipboard encoding
funderbrker Mar 29, 2024
72c189c
minor clipboard/tractor cleanup
funderbrker Mar 29, 2024
ec9edee
cleanup of tractor and related libs
funderbrker Apr 1, 2024
eb74924
Encode/Decode consolation
Brean0 Apr 1, 2024
9f948ab
another cleaning pass
funderbrker Apr 2, 2024
0e8fbe7
Encode/Decode consolidation (#813)
Brean0 Apr 6, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.protocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
run: yarn install --no-immutable
- run: yarn generate
working-directory: protocol
- run: yarn test
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/ci.sdk-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ jobs:
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Install Rust (Stable)
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/ci.sdk-wells.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@ jobs:
run: yarn install --immutable
- name: Generate Typedefs
run: yarn sdk:generate
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Install Rust (Stable)
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/ci.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,15 @@ jobs:
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Install Rust (Stable)
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
# TODO: Cache Anvil RPC calls between runs to speed up tests
- name: Launch Anvil
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
run: yarn anvil4tests &
- name: Build All
run: yarn build
- run: yarn sdk:test
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: UI Tests
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
Expand All @@ -30,3 +30,5 @@ jobs:
run: yarn ui:generate
- name: Unit Tests
run: yarn ui:test
env:
VITE_ALCHEMY_API_KEY: ${{ secrets.VITE_ALCHEMY_API_KEY }}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

[![Discord][discord-badge]][discord-url]

Code Version: `2.6.0` <br>
Whitepaper Version: `2.6.0`
Code Version: `2.7.3` <br>
Whitepaper Version: `2.7.0`

## About

Expand Down
Binary file modified beanstalk.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import type { JestConfigWithTsJest } from "ts-jest";

const jestConfig: JestConfigWithTsJest = {
testSequencer: "<rootDir>/testSequencer.js",
runner: "jest-serial-runner",
projects: [
{
// @ts-ignore
preset: "ts-jest",
displayName: "sdk-wells",
rootDir: "projects/sdk-wells",

testMatch: ["<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)", "<rootDir>/test/**/?(*.)+(spec|test).[jt]s?(x)"],
moduleNameMapper: {
"@beanstalk/sdk-wells/(.*)$": "<rootDir>/src/$1",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@types/prettier": "^2",
"husky": "8.0.1",
"jest": "29.2.2",
"jest-serial-runner": "1.2.1",
"lint-staged": "13.1.0",
"prettier": "2.7.1",
"ts-jest": "29.0.3",
Expand Down Expand Up @@ -43,6 +44,8 @@
"ui:build": "yarn workspace ui build",
"ui:test": "yarn workspace ui test",
"test:browser": "yarn workspace tests test:browser",
"ex": "yarn workspace @beanstalk/examples x"
"ex": "yarn workspace @beanstalk/examples x",
"anvil": "anvil --fork-url https://eth-mainnet.g.alchemy.com/v2/5ubn94zT7v7DnB5bNW1VOnoIbX5-AG2N --chain-id 1337",
"anvil4tests": "anvil --fork-url https://eth-mainnet.g.alchemy.com/v2/Kk7ktCQL5wz4v4AG8bR2Gun8TAASQ-qi --chain-id 1337 --fork-block-number 18629000"
}
}
14 changes: 14 additions & 0 deletions projects/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { sunrise } from "./commands/sunrise.js";
import { setPrice } from "./commands/setprice.js";
import { help } from "./commands/help.js";
import { mineBlocks } from "./commands/mine.js";
import { setDeltaB } from "./commands/setDeltaB.js";
import { getDeltaB } from "./commands/getDeltaB.js";

main().catch((e) => {
console.log("FAILED:");
Expand All @@ -28,6 +30,7 @@ async function main() {
const args = commandLineArgs(commands, { partial: true });

const { sdk, chain, stop } = await setupSDK(args);
sdk.DEBUG = false;

switch (args.command) {
case "balance":
Expand All @@ -45,6 +48,17 @@ async function main() {
case "mine":
await mineBlocks(sdk, args.amount);
break;
case "setpriceabove":
case "setpriceover":
await setDeltaB(sdk, chain, "up", args.amount);
break;
case "setpricebelow":
case "setpriceunder":
await setDeltaB(sdk, chain, "down", args.amount);
break;
case "deltab":
await getDeltaB(sdk);
break;
case "help":
default:
await help();
Expand Down
7 changes: 7 additions & 0 deletions projects/cli/src/commands/getDeltaB.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { BeanstalkSDK } from "@beanstalk/sdk";
import chalk from "chalk";

export const getDeltaB = async (sdk: BeanstalkSDK) => {
const deltaB = await sdk.bean.getDeltaB();
console.log(`${chalk.bold.whiteBright("DeltaB: ")} ${chalk.greenBright(deltaB.toHuman())}`);
};
16 changes: 15 additions & 1 deletion projects/cli/src/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,22 @@ export const help = () => {
content: [
{ name: "{bold.greenBright balance}", summary: "Display balance(s). Optionally specify account or token" },
{ name: "{bold.greenBright setbalance}", summary: "Set balance(s). Optionally specify account, token, or amount" },
{ name: "{bold.greenBright setprice}", summary: "Set BEAN price by setting liquidity. Defaults to 20M BEAN and 20M 3CRV. Parameters are millions. See examples below" },
{
name: "{bold.greenBright setprice}",
summary: "Set BEAN price by setting liquidity. Defaults to 20M BEAN and 20M 3CRV. Parameters are millions. See examples below"
},
{ name: "{bold.greenBright sunrise}", summary: "Calls the sunrise() function" },
{ name: "{bold.greenBright mine}", summary: "Mines a block (or more)" },
{ name: "{bold.greenBright deltab}", summary: "Display current DeltaB" },
{
name: "{bold.greenBright setpriceover}",
summary: "Buys enough BEANs to set DeltaB over 0, and the price over 1.00. Multiplier may be applied"
},
{
name: "{bold.greenBright setpriceunder}",
summary: "Sells enough BEANs to set DeltaB under 0, and the price under 1.00. Multiplier may be applied"
},

{ name: "{bold.greenBright help}", summary: "You're looking at it :)" }
]
},
Expand Down
18 changes: 18 additions & 0 deletions projects/cli/src/commands/setDeltaB.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { BeanstalkSDK } from "@beanstalk/sdk";
import { BlockchainUtils } from "@beanstalk/sdk/dist/types/utils/TestUtils";
import chalk from "chalk";
import { table } from "table";

export const setDeltaB = async (sdk: BeanstalkSDK, chain: BlockchainUtils, direction: string, amount) => {
const multiplier = amount === "50000" ? 2 : amount;
if (direction === "down") {
await chain.setPriceUnder1(multiplier);
} else if (direction === "up") {
await chain.setPriceOver1(multiplier);
} else {
console.log(`unknown input: ${direction}. Expected "up", or "down"`);
}

const deltaB = await sdk.bean.getDeltaB();
console.log(`${chalk.bold.whiteBright("New DeltaB: ")} ${chalk.greenBright(deltaB.toHuman())}`);
};
3 changes: 2 additions & 1 deletion projects/dex-ui/.env.local.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_AQUIFER_ADDRESS=local/fork deployed address
VITE_ALCHEMY_API_KEY="your key here"
VITE_WELLS_ORIGIN_BLOCK=17138465
VITE_LOAD_HISTORY_FROM_GRAPH=0
VITE_LOAD_HISTORY_FROM_GRAPH=0
VITE_WALLET_CONNECT_PROJECT_ID="project key here"
1 change: 1 addition & 0 deletions projects/dex-ui/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
// ONLY USE THIS FILE TO TRACK WHAT ENV VARS NEED TO
// BE ADDED TO NETLIFY CONFIG
VITE_ALCHEMY_API_KEY=""
VITE_WALLET_CONNECT_PROJECT_ID=""
6 changes: 5 additions & 1 deletion projects/dex-ui/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
overwrite: true,
schema: "graphql.schema.json",
schema: [
"graphql.schema.json",
// beanstalk subgraph
"https://graph.node.bean.money/subgraphs/name/beanstalk"
],
documents: "src/**/*.graphql",
ignoreNoDocuments: true,
generates: {
Expand Down
115 changes: 115 additions & 0 deletions projects/dex-ui/src/abi/MULTI_PUMP_ABI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
[
{
"inputs": [
{ "internalType": "bytes16", "name": "_maxPercentIncrease", "type": "bytes16" },
{ "internalType": "bytes16", "name": "_maxPercentDecrease", "type": "bytes16" },
{ "internalType": "uint256", "name": "_capInterval", "type": "uint256" },
{ "internalType": "bytes16", "name": "_alpha", "type": "bytes16" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{ "inputs": [], "name": "NoTimePassed", "type": "error" },
{ "inputs": [], "name": "NotInitialized", "type": "error" },
{
"inputs": [],
"name": "ALPHA",
"outputs": [{ "internalType": "bytes16", "name": "", "type": "bytes16" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CAP_INTERVAL",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LOG_MAX_DECREASE",
"outputs": [{ "internalType": "bytes16", "name": "", "type": "bytes16" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LOG_MAX_INCREASE",
"outputs": [{ "internalType": "bytes16", "name": "", "type": "bytes16" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "well", "type": "address" }],
"name": "readCappedReserves",
"outputs": [{ "internalType": "uint256[]", "name": "cappedReserves", "type": "uint256[]" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "well", "type": "address" },
{ "internalType": "bytes", "name": "", "type": "bytes" }
],
"name": "readCumulativeReserves",
"outputs": [{ "internalType": "bytes", "name": "cumulativeReserves", "type": "bytes" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "well", "type": "address" },
{ "internalType": "bytes", "name": "", "type": "bytes" }
],
"name": "readInstantaneousReserves",
"outputs": [{ "internalType": "uint256[]", "name": "emaReserves", "type": "uint256[]" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "well", "type": "address" }],
"name": "readLastCappedReserves",
"outputs": [{ "internalType": "uint256[]", "name": "lastCappedReserves", "type": "uint256[]" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "well", "type": "address" }],
"name": "readLastCumulativeReserves",
"outputs": [{ "internalType": "bytes16[]", "name": "cumulativeReserves", "type": "bytes16[]" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "well", "type": "address" }],
"name": "readLastInstantaneousReserves",
"outputs": [{ "internalType": "uint256[]", "name": "emaReserves", "type": "uint256[]" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "well", "type": "address" },
{ "internalType": "bytes", "name": "startCumulativeReserves", "type": "bytes" },
{ "internalType": "uint256", "name": "startTimestamp", "type": "uint256" },
{ "internalType": "bytes", "name": "", "type": "bytes" }
],
"name": "readTwaReserves",
"outputs": [
{ "internalType": "uint256[]", "name": "twaReserves", "type": "uint256[]" },
{ "internalType": "bytes", "name": "cumulativeReserves", "type": "bytes" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256[]", "name": "reserves", "type": "uint256[]" },
{ "internalType": "bytes", "name": "", "type": "bytes" }
],
"name": "update",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
5 changes: 5 additions & 0 deletions projects/dex-ui/src/assets/images/home-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions projects/dex-ui/src/assets/images/start-sparkle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion projects/dex-ui/src/assets/images/tokens/WETH.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading