Commit 285005b8 authored by kevinflo's avatar kevinflo

mainnet contract address. reverted nextjs version. board hosting info. mainnet...

mainnet contract address. reverted nextjs version. board hosting info. mainnet provider. about copy changes
parent d2f8682b
{
"DPOSTS": {
"RINKEBY": "0x33D430BC40141917F4389CC340dC3DEFA3df8526",
"RINKEBY2": "0xA323C7A77c8778C96A2b89706331173fD306A0DC",
"RINKEBY3": "0x6830D2D3F83295056A6600D45c3c6C72E0987478",
"RINKEBY4": "0xcba065DCD2b7A8460bF3882d2586D75dE9E92E0f",
"RINKEBY5": "0xC18A50F422a5e224E8A9aAAF21AE8C4489E3Be40",
"RINKEBY6": "0xec42474bC2Fc05cdddEfA876d17737183FF4e4Fb"
"RINKEBY6": "0xec42474bC2Fc05cdddEfA876d17737183FF4e4Fb",
"MAINNET": "0x779e432EE590DCE3F18837cFe54C0e9e5C69bFb5"
}
}
......@@ -4,7 +4,7 @@ const addresses = require('../addresses.json');
const instance = new web3.eth.Contract(
JSON.parse(Dposts.interface),
addresses.DPOSTS.RINKEBY6
addresses.DPOSTS.MAINNET
);
export default instance;
import Web3 from 'web3';
const INFURA_RINKEBY = require('../secrets.json').INFURA2.RINKEBY;
const INFURA_MAINNET = require('../secrets.json').INFURA2.MAINNET;
let web3;
if (typeof window !== 'undefined' && typeof window.web3 !== 'undefined') {
web3 = new Web3(window.web3.currentProvider);
web3.isServer = false;
} else {
const provider = new Web3.providers.HttpProvider(INFURA_RINKEBY);
const provider = new Web3.providers.HttpProvider(INFURA_MAINNET);
web3 = new Web3(provider);
web3.isServer = true;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -16,7 +16,7 @@
"bootstrap": "^4.1.0",
"ganache-cli": "^6.1.0",
"mocha": "^5.0.5",
"next": "^6.0.3",
"next": "^5.1.0",
"node-sass": "^4.8.3",
"react": "^16.3.1",
"react-dom": "^16.3.1",
......
......@@ -36,10 +36,10 @@ class MainNavbar extends React.Component {
<Nav className="ml-auto" navbar>
<NavItem>
<NavLink
href="https://github.com/kevinflo/dposts"
href="http://code.kevinflo.com/decentralizedposts"
target="_blank"
>
GitHub
Open Source
</NavLink>
</NavItem>
<NavItem>
......
......@@ -6,7 +6,33 @@ class BoardHosting extends React.Component {
render() {
return (
<Page>
<p>this is info on board hosting</p>
<ul>
<li>
Visit this site with a decentralized app browser (like{' '}
<a
href="https://metamask.io/"
target="_blank"
rel="noopener noreferrer"
>
metamask
</a>)
</li>
<li>Create a board using the "Create Board" button above</li>
<li>Save the contract address</li>
<li>
Head to{' '}
<a
href="http://code.kevinflo.com/decentralizedboard"
target="_blank"
rel="noopener noreferrer"
>
code.kevinflo.com/decentralizedboard
</a>
</li>
<li>
Switch out the contract address for your own and deploy the site
</li>
</ul>
</Page>
);
}
......
......@@ -111,8 +111,8 @@ class Index extends React.Component {
</p>
<p>
Quicky I saw when I started building what it *feels* like to build
a decentralized app. What the limitations are. What it pushes you
towards.
a decentralized app given the current limitations of the Ethereum
platform.
</p>
<p>
Counterintuitively (and this is my main point), writing an app
......@@ -120,7 +120,6 @@ class Index extends React.Component {
most centralized app EVER.
</p>
<p>What? No, a dapp is decentralized, right?</p>
<h2>Writing a Dapp</h2>
<p>
You're really hamstrung by the platform, but you also can kind of
......@@ -159,7 +158,7 @@ class Index extends React.Component {
everybody's pictures here!" and then the next day say "Oh wait btw
none of the posts are in order anymore and if you want people to
see them you can pay us and if you don't like it well too bad
nobody but us can write an instagram client and btw fk you."
nobody but us can write an instagram client."
</p>
<p>
You just write your app, and the decisions you make writing it are
......@@ -231,12 +230,14 @@ class Index extends React.Component {
</p>
<p>
Is this perfect? No! The value of ETH fluctuates. The visual
design and code of this are pretty funny how bad they are. This is
just a sketch of what I think is a new possible combination of a
bunch of old ideas that are cool. I'm not so sure this precise
combination (federation on top of decentralization with a
constrained incentive structure) was possible before the advent of
dapps, but it's an interesting combo worth exploring.
design and code of this are pretty funny how bad they are. I
didn't trust the code or structure of it enough to not make myself
the contract owner (I'd be surprised if the contract is bug-free).
This is just a sketch of what I think is a new possible
combination of a bunch of old ideas that are cool. I'm not so sure
this precise combination (federation on top of decentralization
with a constrained incentive structure) was possible before the
advent of dapps, but it's an interesting combo worth exploring.
</p>
<p>
I'm also not saying this is how things should work. Most people
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment