-
Notifications
You must be signed in to change notification settings - Fork 311
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
Testnet deployments #15
Comments
How to test token swaps by integrating with 1inch smart contracts ? Do you have 1inch.exchange deployed in tesnets ? |
I'm bumping this. Gas prices are insane, so API and smart contract support on testnets would be awesome. |
Agreed. Totally need this |
Anyone deployed 1inchon testnet or have a testnet contract address. pls share thanks |
Bumping this |
You can perform |
1inch on any testnet would be sooooo helpful. |
Yes please. This would be really useful! |
An alternative is to use 1Inch on Polygon. Much lower gas fees |
Would really like to see 1inch support erc testnet. Else there is no reason to move from uniswap. |
Bumping it. Need testnet deployment |
Bumping this :) |
Bumping! |
There is no testnet or local network for 1inchProtocol contract because we don’t have all liquidity sources on testnet. Anyway, you can use ganache fork to emulate real mainnet calls https://github.com/trufflesuite/ganache-cli How to use: Install ganache-cli Run next command to setup a mainnet fork ganache-cli --fork node-url -p 9545 --gasLimit 0xfffffffffff Next you can connect to Web3 Provider on remix.ethereum.org with 9545 port (you can do that also via code) And emulate execution for all data |
Hello @krboktv , could you please clarify, if I install ganache, then what address should I use instead https://tx-gateway.1inch.io ? Should I deploy 1inch programs there? And what about tokens? They are seems to be not existing by default. In other words, if 1 inch still not exists on chains like Goerli, it would be great to add details to Quickstart, to let people able to use it without spending lots of money on real transactions just for software testing. |
With ganache you can make a fork of the mainnet starting from the current block. Thank way you replicate the current state of the blockchain, meaning all the contracts deployed there will be available also on your local fork. When ganache starts it tells you the address to use to connect, then you can make transactions as if you are on the official mainnet. |
Hi @danipisca07 @krboktv , i have tried calling onsplitsudit methods in sequence mentioned in this repo documentation using my ganache fork and web3. getExpectedReturn() method works fine , it returns expectedAmount and distribution parts array. When i call the swap() method next with specified arguments , it does'nt return any error but it dont give any returnAmount in result as mentioned in docs . Kindly elaborate if there is no error and swap method is executed correctly without any result i.e an empty object , does it means that swapping has been done , as ganache just emulates the mainnet transactions. Any help will be highly appreciated. |
I have been also facing the same issue |
Truffle/Ganache is being sunset, is their another way I cant test or fork the mainnet? |
: ) |
I have some contracts almost ready for deployment to mainnet, but want to run some tests on a public test network.
Is 1split deployed to ropsten or another test network?
The text was updated successfully, but these errors were encountered: