Skip to content

Commit

Permalink
sand garden >> ship yard
Browse files Browse the repository at this point in the history
  • Loading branch information
escottalexander committed Jun 7, 2024
1 parent 34daf63 commit 4001256
Show file tree
Hide file tree
Showing 18 changed files with 70 additions and 412 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 👾 Sand Garden Website
# 🚢 Ship Yard Cohort Website

We're running an experiment to fund focused, high-leverage open-source work by providing a monthly UBI to developers, handpicked by Carlos & BG Sand Garden, rewarding them for their ongoing contributions to BuidlGuidl and the Ethereum Ecosystem.
We're running an experiment to fund focused, high-leverage open-source work by providing streams to builders rewarding them for their ongoing contributions to BuidlGuidl and the Ethereum Ecosystem.

Our emphasis is on quality over quantity, striving for well-crafted products. Our approach embraces iteration, refining our builds while fostering a culture of continuous learning and improvement.

This initiative is made possible by BuidlGuidl!

Read more at the [F.A.Q](https://sandgarden.buidlguidl.com/faq)
Read more at the [F.A.Q](https://shipyard.buidlguidl.com/faq)

---

Expand Down Expand Up @@ -35,7 +35,7 @@ We are using Ponder for indexing cohorts events (adding builders, withdrawals, e
You have 3 options:
1. Run your own Ponder instance (configure the URL in `packages/nextjs/_app.tsx`)
2. Use the BG Ponder instance (make a [PR](https://github.com/BuidlGuidl/bg-ponder-indexer) with your cohorts contract address)
3. Rollback to fetching events with SE-2 hooks (check out PRs [#6](https://github.com/BuidlGuidl/sandgarden.buidlguidl.com/pull/6) and [#7](https://github.com/BuidlGuidl/sandgarden.buidlguidl.com/pull/7))
3. Rollback to fetching events with SE-2 hooks (check out PRs [#6](https://github.com/BuidlGuidl/shipyard.buidlguidl.com/pull/6) and [#7](https://github.com/BuidlGuidl/shipyard.buidlguidl.com/pull/7))

## Quickstart

Expand All @@ -45,7 +45,7 @@ To get started follow the steps below:

```
git clone https://github.com/buidlguidl/.git
cd sandgarden.buidlguidl.com
cd shipyard.buidlguidl.com
yarn install
```

Expand Down
10 changes: 2 additions & 8 deletions builderList.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
const builderList = [
"0x1A2d838c4bbd1e73d162d0777d142c1d783Cb831", // shivbhonde.eth
"0x5dCb5f4F39Caa6Ca25380cfc42280330b49d3c93", // damianmarti.eth
"0xB4F53bd85c00EF22946d24Ae26BC38Ac64F5E7B1", // pabl0cks.eth
"0x0D0f9Ebd254e510AA6F3788ecb6E6fC8bf78188F", // dgrcode.eth
"0x4cBe80191E63567191668D860ACabaF15DAC5512", // andrealbiac.eth
"0x45334F41aAA464528CD5bc0F582acadC49Eb0Cd1", // 0xrinat.eth
"0x1990a6bCdb13D33463cBA884a1aE6020292523e8", // inc.carletex.eth
"0xA122A7Ed69597DBd77Fb2C539E13B7C3fB804637", // portdev.eth
"0x92f444Fc0CDa9D47521fB1D53672c4c2898e2328",
"0x1c80D2A677c4a7756cf7D00fbb1c1766321333c3"
];

export { builderList };
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/access/Ownable.sol";

// ___ ___ ___ ___ _ _ ___ ___ ___ ___ ___ ___ _ _
// | _ ) / __| o O O / __| / \ | \| | | \ o O O / __| / \ | _ \ | \ | __| | \| |
// | _ \ | (_ | o \__ \ | - | | .` | | |) | o | (_ | | - | | / | |) | | _| | .` |
// |___/ \___| TS__[O] |___/ |_|_| |_|\_| |___/ TS__[O] \___| |_|_| |_|_\ |___/ |___| |_|\_|
// _|"""""|_|"""""| {======|_|"""""|_|"""""|_|"""""|_|"""""| {======|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
// "`-0-0-'"`-0-0-'./o--000'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'./o--000'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'

contract SandGardenStreams is Ownable {
// ██████╗ ██████╗ ██╗ ██╗ ██████╗ ██████╗ ████████╗ ███████╗████████╗██████╗ ███████╗ █████╗ ███╗ ███╗███████╗
// ██╔════╝██╔═══██╗██║ ██║██╔═══██╗██╔══██╗╚══██╔══╝ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔══██╗████╗ ████║██╔════╝
// ██║ ██║ ██║███████║██║ ██║██████╔╝ ██║ ███████╗ ██║ ██████╔╝█████╗ ███████║██╔████╔██║███████╗
// ██║ ██║ ██║██╔══██║██║ ██║██╔══██╗ ██║ ╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║╚════██║
// ╚██████╗╚██████╔╝██║ ██║╚██████╔╝██║ ██║ ██║ ███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║███████║
// ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
contract CohortStreams is Ownable {

struct BuilderStreamInfo {
uint256 cap;
Expand Down
8 changes: 5 additions & 3 deletions packages/hardhat/deploy/00_deploy_your_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const deployYourContract: DeployFunction = async function (hre: HardhatRuntimeEn
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;

await deploy("SandGardenStreams", {
await deploy("CohortStreams", {
from: deployer,
// Contract constructor arguments
args: [],
Expand All @@ -33,15 +33,17 @@ const deployYourContract: DeployFunction = async function (hre: HardhatRuntimeEn
autoMine: true,
});

const yourContract = await hre.ethers.getContract("SandGardenStreams", deployer);
const yourContract = await hre.ethers.getContract("CohortStreams", deployer);

console.log("🫡 adding batch of builders");
const builderStakes = Array(builderList.length).fill(ethers.utils.parseEther("1.5"));
await yourContract.addBatch(builderList, builderStakes);

await yourContract.transferOwnership(builderList[0]);
};

export default deployYourContract;

// Tags are useful if you have multiple deploy files and only want to run one of them.
// e.g. yarn deploy --tags YourContract
deployYourContract.tags = ["YourContract"];
deployYourContract.tags = ["CohortStreams"];
18 changes: 8 additions & 10 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,27 @@ import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaff
export const Header = () => (
<>
<Head>
<title>BG Sand Garden | BuidlGuidl Grants</title>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.png" />
<title>BG Ship Yard | BuidlGuidl Grants</title>
<link rel="icon" type="image/png" sizes="96x96" href="/favicon.png" />
<meta
name="description"
content="We're running an experiment to fund focused, high-leverage open-source work by providing a monthly UBI to
developers, handpicked by Carlos & BG Sand Garden, rewarding them for their ongoing contributions to
BuidlGuidl and Ethereum Ecosystem."
content="We're running an experiment to fund focused, high-leverage open-source work by providing streams to builders rewarding them for their ongoing contributions to BuidlGuidl and the Ethereum Ecosystem."
/>
<meta property="og:title" content="BG Sand Garden | BuidlGuidl Grants" />
<meta property="og:title" content="BG Ship Yard | BuidlGuidl Grants" />
<meta
property="og:description"
content="We're running an experiment to fund focused, high-leverage open-source work by providing a monthly UBI to
developers, handpicked by Carlos & BG Sand Garden, rewarding them for their ongoing contributions to
developers, handpicked by Carlos & BG Ship Yard, rewarding them for their ongoing contributions to
BuidlGuidl and Ethereum Ecosystem."
/>
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content="https://sand-garden.vercel.app/thumbnail.png" />
<meta property="twitter:image" content="https://sand-garden.vercel.app/thumbnail.png" />
<meta property="og:image" content="https://ship-yard.vercel.app/thumbnail.png" />
<meta property="twitter:image" content="https://ship-yard.vercel.app/thumbnail.png" />
</Head>
<div className="sticky lg:static top-0 navbar bg-base-100 min-h-0 flex-shrink-0 justify-between z-20 p-4 items-start">
<div className="flex-col items-start">
<p className="m-0 text-xl md:text-3xl font-bold text-secondary !leading-7">
<Link href="/">BG Sand Garden</Link>
<Link href="/">BG Ship Yard</Link>
</p>
<p className="m-0 text-secondary leading-5 opacity-50">BuidlGuidl Grants</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/nextjs/components/StreamContractInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { useDeployedContractInfo, useScaffoldContractRead } from "~~/hooks/scaff

export const StreamContractInfo = () => {
const { address } = useAccount();
const { data: streamContract } = useDeployedContractInfo("SandGardenStreams");
const { data: streamContract } = useDeployedContractInfo("CohortStreams");

const { data: owner } = useScaffoldContractRead({
contractName: "SandGardenStreams",
contractName: "CohortStreams",
functionName: "owner",
});

const { data: builderData } = useScaffoldContractRead({
contractName: "SandGardenStreams",
contractName: "CohortStreams",
functionName: "streamedBuilders",
args: [address],
}) as {
Expand Down
6 changes: 3 additions & 3 deletions packages/nextjs/components/StreamContractInfo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { useDeployedContractInfo, useScaffoldContractRead } from "~~/hooks/scaff

export const StreamContractInfo2 = () => {
const { address } = useAccount();
const { data: streamContract } = useDeployedContractInfo("SandGardenStreams");
const { data: streamContract } = useDeployedContractInfo("CohortStreams");

const { data: owner } = useScaffoldContractRead({
contractName: "SandGardenStreams",
contractName: "CohortStreams",
functionName: "owner",
});

const { data: builderData } = useScaffoldContractRead({
contractName: "SandGardenStreams",
contractName: "CohortStreams",
functionName: "streamedBuilders",
args: [address],
}) as {
Expand Down
Loading

0 comments on commit 4001256

Please sign in to comment.