Skip to content

Commit

Permalink
Merge pull request #536 from BibliothecaDAO/feat/blastapi
Browse files Browse the repository at this point in the history
Integrate blastapi for testnet
  • Loading branch information
starknetdev authored Jan 15, 2024
2 parents 3830f35 + a79e2a3 commit e2994c9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/.env.goerli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NEXT_PUBLIC_NETWORK=goerli
NEXT_PUBLIC_RPC_URL=https://starknet-goerli.infura.io/v3/bba03efe093c494c9ce604963eaf0252
NEXT_PUBLIC_RPC_API_KEY=bba03efe093c494c9ce604963eaf0252
NEXT_PUBLIC_RPC_URL=https://starknet-testnet.blastapi.io/efb20d63-c5e0-4f5d-ab72-ef7add92779f
NEXT_PUBLIC_RPC_API_KEY=efb20d63-c5e0-4f5d-ab72-ef7add92779f
NEXT_PUBLIC_LS_GQL_URL=https://survivor-goerli-indexer.realms.world/graphql
NEXT_PUBLIC_TOKENS_GQL_URL=https://testnet.realms.world/api/graphql
NEXT_PUBLIC_ETH_ADDRESS=0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
Expand Down
17 changes: 17 additions & 0 deletions ui/.env.sepolia
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
NEXT_PUBLIC_NETWORK=sepolia
NEXT_PUBLIC_RPC_URL=https://starknet-sepolia.blastapi.io/efb20d63-c5e0-4f5d-ab72-ef7add92779f
NEXT_PUBLIC_RPC_API_KEY=efb20d63-c5e0-4f5d-ab72-ef7add92779f
NEXT_PUBLIC_LS_GQL_URL=https://survivor-goerli-indexer.realms.world/graphql
NEXT_PUBLIC_TOKENS_GQL_URL=https://testnet.realms.world/api/graphql
NEXT_PUBLIC_ETH_ADDRESS=0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
NEXT_PUBLIC_GAME_ADDRESS=0x071d07b1217cdcc334739a3f28da75db05d62672ad04b9204ee11b88f2f9f61c
NEXT_PUBLIC_OLD_GAME_ADDRESS=0x07bece3541ac11d53d470910f2d2c19be2dbc856ae0624c9df27936c2ed16a54
NEXT_PUBLIC_LORDS_ADDRESS=0x05e367ac160e5f90c5775089b582dfc987dd148a5a2f977c49def2a6644f724b
NEXT_PUBLIC_BEASTS_ADDRESS=0x05c909139dbef784180eef8ce7a2f5bf52afe567aa73aaa77b8d8243ad5b6b96
NEXT_PUBLIC_GOLDEN_TOKEN_ADDRESS=0x003583470A8943479F8609192Da4427caC45BdF66a58C84043c7Ab2FC722C0C0
NEXT_PUBLIC_ARCADE_ACCOUNT_CLASS_HASH=0x0715b5e10bf63c36e69c402a81e1eb96b9107ef56eb5e821b00893e39bdcf545
NEXT_PUBLIC_DAO_ADDRESS=0x0628d41075659afebfc27aa2aab36237b08ee0b112debd01e56d037f64f6082a
NEXT_PUBLIC_APP_URL=https://goerli-survivor.realms.world/
NEXT_PUBLIC_BEASTS_VIEWER_URL=https://testnet.realms.world/collection/beasts
NEXT_PUBLIC_GOLDEN_TOKEN_MINT_URL=https://testnet.realms.world/collection/goldenToken
NEXT_PUBLIC_BLOCK_EXPLORER_URL=https://goerli.voyager.online/
6 changes: 3 additions & 3 deletions ui/src/app/components/navigation/TransactionHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const TransactionHistory = ({ buttonRef }: TransactionHistoryProps) => {
transactions ? (
<div
ref={wrapperRef}
className="absolute m-auto z-10 right-[50px] w-[300px] h-[400px] sm:right-16 top-20 sm:top-32 w-1/4 sm:w-[650px] h-3/4 p-4 bg-terminal-black border border-terminal-green overflow-y-auto"
className="absolute m-auto z-10 right-[50px] w-[300px] h-[400px] sm:right-16 top-20 sm:top-32 w-1/4 sm:w-[650px] h-3/4 p-4 bg-terminal-black border border-terminal-green overflow-hidden"
>
<div className="flex flex-row justify-between">
<p className="text-2xl">Ledger</p>
Expand All @@ -45,13 +45,13 @@ const TransactionHistory = ({ buttonRef }: TransactionHistoryProps) => {
setDisplayHistory(false);
play();
}}
className="text-red-500 hover:text-red-700"
className="text-terminal-green"
>
<MdClose size={40} />
</button>
</div>
<div className="w-full border border-terminal-green" />
<div className="overflow-y-auto">
<div className="h-5/6 overflow-y-auto table-scroll">
<ul>
{transactions
.slice()
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Connector,
StarknetConfig,
alchemyProvider,
infuraProvider,
blastProvider,
} from "@starknet-react/core";
import { goerli, mainnet } from "@starknet-react/chains";

Expand All @@ -19,7 +19,7 @@ export function StarknetProvider({
const onMainnet = process.env.NEXT_PUBLIC_NETWORK === "mainnet";
const provider = onMainnet
? alchemyProvider({ apiKey })
: infuraProvider({ apiKey });
: blastProvider({ apiKey });
const chains = onMainnet ? [mainnet] : [goerli];
return (
<StarknetConfig
Expand Down

1 comment on commit e2994c9

@vercel
Copy link

@vercel vercel bot commented on e2994c9 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.