{"version":3,"file":"index.mjs","names":[],"sources":["../src/devnet.ts","../src/slot.ts","../src/starknet.ts"],"sourcesContent":["import type { Chain } from \"./types\";\n\nexport const devnet = {\n  id: BigInt(\"0x534e5f5345504f4c4941\"),\n  network: \"devnet\",\n  name: \"Starknet Devnet\",\n  nativeCurrency: {\n    address:\n      \"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7\",\n    name: \"Ether\",\n    symbol: \"ETH\",\n    decimals: 18,\n  },\n  testnet: true,\n  rpcUrls: {\n    default: {\n      http: [],\n    },\n    public: {\n      http: [\"http://localhost:5050/rpc\"],\n    },\n  },\n  paymasterRpcUrls: {\n    avnu: {\n      http: [\"http://localhost:5050\"],\n    },\n  },\n} as const satisfies Chain;\n","import type { Chain } from \"./types\";\n\nexport function getSlotChain(projectId: string) {\n  return {\n    id: BigInt(projectId),\n    network: `slot-${projectId}`,\n    name: `${projectId}`,\n    nativeCurrency: {\n      address:\n        \"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7\",\n      name: \"Ether\",\n      symbol: \"ETH\",\n      decimals: 18,\n    },\n    testnet: true,\n    rpcUrls: {\n      default: {\n        http: [],\n      },\n      public: {\n        http: [`https://api.cartridge.gg/x/${projectId}/katana`],\n      },\n    },\n    paymasterRpcUrls: {\n      avnu: {\n        http: [\"https://sepolia.paymaster.avnu.fi/\"],\n      },\n    },\n  } as const satisfies Chain;\n}\n","import type { Chain } from \"./types\";\n\n// Starknet chain ids are generated as follows:\n//\n// 1. Take the name of the network as string (SN_MAIN, SN_SEPOLIA).\n// 2. Encode it as Starknet short string.\n//\n// For example, `encodeShortString('SN_MAIN')` returns `0x535f4d41494e`, which\n// is the chain id.\n\nexport const mainnet = {\n  id: BigInt(\"0x534e5f4d41494e\"),\n  network: \"mainnet\",\n  name: \"Starknet\",\n  nativeCurrency: {\n    address:\n      \"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7\",\n    name: \"Ether\",\n    symbol: \"ETH\",\n    decimals: 18,\n  },\n\n  rpcUrls: {\n    alchemy: {\n      http: [\"https://starknet-mainnet.g.alchemy.com/v2\"],\n    },\n    infura: {\n      http: [\"https://starknet-mainnet.infura.io/v3\"],\n    },\n    lava: {\n      http: [\"https://g.w.lavanet.xyz:443/gateway/strk/rpc-http\"],\n    },\n    cartridge: {\n      http: [\"https://api.cartridge.gg/x/starknet/mainnet\"],\n    },\n    default: {\n      http: [],\n    },\n    public: {\n      http: [\"https://starknet.drpc.org\", \"https://rpc.starknet.lava.build\"],\n    },\n  },\n  paymasterRpcUrls: {\n    avnu: {\n      http: [\"https://starknet.paymaster.avnu.fi/\"],\n    },\n  },\n  explorers: {\n    cartridge: [\"https://explorer.cartridge.gg\"],\n    viewblock: [\"https://viewblock.io/starknet\"],\n    voyager: [\"https://voyager.online\"],\n  },\n} as const satisfies Chain;\n\nexport const sepolia = {\n  id: BigInt(\"0x534e5f5345504f4c4941\"),\n  network: \"sepolia\",\n  name: \"Starknet Sepolia Testnet\",\n  nativeCurrency: {\n    address:\n      \"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7\",\n    name: \"Ether\",\n    symbol: \"ETH\",\n    decimals: 18,\n  },\n  testnet: true,\n  rpcUrls: {\n    infura: {\n      http: [\"https://starknet-sepolia.infura.io/v3\"],\n    },\n    cartridge: {\n      http: [\"https://api.cartridge.gg/x/starknet/sepolia\"],\n    },\n    default: {\n      http: [],\n    },\n    public: {\n      http: [\n        \"https://api.zan.top/public/starknet-sepolia/rpc/v0_10\",\n        \"https://starknet-sepolia.drpc.org/\",\n      ],\n    },\n  },\n  paymasterRpcUrls: {\n    avnu: {\n      http: [\"https://sepolia.paymaster.avnu.fi/\"],\n    },\n  },\n  explorers: {\n    cartridge: [\"https://starknet-sepolia.explorer.cartridge.gg\"],\n    voyager: [\"https://sepolia.voyager.online\"],\n  },\n} as const satisfies Chain;\n"],"mappings":";AAEA,MA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