Doc reference

Class: WSClient

This class includes all the functionality related to interacting with a Mesh JSON RPC websocket endpoint.

Hierarchy

  • WSClient

Index

Constructors

Methods

Constructors

constructor

+ new WSClient(url: string, wsOpts?: WSOpts): WSClient

Defined in ws_client.ts:252arrow-up-right

Instantiates a new WSClient instance

Parameters:

Name

Type

Description

url

string

WS server endpoint

wsOpts?

WebSocket options

Returns: WSClient

An instance of WSClient

Methods

addOrdersAsync

▸ addOrdersAsync(signedOrders: SignedOrder[], pinned: boolean): Promise‹ValidationResults›

Defined in ws_client.ts:281arrow-up-right

Adds an array of 0x signed orders to the Mesh node.

Parameters:

Name

Type

Default

Description

signedOrders

SignedOrder[]

-

signedOrders to add

pinned

boolean

true

Whether or not the orders should be pinned. Pinned orders will not be affected by any DDoS prevention or incentive mechanisms and will always stay in storage until they are no longer fillable.

Returns: Promise‹ValidationResults›

validation results

destroy

â–¸ destroy(): void

Defined in ws_client.ts:421arrow-up-right

destroy unsubscribes all active subscriptions, closes the websocket connection and stops the internal heartbeat connection liveness check.

Returns: void

getOrdersAsync

▸ getOrdersAsync(perPage: number): Promise‹GetOrdersResponse›

Defined in ws_client.ts:311arrow-up-right

Get all 0x signed orders currently stored in the Mesh node

Parameters:

Name

Type

Default

Description

perPage

number

200

number of signedOrders to fetch per paginated request

Returns: Promise‹GetOrdersResponse›

the snapshotID, snapshotTimestamp and all orders, their hashes and fillableTakerAssetAmounts

getOrdersForPageAsync

▸ getOrdersForPageAsync(page: number, perPage: number, snapshotID?: undefined | string): Promise‹GetOrdersResponse›

Defined in ws_client.ts:342arrow-up-right

Get page of 0x signed orders stored on the Mesh node at the specified snapshot

Parameters:

Name

Type

Default

Description

page

number

-

Page index at which to retrieve orders

perPage

number

200

number of signedOrders to fetch per paginated request

snapshotID?

undefined | string

-

The DB snapshot at which to fetch orders. If omitted, a new snapshot is created

Returns: Promise‹GetOrdersResponse›

the snapshotID, snapshotTimestamp and all orders, their hashes and fillableTakerAssetAmounts

getStatsAsync

▸ getStatsAsync(): Promise‹GetStatsResponse›

Defined in ws_client.ts:302arrow-up-right

Returns: Promise‹GetStatsResponse›

onClose

â–¸ onClose(cb: function): void

Defined in ws_client.ts:403arrow-up-right

Get notified when the underlying WS connection closes normally. If it closes with an error, WSClient automatically attempts to re-connect without emitting a close event.

Parameters:

â–ª cb: function

callback to call when WS connection closes

â–¸ (): void

Returns: void

onReconnected

â–¸ onReconnected(cb: function): void

Defined in ws_client.ts:412arrow-up-right

Get notified when a connection to the underlying WS connection is re-established

Parameters:

â–ª cb: function

callback to call with the error when it occurs

â–¸ (): void

Returns: void

subscribeToOrdersAsync

▸ subscribeToOrdersAsync(cb: function): Promise‹string›

Defined in ws_client.ts:363arrow-up-right

Subscribe to the 'orders' topic and receive order events from Mesh. This method returns a subscriptionId that can be used to unsubscribe() from this subscription.

Parameters:

â–ª cb: function

callback function where you'd like to get notified about order events

â–¸ (orderEvents: OrderEvent[]): void

Parameters:

Name

Type

orderEvents

Returns: Promise‹string›

subscriptionId

unsubscribeAsync

▸ unsubscribeAsync(subscriptionId: string): Promise‹void›

Defined in ws_client.ts:393arrow-up-right

Unsubscribe from a subscription

Parameters:

Name

Type

Description

subscriptionId

string

identifier of the subscription to cancel

Returns: Promise‹void›

Enumeration: ContractEventKind

Index

Enumeration members

Enumeration members

ERC1155ApprovalForAllEvent

• ERC1155ApprovalForAllEvent: = "ERC1155ApprovalForAllEvent"

Defined in types.ts:222arrow-up-right

ERC1155TransferBatchEvent

• ERC1155TransferBatchEvent: = "ERC1155TransferBatchEvent"

Defined in types.ts:224arrow-up-right

ERC1155TransferSingleEvent

• ERC1155TransferSingleEvent: = "ERC1155TransferSingleEvent"

Defined in types.ts:223arrow-up-right

ERC20ApprovalEvent

• ERC20ApprovalEvent: = "ERC20ApprovalEvent"

Defined in types.ts:218arrow-up-right

ERC20TransferEvent

• ERC20TransferEvent: = "ERC20TransferEvent"

Defined in types.ts:217arrow-up-right

ERC721ApprovalEvent

• ERC721ApprovalEvent: = "ERC721ApprovalEvent"

Defined in types.ts:220arrow-up-right

ERC721ApprovalForAllEvent

• ERC721ApprovalForAllEvent: = "ERC721ApprovalForAllEvent"

Defined in types.ts:221arrow-up-right

ERC721TransferEvent

• ERC721TransferEvent: = "ERC721TransferEvent"

Defined in types.ts:219arrow-up-right

ExchangeCancelEvent

• ExchangeCancelEvent: = "ExchangeCancelEvent"

Defined in types.ts:226arrow-up-right

ExchangeCancelUpToEvent

• ExchangeCancelUpToEvent: = "ExchangeCancelUpToEvent"

Defined in types.ts:227arrow-up-right

ExchangeFillEvent

• ExchangeFillEvent: = "ExchangeFillEvent"

Defined in types.ts:225arrow-up-right

WethDepositEvent

• WethDepositEvent: = "WethDepositEvent"

Defined in types.ts:228arrow-up-right

WethWithdrawalEvent

• WethWithdrawalEvent: = "WethWithdrawalEvent"

Defined in types.ts:229arrow-up-right

Enumeration: OrderEventEndState

Index

Enumeration members

Enumeration members

Added

• Added: = "ADDED"

Defined in types.ts:286arrow-up-right

Cancelled

• Cancelled: = "CANCELLED"

Defined in types.ts:289arrow-up-right

Expired

• Expired: = "EXPIRED"

Defined in types.ts:290arrow-up-right

FillabilityIncreased

• FillabilityIncreased: = "FILLABILITY_INCREASED"

Defined in types.ts:294arrow-up-right

Filled

• Filled: = "FILLED"

Defined in types.ts:287arrow-up-right

FullyFilled

• FullyFilled: = "FULLY_FILLED"

Defined in types.ts:288arrow-up-right

Invalid

• Invalid: = "INVALID"

Defined in types.ts:285arrow-up-right

StoppedWatching

• StoppedWatching: = "STOPPED_WATCHING"

Defined in types.ts:292arrow-up-right

Unexpired

• Unexpired: = "UNEXPIRED"

Defined in types.ts:291arrow-up-right

Unfunded

• Unfunded: = "UNFUNDED"

Defined in types.ts:293arrow-up-right

Enumeration: RejectedCode

Index

Enumeration members

Enumeration members

InternalError

• InternalError: = "InternalError"

Defined in types.ts:358arrow-up-right

MaxOrderSizeExceeded

• MaxOrderSizeExceeded: = "MaxOrderSizeExceeded"

Defined in types.ts:359arrow-up-right

NetworkRequestFailed

• NetworkRequestFailed: = "NetworkRequestFailed"

Defined in types.ts:362arrow-up-right

OrderAlreadyStored

