Skip to content

Commit 89637fb

Browse files
committed
Merge remote-tracking branch 'origin/master' into chore/refactor-chakra-text
# Conflicts: # src/components/swap/components/selector-button.tsx
2 parents 3d4af20 + ce48648 commit 89637fb

File tree

175 files changed

+11452
-9176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+11452
-9176
lines changed

.env.default

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ NEXT_PUBLIC_VERCEL_ENV=development
1111
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=
1212

1313
INDEX_COOP_API_V2_KEY=
14+
15+
16+
KUBB_ENV=local # local, or absent / anything else for prod

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "public/tradingview-chart"]
2+
path = public/tradingview-chart
3+
url = https://github.com/IndexCoop/tradingview-chart.git

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
4141
- Make sure the token data was added to [tokenlists](https://github.com/IndexCoop/tokenlists)
4242
- If possible avoid and use tokenlists utils directly: add token in [tokens.ts](src/constants/tokens.ts) - using tokenlists (check ETH2X for reference)
4343

44-
## New Presale
45-
46-
- Make sure the token data was added to [tokenlists](https://github.com/IndexCoop/tokenlists)
47-
- Add logo in [assets](public/assets) - as defined in tokenlists
48-
- Update tokenlists dependency
49-
- Add token in [tokens.ts](src/constants/tokens.ts)
50-
- Add presale config in [src/app/presales/constants.ts](src/app/presales/constants.ts) and update `getTokenForPresaleToken`
51-
- Test locally w/ hardhat
52-
5344
## Testing
5445

5546
### Unit tests

kubb.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ import { pluginClient } from '@kubb/plugin-client'
33
import { pluginOas } from '@kubb/plugin-oas'
44
import { pluginTs } from '@kubb/plugin-ts'
55

6+
import dotenv from 'dotenv'
7+
8+
dotenv.config()
9+
10+
const isLocal = process.env.KUBB_ENV === 'local'
11+
612
const config = defineConfig({
713
root: '.',
814
input: {
9-
path: 'https://api.indexcoop.com/v2/docs/json',
15+
path: isLocal
16+
? 'http://127.0.0.1:4000/documentation/json' // Requires the indexcoop-api to be running locally
17+
: 'https://api.indexcoop.com/v2/docs/json',
1018
},
1119
output: {
1220
path: './src/gen',
@@ -35,7 +43,9 @@ const config = defineConfig({
3543
dateType: 'date',
3644
}),
3745
pluginClient({
38-
baseURL: 'https://api-q513.onrender.com',
46+
baseURL: isLocal
47+
? 'http://127.0.0.1:4000' // Requires the indexcoop-api to be running locally
48+
: 'https://api-q513.onrender.com',
3949
output: {
4050
path: './clients/axios',
4151
barrelType: 'propagate',

next.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ const nextConfig = {
5151
},
5252
async redirects() {
5353
return [
54-
{
55-
source: '/pre-sales',
56-
destination: '/presales',
57-
permanent: true,
58-
},
5954
{
6055
source: '/',
6156
destination: '/trade',

0 commit comments

Comments
 (0)