I'm looking for someone to give me a basic understanding and direction regarding pancakeswap forking. I cloned pancake-swap's periphery repository from github and in its contracts it imports "#uniswap/v2-core/contracts/interfaces/IPancakeFactory.sol" for example. When I install uniswap a tutorial on forking pancakeswap but it is very vague and doesn't seem to help me. Any help will be highly appreciated. Also why are there 2 router files instead of one.
I am also following this guy's Uniswap tutorial and ran into the same problem. Check out what some of the other pancakeswap clones did - for example ApeSwap (https://github.com/ApeSwapFinance/apeswap-swap-periphery/tree/master/contracts)
They created their own IApePair and IApeFactory in interfaces of the periphery folder and just import those files.
It's a bug.
The fix suggested in the bug is to edit package.json doing something like this:
yarn add #uniswap/v2-core#git://github.com/pancakeswap/pancake-swap-core.git
Related
Suppose I am making an NFT Marketplace project, which version of node and solidity should I use so they don't conflict with between packages?
This depends on which packages you are going to use.
Because you did not the list of the packages in the question, then it is not possible to give a better answer.
I also suggest to read xyproblem for asking more precise question.
It's very weired that my code passes all UT/IT in my laptop, but it encounters errors in github CI.
Would you mind helping to take up some methods to debug in github CI? Or to make code runs in local as same as github?
It's a project about timeseries database, Apache-IoTDB. The error looks like a trivial logical error among ordinary code. Hope it may help diagnose the bug. Thank you very much !
act is a local runner for GitHub Actions workflows and should run nearly identically to the real thing.
Alternatively, the debugging-with-ssh action uses upterm to open an SSH listener within a container to get a shell on a running workflow within GitHub Actions itself.
The question solved directly by merging master(the branch my pull request forward to) again.
The point is, github CI (actions) may be running on the code which is AUTO-MERGED when the pull-request accepted.
So if your code passes all tests locally but failed in CI with different result from your local debugging, try merge the branch which PR forward may solve the problem.
Hope this may hepl you and thanks guys under this question.
I am new to concourse CI. Can someone point me to the right direction? I would like to know how I can run junit using concourse CI. Thanks in advance for your assistance.
-Dd
You should play around with concourse for a little bit to get the hang of things before building your own pipeline. The best resources for learning are the flight school tutorial and the stark and wayne tutorial.
Hopefully these two resources will help you understand how concourse uses containerization to accomplish any automation task you want.
If you need any more help feel free to get on the concourse slack, http://slack.concourse.ci, and ask the developers and other heavy users any questions you have.
Good luck!
Concourse runs its task inside a container, which gives you a shell env. Depending on the container, you have specific tools at your disposal. If you are using a maven image in the task definition e.g.
---
platform: linux
image_resource:
type: docker-image
source: {repository: maven, tag: "3.4"}
then you can execute your unit tests with maven
mvn test
If you want to run it without maven, you can just base the task on any image with java installed. Look at this post: How to run JUnit test cases from the command line
I am looking for a TextMate Bundle for Pylons development. Does anyone know of an existing bundle for Mako and/or SQLAlchemy.
I found these two existing articles but the links are no longer valid
If someone knows of a currently active link please let me know
Thanks
Hey Ryan. Had the same issue, but eventually found it cached somewhere. Anyhow, for future generations I've put up a new Git repo with it:
http://github.com/williamsjj/Mako.tmbundle
Just put the Mako.tmbundle here: ~/Library/Application\ Support/TextMate/Bundles/
As you can see in Windsor wiki
There is a class named FromAssembly to help me with installers. But i'm unable to find it anywhere in Castle.*
I'm using .NET 4
It's an old question, but I just ran into the same problem. Took a little while to find FromAssembly (I should get ReSharper). Finally found it!
using Castle.Windsor.Installer;
You can download the source code and do a crtrl-f on the solution:
http://github.com/castleproject/Castle.InversionOfControl
You will need a git client tool, Follow the instructions on the TortoiseGIT site to get one up and running if you dont have one already.