Skip to content

Instantly share code, notes, and snippets.

View pi0neerpat's full-sized avatar
🤠

Patrick Gallagher pi0neerpat

🤠
View GitHub Profile
@pi0neerpat
pi0neerpat / chromatic.yml
Last active July 8, 2021 19:14
Pi0neerpat's RedwoodJS Devops
name: Chromatic
on:
push:
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@pi0neerpat
pi0neerpat / chromatic.yml
Created July 8, 2021 00:55
Chromatic + RedwoodJS Github Action
name: Chromatic
on:
push:
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@pi0neerpat
pi0neerpat / ChiliFarm.sol
Created June 25, 2021 16:49
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&runs=200&gist=
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
@pi0neerpat
pi0neerpat / redwood-build-docker.yaml
Created June 23, 2021 19:55
RedwoodJS - Docker build action
# Adapted from https://github.com/users/jeliasson/packages/container/package/redwoodjs-app-api-main
# Force redeploy
name: "redwoodjs-app-main"
on:
push:
branches:
- main
@pi0neerpat
pi0neerpat / ERC20.abi
Created June 15, 2021 22:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
@pi0neerpat
pi0neerpat / ERC20.abi
Created June 9, 2021 05:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
@pi0neerpat
pi0neerpat / ERC20.sol
Created May 12, 2021 18:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
pragma solidity ^0.7.0;
import {ERC20} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0-solc-0.7/contracts/token/ERC20/ERC20.sol";
contract GRT is ERC20 {
constructor ()
ERC20 ("Graph token", "GRT")
{
_mint(msg.sender, 100e18);
@pi0neerpat
pi0neerpat / Example.sol
Last active May 10, 2021 17:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
pragma solidity ^0.7.0;
import {
ISuperfluid,
ISuperToken,
ISuperApp,
ISuperAgreement,
SuperAppDefinitions
} from "https://github.com/superfluid-finance/protocol-monorepo/blob/remix-support-soda-machine/packages/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid.sol";
import {
@pi0neerpat
pi0neerpat / mdx-redwood.md
Last active March 3, 2021 02:30
Markdown MDX in Redwood

Installation and setup

yarn rw setup webpack
yarn workspace web add react-markdown @tailwindcss/typography

Now update webpack to load ".md"

@pi0neerpat
pi0neerpat / ipfs.md
Created March 2, 2021 18:22
Public IPFS

Private graph-node service

Had to change docker go-ipfs version down to v0.4.21 ? https://github.com/ipfs/go-ipfs

ssh -L 127.0.0.1:8020:127.0.0.1:8020 patrick@<IP>

http post localhost:8020 jsonrpc="2.0" id="1" method="subgraph_create" params:='{"name": "rtoken-project/rdai"}'
# id: a6cfb81317e96b821b0f8f40dafc7334