You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/base-account/basenames/basenames-wagmi-tutorial.mdx
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,6 @@ In your project folder, create the apis directory and add a basenames.tsx file:
86
86
87
87
<Notetitle="What's happening in the code?">
88
88
`convertReverseNodeToBytes()`: This function is creating the reverse node so we can look up a name given an address. Each address gets its own reverse record in our registry that's created in a deterministic way.
89
-
You can see the implementation of `convertReverseNodeToBytes()` on [GitHub](https://github.com/coinbase/onchainkit/blob/main/packages/onchainkit/src/identity/utils/convertReverseNodeToBytes.ts)
90
89
`BasenameTextRecordKeys`: Metadata (e.g., github, twitter, etc.) are stored as text records so we can look them up based on the enum key.
Copy file name to clipboardExpand all lines: docs/base-chain/quickstart/deploy-on-base.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ This will return the initial value of the Counter contract's `number` storage va
167
167
168
168
## Next Steps
169
169
170
-
- Use [Onchainkit](https://onchainkit.com)to connect your frontend to your contracts! Onchainkit is a library of ready-to-use React components and Typescript utilities.
170
+
- Use [wagmi](https://wagmi.sh) or [viem](https://viem.sh)to connect your frontend to your contracts.
171
171
- Learn more about interacting with your contracts in the command line using Foundry from our [Foundry tutorial](/learn/foundry/deploy-with-foundry).
Copy file name to clipboardExpand all lines: docs/base-chain/quickstart/why-base.mdx
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@ Some of the tooling that makes this possible:
43
43
44
44
-**Base Account:** Onboard your users quickly and securely. Users never have to worry about seed phrases again.
45
45
-**Coinbase Developer Platform:** Access specialized developer services for onchain development, such as free node software, sponsored transactions, and other tools to help you fine-tune your application.
46
-
-**OnchainKit:** A React component library (TypeScript) to help you build apps faster.
47
46
-**Basenames:** More than just human-readable text to replace an address—Basenames are the front page to a builder’s onchain profile.
48
47
-**Verifications:** Enable unique experiences for users with verified credentials.
Copy file name to clipboardExpand all lines: docs/snippets/prompt-library.mdx
+2-34Lines changed: 2 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,15 +38,6 @@ Cursor Rules allow you to provide consistent context to Cursor AI, making it mor
38
38
39
39
4. Save your rules file and Cursor will apply these rules to its AI suggestions
40
40
41
-
### Setting Up an OnchainKit Project
42
-
To create a new OnchainKit project:
43
-
```
44
-
npm create onchain@latest
45
-
```
46
-
After creating your project, prompt to generate comprehensive documentation for your new OnchainKit project.
47
-
48
-
49
-
50
41
## Creating Project Documentation
51
42
A comprehensive instructions file helps AI tools understand your project better. This should be created early in your project and updated regularly.
52
43
@@ -72,14 +63,12 @@ Example: ❌ "Help me with my code"
72
63
73
64
**Ready-to-Use Prompt:**
74
65
```
75
-
I'm working on a onchainkit project using [frameworks/libraries]. I need your help with:
66
+
I'm working on a project using [frameworks/libraries]. I need your help with:
76
67
77
68
1. Problem: [describe specific issue]
78
69
2. Current approach: [explain what you've tried]
79
70
3. Constraints: [mention any technical limitations]
80
71
4. Expected outcome: [describe what success looks like]
81
-
82
-
Here's the relevant documentation @https://docs.base.org/onchainkit/llms.txt
83
72
```
84
73
85
74
**Ask for Iterations**
@@ -97,27 +86,6 @@ Let's approach this step by step:
97
86
Please start with step 1 now.
98
87
```
99
88
100
-
## Working with OnchainKit
101
-
### Leveraging LLMs.txt for Documentation
102
-
The OnchainKit project provides optimized documentation in the form of LLMs.txt files. These files are specifically formatted to be consumed by AI models:
103
-
1. Use OnchainKit Documentation
104
-
2.Find the component you want to implement
105
-
3.Copy the corresponding LLMs.txt url
106
-
4.Paste it into your prompt to provide context
107
-
108
-
Example LLMs.txt Usage:
109
-
```
110
-
I'm implementing a swap component with OnchainKit. Here's the relevant LLMs.txt:
111
-
112
-
@https://docs.base.org/onchainkit/llms.txt
113
-
114
-
Based on this documentation, please show me how to implement a wallet connector that:
115
-
1. Swap from base usdc to base th
116
-
2. Handles connection states properly
117
-
3. Includes error handling
118
-
4. Follows best practices for user experience
119
-
```
120
-
121
89
**Component Integration Example**
122
90
123
91
Ready-to-Use Prompt for Token Balance Display:
@@ -211,7 +179,7 @@ I notice you suggested two approaches. To clarify, I'd prefer to use the first a
211
179
- Break complex tasks into steps: Iterative approaches often work better for complex problems
212
180
- Request explanations: Ask the AI to explain generated code or concepts you don't understand
213
181
- Use formatting for clarity: Structure your prompts with clear sections and formatting
214
-
- Reference documentation: When working with specific libraries like OnchainKit, share relevant documentation
182
+
- Reference documentation: When working with specific libraries, share relevant documentation
215
183
- Test and validate: Always review and test AI-generated code before implementing
216
184
- Build on previous context: Refer to earlier parts of your conversation when iterating
217
185
- Provide feedback: Let the AI know what worked and what didn't to improve future responses
0 commit comments