Comments (19)
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.
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.
How to test token swaps by integrating with 1inch smart contracts ? Do you have 1inch.exchange deployed in tesnets ?
from 1inchprotocol.
I'm bumping this. Gas prices are insane, so API and smart contract support on testnets would be awesome.
from 1inchprotocol.
Agreed. Totally need this
from 1inchprotocol.
Anyone deployed 1inchon testnet or have a testnet contract address. pls share thanks
from 1inchprotocol.
Bumping this
from 1inchprotocol.
You can perform eth_call
with the transaction calldata to simulate execution and get return values.
from 1inchprotocol.
1inch on any testnet would be sooooo helpful.
from 1inchprotocol.
Yes please. This would be really useful!
from 1inchprotocol.
An alternative is to use 1Inch on Polygon. Much lower gas fees
from 1inchprotocol.
Would really like to see 1inch support erc testnet. Else there is no reason to move from uniswap.
from 1inchprotocol.
Bumping it. Need testnet deployment
from 1inchprotocol.
Bumping this :)
from 1inchprotocol.
Bumping!
from 1inchprotocol.
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.
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.
I have been also facing the same issue
from 1inchprotocol.
Truffle/Ganache is being sunset, is their another way I cant test or fork the mainnet?
from 1inchprotocol.
Related Issues (20)
- One Split Audit on Kovan? HOT 2
- When txn fails, the message says "Transaction filed" instead of "Transaction failed" HOT 1
- MM
- Create new Pool, Liquidity shows as about 49% of My Liquidity, should be 100%
- After clicking unlock icon with animated border, to add to an LP, the 1Inch row disappears. I have screenshot.
- My Liquidity shows Zero (1Inch/Eth) after staking the LP tokens to the Liquidity Farming stake for 1Inch rewards. HOT 1
- Try Withdrawing from 1inch/Eth farming stake and it shows balance is Zero!!!!! Most troubling. HOT 1
- OneSplitAudit contract address on BSC HOT 5
- Not enough allowance. Amount: xxxx. Allowance: 0. Spender: xxxxxx
- Use IPFS' DNSLink on 1inch site
- price impact
- Mining?
- Deprecation
- Current 1split version HOT 1
- revert SafeERC20: low-level call failed
- Infinite loop
- Testnet deployment HOT 1
- Additional documentation for 1inch testing
- π
- Getting this error "callBytes failed: Unknown(0x)" while making swap function call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 1inchprotocol.