Skip to content

Commit

Permalink
feat: add Polygon mainnet OAR
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviera9 committed Jul 7, 2022
1 parent 337f868 commit 2fbb37e
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib-experimental/oraclizeAPI_lib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ library oraclizeLib {
if (getCodeSize(0x90A0F94702c9630036FB9846B52bf31A1C991a84)>0){ //bsc mainnet
return OraclizeAddrResolverI(0x90A0F94702c9630036FB9846B52bf31A1C991a84);
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609)>0){ //polygon mainnet
return OraclizeAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
return OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
}
Expand Down
5 changes: 5 additions & 0 deletions oraclizeAPI_0.4.25.sol
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ contract usingOraclize {
oraclize_setNetworkName("bsc_mainnet");
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609)>0){ //polygon mainnet
OAR = OraclizeAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
oraclize_setNetworkName("polygon_mainnet");
return true;
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
Expand Down
5 changes: 5 additions & 0 deletions oraclizeAPI_0.4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ contract usingOraclize {
oraclize_setNetworkName("bsc_mainnet");
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609)>0){ //polygon mainnet
OAR = OraclizeAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
oraclize_setNetworkName("polygon_mainnet");
return true;
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
Expand Down
5 changes: 5 additions & 0 deletions oraclizeAPI_0.5.sol
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ contract usingOraclize {
oraclize_setNetworkName("bsc_mainnet");
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609) > 0){ //polygon mainnet
OAR = OraclizeAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
oraclize_setNetworkName("polygon_mainnet");
return true;
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge
OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
Expand Down
4 changes: 4 additions & 0 deletions oraclizeAPI_pre0.4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ contract usingOraclize {
OAR = OraclizeAddrResolverI(0x90A0F94702c9630036FB9846B52bf31A1C991a84);
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609)>0){ //polygon mainnet
OAR = OraclizeAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
return true;
}
if (getCodeSize(0x51efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa)>0){ //browser-solidity
OAR = OraclizeAddrResolverI(0x51efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa);
return true;
Expand Down
5 changes: 5 additions & 0 deletions provableAPI_0.4.25.sol
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ contract usingProvable {
provable_setNetworkName("bsc_mainnet");
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609)>0){ //polygon mainnet
OAR = OracleAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
provable_setNetworkName("polygon_mainnet");
return true;
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
OAR = OracleAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
Expand Down
5 changes: 5 additions & 0 deletions provableAPI_0.5.sol
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ contract usingProvable {
provable_setNetworkName("bsc_mainnet");
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609) > 0){ //polygon mainnet
OAR = OracleAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
provable_setNetworkName("polygon_mainnet");
return true;
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge
OAR = OracleAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
Expand Down
5 changes: 5 additions & 0 deletions provableAPI_0.6.sol
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ contract usingProvable {
provable_setNetworkName("bsc_mainnet");
return true;
}
if (getCodeSize(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609) > 0){ //polygon mainnet
OAR = OracleAddrResolverI(0x816ec2AF1b56183F82f8C05759E99FEc3c3De609);
provable_setNetworkName("polygon_mainnet");
return true;
}
if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge
OAR = OracleAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
return true;
Expand Down

0 comments on commit 2fbb37e

Please sign in to comment.