UNPKG

@synthr/js

Version:

The smart contracts which make up the Synthr system. (synthr.io)

2,502 lines 567 kB
{ "targets": { "SafeDecimalMath": { "name": "SafeDecimalMath", "address": "0x357311bBBb9b76f827B078Cf9a2a544bD009208a", "source": "SafeDecimalMath" }, "Math": { "name": "Math", "address": "0xee5cFeEA2caC5F3A13DB1193c211C7bfA5c03dF0", "source": "Math" }, "SystemSettingsLib": { "name": "SystemSettingsLib", "address": "0x5c4e51A094658c4DDFBe578C9D4bB50e92f31981", "source": "SystemSettingsLib" }, "SignedSafeDecimalMath": { "name": "SignedSafeDecimalMath", "address": "0xbFe5dA86981e2dB461bd85D31795aD233748EE32", "source": "SignedSafeDecimalMath" }, "AddressResolver": { "name": "AddressResolver", "address": "0xB5D02f6F0B616Cf7B013BE55DdeDd477354C58BD", "source": "AddressResolver" }, "ReadProxyAddressResolver": { "name": "ReadProxyAddressResolver", "address": "0x58719E8Ef4d201541e44505a2ACB3424481d6681", "source": "ReadProxy" }, "OneNetAggregatorIssuedSynths": { "name": "OneNetAggregatorIssuedSynths", "address": "0xecE3b70733EA7A8512bC3065702ACfCc6E13c116", "source": "OneNetAggregatorIssuedSynths" }, "OneNetAggregatorDebtRatio": { "name": "OneNetAggregatorDebtRatio", "address": "0x409b427d6c8227eeCb4079EF74A6F9224297E19E", "source": "OneNetAggregatorDebtRatio" }, "OneNetAggregatorsDEFI": { "name": "OneNetAggregatorsDEFI", "address": "0xA43Ba9F2A27F5Fe86c7A8Fe4A75d42F4d2Cf6358", "source": "OneNetAggregatorsDEFI" }, "FlexibleStorage": { "name": "FlexibleStorage", "address": "0x9495E6f9c6cdF75a46f594418Fbb8a9f4Fc799F0", "source": "FlexibleStorage" }, "SystemSettings": { "name": "SystemSettings", "address": "0xf7827eAc369894FC7A7c0f06479a73073FcDBd6c", "source": "SystemSettings" }, "SystemStatus": { "name": "SystemStatus", "address": "0x2d757FCdB5347458cFcb7E8fC572aBA7212ab775", "source": "SystemStatus" }, "ExchangeRates": { "name": "ExchangeRates", "address": "0x93cADdbb3878092Ee416fE11c2cc281C1a8425C2", "source": "ExchangeRatesWithDexPricing" }, "RewardEscrow": { "name": "RewardEscrow", "address": "0xd435461f7521b7647D2ad39F8DD4903C2e7f407d", "source": "RewardEscrow" }, "RewardEscrowV2": { "name": "RewardEscrowV2", "address": "0x48F3b8f2f046a7CA044931080040D05FEaBd56a6", "source": "RewardEscrowV2" }, "RewardEscrowV2Manager": { "name": "RewardEscrowV2Manager", "address": "0xd2C003C55f9d275094D21918D3d654bDBe86C938", "source": "RewardEscrowV2Manager" }, "SynthetixEscrow": { "name": "SynthetixEscrow", "address": "0xC6a2a938F8ae3dE8Ee5e26938098Acb961CBCdA8", "source": "SynthetixEscrow" }, "SynthetixState": { "name": "SynthetixState", "address": "0xcbcFB6E2d8517DB83BedB30f79D5197607207A2c", "source": "SynthetixState" }, "SynthetixDebtShare": { "name": "SynthetixDebtShare", "address": "0x33Dd8a63181E7d56e081DaD3b19db7Dd3f324eeA", "source": "SynthetixDebtShare" }, "ProxyFeePool": { "name": "ProxyFeePool", "address": "0x21Bb52dcf71C6ddD92c5B3A08DBBD69B02f13ba3", "source": "Proxy" }, "DelegateApprovalsEternalStorage": { "name": "DelegateApprovalsEternalStorage", "address": "0x8E7feF846948a04cf32f170Bd9aE69BFfCd8362E", "source": "EternalStorage" }, "DelegateApprovals": { "name": "DelegateApprovals", "address": "0xd021103C9A7B411Ab2e6f10fC99522204Cf8Ff39", "source": "DelegateApprovals" }, "Liquidator": { "name": "Liquidator", "address": "0xaDB456735138a72ad8663c8ba00258A6d83b9c5a", "source": "Liquidator" }, "LiquidatorRewards": { "name": "LiquidatorRewards", "address": "0xCD5Cfe0541951EDd1ae1d8413af3630dd85FE72D", "source": "LiquidatorRewards" }, "LiquidatorRewardsManager": { "name": "LiquidatorRewardsManager", "address": "0x6FE49e5da59979382561998B5Ee0022236ad67FC", "source": "LiquidatorRewardsManager" }, "FeePoolEternalStorage": { "name": "FeePoolEternalStorage", "address": "0xE97AC27D0766c7E5a7f696F52Daa08cA23140635", "source": "FeePoolEternalStorage" }, "FeePool": { "name": "FeePool", "address": "0xeEA1e41CF51f7007D84B11f2605bFE8eEA1dd0f1", "source": "FeePool" }, "FeePoolState": { "name": "FeePoolState", "address": "0x7F4a3D2d0e45ECD301Be8a181c3911677c353C85", "source": "FeePoolState" }, "RewardsDistribution": { "name": "RewardsDistribution", "address": "0xF880e5a8b9d5660c8eD0a92c3d90F49326569E77", "source": "RewardsDistribution" }, "TokenStateSynthetix": { "name": "TokenStateSynthetix", "address": "0x51c8a8E3307E72bF9B65f044051814426f934e9C", "source": "LegacyTokenState" }, "ProxySynthetix": { "name": "ProxySynthetix", "address": "0x07D1694D8cE7F90a2Bc024F087854C59C661bf7F", "source": "ProxyERC20" }, "Synthetix": { "name": "Synthetix", "address": "0x07D1694D8cE7F90a2Bc024F087854C59C661bf7F", "source": "Synthetix" }, "DebtCache": { "name": "DebtCache", "address": "0xe143E07a1400CD49c9953449fEf820135566ae98", "source": "DebtCache" }, "Exchanger": { "name": "Exchanger", "address": "0x6E2934620CFc72DD8b319d9358Fb122997c7123C", "source": "ExchangerWithFeeRecAlternatives" }, "ExchangeCircuitBreaker": { "name": "ExchangeCircuitBreaker", "address": "0xb694EFB9b923a9F811a75539d02fA2324D8c8794", "source": "ExchangeCircuitBreaker" }, "VirtualSynthMastercopy": { "name": "VirtualSynthMastercopy", "address": "0x381f09C9CF5b5Be0af7F66167349343AFCD8E0aF", "source": "VirtualSynthMastercopy" }, "ExchangeState": { "name": "ExchangeState", "address": "0xD109821a33dF01773f7841FEb0438Cc7eEE4eb87", "source": "ExchangeState" }, "Issuer": { "name": "Issuer", "address": "0x593Be683204fF3501e6e4851956a2Da310e393b6", "source": "Issuer" }, "IssuedSynthAggregator": { "name": "IssuedSynthAggregator", "address": "0x2FF74E06173913ecD635A9AFb1369434401f73E4", "source": "IssuedSynthAggregator" }, "TradingRewards": { "name": "TradingRewards", "address": "0x051ed028815Fa6304e97486d017381F8A9106d8A", "source": "TradingRewards" }, "SupplySchedule": { "name": "SupplySchedule", "address": "0xBA46DD9bB323CEBaE96f12fCB0aD706f6D6fA574", "source": "SupplySchedule" }, "EscrowChecker": { "name": "EscrowChecker", "address": "0x3C2dd2989f600b9bCd8F0Ce5eC10154d789B9250", "source": "EscrowChecker" }, "SynthetixBridgeToOptimism": { "name": "SynthetixBridgeToOptimism", "address": "0x0d724417ed330dba4e36da7717896852af1e59cc", "source": "SynthetixBridgeToOptimism" }, "SynthetixBridgeEscrow": { "name": "SynthetixBridgeEscrow", "address": "0xb53a5D2E9800a100c41d42316A0154a36Ce4C7B0", "source": "SynthetixBridgeEscrow" }, "OwnerRelayOnEthereum": { "name": "OwnerRelayOnEthereum", "address": "0xFdB31235cDFe68bfFD1d687AC3A2b31E80eacf0d", "source": "OwnerRelayOnEthereum" }, "SynthRedeemer": { "name": "SynthRedeemer", "address": "0x03e247CEEB5f7caBD9D278A6B08B59DC47573b7B", "source": "SynthRedeemer" }, "WrapperFactory": { "name": "WrapperFactory", "address": "0x87076a60815c9aa137C0844Fd8DC28F697F612D3", "source": "WrapperFactory" }, "SynthrBridge": { "name": "SynthrBridge", "address": "0x11f66d6864FcCe84D5000E1E981DD58676633949", "source": "SynthrBridge" }, "TokenStatesUSD": { "name": "TokenStatesUSD", "address": "0x88E51f364739b6Cb0de572aea92fd5793e0Ffd34", "source": "TokenState" }, "ProxysUSD": { "name": "ProxysUSD", "address": "0x802794f497895010693B545cFccadca6b1e321EF", "source": "ProxyERC20" }, "SynthsUSD": { "name": "SynthsUSD", "address": "0x8Bd0E58032E5343C888EBA4e72332176fffa7371", "source": "Synth" }, "TokenStatesDOT": { "name": "TokenStatesDOT", "address": "0x3924AE319c4896b138a1C13f341e51adAA05e8d5", "source": "TokenState" }, "ProxysDOT": { "name": "ProxysDOT", "address": "0xb4d4E085E23700F9Bd031019789B713c9E330896", "source": "ProxyERC20" }, "SynthsDOT": { "name": "SynthsDOT", "address": "0xAfAC8Df44A724Ea386b08e0AE7C8fE8a4723DCB8", "source": "MultiCollateralSynth" }, "Depot": { "name": "Depot", "address": "0x6b8db572D6308C6362ea66Ac46F9Ac7FAAfd3855", "source": "Depot" }, "EtherWrapper": { "name": "EtherWrapper", "address": "0x4556b9761b2aC071D1665FAe01faA255a53d1307", "source": "EtherWrapper" }, "NativeEtherWrapper": { "name": "NativeEtherWrapper", "address": "0x3b820F825088DB6cD6E118C0c9B39755859932a9", "source": "NativeEtherWrapper" }, "CollateralUtil": { "name": "CollateralUtil", "address": "0x814AAB41E07D2c3fA53C0c6f3002cD654a4489EE", "source": "CollateralUtil" }, "CollateralManagerState": { "name": "CollateralManagerState", "address": "0x80cdf7B1D8305f406dAf9Ed04c3dce609dB0b374", "source": "CollateralManagerState" }, "CollateralManager": { "name": "CollateralManager", "address": "0x249E5860fC63b748443d0ec6174d939785536981", "source": "CollateralManager" }, "CollateralEth": { "name": "CollateralEth", "address": "0x8Ece5e21BF2CD01CA48320F3469969aC8503d89A", "source": "CollateralEth" }, "CollateralErc20": { "name": "CollateralErc20", "address": "0xA8A2bFE97c51bB83e21bF0405e98CF9D8eFB2674", "source": "CollateralErc20" }, "CollateralShort": { "name": "CollateralShort", "address": "0x6d20C286D94a603A1cdE80D1f8e5f44Bc22550C0", "source": "CollateralShort" }, "FuturesMarketManager": { "name": "FuturesMarketManager", "address": "0x817666771A8Fb924DAA42dBd36b1F679Bca0d366", "source": "EmptyFuturesMarketManager" }, "SynthUtil": { "name": "SynthUtil", "address": "0xE41828f9Fa934A52cBcd4A74e5844a3cBF10f7Fc", "source": "SynthUtil" }, "DappMaintenance": { "name": "DappMaintenance", "address": "0xBc8653a24AF54333a8490f5de1F87A4120543555", "source": "DappMaintenance" }, "TokenStatesBTC": { "name": "TokenStatesBTC", "address": "0x0FD3eD18B988b7Df68bc388384911820Dd48F176", "source": "TokenState" }, "ProxysBTC": { "name": "ProxysBTC", "address": "0xa0E56f6129C4Af3F08E91b18ff2d39888A0d8eD7", "source": "ProxyERC20" }, "SynthsBTC": { "name": "SynthsBTC", "address": "0x4930E28CC58A2Caa9533dA4cC3FB2471876D7481", "source": "MultiCollateralSynth" }, "TokenStatesAVAX": { "name": "TokenStatesAVAX", "address": "0x6BA076942D3862bBc7DC2E7a8D20eD39e36AE817", "source": "TokenState" }, "ProxysAVAX": { "name": "ProxysAVAX", "address": "0xde5bc582e5bdb46a4ce16081437fdf5e5412f460", "source": "ProxyERC20" }, "SynthsAVAX": { "name": "SynthsAVAX", "address": "0x9930393889fDC1e2AdE39AFCe30Dfe688826196f", "source": "MultiCollateralSynth" }, "TokenStatesBNB": { "name": "TokenStatesBNB", "address": "0x7880A600F4268945a35BF8908488743c4a0be34c", "source": "TokenState" }, "ProxysBNB": { "name": "ProxysBNB", "address": "0x15745cAE5b1412F4E1b1c9d59c0175220A08aA82", "source": "ProxyERC20" }, "SynthsBNB": { "name": "SynthsBNB", "address": "0xf608D873f7DAC5DFB03ece090beBcb5d7851A0c6", "source": "MultiCollateralSynth" }, "TokenStatesMATIC": { "name": "TokenStatesMATIC", "address": "0xf41d104a039c6D603997188287B429b3b6D63534", "source": "TokenState" }, "ProxysMATIC": { "name": "ProxysMATIC", "address": "0x122065338E0E7Ad7912f00947Df00e274BC882fc", "source": "ProxyERC20" }, "SynthsMATIC": { "name": "SynthsMATIC", "address": "0x3e49fC69dC6b0e9a21d8e067732f60d97d3a8D53", "source": "MultiCollateralSynth" }, "TokenStatesETH": { "name": "TokenStatesETH", "address": "0xb2602610469CdC621280e5EBd6485e74b0d7ac1E", "source": "TokenState" }, "ProxysETH": { "name": "ProxysETH", "address": "0xF8a94f6Ee1b131E3Df8a30b8646B57238D9FBf34", "source": "ProxyERC20" }, "SynthsETH": { "name": "SynthsETH", "address": "0xD6BbA8f8443083Af9218AA88De9931157A391eB5", "source": "MultiCollateralSynth" }, "SynthrAggregator": { "name": "SynthrAggregator", "address": "0xC6c7eC1BDf142c107977e0fc1209E5cE749e3376", "source": "SynthrAggregator" }, "ExternWrappedStateToken": { "name": "ExternWrappedStateToken", "address": "0xE9dB0411cf8C0981067FCbF1445c720B03119391", "source": "ExternWrappedStateToken" } }, "sources": { "ExternWrappedStateToken": { "abi": [ { "inputs": [ { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "string", "name": "_symbol", "type": "string" }, { "internalType": "uint8", "name": "_decimals", "type": "uint8" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "address", "name": "_associatedContract", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "associatedContract", "type": "address" } ], "name": "AssociatedContractUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "collateralCurrency", "type": "address" } ], "name": "CollateralCurrencyAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "collateralCurrency", "type": "address" } ], "name": "CollateralCurrencyRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerNominated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_account", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "SetCollateralBalance", "type": "event" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_collateralAddress", "type": "address" }, { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" } ], "name": "addCollateralCurrency", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "associatedContract", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "availableCollateralCurrencies", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "collateralByIssuer", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "collateralCurrency", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" }, { "internalType": "uint256", "name": "_collateralAmount", "type": "uint256" } ], "name": "decreaseCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getAvailableCollaterals", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" }, { "internalType": "uint256", "name": "_collateralAmount", "type": "uint256" } ], "name": "increaseCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "nominateNewOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "nominatedOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" } ], "name": "removeCollateralCurrency", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_associatedContract", "type": "address" } ], "name": "setAssociatedContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" }, { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "setCollateralBalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "totalSupplyPerKey", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" }, { "internalType": "uint256", "name": "_collateralAmount", "type": "uint256" } ], "name": "withdrawCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "bytes32", "name": "_currencyKey", "type": "bytes32" }, { "internalType": "uint256", "name": "_collateralAmount", "type": "uint256" } ], "name": "withdrawFundsByAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ] }, "SynthrAggregator": { "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "state", "type": "bool" } ], "name": "ChangeAuthority", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "_exchangeFeeAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "synthKey", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "internalType": "uint16", "name": "dstChainId", "type": "uint16" } ], "name": "bridgeSynth", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "synthKey", "type": "bytes32" }, { "internalType": "uint256", "name": "synthAmount", "type": "uint256" }, { "internalType": "uint16", "name": "chainId", "type": "uint16" } ], "name": "burnSynth", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "synthKey", "type": "bytes32" }, { "internalType": "uint16", "name": "chainId", "type": "uint16" } ], "name": "chainSynthTotalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "collateralByIssuer", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "internalType": "uint16", "name": "chainId", "type": "uint16" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "collateralByIssuerAggregation", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "bytes32", "name": "collateralKey", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint16", "name": "chainId", "type": "uint16" } ], "name": "depositCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "sourceKey", "type": "bytes32" }, { "internalType": "uint256", "name": "sourceAmount", "type": "uint256" }, { "internalType": "bytes32", "name": "destKey", "type": "bytes32" }, { "internalType": "uint256", "name": "destAmount", "type": "uint256" }, { "internalType": "uint256", "name": "fee", "type": "uint256" }, { "internalType": "uint16", "name": "srcChainId", "type": "uint16" }, { "internalType": "uint16", "name": "destChainId", "type": "uint16" } ], "name": "exchangeSynth", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "__exchangeFeeAddress", "type": "address" }, { "internalType": "address", "name": "__synthrBridge", "type": "address" }, { "internalType": "uint16", "name": "__selfLZChainId", "type": "uint16" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "bytes32", "name": "collateralKey", "type": "bytes32" }, { "internalType": "uint256", "name": "collateralAmount", "type": "uint256" }, { "internalType": "uint16", "name": "destChainId", "type": "uint16" } ], "name": "liquidate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "synthKey", "type": "bytes32" }, { "internalType": "uint256", "name": "synthAmount", "type": "uint256" }, { "internalType": "uint16", "name": "chainId", "type": "uint16" } ], "name": "mintSynth", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "synthKey", "type": "bytes32" } ], "name": "synthTotalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "synthrBridge", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "collateralKey", "type": "bytes32" }, { "internalType": "uint16", "name": "chainId", "type": "uint16" } ], "name": "withdrawCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ] }, "SafeDecimalMath": { "abi": [ { "inputs": [], "name": "PRECISE_UNIT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UNIT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "highPrecisionDecimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preciseUnit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "unit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" } ] }, "Math": { "abi": [] }, "SystemSettingsLib": { "abi": [ { "inputs": [], "name": "MAX_ATOMIC_TWAP_WINDOW", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_ATOMIC_VOLATILITY_CONSIDERATION_WINDOW", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_ATOMIC_VOLUME_PER_BLOCK", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_EXCHANGE_FEE_RATE", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_ISSUANCE_RATIO", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_MINIMUM_STAKE_TIME", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_TARGET_THRESHOLD", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_ATOMIC_TWAP_WINDOW", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_ATOMIC_VOLATILITY_CONSIDERATION_WINDOW", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "RATIO_FROM_TARGET_BUFFER", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SETTINGS_CONTRACT_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "contractName", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" } ] }, "SignedSafeDecimalMath": { "abi": [ { "constant": true, "inputs": [], "name": "PRECISE_UNIT", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "UNIT", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "highPrecisionDecimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "preciseUnit", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "unit", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "payable": false, "stateMutability": "pure", "type": "function" } ] }, "AddressResolver": { "abi": [ { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "name", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "destination", "type": "address" } ], "name": "AddressImported", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerNominated", "type": "event" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32[]", "name": "names", "type": "bytes32[]" }, { "internalType": "address[]", "name": "destinations", "type": "address[]" } ], "name": "areAddressesImported", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "name", "type": "bytes32" } ], "name": "getAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "getSynth", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32[]", "name": "names", "type": "bytes32[]" }, { "internalType": "address[]", "name": "destinations", "type": "address[]" } ], "name": "importAddresses", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "nominateNewOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "nominatedOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract MixinResolver[]", "name": "destinations", "type": "address[]" } ], "name": "rebuildCaches", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "repository", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "name", "type": "bytes32" }, { "internalType": "string", "name": "reason", "type": "string" } ], "name": "requireAndGetAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ] }, "ReadProxy": { "abi": [ { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerNominated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newTarget", "type": "address" } ], "name": "TargetUpdated", "type": "event" }, { "payable": false, "stateMutability": "nonpayable", "type": "fallback" }, { "constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "nominateNewOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "nominatedOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_target", "type": "address" } ], "name": "setTarget", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "target", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" } ] }, "OneNetAggregatorIssuedSynths": { "abi": [ { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "address", "name": "_resolver", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "name", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "destination", "type": "address" } ], "name": "CacheUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerNominated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "synthAggregator", "type": "address" } ], "name": "SynthAggregatorAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "synthAggregator", "type": "address" } ], "name": "SynthAggregatorRemoved", "type": "event" }, { "constant": true, "inputs": [], "name": "CONTRACT_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "availableSynthAggregators", "outputs": [ { "internalType": "contract ISynthAggregator", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isResolverCached", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "nominateNewOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "nominatedOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "rebuildCache", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "resolver", "outputs": [ { "internalType": "contract AddressResolver", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "syAggregators", "outputs": [ { "internalType": "contract ISynthAggregator", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "syAggregatorsByAddress", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "resolverAddressesRequired", "outputs": [ { "internalType": "bytes32[]", "name": "addresses", "type": "bytes32[]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalIssuedSynths", "outputs": [ { "internalType": "uint256", "name": "_issuedSynths", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "totalIssuedSynthsPerIssuer", "outputs": [ { "internalType": "uint256", "name": "_issuedSynths", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" } ], "name": "totalIssuedSynthPerAsset", "outputs": [ { "internalType": "uint256", "name": "_issuedSynth", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "totalIssuedSynthPerAssetAndIssuer", "outputs": [ { "internalType": "uint256", "name": "_issuedSynth", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" }, { "internalType": "contract ISynthAggregator", "name": "syAggregator", "type": "address" } ], "name": "addSynthAggregator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "currencyKey", "type": "bytes32" } ], "name": "removeSynthAggregator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ] }, "OneNetAggregatorDebtRatio": { "abi": [ { "inputs": [ { "internalType": "contract AddressResolver", "name": "_resolver", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerNominated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "name": "SetOverrideTimestamp", "type": "event" }, { "constant": true, "inputs": [], "name": "CONTRACT_NAME", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "_roundId", "type": "uint256" } ], "name": "getAnswer", "outputs": [ { "internalType": "int256", "name": "answer", "type": "int256" } ], "payable": false, "stateMutability": "view"