Skip to content
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

[landing] added 3d scene #2119

Open
wants to merge 12 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
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
135 changes: 113 additions & 22 deletions contracts/manifest_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,12 @@
"init_calldata": [],
"tag": "eternum-bank_systems",
"selector": "0x8503019092f83aabe63743a11c20d92ad36d1493ea32fe85df783beb02118d",
"systems": ["create_bank", "change_owner_amm_fee", "change_owner_bridge_fee", "upgrade"]
"systems": [
"create_bank",
"change_owner_amm_fee",
"change_owner_bridge_fee",
"upgrade"
]
},
{
"address": "0x366cf694ff33261ed43b1ff1c36ca44977da43cb217574e7f1623156b179233",
Expand Down Expand Up @@ -1716,7 +1721,10 @@
"init_calldata": [],
"tag": "eternum-battle_pillage_systems",
"selector": "0x533864d7ea316db459d99ca61ce0b99e6990fcb1200fb08fe09a0356ccf6ae",
"systems": ["battle_pillage", "upgrade"]
"systems": [
"battle_pillage",
"upgrade"
]
},
{
"address": "0x555467fc8d40515d78886b0ca8a04a8659373df335a8f5701357c780c0dd63d",
Expand Down Expand Up @@ -2007,7 +2015,14 @@
"init_calldata": [],
"tag": "eternum-battle_systems",
"selector": "0x318da24fd0426eb8dd15b8f647ca0f7e3dde6218a92edac5f59bd3b27e94da",
"systems": ["battle_start", "battle_force_start", "battle_join", "battle_leave", "battle_claim", "upgrade"]
"systems": [
"battle_start",
"battle_force_start",
"battle_join",
"battle_leave",
"battle_claim",
"upgrade"
]
},
{
"address": "0x36b82076142f07fbd8bf7b2cabf2e6b190082c0b242c6ecc5e14b2c96d1763c",
Expand Down Expand Up @@ -2394,7 +2409,13 @@
"init_calldata": [],
"tag": "eternum-building_systems",
"selector": "0x4b0f302684ab1ee4466eba412e62b2f40a8d6a1e56a18c6888aaca12800c2a3",
"systems": ["create", "pause_production", "resume_production", "destroy", "upgrade"]
"systems": [
"create",
"pause_production",
"resume_production",
"destroy",
"upgrade"
]
},
{
"address": "0x6fb53696e3d361e88979b9a48bc9925971cba735cf13275a9157142b2b4c608",
Expand Down Expand Up @@ -4009,7 +4030,10 @@
"init_calldata": [],
"tag": "eternum-dev_bank_systems",
"selector": "0x7a630ec982c14127268c8c2231f6f426a2f1e5bd0d301bb57eb0f1940d126f1",
"systems": ["create_admin_bank", "upgrade"]
"systems": [
"create_admin_bank",
"upgrade"
]
},
{
"address": "0x5291e7f4c092a2a5975bd29e9b42cb69cdc831214a27a675d732ad33f4af7c",
Expand Down Expand Up @@ -4210,7 +4234,10 @@
"init_calldata": [],
"tag": "eternum-dev_realm_systems",
"selector": "0x7190780767c16e37e32049253be28ecd73cf73a4c34666e5b06bb90ff5b14b5",
"systems": ["create", "upgrade"]
"systems": [
"create",
"upgrade"
]
},
{
"address": "0x6b768187dd4d1dd3fe45a2533c6e099c596283f7699d786e40d701334b76bd8",
Expand Down Expand Up @@ -4421,7 +4448,10 @@
"init_calldata": [],
"tag": "eternum-dev_resource_systems",
"selector": "0x9f04ac8a4f56ab426d2bff54cd8ef9a4826eba41cf995fa91e5bf124f43a38",
"systems": ["mint", "upgrade"]
"systems": [
"mint",
"upgrade"
]
},
{
"address": "0x2d67ef281e57b9d187269bc5522782e10ead76c28b0c1241f2f2866c0465c50",
Expand Down Expand Up @@ -4595,7 +4625,9 @@
"init_calldata": [],
"tag": "eternum-donkey_systems",
"selector": "0x4851519d9645482d34b497963fb65fb0fe29710f9ef87566268b971b7df138d",
"systems": ["upgrade"]
"systems": [
"upgrade"
]
},
{
"address": "0x12a0ca4558518d6af296b8f393a917bb89b3e78ba33544814b7d9138ce4816e",
Expand Down Expand Up @@ -5247,7 +5279,14 @@
"init_calldata": [],
"tag": "eternum-hyperstructure_systems",
"selector": "0x3660009af6536f664e159eb2af60e6f0f4890658922967a969b30e212ad808e",
"systems": ["create", "contribute_to_construction", "set_co_owners", "end_game", "set_access", "upgrade"]
"systems": [
"create",
"contribute_to_construction",
"set_co_owners",
"end_game",
"set_access",
"upgrade"
]
},
{
"address": "0x7a5e4dfaba7aced9add65913d44311d74e12f85c55503ebf903103b102847e5",
Expand Down Expand Up @@ -5516,7 +5555,11 @@
"init_calldata": [],
"tag": "eternum-liquidity_systems",
"selector": "0x337d668f7da0ec3cf880ea99993e966e626d669b72c180247cbe5128ad86200",
"systems": ["add", "remove", "upgrade"]
"systems": [
"add",
"remove",
"upgrade"
]
},
{
"address": "0xfbe57fe8c7c3cd18252450b2121feb77306185b3c7a73ebdf784ea42139e8c",
Expand Down Expand Up @@ -5690,7 +5733,9 @@
"init_calldata": [],
"tag": "eternum-map_generation_systems",
"selector": "0x1998c9853704d92e53765a2cd301405c88374a84f6ab07211f3e17c41cbf835",
"systems": ["upgrade"]
"systems": [
"upgrade"
]
},
{
"address": "0xbff77aa3211d8ef1339aad671bbb66e36a60c0e6be5f4b572a9bbd7d4b8d01",
Expand Down Expand Up @@ -5921,7 +5966,10 @@
"init_calldata": [],
"tag": "eternum-map_systems",
"selector": "0x5431b1228d908b966ef227bcdceb526b3def07409c4f0715cf6ddce3fec5619",
"systems": ["explore", "upgrade"]
"systems": [
"explore",
"upgrade"
]
},
{
"address": "0x27952f3c1c681790a168e5422c21278d925cd1bdd8daf1cde8e63afdfd19e20",
Expand Down Expand Up @@ -6134,7 +6182,11 @@
"init_calldata": [],
"tag": "eternum-name_systems",
"selector": "0xbbb2e54372d6d94060a4557e2f13d20b69471e24b55fac93cce607676e9e0d",
"systems": ["set_address_name", "set_entity_name", "upgrade"]
"systems": [
"set_address_name",
"set_entity_name",
"upgrade"
]
},
{
"address": "0x1bd8e8db3eec84b21f8f55609cad83cea80812bf6ff365dc67d787af818e63e",
Expand Down Expand Up @@ -6335,7 +6387,10 @@
"init_calldata": [],
"tag": "eternum-ownership_systems",
"selector": "0x61566ab91b8369028beaa8a615d1c258b4c6e149f181c8b40393d5d891ba820",
"systems": ["transfer_ownership", "upgrade"]
"systems": [
"transfer_ownership",
"upgrade"
]
},
{
"address": "0x24a8afd7523e933d37ea2c91ad629fccde8ce23cefa3c324c6248ca929e3862",
Expand Down Expand Up @@ -6572,7 +6627,12 @@
"init_calldata": [],
"tag": "eternum-realm_systems",
"selector": "0x2b08f0da831b5b65485702339b91ef528a0248d5460ee677e0877a069c9e32",
"systems": ["create", "upgrade_level", "quest_claim", "upgrade"]
"systems": [
"create",
"upgrade_level",
"quest_claim",
"upgrade"
]
},
{
"address": "0x161a4cf2e207359dc7dbf912b21e9099b7729bede2544f849f384fcb166a109",
Expand Down Expand Up @@ -6875,7 +6935,13 @@
"init_calldata": [],
"tag": "eternum-resource_bridge_systems",
"selector": "0x5ff4c52e5c2b0c505fc85bafd8df55776339c4eb396eb016bff890715ab9635",
"systems": ["deposit_initial", "deposit", "start_withdraw", "finish_withdraw", "upgrade"]
"systems": [
"deposit_initial",
"deposit",
"start_withdraw",
"finish_withdraw",
"upgrade"
]
},
{
"address": "0x763fa425503db5d4bdff040f6f7509e6ecd8e3f7e75450b9b28f8fc4cdd2877",
Expand Down Expand Up @@ -7130,7 +7196,12 @@
"init_calldata": [],
"tag": "eternum-resource_systems",
"selector": "0x59b73d5a93708c70e59d24eb66d4c42700ed60a02bc683e004fa9d10f810a06",
"systems": ["approve", "send", "pickup", "upgrade"]
"systems": [
"approve",
"send",
"pickup",
"upgrade"
]
},
{
"address": "0x30a4a6472ff2bcfc68d709802e5a9f31f5ac01d04fa97e37d32ce7568741262",
Expand Down Expand Up @@ -7371,7 +7442,11 @@
"init_calldata": [],
"tag": "eternum-swap_systems",
"selector": "0x216e8d44fb577dc1eaa13d2d12ccd311b33cfab2b8c39d864d3f48b3bcdc00a",
"systems": ["buy", "sell", "upgrade"]
"systems": [
"buy",
"sell",
"upgrade"
]
},
{
"address": "0x3a6bbb82f9e670c99647f3b0c4aaf1be82be712e1a393336b79b9dab44cc5",
Expand Down Expand Up @@ -7666,7 +7741,13 @@
"init_calldata": [],
"tag": "eternum-trade_systems",
"selector": "0x7f6765ddcc9c57e9b4d0cf8f167fff2979816010acf85527b75c75d3e37dd84",
"systems": ["create_order", "accept_order", "accept_partial_order", "cancel_order", "upgrade"]
"systems": [
"create_order",
"accept_order",
"accept_partial_order",
"cancel_order",
"upgrade"
]
},
{
"address": "0x119bf067e05955c0f17f1d4900977facbdc10e046e2319fd4d1320f5cc8be38",
Expand Down Expand Up @@ -7937,7 +8018,11 @@
"init_calldata": [],
"tag": "eternum-travel_systems",
"selector": "0x4ec72d4cbde683428327674a7f032490a8340b379f9f27d57c3949a94091f",
"systems": ["travel", "travel_hex", "upgrade"]
"systems": [
"travel",
"travel_hex",
"upgrade"
]
},
{
"address": "0x698873791862f03b52618cbfe5b5086250f2720dc4f0b501eb899ae254bc4f7",
Expand Down Expand Up @@ -8226,7 +8311,13 @@
"init_calldata": [],
"tag": "eternum-troop_systems",
"selector": "0x54f7aef38740d860d9a4cfbaee1e691f7ca50d3737975a0e420b15dd1543954",
"systems": ["army_create", "army_delete", "army_buy_troops", "army_merge_troops", "upgrade"]
"systems": [
"army_create",
"army_delete",
"army_buy_troops",
"army_merge_troops",
"upgrade"
]
}
],
"models": [
Expand Down Expand Up @@ -8875,4 +8966,4 @@
"selector": "0x56f72fcd0717bb8a4c5dc9c145eed7190c3c64b8441ee921c2cbdb82947e177"
}
]
}
}
30 changes: 15 additions & 15 deletions landing/.env
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
VITE_PUBLIC_MASTER_ADDRESS="0x127fd5f1fe78a71f8bcd1fec63e3fe2f0486b6ecd5c86a0466c3a21fa5cfcec"
VITE_PUBLIC_MASTER_PRIVATE_KEY="0xc5b2fcab997346f3ea1c00b002ecf6f382c5f9c9659a3894eb783c5320f912"
VITE_PUBLIC_WORLD_ADDRESS="0x320b2713e324fe3125bbc42d85ff69cb3c0908b436fa38a35746dbc45deeb11"
VITE_PUBLIC_MASTER_ADDRESS=0x01BFC84464f990C09Cc0e5D64D18F54c3469fD5c467398BF31293051bAde1C39
VITE_PUBLIC_MASTER_PRIVATE_KEY=0x075362a844768f31c8058ce31aec3dd7751686440b4f220f410ae0c9bf042e60
VITE_PUBLIC_WORLD_ADDRESS="0x5013b17c43a2b664ec2a38aa45f6d891db1188622ec7cf320411321c3248fb5"
VITE_PUBLIC_ACCOUNT_CLASS_HASH="0x07dc7899aa655b0aae51eadff6d801a58e97dd99cf4666ee59e704249e51adf2"
VITE_NETWORK_FEE_TOKEN="0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
VITE_EVENT_KEY="0x1a2f334228cee715f1f0f54053bb6b5eac54fa336e0bc1aacf7516decb0471d"
VITE_PUBLIC_TORII="http://localhost:8080"
VITE_TORII_GRAPHQL="http://localhost:8080/graphql"
VITE_TORII_WS="ws://localhost:8080/graphql/ws"
VITE_PUBLIC_NODE_URL="http://localhost:5050/"
VITE_PUBLIC_DEV=true
VITE_PUBLIC_TORII_RELAY="/ip4/127.0.0.1/udp/9091/webrtc-direct/certhash/uEiCvYp_t42DmNpYQWtLJ2tLdd0GA99lyO1h1KLPxZbRe7g"
VITE_PUBLIC_TORII=https://api.cartridge.gg/x/eternum-rc-sepolia/torii
VITE_PUBLIC_NODE_URL=https://api.cartridge.gg/x/starknet/sepolia
VITE_PUBLIC_DEV=false
VITE_PUBLIC_GAME_VERSION="v1.0.0-rc0"
VITE_PUBLIC_SHOW_FPS=false
VITE_PUBLIC_GRAPHICS_DEV=false
VITE_PUBLIC_TORII_RELAY=/dns4/api.cartridge.gg/tcp/443/x-parity-wss/%2Fx%2Feternum-rc-sepolia%2Ftorii%2Fwss

