Skip to content

Instantly share code, notes, and snippets.

View Olanetsoft's full-sized avatar
😉

Idris Olubisi Olanetsoft

😉
View GitHub Profile
@Olanetsoft
Olanetsoft / MultichainRWA.sol
Last active August 30, 2024 14:23
Multichain RWA Lending Workshop
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MockRWAToken is ERC721, Ownable {
uint256 private _nextTokenId;
constructor(
@Olanetsoft
Olanetsoft / interchainTokenFactoryABI.json
Created January 17, 2024 17:46
Interchain Token Factory ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "interchainTokenService_",
"type": "address"
}
],
"stateMutability": "nonpayable",
@Olanetsoft
Olanetsoft / interchainTokenServiceABI.json
Last active February 27, 2024 12:35
Interchain Token Service ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenManagerDeployer_",
"type": "address"
},
{
"internalType": "address",
@Olanetsoft
Olanetsoft / tm-deploy.js
Last active November 27, 2023 15:21
Deploy token manager on Base Goerli testnet
// Axelar chains config https://github.com/axelarnetwork/axelar-contract-deployments/blob/d4b2a6ad23d3a24eaf5e94a5a2406e4a27c91431/axelar-chains-config/info/testnet.json#L1059
// Base Goerli test
const hre = require("hardhat");
const crypto = require("crypto");
const ITSContractABI = require("../utils/its/abi");
const tokenManagerMintBurnABI = require("../utils/its/tokenManagerMintBurnABI");
const MINT_BURN = 0;
const LOCK_UNLOCK = 2;
@Olanetsoft
Olanetsoft / SendMessage.sol
Created September 6, 2023 12:25
2-way Communication Smart Contract with Solidity and Axelar
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { AxelarExecutable } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/executable/AxelarExecutable.sol';
import { IAxelarGateway } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGateway.sol';
import { IAxelarGasService } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGasService.sol';
import { IERC20 } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IERC20.sol';
contract ExecutableSample is AxelarExecutable {
string public message;
@Olanetsoft
Olanetsoft / index.md
Last active May 14, 2024 14:51
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.

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

import './styles/App.css';
import twitterLogo from './assets/twitter-logo.svg';
import { ethers } from "ethers";
import React, { useEffect, useState } from "react";
import myEpicNft from './utils/MyEpicNFT.json';
const TWITTER_HANDLE = '_buildspace';
const TWITTER_LINK = `https://twitter.com/${TWITTER_HANDLE}`;
const OPENSEA_LINK = '';
const TOTAL_MINT_COUNT = 50;
@dabit3
dabit3 / App.js
Created August 11, 2021 15:44
Sign in with Ethereum & Decentralized Identity with Ceramic, IDX, React, and 3ID Connect
import './App.css';
import { useState } from 'react'
import CeramicClient from '@ceramicnetwork/http-client'
import ThreeIdResolver from '@ceramicnetwork/3id-did-resolver'
import { EthereumAuthProvider, ThreeIdConnect } from '@3id/connect'
import { DID } from 'dids'
import { IDX } from '@ceramicstudio/idx'