Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from traderjoe-xyz/add-joepeg-addresses
Browse files Browse the repository at this point in the history
add joepeg subgraphs and contract addresses to sdk
  • Loading branch information
intro0000 authored Apr 30, 2022
2 parents a06cbe3 + 7be8f6f commit 48ddc09
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 1 deletion.
82 changes: 82 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,85 @@ export const MAXIMILLION_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.FUJI]: '0x0000000000000000000000000000000000000000',
[ChainId.AVALANCHE]: '0xe5cDdAFd0f7Af3DEAf4bd213bBaee7A5927AB7E7'
}

/**
* Joepeg Marketplace SDK
*/

export const CURRENCY_MANAGER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x520Aa97ffC72d5310A3817C0d620c26ab055Df03',
[ChainId.AVALANCHE]: '0xf28b97020949Dd9aBcFa65fD6ff28C943b68A62b'
}

export const EXECUTION_MANAGER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0xA9114FF08D8a46ef68801408bA70f843F2fd5d06',
[ChainId.AVALANCHE]: '0xB0cCD8742efAe2A8af11771F9E9D195B9c93604f'
}

export const JOEPEG_EXCHANGE_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x04e290BE5163Ad5c92109Eb4733C45A2dF110d44',
[ChainId.AVALANCHE]: '0xaE079eDA901F7727D0715aff8f82BA8295719977'
}

export const PROTOCOL_FEE_MANAGER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x0AC33c94Cf937a19548ff99139D7d495A0898794',
[ChainId.AVALANCHE]: '0x777bF9ac3529fD2CD1B6e2dd63dFAE8Fd44aEc96'
}

export const ROYALTY_FEE_MANAGER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0xd8870906B837e3C40bCaAc428D71FdE41Bf152Ba',
[ChainId.AVALANCHE]: '0x3f2855fb9651B87c89a08ec1fe0E2EBF41A597D8'
}

export const ROYALTY_FEE_REGISTRY_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0xb031B73dC98fa9d1963a6BFd8682D09235fA71bD',
[ChainId.AVALANCHE]: '0x0BE2A64FC1390d6581f280C7587c5B657C4fDce3'
}

export const ROYALTY_FEE_SETTER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0xd4903b8689110F67EB050d500B6EFA433F249786',
[ChainId.AVALANCHE]: '0xA7418654637fFca103Cfa4149a594045294D20F5'
}

export const STRATEGY_STANDARD_SALE_FOR_FIXED_PRICE_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0xB241C61Bf878083c675599256d15be4bd331423c',
[ChainId.AVALANCHE]: '0x24ab13f8B58be64a91a7291b5e0CF32fCDDcc62B'
}

export const TRANSFER_MANAGER_ERC721_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x06f90fd024d0f21b02cB0e7e504e7653C24Ec434',
[ChainId.AVALANCHE]: '0x16736b117ab4842C825599db1f1F4B0fd32D3751'
}

export const TRANSFER_MANAGER_ERC1155_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x06ce9F2B31b0dd59388D93b95B3b67aeBd5F4743',
[ChainId.AVALANCHE]: '0x85fF75F797b0B4132F0ce33E6f6Bf688d23E284F'
}

export const TRANSFER_MANAGER_NON_COMPLIANT_ERC721_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x5a59bebbE7A95d851D9D5034458420Cb00d9263D',
[ChainId.AVALANCHE]: '0x3C111Ed8B7237a3343181A75026e0f822CFa52Ab'
}

export const TRANSFER_SELECTOR_NFT_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0x9f6C0da935BE0D333784DAE9F02508Bf6220f5d8',
[ChainId.AVALANCHE]: '0x6817F284319DD8fED56A8577d9A29B5685EB6915'
}

export const ERC721_TOKEN_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.RINKEBY]: '0x0000000000000000000000000000000000000000',
[ChainId.FUJI]: '0xfBF22D7c2ecED7115B752ec56234AC3fE1177f6b',
[ChainId.AVALANCHE]: '0x8e39F7D9B4A0E994A17929a6FA1AEF67622692D2'
}
15 changes: 14 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,20 @@ export {
MONEY_MAKER_ADDRESS,
VEJOE_STAKING_ADDRESS,
VEJOE_TOKEN_ADDRESS,
BOOSTED_MASTERCHEF_ADDRESS
BOOSTED_MASTERCHEF_ADDRESS,
CURRENCY_MANAGER_ADDRESS,
EXECUTION_MANAGER_ADDRESS,
JOEPEG_EXCHANGE_ADDRESS,
PROTOCOL_FEE_MANAGER_ADDRESS,
ROYALTY_FEE_MANAGER_ADDRESS,
ROYALTY_FEE_REGISTRY_ADDRESS,
ROYALTY_FEE_SETTER_ADDRESS,
STRATEGY_STANDARD_SALE_FOR_FIXED_PRICE_ADDRESS,
TRANSFER_MANAGER_ERC721_ADDRESS,
TRANSFER_MANAGER_ERC1155_ADDRESS,
TRANSFER_MANAGER_NON_COMPLIANT_ERC721_ADDRESS,
TRANSFER_SELECTOR_NFT_ADDRESS,
ERC721_TOKEN_ADDRESS
} from './constants'

export * from './errors'
Expand Down
12 changes: 12 additions & 0 deletions src/subgraphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ export const BOOSTED_MASTERCHEF_SUBGRAPH: {[chainId in ChainId]: string } = {
[ChainId.FUJI]: ZERO_ADDRESS,
[ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/boosted-master-chef'
}

export const NFT_CONTRACTS_SUBGRAPH: {[chainId in ChainId]: string } = {
[ChainId.RINKEBY]: ZERO_ADDRESS,
[ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/nft-contract-fuji',
[ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/nft-contracts'
}

export const JOEPEG_MARKETPLACE_SUBGRAPH: {[chainId in ChainId]: string } = {
[ChainId.RINKEBY]: ZERO_ADDRESS,
[ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/marketplace-fuji',
[ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/marketplace'
}

0 comments on commit 48ddc09

Please sign in to comment.