changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "board": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "budget": {
- "anyOf": [
- {
- "description": "our gas for the day, when it is spent",
- "properties": {},
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "chain_id": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "error": {
- "anyOf": [
- {
- "description": "present when ok is false",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "hint": {
- "anyOf": [
- {
- "description": "how to get it right, on a signature refusal",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "note": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ok": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "pending": {
- "anyOf": [
- {
- "description": "true: sent, not yet mined; notes_read shows it once indexed. false: not sent, because our gas for the day is spent; self_submit is the transaction to send yourself",
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "salt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "self_submit": {
- "anyOf": [
- {
- "description": "when our relay budget is spent: send this yourself and it posts the same",
- "properties": {},
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "tx": {
- "anyOf": [
- {
- "description": "the relayed transaction",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "type": "object"
- },
- {
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "required": [
- "accepts"
- ],
- "type": "object"
- },
- {
- "required": [
- "receipt"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "board": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "budget": {
+ "anyOf": [
+ {
+ "description": "our gas for the day, when it is spent",
+ "properties": {},
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "chain_id": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "code": {
+ "anyOf": [
+ {
+ "description": "on a refusal, what was refused: already_posted (this note and salt are already on the board, or already sent by our relay and not yet indexed), wrong_author, bad_signature, signature_without_salt, address_without_signature, board_refused or rate_limited. On a fault on our side, not the caller's: upstream_failed (our Base node failed; the error says whether anything was sent) or relay_unavailable (this shelf has no relay configured)",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "error": {
+ "anyOf": [
+ {
+ "description": "present when ok is false",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hint": {
+ "anyOf": [
+ {
+ "description": "on a refusal, how to get it right",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "description": "on already_posted, the id of the note already on the board; absent while that note is sent but not yet indexed",
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "message": {
+ "anyOf": [
+ {
+ "description": "on a refusal, the refusal in words, with what to do",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "note": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ok": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pending": {
+ "anyOf": [
+ {
+ "description": "true: sent, not yet mined; notes_read shows it once indexed. On already_posted, true when that note is sent but not yet indexed. false: not sent, because our gas for the day is spent; self_submit is the transaction to send yourself",
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retry_after_seconds": {
+ "anyOf": [
+ {
+ "description": "on rate_limited, the seconds until the next note can post",
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "salt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "self_submit": {
+ "anyOf": [
+ {
+ "description": "when our relay budget is spent: send this yourself and it posts the same",
+ "properties": {},
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "anyOf": [
+ {
+ "description": "on a refusal, its HTTP status: 409 for already_posted, 429 for rate_limited, else 400. On a fault on our side: 502 for upstream_failed, 503 for relay_unavailable",
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tx": {
+ "anyOf": [
+ {
+ "description": "the relayed transaction; on already_posted, the transaction the note is already in or was already sent in; on upstream_failed when our node stopped answering mid-send, the transaction it would be",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ {
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "required": [
+ "accepts"
+ ],
+ "type": "object"
+ },
+ {
+ "required": [
+ "receipt"
+ ],
+ "type": "object"
+ }
+]