Inspired by the github universe alert: https://s3-us-west-2.amazonaws.com/s.cdpn.io/173256/github-universe.png
A Pen by Mike Schultz on CodePen.
Inspired by the github universe alert: https://s3-us-west-2.amazonaws.com/s.cdpn.io/173256/github-universe.png
A Pen by Mike Schultz on CodePen.
import { gql } from '@apollo/client'; | |
import * as MENUS from '../constants/menus'; | |
import { BlogInfoFragment } from '../fragments/GeneralSettings'; | |
import { | |
Header, | |
Footer, | |
Main, | |
Container, | |
EntryHeader, | |
NavigationMenu, |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) | |
pragma solidity ^0.8.0; | |
import "./IAccessControl.sol"; | |
import "../utils/Context.sol"; | |
import "../utils/Strings.sol"; | |
import "../utils/introspection/ERC165.sol"; |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Collection of functions related to the address type | |
*/ | |
library Address { | |
/** | |
* @dev Returns true if `account` is a contract. |
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
app.post('/events', async function(req, res) { | |
// Add your code here | |
const lastPostHashHex = req.body.lastPostHashHex | |
const username = req.body.username | |
console.log("publicKey",publicKey) | |
const desoApi = new DesoApi() | |
const returnedPosts = await desoApi.getPostsForPublicKey("",publicKey,lastPostHashHex,50) | |
console.log(returnedPosts) |