-
Notifications
You must be signed in to change notification settings - Fork 14
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
deploy amber contracts to foucoco and test that it works #225
Comments
Please add your planning poker estimate with Zenhub @ashneverdawn |
I followed the deployment scripts to deploy the following contracts on Foucoco, but got stuck on step 6/7. When I tried to deploy the ----- 01_deploy_router -----Deploy Contract: Router ----- 02_deploy_mock_tokens -----Deploy Contract: MockERC20 Deploy Contract: MockERC20 Deploy Contract: MockERC20 ----- 03_deploy_mock_oracles -----Deploy Contract: MockOracle Deploy Contract: MockOracle Deploy Contract: MockOracle Call Contract: Router Call Contract: Router Call Contract: Router ----- 04_deploy_curves -----Deploy Contract: AmberCurve ----- 05_deploy_backstop ----- Deploy Contract: BackstopPool ----- 06_deploy_swap_pools -----Deploy Contract: SwapPool The contract's code was found to be invalid during validation or instrumentation.The most likely cause of this is that an API was used which is not supported by thenode. This hapens if an older node is used with a new version of ink!. Try updatingyour node to the newest available version.A more detailed error can be found on the node console if debug messages are enabledby supplying Use of a function type with too many parameters. |
@ashneverdawn Can you please update the status here? Looks like the PR is merged. |
yes, PR got merged last week. Today, I'll do the runtime upgrade on Foucoco so I can resume the deployment. |
----- 06_deploy_swap_pools -----Deploy Contract: SwapPool Deploy Contract: SwapPool Deploy Contract: SwapPool Call Contract: Router DispatchError docs |
I was able to deploy all the swap pools successfully 👍 This is the registerPool function from the solidity code:
It's not obvious to me what could be the issue. Will investigate further tomorrow. |
Without a way to deploy all the contracts with a script, it's tedious to narrow down this issue. I'm putting this on hold until I've finished creating a way to do that. |
@ashneverdawn What was the error? |
The error was:
Which isn't very helpful, basically just tells me that the contract threw some kind of exception/panicked |
@andywer Once I have a deployment script working, first thing I'll try is deploy the latest version of the contracts. If that doesn't solve it, then I'll dig into the |
@ashneverdawn Did you register a price oracle via |
@andywer yes, I did. This comment documents the exact steps I took: Then after I resolved the issue with deploying SwapPool, I continued here: |
To give an update here:
@TorstenStueber Since this was mostly worked on by you, is there anything I missed that you'd like to add? |
Exactly @ashneverdawn, I couldn't have put it better myself. |
Closing this ticket. Completed long time ago. |
deploy amber contracts to foucoco and test that it works
amber compiled contracts:
https://app.zenhub.com/files/428984346/5ba8448e-f9df-4eb1-b9ab-76010834a767/download
amber compiled slippage curve:
https://app.zenhub.com/files/428984346/f18f9044-057a-43f3-b8d8-4f88912403d2/download
amber deployment scripts:
https://app.zenhub.com/files/428984346/b5e33e2d-68d1-48ee-a79f-b4454e54427d/download
deployment scripts were written for mumbai, so they cannot be used as is, however the deployment steps can be derived from them.
instead of regular erc20 tokens, we should use wrapped native tokens using our psp22pendulum contract found in our
pendulum-ink-wrapper
repo.The text was updated successfully, but these errors were encountered: