Comments (10)
@wysenynja my testnet deploy steps were:
- Install uniswap as specified in the README. Make sure to switch to the Vyper compiler version specified.
- use
vyper uniswap_factory.vy
to get bytecode andvyper -f abi uniswap_factory.vy
to get the ABI. Do the same foruniswap_exchange.vy
- Deploy both contracts separately from their bytecode using https://mycrypto.com/contracts/deploy
- Use factory ABI (step 2) + factory address (step 3) and https://mycrypto.com/contracts/interact to open an interface to the uniswap factory
- call
initializeFactory(templateAddress)
and pass in the address of the deployeduniswap_exchange.vy
contract (step 2)
from v1-contracts.
- factory contract address
- exchange contract address
from v1-contracts.
https://github.com/shakeib98/uniswap-exchange-setup
This is the script to setup uniswap on testnet. :)
from v1-contracts.
Hi Nitika,
To answer your questions:
- The front end app can be run on Rinkeby. But you can also redeploy the contracts using Ganache or other testnet tools too.
I have tested both swaps and liquidity functions using Rinkeby. Just fork https://github.com/Uniswap/uniswap-frontend and run it with yarn start:rinkeby.
- Calling the createExchange method from the Factory contract.
from v1-contracts.
@rossbulat , can you provide more detail on how to compile and deploy the contracts to ganache?
from v1-contracts.
Hello, in step 5,
when i choose initializeFactory(templateAddress)
and paste exchange deploy address, and about Value, what i should input in Value??
from v1-contracts.
leave it at 0
from v1-contracts.
thank you
from v1-contracts.
@haydenadams
i don't understand which address in step 4 and step 5,
4.Use factory ABI (step 2) + factory address (step 3) and https://mycrypto.com/contracts/interact to open an interface to the uniswap factory
==> [factory address] means the [factory contract address] or [factory address] use to deploy contract?
5.call initializeFactory(templateAddress) and pass in the address of the deployed uniswap_exchange.vy contract (step 2)
==>what is [address of the deployed]? the [exchange contract address] or [exchange address]?
from v1-contracts.
@haydenadams
i will replace with my contracts here in addesses.js right?
const MAIN = { factoryAddress: '0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95', exchangeAddresses: { addresses: [ ['BNB', '0x255e60c9d597dCAA66006A904eD36424F7B26286'], ['DAI', '0x09cabEC1eAd1c0Ba254B09efb3EE13841712bE14'], ['KNC', '0x49c4f9bc14884f6210F28342ceD592A633801a8b'], ...
if it is, i wondering why so many exchange contract addresses for each tokens like that? is it ok if i use same 1 exchange contract address for those tokens??
from v1-contracts.
Related Issues (20)
- contracts-vyper instruction HOT 1
- getTokenToTokenPrice HOT 2
- Tokens that do no return bools do not work HOT 1
- vNext Feature Request: Moving Average Price Feed Data HOT 3
- Unknown list type HOT 1
- Market limit orders for Uniswap HOT 7
- How important is the `min_liquidity` argument when adding liquidity
- UIP 1: Optional Permissioned Liquidity Pools HOT 2
- Add support for EIP1155
- ERC-777 token support HOT 2
- Doesn’t woks with ᴇʀᴄ20 tokens which always returns nothing. HOT 1
- What will happen in case of REVERT inside DELEGATE_CALL? HOT 4
- Support for latest Vyper compiler HOT 4
- End to End encryption of Uniswap to prevent front running HOT 3
- Bytecode: deployedBytecode or constructor?
- ABI removeLiquidity return values name collision
- Can't compile contracts on master branch, are other branch contracts okay to test on local testnet? HOT 1
- Add ERC-20 compatibility check when creating a new exchange HOT 1
- Missing ETH after failed attempt to add additional funds to UBT/ETH Liquidity pool HOT 2
- 如何将一个地址中的代币转移到另外一个地址中?
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 v1-contracts.