View example.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TronWeb = require('tronweb') | |
const server = 'SERVER_ADDRESS_GOES_HERE' | |
const username = 'USERNAME_GOES_HERE'; | |
const password = 'PASSWORD_GOES_HERE'; | |
const rpc_url = (`https://${username}:${password}@${server}`); | |
// Build out rpc endpoints to be passed as seperate nodes | |
// since our node provides different endpoints for each tron api | |
const fullNodeEndpoint = (`${rpc_url}/full`); |
View GhoulPriceConsumer.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.6.0; | |
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol"; | |
import "@chainlink/contracts/src/v0.6/vendor/Ownable.sol"; | |
contract TestnetGhoulPrice is ChainlinkClient, Ownable { | |
uint256 constant private ORACLE_PAYMENT = 1 * LINK; | |
uint256 public currentPrice; |
View ghoulPrice.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.6.0; | |
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol"; | |
import "@chainlink/contracts/src/v0.6/vendor/Ownable.sol"; | |
contract TestnetGhoulPrice is ChainlinkClient, Ownable { | |
uint256 constant private ORACLE_PAYMENT = 1 * LINK; | |
uint256 public currentPrice; |
View AlarmClockExample.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** This example code is designed to quickly deploy an example contract using Remix. | |
* If you have never used Remix, try our example walkthrough: https://docs.chain.link/docs/example-walkthrough | |
* You will need testnet ETH and LINK. | |
* - Kovan ETH faucet: https://faucet.kovan.network/ | |
* - Kovan LINK faucet: https://kovan.chain.link/ | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.6.0; |
View WorkingAlarmClockSample.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** This example code is designed to quickly deploy an example contract using Remix. | |
* If you have never used Remix, try our example walkthrough: https://docs.chain.link/docs/example-walkthrough | |
* You will need testnet ETH and LINK. | |
* - Kovan ETH faucet: https://faucet.kovan.network/ | |
* - Kovan LINK faucet: https://kovan.chain.link/ | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.6.0; |
View Oracle.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.4.24; | |
import "@chainlink/contracts/src/v0.4/Oracle.sol"; |
View Oracle.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.4.24; | |
import "@chainlink/contracts/src/v0.4/Oracle.sol"; |
View walletExample.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.0; | |
contract MyWallet { | |
address payable private owner; | |
constructor() public { | |
owner = msg.sender; | |
} | |
receive() external payable { |
View gist-e71aab73726c5a2f99ee00c1a70cfef8...AlarmClockSample.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.4.24; | |
import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.4/ChainlinkClient.sol"; | |
contract AlarmClockSample is ChainlinkClient { | |
bool public alarmDone; | |
address private oracle; |
View gist:27962f5ac45c06dc6d0ac1a265470a40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am camharris on github. | |
* I am camharris (https://keybase.io/camharris) on keybase. | |
* I have a public key ASChI-B5XLLB1PHO6I-2JwgKCNzTXDw2OmgIg7bCf8wOPgo | |
To claim this, I am signing this object: |
NewerOlder