Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Polygon mainnet OAR #111

Merged
merged 1 commit into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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