Only available ^1.30 September 7, 2018 (my X1C 6th gen came with this)
In BIOS settings: Config > Sleep State > Linux
Check if successful with
dmesg | grep -i "acpi: (supports"
pragma solidity ^0.4.24; | |
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; | |
contract Name is Ownable{ | |
string public name; | |
constructor(string _name) public { | |
name = _name; | |
} |
These are my personal notes for creating this Remix Plugin, in case you need some help creating your own
Fork whichever plugin is most similar to your needs. You can use this one, or play with all of them at remix-alpha. For this project I cloned the ethdocs
plugin, since it was most similar to my vision.
Skim through the remix-plugin Readme of course.
import { getErrorResponse } from '../general'; | |
import { ethers } from 'ethers'; | |
export const isWeb3EnabledBrowser = () => { | |
return ( | |
typeof window !== 'undefined' && typeof window.ethereum !== 'undefined' | |
); | |
}; | |
export const unlockWallet = async () => { |
async loadContracts({ | |
walletProvider, | |
contractNames, | |
allowancesRequested, | |
balancesRequested, | |
}) { | |
console.log("lol") | |
try { | |
ethers.errors.setLogLevel("error") // "debug", "default", "info", "warn", "off" |
const COMPOUND_RATE_API = | |
'https://api.compound.finance/api/v2/ctoken?addresses[]=0x5d3a536e4d6dbd6114cc1ead35777bab948e3643'; | |
export const getCompoundRate = async () => { | |
try { | |
const res = await axios.get(COMPOUND_RATE_API); | |
const rate = res.data.cToken[0].supply_rate.value; | |
return { rate, formattedRate: Math.round(rate * 10000) / 100 }; | |
} catch (error) { |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", |