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 OceanAuth from "./contracts/Auth"
|
||||||
import AccessConditions from "./contracts/conditions/AccessConditions"
|
import AccessConditions from "./contracts/conditions/AccessConditions"
|
||||||
import PaymentConditions from "./contracts/conditions/PaymentConditions"
|
import PaymentConditions from "./contracts/conditions/PaymentConditions"
|
||||||
@ -53,6 +54,12 @@ export default class Keeper {
|
|||||||
case 4:
|
case 4:
|
||||||
network = "Rinkeby"
|
network = "Rinkeby"
|
||||||
break
|
break
|
||||||
|
case 77:
|
||||||
|
network = "POA_Sokol"
|
||||||
|
break
|
||||||
|
case 99:
|
||||||
|
network = "POA_Core"
|
||||||
|
break
|
||||||
case 42:
|
case 42:
|
||||||
network = "Kovan"
|
network = "Kovan"
|
||||||
break
|
break
|
||||||
@ -63,6 +70,7 @@ export default class Keeper {
|
|||||||
network = "Ocean_POA_AWS"
|
network = "Ocean_POA_AWS"
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
|
// Logger.log(`NetworkId ${networkId} not found defaulting`)
|
||||||
network = "Development"
|
network = "Development"
|
||||||
}
|
}
|
||||||
return network
|
return network
|
||||||
|
Loading…
Reference in New Issue
Block a user