This file contains hidden or 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
/** | |
*Submitted for verification at Etherscan.io on 2021-09-05 | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
/// [MIT License] | |
/// @title Base64 |
This file contains hidden or 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
pragma solidity 0.8.0; | |
// We need some util functions for strings. | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "hardhat/console.sol"; | |
contract MyEpicNFT is ERC721URIStorage { |
This file contains hidden or 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: UNLICENSED | |
pragma solidity ^0.8.1; | |
// Precisamos de algumas funcoes utilitarias. | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "hardhat/console.sol"; | |
This file contains hidden or 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: UNLICENSED | |
pragma solidity ^0.8.1; | |
// Primeiro importamos alguns contratos do OpenZeppelin. | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "hardhat/console.sol"; | |
// Nós herdamos o contrato que importamos. Isso significa que | |
// teremos acesso aos métodos do contrato herdado. | |
contract MyEpicNFT is ERC721URIStorage { | |
// Mágica dada pelo OpenZeppelin para nos ajudar a observar os tokenIds. |
This file contains hidden or 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
import React, { useEffect, useState } from "react"; | |
import { ethers } from "ethers"; | |
import './App.css'; | |
import abi from "./utils/WavePortal.json" | |
export default function App() { | |
const [currentAccount, setCurrentAccount] = useState(""); | |
const [allWaves, setAllWaves] = useState([]); | |
const contractAddress = "0xd289A2e424dE94E9dcfFE03Ae050961Df70a4474"; |
This file contains hidden or 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
import React, { useEffect, useState } from "react"; | |
import { ethers } from "ethers"; | |
import './App.css'; | |
import abi from "./utils/WavePortal.json" | |
export default function App() { | |
const [currentAccount, setCurrentAccount] = useState(""); | |
const [allWaves, setAllWaves] = useState([]); | |
const contractAddress = "0xd289A2e424dE94E9dcfFE03Ae050961Df70a4474"; |
This file contains hidden or 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
import React, { useEffect, useState } from "react"; | |
import { ethers } from "ethers"; | |
import './App.css'; | |
import abi from "./utils/WavePortal.json" | |
export default function App() { | |
const [currentAccount, setCurrentAccount] = useState(""); | |
const contractAddress = "0xF2482AEDB6bfF7Cc73772fCBCeAA9157ff00c287"; | |
const contractABI = abi.abi; |
This file contains hidden or 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: UNLICENSED | |
pragma solidity ^0.8.0; | |
import "hardhat/console.sol"; | |
contract WavePortal { | |
uint256 totalWaves; | |
constructor() { |
This file contains hidden or 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
require 'rest-client' | |
require 'json' | |
require 'csv' | |
require 'json_converter' | |
API_KEY = ENV['API_KEY'] | |
HEADERS = {"project_id" => API_KEY} | |
policy_id = '90465e141ecb7b72ed0cdbcbd848673177cd52be5af5518e95d0de1d' | |
url = "https://cardano-mainnet.blockfrost.io/api/v0/assets/policy/#{policy_id}?count=100&page=" |
This file contains hidden or 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
# frozen_string_literal: true | |
def repo_commits(repo) | |
`cd #{repo} && git pull origin` | |
result = `cd #{repo} && git --no-pager log --pretty='format:%h;%an;%ae;%ad;%(trailers:key=Co-authored-by)' --date=short --shortstat --no-merges` | |
commits = result.unpack('C*').pack('U*').split("\n").delete_if(&:empty?).delete_if { |x| x =~ /^Co-authored-by/ } | |
commits = commits.reject.each_with_index { |e, i| e =~ /;/ && (commits[i + 1] =~ /;/ || commits[i + 1].nil?) }.each_slice(2).to_a | |
commits.map do |c| | |
changes = c[1] |