-
Notifications
You must be signed in to change notification settings - Fork 12
Make the oracle work on polygon network (or other network) #15
Comments
Having the same issue on Moonbeam |
Hey guys! Fortune is not multichain right now and can be configured via environment variables(backends). There are 2 ways of doing this:
Personally I don't think that we need a multichain right now. New chain = new instance is the best way right now |
|
Hey @foufrix . Let's replace the Escrow ABI with this implementation - https://github.com/humanprotocol/hmt-escrow/pull/295/files It supports the standard ERC20 interface without bulk* methods |
Hi, @vkomodey thanks for the help, I deployed the contract of your branch polygon-escrow-bulk here: https://mumbai.polygonscan.com/address/0x5D65C42cF4a140863744889BAd07f246C0211754 I tried again, creating an Escrow and redoing everything, I still got the same error on the call of the oracle : Is it my guess there may be a mismatch of networks? Because the Can a local call from the oracle on ganache to the polygon network work? And maybe the code of the oracle is trying to reach the contract 0x4f7106aac91ca6d1e6fef1d6f114baeb7643cdf8 on ganache instead on polygon |
Are you trying this on the deployed playground? I mean, we definitely can't use current oracles deployed in the ganache setup
|
It's not on the AWS deployed ganache, but on a local ganache instance on my computer I thought we could, I asked on the discord about that and it did not seem to be an issue. |
So I need to deploy oracle as well on the polygon Mumbai network? Oracle is not a contract. It's EOA. You don't have to deploy anything here |
I deployed the Factory Escrow contract here: https://mumbai.polygonscan.com/address/0x2dd72db2bBA65cE663e476bA8b84A1aAF802A8e3
And I deployed it to work with USDC (for easy testing): https://mumbai.polygonscan.com/address/0xe11a86849d99f524cac3e7a0ec1241828e332c62
In
constants.js
I changed the value to make it work :I started the fortune exchange and launcher docker image locally. Creation of Escrow worked ok. Funding the Escrow (with USDC) and providing manifest.json worked ok.
Here is the manifest I provide :
I get the exchange URL, I can go to it, but when I want to send the fortune message from Agent 2 and 3 accounts, I get this error :
From my understanding, the oracles are running on this RPC http://ec2-3-15-230-238.us-east-2.compute.amazonaws.com:8545/ hosted on Amazon AWS.
Can the polygon Escrow contract created on Polygon Mumbai interact with the oracles hosted on AWS? If yes, what do I need to change?
Because on the AWS chain, the fortune app works ok.
The text was updated successfully, but these errors were encountered: