IAvmDirectoryViews
Overview
Section titled “Overview”Read-only view surface for the AVM directory.
IAvmDirectoryViews
Section titled “IAvmDirectoryViews”Functions
Section titled “Functions”engineForKind
Section titled “engineForKind”Current canonical pricing-engine proxy for a market kind.
function engineForKind(MarketKind kind) returns (address) viewParameters
kind— MarketKind
Returns
engine—address
eventEmitter
Section titled “eventEmitter”function eventEmitter() returns (address) viewReturns
address
getMarketAddressById
Section titled “getMarketAddressById”function getMarketAddressById(MarketId marketId) returns (address) viewParameters
marketId— MarketId
Returns
marketAddress—address
getMarketGroup
Section titled “getMarketGroup”function getMarketGroup(GroupId groupId) returns (struct DataTypes.MarketGroup) viewParameters
groupId— GroupId
Returns
group— DataTypes.MarketGroup
getMarketIdByAddress
Section titled “getMarketIdByAddress”function getMarketIdByAddress(address marketAddress) returns (MarketId) viewParameters
marketAddress—address
Returns
marketId— MarketId
getMarketKindConfig
Section titled “getMarketKindConfig”function getMarketKindConfig(MarketKind kind) returns (struct DataTypes.MarketTypeConfig) viewParameters
kind— MarketKind
Returns
config— DataTypes.MarketTypeConfig
getTenant
Section titled “getTenant”function getTenant(TenantId tenantId) returns (struct DataTypes.Tenant) viewParameters
tenantId— TenantId
Returns
tenant— DataTypes.Tenant
isAuthorizedEmitter
Section titled “isAuthorizedEmitter”function isAuthorizedEmitter(address caller) returns (bool) viewParameters
caller—address
Returns
bool
marketActionsImpl
Section titled “marketActionsImpl”Current implementation address that every market proxy delegatecalls to for delegated permissionless action methods.
One pointer, shared by every market. Each market re-reads this value on every delegated action call, so a protocol-admin rotation takes effect on every market simultaneously, on the next delegated action call after the rotation transaction is mined. donateLiquidity is served by the market proxy directly and is not routed through this pointer.
function marketActionsImpl() returns (address) viewReturns
address
marketAdminActionsImpl
Section titled “marketAdminActionsImpl”Current implementation address that every market proxy delegatecalls to for auth-gated market admin methods.
One pointer, shared by every market. Each market re-reads this value on every delegated admin call, so a protocol-admin rotation takes effect on every market simultaneously, on the next delegated admin call after the rotation transaction is mined. The proxy keeps the admin auth gates; setting the pointer to address(0) pauses the whole admin family.
function marketAdminActionsImpl() returns (address) viewReturns
address
marketBeacon
Section titled “marketBeacon”Single UpgradeableBeacon shared by every market BeaconProxy.
Every market is engine-agnostic at the bytecode layer; engine flavor differences are resolved through engineForKind, not separate market implementations. So one beacon is sufficient.
function marketBeacon() returns (address) viewReturns
address
marketFactory
Section titled “marketFactory”Canonical factory allowed to call registerMarket.
Deployed by the directory constructor; IAvmFactory.createMarket is the only supported path for new market registration.
function marketFactory() returns (address) viewReturns
address
marketKindExists
Section titled “marketKindExists”function marketKindExists(MarketKind kind) returns (bool) viewParameters
kind— MarketKind
Returns
bool
marketLeverageActionsImpl
Section titled “marketLeverageActionsImpl”Current implementation address that every market proxy delegatecalls to for delegated permissionless leverage-related action methods.
One pointer, shared by every market. Each market re-reads this value on every delegated action call, so a protocol-admin rotation takes effect on every market simultaneously, on the next delegated action call after the rotation transaction is mined.
function marketLeverageActionsImpl() returns (address) viewReturns
address
maxGroupFeeMicroBps
Section titled “maxGroupFeeMicroBps”Maximum allowed group-fee rate for buy, sell, borrow, and exercise-option operations.
Mirrors FeePolicy.MAX_GROUP_FEE_MICRO_BPS. Group fees are charged on gross reserve-token flow for the relevant operation. See IAvmDirectoryGroupAdmin.setMarketGroupFees.
function maxGroupFeeMicroBps() returns (MicroBps) viewReturns
maxPlatformFeeMicroBps
Section titled “maxPlatformFeeMicroBps”Maximum allowed platform-fee share applied to group-fee revenue.
Mirrors FeePolicy.MAX_PLATFORM_FEE_MICRO_BPS. The platform fee is a slice of group-fee revenue, not an additive surcharge on top of the group fee. See IAvmDirectoryProtocolAdmin.setPlatformFee.
function maxPlatformFeeMicroBps() returns (MicroBps) viewReturns
function owner() returns (address) viewReturns
address
proposedProtocolAdmin
Section titled “proposedProtocolAdmin”function proposedProtocolAdmin() returns (address) viewReturns
address
protocolAdmin
Section titled “protocolAdmin”function protocolAdmin() returns (address) viewReturns
address