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
# Update starting burn to 5 million DOT/year | |
initial_coretime_demand_5m = 5e6 # 5 million DOT/year | |
# Recalculate coretime burn with 60% growth from 5M start | |
coretime_burn_5m = initial_coretime_demand_5m * np.exp(faster_growth_rate * (short_years_updated - 2024)) | |
burn_interp_5m = interp1d(short_years_updated, coretime_burn_5m, kind='linear') | |
fine_burn_5m = burn_interp_5m(fine_years_updated) | |
fine_net_inflation_5m = fine_inflation_updated - fine_burn_5m | |
# Find precise tipping point with 5M starting burn |
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
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 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 { 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 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
{-# 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 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
{-# 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 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
{"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 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
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]} |
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; | |
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 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 "./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 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"; | |
// Precisamos importar essa funcao de base64 que acabamos de criar |
NewerOlder