changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "amountIn": {
+ "type": "string"
+ },
+ "amountInWei": {
+ "type": "string"
+ },
+ "approval": {
+ "description": "Present for ERC-20 input tokens",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "required_if_allowance_below": {
+ "type": "string"
+ },
+ "spender": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "tx": {
+ "properties": {
+ "chainId": {
+ "type": "integer"
+ },
+ "data": {
+ "type": "string"
+ },
+ "from": {
+ "type": "string"
+ },
+ "gas": {
+ "type": "string"
+ },
+ "to": {
+ "type": "string"
+ },
+ "value": {
+ "description": "0x hex wei",
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "to",
+ "data",
+ "value",
+ "from"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "required_if_allowance_below",
+ "token",
+ "spender",
+ "tx"
+ ],
+ "type": "object"
+ },
+ "chain": {
+ "type": "string"
+ },
+ "chainId": {
+ "type": "integer"
+ },
+ "expectedOut": {
+ "type": "string"
+ },
+ "expectedOutWei": {
+ "type": "string"
+ },
+ "fee": {
+ "description": "Disclosed Quietwork fee (already reflected in expectedOut)",
+ "properties": {
+ "amountWei": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bps": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ },
+ "percent": {
+ "type": "number"
+ },
+ "receiver": {
+ "type": "string"
+ },
+ "takenFrom": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "venue": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "bps",
+ "percent",
+ "takenFrom",
+ "receiver",
+ "note"
+ ],
+ "type": "object"
+ },
+ "gasFee": {
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "issues": {
+ "type": "object"
+ },
+ "minOut": {
+ "type": "string"
+ },
+ "minOutWei": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "slippageBps": {
+ "type": "integer"
+ },
+ "tokenIn": {
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "decimals": {
+ "type": "integer"
+ },
+ "symbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address",
+ "decimals",
+ "symbol"
+ ],
+ "type": "object"
+ },
+ "tokenOut": {
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "decimals": {
+ "type": "integer"
+ },
+ "symbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "address",
+ "decimals",
+ "symbol"
+ ],
+ "type": "object"
+ },
+ "totalNetworkFeeWei": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tx": {
+ "properties": {
+ "chainId": {
+ "type": "integer"
+ },
+ "data": {
+ "type": "string"
+ },
+ "from": {
+ "type": "string"
+ },
+ "gas": {
+ "type": "string"
+ },
+ "to": {
+ "type": "string"
+ },
+ "value": {
+ "description": "0x hex wei",
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "to",
+ "data",
+ "value",
+ "from"
+ ],
+ "type": "object"
+ },
+ "venue": {
+ "const": "0x"
+ },
+ "zeroExFee": {
+ "description": "0x's own platform fee, on top of ours",
+ "type": [
+ "object",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "venue",
+ "chain",
+ "chainId",
+ "tokenIn",
+ "tokenOut",
+ "amountIn",
+ "amountInWei",
+ "expectedOut",
+ "expectedOutWei",
+ "fee",
+ "slippageBps",
+ "tx",
+ "note"
+ ],
+ "type": "object"
+}