@ape.swap/bonds-sdk 1.1.0-test.6 → 1.1.0-test.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
- package/dist/components/SlippageModal/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Modal/index.d.ts +1 -1
- package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
- package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +1 -1
- package/dist/components/uikit-sdk/index.d.ts +1 -0
- package/dist/config/abi/types/Bond.d.ts +176 -221
- package/dist/config/abi/types/BondNft.d.ts +160 -207
- package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
- package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
- package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
- package/dist/config/abi/types/MigrationBond.d.ts +268 -330
- package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
- package/dist/config/abi/types/Multicallv2.d.ts +35 -46
- package/dist/config/abi/types/Multicallv3.d.ts +14 -14
- package/dist/config/abi/types/common.d.ts +3 -3
- package/dist/config/constants/queryKeys.d.ts +7 -2
- package/dist/config/constants/tokens.d.ts +2 -2
- package/dist/hooks/useTokenFromZapList.d.ts +1 -1
- package/dist/hooks/useTopThreeTags.d.ts +1 -1
- package/dist/main.d.ts +7 -0
- package/dist/main.js +73325 -0
- package/dist/scss/BondMenu.scss +2 -2
- package/dist/scss/BondModal.scss +74 -73
- package/dist/scss/BondRow.scss +5 -5
- package/dist/scss/BondRowHeader.scss +7 -7
- package/dist/scss/Bonds.scss +2 -1
- package/dist/scss/YourBonds.scss +19 -14
- package/dist/scss/YourBondsModal.scss +3 -3
- package/dist/scss/index.scss +12 -0
- package/dist/state/allowance/useAllowance.d.ts +8 -4
- package/dist/state/bonds/useBondNFTData.d.ts +5 -0
- package/dist/state/bonds/useBondsData.d.ts +4 -0
- package/dist/state/bonds/useBondsList.d.ts +4 -0
- package/dist/state/bonds/useHotBonds.d.ts +3 -0
- package/dist/state/bonds/useUserBonds.d.ts +5 -0
- package/dist/state/price/useCurrencyPrice.d.ts +1 -17
- package/dist/state/slippage/useSlippage.d.ts +1 -0
- package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
- package/dist/state/zap/getChainParam.d.ts +1 -1
- package/dist/types/yourbonds.d.ts +51 -66
- package/dist/utils/displayHelpers.d.ts +13 -0
- package/dist/utils/getNativeTicker.d.ts +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/views/BondModal/BondModal.d.ts +4 -7
- package/dist/views/BondModal/helper.d.ts +1 -1
- package/dist/views/BondModal/index.d.ts +2 -2
- package/dist/views/Bonds/Bonds.d.ts +7 -9
- package/dist/{components → views/Bonds/components}/BondRows/BondRow.d.ts +4 -2
- package/dist/{components → views/Bonds/components}/BondRows/BondRowHeader.d.ts +3 -4
- package/dist/views/Bonds/components/BondRows/BondRowsByChain.d.ts +11 -0
- package/dist/views/Bonds/components/BondRows/BondRowsWithTitle.d.ts +12 -0
- package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
- package/dist/views/Bonds/index.d.ts +2 -2
- package/dist/views/Bonds/utils.d.ts +12 -0
- package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
- package/dist/views/FullBondsView/index.d.ts +3 -0
- package/dist/views/YourBonds/YourBonds.d.ts +1 -11
- package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +4 -5
- package/dist/views/YourBonds/index.d.ts +3 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +4 -5
- package/package.json +19 -13
- package/dist/components/AccordionText/index.js +0 -17
- package/dist/components/BondMenu/BondMenu.js +0 -40
- package/dist/components/BondMenu/useChainFilterOption.js +0 -30
- package/dist/components/BondRows/BondRow.js +0 -81
- package/dist/components/BondRows/BondRowHeader.js +0 -12
- package/dist/components/BondRows/BondRowsByChain.d.ts +0 -9
- package/dist/components/BondRows/BondRowsByChain.js +0 -12
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +0 -9
- package/dist/components/BondRows/BondRowsWithTitle.js +0 -20
- package/dist/components/BondRows/ChainTitle.js +0 -18
- package/dist/components/MenuSelect/MenuSelect.js +0 -36
- package/dist/components/MenuSelect/RecommendationSelector.js +0 -32
- package/dist/components/MenuSelect/types.js +0 -1
- package/dist/components/NetworkFilter/index.js +0 -66
- package/dist/components/ProgressBar/ProgressBar.js +0 -10
- package/dist/components/ProgressBar/ProgressBarWrapper.js +0 -9
- package/dist/components/ProgressBar/styles.js +0 -82
- package/dist/components/TokenInfoAndName/index.js +0 -32
- package/dist/components/TokenSelectorModal/TokenRow.js +0 -18
- package/dist/components/TokenSelectorModal/index.js +0 -56
- package/dist/components/TokenSelectorPanel/index.js +0 -36
- package/dist/components/Tooltip/ButtonsRow.js +0 -21
- package/dist/components/Tooltip/Tooltip.js +0 -13
- package/dist/components/Tooltip/styles.js +0 -44
- package/dist/components/uikit-sdk/Button/Button.js +0 -91
- package/dist/components/uikit-sdk/Button/IconButton.js +0 -33
- package/dist/components/uikit-sdk/Button/index.js +0 -2
- package/dist/components/uikit-sdk/Button/styles.js +0 -30
- package/dist/components/uikit-sdk/Button/types.js +0 -37
- package/dist/components/uikit-sdk/Checkbox/index.js +0 -46
- package/dist/components/uikit-sdk/Checkbox/types.js +0 -5
- package/dist/components/uikit-sdk/Flex/index.js +0 -29
- package/dist/components/uikit-sdk/Input/Input.js +0 -73
- package/dist/components/uikit-sdk/Input/NumericInput.js +0 -35
- package/dist/components/uikit-sdk/Input/StyledInput.js +0 -26
- package/dist/components/uikit-sdk/Input/index.js +0 -3
- package/dist/components/uikit-sdk/Modal/ModalFooter.js +0 -21
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +0 -31
- package/dist/components/uikit-sdk/Modal/index.js +0 -46
- package/dist/components/uikit-sdk/Modal/styles.js +0 -62
- package/dist/components/uikit-sdk/Modal/types.js +0 -1
- package/dist/components/uikit-sdk/Select/Select.js +0 -61
- package/dist/components/uikit-sdk/Select/SelectItem.js +0 -40
- package/dist/components/uikit-sdk/Select/index.js +0 -2
- package/dist/components/uikit-sdk/Select/styles.js +0 -50
- package/dist/components/uikit-sdk/Select/types.js +0 -37
- package/dist/components/uikit-sdk/Skeleton/index.js +0 -31
- package/dist/components/uikit-sdk/Skeleton/styles.js +0 -40
- package/dist/components/uikit-sdk/Skeleton/types.js +0 -10
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -17
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -17
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/External.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Language.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/More.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/index.js +0 -112
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/types.js +0 -1
- package/dist/components/uikit-sdk/Svg/index.js +0 -347
- package/dist/components/uikit-sdk/Svg/styles.js +0 -16
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -5
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -5
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/index.js +0 -22
- package/dist/components/uikit-sdk/Svg/types.js +0 -165
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -5
- package/dist/components/uikit-sdk/Svg/walletIcons/index.js +0 -18
- package/dist/components/uikit-sdk/Tag/ListTag.js +0 -20
- package/dist/components/uikit-sdk/Tag/Tag.js +0 -42
- package/dist/components/uikit-sdk/Tag/index.js +0 -2
- package/dist/components/uikit-sdk/Tag/styles.js +0 -44
- package/dist/components/uikit-sdk/Tag/types.js +0 -34
- package/dist/components/uikit-sdk/Text/index.js +0 -35
- package/dist/components/uikit-sdk/Text/types.js +0 -13
- package/dist/components/uikit-sdk/TokenImage/index.js +0 -41
- package/dist/components/uikit-sdk/TooltipBubble/index.js +0 -66
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +0 -60
- package/dist/components/uikit-sdk/TooltipBubble/types.js +0 -8
- package/dist/components/uikit-sdk/index.js +0 -12
- package/dist/config/abi/bond.json +0 -450
- package/dist/config/abi/erc20.json +0 -117
- package/dist/config/abi/multicallv2.json +0 -143
- package/dist/config/abi/price-getter-linea.json +0 -1448
- package/dist/config/abi/price-getter.json +0 -1309
- package/dist/config/abi/types/Banana.js +0 -1
- package/dist/config/abi/types/Bond.js +0 -1
- package/dist/config/abi/types/BondNft.js +0 -1
- package/dist/config/abi/types/EnsPublicResolver.js +0 -1
- package/dist/config/abi/types/EnsRegistrar.js +0 -1
- package/dist/config/abi/types/Erc20.js +0 -1
- package/dist/config/abi/types/Erc20_bytes32.js +0 -1
- package/dist/config/abi/types/JungleChef.js +0 -1
- package/dist/config/abi/types/LaunchBonds.js +0 -1
- package/dist/config/abi/types/LensContract.js +0 -1
- package/dist/config/abi/types/LockVeAbond.js +0 -1
- package/dist/config/abi/types/MigrationBond.js +0 -1
- package/dist/config/abi/types/MigrationFveAbond.js +0 -1
- package/dist/config/abi/types/MiniComplexRewarder.js +0 -1
- package/dist/config/abi/types/Multicallv2.js +0 -1
- package/dist/config/abi/types/Multicallv3.js +0 -1
- package/dist/config/abi/types/NonFungibleApes.js +0 -1
- package/dist/config/abi/types/NonFungibleBananas.js +0 -1
- package/dist/config/abi/types/PriceGetter.js +0 -1
- package/dist/config/abi/types/PriceGetterLinea.js +0 -1
- package/dist/config/abi/types/PriceGetterV2.js +0 -1
- package/dist/config/abi/types/SousChef.js +0 -1
- package/dist/config/abi/types/Treasury.js +0 -1
- package/dist/config/abi/types/Weth.js +0 -1
- package/dist/config/abi/types/Zap.js +0 -1
- package/dist/config/abi/types/common.js +0 -1
- package/dist/config/abi/types/factories/Banana__factory.js +0 -627
- package/dist/config/abi/types/factories/BondNft__factory.js +0 -950
- package/dist/config/abi/types/factories/Bond__factory.js +0 -1041
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +0 -832
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +0 -438
- package/dist/config/abi/types/factories/Erc20__factory.js +0 -238
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +0 -46
- package/dist/config/abi/types/factories/JungleChef__factory.js +0 -325
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +0 -2030
- package/dist/config/abi/types/factories/LensContract__factory.js +0 -337
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +0 -2214
- package/dist/config/abi/types/factories/MigrationBond__factory.js +0 -1655
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +0 -345
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +0 -585
- package/dist/config/abi/types/factories/Multicallv2__factory.js +0 -159
- package/dist/config/abi/types/factories/Multicallv3__factory.js +0 -108
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +0 -809
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +0 -755
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +0 -1464
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +0 -1363
- package/dist/config/abi/types/factories/PriceGetter__factory.js +0 -1325
- package/dist/config/abi/types/factories/SousChef__factory.js +0 -665
- package/dist/config/abi/types/factories/Treasury__factory.js +0 -308
- package/dist/config/abi/types/factories/Weth__factory.js +0 -295
- package/dist/config/abi/types/factories/Zap__factory.js +0 -888
- package/dist/config/abi/types/factories/index.js +0 -27
- package/dist/config/abi/types/index.js +0 -26
- package/dist/config/constants/addresses.js +0 -67
- package/dist/config/constants/api.js +0 -6
- package/dist/config/constants/chains.js +0 -436
- package/dist/config/constants/lifiRouting.js +0 -6
- package/dist/config/constants/lists.js +0 -21
- package/dist/config/constants/meta.js +0 -92
- package/dist/config/constants/misc.js +0 -4
- package/dist/config/constants/networks.js +0 -44
- package/dist/config/constants/products.js +0 -58
- package/dist/config/constants/queryKeys.js +0 -28
- package/dist/config/constants/tokens.js +0 -64
- package/dist/config/constants/tutorials.js +0 -80
- package/dist/config/constants/zapInputTokens.js +0 -356
- package/dist/config/localization/languages.js +0 -83
- package/dist/config/localization/translations.json +0 -918
- package/dist/contexts/Localization/Provider.js +0 -134
- package/dist/contexts/Localization/helpers.js +0 -63
- package/dist/contexts/Localization/index.js +0 -2
- package/dist/contexts/Localization/types.js +0 -1
- package/dist/contexts/Localization/useTranslation.js +0 -10
- package/dist/contexts/ModalContext.js +0 -67
- package/dist/contexts/RefreshContext.js +0 -78
- package/dist/enum/tooltips.js +0 -13
- package/dist/hooks/useCookie.js +0 -29
- package/dist/hooks/useIsAbond.js +0 -10
- package/dist/hooks/useModal.js +0 -39
- package/dist/hooks/usePendingVesting.js +0 -13
- package/dist/hooks/useRefresh.js +0 -7
- package/dist/hooks/useTimer.js +0 -13
- package/dist/hooks/useTokenFromZapList.js +0 -10
- package/dist/hooks/useTopThreeTags.js +0 -25
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/providers/index.js +0 -18
- package/dist/state/allowance/useAllowance.js +0 -148
- package/dist/state/balance/useCurrencyBalance.js +0 -80
- package/dist/state/price/useCurrencyPrice.js +0 -397
- package/dist/state/zap/getChainParam.js +0 -34
- package/dist/state/zap/useSoulZapBondQuote.js +0 -177
- package/dist/state/zap/useSoulZapTokenQuote.js +0 -167
- package/dist/theme/base.js +0 -123
- package/dist/theme/colors.js +0 -93
- package/dist/theme/components.js +0 -338
- package/dist/theme/display.js +0 -2
- package/dist/theme/index.js +0 -15
- package/dist/theme/types.js +0 -1
- package/dist/types/bonds.js +0 -1
- package/dist/types/yourbonds.js +0 -1
- package/dist/utils/convertToTokenValue.js +0 -24
- package/dist/utils/formatNumber.js +0 -34
- package/dist/utils/formatNumbers.js +0 -148
- package/dist/utils/getBalanceNumber.js +0 -18
- package/dist/utils/getNativeTicker.js +0 -8
- package/dist/utils/getTimePeriods.js +0 -44
- package/dist/utils/index.js +0 -127
- package/dist/utils/localStorageHelpers.js +0 -47
- package/dist/utils/multicall.js +0 -90
- package/dist/utils/numbers.js +0 -111
- package/dist/utils/roundNumber.js +0 -14
- package/dist/utils/track.js +0 -17
- package/dist/views/BondModal/BondModal.js +0 -300
- package/dist/views/BondModal/helper.js +0 -54
- package/dist/views/BondModal/index.js +0 -18
- package/dist/views/Bonds/Bonds.js +0 -157
- package/dist/views/Bonds/index.js +0 -18
- package/dist/views/Bonds/utils.js +0 -24
- package/dist/views/YourBonds/YourBonds.js +0 -269
- package/dist/views/YourBonds/fetchBillsUser.js +0 -234
- package/dist/views/YourBonds/getBillNftData.js +0 -101
- package/dist/views/YourBondsModal/YourBondsModal.js +0 -181
- package/dist/views/YourBondsModal/styles.js +0 -12
- package/dist/views/ZapModal/index.js +0 -150
- package/dist/views/ZapModal/styles.js +0 -35
- /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
- /package/dist/{components → views/Bonds/components}/BondRows/ChainTitle.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ModalProps } from './types';
|
|
3
|
-
declare const Modal: ({ children, onDismiss, open, title, zIndex, onAnimationComplete, backdrop, ...props }: ModalProps) => React.JSX.Element;
|
|
3
|
+
declare const Modal: ({ children, onDismiss, open, title, zIndex, onAnimationComplete, backdrop, ...props }: ModalProps | any) => React.JSX.Element;
|
|
4
4
|
export default Modal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Toggle: ({ options, activeOption, handleToggle, claimableBillsAmount, }: {
|
|
3
|
+
options: string[];
|
|
4
|
+
activeOption: string;
|
|
5
|
+
handleToggle: (newOption: string) => void;
|
|
6
|
+
claimableBillsAmount?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default Toggle;
|
|
@@ -5,6 +5,7 @@ export { default as CheckBox } from './Checkbox';
|
|
|
5
5
|
export { default as Skeleton } from './Skeleton';
|
|
6
6
|
export { default as TooltipBubble } from './TooltipBubble';
|
|
7
7
|
export { default as Modal } from './Modal';
|
|
8
|
+
export { default as Toggle } from './Toggle';
|
|
8
9
|
export { Button, IconButton } from './Button';
|
|
9
10
|
export { Select, SelectItem } from './Select';
|
|
10
11
|
export { Tag, ListTag } from './Tag';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from
|
|
2
|
-
import type { FunctionFragment, Result, EventFragment } from
|
|
3
|
-
import type { Listener, Provider } from
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from 'ethers';
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi';
|
|
3
|
+
import type { Listener, Provider } from '@ethersproject/providers';
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from './common';
|
|
5
5
|
export declare namespace ICustomBill {
|
|
6
6
|
type BillStruct = {
|
|
7
7
|
payout: PromiseOrValue<BigNumberish>;
|
|
@@ -12,15 +12,7 @@ export declare namespace ICustomBill {
|
|
|
12
12
|
lastClaimTimestamp: PromiseOrValue<BigNumberish>;
|
|
13
13
|
truePricePaid: PromiseOrValue<BigNumberish>;
|
|
14
14
|
};
|
|
15
|
-
type BillStructOutput = [
|
|
16
|
-
BigNumber,
|
|
17
|
-
BigNumber,
|
|
18
|
-
BigNumber,
|
|
19
|
-
BigNumber,
|
|
20
|
-
BigNumber,
|
|
21
|
-
BigNumber,
|
|
22
|
-
BigNumber
|
|
23
|
-
] & {
|
|
15
|
+
type BillStructOutput = [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & {
|
|
24
16
|
payout: BigNumber;
|
|
25
17
|
payoutClaimed: BigNumber;
|
|
26
18
|
vesting: BigNumber;
|
|
@@ -32,85 +24,77 @@ export declare namespace ICustomBill {
|
|
|
32
24
|
}
|
|
33
25
|
export interface BondInterface extends utils.Interface {
|
|
34
26
|
functions: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
27
|
+
'DAO()': FunctionFragment;
|
|
28
|
+
'adjustment()': FunctionFragment;
|
|
29
|
+
'batchRedeem(uint256[])': FunctionFragment;
|
|
30
|
+
'billInfo(uint256)': FunctionFragment;
|
|
31
|
+
'billNft()': FunctionFragment;
|
|
32
|
+
'billPrice()': FunctionFragment;
|
|
33
|
+
'changeTreasury(address)': FunctionFragment;
|
|
34
|
+
'currentDebt()': FunctionFragment;
|
|
35
|
+
'currentFee()': FunctionFragment;
|
|
36
|
+
'customTreasury()': FunctionFragment;
|
|
37
|
+
'debtDecay()': FunctionFragment;
|
|
38
|
+
'debtRatio()': FunctionFragment;
|
|
39
|
+
'deposit(uint256,uint256,address)': FunctionFragment;
|
|
40
|
+
'getBillIds(address)': FunctionFragment;
|
|
41
|
+
'getBillIdsInRange(address,uint256,uint256)': FunctionFragment;
|
|
42
|
+
'initialize(address[7],uint256[],uint256[],bool)': FunctionFragment;
|
|
43
|
+
'initializeBill(uint256,uint256,uint256,uint256,uint256,uint256)': FunctionFragment;
|
|
44
|
+
'lastDecay()': FunctionFragment;
|
|
45
|
+
'maxPayout()': FunctionFragment;
|
|
46
|
+
'paySubsidy()': FunctionFragment;
|
|
47
|
+
'payoutFor(uint256)': FunctionFragment;
|
|
48
|
+
'payoutSinceLastSubsidy()': FunctionFragment;
|
|
49
|
+
'payoutToken()': FunctionFragment;
|
|
50
|
+
'pendingPayoutFor(uint256)': FunctionFragment;
|
|
51
|
+
'percentVestedFor(uint256)': FunctionFragment;
|
|
52
|
+
'policy()': FunctionFragment;
|
|
53
|
+
'principalToken()': FunctionFragment;
|
|
54
|
+
'pullPolicy()': FunctionFragment;
|
|
55
|
+
'pushPolicy(address)': FunctionFragment;
|
|
56
|
+
'redeem(uint256)': FunctionFragment;
|
|
57
|
+
'renouncePolicy()': FunctionFragment;
|
|
58
|
+
'setAdjustment(bool,uint256,uint256,uint256)': FunctionFragment;
|
|
59
|
+
'setBillTerms(uint8,uint256)': FunctionFragment;
|
|
60
|
+
'subsidyRouter()': FunctionFragment;
|
|
61
|
+
'terms()': FunctionFragment;
|
|
62
|
+
'totalDebt()': FunctionFragment;
|
|
63
|
+
'totalPayoutGiven()': FunctionFragment;
|
|
64
|
+
'totalPrincipalBilled()': FunctionFragment;
|
|
65
|
+
'treasury()': FunctionFragment;
|
|
66
|
+
'trueBillPrice()': FunctionFragment;
|
|
67
|
+
'userBillIds()': FunctionFragment;
|
|
68
|
+
'maxTotalPayout()': FunctionFragment;
|
|
69
|
+
'getMaxTotalPayout()': FunctionFragment;
|
|
70
|
+
'pendingPayout(uint256)': FunctionFragment;
|
|
71
|
+
'pendingVesting(uint256)': FunctionFragment;
|
|
72
|
+
'getBillInfo(uint256)': FunctionFragment;
|
|
73
|
+
'claimablePayout(uint256)': FunctionFragment;
|
|
82
74
|
};
|
|
83
|
-
getFunction(nameOrSignatureOrTopic:
|
|
84
|
-
encodeFunctionData(functionFragment:
|
|
85
|
-
encodeFunctionData(functionFragment:
|
|
86
|
-
encodeFunctionData(functionFragment:
|
|
87
|
-
encodeFunctionData(functionFragment:
|
|
88
|
-
encodeFunctionData(functionFragment:
|
|
89
|
-
encodeFunctionData(functionFragment:
|
|
90
|
-
encodeFunctionData(functionFragment:
|
|
91
|
-
encodeFunctionData(functionFragment:
|
|
92
|
-
encodeFunctionData(functionFragment:
|
|
93
|
-
encodeFunctionData(functionFragment:
|
|
94
|
-
encodeFunctionData(functionFragment:
|
|
95
|
-
encodeFunctionData(functionFragment:
|
|
96
|
-
encodeFunctionData(functionFragment:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
]): string;
|
|
101
|
-
encodeFunctionData(functionFragment: "getBillIds", values: [PromiseOrValue<string>]): string;
|
|
102
|
-
encodeFunctionData(functionFragment: "getBillIdsInRange", values: [
|
|
103
|
-
PromiseOrValue<string>,
|
|
104
|
-
PromiseOrValue<BigNumberish>,
|
|
105
|
-
PromiseOrValue<BigNumberish>
|
|
106
|
-
]): string;
|
|
107
|
-
encodeFunctionData(functionFragment: "initialize", values: [
|
|
75
|
+
getFunction(nameOrSignatureOrTopic: 'DAO' | 'adjustment' | 'batchRedeem' | 'billInfo' | 'billNft' | 'billPrice' | 'changeTreasury' | 'currentDebt' | 'currentFee' | 'customTreasury' | 'debtDecay' | 'debtRatio' | 'deposit' | 'getBillIds' | 'getBillIdsInRange' | 'initialize' | 'initializeBill' | 'lastDecay' | 'maxPayout' | 'paySubsidy' | 'payoutFor' | 'payoutSinceLastSubsidy' | 'payoutToken' | 'pendingPayoutFor' | 'percentVestedFor' | 'policy' | 'principalToken' | 'pullPolicy' | 'pushPolicy' | 'redeem' | 'renouncePolicy' | 'setAdjustment' | 'setBillTerms' | 'subsidyRouter' | 'terms' | 'totalDebt' | 'totalPayoutGiven' | 'totalPrincipalBilled' | 'treasury' | 'trueBillPrice' | 'userBillIds' | 'maxTotalPayout' | 'getMaxTotalPayout' | 'pendingPayout' | 'pendingVesting' | 'getBillInfo' | 'claimablePayout'): FunctionFragment;
|
|
76
|
+
encodeFunctionData(functionFragment: 'DAO', values?: undefined): string;
|
|
77
|
+
encodeFunctionData(functionFragment: 'adjustment', values?: undefined): string;
|
|
78
|
+
encodeFunctionData(functionFragment: 'batchRedeem', values: [PromiseOrValue<BigNumberish>[]]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: 'billInfo', values: [PromiseOrValue<BigNumberish>]): string;
|
|
80
|
+
encodeFunctionData(functionFragment: 'billNft', values?: undefined): string;
|
|
81
|
+
encodeFunctionData(functionFragment: 'billPrice', values?: undefined): string;
|
|
82
|
+
encodeFunctionData(functionFragment: 'changeTreasury', values: [PromiseOrValue<string>]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: 'currentDebt', values?: undefined): string;
|
|
84
|
+
encodeFunctionData(functionFragment: 'currentFee', values?: undefined): string;
|
|
85
|
+
encodeFunctionData(functionFragment: 'customTreasury', values?: undefined): string;
|
|
86
|
+
encodeFunctionData(functionFragment: 'debtDecay', values?: undefined): string;
|
|
87
|
+
encodeFunctionData(functionFragment: 'debtRatio', values?: undefined): string;
|
|
88
|
+
encodeFunctionData(functionFragment: 'deposit', values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
89
|
+
encodeFunctionData(functionFragment: 'getBillIds', values: [PromiseOrValue<string>]): string;
|
|
90
|
+
encodeFunctionData(functionFragment: 'getBillIdsInRange', values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]): string;
|
|
91
|
+
encodeFunctionData(functionFragment: 'initialize', values: [
|
|
108
92
|
PromiseOrValue<string>[],
|
|
109
93
|
PromiseOrValue<BigNumberish>[],
|
|
110
94
|
PromiseOrValue<BigNumberish>[],
|
|
111
95
|
PromiseOrValue<boolean>
|
|
112
96
|
]): string;
|
|
113
|
-
encodeFunctionData(functionFragment:
|
|
97
|
+
encodeFunctionData(functionFragment: 'initializeBill', values: [
|
|
114
98
|
PromiseOrValue<BigNumberish>,
|
|
115
99
|
PromiseOrValue<BigNumberish>,
|
|
116
100
|
PromiseOrValue<BigNumberish>,
|
|
@@ -118,104 +102,104 @@ export interface BondInterface extends utils.Interface {
|
|
|
118
102
|
PromiseOrValue<BigNumberish>,
|
|
119
103
|
PromiseOrValue<BigNumberish>
|
|
120
104
|
]): string;
|
|
121
|
-
encodeFunctionData(functionFragment:
|
|
122
|
-
encodeFunctionData(functionFragment:
|
|
123
|
-
encodeFunctionData(functionFragment:
|
|
124
|
-
encodeFunctionData(functionFragment:
|
|
125
|
-
encodeFunctionData(functionFragment:
|
|
126
|
-
encodeFunctionData(functionFragment:
|
|
127
|
-
encodeFunctionData(functionFragment:
|
|
128
|
-
encodeFunctionData(functionFragment:
|
|
129
|
-
encodeFunctionData(functionFragment:
|
|
130
|
-
encodeFunctionData(functionFragment:
|
|
131
|
-
encodeFunctionData(functionFragment:
|
|
132
|
-
encodeFunctionData(functionFragment:
|
|
133
|
-
encodeFunctionData(functionFragment:
|
|
134
|
-
encodeFunctionData(functionFragment:
|
|
135
|
-
encodeFunctionData(functionFragment:
|
|
105
|
+
encodeFunctionData(functionFragment: 'lastDecay', values?: undefined): string;
|
|
106
|
+
encodeFunctionData(functionFragment: 'maxPayout', values?: undefined): string;
|
|
107
|
+
encodeFunctionData(functionFragment: 'paySubsidy', values?: undefined): string;
|
|
108
|
+
encodeFunctionData(functionFragment: 'payoutFor', values: [PromiseOrValue<BigNumberish>]): string;
|
|
109
|
+
encodeFunctionData(functionFragment: 'payoutSinceLastSubsidy', values?: undefined): string;
|
|
110
|
+
encodeFunctionData(functionFragment: 'payoutToken', values?: undefined): string;
|
|
111
|
+
encodeFunctionData(functionFragment: 'pendingPayoutFor', values: [PromiseOrValue<BigNumberish>]): string;
|
|
112
|
+
encodeFunctionData(functionFragment: 'percentVestedFor', values: [PromiseOrValue<BigNumberish>]): string;
|
|
113
|
+
encodeFunctionData(functionFragment: 'policy', values?: undefined): string;
|
|
114
|
+
encodeFunctionData(functionFragment: 'principalToken', values?: undefined): string;
|
|
115
|
+
encodeFunctionData(functionFragment: 'pullPolicy', values?: undefined): string;
|
|
116
|
+
encodeFunctionData(functionFragment: 'pushPolicy', values: [PromiseOrValue<string>]): string;
|
|
117
|
+
encodeFunctionData(functionFragment: 'redeem', values: [PromiseOrValue<BigNumberish>]): string;
|
|
118
|
+
encodeFunctionData(functionFragment: 'renouncePolicy', values?: undefined): string;
|
|
119
|
+
encodeFunctionData(functionFragment: 'setAdjustment', values: [
|
|
136
120
|
PromiseOrValue<boolean>,
|
|
137
121
|
PromiseOrValue<BigNumberish>,
|
|
138
122
|
PromiseOrValue<BigNumberish>,
|
|
139
123
|
PromiseOrValue<BigNumberish>
|
|
140
124
|
]): string;
|
|
141
|
-
encodeFunctionData(functionFragment:
|
|
142
|
-
encodeFunctionData(functionFragment:
|
|
143
|
-
encodeFunctionData(functionFragment:
|
|
144
|
-
encodeFunctionData(functionFragment:
|
|
145
|
-
encodeFunctionData(functionFragment:
|
|
146
|
-
encodeFunctionData(functionFragment:
|
|
147
|
-
encodeFunctionData(functionFragment:
|
|
148
|
-
encodeFunctionData(functionFragment:
|
|
149
|
-
encodeFunctionData(functionFragment:
|
|
150
|
-
encodeFunctionData(functionFragment:
|
|
151
|
-
encodeFunctionData(functionFragment:
|
|
152
|
-
encodeFunctionData(functionFragment:
|
|
153
|
-
encodeFunctionData(functionFragment:
|
|
154
|
-
encodeFunctionData(functionFragment:
|
|
155
|
-
encodeFunctionData(functionFragment:
|
|
156
|
-
decodeFunctionResult(functionFragment:
|
|
157
|
-
decodeFunctionResult(functionFragment:
|
|
158
|
-
decodeFunctionResult(functionFragment:
|
|
159
|
-
decodeFunctionResult(functionFragment:
|
|
160
|
-
decodeFunctionResult(functionFragment:
|
|
161
|
-
decodeFunctionResult(functionFragment:
|
|
162
|
-
decodeFunctionResult(functionFragment:
|
|
163
|
-
decodeFunctionResult(functionFragment:
|
|
164
|
-
decodeFunctionResult(functionFragment:
|
|
165
|
-
decodeFunctionResult(functionFragment:
|
|
166
|
-
decodeFunctionResult(functionFragment:
|
|
167
|
-
decodeFunctionResult(functionFragment:
|
|
168
|
-
decodeFunctionResult(functionFragment:
|
|
169
|
-
decodeFunctionResult(functionFragment:
|
|
170
|
-
decodeFunctionResult(functionFragment:
|
|
171
|
-
decodeFunctionResult(functionFragment:
|
|
172
|
-
decodeFunctionResult(functionFragment:
|
|
173
|
-
decodeFunctionResult(functionFragment:
|
|
174
|
-
decodeFunctionResult(functionFragment:
|
|
175
|
-
decodeFunctionResult(functionFragment:
|
|
176
|
-
decodeFunctionResult(functionFragment:
|
|
177
|
-
decodeFunctionResult(functionFragment:
|
|
178
|
-
decodeFunctionResult(functionFragment:
|
|
179
|
-
decodeFunctionResult(functionFragment:
|
|
180
|
-
decodeFunctionResult(functionFragment:
|
|
181
|
-
decodeFunctionResult(functionFragment:
|
|
182
|
-
decodeFunctionResult(functionFragment:
|
|
183
|
-
decodeFunctionResult(functionFragment:
|
|
184
|
-
decodeFunctionResult(functionFragment:
|
|
185
|
-
decodeFunctionResult(functionFragment:
|
|
186
|
-
decodeFunctionResult(functionFragment:
|
|
187
|
-
decodeFunctionResult(functionFragment:
|
|
188
|
-
decodeFunctionResult(functionFragment:
|
|
189
|
-
decodeFunctionResult(functionFragment:
|
|
190
|
-
decodeFunctionResult(functionFragment:
|
|
191
|
-
decodeFunctionResult(functionFragment:
|
|
192
|
-
decodeFunctionResult(functionFragment:
|
|
193
|
-
decodeFunctionResult(functionFragment:
|
|
194
|
-
decodeFunctionResult(functionFragment:
|
|
195
|
-
decodeFunctionResult(functionFragment:
|
|
196
|
-
decodeFunctionResult(functionFragment:
|
|
197
|
-
decodeFunctionResult(functionFragment:
|
|
198
|
-
decodeFunctionResult(functionFragment:
|
|
199
|
-
decodeFunctionResult(functionFragment:
|
|
200
|
-
decodeFunctionResult(functionFragment:
|
|
201
|
-
decodeFunctionResult(functionFragment:
|
|
202
|
-
decodeFunctionResult(functionFragment:
|
|
125
|
+
encodeFunctionData(functionFragment: 'setBillTerms', values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]): string;
|
|
126
|
+
encodeFunctionData(functionFragment: 'subsidyRouter', values?: undefined): string;
|
|
127
|
+
encodeFunctionData(functionFragment: 'terms', values?: undefined): string;
|
|
128
|
+
encodeFunctionData(functionFragment: 'totalDebt', values?: undefined): string;
|
|
129
|
+
encodeFunctionData(functionFragment: 'totalPayoutGiven', values?: undefined): string;
|
|
130
|
+
encodeFunctionData(functionFragment: 'totalPrincipalBilled', values?: undefined): string;
|
|
131
|
+
encodeFunctionData(functionFragment: 'treasury', values?: undefined): string;
|
|
132
|
+
encodeFunctionData(functionFragment: 'trueBillPrice', values?: undefined): string;
|
|
133
|
+
encodeFunctionData(functionFragment: 'userBillIds', values?: undefined): string;
|
|
134
|
+
encodeFunctionData(functionFragment: 'maxTotalPayout', values?: undefined): string;
|
|
135
|
+
encodeFunctionData(functionFragment: 'getMaxTotalPayout', values?: undefined): string;
|
|
136
|
+
encodeFunctionData(functionFragment: 'pendingPayout', values: [PromiseOrValue<BigNumberish>]): string;
|
|
137
|
+
encodeFunctionData(functionFragment: 'pendingVesting', values: [PromiseOrValue<BigNumberish>]): string;
|
|
138
|
+
encodeFunctionData(functionFragment: 'getBillInfo', values: [PromiseOrValue<BigNumberish>]): string;
|
|
139
|
+
encodeFunctionData(functionFragment: 'claimablePayout', values: [PromiseOrValue<BigNumberish>]): string;
|
|
140
|
+
decodeFunctionResult(functionFragment: 'DAO', data: BytesLike): Result;
|
|
141
|
+
decodeFunctionResult(functionFragment: 'adjustment', data: BytesLike): Result;
|
|
142
|
+
decodeFunctionResult(functionFragment: 'batchRedeem', data: BytesLike): Result;
|
|
143
|
+
decodeFunctionResult(functionFragment: 'billInfo', data: BytesLike): Result;
|
|
144
|
+
decodeFunctionResult(functionFragment: 'billNft', data: BytesLike): Result;
|
|
145
|
+
decodeFunctionResult(functionFragment: 'billPrice', data: BytesLike): Result;
|
|
146
|
+
decodeFunctionResult(functionFragment: 'changeTreasury', data: BytesLike): Result;
|
|
147
|
+
decodeFunctionResult(functionFragment: 'currentDebt', data: BytesLike): Result;
|
|
148
|
+
decodeFunctionResult(functionFragment: 'currentFee', data: BytesLike): Result;
|
|
149
|
+
decodeFunctionResult(functionFragment: 'customTreasury', data: BytesLike): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: 'debtDecay', data: BytesLike): Result;
|
|
151
|
+
decodeFunctionResult(functionFragment: 'debtRatio', data: BytesLike): Result;
|
|
152
|
+
decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result;
|
|
153
|
+
decodeFunctionResult(functionFragment: 'getBillIds', data: BytesLike): Result;
|
|
154
|
+
decodeFunctionResult(functionFragment: 'getBillIdsInRange', data: BytesLike): Result;
|
|
155
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
156
|
+
decodeFunctionResult(functionFragment: 'initializeBill', data: BytesLike): Result;
|
|
157
|
+
decodeFunctionResult(functionFragment: 'lastDecay', data: BytesLike): Result;
|
|
158
|
+
decodeFunctionResult(functionFragment: 'maxPayout', data: BytesLike): Result;
|
|
159
|
+
decodeFunctionResult(functionFragment: 'paySubsidy', data: BytesLike): Result;
|
|
160
|
+
decodeFunctionResult(functionFragment: 'payoutFor', data: BytesLike): Result;
|
|
161
|
+
decodeFunctionResult(functionFragment: 'payoutSinceLastSubsidy', data: BytesLike): Result;
|
|
162
|
+
decodeFunctionResult(functionFragment: 'payoutToken', data: BytesLike): Result;
|
|
163
|
+
decodeFunctionResult(functionFragment: 'pendingPayoutFor', data: BytesLike): Result;
|
|
164
|
+
decodeFunctionResult(functionFragment: 'percentVestedFor', data: BytesLike): Result;
|
|
165
|
+
decodeFunctionResult(functionFragment: 'policy', data: BytesLike): Result;
|
|
166
|
+
decodeFunctionResult(functionFragment: 'principalToken', data: BytesLike): Result;
|
|
167
|
+
decodeFunctionResult(functionFragment: 'pullPolicy', data: BytesLike): Result;
|
|
168
|
+
decodeFunctionResult(functionFragment: 'pushPolicy', data: BytesLike): Result;
|
|
169
|
+
decodeFunctionResult(functionFragment: 'redeem', data: BytesLike): Result;
|
|
170
|
+
decodeFunctionResult(functionFragment: 'renouncePolicy', data: BytesLike): Result;
|
|
171
|
+
decodeFunctionResult(functionFragment: 'setAdjustment', data: BytesLike): Result;
|
|
172
|
+
decodeFunctionResult(functionFragment: 'setBillTerms', data: BytesLike): Result;
|
|
173
|
+
decodeFunctionResult(functionFragment: 'subsidyRouter', data: BytesLike): Result;
|
|
174
|
+
decodeFunctionResult(functionFragment: 'terms', data: BytesLike): Result;
|
|
175
|
+
decodeFunctionResult(functionFragment: 'totalDebt', data: BytesLike): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: 'totalPayoutGiven', data: BytesLike): Result;
|
|
177
|
+
decodeFunctionResult(functionFragment: 'totalPrincipalBilled', data: BytesLike): Result;
|
|
178
|
+
decodeFunctionResult(functionFragment: 'treasury', data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: 'trueBillPrice', data: BytesLike): Result;
|
|
180
|
+
decodeFunctionResult(functionFragment: 'userBillIds', data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: 'maxTotalPayout', data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: 'getMaxTotalPayout', data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: 'pendingPayout', data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: 'pendingVesting', data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: 'getBillInfo', data: BytesLike): Result;
|
|
186
|
+
decodeFunctionResult(functionFragment: 'claimablePayout', data: BytesLike): Result;
|
|
203
187
|
events: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
188
|
+
'BillCreated(uint256,uint256,uint256,uint256)': EventFragment;
|
|
189
|
+
'BillPriceChanged(uint256,uint256)': EventFragment;
|
|
190
|
+
'BillRedeemed(uint256,address,uint256,uint256)': EventFragment;
|
|
191
|
+
'ControlVariableAdjustment(uint256,uint256,uint256,bool)': EventFragment;
|
|
192
|
+
'PolicyTransferred(address,address)': EventFragment;
|
|
193
|
+
'SetAdjustment(bool,uint256,uint256,uint256)': EventFragment;
|
|
194
|
+
'TreasuryChanged(address)': EventFragment;
|
|
211
195
|
};
|
|
212
|
-
getEvent(nameOrSignatureOrTopic:
|
|
213
|
-
getEvent(nameOrSignatureOrTopic:
|
|
214
|
-
getEvent(nameOrSignatureOrTopic:
|
|
215
|
-
getEvent(nameOrSignatureOrTopic:
|
|
216
|
-
getEvent(nameOrSignatureOrTopic:
|
|
217
|
-
getEvent(nameOrSignatureOrTopic:
|
|
218
|
-
getEvent(nameOrSignatureOrTopic:
|
|
196
|
+
getEvent(nameOrSignatureOrTopic: 'BillCreated'): EventFragment;
|
|
197
|
+
getEvent(nameOrSignatureOrTopic: 'BillPriceChanged'): EventFragment;
|
|
198
|
+
getEvent(nameOrSignatureOrTopic: 'BillRedeemed'): EventFragment;
|
|
199
|
+
getEvent(nameOrSignatureOrTopic: 'ControlVariableAdjustment'): EventFragment;
|
|
200
|
+
getEvent(nameOrSignatureOrTopic: 'PolicyTransferred'): EventFragment;
|
|
201
|
+
getEvent(nameOrSignatureOrTopic: 'SetAdjustment'): EventFragment;
|
|
202
|
+
getEvent(nameOrSignatureOrTopic: 'TreasuryChanged'): EventFragment;
|
|
219
203
|
}
|
|
220
204
|
export interface BillCreatedEventObject {
|
|
221
205
|
deposit: BigNumber;
|
|
@@ -223,21 +207,13 @@ export interface BillCreatedEventObject {
|
|
|
223
207
|
expires: BigNumber;
|
|
224
208
|
billId: BigNumber;
|
|
225
209
|
}
|
|
226
|
-
export type BillCreatedEvent = TypedEvent<[
|
|
227
|
-
BigNumber,
|
|
228
|
-
BigNumber,
|
|
229
|
-
BigNumber,
|
|
230
|
-
BigNumber
|
|
231
|
-
], BillCreatedEventObject>;
|
|
210
|
+
export type BillCreatedEvent = TypedEvent<[BigNumber, BigNumber, BigNumber, BigNumber], BillCreatedEventObject>;
|
|
232
211
|
export type BillCreatedEventFilter = TypedEventFilter<BillCreatedEvent>;
|
|
233
212
|
export interface BillPriceChangedEventObject {
|
|
234
213
|
internalPrice: BigNumber;
|
|
235
214
|
debtRatio: BigNumber;
|
|
236
215
|
}
|
|
237
|
-
export type BillPriceChangedEvent = TypedEvent<[
|
|
238
|
-
BigNumber,
|
|
239
|
-
BigNumber
|
|
240
|
-
], BillPriceChangedEventObject>;
|
|
216
|
+
export type BillPriceChangedEvent = TypedEvent<[BigNumber, BigNumber], BillPriceChangedEventObject>;
|
|
241
217
|
export type BillPriceChangedEventFilter = TypedEventFilter<BillPriceChangedEvent>;
|
|
242
218
|
export interface BillRedeemedEventObject {
|
|
243
219
|
billId: BigNumber;
|
|
@@ -245,12 +221,7 @@ export interface BillRedeemedEventObject {
|
|
|
245
221
|
payout: BigNumber;
|
|
246
222
|
remaining: BigNumber;
|
|
247
223
|
}
|
|
248
|
-
export type BillRedeemedEvent = TypedEvent<[
|
|
249
|
-
BigNumber,
|
|
250
|
-
string,
|
|
251
|
-
BigNumber,
|
|
252
|
-
BigNumber
|
|
253
|
-
], BillRedeemedEventObject>;
|
|
224
|
+
export type BillRedeemedEvent = TypedEvent<[BigNumber, string, BigNumber, BigNumber], BillRedeemedEventObject>;
|
|
254
225
|
export type BillRedeemedEventFilter = TypedEventFilter<BillRedeemedEvent>;
|
|
255
226
|
export interface ControlVariableAdjustmentEventObject {
|
|
256
227
|
initialBCV: BigNumber;
|
|
@@ -269,10 +240,7 @@ export interface PolicyTransferredEventObject {
|
|
|
269
240
|
previousOwner: string;
|
|
270
241
|
newOwner: string;
|
|
271
242
|
}
|
|
272
|
-
export type PolicyTransferredEvent = TypedEvent<[
|
|
273
|
-
string,
|
|
274
|
-
string
|
|
275
|
-
], PolicyTransferredEventObject>;
|
|
243
|
+
export type PolicyTransferredEvent = TypedEvent<[string, string], PolicyTransferredEventObject>;
|
|
276
244
|
export type PolicyTransferredEventFilter = TypedEventFilter<PolicyTransferredEvent>;
|
|
277
245
|
export interface SetAdjustmentEventObject {
|
|
278
246
|
addition: boolean;
|
|
@@ -280,19 +248,12 @@ export interface SetAdjustmentEventObject {
|
|
|
280
248
|
target: BigNumber;
|
|
281
249
|
buffer: BigNumber;
|
|
282
250
|
}
|
|
283
|
-
export type SetAdjustmentEvent = TypedEvent<[
|
|
284
|
-
boolean,
|
|
285
|
-
BigNumber,
|
|
286
|
-
BigNumber,
|
|
287
|
-
BigNumber
|
|
288
|
-
], SetAdjustmentEventObject>;
|
|
251
|
+
export type SetAdjustmentEvent = TypedEvent<[boolean, BigNumber, BigNumber, BigNumber], SetAdjustmentEventObject>;
|
|
289
252
|
export type SetAdjustmentEventFilter = TypedEventFilter<SetAdjustmentEvent>;
|
|
290
253
|
export interface TreasuryChangedEventObject {
|
|
291
254
|
newTreasury: string;
|
|
292
255
|
}
|
|
293
|
-
export type TreasuryChangedEvent = TypedEvent<[
|
|
294
|
-
string
|
|
295
|
-
], TreasuryChangedEventObject>;
|
|
256
|
+
export type TreasuryChangedEvent = TypedEvent<[string], TreasuryChangedEventObject>;
|
|
296
257
|
export type TreasuryChangedEventFilter = TypedEventFilter<TreasuryChangedEvent>;
|
|
297
258
|
export interface Bond extends BaseContract {
|
|
298
259
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
@@ -371,10 +332,7 @@ export interface Bond extends BaseContract {
|
|
|
371
332
|
paySubsidy(overrides?: Overrides & {
|
|
372
333
|
from?: PromiseOrValue<string>;
|
|
373
334
|
}): Promise<ContractTransaction>;
|
|
374
|
-
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
375
|
-
BigNumber,
|
|
376
|
-
BigNumber
|
|
377
|
-
] & {
|
|
335
|
+
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
|
|
378
336
|
_payout: BigNumber;
|
|
379
337
|
_fee: BigNumber;
|
|
380
338
|
}>;
|
|
@@ -592,10 +550,7 @@ export interface Bond extends BaseContract {
|
|
|
592
550
|
lastDecay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
593
551
|
maxPayout(overrides?: CallOverrides): Promise<BigNumber>;
|
|
594
552
|
paySubsidy(overrides?: CallOverrides): Promise<BigNumber>;
|
|
595
|
-
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
596
|
-
BigNumber,
|
|
597
|
-
BigNumber
|
|
598
|
-
] & {
|
|
553
|
+
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
|
|
599
554
|
_payout: BigNumber;
|
|
600
555
|
_fee: BigNumber;
|
|
601
556
|
}>;
|
|
@@ -639,19 +594,19 @@ export interface Bond extends BaseContract {
|
|
|
639
594
|
claimablePayout(_billId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
640
595
|
};
|
|
641
596
|
filters: {
|
|
642
|
-
|
|
597
|
+
'BillCreated(uint256,uint256,uint256,uint256)'(deposit?: null, payout?: null, expires?: null, billId?: PromiseOrValue<BigNumberish> | null): BillCreatedEventFilter;
|
|
643
598
|
BillCreated(deposit?: null, payout?: null, expires?: null, billId?: PromiseOrValue<BigNumberish> | null): BillCreatedEventFilter;
|
|
644
|
-
|
|
599
|
+
'BillPriceChanged(uint256,uint256)'(internalPrice?: null, debtRatio?: null): BillPriceChangedEventFilter;
|
|
645
600
|
BillPriceChanged(internalPrice?: null, debtRatio?: null): BillPriceChangedEventFilter;
|
|
646
|
-
|
|
601
|
+
'BillRedeemed(uint256,address,uint256,uint256)'(billId?: null, recipient?: null, payout?: null, remaining?: null): BillRedeemedEventFilter;
|
|
647
602
|
BillRedeemed(billId?: null, recipient?: null, payout?: null, remaining?: null): BillRedeemedEventFilter;
|
|
648
|
-
|
|
603
|
+
'ControlVariableAdjustment(uint256,uint256,uint256,bool)'(initialBCV?: null, newBCV?: null, adjustment?: null, addition?: null): ControlVariableAdjustmentEventFilter;
|
|
649
604
|
ControlVariableAdjustment(initialBCV?: null, newBCV?: null, adjustment?: null, addition?: null): ControlVariableAdjustmentEventFilter;
|
|
650
|
-
|
|
605
|
+
'PolicyTransferred(address,address)'(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): PolicyTransferredEventFilter;
|
|
651
606
|
PolicyTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): PolicyTransferredEventFilter;
|
|
652
|
-
|
|
607
|
+
'SetAdjustment(bool,uint256,uint256,uint256)'(addition?: null, increment?: null, target?: null, buffer?: null): SetAdjustmentEventFilter;
|
|
653
608
|
SetAdjustment(addition?: null, increment?: null, target?: null, buffer?: null): SetAdjustmentEventFilter;
|
|
654
|
-
|
|
609
|
+
'TreasuryChanged(address)'(newTreasury?: null): TreasuryChangedEventFilter;
|
|
655
610
|
TreasuryChanged(newTreasury?: null): TreasuryChangedEventFilter;
|
|
656
611
|
};
|
|
657
612
|
estimateGas: {
|