0.0.1 • Published 8 months ago

@beeyield_dex/core v0.0.1

Weekly downloads
-
License
GPL-2.0-or-later
Repository
-
Last release
8 months ago

BeeYield

This repository contains the core smart contracts for the BeeYield Protocol. For higher level contracts, see the periphery repository.

Local deployment

In order to deploy this code to a local testnet, you should install the npm package @beeyield_dex/core and import the factory bytecode located at @beeyield_dex/core/artifacts/contracts/BeeYieldFactory.sol/BeeYieldFactory.json. For example:

import {
  abi as FACTORY_ABI,
  bytecode as FACTORY_BYTECODE,
} from '@beeyield_dex/core/artifacts/contracts/BeeYieldFactory.sol/BeeYieldFactory.json'

// deploy the bytecode

This will ensure that you are testing against the same bytecode that is deployed to mainnet and public testnets, and all BeeYield code will correctly interoperate with your local deployment.

Using solidity interfaces

The BeeYield interfaces are available for import into solidity smart contracts via the npm artifact @beeyield_dex/core, e.g.:

import '@beeyield_dex/core/contracts/interfaces/IBeeYieldPool.sol';

contract MyContract {
  IBeeYieldPool pool;

  function doSomethingWithPool() {
    // pool.swap(...);
  }
}
0.0.1

8 months ago