Skip to content

Commit

Permalink
Merge pull request #442 from ApeSwapFinance/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
n0mbr3al3at0r10 authored Jun 27, 2024
2 parents 9cb7299 + 72c07a3 commit de2e67c
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 158 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ape.swap/apeswap-lists",
"version": "1.20.4",
"version": "2.0.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"publishConfig": {
Expand Down Expand Up @@ -28,7 +28,6 @@
"legacy-build": "rimraf ./config && mkdir config && run-func dist/apeswap-lists.cjs.development.js buildLegacyConfig && yarn run format:write"
},
"dependencies": {
"@ape.swap/sdk": "4.4.7",
"bignumber.js": "^9.0.2",
"ethers": "^5.6.9",
"path": "^0.12.7"
Expand Down
3 changes: 1 addition & 2 deletions src/constants/bills.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChainId } from '@ape.swap/sdk'
import tokens from './tokens'
import { BillArtCollection, BillsConfig, BillVersion, MigrationVestingTerms } from '../types'
import { BillArtCollection, BillsConfig, BillVersion, ChainId, MigrationVestingTerms } from '../types'

// BNB Largest ID: 1073
// Polygon Largest ID: 152
Expand Down
3 changes: 1 addition & 2 deletions src/constants/dexFactories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ChainId } from '@ape.swap/sdk'
import { LiquidityDex, Protocols } from '../types'
import { ChainId, LiquidityDex, Protocols } from '../types'

export const dexFactories: Partial<
Record<ChainId, Partial<Record<LiquidityDex, { factory: string; protocol: Protocols }>>>
Expand Down
3 changes: 1 addition & 2 deletions src/constants/dexToZapMapping.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ChainId } from '@ape.swap/sdk'
import { LiquidityDex, ZapVersion } from '../types'
import { ChainId, LiquidityDex, ZapVersion } from '../types'

export const dexToZapMapping: Record<LiquidityDex, Partial<Record<ChainId, ZapVersion>>> = {
[LiquidityDex.ApeSwapV2]: {
Expand Down
3 changes: 1 addition & 2 deletions src/constants/dualFarms.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChainId } from '@ape.swap/sdk'
import tokens from './tokens'
import { DualFarmConfig } from '../types'
import { ChainId, DualFarmConfig } from '../types'

// Max PID is 13

Expand Down
3 changes: 1 addition & 2 deletions src/constants/farms.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChainId } from '@ape.swap/sdk'
import tokens from './tokens'
import { FarmConfig, QuoteToken } from '../types'
import { ChainId, FarmConfig, QuoteToken } from '../types'

// Current PID is 218

Expand Down
3 changes: 1 addition & 2 deletions src/constants/farmsV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ChainId } from '@ape.swap/sdk'
import { FarmConfig, QuoteToken } from '../types'
import { ChainId, FarmConfig, QuoteToken } from '../types'
import tokens from './tokens'

// Highest Farm ID: 67
Expand Down
8 changes: 6 additions & 2 deletions src/constants/flashBonds.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { BillArtCollection, BillVersion, FlashBondConfig /* BillArtCollection, BillVersion, */ } from '../types'
import { ChainId } from '@ape.swap/sdk'
import {
BillArtCollection,
BillVersion,
ChainId,
FlashBondConfig /* BillArtCollection, BillVersion, */,
} from '../types'
import tokens from './tokens'

const flashBonds: FlashBondConfig[] = [
Expand Down
3 changes: 1 addition & 2 deletions src/constants/jungleFarms.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { JungleFarmConfig } from '../types'
import { ChainId, JungleFarmConfig } from '../types'
import tokens from './tokens'
import { ChainId } from '@ape.swap/sdk'

const jungleFarms: JungleFarmConfig[] = [
/*
Expand Down
3 changes: 1 addition & 2 deletions src/constants/jungleFarmsV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { JungleFarmConfig } from 'types'
import { ChainId } from '@ape.swap/sdk'
import { ChainId, JungleFarmConfig } from '../types'
import tokens from './tokens'

const jungleFarmsV2: JungleFarmConfig[] = [
Expand Down
3 changes: 1 addition & 2 deletions src/constants/launchProjects.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BillArtCollection, BillVersion, LaunchProjectConfig } from '../types'
import { ChainId } from '@ape.swap/sdk'
import { BillArtCollection, BillVersion, ChainId, LaunchProjectConfig } from '../types'
import tokens from './tokens'

const launchProjects: LaunchProjectConfig[] = [
Expand Down
3 changes: 1 addition & 2 deletions src/constants/pools.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import BigNumber from 'bignumber.js'
import { ChainId } from '@ape.swap/sdk'
import { PoolConfig, PoolCategory } from '../types'
import { PoolConfig, PoolCategory, ChainId } from '../types'
import tokens from './tokens'

const BANANA_PER_BLOCK = new BigNumber(10)
Expand Down
3 changes: 1 addition & 2 deletions src/constants/poolsV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ChainId } from '@ape.swap/sdk'
import { PoolConfig, PoolCategory } from '../types'
import { PoolConfig, PoolCategory, ChainId } from '../types'
import tokens from './tokens'

// Current BNB Sous ID is 2
Expand Down
3 changes: 1 addition & 2 deletions src/constants/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ChainId } from '@ape.swap/sdk'
import { IchiSupportedDex, LiquidityDex, Token } from '../types'
import { ChainId, IchiSupportedDex, LiquidityDex, Token } from '../types'

const tokens: Record<string, Token> = {
// BANANA should always be first token for GNANA calculation
Expand Down
3 changes: 1 addition & 2 deletions src/constants/vaults.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChainId } from '@ape.swap/sdk'
import tokens from './tokens'
import { VaultConfig, VaultVersion } from '../types'
import { ChainId, VaultConfig, VaultVersion } from '../types'

const vaults: VaultConfig[] = [
{
Expand Down
3 changes: 1 addition & 2 deletions src/constants/vaultsV3.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChainId } from '@ape.swap/sdk'
import tokens from './tokens'
import { VaultConfig, VaultVersion } from '../types'
import { ChainId, VaultConfig, VaultVersion } from '../types'

const vaults: VaultConfig[] = [
// SPECIAL V1 AUTO COMPOUND VAULT -> V2 MASTER APE
Expand Down
3 changes: 1 addition & 2 deletions src/constants/zapInputTokens.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Token } from '../types'
import { ChainId, Token } from '../types'
import tokens from './tokens'
import { ChainId } from '@ape.swap/sdk'

const zapInputTokens: Partial<Record<ChainId, Record<string, Token>>> = {
[ChainId.BSC]: {
Expand Down
20 changes: 18 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ChainId } from '@ape.swap/sdk'

export enum QuoteToken {
'BNB' = 'BNB',
'BANANA' = 'BANANA',
Expand All @@ -18,6 +16,24 @@ export enum PoolCategory {
'JUNGLE' = 'Jungle',
}

export enum ChainId {
MAINNET = 1,
MATIC = 137,
MATIC_TESTNET = 80001,
BSC = 56,
BSC_TESTNET = 97,
TLOS = 40,
ARBITRUM = 42161,
INEVM_TESTNET = 2424,
INEVM = 2525,
SEPOLIA = 11155111,
LINEA = 59144,
LIGHTLINK = 1890,
IOTA_TESTNET = 1075,
IOTA = 8822,
BASE = 8453,
}

export enum LiquidityDex {
ApeSwapV2 = 'ApeSwapV2',
ApeSwapV3 = 'ApeSwapV3',
Expand Down
Loading

0 comments on commit de2e67c

Please sign in to comment.