@marketprotocol/types
Advanced tools
Comparing version 0.1.15 to 0.2.0
@@ -116,3 +116,3 @@ "use strict"; | ||
inputs: [{ name: 'userAddress', type: 'address' }], | ||
name: 'getUserPosition', | ||
name: 'getUserNetPosition', | ||
outputs: [{ name: '', type: 'int256' }], | ||
@@ -126,2 +126,20 @@ payable: false, | ||
inputs: [{ name: 'userAddress', type: 'address' }], | ||
name: 'getUserPositionCount', | ||
outputs: [{ name: '', type: 'uint256' }], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [{ name: 'userAddress', type: 'address' }, { name: 'index', type: 'uint256' }], | ||
name: 'getUserPosition', | ||
outputs: [{ name: '', type: 'uint256' }, { name: '', type: 'int256' }], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [{ name: 'userAddress', type: 'address' }], | ||
name: 'getUserAccountBalance', | ||
@@ -222,5 +240,14 @@ outputs: [{ name: '', type: 'uint256' }], | ||
}; | ||
MarketCollateralPool.prototype.getUserPosition = function (userAddress) { | ||
return typechain_runtime_1.promisify(this.rawWeb3Contract.getUserPosition, [userAddress.toString()]); | ||
MarketCollateralPool.prototype.getUserNetPosition = function (userAddress) { | ||
return typechain_runtime_1.promisify(this.rawWeb3Contract.getUserNetPosition, [userAddress.toString()]); | ||
}; | ||
MarketCollateralPool.prototype.getUserPositionCount = function (userAddress) { | ||
return typechain_runtime_1.promisify(this.rawWeb3Contract.getUserPositionCount, [userAddress.toString()]); | ||
}; | ||
MarketCollateralPool.prototype.getUserPosition = function (userAddress, index) { | ||
return typechain_runtime_1.promisify(this.rawWeb3Contract.getUserPosition, [ | ||
userAddress.toString(), | ||
index.toString() | ||
]); | ||
}; | ||
MarketCollateralPool.prototype.getUserAccountBalance = function (userAddress) { | ||
@@ -227,0 +254,0 @@ return typechain_runtime_1.promisify(this.rawWeb3Contract.getUserAccountBalance, [userAddress.toString()]); |
@@ -11,3 +11,5 @@ import { BigNumber } from 'bignumber.js'; | ||
userAddressToAccountBalance(arg0: BigNumber | string): Promise<BigNumber>; | ||
getUserPosition(userAddress: BigNumber | string): Promise<BigNumber>; | ||
getUserNetPosition(userAddress: BigNumber | string): Promise<BigNumber>; | ||
getUserPositionCount(userAddress: BigNumber | string): Promise<BigNumber>; | ||
getUserPosition(userAddress: BigNumber | string, index: BigNumber | number): Promise<[BigNumber, BigNumber]>; | ||
getUserAccountBalance(userAddress: BigNumber | string): Promise<BigNumber>; | ||
@@ -14,0 +16,0 @@ depositTokensForTradingTx(depositAmount: BigNumber | number): DeferredTransactionWrapper<ITxParams>; |
{ | ||
"name": "@marketprotocol/types", | ||
"version": "0.1.15", | ||
"version": "0.2.0", | ||
"description": "Typescript defintions for MARKET Protocol smart contract ABIs", | ||
@@ -104,3 +104,3 @@ "keywords": [ | ||
"@0xproject/typescript-typings": "^0.4.1", | ||
"@marketprotocol/marketprotocol": "^1.2.0", | ||
"@marketprotocol/marketprotocol": "^1.3.0", | ||
"@types/jest": "^23.1.2", | ||
@@ -107,0 +107,0 @@ "@types/node": "^10.3.6", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
317796
4700