• OrderAlreadyStored: = "OrderAlreadyStored"

Defined in types.ts:360arrow-up-right

OrderCancelled

• OrderCancelled: = "OrderCancelled"

Defined in types.ts:367arrow-up-right

OrderExpired

• OrderExpired: = "OrderExpired"

Defined in types.ts:365arrow-up-right

OrderForIncorrectChain

• OrderForIncorrectChain: = "OrderForIncorrectChain"

Defined in types.ts:361arrow-up-right

OrderFullyFilled

• OrderFullyFilled: = "OrderFullyFilled"

Defined in types.ts:366arrow-up-right

OrderHasInvalidMakerAssetAmount

• OrderHasInvalidMakerAssetAmount: = "OrderHasInvalidMakerAssetAmount"

Defined in types.ts:363arrow-up-right

OrderHasInvalidMakerAssetData

• OrderHasInvalidMakerAssetData: = "OrderHasInvalidMakerAssetData"

Defined in types.ts:369arrow-up-right

OrderHasInvalidSignature

• OrderHasInvalidSignature: = "OrderHasInvalidSignature"

Defined in types.ts:371arrow-up-right

OrderHasInvalidTakerAssetAmount

• OrderHasInvalidTakerAssetAmount: = "OrderHasInvalidTakerAssetAmount"

Defined in types.ts:364arrow-up-right

OrderHasInvalidTakerAssetData

• OrderHasInvalidTakerAssetData: = "OrderHasInvalidTakerAssetData"

Defined in types.ts:370arrow-up-right

OrderUnfunded

• OrderUnfunded: = "OrderUnfunded"

Defined in types.ts:368arrow-up-right

Enumeration: RejectedKind

Index

Enumeration members

Enumeration members

MeshError

• MeshError: = "MESH_ERROR"

Defined in types.ts:353arrow-up-right

MeshValidation

• MeshValidation: = "MESH_VALIDATION"

Defined in types.ts:354arrow-up-right

ZeroexValidation

• ZeroexValidation: = "ZEROEX_VALIDATION"

Defined in types.ts:352arrow-up-right

Interface: AcceptedOrderInfo

Hierarchy

  • AcceptedOrderInfo

Index

Properties

Properties

fillableTakerAssetAmount

• fillableTakerAssetAmount: BigNumber

Defined in types.ts:335arrow-up-right

isNew

• isNew: boolean

Defined in types.ts:336arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:333arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:334arrow-up-right

Interface: ClientConfig

WebSocketClient configs Source: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketClient.md#client-config-optionsarrow-up-right

Hierarchy

  • ClientConfig

Index

Properties

Properties

Optional assembleFragments

• assembleFragments? : undefined | false | true

Defined in types.ts:16arrow-up-right

Optional closeTimeout

• closeTimeout? : undefined | number

Defined in types.ts:17arrow-up-right

Optional fragmentOutgoingMessages

• fragmentOutgoingMessages? : undefined | false | true

Defined in types.ts:14arrow-up-right

Optional fragmentationThreshold

• fragmentationThreshold? : undefined | number

Defined in types.ts:15arrow-up-right

Optional maxReceivedFrameSize

• maxReceivedFrameSize? : undefined | number

Defined in types.ts:12arrow-up-right

Optional maxReceivedMessageSize

• maxReceivedMessageSize? : undefined | number

Defined in types.ts:13arrow-up-right

Optional tlsOptions

• tlsOptions? : any

Defined in types.ts:18arrow-up-right

Optional webSocketVersion

• webSocketVersion? : undefined | number

Defined in types.ts:11arrow-up-right

Interface: ContractEvent

Hierarchy

  • ContractEvent

Index

Properties

Properties

address

• address: string

Defined in types.ts:279arrow-up-right

blockHash

• blockHash: string

Defined in types.ts:274arrow-up-right

isRemoved

• isRemoved: string

Defined in types.ts:278arrow-up-right

kind

• kind: ContractEventKind

Defined in types.ts:280arrow-up-right

logIndex

• logIndex: number

Defined in types.ts:277arrow-up-right

parameters

• parameters: ContractEventParameters

Defined in types.ts:281arrow-up-right

txHash

• txHash: string

Defined in types.ts:275arrow-up-right

txIndex

• txIndex: number

Defined in types.ts:276arrow-up-right

Interface: ERC1155ApprovalForAllEvent

Hierarchy

  • ERC1155ApprovalForAllEvent

Index

Properties

Properties

approved

• approved: boolean

Defined in types.ts:144arrow-up-right

operator

• operator: string

Defined in types.ts:143arrow-up-right

owner

• owner: string

Defined in types.ts:142arrow-up-right

Interface: ERC1155TransferBatchEvent

Hierarchy

  • ERC1155TransferBatchEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:127arrow-up-right

ids

• ids: BigNumber[]

Defined in types.ts:129arrow-up-right

operator

• operator: string

Defined in types.ts:126arrow-up-right

to

• to: string

Defined in types.ts:128arrow-up-right

values

• values: BigNumber[]

Defined in types.ts:130arrow-up-right

Interface: ERC1155TransferSingleEvent

Hierarchy

  • ERC1155TransferSingleEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:111arrow-up-right

id

• id: BigNumber

Defined in types.ts:113arrow-up-right

operator

• operator: string

Defined in types.ts:110arrow-up-right

to

• to: string

Defined in types.ts:112arrow-up-right

value

• value: BigNumber

Defined in types.ts:114arrow-up-right

Interface: ERC20ApprovalEvent

Hierarchy

  • ERC20ApprovalEvent

Index

Properties

Properties

owner

• owner: string

Defined in types.ts:68arrow-up-right

spender

• spender: string

Defined in types.ts:69arrow-up-right

value

• value: BigNumber

Defined in types.ts:70arrow-up-right

Interface: ERC20TransferEvent

Hierarchy

  • ERC20TransferEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:56arrow-up-right

to

• to: string

Defined in types.ts:57arrow-up-right

value

• value: BigNumber

Defined in types.ts:58arrow-up-right

Interface: ERC721ApprovalEvent

Hierarchy

  • ERC721ApprovalEvent

Index

Properties

Properties

approved

• approved: string

Defined in types.ts:93arrow-up-right

owner

• owner: string

Defined in types.ts:92arrow-up-right

tokenId

• tokenId: BigNumber

Defined in types.ts:94arrow-up-right

Interface: ERC721ApprovalForAllEvent

Hierarchy

  • ERC721ApprovalForAllEvent

Index

Properties

Properties

approved

• approved: boolean

Defined in types.ts:106arrow-up-right

operator

• operator: string

Defined in types.ts:105arrow-up-right

owner

• owner: string

Defined in types.ts:104arrow-up-right

Interface: ERC721TransferEvent

Hierarchy

  • ERC721TransferEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:80arrow-up-right

to

• to: string

Defined in types.ts:81arrow-up-right

tokenId

• tokenId: BigNumber

Defined in types.ts:82arrow-up-right

Interface: ExchangeCancelEvent

Hierarchy

  • ExchangeCancelEvent

Index

Properties

Properties

feeRecipientAddress

• feeRecipientAddress: string

Defined in types.ts:178arrow-up-right

makerAddress

• makerAddress: string

Defined in types.ts:176arrow-up-right

makerAssetData

• makerAssetData: string

Defined in types.ts:180arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:179arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:177arrow-up-right

takerAssetData

• takerAssetData: string

Defined in types.ts:181arrow-up-right

Interface: ExchangeCancelUpToEvent

Hierarchy

  • ExchangeCancelUpToEvent

Index

Properties

Properties

makerAddress

• makerAddress: string

Defined in types.ts:185arrow-up-right

orderEpoch

• orderEpoch: BigNumber

Defined in types.ts:187arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:186arrow-up-right

