Comparing version 3.4.1 to 3.5.0
@@ -11,5 +11,3 @@ import { Subject } from 'rxjs'; | ||
methodName: string; | ||
params: { | ||
[key: string]: string; | ||
}; | ||
params: Record<string, unknown>; | ||
contractAddress?: string; | ||
@@ -46,2 +44,4 @@ contractType?: string; | ||
contractCall: ContractCall; | ||
internalTransactions: InternalTransaction[]; | ||
netBalanceChanges: NetBalanceChange[]; | ||
to: string; | ||
@@ -66,2 +66,30 @@ from: string; | ||
} | ||
export interface InternalTransaction { | ||
type: string; | ||
from: string; | ||
to: string; | ||
input: string; | ||
gas: number; | ||
gasUsed: number; | ||
value: string; | ||
contractCall: ContractCall; | ||
} | ||
export interface NetBalanceChange { | ||
address: string; | ||
balanceChanges: BalanceChange[]; | ||
} | ||
export interface BalanceChange { | ||
delta: string; | ||
asset: Asset; | ||
breakdown: BreakDown[]; | ||
} | ||
export interface Asset { | ||
type: string; | ||
symbol: string; | ||
contractAddress: string; | ||
} | ||
export interface BreakDown { | ||
counterparty: string; | ||
amount: string; | ||
} | ||
export declare type TransactionData = BitcoinTransactionData | EthereumTransactionData; | ||
@@ -73,3 +101,3 @@ export interface TransactionEvent { | ||
export declare type System = 'bitcoin' | 'ethereum'; | ||
export declare type Network = 'main' | 'testnet' | 'ropsten' | 'rinkeby' | 'goerli' | 'kovan' | 'xdai' | 'bsc-main' | 'local'; | ||
export declare type Network = 'main' | 'testnet' | 'ropsten' | 'rinkeby' | 'goerli' | 'kovan' | 'xdai' | 'bsc-main' | 'matic-main' | 'local'; | ||
export declare type Status = 'pending' | 'confirmed' | 'speedup' | 'cancel' | 'failed' | 'dropped'; | ||
@@ -76,0 +104,0 @@ export interface InputOutput { |
{ | ||
"name": "bnc-sdk", | ||
"version": "3.4.1", | ||
"version": "3.5.0", | ||
"description": "SDK to connect to the blocknative backend via a websocket connection", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.0", | ||
"@babel/cli": "^7.14.8", | ||
"@babel/core": "^7.5.5", | ||
@@ -39,3 +39,3 @@ "@babel/preset-env": "^7.5.5", | ||
"babel-plugin-external-helpers": "^6.18.0", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
@@ -42,0 +42,0 @@ "eslint-plugin-prettier": "^3.1.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
573304
18228