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 / AliceAndBob.sol
Last active May 15, 2019 17:56
A Chainlink example contract with aggregation
// 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
@thodges-gh
thodges-gh / TestnetConsumer.sol
Created May 15, 2019 20:18
A Chainlink contract for testnet
// 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
@thodges-gh
thodges-gh / BQChainlink.sol
Last active July 15, 2020 19:59
A Chainlink for Big Query
// 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
// 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
@thodges-gh
thodges-gh / AJobTester.sol
Created June 20, 2019 19:13
A contract used for testing parameters of the HTTPGet adapter
// 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
pragma solidity 0.4.24;
// GetterSetter is a contract to aid debugging and testing during development.
contract GetterSetter {
bytes32 public getBytes32;
uint256 public getUint256;
int256 public getInt256;
event SetBytes32(address indexed from, bytes32 value);
event SetUint256(address indexed from, uint256 value);
@thodges-gh
thodges-gh / AChainlinkTester.sol
Last active June 28, 2019 19:43
Chainlink contract that allows for a single call or looping through multiple calls to an oracle
// 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
@thodges-gh
thodges-gh / AliceAndBob.sol
Created July 9, 2019 20:29
A Chainlink contract which uses the ETH/USD reference data
// 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