UNPKG

@synthr/js

Version:

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

2,441 lines (2,440 loc) 609 kB
{ "targets": { "SafeDecimalMath": { "name": "SafeDecimalMath", "address": "0xa817D88b280Edab59A58fb817cC6232620A46f0D", "source": "SafeDecimalMath" }, "Math": { "name": "Math", "address": "0xee5cFeEA2caC5F3A13DB1193c211C7bfA5c03dF0", "source": "Math" }, "SystemSettingsLib": { "name": "SystemSettingsLib", "address": "0xcF61DEE1DC17Ffc9eE885a34a2A534871d8E1A58", "source": "SystemSettingsLib" }, "SignedSafeDecimalMath": { "name": "SignedSafeDecimalMath", "address": "0xbFe5dA86981e2dB461bd85D31795aD233748EE32", "source": "SignedSafeDecimalMath" }, "AddressResolver": { "name": "AddressResolver", "address": "0x59828e0850ae09fA5e3A4789316bD02EbB933fF5", "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": "0xa1d454c5261360B340Cf6055404d574B661269e2", "source": "FlexibleStorage" }, "SystemSettings": { "name": "SystemSettings", "address": "0x29E74bebA1eC290cCDBcDdC797177853B3e6edfA", "source": "SystemSettings" }, "SystemStatus": { "name": "SystemStatus", "address": "0x3d41110E8536Ca287797F842961347b48A6BB44A", "source": "SystemStatus" }, "ExchangeRates": { "name": "ExchangeRates", "address": "0x85e4F4e00BaFdA2896E7505F00660924f57088bB", "source": "ExchangeRatesWithDexPricing" }, "RewardEscrow": { "name": "RewardEscrow", "address": "0xd435461f7521b7647D2ad39F8DD4903C2e7f407d", "source": "RewardEscrow" }, "RewardEscrowV2": { "name": "RewardEscrowV2", "address": "0xa5fd48329CA4ff36f7AD5Cbc386443769b3B3cd4", "source": "RewardEscrowV2" }, "RewardEscrowV2Manager": { "name": "RewardEscrowV2Manager", "address": "0x5Be18F942C8D7B67FcF07DB5fe58019e70422eB9", "source": "RewardEscrowV2Manager" }, "SynthetixEscrow": { "name": "SynthetixEscrow", "address": "0xC6a2a938F8ae3dE8Ee5e26938098Acb961CBCdA8", "source": "SynthetixEscrow" }, "SynthetixState": { "name": "SynthetixState", "address": "0xcbcFB6E2d8517DB83BedB30f79D5197607207A2c", "source": "SynthetixState" }, "SynthetixDebtShare": { "name": "SynthetixDebtShare", "address": "0x21FFC3e3C6a80E67fDa819Eb1D9aE60C388Ec9d7", "source": "SynthetixDebtShare" }, "ProxyFeePool": { "name": "ProxyFeePool", "address": "0x34a1757231c180C24FC846e75dac98372227484b", "source": "Proxy" }, "DelegateApprovalsEternalStorage": { "name": "DelegateApprovalsEternalStorage", "address": "0x863F88Fb51848C91bbb9bebbCbE52ECf2f80d6d1", "source": "EternalStorage" }, "DelegateApprovals": { "name": "DelegateApprovals", "address": "0x62Cf4fe3e5Db957DbD016Df519A3a09CFe6F1D0c", "source": "DelegateApprovals" }, "Liquidator": { "name": "Liquidator", "address": "0xCc205dE22527f11a78031d9D7392036f6A3BB440", "source": "Liquidator" }, "LiquidatorRewards": { "name": "LiquidatorRewards", "address": "0x6525f17D9bB2044eE2885ACFc9Bbdb8A6F98907C", "source": "LiquidatorRewards" }, "LiquidatorRewardsManager": { "name": "LiquidatorRewardsManager", "address": "0xC498C9C1a33c30835231ED43Aa3ED50d9BC11017", "source": "LiquidatorRewardsManager" }, "FeePoolEternalStorage": { "name": "FeePoolEternalStorage", "address": "0x00648Cbbd257fF10132113969BA970B5Ad826471", "source": "FeePoolEternalStorage" }, "FeePool": { "name": "FeePool", "address": "0x94062Fc7eB730cff0Cc7f67DA6C470e62f068Cc5", "source": "FeePool" }, "FeePoolState": { "name": "FeePoolState", "address": "0x7F4a3D2d0e45ECD301Be8a181c3911677c353C85", "source": "FeePoolState" }, "RewardsDistribution": { "name": "RewardsDistribution", "address": "0x9e98D54c1e1a359432E118F5964d96d66Db74657", "source": "RewardsDistribution" }, "TokenStateSynthetix": { "name": "TokenStateSynthetix", "address": "0x51c8a8E3307E72bF9B65f044051814426f934e9C", "source": "LegacyTokenState" }, "ProxySynthetix": { "name": "ProxySynthetix", "address": "0xA8B8fe483ecc4CE65d6BEF71a2dCAB5cBff823B8", "source": "ProxyERC20" }, "Synthetix": { "name": "Synthetix", "address": "0xA8B8fe483ecc4CE65d6BEF71a2dCAB5cBff823B8", "source": "Synthetix" }, "DebtCache": { "name": "DebtCache", "address": "0xe143E07a1400CD49c9953449fEf820135566ae98", "source": "DebtCache" }, "Exchanger": { "name": "Exchanger", "address": "0xEC30D09d57e33d4940A54fCa53F39F8935B45a84", "source": "ExchangerWithFeeRecAlternatives" }, "ExchangeCircuitBreaker": { "name": "ExchangeCircuitBreaker", "address": "0xe4852619Fe508FBC9A9640364811A67622C72b69", "source": "ExchangeCircuitBreaker" }, "VirtualSynthMastercopy": { "name": "VirtualSynthMastercopy", "address": "0x381f09C9CF5b5Be0af7F66167349343AFCD8E0aF", "source": "VirtualSynthMastercopy" }, "ExchangeState": { "name": "ExchangeState", "address": "0xe1430C4324FcDB4098D786A46859bDfD17582283", "source": "ExchangeState" }, "Issuer": { "name": "Issuer", "address": "0x011a94fA04a65512edC3aFc929014614Fd86dD95", "source": "Issuer" }, "IssuedSynthAggregator": { "name": "IssuedSynthAggregator", "address": "0xEA20e813F39Fa64D1D684b3d790fb8F1AE6e6E7E", "source": "IssuedSynthAggregator" }, "TradingRewards": { "name": "TradingRewards", "address": "0x445E2f0895BE6E0A8545DfdC07167E17c39CEC20", "source": "TradingRewards" }, "SupplySchedule": { "name": "SupplySchedule", "address": "0x02CB80f46C6565BaD247B6C1b39224f5b80ceb66", "source": "SupplySchedule" }, "EscrowChecker": { "name": "EscrowChecker", "address": "0x3C2dd2989f600b9bCd8F0Ce5eC10154d789B9250", "source": "EscrowChecker" }, "SynthetixBridgeToOptimism": { "name": "SynthetixBridgeToOptimism", "address": "0x963ee40595bFf49d66B4F3eCb7Ab9Ba318874B27", "source": "SynthetixBridgeToOptimism" }, "SynthetixBridgeEscrow": { "name": "SynthetixBridgeEscrow", "address": "0x653Bc9F47Fb2C067004f001Bd528457D779c7109", "source": "SynthetixBridgeEscrow" }, "OwnerRelayOnEthereum": { "name": "OwnerRelayOnEthereum", "address": "0xFdB31235cDFe68bfFD1d687AC3A2b31E80eacf0d", "source": "OwnerRelayOnEthereum" }, "SynthRedeemer": { "name": "SynthRedeemer", "address": "0xDc204541984d357Ce918F9Fa8FE1bC63ce16d501", "source": "SynthRedeemer" }, "WrapperFactory": { "name": "WrapperFactory", "address": "0x87076a60815c9aa137C0844Fd8DC28F697F612D3", "source": "WrapperFactory" }, "SynthrBridge": { "name": "SynthrBridge", "address": "0x4C11cCeE50B70dAa47c41849e45316d975b26102", "source": "SynthrBridge" }, "TokenStatesUSD": { "name": "TokenStatesUSD", "address": "0xA0B9F2bFb13C23aB2F88412903F0f86790e8a0c4", "source": "TokenState" }, "ProxysUSD": { "name": "ProxysUSD", "address": "0x632b721266dA9C31878637C40227e85070141986", "source": "ProxyERC20" }, "SynthsUSD": { "name": "SynthsUSD", "address": "0x20fA210691a62B47baeDf0412cF8BB231BDA59F3", "source": "Synth" }, "TokenStatesDOT": { "name": "TokenStatesDOT", "address": "0x4613a36f6613a8C7Fa9841CCfcF0f469469943E8", "source": "TokenState" }, "ProxysDOT": { "name": "ProxysDOT", "address": "0x1c17F7Fc018B5d702Bb0dE746FaC2beA5EfFEDEF", "source": "ProxyERC20" }, "SynthsDOT": { "name": "SynthsDOT", "address": "0x4902a5914f124Bdf79163c7dCE4313Ac9E944808", "source": "MultiCollateralSynth" }, "Depot": { "name": "Depot", "address": "0x5Cc69239109e5151F0B76037242408A6E03F79d3", "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": "0x8B529ad2247eC3A3dCC3E3fa4b31a428ee9D7666", "source": "CollateralManagerState" }, "CollateralManager": { "name": "CollateralManager", "address": "0x1ad49D909b88bAE78D907C97d2cF7F8738126d0c", "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": "0x142d427a74F0a67421eE96ec77bc836f3041671D", "source": "EmptyFuturesMarketManager" }, "SynthUtil": { "name": "SynthUtil", "address": "0x5E68e93188c6d35dE314B6D4830e5D0a388e7B87", "source": "SynthUtil" }, "DappMaintenance": { "name": "DappMaintenance", "address": "0x097A6EE1E23C7db6aFe9386776dE3Ca9cA7Ab17A", "source": "DappMaintenance" }, "TokenStatesBTC": { "name": "TokenStatesBTC", "address": "0x1a51632508B1131e4a19b8C0Ec109549C8564EC3", "source": "TokenState" }, "ProxysBTC": { "name": "ProxysBTC", "address": "0x80dA7612E609c33FB1aFdA1D843c8d073b243e62", "source": "ProxyERC20" }, "SynthsBTC": { "name": "SynthsBTC", "address": "0xa61a293b8eA692758bF963629F18620929F55f22", "source": "MultiCollateralSynth" }, "TokenStatesAVAX": { "name": "TokenStatesAVAX", "address": "0xe83deFF89Fb0F01625248625808d2fA3cAFFB232", "source": "TokenState" }, "ProxysAVAX": { "name": "ProxysAVAX", "address": "0x19a9AaCCbE1d69926bC99e6d9EcB2Ff80177B8C7", "source": "ProxyERC20" }, "SynthsAVAX": { "name": "SynthsAVAX", "address": "0xBdE72eCca93fB84f0FB9Ec0c79cF66e2f29fbD8a", "source": "MultiCollateralSynth" }, "TokenStatesBNB": { "name": "TokenStatesBNB", "address": "0x334F19A6A7c9F28f0fa0f0a792F9Ad270006bA53", "source": "TokenState" }, "ProxysBNB": { "name": "ProxysBNB", "address": "0x267A9c6CF4c3243C24A9b6462E835A2E22BA1508", "source": "ProxyERC20" }, "SynthsBNB": { "name": "SynthsBNB", "address": "0x0836080e92323436e54F64A56ADE96433A081582", "source": "MultiCollateralSynth" }, "TokenStatesMATIC": { "name": "TokenStatesMATIC", "address": "0x0857c8283BA9Dd7202D7356A12c6F1ee560A7aC3", "source": "TokenState" }, "ProxysMATIC": { "name": "ProxysMATIC", "address": "0x589B554D07e1E5832DF29473b13d7Ac22f8061b1", "source": "ProxyERC20" }, "SynthsMATIC": { "name": "SynthsMATIC", "address": "0xA11084cC03B53bcD8aB87f6f28F2aeDd45F0C0c6", "source": "MultiCollateralSynth" }, "TokenStatesETH": { "name": "TokenStatesETH", "address": "0xE1016B35cbd6A1442A807821F868b513C72A41f8", "source": "TokenState" }, "ProxysETH": { "name": "ProxysETH", "address": "0xc417607462629A4682da8aD578037A2Bb0478653", "source": "ProxyERC20" }, "SynthsETH": { "name": "SynthsETH", "address": "0x104893ccE94d4661a089c7Aab964779255684825", "source": "MultiCollateralSynth" }, "SynthrAggregator": { "name": "SynthrAggregator", "address": "0xFfb3A525247A5bEC132339D6977e0B222A20dD5A", "source": "SynthrAggregator" }, "ExternWrappedStateToken": { "name": "ExternWrappedStateToken", "address": "0x43934ea39509481aEF0aF0F2fBf647d82D516DD7", "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_CROSS_DOMAIN_GAS_LIMIT", "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_FEE_PERIOD_DURATION", "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_LIQUIDATION_DELAY", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_LIQUIDATION_FIX_FACTOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_LIQUIDATION_PENALTY", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_LIQUIDATION_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": "MAX_WRAPPER_BURN_FEE_RATE", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_WRAPPER_MINT_FEE_RATE", "outputs": [ { "internalType": "int256", "name": "", "type": "int256" } ], "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": "MIN_CROSS_DOMAIN_GAS_LIMIT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_FEE_PERIOD_DURATION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_LIQUIDATION_DELAY", "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": [