UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

171 lines (170 loc) 6 kB
{ "contractName": "PayableProxy", "abi": [ { "inputs": [ { "internalType": "address", "name": "dolomiteMargin", "type": "address" }, { "internalType": "address payable", "name": "weth", "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": "WETH", "outputs": [ { "internalType": "contract IWETH", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "number", "type": "uint256" } ], "internalType": "struct Account.Info[]", "name": "accounts", "type": "tuple[]" }, { "components": [ { "internalType": "enum Actions.ActionType", "name": "actionType", "type": "uint8" }, { "internalType": "uint256", "name": "accountId", "type": "uint256" }, { "components": [ { "internalType": "bool", "name": "sign", "type": "bool" }, { "internalType": "enum Types.AssetDenomination", "name": "denomination", "type": "uint8" }, { "internalType": "enum Types.AssetReference", "name": "ref", "type": "uint8" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "internalType": "struct Types.AssetAmount", "name": "amount", "type": "tuple" }, { "internalType": "uint256", "name": "primaryMarketId", "type": "uint256" }, { "internalType": "uint256", "name": "secondaryMarketId", "type": "uint256" }, { "internalType": "address", "name": "otherAddress", "type": "address" }, { "internalType": "uint256", "name": "otherAccountId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct Actions.ActionArgs[]", "name": "actions", "type": "tuple[]" }, { "internalType": "address payable", "name": "sendEthTo", "type": "address" } ], "name": "operate", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" } ], "networks": { "1101": { "links": {}, "address": "0x6B68bDCCb22931937d7D11e556d95a07E02fE3CE", "transactionHash": "0xaee8f0da4fcc877ce50f10ae672e93d8622b7e9e6c32cb07a2a9b87a7286a739" }, "42161": { "links": {}, "address": "0xaa1A2EdDa1715353526Ed09086b457b46375e0Fa", "transactionHash": "0xa24b274e55ccb9086ab1a03fffae737267331a0093ae8dbdbf901a271788e11e" } } }