View Source: contracts/external/oraclizeAPI.sol
usingOraclize
struct buffer {bytes buf,uint256 capacity}
Constants & Variables
//public membersaddress public cbAddress;//private membersuint8 private constant MAJOR_TYPE_INT;uint8 private constant MAJOR_TYPE_MAP;uint8 private constant MAJOR_TYPE_BYTES;uint8 private constant MAJOR_TYPE_ARRAY;uint8 private constant MAJOR_TYPE_STRING;uint8 private constant MAJOR_TYPE_NEGATIVE_INT;uint8 private constant MAJOR_TYPE_CONTENT_FREE;//internal memberscontract OraclizeI internal oraclize;contract OraclizeAddrResolverI internal OAR;uint256 internal constant day;uint256 internal constant week;uint256 internal constant month;bytes1 internal constant proofType_NONE;bytes1 internal constant proofType_Ledger;bytes1 internal constant proofType_Native;bytes1 internal constant proofStorage_IPFS;bytes1 internal constant proofType_Android;bytes1 internal constant proofType_TLSNotary;string internal oraclize_network_name;uint8 internal constant networkID_auto;uint8 internal constant networkID_morden;uint8 internal constant networkID_mainnet;uint8 internal constant networkID_testnet;uint8 internal constant networkID_consensys;mapping(bytes32 => bytes32) internal oraclize_randomDS_args;mapping(bytes32 => bool) internal oraclize_randomDS_sessionKeysHashVerified;
modifier oraclizeAPI() internal
Arguments
Name | Type | Description |
modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string _result, bytes _proof) internal
Arguments
Name | Type | Description |
_queryId | bytes32 | |
_result | string | |
_proof | bytes | |
function f(bytes x) external nonpayable
Arguments
Name | Type | Description |
x | bytes | |
function setProofType(bytes1 _proofType) external nonpayable
Arguments
Name | Type | Description |
_proofType | bytes1 | |
function setCustomGasPrice(uint256 _gasPrice) external nonpayable
Arguments
Name | Type | Description |
_gasPrice | uint256 | |
function getPrice(string _datasource) public nonpayablereturns(_dsprice uint256)
Arguments
Name | Type | Description |
_datasource | string | |
function randomDS_getSessionPubKeyHash() external viewreturns(_sessionKeyHash bytes32)
Arguments
Name | Type | Description |
function getPrice(string _datasource, uint256 _gasLimit) public nonpayablereturns(_dsprice uint256)
Arguments
Name | Type | Description |
_datasource | string | |
_gasLimit | uint256 | |
function queryN(uint256 _timestamp, string _datasource, bytes _argN) public payablereturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_argN | bytes | |
function query(uint256 _timestamp, string _datasource, string _arg) external payablereturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg | string | |
function query2(uint256 _timestamp, string _datasource, string _arg1, string _arg2) public payablereturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg1 | string | |
_arg2 | string | |
function query_withGasLimit(uint256 _timestamp, string _datasource, string _arg, uint256 _gasLimit) external payablereturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg | string | |
_gasLimit | uint256 | |
function queryN_withGasLimit(uint256 _timestamp, string _datasource, bytes _argN, uint256 _gasLimit) external payablereturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_argN | bytes | |
_gasLimit | uint256 | |
function query2_withGasLimit(uint256 _timestamp, string _datasource, string _arg1, string _arg2, uint256 _gasLimit) external payablereturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg1 | string | |
_arg2 | string | |
_gasLimit | uint256 | |
function getAddress() public nonpayablereturns(_address address)
Arguments
Name | Type | Description |
function init(struct Buffer.buffer _buf, uint256 _capacity) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_capacity | uint256 | |
function resize(struct Buffer.buffer _buf, uint256 _capacity) private pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_capacity | uint256 | |
function max(uint256 _a, uint256 _b) private purereturns(_max uint256)
Arguments
Name | Type | Description |
_a | uint256 | |
_b | uint256 | |
Appends a byte array to the end of the buffer. Resizes if doing so would exceed the capacity of the buffer.
function append(struct Buffer.buffer _buf, bytes _data) internal purereturns(_buffer struct Buffer.buffer)
Returns
The original buffer.
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | The buffer to append to. |
_data | bytes | The data to append. |
Appends a byte to the end of the buffer. Resizes if doing so would exceed the capacity of the buffer.
function append(struct Buffer.buffer _buf, uint8 _data) internal pure
Returns
The original buffer.
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | The buffer to append to. |
_data | uint8 | The data to append. |
Appends a byte to the end of the buffer. Resizes if doing so would exceed the capacity of the buffer.
function appendInt(struct Buffer.buffer _buf, uint256 _data, uint256 _len) internal purereturns(_buffer struct Buffer.buffer)
Returns
The original buffer.
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | The buffer to append to. |
_data | uint256 | The data to append. |
_len | uint256 | |
function encodeType(struct Buffer.buffer _buf, uint8 _major, uint256 _value) private pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_major | uint8 | |
_value | uint256 | |
function encodeIndefiniteLengthType(struct Buffer.buffer _buf, uint8 _major) private pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_major | uint8 | |
function encodeUInt(struct Buffer.buffer _buf, uint256 _value) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_value | uint256 | |
function encodeInt(struct Buffer.buffer _buf, int256 _value) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_value | int256 | |
function encodeBytes(struct Buffer.buffer _buf, bytes _value) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_value | bytes | |
function encodeString(struct Buffer.buffer _buf, string _value) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
_value | string | |
function startArray(struct Buffer.buffer _buf) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
function startMap(struct Buffer.buffer _buf) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
function endSequence(struct Buffer.buffer _buf) internal pure
Arguments
Name | Type | Description |
_buf | struct Buffer.buffer | |
function oraclize_setNetwork(uint8 _networkID) internal nonpayablereturns(_networkSet bool)
Arguments
Name | Type | Description |
_networkID | uint8 | |
function oraclize_setNetworkName(string _network_name) internal nonpayable
Arguments
Name | Type | Description |
_network_name | string | |
function oraclize_getNetworkName() internal viewreturns(_networkName string)
Arguments
Name | Type | Description |
function oraclize_setNetwork() internal nonpayablereturns(_networkSet bool)
Arguments
Name | Type | Description |
function __callback(bytes32 _myid, string _result) public nonpayable
Arguments
Name | Type | Description |
_myid | bytes32 | |
_result | string | |
function __callback(bytes32 _myid, string _result, bytes _proof) public nonpayable
Arguments
Name | Type | Description |
_myid | bytes32 | |
_result | string | |
_proof | bytes | |
function oraclize_getPrice(string _datasource) internal nonpayable oraclizeAPIreturns(_queryPrice uint256)
Arguments
Name | Type | Description |
_datasource | string | |
function oraclize_getPrice(string _datasource, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_queryPrice uint256)
Arguments
Name | Type | Description |
_datasource | string | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string _arg) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_arg | string | |
function oraclize_query(uint256 _timestamp, string _datasource, string _arg) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg | string | |
function oraclize_query(uint256 _timestamp, string _datasource, string _arg, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg | string | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string _arg, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_arg | string | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string _arg1, string _arg2) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_arg1 | string | |
_arg2 | string | |
function oraclize_query(uint256 _timestamp, string _datasource, string _arg1, string _arg2) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg1 | string | |
_arg2 | string | |
function oraclize_query(uint256 _timestamp, string _datasource, string _arg1, string _arg2, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_arg1 | string | |
_arg2 | string | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string _arg1, string _arg2, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_arg1 | string | |
_arg2 | string | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[] _argN) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_argN | string[] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[] _argN) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_argN | string[] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[] _argN, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_argN | string[] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[] _argN, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_argN | string[] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[1] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[1] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[1] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[1] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[1] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[1] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[1] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[1] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[2] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[2] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[2] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[2] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[2] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[2] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[2] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[2] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[3] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[3] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[3] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[3] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[3] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[3] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[3] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[3] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[4] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[4] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[4] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[4] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[4] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[4] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[4] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[4] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[5] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[5] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[5] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[5] | |
function oraclize_query(uint256 _timestamp, string _datasource, string[5] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | string[5] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, string[5] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | string[5] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, bytes[] _argN) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_argN | bytes[] | |
function oraclize_query(uint256 _timestamp, string _datasource, bytes[] _argN) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_argN | bytes[] | |
function oraclize_query(uint256 _timestamp, string _datasource, bytes[] _argN, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_argN | bytes[] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, bytes[] _argN, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_argN | bytes[] | |
_gasLimit | uint256 | |
function oraclize_query(string _datasource, bytes[1] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_datasource | string | |
_args | bytes[1] | |
function oraclize_query(uint256 _timestamp, string _datasource, bytes[1] _args) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | bytes[1] | |
function oraclize_query(uint256 _timestamp, string _datasource, bytes[1] _args, uint256 _gasLimit) internal nonpayable oraclizeAPIreturns(_id bytes32)
Arguments
Name | Type | Description |
_timestamp | uint256 | |
_datasource | string | |
_args | bytes[1] | |
_gasLimit | uint256 | |