UNPKG

@synthr/js

Version:

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

2,509 lines 567 kB
{ "targets": { "SafeDecimalMath": { "name": "SafeDecimalMath", "address": "0x4c6213012C61539F9c72b679C127DBb6556FDA46", "source": "SafeDecimalMath" }, "Math": { "name": "Math", "address": "0xee5cFeEA2caC5F3A13DB1193c211C7bfA5c03dF0", "source": "Math" }, "SystemSettingsLib": { "name": "SystemSettingsLib", "address": "0x849e83df9731d249015395B018Bb2b1a2A4011e9", "source": "SystemSettingsLib" }, "SignedSafeDecimalMath": { "name": "SignedSafeDecimalMath", "address": "0xbFe5dA86981e2dB461bd85D31795aD233748EE32", "source": "SignedSafeDecimalMath" }, "AddressResolver": { "name": "AddressResolver", "address": "0xE514CBD0996BC568f5129F8D2F29881d14866De5", "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": "0x4679Ff04611a131D876523aC17d5888602b0A6B4", "source": "FlexibleStorage" }, "SystemSettings": { "name": "SystemSettings", "address": "0xDACcd61F0943701D5eC44e0E94DA729354496689", "source": "SystemSettings" }, "SystemStatus": { "name": "SystemStatus", "address": "0xD18290F41B671Ffa4C63BAA21357c16aE725879B", "source": "SystemStatus" }, "ExchangeRates": { "name": "ExchangeRates", "address": "0x1eB9Cf03e586f82c3B063042020C1EFBFcef8AcD", "source": "ExchangeRatesWithDexPricing" }, "RewardEscrow": { "name": "RewardEscrow", "address": "0xd435461f7521b7647D2ad39F8DD4903C2e7f407d", "source": "RewardEscrow" }, "RewardEscrowV2": { "name": "RewardEscrowV2", "address": "0xF844f12E4357e9fC926ED332E9379D61b6E95E2B", "source": "RewardEscrowV2" }, "RewardEscrowV2Manager": { "name": "RewardEscrowV2Manager", "address": "0x6371e703Ba05432906fB010379AE94C9da73b507", "source": "RewardEscrowV2Manager" }, "SynthetixEscrow": { "name": "SynthetixEscrow", "address": "0xC6a2a938F8ae3dE8Ee5e26938098Acb961CBCdA8", "source": "SynthetixEscrow" }, "SynthetixState": { "name": "SynthetixState", "address": "0xcbcFB6E2d8517DB83BedB30f79D5197607207A2c", "source": "SynthetixState" }, "SynthetixDebtShare": { "name": "SynthetixDebtShare", "address": "0x38A37f7A044cdCe7DE92214feC1a6B58d4984d04", "source": "SynthetixDebtShare" }, "ProxyFeePool": { "name": "ProxyFeePool", "address": "0x9333da04c6BC03111E458C1ff717d2A64fD56590", "source": "Proxy" }, "DelegateApprovalsEternalStorage": { "name": "DelegateApprovalsEternalStorage", "address": "0x84d1E9847cb8d7e0e31C6fd06bd26B4031049138", "source": "EternalStorage" }, "DelegateApprovals": { "name": "DelegateApprovals", "address": "0x7F4D6d314aEb6fCa6a2aeB330260B2B7fc66E38B", "source": "DelegateApprovals" }, "Liquidator": { "name": "Liquidator", "address": "0x792525d8c0B230F0cF768fD0fc74847890e8EB9F", "source": "Liquidator" }, "LiquidatorRewards": { "name": "LiquidatorRewards", "address": "0x5A1E3158DadB68BF74dF6F3729ba72Acc4e7a5b3", "source": "LiquidatorRewards" }, "LiquidatorRewardsManager": { "name": "LiquidatorRewardsManager", "address": "0x03cc0484A774Eca797262A5a4d43BC18ED56709E", "source": "LiquidatorRewardsManager" }, "FeePoolEternalStorage": { "name": "FeePoolEternalStorage", "address": "0xA3777b70D9801826d32cAbA4cFBe336837A0CF07", "source": "FeePoolEternalStorage" }, "FeePool": { "name": "FeePool", "address": "0xAa3016F425Bfb0a282A8b259f274cf1495F4b127", "source": "FeePool" }, "FeePoolState": { "name": "FeePoolState", "address": "0x7F4a3D2d0e45ECD301Be8a181c3911677c353C85", "source": "FeePoolState" }, "RewardsDistribution": { "name": "RewardsDistribution", "address": "0x1E9f90cD112c2E3a4FB2951dd05CB35EA3C367D5", "source": "RewardsDistribution" }, "TokenStateSynthetix": { "name": "TokenStateSynthetix", "address": "0x51c8a8E3307E72bF9B65f044051814426f934e9C", "source": "LegacyTokenState" }, "ProxySynthetix": { "name": "ProxySynthetix", "address": "0xA8d4e786623ce6C99AE74265251A01000E2FcdC5", "source": "ProxyERC20" }, "Synthetix": { "name": "Synthetix", "address": "0xA8d4e786623ce6C99AE74265251A01000E2FcdC5", "source": "Synthetix" }, "DebtCache": { "name": "DebtCache", "address": "0xe143E07a1400CD49c9953449fEf820135566ae98", "source": "DebtCache" }, "Exchanger": { "name": "Exchanger", "address": "0x5c509Ce65A297B08dfBd233AB9ECDb2c8C3d0ee9", "source": "ExchangerWithFeeRecAlternatives" }, "ExchangeCircuitBreaker": { "name": "ExchangeCircuitBreaker", "address": "0x52245015EB7e8746c0312efAFD0434B0A64A8B63", "source": "ExchangeCircuitBreaker" }, "VirtualSynthMastercopy": { "name": "VirtualSynthMastercopy", "address": "0x381f09C9CF5b5Be0af7F66167349343AFCD8E0aF", "source": "VirtualSynthMastercopy" }, "ExchangeState": { "name": "ExchangeState", "address": "0x35e6fe6462F729F667488351Cae418FcAb9d4e5e", "source": "ExchangeState" }, "Issuer": { "name": "Issuer", "address": "0x6370c72e063DA2D9cc5556dfce83F7D102F60A73", "source": "Issuer" }, "IssuedSynthAggregator": { "name": "IssuedSynthAggregator", "address": "0x7223E89340B600Ff4F76C2eca648A454965BcD2d", "source": "IssuedSynthAggregator" }, "TradingRewards": { "name": "TradingRewards", "address": "0x2cBCCcA083b46AF4fB3AE0BF68aE32f4E4ae6818", "source": "TradingRewards" }, "SupplySchedule": { "name": "SupplySchedule", "address": "0x791CceE29Bc2477Efa1b25148c1b948B6e7c45f7", "source": "SupplySchedule" }, "EscrowChecker": { "name": "EscrowChecker", "address": "0x3C2dd2989f600b9bCd8F0Ce5eC10154d789B9250", "source": "EscrowChecker" }, "SynthetixBridgeToOptimism": { "name": "SynthetixBridgeToOptimism", "address": "0x9A4D7540E8679645Af703FE62CbFF30B2ff2092C", "source": "SynthetixBridgeToOptimism" }, "SynthetixBridgeEscrow": { "name": "SynthetixBridgeEscrow", "address": "0x3CC3B15e24C5Cf2a6eE9cfF998A844280AD85683", "source": "SynthetixBridgeEscrow" }, "OwnerRelayOnEthereum": { "name": "OwnerRelayOnEthereum", "address": "0xFdB31235cDFe68bfFD1d687AC3A2b31E80eacf0d", "source": "OwnerRelayOnEthereum" }, "SynthRedeemer": { "name": "SynthRedeemer", "address": "0x32aFd950659Dbc45da3599712FE09fE5EC5C8CdF", "source": "SynthRedeemer" }, "WrapperFactory": { "name": "WrapperFactory", "address": "0x87076a60815c9aa137C0844Fd8DC28F697F612D3", "source": "WrapperFactory" }, "SynthrBridge": { "name": "SynthrBridge", "address": "0x97Fd3D4508704B3a55C48639E6A8db4090D02a24", "source": "SynthrBridge" }, "TokenStatesUSD": { "name": "TokenStatesUSD", "address": "0xA5dc80524EB7B1e71754Ed88B59bce05481D6e3E", "source": "TokenState" }, "ProxysUSD": { "name": "ProxysUSD", "address": "0xF53C5Dff635c44B30A171d4c18F25Ce9EF9aA459", "source": "ProxyERC20" }, "SynthsUSD": { "name": "SynthsUSD", "address": "0x4752a203e8867f5c2B760dA9689CafbE01d4d8B1", "source": "Synth" }, "TokenStatesDOT": { "name": "TokenStatesDOT", "address": "0xf1209E75e0395419FFA90dEf2CEC51749a9E00b2", "source": "TokenState" }, "ProxysDOT": { "name": "ProxysDOT", "address": "0x1158916883760c261E44B00b3f0b614bbAf89413", "source": "ProxyERC20" }, "SynthsDOT": { "name": "SynthsDOT", "address": "0x8Fd8FB64A13F738d1a71b629342d4758AfE5DA2c", "source": "MultiCollateralSynth" }, "Depot": { "name": "Depot", "address": "0x92cE92e37090364B4711964E6cd1965eEa356C64", "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": "0x870CaAfab80361Ff458E5743e8E720d27Be88932", "source": "CollateralManagerState" }, "CollateralManager": { "name": "CollateralManager", "address": "0xC6412b04732737580ea20704A87CcD9A5Ad21E04", "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": "0xC727039bF71D021f1Ea1a84FA21c81eb4472c84d", "source": "EmptyFuturesMarketManager" }, "SynthUtil": { "name": "SynthUtil", "address": "0x9Fd279E28D5f9D0DB2d62E92905D85B2e3f08f82", "source": "SynthUtil" }, "DappMaintenance": { "name": "DappMaintenance", "address": "0x29A2CAfD898B7A24A6Ec3eA97d8C7b07958eC560", "source": "DappMaintenance" }, "TokenStatesBTC": { "name": "TokenStatesBTC", "address": "0x523ED7A4d3982Ccf191341Ae638d01992f3729FB", "source": "TokenState" }, "ProxysBTC": { "name": "ProxysBTC", "address": "0xb9B0ED7fBAb3EE7D3E47D3BdEC273AD79f151049", "source": "ProxyERC20" }, "SynthsBTC": { "name": "SynthsBTC", "address": "0xEc7f969b099Ca4E2E8721d3CBD58a4A824c49C19", "source": "MultiCollateralSynth" }, "TokenStatesAVAX": { "name": "TokenStatesAVAX", "address": "0x7d4046113FFEDcDeC08D727741b559F8060F332e", "source": "TokenState" }, "ProxysAVAX": { "name": "ProxysAVAX", "address": "0x8c7010c2DE7e56B70008445937BbD786dEbBCA3A", "source": "ProxyERC20" }, "SynthsAVAX": { "name": "SynthsAVAX", "address": "0xFBeF4Be0551620c6E9054A057AA8E5152D81b01c", "source": "MultiCollateralSynth" }, "TokenStatesBNB": { "name": "TokenStatesBNB", "address": "0xbB6453dd9a57F92Ac0dD02B4734a55d6156d4512", "source": "TokenState" }, "ProxysBNB": { "name": "ProxysBNB", "address": "0x10c3e80af8D60478f3d57d3034F4902126f132fc", "source": "ProxyERC20" }, "SynthsBNB": { "name": "SynthsBNB", "address": "0x170Ade483218001b6498e9bC7e978AF1b13306E3", "source": "MultiCollateralSynth" }, "TokenStatesMATIC": { "name": "TokenStatesMATIC", "address": "0x7a8542a5fA1c683aEc93d54e21Ee39Ad3BDDad3A", "source": "TokenState" }, "ProxysMATIC": { "name": "ProxysMATIC", "address": "0x2723559e93604317d098c4aD0c63305d1C4716c7", "source": "ProxyERC20" }, "SynthsMATIC": { "name": "SynthsMATIC", "address": "0xeB4467Bb34E3f4cD2F2052452BDFb55600B1CD60", "source": "MultiCollateralSynth" }, "TokenStatesETH": { "name": "TokenStatesETH", "address": "0x9a9Dc6641fca35509091d56796e13D42855D47f8", "source": "TokenState" }, "ProxysETH": { "name": "ProxysETH", "address": "0xBC7468137ECFcacEDe612089cFa361dBb9B82Fb2", "source": "ProxyERC20" }, "SynthsETH": { "name": "SynthsETH", "address": "0xe358BE746Cc9FeA9EA59221CBfcbE8D04D4C933c", "source": "MultiCollateralSynth" }, "SynthrAggregator": { "name": "SynthrAggregator", "address": "0xC6c7eC1BDf142c107977e0fc1209E5cE749e3376", "source": "SynthrAggregator" }, "ExternWrappedStateToken": { "name": "ExternWrappedStateToken", "address": "0x4D84a0262F765172c972fDaA19c39634939d4d1E", "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", "type": "function" }, { "constant": true, "inputs": [ { "inte