mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
added support for poa mainnet (core) and testnet (sokol)
This commit is contained in:
parent
9cd134052c
commit
f65bb4e050
@ -1,3 +1,4 @@
|
||||
// import Logger from "../utils/Logger"
|
||||
import OceanAuth from "./contracts/Auth"
|
||||
import AccessConditions from "./contracts/conditions/AccessConditions"
|
||||
import PaymentConditions from "./contracts/conditions/PaymentConditions"
|
||||
@ -53,6 +54,12 @@ export default class Keeper {
|
||||
case 4:
|
||||
network = "Rinkeby"
|
||||
break
|
||||
case 77:
|
||||
network = "POA_Sokol"
|
||||
break
|
||||
case 99:
|
||||
network = "POA_Core"
|
||||
break
|
||||
case 42:
|
||||
network = "Kovan"
|
||||
break
|
||||
@ -63,6 +70,7 @@ export default class Keeper {
|
||||
network = "Ocean_POA_AWS"
|
||||
break
|
||||
default:
|
||||
// Logger.log(`NetworkId ${networkId} not found defaulting`)
|
||||
network = "Development"
|
||||
}
|
||||
return network
|
||||
|
Loading…
Reference in New Issue
Block a user