Skip to content

Instantly share code, notes, and snippets.

View Olanetsoft's full-sized avatar
😉

Idris Olubisi Olanetsoft

😉
View GitHub Profile
@Olanetsoft
Olanetsoft / customTokenABI.json
Created January 24, 2024 17:58
Custom Token ABI
[
{
"inputs": [
{ "internalType": "string", "name": "name_", "type": "string" },
{ "internalType": "string", "name": "symbol_", "type": "string" },
{
"internalType": "uint256",
"name": "initialBalance_",
"type": "uint256"
},
@Olanetsoft
Olanetsoft / interchainTokenABI.json
Created January 17, 2024 17:48
Interchain Token ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "interchainTokenServiceAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
@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 / contracts...custom-contract...ERC20.sol
Created January 11, 2024 22:13
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.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { IERC20 } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IERC20.sol';
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
@Olanetsoft
Olanetsoft / contracts...custom-contract...ERC20.sol
Created January 11, 2024 22:10
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.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { IERC20 } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IERC20.sol';
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
@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