Skip to content

Instantly share code, notes, and snippets.

@chainwhisper
chainwhisper / oracle.sol
Created February 7, 2021 09:41
Band Demo Oracle
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
interface IStdReference {
/// A structure returned whenever someone requests for standard reference data.
struct ReferenceData {
uint256 rate; // base/quote exchange rate, multiplied by 1e18.
uint256 lastUpdatedBase; // UNIX epoch of the last time when base price gets updated.
uint256 lastUpdatedQuote; // UNIX epoch of the last time when quote price gets updated.
}

Keybase proof

I hereby claim:

  • I am huangsuyu on github.
  • I am satoshe714 (https://keybase.io/satoshe714) on keybase.
  • I have a public key whose fingerprint is 5D7E 8FB9 ECC5 5B10 CE7D 3D1C 874A D529 FADA A947

To claim this, I am signing this object:

pragma solidity 0.5.16;
interface IBEP2E {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
@chainwhisper
chainwhisper / config.toml
Created March 3, 2020 06:11
config.toml for fast sync
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
##### main base config options #####
# TCP or UNIX socket address of the ABCI application,
# or the name of an ABCI application compiled in with the Tendermint binary
proxy_app = "tcp://127.0.0.1:28658"
# A custom human readable name for this node