This sheet goes along with this SSH YouTube tutorial
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
| const fetchLatestBlock = () => | |
| fetch(`https://blockchain.info/q/latesthash?cors=true`) | |
| .then(r => r.text()); | |
| const fetchMerkleRootAndTransactions = block => | |
| fetch(`https://blockchain.info/rawblock/${block}?cors=true`) | |
| .then(r => r.json()) | |
| .then(d => [d.mrkl_root, d.tx.map(t => t.hash)]); | |
| const random = arr => |
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
| 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' |
| 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; |
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.
Let's ensure we have Node/NPM installed on our PC. If we don't have it installed, head over here for a guide.
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.
In this workshop, you will learn about how to build a decentralized identity profile with Ethereum on Ceramic Networks.
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.
| // 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; |
| // 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; |
| [ | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address", | |
| "name": "tokenManagerDeployer_", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "address", |