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": "0x823E53A0050eDF3cA90D21766149f0A0323733fB", "source": "SafeDecimalMath" }, "Math": { "name": "Math", "address": "0xee5cFeEA2caC5F3A13DB1193c211C7bfA5c03dF0", "source": "Math" }, "SystemSettingsLib": { "name": "SystemSettingsLib", "address": "0x4d5Ebbfa2eea7bd6850d40F09a3ca50c22C93F64", "source": "SystemSettingsLib" }, "SignedSafeDecimalMath": { "name": "SignedSafeDecimalMath", "address": "0xbFe5dA86981e2dB461bd85D31795aD233748EE32", "source": "SignedSafeDecimalMath" }, "AddressResolver": { "name": "AddressResolver", "address": "0xCbd4646787FE04d8abaAD756f35581657D0fFe7A", "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": "0xCfB68611f4E0543e451cDc6F7A01656018A6933E", "source": "FlexibleStorage" }, "SystemSettings": { "name": "SystemSettings", "address": "0x6C2612f688c08bdb322Dbc1e77A99ff9B3C0282E", "source": "SystemSettings" }, "SystemStatus": { "name": "SystemStatus", "address": "0x7131462cAdE21feEC813C30645B97FDfb9C170BA", "source": "SystemStatus" }, "ExchangeRates": { "name": "ExchangeRates", "address": "0x0859439A7963DaC7E96cca0eFedcaD5fC0C26e24", "source": "ExchangeRatesWithDexPricing" }, "RewardEscrow": { "name": "RewardEscrow", "address": "0xd435461f7521b7647D2ad39F8DD4903C2e7f407d", "source": "RewardEscrow" }, "RewardEscrowV2": { "name": "RewardEscrowV2", "address": "0xb171Cfbd6E0162Dedc36576f9639b466066f6AC1", "source": "RewardEscrowV2" }, "RewardEscrowV2Manager": { "name": "RewardEscrowV2Manager", "address": "0x9cF461D5Dd59909f7bedBE763DDf2aF9A13467C4", "source": "RewardEscrowV2Manager" }, "SynthetixEscrow": { "name": "SynthetixEscrow", "address": "0xC6a2a938F8ae3dE8Ee5e26938098Acb961CBCdA8", "source": "SynthetixEscrow" }, "SynthetixState": { "name": "SynthetixState", "address": "0xcbcFB6E2d8517DB83BedB30f79D5197607207A2c", "source": "SynthetixState" }, "SynthetixDebtShare": { "name": "SynthetixDebtShare", "address": "0xac7b3A99A278dDfCFf3a5d3A274B5EA72E63002a", "source": "SynthetixDebtShare" }, "ProxyFeePool": { "name": "ProxyFeePool", "address": "0x21Bb52dcf71C6ddD92c5B3A08DBBD69B02f13ba3", "source": "Proxy" }, "DelegateApprovalsEternalStorage": { "name": "DelegateApprovalsEternalStorage", "address": "0x298b2f195AD45D9CcF29a6FB4D8dE477549B37d1", "source": "EternalStorage" }, "DelegateApprovals": { "name": "DelegateApprovals", "address": "0x51290F68EF7645958f18CEc6cE28F217a445B587", "source": "DelegateApprovals" }, "Liquidator": { "name": "Liquidator", "address": "0x145ee16851E31eFc5109a29D36B30410C312FF55", "source": "Liquidator" }, "LiquidatorRewards": { "name": "LiquidatorRewards", "address": "0x34AdB2FfeC341ed0a9A02920d9a149F7fCB0AC21", "source": "LiquidatorRewards" }, "LiquidatorRewardsManager": { "name": "LiquidatorRewardsManager", "address": "0x5c25069198a7F66878Bf8c1197E2a0b69d33EBF8", "source": "LiquidatorRewardsManager" }, "FeePoolEternalStorage": { "name": "FeePoolEternalStorage", "address": "0x7D4A014A448E402b1F427aDb7743743d449f7e3A", "source": "FeePoolEternalStorage" }, "FeePool": { "name": "FeePool", "address": "0x0d308077c4E14DA6250c92986aDA37Ed59aDd6e5", "source": "FeePool" }, "FeePoolState": { "name": "FeePoolState", "address": "0x7F4a3D2d0e45ECD301Be8a181c3911677c353C85", "source": "FeePoolState" }, "RewardsDistribution": { "name": "RewardsDistribution", "address": "0xc20D158258827aDc33A6A72e04E87A6A0f9B9B16", "source": "RewardsDistribution" }, "TokenStateSynthetix": { "name": "TokenStateSynthetix", "address": "0x51c8a8E3307E72bF9B65f044051814426f934e9C", "source": "LegacyTokenState" }, "ProxySynthetix": { "name": "ProxySynthetix", "address": "0x2A88f335bE5247AeB0E76687FC3264B541fE2416", "source": "ProxyERC20" }, "Synthetix": { "name": "Synthetix", "address": "0x2A88f335bE5247AeB0E76687FC3264B541fE2416", "source": "Synthetix" }, "DebtCache": { "name": "DebtCache", "address": "0xe143E07a1400CD49c9953449fEf820135566ae98", "source": "DebtCache" }, "Exchanger": { "name": "Exchanger", "address": "0x0424Ad9ff359fB53564A5E3162e574f2C5c1dF79", "source": "ExchangerWithFeeRecAlternatives" }, "ExchangeCircuitBreaker": { "name": "ExchangeCircuitBreaker", "address": "0xf5f2F901Ae64AA2bC999CDE2F6731Bb81b75CDCb", "source": "ExchangeCircuitBreaker" }, "VirtualSynthMastercopy": { "name": "VirtualSynthMastercopy", "address": "0x381f09C9CF5b5Be0af7F66167349343AFCD8E0aF", "source": "VirtualSynthMastercopy" }, "ExchangeState": { "name": "ExchangeState", "address": "0xb11635f9784b87783AE3626BDD5c07C86c0e7d2e", "source": "ExchangeState" }, "Issuer": { "name": "Issuer", "address": "0xcF2C3Eb5D3eCa2a91Fe5a4558DC650bF700898ce", "source": "Issuer" }, "IssuedSynthAggregator": { "name": "IssuedSynthAggregator", "address": "0xC42E22e156c7EC9546B6aa2B8D97E8922793e4EB", "source": "IssuedSynthAggregator" }, "TradingRewards": { "name": "TradingRewards", "address": "0x6417d72B2E31d3cf71302d8E3ab972A3BB6a6b35", "source": "TradingRewards" }, "SupplySchedule": { "name": "SupplySchedule", "address": "0xBA46DD9bB323CEBaE96f12fCB0aD706f6D6fA574", "source": "SupplySchedule" }, "EscrowChecker": { "name": "EscrowChecker", "address": "0x3C2dd2989f600b9bCd8F0Ce5eC10154d789B9250", "source": "EscrowChecker" }, "SynthetixBridgeToOptimism": { "name": "SynthetixBridgeToOptimism", "address": "0xC1D3Ce8c237331548d615c1e8022E56c047e9Eb5", "source": "SynthetixBridgeToOptimism" }, "SynthetixBridgeEscrow": { "name": "SynthetixBridgeEscrow", "address": "0xe947a68138Ef5d577aaE5845944D8f8669ca0E79", "source": "SynthetixBridgeEscrow" }, "OwnerRelayOnEthereum": { "name": "OwnerRelayOnEthereum", "address": "0xFdB31235cDFe68bfFD1d687AC3A2b31E80eacf0d", "source": "OwnerRelayOnEthereum" }, "SynthRedeemer": { "name": "SynthRedeemer", "address": "0x0bE1f3C4A8820798E906CAAF2b9A386D94EB9C6f", "source": "SynthRedeemer" }, "WrapperFactory": { "name": "WrapperFactory", "address": "0x87076a60815c9aa137C0844Fd8DC28F697F612D3", "source": "WrapperFactory" }, "SynthrBridge": { "name": "SynthrBridge", "address": "0x89f1B3F4AC159Eb54D582807742814e59eB9aCC8", "source": "SynthrBridge" }, "TokenStatesUSD": { "name": "TokenStatesUSD", "address": "0xa30ea603D4707CF3Ed77C5Ad620dd5fBa04b77E5", "source": "TokenState" }, "ProxysUSD": { "name": "ProxysUSD", "address": "0xC382495FB15d47B5AD0F5f775A65464E5dc87527", "source": "ProxyERC20" }, "SynthsUSD": { "name": "SynthsUSD", "address": "0x831eCF2c6CBe69E7f13A1a16d7f4251f8a20D1CB", "source": "Synth" }, "TokenStatesDOT": { "name": "TokenStatesDOT", "address": "0x9f894aE149c59b4abFfc218F7D23b74421aC4258", "source": "TokenState" }, "ProxysDOT": { "name": "ProxysDOT", "address": "0x355695F96a65196ceAa5dDC69d6f7893D1dFaBe4", "source": "ProxyERC20" }, "SynthsDOT": { "name": "SynthsDOT", "address": "0x9e051da990113D69Eda1c04479AbC925b0400634", "source": "MultiCollateralSynth" }, "Depot": { "name": "Depot", "address": "0x522D8F4534f5b173552848b9FaF20b84AC930104", "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": "0x0552c5327a7Ee62406d8114DB74cCf39E9738f75", "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": "0x1C1cAAC5dbDa14D2d4543Ffc8aEe7b3Dad388f75", "source": "EmptyFuturesMarketManager" }, "SynthUtil": { "name": "SynthUtil", "address": "0x168f4a0A8B22c36a0f6ea8DA3586BdCC2D3A798C", "source": "SynthUtil" }, "DappMaintenance": { "name": "DappMaintenance", "address": "0xBc8653a24AF54333a8490f5de1F87A4120543555", "source": "DappMaintenance" }, "TokenStatesBTC": { "name": "TokenStatesBTC", "address": "0x867b3ddC234335D7e506Af6ffBEC8753F1dB9783", "source": "TokenState" }, "ProxysBTC": { "name": "ProxysBTC", "address": "0x5CcBBE785e2A0e51Ae8f6AEaB800c859F94cd8A6", "source": "ProxyERC20" }, "SynthsBTC": { "name": "SynthsBTC", "address": "0x11F6107A32f0603015d97578C8f6C497b3140652", "source": "MultiCollateralSynth" }, "TokenStatesAVAX": { "name": "TokenStatesAVAX", "address": "0x4210F17fC4242fe8C25A1Ad323D23222c161Db24", "source": "TokenState" }, "ProxysAVAX": { "name": "ProxysAVAX", "address": "0xbBB40F41c0E7ca65b2D8cDc1E282D41F8D4595AD", "source": "ProxyERC20" }, "SynthsAVAX": { "name": "SynthsAVAX", "address": "0x735Bd45dAdB466a12884ede3F106C8182B379b33", "source": "MultiCollateralSynth" }, "TokenStatesBNB": { "name": "TokenStatesBNB", "address": "0xc92494E16Ea2409071f97a91c7de379d3f25730B", "source": "TokenState" }, "ProxysBNB": { "name": "ProxysBNB", "address": "0xf97fc4B07256605c3FF7668d74066AAa5b1285b7", "source": "ProxyERC20" }, "SynthsBNB": { "name": "SynthsBNB", "address": "0xc0F6F4Fe3456d7F897242Ef591d387f2760EFd42", "source": "MultiCollateralSynth" }, "TokenStatesMATIC": { "name": "TokenStatesMATIC", "address": "0x0d6B81E7606E4C8f8035D02f669508731F366f0c", "source": "TokenState" }, "ProxysMATIC": { "name": "ProxysMATIC", "address": "0x4b45D050717F9c5176D40E7a35D15151caEA821a", "source": "ProxyERC20" }, "SynthsMATIC": { "name": "SynthsMATIC", "address": "0xDF11bF952612A63c03361b660BE8b215b322EF6e", "source": "MultiCollateralSynth" }, "TokenStatesETH": { "name": "TokenStatesETH", "address": "0xE57a00641259428662D2f60EAc28ddB937Fe3FdD", "source": "TokenState" }, "ProxysETH": { "name": "ProxysETH", "address": "0x38dec268160f0863537D941FfC1bF8e342107f36", "source": "ProxyERC20" }, "SynthsETH": { "name": "SynthsETH", "address": "0xd3BB174Bcf228737e951D96946b138083E3a77F5", "source": "MultiCollateralSynth" }, "SynthrAggregator": { "name": "SynthrAggregator", "address": "0xC6c7eC1BDf142c107977e0fc1209E5cE749e3376", "source": "SynthrAggregator" }, "ExternWrappedStateToken": { "name": "ExternWrappedStateToken", "address": "0x925e50B831EA7BE00E4EA8D0bb32ED9d83408BAA", "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