Interface: ExchangeFillEvent

Hierarchy

  • ExchangeFillEvent

Index

Properties

Properties

feeRecipientAddress

• feeRecipientAddress: string

Defined in types.ts:151arrow-up-right

makerAddress

• makerAddress: string

Defined in types.ts:148arrow-up-right

makerAssetData

• makerAssetData: string

Defined in types.ts:157arrow-up-right

makerAssetFilledAmount

• makerAssetFilledAmount: BigNumber

Defined in types.ts:152arrow-up-right

makerFeePaid

• makerFeePaid: BigNumber

Defined in types.ts:154arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:156arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:150arrow-up-right

takerAddress

• takerAddress: string

Defined in types.ts:149arrow-up-right

takerAssetData

• takerAssetData: string

Defined in types.ts:158arrow-up-right

takerAssetFilledAmount

• takerAssetFilledAmount: BigNumber

Defined in types.ts:153arrow-up-right

takerFeePaid

• takerFeePaid: BigNumber

Defined in types.ts:155arrow-up-right

Interface: GetOrdersResponse

Hierarchy

  • GetOrdersResponse

Index

Properties

Properties

ordersInfos

• ordersInfos: OrderInfo[]

Defined in types.ts:415arrow-up-right

snapshotID

• snapshotID: string

Defined in types.ts:413arrow-up-right

snapshotTimestamp

• snapshotTimestamp: number

Defined in types.ts:414arrow-up-right

Interface: GetStatsResponse

Hierarchy

  • GetStatsResponse

Index

Properties

Properties

ethRPCRateLimitExpiredRequests

• ethRPCRateLimitExpiredRequests: number

Defined in types.ts:442arrow-up-right

ethRPCRequestsSentInCurrentUTCDay

• ethRPCRequestsSentInCurrentUTCDay: number

Defined in types.ts:441arrow-up-right

ethereumChainID

• ethereumChainID: number

Defined in types.ts:433arrow-up-right

latestBlock

• latestBlock: LatestBlock

Defined in types.ts:434arrow-up-right

maxExpirationTime

• maxExpirationTime: string

Defined in types.ts:439arrow-up-right

numOrders

• numOrders: number

Defined in types.ts:436arrow-up-right

numOrdersIncludingRemoved

• numOrdersIncludingRemoved: number

Defined in types.ts:437arrow-up-right

numPeers

• numPeers: number

Defined in types.ts:435arrow-up-right

numPinnedOrders

• numPinnedOrders: number

Defined in types.ts:438arrow-up-right

peerID

• peerID: string

Defined in types.ts:432arrow-up-right

pubSubTopic

• pubSubTopic: string

Defined in types.ts:430arrow-up-right

rendezvous

• rendezvous: string

Defined in types.ts:431arrow-up-right

startOfCurrentUTCDay

• startOfCurrentUTCDay: string

Defined in types.ts:440arrow-up-right

version

• version: string

Defined in types.ts:429arrow-up-right

Interface: HeartbeatEventPayload

Hierarchy

  • HeartbeatEventPayload

Index

Properties

Properties

result

• result: string

Defined in types.ts:304arrow-up-right

subscription

• subscription: string

Defined in types.ts:303arrow-up-right

Interface: LatestBlock

Hierarchy

  • LatestBlock

Index

Properties

Properties

hash

• hash: string

Defined in types.ts:425arrow-up-right

number

• number: number

Defined in types.ts:424arrow-up-right

Interface: OrderEvent

Hierarchy

  • OrderEvent

Index

Properties

Properties

contractEvents

• contractEvents: ContractEvent[]

Defined in types.ts:322arrow-up-right

endState

• endState: OrderEventEndState

Defined in types.ts:320arrow-up-right

fillableTakerAssetAmount

• fillableTakerAssetAmount: BigNumber

Defined in types.ts:321arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:318arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:319arrow-up-right

timestampMs

• timestampMs: number

Defined in types.ts:317arrow-up-right

