changedInput schema / properties / broadcast / description
Previous value: -"Optional, together with firma. true = Bernuvia sends the cancellation and pays the gas (if sponsored gas is available); otherwise it returns the calldata so that you send it yourself."New value: +"Optional, together with signature. true = Bernuvia sends the cancellation and pays the gas (if sponsored gas is available); otherwise it returns the calldata so that you send it yourself."
removedInput schema / properties / cotizacion
Removed value: -{
- "deprecated": true,
- "description": "DEPRECATED alias of `quote`: it still works, but use `quote` (it will be removed in a future round, no date yet). Optional (requires `ordenId`): the `cotizacion` object returned by deposit_data({ ordenId, una_sola_firma: true }), AS IS. Bernuvia verifies it and derives the nonce from it. It works for the CURRENT quote of that order; if you already requested another quote, use `nonce`.",
- "type": "object"
-}
removedInput schema / properties / firma
Removed value: -{
- "deprecated": true,
- "description": "DEPRECATED alias of `signature`: it still works, but use `signature` (it will be removed in a future round, no date yet). Optional. Your EIP-712 signature of the CancelAuthorization typedData that this same function returns when called without a signature (0x + 130 hex).",
- "type": "string"
-}
changedInput schema / properties / nonce / description
Previous value: -"The `nonce` (bytes32) of the authorization you want to withdraw, exactly as deposit_data returned it in `unaSolaFirma.nonce`. With it that authorization is withdrawn EVEN IF the order already has a newer quote: it is the route to use so as not to leave live signatures behind. Send `nonce` or `cotizacion`."New value: +"The `nonce` (bytes32) of the authorization you want to withdraw, exactly as deposit_data returned it in `singleSignature.nonce`. With it that authorization is withdrawn EVEN IF the order already has a newer quote: it is the route to use so as not to leave live signatures behind. Send `nonce` or `quote`."
removedInput schema / properties / ordenId
Removed value: -{
- "deprecated": true,
- "description": "DEPRECATED alias of `orderId`: it still works, but use `orderId` (it will be removed in a future round, no date yet). The ordenId (uuid) of the order whose authorization you want to withdraw. Optional if you send `nonce`; with it, the order is also closed when the cancellation is confirmed.",
- "type": "string"
-}
changedInput schema / properties / orderId / description
Previous value: -"The ordenId (uuid) of the order whose authorization you want to withdraw. Optional if you send `nonce`; with it, the order is also closed when the cancellation is confirmed."New value: +"The orderId (uuid) of the order whose authorization you want to withdraw. Optional if you send `nonce`; with it, the order is also closed when the cancellation is confirmed."
changedInput schema / properties / quote / description
Previous value: -"Optional (requires `ordenId`): the `cotizacion` object returned by deposit_data({ ordenId, una_sola_firma: true }), AS IS. Bernuvia verifies it and derives the nonce from it. It works for the CURRENT quote of that order; if you already requested another quote, use `nonce`."New value: +"Optional (requires `orderId`): the `quote` object returned by deposit_data({ orderId, singleSignature: true }), AS IS. Bernuvia verifies it and derives the nonce from it. It works for the CURRENT quote of that order; if you already requested another quote, use `nonce`."
removedInput schema / properties / retransmitir
Removed value: -{
- "deprecated": true,
- "description": "DEPRECATED alias of `broadcast`: it still works, but use `broadcast` (it will be removed in a future round, no date yet). Optional, together with firma. true = Bernuvia sends the cancellation and pays the gas (if sponsored gas is available); otherwise it returns the calldata so that you send it yourself.",
- "type": "boolean"
-}
removedInput schema / x-bernuvia-aliases
Removed value: -{
- "broadcast": "retransmitir",
- "orderId": "ordenId",
- "quote": "cotizacion",
- "signature": "firma"
-}
removedOutput schema / properties / dominioOrigen
Removed value: -{
- "description": "Only with \"firma_requerida\": where the EIP-712 domain came from, \"cadena\" (read from the token) or \"asumido\".",
- "type": "string"
-}
removedOutput schema / properties / esDeLaCotizacionVigente
Removed value: -{
- "description": "Only when it was derived from a `cotizacion`: the nonce is the one of the current quote of that order. Absent if you gave it on its own (it cannot be asserted).",
- "type": "boolean"
-}
removedOutput schema / properties / estado
Removed value: -{
- "description": "The branch of the response: ya_no_vale, firma_requerida, lista_para_enviar, cancelacion_enviada or cancelada.",
- "enum": [
- "ya_no_vale",
- "firma_requerida",
- "lista_para_enviar",
- "cancelacion_enviada",
- "cancelada"
- ],
- "type": "string"
-}
removedOutput schema / properties / gasPatrocinado
Removed value: -{
- "description": "Only when Bernuvia sent it: true, the gas was paid by Bernuvia.",
- "type": "boolean"
-}
addedOutput schema / properties / gasSponsored
Added value: +{
+ "description": "Only when Bernuvia sent it: true, the gas was paid by Bernuvia.",
+ "type": "boolean"
+}
addedOutput schema / properties / isFromCurrentQuote
Added value: +{
+ "description": "Only when it was derived from a `quote`: the nonce is the one of the current quote of that order. Absent if you gave it on its own (it cannot be asserted).",
+ "type": "boolean"
+}
addedOutput schema / properties / nextStep
Added value: +{
+ "description": "What to do now, in one sentence.",
+ "type": "string"
+}
removedOutput schema / properties / ordenCerrada
Removed value: -{
- "description": "Only with \"cancelada\" and having named an order: whether the order was also closed (it is not closed while its quote can still be redeemed).",
- "type": "boolean"
-}
removedOutput schema / properties / ordenId
Removed value: -{
- "description": "The uuid of the order, only if you named it in the call (when withdrawing by a bare `nonce` there may be none).",
- "type": "string"
-}
addedOutput schema / properties / orderClosed
Added value: +{
+ "description": "Only with \"canceled\" and having named an order: whether the order was also closed (it is not closed while its quote can still be redeemed).",
+ "type": "boolean"
+}
addedOutput schema / properties / orderId
Added value: +{
+ "description": "The uuid of the order, only if you named it in the call (when withdrawing by a bare `nonce` there may be none).",
+ "type": "string"
+}
addedOutput schema / properties / originDomain
Added value: +{
+ "description": "Only with \"signature_required\": where the EIP-712 domain came from, \"chain\" (read from the token) or \"assumed\".",
+ "type": "string"
+}
removedOutput schema / properties / retransmisionDisponible
Removed value: -{
- "description": "Can Bernuvia send the cancellation and pay the gas? Absent in the branches where it no longer applies.",
- "type": "boolean"
-}
addedOutput schema / properties / retransmissionAvailable
Added value: +{
+ "description": "Can Bernuvia send the cancellation and pay the gas? Absent in the branches where it no longer applies.",
+ "type": "boolean"
+}
removedOutput schema / properties / siguientePaso
Removed value: -{
- "description": "What to do now, in one sentence.",
- "type": "string"
-}
addedOutput schema / properties / status
Added value: +{
+ "description": "The branch of the response: no_longer_valid, signature_required, ready_to_send, cancellation_sent or canceled.",
+ "enum": [
+ "no_longer_valid",
+ "signature_required",
+ "ready_to_send",
+ "cancellation_sent",
+ "canceled"
+ ],
+ "type": "string"
+}
removedOutput schema / properties / transaccion
Removed value: -{
- "additionalProperties": true,
- "description": "Only with estado \"lista_para_enviar\": the envelope ready to be sent from any wallet (what counts is the signature).",
- "properties": {
- "data": {
- "description": "Already encoded calldata of cancelAuthorization (0x…).",
- "type": "string"
- },
- "descripcion": {
- "description": "What the transaction does.",
- "type": "string"
- },
- "to": {
- "description": "Address of the USDC contract.",
- "type": "string"
- },
- "value": {
- "description": "Native POL to send, in HEXADECIMAL with 0x (JSON-RPC QUANTITY): always \"0x0\".",
- "type": "string"
- }
- },
- "required": [
- "to",
- "data",
- "value",
- "descripcion"
- ],
- "type": "object"
-}
addedOutput schema / properties / transaction
Added value: +{
+ "additionalProperties": true,
+ "description": "Only with status \"ready_to_send\": the envelope ready to be sent from any wallet (what counts is the signature).",
+ "properties": {
+ "data": {
+ "description": "Already encoded calldata of cancelAuthorization (0x…).",
+ "type": "string"
+ },
+ "description": {
+ "description": "What the transaction does.",
+ "type": "string"
+ },
+ "to": {
+ "description": "Address of the USDC contract.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Native POL to send, in HEXADECIMAL with 0x (JSON-RPC QUANTITY): always \"0x0\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "to",
+ "data",
+ "value",
+ "description"
+ ],
+ "type": "object"
+}
changedOutput schema / properties / txHash / description
Previous value: -"Only with \"cancelacion_enviada\" or \"cancelada\": hash of the transaction Bernuvia sent."New value: +"Only with \"cancellation_sent\" or \"canceled\": hash of the transaction Bernuvia sent."
changedOutput schema / properties / typedData / description
Previous value: -"Only with estado \"firma_requerida\": the EIP-712 CancelAuthorization message to sign with signTypedData."New value: +"Only with status \"signature_required\": the EIP-712 CancelAuthorization message to sign with signTypedData."
changedOutput schema / required
Previous value: -[
- "nonce",
- "estado",
- "siguientePaso"
-]New value: +[
+ "nonce",
+ "status",
+ "nextStep"
+]