-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add global variables for commonly updated values like incentives cont…
…racts, component for dynamically rendering awesome swarm from github, revised descriptions for neighborhood terms
- Loading branch information
1 parent
4395cb0
commit 64872f8
Showing
13 changed files
with
112 additions
and
11 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Awesome List | ||
id: awesome-list | ||
--- | ||
|
||
import AwesomeList from '@site/src/components/AwesomeList'; | ||
|
||
<AwesomeList /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import Markdown from 'react-markdown'; | ||
|
||
const AwesomeList = () => { | ||
const [content, setContent] = useState(''); | ||
|
||
useEffect(() => { | ||
fetch('https://raw.githubusercontent.com/ethersphere/awesome-swarm/refs/heads/master/README.md') | ||
.then((res) => res.text()) | ||
.then((text) => setContent(text)); | ||
}, []); | ||
|
||
return <Markdown>{content}</Markdown>; | ||
}; | ||
|
||
export default AwesomeList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const globalVariables = { | ||
exampleVariable: 'Hello, World!', | ||
postageStampContract: '0x45a1502382541Cd610CC9068e88727426b696293', | ||
stakingContract: '0xBe212EA1A4978a64e8f7636Ae18305C38CA092Bd', | ||
redistributionContract: '0xFfF73fd14537277B3F3807e1AB0F85E17c0ABea5', | ||
priceOracleContract: '0x86DE783Bf23Bc13DaeF5A55ec531C198da8f10cF' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import Markdown from 'react-markdown'; | ||
|
||
export default function AwesomeList() { | ||
const [content, setContent] = useState(''); | ||
|
||
useEffect(() => { | ||
fetch('https://raw.githubusercontent.com/ethersphere/awesome-swarm/refs/heads/master/README.md') | ||
.then((res) => res.text()) | ||
.then((text) => setContent(text)); | ||
}, []); | ||
|
||
return ( | ||
<div> | ||
<Markdown>{content}</Markdown> | ||
</div> | ||
); | ||
} |