Skip to content

Commit

Permalink
Filecoin, Multichain API, Ethers v6 (#1250)
Browse files Browse the repository at this point in the history
* feat: add chain picker

* refactor: fix wrong explore URL when changing networks

* wip

* refactor: add a delay to FlyOut

* refactor: wip

* refactor: integrate multi-chain API

* fix: issue causing newly claimed project not appearing in projects after claiming flow completes

* test: fix broken unit tests

* refactor: update ethers to v6

* refactor: remove RepoDriverClient and use the new AbiType repoDriverRead func

* refactor: remove NFTDriverClient and use the new AbiType nftDriverRead and nftDriverWrite funcs

* refactor: replace SDK getAllowance calls with local function

* refactor: replace SDK AddressDriver with local function

* refactor: remove DripsClient and use the new AbiType dripsRead funcs

* refactor: replace SDK ERC20TxFactory with local functions

* refactor: replace SDK DripsTxFactory with local functions

* refactor: cleanup new contract client funcs

* refactor: create generic ERC20 Tx builder

* refactor: replace SDK RepoDriverTxFactory with local functions

* refactor: replace SDK NftDriverTxFactory with local functions

* refactor: replace SDK AddressDriverTxFactory with local functions

* refactor: replace SDK CallerTxFactory with local functions

* refactor: replace SDK Caller presets with local functions

* fix: wrong own account ID calculation when initializing store

* fix: missing assert import

* fix: wrong contract address when creating caller client

* refactor: remove erc20 utils and use the typed client

Also fix drip list creation flow errors

* fix: errors when creating streams and managing funds

* fix: check errors

* explictly define @rollup/rollup-linux-x64-gnu as optional dep

* fix: construct new response instance in GQL API proxy endpoint

* initial setup

* wip

* feat: auto unwrap on collect

* Unsupported network handling (#1200)

* refactor: allow disconnecting wallet instead of switching

* refactor: add button for adding unsupported network

* refactor: avoid page duplicates serving identical content for alternative chains (#1199)

* remove display of native token name in collect modal

* fix gql build error

* fix: Filecoin block explorer URL creation (#1210)

* fix: Filecoin block explorer URL creation

* refactor: revert naming

* fix lockfile

* fix lockfile again

* Add network config value for hiding network picker per network (#1229)

* add `displayNetworkPicker` to network config, refactor as one config var

* hide network pickers if disabled in network config

* animate network picker chevron

* disable gas buffers on filecoin

* move contract addresses to network config, update filecoin deployment addresses (#1230)

* update filecoin deployment addresses

* fix: #1231, add block explorer config to network config (#1234)

* allow customizing settlement info per network (#1237)

* finalize network picker (#1236)

* fix: #1232 (#1235)

* fix: #1239

* fix checks

* scope cache keys by network

* fix tlv

* fix: #1248

* invalidate account IDs as strings

* update gh workflows

* fix unable to add custom token

---------

Co-authored-by: Ioannis Tourkogiorgis <[email protected]>
Co-authored-by: Ioannis <[email protected]>
  • Loading branch information
3 people authored Oct 10, 2024
1 parent 43c0925 commit c045d0b
Show file tree
Hide file tree
Showing 205 changed files with 7,403 additions and 3,885 deletions.
3 changes: 3 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ PUBLIC_BASE_URL=string
# URL of the Drips Multiplayer API deployment to use. Set to the defaults below to use public Sepolia deployment.
MULTIPLAYER_API_URL=string # Default for sepolia https://multiplayer-sepolia.up.railway.app
MULTIPLAYER_API_ACCESS_TOKEN=string # Default for sepolia 992b2122-9a09-4a97-b2cc-2292d3dd23aa

# Optional, defaults to `false`. Setting this to `true` will redirect any requests from `/` to `/app` and any '/legal/**/*' requests to 'drips.network/legal/**/*'.
PUBLIC_ALTERNATIVE_CHAIN_MODE=boolean
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
envkey_GELATO_API_KEY: 1234
envkey_COINMARKETCAP_API_KEY: 1234
envkey_PUBLIC_NETWORK: 5
envkey_GQL_URL: https://drips-api-mainnet-s2.up.railway.app/
envkey_GQL_ACCESS_TOKEN: afdb8b7e-8fa7-4de9-bd95-b650b839e745 # public token
envkey_GQL_URL: https://drips-multichain-api.up.railway.app/
envkey_GQL_ACCESS_TOKEN: 7f82c43a-e7f4-47e9-a623-db7066f8bea2 # public token
envkey_PUBLIC_PINATA_GATEWAY_URL: http://localhost:3000
envkey_INFURA_KEY: 1234
envkey_MULTIPLAYER_API_ACCESS_TOKEN: 1234
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
uses: SpicyPizza/[email protected]
with:
envkey_PUBLIC_NETWORK: 1
envkey_GQL_URL: https://drips-api-mainnet-s2.up.railway.app/
envkey_GQL_ACCESS_TOKEN: afdb8b7e-8fa7-4de9-bd95-b650b839e745 # public token
envkey_GQL_URL: https://drips-multichain-api.up.railway.app/
envkey_GQL_ACCESS_TOKEN: 7f82c43a-e7f4-47e9-a623-db7066f8bea2 # public token
envkey_PUBLIC_PINATA_GATEWAY_URL: http://localhost:3000
envkey_INFURA_KEY: 1234
envkey_MULTIPLAYER_API_ACCESS_TOKEN: 1234
Expand Down
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged --concurrent false
3 changes: 3 additions & 0 deletions codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const config: CodegenConfig = {
},
],
generates: {
'./src/lib/graphql/__generated__/schema.graphql': {
plugins: ['schema-ast'],
},
'./src/lib/graphql/__generated__/base-types.ts': {
plugins: ['typescript'],
},
Expand Down
3 changes: 3 additions & 0 deletions graphql.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema: 'src/lib/graphql/__generated__/schema.graphql'
documents: 'src/**/*.{graphql,js,ts,svelte}'
ignoreNoDocuments: true
Loading

0 comments on commit c045d0b

Please sign in to comment.