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
@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"
@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 / PackageDelivery.sol
Last active October 11, 2018 23:26
Chainlink Package Delivery
pragma solidity ^0.4.24;
// File: solidity-cborutils/contracts/Buffer.sol
library Buffer {
struct buffer {
bytes buf;
uint capacity;
}

Keybase proof

I hereby claim:

  • I am thodges-gh on github.
  • I am 0xthodges (https://keybase.io/0xthodges) on keybase.
  • I have a public key whose fingerprint is 7AF9 797F CF65 8AD5 B896 94B5 13A6 4F00 1B91 7B58

To claim this, I am signing this object:

@thodges-gh
thodges-gh / KaikoConsumer.sol
Last active March 1, 2019 12:28
A Chainlinked contract for Kaiko
pragma solidity 0.4.24;
// File: solidity-cborutils/contracts/Buffer.sol
library Buffer {
struct buffer {
bytes buf;
uint capacity;
}
@thodges-gh
thodges-gh / AliceAndBob.sol
Created March 6, 2019 15:56
Example for Chainlinked Alice and Bob Contract
pragma solidity 0.4.24;
// File: solidity-cborutils/contracts/Buffer.sol
library Buffer {
struct buffer {
bytes buf;
uint capacity;
}
@thodges-gh
thodges-gh / RandomNumber.sol
Created March 7, 2019 22:28
Uses Chainlink to retrieve a random number
pragma solidity 0.4.24;
// File: solidity-cborutils/contracts/Buffer.sol
library Buffer {
struct buffer {
bytes buf;
uint capacity;
}
@thodges-gh
thodges-gh / AMultiChainExample.sol
Created April 17, 2019 18:25
Use Chainlink to write from Ropsten to another blockchain
pragma solidity 0.4.24;
// File: solidity-cborutils/contracts/Buffer.sol
library Buffer {
struct buffer {
bytes buf;
uint capacity;
}
pragma solidity 0.4.24;
// File: solidity-cborutils/contracts/Buffer.sol
library Buffer {
struct buffer {
bytes buf;
uint capacity;
}
@thodges-gh
thodges-gh / ATestnetConsumer.sol
Last active May 9, 2019 19:56
An example Chainlink contract that can be used on any test network (Ropsten, Rinkeby, Kovan).
// File: @ensdomains/buffer/contracts/Buffer.sol
pragma solidity >0.4.18;
/**
* @dev A library for working with mutable byte buffers in Solidity.
*
* Byte buffers are mutable and expandable, and provide a variety of primitives
* for writing to them. At any time you can fetch a bytes object containing the