Skip to content
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

Closed
BlinkyStitt opened this issue May 13, 2020 · 20 comments
Closed

Testnet deployments #15

BlinkyStitt opened this issue May 13, 2020 · 20 comments

Comments

@BlinkyStitt
Copy link

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?

@bhargav55
Copy link

How to test token swaps by integrating with 1inch smart contracts ? Do you have 1inch.exchange deployed in tesnets ?

@gtech
Copy link

gtech commented Mar 23, 2021

I'm bumping this. Gas prices are insane, so API and smart contract support on testnets would be awesome.

@danipisca07
Copy link

Agreed. Totally need this

@harshoffice
Copy link

Anyone deployed 1inchon testnet or have a testnet contract address. pls share thanks

@tperalta82
Copy link

Bumping this

@k06a
Copy link
Member

k06a commented May 21, 2021

You can perform eth_call with the transaction calldata to simulate execution and get return values.

@peetzweg
Copy link

peetzweg commented Jun 2, 2021

1inch on any testnet would be sooooo helpful.

@apostgit
Copy link

apostgit commented Jun 2, 2021

Yes please. This would be really useful!

@raphael-mazet
Copy link

An alternative is to use 1Inch on Polygon. Much lower gas fees

@amit-btc
Copy link

Would really like to see 1inch support erc testnet. Else there is no reason to move from uniswap.

@alexanderem49
Copy link

Bumping it. Need testnet deployment

@chitter99
Copy link

Bumping this :)

@BasilF696
Copy link

Bumping!

@krboktv
Copy link
Member

krboktv commented Jul 26, 2021

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

@EgusCpp
Copy link

EgusCpp commented Nov 3, 2022

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.

@danipisca07
Copy link

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.

@hasnain-shahzad
Copy link

hasnain-shahzad commented Jan 3, 2023

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.

@SrishtiLodhi
Copy link

I have been also facing the same issue

@crackcodesprogramloads
Copy link

Truffle/Ganache is being sunset, is their another way I cant test or fork the mainnet?

@skhetcho
Copy link

: )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests