Untitled diff
22 removals
504 lines
20 additions
502 lines
pragma solidity ^0.4.0;
pragma solidity ^0.4.0;
// <ORACLIZE_API>
// <ORACLIZE_API>
/*
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
*/
*/
// This api is currently targeted at 0.4.18, please import oraclizeAPI_pre0.4.sol or oraclizeAPI_0.4 where necessary
// This api is currently targeted at 0.4.18, please import oraclizeAPI_pre0.4.sol or oraclizeAPI_0.4 where necessary
pragma solidity ^0.4.18;
pragma solidity ^0.4.18;
contract OraclizeI {
contract OraclizeI {
address public cbAddress;
address public cbAddress;
function query(uint _timestamp, string _datasource, string _arg) external payable returns (bytes32 _id);
function query(uint _timestamp, string _datasource, string _arg) external payable returns (bytes32 _id);
function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) external payable returns (bytes32 _id);
function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) external payable returns (bytes32 _id);
function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) public payable returns (bytes32 _id);
function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) public payable returns (bytes32 _id);
function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) external payable returns (bytes32 _id);
function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) external payable returns (bytes32 _id);
function queryN(uint _timestamp, string _datasource, bytes _argN) public payable returns (bytes32 _id);
function queryN(uint _timestamp, string _datasource, bytes _argN) public payable returns (bytes32 _id);
function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) external payable returns (bytes32 _id);
function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) external payable returns (bytes32 _id);
function getPrice(string _datasource) public returns (uint _dsprice);
function getPrice(string _datasource) public returns (uint _dsprice);
function getPrice(string _datasource, uint gaslimit) public returns (uint _dsprice);
function getPrice(string _datasource, uint gaslimit) public returns (uint _dsprice);
function setProofType(byte _proofType) external;
function setProofType(byte _proofType) external;
function setCustomGasPrice(uint _gasPrice) external;
function setCustomGasPrice(uint _gasPrice) external;
function randomDS_getSessionPubKeyHash() external returns(bytes32);
function randomDS_getSessionPubKeyHash() external returns(bytes32);
}
}
contract OraclizeAddrResolverI {
contract OraclizeAddrResolverI {
function getAddress() public returns (address _addr);
function getAddress() public returns (address _addr);
}
}
contract usingOraclize {
contract usingOraclize {
uint constant day = 60*60*24;
uint constant day = 60*60*24;
uint constant week = 60*60*24*7;
uint constant week = 60*60*24*7;
uint constant month = 60*60*24*30;
uint constant month = 60*60*24*30;
byte constant proofType_NONE = 0x00;
byte constant proofType_NONE = 0x00;
byte constant proofType_TLSNotary = 0x10;
byte constant proofType_TLSNotary = 0x10;
byte constant proofType_Android = 0x20;
byte constant proofType_Android = 0x20;
byte constant proofType_Ledger = 0x30;
byte constant proofType_Ledger = 0x30;
byte constant proofType_Native = 0xF0;
byte constant proofType_Native = 0xF0;
byte constant proofStorage_IPFS = 0x01;
byte constant proofStorage_IPFS = 0x01;
uint8 constant networkID_auto = 0;
uint8 constant networkID_auto = 0;
uint8 constant networkID_mainnet = 1;
uint8 constant networkID_mainnet = 1;
uint8 constant networkID_testnet = 2;
uint8 constant networkID_testnet = 2;
uint8 constant networkID_morden = 2;
uint8 constant networkID_morden = 2;
uint8 constant networkID_consensys = 161;
uint8 constant networkID_consensys = 161;
OraclizeAddrResolverI OAR;
OraclizeAddrResolverI OAR;
OraclizeI oraclize;
OraclizeI oraclize;
modifier oraclizeAPI {
modifier oraclizeAPI {
if((address(OAR)==0)||(getCodeSize(address(OAR))==0))
if((address(OAR)==0)||(getCodeSize(address(OAR))==0))
oraclize_setNetwork(networkID_auto);
{oraclize_setNetwork(networkID_auto);}
if(address(oraclize) != OAR.getAddress())
if(address(oraclize) != OAR.getAddress())
oraclize = OraclizeI(OAR.getAddress());
{oraclize = OraclizeI(OAR.getAddress());}
_;
_;
}
}
modifier coupon(string code){
modifier coupon(string code){
oraclize = OraclizeI(OAR.getAddress());
oraclize = OraclizeI(OAR.getAddress());
_;
_;
}
}
function oraclize_setNetwork(uint8 networkID) internal returns(bool){
function oraclize_setNetwork(uint8 networkID) internal returns(bool){
return oraclize_setNetwork();
return oraclize_setNetwork();
networkID; // silence the warning and remain backwards compatible
networkID; // silence the warning and remain backwards compatible
}
}
function oraclize_setNetwork() internal returns(bool){
function oraclize_setNetwork() internal returns(bool){
if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
oraclize_setNetworkName("eth_mainnet");
oraclize_setNetworkName("eth_mainnet");
return true;
return true;
}
}
if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet
if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet
OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
oraclize_setNetworkName("eth_ropsten3");
oraclize_setNetworkName("eth_ropsten3");
return true;
return true;
}
}
if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet
if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet
OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
oraclize_setNetworkName("eth_kovan");
oraclize_setNetworkName("eth_kovan");
return true;
return true;
}
}
if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet
if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet
OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
oraclize_setNetworkName("eth_rinkeby");
oraclize_setNetworkName("eth_rinkeby");
return true;
return true;
}
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
return true;
}
}
if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide
if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide
OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
return true;
return true;
}
}
if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity
if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity
OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
return true;
return true;
}
}
return false;
return false;
}
}
function __callback(bytes32 myid, string result) public {
function __callback(bytes32 myid, string result) public {
__callback(myid, result, new bytes(0));
__callback(myid, result, new bytes(0));
}
}
function __callback(bytes32 myid, string result, bytes proof) public {
function __callback(bytes32 myid, string result, bytes proof) public {
return;
return;
myid; result; proof; // Silence compiler warnings
myid; result; proof; // Silence compiler warnings
}
}
function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){
function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){
return oraclize.getPrice(datasource);
return oraclize.getPrice(datasource);
}
}
function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){
function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){
return oraclize.getPrice(datasource, gaslimit);
return oraclize.getPrice(datasource, gaslimit);
}
}
function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
return oraclize.query.value(price)(0, datasource, arg);
return oraclize.query.value(price)(0, datasource, arg);
}
}
function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
return oraclize.query.value(price)(timestamp, datasource, arg);
return oraclize.query.value(price)(timestamp, datasource, arg);
}
}
function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit);
return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit);
}
}
function oraclize_query(string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
return oraclize.query_withGasLimit.value(price)(0, datasource, arg, gaslimit);
return oraclize.query_withGasLimit.value(price)(0, datasource, arg, gaslimit);
}
}
function oraclize_query(string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
return oraclize.query2.value(price)(0, datasource, arg1, arg2);
return oraclize.query2.value(price)(0, datasource, arg1, arg2);
}
}
function oraclize_query(uint timestamp, string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
return oraclize.query2.value(price)(timestamp, datasource, arg1, arg2);
return oraclize.query2.value(price)(timestamp, datasource, arg1, arg2);
}
}
function oraclize_query(uint timestamp, string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
return oraclize.query2_withGasLimit.value(price)(timestamp, datasource, arg1, arg2, gaslimit);
return oraclize.query2_withGasLimit.value(price)(timestamp, datasource, arg1, arg2, gaslimit);
}
}
function oraclize_query(string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
return oraclize.query2_withGasLimit.value(price)(0, datasource, arg1, arg2, gaslimit);
return oraclize.query2_withGasLimit.value(price)(0, datasource, arg1, arg2, gaslimit);
}
}
function oraclize_query(string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
bytes memory args = stra2cbor(argN);
bytes memory args = stra2cbor(argN);
return oraclize.queryN.value(price)(0, datasource, args);
return oraclize.queryN.value(price)(0, datasource, args);
}
}
function oraclize_query(uint timestamp, string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
bytes memory args = stra2cbor(argN);
bytes memory args = stra2cbor(argN);
return oraclize.queryN.value(price)(timestamp, datasource, args);
return oraclize.queryN.value(price)(timestamp, datasource, args);
}
}
function oraclize_query(uint timestamp, string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
bytes memory args = stra2cbor(argN);
bytes memory args = stra2cbor(argN);
return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
}
}
function oraclize_query(string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
bytes memory args = stra2cbor(argN);
bytes memory args = stra2cbor(argN);
return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
}
}
function oraclize_query(string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](1);
string[] memory dynargs = new string[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](1);
string[] memory dynargs = new string[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](1);
string[] memory dynargs = new string[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](1);
string[] memory dynargs = new string[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](2);
string[] memory dynargs = new string[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](2);
string[] memory dynargs = new string[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](2);
string[] memory dynargs = new string[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](2);
string[] memory dynargs = new string[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](3);
string[] memory dynargs = new string[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](3);
string[] memory dynargs = new string[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](3);
string[] memory dynargs = new string[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](3);
string[] memory dynargs = new string[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](4);
string[] memory dynargs = new string[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](4);
string[] memory dynargs = new string[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](4);
string[] memory dynargs = new string[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](4);
string[] memory dynargs = new string[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](5);
string[] memory dynargs = new string[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](5);
string[] memory dynargs = new string[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](5);
string[] memory dynargs = new string[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
string[] memory dynargs = new string[](5);
string[] memory dynargs = new string[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
bytes memory args = ba2cbor(argN);
bytes memory args = ba2cbor(argN);
return oraclize.queryN.value(price)(0, datasource, args);
return oraclize.queryN.value(price)(0, datasource, args);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource);
uint price = oraclize.getPrice(datasource);
if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*200000) {return 0;} // unexpectedly high price
bytes memory args = ba2cbor(argN);
bytes memory args = ba2cbor(argN);
return oraclize.queryN.value(price)(timestamp, datasource, args);
return oraclize.queryN.value(price)(timestamp, datasource, args);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(uint timestamp, string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
bytes memory args = ba2cbor(argN);
bytes memory args = ba2cbor(argN);
return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
}
}
function oraclize_query(string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
function oraclize_query(string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
uint price = oraclize.getPrice(datasource, gaslimit);
uint price = oraclize.getPrice(datasource, gaslimit);
if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
if (price > 1 ether + tx.gasprice*gaslimit) {return 0;} // unexpectedly high price
bytes memory args = ba2cbor(argN);
bytes memory args = ba2cbor(argN);
return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
}
}
function oraclize_query(string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](1);
bytes[] memory dynargs = new bytes[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](1);
bytes[] memory dynargs = new bytes[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](1);
bytes[] memory dynargs = new bytes[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](1);
bytes[] memory dynargs = new bytes[](1);
dynargs[0] = args[0];
dynargs[0] = args[0];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](2);
bytes[] memory dynargs = new bytes[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](2);
bytes[] memory dynargs = new bytes[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](2);
bytes[] memory dynargs = new bytes[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](2);
bytes[] memory dynargs = new bytes[](2);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](3);
bytes[] memory dynargs = new bytes[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](3);
bytes[] memory dynargs = new bytes[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](3);
bytes[] memory dynargs = new bytes[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](3);
bytes[] memory dynargs = new bytes[](3);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](4);
bytes[] memory dynargs = new bytes[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](4);
bytes[] memory dynargs = new bytes[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](4);
bytes[] memory dynargs = new bytes[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](4);
bytes[] memory dynargs = new bytes[](4);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
return oraclize_query(datasource, dynargs, gaslimit);
return oraclize_query(datasource, dynargs, gaslimit);
}
}
function oraclize_query(string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](5);
bytes[] memory dynargs = new bytes[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(datasource, dynargs);
return oraclize_query(datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](5);
bytes[] memory dynargs = new bytes[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(timestamp, datasource, dynargs);
return oraclize_query(timestamp, datasource, dynargs);
}
}
function oraclize_query(uint timestamp, string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
function oraclize_query(uint timestamp, string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
bytes[] memory dynargs = new bytes[](5);
bytes[] memory dynargs = new bytes[](5);
dynargs[0] = args[0];
dynargs[0] = args[0];
dynargs[1] = args[1];
dynargs[1] = args[1];
dynargs[2] = args[2];
dynargs[2] = args[2];
dynargs[3] = args[3];
dynargs[3] = args[3];
dynargs[4] = args[4];
dynargs[4] = args[4];
return oraclize_query(timestamp, datasource, dynargs, gaslimit);
return oraclize_query(timestamp, datasource, d
}
functio