-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feat: Persistent User Data #1617
Merged
Merged
Changes from 78 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
5648454
persistent user data with prisma
tokdaniel 9ec2cdc
fix lint
tokdaniel c0a0655
ignore regular .env too
tokdaniel fa575a7
remove unnecessary async
tokdaniel c4cde7a
Merge branch 'master' into feat/persistent-user-data
tokdaniel bd05c7f
address comments
tokdaniel 5c6e243
rename hooks and provider to userMetadata...
tokdaniel 1e2d6cb
add trade table and extend providers executeTrade with callback
tokdaniel c182bd3
fix npm command
tokdaniel dc60836
update schema.prisma
tokdaniel f3889ee
merge master
tokdaniel 79bdaaf
isminting passed in
tokdaniel 1042814
better schema without unnecessary stuff
tokdaniel c81e04a
include view from materializedview
tokdaniel fe4228f
remove comment
tokdaniel 398a156
remove totalFeesUSD
tokdaniel f462dfd
fix linting
tokdaniel 23cbb4f
merge master
tokdaniel ceed86e
merge master update prisma schema
tokdaniel 2988ca5
update prisma
tokdaniel 2c9deb2
no need toBigInt anymore
tokdaniel 3803ae5
quoteType mapping, and indexcoop refid
tokdaniel aef2fb3
add placeholders for mint and redeem fees
tokdaniel 271ee49
update prisma schema
tokdaniel 84783c7
Merge branch 'master' of github.com:IndexCoop/index-app into feat/per…
tokdaniel c539f4a
move to apiv2
tokdaniel e8dd9c1
add eslint disable to generated files
tokdaniel e19a575
ts-nocheck for generated as well
tokdaniel 9ad9949
allow .ts imports in tsconfig
tokdaniel f021c0b
Merge branch 'master' into feat/persistent-user-data
tokdaniel 944b3ab
fix linting and imports
tokdaniel e22c127
use api.indexcoop as baseurl
tokdaniel 28dd7ec
handle ep errors and send messages back
tokdaniel 0996cf8
exclude admin endpoints from kubb generator
tokdaniel ccc299d
comment fixes
tokdaniel 288960c
Merge branch 'master' of github.com:IndexCoop/index-app into feat/per…
tokdaniel 1b2a02b
Merge branch 'master' of github.com:IndexCoop/index-app into feat/per…
tokdaniel 0073710
change url to cloudflare redirect
tokdaniel fee2bc8
fix kubb conf api baseUrl
tokdaniel 1fd81c8
remove /api/v2 from the url for the redirect
tokdaniel ad3a2d2
change api url back to render one for now
tokdaniel c604f79
remove url replace
tokdaniel 8ceaeb3
merge master
tokdaniel 05161dd
add fees to trade
tokdaniel 3df97db
add working history and open positions
tokdaniel c66f0e4
underlyingAsset symbol & denominator
tokdaniel 4fb04fb
use USD as default denominator
tokdaniel 946f9b9
merge master
tokdaniel 5d7c436
lint fix
tokdaniel fd5cec7
move history sorting to backend too
tokdaniel 6291e16
reinstall dependencies
tokdaniel c22271e
linting issues on gha
tokdaniel 8f52247
linting again
tokdaniel 158bd93
Merge branch 'master' of github.com:IndexCoop/index-app into feat/per…
tokdaniel 967f155
Fix lint
0xonramp 8bdaadb
fix gasestimatoor
tokdaniel 8b508af
fix typeerrors in tests
tokdaniel 3594d3c
fix viem / wagmi versions
tokdaniel f6d8a51
lint with no cache
tokdaniel a23cf31
update eslint
tokdaniel 6268af4
merge master
tokdaniel 12994d9
full on transfer data
tokdaniel f6b45f1
adjust netBalance with transferAmount
tokdaniel da2b9f6
dont need to adjust netbalance
tokdaniel 966d74a
fix unrealised pnl adjustment with tx
tokdaniel 89d40a2
merge master
tokdaniel 4df192b
scrollable history and positions
tokdaniel d528d1a
merge master
tokdaniel ee23784
move back to old your tokens for the ui
tokdaniel 35eb788
add refId submission
tokdaniel 364f918
handle optional refid on app side
tokdaniel 8f117b9
simpify new history route
tokdaniel 9e00ad3
remove shadow blur
tokdaniel cd67e20
remove unnecessary address cast
tokdaniel 8dbfd90
recreate lock
tokdaniel 45c06bf
chore: lint peristent user data (#1730)
janndriessen 6c627ba
add sentry cli again
tokdaniel 6d62865
Merge branch 'feat/persistent-user-data' of github.com:IndexCoop/inde…
tokdaniel fd7764a
remove sentri-cli dep
tokdaniel b3dc1df
update npm lint:fix command
tokdaniel 53b8332
merge master
tokdaniel 2f256b9
update lock
tokdaniel 6503701
readd lock
tokdaniel 3c37041
fix deps
tokdaniel 60f31a1
remove underlyingAssetDenominator
tokdaniel 6ef1085
remove denominator function too
tokdaniel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { defineConfig } from '@kubb/core' | ||
import { pluginClient } from '@kubb/plugin-client' | ||
import { pluginOas } from '@kubb/plugin-oas' | ||
import { pluginTs } from '@kubb/plugin-ts' | ||
|
||
const config = defineConfig({ | ||
root: '.', | ||
input: { | ||
path: 'https://api.indexcoop.com/v2/docs/json', | ||
}, | ||
output: { | ||
path: './src/gen', | ||
clean: true, | ||
}, | ||
plugins: [ | ||
pluginOas({ | ||
generators: [], | ||
}), | ||
pluginTs({ | ||
output: { | ||
path: 'models', | ||
barrelType: 'propagate', | ||
banner: `/* eslint-disable */`, | ||
}, | ||
exclude: [ | ||
{ | ||
type: 'tag', | ||
pattern: 'admin', | ||
}, | ||
], | ||
group: { | ||
type: 'tag', | ||
}, | ||
enumType: 'asConst', | ||
dateType: 'date', | ||
}), | ||
pluginClient({ | ||
baseURL: 'https://api-q513.onrender.com', | ||
output: { | ||
path: './clients/axios', | ||
barrelType: 'propagate', | ||
banner: `/* eslint-disable */`, | ||
}, | ||
exclude: [ | ||
{ | ||
type: 'tag', | ||
pattern: 'admin', | ||
}, | ||
], | ||
importPath: '@/lib/axios', | ||
group: { | ||
type: 'tag', | ||
name({ group }) { | ||
return `${group}Service` | ||
}, | ||
}, | ||
operations: true, | ||
pathParamsType: 'object', | ||
dataReturnType: 'full', | ||
}), | ||
// pluginTanstackQuery({ | ||
// output: { | ||
// path: './hooks', | ||
// }, | ||
// framework: 'react', | ||
// dataReturnType: 'full', | ||
// }), | ||
], | ||
}) | ||
|
||
export default defineConfig(config) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case we want to access api endpoints which are public from the frontend this can be useful, but of course, we can just write it with a useQuery as well.