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

Merge wells-main to master #498

Merged
merged 324 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
324 commits
Select commit Hold shift + click to select a range
edebdf1
WIP
marshall-bean Mar 10, 2023
b6cc5cd
Restore lint-staged configuration at project level
marshall-bean Mar 10, 2023
80852c5
Rollback husky change
marshall-bean Mar 10, 2023
cb88b36
wells-sdk: remove generated artifacts
0xalecks Mar 3, 2023
93ebe0e
wells-sdk: update abi
0xalecks Mar 3, 2023
665a0c0
wells-sdk: replace auger with aquifer
0xalecks Mar 3, 2023
59ac31d
sdk-wells: remove dist files
0xalecks Mar 8, 2023
b73b10b
sdk-wells: update Wells class with new contrat changes
0xalecks Mar 8, 2023
89517d9
examples: update well examples
0xalecks Mar 8, 2023
82ac472
sdk: add Shift action
0xalecks Mar 8, 2023
33e9477
examples: shift
0xalecks Mar 8, 2023
1f5b671
align prettier versions
0xalecks Mar 13, 2023
3aa1704
examples
0xalecks Mar 15, 2023
233a9f3
dex: basic routing
0xalecks Mar 17, 2023
1941f51
dex: wagmi & sdk
0xalecks Mar 17, 2023
e4e7139
sdk: export Wells sub package
0xalecks Mar 20, 2023
942a4fb
examples: update tsconfig
0xalecks Mar 20, 2023
0509261
dex: make wells page functional
0xalecks Mar 20, 2023
e819ed8
dex: Make single well page functional
0xalecks Mar 20, 2023
d6e8f90
dex: update sdkprovider instatiation
0xalecks Mar 20, 2023
2d7274a
sdk: Make “exports” more backwards compatible
0xalecks Mar 22, 2023
e4704c1
dex-ui: fix imports
0xalecks Mar 22, 2023
451520f
dex: cleanup packages
0xalecks Mar 22, 2023
d123033
remove console logs
0xalecks Mar 22, 2023
a34a6eb
dex: use env for well addresses
0xalecks Mar 23, 2023
2899a7f
Update wells abi and add deadline param
marshall-bean Mar 23, 2023
ab0968d
Feedback applied
marshall-bean Mar 24, 2023
90e806a
Feedback applied
marshall-bean Mar 24, 2023
dd2f582
Feedback applied
marshall-bean Mar 24, 2023
dfde656
Move Wells abis to subgraph-core
cujowolf Feb 23, 2023
5d0c412
Move common utils to core, update wells imports
cujowolf Feb 23, 2023
0ea37d9
Move Beanstalk subgraph abis to subgraph-core
cujowolf Feb 23, 2023
5d235b1
formatting
cujowolf Feb 23, 2023
207f0b5
Update imports for constants and decimal to use core
cujowolf Feb 23, 2023
11bca34
Update Well abi
cujowolf Feb 28, 2023
7dd07d2
Add deadline to farm wellswap actions
marshall-bean Mar 27, 2023
9680759
Fix divide by zero bug
marshall-bean Mar 28, 2023
8c89d14
dex: add token logos
0xalecks Mar 24, 2023
2280735
dex: fonts
0xalecks Mar 24, 2023
7359a3e
dex: update frame
0xalecks Mar 24, 2023
4fc236c
dex: add token provider
0xalecks Mar 24, 2023
40df1fb
dex: token input
0xalecks Mar 28, 2023
08666a3
dex: make swap page more accessible
0xalecks Mar 28, 2023
4fed2f8
dex: cleanup
0xalecks Mar 28, 2023
e739157
dex: remove unneeded logos
0xalecks Mar 29, 2023
1fa7fcc
dex: cleanup
0xalecks Mar 30, 2023
fedad60
Add subgraph client and wells swaps query
marshall-bean Mar 30, 2023
857f408
dex: add react-query-devtools
0xalecks Mar 30, 2023
86b2049
dex: apply feedback
0xalecks Apr 3, 2023
1816bc4
sdk: fix token naming/finding bug
0xalecks Mar 31, 2023
5455e59
dex: cleanup logos
0xalecks Mar 31, 2023
9c78666
dex: data loading - tokens and balances
0xalecks Mar 31, 2023
f54f274
sdk-core: remove dist folder
0xalecks Mar 31, 2023
b6fbe9e
dex: token balances
0xalecks Apr 3, 2023
24d2780
dex: balance loading
0xalecks Apr 3, 2023
4c4c435
Add liquidity component
marshall-bean Apr 10, 2023
7736fa5
Feedback applied
marshall-bean Apr 10, 2023
b568082
Use sunrise event to trigger snapshots
cujowolf Apr 16, 2023
42bc548
Add complete well history
marshall-bean Apr 14, 2023
9151b54
Feedback applied
marshall-bean Apr 17, 2023
01c121b
Fix wells subgraph
marshall-bean Apr 18, 2023
50ef191
Remove liquidity component
marshall-bean Apr 24, 2023
c327f7b
dex: make wagmi client dev aware
0xalecks Apr 6, 2023
98be4bd
dex: slight cleanup
0xalecks Apr 6, 2023
522cef1
dex: swap implementation
0xalecks Apr 7, 2023
8676595
sdk-core: allow updating signer for tokens
0xalecks Apr 24, 2023
1c1fd06
sdk-wells: Add swapping capabilities
0xalecks Apr 24, 2023
e23e562
sdk: add Quote type from wells
0xalecks Apr 24, 2023
6266ca2
dex-ui: add swap
0xalecks Apr 24, 2023
4e803d2
examples: dex
0xalecks Apr 24, 2023
da5a142
dex fixes
0xalecks Apr 25, 2023
5f6b48f
Remove immutable from Aquifer entity
cujowolf Apr 27, 2023
1266765
Update Well and Aquifer abi, fix schema error
cujowolf Apr 27, 2023
660a16c
Feedback from earlier PR
marshall-bean Apr 26, 2023
232043d
wells-sdk: don't hardcode pipeline address
0xalecks Apr 25, 2023
6ee4aa2
sdk-wells: export aquifer
0xalecks Apr 26, 2023
082e458
sdk: reexport everytyhing from wells
0xalecks Apr 26, 2023
4b460fd
dex: load wells from graph or chain
0xalecks Apr 26, 2023
664de78
dex: small fixes
0xalecks Apr 26, 2023
bad0733
dex: use Settings object for configuration
0xalecks Apr 26, 2023
7885e69
dex: improvements
0xalecks Apr 27, 2023
c830033
dex-ui: fix dep array
0xalecks Apr 28, 2023
f06da16
dex: improvements
0xalecks Apr 27, 2023
23615e2
wells-sdk: add gas estimation
0xalecks Apr 28, 2023
0e05e18
dex: fix build
0xalecks Apr 28, 2023
976623d
dex: update history loading
0xalecks May 1, 2023
de09e16
dex: default token input to undefined
0xalecks May 1, 2023
b39e183
dex: fix signer binding
0xalecks May 1, 2023
0629f89
dex: logging and cleanup
0xalecks May 2, 2023
050ea1c
Update add liquidity to reflect design
marshall-bean May 2, 2023
5c94ee1
Feedback applied
marshall-bean May 4, 2023
695d2c6
Feedback applied
marshall-bean May 4, 2023
220c1c7
Only update USD value if Well includes BEAN
cujowolf May 2, 2023
8a34233
dex: usd price lookup
0xalecks May 2, 2023
90462a6
update yarn.lock
0xalecks May 5, 2023
6f151b9
sdk: fix merge conflict build
0xalecks May 5, 2023
05ca096
Update remove liquidity with functional design changes
marshall-bean May 9, 2023
6dec693
Feedback applied
marshall-bean May 9, 2023
59540bd
Remove manual gasLimit override
marshall-bean May 10, 2023
c5593aa
dex: apply new style
0xalecks May 9, 2023
b666650
new style wip
0xalecks May 10, 2023
79aa2f8
effects
0xalecks May 11, 2023
e1cd28f
remove pan
0xalecks May 11, 2023
fb8183a
dex: ui wip
0xalecks May 11, 2023
d2a6ea7
failed to make grid pan
0xalecks May 11, 2023
b8e79c4
good layout
0xalecks May 12, 2023
5989d33
dex: ui cleanup
0xalecks May 12, 2023
b8fee2c
dex: cleanup
0xalecks May 12, 2023
5dcb2fc
fixes
0xalecks May 12, 2023
b8c1c1e
dex: wiggle trace
0xalecks May 13, 2023
7e1047c
dex: fix bug with tracing and scrolling
0xalecks May 17, 2023
781aec4
dex: switch grid to dots, but make it dynamic
0xalecks May 17, 2023
3848c37
dex: implement UI
0xalecks May 17, 2023
a189ab5
dex: new ux for well page
0xalecks May 22, 2023
c417989
dex: quick fix
0xalecks May 22, 2023
51d72f7
dex: prepare to build for netlify
0xalecks May 24, 2023
9952658
skd-core: support new chainid
0xalecks May 24, 2023
88193b8
skd: support new chainid
0xalecks May 24, 2023
289711e
dex: add dev page
0xalecks May 24, 2023
8366c11
dex: support new chain id (anvil1)
0xalecks May 24, 2023
ca98538
dex: handle bad/missing/wrong chain connections better
0xalecks May 24, 2023
39383bc
dex: random cleanup
0xalecks May 24, 2023
d4cbeac
fix build
0xalecks May 24, 2023
771c070
dex: fix build
0xalecks May 24, 2023
1632912
dex: update settings
0xalecks May 24, 2023
c86f3a5
dex: fix build
0xalecks May 24, 2023
15d750b
dex: fix env var
0xalecks May 24, 2023
e3a5cf5
dex: update anvil url
0xalecks May 25, 2023
ada7207
Initial test setup and test cases for wells SDK
marshall-bean May 22, 2023
f4cf06d
Feedback applied
marshall-bean May 23, 2023
ab4fe3f
Add more tests
marshall-bean May 25, 2023
4c8ecb2
Add well deployment to SDK
marshall-bean May 29, 2023
e917f5e
Basic layout for Add/Remove Liquidity page
uncoolzero Jun 1, 2023
b526d3d
Build fix
uncoolzero Jun 1, 2023
15d174b
Fix for liquidity page not loading after refresh
uncoolzero Jun 1, 2023
27eb6d2
examples: cleanup loadWells
0xalecks May 31, 2023
6aefa14
dex: update well deployment
0xalecks Jun 1, 2023
dc6b585
dex: rename method
0xalecks Jun 1, 2023
85fae01
Reenabled individual approval buttons
uncoolzero Jun 2, 2023
983f046
Clicking balance display now sets input to maximum
uncoolzero Jun 2, 2023
70c998c
Expected output field symbol display fix
uncoolzero Jun 2, 2023
8567f92
Expected output field symbol display fix
uncoolzero Jun 2, 2023
76118f2
Prep for user input support in Single Token mode
uncoolzero Jun 3, 2023
eb449a2
LP Removal: Can set by output amount (WIP)
uncoolzero Jun 5, 2023
c7a88cf
Remove LP: Revert back to old style
uncoolzero Jun 5, 2023
2d66dfc
Enabled "Back to Well Details" button
uncoolzero Jun 6, 2023
4e093c4
Added display of LP tokens in wallet
uncoolzero Jun 6, 2023
c5fb165
Enabled Swap button in Well Details page
uncoolzero Jun 6, 2023
b30457a
Well Details - Enabled function name
uncoolzero Jun 6, 2023
4115078
Well Details - Reserve percentages enabled
uncoolzero Jun 6, 2023
11eb7d5
Well Details - Passing Function Name to Learn box
uncoolzero Jun 6, 2023
704b93d
Type fix
uncoolzero Jun 6, 2023
535af98
Build fixes
uncoolzero Jun 6, 2023
17a92c1
Remove LP - Stopped quote when input is zero
uncoolzero Jun 6, 2023
e801479
Quote Details now only appear when necessary
uncoolzero Jun 6, 2023
9ea2000
Add Liq - Hide approve buttons when not relevant
uncoolzero Jun 6, 2023
ab9a10d
Tab Button styling, enabled Slippage (unstyled)
uncoolzero Jun 6, 2023
73b5d02
Tab Button styling tweak
uncoolzero Jun 6, 2023
7760d75
Slippage component styled
uncoolzero Jun 8, 2023
6e2024c
Well - Fix divide by zero
uncoolzero Jun 8, 2023
cb311f1
Slippage panel no longer a modal, scrolling ok
uncoolzero Jun 8, 2023
84803a0
formatting
uncoolzero Jun 8, 2023
a0e9482
Slippage input field border turns green on focus
uncoolzero Jun 8, 2023
d46b622
dex: toast wip
0xalecks Jun 8, 2023
b7f8a16
dex: toast cleanup
0xalecks Jun 8, 2023
a400803
dex: fix tokeninput not accepting 0.0 starts
0xalecks Jun 8, 2023
c7f2645
fix spacing
0xalecks Jun 8, 2023
6c6191e
Added tx toasts to add liq/remove liq/approval
uncoolzero Jun 8, 2023
8a56363
Clickable expand box header, reduced chevron size
uncoolzero Jun 8, 2023
4a4665f
Expand Box - fixed bottom border
uncoolzero Jun 8, 2023
7da0172
Add/Remove Liq - Function name display enabled
uncoolzero Jun 8, 2023
8930e27
Expand Box chevron rotates on open
uncoolzero Jun 8, 2023
0fe3c78
Rem Liq: layout, spacing, font adjustments
uncoolzero Jun 9, 2023
f618054
Add Liq - Balanced proportion mode
uncoolzero Jun 11, 2023
64e045c
Add Liq - adjusted gaps, fixed decimals issue
uncoolzero Jun 11, 2023
c405bc5
Quote Details - Add USD Value estimation
uncoolzero Jun 12, 2023
79a658f
Learn Boxes filled
uncoolzero Jun 12, 2023
2e529c7
Slippage icon tweaks
uncoolzero Jun 12, 2023
8f969d3
Code styling
uncoolzero Jun 12, 2023
865dee0
Quote Details - Price Impact enabled
uncoolzero Jun 12, 2023
7d3649c
dex: fix tokeninput edge cases
0xalecks Jun 9, 2023
7ba7253
remove leading zero fix
0xalecks Jun 9, 2023
81a4b15
Camelcased icon properties
uncoolzero Jun 13, 2023
5e79ffa
Review - AddLiquidity changes
uncoolzero Jun 13, 2023
c8f7965
Review - QuoteDetails changes
uncoolzero Jun 13, 2023
90d0676
Review - RemoveLiquidity changes
uncoolzero Jun 13, 2023
bb44253
Review - SwapRoot changes
uncoolzero Jun 13, 2023
b5f7892
Review - TokenInput changes
uncoolzero Jun 13, 2023
a602562
Review - Well changes
uncoolzero Jun 13, 2023
fceeeda
Remove Liq: Reset LP Token Input field
uncoolzero Jun 13, 2023
9358eb6
Cleanup
uncoolzero Jun 13, 2023
5bb7190
Minor fixes
uncoolzero Jun 13, 2023
b20814a
dex: debounce TokenInput
0xalecks Jun 13, 2023
ed31fa5
sdk-wells: addLiquidity - validate at least one amount is nonzero
0xalecks Jun 14, 2023
4bd1a8b
Fixed reserves not updating after add/remove liq
uncoolzero Jun 14, 2023
5811fca
Now refetching reserves only after successful tx
uncoolzero Jun 14, 2023
cda0b85
Design Tweaks 1
uncoolzero Jun 13, 2023
fc7b3de
0.5px outlines
uncoolzero Jun 14, 2023
f47d1c9
Added focus outline to Swap Buttons
uncoolzero Jun 14, 2023
3113b3d
Added stroke to arrow button on hover
uncoolzero Jun 15, 2023
8f5d9a1
Now displaying real data
uncoolzero Jun 18, 2023
e94efe7
Build fix
uncoolzero Jun 18, 2023
3f42974
5 column style
uncoolzero Jun 19, 2023
c4669f0
Tab Buttons
uncoolzero Jun 19, 2023
99d3449
LP Positions tab now works
uncoolzero Jun 19, 2023
ec46c02
Added message when user has no LP positions
uncoolzero Jun 19, 2023
3a6b01d
Formatting
uncoolzero Jun 19, 2023
97cae8b
Custom radio-style checkbox design
uncoolzero Jun 15, 2023
8898dc8
Cleanup
uncoolzero Jun 15, 2023
41da9ac
Green tab buttons on hover
uncoolzero Jun 15, 2023
a341a13
Quote Details component is now an accordion
uncoolzero Jun 15, 2023
db620b2
Pointer update
uncoolzero Jun 15, 2023
0dca175
Added tooltip
uncoolzero Jun 16, 2023
e9562af
Slippage Panel is now a modal
uncoolzero Jun 16, 2023
6b6986e
Navbar/Liquidity page spacing changes
uncoolzero Jun 17, 2023
cb54929
Fixed widths to Logo and Wallet Connect button
uncoolzero Jun 17, 2023
44ded9c
Styled Connect button, navbar tweaks
uncoolzero Jun 17, 2023
45ae959
Liquidity: Adjusted width of left column
uncoolzero Jun 17, 2023
21c2c5d
NavBar buttons now green on hover
uncoolzero Jun 17, 2023
d90673e
Custom cursor when hovering navbar buttons
uncoolzero Jun 17, 2023
c5e5392
Added stroke to slippage modal
uncoolzero Jun 17, 2023
867fa09
Border size adjustment
uncoolzero Jun 17, 2023
8bb7a01
Remove Liq - Custom radio-style checkboxes
uncoolzero Jun 17, 2023
7be5add
Styled ConnectKit modal
uncoolzero Jun 17, 2023
d35a5e6
Cleanup
uncoolzero Jun 17, 2023
389dbd1
Formatting changes, font sizing tweaks
uncoolzero Jun 19, 2023
5beddc4
Type fixes, cursor change
uncoolzero Jun 20, 2023
7aa4616
update prod settings
0xalecks Jun 20, 2023
fbbda78
dex: update home page
0xalecks Jun 21, 2023
af453f9
eslint
0xalecks Jun 21, 2023
8fd0c8e
sdk-core: add short formatting to TokenValue.toHuman(“short”)
0xalecks Jun 19, 2023
0bb634a
dex: update use of toHuman()
0xalecks Jun 19, 2023
4755761
rebase
0xalecks Jun 19, 2023
10a8ae5
add github workflow to test sdk-core
0xalecks Jun 19, 2023
272bf92
remove numeral lib
0xalecks Jun 19, 2023
3c36203
sdk-core: fix bug
0xalecks Jun 19, 2023
43d45b1
Now using new toHuman formatting scheme
uncoolzero Jun 21, 2023
ed5c887
update yarn.lock
0xalecks Jun 21, 2023
f37e9db
dex landing page docs
hellofromguy Jun 22, 2023
81d7abf
add audit reports
hellofromguy Jun 22, 2023
753385b
dex: home page fixes
0xalecks Jun 22, 2023
f4c531c
Dex - home page fixes (#503)
0xalecks Jun 22, 2023
f94c492
prep for merge
0xalecks Jun 26, 2023
3d2615b
prep for merge (#510)
0xalecks Jun 26, 2023
52806e8
Merge branch 'master' into wells-main
0xalecks Jun 26, 2023
ed149f7
fix dex-ui workflow
0xalecks Jun 26, 2023
2dbfd5c
cleanup: remove original wells components
silochad Jun 26, 2023
a6e99de
ui: fix build script
0xalecks Jun 26, 2023
2ae285e
update github workflow names
0xalecks Jun 26, 2023
1c9267f
Merge branch 'master' into wells-main
0xalecks Jun 28, 2023
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
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .github/workflows/ci.dex-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: DEX-UI

on:
pull_request:
types: [opened, synchronize]
paths:
- "projects/dex-ui/**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node Install
uses: actions/setup-node@v3
with:
node-version: "16"
- 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 Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Build SDKs
run: yarn build
- name: Confirm DEX-UI Build
run: yarn workspace dex-ui build
8 changes: 4 additions & 4 deletions .github/workflows/ci.protocol.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Continuous Integration - Protocol
name: Protocol

on:
pull_request:
types: [opened, synchronize]
paths:
- 'protocol/**'
- "protocol/**"

jobs:
test:
Expand All @@ -14,12 +14,12 @@ jobs:
- name: Protocol Tests
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/ci.sdk-core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: SDK Core

on:
pull_request:
types: [opened, synchronize]
paths:
- 'projects/sdk-core/**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SDK Core Tests
uses: actions/setup-node@v3
with:
node-version: '16'
- 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 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 Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Launch Anvil
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
- name: Build All
run: yarn build
- name: Test SDK Core
run: yarn sdk-core:test
48 changes: 48 additions & 0 deletions .github/workflows/ci.sdk-wells.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Wells SDK

on:
pull_request:
types: [opened, synchronize]
paths:
- "projects/sdk-wells/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SDK Wells Tests
uses: actions/setup-node@v3
with:
node-version: "16"
- 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 Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
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 Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Launch Anvil
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
- name: Build All
run: yarn build
- name: Run Tests
run: yarn sdk-wells:test
working-directory: projects/sdk-wells
12 changes: 6 additions & 6 deletions .github/workflows/ci.sdk.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Continuous Integration - SDK
name: SDK

on:
pull_request:
types: [opened, synchronize]
paths:
- 'projects/sdk/**'
- "projects/sdk/**"

jobs:
test:
Expand All @@ -14,18 +14,16 @@ jobs:
- name: SDK Tests
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Generate Typedefs
run: yarn sdk:generate
- name: Install rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -42,5 +40,7 @@ jobs:
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
- name: Build All
run: yarn build
- run: yarn sdk:test
working-directory: projects/sdk
66 changes: 33 additions & 33 deletions .github/workflows/ci.subgraph-bean.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Continuous Integration - Subgraph Bean
name: Subgraph Bean

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

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: '16'
- 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
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- 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

# 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-bean
- 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!"
# 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-bean
- 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-bean
- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-bean
# TODO: add matchstick test suite
#- name: Run Tests
# run: yarn test
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/ci.subgraph-beanstalk.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Continuous Integration - Subgraph Beanstalk
name: Subgraph Beanstalk

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

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: '16'
- 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
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- 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

# 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-beanstalk
- 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!"
# 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-beanstalk
- 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-beanstalk
- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-beanstalk
# TODO: add matchstick test suite
#- name: Run Tests
# run: yarn test
Expand Down
Loading
Loading