UNPKG

maia-core-sdk

Version:

⚒️ An SDK for building applications on top of Maia DAO Ecosytem

3 lines (2 loc) 43.1 kB
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r,t,a,o,d=e(require("jsbi")),n=e(require("tiny-invariant")),i=require("@ethersproject/address"),c=e(require("big.js")),A=e(require("toformat")),p=e(require("decimal.js-light"));(a=exports.SupportedChainId||(exports.SupportedChainId={}))[a.ARBITRUM_ONE=42161]="ARBITRUM_ONE",a[a.MAINNET=1]="MAINNET",a[a.OPTIMISM=10]="OPTIMISM",a[a.BASE=8453]="BASE",a[a.BSC=56]="BSC",a[a.POLYGON=137]="POLYGON",a[a.AVAX=43114]="AVAX",a[a.METIS=1088]="METIS",a[a.SONIC=146]="SONIC",a[a.BERA=80094]="BERA",a[a.FRAXTAL=252]="FRAXTAL",a[a.SWELL=1923]="SWELL",a[a.SEPOLIA=11155111]="SEPOLIA",a[a.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",a[a.OPTIMISM_SEPOLIA=11155420]="OPTIMISM_SEPOLIA",a[a.BASE_SEPOLIA=84532]="BASE_SEPOLIA",a[a.POLYGON_AMOY=80002]="POLYGON_AMOY",(o=exports.SupportedLayerzeroChainId||(exports.SupportedLayerzeroChainId={}))[o.ARBITRUM_ONE=110]="ARBITRUM_ONE",o[o.MAINNET=101]="MAINNET",o[o.OPTIMISM=111]="OPTIMISM",o[o.BASE=184]="BASE",o[o.POLYGON=109]="POLYGON",o[o.BSC=102]="BSC",o[o.AVAX=106]="AVAX",o[o.METIS=151]="METIS",o[o.SONIC=332]="SONIC",o[o.BERA=362]="BERA",o[o.FRAXTAL=255]="FRAXTAL",o[o.SWELL=335]="SWELL",o[o.SEPOLIA=10161]="SEPOLIA",o[o.ARBITRUM_SEPOLIA=10231]="ARBITRUM_SEPOLIA",o[o.OPTIMISM_SEPOLIA=10232]="OPTIMISM_SEPOLIA",o[o.BASE_SEPOLIA=10245]="BASE_SEPOLIA",o[o.POLYGON_AMOY=10267]="POLYGON_AMOY";var B,E,u,C,s,f,x,F,b,D,h,l,I,S,R,O,M,g,L,y,T=exports.SupportedChainId.ARBITRUM_ONE,_=((r={})[exports.SupportedChainId.MAINNET]=exports.SupportedLayerzeroChainId.MAINNET,r[exports.SupportedChainId.ARBITRUM_ONE]=exports.SupportedLayerzeroChainId.ARBITRUM_ONE,r[exports.SupportedChainId.OPTIMISM]=exports.SupportedLayerzeroChainId.OPTIMISM,r[exports.SupportedChainId.POLYGON]=exports.SupportedLayerzeroChainId.POLYGON,r[exports.SupportedChainId.BSC]=exports.SupportedLayerzeroChainId.BSC,r[exports.SupportedChainId.AVAX]=exports.SupportedLayerzeroChainId.AVAX,r[exports.SupportedChainId.METIS]=exports.SupportedLayerzeroChainId.METIS,r[exports.SupportedChainId.BASE]=exports.SupportedLayerzeroChainId.BASE,r[exports.SupportedChainId.SONIC]=exports.SupportedLayerzeroChainId.SONIC,r[exports.SupportedChainId.BERA]=exports.SupportedLayerzeroChainId.BERA,r[exports.SupportedChainId.FRAXTAL]=exports.SupportedLayerzeroChainId.FRAXTAL,r[exports.SupportedChainId.SWELL]=exports.SupportedLayerzeroChainId.SWELL,r[exports.SupportedChainId.SEPOLIA]=exports.SupportedLayerzeroChainId.SEPOLIA,r[exports.SupportedChainId.ARBITRUM_SEPOLIA]=exports.SupportedLayerzeroChainId.ARBITRUM_SEPOLIA,r[exports.SupportedChainId.OPTIMISM_SEPOLIA]=exports.SupportedLayerzeroChainId.OPTIMISM_SEPOLIA,r[exports.SupportedChainId.BASE_SEPOLIA]=exports.SupportedLayerzeroChainId.BASE_SEPOLIA,r[exports.SupportedChainId.POLYGON_AMOY]=exports.SupportedLayerzeroChainId.POLYGON_AMOY,r),N=((t={})[exports.SupportedLayerzeroChainId.MAINNET]=exports.SupportedChainId.MAINNET,t[exports.SupportedLayerzeroChainId.ARBITRUM_ONE]=exports.SupportedChainId.ARBITRUM_ONE,t[exports.SupportedLayerzeroChainId.OPTIMISM]=exports.SupportedChainId.OPTIMISM,t[exports.SupportedLayerzeroChainId.POLYGON]=exports.SupportedChainId.POLYGON,t[exports.SupportedLayerzeroChainId.BSC]=exports.SupportedChainId.BSC,t[exports.SupportedLayerzeroChainId.AVAX]=exports.SupportedChainId.AVAX,t[exports.SupportedLayerzeroChainId.METIS]=exports.SupportedChainId.METIS,t[exports.SupportedLayerzeroChainId.BASE]=exports.SupportedChainId.BASE,t[exports.SupportedLayerzeroChainId.SONIC]=exports.SupportedChainId.SONIC,t[exports.SupportedLayerzeroChainId.BERA]=exports.SupportedChainId.BERA,t[exports.SupportedLayerzeroChainId.FRAXTAL]=exports.SupportedChainId.FRAXTAL,t[exports.SupportedLayerzeroChainId.SWELL]=exports.SupportedChainId.SWELL,t[exports.SupportedLayerzeroChainId.SEPOLIA]=exports.SupportedChainId.SEPOLIA,t[exports.SupportedLayerzeroChainId.ARBITRUM_SEPOLIA]=exports.SupportedChainId.ARBITRUM_SEPOLIA,t[exports.SupportedLayerzeroChainId.OPTIMISM_SEPOLIA]=exports.SupportedChainId.OPTIMISM_SEPOLIA,t[exports.SupportedLayerzeroChainId.POLYGON_AMOY]=exports.SupportedChainId.POLYGON_AMOY,t),m="0x0000000000000000000000000000000000000000",P=((B={})[exports.SupportedChainId.ARBITRUM_ONE]="0x3c2269811836af69497E5F486A85D7316753cf62",B[exports.SupportedChainId.MAINNET]="0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675",B[exports.SupportedChainId.OPTIMISM]="0x3c2269811836af69497E5F486A85D7316753cf62",B[exports.SupportedChainId.BASE]="0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",B[exports.SupportedChainId.POLYGON]="0x3c2269811836af69497E5F486A85D7316753cf62",B[exports.SupportedChainId.BSC]="0x3c2269811836af69497E5F486A85D7316753cf62",B[exports.SupportedChainId.AVAX]="0x3c2269811836af69497E5F486A85D7316753cf62",B[exports.SupportedChainId.METIS]="0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4",B[exports.SupportedChainId.SONIC]="0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",B[exports.SupportedChainId.BERA]="0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",B[exports.SupportedChainId.FRAXTAL]="0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",B[exports.SupportedChainId.SWELL]="0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",B[exports.SupportedChainId.SEPOLIA]="0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1",B[exports.SupportedChainId.ARBITRUM_SEPOLIA]="0x6098e96a28E02f27B1e6BD381f870F1C8Bd169d3",B[exports.SupportedChainId.OPTIMISM_SEPOLIA]="0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8",B[exports.SupportedChainId.BASE_SEPOLIA]="0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8",B[exports.SupportedChainId.POLYGON_AMOY]="0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8",B),v=((E={})[exports.SupportedChainId.ARBITRUM_ONE]="0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",E[exports.SupportedChainId.MAINNET]="0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",E[exports.SupportedChainId.OPTIMISM]="0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",E[exports.SupportedChainId.BASE]="0x38dE71124f7a447a01D67945a51eDcE9FF491251",E[exports.SupportedChainId.POLYGON]="0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",E[exports.SupportedChainId.BSC]="0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",E[exports.SupportedChainId.AVAX]="0x4D73AdB72bC3DD368966edD0f0b2148401A178E2",E[exports.SupportedChainId.METIS]="0x38dE71124f7a447a01D67945a51eDcE9FF491251",E[exports.SupportedChainId.SONIC]="0x38dE71124f7a447a01D67945a51eDcE9FF491251",E[exports.SupportedChainId.BERA]="0x38dE71124f7a447a01D67945a51eDcE9FF491251",E[exports.SupportedChainId.FRAXTAL]="0x38dE71124f7a447a01D67945a51eDcE9FF491251",E[exports.SupportedChainId.SWELL]="0x980205D352F198748B626f6f7C38A8a5663Ec981",E[exports.SupportedChainId.SEPOLIA]="0x3aCAAf60502791D199a5a5F0B173D78229eBFe32",E[exports.SupportedChainId.ARBITRUM_SEPOLIA]="0x88866E5A296FffA511EF8011CB1BBd4d01Cd094F",E[exports.SupportedChainId.OPTIMISM_SEPOLIA]="0x35AdD9321507A87471a11EBd4aE4f592d531e620",E[exports.SupportedChainId.BASE_SEPOLIA]="0x35AdD9321507A87471a11EBd4aE4f592d531e620",E[exports.SupportedChainId.POLYGON_AMOY]="0x35AdD9321507A87471a11EBd4aE4f592d531e620",E),U=((u={})[exports.SupportedChainId.ARBITRUM_ONE]="0x975bcD720be66659e3EB3C0e4F1866a3020E493A",u[exports.SupportedChainId.MAINNET]="0xbB2Ea70C9E858123480642Cf96acbcCE1372dCe1",u[exports.SupportedChainId.OPTIMISM]="0x1322871e4ab09Bc7f5717189434f97bBD9546e95",u[exports.SupportedChainId.BASE]="0xB5320B0B3a13cC860893E2Bd79FCd7e13484Dda2",u[exports.SupportedChainId.POLYGON]="0x6c26c61a97006888ea9E4FA36584c7df57Cd9dA3",u[exports.SupportedChainId.BSC]="0x9F8C645f2D0b2159767Bd6E0839DE4BE49e823DE",u[exports.SupportedChainId.AVAX]="0x197D1333DEA5Fe0D6600E9b396c7f1B1cFCc558a",u[exports.SupportedChainId.METIS]="0x63e39ccB510926d05a0ae7817c8f1CC61C5BdD6c",u[exports.SupportedChainId.SONIC]="0xC39161c743D0307EB9BCc9FEF03eeb9Dc4802de7",u[exports.SupportedChainId.BERA]="0xC39161c743D0307EB9BCc9FEF03eeb9Dc4802de7",u[exports.SupportedChainId.FRAXTAL]="0x377530cdA84DFb2673bF4d145DCF0C4D7fdcB5b6",u[exports.SupportedChainId.SWELL]="0xc1B621b18187F74c8F6D52a6F709Dd2780C09821",u[exports.SupportedChainId.SEPOLIA]="0xcc1ae8Cf5D3904Cef3360A9532B477529b177cCE",u[exports.SupportedChainId.ARBITRUM_SEPOLIA]="0x4f7cd4DA19ABB31b0eC98b9066B9e857B1bf9C0E",u[exports.SupportedChainId.OPTIMISM_SEPOLIA]="0xB31D2cb502E25B30C651842C7C3293c51Fe6d16f",u[exports.SupportedChainId.BASE_SEPOLIA]="0xC1868e054425D378095A003EcbA3823a5D0135C9",u[exports.SupportedChainId.POLYGON_AMOY]="0x1d186C560281B8F1AF831957ED5047fD3AB902F9",u),w=d.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),V=d.BigInt(-1),k=d.BigInt(0),H=d.BigInt(1),G=d.BigInt("1000000000000000000"),Y=d.BigInt(5),W=d.BigInt(997),Z=d.BigInt(1e3),z=((C={})[exports.SupportedChainId.ARBITRUM_ONE]="0xaA8D7127fFb6a9786529F15977003A2D469B2d95",C[exports.SupportedChainId.SEPOLIA]="0x61B046e0812CF9c170fa09b9834708F73421B59b",C),q=((s={})[exports.SupportedChainId.ARBITRUM_ONE]="0xEdf6aD5f569485090ECa00359E3e3813Be985809",s[exports.SupportedChainId.SEPOLIA]="0x28a9ffd6Fe4497f0788606F64Ab7095fDeCe4Ebb",s),X=((f={})[exports.SupportedChainId.ARBITRUM_ONE]="0xF2831E87088f2E113050c4EE5EB138978eAEBb49",f[exports.SupportedChainId.SEPOLIA]="0x38bAd91B4c7016f8a9C71aab1071769Ec0FBe241",f),j=((x={})[exports.SupportedChainId.ARBITRUM_ONE]="0x428f076301026c7665F7F70EEBbB391506aEc2a1",x[exports.SupportedChainId.SEPOLIA]="0x8d2c9aA2e899B18e03931ccFcf088be0b3a23BdE",x),K=((F={})[exports.SupportedChainId.ARBITRUM_ONE]="0x45E8089C4C033cb28bb652a153dDE49182Bae49a",F[exports.SupportedChainId.SEPOLIA]="0xB9618958c953D67E15Bf7eFe78478Dd1e8b23CeC",F),Q=((b={})[exports.SupportedChainId.ARBITRUM_ONE]="0xb23c7BE6c14a145a7ca33083Fb6e8B3fC9c820aC",b[exports.SupportedChainId.SEPOLIA]="0xBFFc42560a51832daa466955f39D81915402Fd50",b),$=((D={})[exports.SupportedChainId.ARBITRUM_ONE]="0x744f3EC772AAA9f0d40398b90F9E856EF88D118A",D[exports.SupportedChainId.SEPOLIA]="0x86712f780F8883482e7EBf6f395CEe374CC59787",D),J=((h={})[exports.SupportedChainId.ARBITRUM_ONE]="0x07D87055E82EAf4851Dfa251a5d79A7E99Bd789A",h[exports.SupportedChainId.SEPOLIA]="0x16DfceFF2e21c54Cd4B262edDCc1baEB734a112A",h),ee=((l={})[exports.SupportedChainId.ARBITRUM_ONE]="0xb97c3D79Af827c915E5F6B492e6bd99D653F8cC7",l[exports.SupportedChainId.SEPOLIA]="0x0d5783E0e19bf09A923A742E5feB0653c2Eed638",l),re=((I={})[exports.SupportedChainId.ARBITRUM_ONE]="0xaCE7B2BbD13acE4E23F622209c46C9F2885edd49",I[exports.SupportedChainId.SEPOLIA]="0x69ff16440052DE228a158517d91E92D803e072D7",I),te=((S={})[exports.SupportedChainId.ARBITRUM_ONE]="0x716147a2169246c09f47D9880Bf85D49093A92C4",S[exports.SupportedChainId.SEPOLIA]="0x8e0881066dA3B81041105B58303a975bD507091C",S),ae=((R={})[exports.SupportedChainId.ARBITRUM_ONE]="0xB4523B4541Ab27337AB8389188a545BF3d07d5E3",R[exports.SupportedChainId.SEPOLIA]="0x9de0F9B4a94a2119789F03A21Da42576114A0554",R),oe={ComposableStablePoolWrapperFactory:"0x0FeC6De5Cf270000460000008f0033B910004797",ComposableStablePoolWrapperInitCodeHash:"0x486597d0dac9e727fb360962435de36b40a335916fd13eb350993c76512b55c0"},de={ComposableStablePoolWrapperFactory:"0x996AAA029f3A8826C22CcCf6127A16A0e52FC3Da",ComposableStablePoolWrapperInitCodeHash:"0x2f29c1929bc70aae113b1671d9250cc3e2ab673d22188542ebf28ded1ac9e1a4"},ne=((O={})[exports.SupportedChainId.ARBITRUM_ONE]=oe,O[exports.SupportedChainId.SEPOLIA]=de,O),ie={Hermes:"0x45940000009600102A1c002F0097C4A500fa00AB",bHermes:"0x3A0000000000E1007cEb00351F65a1806eCd937C",bHermesVotes:"0x5B99ACF131463bFc62FE000b8Bb962097B6734d9",bHermesGauges:"0xe6D0aeA7cEf79B08B906e0C455C25042b57b23Ed",bHermesBoost:"0x73A899D7e71393dDf2B1cD8336f820969c709E70",UniswapV3GaugeFactory:"0xE64278005e0F00cd6199d000386b018d7C000000",UniswapV3Staker:"0x54De3b7b5D1993Db4B2a93C897b5272FBd60e99E",BribesFactory:"0x863011414b400340178Ec329647a2aa55f724D70",FlywheelBooster:"0x006f48258FC9562F00003b9700009231008b0600",BaseV2Minter:"0x000000B473F20DEA03618d00315900eC5900dc59",BaseV2GaugeManager:"0x0000070059ed0005981800C8d66017bC00500632",PartnerManagerFactory:"0x8c272715be844488Ff7AAf201d51D8FA50149387",FlywheelGaugeRewards:"0x000000b53E67c90000e1C22e1530c70020657Ff7",RewardsInfoHelper:"0x3219f8cf74ABb16D7C0923dE58a48Edde997D9Db",ERC20BoostHelper:"0x127991cC764B05fe6C9257A0EC3Be9E4f48Ad744",RestakeHelper:"0xCc06B09F822eeC7aD6c30C59c060647C3Aab2D06",FlywheelHelper:"0xf3f35E27AE1B3ab928327F72391B29f1bFd8DAF6"},ce={Hermes:"0x34CA145f38aBff21679B958fA067DBF3c021a60D",bHermes:"0x12bcE9DBFfD8F20b1B7F74c9A5678f770FCb36b8",bHermesVotes:"0x4A6D202cd15dD26ca28693Ed8256f5F57fCAf367",bHermesGauges:"0xd6154D2C9f5C1e682786aA06c092e9f466f5E068",bHermesBoost:"0xE2eaCd92208E81c88E629682aeab5646E4f8ed69",UniswapV3GaugeFactory:"0x068cA042b76589A59435C3bd6B5e45D4223453cf",UniswapV3Staker:"0x2907fA8B81AD03F07A6545901957e7a9D1dD252B",BribesFactory:"0x0A87e91500B1cdC75759ee923054d48dE3df8C0D",FlywheelBooster:"0xCff715821ECF15466fC73ee10591D0CcEe2b7f38",BaseV2Minter:"0x006a82828debcC1b369B3E41a88F018Ca72dA809",BaseV2GaugeManager:"0x996486eA713aCBcD93e0DeD1722F7CF18FeDC0Be",PartnerManagerFactory:"0x7049E4743F148d0817Ba82455eC2065E5B97f146",FlywheelGaugeRewards:"0xa8C563BA4Eff705f30B631b4cd4A4C4395540d07",RewardsInfoHelper:"0x38Ca8f2db851575632B532Ca7EcB3dfffB0E82b0",ERC20BoostHelper:"0x07B0ED72AdF6f0912Ce176081b6c7Be93DaA92Eb",RestakeHelper:"0x3491CF277310fFbd84fFb3C274C907E78EC6df3B",FlywheelHelper:"0xeCC521C10806D02f313443624f0eF66f2eA91A31"},Ae=((M={})[exports.SupportedChainId.ARBITRUM_ONE]=ie,M[exports.SupportedChainId.SEPOLIA]=ce,M),pe=((g={})[exports.SupportedChainId.ARBITRUM_ONE]={Maia:"0x00000000ea00F3F4000e7Ed5Ed91965b19f1009B",vMaia:"0x000000f0C01c6200354f240000b7003668B4D080",vMaiaVotes:"0x54b6e28a869a56f4e34d1187ae0a35b7dd3be111",vMaiaTest:m,vMaiaVotesTest:m},g[exports.SupportedChainId.SEPOLIA]={Maia:"0x8dFe092C40F6AE7081bb6f920E899BD640812c15",vMaia:"0x3e822a168A667AbA3e6C6e7B64B562ecbD20C45b",vMaiaVotes:"0xA3276039F58C3b6FDA367c96d3EfeE6d84487547",vMaiaTest:"0xF9Af8CF1EfA09946634E6a1Cf3dCF616e3D23642",vMaiaVotesTest:"0x1e6a18b3d17b4d4f149DeDCDd0A89D8803048649"},g),Be=((L={})[exports.SupportedChainId.ARBITRUM_ONE]={TalosStrategyStakedFactory:"0x17B4f847f9B071298f3eF0DAd5FCB20453bd537D",OptimizerFactory:"0x000000005De908d83F4b6072D388e3e9Fc543557",BoostAggregatorFactory:"0x223F3862F28848784432dc48346d133aBA94fbD4",TalosManagerFactory:"0xcE827EDa08C1f1A6BdDb4582B0759eF02c7FC3Ff",FlywheelCoreInstant:"0xfA7d81256a4fe221A2FD4abb090F2a33a2F956C5",TransferAll:"0x000067eadd040000d8ee00c1b9ca41ef920c005c"},L[exports.SupportedChainId.SEPOLIA]={TalosStrategyStakedFactory:"0xA483A5FB7974Dcdc4480a976fECD4e5d21312E20",OptimizerFactory:"0xE5534Af145B1F539a89F0a8c210c1213539Aa0Bc",BoostAggregatorFactory:"0xA6605f5Ade7eA775535a7e0B54833b7EE6eE98C6",TalosManagerFactory:"0x09e2877026cC748c992612b999c4b8A10bfE8Eea",FlywheelCoreInstant:"0x090BB8B6a6f8daa1cD1e3153F030F2E7609D4321",TransferAll:"0x000bE6db68E716106dAb57190c6A1bF6D3F4cBAf"},L);function Ee(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:String(r)}function ue(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Ee(a.key),a)}}function Ce(e,r,t){return r&&ue(e.prototype,r),t&&ue(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function se(){return(se=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function fe(e,r){var t,a;e.prototype=Object.create(r.prototype),e.prototype.constructor=e,t=e,a=r,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e})(t,a)}var xe,Fe,be,De=se({},{BranchPort:"0x79f4b04FFCa54BC946aa0ef8E33eE723467f0192",BranchBridgeAgentFactory:"0x3A516edf6158D5BF1dD0B51337053c4aCDf644d9",CoreBranchRouter:"0x38DeFD1a1a1E7d6af860eC1Eda6F4c75741d9E7e",CoreBranchBridgeAgent:"0x93114b1748B9D4D21f32fa0c1a21040D18Cc8d66",ERC20hTokenBranchFactory:"",MulticallBranchRouter:"0xE16776FCe6B983e9aB52e9506bD3E14D22bdBDa0",MulticallBranchBridgeAgent:"0x62b1C5e4A013A42926cc26510180C4050Dc02779",MulticallBranchRouterLibZip:"0x213128EF80B0fDDdB96F09780E8f3DC8477D2869",MulticallBranchBridgeAgentLibZip:"0x6CdE6F2a2eFE7A12d62949956889f97A5715f1cd",NativeToken:""},{RootPort:"0xd3E3599517F2036fA314e468d62135714FC03C56",RootBridgeAgentFactory:"0xe0ff9aDA7ff73180beca8d6F69fc8D2505F9539E",CoreRootRouter:"0x31E2a6BbC2aF8AEB78DD1FA1FceFE0F672c3E8fe",CoreRootBridgeAgent:"0xB8fec761db744E59dCC3141FEB18e8A63646233c",ERC20hTokenRootFactory:"0xB9833D1ee7D6B5478104f618436E5dF4EAEB55c7",MulticallRootRouter:"0xEbdcaAb09ec0491E2a632e3e8F2b39f081d878DD",MulticallRootBridgeAgent:"0x4EE41d129955EEd4a10CBA785773BEEA6DC13126",MulticallRootRouterLibZip:"0x3Ad10d46ABedE5E56925aE97BFc131054F834333",MulticallRootBridgeAgentLibZip:"0x4D7f23c920696beC43F0f76D20BC4C431e72D91c"}),he=se({},{BranchPort:"0xE2B6Dc3e16873aC460d01307898eba5e3ef72165",BranchBridgeAgentFactory:"0xbDf7Df30b8575a112cA8B74486f616f97548573C",CoreBranchRouter:"0xE9E180453f1318c9518166f53BF5b55Cfb5302Cf",CoreBranchBridgeAgent:m,ERC20hTokenBranchFactory:m,MulticallBranchRouter:"0x9FF07935Aa66aCCEc439a7bc830645B77198E2CF",MulticallBranchBridgeAgent:"0x141282d0442adda1274b9eb7ca368e24b2e06639",MulticallBranchRouterLibZip:"0xb48a73F3dC5F8065B3c9F9EDdcCd33979b518841",MulticallBranchBridgeAgentLibZip:m,NativeToken:"0xfff9976782d46cc05630d1f6ebab18b2324d6b14"},{RootPort:"0x800De4d33015FeB4e344951aCe8eA2f4F33aE529",RootBridgeAgentFactory:"0x4c94fF45284159a1a336197e8F0ee194B0D527F8",CoreRootRouter:"0x7a29e9eb2e32075F35fCC5448e930f24d2fB1b62",CoreRootBridgeAgent:"0x664Df2DAdc5Fd3E5D5b42D83CFcf162F48051409",ERC20hTokenRootFactory:"0xbA564A4bbc30472D8CF8ba61c24627189290E6b6",MulticallRootRouter:"0xC7F66dCA3B782983de45e445BdE403Ce36aAB885",MulticallRootBridgeAgent:"0xe8074Acb12bD4b5ACaB083718CcE8f998D6a8fa1",MulticallRootRouterLibZip:"0x0887db9b1df886bA926EA7853f012B26Cf589e47",MulticallRootBridgeAgentLibZip:"0x27e5d2fDE8F24f74A232363785013dd3187CDD01"}),le=((y={})[exports.SupportedChainId.ARBITRUM_ONE]=De,y[exports.SupportedChainId.MAINNET]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x4e1E0DFF602Bc7B195ecB57e5b8F9cb03b440D27",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0x509fDD915c2020DA07E36aaF55F31B9648b81ba9",ERC20hTokenBranchFactory:"0xaA96607691E801376c5cBcD2E8F088C9E1D1FeB4",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0xFe59E33F7c7466f5F459F66d40A97C6f778D5DE4",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0xce0882FF10E1E68d54393234aD29b7e24d7a18E8",NativeToken:"0xe2e5DF2786A89c06C36e66015F3F6fA235D5fb76"},y[exports.SupportedChainId.OPTIMISM]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0xd971e3230A6ebBDd66341D7C5ECF7ad0a0224DA2",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0xbCa8AC32b6bc35b1F876D6aB598b93a35a33fD04",ERC20hTokenBranchFactory:"0x940A58c1623f8eE80398668a7598D787A4Fa88eE",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0xd207aD94c4A5Fb1c32dFe0714B024525A1774B20",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0x419e450B899CB40A00d5e804870D57Ab3F92351F",NativeToken:"0x0F1651C8f1e22097b80A61d1CcffC54A51aaC725"},y[exports.SupportedChainId.BASE]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0xa0DE1545E6B0E793e5dEd724736045E991EFAe4d",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0xd4d0F211Cd400440c6605751c1f56530a996c7ff",ERC20hTokenBranchFactory:"0x094AB8e4CC215ac04DAB8b6260D53c4504cec060",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0x5b710604f8b969704c619F78993aE610075CDe8c",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0x9C87185F3962e131A561bb4a2CfD47712BF104a4",NativeToken:"0x10A45947C278D6F49049D120F6b8Cf527D023f53"},y[exports.SupportedChainId.POLYGON]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x4Ad2437b9dEe82D9A22F96894e8d483E1b2d9b7d",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0xBb42804e272e430B8e2fb3D384AB16e0d201Afa2",ERC20hTokenBranchFactory:"0xd7D8458823934233376d9fFb370A3293C4231860",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0xE6F57FF398B26aD6278b51E4A894fd70Db2E5d4E",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0xf8aae47a6A12552Bc714e47F8d98446d537634aA",NativeToken:"0x5b4f8ca696BAfAe2943547144F2066199598CfCb"},y[exports.SupportedChainId.AVAX]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x1E8FdD836a2d460bdD62FbDB80CFa2984B1B3D2A",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0x9Da6E4D3faf214A708CD14c2016bCCCa1507e11A",ERC20hTokenBranchFactory:"0xfF6927f1722C2500f9CB68e5D3768ddAD5031Bf2",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0x90e611E922720540804bbe3A05D4A8Ee0b9c5fBb",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0x41916Ad45cD2303ab42110659c0376c4E3Dd0554",NativeToken:"0xfD92eE19f206f313F8D267026B337a62F77b1E4c"},y[exports.SupportedChainId.BSC]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0xfD0d9035ec29b614dE6b5673A16cC6eC78cA44F1",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0xb327582d73498EAb059005846E64dcb3618fff49",ERC20hTokenBranchFactory:"0xF04dE46e174e63F0c9781508cCE78b96E99052B1",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0x39BEC4399C49450f98F6f32fb29f86720e0a6621",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0xa9A21A9Bb20FC365AB7b36B2A31dCa3a4648bF1f",NativeToken:"0x7eb5C81d21BCFa970fb280e5A8FB08652448Ed2b"},y[exports.SupportedChainId.METIS]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x6160d53fCbf457Bd728Def380d3C442EEa775087",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0x4B232390F5F533973775BC516E3A4cb2062BF33E",ERC20hTokenBranchFactory:"0xc71956bDA00E1225857421b6809FEbdd09900938",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0xa0026577F8A68137A402E4eC1c3f69c5092B124F",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0xB06Fc506f82B6DcEEf0643d9132d12e59fD79c24",NativeToken:"0x1ce28C4f77991b604868bA48f9154408313C65b6"},y[exports.SupportedChainId.SONIC]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x5DFb3dbA421891e616B232466BD97Df94ab26E4C",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0x93A2a67010BCCc39e8A0B3E51bcB3D8aDF1DB83a",ERC20hTokenBranchFactory:"0x92dc9db1751f6668a504e4650a275d547c586a38",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0x43F9bA5CCc690F1073E06765Bea8B24458565B66",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0xec6A60547A772F76718dC8990238dB9A415A4509",NativeToken:"0x5b05C18c3D30b23763891D4Bc27311999b2b8194"},y[exports.SupportedChainId.BERA]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x294470a65cc1fc67931c3351076f4c1b5d09d786",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0x2132B6d41De5c767e507F017D310778441b50E94",ERC20hTokenBranchFactory:"0x7e157ce374a8533dc38b539d28e3c5b401cf8105",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0xF40Ae0899Bf756f198b51db0a9E2C59Cc12147A0",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0x98DA688f695f4d6Bd3D26fA9BF85A0Fe9EC50C6b",NativeToken:"0x6d4c20f6E27F5399888E25260b7a0e77e8f4d80d"},y[exports.SupportedChainId.FRAXTAL]={BranchPort:"0x6BeEF9B5a6E4Dd9D74122d62f5ef52eE48281819",BranchBridgeAgentFactory:"0x1E4D716c85b68B51dF0b5cBF2AA1c89f70BF32c5",CoreBranchRouter:"0x836326728773EAF5969F9BdE81A9b688c6b4F756",CoreBranchBridgeAgent:"0x1DE6c6b20dEe3F67daE4Ef9213a435185EA8Fc78",ERC20hTokenBranchFactory:"0x637ee501F397fe85f2E51be3e23f4082e1e127eE",MulticallBranchRouter:"0xaB4A1e4da3544C9749a5873E0Bd1650969b5F648",MulticallBranchBridgeAgent:"0x25478f42EF97E5664aA6E201Ba94EC5467d94746",MulticallBranchRouterLibZip:"0x9c89478815488A261b4d72C58E8776B450a24f16",MulticallBranchBridgeAgentLibZip:"0x1E73b77F3BdD676C7B0892eEB5ac33BCDf0f0826",NativeToken:"0x5AA82E672e31bb936abdaa527fb643B0BEcf1A13"},y[exports.SupportedChainId.SWELL]={BranchPort:"0x0000151d008235A6cC00004F00FA2bDF9dF95400",BranchBridgeAgentFactory:"0x7eA5c2F737c54D9E6Eb6fE71F13Ca834fF407079",CoreBranchRouter:"0xd0f74CbB2a5f67F48E10F7B5e293e0f78B79B599",CoreBranchBridgeAgent:"0x04abb38a64B932F0C5316BF70b639a9AfF14a8E5",ERC20hTokenBranchFactory:"0xA0320af5c9a8e3CC2A7205e833b38c05872B7098",MulticallBranchRouter:"0xa465E96470f0919B2fb91b2f88D57DeAfB1D766a",MulticallBranchBridgeAgent:"0x39cd99411CA6f2a01bceDA964F27D043025230d3",MulticallBranchRouterLibZip:"0x5786EfFF72450E66e91De12D0e95dF71799b524F",MulticallBranchBridgeAgentLibZip:"0x7E424dd1f354Cfd5cba2f213f842E2290A58F7AA",NativeToken:"0xCc74BDF637fAAA6717270E2491b274B158bC5ea9"},y[exports.SupportedChainId.SEPOLIA]=he,y[exports.SupportedChainId.ARBITRUM_SEPOLIA]={BranchPort:"0x95ab3c1f34Ba0637Bd7533b4Fc74B6A30D16cAf8",BranchBridgeAgentFactory:"0x3746841410B8ff846D05Bce56D161Ff71667049F",CoreBranchRouter:"0xb03303b6c7c34C34e4B2d5e9F48F3D664779C4f9",CoreBranchBridgeAgent:"0xf7F0A5fc625a3f5A92b525AC858B8E257239cE9f",ERC20hTokenBranchFactory:"0xe15f57ed19c9ac02B5f95f96Ce50482E4a6714A8",MulticallBranchRouter:"0x6bA0FA9D5B866ddc80C0421F1E2229577e9e0dDF",MulticallBranchBridgeAgent:"0xfDD0F0e43BEEd971b867E4Db9AdD70C49Ae89225",MulticallBranchRouterLibZip:"0xD52C99FDf1A860EdA2C33d160ca318dBD6600aBb",MulticallBranchBridgeAgentLibZip:"0x316EEB1515332bD2533173133545B8800ce0D6c0",NativeToken:"0x3413055aA47545C9551dE8109fe6948f5376Af39"},y[exports.SupportedChainId.OPTIMISM_SEPOLIA]={BranchPort:"0x507f3CeEA7f2bb4eb3C13A7359ABa0c560172Af9",BranchBridgeAgentFactory:"0x2F7Dd1137D158588016b1B0F8d7040dF2923a11E",CoreBranchRouter:"0x1690088Af42f1d77f5ed2998d097cbDd4aB6b935",CoreBranchBridgeAgent:"0x817BD8e30F5b0A89a73c2c9d4A433f5b783C5902",ERC20hTokenBranchFactory:"0x1aE0aE181981BfD675BaB403c7F8A9Ba7843149C",MulticallBranchRouter:"0xE9965fE9637E5b53a31b07c107565C6263347fd0",MulticallBranchBridgeAgent:"0xcaED1f3A6f47E65c7004Ab020480763cb262585A",MulticallBranchRouterLibZip:"0x7bB3d0B4168F062c41EFa71A0d74457Cde0b91c5",MulticallBranchBridgeAgentLibZip:"0x205506CB8BE7f5fC537cB0240ffB4273027CF11D",NativeToken:"0xAd6A7addf807D846A590E76C5830B609F831Ba2E"},y[exports.SupportedChainId.BASE_SEPOLIA]={BranchPort:"0x184f1c3c450702C02bB99137403B125243cB5e66",BranchBridgeAgentFactory:"0x1fc37a909cB3997f96cE395B3Ee9ac268C9bCcdb",CoreBranchRouter:"0x9f88DbcD0d2Db9a2433Ce0f4eF1C5d533F032702",CoreBranchBridgeAgent:"0xcf76904D24c5b99411B3D481049F466F83490bB7",ERC20hTokenBranchFactory:"0x471e76A7CD76A0DbD021F5A3136d1F0828cbD270",MulticallBranchRouter:"0x7ddEecA94ce57264410d51E9F73a0f8983b2eAA7",MulticallBranchBridgeAgent:"0x55D69928F08695a724E8eD65EaaDBA41809a3eFc",MulticallBranchRouterLibZip:"0xAfB0F351A9a92220eFC54a92EA5cAE21AcB3D6Da",MulticallBranchBridgeAgentLibZip:"0x188f596da34015cb2FD8D90770c024c8a271e513",NativeToken:"0x4200000000000000000000000000000000000006"},y[exports.SupportedChainId.POLYGON_AMOY]={BranchPort:"0x471e76A7CD76A0DbD021F5A3136d1F0828cbD270",BranchBridgeAgentFactory:"0x1fc37a909cB3997f96cE395B3Ee9ac268C9bCcdb",CoreBranchRouter:"0x68868e60Bb70f9eA3A153334440e0D6aF96bE77A",CoreBranchBridgeAgent:"0xE1cEf05Ea3Da03EfE18b01fbd7b11DF059A7aF3F",ERC20hTokenBranchFactory:"0x7ddEecA94ce57264410d51E9F73a0f8983b2eAA7",MulticallBranchRouter:"0xAfB0F351A9a92220eFC54a92EA5cAE21AcB3D6Da",MulticallBranchBridgeAgent:"0x201a51Fe6688AEE94E97c71DAdfa727769fE1AB5",MulticallBranchRouterLibZip:"0x9f88DbcD0d2Db9a2433Ce0f4eF1C5d533F032702",MulticallBranchBridgeAgentLibZip:"0xf64597697246F09aA71Eb859F69512c4AabD4dE5",NativeToken:"0x833bF555AD7201Dba33D4A5AeA88c179468Ca424"},y),Ie={Hermes:Ae,Maia:pe,Talos:Be,Balancer:ne,Ulysses:le};(be=exports.ChainId||(exports.ChainId={}))[be.SEPOLIA=11155111]="SEPOLIA",be[be.MAINNET=1]="MAINNET",be[be.ARBITRUM_ONE=42161]="ARBITRUM_ONE",be[be.OPTIMISM=10]="OPTIMISM";var Se,Re=[exports.ChainId.MAINNET,exports.ChainId.SEPOLIA,exports.ChainId.ARBITRUM_ONE,exports.ChainId.OPTIMISM];(Se=exports.NativeCurrencyName||(exports.NativeCurrencyName={})).ETHER="ETH",Se.MATIC="MATIC",Se.CELO="CELO",Se.GNOSIS="XDAI",Se.MOONBEAM="GLMR",Se.BNB="BNB",Se.AVAX="AVAX";var Oe=[exports.ChainId.ARBITRUM_ONE,exports.ChainId.SEPOLIA];function Me(e,r){return void 0===r&&(r=[]),Oe.concat(r).reduce((function(r,t){return r[t]=e,r}),{})}var ge,Le={v3CoreFactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",multicallAddress:"0x1F98415757620B543A52E61c46B32eB19261F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",v3MigratorAddress:"0xA5644E29708357803b5A882D272c41cC0dF92B34",nonfungiblePositionManagerAddress:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88"},ye=se({},Le,{v1MixedRouteQuoterAddress:"0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E"}),Te=Le,_e=se({},Le,{multicallAddress:"0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB",tickLensAddress:"0xbfd8137f7d1516D3ea5cA83523914859ec47F573"}),Ne=((xe={})[exports.ChainId.MAINNET]=ye,xe[exports.ChainId.OPTIMISM]=Te,xe[exports.ChainId.ARBITRUM_ONE]=_e,xe[exports.ChainId.SEPOLIA]={v3CoreFactoryAddress:"0x0227628f3F023bb0B980b67D528571c95c6DaC1c",multicallAddress:"0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",quoterAddress:"0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",v3MigratorAddress:"0x729004182cF005CEC8Bd85df140094b6aCbe8b15",nonfungiblePositionManagerAddress:"0x1238536071E1c677A632429e3655c799b22cDA52",tickLensAddress:"0x0b343475d44EC2b4b8243EBF81dc888BF0A14b36"},xe),me=se({},Re.reduce((function(e,r){return e[r]=Ne[r].v3CoreFactoryAddress,e}),{})),Pe=se({},Re.reduce((function(e,r){var t=Ne[r].v3MigratorAddress;return t&&(e[r]=t),e}),{})),ve=se({},Re.reduce((function(e,r){return e[r]=Ne[r].multicallAddress,e}),{})),Ue=((Fe={})[exports.ChainId.MAINNET]="0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8",Fe),we=se({},Re.reduce((function(e,r){return e[r]=Ne[r].quoterAddress,e}),{})),Ve=se({},Re.reduce((function(e,r){var t=Ne[r].nonfungiblePositionManagerAddress;return t&&(e[r]=t),e}),{})),ke=se({},Me("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e")),He=se({},Re.reduce((function(e,r){var t=Ne[r].tickLensAddress;return t&&(e[r]=t),e}),{}));(ge=exports.Rounding||(exports.Rounding={}))[ge.ROUND_DOWN=0]="ROUND_DOWN",ge[ge.ROUND_HALF_UP=1]="ROUND_HALF_UP",ge[ge.ROUND_UP=2]="ROUND_UP";var Ge=function(e,r,t,a,o,d,i,c,A,p,B,E,u){Number.isSafeInteger(e)||n(!1),r>=0&&r<255&&Number.isInteger(r)||n(!1),this.chainId=e,this.decimals=r,this.symbol=t,this.name=a,this.priceSource=null!=u?u:void 0,this.isOFT=null!=o&&o,this.oftAdapter=null!=d?d:void 0,this.oftVersion=null!=i?i:void 0,this.endpointVersion=null!=c?c:void 0,this.oftSharedDecimals=null!=p?p:void 0,this.endpointId=null!=A?A:void 0,this.oftFee=null!=B?B:void 0,this.oftPeers=null!=E?E:void 0},Ye=function(e){function r(){var r;return(r=e.apply(this,arguments)||this).isNative=!0,r.isToken=!1,r.isGlobal=!1,r.isAcross=!1,r.acrossInfo=void 0,r}return fe(r,e),r}(Ge);function We(e){try{return i.getAddress(e)}catch(r){throw new Error(e+" is not a valid address.")}}var Ze=/^0x[0-9a-fA-F]{40}$/;function ze(e){if(Ze.test(e))return e;throw new Error(e+" is not a valid address.")}var qe,Xe,je,Ke=function(e){function r(r,t,a,o,d,n,i,c,A,p,B,E,u,C,s,f,x){var F;return(F=e.call(this,r,a,o,d,null!=c&&c,A,p,B,E,u,C,s,x)||this).isNative=!1,F.isToken=!0,F.isGlobal=!1,F.address=n?ze(t):We(t),F.isAcross=null!=i&&i,F.acrossInfo=null!=f?f:void 0,F}fe(r,e);var t=r.prototype;return t.equals=function(e){return e.isToken&&this.chainId===e.chainId&&this.address.toLowerCase()===e.address.toLowerCase()},t.sortsBefore=function(e){return this.chainId!==e.chainId&&n(!1),this.address.toLowerCase()===e.address.toLowerCase()&&n(!1),this.address.toLowerCase()<e.address.toLowerCase()},Ce(r,[{key:"wrapped",get:function(){return this}}]),r}(Ge),Qe=((qe={})[1]=new Ke(1,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),qe[3]=new Ke(3,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),qe[4]=new Ke(4,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),qe[5]=new Ke(5,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),qe[42]=new Ke(42,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),qe[10]=new Ke(10,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),qe[69]=new Ke(69,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),qe[42161]=new Ke(42161,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),qe[421611]=new Ke(421611,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),qe),$e=function(e){function r(r,t,a,o,d,n,i,c,A,p){return e.call(this,r,18,"ETH","Ether",t,a,o,d,n,i,c,A,p)||this}return fe(r,e),r.onChain=function(e,t,a,o,d,n,i,c,A,p){var B;return null!=(B=this._etherCache[e])?B:this._etherCache[e]=new r(e,t,a,o,d,n,i,c,A,p)},r.prototype.equals=function(e){return e.isNative&&e.chainId===this.chainId},Ce(r,[{key:"wrapped",get:function(){var e=Qe[this.chainId];return e||n(!1),e}}]),r}(Ye);$e._etherCache={};var Je=A(p),er=A(c),rr=((Xe={})[exports.Rounding.ROUND_DOWN]=Je.ROUND_DOWN,Xe[exports.Rounding.ROUND_HALF_UP]=Je.ROUND_HALF_UP,Xe[exports.Rounding.ROUND_UP]=Je.ROUND_UP,Xe),tr=((je={})[exports.Rounding.ROUND_DOWN]=0,je[exports.Rounding.ROUND_HALF_UP]=1,je[exports.Rounding.ROUND_UP]=3,je),ar=function(){function e(e,r){void 0===r&&(r=d.BigInt(1)),this.numerator=d.BigInt(e),this.denominator=d.BigInt(r)}e.tryParseFraction=function(r){if(r instanceof d||"number"==typeof r||"string"==typeof r)return new e(r);if("numerator"in r&&"denominator"in r)return r;throw new Error("Could not parse fraction")};var r=e.prototype;return r.invert=function(){return new e(this.denominator,this.numerator)},r.add=function(r){var t=e.tryParseFraction(r);return d.equal(this.denominator,t.denominator)?new e(d.add(this.numerator,t.numerator),this.denominator):new e(d.add(d.multiply(this.numerator,t.denominator),d.multiply(t.numerator,this.denominator)),d.multiply(this.denominator,t.denominator))},r.subtract=function(r){var t=e.tryParseFraction(r);return d.equal(this.denominator,t.denominator)?new e(d.subtract(this.numerator,t.numerator),this.denominator):new e(d.subtract(d.multiply(this.numerator,t.denominator),d.multiply(t.numerator,this.denominator)),d.multiply(this.denominator,t.denominator))},r.lessThan=function(r){var t=e.tryParseFraction(r);return d.lessThan(d.multiply(this.numerator,t.denominator),d.multiply(t.numerator,this.denominator))},r.equalTo=function(r){var t=e.tryParseFraction(r);return d.equal(d.multiply(this.numerator,t.denominator),d.multiply(t.numerator,this.denominator))},r.greaterThan=function(r){var t=e.tryParseFraction(r);return d.greaterThan(d.multiply(this.numerator,t.denominator),d.multiply(t.numerator,this.denominator))},r.multiply=function(r){var t=e.tryParseFraction(r);return new e(d.multiply(this.numerator,t.numerator),d.multiply(this.denominator,t.denominator))},r.divide=function(r){var t=e.tryParseFraction(r);return new e(d.multiply(this.numerator,t.denominator),d.multiply(this.denominator,t.numerator))},r.toSignificant=function(e,r,t){void 0===r&&(r={groupSeparator:""}),void 0===t&&(t=exports.Rounding.ROUND_HALF_UP),Number.isInteger(e)||n(!1),e>0||n(!1),Je.set({precision:e+1,rounding:rr[t]});var a=new Je(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return a.toFormat(a.decimalPlaces(),r)},r.toFixed=function(e,r,t){return void 0===r&&(r={groupSeparator:""}),void 0===t&&(t=exports.Rounding.ROUND_HALF_UP),Number.isInteger(e)||n(!1),e>=0||n(!1),er.DP=e,er.RM=tr[t],new er(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,r)},Ce(e,[{key:"quotient",get:function(){return d.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(d.remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new e(this.numerator,this.denominator)}}]),e}(),or=A(c),dr=function(e){function r(r,t,a){var o;return o=e.call(this,t,a)||this,d.lessThanOrEqual(o.quotient,w)||n(!1),o.currency=r,o.decimalScale=d.exponentiate(d.BigInt(10),d.BigInt(r.decimals)),o}fe(r,e),r.fromRawAmount=function(e,t){return new r(e,t)},r.fromFractionalAmount=function(e,t,a){return new r(e,t,a)};var t=r.prototype;return t.add=function(t){this.currency.equals(t.currency)||n(!1);var a=e.prototype.add.call(this,t);return r.fromFractionalAmount(this.currency,a.numerator,a.denominator)},t.subtract=function(t){this.currency.equals(t.currency)||n(!1);var a=e.prototype.subtract.call(this,t);return r.fromFractionalAmount(this.currency,a.numerator,a.denominator)},t.multiply=function(t){var a=e.prototype.multiply.call(this,t);return r.fromFractionalAmount(this.currency,a.numerator,a.denominator)},t.divide=function(t){var a=e.prototype.divide.call(this,t);return r.fromFractionalAmount(this.currency,a.numerator,a.denominator)},t.toSignificant=function(r,t,a){return void 0===r&&(r=6),void 0===a&&(a=exports.Rounding.ROUND_DOWN),e.prototype.divide.call(this,this.decimalScale).toSignificant(r,t,a)},t.toFixed=function(r,t,a){return void 0===r&&(r=this.currency.decimals),void 0===a&&(a=exports.Rounding.ROUND_DOWN),r<=this.currency.decimals||n(!1),e.prototype.divide.call(this,this.decimalScale).toFixed(r,t,a)},t.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),or.DP=this.currency.decimals,new or(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(e)},Ce(r,[{key:"wrapped",get:function(){return this.currency.isToken?this:r.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),r}(ar),nr=new ar(d.BigInt(100));function ir(e){return new cr(e.numerator,e.denominator)}var cr=function(e){function r(){var r;return(r=e.apply(this,arguments)||this).isPercent=!0,r}fe(r,e);var t=r.prototype;return t.add=function(r){return ir(e.prototype.add.call(this,r))},t.subtract=function(r){return ir(e.prototype.subtract.call(this,r))},t.multiply=function(r){return ir(e.prototype.multiply.call(this,r))},t.divide=function(r){return ir(e.prototype.divide.call(this,r))},t.toSignificant=function(r,t,a){return void 0===r&&(r=5),e.prototype.multiply.call(this,nr).toSignificant(r,t,a)},t.toFixed=function(r,t,a){return void 0===r&&(r=2),e.prototype.multiply.call(this,nr).toFixed(r,t,a)},r}(ar),Ar=function(e){function r(){for(var r,t,a,o,n,i=arguments.length,c=new Array(i),A=0;A<i;A++)c[A]=arguments[A];if(4===c.length)t=c[0],a=c[1],o=c[2],n=c[3];else{var p=c[0].quoteAmount.divide(c[0].baseAmount),B=[c[0].baseAmount.currency,c[0].quoteAmount.currency,p.denominator,p.numerator];t=B[0],a=B[1],o=B[2],n=B[3]}return(r=e.call(this,n,o)||this).baseCurrency=t,r.quoteCurrency=a,r.scalar=new ar(d.exponentiate(d.BigInt(10),d.BigInt(t.decimals)),d.exponentiate(d.BigInt(10),d.BigInt(a.decimals))),r}fe(r,e);var t=r.prototype;return t.invert=function(){return new r(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},t.multiply=function(t){this.quoteCurrency.equals(t.baseCurrency)||n(!1);var a=e.prototype.multiply.call(this,t);return new r(this.baseCurrency,t.quoteCurrency,a.denominator,a.numerator)},t.quote=function(r){r.currency.equals(this.baseCurrency)||n(!1);var t=e.prototype.multiply.call(this,r);return dr.fromFractionalAmount(this.quoteCurrency,t.numerator,t.denominator)},t.toSignificant=function(e,r,t){return void 0===e&&(e=6),this.adjustedForDecimals.toSignificant(e,r,t)},t.toFixed=function(e,r,t){return void 0===e&&(e=4),this.adjustedForDecimals.toFixed(e,r,t)},Ce(r,[{key:"adjustedForDecimals",get:function(){return e.prototype.multiply.call(this,this.scalar)}}]),r}(ar);exports.ARGENT_WALLET_DETECTOR_ADDRESS=Ue,exports.ArbitrumBalancerAddresses=oe,exports.ArbitrumHermesAddresses=ie,exports.BalancerAddresses=ne,exports.BaseCurrency=Ge,exports.CHAIN_TO_ADDRESSES_MAP=Ne,exports.CurrencyAmount=dr,exports.ENS_REGISTRAR_ADDRESSES=ke,exports.EVM_CHAIN_ID_FROM_LZ_CHAIN_ID=N,exports.EcosystemProtocols=Ie,exports.Ether=$e,exports.FIVE=Y,exports.Fraction=ar,exports.GOVERNANCE_BRAVO_ADDRESSES=z,exports.GOVERNANCE_BRAVO_SEVERITY_1_ADDRESSES=q,exports.GOVERNANCE_BRAVO_SEVERITY_2_ADDRESSES=X,exports.GOVERNANCE_BRAVO_SEVERITY_3_ADDRESSES=j,exports.GOVERNANCE_BRAVO_SEVERITY_4_ADDRESSES=K,exports.GOVERNANCE_BRAVO_SEVERITY_5_ADDRESSES=Q,exports.HermesAddresses=Ae,exports.LAYER_ZERO_ENDPOINT_ADDRESS=P,exports.LZ_CHAIN_ID_FROM_EVM_CHAIN_ID=_,exports.MULTICALL_ADDRESSES=ve,exports.MaiaAddresses=pe,exports.MaxUint256=w,exports.NEGATIVE_ONE=V,exports.NONFUNGIBLE_POSITION_MANAGER_ADDRESSES=Ve,exports.NativeCurrency=Ye,exports.NativeToken=Ke,exports.ONE=H,exports.ONE_18=G,exports.Percent=cr,exports.Price=Ar,exports.QUOTER_ADDRESSES=we,exports.ROOT_CHAIN_ID=T,exports.SEND_ULTRA_LIGHT_NODE_V2_ADDRESS=U,exports.SUPPORTED_CHAINS=Re,exports.SWAP_ROUTER_02_ADDRESSES=function(e){var r;return Re.includes(e)?null!=(r=Ne[e].swapRouter02Address)?r:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45":""},exports.SepoliaBalancerAddresses=de,exports.SepoliaHermesAddresses=ce,exports.TICK_LENS_ADDRESSES=He,exports.TIMELOCK_ADDRESS=$,exports.TIMELOCK_SEVERITY_1_ADDRESSES=J,exports.TIMELOCK_SEVERITY_2_ADDRESSES=ee,exports.TIMELOCK_SEVERITY_3_ADDRESSES=re,exports.TIMELOCK_SEVERITY_4_ADDRESSES=te,exports.TIMELOCK_SEVERITY_5_ADDRESSES=ae,exports.TalosAddresses=Be,exports.ULTRA_LIGHT_NODE_V2_ADDRESS=v,exports.Ulysses=le,exports.V3_CORE_FACTORY_ADDRESSES=me,exports.V3_MIGRATOR_ADDRESSES=Pe,exports.WETH9=Qe,exports.ZERO=k,exports.ZERO_ADDRESS=m,exports._1000=Z,exports._997=W,exports.checkValidAddress=ze,exports.mulDivUp=function(e,r,t){var a=e*r;return a%t===BigInt(0)?a/t:a/t+BigInt(1)},exports.toHex=function(e){var r=d.BigInt(e).toString(16);return r.length%2!=0&&(r="0"+r),"0x"+r},exports.validateAndParseAddress=We; //# sourceMappingURL=maia-core-sdk.cjs.production.min.js.map