Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@marketprotocol/types

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marketprotocol/types - npm Package Compare versions

Comparing version 0.1.15 to 0.2.0

33

dist/lib/MarketCollateralPool.js

@@ -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()]);

4

dist/types/MarketCollateralPool.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc