diff --git a/package.json b/package.json index 92306f3..0908c1d 100644 --- a/package.json +++ b/package.json @@ -45,4 +45,4 @@ "semi": false, "singleQuote": true } -} +} \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index 4ffe38f..c1e7d4d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -5,7 +5,9 @@ export type BigintIsh = JSBI | bigint | string export enum ChainId { FUJI = 43113, - AVALANCHE = 43114 + AVALANCHE = 43114, + ARBITRUM_ONE = 42161, + ARB_GOERLI = 421613 } export enum TradeType { @@ -24,137 +26,191 @@ export enum Rounding { */ export const FACTORY_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xF5c7d9733e5f53abCC1695820c4818C59B457C2C', - [ChainId.AVALANCHE]: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10' + [ChainId.AVALANCHE]: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x1886D09C9Ade0c5DB822D85D21678Db67B6c2982' } export const JOE_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x477Fd10Db0D80eAFb773cF623B258313C3739413', - [ChainId.AVALANCHE]: '0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd' + [ChainId.AVALANCHE]: '0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const MASTERCHEF_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xEAA9637E54D4Da88d7A56E797C2EAa4950111033', - [ChainId.AVALANCHE]: '0xd6a4F121CA35509aF06A0Be99093d08462f53052' + [ChainId.AVALANCHE]: '0xd6a4F121CA35509aF06A0Be99093d08462f53052', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const MASTERCHEF_V3_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x47e4B09651D76609e902183c2315b0638fa8375E', - [ChainId.AVALANCHE]: '0x188bED1968b795d5c9022F6a0bb5931Ac4c18F00' + [ChainId.AVALANCHE]: '0x188bED1968b795d5c9022F6a0bb5931Ac4c18F00', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BAR_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x200BdB3Ed6bF347421329FdbF1813dE87F1A456a', - [ChainId.AVALANCHE]: '0x57319d41F71E81F3c65F2a47CA4e001EbAFd4F33' + [ChainId.AVALANCHE]: '0x57319d41F71E81F3c65F2a47CA4e001EbAFd4F33', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ZAP_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x035CA9dB0e001808cB8CD20D1d1C592dF1250107', - [ChainId.AVALANCHE]: '0x2C7B8e971c704371772eDaf16e0dB381A8D02027' + [ChainId.AVALANCHE]: '0x2C7B8e971c704371772eDaf16e0dB381A8D02027', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROUTER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xd7f655E3376cE2D7A2b08fF01Eb3B1023191A901', - [ChainId.AVALANCHE]: '0x60aE616a2155Ee3d9A68541Ba4544862310933d4' + [ChainId.AVALANCHE]: '0x60aE616a2155Ee3d9A68541Ba4544862310933d4', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x454206AD825cAfaE03c9581014AF6b74f7D53713' } export const MAKER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x6De03a4221d325Edc9707CEdeff9C150e99d6eC5', - [ChainId.AVALANCHE]: '0x861726BFE27931A4E22a7277bDe6cb8432b65856' + [ChainId.AVALANCHE]: '0x861726BFE27931A4E22a7277bDe6cb8432b65856', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROLL_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x41d5f5F66e4cEd197Ff273308A1c194E9E249f4F', - [ChainId.AVALANCHE]: '0xacFF0fBf56bAeb9Ef677DE19ADED8F7A950BCb58' + [ChainId.AVALANCHE]: '0xacFF0fBf56bAeb9Ef677DE19ADED8F7A950BCb58', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BORINGHELPER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x832452DBa66232193C0fb525D5165a3A58b6811B', - [ChainId.AVALANCHE]: '0x1dd4D86180EEe39ac4fB35ECa67CACF608Ab5741' + [ChainId.AVALANCHE]: '0x1dd4D86180EEe39ac4fB35ECa67CACF608Ab5741', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BORINGHELPER_MCV3_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x87631c1Ec5312e030D4874231d8e0AFc545928A2', - [ChainId.AVALANCHE]: '0xce63ECA0C8A2084C1BaEcE7737dB88f10c412c5E' + [ChainId.AVALANCHE]: '0xce63ECA0C8A2084C1BaEcE7737dB88f10c412c5E', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BORINGHELPER_BMCJ_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x9B427cBE6cee480773Fb889ec7067B8b1541dA7f', - [ChainId.AVALANCHE]: '0x80242b13F37eEB5B59fFe0e988d69133f1b19747' + [ChainId.AVALANCHE]: '0x80242b13F37eEB5B59fFe0e988d69133f1b19747', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BORINGTOKENSCANNER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xD28be693a573a26f50195213613EC893Ad5c4460', - [ChainId.AVALANCHE]: '0x5cFcA5b2149A20A166508B28e5FCFA65c44c6B9c' + [ChainId.AVALANCHE]: '0x5cFcA5b2149A20A166508B28e5FCFA65c44c6B9c', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BORINGDASHBOARD_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xD28be693a573a26f50195213613EC893Ad5c4460', - [ChainId.AVALANCHE]: '0x1Af353148F2316487b5311Fcd522c037842D232c' + [ChainId.AVALANCHE]: '0x1Af353148F2316487b5311Fcd522c037842D232c', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const LOCKING_WRAPPER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x0000000000000000000000000000000000000000', - [ChainId.AVALANCHE]: '0xDc3B37B5F0Fe5d3f8b8701a3F8d81A02EE8A1E1a' + [ChainId.AVALANCHE]: '0xDc3B37B5F0Fe5d3f8b8701a3F8d81A02EE8A1E1a', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const FARMLENS_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x0000000000000000000000000000000000000000', - [ChainId.AVALANCHE]: '0x8A6FA314799b5E5553Cbce7fab3d9EAdEf5ee85a' + [ChainId.AVALANCHE]: '0x8A6FA314799b5E5553Cbce7fab3d9EAdEf5ee85a', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const FARMLENSV2_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x6B41A932D2A9f00476229733980D80EE11Dd1617', - [ChainId.AVALANCHE]: '0xF16d25Eba0D8E51cEAF480141bAf577aE55bfdd2' + [ChainId.AVALANCHE]: '0xF16d25Eba0D8E51cEAF480141bAf577aE55bfdd2', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROCKET_JOE_TOKEN_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x2Dc95E863BE58a6EFfe9b5B5D8275537e83bfbE4', - [ChainId.AVALANCHE]: '0x5483ce08659fABF0277f9314868Cc4f78687BD08' + [ChainId.AVALANCHE]: '0x5483ce08659fABF0277f9314868Cc4f78687BD08', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const LAUNCH_EVENT_LENS_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xBeC83e09C4e461de91fD0F65AFbEd17046F3D9DD', - [ChainId.AVALANCHE]: '0x039AA5d3FC07f6f265656793A8c437055b653d68' + [ChainId.AVALANCHE]: '0x039AA5d3FC07f6f265656793A8c437055b653d68', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROCKET_JOE_STAKING_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x1a1171b5faa9954A68F3679EF91E4dACd6D2c247', - [ChainId.AVALANCHE]: '0x102D195C3eE8BF8A9A89d63FB3659432d3174d81' + [ChainId.AVALANCHE]: '0x102D195C3eE8BF8A9A89d63FB3659432d3174d81', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const STABLE_JOE_STAKING_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x5Fd0A10CA299a02429418EAAcC7286482a5f075D', - [ChainId.AVALANCHE]: '0x1a731B2299E22FbAC282E7094EdA41046343Cb51' + [ChainId.AVALANCHE]: '0x1a731B2299E22FbAC282E7094EdA41046343Cb51', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const MONEY_MAKER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x6De03a4221d325Edc9707CEdeff9C150e99d6eC5', - [ChainId.AVALANCHE]: '0x63C0CF90aE12190B388F9914531369aC1e4e4e47' + [ChainId.AVALANCHE]: '0x63C0CF90aE12190B388F9914531369aC1e4e4e47', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const SJOE_REWARD_TOKEN: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x950c6f4f97dd62bd3ca76f084663224fd2e6b555', - [ChainId.AVALANCHE]: '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' + [ChainId.AVALANCHE]: '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const VEJOE_STAKING_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x63064873AC2e94bbe82479265BD252417b34C462', - [ChainId.AVALANCHE]: '0x25D85E17dD9e544F6E9F8D44F99602dbF5a97341' + [ChainId.AVALANCHE]: '0x25D85E17dD9e544F6E9F8D44F99602dbF5a97341', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const VEJOE_TOKEN_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x8043E85a15c7F4Ad58a24712Cf08C624B52fAa34', - [ChainId.AVALANCHE]: '0x3cabf341943Bc8466245e4d6F1ae0f8D071a1456' + [ChainId.AVALANCHE]: '0x3cabf341943Bc8466245e4d6F1ae0f8D071a1456', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BOOSTED_MASTERCHEF_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xEE7B7871755bCe3CD1B0aa1d01320Dd311b08279', - [ChainId.AVALANCHE]: '0x4483f0b6e2F5486D06958C20f8C39A7aBe87bf8F' + [ChainId.AVALANCHE]: '0x4483f0b6e2F5486D06958C20f8C39A7aBe87bf8F', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const INIT_CODE_HASH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x6c67ac67d0dad54be7b066edd9b4154fb5a0ab7d01232259b9ff26ebc1739ba2', - [ChainId.AVALANCHE]: '0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91' + [ChainId.AVALANCHE]: '0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const MINIMUM_LIQUIDITY = JSBI.BigInt(1000) @@ -186,24 +242,32 @@ export const SOLIDITY_TYPE_MAXIMA = { export const UNITROLLER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xf817f74bb514cb0AF7d3b56299c33C33895630f2', - [ChainId.AVALANCHE]: '0xdc13687554205E5b89Ac783db14bb5bba4A1eDaC' + [ChainId.AVALANCHE]: '0xdc13687554205E5b89Ac783db14bb5bba4A1eDaC', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } // used to get jToken balances, jToken metadata, account’s borrow limit & claimable rewards export const JOELENS_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x3A2C79d45EEdcE68d3993F807336D4b0b41741b0', - [ChainId.AVALANCHE]: '0x994Ed0698F5145211Fd5DAE458dD7d91c2da6CEC' + [ChainId.AVALANCHE]: '0x994Ed0698F5145211Fd5DAE458dD7d91c2da6CEC', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const JAVAX_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xE2b2CF0Cc751223C4F2Dc9EF1Cd8d2F27f92a84a', - [ChainId.AVALANCHE]: '0xC22F01ddc8010Ee05574028528614634684EC29e' + [ChainId.AVALANCHE]: '0xC22F01ddc8010Ee05574028528614634684EC29e', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } // used to repay an account’s borrow amount in the jAvax market export const MAXIMILLION_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x7b647D11b2E9354fA570B8613BD361AE51e51c27', - [ChainId.AVALANCHE]: '0xe5cDdAFd0f7Af3DEAf4bd213bBaee7A5927AB7E7' + [ChainId.AVALANCHE]: '0xe5cDdAFd0f7Af3DEAf4bd213bBaee7A5927AB7E7', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } /** @@ -212,90 +276,126 @@ export const MAXIMILLION_ADDRESS: { [chainId in ChainId]: string } = { export const CURRENCY_MANAGER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x520Aa97ffC72d5310A3817C0d620c26ab055Df03', - [ChainId.AVALANCHE]: '0xf28b97020949Dd9aBcFa65fD6ff28C943b68A62b' + [ChainId.AVALANCHE]: '0xf28b97020949Dd9aBcFa65fD6ff28C943b68A62b', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const EXECUTION_MANAGER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xA9114FF08D8a46ef68801408bA70f843F2fd5d06', - [ChainId.AVALANCHE]: '0xB0cCD8742efAe2A8af11771F9E9D195B9c93604f' + [ChainId.AVALANCHE]: '0xB0cCD8742efAe2A8af11771F9E9D195B9c93604f', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const JOEPEG_EXCHANGE_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x04e290BE5163Ad5c92109Eb4733C45A2dF110d44', - [ChainId.AVALANCHE]: '0xaE079eDA901F7727D0715aff8f82BA8295719977' + [ChainId.AVALANCHE]: '0xaE079eDA901F7727D0715aff8f82BA8295719977', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const PROTOCOL_FEE_MANAGER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x0AC33c94Cf937a19548ff99139D7d495A0898794', - [ChainId.AVALANCHE]: '0x777bF9ac3529fD2CD1B6e2dd63dFAE8Fd44aEc96' + [ChainId.AVALANCHE]: '0x777bF9ac3529fD2CD1B6e2dd63dFAE8Fd44aEc96', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROYALTY_FEE_MANAGER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xd8870906B837e3C40bCaAc428D71FdE41Bf152Ba', - [ChainId.AVALANCHE]: '0x3f2855fb9651B87c89a08ec1fe0E2EBF41A597D8' + [ChainId.AVALANCHE]: '0x3f2855fb9651B87c89a08ec1fe0E2EBF41A597D8', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROYALTY_FEE_REGISTRY_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xb031B73dC98fa9d1963a6BFd8682D09235fA71bD', - [ChainId.AVALANCHE]: '0x0BE2A64FC1390d6581f280C7587c5B657C4fDce3' + [ChainId.AVALANCHE]: '0x0BE2A64FC1390d6581f280C7587c5B657C4fDce3', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ROYALTY_FEE_SETTER_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xd4903b8689110F67EB050d500B6EFA433F249786', - [ChainId.AVALANCHE]: '0xA7418654637fFca103Cfa4149a594045294D20F5' + [ChainId.AVALANCHE]: '0xA7418654637fFca103Cfa4149a594045294D20F5', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const STRATEGY_STANDARD_SALE_FOR_FIXED_PRICE_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xDb9660C436dEc824B379C59E2411C71f548F76A7', - [ChainId.AVALANCHE]: '0x24ab13f8B58be64a91a7291b5e0CF32fCDDcc62B' + [ChainId.AVALANCHE]: '0x24ab13f8B58be64a91a7291b5e0CF32fCDDcc62B', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const STRATEGY_ANY_ITEM_FROM_COLLECTION_FOR_FIXED_PRICE_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xB241C61Bf878083c675599256d15be4bd331423c', - [ChainId.AVALANCHE]: '0x54b0FF0aCc6dB70AF9445497FbbA412BB651906F' + [ChainId.AVALANCHE]: '0x54b0FF0aCc6dB70AF9445497FbbA412BB651906F', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const TRANSFER_MANAGER_ERC721_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x06f90fd024d0f21b02cB0e7e504e7653C24Ec434', - [ChainId.AVALANCHE]: '0x16736b117ab4842C825599db1f1F4B0fd32D3751' + [ChainId.AVALANCHE]: '0x16736b117ab4842C825599db1f1F4B0fd32D3751', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const TRANSFER_MANAGER_ERC1155_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x06ce9F2B31b0dd59388D93b95B3b67aeBd5F4743', - [ChainId.AVALANCHE]: '0x85fF75F797b0B4132F0ce33E6f6Bf688d23E284F' + [ChainId.AVALANCHE]: '0x85fF75F797b0B4132F0ce33E6f6Bf688d23E284F', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const TRANSFER_MANAGER_NON_COMPLIANT_ERC721_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x5a59bebbE7A95d851D9D5034458420Cb00d9263D', - [ChainId.AVALANCHE]: '0x3C111Ed8B7237a3343181A75026e0f822CFa52Ab' + [ChainId.AVALANCHE]: '0x3C111Ed8B7237a3343181A75026e0f822CFa52Ab', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const TRANSFER_SELECTOR_NFT_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x9f6C0da935BE0D333784DAE9F02508Bf6220f5d8', - [ChainId.AVALANCHE]: '0x6817F284319DD8fED56A8577d9A29B5685EB6915' + [ChainId.AVALANCHE]: '0x6817F284319DD8fED56A8577d9A29B5685EB6915', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const ERC721_TOKEN_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0xfBF22D7c2ecED7115B752ec56234AC3fE1177f6b', - [ChainId.AVALANCHE]: '0x8e39F7D9B4A0E994A17929a6FA1AEF67622692D2' + [ChainId.AVALANCHE]: '0x8e39F7D9B4A0E994A17929a6FA1AEF67622692D2', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const LAUNCHPEG_FACTORY_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x0d22EF1C5372677c8680fb485c6A1Ce43eA58eaF', - [ChainId.AVALANCHE]: '0x7BFd7192E76D950832c77BB412aaE841049D8D9B' + [ChainId.AVALANCHE]: '0x7BFd7192E76D950832c77BB412aaE841049D8D9B', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const LAUNCHPEG_LENS_ADDRESS: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x72B17b65F657d4CEc42f9c31643171d9F86564E8', - [ChainId.AVALANCHE]: '0x5529596c716D184549feeA152cC42E3982f77f25' + [ChainId.AVALANCHE]: '0x5529596c716D184549feeA152cC42E3982f77f25', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const AUCTION_HOUSE: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x768Ba583BC928C6a691FAaD7E924c94E6E6F4F98', - [ChainId.AVALANCHE]: '0x341C84811477b16AB7eAE4F07980547E4Df42559' + [ChainId.AVALANCHE]: '0x341C84811477b16AB7eAE4F07980547E4Df42559', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } export const BATCH_TRANSFER_NFT: { [chainId in ChainId]: string } = { [ChainId.FUJI]: '0x497f6d5a33f03cdc26edafea19e5e3b7e5cf76e8', - [ChainId.AVALANCHE]: '0x42Ac9B9CA43b2C36Ac1E78eA3bc71905f55a589a' + [ChainId.AVALANCHE]: '0x42Ac9B9CA43b2C36Ac1E78eA3bc71905f55a589a', + [ChainId.ARBITRUM_ONE]: '0x0000000000000000000000000000000000000000', + [ChainId.ARB_GOERLI]: '0x0000000000000000000000000000000000000000' } diff --git a/src/entities/token.ts b/src/entities/token.ts index 4dd423f..ead2421 100644 --- a/src/entities/token.ts +++ b/src/entities/token.ts @@ -56,7 +56,29 @@ export function currencyEquals(currencyA: Currency, currencyB: Currency): boolea } } -export const WAVAX = { - [ChainId.FUJI]: new Token(ChainId.FUJI,'0xd00ae08403B9bbb9124bB305C09058E32C39A48c',18,'WAVAX','Wrapped AVAX'), - [ChainId.AVALANCHE]: new Token(ChainId.AVALANCHE,'0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',18,'WAVAX','Wrapped AVAX') +export const WNATIVE = { + [ChainId.FUJI]: new Token(ChainId.FUJI, '0xd00ae08403B9bbb9124bB305C09058E32C39A48c', 18, 'WAVAX', 'Wrapped AVAX'), + [ChainId.AVALANCHE]: new Token( + ChainId.AVALANCHE, + '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', + 18, + 'WAVAX', + 'Wrapped AVAX' + ), + [ChainId.ARBITRUM_ONE]: new Token( + ChainId.ARBITRUM_ONE, + '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', + 18, + 'WETH', + 'Wrapped ETH' + ), + [ChainId.ARB_GOERLI]: new Token( + ChainId.ARB_GOERLI, + '0x0258c48dD2Fd053f9031FCab136C63213cA839C8', + 18, + 'WETH', + 'Wrapped ETH' + ) } + +export const WAVAX = WNATIVE diff --git a/src/subgraphs.ts b/src/subgraphs.ts index 9bdd003..0324a61 100644 --- a/src/subgraphs.ts +++ b/src/subgraphs.ts @@ -1,68 +1,85 @@ import { ChainId } from './constants' -const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000' - -export const BLOCKS_SUBGRAPH: { [chainId in ChainId]: string } = { - [ChainId.FUJI]: ZERO_ADDRESS, - [ChainId.AVALANCHE]: 'https://thegraph.com/explorer/subgraph/dasconnor/avalanche-blocks' -} - export const EXCHANGE_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/joe-v1-arb-goerli' } export const MASTERCHEF_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/masterchefv2-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/masterchefv2' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/masterchefv2', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const DEXCANDLES_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/dexcandles-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/dexcandles' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/dexcandles', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const BAR_SUBGRAPH: { [chainId in ChainId]: string } = { - [ChainId.FUJI]: ZERO_ADDRESS, - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/bar' + [ChainId.FUJI]: '', + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/bar', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const LENDING_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/lending-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/lending' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/lending', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const ROCKET_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/rocket-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/rocket' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/rocket', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const SJOE_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/sjoe-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/sjoe' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/sjoe', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const MONEY_MAKER_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/moneymaker-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/money-maker' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/money-maker', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const VEJOE_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/vejoe-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/vejoe' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/vejoe', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const BOOSTED_MASTERCHEF_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/boostedmasterchef-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/boosted-master-chef' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/boosted-master-chef', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const NFT_CONTRACTS_SUBGRAPH: { [chainId in ChainId]: string } = { [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' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/nft-contracts', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' } export const JOEPEG_MARKETPLACE_SUBGRAPH: { [chainId in ChainId]: string } = { [ChainId.FUJI]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/marketplace-fuji', - [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/marketplace' + [ChainId.AVALANCHE]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/marketplace', + [ChainId.ARBITRUM_ONE]: '', + [ChainId.ARB_GOERLI]: '' }