Skip to content
Open
Changes from all 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
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ Once you've uploaded the binary encoded Edit to IPFS and have correctly formed `

```ts
import { createPublicClient, encodeAbiParameters, encodeFunctionData, type Hex, http, keccak256, toHex } from 'viem';
import { SpaceRegistryAbi, getWalletClient } from '@graphprotocol/grc-20';
import { SpaceRegistryAbi } from '@graphprotocol/grc-20/abis';
import { getWalletClient } from '@graphprotocol/grc-20';

// Contract addresses for testnet
const SPACE_REGISTRY_ADDRESS = '0xB01683b2f0d38d43fcD4D9aAB980166988924132' as const;
Expand Down Expand Up @@ -353,7 +354,8 @@ You can create personal spaces using the SpaceRegistry contract. Personal spaces

```ts
import { createPublicClient, encodeAbiParameters, encodeFunctionData, type Hex, http, keccak256, toHex } from 'viem';
import { SpaceRegistryAbi, getWalletClient } from '@graphprotocol/grc-20';
import { SpaceRegistryAbi } from '@graphprotocol/grc-20/abis';
import { getWalletClient } from '@graphprotocol/grc-20';

const SPACE_REGISTRY_ADDRESS = '0xB01683b2f0d38d43fcD4D9aAB980166988924132' as const;
const EMPTY_SPACE_ID = '0x00000000000000000000000000000000' as Hex;
Expand Down Expand Up @@ -415,7 +417,8 @@ This example shows the complete flow for creating a personal space and publishin
```ts
import { createPublicClient, encodeAbiParameters, encodeFunctionData, type Hex, http, keccak256, toHex } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { Graph, Ipfs, SpaceRegistryAbi, getWalletClient } from '@graphprotocol/grc-20';
import { Graph, Ipfs, getWalletClient } from '@graphprotocol/grc-20';
import { SpaceRegistryAbi } from '@graphprotocol/grc-20/abis';

// Contract addresses for testnet
const SPACE_REGISTRY_ADDRESS = '0xB01683b2f0d38d43fcD4D9aAB980166988924132' as const;
Expand Down