1.0.1 • Published 3 years ago

@tulipswap/tulip-swap-core v1.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

Tulip Factory

Actions Status

In-depth documentation on TulipSwap is available at docs.tulipswap.finance.

Local Development

The following assumes the use of node@>=10.

Install Dependencies

yarn

Compile Contracts

yarn compile

Run Tests

yarn test

Deployment

To deploy the factory contract to a network, rename installation_data_example.json to installation_data.json and fill it's values with the required data.

The code below shows how the contract should look. Leave tulip_factory blank as it will be filled in automatically when the contract is deployed.

{
  "private_key": {
    "alice": "YOUR_PRIVATE_KEY_HERE"
  },
  "public_key": {
    "alice": "YOUR_PUBLIC_KEY_HERE"
  },
  "contract_address": {
    "tulip_factory": ""
  },
  "provider": {
    "rpc_endpoint": "https://rpc.oasiseth.org:8545"
  }
}

Once all the required values are filled in run the command node deployer.js this will deploy your factory contract and fill in the address it was deployed at in the tulip_factory key.

Oasis Testnet Addresses

Deployer Address: 0xc5e3B9C6E6d79330765d240eb12f3BB7A5215592 FeeTo Address: 0xc5e3B9C6E6d79330765d240eb12f3BB7A5215592 TulipFactory Address: 0xca6bd53Ae0c4e288f3826270c32121bF87ab129d

Oasis ETH (OETH) faucet on MainNet Beta scan.oasiseth.org