optimum-trading
Advanced tools
+138
-28
@@ -6,17 +6,36 @@ module.exports = [ | ||
| { | ||
| "name": "spender", | ||
| "name": "next", | ||
| "type": "address" | ||
| }, | ||
| } | ||
| ], | ||
| "name": "setSigner", | ||
| "outputs": [], | ||
| "payable": false, | ||
| "stateMutability": "nonpayable", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": false, | ||
| "inputs": [ | ||
| { | ||
| "name": "amount", | ||
| "type": "uint256" | ||
| "name": "token", | ||
| "type": "address" | ||
| } | ||
| ], | ||
| "name": "approve", | ||
| "outputs": [ | ||
| "name": "settle", | ||
| "outputs": [], | ||
| "payable": false, | ||
| "stateMutability": "nonpayable", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": false, | ||
| "inputs": [ | ||
| { | ||
| "name": "", | ||
| "type": "bool" | ||
| "name": "token", | ||
| "type": "address" | ||
| } | ||
| ], | ||
| "name": "settleWritten", | ||
| "outputs": [], | ||
| "payable": false, | ||
@@ -30,7 +49,59 @@ "stateMutability": "nonpayable", | ||
| { | ||
| "name": "from", | ||
| "name": "action", | ||
| "type": "uint8" | ||
| }, | ||
| { | ||
| "name": "expiration", | ||
| "type": "uint256" | ||
| }, | ||
| { | ||
| "name": "getting", | ||
| "type": "uint256" | ||
| }, | ||
| { | ||
| "name": "giving", | ||
| "type": "uint256" | ||
| }, | ||
| { | ||
| "name": "token", | ||
| "type": "address" | ||
| }, | ||
| { | ||
| "name": "to", | ||
| "name": "v", | ||
| "type": "uint8" | ||
| }, | ||
| { | ||
| "name": "r", | ||
| "type": "bytes32" | ||
| }, | ||
| { | ||
| "name": "s", | ||
| "type": "bytes32" | ||
| } | ||
| ], | ||
| "name": "trade", | ||
| "outputs": [], | ||
| "payable": true, | ||
| "stateMutability": "payable", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": false, | ||
| "inputs": [ | ||
| { | ||
| "name": "amount", | ||
| "type": "uint256" | ||
| } | ||
| ], | ||
| "name": "withdraw", | ||
| "outputs": [], | ||
| "payable": false, | ||
| "stateMutability": "nonpayable", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": false, | ||
| "inputs": [ | ||
| { | ||
| "name": "token", | ||
| "type": "address" | ||
@@ -43,9 +114,18 @@ }, | ||
| ], | ||
| "name": "transferFrom", | ||
| "outputs": [ | ||
| "name": "withdrawToken", | ||
| "outputs": [], | ||
| "payable": false, | ||
| "stateMutability": "nonpayable", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": false, | ||
| "inputs": [ | ||
| { | ||
| "name": "", | ||
| "type": "bool" | ||
| "name": "amount", | ||
| "type": "uint256" | ||
| } | ||
| ], | ||
| "name": "withdrawUSD", | ||
| "outputs": [], | ||
| "payable": false, | ||
@@ -56,14 +136,25 @@ "stateMutability": "nonpayable", | ||
| { | ||
| "constant": true, | ||
| "inputs": [ | ||
| { | ||
| "name": "a", | ||
| "name": "_protocol", | ||
| "type": "address" | ||
| } | ||
| ], | ||
| "name": "balanceOf", | ||
| "payable": false, | ||
| "stateMutability": "nonpayable", | ||
| "type": "constructor" | ||
| }, | ||
| { | ||
| "payable": true, | ||
| "stateMutability": "payable", | ||
| "type": "fallback" | ||
| }, | ||
| { | ||
| "constant": true, | ||
| "inputs": [], | ||
| "name": "owner", | ||
| "outputs": [ | ||
| { | ||
| "name": "", | ||
| "type": "uint256" | ||
| "type": "address" | ||
| } | ||
@@ -76,24 +167,43 @@ ], | ||
| { | ||
| "constant": false, | ||
| "inputs": [ | ||
| "constant": true, | ||
| "inputs": [], | ||
| "name": "protocol", | ||
| "outputs": [ | ||
| { | ||
| "name": "to", | ||
| "name": "", | ||
| "type": "address" | ||
| }, | ||
| } | ||
| ], | ||
| "payable": false, | ||
| "stateMutability": "view", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": true, | ||
| "inputs": [], | ||
| "name": "signer", | ||
| "outputs": [ | ||
| { | ||
| "name": "amount", | ||
| "type": "uint256" | ||
| "name": "", | ||
| "type": "address" | ||
| } | ||
| ], | ||
| "name": "transfer", | ||
| "payable": false, | ||
| "stateMutability": "view", | ||
| "type": "function" | ||
| }, | ||
| { | ||
| "constant": true, | ||
| "inputs": [], | ||
| "name": "usd", | ||
| "outputs": [ | ||
| { | ||
| "name": "", | ||
| "type": "bool" | ||
| "type": "address" | ||
| } | ||
| ], | ||
| "payable": false, | ||
| "stateMutability": "nonpayable", | ||
| "stateMutability": "view", | ||
| "type": "function" | ||
| } | ||
| ] | ||
| ] |
+1
-1
| { | ||
| "name": "optimum-trading", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "main": "index.js", | ||
| "license": "MIT" | ||
| } |
3194
116.25%206
112.37%