Skip to content

DO NOT MERGE #12

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

Open
wants to merge 169 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
515da1c
Create flake.nix
rouzwelt Apr 26, 2024
1405416
update
rouzwelt Apr 26, 2024
5d08ee2
init
rouzwelt Apr 26, 2024
f94330e
init
rouzwelt Apr 26, 2024
01cfaec
add rain ci workflow
rouzwelt Apr 27, 2024
419758c
lint
rouzwelt Apr 27, 2024
ec77bde
update
rouzwelt Apr 27, 2024
144d5ff
Merge branch '2024-04-26-update-viem-config-and-token' into 2024-04-2…
rouzwelt Apr 27, 2024
ef32759
update
rouzwelt Apr 27, 2024
21ad980
add rain ci
rouzwelt Apr 27, 2024
84c211b
Update rain-ci.yml
rouzwelt Apr 27, 2024
29a884e
add flare network bases
rouzwelt Apr 27, 2024
b73fe9e
Update rain-ci.yml
rouzwelt Apr 27, 2024
1f611b3
Update additional-bases.ts
rouzwelt Apr 27, 2024
a5beb3f
Update rain-ci.yml
rouzwelt Apr 27, 2024
1a9fb9f
Merge branch '2024-04-26-update-viem-config-and-token' into 2024-04-2…
rouzwelt Apr 27, 2024
22b9dad
init
rouzwelt Apr 27, 2024
331aa98
lint
rouzwelt Apr 27, 2024
7b38c83
Update data-fetcher.ts
rouzwelt Apr 27, 2024
ca5ba86
add new dexes
rouzwelt Apr 27, 2024
c047942
Delete BaseSwap.ts
rouzwelt Apr 27, 2024
7799dc4
Create BaseSwap.ts
rouzwelt Apr 27, 2024
3727ed0
Update Enosys.ts
rouzwelt Apr 27, 2024
59091e8
Update Enosys.ts
rouzwelt Apr 27, 2024
8cbd62b
Update Enosys.ts
rouzwelt Apr 27, 2024
e336779
update
rouzwelt Apr 27, 2024
af8a393
Update BlazeSwap.ts
rouzwelt Apr 27, 2024
c15beab
init
rouzwelt May 4, 2024
c958637
Update package.json
rouzwelt May 4, 2024
a167045
Merge branch '2024-05-04-flake' into 2024-04-26-memoizer
rouzwelt May 4, 2024
41e1086
Update pnpm-lock.yaml
rouzwelt May 4, 2024
49e25a6
update
rouzwelt May 4, 2024
a4594b0
update
rouzwelt May 4, 2024
0ef79d9
Update pnpm-lock.yaml
rouzwelt May 4, 2024
f385170
init
rouzwelt May 4, 2024
1f3530d
Update report
rouzwelt May 5, 2024
02894af
Merge pull request #7 from rainlanguage/2024-05-04-flake
thedavidmeister May 6, 2024
5858c6a
Merge pull request #8 from rainlanguage/2024-04-26-memoizer
thedavidmeister May 6, 2024
95316ac
Merge pull request #9 from rainlanguage/2024-05-04-memoizer
thedavidmeister May 6, 2024
6c79a92
Merge pull request #10 from rainlanguage/2024-04-27-data-fetcher-options
thedavidmeister May 6, 2024
52ec05f
Update DataFetcher.test.ts
rouzwelt May 6, 2024
93934a9
Update DataFetcher.test.ts
rouzwelt May 6, 2024
17dd4e2
Merge branch 'rain-fork' into 2024-04-27-new-dexes
rouzwelt May 6, 2024
a6b0213
update
rouzwelt May 6, 2024
6ded411
update
rouzwelt May 6, 2024
2092e08
Update rain-ci.yml
rouzwelt May 6, 2024
79ac39b
add timeout option for datafetcher
rouzwelt May 6, 2024
ba27aa1
Update DataFetcher.test.ts
rouzwelt May 6, 2024
93d0d59
lint
rouzwelt May 6, 2024
726ba20
Update DataFetcher.test.ts
rouzwelt May 6, 2024
bf361a5
Merge pull request #11 from rainlanguage/2024-04-27-new-dexes
thedavidmeister May 6, 2024
a4b00fa
init
rouzwelt Jun 11, 2024
0eb17a1
fix dex tests
rouzwelt Jun 18, 2024
9f192f1
lint
rouzwelt Jun 18, 2024
6deb44d
Update DataFetcher.test.ts
rouzwelt Jun 18, 2024
d0276c5
Update DataFetcher.test.ts
rouzwelt Jun 18, 2024
600d0ec
Update DataFetcher.test.ts
rouzwelt Jun 18, 2024
062473c
update
rouzwelt Jun 18, 2024
d5d4fdd
Update DataFetcher.test.ts
rouzwelt Jun 18, 2024
18b7405
update
rouzwelt Jun 18, 2024
bcf95c3
update
rouzwelt Jun 19, 2024
0571dda
update elk
rouzwelt Jun 19, 2024
ef08a7a
Update DataFetcher.test.ts
rouzwelt Jun 19, 2024
1ddb7a8
Update DataFetcher.test.ts
rouzwelt Jun 19, 2024
1d09621
update
rouzwelt Jun 19, 2024
b73a034
Update DataFetcher.test.ts
rouzwelt Jun 19, 2024
246188e
update
rouzwelt Jun 19, 2024
a1a7d4b
Update DataFetcher.test.ts
rouzwelt Jun 19, 2024
00101a0
Update sushiswap-v2.ts
rouzwelt Jun 19, 2024
60fb2bf
Merge pull request #15 from rainlanguage/2024-06-10-update-pancake-v3…
hardyjosh Jun 20, 2024
8173971
init
rouzwelt Jun 24, 2024
5226a4f
Update route-processor.ts
rouzwelt Jun 24, 2024
57ebbb6
Merge pull request #17 from rainlanguage/2024-06-24-rp4-flare
hardyjosh Jun 24, 2024
1718798
init
rouzwelt Jun 26, 2024
e0a979e
Update PancakeSwapV3.ts
rouzwelt Jun 26, 2024
065bde9
Update DataFetcher.test.ts
rouzwelt Jun 26, 2024
8562469
Update DataFetcher.test.ts
rouzwelt Jun 26, 2024
5dc4df2
explicitly checks univ3 dexes fess/ticks
rouzwelt Jun 26, 2024
1836604
fix bad dexes fees/ticks
rouzwelt Jun 26, 2024
6bad66f
fix
rouzwelt Jun 26, 2024
e1471c0
Update viem.ts
rouzwelt Jun 26, 2024
06ab3cb
standalone CI test for each chain
rouzwelt Jun 26, 2024
9496f12
update
rouzwelt Jun 26, 2024
a9de0f7
Merge pull request #18 from rainlanguage/2024-06-26-overridable-univ3…
hardyjosh Jun 29, 2024
469e7b9
init
rouzwelt Jul 4, 2024
f004a67
Merge pull request #19 from rainlanguage/2024-07-04-algebra-v1-support
hardyjosh Jul 9, 2024
1ff5c51
bump solc version
Siddharth2207 Jul 19, 2024
271f000
bump solc version
Siddharth2207 Jul 19, 2024
4cd10fb
bump solc
Siddharth2207 Jul 20, 2024
6be29aa
Merge pull request #20 from rainlanguage/2024-07-19-bump-solc
Siddharth2207 Jul 21, 2024
a4f6a60
init
rouzwelt Jul 29, 2024
6505694
add lynex v2
rouzwelt Jul 29, 2024
1a4d5e6
Merge pull request #21 from rainlanguage/2024-07-29-lynex-v1
rouzwelt Jul 30, 2024
6b29dd4
Update UniswapV2Base.ts
rouzwelt Jul 31, 2024
ea3ce9c
init
rouzwelt Aug 9, 2024
4fdfb7b
fix
rouzwelt Aug 9, 2024
459c2a5
update
rouzwelt Aug 9, 2024
d825c01
update
rouzwelt Aug 9, 2024
4260d60
fix flare USDC address
rouzwelt Aug 9, 2024
e2e3a07
Update config.yml
rouzwelt Aug 9, 2024
ee439dc
Merge pull request #22 from rainlanguage/2024-08-09-spark-dex-support
hardyjosh Aug 10, 2024
a2abb53
init
rouzwelt Sep 3, 2024
3bfc10f
Merge pull request #23 from rainlanguage/2024-09-03-matchain-and-mswa…
hardyjosh Sep 3, 2024
34fbe7d
Update route-processor.ts
rouzwelt Sep 3, 2024
a674d07
init
rouzwelt Oct 19, 2024
0b6e445
Merge pull request #24 from rainlanguage/2024-10-19-sparkdex-v3-1
thedavidmeister Oct 19, 2024
97c0a77
init
rouzwelt Oct 27, 2024
08199e9
Update AlgebraV1Base.ts
rouzwelt Oct 28, 2024
9a33cec
Update AlgebraV1Base.ts
rouzwelt Oct 28, 2024
72289f4
Update AlgebraV1Base.ts
rouzwelt Oct 28, 2024
2a11a38
update tick map for algebra
rouzwelt Oct 29, 2024
0f62029
Update AlgebraV1Base.ts
rouzwelt Oct 29, 2024
68913ae
update
rouzwelt Nov 1, 2024
ecab9c6
Merge pull request #26 from rainlanguage/2024-10-27-update-viem
rouzwelt Nov 1, 2024
b572c7b
init
rouzwelt Nov 22, 2024
ad2600a
Merge pull request #27 from rainlanguage/2024-11-22-gravity-finance
thedavidmeister Nov 23, 2024
99a5600
init
rouzwelt Jan 10, 2025
9e24f39
update
rouzwelt Jan 10, 2025
845d902
Update UniswapV3Base.ts
rouzwelt Jan 10, 2025
a3860bc
Update UniswapV3Base.ts
rouzwelt Jan 11, 2025
fd9ec10
update [skip ci]
rouzwelt Jan 11, 2025
19438da
Merge branch 'rain-fork' into 2024-01-02
rouzwelt Jan 11, 2025
a8bc840
init
rouzwelt Jan 14, 2025
ff98e6e
lint
rouzwelt Jan 15, 2025
6307b58
fix
rouzwelt Jan 15, 2025
439659b
Update data-fetcher.ts
rouzwelt Jan 15, 2025
86b27a2
Update rain-data-fetcher.ts
rouzwelt Jan 15, 2025
69d1c6a
update
rouzwelt Jan 15, 2025
eb4e23f
update flare token base
rouzwelt Jan 30, 2025
9792524
update flare token base
rouzwelt Jan 30, 2025
0bb3e14
init
rouzwelt Feb 1, 2025
12f5e62
fix algebra v2 dexes
rouzwelt Feb 1, 2025
3b1fa28
Update DataFetcher.test.ts
rouzwelt Feb 1, 2025
51bd633
Update DataFetcher.test.ts
rouzwelt Feb 1, 2025
be72205
init
rouzwelt Feb 7, 2025
ca5d6c2
Update VelodromeSlipstreamBase.ts
rouzwelt Feb 7, 2025
fdddbc1
Merge pull request #34 from rainlanguage/2025-02-01-new-dexes
hardyjosh Feb 20, 2025
2514e9f
Update DataFetcher.test.ts
rouzwelt Feb 25, 2025
645fc3e
fix
rouzwelt Feb 25, 2025
d5e1ecf
lint
rouzwelt Feb 25, 2025
6eb6b1c
Update viem.ts
rouzwelt Feb 25, 2025
084ddf1
Update viem.ts
rouzwelt Feb 25, 2025
97b2183
Update rain-data-fetcher.ts
rouzwelt Mar 1, 2025
4fb5878
Merge pull request #35 from rainlanguage/2025-01-07-velodrome-slipstream
hardyjosh Mar 20, 2025
ddca91d
init
rouzwelt Mar 23, 2025
f03fb29
update rpcs
rouzwelt Mar 26, 2025
5a248a3
Merge pull request #36 from rainlanguage/2025-03-23-rm-memoize-fully …
rouzwelt Mar 26, 2025
ca170ab
init
rouzwelt Apr 6, 2025
85cda28
fix tests
rouzwelt Apr 6, 2025
88f2442
Update rain-release.yml
rouzwelt Apr 6, 2025
68125e8
Merge branch 'rain-fork' into 2025-01-14-indexer-extension
rouzwelt Apr 6, 2025
fdcb207
update
rouzwelt Apr 8, 2025
12811c2
update
rouzwelt Apr 8, 2025
8ad1c3c
Update viem.ts [skip ci]
rouzwelt Apr 8, 2025
114b61b
update
rouzwelt Apr 8, 2025
1bb757a
Merge branch 'rain-fork' into 2025-01-14-indexer-extension
rouzwelt Apr 8, 2025
d9fd593
Update UniswapV2Base.ts
rouzwelt Apr 9, 2025
fe5875e
minor touch
rouzwelt Apr 9, 2025
c2abb07
update
rouzwelt Apr 9, 2025
39608aa
update
rouzwelt Apr 9, 2025
6f7e289
typo and docs
rouzwelt Apr 9, 2025
d49bfe2
typo
rouzwelt Apr 9, 2025
23b9065
typo
rouzwelt Apr 10, 2025
09fc437
typo
rouzwelt Apr 10, 2025
832e119
Merge pull request #32 from rainlanguage/2025-01-14-indexer-extension
hardyjosh Apr 26, 2025
1423b1c
Merge branch 'rain-fork' into 2025-04-06-esm-cjs-build
hardyjosh Apr 26, 2025
c85dc8c
Merge pull request #39 from rainlanguage/2025-04-06-esm-cjs-build
rouzwelt Apr 26, 2025
05922fe
Update RainDataFetcher.ts
rouzwelt May 5, 2025
2ad5d30
Update RainDataFetcher.ts
rouzwelt May 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask Question
url: https://github.com/sushiswap/sushiswap/discussions/new?category=q-a
about: Ask questions and discuss with other community members
- name: Request Feature
url: https://github.com/sushiswap/sushiswap/discussions/new?category=ideas
about: Requests features or brainstorm ideas for new functionality
# blank_issues_enabled: false
# contact_links:
# - name: Ask Question
# url: https://github.com/sushiswap/sushiswap/discussions/new?category=q-a
# about: Ask questions and discuss with other community members
# - name: Request Feature
# url: https://github.com/sushiswap/sushiswap/discussions/new?category=ideas
# about: Requests features or brainstorm ideas for new functionality
24 changes: 12 additions & 12 deletions .github/workflows/apps-evm-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Sushi - apps / evm

