Skip to content

Commit 2304e6a

Browse files
authored
Merge pull request #959 from hirosystems/feat/hiro-hacks
2 parents cf3bd94 + 3e331e1 commit 2304e6a

File tree

8 files changed

+51
-15
lines changed

8 files changed

+51
-15
lines changed

app/cookbook/components/snippet-result.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function SnippetResult({
7373

7474
try {
7575
const simnet = await initSimnet();
76-
await simnet.initEmptySession();
76+
await simnet.initEmptySession(false);
7777
simnet.deployer = "ST000000000000000000002AMW42H";
7878
const deployer = simnet.deployer;
7979
console.log("deployer", deployer);

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ export default function RootLayout({
4242
<Banner
4343
id="hiro-hacks"
4444
cta="Learn more"
45-
url="/stacks/hacks"
45+
url="/stacks/hacks/recipes"
4646
startDate="2025-02-19T17:00:00.000Z"
4747
endDate="2025-02-25T23:59:59.999Z"
4848
mobileText="Hiro Hacks is live!"
4949
>
50-
Get started with this month's Hiro Hacks theme: Developer tools
50+
Get started with this month's theme: Hiro Cookbook
5151
</Banner>
5252
{children}
5353
<Footer />

components/code/clarinet-sdk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const ClarinetSDK: React.FC = () => {
1818

1919
async function runCode() {
2020
const simnet = await initSimnet();
21-
await simnet.initEmptySession();
21+
await simnet.initEmptySession(false);
2222
simnet.setEpoch("2.5");
2323

2424
const result = simnet.runSnippet(clarityCode) as any;

content/docs/stacks/hacks/season-one/ai-x-stacks.mdx renamed to content/docs/stacks/hacks/archive/ai.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Submit your project [here](https://hirohacks25.paperform.co/).
1515

1616
<iframe width="770" height="315" src="https://www.youtube.com/embed/GiKRSAMQNqo?si=EQ74OTyTsOzcPIK-" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>
1717

18-
## Example Project Ideas
18+
## Example project ideas
1919

2020
### 1. AI Contract Analyzer
2121
- Build a tool that uses LLMs to audit and explain [Clarity contracts](/stacks/clarity)
@@ -38,4 +38,5 @@ _Review the [submission guidelines](/stacks/hacks/#rules) for project requiremen
3838

3939
## Resources
4040

41-
- [Clarity Codex](https://github.com/leahjlou/clarity-codex/)
41+
- [Clarity Codex](https://github.com/leahjlou/clarity-codex/)
42+
- [Stacks Discord](https://stacks.chat)

content/docs/stacks/hacks/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ To submit your projects each month, [complete this form](https://hirohacks25.pap
1616

1717
| Week | Theme | Description |
1818
| --- | --- | --- |
19-
| Jan 22-28 | [AI x Stacks](/stacks/hacks/season-one/ai-x-stacks) | Build something that combines AI capabilities with Stacks. |
20-
| Feb 19-25 | TBA | Coming soon |
19+
| Jan 22-28 | [AI x Stacks](/stacks/hacks/jan/ai) | Build something that combines AI capabilities with Stacks. |
20+
| Feb 19-25 | [Create your own recipe](/stacks/hacks/recipes) | Create your own recipe for the Hiro Cookbook and share it with the community. |
2121
| Mar 19-25 | TBA | Coming soon |
2222
| Apr 23-29 | TBA | Coming soon |
2323
| May 21-27 | TBA | Coming soon |
@@ -28,7 +28,7 @@ To submit your projects each month, [complete this form](https://hirohacks25.pap
2828

2929
At the end of each monthly hack, Hiro will host a livestream on X going over submissions and announcing that month's winning developer. The prize? Fame, glory and Hiro swag.
3030

31-
Top developers from these monthly hacks will be invited to participate in a Hiro hacker house tied to one of the year's biggest conferences, all expenses covered. We'll share more details on that house soon, so stay tuned.
31+
Top developers from these monthly hacks will be invited to participate in a Hiro hacker house tied to one of the year's biggest conferences, key expenses covered. We'll share more details on that house soon, so stay tuned.
3232

3333
## Resources
3434

@@ -42,8 +42,8 @@ To be eligible for swag and the hacker house, you must submit your project throu
4242

4343
In that submission, we expect to see:
4444

45-
- A link to your project
46-
- A link to your code (a clear README is always appreciated)
47-
- A project description that covers the problem being solved, the technical approach, and future improvements for the project
45+
- A link to your project (if applicable)
46+
- A link to your code with a clear README (or link to a PR if submitting a recipe)
47+
- A description that covers the problem being solved, the technical approach, and future improvements for the project
4848

4949
In terms of selecting winners, submissions will be evaluated on their technical implementation, their innovation/creativity, and their documentation/presentation. To learn more about the rules, read [Hiro Hacks Terms & Conditions](https://www.hiro.so/hiro-hacks-rules).

content/docs/stacks/hacks/meta.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"pages": [
55
"---Hiro Hacks---",
66
"index",
7-
"---Season 1---",
8-
"season-one/ai-x-stacks",
7+
"---Hacks---",
8+
"recipes",
99
"---Archive---",
10+
"archive/ai",
1011
"archive/build-a-friend-tech-clone",
1112
"archive/build-a-decentralized-grants-program",
1213
"archive/build-a-custom-api"

content/docs/stacks/hacks/recipes.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Create a recipe for the Hiro Cookbook
3+
description: Create your own recipe for the Hiro Cookbook and share it with the community.
4+
---
5+
6+
## February: Create your own recipe for the Hiro Cookbook
7+
8+
*Create your own recipe that you think will help other developers build on Stacks*
9+
10+
**Timeline**: February 19-25, 2025
11+
12+
This month's challenge invites you to create your own recipe for the [Hiro Cookbook](/cookbook) and share it with the community. Each recipe is a reusable code snippet that handles some specific function, and each recipe has written annotations, so readers know exactly how the code in a given recipe works and what parameters you can customize. Your submission should be a recipe that you think will help other developers build on Stacks.
13+
14+
Submit your project [here](https://hirohacks25.paperform.co/).
15+
16+
<iframe width="770" height="315" src="https://www.youtube.com/embed/z9ULVhygKCE" title="Hiro Hacks: Cookbook" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>
17+
18+
## Some example recipe ideas to explore
19+
20+
- Using the `Cl` parse helper function to convert string values into Clarity Values
21+
- Creating and signing a message for smart contract verification
22+
- How to construct a non-sequential multisig transaction
23+
- Create a helper function to determine if a transaction has been signed
24+
25+
_For this month's submission, provide a link to your recipe in a PR to the [Recipes](https://github.com/hirosystems/recipes) repo. To review the general submission guidelines, see the [Hiro Hacks](/stacks/hacks) page._
26+
27+
---
28+
29+
## Resources
30+
31+
- [Hiro Cookbook](/cookbook)
32+
- [Recipes repo](https://github.com/hirosystems/recipes)
33+
- [Submission form](https://hirohacks25.paperform.co/)
34+
- [Stacks Discord](https://stacks.chat)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@codesandbox/sandpack-client": "^2.19.8",
18-
"@hirosystems/clarinet-sdk-browser": "^2.12.0",
18+
"@hirosystems/clarinet-sdk-browser": "2.13.0",
1919
"@next/env": "^14.0.0",
2020
"@next/third-parties": "^14.2.4",
2121
"@radix-ui/react-avatar": "^1.0.4",

0 commit comments

Comments
 (0)