Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
04ed9f3
feat(JSTZ-991): WIP prediction market parent SF
bohdan-trilitech Dec 1, 2025
577b0c6
feat(JSTZ-992): WIP market template SF
bohdan-trilitech Dec 1, 2025
9cecb4d
generated boilerplate
hubcio2115 Dec 2, 2025
1e945b2
updated jstz-ui
hubcio2115 Dec 2, 2025
56566ce
feat(JSTZ-992): WIP market template SF -> betting flow
bohdan-trilitech Dec 4, 2025
4ae6d1e
Merge remote-tracking branch 'origin/feat/JSTZ-995-prediction-market'…
bohdan-trilitech Dec 4, 2025
b9b9929
updated prettier plugins
hubcio2115 Dec 4, 2025
b6dd758
updated jstz-ui
hubcio2115 Dec 4, 2025
80d6bb0
updated config path for signer
hubcio2115 Dec 4, 2025
15b1699
updated paths and target to 2024
hubcio2115 Dec 4, 2025
c39a790
added polimarket to workspace
hubcio2115 Dec 4, 2025
c408cc8
installed ts-reset
hubcio2115 Dec 4, 2025
aa9dbad
installed t3-env
hubcio2115 Dec 4, 2025
bfd3c3d
installed shadcn
hubcio2115 Dec 4, 2025
1d9ffe0
updated react and next because of exploit in server components
hubcio2115 Dec 4, 2025
c363f47
added theme provider
hubcio2115 Dec 4, 2025
f168415
installed react-form
hubcio2115 Dec 4, 2025
daff403
turned on transpiling jstz-ui
hubcio2115 Dec 4, 2025
b892eab
turned on cacheComponents
hubcio2115 Dec 4, 2025
241c6ed
turned on truboPackFileSystemCaching
hubcio2115 Dec 4, 2025
64be868
setup react-query
hubcio2115 Dec 4, 2025
3fe1727
added account queries
hubcio2115 Dec 4, 2025
094af3c
added health query
hubcio2115 Dec 4, 2025
8aaab12
installed sidebar component
hubcio2115 Dec 4, 2025
e2fb0b6
updated eslint-config-next
hubcio2115 Dec 4, 2025
1783235
installed jstz-client
hubcio2115 Dec 4, 2025
83bcd3d
formatting of postcss config
hubcio2115 Dec 4, 2025
663b160
added useMediaQuery
hubcio2115 Dec 4, 2025
0573c42
added useIsMobile
hubcio2115 Dec 4, 2025
0ac726b
migrated useJstzSigner
hubcio2115 Dec 4, 2025
2492474
added mock data for markets
hubcio2115 Dec 4, 2025
dd4a471
deleted redundand styles
hubcio2115 Dec 4, 2025
8f348b4
updated polimarket metadata
hubcio2115 Dec 4, 2025
b41d75d
created navigation sidebar layout
hubcio2115 Dec 4, 2025
175b14a
added market page
hubcio2115 Dec 4, 2025
0a6bb3c
added bettin details page
hubcio2115 Dec 4, 2025
98949d7
sync lock
hubcio2115 Dec 4, 2025
5e62efb
feat(JSTZ-992): WIP market SF -> betting flow -> improvemetns
bohdan-trilitech Dec 5, 2025
0d12649
added nuqs for parsing searchParams
hubcio2115 Dec 5, 2025
459d31d
added nuqs for parsing searchParams
hubcio2115 Dec 5, 2025
dacbc5d
feat(JSTZ-995): WIP master SF market cretion path - added
bohdan-trilitech Dec 5, 2025
8e8ce94
Merge branch 'feat/JSTZ-995-prediction-market' into feat/jstz-1013-ma…
hubcio2115 Dec 5, 2025
0508087
moved build command to eslint.config.ts
hubcio2115 Dec 9, 2025
a944e25
added market-dapp to the workspace
hubcio2115 Dec 9, 2025
3eacf7e
added market-dap artifacts to gitignore
hubcio2115 Dec 9, 2025
74d6147
added required envs
hubcio2115 Dec 9, 2025
95d9599
changed root page to a route with redirect
hubcio2115 Dec 9, 2025
da50356
added deploy page link in the navigation list
hubcio2115 Dec 9, 2025
8d4ca30
deleted unused jstz-extension.communication
hubcio2115 Dec 9, 2025
2c93b24
added endoder/decoder for jstz bodies
hubcio2115 Dec 9, 2025
4321637
added schema for validating market object
hubcio2115 Dec 9, 2025
018e300
added schema for validating tokesn
hubcio2115 Dec 9, 2025
e5212a4
changed catch case to return false in chedckExtensionAvailability
hubcio2115 Dec 9, 2025
31a4cf2
added jstz-client context provider
hubcio2115 Dec 9, 2025
cb9f56b
added deploy page
hubcio2115 Dec 9, 2025
73eab2f
added initial POST /market
hubcio2115 Dec 9, 2025
3f571ba
installed jstz_sdk and usehooks
hubcio2115 Dec 9, 2025
f6c3c83
Merge branch 'feat/jstz-993-FE' into feat/jstz-1013-market-deployment…
hubert-itsharkz Dec 9, 2025
24b516a
updated name of the sign-operation context
hubcio2115 Dec 9, 2025
058c4f3
changed date to datetime for resolutionDate
hubcio2115 Dec 10, 2025
a4c841c
deleted unused log
hubcio2115 Dec 10, 2025
b952440
turned off cache components
hubcio2115 Dec 10, 2025
8dc5eb2
updated jstz-ui
hubcio2115 Dec 10, 2025
bfaef9c
changed Loader2Icon to Spinner
hubcio2115 Dec 10, 2025
b9b76ab
exetended default timeout
hubcio2115 Dec 10, 2025
ed2f4a0
updated /api/market to get the nonce
hubcio2115 Dec 10, 2025
bd0ba11
final deploy flow
hubcio2115 Dec 10, 2025
b339dd0
tweaked /market route
hubcio2115 Dec 10, 2025
d3b19a7
installed experimental branch fix for jstz-client
hubcio2115 Dec 11, 2025
8a7e9ea
added redirecting on market creation and response parsing
hubcio2115 Dec 11, 2025
a3c4e12
sync jstz-ui
hubcio2115 Dec 15, 2025
d8e9757
updated next to the latest version
hubcio2115 Dec 15, 2025
cd5753f
added a patch for jstz-client
hubcio2115 Dec 15, 2025
4bc46fe
added a blank space between routes
hubcio2115 Dec 15, 2025
412b3bb
temporarily disabled admin authentication
hubcio2115 Dec 15, 2025
2b3e878
initiall update of the market details page for the new data model
hubcio2115 Dec 15, 2025
3094a61
added some logging
hubcio2115 Dec 15, 2025
8dd06d0
went back to jstz-client 0.1.1-alpha.5
hubcio2115 Dec 15, 2025
81d825e
added PARENT_SF_ADDRESS env
hubcio2115 Dec 15, 2025
f7c24d1
added MarketForm type
hubcio2115 Dec 15, 2025
2c9d70f
updated deploy to use the route from env
hubcio2115 Dec 15, 2025
33d0d03
final deployment flow
hubcio2115 Dec 15, 2025
fef1cfe
final market list page
hubcio2115 Dec 15, 2025
1438495
final market detail page
hubcio2115 Dec 15, 2025
d300520
added loading states for markets and details views
hubcio2115 Dec 15, 2025
07c9d86
added currencyConvert utils
hubcio2115 Dec 15, 2025
762d692
changed loading cards count to 9
hubcio2115 Dec 15, 2025
ceb9337
added 404 handling and empty state for markets
hubcio2115 Dec 16, 2025
1b918ed
feat(JSTZ-992): resolving and payout WIP
bohdan-trilitech Dec 16, 2025
f997841
Merge branch 'feat/JSTZ-995-prediction-market' into feat/jstz-993-FE
bohdan-trilitech Dec 16, 2025
99d17c9
Merge branch 'feat/jstz-993-FE' into feat/jstz-1013-market-deployment…
bohdan-trilitech Dec 16, 2025
576d311
Merge pull request #48 from jstz-dev/feat/jstz-1013-market-deployment…
bohdan-trilitech Dec 16, 2025
ec71738
Merge pull request #47 from jstz-dev/feat/jstz-993-FE
bohdan-trilitech Dec 16, 2025
3c29770
feat(JSTZ-991): resolving and payout routes - added
bohdan-trilitech Dec 16, 2025
9a5f570
feat(jstz-1018): Connected FE to betting and fixed displayin values i…
hubert-itsharkz Dec 17, 2025
962c15b
Merge branch 'main' into feat/JSTZ-995-prediction-market
hubcio2115 Dec 17, 2025
de2973b
Merge branch 'main' into feat/JSTZ-995-prediction-market
bohdan-trilitech Dec 17, 2025
d8dd00f
fix: .lock file
bohdan-trilitech Dec 17, 2025
c2813ae
refactor: files moved polimarket -> jstz-prediction-market
bohdan-trilitech Dec 17, 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
44 changes: 44 additions & 0 deletions apps/examples/jstz-prediction-market/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