Interface: OrderEventPayload

Hierarchy

  • OrderEventPayload

Index

Properties

Properties

result

• result: RawOrderEvent[]

Defined in types.ts:299arrow-up-right

subscription

• subscription: string

Defined in types.ts:298arrow-up-right

Interface: OrderInfo

Hierarchy

  • OrderInfo

Index

Properties

Properties

fillableTakerAssetAmount

• fillableTakerAssetAmount: BigNumber

Defined in types.ts:348arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:346arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:347arrow-up-right

Interface: RawAcceptedOrderInfo

Hierarchy

  • RawAcceptedOrderInfo

Index

Properties

Properties

fillableTakerAssetAmount

• fillableTakerAssetAmount: string

Defined in types.ts:328arrow-up-right

isNew

• isNew: boolean

Defined in types.ts:329arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:326arrow-up-right

signedOrder

• signedOrder: StringifiedSignedOrder

Defined in types.ts:327arrow-up-right

Interface: RawGetOrdersResponse

Hierarchy

  • RawGetOrdersResponse

Index

Properties

Properties

ordersInfos

• ordersInfos: RawAcceptedOrderInfo[]

Defined in types.ts:406arrow-up-right

snapshotID

• snapshotID: string

Defined in types.ts:404arrow-up-right

snapshotTimestamp

• snapshotTimestamp: string

Defined in types.ts:405arrow-up-right

Interface: RawOrderEvent

Hierarchy

  • RawOrderEvent

Index

Properties

Properties

contractEvents

• contractEvents: StringifiedContractEvent[]

Defined in types.ts:313arrow-up-right

endState

• endState: OrderEventEndState

Defined in types.ts:311arrow-up-right

fillableTakerAssetAmount

• fillableTakerAssetAmount: string

Defined in types.ts:312arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:309arrow-up-right

signedOrder

• signedOrder: StringifiedSignedOrder

Defined in types.ts:310arrow-up-right

timestamp

• timestamp: string

Defined in types.ts:308arrow-up-right

Interface: RawOrderInfo

Hierarchy

  • RawOrderInfo

Index

Properties

Properties

fillableTakerAssetAmount

• fillableTakerAssetAmount: string

Defined in types.ts:342arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:340arrow-up-right

signedOrder

• signedOrder: StringifiedSignedOrder

Defined in types.ts:341arrow-up-right

Interface: RawRejectedOrderInfo

Hierarchy

  • RawRejectedOrderInfo

Index

Properties

Properties

kind

• kind: RejectedKind

Defined in types.ts:382arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:380arrow-up-right

signedOrder

• signedOrder: StringifiedSignedOrder

Defined in types.ts:381arrow-up-right

status

• status: RejectedStatus

Defined in types.ts:383arrow-up-right

Interface: RawValidationResults

Hierarchy

  • RawValidationResults

Index

Properties

Properties

accepted

• accepted: RawAcceptedOrderInfo[]

Defined in types.ts:394arrow-up-right

rejected

• rejected: RawRejectedOrderInfo[]

Defined in types.ts:395arrow-up-right

Interface: RejectedOrderInfo

Hierarchy

  • RejectedOrderInfo

Index

Properties

Properties

kind

• kind: RejectedKind

Defined in types.ts:389arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:387arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:388arrow-up-right

status

• status: RejectedStatus

Defined in types.ts:390arrow-up-right

Interface: RejectedStatus

Hierarchy

  • RejectedStatus

Index

Properties

Properties

code

• code: RejectedCode

Defined in types.ts:375arrow-up-right

message

• message: string

Defined in types.ts:376arrow-up-right

Interface: StringifiedContractEvent

Hierarchy

  • StringifiedContractEvent

Index

Properties

Properties

address

• address: string

Defined in types.ts:253arrow-up-right

blockHash

• blockHash: string

Defined in types.ts:248arrow-up-right

isRemoved

• isRemoved: string

Defined in types.ts:252arrow-up-right

