UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

424 lines (423 loc) 13.5 kB
{ "contractName": "DepositWithdrawalProxy", "abi": [ { "inputs": [ { "internalType": "address", "name": "_dolomiteMargin", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "constant": true, "inputs": [], "name": "DOLOMITE_MARGIN", "outputs": [ { "internalType": "contract IDolomiteMargin", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "PAYABLE_MARKET_ID", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "WRAPPED_PAYABLE_TOKEN", "outputs": [ { "internalType": "contract IWETH", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "g_initialized", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address payable", "name": "_payableToken", "type": "address" } ], "name": "initializePayableMarket", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_toAccountNumber", "type": "uint256" }, { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountWei", "type": "uint256" } ], "name": "depositWei", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_toAccountNumber", "type": "uint256" } ], "name": "depositPayable", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountWei", "type": "uint256" } ], "name": "depositWeiIntoDefaultAccount", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "depositPayableIntoDefaultAccount", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_fromAccountNumber", "type": "uint256" }, { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountWei", "type": "uint256" }, { "internalType": "enum AccountBalanceLib.BalanceCheckFlag", "name": "_balanceCheckFlag", "type": "uint8" } ], "name": "withdrawWei", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_fromAccountNumber", "type": "uint256" }, { "internalType": "uint256", "name": "_amountWei", "type": "uint256" }, { "internalType": "enum AccountBalanceLib.BalanceCheckFlag", "name": "_balanceCheckFlag", "type": "uint8" } ], "name": "withdrawPayable", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountWei", "type": "uint256" }, { "internalType": "enum AccountBalanceLib.BalanceCheckFlag", "name": "_balanceCheckFlag", "type": "uint8" } ], "name": "withdrawWeiFromDefaultAccount", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_amountWei", "type": "uint256" }, { "internalType": "enum AccountBalanceLib.BalanceCheckFlag", "name": "_balanceCheckFlag", "type": "uint8" } ], "name": "withdrawPayableFromDefaultAccount", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_toAccountNumber", "type": "uint256" }, { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountPar", "type": "uint256" } ], "name": "depositPar", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountPar", "type": "uint256" } ], "name": "depositParIntoDefaultAccount", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_fromAccountNumber", "type": "uint256" }, { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountPar", "type": "uint256" }, { "internalType": "enum AccountBalanceLib.BalanceCheckFlag", "name": "_balanceCheckFlag", "type": "uint8" } ], "name": "withdrawPar", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_marketId", "type": "uint256" }, { "internalType": "uint256", "name": "_amountPar", "type": "uint256" }, { "internalType": "enum AccountBalanceLib.BalanceCheckFlag", "name": "_balanceCheckFlag", "type": "uint8" } ], "name": "withdrawParFromDefaultAccount", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "networks": { "1": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0x36b2849939a603d84c2f3d057b50c283271fe3423de7b4b120e193a8f9706732" }, "56": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0xc6157f2871229b9bac40997825cd18cc45356f6f3393864e9cef16e29b3520e0" }, "196": { "links": {}, "address": "0xDC94f0C55c9A21b02f2743cf4B77Fa02329355Fd", "transactionHash": "0xba966b3c0100b3e513f4a9556a02dfaa108403ea9c91dc854710af4160921e7e" }, "1101": { "links": {}, "address": "0xDfB6BAA334712cBBeb26B7537f62B81C2a87B1E8", "transactionHash": "0x19f40121aa64121b52b9a0da93a19b330e2a82e931c54226898e46960099b276" }, "3637": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0x18f545355f82290e5a4e7ec2b23e0aacb154e18cd9aa7cf8aa00744be1d3a5f6" }, "5000": { "links": {}, "address": "0x1A3752Eb5Db6B2Ac0207Ce3847f18743D3fAccA5", "transactionHash": "0x58c66594db9da203995d382a8846a2f680d33847b3d58320b0f755c9e69e6008" }, "5330": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0x94fa2e11e1846fc7fb1bb2977f19991eb6d8f18c6a65eb295b10fa3408852ded" }, "8453": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0x1f9cd6288dc7055309889127143d5cce4cbb3f23f573c4defaa96fe1b6d85758" }, "42161": { "links": {}, "address": "0xAdB9D68c613df4AA363B42161E1282117C7B9594", "transactionHash": "0xd0f5831eaf10a4d1457e268c5f2f14f3a00e7e022eb7d67d64ad7de60192be98" }, "57073": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0x3554f9d32e0d006d96dc5ed8e44997c8ecb97b2751b59d4f3c651812361224d6" }, "80094": { "links": {}, "address": "0xd6a31B6AeA4d26A19bF479b5032D9DDc481187e6", "transactionHash": "0x6143285670202967be93d018941b65d7436a50534de47219df398d01d4f0bcf6" } } }