Skip to content

Instantly share code, notes, and snippets.

View Olanetsoft's full-sized avatar
😉

Idris Olubisi Olanetsoft

😉
View GitHub Profile
@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 / index.ts
Created October 4, 2023 12:23
TS config for Axelar Query API test with estimateGasFee
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
@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 / markdown.md
Last active August 10, 2023 11:44
Fullstack Interchain dApp on Linea with Axelar 🔥

Fullstack Interchain dApp on Linea with Axelar 🔥

Step 1

  • Clone the project
  • Install dependencies with npm install
  • Run the project with npm run dev

Step 2

  • Create a new folder called truffle with the following command mkdir truffle
  • cd into the folder cd truffle
@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.

@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;