Giter Site home page Giter Site logo

Testnet deployments about 1inchprotocol HOT 19 CLOSED

1inch avatar 1inch commented on August 21, 2024 33
Testnet deployments

from 1inchprotocol.

Comments (19)

krboktv avatar krboktv commented on August 21, 2024 27

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

from 1inchprotocol.

danipisca07 avatar danipisca07 commented on August 21, 2024 2

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.

from 1inchprotocol.

bhargav55 avatar bhargav55 commented on August 21, 2024

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

from 1inchprotocol.

gtech avatar gtech commented on August 21, 2024

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

from 1inchprotocol.

danipisca07 avatar danipisca07 commented on August 21, 2024

Agreed. Totally need this

from 1inchprotocol.

harshoffice avatar harshoffice commented on August 21, 2024

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

from 1inchprotocol.

tperalta82 avatar tperalta82 commented on August 21, 2024

Bumping this

from 1inchprotocol.

k06a avatar k06a commented on August 21, 2024

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

from 1inchprotocol.

peetzweg avatar peetzweg commented on August 21, 2024

1inch on any testnet would be sooooo helpful.

from 1inchprotocol.

apostgit avatar apostgit commented on August 21, 2024

Yes please. This would be really useful!

from 1inchprotocol.

raphael-mazet avatar raphael-mazet commented on August 21, 2024

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

from 1inchprotocol.

amit-btc avatar amit-btc commented on August 21, 2024

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

from 1inchprotocol.

alexanderem49 avatar alexanderem49 commented on August 21, 2024

Bumping it. Need testnet deployment

from 1inchprotocol.

chitter99 avatar chitter99 commented on August 21, 2024

Bumping this :)

from 1inchprotocol.

BasilF696 avatar BasilF696 commented on August 21, 2024

Bumping!

from 1inchprotocol.

EgusCpp avatar EgusCpp commented on August 21, 2024

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.

from 1inchprotocol.

hasnain-shahzad avatar hasnain-shahzad commented on August 21, 2024

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.

from 1inchprotocol.

SrishtiLodhi avatar SrishtiLodhi commented on August 21, 2024

I have been also facing the same issue

from 1inchprotocol.

crackcodesprogramloads avatar crackcodesprogramloads commented on August 21, 2024

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

from 1inchprotocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.