Dispute Period

The buyer redeemed a voucher. The seller should deliver the offered item. If the seller does not fullfil the offer, the buyer can raise a dispute.

Previous state
State
Next state(s)

COMMITTED

REDEEMED

COMPLETED DISPUTED

Period actions

Seller
Buyer
Dispute resolver

/

Complete the exchange

/

Raise a dispute

Post-period actions

Seller
Buyer
Dispute resolver

Complete the exchange

Complete the exchange

Complete the exchange


TypeScript SDK

Ends the exchange, the seller gets the price and the seller's deposit.

const exchangeId = "1534";

await coreSDK.completeExchange(
    exchangeId
);

Multiple exchanges can be completed in a single transaction.

const exchangeId1 = "1534";
const exchangeId2 = "2";
const exchangeId3 = "758";

await coreSDK.completeExchangeBatch(
    [exchangeId1, exchangeId2, exchangeId3] 
);

Solidity

Ends the exchange, the seller gets the price and the seller's deposit.

IBosonExchangeHandler bosonProtocol = IBosonExchangeHandler(_bosonProtocolAddress);
uint256 exchangeId = 1534;

bosonProtocol.completeExchange(exchangeId);

Multiple exchanges can be completed in a single transaction.

IBosonExchangeHandler bosonProtocol = IBosonExchangeHandler(_bosonProtocolAddress);
uint256[] memory exchangeIds = new uint256[](3);
exchangeIds[0] = 1534;
exchangeIds[1] = 2;
exchangeIds[3] = 758;

bosonProtocol.completeExchangeBatch(exchangeIds);

Last updated