@oakagentkit/core 0.1.1 → 0.1.9
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/build/dist/api/addresses.d.ts +0 -1219
- package/build/dist/api/addresses.js +1 -1
- package/build/dist/api/amounts.d.ts +0 -1
- package/build/dist/api/amounts.js +1 -1
- package/build/dist/api/args.d.ts +19 -0
- package/build/dist/api/args.js +1 -0
- package/build/dist/api/canonical.d.ts +0 -1
- package/build/dist/api/canonical.js +1 -1
- package/build/dist/api/chain.d.ts +2 -0
- package/build/dist/api/chain.js +1 -1
- package/build/dist/api/errors.js +1 -1
- package/build/dist/api/gas.js +1 -1
- package/build/dist/api/grandfather.js +1 -1
- package/build/dist/api/guards.d.ts +23 -0
- package/build/dist/api/guards.js +1 -0
- package/build/dist/api/history.js +1 -1
- package/build/dist/api/http.js +1 -1
- package/build/dist/api/identity-link.js +1 -1
- package/build/dist/api/launch.d.ts +1 -0
- package/build/dist/api/launch.js +1 -1
- package/build/dist/api/merkle.js +1 -1
- package/build/dist/api/metadata.js +1 -1
- package/build/dist/api/module.js +1 -1
- package/build/dist/api/modules/beefy/boosts.d.ts +132 -0
- package/build/dist/api/modules/beefy/boosts.js +1 -0
- package/build/dist/api/modules/beefy/clm.d.ts +282 -0
- package/build/dist/api/modules/beefy/clm.js +1 -0
- package/build/dist/api/modules/beefy/guard.d.ts +5 -0
- package/build/dist/api/modules/beefy/guard.js +1 -0
- package/build/dist/api/modules/beefy/index.js +1 -1
- package/build/dist/api/modules/beefy/liquidity.d.ts +237 -0
- package/build/dist/api/modules/beefy/liquidity.js +1 -0
- package/build/dist/api/modules/beefy/management.d.ts +100 -0
- package/build/dist/api/modules/beefy/management.js +1 -0
- package/build/dist/api/modules/beefy/vaults.d.ts +14 -0
- package/build/dist/api/modules/beefy/vaults.js +1 -0
- package/build/dist/api/modules/clanker/extensions.d.ts +62 -0
- package/build/dist/api/modules/clanker/extensions.js +1 -0
- package/build/dist/api/modules/clanker/index.js +1 -1
- package/build/dist/api/modules/clanker/manage.d.ts +2 -0
- package/build/dist/api/modules/clanker/manage.js +1 -0
- package/build/dist/api/modules/clanker/pool-config.d.ts +96 -0
- package/build/dist/api/modules/clanker/pool-config.js +1 -0
- package/build/dist/api/modules/clanker/protocol.d.ts +2 -0
- package/build/dist/api/modules/clanker/protocol.js +1 -0
- package/build/dist/api/modules/clanker/state.d.ts +246 -0
- package/build/dist/api/modules/clanker/state.js +1 -0
- package/build/dist/api/modules/erc8004/abi.d.ts +808 -0
- package/build/dist/api/modules/erc8004/abi.js +1 -0
- package/build/dist/api/modules/erc8004/common.d.ts +69 -0
- package/build/dist/api/modules/erc8004/common.js +1 -0
- package/build/dist/api/modules/erc8004/domain.d.ts +3 -0
- package/build/dist/api/modules/erc8004/domain.js +1 -0
- package/build/dist/api/modules/erc8004/index.d.ts +3 -171
- package/build/dist/api/modules/erc8004/index.js +1 -1
- package/build/dist/api/modules/erc8004/management.d.ts +4 -0
- package/build/dist/api/modules/erc8004/management.js +1 -0
- package/build/dist/api/modules/erc8004/reputation.d.ts +3 -0
- package/build/dist/api/modules/erc8004/reputation.js +1 -0
- package/build/dist/api/modules/erc8004/services.d.ts +2 -0
- package/build/dist/api/modules/erc8004/services.js +1 -0
- package/build/dist/api/modules/erc8004/validation.d.ts +2 -0
- package/build/dist/api/modules/erc8004/validation.js +1 -0
- package/build/dist/api/modules/grove/index.js +1 -1
- package/build/dist/api/modules/heyresearch/freshness.d.ts +12 -0
- package/build/dist/api/modules/heyresearch/freshness.js +1 -0
- package/build/dist/api/modules/heyresearch/index.js +1 -1
- package/build/dist/api/modules/heyresearch/public-reads.d.ts +5 -0
- package/build/dist/api/modules/heyresearch/public-reads.js +1 -0
- package/build/dist/api/modules/hoodag/chain-reads.d.ts +33 -0
- package/build/dist/api/modules/hoodag/chain-reads.js +1 -0
- package/build/dist/api/modules/hoodag/index.d.ts +9 -1
- package/build/dist/api/modules/hoodag/index.js +1 -1
- package/build/dist/api/modules/hoodag/management.d.ts +2 -0
- package/build/dist/api/modules/hoodag/management.js +1 -0
- package/build/dist/api/modules/hoodag/public-reads.d.ts +2 -0
- package/build/dist/api/modules/hoodag/public-reads.js +1 -0
- package/build/dist/api/modules/hoodag/reconstruct.d.ts +14 -0
- package/build/dist/api/modules/hoodag/reconstruct.js +1 -0
- package/build/dist/api/modules/hoodlock/airdrop.js +1 -1
- package/build/dist/api/modules/hoodlock/buyback.d.ts +28 -0
- package/build/dist/api/modules/hoodlock/buyback.js +1 -0
- package/build/dist/api/modules/hoodlock/commerce.d.ts +24 -0
- package/build/dist/api/modules/hoodlock/commerce.js +1 -0
- package/build/dist/api/modules/hoodlock/fee.d.ts +15 -0
- package/build/dist/api/modules/hoodlock/fee.js +1 -0
- package/build/dist/api/modules/hoodlock/guard.d.ts +5 -0
- package/build/dist/api/modules/hoodlock/guard.js +1 -0
- package/build/dist/api/modules/hoodlock/index.d.ts +4 -0
- package/build/dist/api/modules/hoodlock/index.js +1 -1
- package/build/dist/api/modules/hoodlock/lifecycle.d.ts +285 -0
- package/build/dist/api/modules/hoodlock/lifecycle.js +1 -0
- package/build/dist/api/modules/hoodlock/locks-burn.d.ts +3 -3
- package/build/dist/api/modules/hoodlock/locks-burn.js +1 -1
- package/build/dist/api/modules/hoodlock/public.d.ts +3 -0
- package/build/dist/api/modules/hoodlock/public.js +1 -0
- package/build/dist/api/modules/hookr/actions.d.ts +4 -0
- package/build/dist/api/modules/hookr/actions.js +1 -0
- package/build/dist/api/modules/hookr/addons.d.ts +4 -0
- package/build/dist/api/modules/hookr/addons.js +1 -0
- package/build/dist/api/modules/hookr/contracts.d.ts +30 -0
- package/build/dist/api/modules/hookr/contracts.js +1 -0
- package/build/dist/api/modules/hookr/create-cancel.d.ts +10 -73
- package/build/dist/api/modules/hookr/create-cancel.js +1 -1
- package/build/dist/api/modules/hookr/discovery.d.ts +3 -0
- package/build/dist/api/modules/hookr/discovery.js +1 -0
- package/build/dist/api/modules/hookr/fill-bounty.js +1 -1
- package/build/dist/api/modules/hookr/index.d.ts +0 -3
- package/build/dist/api/modules/hookr/index.js +1 -1
- package/build/dist/api/modules/hookr/public-reads.d.ts +4 -0
- package/build/dist/api/modules/hookr/public-reads.js +1 -0
- package/build/dist/api/modules/hookr/relay.d.ts +304 -0
- package/build/dist/api/modules/hookr/relay.js +1 -0
- package/build/dist/api/modules/hookr/revenue.d.ts +5 -0
- package/build/dist/api/modules/hookr/revenue.js +1 -0
- package/build/dist/api/modules/kyberswap/index.d.ts +18 -2
- package/build/dist/api/modules/kyberswap/index.js +1 -1
- package/build/dist/api/modules/kyberswap/source-pools.d.ts +9 -0
- package/build/dist/api/modules/kyberswap/source-pools.js +1 -0
- package/build/dist/api/modules/lighter/index.js +1 -1
- package/build/dist/api/modules/longbow/administration.d.ts +119 -0
- package/build/dist/api/modules/longbow/administration.js +1 -0
- package/build/dist/api/modules/longbow/analytics.d.ts +272 -0
- package/build/dist/api/modules/longbow/analytics.js +1 -0
- package/build/dist/api/modules/longbow/fixed.d.ts +126 -0
- package/build/dist/api/modules/longbow/fixed.js +1 -0
- package/build/dist/api/modules/longbow/index.d.ts +20 -2
- package/build/dist/api/modules/longbow/index.js +1 -1
- package/build/dist/api/modules/longbow/nft.d.ts +236 -0
- package/build/dist/api/modules/longbow/nft.js +1 -0
- package/build/dist/api/modules/longbow/rebates.d.ts +152 -0
- package/build/dist/api/modules/longbow/rebates.js +1 -0
- package/build/dist/api/modules/longbow/staking.d.ts +4 -0
- package/build/dist/api/modules/longbow/staking.js +1 -0
- package/build/dist/api/modules/meridian/index.js +1 -1
- package/build/dist/api/modules/meridian/markets.js +1 -1
- package/build/dist/api/modules/meridian/perps-batch.d.ts +4 -0
- package/build/dist/api/modules/meridian/perps-batch.js +1 -0
- package/build/dist/api/modules/meridian/perps-common.d.ts +56 -0
- package/build/dist/api/modules/meridian/perps-common.js +1 -0
- package/build/dist/api/modules/meridian/perps-guards.d.ts +3 -0
- package/build/dist/api/modules/meridian/perps-guards.js +1 -0
- package/build/dist/api/modules/meridian/perps-intents.d.ts +18 -0
- package/build/dist/api/modules/meridian/perps-intents.js +1 -0
- package/build/dist/api/modules/meridian/perps-stream.d.ts +3 -0
- package/build/dist/api/modules/meridian/perps-stream.js +1 -0
- package/build/dist/api/modules/meridian/perps.d.ts +3 -0
- package/build/dist/api/modules/meridian/perps.js +1 -0
- package/build/dist/api/modules/meridian/predict-read.d.ts +2 -0
- package/build/dist/api/modules/meridian/predict-read.js +1 -0
- package/build/dist/api/modules/meridian/rfq.d.ts +29 -0
- package/build/dist/api/modules/meridian/rfq.js +1 -1
- package/build/dist/api/modules/merkl/discovery.d.ts +2 -0
- package/build/dist/api/modules/merkl/discovery.js +1 -0
- package/build/dist/api/modules/merkl/index.d.ts +10 -1
- package/build/dist/api/modules/merkl/index.js +1 -1
- package/build/dist/api/modules/merkl/manage.d.ts +2 -0
- package/build/dist/api/modules/merkl/manage.js +1 -0
- package/build/dist/api/modules/merkl/protocol.d.ts +2 -0
- package/build/dist/api/modules/merkl/protocol.js +1 -0
- package/build/dist/api/modules/morpho/allocator.d.ts +308 -0
- package/build/dist/api/modules/morpho/allocator.js +1 -0
- package/build/dist/api/modules/morpho/bundles-abi.d.ts +705 -0
- package/build/dist/api/modules/morpho/bundles-abi.js +1 -0
- package/build/dist/api/modules/morpho/bundles.d.ts +3 -0
- package/build/dist/api/modules/morpho/bundles.js +1 -0
- package/build/dist/api/modules/morpho/in-kind.d.ts +85 -0
- package/build/dist/api/modules/morpho/in-kind.js +1 -0
- package/build/dist/api/modules/morpho/index.d.ts +11 -3
- package/build/dist/api/modules/morpho/index.js +1 -12
- package/build/dist/api/modules/morpho/local-guard.d.ts +26 -0
- package/build/dist/api/modules/morpho/local-guard.js +1 -0
- package/build/dist/api/modules/morpho/midnight-abi.d.ts +1690 -0
- package/build/dist/api/modules/morpho/midnight-abi.js +1 -0
- package/build/dist/api/modules/morpho/midnight.d.ts +179 -0
- package/build/dist/api/modules/morpho/midnight.js +1 -0
- package/build/dist/api/modules/morpho/protocol.d.ts +290 -0
- package/build/dist/api/modules/morpho/protocol.js +1 -0
- package/build/dist/api/modules/morpho/surface.d.ts +4 -0
- package/build/dist/api/modules/morpho/surface.js +1 -0
- package/build/dist/api/modules/morpho/vault-management.d.ts +10 -0
- package/build/dist/api/modules/morpho/vault-management.js +1 -0
- package/build/dist/api/modules/morpho/vault-tools.d.ts +6 -0
- package/build/dist/api/modules/morpho/vault-tools.js +1 -0
- package/build/dist/api/modules/morpho/vault-v2.d.ts +190 -0
- package/build/dist/api/modules/morpho/vault-v2.js +1 -0
- package/build/dist/api/modules/netnet/blackjack-hashes.d.ts +89 -0
- package/build/dist/api/modules/netnet/blackjack-hashes.js +1 -0
- package/build/dist/api/modules/netnet/card-abi.d.ts +3758 -0
- package/build/dist/api/modules/netnet/card-abi.js +1 -0
- package/build/dist/api/modules/netnet/card-plan.d.ts +43 -0
- package/build/dist/api/modules/netnet/card-plan.js +1 -0
- package/build/dist/api/modules/netnet/card-policy.d.ts +10 -0
- package/build/dist/api/modules/netnet/card-policy.js +1 -0
- package/build/dist/api/modules/netnet/card-read.d.ts +2 -0
- package/build/dist/api/modules/netnet/card-read.js +1 -0
- package/build/dist/api/modules/netnet/card-recovery.d.ts +2 -0
- package/build/dist/api/modules/netnet/card-recovery.js +1 -0
- package/build/dist/api/modules/netnet/desk-action-abi.d.ts +2 -0
- package/build/dist/api/modules/netnet/desk-action-abi.js +1 -0
- package/build/dist/api/modules/netnet/desk-action.d.ts +3 -0
- package/build/dist/api/modules/netnet/desk-action.js +1 -0
- package/build/dist/api/modules/netnet/desk-read.d.ts +5 -0
- package/build/dist/api/modules/netnet/desk-read.js +1 -0
- package/build/dist/api/modules/netnet/desk-registry.d.ts +5 -0
- package/build/dist/api/modules/netnet/desk-registry.js +1 -0
- package/build/dist/api/modules/netnet/financial-abi.d.ts +1764 -0
- package/build/dist/api/modules/netnet/financial-abi.js +1 -0
- package/build/dist/api/modules/netnet/financial.d.ts +13 -0
- package/build/dist/api/modules/netnet/financial.js +1 -0
- package/build/dist/api/modules/netnet/index.d.ts +1 -0
- package/build/dist/api/modules/netnet/index.js +1 -1
- package/build/dist/api/modules/netnet/staking.d.ts +8 -0
- package/build/dist/api/modules/netnet/staking.js +1 -0
- package/build/dist/api/modules/orbio/gateway.d.ts +24 -0
- package/build/dist/api/modules/orbio/gateway.js +1 -0
- package/build/dist/api/modules/orbio/index.d.ts +3 -1
- package/build/dist/api/modules/orbio/index.js +1 -1
- package/build/dist/api/modules/orbio/pins.d.ts +457 -0
- package/build/dist/api/modules/orbio/pins.js +1 -0
- package/build/dist/api/modules/pons/claim.d.ts +33 -1
- package/build/dist/api/modules/pons/claim.js +1 -1
- package/build/dist/api/modules/pons/holder-directory.d.ts +35 -0
- package/build/dist/api/modules/pons/holder-directory.js +1 -0
- package/build/dist/api/modules/pons/index.js +1 -1
- package/build/dist/api/modules/pons/launch-status.d.ts +151 -5
- package/build/dist/api/modules/pons/launch-status.js +1 -1
- package/build/dist/api/modules/pons/prices.js +1 -1
- package/build/dist/api/modules/pons/reads.d.ts +3 -0
- package/build/dist/api/modules/pons/reads.js +1 -0
- package/build/dist/api/modules/pons/swap-terms.d.ts +77 -0
- package/build/dist/api/modules/pons/swap-terms.js +1 -0
- package/build/dist/api/modules/pons/trade.d.ts +15 -2
- package/build/dist/api/modules/pons/trade.js +1 -1
- package/build/dist/api/modules/poolstrade/index.js +1 -1
- package/build/dist/api/modules/priors/coverage.d.ts +23 -0
- package/build/dist/api/modules/priors/coverage.js +1 -0
- package/build/dist/api/modules/priors/discovery.d.ts +4 -0
- package/build/dist/api/modules/priors/discovery.js +1 -0
- package/build/dist/api/modules/priors/features.d.ts +62 -0
- package/build/dist/api/modules/priors/features.js +1 -0
- package/build/dist/api/modules/priors/index.d.ts +9 -2
- package/build/dist/api/modules/priors/index.js +1 -1
- package/build/dist/api/modules/priors/integration.d.ts +6 -0
- package/build/dist/api/modules/priors/integration.js +1 -0
- package/build/dist/api/modules/priors/market.d.ts +10 -0
- package/build/dist/api/modules/priors/market.js +1 -0
- package/build/dist/api/modules/priors/pt.d.ts +421 -0
- package/build/dist/api/modules/priors/pt.js +1 -0
- package/build/dist/api/modules/priors/savings-exit.d.ts +85 -0
- package/build/dist/api/modules/priors/savings-exit.js +1 -0
- package/build/dist/api/modules/priors/starter-line.d.ts +495 -0
- package/build/dist/api/modules/priors/starter-line.js +1 -0
- package/build/dist/api/modules/priors/stock-swap.d.ts +101 -0
- package/build/dist/api/modules/priors/stock-swap.js +1 -0
- package/build/dist/api/modules/relay/api.d.ts +52 -0
- package/build/dist/api/modules/relay/api.js +1 -0
- package/build/dist/api/modules/relay/bootstrap.d.ts +2 -0
- package/build/dist/api/modules/relay/bootstrap.js +1 -0
- package/build/dist/api/modules/relay/discovery.d.ts +2 -0
- package/build/dist/api/modules/relay/discovery.js +1 -0
- package/build/dist/api/modules/relay/inbound.js +1 -1
- package/build/dist/api/modules/relay/index.d.ts +2 -0
- package/build/dist/api/modules/relay/index.js +1 -1
- package/build/dist/api/modules/relay/order.d.ts +2 -0
- package/build/dist/api/modules/relay/order.js +1 -0
- package/build/dist/api/modules/relay/outbound-status.js +1 -1
- package/build/dist/api/modules/relay/readiness.d.ts +5 -0
- package/build/dist/api/modules/relay/readiness.js +1 -0
- package/build/dist/api/modules/relay/reads.d.ts +3 -0
- package/build/dist/api/modules/relay/reads.js +1 -0
- package/build/dist/api/modules/relay/vaults.d.ts +24 -0
- package/build/dist/api/modules/relay/vaults.js +1 -0
- package/build/dist/api/modules/spark/actions.d.ts +2 -0
- package/build/dist/api/modules/spark/actions.js +1 -0
- package/build/dist/api/modules/spark/details.d.ts +3 -0
- package/build/dist/api/modules/spark/details.js +1 -0
- package/build/dist/api/modules/spark/index.js +1 -1
- package/build/dist/api/modules/spark/management.d.ts +7 -0
- package/build/dist/api/modules/spark/management.js +1 -0
- package/build/dist/api/modules/steakhouse/analytics.d.ts +2 -0
- package/build/dist/api/modules/steakhouse/analytics.js +1 -0
- package/build/dist/api/modules/steakhouse/erc4626.d.ts +2 -0
- package/build/dist/api/modules/steakhouse/erc4626.js +1 -0
- package/build/dist/api/modules/steakhouse/index.js +1 -1
- package/build/dist/api/modules/steakhouse/local-guard.d.ts +7 -0
- package/build/dist/api/modules/steakhouse/local-guard.js +1 -0
- package/build/dist/api/modules/steakhouse/management.d.ts +3 -0
- package/build/dist/api/modules/steakhouse/management.js +1 -0
- package/build/dist/api/modules/steakhouse/v2-exit.d.ts +19 -0
- package/build/dist/api/modules/steakhouse/v2-exit.js +1 -0
- package/build/dist/api/modules/tickerspring/basket-routes.d.ts +2 -0
- package/build/dist/api/modules/tickerspring/basket-routes.js +1 -0
- package/build/dist/api/modules/tickerspring/contract-reads.d.ts +2 -0
- package/build/dist/api/modules/tickerspring/contract-reads.js +1 -0
- package/build/dist/api/modules/tickerspring/discovery.d.ts +27 -0
- package/build/dist/api/modules/tickerspring/discovery.js +1 -0
- package/build/dist/api/modules/tickerspring/exit-preview.d.ts +14 -0
- package/build/dist/api/modules/tickerspring/exit-preview.js +1 -0
- package/build/dist/api/modules/tickerspring/guards.d.ts +7 -0
- package/build/dist/api/modules/tickerspring/guards.js +1 -0
- package/build/dist/api/modules/tickerspring/index.d.ts +80 -1
- package/build/dist/api/modules/tickerspring/index.js +1 -1
- package/build/dist/api/modules/tickerspring/journeys.d.ts +31 -0
- package/build/dist/api/modules/tickerspring/journeys.js +1 -0
- package/build/dist/api/modules/tickerspring/ladder.d.ts +8 -0
- package/build/dist/api/modules/tickerspring/ladder.js +1 -0
- package/build/dist/api/modules/tickerspring/maker.d.ts +8 -0
- package/build/dist/api/modules/tickerspring/maker.js +1 -0
- package/build/dist/api/modules/tickerspring/order-accounting.d.ts +4 -0
- package/build/dist/api/modules/tickerspring/order-accounting.js +1 -0
- package/build/dist/api/modules/tickerspring/research.d.ts +2 -0
- package/build/dist/api/modules/tickerspring/research.js +1 -0
- package/build/dist/api/modules/tickerspring/strategies.d.ts +17 -0
- package/build/dist/api/modules/tickerspring/strategies.js +1 -0
- package/build/dist/api/modules/uniswap/auction-create.d.ts +112 -0
- package/build/dist/api/modules/uniswap/auction-create.js +1 -0
- package/build/dist/api/modules/uniswap/auction.d.ts +212 -0
- package/build/dist/api/modules/uniswap/auction.js +1 -0
- package/build/dist/api/modules/uniswap/batch.d.ts +22 -0
- package/build/dist/api/modules/uniswap/batch.js +1 -0
- package/build/dist/api/modules/uniswap/common.d.ts +12 -0
- package/build/dist/api/modules/uniswap/common.js +1 -0
- package/build/dist/api/modules/uniswap/fees.d.ts +54 -0
- package/build/dist/api/modules/uniswap/fees.js +1 -0
- package/build/dist/api/modules/uniswap/index.d.ts +2 -1
- package/build/dist/api/modules/uniswap/index.js +1 -1
- package/build/dist/api/modules/uniswap/local-guard.d.ts +16 -0
- package/build/dist/api/modules/uniswap/local-guard.js +1 -0
- package/build/dist/api/modules/uniswap/oracle.d.ts +2 -0
- package/build/dist/api/modules/uniswap/oracle.js +1 -0
- package/build/dist/api/modules/uniswap/pool-math.d.ts +13 -0
- package/build/dist/api/modules/uniswap/pool-math.js +1 -0
- package/build/dist/api/modules/uniswap/pools.d.ts +30 -0
- package/build/dist/api/modules/uniswap/pools.js +1 -0
- package/build/dist/api/modules/uniswap/position.d.ts +69 -0
- package/build/dist/api/modules/uniswap/position.js +1 -0
- package/build/dist/api/modules/uniswap/protocol.d.ts +154 -0
- package/build/dist/api/modules/uniswap/protocol.js +1 -0
- package/build/dist/api/modules/uniswap/token-jar.d.ts +52 -0
- package/build/dist/api/modules/uniswap/token-jar.js +1 -0
- package/build/dist/api/modules/uniswap/trade-batch.d.ts +2 -0
- package/build/dist/api/modules/uniswap/trade-batch.js +1 -0
- package/build/dist/api/modules/uniswap/trade.d.ts +406 -0
- package/build/dist/api/modules/uniswap/trade.js +1 -0
- package/build/dist/api/modules/uniswap/v2.d.ts +180 -0
- package/build/dist/api/modules/uniswap/v2.js +1 -0
- package/build/dist/api/modules/uniswap/v3.d.ts +23 -2
- package/build/dist/api/modules/uniswap/v3.js +1 -1
- package/build/dist/api/modules/uniswap/v4.d.ts +17 -28
- package/build/dist/api/modules/uniswap/v4.js +1 -1
- package/build/dist/api/modules/uniswap/wrap.d.ts +17 -0
- package/build/dist/api/modules/uniswap/wrap.js +1 -0
- package/build/dist/api/modules/velora/claims.d.ts +86 -0
- package/build/dist/api/modules/velora/claims.js +1 -0
- package/build/dist/api/modules/velora/delta-reads.d.ts +2 -0
- package/build/dist/api/modules/velora/delta-reads.js +1 -0
- package/build/dist/api/modules/velora/index.js +1 -1
- package/build/dist/api/owner-signature.d.ts +29 -0
- package/build/dist/api/owner-signature.js +1 -0
- package/build/dist/api/positions.js +1 -1
- package/build/dist/api/pricenote.d.ts +0 -1
- package/build/dist/api/pricenote.js +1 -1
- package/build/dist/api/prices.js +1 -1
- package/build/dist/api/pricing.d.ts +6 -15
- package/build/dist/api/pricing.js +1 -1
- package/build/dist/api/routes.js +1 -1
- package/build/dist/api/rpc.d.ts +23 -0
- package/build/dist/api/rpc.js +1 -0
- package/build/dist/api/secret-fields.js +1 -1
- package/build/dist/api/send.d.ts +45 -0
- package/build/dist/api/send.js +1 -0
- package/build/dist/api/signing-registry.d.ts +19 -0
- package/build/dist/api/signing-registry.js +1 -0
- package/build/dist/api/signing.d.ts +162 -0
- package/build/dist/api/signing.js +1 -0
- package/build/dist/api/simulate.js +1 -1
- package/build/dist/api/swap.d.ts +62 -27
- package/build/dist/api/swap.js +1 -1
- package/build/dist/api/tokens.d.ts +5 -0
- package/build/dist/api/tokens.js +1 -1
- package/build/dist/api/tool-policy.d.ts +7 -0
- package/build/dist/api/tool-policy.js +1 -1
- package/build/dist/api/tx.js +1 -1
- package/build/dist/api/types.d.ts +12 -0
- package/build/dist/api/untrusted.js +1 -1
- package/build/dist/api/vendor-limits.js +1 -1
- package/build/dist/chunks/2EDXKJ3B.js +1 -0
- package/build/dist/chunks/2EGFALNH.js +1 -0
- package/build/dist/chunks/2LM5C7FQ.js +1 -0
- package/build/dist/chunks/2NA6JLEC.js +1 -0
- package/build/dist/chunks/2O6A6WEX.js +1 -0
- package/build/dist/chunks/37QNUNED.js +1 -0
- package/build/dist/chunks/3CCBUYUM.js +1 -0
- package/build/dist/chunks/3RFSGU2Y.js +1 -0
- package/build/dist/chunks/{XTUXR43N.js → 3Z3U4YPA.js} +1 -1
- package/build/dist/chunks/4CDR7F4I.js +1 -0
- package/build/dist/chunks/4X6JEMSF.js +1 -0
- package/build/dist/chunks/53N7PNJH.js +1 -0
- package/build/dist/chunks/5EHQM6DM.js +1 -0
- package/build/dist/chunks/5H3MQWH7.js +18 -0
- package/build/dist/chunks/5XFXH2JT.js +1 -0
- package/build/dist/chunks/5YS5V2LK.js +1 -0
- package/build/dist/chunks/65QFM4JU.js +1 -0
- package/build/dist/chunks/67TJOOBI.js +1 -0
- package/build/dist/chunks/6HV5BR7P.js +1 -0
- package/build/dist/chunks/{VBWJOG3N.js → 6IM6A5VA.js} +1 -1
- package/build/dist/chunks/6JCEJ66K.js +1 -0
- package/build/dist/chunks/6NR7SVRO.js +1 -0
- package/build/dist/chunks/6SB3FB3P.js +1 -0
- package/build/dist/chunks/6SCCW74G.js +1 -0
- package/build/dist/chunks/73N3TOJL.js +1 -0
- package/build/dist/chunks/74BPMUAG.js +1 -0
- package/build/dist/chunks/7B5UH2VS.js +1 -0
- package/build/dist/chunks/7LDAJ6BM.js +1 -0
- package/build/dist/chunks/7MR37STI.js +1 -0
- package/build/dist/chunks/7US6PD56.js +1 -0
- package/build/dist/chunks/7YU6DELJ.js +1 -0
- package/build/dist/chunks/AFHHRDPJ.js +1 -0
- package/build/dist/chunks/AIWZGIZ6.js +1 -0
- package/build/dist/chunks/AXYOJBX6.js +1 -0
- package/build/dist/chunks/AYM5L6L7.js +1 -0
- package/build/dist/chunks/B72Q2EQ2.js +1 -0
- package/build/dist/chunks/B7V7AA5A.js +1 -0
- package/build/dist/chunks/BBQVTEYB.js +1 -0
- package/build/dist/chunks/BQLLTY4L.js +1 -0
- package/build/dist/chunks/BYXBS45D.js +1 -0
- package/build/dist/chunks/C2FEXLMA.js +1 -0
- package/build/dist/chunks/C3TJLARP.js +1 -0
- package/build/dist/chunks/C3ZZSGSP.js +1 -0
- package/build/dist/chunks/C5LR6F4B.js +1 -0
- package/build/dist/chunks/CAYBSVA6.js +1 -0
- package/build/dist/chunks/CBA776XQ.js +1 -0
- package/build/dist/chunks/CCEWSOBT.js +1 -0
- package/build/dist/chunks/CEQNXF6A.js +1 -0
- package/build/dist/chunks/CS55ERS3.js +1 -0
- package/build/dist/chunks/CXMC3T6B.js +1 -0
- package/build/dist/chunks/{PQHU5A3U.js → D3OWLDVB.js} +1 -1
- package/build/dist/chunks/DHXVYHT4.js +1 -0
- package/build/dist/chunks/E2IVNGLC.js +1 -0
- package/build/dist/chunks/E2Q5IA67.js +1 -0
- package/build/dist/chunks/{RYOVSHKO.js → E7ASOYQI.js} +1 -1
- package/build/dist/chunks/EAEQOS7Y.js +1 -0
- package/build/dist/chunks/EC5W3UZD.js +1 -0
- package/build/dist/chunks/{XAB4OIE3.js → EG6M6SSO.js} +1 -1
- package/build/dist/chunks/EHVPRQHS.js +1 -0
- package/build/dist/chunks/EKGHKEKV.js +1 -0
- package/build/dist/chunks/EVANKNJV.js +1 -0
- package/build/dist/chunks/F2YH72GF.js +1 -0
- package/build/dist/chunks/F3TJCOVV.js +1 -0
- package/build/dist/chunks/F6WBPPBN.js +1 -0
- package/build/dist/chunks/FL3EF72E.js +1 -0
- package/build/dist/chunks/FLXID6I3.js +1 -0
- package/build/dist/chunks/FYTF2QMS.js +1 -0
- package/build/dist/chunks/G7UKNO2I.js +1 -0
- package/build/dist/chunks/GZ5TW3WB.js +1 -0
- package/build/dist/chunks/H4S2ZCWK.js +1 -0
- package/build/dist/chunks/H6ED3RHF.js +1 -0
- package/build/dist/chunks/HACP2Q6D.js +3 -0
- package/build/dist/chunks/HF2AGJZC.js +1 -0
- package/build/dist/chunks/HFQS5344.js +1 -0
- package/build/dist/chunks/{74X7PXPR.js → HIMVOTIU.js} +1 -1
- package/build/dist/chunks/HL2MLC3O.js +1 -0
- package/build/dist/chunks/HNMOB76J.js +1 -0
- package/build/dist/chunks/HQVC6X3T.js +1 -0
- package/build/dist/chunks/HYIEQG4X.js +1 -0
- package/build/dist/chunks/HZUWK5B2.js +1 -0
- package/build/dist/chunks/IHGVCPVA.js +2 -0
- package/build/dist/chunks/IKP3Z3RX.js +1 -0
- package/build/dist/chunks/ITIIHCZK.js +1 -0
- package/build/dist/chunks/IWALIX7Q.js +1 -0
- package/build/dist/chunks/JOMK32QW.js +1 -0
- package/build/dist/chunks/JRO6WTK4.js +1 -0
- package/build/dist/chunks/JRVTSGAT.js +1 -0
- package/build/dist/chunks/JRZLKIYB.js +1 -0
- package/build/dist/chunks/JVTVOK6P.js +1 -0
- package/build/dist/chunks/{XN4WDN3O.js → JXOEJPJ4.js} +1 -1
- package/build/dist/chunks/K2LWX3PZ.js +1 -0
- package/build/dist/chunks/KEPQXFHU.js +1 -0
- package/build/dist/chunks/L24EOVLT.js +1 -0
- package/build/dist/chunks/L2MTPRU7.js +1 -0
- package/build/dist/chunks/LBEMCOND.js +1 -0
- package/build/dist/chunks/LFKSXD3S.js +1 -0
- package/build/dist/chunks/MRWCFTMS.js +1 -0
- package/build/dist/chunks/MWWYIFXJ.js +1 -0
- package/build/dist/chunks/MYBDO5SA.js +1 -0
- package/build/dist/chunks/N77ANGBT.js +1 -0
- package/build/dist/chunks/NCQFWPAW.js +1 -0
- package/build/dist/chunks/NHCRJC5X.js +1 -0
- package/build/dist/chunks/NNZ4SZZ4.js +1 -0
- package/build/dist/chunks/NUWL6TJM.js +1 -0
- package/build/dist/chunks/O47JXRXN.js +1 -0
- package/build/dist/chunks/{MEZH7RPA.js → OG5HRQU4.js} +1 -1
- package/build/dist/chunks/OJLMF5AR.js +1 -0
- package/build/dist/chunks/OJMYESQU.js +1 -0
- package/build/dist/chunks/OJP7Y4AM.js +1 -0
- package/build/dist/chunks/OK3TQFXZ.js +1 -0
- package/build/dist/chunks/OW7GOYKA.js +1 -0
- package/build/dist/chunks/P4UQGWCP.js +1 -0
- package/build/dist/chunks/P6ELT4ZV.js +1 -0
- package/build/dist/chunks/PHXWBC4O.js +1 -0
- package/build/dist/chunks/Q2VMH2LB.js +1 -0
- package/build/dist/chunks/QH3AL3UN.js +1 -0
- package/build/dist/chunks/QHHZDXRG.js +1 -0
- package/build/dist/chunks/QNPEKNWM.js +1 -0
- package/build/dist/chunks/QOY4AANB.js +1 -0
- package/build/dist/chunks/QRUC7EFE.js +1 -0
- package/build/dist/chunks/QYKXWBZC.js +1 -0
- package/build/dist/chunks/REGJY5RC.js +1 -0
- package/build/dist/chunks/RETS2ZEK.js +1 -0
- package/build/dist/chunks/RFJCG4NA.js +1 -0
- package/build/dist/chunks/RNEMTLQG.js +1 -0
- package/build/dist/chunks/RRSODRGT.js +1 -0
- package/build/dist/chunks/SEW7UP5U.js +1 -0
- package/build/dist/chunks/SLSPWXR6.js +1 -0
- package/build/dist/chunks/SPRVVJXI.js +1 -0
- package/build/dist/chunks/SQ5BNSXR.js +1 -0
- package/build/dist/chunks/SQH7A4O3.js +1 -0
- package/build/dist/chunks/SS7U3CMZ.js +1 -0
- package/build/dist/chunks/SXX52Y27.js +1 -0
- package/build/dist/chunks/SYZ55RCX.js +1 -0
- package/build/dist/chunks/T6MTTMLQ.js +1 -0
- package/build/dist/chunks/TAI63P6E.js +1 -0
- package/build/dist/chunks/TCS3ICNE.js +2 -0
- package/build/dist/chunks/TRCP7X5P.js +1 -0
- package/build/dist/chunks/TWR7BF72.js +1 -0
- package/build/dist/chunks/UEYFMXV3.js +1 -0
- package/build/dist/chunks/UWOFA6GV.js +1 -0
- package/build/dist/chunks/UXG67LH3.js +1 -0
- package/build/dist/chunks/V6SDKPZS.js +1 -0
- package/build/dist/chunks/VCWDJQDE.js +1 -0
- package/build/dist/chunks/{6YQ2RX5I.js → VXLJRRKV.js} +1 -1
- package/build/dist/chunks/W6G2QGYF.js +1 -0
- package/build/dist/chunks/WCKMQFGS.js +1117 -0
- package/build/dist/chunks/WHT45EFX.js +1 -0
- package/build/dist/chunks/WIDTTGSH.js +1 -0
- package/build/dist/chunks/WQZLYX64.js +1 -0
- package/build/dist/chunks/X5V2Z2NM.js +1 -0
- package/build/dist/chunks/{Z53DADZ4.js → XCFA73P2.js} +1 -1
- package/build/dist/chunks/XPFVT2EA.js +1 -0
- package/build/dist/chunks/XV6F3RET.js +1 -0
- package/build/dist/chunks/XW7RH7YY.js +1 -0
- package/build/dist/chunks/YHPOXAKA.js +1 -0
- package/build/dist/chunks/YONRUWN7.js +1 -0
- package/build/dist/chunks/YR3QJVJQ.js +1 -0
- package/build/dist/chunks/Z4LJ2GTX.js +1 -0
- package/build/dist/chunks/ZL3KVABO.js +1 -0
- package/build/dist/chunks/ZPM2MFXZ.js +1 -0
- package/build/dist/chunks/ZPNGV34U.js +1 -0
- package/build/dist/chunks/ZQI7B2Z7.js +1 -0
- package/build/dist/chunks/ZT67OMLW.js +1 -0
- package/package.json +13 -9
- package/build/dist/chunks/5B3UVWMV.js +0 -1
- package/build/dist/chunks/5BP72XOA.js +0 -1
- package/build/dist/chunks/5SH3C7XP.js +0 -1
- package/build/dist/chunks/7I6TXFXR.js +0 -1
- package/build/dist/chunks/A5O3SRHY.js +0 -1
- package/build/dist/chunks/B2LA6VVF.js +0 -3
- package/build/dist/chunks/CWQ5WXZQ.js +0 -1
- package/build/dist/chunks/F3TOOLFQ.js +0 -1
- package/build/dist/chunks/GOIVHR4B.js +0 -1
- package/build/dist/chunks/M643PYHO.js +0 -1
- package/build/dist/chunks/NDHEJGWR.js +0 -1
- package/build/dist/chunks/NNJLMS7F.js +0 -1
- package/build/dist/chunks/R5CBH2CR.js +0 -1
- package/build/dist/chunks/SUQ6PIAV.js +0 -1
- package/build/dist/chunks/SXBGOGYQ.js +0 -1
- package/build/dist/chunks/T4IYMYZD.js +0 -1
- package/build/dist/chunks/TFYLOWFO.js +0 -1
- package/build/dist/chunks/TU3KHOZK.js +0 -1
- package/build/dist/chunks/UB5U6SI2.js +0 -1
- package/build/dist/chunks/UIJWIFGV.js +0 -1
- package/build/dist/chunks/WFE3NXBF.js +0 -2
- package/build/dist/chunks/XEN45QST.js +0 -1
- package/build/dist/chunks/XKZOMGC3.js +0 -1
- package/build/dist/chunks/Y2SGXWFM.js +0 -1
- package/build/dist/chunks/Z3FZWNAJ.js +0 -1
- package/build/dist/chunks/ZJUNO5N7.js +0 -1
- package/build/dist/chunks/ZZLHDHOT.js +0 -1
|
@@ -0,0 +1,1690 @@
|
|
|
1
|
+
export declare const midnightAbi: readonly [{
|
|
2
|
+
readonly name: "claimContinuousFee";
|
|
3
|
+
readonly type: "function";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "market";
|
|
6
|
+
readonly type: "tuple";
|
|
7
|
+
readonly components: readonly [{
|
|
8
|
+
readonly name: "chainId";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
readonly internalType: "uint256";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "midnight";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "loanToken";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
readonly internalType: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "collateralParams";
|
|
21
|
+
readonly type: "tuple[]";
|
|
22
|
+
readonly components: readonly [{
|
|
23
|
+
readonly name: "token";
|
|
24
|
+
readonly type: "address";
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "lltv";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "liquidationCursor";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "oracle";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
}];
|
|
39
|
+
readonly internalType: "struct CollateralParams[]";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "maturity";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "rcfThreshold";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "enterGate";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "liquidatorGate";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
}];
|
|
57
|
+
readonly internalType: "struct Market";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "amount";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "receiver";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
}];
|
|
67
|
+
readonly outputs: readonly [];
|
|
68
|
+
readonly stateMutability: "nonpayable";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "claimSettlementFee";
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly name: "token";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "amount";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "receiver";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [];
|
|
86
|
+
readonly stateMutability: "nonpayable";
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "claimableSettlementFee";
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
readonly inputs: readonly [{
|
|
91
|
+
readonly name: "token";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}];
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "collateral";
|
|
103
|
+
readonly type: "function";
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly name: "id";
|
|
106
|
+
readonly type: "bytes32";
|
|
107
|
+
readonly internalType: "bytes32";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "user";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "index";
|
|
114
|
+
readonly type: "uint256";
|
|
115
|
+
readonly internalType: "uint256";
|
|
116
|
+
}];
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly name: "";
|
|
119
|
+
readonly type: "uint128";
|
|
120
|
+
readonly internalType: "uint128";
|
|
121
|
+
}];
|
|
122
|
+
readonly stateMutability: "view";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "collateralBitmap";
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly name: "id";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
readonly internalType: "bytes32";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "user";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
}];
|
|
135
|
+
readonly outputs: readonly [{
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly type: "uint128";
|
|
138
|
+
readonly internalType: "uint128";
|
|
139
|
+
}];
|
|
140
|
+
readonly stateMutability: "view";
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "configurator";
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly inputs: readonly [];
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "consumed";
|
|
153
|
+
readonly type: "function";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly name: "user";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
readonly internalType: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "group";
|
|
160
|
+
readonly type: "bytes32";
|
|
161
|
+
readonly internalType: "bytes32";
|
|
162
|
+
}];
|
|
163
|
+
readonly outputs: readonly [{
|
|
164
|
+
readonly name: "";
|
|
165
|
+
readonly type: "uint128";
|
|
166
|
+
readonly internalType: "uint128";
|
|
167
|
+
}];
|
|
168
|
+
readonly stateMutability: "view";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "continuousFee";
|
|
171
|
+
readonly type: "function";
|
|
172
|
+
readonly inputs: readonly [{
|
|
173
|
+
readonly name: "id";
|
|
174
|
+
readonly type: "bytes32";
|
|
175
|
+
readonly internalType: "bytes32";
|
|
176
|
+
}];
|
|
177
|
+
readonly outputs: readonly [{
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "uint32";
|
|
180
|
+
readonly internalType: "uint32";
|
|
181
|
+
}];
|
|
182
|
+
readonly stateMutability: "view";
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "continuousFeeCredit";
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly name: "id";
|
|
188
|
+
readonly type: "bytes32";
|
|
189
|
+
readonly internalType: "bytes32";
|
|
190
|
+
}];
|
|
191
|
+
readonly outputs: readonly [{
|
|
192
|
+
readonly name: "";
|
|
193
|
+
readonly type: "uint128";
|
|
194
|
+
readonly internalType: "uint128";
|
|
195
|
+
}];
|
|
196
|
+
readonly stateMutability: "view";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "credit";
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "id";
|
|
202
|
+
readonly type: "bytes32";
|
|
203
|
+
readonly internalType: "bytes32";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "user";
|
|
206
|
+
readonly type: "address";
|
|
207
|
+
readonly internalType: "address";
|
|
208
|
+
}];
|
|
209
|
+
readonly outputs: readonly [{
|
|
210
|
+
readonly name: "";
|
|
211
|
+
readonly type: "uint128";
|
|
212
|
+
readonly internalType: "uint128";
|
|
213
|
+
}];
|
|
214
|
+
readonly stateMutability: "view";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "debt";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly name: "id";
|
|
220
|
+
readonly type: "bytes32";
|
|
221
|
+
readonly internalType: "bytes32";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "user";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
readonly internalType: "address";
|
|
226
|
+
}];
|
|
227
|
+
readonly outputs: readonly [{
|
|
228
|
+
readonly name: "";
|
|
229
|
+
readonly type: "uint128";
|
|
230
|
+
readonly internalType: "uint128";
|
|
231
|
+
}];
|
|
232
|
+
readonly stateMutability: "view";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "defaultContinuousFee";
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly name: "loanToken";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
}];
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly type: "uint32";
|
|
244
|
+
readonly internalType: "uint32";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "defaultSettlementFeeCbp";
|
|
249
|
+
readonly type: "function";
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "loanToken";
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
readonly internalType: "address";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
readonly internalType: "uint256";
|
|
258
|
+
}];
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly name: "";
|
|
261
|
+
readonly type: "uint16";
|
|
262
|
+
readonly internalType: "uint16";
|
|
263
|
+
}];
|
|
264
|
+
readonly stateMutability: "view";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "enableLiquidationCursor";
|
|
267
|
+
readonly type: "function";
|
|
268
|
+
readonly inputs: readonly [{
|
|
269
|
+
readonly name: "liquidationCursor";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
readonly internalType: "uint256";
|
|
272
|
+
}];
|
|
273
|
+
readonly outputs: readonly [];
|
|
274
|
+
readonly stateMutability: "nonpayable";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "enableLltv";
|
|
277
|
+
readonly type: "function";
|
|
278
|
+
readonly inputs: readonly [{
|
|
279
|
+
readonly name: "lltv";
|
|
280
|
+
readonly type: "uint256";
|
|
281
|
+
readonly internalType: "uint256";
|
|
282
|
+
}];
|
|
283
|
+
readonly outputs: readonly [];
|
|
284
|
+
readonly stateMutability: "nonpayable";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "feeClaimer";
|
|
287
|
+
readonly type: "function";
|
|
288
|
+
readonly inputs: readonly [];
|
|
289
|
+
readonly outputs: readonly [{
|
|
290
|
+
readonly name: "";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
}];
|
|
294
|
+
readonly stateMutability: "view";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "feeSetter";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
readonly inputs: readonly [];
|
|
299
|
+
readonly outputs: readonly [{
|
|
300
|
+
readonly name: "";
|
|
301
|
+
readonly type: "address";
|
|
302
|
+
readonly internalType: "address";
|
|
303
|
+
}];
|
|
304
|
+
readonly stateMutability: "view";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "isAuthorized";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly name: "authorizer";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
readonly internalType: "address";
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "authorized";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
readonly internalType: "address";
|
|
316
|
+
}];
|
|
317
|
+
readonly outputs: readonly [{
|
|
318
|
+
readonly name: "";
|
|
319
|
+
readonly type: "bool";
|
|
320
|
+
readonly internalType: "bool";
|
|
321
|
+
}];
|
|
322
|
+
readonly stateMutability: "view";
|
|
323
|
+
}, {
|
|
324
|
+
readonly name: "isHealthy";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
readonly inputs: readonly [{
|
|
327
|
+
readonly name: "market";
|
|
328
|
+
readonly type: "tuple";
|
|
329
|
+
readonly components: readonly [{
|
|
330
|
+
readonly name: "chainId";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
readonly internalType: "uint256";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "midnight";
|
|
335
|
+
readonly type: "address";
|
|
336
|
+
readonly internalType: "address";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "loanToken";
|
|
339
|
+
readonly type: "address";
|
|
340
|
+
readonly internalType: "address";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "collateralParams";
|
|
343
|
+
readonly type: "tuple[]";
|
|
344
|
+
readonly components: readonly [{
|
|
345
|
+
readonly name: "token";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
readonly internalType: "address";
|
|
348
|
+
}, {
|
|
349
|
+
readonly name: "lltv";
|
|
350
|
+
readonly type: "uint256";
|
|
351
|
+
readonly internalType: "uint256";
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "liquidationCursor";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
readonly internalType: "uint256";
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "oracle";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
readonly internalType: "address";
|
|
360
|
+
}];
|
|
361
|
+
readonly internalType: "struct CollateralParams[]";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "maturity";
|
|
364
|
+
readonly type: "uint256";
|
|
365
|
+
readonly internalType: "uint256";
|
|
366
|
+
}, {
|
|
367
|
+
readonly name: "rcfThreshold";
|
|
368
|
+
readonly type: "uint256";
|
|
369
|
+
readonly internalType: "uint256";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "enterGate";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
readonly internalType: "address";
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "liquidatorGate";
|
|
376
|
+
readonly type: "address";
|
|
377
|
+
readonly internalType: "address";
|
|
378
|
+
}];
|
|
379
|
+
readonly internalType: "struct Market";
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "id";
|
|
382
|
+
readonly type: "bytes32";
|
|
383
|
+
readonly internalType: "bytes32";
|
|
384
|
+
}, {
|
|
385
|
+
readonly name: "borrower";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
}];
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly name: "";
|
|
391
|
+
readonly type: "bool";
|
|
392
|
+
readonly internalType: "bool";
|
|
393
|
+
}];
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "isLiquidationCursorEnabled";
|
|
397
|
+
readonly type: "function";
|
|
398
|
+
readonly inputs: readonly [{
|
|
399
|
+
readonly name: "liquidationCursor";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
}];
|
|
403
|
+
readonly outputs: readonly [{
|
|
404
|
+
readonly name: "";
|
|
405
|
+
readonly type: "bool";
|
|
406
|
+
readonly internalType: "bool";
|
|
407
|
+
}];
|
|
408
|
+
readonly stateMutability: "view";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "isLltvEnabled";
|
|
411
|
+
readonly type: "function";
|
|
412
|
+
readonly inputs: readonly [{
|
|
413
|
+
readonly name: "lltv";
|
|
414
|
+
readonly type: "uint256";
|
|
415
|
+
readonly internalType: "uint256";
|
|
416
|
+
}];
|
|
417
|
+
readonly outputs: readonly [{
|
|
418
|
+
readonly name: "";
|
|
419
|
+
readonly type: "bool";
|
|
420
|
+
readonly internalType: "bool";
|
|
421
|
+
}];
|
|
422
|
+
readonly stateMutability: "view";
|
|
423
|
+
}, {
|
|
424
|
+
readonly name: "lastAccrual";
|
|
425
|
+
readonly type: "function";
|
|
426
|
+
readonly inputs: readonly [{
|
|
427
|
+
readonly name: "id";
|
|
428
|
+
readonly type: "bytes32";
|
|
429
|
+
readonly internalType: "bytes32";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "user";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
readonly internalType: "address";
|
|
434
|
+
}];
|
|
435
|
+
readonly outputs: readonly [{
|
|
436
|
+
readonly name: "";
|
|
437
|
+
readonly type: "uint128";
|
|
438
|
+
readonly internalType: "uint128";
|
|
439
|
+
}];
|
|
440
|
+
readonly stateMutability: "view";
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "lastLossFactor";
|
|
443
|
+
readonly type: "function";
|
|
444
|
+
readonly inputs: readonly [{
|
|
445
|
+
readonly name: "id";
|
|
446
|
+
readonly type: "bytes32";
|
|
447
|
+
readonly internalType: "bytes32";
|
|
448
|
+
}, {
|
|
449
|
+
readonly name: "user";
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
}];
|
|
453
|
+
readonly outputs: readonly [{
|
|
454
|
+
readonly name: "";
|
|
455
|
+
readonly type: "uint128";
|
|
456
|
+
readonly internalType: "uint128";
|
|
457
|
+
}];
|
|
458
|
+
readonly stateMutability: "view";
|
|
459
|
+
}, {
|
|
460
|
+
readonly name: "liquidate";
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
readonly inputs: readonly [{
|
|
463
|
+
readonly name: "market";
|
|
464
|
+
readonly type: "tuple";
|
|
465
|
+
readonly components: readonly [{
|
|
466
|
+
readonly name: "chainId";
|
|
467
|
+
readonly type: "uint256";
|
|
468
|
+
readonly internalType: "uint256";
|
|
469
|
+
}, {
|
|
470
|
+
readonly name: "midnight";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
readonly internalType: "address";
|
|
473
|
+
}, {
|
|
474
|
+
readonly name: "loanToken";
|
|
475
|
+
readonly type: "address";
|
|
476
|
+
readonly internalType: "address";
|
|
477
|
+
}, {
|
|
478
|
+
readonly name: "collateralParams";
|
|
479
|
+
readonly type: "tuple[]";
|
|
480
|
+
readonly components: readonly [{
|
|
481
|
+
readonly name: "token";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "lltv";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
readonly internalType: "uint256";
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "liquidationCursor";
|
|
490
|
+
readonly type: "uint256";
|
|
491
|
+
readonly internalType: "uint256";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "oracle";
|
|
494
|
+
readonly type: "address";
|
|
495
|
+
readonly internalType: "address";
|
|
496
|
+
}];
|
|
497
|
+
readonly internalType: "struct CollateralParams[]";
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "maturity";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
readonly internalType: "uint256";
|
|
502
|
+
}, {
|
|
503
|
+
readonly name: "rcfThreshold";
|
|
504
|
+
readonly type: "uint256";
|
|
505
|
+
readonly internalType: "uint256";
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "enterGate";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "liquidatorGate";
|
|
512
|
+
readonly type: "address";
|
|
513
|
+
readonly internalType: "address";
|
|
514
|
+
}];
|
|
515
|
+
readonly internalType: "struct Market";
|
|
516
|
+
}, {
|
|
517
|
+
readonly name: "collateralIndex";
|
|
518
|
+
readonly type: "uint256";
|
|
519
|
+
readonly internalType: "uint256";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "seizedAssets";
|
|
522
|
+
readonly type: "uint256";
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
}, {
|
|
525
|
+
readonly name: "repaidUnits";
|
|
526
|
+
readonly type: "uint256";
|
|
527
|
+
readonly internalType: "uint256";
|
|
528
|
+
}, {
|
|
529
|
+
readonly name: "borrower";
|
|
530
|
+
readonly type: "address";
|
|
531
|
+
readonly internalType: "address";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "postMaturityMode";
|
|
534
|
+
readonly type: "bool";
|
|
535
|
+
readonly internalType: "bool";
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "receiver";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
readonly internalType: "address";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "callback";
|
|
542
|
+
readonly type: "address";
|
|
543
|
+
readonly internalType: "address";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "data";
|
|
546
|
+
readonly type: "bytes";
|
|
547
|
+
readonly internalType: "bytes";
|
|
548
|
+
}];
|
|
549
|
+
readonly outputs: readonly [{
|
|
550
|
+
readonly name: "";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
readonly internalType: "uint256";
|
|
553
|
+
}, {
|
|
554
|
+
readonly name: "";
|
|
555
|
+
readonly type: "uint256";
|
|
556
|
+
readonly internalType: "uint256";
|
|
557
|
+
}];
|
|
558
|
+
readonly stateMutability: "nonpayable";
|
|
559
|
+
}, {
|
|
560
|
+
readonly name: "liquidationLocked";
|
|
561
|
+
readonly type: "function";
|
|
562
|
+
readonly inputs: readonly [{
|
|
563
|
+
readonly name: "id";
|
|
564
|
+
readonly type: "bytes32";
|
|
565
|
+
readonly internalType: "bytes32";
|
|
566
|
+
}, {
|
|
567
|
+
readonly name: "user";
|
|
568
|
+
readonly type: "address";
|
|
569
|
+
readonly internalType: "address";
|
|
570
|
+
}];
|
|
571
|
+
readonly outputs: readonly [{
|
|
572
|
+
readonly name: "";
|
|
573
|
+
readonly type: "bool";
|
|
574
|
+
readonly internalType: "bool";
|
|
575
|
+
}];
|
|
576
|
+
readonly stateMutability: "view";
|
|
577
|
+
}, {
|
|
578
|
+
readonly name: "lossFactor";
|
|
579
|
+
readonly type: "function";
|
|
580
|
+
readonly inputs: readonly [{
|
|
581
|
+
readonly name: "id";
|
|
582
|
+
readonly type: "bytes32";
|
|
583
|
+
readonly internalType: "bytes32";
|
|
584
|
+
}];
|
|
585
|
+
readonly outputs: readonly [{
|
|
586
|
+
readonly name: "";
|
|
587
|
+
readonly type: "uint128";
|
|
588
|
+
readonly internalType: "uint128";
|
|
589
|
+
}];
|
|
590
|
+
readonly stateMutability: "view";
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "marketState";
|
|
593
|
+
readonly type: "function";
|
|
594
|
+
readonly inputs: readonly [{
|
|
595
|
+
readonly name: "id";
|
|
596
|
+
readonly type: "bytes32";
|
|
597
|
+
readonly internalType: "bytes32";
|
|
598
|
+
}];
|
|
599
|
+
readonly outputs: readonly [{
|
|
600
|
+
readonly name: "totalUnits";
|
|
601
|
+
readonly type: "uint128";
|
|
602
|
+
readonly internalType: "uint128";
|
|
603
|
+
}, {
|
|
604
|
+
readonly name: "lossFactor";
|
|
605
|
+
readonly type: "uint128";
|
|
606
|
+
readonly internalType: "uint128";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "withdrawable";
|
|
609
|
+
readonly type: "uint128";
|
|
610
|
+
readonly internalType: "uint128";
|
|
611
|
+
}, {
|
|
612
|
+
readonly name: "continuousFeeCredit";
|
|
613
|
+
readonly type: "uint128";
|
|
614
|
+
readonly internalType: "uint128";
|
|
615
|
+
}, {
|
|
616
|
+
readonly name: "settlementFeeCbp0";
|
|
617
|
+
readonly type: "uint16";
|
|
618
|
+
readonly internalType: "uint16";
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "settlementFeeCbp1";
|
|
621
|
+
readonly type: "uint16";
|
|
622
|
+
readonly internalType: "uint16";
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "settlementFeeCbp2";
|
|
625
|
+
readonly type: "uint16";
|
|
626
|
+
readonly internalType: "uint16";
|
|
627
|
+
}, {
|
|
628
|
+
readonly name: "settlementFeeCbp3";
|
|
629
|
+
readonly type: "uint16";
|
|
630
|
+
readonly internalType: "uint16";
|
|
631
|
+
}, {
|
|
632
|
+
readonly name: "settlementFeeCbp4";
|
|
633
|
+
readonly type: "uint16";
|
|
634
|
+
readonly internalType: "uint16";
|
|
635
|
+
}, {
|
|
636
|
+
readonly name: "settlementFeeCbp5";
|
|
637
|
+
readonly type: "uint16";
|
|
638
|
+
readonly internalType: "uint16";
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "settlementFeeCbp6";
|
|
641
|
+
readonly type: "uint16";
|
|
642
|
+
readonly internalType: "uint16";
|
|
643
|
+
}, {
|
|
644
|
+
readonly name: "continuousFee";
|
|
645
|
+
readonly type: "uint32";
|
|
646
|
+
readonly internalType: "uint32";
|
|
647
|
+
}, {
|
|
648
|
+
readonly name: "tickSpacing";
|
|
649
|
+
readonly type: "uint8";
|
|
650
|
+
readonly internalType: "uint8";
|
|
651
|
+
}];
|
|
652
|
+
readonly stateMutability: "view";
|
|
653
|
+
}, {
|
|
654
|
+
readonly name: "multicall";
|
|
655
|
+
readonly type: "function";
|
|
656
|
+
readonly inputs: readonly [{
|
|
657
|
+
readonly name: "calls";
|
|
658
|
+
readonly type: "bytes[]";
|
|
659
|
+
readonly internalType: "bytes[]";
|
|
660
|
+
}];
|
|
661
|
+
readonly outputs: readonly [];
|
|
662
|
+
readonly stateMutability: "nonpayable";
|
|
663
|
+
}, {
|
|
664
|
+
readonly name: "pendingFee";
|
|
665
|
+
readonly type: "function";
|
|
666
|
+
readonly inputs: readonly [{
|
|
667
|
+
readonly name: "id";
|
|
668
|
+
readonly type: "bytes32";
|
|
669
|
+
readonly internalType: "bytes32";
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "user";
|
|
672
|
+
readonly type: "address";
|
|
673
|
+
readonly internalType: "address";
|
|
674
|
+
}];
|
|
675
|
+
readonly outputs: readonly [{
|
|
676
|
+
readonly name: "";
|
|
677
|
+
readonly type: "uint128";
|
|
678
|
+
readonly internalType: "uint128";
|
|
679
|
+
}];
|
|
680
|
+
readonly stateMutability: "view";
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "position";
|
|
683
|
+
readonly type: "function";
|
|
684
|
+
readonly inputs: readonly [{
|
|
685
|
+
readonly name: "id";
|
|
686
|
+
readonly type: "bytes32";
|
|
687
|
+
readonly internalType: "bytes32";
|
|
688
|
+
}, {
|
|
689
|
+
readonly name: "user";
|
|
690
|
+
readonly type: "address";
|
|
691
|
+
readonly internalType: "address";
|
|
692
|
+
}];
|
|
693
|
+
readonly outputs: readonly [{
|
|
694
|
+
readonly name: "credit";
|
|
695
|
+
readonly type: "uint128";
|
|
696
|
+
readonly internalType: "uint128";
|
|
697
|
+
}, {
|
|
698
|
+
readonly name: "pendingFee";
|
|
699
|
+
readonly type: "uint128";
|
|
700
|
+
readonly internalType: "uint128";
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "lastLossFactor";
|
|
703
|
+
readonly type: "uint128";
|
|
704
|
+
readonly internalType: "uint128";
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "lastAccrual";
|
|
707
|
+
readonly type: "uint128";
|
|
708
|
+
readonly internalType: "uint128";
|
|
709
|
+
}, {
|
|
710
|
+
readonly name: "debt";
|
|
711
|
+
readonly type: "uint128";
|
|
712
|
+
readonly internalType: "uint128";
|
|
713
|
+
}, {
|
|
714
|
+
readonly name: "collateralBitmap";
|
|
715
|
+
readonly type: "uint128";
|
|
716
|
+
readonly internalType: "uint128";
|
|
717
|
+
}];
|
|
718
|
+
readonly stateMutability: "view";
|
|
719
|
+
}, {
|
|
720
|
+
readonly name: "repay";
|
|
721
|
+
readonly type: "function";
|
|
722
|
+
readonly inputs: readonly [{
|
|
723
|
+
readonly name: "market";
|
|
724
|
+
readonly type: "tuple";
|
|
725
|
+
readonly components: readonly [{
|
|
726
|
+
readonly name: "chainId";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
readonly internalType: "uint256";
|
|
729
|
+
}, {
|
|
730
|
+
readonly name: "midnight";
|
|
731
|
+
readonly type: "address";
|
|
732
|
+
readonly internalType: "address";
|
|
733
|
+
}, {
|
|
734
|
+
readonly name: "loanToken";
|
|
735
|
+
readonly type: "address";
|
|
736
|
+
readonly internalType: "address";
|
|
737
|
+
}, {
|
|
738
|
+
readonly name: "collateralParams";
|
|
739
|
+
readonly type: "tuple[]";
|
|
740
|
+
readonly components: readonly [{
|
|
741
|
+
readonly name: "token";
|
|
742
|
+
readonly type: "address";
|
|
743
|
+
readonly internalType: "address";
|
|
744
|
+
}, {
|
|
745
|
+
readonly name: "lltv";
|
|
746
|
+
readonly type: "uint256";
|
|
747
|
+
readonly internalType: "uint256";
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "liquidationCursor";
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
readonly internalType: "uint256";
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "oracle";
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
readonly internalType: "address";
|
|
756
|
+
}];
|
|
757
|
+
readonly internalType: "struct CollateralParams[]";
|
|
758
|
+
}, {
|
|
759
|
+
readonly name: "maturity";
|
|
760
|
+
readonly type: "uint256";
|
|
761
|
+
readonly internalType: "uint256";
|
|
762
|
+
}, {
|
|
763
|
+
readonly name: "rcfThreshold";
|
|
764
|
+
readonly type: "uint256";
|
|
765
|
+
readonly internalType: "uint256";
|
|
766
|
+
}, {
|
|
767
|
+
readonly name: "enterGate";
|
|
768
|
+
readonly type: "address";
|
|
769
|
+
readonly internalType: "address";
|
|
770
|
+
}, {
|
|
771
|
+
readonly name: "liquidatorGate";
|
|
772
|
+
readonly type: "address";
|
|
773
|
+
readonly internalType: "address";
|
|
774
|
+
}];
|
|
775
|
+
readonly internalType: "struct Market";
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "units";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
readonly internalType: "uint256";
|
|
780
|
+
}, {
|
|
781
|
+
readonly name: "onBehalf";
|
|
782
|
+
readonly type: "address";
|
|
783
|
+
readonly internalType: "address";
|
|
784
|
+
}, {
|
|
785
|
+
readonly name: "callback";
|
|
786
|
+
readonly type: "address";
|
|
787
|
+
readonly internalType: "address";
|
|
788
|
+
}, {
|
|
789
|
+
readonly name: "data";
|
|
790
|
+
readonly type: "bytes";
|
|
791
|
+
readonly internalType: "bytes";
|
|
792
|
+
}];
|
|
793
|
+
readonly outputs: readonly [];
|
|
794
|
+
readonly stateMutability: "nonpayable";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "setConfigurator";
|
|
797
|
+
readonly type: "function";
|
|
798
|
+
readonly inputs: readonly [{
|
|
799
|
+
readonly name: "newConfigurator";
|
|
800
|
+
readonly type: "address";
|
|
801
|
+
readonly internalType: "address";
|
|
802
|
+
}];
|
|
803
|
+
readonly outputs: readonly [];
|
|
804
|
+
readonly stateMutability: "nonpayable";
|
|
805
|
+
}, {
|
|
806
|
+
readonly name: "setConsumed";
|
|
807
|
+
readonly type: "function";
|
|
808
|
+
readonly inputs: readonly [{
|
|
809
|
+
readonly name: "group";
|
|
810
|
+
readonly type: "bytes32";
|
|
811
|
+
readonly internalType: "bytes32";
|
|
812
|
+
}, {
|
|
813
|
+
readonly name: "amount";
|
|
814
|
+
readonly type: "uint128";
|
|
815
|
+
readonly internalType: "uint128";
|
|
816
|
+
}, {
|
|
817
|
+
readonly name: "onBehalf";
|
|
818
|
+
readonly type: "address";
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
}];
|
|
821
|
+
readonly outputs: readonly [];
|
|
822
|
+
readonly stateMutability: "nonpayable";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "setDefaultContinuousFee";
|
|
825
|
+
readonly type: "function";
|
|
826
|
+
readonly inputs: readonly [{
|
|
827
|
+
readonly name: "loanToken";
|
|
828
|
+
readonly type: "address";
|
|
829
|
+
readonly internalType: "address";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "newContinuousFee";
|
|
832
|
+
readonly type: "uint256";
|
|
833
|
+
readonly internalType: "uint256";
|
|
834
|
+
}];
|
|
835
|
+
readonly outputs: readonly [];
|
|
836
|
+
readonly stateMutability: "nonpayable";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "setDefaultSettlementFee";
|
|
839
|
+
readonly type: "function";
|
|
840
|
+
readonly inputs: readonly [{
|
|
841
|
+
readonly name: "loanToken";
|
|
842
|
+
readonly type: "address";
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
}, {
|
|
845
|
+
readonly name: "index";
|
|
846
|
+
readonly type: "uint256";
|
|
847
|
+
readonly internalType: "uint256";
|
|
848
|
+
}, {
|
|
849
|
+
readonly name: "newSettlementFee";
|
|
850
|
+
readonly type: "uint256";
|
|
851
|
+
readonly internalType: "uint256";
|
|
852
|
+
}];
|
|
853
|
+
readonly outputs: readonly [];
|
|
854
|
+
readonly stateMutability: "nonpayable";
|
|
855
|
+
}, {
|
|
856
|
+
readonly name: "setFeeClaimer";
|
|
857
|
+
readonly type: "function";
|
|
858
|
+
readonly inputs: readonly [{
|
|
859
|
+
readonly name: "newFeeClaimer";
|
|
860
|
+
readonly type: "address";
|
|
861
|
+
readonly internalType: "address";
|
|
862
|
+
}];
|
|
863
|
+
readonly outputs: readonly [];
|
|
864
|
+
readonly stateMutability: "nonpayable";
|
|
865
|
+
}, {
|
|
866
|
+
readonly name: "setFeeSetter";
|
|
867
|
+
readonly type: "function";
|
|
868
|
+
readonly inputs: readonly [{
|
|
869
|
+
readonly name: "newFeeSetter";
|
|
870
|
+
readonly type: "address";
|
|
871
|
+
readonly internalType: "address";
|
|
872
|
+
}];
|
|
873
|
+
readonly outputs: readonly [];
|
|
874
|
+
readonly stateMutability: "nonpayable";
|
|
875
|
+
}, {
|
|
876
|
+
readonly name: "setIsAuthorized";
|
|
877
|
+
readonly type: "function";
|
|
878
|
+
readonly inputs: readonly [{
|
|
879
|
+
readonly name: "authorized";
|
|
880
|
+
readonly type: "address";
|
|
881
|
+
readonly internalType: "address";
|
|
882
|
+
}, {
|
|
883
|
+
readonly name: "newIsAuthorized";
|
|
884
|
+
readonly type: "bool";
|
|
885
|
+
readonly internalType: "bool";
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "onBehalf";
|
|
888
|
+
readonly type: "address";
|
|
889
|
+
readonly internalType: "address";
|
|
890
|
+
}];
|
|
891
|
+
readonly outputs: readonly [];
|
|
892
|
+
readonly stateMutability: "nonpayable";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "setMarketContinuousFee";
|
|
895
|
+
readonly type: "function";
|
|
896
|
+
readonly inputs: readonly [{
|
|
897
|
+
readonly name: "id";
|
|
898
|
+
readonly type: "bytes32";
|
|
899
|
+
readonly internalType: "bytes32";
|
|
900
|
+
}, {
|
|
901
|
+
readonly name: "newContinuousFee";
|
|
902
|
+
readonly type: "uint256";
|
|
903
|
+
readonly internalType: "uint256";
|
|
904
|
+
}];
|
|
905
|
+
readonly outputs: readonly [];
|
|
906
|
+
readonly stateMutability: "nonpayable";
|
|
907
|
+
}, {
|
|
908
|
+
readonly name: "setMarketSettlementFee";
|
|
909
|
+
readonly type: "function";
|
|
910
|
+
readonly inputs: readonly [{
|
|
911
|
+
readonly name: "id";
|
|
912
|
+
readonly type: "bytes32";
|
|
913
|
+
readonly internalType: "bytes32";
|
|
914
|
+
}, {
|
|
915
|
+
readonly name: "index";
|
|
916
|
+
readonly type: "uint256";
|
|
917
|
+
readonly internalType: "uint256";
|
|
918
|
+
}, {
|
|
919
|
+
readonly name: "newSettlementFee";
|
|
920
|
+
readonly type: "uint256";
|
|
921
|
+
readonly internalType: "uint256";
|
|
922
|
+
}];
|
|
923
|
+
readonly outputs: readonly [];
|
|
924
|
+
readonly stateMutability: "nonpayable";
|
|
925
|
+
}, {
|
|
926
|
+
readonly name: "setMarketTickSpacing";
|
|
927
|
+
readonly type: "function";
|
|
928
|
+
readonly inputs: readonly [{
|
|
929
|
+
readonly name: "id";
|
|
930
|
+
readonly type: "bytes32";
|
|
931
|
+
readonly internalType: "bytes32";
|
|
932
|
+
}, {
|
|
933
|
+
readonly name: "newTickSpacing";
|
|
934
|
+
readonly type: "uint256";
|
|
935
|
+
readonly internalType: "uint256";
|
|
936
|
+
}];
|
|
937
|
+
readonly outputs: readonly [];
|
|
938
|
+
readonly stateMutability: "nonpayable";
|
|
939
|
+
}, {
|
|
940
|
+
readonly name: "setTickSpacingSetter";
|
|
941
|
+
readonly type: "function";
|
|
942
|
+
readonly inputs: readonly [{
|
|
943
|
+
readonly name: "newTickSpacingSetter";
|
|
944
|
+
readonly type: "address";
|
|
945
|
+
readonly internalType: "address";
|
|
946
|
+
}];
|
|
947
|
+
readonly outputs: readonly [];
|
|
948
|
+
readonly stateMutability: "nonpayable";
|
|
949
|
+
}, {
|
|
950
|
+
readonly name: "settlementFee";
|
|
951
|
+
readonly type: "function";
|
|
952
|
+
readonly inputs: readonly [{
|
|
953
|
+
readonly name: "id";
|
|
954
|
+
readonly type: "bytes32";
|
|
955
|
+
readonly internalType: "bytes32";
|
|
956
|
+
}, {
|
|
957
|
+
readonly name: "timeToMaturity";
|
|
958
|
+
readonly type: "uint256";
|
|
959
|
+
readonly internalType: "uint256";
|
|
960
|
+
}];
|
|
961
|
+
readonly outputs: readonly [{
|
|
962
|
+
readonly name: "";
|
|
963
|
+
readonly type: "uint256";
|
|
964
|
+
readonly internalType: "uint256";
|
|
965
|
+
}];
|
|
966
|
+
readonly stateMutability: "view";
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "settlementFeeCbps";
|
|
969
|
+
readonly type: "function";
|
|
970
|
+
readonly inputs: readonly [{
|
|
971
|
+
readonly name: "id";
|
|
972
|
+
readonly type: "bytes32";
|
|
973
|
+
readonly internalType: "bytes32";
|
|
974
|
+
}];
|
|
975
|
+
readonly outputs: readonly [{
|
|
976
|
+
readonly name: "";
|
|
977
|
+
readonly type: "uint16[7]";
|
|
978
|
+
readonly internalType: "uint16[7]";
|
|
979
|
+
}];
|
|
980
|
+
readonly stateMutability: "view";
|
|
981
|
+
}, {
|
|
982
|
+
readonly name: "supplyCollateral";
|
|
983
|
+
readonly type: "function";
|
|
984
|
+
readonly inputs: readonly [{
|
|
985
|
+
readonly name: "market";
|
|
986
|
+
readonly type: "tuple";
|
|
987
|
+
readonly components: readonly [{
|
|
988
|
+
readonly name: "chainId";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
readonly internalType: "uint256";
|
|
991
|
+
}, {
|
|
992
|
+
readonly name: "midnight";
|
|
993
|
+
readonly type: "address";
|
|
994
|
+
readonly internalType: "address";
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "loanToken";
|
|
997
|
+
readonly type: "address";
|
|
998
|
+
readonly internalType: "address";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly name: "collateralParams";
|
|
1001
|
+
readonly type: "tuple[]";
|
|
1002
|
+
readonly components: readonly [{
|
|
1003
|
+
readonly name: "token";
|
|
1004
|
+
readonly type: "address";
|
|
1005
|
+
readonly internalType: "address";
|
|
1006
|
+
}, {
|
|
1007
|
+
readonly name: "lltv";
|
|
1008
|
+
readonly type: "uint256";
|
|
1009
|
+
readonly internalType: "uint256";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly name: "liquidationCursor";
|
|
1012
|
+
readonly type: "uint256";
|
|
1013
|
+
readonly internalType: "uint256";
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly name: "oracle";
|
|
1016
|
+
readonly type: "address";
|
|
1017
|
+
readonly internalType: "address";
|
|
1018
|
+
}];
|
|
1019
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly name: "maturity";
|
|
1022
|
+
readonly type: "uint256";
|
|
1023
|
+
readonly internalType: "uint256";
|
|
1024
|
+
}, {
|
|
1025
|
+
readonly name: "rcfThreshold";
|
|
1026
|
+
readonly type: "uint256";
|
|
1027
|
+
readonly internalType: "uint256";
|
|
1028
|
+
}, {
|
|
1029
|
+
readonly name: "enterGate";
|
|
1030
|
+
readonly type: "address";
|
|
1031
|
+
readonly internalType: "address";
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly name: "liquidatorGate";
|
|
1034
|
+
readonly type: "address";
|
|
1035
|
+
readonly internalType: "address";
|
|
1036
|
+
}];
|
|
1037
|
+
readonly internalType: "struct Market";
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly name: "collateralIndex";
|
|
1040
|
+
readonly type: "uint256";
|
|
1041
|
+
readonly internalType: "uint256";
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly name: "assets";
|
|
1044
|
+
readonly type: "uint256";
|
|
1045
|
+
readonly internalType: "uint256";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly name: "onBehalf";
|
|
1048
|
+
readonly type: "address";
|
|
1049
|
+
readonly internalType: "address";
|
|
1050
|
+
}];
|
|
1051
|
+
readonly outputs: readonly [];
|
|
1052
|
+
readonly stateMutability: "nonpayable";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly name: "take";
|
|
1055
|
+
readonly type: "function";
|
|
1056
|
+
readonly inputs: readonly [{
|
|
1057
|
+
readonly name: "offer";
|
|
1058
|
+
readonly type: "tuple";
|
|
1059
|
+
readonly components: readonly [{
|
|
1060
|
+
readonly name: "market";
|
|
1061
|
+
readonly type: "tuple";
|
|
1062
|
+
readonly components: readonly [{
|
|
1063
|
+
readonly name: "chainId";
|
|
1064
|
+
readonly type: "uint256";
|
|
1065
|
+
readonly internalType: "uint256";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly name: "midnight";
|
|
1068
|
+
readonly type: "address";
|
|
1069
|
+
readonly internalType: "address";
|
|
1070
|
+
}, {
|
|
1071
|
+
readonly name: "loanToken";
|
|
1072
|
+
readonly type: "address";
|
|
1073
|
+
readonly internalType: "address";
|
|
1074
|
+
}, {
|
|
1075
|
+
readonly name: "collateralParams";
|
|
1076
|
+
readonly type: "tuple[]";
|
|
1077
|
+
readonly components: readonly [{
|
|
1078
|
+
readonly name: "token";
|
|
1079
|
+
readonly type: "address";
|
|
1080
|
+
readonly internalType: "address";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly name: "lltv";
|
|
1083
|
+
readonly type: "uint256";
|
|
1084
|
+
readonly internalType: "uint256";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "liquidationCursor";
|
|
1087
|
+
readonly type: "uint256";
|
|
1088
|
+
readonly internalType: "uint256";
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly name: "oracle";
|
|
1091
|
+
readonly type: "address";
|
|
1092
|
+
readonly internalType: "address";
|
|
1093
|
+
}];
|
|
1094
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly name: "maturity";
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
readonly internalType: "uint256";
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly name: "rcfThreshold";
|
|
1101
|
+
readonly type: "uint256";
|
|
1102
|
+
readonly internalType: "uint256";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly name: "enterGate";
|
|
1105
|
+
readonly type: "address";
|
|
1106
|
+
readonly internalType: "address";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly name: "liquidatorGate";
|
|
1109
|
+
readonly type: "address";
|
|
1110
|
+
readonly internalType: "address";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly internalType: "struct Market";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly name: "buy";
|
|
1115
|
+
readonly type: "bool";
|
|
1116
|
+
readonly internalType: "bool";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly name: "maker";
|
|
1119
|
+
readonly type: "address";
|
|
1120
|
+
readonly internalType: "address";
|
|
1121
|
+
}, {
|
|
1122
|
+
readonly name: "start";
|
|
1123
|
+
readonly type: "uint256";
|
|
1124
|
+
readonly internalType: "uint256";
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly name: "expiry";
|
|
1127
|
+
readonly type: "uint256";
|
|
1128
|
+
readonly internalType: "uint256";
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly name: "tick";
|
|
1131
|
+
readonly type: "uint256";
|
|
1132
|
+
readonly internalType: "uint256";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly name: "group";
|
|
1135
|
+
readonly type: "bytes32";
|
|
1136
|
+
readonly internalType: "bytes32";
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly name: "callback";
|
|
1139
|
+
readonly type: "address";
|
|
1140
|
+
readonly internalType: "address";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly name: "callbackData";
|
|
1143
|
+
readonly type: "bytes";
|
|
1144
|
+
readonly internalType: "bytes";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
1147
|
+
readonly type: "address";
|
|
1148
|
+
readonly internalType: "address";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly name: "ratifier";
|
|
1151
|
+
readonly type: "address";
|
|
1152
|
+
readonly internalType: "address";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly name: "reduceOnly";
|
|
1155
|
+
readonly type: "bool";
|
|
1156
|
+
readonly internalType: "bool";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly name: "maxUnits";
|
|
1159
|
+
readonly type: "uint128";
|
|
1160
|
+
readonly internalType: "uint128";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly name: "maxAssets";
|
|
1163
|
+
readonly type: "uint128";
|
|
1164
|
+
readonly internalType: "uint128";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly name: "continuousFeeCap";
|
|
1167
|
+
readonly type: "uint256";
|
|
1168
|
+
readonly internalType: "uint256";
|
|
1169
|
+
}];
|
|
1170
|
+
readonly internalType: "struct Offer";
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly name: "ratifierData";
|
|
1173
|
+
readonly type: "bytes";
|
|
1174
|
+
readonly internalType: "bytes";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "units";
|
|
1177
|
+
readonly type: "uint256";
|
|
1178
|
+
readonly internalType: "uint256";
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly name: "taker";
|
|
1181
|
+
readonly type: "address";
|
|
1182
|
+
readonly internalType: "address";
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly name: "receiverIfTakerIsSeller";
|
|
1185
|
+
readonly type: "address";
|
|
1186
|
+
readonly internalType: "address";
|
|
1187
|
+
}, {
|
|
1188
|
+
readonly name: "takerCallback";
|
|
1189
|
+
readonly type: "address";
|
|
1190
|
+
readonly internalType: "address";
|
|
1191
|
+
}, {
|
|
1192
|
+
readonly name: "takerCallbackData";
|
|
1193
|
+
readonly type: "bytes";
|
|
1194
|
+
readonly internalType: "bytes";
|
|
1195
|
+
}];
|
|
1196
|
+
readonly outputs: readonly [{
|
|
1197
|
+
readonly name: "";
|
|
1198
|
+
readonly type: "uint256";
|
|
1199
|
+
readonly internalType: "uint256";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly name: "";
|
|
1202
|
+
readonly type: "uint256";
|
|
1203
|
+
readonly internalType: "uint256";
|
|
1204
|
+
}];
|
|
1205
|
+
readonly stateMutability: "nonpayable";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly name: "tickSpacing";
|
|
1208
|
+
readonly type: "function";
|
|
1209
|
+
readonly inputs: readonly [{
|
|
1210
|
+
readonly name: "id";
|
|
1211
|
+
readonly type: "bytes32";
|
|
1212
|
+
readonly internalType: "bytes32";
|
|
1213
|
+
}];
|
|
1214
|
+
readonly outputs: readonly [{
|
|
1215
|
+
readonly name: "";
|
|
1216
|
+
readonly type: "uint8";
|
|
1217
|
+
readonly internalType: "uint8";
|
|
1218
|
+
}];
|
|
1219
|
+
readonly stateMutability: "view";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly name: "tickSpacingSetter";
|
|
1222
|
+
readonly type: "function";
|
|
1223
|
+
readonly inputs: readonly [];
|
|
1224
|
+
readonly outputs: readonly [{
|
|
1225
|
+
readonly name: "";
|
|
1226
|
+
readonly type: "address";
|
|
1227
|
+
readonly internalType: "address";
|
|
1228
|
+
}];
|
|
1229
|
+
readonly stateMutability: "view";
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly name: "toMarket";
|
|
1232
|
+
readonly type: "function";
|
|
1233
|
+
readonly inputs: readonly [{
|
|
1234
|
+
readonly name: "id";
|
|
1235
|
+
readonly type: "bytes32";
|
|
1236
|
+
readonly internalType: "bytes32";
|
|
1237
|
+
}];
|
|
1238
|
+
readonly outputs: readonly [{
|
|
1239
|
+
readonly name: "";
|
|
1240
|
+
readonly type: "tuple";
|
|
1241
|
+
readonly components: readonly [{
|
|
1242
|
+
readonly name: "chainId";
|
|
1243
|
+
readonly type: "uint256";
|
|
1244
|
+
readonly internalType: "uint256";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly name: "midnight";
|
|
1247
|
+
readonly type: "address";
|
|
1248
|
+
readonly internalType: "address";
|
|
1249
|
+
}, {
|
|
1250
|
+
readonly name: "loanToken";
|
|
1251
|
+
readonly type: "address";
|
|
1252
|
+
readonly internalType: "address";
|
|
1253
|
+
}, {
|
|
1254
|
+
readonly name: "collateralParams";
|
|
1255
|
+
readonly type: "tuple[]";
|
|
1256
|
+
readonly components: readonly [{
|
|
1257
|
+
readonly name: "token";
|
|
1258
|
+
readonly type: "address";
|
|
1259
|
+
readonly internalType: "address";
|
|
1260
|
+
}, {
|
|
1261
|
+
readonly name: "lltv";
|
|
1262
|
+
readonly type: "uint256";
|
|
1263
|
+
readonly internalType: "uint256";
|
|
1264
|
+
}, {
|
|
1265
|
+
readonly name: "liquidationCursor";
|
|
1266
|
+
readonly type: "uint256";
|
|
1267
|
+
readonly internalType: "uint256";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly name: "oracle";
|
|
1270
|
+
readonly type: "address";
|
|
1271
|
+
readonly internalType: "address";
|
|
1272
|
+
}];
|
|
1273
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1274
|
+
}, {
|
|
1275
|
+
readonly name: "maturity";
|
|
1276
|
+
readonly type: "uint256";
|
|
1277
|
+
readonly internalType: "uint256";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly name: "rcfThreshold";
|
|
1280
|
+
readonly type: "uint256";
|
|
1281
|
+
readonly internalType: "uint256";
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly name: "enterGate";
|
|
1284
|
+
readonly type: "address";
|
|
1285
|
+
readonly internalType: "address";
|
|
1286
|
+
}, {
|
|
1287
|
+
readonly name: "liquidatorGate";
|
|
1288
|
+
readonly type: "address";
|
|
1289
|
+
readonly internalType: "address";
|
|
1290
|
+
}];
|
|
1291
|
+
readonly internalType: "struct Market";
|
|
1292
|
+
}];
|
|
1293
|
+
readonly stateMutability: "view";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly name: "totalUnits";
|
|
1296
|
+
readonly type: "function";
|
|
1297
|
+
readonly inputs: readonly [{
|
|
1298
|
+
readonly name: "id";
|
|
1299
|
+
readonly type: "bytes32";
|
|
1300
|
+
readonly internalType: "bytes32";
|
|
1301
|
+
}];
|
|
1302
|
+
readonly outputs: readonly [{
|
|
1303
|
+
readonly name: "";
|
|
1304
|
+
readonly type: "uint128";
|
|
1305
|
+
readonly internalType: "uint128";
|
|
1306
|
+
}];
|
|
1307
|
+
readonly stateMutability: "view";
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly name: "touchMarket";
|
|
1310
|
+
readonly type: "function";
|
|
1311
|
+
readonly inputs: readonly [{
|
|
1312
|
+
readonly name: "market";
|
|
1313
|
+
readonly type: "tuple";
|
|
1314
|
+
readonly components: readonly [{
|
|
1315
|
+
readonly name: "chainId";
|
|
1316
|
+
readonly type: "uint256";
|
|
1317
|
+
readonly internalType: "uint256";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "midnight";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
readonly internalType: "address";
|
|
1322
|
+
}, {
|
|
1323
|
+
readonly name: "loanToken";
|
|
1324
|
+
readonly type: "address";
|
|
1325
|
+
readonly internalType: "address";
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly name: "collateralParams";
|
|
1328
|
+
readonly type: "tuple[]";
|
|
1329
|
+
readonly components: readonly [{
|
|
1330
|
+
readonly name: "token";
|
|
1331
|
+
readonly type: "address";
|
|
1332
|
+
readonly internalType: "address";
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly name: "lltv";
|
|
1335
|
+
readonly type: "uint256";
|
|
1336
|
+
readonly internalType: "uint256";
|
|
1337
|
+
}, {
|
|
1338
|
+
readonly name: "liquidationCursor";
|
|
1339
|
+
readonly type: "uint256";
|
|
1340
|
+
readonly internalType: "uint256";
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly name: "oracle";
|
|
1343
|
+
readonly type: "address";
|
|
1344
|
+
readonly internalType: "address";
|
|
1345
|
+
}];
|
|
1346
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly name: "maturity";
|
|
1349
|
+
readonly type: "uint256";
|
|
1350
|
+
readonly internalType: "uint256";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly name: "rcfThreshold";
|
|
1353
|
+
readonly type: "uint256";
|
|
1354
|
+
readonly internalType: "uint256";
|
|
1355
|
+
}, {
|
|
1356
|
+
readonly name: "enterGate";
|
|
1357
|
+
readonly type: "address";
|
|
1358
|
+
readonly internalType: "address";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly name: "liquidatorGate";
|
|
1361
|
+
readonly type: "address";
|
|
1362
|
+
readonly internalType: "address";
|
|
1363
|
+
}];
|
|
1364
|
+
readonly internalType: "struct Market";
|
|
1365
|
+
}];
|
|
1366
|
+
readonly outputs: readonly [{
|
|
1367
|
+
readonly name: "";
|
|
1368
|
+
readonly type: "bytes32";
|
|
1369
|
+
readonly internalType: "bytes32";
|
|
1370
|
+
}];
|
|
1371
|
+
readonly stateMutability: "nonpayable";
|
|
1372
|
+
}, {
|
|
1373
|
+
readonly name: "updatePosition";
|
|
1374
|
+
readonly type: "function";
|
|
1375
|
+
readonly inputs: readonly [{
|
|
1376
|
+
readonly name: "market";
|
|
1377
|
+
readonly type: "tuple";
|
|
1378
|
+
readonly components: readonly [{
|
|
1379
|
+
readonly name: "chainId";
|
|
1380
|
+
readonly type: "uint256";
|
|
1381
|
+
readonly internalType: "uint256";
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly name: "midnight";
|
|
1384
|
+
readonly type: "address";
|
|
1385
|
+
readonly internalType: "address";
|
|
1386
|
+
}, {
|
|
1387
|
+
readonly name: "loanToken";
|
|
1388
|
+
readonly type: "address";
|
|
1389
|
+
readonly internalType: "address";
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly name: "collateralParams";
|
|
1392
|
+
readonly type: "tuple[]";
|
|
1393
|
+
readonly components: readonly [{
|
|
1394
|
+
readonly name: "token";
|
|
1395
|
+
readonly type: "address";
|
|
1396
|
+
readonly internalType: "address";
|
|
1397
|
+
}, {
|
|
1398
|
+
readonly name: "lltv";
|
|
1399
|
+
readonly type: "uint256";
|
|
1400
|
+
readonly internalType: "uint256";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly name: "liquidationCursor";
|
|
1403
|
+
readonly type: "uint256";
|
|
1404
|
+
readonly internalType: "uint256";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly name: "oracle";
|
|
1407
|
+
readonly type: "address";
|
|
1408
|
+
readonly internalType: "address";
|
|
1409
|
+
}];
|
|
1410
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly name: "maturity";
|
|
1413
|
+
readonly type: "uint256";
|
|
1414
|
+
readonly internalType: "uint256";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly name: "rcfThreshold";
|
|
1417
|
+
readonly type: "uint256";
|
|
1418
|
+
readonly internalType: "uint256";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly name: "enterGate";
|
|
1421
|
+
readonly type: "address";
|
|
1422
|
+
readonly internalType: "address";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "liquidatorGate";
|
|
1425
|
+
readonly type: "address";
|
|
1426
|
+
readonly internalType: "address";
|
|
1427
|
+
}];
|
|
1428
|
+
readonly internalType: "struct Market";
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly name: "user";
|
|
1431
|
+
readonly type: "address";
|
|
1432
|
+
readonly internalType: "address";
|
|
1433
|
+
}];
|
|
1434
|
+
readonly outputs: readonly [{
|
|
1435
|
+
readonly name: "";
|
|
1436
|
+
readonly type: "uint128";
|
|
1437
|
+
readonly internalType: "uint128";
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly name: "";
|
|
1440
|
+
readonly type: "uint128";
|
|
1441
|
+
readonly internalType: "uint128";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly name: "";
|
|
1444
|
+
readonly type: "uint128";
|
|
1445
|
+
readonly internalType: "uint128";
|
|
1446
|
+
}];
|
|
1447
|
+
readonly stateMutability: "nonpayable";
|
|
1448
|
+
}, {
|
|
1449
|
+
readonly name: "updatePositionView";
|
|
1450
|
+
readonly type: "function";
|
|
1451
|
+
readonly inputs: readonly [{
|
|
1452
|
+
readonly name: "market";
|
|
1453
|
+
readonly type: "tuple";
|
|
1454
|
+
readonly components: readonly [{
|
|
1455
|
+
readonly name: "chainId";
|
|
1456
|
+
readonly type: "uint256";
|
|
1457
|
+
readonly internalType: "uint256";
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly name: "midnight";
|
|
1460
|
+
readonly type: "address";
|
|
1461
|
+
readonly internalType: "address";
|
|
1462
|
+
}, {
|
|
1463
|
+
readonly name: "loanToken";
|
|
1464
|
+
readonly type: "address";
|
|
1465
|
+
readonly internalType: "address";
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly name: "collateralParams";
|
|
1468
|
+
readonly type: "tuple[]";
|
|
1469
|
+
readonly components: readonly [{
|
|
1470
|
+
readonly name: "token";
|
|
1471
|
+
readonly type: "address";
|
|
1472
|
+
readonly internalType: "address";
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly name: "lltv";
|
|
1475
|
+
readonly type: "uint256";
|
|
1476
|
+
readonly internalType: "uint256";
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly name: "liquidationCursor";
|
|
1479
|
+
readonly type: "uint256";
|
|
1480
|
+
readonly internalType: "uint256";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly name: "oracle";
|
|
1483
|
+
readonly type: "address";
|
|
1484
|
+
readonly internalType: "address";
|
|
1485
|
+
}];
|
|
1486
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly name: "maturity";
|
|
1489
|
+
readonly type: "uint256";
|
|
1490
|
+
readonly internalType: "uint256";
|
|
1491
|
+
}, {
|
|
1492
|
+
readonly name: "rcfThreshold";
|
|
1493
|
+
readonly type: "uint256";
|
|
1494
|
+
readonly internalType: "uint256";
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly name: "enterGate";
|
|
1497
|
+
readonly type: "address";
|
|
1498
|
+
readonly internalType: "address";
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly name: "liquidatorGate";
|
|
1501
|
+
readonly type: "address";
|
|
1502
|
+
readonly internalType: "address";
|
|
1503
|
+
}];
|
|
1504
|
+
readonly internalType: "struct Market";
|
|
1505
|
+
}, {
|
|
1506
|
+
readonly name: "id";
|
|
1507
|
+
readonly type: "bytes32";
|
|
1508
|
+
readonly internalType: "bytes32";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly name: "user";
|
|
1511
|
+
readonly type: "address";
|
|
1512
|
+
readonly internalType: "address";
|
|
1513
|
+
}];
|
|
1514
|
+
readonly outputs: readonly [{
|
|
1515
|
+
readonly name: "";
|
|
1516
|
+
readonly type: "uint128";
|
|
1517
|
+
readonly internalType: "uint128";
|
|
1518
|
+
}, {
|
|
1519
|
+
readonly name: "";
|
|
1520
|
+
readonly type: "uint128";
|
|
1521
|
+
readonly internalType: "uint128";
|
|
1522
|
+
}, {
|
|
1523
|
+
readonly name: "";
|
|
1524
|
+
readonly type: "uint128";
|
|
1525
|
+
readonly internalType: "uint128";
|
|
1526
|
+
}];
|
|
1527
|
+
readonly stateMutability: "view";
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly name: "withdraw";
|
|
1530
|
+
readonly type: "function";
|
|
1531
|
+
readonly inputs: readonly [{
|
|
1532
|
+
readonly name: "market";
|
|
1533
|
+
readonly type: "tuple";
|
|
1534
|
+
readonly components: readonly [{
|
|
1535
|
+
readonly name: "chainId";
|
|
1536
|
+
readonly type: "uint256";
|
|
1537
|
+
readonly internalType: "uint256";
|
|
1538
|
+
}, {
|
|
1539
|
+
readonly name: "midnight";
|
|
1540
|
+
readonly type: "address";
|
|
1541
|
+
readonly internalType: "address";
|
|
1542
|
+
}, {
|
|
1543
|
+
readonly name: "loanToken";
|
|
1544
|
+
readonly type: "address";
|
|
1545
|
+
readonly internalType: "address";
|
|
1546
|
+
}, {
|
|
1547
|
+
readonly name: "collateralParams";
|
|
1548
|
+
readonly type: "tuple[]";
|
|
1549
|
+
readonly components: readonly [{
|
|
1550
|
+
readonly name: "token";
|
|
1551
|
+
readonly type: "address";
|
|
1552
|
+
readonly internalType: "address";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly name: "lltv";
|
|
1555
|
+
readonly type: "uint256";
|
|
1556
|
+
readonly internalType: "uint256";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly name: "liquidationCursor";
|
|
1559
|
+
readonly type: "uint256";
|
|
1560
|
+
readonly internalType: "uint256";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly name: "oracle";
|
|
1563
|
+
readonly type: "address";
|
|
1564
|
+
readonly internalType: "address";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly name: "maturity";
|
|
1569
|
+
readonly type: "uint256";
|
|
1570
|
+
readonly internalType: "uint256";
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly name: "rcfThreshold";
|
|
1573
|
+
readonly type: "uint256";
|
|
1574
|
+
readonly internalType: "uint256";
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly name: "enterGate";
|
|
1577
|
+
readonly type: "address";
|
|
1578
|
+
readonly internalType: "address";
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly name: "liquidatorGate";
|
|
1581
|
+
readonly type: "address";
|
|
1582
|
+
readonly internalType: "address";
|
|
1583
|
+
}];
|
|
1584
|
+
readonly internalType: "struct Market";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly name: "units";
|
|
1587
|
+
readonly type: "uint256";
|
|
1588
|
+
readonly internalType: "uint256";
|
|
1589
|
+
}, {
|
|
1590
|
+
readonly name: "onBehalf";
|
|
1591
|
+
readonly type: "address";
|
|
1592
|
+
readonly internalType: "address";
|
|
1593
|
+
}, {
|
|
1594
|
+
readonly name: "receiver";
|
|
1595
|
+
readonly type: "address";
|
|
1596
|
+
readonly internalType: "address";
|
|
1597
|
+
}];
|
|
1598
|
+
readonly outputs: readonly [];
|
|
1599
|
+
readonly stateMutability: "nonpayable";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly name: "withdrawCollateral";
|
|
1602
|
+
readonly type: "function";
|
|
1603
|
+
readonly inputs: readonly [{
|
|
1604
|
+
readonly name: "market";
|
|
1605
|
+
readonly type: "tuple";
|
|
1606
|
+
readonly components: readonly [{
|
|
1607
|
+
readonly name: "chainId";
|
|
1608
|
+
readonly type: "uint256";
|
|
1609
|
+
readonly internalType: "uint256";
|
|
1610
|
+
}, {
|
|
1611
|
+
readonly name: "midnight";
|
|
1612
|
+
readonly type: "address";
|
|
1613
|
+
readonly internalType: "address";
|
|
1614
|
+
}, {
|
|
1615
|
+
readonly name: "loanToken";
|
|
1616
|
+
readonly type: "address";
|
|
1617
|
+
readonly internalType: "address";
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly name: "collateralParams";
|
|
1620
|
+
readonly type: "tuple[]";
|
|
1621
|
+
readonly components: readonly [{
|
|
1622
|
+
readonly name: "token";
|
|
1623
|
+
readonly type: "address";
|
|
1624
|
+
readonly internalType: "address";
|
|
1625
|
+
}, {
|
|
1626
|
+
readonly name: "lltv";
|
|
1627
|
+
readonly type: "uint256";
|
|
1628
|
+
readonly internalType: "uint256";
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly name: "liquidationCursor";
|
|
1631
|
+
readonly type: "uint256";
|
|
1632
|
+
readonly internalType: "uint256";
|
|
1633
|
+
}, {
|
|
1634
|
+
readonly name: "oracle";
|
|
1635
|
+
readonly type: "address";
|
|
1636
|
+
readonly internalType: "address";
|
|
1637
|
+
}];
|
|
1638
|
+
readonly internalType: "struct CollateralParams[]";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly name: "maturity";
|
|
1641
|
+
readonly type: "uint256";
|
|
1642
|
+
readonly internalType: "uint256";
|
|
1643
|
+
}, {
|
|
1644
|
+
readonly name: "rcfThreshold";
|
|
1645
|
+
readonly type: "uint256";
|
|
1646
|
+
readonly internalType: "uint256";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly name: "enterGate";
|
|
1649
|
+
readonly type: "address";
|
|
1650
|
+
readonly internalType: "address";
|
|
1651
|
+
}, {
|
|
1652
|
+
readonly name: "liquidatorGate";
|
|
1653
|
+
readonly type: "address";
|
|
1654
|
+
readonly internalType: "address";
|
|
1655
|
+
}];
|
|
1656
|
+
readonly internalType: "struct Market";
|
|
1657
|
+
}, {
|
|
1658
|
+
readonly name: "collateralIndex";
|
|
1659
|
+
readonly type: "uint256";
|
|
1660
|
+
readonly internalType: "uint256";
|
|
1661
|
+
}, {
|
|
1662
|
+
readonly name: "assets";
|
|
1663
|
+
readonly type: "uint256";
|
|
1664
|
+
readonly internalType: "uint256";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly name: "onBehalf";
|
|
1667
|
+
readonly type: "address";
|
|
1668
|
+
readonly internalType: "address";
|
|
1669
|
+
}, {
|
|
1670
|
+
readonly name: "receiver";
|
|
1671
|
+
readonly type: "address";
|
|
1672
|
+
readonly internalType: "address";
|
|
1673
|
+
}];
|
|
1674
|
+
readonly outputs: readonly [];
|
|
1675
|
+
readonly stateMutability: "nonpayable";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly name: "withdrawable";
|
|
1678
|
+
readonly type: "function";
|
|
1679
|
+
readonly inputs: readonly [{
|
|
1680
|
+
readonly name: "id";
|
|
1681
|
+
readonly type: "bytes32";
|
|
1682
|
+
readonly internalType: "bytes32";
|
|
1683
|
+
}];
|
|
1684
|
+
readonly outputs: readonly [{
|
|
1685
|
+
readonly name: "";
|
|
1686
|
+
readonly type: "uint128";
|
|
1687
|
+
readonly internalType: "uint128";
|
|
1688
|
+
}];
|
|
1689
|
+
readonly stateMutability: "view";
|
|
1690
|
+
}];
|