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; |
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`); |
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.8.21; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "./Ticket.sol"; | |
// 0xAa6751DFE655096a15B13490591B62Dfb74B9eFC | |
/** | |
* @title Event contract for creating/managing events |
This file has been truncated, but you can view the full file.
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
{ | |
"abi": [ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ |
OlderNewer