Skip to content

Commit

Permalink
Merge pull request #193 from ChefMomota/pancakeswap-onramp
Browse files Browse the repository at this point in the history
feat: Add pancakeswap onramp list
  • Loading branch information
ChefMomota authored Aug 14, 2023
2 parents 13efead + 1e5cf90 commit 5e0b84b
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 0 deletions.
80 changes: 80 additions & 0 deletions lists/pancakeswap-onramp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"name": "PancakeSwap Onramp",
"timestamp": "2023-08-10T04:09:50.147Z",
"version": {
"major": 0,
"minor": 0,
"patch": 2
},
"logoURI": "https://pancakeswap.finance/logo.png",
"keywords": [
"pancakeswap",
"onramp"
],
"tokens": [
{
"name": "DAI StableCoin",
"address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"symbol": "DAI",
"decimals": 18,
"chainId": 1,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/dai.png"
},
{
"name": "USD Coin",
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"decimals": 6,
"chainId": 1,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdc.png"
},
{
"name": "Tether USD",
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdt.png"
},
{
"name": "Binance USD",
"address": "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",
"symbol": "BUSD",
"decimals": 18,
"chainId": 56,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/BUSD.png"
},
{
"name": "DAI StableCoin Zksync",
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"symbol": "DAI",
"decimals": 18,
"chainId": 324,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/dai.png"
},
{
"name": "USD Coin Zksync",
"symbol": "USDC",
"address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
"chainId": 324,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/zksync/0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4.png"
},
{
"name": "Tether USD Zksync",
"symbol": "USDT",
"address": "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",
"chainId": 324,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/zksync/0x493257fD37EDB34451f62EDf8D2a0C418852bA4C.png"
},
{
"name": "USD Coin Arbitrum",
"address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"symbol": "USDC",
"decimals": 6,
"chainId": 42161,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdc.png"
}
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
"generate:pcs-mini-extended": "yarn test --list=pancakeswap-mini-extended && yarn build && node ./dist generate pancakeswap-mini-extended",
"makelist:pcs-mini-extended": "yarn checksum:pcs-mini-extended && yarn generate:pcs-mini-extended",
"from-addresses:pcs-mini-extended": "yarn build && node ./dist get-list-from-addresses",
"checksum:pcs-onramp": "yarn build && node ./dist checksum pancakeswap-onramp",
"generate:pcs-onramp": "yarn test --list=pancakeswap-onramp && yarn build && node ./dist generate pancakeswap-onramp",
"makelist:pcs-onramp": "yarn checksum:pcs-onramp && yarn generate:pcs-onramp",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"fetch:pcs-top-100": "yarn build && node ./dist fetch pcs-top-100",
"fetch:coingecko": "yarn build && node ./dist fetch coingecko",
Expand Down
10 changes: 10 additions & 0 deletions src/buildList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { version as cmcVersion } from "../lists/cmc.json";
import { version as pancakeswapMiniVersion } from "../lists/pancakeswap-mini.json";
import { version as pancakeswapMiniExtendedVersion } from "../lists/pancakeswap-mini-extended.json";
import { version as pancakeswapArbitrumVersion } from "../lists/pancakeswap-arbitrum-default.json";
import { version as pancakeswapOnrampVersion } from "../lists/pancakeswap-onramp.json";
import pancakeswapAptos from "./tokens/pancakeswap-aptos.json";
import pancakeswapDefault from "./tokens/pancakeswap-default.json";
import pancakeswapPolygonZkevmDefault from "./tokens/pancakeswap-polygon-zkevm-default.json";
Expand All @@ -31,6 +32,7 @@ import coingecko from "./tokens/coingecko.json";
import cmc from "./tokens/cmc.json";
import pancakeswapMini from "./tokens/pancakeswap-mini.json";
import pancakeswapMiniExtended from "./tokens/pancakeswap-mini-extended.json";
import pancakeswapOnramp from "./tokens/pancakeswap-onramp.json";

export enum VersionBump {
"major" = "major",
Expand Down Expand Up @@ -167,6 +169,14 @@ const lists = {
sort: true,
currentVersion: pancakeswapMiniExtendedVersion,
},
"pancakeswap-onramp": {
list: pancakeswapOnramp,
name: "PancakeSwap Onramp",
keywords: ["pancakeswap", "onramp"],
logoURI: "https://pancakeswap.finance/logo.png",
sort: true,
currentVersion: pancakeswapOnrampVersion,
},
};

const getNextVersion = (currentVersion: Version, versionBump?: VersionBump) => {
Expand Down
2 changes: 2 additions & 0 deletions src/checksum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import coingecko from "./tokens/coingecko.json";
import cmc from "./tokens/cmc.json";
import pancakeswapMini from "./tokens/pancakeswap-mini.json";
import pancakeswapMiniExtended from "./tokens/pancakeswap-mini-extended.json";
import pancakeswapOnramp from "./tokens/pancakeswap-onramp.json";

const lists = {
"pancakeswap-default": pancakeswapDefault,
Expand All @@ -31,6 +32,7 @@ const lists = {
cmc,
"pancakeswap-mini": pancakeswapMini,
"pancakeswap-mini-extended": pancakeswapMiniExtended,
"pancakeswap-onramp": pancakeswapOnramp,
};

const checksumAddresses = (listName: string): void => {
Expand Down
7 changes: 7 additions & 0 deletions src/ci-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import srcCoingecko from "./tokens/coingecko.json";
import srcCmc from "./tokens/cmc.json";
import srcMini from "./tokens/pancakeswap-mini.json";
import srcMiniExtended from "./tokens/pancakeswap-mini-extended.json";
import srcOnramp from "./tokens/pancakeswap-onramp.json";
import defaultList from "../lists/pancakeswap-default.json";
import defaultEthList from "../lists/pancakeswap-eth-default.json";
import defaultPolygonZkevmList from "../lists/pancakeswap-polygon-zkevm-default.json";
Expand All @@ -22,6 +23,7 @@ import coingeckoList from "../lists/coingecko.json";
import cmcList from "../lists/cmc.json";
import miniList from "../lists/pancakeswap-mini.json";
import miniExtendedList from "../lists/pancakeswap-mini-extended.json";
import onrampList from "../lists/pancakeswap-onramp.json";

const lists = [
{
Expand Down Expand Up @@ -84,6 +86,11 @@ const lists = [
src: srcMiniExtended,
actual: miniExtendedList,
},
{
name: "pancakeswap-onramp",
src: srcOnramp,
actual: onrampList,
},
];

const compareLists = (listPair) => {
Expand Down
66 changes: 66 additions & 0 deletions src/tokens/pancakeswap-onramp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[
{
"name": "Binance USD",
"address": "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",
"symbol": "BUSD",
"decimals": 18,
"chainId": 56,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/BUSD.png"
},
{
"name": "USD Coin",
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"symbol": "USDC",
"decimals": 6,
"chainId": 1,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdc.png"
},
{
"name": "Tether USD",
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdt.png"
},
{
"name": "DAI StableCoin",
"address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"symbol": "DAI",
"decimals": 18,
"chainId": 1,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/dai.png"
},
{
"name": "DAI StableCoin Zksync",
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"symbol": "DAI",
"decimals": 18,
"chainId": 324,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/dai.png"
},
{
"name": "USD Coin Zksync",
"symbol": "USDC",
"address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
"chainId": 324,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/zksync/0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4.png"
},
{
"name": "Tether USD Zksync",
"symbol": "USDT",
"address": "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",
"chainId": 324,
"decimals": 6,
"logoURI": "https://tokens.pancakeswap.finance/images/zksync/0x493257fD37EDB34451f62EDf8D2a0C418852bA4C.png"
},
{
"name": "USD Coin Arbitrum",
"address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"symbol": "USDC",
"decimals": 6,
"chainId": 42161,
"logoURI": "https://tokens.pancakeswap.finance/images/symbol/usdc.png"
}
]

0 comments on commit 5e0b84b

Please sign in to comment.