Skip to content

Instantly share code, notes, and snippets.

View Olanetsoft's full-sized avatar
😉

Idris Olubisi Olanetsoft

😉
View GitHub Profile
@Olanetsoft
Olanetsoft / VideoAnalyticsData.js
Created May 20, 2024 17:19
Video Analytics Data
//...
const VideoAnalyticsData = () => {
//...
return (
<div className="flex flex-col items-center w-full bg-white rounded-lg shadow-lg p-6">
<h2 className="text-2xl font-bold mb-4 text-gray-900">
const hre = require("hardhat");
const crypto = require("crypto");
const ethers = hre.ethers;
const {
AxelarQueryAPI,
Environment,
EvmChain,
GasToken,
} = require("@axelar-network/axelarjs-sdk");
@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. */