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
const Web3 = require("web3"); | |
var web3 = new Web3("https://ropsten.infura.io/v3/YOUR-API-KEY"); // use a websocket connection | |
var contractAddress = "Contract Address"; // | |
getStorageValues(); | |
async function getStorageValues(){ | |
// #1 single variable uint |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
contract SimpleStorage { | |
// this will get initialized as 0 | |
uint256 favoriteNumber; | |
bool favoriteBool; |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract ENS { | |
// pricing: would be determined by number of characters in the desired name | |
// ownership: 1. one address can only have one ENS | |
// 2. user desired name is the ens | |
// 3. if name is taken, return 'unavailable' | |
// 4. extension is .w3bridge |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title> Activity Graph </title> | |
<style> | |
.wday, | |
.calendar-graph text.month { | |
font-size: 12px; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#stepwise solution | |
def counter(word): | |
numberList = [] # empty list for numbers | |
alphaList = [] # empty list for alphabets | |
#sorting num and alpha from word into resp. list | |
for ch in word: | |
if ch.isdigit(): | |
numberList.append(ch) |