on:
pull_request:
types: [opened, synchronize]
paths:
- ".github/workflows/apps-evm-e2e.yml"
- "apps/evm/**"
- "config/nextjs/**"
- "config/router/**"
- "config/tailwindcss/**"
- "config/typescript/**"
- "config/viem/**"
- "config/wagmi/**"
- "packages/**"
# pull_request:
# types: [opened, synchronize]
# paths:
# - ".github/workflows/apps-evm-e2e.yml"
# - "apps/evm/**"
# - "config/nextjs/**"
# - "config/router/**"
# - "config/tailwindcss/**"
# - "config/typescript/**"
# - "config/viem/**"
# - "config/wagmi/**"
# - "packages/**"
workflow_dispatch:

env:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: 'Chromatic'

on:
pull_request:
types: [opened, synchronize]
paths:
- ".github/workflows/chromatic.yml"
- "config/tailwindcss/**"
- "packages/ui/**"
# pull_request:
# types: [opened, synchronize]
# paths:
# - ".github/workflows/chromatic.yml"
# - "config/tailwindcss/**"
# - "packages/ui/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
85 changes: 85 additions & 0 deletions .github/workflows/rain-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Rain CI
on: [push]

concurrency:
group: ${{ github.ref }}-rainix
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
router-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Install deps
run: nix develop -c pnpm install --frozen-lockfile

