Skip to main content

Interface: IGetEscrowData

All data of an escrow incl. info about the arbitrator, settlement and a role of the connected user.

Hierarchy

Properties

amount

amount: BigNumberJs

Amount in token's (or ETH's) wei unit

Inherited from

Omit.amount

Defined in

typing/index.ts:172


arbitration

arbitration: IArbitratorInfo

Information about arbitrator or arbitrator proposal

Defined in

typing/index.ts:1230


buyer

buyer: string

Buyer (payer) address

Inherited from

Omit.buyer

Defined in

typing/index.ts:181


challengePeriod

challengePeriod: number

How much a challenge period will extend by if challenged

Inherited from

Omit.challengePeriod

Defined in

typing/index.ts:188


challengePeriodEnd

challengePeriodEnd: Date

Current challenge period end (when it will be possible to claim the payment)

Inherited from

Omit.challengePeriodEnd

Defined in

typing/index.ts:192


challengePeriodStart

challengePeriodStart: Date

Current challenge period start (either payment time or the latest challenge)

Inherited from

Omit.challengePeriodStart

Defined in

typing/index.ts:190


connectedUser

Optional connectedUser: tConnectedUser

User's role in the escrow ('buyer' | 'seller' | 'arbitrator' | 'marketplace' | 'other')

Defined in

typing/index.ts:1236


connectedWallet

Optional connectedWallet: string

Address of the connected user

Defined in

typing/index.ts:1239


consensusBuyer

consensusBuyer: number

Indicates status of the payment from buyer's and seller's side. Negative value means that party was challenged.

Examples for various states:
0, 1: Paid - If the payment is claimed after challenge period ends, consensus remains like this
1, 1: Released by buyer
1,-1: 1x Challenged by buyer - If the payment is claimed after CP ends, consensus remains like this
-1, 2: 1x Challenged by buyer and 1x by Seller
2,-2: 2x Challenged by buyer, 1x by seller
3, 2: Released, Refunded, or Settled. Deduct 1 from each consensus number to calculate number of challenges

Inherited from

Omit.consensusBuyer

Defined in

typing/index.ts:219


consensusSeller

consensusSeller: number

See consensusBuyer for details

Inherited from

Omit.consensusSeller

Defined in

typing/index.ts:222


createdAt

Optional createdAt: Date

When was the payment sent to the escrow

Inherited from

Omit.createdAt

Defined in

typing/index.ts:225


ensAddresses

Optional ensAddresses: IEnsAddresses

ENS Addresses

Inherited from

Omit.ensAddresses

Defined in

typing/index.ts:235


escrowId

escrowId: number

Inherited from

Omit.escrowId

Defined in

typing/index.ts:173


latestSettlementOfferAddress

Optional latestSettlementOfferAddress: string

Address that sent the latest settlement offer (if any)

Inherited from

Omit.latestSettlementOfferAddress

Defined in

typing/index.ts:228


latestSettlementOfferBuyer

Optional latestSettlementOfferBuyer: number

What was the proposed seller's split in the latest settlement offer

Inherited from

Omit.latestSettlementOfferBuyer

Defined in

typing/index.ts:232


latestSettlementOfferSeller

Optional latestSettlementOfferSeller: number

What was the proposed seller's split in the latest settlement offer

Inherited from

Omit.latestSettlementOfferSeller

Defined in

typing/index.ts:230


marketplace

marketplace: string

Marketplace address

Inherited from

Omit.marketplace

Defined in

typing/index.ts:179


seller

seller: string

Seller (payee) address

Inherited from

Omit.seller

Defined in

typing/index.ts:183


settlement

settlement: ISettlement

Information about the latest settlement offer (if any)

Defined in

typing/index.ts:1233


splitBuyer

splitBuyer: number

How much (%) of the payment is meant for the buyer (default 0)

Inherited from

Omit.splitBuyer

Defined in

typing/index.ts:195


splitMarketplace

splitMarketplace: number

Marketplace fee (%)

Inherited from

Omit.splitMarketplace

Defined in

typing/index.ts:205


splitProtocol

splitProtocol: number

Protocol fee (%)

Inherited from

Omit.splitProtocol

Defined in

typing/index.ts:203


splitSeller

splitSeller: number

How much (%) of the payment is meant for the seller (default 100). Buyer and seller splits are "gross", i.e. before fee deduction. They are recalculated at the time of the claim based on fee and the latest status of the escrow

Inherited from

Omit.splitSeller

Defined in

typing/index.ts:201


status

status: IEscrowStatus

See the interface for more details

Inherited from

Omit.status

Defined in

typing/index.ts:176


token

token: IToken

Information about the token used in the payment

Overrides

Omit.token

Defined in

typing/index.ts:1227