Skip to content

Tools to help with dev/deploy of Uni-v2 smart contracts on VeChain.

License

Notifications You must be signed in to change notification settings

vechain-labs/uni-v2-deploy-scripts

Repository files navigation

Uniswap V2 Deployement Tools.

Clone uni-v2 and vvet repos before continue.

// Please note this is a draft and this code is under heavy development. NOT to be used in production.

How TO

Read the Makefile first before execute below commands.

Install depedencies

make install

Deploy vVET

make deploy_vvet network={http://url} \
    private={private_key} \
    vvet={/path/to/vvet.json} 

Deploy Factory + Router 02 of Uni v2

make deploy_univ2 network={http://url} \
    private={private_key} \
    factory={/path/to/UniswapV2Factory.json} \
    router={/path/to/UniswapV2Router02.json} \
    vvetaddress={0x....}

Create Pool of vVET + VTHO

make create_pool network={http://url} \
    private={private_key} \
    factory={/path/to/UniswapV2Factory.json} \
    factoryaddress={0x...} \
    vvetaddress={0x...} \
    vthoaddress={0x...}

Deposit intial funds of VET+VTHO into Pool

make deposit_funds network={http://url} \
    private={private_key} \
    router={/path/to/Router02.json} \
    routeraddress={0x...} \
    vvetaddress={0x...} \
    vthoaddress={0x...} \
    vvet={/path/to/vvet.json} \
    vetamount={123456} \
    vthoamount={123456}

Testnet

Currently, some contracts are deployed on testnet:

Contract Address
vVET 0x535b9a56c2f03a3658fc8787c44087574eb381fd
vtho 0x0000000000000000000000000000456e65726779
factory 0x8d77f31c128c88b52a148167cdc5439cb4bb11db
router02 0x4c2204ebc042197a728bfe1a771301177d018e32
vVET/VTHO pool 0x40d1a9b8b27d4f6799513575b957aaf1e0688d8a

Disclaimer

Redistributions of source code must retain this list of conditions and the following disclaimer.

Neither the name of VeChain (VeChain Foundation) nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

Tools to help with dev/deploy of Uni-v2 smart contracts on VeChain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published