VITE_SEASON_PASS_ADDRESS="0x58621115ef085cd1115d304a57eae922a7c3850d0b2cecad945c2e93da2073e"
VITE_REALMS_ADDRESS="0x61f0d0809b4bac7d25252621e7372b9b5755af07395518b9c4a5e9ad4d4ce02"
VITE_LORDS_ADDRESS="0x4a923a8d844846dc34b0ea3d2ec95adf2c5569dd1b755f6a3285328bc5428e9"

VITE_PUBLIC_CHAIN=local
VITE_SEASON_PASS_ADDRESS=0x43e1d2187157c7744a96897c4a10303a9972c65727dbbed7348cbc6d98709a4
VITE_REALMS_ADDRESS=0xd2674cc335684896f2b1f942e6929611acab4dc07aa03d0371226812bbc349
VITE_LORDS_ADDRESS=0x31031b237b196b17179cf30154d03bfa2ed2e74731d6b1f9760b1085457861d

VITE_PUBLIC_CHAIN=mainnet
5 changes: 5 additions & 0 deletions landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@ark-project/core": "3.0.0-beta.1",
"@ark-project/react": "2.0.0-beta.2",
"@avnu/avnu-sdk": "2.1.1",
"@bibliothecadao/eternum": "workspace:^",
"@cartridge/connector": "^0.5.0-alpha.8",
"@cartridge/controller": "^0.5.0-alpha.8",
Expand Down Expand Up @@ -55,12 +56,15 @@
"lucide-react": "^0.365.0",
"next-themes": "^0.4.3",
"nuqs": "^2.0.4",
"postprocessing": "^6.36.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "^1.7.0",
"starknet": "^6.8.0",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"three": "^0.166.1",
"three-stdlib": "^2.29.5",
"viem": "^2.21.45",
"vite-plugin-svgr": "^4.2.0",
"vite-plugin-wasm": "^3.3.0"
Expand All @@ -87,6 +91,7 @@
"@types/node": "^20.11.10",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@types/three": "^0.163.0",
"@vitejs/plugin-react": "^4.3.2",
"autoprefixer": "^10.4.18",
"eslint": "^9.11.1",
Expand Down
Binary file added landing/public/models/biomes-opt/bare.glb
Binary file not shown.
Binary file added landing/public/models/biomes-opt/beach.glb
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/biomes-opt/deepOcean.glb
Binary file not shown.
Binary file added landing/public/models/biomes-opt/grassland.glb
Binary file not shown.
Binary file added landing/public/models/biomes-opt/ocean.glb
Binary file not shown.
Binary file added landing/public/models/biomes-opt/outline.glb
Binary file not shown.
Binary file added landing/public/models/biomes-opt/scorched.glb
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/biomes-opt/shrubland.glb
Binary file not shown.
Binary file added landing/public/models/biomes-opt/snow.glb
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/biomes-opt/taiga.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/biomes-opt/tundra.glb
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/buildings-opt/bank.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/bank_lite.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/barracks.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/castle.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/castle0.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/castle1.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/castle2.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/castle3.glb
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/buildings-opt/city_tile.glb
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/buildings-opt/empty.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/farm.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/fishery.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/forge.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added landing/public/models/buildings-opt/market.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/mine.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/mine_2.glb
Binary file not shown.
Binary file added landing/public/models/buildings-opt/stable.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added landing/public/textures/paper/worldmap-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading