Skip to content

Instantly share code, notes, and snippets.

View thodges-gh's full-sized avatar
⛓️
Linking chains

Thomas thodges-gh

⛓️
Linking chains
View GitHub Profile

Instructions

  • Run the app.js file:
node app.js
  • Call the adapter with curl:
curl -X POST -H 'content-type: application/json' -d '{"id":"abc123","data":{"pool":"0x0d65b0802d0713bac6426cf4935d252807f59136000000000000000000000000","level":1}}' http://localhost:8080
@thodges-gh
thodges-gh / GetData.sol
Last active May 12, 2020 20:19 — forked from PatrickAlphaC/chainlinkVRFDemo.sol
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.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.6.0;
import "github.com/smartcontractkit/chainlink/evm-contracts/src/v0.6/ChainlinkClient.sol";
contract GetData is ChainlinkClient {
uint256 public currentPrice;
address public owner;
constructor() public {
// Sets the address of the LINK token when deployed to a public blockchain
@thodges-gh
thodges-gh / main_test.go
Created January 23, 2018 02:11 — forked from mlabouardy/main_test.go
Unit test for Lambda handler
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHandler(t *testing.T) {
movies, err := Handler(Request{
@thodges-gh
thodges-gh / main.go
Created January 22, 2018 19:13 — forked from mlabouardy/main.go
AWS Lambda Function in Golang to discover movies
package main
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"os"
"strconv"