kind

• kind: string

Defined in types.ts:254arrow-up-right

logIndex

• logIndex: number

Defined in types.ts:251arrow-up-right

parameters

• parameters: StringifiedContractEventParameters

Defined in types.ts:255arrow-up-right

txHash

• txHash: string

Defined in types.ts:249arrow-up-right

txIndex

• txIndex: number

Defined in types.ts:250arrow-up-right

Interface: StringifiedERC1155TransferBatchEvent

Hierarchy

  • StringifiedERC1155TransferBatchEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:135arrow-up-right

ids

• ids: string[]

Defined in types.ts:137arrow-up-right

operator

• operator: string

Defined in types.ts:134arrow-up-right

to

• to: string

Defined in types.ts:136arrow-up-right

values

• values: string[]

Defined in types.ts:138arrow-up-right

Interface: StringifiedERC1155TransferSingleEvent

Hierarchy

  • StringifiedERC1155TransferSingleEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:119arrow-up-right

id

• id: string

Defined in types.ts:121arrow-up-right

operator

• operator: string

Defined in types.ts:118arrow-up-right

to

• to: string

Defined in types.ts:120arrow-up-right

value

• value: string

Defined in types.ts:122arrow-up-right

Interface: StringifiedERC20ApprovalEvent

Hierarchy

  • StringifiedERC20ApprovalEvent

Index

Properties

Properties

owner

• owner: string

Defined in types.ts:74arrow-up-right

spender

• spender: string

Defined in types.ts:75arrow-up-right

value

• value: string

Defined in types.ts:76arrow-up-right

Interface: StringifiedERC20TransferEvent

Hierarchy

  • StringifiedERC20TransferEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:62arrow-up-right

to

• to: string

Defined in types.ts:63arrow-up-right

value

• value: string

Defined in types.ts:64arrow-up-right

Interface: StringifiedERC721ApprovalEvent

Hierarchy

  • StringifiedERC721ApprovalEvent

Index

Properties

Properties

approved

• approved: string

Defined in types.ts:99arrow-up-right

owner

• owner: string

Defined in types.ts:98arrow-up-right

tokenId

• tokenId: string

Defined in types.ts:100arrow-up-right

Interface: StringifiedERC721TransferEvent

Hierarchy

  • StringifiedERC721TransferEvent

Index

Properties

Properties

from

• from: string

Defined in types.ts:86arrow-up-right

to

• to: string

Defined in types.ts:87arrow-up-right

tokenId

• tokenId: string

Defined in types.ts:88arrow-up-right

Interface: StringifiedExchangeCancelUpToEvent

Hierarchy

  • StringifiedExchangeCancelUpToEvent

Index

Properties

Properties

makerAddress

• makerAddress: string

Defined in types.ts:191arrow-up-right

orderEpoch

• orderEpoch: string

Defined in types.ts:193arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:192arrow-up-right

Interface: StringifiedExchangeFillEvent

Hierarchy

  • StringifiedExchangeFillEvent

Index

Properties

Properties

feeRecipientAddress

• feeRecipientAddress: string

Defined in types.ts:165arrow-up-right

makerAddress

• makerAddress: string

Defined in types.ts:162arrow-up-right

makerAssetData

• makerAssetData: string

Defined in types.ts:171arrow-up-right

makerAssetFilledAmount

• makerAssetFilledAmount: string

Defined in types.ts:166arrow-up-right

makerFeePaid

• makerFeePaid: string

Defined in types.ts:168arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:170arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:164arrow-up-right

takerAddress

• takerAddress: string

Defined in types.ts:163arrow-up-right

takerAssetData

• takerAssetData: string

Defined in types.ts:172arrow-up-right

takerAssetFilledAmount

• takerAssetFilledAmount: string

Defined in types.ts:167arrow-up-right

takerFeePaid

• takerFeePaid: string

Defined in types.ts:169arrow-up-right

Interface: StringifiedSignedOrder

