Skip to content

Commit

Permalink
Merge pull request #9 from sprotest/feature/polygon
Browse files Browse the repository at this point in the history
add configuration for polygon and update addresses
  • Loading branch information
tafonina committed Mar 31, 2023
2 parents 7513ff3 + 17eca00 commit 448e920
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ Like so many projects, this effort has roots in many places. The list can be fou
- goerli
- mainnet
- polygon-mumbai
- polygon-mainnet
6 changes: 3 additions & 3 deletions sys/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ func (me *System) init(stngs *model.Settings) error {
cfg.Config.EthClientURL = "https://polygon-mumbai.infura.io/v3/" + stngs.InfuraApiKey
cfg.Config.EthWebSocketURL = "wss://polygon-mumbai.infura.io/ws/v3/" + stngs.InfuraApiKey
} else if stngs.BlockchainNet == "polygon-mainnet" {
// cfg.Config.XESContractAddress = "0xa017ac5fac5941f95010b12570b812c974469c2c"
// cfg.Config.EthClientURL = "https://polygon-mainnet.infura.io/v3/" + stngs.InfuraApiKey
// cfg.Config.EthWebSocketURL = "wss://polygon-mainnet.infura.io/ws/v3/" + stngs.InfuraApiKey
cfg.Config.XESContractAddress = "0x6B586cdC3f889AD4C9FA78000F99C54e88F66459"
cfg.Config.EthClientURL = "https://polygon-mainnet.infura.io/v3/" + stngs.InfuraApiKey
cfg.Config.EthWebSocketURL = "wss://polygon-mainnet.infura.io/ws/v3/" + stngs.InfuraApiKey
} else {
log.Println("Wrong blockchain network: ", stngs.BlockchainNet)
}
Expand Down
9 changes: 9 additions & 0 deletions ui/wallet/src/ProxeusEthereum/config/service-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ const serviceConfig = {
PROXEUS_FS_PAST_ADDRESSES: [
]
},
'polygon-mainnet': {
DEFAULT_GAS_REGULAR: 1000000,
DEFAULT_GAS_CREATE: 4000000,
XES_TOKEN_ADDRESS: '0x6B586cdC3f889AD4C9FA78000F99C54e88F66459',
PROXEUS_FS_ADDRESS: '0x60970BeFda93464A105DD21Dc6a30B69C5B5c6e4',
// When the PROXEUS_FS_ADDRESS changes add the old address to the list below so that file validation check also past contracts
PROXEUS_FS_PAST_ADDRESSES: [
]
},
ropsten: {
DEFAULT_GAS_REGULAR: 1000000,
DEFAULT_GAS_CREATE: 4000000,
Expand Down

0 comments on commit 448e920

Please sign in to comment.