Created
May 18, 2018 14:12
-
-
Save yanik-ai/f2a255dc9d1bf70f2ff73190878d09af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MLN_ABI = { | |
"contracts": { | |
"FundInterface.sol:FundInterface": { | |
"abi": [ | |
{ | |
"constant": False, | |
"inputs": [], | |
"name": "enableInvestment", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [], | |
"name": "shutDown", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [], | |
"name": "disableInvestment", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "shareQuantity", | |
"type": "uint256" | |
} | |
], | |
"name": "redeemAllOwnedAssets", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "getLastRequestId", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "shareQuantity", | |
"type": "uint256" | |
}, | |
{ | |
"name": "receiveQuantity", | |
"type": "uint256" | |
}, | |
{ | |
"name": "isNativeAsset", | |
"type": "bool" | |
} | |
], | |
"name": "requestRedemption", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "exchangeId", | |
"type": "uint256" | |
}, | |
{ | |
"name": "id", | |
"type": "uint256" | |
}, | |
{ | |
"name": "quantity", | |
"type": "uint256" | |
} | |
], | |
"name": "takeOrder", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "requestId", | |
"type": "uint256" | |
} | |
], | |
"name": "cancelRequest", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "exchangeId", | |
"type": "uint256" | |
}, | |
{ | |
"name": "sellAsset", | |
"type": "address" | |
}, | |
{ | |
"name": "buyAsset", | |
"type": "address" | |
}, | |
{ | |
"name": "sellQuantity", | |
"type": "uint256" | |
}, | |
{ | |
"name": "buyQuantity", | |
"type": "uint256" | |
} | |
], | |
"name": "makeOrder", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [], | |
"name": "calcSharePriceAndAllocateFees", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [], | |
"name": "enableRedemption", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "giveQuantity", | |
"type": "uint256" | |
}, | |
{ | |
"name": "shareQuantity", | |
"type": "uint256" | |
}, | |
{ | |
"name": "isNativeAsset", | |
"type": "bool" | |
} | |
], | |
"name": "requestInvestment", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "getLastOrderId", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "requestId", | |
"type": "uint256" | |
} | |
], | |
"name": "executeRequest", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "shareQuantity", | |
"type": "uint256" | |
}, | |
{ | |
"name": "requestedAssets", | |
"type": "address[]" | |
} | |
], | |
"name": "emergencyRedeem", | |
"outputs": [ | |
{ | |
"name": "success", | |
"type": "bool" | |
} | |
], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "calcSharePrice", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "performCalculations", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"name": "", | |
"type": "uint256" | |
}, | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "getModules", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
}, | |
{ | |
"name": "", | |
"type": "address" | |
}, | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [ | |
{ | |
"name": "exchangeId", | |
"type": "uint256" | |
}, | |
{ | |
"name": "id", | |
"type": "uint256" | |
} | |
], | |
"name": "cancelOrder", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "getManager", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": False, | |
"inputs": [], | |
"name": "disableRedemption", | |
"outputs": [], | |
"payable": False, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": True, | |
"inputs": [], | |
"name": "getNameHash", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bytes32" | |
} | |
], | |
"payable": False, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "holdings", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "price", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "decimals", | |
"type": "uint256" | |
} | |
], | |
"name": "PortfolioContent", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "id", | |
"type": "uint256" | |
} | |
], | |
"name": "RequestUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": True, | |
"name": "ofParticipant", | |
"type": "address" | |
}, | |
{ | |
"indexed": False, | |
"name": "atTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "shareQuantity", | |
"type": "uint256" | |
} | |
], | |
"name": "Invested", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": True, | |
"name": "ofParticipant", | |
"type": "address" | |
}, | |
{ | |
"indexed": False, | |
"name": "atTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "shareQuantity", | |
"type": "uint256" | |
} | |
], | |
"name": "Redeemed", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "onConsigned", | |
"type": "address" | |
}, | |
{ | |
"indexed": False, | |
"name": "ofAsset", | |
"type": "address" | |
}, | |
{ | |
"indexed": False, | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "SpendingApproved", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "atTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "shareQuantityConverted", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "unclaimed", | |
"type": "uint256" | |
} | |
], | |
"name": "FeesConverted", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "atTimestamp", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "managementFee", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "performanceFee", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "nav", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "sharePrice", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": False, | |
"name": "totalSupply", | |
"type": "uint256" | |
} | |
], | |
"name": "CalculationUpdate", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "id", | |
"type": "uint256" | |
} | |
], | |
"name": "OrderUpdated", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "ERROR_CODE", | |
"type": "uint256" | |
} | |
], | |
"name": "LogError", | |
"type": "event" | |
}, | |
{ | |
"anonymous": False, | |
"inputs": [ | |
{ | |
"indexed": False, | |
"name": "errorMessage", | |
"type": "string" | |
} | |
], | |
"name": "ErrorMessage", | |
"type": "event" | |
} | |
] | |
} | |
}, | |
"version": "0.4.24+commit.e67f0147.Darwin.appleclang" | |
} | |
print(A) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment