UNPKG

@malda-protocol/protocol-config

Version:

Centralized contract addresses, constants, and token configurations for Malda Protocol

195 lines (194 loc) 7.38 kB
export const PRICE_ORACLE_ABI = [ { inputs: [ { internalType: 'string[]', name: 'symbols_', type: 'string[]' }, { components: [ { internalType: 'address', name: 'api3Feed', type: 'address' }, { internalType: 'address', name: 'eOracleFeed', type: 'address' }, { internalType: 'string', name: 'toSymbol', type: 'string' }, { internalType: 'uint256', name: 'underlyingDecimals', type: 'uint256' }, ], internalType: 'struct MixedPriceOracleV4.PriceConfig[]', name: 'configs_', type: 'tuple[]', }, { internalType: 'address', name: 'roles_', type: 'address' }, { internalType: 'uint256', name: 'stalenessPeriod_', type: 'uint256' }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'MixedPriceOracle_ApiV3StalePrice', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_DeltaTooHigh', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_InvalidConfig', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_InvalidConfigDecimals', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_InvalidPrice', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_InvalidRound', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_MissingFeed', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_Unauthorized', type: 'error' }, { inputs: [], name: 'MixedPriceOracle_eOracleStalePrice', type: 'error' }, { anonymous: false, inputs: [ { indexed: false, internalType: 'string', name: 'symbol', type: 'string' }, { components: [ { internalType: 'address', name: 'api3Feed', type: 'address' }, { internalType: 'address', name: 'eOracleFeed', type: 'address' }, { internalType: 'string', name: 'toSymbol', type: 'string' }, { internalType: 'uint256', name: 'underlyingDecimals', type: 'uint256' }, ], indexed: false, internalType: 'struct MixedPriceOracleV4.PriceConfig', name: 'config', type: 'tuple', }, ], name: 'ConfigSet', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'oldVal', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'newVal', type: 'uint256' }, ], name: 'PriceDeltaUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'oldVal', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'newVal', type: 'uint256' }, { indexed: false, internalType: 'string', name: 'symbol', type: 'string' }, ], name: 'PriceSymbolDeltaUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'string', name: 'symbol', type: 'string' }, { indexed: false, internalType: 'uint256', name: 'val', type: 'uint256' }, ], name: 'StalenessUpdated', type: 'event', }, { inputs: [], name: 'PRICE_DELTA_EXP', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'STALENESS_PERIOD', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'string', name: '', type: 'string' }], name: 'configs', outputs: [ { internalType: 'address', name: 'api3Feed', type: 'address' }, { internalType: 'address', name: 'eOracleFeed', type: 'address' }, { internalType: 'string', name: 'toSymbol', type: 'string' }, { internalType: 'uint256', name: 'underlyingDecimals', type: 'uint256' }, ], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'string', name: '', type: 'string' }], name: 'deltaPerSymbol', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'address', name: 'mToken', type: 'address' }], name: 'getPrice', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'address', name: 'mToken', type: 'address' }], name: 'getUnderlyingPrice', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'maxPriceDelta', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'roles', outputs: [{ internalType: 'contract IRoles', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'string', name: 'symbol', type: 'string' }, { components: [ { internalType: 'address', name: 'api3Feed', type: 'address' }, { internalType: 'address', name: 'eOracleFeed', type: 'address' }, { internalType: 'string', name: 'toSymbol', type: 'string' }, { internalType: 'uint256', name: 'underlyingDecimals', type: 'uint256' }, ], internalType: 'struct MixedPriceOracleV4.PriceConfig', name: 'config', type: 'tuple', }, ], name: 'setConfig', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'uint256', name: '_delta', type: 'uint256' }], name: 'setMaxPriceDelta', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'string', name: 'symbol', type: 'string' }, { internalType: 'uint256', name: 'val', type: 'uint256' }, ], name: 'setStaleness', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: '_delta', type: 'uint256' }, { internalType: 'string', name: '_symbol', type: 'string' }, ], name: 'setSymbolMaxPriceDelta', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'string', name: '', type: 'string' }], name: 'stalenessPerSymbol', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, ];