src/app/api/market/index.js
src/app/api/market/market.js
36 changes: 36 additions & 0 deletions apps/examples/jstz-prediction-market/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
21 changes: 21 additions & 0 deletions apps/examples/jstz-prediction-market/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "../../../packages/jstz-ui/src/index.css",
"css": "src/app/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "~/components",
"utils": "~/lib/utils",
"ui": "~/components/ui",
"lib": "~/lib",
"hooks": "~/hooks"
},
"iconLibrary": "lucide"
}
92 changes: 92 additions & 0 deletions apps/examples/jstz-prediction-market/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import js from "@eslint/js";
import reactQuery from "@tanstack/eslint-plugin-query";
import { defineConfig } from "eslint/config";

import nextVitals from "eslint-config-next/core-web-vitals";
import prettier from "eslint-config-prettier/flat";
import jsdoc from "eslint-plugin-jsdoc";
import globals from "globals";
import tseslint from "typescript-eslint";

export default defineConfig(
{ ignores: ["dist"] },
{
extends: [
js.configs.recommended,
...tseslint.configs.strictTypeChecked,
prettier,
nextVitals,
reactQuery.configs["flat/recommended"],
],
settings: {
react: {
version: "detect",
},
},

files: ["src/**/*.{ts,tsx,js,jsx}"],
languageOptions: {
ecmaVersion: 2024,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
ecmaFeatures: {
jsx: true,
},
},
globals: globals.browser,
},

rules: {
"func-style": ["warn", "declaration"],

"react/function-component-definition": [
"warn",
{
namedComponents: "function-declaration",
unnamedComponents: "arrow-function",
},
],
"react/jsx-boolean-value": ["warn", "never"],
"react/jsx-curly-brace-presence": ["warn", "never"],
"react/no-unstable-nested-components": ["error", { allowAsProps: true }],
"react/self-closing-comp": "error",
"react/prop-types": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",

"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-confusing-void-expression": ["error", { ignoreArrowShorthand: true }],
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: {
arguments: false,
attributes: false,
inheritedMethods: true,
properties: true,
returns: true,
variables: true,
},
},
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNumber: true,
allow: [{ name: ["Error", "URL", "URLSearchParams"], from: "lib" }],
},
],
},
},
{
extends: [jsdoc.configs["flat/recommended"]],
files: ["**/*.{js,jsx}"],
rules: {
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param": "off",
"jsdoc/require-returns": "off",
},
},
);
15 changes: 15 additions & 0 deletions apps/examples/jstz-prediction-market/market-dapp/esbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { build } from "esbuild";

try {
await build({
entryPoints: ["index.ts", "market.ts"],
bundle: true,
format: "esm",
target: "esnext",
// outdir: "../../polimarket/src/app/api/market",
outdir: "./dist",
});
} catch (err) {
console.error(err);
process.exit(1);
}
Loading