Hierarchy

  • StringifiedSignedOrder

Index

Properties

Properties

exchangeAddress

• exchangeAddress: string

Defined in types.ts:49arrow-up-right

expirationTimeSeconds

• expirationTimeSeconds: string

Defined in types.ts:51arrow-up-right

feeRecipientAddress

• feeRecipientAddress: string

Defined in types.ts:50arrow-up-right

makerAddress

• makerAddress: string

Defined in types.ts:40arrow-up-right

makerAssetAmount

• makerAssetAmount: string

Defined in types.ts:44arrow-up-right

makerAssetData

• makerAssetData: string

Defined in types.ts:46arrow-up-right

makerFee

• makerFee: string

Defined in types.ts:42arrow-up-right

salt

• salt: string

Defined in types.ts:48arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:39arrow-up-right

signature

• signature: string

Defined in types.ts:52arrow-up-right

takerAddress

• takerAddress: string

Defined in types.ts:41arrow-up-right

takerAssetAmount

• takerAssetAmount: string

Defined in types.ts:45arrow-up-right

takerAssetData

• takerAssetData: string

Defined in types.ts:47arrow-up-right

takerFee

• takerFee: string

Defined in types.ts:43arrow-up-right

Interface: StringifiedWethDepositEvent

Hierarchy

  • StringifiedWethDepositEvent

Index

Properties

Properties

owner

• owner: string

Defined in types.ts:212arrow-up-right

value

• value: string

Defined in types.ts:213arrow-up-right

Interface: StringifiedWethWithdrawalEvent

Hierarchy

  • StringifiedWethWithdrawalEvent

Index

Properties

Properties

owner

• owner: string

Defined in types.ts:202arrow-up-right

value

• value: string

Defined in types.ts:203arrow-up-right

Interface: ValidationResults

Hierarchy

  • ValidationResults

Index

Properties

Properties

accepted

• accepted: AcceptedOrderInfo[]

Defined in types.ts:399arrow-up-right

rejected

• rejected: RejectedOrderInfo[]

Defined in types.ts:400arrow-up-right

Interface: WethDepositEvent

Hierarchy

  • WethDepositEvent

Index

Properties

Properties

owner

• owner: string

Defined in types.ts:207arrow-up-right

value

• value: BigNumber

Defined in types.ts:208arrow-up-right

Interface: WethWithdrawalEvent

Hierarchy

  • WethWithdrawalEvent

Index

Properties

Properties

owner

• owner: string

Defined in types.ts:197arrow-up-right

value

• value: BigNumber

Defined in types.ts:198arrow-up-right

Interface: WSMessage

Hierarchy

  • WSMessage

Index

Properties

Properties

type

• type: string

Defined in types.ts:419arrow-up-right

utf8Data

• utf8Data: string

Defined in types.ts:420arrow-up-right

Interface: WSOpts

timeout: timeout in milliseconds to enforce on every WS request that expects a response headers: Request headers (e.g., authorization) protocol: requestOptions should be either null or an object specifying additional configuration options to be passed to http.request or https.request. This can be used to pass a custom agent to enable WebSocketClient usage from behind an HTTP or HTTPS proxy server using koichik/node-tunnel or similar. clientConfig: The client configs documented here: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketClient.mdarrow-up-right reconnectDelay: time in milliseconds after which to attempt to reconnect to WS server after an error occurred (default: 5000)

Hierarchy

  • WSOpts

Index

Properties

Properties

Optional clientConfig

• clientConfig? : ClientConfig

Defined in types.ts:34arrow-up-right

Optional headers

• headers? : undefined | __type

Defined in types.ts:32arrow-up-right

Optional protocol

• protocol? : undefined | string

Defined in types.ts:33arrow-up-right

Optional reconnectDelay

• reconnectDelay? : undefined | number

Defined in types.ts:35arrow-up-right

Optional timeout

• timeout? : undefined | number

Defined in types.ts:31arrow-up-right

Last updated

Was this helpful?