@ape.swap/bonds-sdk 1.0.274 → 1.0.276
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/BondModal/BondModal.js +76 -1
- package/dist/components/YourBonds/YourBonds.d.ts +2 -0
- package/dist/components/YourBonds/YourBonds.js +45 -33
- package/dist/config/abi/types/factories/index.d.ts +0 -4
- package/dist/config/abi/types/factories/index.js +0 -4
- package/dist/config/abi/types/index.d.ts +0 -8
- package/dist/config/abi/types/index.js +0 -4
- package/dist/enum/abis.d.ts +80 -0
- package/dist/enum/abis.js +1 -0
- package/dist/utils/convertToTokenValue.d.ts +4 -0
- package/dist/utils/convertToTokenValue.js +24 -0
- package/package.json +1 -1
- package/dist/config/abi/types/Eip_2612.d.ts +0 -50
- package/dist/config/abi/types/Eip_2612.js +0 -1
- package/dist/config/abi/types/MasterChefV2.d.ts +0 -876
- package/dist/config/abi/types/MasterChefV2.js +0 -1
- package/dist/config/abi/types/Masterchef.d.ts +0 -502
- package/dist/config/abi/types/Masterchef.js +0 -1
- package/dist/config/abi/types/MiniApeV2.d.ts +0 -595
- package/dist/config/abi/types/MiniApeV2.js +0 -1
- package/dist/config/abi/types/factories/Eip_2612__factory.d.ts +0 -33
- package/dist/config/abi/types/factories/Eip_2612__factory.js +0 -52
- package/dist/config/abi/types/factories/MasterChefV2__factory.d.ts +0 -835
- package/dist/config/abi/types/factories/MasterChefV2__factory.js +0 -1078
- package/dist/config/abi/types/factories/Masterchef__factory.d.ts +0 -457
- package/dist/config/abi/types/factories/Masterchef__factory.js +0 -598
- package/dist/config/abi/types/factories/MiniApeV2__factory.d.ts +0 -624
- package/dist/config/abi/types/factories/MiniApeV2__factory.js +0 -809
- package/dist/config/abi/types/v3/common.d.ts +0 -22
- package/dist/config/abi/types/v3/common.js +0 -1
- package/dist/config/abi/types/v3/factories/index.d.ts +0 -4
- package/dist/config/abi/types/v3/factories/index.js +0 -7
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/SwapRouter02__factory.d.ts +0 -840
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/SwapRouter02__factory.js +0 -1123
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/V2SwapRouter__factory.d.ts +0 -277
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/V2SwapRouter__factory.js +0 -365
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/V3SwapRouter__factory.d.ts +0 -411
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/V3SwapRouter__factory.js +0 -539
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/index.d.ts +0 -5
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/index.js +0 -8
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IApproveAndCall__factory.d.ts +0 -162
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IApproveAndCall__factory.js +0 -221
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IImmutableState__factory.d.ts +0 -28
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IImmutableState__factory.js +0 -45
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IMixedRouteQuoterV1__factory.d.ts +0 -112
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IMixedRouteQuoterV1__factory.js +0 -155
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IOracleSlippage__factory.d.ts +0 -48
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IOracleSlippage__factory.js +0 -70
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IQuoterV2__factory.d.ts +0 -162
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IQuoterV2__factory.js +0 -219
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IQuoter__factory.d.ts +0 -104
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IQuoter__factory.js +0 -145
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/ISwapRouter02__factory.d.ts +0 -550
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/ISwapRouter02__factory.js +0 -725
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/ITokenValidator__factory.d.ts +0 -52
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/ITokenValidator__factory.js +0 -77
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IV2SwapRouter__factory.d.ts +0 -60
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IV2SwapRouter__factory.js +0 -87
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IV3SwapRouter__factory.d.ts +0 -174
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IV3SwapRouter__factory.js +0 -236
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IWETH__factory.d.ts +0 -42
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/IWETH__factory.js +0 -63
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/index.d.ts +0 -11
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/interfaces/index.js +0 -14
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/MixedRouteQuoterV1__factory.d.ts +0 -189
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/MixedRouteQuoterV1__factory.js +0 -281
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/QuoterV2__factory.d.ts +0 -225
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/QuoterV2__factory.js +0 -327
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/Quoter__factory.d.ts +0 -167
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/Quoter__factory.js +0 -253
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/TokenValidator__factory.d.ts +0 -119
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/TokenValidator__factory.js +0 -190
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/index.d.ts +0 -4
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/contracts/lens/index.js +0 -7
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/swap-router-contracts/artifacts/index.js +0 -4
- package/dist/config/abi/types/v3/factories/swap-router-contracts/index.d.ts +0 -2
- package/dist/config/abi/types/v3/factories/swap-router-contracts/index.js +0 -5
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/UniswapV3Factory__factory.d.ts +0 -203
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/UniswapV3Factory__factory.js +0 -296
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/UniswapV3Pool__factory.d.ts +0 -794
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/UniswapV3Pool__factory.js +0 -1048
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/index.d.ts +0 -3
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/index.js +0 -6
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IERC20Minimal__factory.d.ts +0 -138
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IERC20Minimal__factory.js +0 -189
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IUniswapV3Factory__factory.d.ts +0 -160
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IUniswapV3Factory__factory.js +0 -215
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IUniswapV3PoolDeployer__factory.d.ts +0 -34
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IUniswapV3PoolDeployer__factory.js +0 -52
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool__factory.d.ts +0 -777
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool__factory.js +0 -1000
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3FlashCallback__factory.d.ts +0 -26
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3FlashCallback__factory.js +0 -42
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3MintCallback__factory.d.ts +0 -26
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3MintCallback__factory.js +0 -42
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.d.ts +0 -26
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.js +0 -42
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/index.d.ts +0 -3
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/callback/index.js +0 -6
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/index.d.ts +0 -6
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/index.js +0 -9
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolActions__factory.d.ts +0 -178
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolActions__factory.js +0 -239
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory.d.ts +0 -52
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory.js +0 -77
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolEvents__factory.d.ts +0 -273
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolEvents__factory.js +0 -346
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory.d.ts +0 -68
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory.js +0 -97
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory.d.ts +0 -48
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory.js +0 -71
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolState__factory.d.ts +0 -198
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolState__factory.js +0 -265
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/index.d.ts +0 -6
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/contracts/interfaces/pool/index.js +0 -9
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-core/artifacts/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-core/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-core/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/NonfungiblePositionManager__factory.d.ts +0 -967
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/NonfungiblePositionManager__factory.js +0 -1281
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/NonfungibleTokenPositionDescriptor__factory.d.ts +0 -128
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/NonfungibleTokenPositionDescriptor__factory.js +0 -206
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/SwapRouter__factory.d.ts +0 -458
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/SwapRouter__factory.js +0 -625
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/V3Migrator__factory.d.ts +0 -293
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/V3Migrator__factory.js +0 -411
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/examples/PairFlash__factory.d.ts +0 -165
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/examples/PairFlash__factory.js +0 -247
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/examples/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/examples/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/index.d.ts +0 -8
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/index.js +0 -11
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IERC20Metadata__factory.d.ts +0 -178
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IERC20Metadata__factory.js +0 -241
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IERC721Permit__factory.d.ts +0 -278
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IERC721Permit__factory.js +0 -368
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IMulticall__factory.d.ts +0 -22
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IMulticall__factory.js +0 -38
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/INonfungiblePositionManager__factory.d.ts +0 -773
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/INonfungiblePositionManager__factory.js +0 -1006
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/INonfungibleTokenPositionDescriptor__factory.d.ts +0 -26
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/INonfungibleTokenPositionDescriptor__factory.js +0 -43
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPeripheryImmutableState__factory.d.ts +0 -28
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPeripheryImmutableState__factory.js +0 -45
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPeripheryPaymentsWithFee__factory.d.ts +0 -94
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPeripheryPaymentsWithFee__factory.js +0 -128
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPeripheryPayments__factory.d.ts +0 -46
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPeripheryPayments__factory.js +0 -67
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPoolInitializer__factory.d.ts +0 -34
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IPoolInitializer__factory.js +0 -53
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IQuoterV2__factory.d.ts +0 -162
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IQuoterV2__factory.js +0 -219
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IQuoter__factory.d.ts +0 -104
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IQuoter__factory.js +0 -145
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/ISelfPermit__factory.d.ts +0 -128
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/ISelfPermit__factory.js +0 -171
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/ISwapRouter__factory.d.ts +0 -190
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/ISwapRouter__factory.js +0 -256
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/ITickLens__factory.d.ts +0 -39
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/ITickLens__factory.js +0 -60
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IV3Migrator__factory.d.ts +0 -231
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/IV3Migrator__factory.js +0 -304
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/external/IERC1271__factory.d.ts +0 -26
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/external/IERC1271__factory.js +0 -43
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/external/IWETH9__factory.d.ts +0 -164
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/external/IWETH9__factory.js +0 -222
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/external/index.d.ts +0 -2
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/external/index.js +0 -5
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/index.d.ts +0 -16
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/interfaces/index.js +0 -19
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/QuoterV2__factory.d.ts +0 -225
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/QuoterV2__factory.js +0 -327
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/Quoter__factory.d.ts +0 -167
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/Quoter__factory.js +0 -253
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/TickLens__factory.d.ts +0 -52
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/TickLens__factory.js +0 -103
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/UniswapInterfaceMulticall__factory.d.ts +0 -89
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/UniswapInterfaceMulticall__factory.js +0 -152
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/index.d.ts +0 -4
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/lens/index.js +0 -7
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/libraries/NFTDescriptor__factory.d.ts +0 -92
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/libraries/NFTDescriptor__factory.js +0 -153
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/libraries/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/contracts/libraries/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-periphery/artifacts/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-periphery/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-periphery/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/UniswapV3Staker__factory.d.ts +0 -566
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/UniswapV3Staker__factory.js +0 -766
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/index.d.ts +0 -2
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/index.js +0 -5
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/interfaces/IUniswapV3Staker__factory.d.ts +0 -533
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/interfaces/IUniswapV3Staker__factory.js +0 -697
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/interfaces/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/contracts/interfaces/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-staker/artifacts/index.js +0 -4
- package/dist/config/abi/types/v3/factories/v3-staker/index.d.ts +0 -1
- package/dist/config/abi/types/v3/factories/v3-staker/index.js +0 -4
- package/dist/config/abi/types/v3/index.d.ts +0 -125
- package/dist/config/abi/types/v3/index.js +0 -59
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/SwapRouter02.d.ts +0 -824
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/SwapRouter02.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/V2SwapRouter.d.ts +0 -308
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/V2SwapRouter.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/V3SwapRouter.d.ts +0 -447
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/V3SwapRouter.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/index.d.ts +0 -7
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/index.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IApproveAndCall.d.ts +0 -213
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IApproveAndCall.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IImmutableState.d.ts +0 -50
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IImmutableState.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IMixedRouteQuoterV1.d.ts +0 -138
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IMixedRouteQuoterV1.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IOracleSlippage.d.ts +0 -59
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IOracleSlippage.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IQuoter.d.ts +0 -110
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IQuoter.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IQuoterV2.d.ts +0 -180
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IQuoterV2.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/ISwapRouter02.d.ts +0 -567
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/ISwapRouter02.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/ITokenValidator.d.ts +0 -74
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/ITokenValidator.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IV2SwapRouter.d.ts +0 -76
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IV2SwapRouter.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IV3SwapRouter.d.ts +0 -206
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IV3SwapRouter.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IWETH.d.ts +0 -82
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/IWETH.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/index.d.ts +0 -11
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/interfaces/index.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/MixedRouteQuoterV1.d.ts +0 -168
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/MixedRouteQuoterV1.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/Quoter.d.ts +0 -138
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/Quoter.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/QuoterV2.d.ts +0 -208
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/QuoterV2.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/TokenValidator.d.ts +0 -103
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/TokenValidator.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/index.d.ts +0 -4
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/contracts/lens/index.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/index.d.ts +0 -2
- package/dist/config/abi/types/v3/swap-router-contracts/artifacts/index.js +0 -1
- package/dist/config/abi/types/v3/swap-router-contracts/index.d.ts +0 -4
- package/dist/config/abi/types/v3/swap-router-contracts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/UniswapV3Factory.d.ts +0 -205
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/UniswapV3Factory.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/UniswapV3Pool.d.ts +0 -771
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/UniswapV3Pool.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/index.d.ts +0 -4
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IERC20Minimal.d.ts +0 -134
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IERC20Minimal.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IUniswapV3Factory.d.ts +0 -163
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IUniswapV3Factory.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.d.ts +0 -771
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IUniswapV3PoolDeployer.d.ts +0 -78
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/IUniswapV3PoolDeployer.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3FlashCallback.d.ts +0 -54
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3FlashCallback.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3MintCallback.d.ts +0 -54
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3MintCallback.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3SwapCallback.d.ts +0 -54
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/IUniswapV3SwapCallback.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/index.d.ts +0 -3
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/callback/index.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/index.d.ts +0 -8
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/index.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolActions.d.ts +0 -197
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolActions.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolDerivedState.d.ts +0 -92
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolDerivedState.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolEvents.d.ts +0 -199
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolEvents.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolImmutables.d.ts +0 -82
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolImmutables.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.d.ts +0 -76
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolState.d.ts +0 -289
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/IUniswapV3PoolState.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/index.d.ts +0 -6
- package/dist/config/abi/types/v3/v3-core/artifacts/contracts/interfaces/pool/index.js +0 -1
- package/dist/config/abi/types/v3/v3-core/artifacts/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-core/artifacts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-core/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-core/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/NonfungiblePositionManager.d.ts +0 -873
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/NonfungiblePositionManager.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/NonfungibleTokenPositionDescriptor.d.ts +0 -86
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/NonfungibleTokenPositionDescriptor.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/SwapRouter.d.ts +0 -437
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/SwapRouter.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/V3Migrator.d.ts +0 -249
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/V3Migrator.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/examples/PairFlash.d.ts +0 -174
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/examples/PairFlash.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/examples/index.d.ts +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/examples/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/index.d.ts +0 -12
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IERC20Metadata.d.ts +0 -166
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IERC20Metadata.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IERC721Permit.d.ts +0 -259
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IERC721Permit.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IMulticall.d.ts +0 -50
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IMulticall.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/INonfungiblePositionManager.d.ts +0 -745
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/INonfungiblePositionManager.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/INonfungibleTokenPositionDescriptor.d.ts +0 -42
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/INonfungibleTokenPositionDescriptor.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPeripheryImmutableState.d.ts +0 -50
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPeripheryImmutableState.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPeripheryPayments.d.ts +0 -86
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPeripheryPayments.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPeripheryPaymentsWithFee.d.ts +0 -129
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPeripheryPaymentsWithFee.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPoolInitializer.d.ts +0 -55
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IPoolInitializer.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IQuoter.d.ts +0 -110
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IQuoter.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IQuoterV2.d.ts +0 -180
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IQuoterV2.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/ISelfPermit.d.ts +0 -126
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/ISelfPermit.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/ISwapRouter.d.ts +0 -218
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/ISwapRouter.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/ITickLens.d.ts +0 -58
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/ITickLens.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IV3Migrator.d.ts +0 -225
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/IV3Migrator.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/external/IERC1271.d.ts +0 -44
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/external/IERC1271.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/external/IWETH9.d.ts +0 -174
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/external/IWETH9.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/external/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/external/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/index.d.ts +0 -17
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/interfaces/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/Quoter.d.ts +0 -138
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/Quoter.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/QuoterV2.d.ts +0 -208
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/QuoterV2.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/TickLens.d.ts +0 -58
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/TickLens.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/UniswapInterfaceMulticall.d.ts +0 -98
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/UniswapInterfaceMulticall.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/index.d.ts +0 -4
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/lens/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/libraries/NFTDescriptor.d.ts +0 -91
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/libraries/NFTDescriptor.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/libraries/index.d.ts +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/contracts/libraries/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/artifacts/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-periphery/artifacts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-periphery/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-periphery/index.js +0 -1
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/UniswapV3Staker.d.ts +0 -467
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/UniswapV3Staker.js +0 -1
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/index.d.ts +0 -3
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/interfaces/IUniswapV3Staker.d.ts +0 -465
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/interfaces/IUniswapV3Staker.js +0 -1
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/interfaces/index.d.ts +0 -1
- package/dist/config/abi/types/v3/v3-staker/artifacts/contracts/interfaces/index.js +0 -1
- package/dist/config/abi/types/v3/v3-staker/artifacts/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-staker/artifacts/index.js +0 -1
- package/dist/config/abi/types/v3/v3-staker/index.d.ts +0 -2
- package/dist/config/abi/types/v3/v3-staker/index.js +0 -1
- /package/dist/scss/{BondModal.scss → bondmodal.scss} +0 -0
- /package/dist/scss/{Bonds.scss → bonds.scss} +0 -0
- /package/dist/scss/{BondSingle.scss → bondsingle.scss} +0 -0
|
@@ -9,6 +9,42 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
12
48
|
import { jsxs as _jsxs, jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
13
49
|
/** @jsxImportSource theme-ui */
|
|
14
50
|
import React, { useEffect, useState } from 'react';
|
|
@@ -26,6 +62,9 @@ import { TooltipBubble, Button, Svg, ListTag } from '../uikit-sdk';
|
|
|
26
62
|
import { TooltipText } from '../../enum/tooltips';
|
|
27
63
|
import { formatNumberSI } from '../../utils/formatNumber';
|
|
28
64
|
import BondTokenImage from '../uikit-sdk/BondTokenImage';
|
|
65
|
+
import { BondAbi } from '../../enum/abis';
|
|
66
|
+
import { ethers } from 'ethers';
|
|
67
|
+
import { adjustDecimals } from "../../utils/convertToTokenValue";
|
|
29
68
|
var BondModal = function (_a) {
|
|
30
69
|
var isOpen = _a.isOpen, onClose = _a.onClose, bondAddress = _a.bondAddress;
|
|
31
70
|
if (!isOpen)
|
|
@@ -123,6 +162,42 @@ var BondModal = function (_a) {
|
|
|
123
162
|
var getPremium = premium(bond);
|
|
124
163
|
return parseFloat(getPremium) < 0 ? 'premium-negative' : 'premium-positive';
|
|
125
164
|
};
|
|
165
|
+
var handleBuy = function (bond) { return __awaiter(void 0, void 0, void 0, function () {
|
|
166
|
+
var provider, signer, bondContract, maxPrice, amount, tx, error_1;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0:
|
|
170
|
+
console.log('handle buy clicked');
|
|
171
|
+
if (!window.ethereum) {
|
|
172
|
+
console.error('No Ethereum provider found');
|
|
173
|
+
alert('No Ethereum provider found');
|
|
174
|
+
return [2 /*return*/];
|
|
175
|
+
}
|
|
176
|
+
provider = new ethers.providers.Web3Provider(window.ethereum);
|
|
177
|
+
signer = provider.getSigner();
|
|
178
|
+
bondContract = new ethers.Contract(bond.billAddress, BondAbi, signer);
|
|
179
|
+
_a.label = 1;
|
|
180
|
+
case 1:
|
|
181
|
+
_a.trys.push([1, 4, , 5]);
|
|
182
|
+
maxPrice = new BigNumber(bondData[0].trueBillPrice).times(102).div(100);
|
|
183
|
+
amount = adjustDecimals(inputValue);
|
|
184
|
+
return [4 /*yield*/, bondContract.deposit(amount, maxPrice, account)];
|
|
185
|
+
case 2:
|
|
186
|
+
tx = _a.sent();
|
|
187
|
+
return [4 /*yield*/, tx.wait()];
|
|
188
|
+
case 3:
|
|
189
|
+
_a.sent();
|
|
190
|
+
alert('Buy Successful');
|
|
191
|
+
return [3 /*break*/, 5];
|
|
192
|
+
case 4:
|
|
193
|
+
error_1 = _a.sent();
|
|
194
|
+
console.error('Approval error', error_1);
|
|
195
|
+
alert('Approval Failed');
|
|
196
|
+
return [3 /*break*/, 5];
|
|
197
|
+
case 5: return [2 /*return*/];
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}); };
|
|
126
201
|
return (_jsx(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: bondData.map(function (bond) {
|
|
127
202
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
128
203
|
return (_jsx(React.Fragment, { children: _jsx(Flex, __assign({ className: "modal modal-backdrop" }, { children: _jsxs(Flex, __assign({ className: "modal modal-content" }, { children: [isActive && account && (_jsxs("p", { children: ["Wallet Address: ", account] })), _jsx(Flex, __assign({ className: "modal modal-header" }, { children: _jsx(Flex, __assign({ className: "svg-close", onClick: onClose }, { children: _jsx(Svg, { icon: "close" }) })) })), _jsxs(Flex, __assign({ className: "modal-container table-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-container title-container" }, { children: [_jsx(Flex, __assign({ className: "title-container bondicon" }, { children: _jsx(BondTokenImage, { symbol: (_a = bond.showcaseTokenName) !== null && _a !== void 0 ? _a : bond.payoutTokenName, size: 50 }) })), _jsx(Flex, __assign({ className: "title-container bondname" }, { children: bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName })), _jsxs(Flex, __assign({ className: "title-container price-container" }, { children: [_jsxs(Flex, __assign({ className: "price-container price" }, { children: ["$", earnTokenPrice(bond)] })), _jsxs(Flex, __assign({ className: "price-container discounted" }, { children: ["$", discountEarnTokenPrice(bond)] }))] })), _jsx(Flex, __assign({ className: "title-container tokentags" }, { children: _jsx(ListTag, { text: (_b = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _b === void 0 ? void 0 : _b[0], variant: ((_c = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _c === void 0 ? void 0 : _c[0]) === 'Cex Fund' ? 'cex_fund' : 'liquidity' }) }))] })), _jsx(Flex, __assign({ className: "modal-container description-container" }, { children: bond === null || bond === void 0 ? void 0 : bond.shortDescription })), _jsxs(Flex, __assign({ className: "modal-container blocks-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-block column-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)) }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Discount", _jsx(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), "".concat((_d = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _d === void 0 ? void 0 : _d.toFixed(2), "%")] })), _jsxs(Flex, __assign({ className: "modal-block column-arr" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["ARR", _jsx(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), "".concat(((((_e = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _e !== void 0 ? _e : 0) * 365) / vestingTime((_f = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _f !== void 0 ? _f : 0).days).toFixed(2), "%")] })), _jsxs(Flex, __assign({ className: "modal-block column-term" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Terms", _jsx(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), vestingTime((_g = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _g !== void 0 ? _g : 0).days ? "".concat(vestingTime((_h = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _h !== void 0 ? _h : 0).days, " D") : '-'] })), _jsxs(Flex, __assign({ className: "modal-block column-maxbuy" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Max Buy", _jsx(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.MaxBuy(bond.payoutTokenName) }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), (_j = parseFloat(maxBuy(bond).toFixed(0))) === null || _j === void 0 ? void 0 : _j.toLocaleString('en-US')] }))] })), _jsxs(Flex, __assign({ className: "modal-container text-container" }, { children: [_jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsx(Flex, __assign({ className: "row-container spend" }, { children: "You spend:" })), _jsxs(Flex, __assign({ className: "row-container spend-val" }, { children: [youSpend, " ", bond.principalTokenName, " = $ ", formatUSDNumber(youSpendUSD(bond))] }))] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs(Flex, __assign({ className: "row-container premium" }, { children: ["Premium:", _jsx(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "row-container premium-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), _jsxs(Flex, __assign({ className: "row-container premium-val ".concat(getPremiumColor(bond)) }, { children: ["$ ", premium(bond)] }))] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs(Flex, __assign({ className: "row-container get" }, { children: ["You get (over ", vestingTime((_k = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _k !== void 0 ? _k : 0).days, " days):"] })), _jsxs(Flex, __assign({ className: "row-container get-val" }, { children: [youGet(bond), " ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName, " = $ ", formatUSDNumber(youGetUSD(bond))] }))] }))] })), _jsxs(Flex, __assign({ className: "modal-container input-container" }, { children: [_jsx(Flex, __assign({ className: "input-container input" }, { children: _jsx(Input, { placeholder: "0.0", value: inputValue, pattern: "^[0-9]*[.,]?[0-9]*$", onChange: handleInputChange, onInput: function (v) {
|
|
@@ -139,7 +214,7 @@ var BondModal = function (_a) {
|
|
|
139
214
|
!!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
|
|
140
215
|
? v.currentTarget.value
|
|
141
216
|
: v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
|
|
142
|
-
} }) })), _jsx(Flex, __assign({ className: "input-container token" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] })), _jsxs(Flex, __assign({ className: "modal-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName] }) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children: _jsxs(Button, { children: ["Buy ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName] }) }))] }))] }))] })) })) }, bond.billAddress));
|
|
217
|
+
} }) })), _jsx(Flex, __assign({ className: "input-container token" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] })), _jsxs(Flex, __assign({ className: "modal-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName] }) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children: _jsxs(Button, __assign({ onClick: function () { return handleBuy(bond); } }, { children: ["Buy ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName] })) }))] }))] }))] })) })) }, bond.billAddress));
|
|
143
218
|
}) })));
|
|
144
219
|
};
|
|
145
220
|
export default BondModal;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource theme-ui */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { BondsDataResponse } from '../../types/bonds';
|
|
3
4
|
import '../../scss/Bonds.scss';
|
|
4
5
|
declare global {
|
|
5
6
|
interface Window {
|
|
@@ -20,6 +21,7 @@ export interface UserBill {
|
|
|
20
21
|
pendingRewards: string;
|
|
21
22
|
billNftAddress: string;
|
|
22
23
|
nftData?: UserBillNft;
|
|
24
|
+
bond: BondsDataResponse;
|
|
23
25
|
}
|
|
24
26
|
export interface UserBillNft {
|
|
25
27
|
image: string;
|
|
@@ -66,7 +66,6 @@ import { TooltipBubble, Svg } from '../uikit-sdk';
|
|
|
66
66
|
import Tooltip from '../Tooltip/Tooltip';
|
|
67
67
|
import { BLOCK_EXPLORER, MAINNET_CHAINS } from '../../config/constants/chains';
|
|
68
68
|
import TokenInfoAndName from '../TokenInfoAndName';
|
|
69
|
-
import useRefresh from '../../hooks/useRefresh';
|
|
70
69
|
import { ACF_TO_ABOND } from '../../config/constants/addresses';
|
|
71
70
|
import multicall from '../../utils/multicall';
|
|
72
71
|
import billAbi from '../../config/abi/bond.json';
|
|
@@ -191,18 +190,18 @@ var YourBonds = function (_a) {
|
|
|
191
190
|
var explorerLink = BLOCK_EXPLORER[selectedChain];
|
|
192
191
|
return "".concat(explorerLink, "/address/").concat(bond === null || bond === void 0 ? void 0 : bond.billAddress);
|
|
193
192
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
193
|
+
// const usePollUserBills = () => {
|
|
194
|
+
// const { slowRefresh } = useRefresh()
|
|
195
|
+
// // const dispatch = useAppDispatch()
|
|
196
|
+
// const { account, isActive } = useWeb3React();
|
|
197
|
+
// useEffect(() => {
|
|
198
|
+
// if (account) {
|
|
199
|
+
// MAINNET_CHAINS.map((chain) => fetchUserOwnedBillsDataAsync(chain as number, account))
|
|
200
|
+
// }
|
|
201
|
+
// }, [account, slowRefresh])
|
|
202
|
+
// }
|
|
204
203
|
var fetchUserOwnedBillsDataAsync = function (chainId, account) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
-
var bonds, userOwnedBills_1, mapUserOwnedBills_1,
|
|
204
|
+
var bonds, userOwnedBills_1, mapUserOwnedBills_1, userOwnedBillsData_1, error_2;
|
|
206
205
|
return __generator(this, function (_a) {
|
|
207
206
|
switch (_a.label) {
|
|
208
207
|
case 0:
|
|
@@ -219,13 +218,11 @@ var YourBonds = function (_a) {
|
|
|
219
218
|
mapUserOwnedBills_1 = bonds.map(function (bill) {
|
|
220
219
|
return userOwnedBills_1.filter(function (b) { return b.address.toLowerCase() === bill.billAddress.toLowerCase(); });
|
|
221
220
|
});
|
|
222
|
-
|
|
221
|
+
userOwnedBillsData_1 = bonds.map(function (bill, i) { return ({
|
|
223
222
|
index: bill.index,
|
|
224
223
|
userOwnedBills: mapUserOwnedBills_1[i],
|
|
225
224
|
}); });
|
|
226
|
-
|
|
227
|
-
console.log(userOwnedBillsData);
|
|
228
|
-
return [2 /*return*/, Promise.resolve(userOwnedBillsData)];
|
|
225
|
+
return [2 /*return*/, Promise.resolve(userOwnedBillsData_1)];
|
|
229
226
|
case 2:
|
|
230
227
|
error_2 = _a.sent();
|
|
231
228
|
console.error('Error fetching user owned bills data:', error_2);
|
|
@@ -234,19 +231,28 @@ var YourBonds = function (_a) {
|
|
|
234
231
|
}
|
|
235
232
|
});
|
|
236
233
|
}); };
|
|
234
|
+
var _h = useState([]), userOwnedBillsData = _h[0], setUserOwnedBillsData = _h[1];
|
|
237
235
|
useEffect(function () {
|
|
238
236
|
var fetchData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
|
-
var results;
|
|
237
|
+
var results, error_3;
|
|
240
238
|
return __generator(this, function (_a) {
|
|
241
239
|
switch (_a.label) {
|
|
242
240
|
case 0:
|
|
243
|
-
if (!account) return [3 /*break*/,
|
|
244
|
-
|
|
241
|
+
if (!account) return [3 /*break*/, 4];
|
|
242
|
+
_a.label = 1;
|
|
245
243
|
case 1:
|
|
244
|
+
_a.trys.push([1, 3, , 4]);
|
|
245
|
+
return [4 /*yield*/, Promise.all(MAINNET_CHAINS.map(function (chain) { return fetchUserOwnedBillsDataAsync(chain, account); }))];
|
|
246
|
+
case 2:
|
|
246
247
|
results = _a.sent();
|
|
248
|
+
setUserOwnedBillsData(results);
|
|
247
249
|
console.log('User owned bills data:', results);
|
|
248
|
-
|
|
249
|
-
case
|
|
250
|
+
return [3 /*break*/, 4];
|
|
251
|
+
case 3:
|
|
252
|
+
error_3 = _a.sent();
|
|
253
|
+
console.error('Error fetching user owned bills data:', error_3);
|
|
254
|
+
return [3 /*break*/, 4];
|
|
255
|
+
case 4: return [2 /*return*/];
|
|
250
256
|
}
|
|
251
257
|
});
|
|
252
258
|
}); };
|
|
@@ -276,12 +282,14 @@ var YourBonds = function (_a) {
|
|
|
276
282
|
address: bonds[index].billAddress,
|
|
277
283
|
name: bonds[index].billVersion !== BillVersion.V1 ? 'getBillInfo' : 'billInfo',
|
|
278
284
|
params: [id],
|
|
285
|
+
bond: bonds[index]
|
|
279
286
|
}),
|
|
280
287
|
billDataCalls.push({ address: bonds[index].billAddress, name: 'billNft' }),
|
|
281
288
|
billsPendingRewardCall.push({
|
|
282
289
|
address: bonds[index].billAddress,
|
|
283
290
|
name: bonds[index].billVersion !== BillVersion.V1 ? 'claimablePayout' : 'pendingPayoutFor',
|
|
284
291
|
params: [id],
|
|
292
|
+
bond: bonds[index]
|
|
285
293
|
}),
|
|
286
294
|
billVersions.push(bonds[index].billVersion));
|
|
287
295
|
});
|
|
@@ -307,6 +315,7 @@ var YourBonds = function (_a) {
|
|
|
307
315
|
lastBlockTimestamp: (_d = billData[billDataPos][0]) === null || _d === void 0 ? void 0 : _d.lastClaimTimestamp.toString(),
|
|
308
316
|
truePricePaid: (_e = billData[billDataPos][0]) === null || _e === void 0 ? void 0 : _e.truePricePaid.toString(),
|
|
309
317
|
pendingRewards: pendingRewardsCall[i][0].toString(),
|
|
318
|
+
bond: billsPendingRewardCall[i].bond
|
|
310
319
|
}
|
|
311
320
|
: {
|
|
312
321
|
address: billsPendingRewardCall[i].address,
|
|
@@ -317,6 +326,7 @@ var YourBonds = function (_a) {
|
|
|
317
326
|
lastBlockTimestamp: billData[billDataPos][2].toString(),
|
|
318
327
|
truePricePaid: billData[billDataPos][3].toString(),
|
|
319
328
|
pendingRewards: pendingRewardsCall[i][0].toString(),
|
|
329
|
+
bond: billsPendingRewardCall[i].bond
|
|
320
330
|
};
|
|
321
331
|
result.push(data);
|
|
322
332
|
}
|
|
@@ -324,18 +334,20 @@ var YourBonds = function (_a) {
|
|
|
324
334
|
}
|
|
325
335
|
});
|
|
326
336
|
}); };
|
|
327
|
-
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsxs(Flex, __assign({ className: "column column-tokens" }, { children: [_jsx(Flex, __assign({ className: "column column-tokenname" }, { children: "Tokens" })), _jsx(Flex, { className: "column column-tokenicons" })] })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsx(Flex, __assign({ className: "column column-discount" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(18%, -4%)" }, { children: ["Discount", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column column-arr" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(8%, -5%)" }, { children: ["ARR", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column column-term" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomRight", transformTip: "translate(11%, -5%)" }, { children: ["Terms", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column column-tokensremaining" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.TokensRemaining }), width: "230px", placement: "bottomRight", transformTip: "translate(12%, -4%)" }, { children: ["Tokens Remaining", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, { className: "column column-hotbond" })] }))] })),
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsxs(Flex, __assign({ className: "column column-tokens" }, { children: [_jsx(Flex, __assign({ className: "column column-tokenname" }, { children: "Tokens" })), _jsx(Flex, { className: "column column-tokenicons" })] })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsx(Flex, __assign({ className: "column column-discount" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(18%, -4%)" }, { children: ["Discount", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column column-arr" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(8%, -5%)" }, { children: ["ARR", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column column-term" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomRight", transformTip: "translate(11%, -5%)" }, { children: ["Terms", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column column-tokensremaining" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.TokensRemaining }), width: "230px", placement: "bottomRight", transformTip: "translate(12%, -4%)" }, { children: ["Tokens Remaining", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, { className: "column column-hotbond" })] }))] })), userOwnedBillsData.flat().map(function (data) {
|
|
338
|
+
return data.userOwnedBills.map(function (bill) {
|
|
339
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
340
|
+
return (_jsxs(Flex, __assign({ className: "container bondrow-container", onClick: function () { return rowClick(bill.bond); } }, { children: [_jsxs(Flex, __assign({ className: "column column-tokens" }, { children: [_jsx(Flex, __assign({ className: "column column-tokeninfoname" }, { children: _jsx(TokenInfoAndName, { bond: bill.bond }) })), _jsx(Flex, __assign({ className: "column column-tokenicons" }, { children: _jsx(TooltipBubble, __assign({ body: _jsx(Tooltip, { tokenContract: ((_a = bill.bond) === null || _a === void 0 ? void 0 : _a.payoutToken) || '', secondURL: getBillContractURL(bill.bond), secondURLTitle: 'View Bond Contract', thirdURL: "https://dashboard.ape.bond/bond/".concat((_c = (_b = bill.bond) === null || _b === void 0 ? void 0 : _b.billAddress) === null || _c === void 0 ? void 0 : _c.toLowerCase()), thirdURLTitle: 'View Insights', twitter: (_d = bill.bond) === null || _d === void 0 ? void 0 : _d.twitter, projectLink: (_e = bill.bond) === null || _e === void 0 ? void 0 : _e.projectLink, audit: (_f = bill.bond) === null || _f === void 0 ? void 0 : _f.audit, chain: (_g = bill.bond.chainId) !== null && _g !== void 0 ? _g : ChainId.BSC }), width: "205px", placement: "bottomRight", transformTip: "translate(11%, 0%)" }, { children: _jsx(Svg, { icon: "more", width: "20px" }) })) }))] })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsx(Flex, __assign({ className: "column column-discount ".concat(getDiscountColor((_h = bill.bond) === null || _h === void 0 ? void 0 : _h.discount)) }, { children: "".concat((_k = (_j = bill.bond) === null || _j === void 0 ? void 0 : _j.discount) === null || _k === void 0 ? void 0 : _k.toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-arr" }, { children: "".concat(((((_m = (_l = bill.bond) === null || _l === void 0 ? void 0 : _l.discount) !== null && _m !== void 0 ? _m : 0) * 365) / vestingTime(bill.bond.vestingTerm).days).toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-term" }, { children: vestingTime(bill.bond.vestingTerm).days ? "".concat(vestingTime(bill.bond.vestingTerm).days, " D") : '-' })), _jsx(Flex, __assign({ className: "column column-tokensremaining" }, { children: _jsx(ProgressBarWrapper, { title: '', value: _jsx(ProgressBar, { value: remainingPercentage(bill.bond) }), style: {
|
|
341
|
+
width: '127px',
|
|
342
|
+
height: '25px',
|
|
343
|
+
flexDirection: 'column',
|
|
344
|
+
justifyContent: 'center',
|
|
345
|
+
display: ['none', 'none', 'none', 'flex'],
|
|
346
|
+
}, showTooltip: true, toolTip: "".concat(remainingTokensFormat(bill.bond), " ").concat(bill.bond.payoutTokenName, " (").concat(formatDollar({
|
|
347
|
+
num: remainingTokensUsd(bill.bond).toNumber(),
|
|
348
|
+
isPrice: true,
|
|
349
|
+
}), ")") }) })), _jsx(Flex, __assign({ className: "column column-hotbond" }, { children: _jsx(Flex, __assign({ className: "column column-icon" }, { children: hotBonds.includes(bill.bond.billAddress.toLowerCase()) && ((_o = bill.bond.discount) !== null && _o !== void 0 ? _o : 0) > 0 && (_jsx(Svg, { icon: "hot", width: "20px" })) })) }))] }))] }), bill.bond.billAddress));
|
|
350
|
+
});
|
|
339
351
|
})] }))] })));
|
|
340
352
|
};
|
|
341
353
|
export default YourBonds;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { Banana__factory } from "./Banana__factory";
|
|
2
2
|
export { Bond__factory } from "./Bond__factory";
|
|
3
3
|
export { BondNft__factory } from "./BondNft__factory";
|
|
4
|
-
export { Eip_2612__factory } from "./Eip_2612__factory";
|
|
5
4
|
export { EnsPublicResolver__factory } from "./EnsPublicResolver__factory";
|
|
6
5
|
export { EnsRegistrar__factory } from "./EnsRegistrar__factory";
|
|
7
6
|
export { Erc20__factory } from "./Erc20__factory";
|
|
@@ -10,11 +9,8 @@ export { JungleChef__factory } from "./JungleChef__factory";
|
|
|
10
9
|
export { LaunchBonds__factory } from "./LaunchBonds__factory";
|
|
11
10
|
export { LensContract__factory } from "./LensContract__factory";
|
|
12
11
|
export { LockVeAbond__factory } from "./LockVeAbond__factory";
|
|
13
|
-
export { MasterChefV2__factory } from "./MasterChefV2__factory";
|
|
14
|
-
export { Masterchef__factory } from "./Masterchef__factory";
|
|
15
12
|
export { MigrationBond__factory } from "./MigrationBond__factory";
|
|
16
13
|
export { MigrationFveAbond__factory } from "./MigrationFveAbond__factory";
|
|
17
|
-
export { MiniApeV2__factory } from "./MiniApeV2__factory";
|
|
18
14
|
export { MiniComplexRewarder__factory } from "./MiniComplexRewarder__factory";
|
|
19
15
|
export { Multicallv2__factory } from "./Multicallv2__factory";
|
|
20
16
|
export { Multicallv3__factory } from "./Multicallv3__factory";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
export { Banana__factory } from "./Banana__factory";
|
|
5
5
|
export { Bond__factory } from "./Bond__factory";
|
|
6
6
|
export { BondNft__factory } from "./BondNft__factory";
|
|
7
|
-
export { Eip_2612__factory } from "./Eip_2612__factory";
|
|
8
7
|
export { EnsPublicResolver__factory } from "./EnsPublicResolver__factory";
|
|
9
8
|
export { EnsRegistrar__factory } from "./EnsRegistrar__factory";
|
|
10
9
|
export { Erc20__factory } from "./Erc20__factory";
|
|
@@ -13,11 +12,8 @@ export { JungleChef__factory } from "./JungleChef__factory";
|
|
|
13
12
|
export { LaunchBonds__factory } from "./LaunchBonds__factory";
|
|
14
13
|
export { LensContract__factory } from "./LensContract__factory";
|
|
15
14
|
export { LockVeAbond__factory } from "./LockVeAbond__factory";
|
|
16
|
-
export { MasterChefV2__factory } from "./MasterChefV2__factory";
|
|
17
|
-
export { Masterchef__factory } from "./Masterchef__factory";
|
|
18
15
|
export { MigrationBond__factory } from "./MigrationBond__factory";
|
|
19
16
|
export { MigrationFveAbond__factory } from "./MigrationFveAbond__factory";
|
|
20
|
-
export { MiniApeV2__factory } from "./MiniApeV2__factory";
|
|
21
17
|
export { MiniComplexRewarder__factory } from "./MiniComplexRewarder__factory";
|
|
22
18
|
export { Multicallv2__factory } from "./Multicallv2__factory";
|
|
23
19
|
export { Multicallv3__factory } from "./Multicallv3__factory";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type { Banana } from "./Banana";
|
|
2
2
|
export type { Bond } from "./Bond";
|
|
3
3
|
export type { BondNft } from "./BondNft";
|
|
4
|
-
export type { Eip_2612 } from "./Eip_2612";
|
|
5
4
|
export type { EnsPublicResolver } from "./EnsPublicResolver";
|
|
6
5
|
export type { EnsRegistrar } from "./EnsRegistrar";
|
|
7
6
|
export type { Erc20 } from "./Erc20";
|
|
@@ -10,11 +9,8 @@ export type { JungleChef } from "./JungleChef";
|
|
|
10
9
|
export type { LaunchBonds } from "./LaunchBonds";
|
|
11
10
|
export type { LensContract } from "./LensContract";
|
|
12
11
|
export type { LockVeAbond } from "./LockVeAbond";
|
|
13
|
-
export type { MasterChefV2 } from "./MasterChefV2";
|
|
14
|
-
export type { Masterchef } from "./Masterchef";
|
|
15
12
|
export type { MigrationBond } from "./MigrationBond";
|
|
16
13
|
export type { MigrationFveAbond } from "./MigrationFveAbond";
|
|
17
|
-
export type { MiniApeV2 } from "./MiniApeV2";
|
|
18
14
|
export type { MiniComplexRewarder } from "./MiniComplexRewarder";
|
|
19
15
|
export type { Multicallv2 } from "./Multicallv2";
|
|
20
16
|
export type { Multicallv3 } from "./Multicallv3";
|
|
@@ -31,7 +27,6 @@ export * as factories from "./factories";
|
|
|
31
27
|
export { Banana__factory } from "./factories/Banana__factory";
|
|
32
28
|
export { Bond__factory } from "./factories/Bond__factory";
|
|
33
29
|
export { BondNft__factory } from "./factories/BondNft__factory";
|
|
34
|
-
export { Eip_2612__factory } from "./factories/Eip_2612__factory";
|
|
35
30
|
export { EnsPublicResolver__factory } from "./factories/EnsPublicResolver__factory";
|
|
36
31
|
export { EnsRegistrar__factory } from "./factories/EnsRegistrar__factory";
|
|
37
32
|
export { Erc20_bytes32__factory } from "./factories/Erc20_bytes32__factory";
|
|
@@ -40,11 +35,8 @@ export { JungleChef__factory } from "./factories/JungleChef__factory";
|
|
|
40
35
|
export { LaunchBonds__factory } from "./factories/LaunchBonds__factory";
|
|
41
36
|
export { LensContract__factory } from "./factories/LensContract__factory";
|
|
42
37
|
export { LockVeAbond__factory } from "./factories/LockVeAbond__factory";
|
|
43
|
-
export { Masterchef__factory } from "./factories/Masterchef__factory";
|
|
44
|
-
export { MasterChefV2__factory } from "./factories/MasterChefV2__factory";
|
|
45
38
|
export { MigrationBond__factory } from "./factories/MigrationBond__factory";
|
|
46
39
|
export { MigrationFveAbond__factory } from "./factories/MigrationFveAbond__factory";
|
|
47
|
-
export { MiniApeV2__factory } from "./factories/MiniApeV2__factory";
|
|
48
40
|
export { MiniComplexRewarder__factory } from "./factories/MiniComplexRewarder__factory";
|
|
49
41
|
export { Multicallv2__factory } from "./factories/Multicallv2__factory";
|
|
50
42
|
export { Multicallv3__factory } from "./factories/Multicallv3__factory";
|
|
@@ -2,7 +2,6 @@ export * as factories from "./factories";
|
|
|
2
2
|
export { Banana__factory } from "./factories/Banana__factory";
|
|
3
3
|
export { Bond__factory } from "./factories/Bond__factory";
|
|
4
4
|
export { BondNft__factory } from "./factories/BondNft__factory";
|
|
5
|
-
export { Eip_2612__factory } from "./factories/Eip_2612__factory";
|
|
6
5
|
export { EnsPublicResolver__factory } from "./factories/EnsPublicResolver__factory";
|
|
7
6
|
export { EnsRegistrar__factory } from "./factories/EnsRegistrar__factory";
|
|
8
7
|
export { Erc20_bytes32__factory } from "./factories/Erc20_bytes32__factory";
|
|
@@ -11,11 +10,8 @@ export { JungleChef__factory } from "./factories/JungleChef__factory";
|
|
|
11
10
|
export { LaunchBonds__factory } from "./factories/LaunchBonds__factory";
|
|
12
11
|
export { LensContract__factory } from "./factories/LensContract__factory";
|
|
13
12
|
export { LockVeAbond__factory } from "./factories/LockVeAbond__factory";
|
|
14
|
-
export { Masterchef__factory } from "./factories/Masterchef__factory";
|
|
15
|
-
export { MasterChefV2__factory } from "./factories/MasterChefV2__factory";
|
|
16
13
|
export { MigrationBond__factory } from "./factories/MigrationBond__factory";
|
|
17
14
|
export { MigrationFveAbond__factory } from "./factories/MigrationFveAbond__factory";
|
|
18
|
-
export { MiniApeV2__factory } from "./factories/MiniApeV2__factory";
|
|
19
15
|
export { MiniComplexRewarder__factory } from "./factories/MiniComplexRewarder__factory";
|
|
20
16
|
export { Multicallv2__factory } from "./factories/Multicallv2__factory";
|
|
21
17
|
export { Multicallv3__factory } from "./factories/Multicallv3__factory";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare const BondAbi: ({
|
|
2
|
+
anonymous: boolean;
|
|
3
|
+
inputs: ({
|
|
4
|
+
components: {
|
|
5
|
+
internalType: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
indexed: boolean;
|
|
10
|
+
internalType: string;
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
} | {
|
|
14
|
+
indexed: boolean;
|
|
15
|
+
internalType: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
components?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
outputs?: undefined;
|
|
23
|
+
stateMutability?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
inputs: {
|
|
26
|
+
internalType: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
}[];
|
|
30
|
+
name: string;
|
|
31
|
+
outputs: {
|
|
32
|
+
internalType: string;
|
|
33
|
+
name: string;
|
|
34
|
+
type: string;
|
|
35
|
+
}[];
|
|
36
|
+
stateMutability: string;
|
|
37
|
+
type: string;
|
|
38
|
+
anonymous?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
inputs: {
|
|
41
|
+
internalType: string;
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
}[];
|
|
45
|
+
name: string;
|
|
46
|
+
outputs: {
|
|
47
|
+
components: {
|
|
48
|
+
internalType: string;
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
}[];
|
|
52
|
+
internalType: string;
|
|
53
|
+
name: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}[];
|
|
56
|
+
stateMutability: string;
|
|
57
|
+
type: string;
|
|
58
|
+
anonymous?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
inputs: ({
|
|
61
|
+
internalType: string;
|
|
62
|
+
name: string;
|
|
63
|
+
type: string;
|
|
64
|
+
components?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
components: {
|
|
67
|
+
internalType: string;
|
|
68
|
+
name: string;
|
|
69
|
+
type: string;
|
|
70
|
+
}[];
|
|
71
|
+
internalType: string;
|
|
72
|
+
name: string;
|
|
73
|
+
type: string;
|
|
74
|
+
})[];
|
|
75
|
+
name: string;
|
|
76
|
+
outputs: never[];
|
|
77
|
+
stateMutability: string;
|
|
78
|
+
type: string;
|
|
79
|
+
anonymous?: undefined;
|
|
80
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var BondAbi = [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "billId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "payout", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "remaining", "type": "uint256" }], "name": "BillClaimed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "deposit", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "payout", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "expires", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "billId", "type": "uint256" }], "name": "BillCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint256", "name": "controlVariable", "type": "uint256" }, { "internalType": "uint256", "name": "vestingTerm", "type": "uint256" }, { "internalType": "uint256", "name": "minimumPrice", "type": "uint256" }, { "internalType": "uint256", "name": "maxPayout", "type": "uint256" }, { "internalType": "uint256", "name": "maxDebt", "type": "uint256" }, { "internalType": "uint256", "name": "maxTotalPayout", "type": "uint256" }, { "internalType": "uint256", "name": "initialDebt", "type": "uint256" }], "indexed": false, "internalType": "struct ICustomBill.BillTerms", "name": "billTerms", "type": "tuple" }, { "indexed": false, "internalType": "uint256", "name": "lastDecay", "type": "uint256" }], "name": "BillInitialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "internalPrice", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "debtRatio", "type": "uint256" }], "name": "BillPriceChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "payoutToken", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountAdded", "type": "uint256" }], "name": "BillRefilled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "initialBCV", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newBCV", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "adjustment", "type": "uint256" }], "name": "ControlVariableAdjustment", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "newFeeTo", "type": "address" }], "name": "FeeToChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "newMaxTotalPayout", "type": "uint256" }], "name": "MaxTotalPayoutChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleRevoked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "currentBCV", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "increment", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "targetBCV", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "buffer", "type": "uint256" }], "name": "SetAdjustment", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256[]", "name": "fees", "type": "uint256[]" }, { "indexed": false, "internalType": "uint256[]", "name": "tierCeilings", "type": "uint256[]" }], "name": "SetFees", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "pendingOwner", "type": "address" }], "name": "SetPendingOwner", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "enum CustomBill.PARAMETER", "name": "parameter", "type": "uint8" }, { "indexed": false, "internalType": "uint256", "name": "input", "type": "uint256" }], "name": "TermsSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "approvedAccount", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" }], "name": "UpdateClaimApproval", "type": "event" }, { "inputs": [], "name": "DAO", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_FEE", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "REFILL_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "adjustment", "outputs": [{ "internalType": "uint256", "name": "rate", "type": "uint256" }, { "internalType": "uint256", "name": "target", "type": "uint256" }, { "internalType": "uint256", "name": "buffer", "type": "uint256" }, { "internalType": "uint256", "name": "lastAdjustmentTimestamp", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "allIssuedBillIds", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_billIds", "type": "uint256[]" }], "name": "batchClaim", "outputs": [{ "internalType": "uint256", "name": "payout", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_billIds", "type": "uint256[]" }], "name": "batchRedeem", "outputs": [{ "internalType": "uint256", "name": "payout", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "billInfo", "outputs": [{ "internalType": "uint256", "name": "payout", "type": "uint256" }, { "internalType": "uint256", "name": "payoutClaimed", "type": "uint256" }, { "internalType": "uint256", "name": "vesting", "type": "uint256" }, { "internalType": "uint256", "name": "vestingTerm", "type": "uint256" }, { "internalType": "uint256", "name": "vestingStartTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "lastClaimTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "truePricePaid", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "billNft", "outputs": [{ "internalType": "contract IBillNft", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "billPrice", "outputs": [{ "internalType": "uint256", "name": "price_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_feeTo", "type": "address" }], "name": "changeFeeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "claim", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "claimablePayout", "outputs": [{ "internalType": "uint256", "name": "claimablePayout_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "currentDebt", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "currentFee", "outputs": [{ "internalType": "uint256", "name": "currentFee_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "customTreasury", "outputs": [{ "internalType": "contract ICustomTreasury", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "debtDecay", "outputs": [{ "internalType": "uint256", "name": "decay_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "debtRatio", "outputs": [{ "internalType": "uint256", "name": "debtRatio_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "uint256", "name": "_maxPrice", "type": "uint256" }, { "internalType": "address", "name": "_depositor", "type": "address" }], "name": "deposit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "feeInPayout", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "feeTiers", "outputs": [{ "internalType": "uint256", "name": "tierCeilings", "type": "uint256" }, { "internalType": "uint256", "name": "fees", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeTo", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }], "name": "getBillIds", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "start", "type": "uint256" }, { "internalType": "uint256", "name": "end", "type": "uint256" }], "name": "getBillIdsInRange", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "billId", "type": "uint256" }], "name": "getBillInfo", "outputs": [{ "components": [{ "internalType": "uint256", "name": "payout", "type": "uint256" }, { "internalType": "uint256", "name": "payoutClaimed", "type": "uint256" }, { "internalType": "uint256", "name": "vesting", "type": "uint256" }, { "internalType": "uint256", "name": "vestingTerm", "type": "uint256" }, { "internalType": "uint256", "name": "vestingStartTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "lastClaimTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "truePricePaid", "type": "uint256" }], "internalType": "struct ICustomBill.Bill", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFeeTierLength", "outputs": [{ "internalType": "uint256", "name": "tierLength_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getMaxTotalPayout", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleAdmin", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" }], "name": "getRoleMember", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleMemberCount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_billRefillers", "type": "address[]" }], "name": "grantRefillRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "hasRole", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract ICustomTreasury", "name": "_customTreasury", "type": "address" }, { "components": [{ "internalType": "address", "name": "payoutToken", "type": "address" }, { "internalType": "address", "name": "principalToken", "type": "address" }, { "internalType": "address", "name": "initialOwner", "type": "address" }, { "internalType": "contract IVestingCurve", "name": "vestingCurve", "type": "address" }, { "internalType": "uint256[]", "name": "tierCeilings", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "fees", "type": "uint256[]" }, { "internalType": "bool", "name": "feeInPayout", "type": "bool" }], "internalType": "struct ICustomBill.BillCreationDetails", "name": "_billCreationDetails", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "controlVariable", "type": "uint256" }, { "internalType": "uint256", "name": "vestingTerm", "type": "uint256" }, { "internalType": "uint256", "name": "minimumPrice", "type": "uint256" }, { "internalType": "uint256", "name": "maxPayout", "type": "uint256" }, { "internalType": "uint256", "name": "maxDebt", "type": "uint256" }, { "internalType": "uint256", "name": "maxTotalPayout", "type": "uint256" }, { "internalType": "uint256", "name": "initialDebt", "type": "uint256" }], "internalType": "struct ICustomBill.BillTerms", "name": "_billTerms", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "feeTo", "type": "address" }, { "internalType": "address", "name": "DAO", "type": "address" }, { "internalType": "address", "name": "billNft", "type": "address" }], "internalType": "struct ICustomBill.BillAccounts", "name": "_billAccounts", "type": "tuple" }, { "internalType": "address[]", "name": "_billRefillers", "type": "address[]" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "contract ICustomTreasury", "name": "_customTreasury", "type": "address" }, { "components": [{ "internalType": "address", "name": "payoutToken", "type": "address" }, { "internalType": "address", "name": "principalToken", "type": "address" }, { "internalType": "address", "name": "initialOwner", "type": "address" }, { "internalType": "contract IVestingCurve", "name": "vestingCurve", "type": "address" }, { "internalType": "uint256[]", "name": "tierCeilings", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "fees", "type": "uint256[]" }, { "internalType": "bool", "name": "feeInPayout", "type": "bool" }], "internalType": "struct ICustomBill.BillCreationDetails", "name": "_billCreationDetails", "type": "tuple" }, { "components": [{ "internalType": "uint256", "name": "controlVariable", "type": "uint256" }, { "internalType": "uint256", "name": "vestingTerm", "type": "uint256" }, { "internalType": "uint256", "name": "minimumPrice", "type": "uint256" }, { "internalType": "uint256", "name": "maxPayout", "type": "uint256" }, { "internalType": "uint256", "name": "maxDebt", "type": "uint256" }, { "internalType": "uint256", "name": "maxTotalPayout", "type": "uint256" }, { "internalType": "uint256", "name": "initialDebt", "type": "uint256" }], "internalType": "struct ICustomBill.BillTerms", "name": "_billTerms", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "feeTo", "type": "address" }, { "internalType": "address", "name": "DAO", "type": "address" }, { "internalType": "address", "name": "billNft", "type": "address" }], "internalType": "struct ICustomBill.BillAccounts", "name": "_billAccounts", "type": "tuple" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "lastDecay", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxPayout", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "payoutFor", "outputs": [{ "internalType": "uint256", "name": "_payout", "type": "uint256" }, { "internalType": "uint256", "name": "_fee", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "payoutToken", "outputs": [{ "internalType": "contract IERC20MetadataUpgradeable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "pendingPayout", "outputs": [{ "internalType": "uint256", "name": "pendingPayout_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "pendingVesting", "outputs": [{ "internalType": "uint256", "name": "pendingVesting_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "principalToken", "outputs": [{ "internalType": "contract IERC20MetadataUpgradeable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "redeem", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "redeemerApproved", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_refillAmount", "type": "uint256" }], "name": "refillPayoutToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_billRefillers", "type": "address[]" }], "name": "revokeRefillRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_rate", "type": "uint256" }, { "internalType": "uint256", "name": "_target", "type": "uint256" }, { "internalType": "uint256", "name": "_buffer", "type": "uint256" }], "name": "setAdjustment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "enum CustomBill.PARAMETER", "name": "_parameter", "type": "uint8" }, { "internalType": "uint256", "name": "_input", "type": "uint256" }], "name": "setBillTerms", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "approvedAccount", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" }], "name": "setClaimApproval", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "fees", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "tierCeilings", "type": "uint256[]" }], "name": "setFeeTiers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_maxTotalPayout", "type": "uint256" }], "name": "setMaxTotalPayout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newPendingOwner", "type": "address" }], "name": "setPendingOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "terms", "outputs": [{ "internalType": "uint256", "name": "controlVariable", "type": "uint256" }, { "internalType": "uint256", "name": "vestingTerm", "type": "uint256" }, { "internalType": "uint256", "name": "minimumPrice", "type": "uint256" }, { "internalType": "uint256", "name": "maxPayout", "type": "uint256" }, { "internalType": "uint256", "name": "maxDebt", "type": "uint256" }, { "internalType": "uint256", "name": "maxTotalPayout", "type": "uint256" }, { "internalType": "uint256", "name": "initialDebt", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalDebt", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalPayoutGiven", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalPrincipalBilled", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "trueBillPrice", "outputs": [{ "internalType": "uint256", "name": "price_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "userBillIds", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }, { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }], "name": "vestedPayoutAtTime", "outputs": [{ "internalType": "uint256", "name": "vestedPayout_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "vestingCurve", "outputs": [{ "internalType": "contract IVestingCurve", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "vestingPayout", "outputs": [{ "internalType": "uint256", "name": "vestingPayout_", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_billId", "type": "uint256" }], "name": "vestingPeriod", "outputs": [{ "internalType": "uint256", "name": "vestingStart_", "type": "uint256" }, { "internalType": "uint256", "name": "vestingEnd_", "type": "uint256" }], "stateMutability": "view", "type": "function" }];
|