Skip to content

Instantly share code, notes, and snippets.

View Olanetsoft's full-sized avatar
😉

Idris Olubisi Olanetsoft

😉
View GitHub Profile
@Olanetsoft
Olanetsoft / index.md
Created February 20, 2023 11:44
Decentralized Identity – Build a Profile with Next.js, Ethereum & Ceramic Network

Decentralized Identity – Build a Profile with Next.js, Ethereum & Ceramic Network

In this workshop, you will learn about how to build a decentralized identity profile with Ethereum on Ceramic Networks.

Prerequisites

To go through this tutorial, you'll need some experience with JavaScript and React.js. Experience with Next.js isn't a requirement, but it's nice to have.

Make sure to have Node.js or npm installed on your computer. If you don't, click here.

@Olanetsoft
Olanetsoft / awesome-article-topic-ideas.md
Created January 21, 2023 11:40
Here are some SEO, eye-catchng, clickbait article ideas that you can leverage to create content. This will be constantly updated based on relavancy.

Looking for an article ideas??

Here are some SEO, eye-catchng, clickbait article ideas that you can leverage to create content. This will be constantly updated based on relavancy.

If you already published one or two contents this year, kindly join the #1ArticlePerWeek #1ArticleBiWeekly chanllenge by sending a PR to this repo. Don't forget to drop a star ⭐️

Artificial Intelligence:

  • "Revolutionizing Healthcare: The Power of AI"
  • "The Dark Side of AI: Ethical Implications to Consider"

Series 1: Mara Blockchain Masterclass - Ghana

frame

This workshop is targeted at developers who are transitioning from Web2 to Web3 or have just recently gotten into Web3 and are looking to have a well-rounded foundation.

This first workshop is Series 1 in the three-part series that aims to introduce you to the blockchain and how to build on the blockchain.

@Olanetsoft
Olanetsoft / index.md
Last active December 9, 2022 00:31
Mara Blockchain Masterclass - Web3 developer Roadshow

Building and Deploying USDC-based Smart Contract

Building and Deploying USDC-based Smart Contract

This workshop is targeted at developers who are transitioning from Web2 to Web3 or have just recently gotten into Web3 and are looking to have a well-rounded foundation.

Step 1

Let's ensure we have Node/NPM installed on our PC. If we don't have it installed, head over here for a guide.

Step 2

@Olanetsoft
Olanetsoft / UsdcDemo.sol
Created October 18, 2022 16:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// Abstract
interface USDC {
function balanceOf(address account) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
@Olanetsoft
Olanetsoft / index.js
Created October 5, 2022 21:42
Setup provider - Getting Started on StarkNet with Infura
import dotenv from "dotenv";
import fs from "fs";
import { Account, Contract, ec, json, stark, Provider, number } from "starknet";
import readline from "readline";
dotenv.config();
// Initialize provider
const url = process.env.STARKNET_TESTNET_ENDPOINT;
@Olanetsoft
Olanetsoft / Getting-started-with-dapps.md
Last active January 1, 2024 17:56
Series 1: Mara Blockchain Masterclass - Nigeria

Series 1: Mara Blockchain Masterclass - Nigeria

This workshop is targeted at developers who are transitioning from Web2 to Web3 or have just recently gotten into Web3 and are looking to have a well-rounded foundation.

This first workshop is Series 1 in the three-part series that aims to introduce you to the blockchain and how to build on the blockchain.

Steps to set up a project, build and deploy a smart contract.

Step 1

@Olanetsoft
Olanetsoft / feed-test.js
Created April 26, 2022 09:43
Build a Decentralized News Feed using Reactjs, TailwindCSS, Etherjs, IPFS & Solidity
const { expect } = require("chai");
const { ethers } = require("hardhat");
describe("NewsFeed", function () {
this.timeout(0);
let NewsFeed;
let newsFeedContract;
before(async () => {
@Olanetsoft
Olanetsoft / NewsFeed.sol
Created April 26, 2022 09:39
Build a Decentralized News Feed using Reactjs, TailwindCSS, Etherjs, IPFS & Solidity
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract NewsFeed {
uint256 totalFeeds;
using Counters for Counters.Counter;
const main = async () => {
const [deployer] = await hre.ethers.getSigners();
const accountBalance = await deployer.getBalance();
console.log("Deploying contracts with account: ", deployer.address);
console.log("Account balance: ", accountBalance.toString());
const Token = await hre.ethers.getContractFactory("CoffeePortal");
const portal = await Token.deploy({
value: hre.ethers.utils.parseEther("0.1"),