Migration V3 - V4

Following changes must be done to migrate from v3.0 to v4.0

Request

Typechange of parameter:

  • statuses: change from array ([1,2,3]) to comma-separated list (1,2,3)

LimitOrder Request Data changed

Removing of parameters:

  • allowedSender
  • offsets
  • interactions

Adding of parameter:

  • extension: An interaction call data. ABI encoded set of makerAssetSuffix, takerAssetSuffix, makingAmountGetter, takingAmountGetter, predicate, permit, preInteraction, postInteraction.If extension exists then lowest 160 bits of the order salt must be equal to the lowest 160 bits of the extension hash
  • makerTraits: Includes some flags like, allow multiple fills, is partial fill allowed or not, price improvement, nonce, deadline etc.

Response

Removing of parameters:

  • allowedSender
  • offsets
  • interactions

Adding of parameters:

  • extension: An interaction call data. ABI encoded set of makerAssetSuffix, takerAssetSuffix, makingAmountGetter, takingAmountGetter, predicate, permit, preInteraction, postInteraction.If extension exists then lowest 160 bits of the order salt must be equal to the lowest 160 bits of the extension hash
  • makerTraits: Includes some flags like, allow multiple fills, is partial fill allowed or not, price improvement, nonce, deadline etc.

New get order by order hash endpoint added:

  • orderbook/v4.1/{chain}/order/{orderHash} GET endpoint was created to enable getting orders filtered by the specified order hash

Did you find what you need?