File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 11import { StrictMode } from 'react'
22
33import 'inter-ui'
4+ import { getRpcProvider } from '@cowprotocol/common-const'
5+ import { setGlobalAdapter , SupportedChainId } from '@cowprotocol/cow-sdk'
6+ import { EthersV5Adapter } from '@cowprotocol/sdk-ethers-v5-adapter'
7+
48import { createRoot } from 'react-dom/client'
59
610import { SdkTools } from './SdkTools'
711
12+ // Initialize the global adapter for the CoW SDK
13+ const adapter = new EthersV5Adapter ( {
14+ provider : getRpcProvider ( SupportedChainId . MAINNET ) ! ,
15+ } )
16+ setGlobalAdapter ( adapter )
17+
818// TODO: Add proper return type annotation
919// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
1020function Root ( ) {
Original file line number Diff line number Diff line change 22 "extends" : " ./tsconfig.json" ,
33 "compilerOptions" : {
44 "outDir" : " ../../dist/out-tsc" ,
5- "types" : [" node" , " vite/client" ],
6- "composite" : true ,
7- "declaration" : true
5+ "types" : [" node" , " vite/client" ]
86 },
97 "files" : [" ../../node_modules/@nx/react/typings/cssmodule.d.ts" , " ../../node_modules/@nx/react/typings/image.d.ts" ],
108 "exclude" : [
Original file line number Diff line number Diff line change 1+ {
2+ "rewrites" : [
3+ {
4+ "source" : " /(.*)" ,
5+ "destination" : " /index.html"
6+ }
7+ ],
8+ "buildCommand" : " cd ../../ && yarn build:sdk-tools" ,
9+ "outputDirectory" : " ../../build/sdk-tools" ,
10+ "installCommand" : " cd ../../ && yarn run install:ci"
11+ }
You can’t perform that action at this time.
0 commit comments