Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@

Use this package to install the Tellor user contracts and test helper functions, and to integrate Tellor into your contracts.

## Contents

- `contracts/interfaces/ITellorDataBridge.sol` - The TellorDataBridge interface
- `contracts/testing/DataBankPlayground.sol` - A testing contract for rapid prototyping with Tellor oracle data
- `contracts/interfaces/IDataBankPlayground.sol` - The DataBankPlayground interface
- `contracts/bridge/TellorDataBridge.sol` - The TellorDataBridge contract
- `src/helpers/evmHelpers.js` - Helper functions for testing

## How to Use

Use this package with your own npm project.
Use this package with your own npm project. See the [SampleLayerUser repo](https://github.com/tellor-io/SampleLayerUser) for usage examples.

### Install

Expand Down
1 change: 1 addition & 0 deletions artifacts/build-info/ebdb99267cd32cea6219218999245ca2.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/ebdb99267cd32cea6219218999245ca2.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "IDataBankPlayground",
"sourceName": "contracts/interfaces/IDataBankPlayground.sol",
"abi": [
{
"inputs": [
{
"internalType": "bytes32",
"name": "_queryId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "getAggregateByIndex",
"outputs": [
{
"components": [
{
"internalType": "bytes",
"name": "value",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "power",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "aggregateTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "attestationTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "relayTimestamp",
"type": "uint256"
}
],
"internalType": "struct IDataBankPlayground.AggregateData",
"name": "_aggregateData",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_queryId",
"type": "bytes32"
}
],
"name": "getAggregateValueCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_queryId",
"type": "bytes32"
}
],
"name": "getCurrentAggregateData",
"outputs": [
{
"components": [
{
"internalType": "bytes",
"name": "value",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "power",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "aggregateTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "attestationTimestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "relayTimestamp",
"type": "uint256"
}
],
"internalType": "struct IDataBankPlayground.AggregateData",
"name": "_aggregateData",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_queryId",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "_value",
"type": "bytes"
}
],
"name": "updateOracleDataPlayground",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/ebdb99267cd32cea6219218999245ca2.json"
}
Loading