Skip to content

Commit

Permalink
Merge branch 'next' of https://github.com/BibliothecaDAO/eternum into…
Browse files Browse the repository at this point in the history
… model-managers
  • Loading branch information
aymericdelab committed Jan 8, 2025
2 parents ddcc865 + a623b7f commit 0b30b36
Show file tree
Hide file tree
Showing 126 changed files with 2,836 additions and 567 deletions.
13 changes: 3 additions & 10 deletions client/apps/balancing/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
{
"name": "balancing",
"private": true,
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"dev": "vite",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
"@tanstack/react-table": "^8.20.5",
"class-variance-authority": "^0.7.0",
"tailwindcss-animate": "^1.0.7"
"@tanstack/react-table": "^8.20.5"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"autoprefixer": "^10.4.18",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1",
"typescript-eslint": "^8.0.1"
}
}
1 change: 1 addition & 0 deletions client/apps/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/dist/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions client/apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "eternum",
"version": "0.1.0",
"type": "module",
"scripts": {
"build": "pnpm --dir ./client/apps/game build",
"build:docs": "vocs build",
"build:landing": "pnpm --dir ./client/apps/landing build",
"build:packages": "pnpm --dir ./client/sdk/packages/eternum build",
"dev": "pnpm --dir ./client/apps/game dev",
"dev:docs": "vocs dev",
"dev:landing": "pnpm --dir ./client/apps/landing dev",
"format": "pnpm prettier --write .",
"format:check": "pnpm prettier --check .",
"knip": "npx knip --exclude binaries,dependencies",
"lint": "pnpm --recursive run lint",
"lint:fix": "pnpm --recursive run lint:fix",
"test": "pnpm --recursive run test"
},
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
47 changes: 22 additions & 25 deletions client/apps/game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,44 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage",
"dev": "vite",
"generate-pwa-assets": "pwa-assets-generator",
"lint": "eslint .",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"generate-pwa-assets": "pwa-assets-generator"
"preview": "vite preview",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:watch": "vitest"
},
"dependencies": {
"@dojoengine/torii-wasm": "1.0.4-alpha.3.1.0",
"three": "^0.166.0",
"zustand": "^4.5.2",
"wouter": "^2.12.1",
"lodash": "^4.17.21",
"@latticexyz/utils": "^2.0.0-next.12",
"@vercel/analytics": "^1.2.2",
"buffer": "^6.0.3",
"graphql-request": "^7.1.2",
"three-stdlib": "^2.29.5",
"gsap": "^3.12.5",
"lil-gui": "^0.19.2",
"lodash": "^4.17.21",
"postprocessing": "^6.36.2",
"react-draggable": "^4.4.6",
"react-shepherd": "^6.1.6",
"shepherd.js": "^14.3.0",
"react-draggable": "^4.4.6",
"lil-gui": "^0.19.2",
"vite-plugin-pwa": "^0.20.5",
"three": "^0.166.0",
"three-stdlib": "^2.29.5",
"use-sound": "^4.0.1",
"@latticexyz/utils": "^2.0.0-next.12",
"@vercel/analytics": "^1.2.2",
"postprocessing": "^6.36.2",
"gsap": "^3.12.5",
"buffer": "^6.0.3"
"vite-plugin-pwa": "^0.20.5",
"wouter": "^2.12.1",
"zustand": "^4.5.2"
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"@types/three": "^0.163.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/ui": "^2.0.1",
"eslint-config-standard-with-typescript": "^43.0.1",
"vitest": "^2.0.5",
"workbox-window": "^7.3.0",
"@types/lodash": "^4.14.202",
"@tailwindcss/typography": "^0.5.13"
"eslint-config-love": "^114.0.0",
"workbox-window": "^7.3.0"
},
"peerDependencies": {
"starknet": "6.11.0"
Expand Down
1 change: 1 addition & 0 deletions client/apps/landing/.env.preview
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ VITE_LORDS_ADDRESS=0x0342ad5cc14002c005a5cedcfce2bd3af98d5e7fb79e9bf949b3a91cf14


VITE_PUBLIC_CHAIN=sepolia
VITE_PUBLIC_SLOT=

VITE_PUBLIC_CONSTRUCTION_FLAG=false
VITE_PUBLIC_HIDE_THREEJS_MENU=false
Expand Down
2 changes: 1 addition & 1 deletion client/apps/landing/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ VITE_REALMS_ADDRESS=0x07ae27a31bb6526e3de9cf02f081f6ce0615ac12a6d7b85ee58b8ad794
VITE_LORDS_ADDRESS=0x0124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49

VITE_PUBLIC_CHAIN=mainnet

VITE_PUBLIC_SLOT=eternum-prod

VITE_PUBLIC_CONSTRUCTION_FLAG=false
VITE_PUBLIC_HIDE_THREEJS_MENU=false
Expand Down
1 change: 1 addition & 0 deletions client/apps/landing/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ VITE_PUBLIC_CHAIN=local

VITE_PUBLIC_CONSTRUCTION_FLAG=false
VITE_PUBLIC_HIDE_THREEJS_MENU=false
VITE_PUBLIC_SLOT=

VITE_PUBLIC_ARK_MARKETPLACE_API=https://abc.com
VITE_PUBLIC_IMAGE_CDN_URL=https://abc.com
Expand Down
2 changes: 1 addition & 1 deletion client/apps/landing/.env.sepolia
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ VITE_REALMS_ADDRESS=0xd2674cc335684896f2b1f942e6929611acab4dc07aa03d0371226812bb
VITE_LORDS_ADDRESS=0x342ad5cc14002c005a5cedcfce2bd3af98d5e7fb79e9bf949b3a91cf145d72e

VITE_PUBLIC_CHAIN=sepolia

VITE_PUBLIC_SLOT=

VITE_PUBLIC_CONSTRUCTION_FLAG=false
VITE_PUBLIC_HIDE_THREEJS_MENU=false
Expand Down
2 changes: 2 additions & 0 deletions client/apps/landing/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const envSchema = z.object({
VITE_PUBLIC_IMAGE_CDN_URL: z.string().url(),
VITE_PUBLIC_IMAGE_PROXY_URL: z.string().url(),
VITE_PUBLIC_IPFS_GATEWAY: z.string().url(),

VITE_PUBLIC_SLOT: z.string(),
});

let env: z.infer<typeof envSchema>;
Expand Down
15 changes: 5 additions & 10 deletions client/apps/landing/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "landing",
"private": true,
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "tsc --noEmit && vite build",
"build-storybook": "storybook build",
"codegen": "graphql-codegen --config codegen.ts",
"dev": "vite",
"dev::sepolia": "vite --mode sepolia",
"build": "tsc --noEmit && vite build",
"lint": "eslint .",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"codegen": "graphql-codegen --config codegen.ts"
"storybook": "storybook dev -p 6006"
},
"dependencies": {
"@ark-project/core": "3.0.0-beta.1",
Expand All @@ -23,24 +23,19 @@
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-router": "^1.74.0",
"class-variance-authority": "^0.7.0",
"cmdk": "1.0.0",
"dotenv": "^16.3.1",
"graphql": "^16.9.0",
"graphql-tag": "^2.12.6",
"jotai": "^2.10.1",
"nuqs": "^2.0.4",
"starknet": "^6.8.0",
"storybook": "^8.3.2",
"tailwindcss-animate": "^1.0.7",
"vite-plugin-vercel": "^9.0.3"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const otherResources = Object.entries(resourceAddresses)
.map(([_, [__, address]]) => address);

const theme: string = "eternum";
const slot: string = "realms-world-04";
const slot: string = env.VITE_PUBLIC_SLOT;
const namespace: string = "eternum";
const colorMode: ColorMode = "dark";

Expand Down
8 changes: 3 additions & 5 deletions client/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@types/bun": "latest",
"eslint": "^9.9.0"
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0",
"@dojoengine/core": "1.0.0-alpha.21",
"starknet": "6.11.0"
"starknet": "6.11.0",
"typescript": "^5.0.0"
}
}
57 changes: 30 additions & 27 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,62 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "pnpm --filter ./apps/game dev",
"dev:landing": "pnpm --filter ./apps/landing dev",
"dev:docs": "pnpm --filter ./apps/docs dev",
"build": "pnpm --filter ./apps/game build",
"build:landing": "pnpm --filter ./apps/landing build",
"build:docs": "pnpm --filter ./apps/docs build",
"build:packages": "pnpm --filter ./sdk/packages/eternum build",
"test:client": "pnpm --filter ./apps/game test",
"lint": "pnpm --filter ./apps/game lint",
"lint:fix": "pnpm --filter ./apps/game lint:fix",
"build": "pnpm --dir ./apps/game build",
"build:docs": "pnpm --dir ./apps/docs build",
"build:landing": "pnpm --dir ./apps/landing build",
"build:packages": "pnpm --dir ./sdk/packages/eternum build",
"dev": "pnpm --dir ./apps/game dev",
"dev:docs": "cd ./apps/docs && vocs dev",
"dev:landing": "pnpm --dir ./apps/landing dev",
"format": "prettier --write .",
"format:check": "prettier --check .",
"knip": "npx knip --exclude binaries,dependencies"
"knip": "npx knip --exclude binaries,dependencies",
"lint": "pnpm --dir ./apps/game lint",
"lint:fix": "pnpm --dir ./apps/game lint:fix",
"test:client": "pnpm --dir ./apps/game test"
},
"dependencies": {
"@cartridge/connector": "^0.5.7",
"@cartridge/controller": "^0.5.7",
"@dojoengine/core": "1.0.4-alpha.3.1.0",
"@dojoengine/create-burner": "1.0.4-alpha.3.1.0",
"@dojoengine/react": "1.0.4-alpha.3.1.0",
"@dojoengine/recs": "^2.0.13",
"@dojoengine/state": "1.0.4-alpha.3.1.0",
"@dojoengine/torii-client": "1.0.4-alpha.3.1.0",
"@dojoengine/torii-wasm": "1.0.4-alpha.3.1.0",
"@dojoengine/utils": "1.0.4-alpha.3.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"lucide-react": "^0.365.0",
"clsx": "^1.2.1",
"sonner": "^1.7.0",
"viem": "^2.21.45",
"framer-motion": "^11.0.24",
"@starknet-react/core": "^3.5.0",
"@headlessui/react": "^2.2.0",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.0",
"@starknet-react/chains": "^3.1.0",
"@starknet-react/core": "^3.5.0",
"@tailwindcss/typography": "^0.5.13",
"class-variance-authority": "^0.7.0",
"clsx": "^1.2.1",
"framer-motion": "^11.0.24",
"lucide-react": "^0.365.0",
"next-themes": "^0.4.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "^1.7.0",
"tailwind-merge": "^2.5.2",
"@starknet-react/chains": "^3.1.0",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"viem": "^2.21.45",
"zod": "^3.23.8"
},
"devDependencies": {
"@svgr/rollup": "^8.1.0",
"@types/node": "^20.11.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^9.9.0",
"typescript": "^5.5.3",
"leva": "^0.9.35",
"vite": "^5.4.1",
"vite-plugin-svgr": "^4.2.0",
"@svgr/rollup": "^8.1.0",
"@vitejs/plugin-react": "^4.3.1",
"globals": "^15.9.0",
"leva": "^0.9.35",
"vite-plugin-mkcert": "^1.17.6",
"vite-plugin-svgr": "^4.2.0",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.3.0"
}
Expand Down
18 changes: 9 additions & 9 deletions client/sdk/packages/eternum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"name": "@bibliothecadao/eternum",
"version": "0.2.0",
"description": "Eternum SDK for Starknet & Dojo",
"license": "MIT",
"author": "Loaf",
"type": "module",
"scripts": {
"build": "tsup",
"test": "vitest",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"gen:docs": "typedoc --plugin typedoc-plugin-markdown"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"author": "Loaf",
"license": "MIT",
"main": "./dist/index.js",
"scripts": {
"build": "tsup",
"gen:docs": "typedoc --plugin typedoc-plugin-markdown",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest"
},
"dependencies": {
"@dojoengine/core": "1.0.0-alpha.24",
"@latticexyz/utils": "^2.0.0-next.12",
Expand Down
10 changes: 5 additions & 5 deletions contracts/formula/battles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "battles",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "ISC",
"author": "",
"type": "module",
"main": "index.js",
"scripts": {
"simulate-battle": "node battle_time.js"
},
"dependencies": {
"@bibliothecadao/eternum": "workspace:^"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^20.11.10"
},
"type": "module"
}
}
Loading

0 comments on commit 0b30b36

Please sign in to comment.