Skip to content

Commit ef6f38c

Browse files
Merge pull request #31 from od-hunter/fix/activities
Integrate blockchain data for activities
2 parents 996a0f5 + fe86112 commit ef6f38c

File tree

11 files changed

+513
-69
lines changed

11 files changed

+513
-69
lines changed

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"tailwind-merge": "^2.5.5",
6666
"tailwindcss-animate": "^1.0.7",
6767
"vaul": "^0.9.6",
68+
"ws": "^8.18.3",
6869
"yup": "^1.6.1",
6970
"zod": "^3.24.1"
7071
},

src/abi/ip_collection.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ export const ip_collection_abi = [
204204
{
205205
"name": "recipient",
206206
"type": "core::starknet::contract_address::ContractAddress"
207+
},
208+
{
209+
"name": "token_uri",
210+
"type": "core::byte_array::ByteArray"
207211
}
208212
],
209213
"outputs": [
@@ -224,6 +228,10 @@ export const ip_collection_abi = [
224228
{
225229
"name": "recipients",
226230
"type": "core::array::Array::<core::starknet::contract_address::ContractAddress>"
231+
},
232+
{
233+
"name": "token_uris",
234+
"type": "core::array::Array::<core::byte_array::ByteArray>"
227235
}
228236
],
229237
"outputs": [

src/app/StarknetProviderWrapper.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { StarknetConfig, InjectedConnector, publicProvider } from '@starknet-react/core';
3+
import { StarknetConfig, InjectedConnector, jsonRpcProvider } from '@starknet-react/core';
44
import { mainnet } from '@starknet-react/chains';
55
import type { ReactNode } from 'react';
66

@@ -10,10 +10,11 @@ const connectors = [
1010
];
1111

1212
export default function StarknetProviderWrapper({ children }: { children: ReactNode }) {
13+
const nodeUrl = process.env.NEXT_PUBLIC_STARKNET_RPC_URL || 'https://starknet-mainnet.public.blastapi.io/rpc/v0_7';
1314
return (
1415
<StarknetConfig
1516
chains={[mainnet]}
16-
provider={publicProvider()}
17+
provider={jsonRpcProvider({ rpc: () => ({ nodeUrl }) })}
1718
connectors={connectors}
1819
autoConnect
1920
>

0 commit comments

Comments
 (0)