Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{error::Error, hash::{DefaultHasher, Hash, Hasher}}; | |
trait Auction { | |
fn commit(a: u8, b: u8) -> Result<Vec<u8>, Box<dyn Error>>; | |
fn open(input: u8, commitment: Vec<u8>) -> Result<bool, Box<dyn Error>>; | |
} | |
struct Auctioning {} | |
impl Auctioning { | |
fn to_hash(value: u8) -> Vec<u8> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mayowa Obisesan | |
// A script that queries an ethereum account balance, transaction count and blockNumber on ethereum's mainnet, | |
// sepolia and goerli testnet | |
import { ethers } from 'ethers'; | |
const address: string = "0x298AAA9A0822eB8117F9ea24D28c897E83415440"; | |
const accountDetails = async (networkType: string) => { | |
const provider = ethers.getDefaultProvider(networkType); |