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
async function GetStatements() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
var s = spreadsheet.getSheetByName("Vault Payments") | |
s.getRange(1, 1).setValue("Nonce") | |
s.getRange(1, 2).setValue("submissionDate") | |
s.getRange(1, 3).setValue("To") | |
s.getRange(1, 4).setValue("value") | |
s.getRange(1, 5).setValue("transactionHash") | |
s.getRange(1, 6).setValue("Wallet") |
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
import { useAddress, useMetamask, useEditionDrop, useToken, useVote } from '@thirdweb-dev/react' | |
import { useState, useEffect, useMemo } from 'react' | |
import { AddressZero } from "@ethersproject/constants"; | |
const App = () => { | |
// Use o hook connectWallet que o thirdweb nos dá. | |
const address = useAddress() | |
const connectWithMetamask = useMetamask() | |
console.log("👋 Address:", address) |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Example where | |
import Language.Marlowe.Extended.V1 | |
main :: IO () | |
main = printJSON $ contract | |
{- Define a contract, Close is the simplest contract which just ends the contract straight away |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Example where | |
import Language.Marlowe.Extended.V1 | |
main :: IO () | |
main = printJSON $ contract | |
{- Define a contract, Close is the simplest contract which just ends the contract straight away |
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
{"valueParameterInfo":[["Deposit",{"valueParameterFormat":{"contents":[6,""],"tag":"DecimalFormat"},"valueParameterDescription":"Amount Deposited"}]],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]} |
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
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]} |
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: UNLICENSED | |
pragma solidity ^0.8.1; | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "hardhat/console.sol"; | |
import { Base64 } from "./libraries/Base64.sol"; |
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
import React, { useEffect, useState } from "react" | |
import "./styles/App.css" | |
import twitterLogo from "./assets/twitter-logo.svg" | |
import { ethers } from "ethers" | |
import myEpicNft from "./utils/MyEpicNFT.json" | |
// Constants | |
const TWITTER_HANDLE = "web3dev_" | |
const TWITTER_LINK = `https://twitter.com/${TWITTER_HANDLE}` | |
const OPENSEA_LINK = "" |
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: 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"; | |
// Precisamos importar essa funcao de base64 que acabamos de criar |
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
/** | |
*Submitted for verification at Etherscan.io on 2021-09-05 | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.1; | |
/// [MIT License] | |
/// @title Base64 |
NewerOlder