Git Product home page Git Product logo

pancake-toolkit's Introduction

Pancake Toolkit

This repository is a monorepo manage with yarn workspaces and Lerna.

Packages

How to use

Clone the repository

git clone [email protected]:pancakeswap/pancake-toolkit.git

Run yarn at the root of the workspace

cd pancake-toolkit
yarn

Then, refer to the readme of each project.

pancake-toolkit's People

Contributors

0xcorgi avatar aosiepcs avatar benson0224 avatar boczeratul avatar chef-cheems avatar chef-chungus avatar chef-jojo avatar chefhutch avatar chefilip avatar chefkai avatar chefmomota avatar chefsnoopy avatar chenxsan avatar chrissiwaffler avatar ciruz avatar dependabot[bot] avatar guifeliper avatar hachiojidev avatar karelianpie avatar memoyil avatar petterive avatar plind-dm avatar rabbitdoge avatar richardpk avatar rovak avatar safepalwallet avatar safu-fullstack avatar tje3d avatar tzoeov avatar z3s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pancake-toolkit's Issues

building storybook on windows

Hey guys,

the package.json from the uikit (storybook) contains a rm -rf in the build command, this is not really compatible when building it on windows. I'm unsure if storybook deletes the dist/ folder or cleans it up by itself when building.

"build": "rm -rf ./dist && rollup -c && tsc -d --emitDeclarationOnly --declarationDir dist",

Setup from scratch ?

Hi,

I want to set up a farm site using the pancakeswap infrastructure, but I don't know where to start. I'll be glad, if you help me ?

[uikit] Icon bundle size and tree shaking

Icon takes half of the the uikit bundle size and it's not tree shakable right now. ~250kb
CleanShot 2021-12-02 at 16 02 14@2x

Because we re import all the icons here, webpack cannot tree shake the icon based on the router code splitting


TODO:

  • remove Icon component
  • menu config icon should accpet jsx instead of string

future plan:

  • Split icon to separated package

Run Issue

I tried to run the toolkit, firstly I had to install yarn to I did yarn install but every time when it's almost finished installed I got the following error message.

image

Output:
yarn run v1.22.18
$ typechain --out-dir src/utils/abi/types --target=ethers-v5 "src/utils/abi/*.json"
node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'C:\Users\kylee\Desktop\Fork\pancake-toolkit-master\node_modules\node_
modules\typechain\dist\cli\cli.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v17.9.0

useModal is incompatible with react router links

If you want to put Link inside modal in useModal it doesn't work since modals are rendered outside of router provider. We need to find a solution to be able to use react router links in modals, otherwise we forcing users to reload the site / open a new tab.

setupTests.js import "jest-styled-components" not working

Our import of "jest-styled-components" in setupTests.js doesn't seem to be working. Without snapshots capturing styles, they aren't much good.

As detailed here https://github.com/styled-components/jest-styled-components#snapshot-testing, we'd expect our snapshots to capture styles, and have placeholder classNames rather than hashed classnames (which will change on every style update). i.e.

// breadcrumbs.test.tsx
      .c0 {
      -webkit-align-items: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      color: #BDC2C4;
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      list-style-type: none;
    }

    <ul
        class="c0"
      />

But, instead, our snapshots are missing styles and have hashed classnames, i.e.

// breadcrumbs.test.tsx

     <ul
        class="sc-dlfnbm lhEQuh"
      />

Request to add $ZNN to extended token list

The Zenon.network community kindly requests that PCS add the $ZNN token to the PCS Extended Token List. Our formal request can be found here:

  • $ZNN has been trading on Pancakeswap since 24/9/2021
  • $ZNN has traded $158 Million in volume during this time
  • We want $ZNN added so Rango Exchange will be able to include the token in their DEX aggregator. It will increase volume and fees to PCS.
  • BSC Contract Address [0x84b174628911896a3b87Fa6980D05Dbc2eE74836]

https://forum.zenon.org/t/attention-pancakeswap-request-to-add-zenon-network-znn-to-the-extended-token-list-pancakeswap-extended-json/613

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.