OraclizeI.sol

View Source: contracts/external/oraclizeAPI.sol

OraclizeI

Structs

buffer

struct buffer {
 bytes buf,
 uint256 capacity
}

Contract Members

Constants & Variables

//public members
address public cbAddress;

//private members
uint8 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 members
contract 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;

Modifiers

oraclizeAPI

Arguments

Name

Type

Description

oraclize_randomDS_proofVerify

Arguments

Name

Type

Description

_queryId

bytes32

_result

string

_proof

bytes

Functions

f

Arguments

Name

Type

Description

x

bytes

setProofType

Arguments

Name

Type

Description

_proofType

bytes1

setCustomGasPrice

Arguments

Name

Type

Description

_gasPrice

uint256

getPrice

Arguments

Name

Type

Description

_datasource

string

randomDS_getSessionPubKeyHash

Arguments

Name

Type

Description

getPrice

Arguments

Name

Type

Description

_datasource

string

_gasLimit

uint256

queryN

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_argN

bytes

query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg

string

query2

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg1

string

_arg2

string

query_withGasLimit

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg

string

_gasLimit

uint256

queryN_withGasLimit

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_argN

bytes

_gasLimit

uint256

query2_withGasLimit

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg1

string

_arg2

string

_gasLimit

uint256

getAddress

Arguments

Name

Type

Description

init

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_capacity

uint256

resize

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_capacity

uint256

max

Arguments

Name

Type

Description

_a

uint256

_b

uint256

append

Appends a byte array to the end of the buffer. Resizes if doing so would exceed the capacity of the buffer.

Returns

The original buffer.

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

The buffer to append to.

_data

bytes

The data to append.

append

Appends a byte to the end of the buffer. Resizes if doing so would exceed the capacity of the buffer.

Returns

The original buffer.

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

The buffer to append to.

_data

uint8

The data to append.

appendInt

Appends a byte to the end of the buffer. Resizes if doing so would exceed the capacity of the 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

encodeType

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_major

uint8

_value

uint256

encodeIndefiniteLengthType

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_major

uint8

encodeUInt

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_value

uint256

encodeInt

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_value

int256

encodeBytes

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_value

bytes

encodeString

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

_value

string

startArray

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

startMap

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

endSequence

Arguments

Name

Type

Description

_buf

struct Buffer.buffer

oraclize_setNetwork

Arguments

Name

Type

Description

_networkID

uint8

oraclize_setNetworkName

Arguments

Name

Type

Description

_network_name

string

oraclize_getNetworkName

Arguments

Name

Type

Description

oraclize_setNetwork

Arguments

Name

Type

Description

__callback

Arguments

Name

Type

Description

_myid

bytes32

_result

string

__callback

Arguments

Name

Type

Description

_myid

bytes32

_result

string

_proof

bytes

oraclize_getPrice

Arguments

Name

Type

Description

_datasource

string

oraclize_getPrice

Arguments

Name

Type

Description

_datasource

string

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_arg

string

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg

string

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg

string

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_arg

string

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_arg1

string

_arg2

string

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg1

string

_arg2

string

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_arg1

string

_arg2

string

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_arg1

string

_arg2

string

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_argN

string[]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_argN

string[]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_argN

string[]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_argN

string[]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[1]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[1]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[1]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[1]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[2]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[2]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[2]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[2]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[3]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[3]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[3]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[3]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[4]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[4]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[4]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[4]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[5]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[5]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

string[5]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

string[5]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_argN

bytes[]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_argN

bytes[]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_argN

bytes[]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_argN

bytes[]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[1]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[1]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[1]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[1]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[2]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[2]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[2]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[2]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[3]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[3]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[3]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[3]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[4]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[4]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[4]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[4]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[5]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[5]

oraclize_query

Arguments

Name

Type

Description

_timestamp

uint256

_datasource

string

_args

bytes[5]

_gasLimit

uint256

oraclize_query

Arguments

Name

Type

Description

_datasource

string

_args

bytes[5]

_gasLimit

uint256

oraclize_setProof

Arguments

Name

Type

Description

_proofP

bytes1

oraclize_cbAddress

Arguments

Name

Type

Description

getCodeSize

Arguments

Name

Type

Description

_addr

address

oraclize_setCustomGasPrice

Arguments

Name

Type

Description

_gasPrice

uint256

oraclize_randomDS_getSessionPubKeyHash

Arguments

Name

Type

Description

parseAddr

Arguments

Name

Type

Description

_a

string

strCompare

Arguments

Name

Type

Description

_a

string

_b

string

indexOf

Arguments

Name

Type

Description

_haystack

string

_needle

string

strConcat

Arguments

Name

Type

Description

_a

string

_b

string

strConcat

Arguments

Name

Type

Description

_a

string

_b

string

_c

string

strConcat

Arguments

Name

Type

Description

_a

string

_b

string

_c

string

_d

string

strConcat

Arguments

Name

Type

Description

_a

string

_b

string

_c

string

_d

string

_e

string

safeParseInt

Arguments

Name

Type

Description

_a

string

safeParseInt

Arguments

Name

Type

Description

_a

string

_b

uint256

parseInt

Arguments

Name

Type

Description

_a

string

parseInt

Arguments

Name

Type

Description

_a

string

_b

uint256

uint2str

Arguments

Name

Type

Description

_i

uint256

stra2cbor

Arguments

Name

Type

Description

_arr

string[]

ba2cbor

Arguments

Name

Type

Description

_arr

bytes[]

oraclize_newRandomDSQuery

Arguments

Name

Type

Description

_delay

uint256

_nbytes

uint256

_customGasLimit

uint256

oraclize_randomDS_setCommitment

Arguments

Name

Type

Description

_queryId

bytes32

_commitment

bytes32

verifySig

Arguments

Name

Type

Description

_tosignh

bytes32

_dersig

bytes

_pubkey

bytes

oraclize_randomDS_proofVerify__sessionKeyValidity

Arguments

Name

Type

Description

_proof

bytes

_sig2offset

uint256

oraclize_randomDS_proofVerify__returnCode

Arguments

Name

Type

Description

_queryId

bytes32

_result

string

_proof

bytes

matchBytes32Prefix

Arguments

Name

Type

Description

_content

bytes32

_prefix

bytes

_nRandomBytes

uint256

oraclize_randomDS_proofVerify__main

Arguments

Name

Type

Description

_proof

bytes

_queryId

bytes32

_result

bytes

_contextName

string

copyBytes

Arguments

Name

Type

Description

_from

bytes

_fromOffset

uint256

_length

uint256

_to

bytes

_toOffset

uint256

safer_ecrecover

Arguments

Name

Type

Description

_hash

bytes32

_v

uint8

_r

bytes32

_s

bytes32

ecrecovery

Arguments

Name

Type

Description

_hash

bytes32

_sig

bytes

safeMemoryCleaner

Arguments

Name

Type

Description

Last updated

Was this helpful?