- name: Build ./packages/sushi
run: nix develop -c pnpm exec turbo run build --filter=./packages/sushi

- name: Lint
run: nix develop -c pnpm lint

- name: Check ./packages/sushi Types
run: nix develop -c pnpm exec turbo run check --filter=./packages/sushi

- name: Test ./packages/sushi
run: nix develop -c pnpm exec turbo run test --filter=./packages/sushi

datafetcher-test:
strategy:
fail-fast: false
# chains to run datafetcher on (all supported chains)
matrix:
chain: [
ETHEREUM,
POLYGON,
FANTOM,
GNOSIS,
BSC,
ARBITRUM,
ARBITRUM_NOVA,
AVALANCHE,
HARMONY,
OKEX,
CELO,
MOONRIVER,
FUSE,
TELOS,
MOONBEAM,
OPTIMISM,
KAVA,
METIS,
BOBA,
BOBA_BNB,
BTTC,
POLYGON_ZKEVM,
THUNDERCORE,
FILECOIN,
HAQQ,
CORE,
LINEA,
BASE,
SCROLL,
ZETACHAIN,
CRONOS,
BLAST,
FLARE,
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Install deps
run: nix develop -c pnpm install --frozen-lockfile

- name: Test DataFecther
run: nix develop -c pnpm exec turbo run test --filter=./protocols/route-processor
env:
CHAIN: ${{ matrix.chain }}
57 changes: 57 additions & 0 deletions .github/workflows/rain-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# creates a github release with packed tarball (.tgz) for sushi pkg
name: Create GitHub Release
on: ["workflow_dispatch"]

jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.PUBLISH_PRIVATE_KEY }}

- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main

- run: nix develop -c pnpm install --frozen-lockfile
- run: nix develop -c pnpm exec turbo run build --filter=./packages/sushi

- name: Git Config
run: |
git config --global user.email "${{ secrets.CI_GIT_EMAIL }}"
git config --global user.name "${{ secrets.CI_GIT_USER }}"

# create tag
- name: Create Tag
run: git tag sushi-${{ github.sha }}

# Push the tag to remote
- name: Push Changes To Remote
run: git push origin sushi-${{ github.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create sushi npm package tarball
- name: Create sushi NPM Package Tarball
run: echo "NPM_PACKAGE=$(nix develop -c pnpm pack)" >> $GITHUB_ENV
working-directory: packages/sushi

- name: Rename sushi NPM Package Tarball
run: mv ${{ env.NPM_PACKAGE }} ../../sushi-${{ github.sha }}.tgz
working-directory: packages/sushi

# Create a gitHub release with tarball
- name: Create GitHub Release with sushi pkg
id: gh_release
uses: softprops/action-gh-release@v2
with:
tag_name: sushi-${{ github.sha }}
name: Sushi NPM Package Release ${{ github.sha }}
files: sushi-${{ github.sha }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ name: Sushi - verify
# workflow_call:
# workflow_dispatch:
on:
pull_request:
types: [opened, synchronize]
# pull_request:
# types: [opened, synchronize]
workflow_dispatch:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ exports

# cache
cache
mem-cache
test-cache

# generated
generated
Expand Down
4 changes: 2 additions & 2 deletions apis/extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"dotenv": "16.3.1",
"express": "4.18.2",
"sushi": "workspace:*",
"viem": "2.8.14",
"viem": "2.21.35",
"wagmi": "2.5.20",
"zod": "3.21.4"
"zod": "3.22.0"
},
"devDependencies": {
"@tsconfig/esm": "1.0.4",
Expand Down
4 changes: 2 additions & 2 deletions apis/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"dotenv": "16.3.1",
"express": "4.18.2",
"sushi": "workspace:*",
"viem": "2.8.14",
"viem": "2.21.35",
"wagmi": "2.5.20",
"zod": "3.21.4"
"zod": "3.22.0"
},
"devDependencies": {
"@tsconfig/esm": "1.0.4",
Expand Down
4 changes: 2 additions & 2 deletions apis/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"drizzle-orm": "^0.29.5",
"postgres": "^3.4.3",
"sushi": "workspace:*",
"viem": "2.8.14",
"zod": "3.21.4"
"viem": "2.21.35",
"zod": "3.22.0"
},
"devDependencies": {
"@sushiswap/jest-config": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
"sushi": "workspace:*",
"swr": "2.1.5",
"tiny-invariant": "1.3.1",
"viem": "2.8.14",
"viem": "2.21.35",
"wagmi": "2.5.20",
"zod": "3.21.4"
"zod": "3.22.0"
},
"devDependencies": {
"@0xsquid/squid-types": "^0.1.59",
Expand Down
Loading
Loading