Skip to content

Commit

Permalink
⏪ Revert to next 14
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Jan 15, 2025
1 parent 66e5e4d commit b43dfb2
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 318 deletions.
2 changes: 1 addition & 1 deletion examples/next/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@cartridge/ui-next": "workspace:*",
"@starknet-react/chains": "^0.1.3",
"@starknet-react/core": "^3.0.2",
"next": "^15.1.4",
"next": "^14.2.5",
"next-themes": "^0.3.0",
"prettier": "^2.7.1",
"react": "^18.3.1",
Expand Down
18 changes: 9 additions & 9 deletions examples/next/src/components/providers/StarknetProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PropsWithChildren } from "react";
import ControllerConnector from "@cartridge/connector/controller";
import { SessionPolicies } from "@cartridge/controller";
import { constants } from "starknet";
import { getSocialPolicies } from "@bal7hazar/arcade-sdk";
// import { getSocialPolicies } from "@bal7hazar/arcade-sdk";

export const ETH_CONTRACT_ADDRESS =
"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7";
Expand Down Expand Up @@ -46,9 +46,9 @@ const messageForChain = (chainId: constants.StarknetChainId) => {
};
};

const socialPolicies = (chainId: constants.StarknetChainId) => {
return getSocialPolicies(chainId, { pin: true }).contracts;
};
// const socialPolicies = (chainId: constants.StarknetChainId) => {
// return getSocialPolicies(chainId, { pin: true }).contracts;
// };

const policies: SessionPolicies = {
contracts: {
Expand Down Expand Up @@ -83,7 +83,7 @@ const policies: SessionPolicies = {
"0x0305f26ad19e0a10715d9f3137573d3a543de7b707967cd85d11234d6ec0fb7e": {
methods: [{ name: "new_game", entrypoint: "new_game" }],
},
...socialPolicies(constants.StarknetChainId.SN_SEPOLIA),
// ...socialPolicies(constants.StarknetChainId.SN_SEPOLIA),
},
messages: [
messageForChain(constants.StarknetChainId.SN_MAIN),
Expand Down Expand Up @@ -131,13 +131,13 @@ const controller = new ControllerConnector({
profileUrl:
process.env.NEXT_PUBLIC_PROFILE_DEPLOYMENT_URL ??
process.env.NEXT_PUBLIC_PROFILE_FRAME_URL,
slot: "profile-example",
// slot: "ryomainnet",
// preset: "dope-wars",
// slot: "profile-example",
slot: "ryomainnet",
preset: "dope-wars",
namespace: "dopewars",
// namespace: "dopewars",
// slot: "eternum-prod",
preset: "eternum",
// preset: "eternum",
// namespace: "s0_eternum",
// slot: "darkshuffle-mainnet",
// preset: "dark-shuffle",
Expand Down
Loading

0 comments on commit b43dfb2

Please sign in to comment.