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
| /** | |
| * Convert ABI json file to solidity interface contract | |
| */ | |
| const fs = require('fs'); | |
| const args = process.argv.slice(2); | |
| function convert(inputFilename) { | |
| const abi = JSON.parse(fs.readFileSync(inputFilename, 'utf8')); |
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.4.21 <0.6.0; | |
| // converted from cDAI.json | |
| contract cDAI { | |
| function name() external returns ( | |
| string memory | |
| ); | |
| function approve( | |
| address spender, |
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
| /** | |
| * @notice Sender supplies assets into the market and receives rTokens in exchange | |
| * @param mintAmount The amount of the underlying asset to supply | |
| * @return uint 0=success, otherwise a failure | |
| */ | |
| function mint(uint256 mintAmount) external returns (bool); | |
| /** | |
| * @notice Sender redeems rTokens in exchange for the underlying asset | |
| * @param redeemTokens The number of rTokens to redeem into underlying |
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
| // File: contracts/RTokenStructs.sol | |
| pragma solidity ^0.5.8; | |
| contract RTokenStructs { | |
| /** | |
| * @notice Global stats | |
| */ | |
| struct GlobalStats { |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am hellwolf on github. | |
| * I am hellwolf (https://keybase.io/hellwolf) on keybase. | |
| * I have a public key ASDp-pJdZFPC_pAoE-6UzzywqGo1frs3weSoDhzHVwEy0wo | |
| To claim this, I am signing this object: |
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 Web3 from "web3"; | |
| import React, { useState, useEffect } from "react"; | |
| import { DrizzleContext } from "@drizzle/react-plugin"; | |
| import { Drizzle } from "@drizzle/store"; | |
| import drizzleOptionsFactory from "./drizzleOptionsFactory"; | |
| import MyComponent from "./MyComponent"; | |
| import "./App.css"; | |
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
| curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/superfluid-finance/repos | jq '.[].name' -r | while read r;do echo /github subscribe superfluid-finance/$r commits:all,comments,reviews;done |
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
| for i in `curl -su :$GITHUB_TOKEN -H "Accept: application/vnd.github.inertia-preview+json" https://api.github.com/projects/columns/12000498/cards | jq '.[] | .content_url' -r`;do curl -su :$GITHUB_TOKEN -H "Accept: application/vnd.github.inertia-preview+json" $i | jq '"[" + (.number|tostring) + "] - " + .title';done |
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
| findEventTopic0 = (truffleContract, eventName) => Object.keys(truffleContract.events).filter(e => truffleContract.events[e].name === eventName)[0] |
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
| #!/bin/sh | |
| if [ -z "$1" ]; then echo "Error: No origin was provided"; exit 1; fi | |
| if [ -z "$2" ]; then echo "Error: No URL to test was provided"; exit 1; fi | |
| if [ "$3" ]; then METHOD="$3"; else METHOD=GET; fi | |
| curl -I -X OPTIONS \ | |
| -s \ | |
| -H "Origin: $1" \ | |
| -H "Access-Control-Request-Method: $METHOD" \ |