addedInput schema / properties / transferAuthorizations
Added value: +{
+ "description": "Optional ERC-20 transfer authorizations that let the protocol pull tokens without a prior approve_exchange_token tx (e.g. commit_to_offer or deposit_funds in metaTx mode). Build each entry with the matching sign_receive_with_* tool: sign its `typedData` locally and add the resulting `signature` to its `transferAuthorization` object.",
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "nonce": {
+ "pattern": "^0x[a-fA-F0-9]{64}$",
+ "type": "string"
+ },
+ "validAfter": {
+ "anyOf": [
+ {
+ "pattern": "^(\\d+|0x[a-fA-F0-9]+)$",
+ "type": "string"
+ },
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ ]
+ },
+ "validBefore": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/validAfter"
+ }
+ },
+ "required": [
+ "validAfter",
+ "validBefore",
+ "nonce"
+ ],
+ "type": "object"
+ },
+ "r": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/nonce",
+ "description": "Optional r component. Derived from `signature` if omitted."
+ },
+ "s": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/nonce",
+ "description": "Optional s component. Derived from `signature` if omitted."
+ },
+ "signature": {
+ "description": "Signature of the typed data returned by the matching sign_receive_with_* tool, signed locally with your wallet (EIP-712).",
+ "pattern": "^0x[a-fA-F0-9]+$",
+ "type": "string"
+ },
+ "strategy": {
+ "const": "ERC3009",
+ "type": "string"
+ },
+ "v": {
+ "anyOf": [
+ {
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ }
+ ],
+ "description": "Optional v component (27/28, or 0/1). Derived from `signature` if omitted. Provide r, s and v together or not at all."
+ }
+ },
+ "required": [
+ "strategy",
+ "data",
+ "signature"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "deadline": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/validAfter"
+ }
+ },
+ "required": [
+ "deadline"
+ ],
+ "type": "object"
+ },
+ "r": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/r"
+ },
+ "s": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/s"
+ },
+ "signature": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/signature"
+ },
+ "strategy": {
+ "const": "EIP2612",
+ "type": "string"
+ },
+ "v": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/v"
+ }
+ },
+ "required": [
+ "strategy",
+ "data",
+ "signature"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "deadline": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/validAfter"
+ },
+ "nonce": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/validAfter"
+ }
+ },
+ "required": [
+ "nonce",
+ "deadline"
+ ],
+ "type": "object"
+ },
+ "r": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/r"
+ },
+ "s": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/s"
+ },
+ "signature": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/signature"
+ },
+ "strategy": {
+ "const": "Permit2",
+ "type": "string"
+ },
+ "v": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/v"
+ }
+ },
+ "required": [
+ "strategy",
+ "data",
+ "signature"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "expiry": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/validAfter"
+ },
+ "nonce": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/data/properties/validAfter"
+ }
+ },
+ "required": [
+ "nonce",
+ "expiry"
+ ],
+ "type": "object"
+ },
+ "r": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/r"
+ },
+ "s": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/s"
+ },
+ "signature": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/signature"
+ },
+ "strategy": {
+ "const": "DAIPermit",
+ "type": "string"
+ },
+ "v": {
+ "$ref": "#/properties/transferAuthorizations/items/anyOf/0/properties/v"
+ }
+ },
+ "required": [
+ "strategy",
+ "data",
+ "signature"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+}