-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebdd683
commit 60bda10
Showing
4 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$id": "#replacedOrder/v0.1.0.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$ref": "../definitions.json#/definitions/orderUID", | ||
"title": "replacedOrder", | ||
"description": "The order UID of the order to be replaced." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"$id": "https://cowswap.exchange/schemas/app-data/v0.11.0.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"description": "Metadata JSON document for adding information to orders.", | ||
"required": ["version", "metadata"], | ||
"title": "AppData Root Schema", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"version": { | ||
"$ref": "definitions.json#/definitions/version", | ||
"readOnly": true, | ||
"default": "0.11.0" | ||
}, | ||
"appCode": { | ||
"$id": "#/properties/appCode", | ||
"description": "The code identifying the CLI, UI, service generating the order.", | ||
"examples": ["CoW Swap"], | ||
"title": "App Code", | ||
"type": "string" | ||
}, | ||
"environment": { | ||
"$id": "#/properties/environment", | ||
"description": "Environment from which the order came from.", | ||
"title": "Environment", | ||
"type": "string", | ||
"examples": ["production", "development", "staging", "ens"] | ||
}, | ||
"metadata": { | ||
"$id": "#/properties/metadata", | ||
"default": {}, | ||
"description": "Each metadata will specify one aspect of the order.", | ||
"required": [], | ||
"title": "Metadata", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"signer": { | ||
"$ref": "signer/v0.1.0.json#" | ||
}, | ||
"referrer": { | ||
"$ref": "referrer/v0.2.0.json#" | ||
}, | ||
"utm": { | ||
"$ref": "utm/v0.2.0.json#" | ||
}, | ||
"quote": { | ||
"$ref": "quote/v1.0.0.json#" | ||
}, | ||
"orderClass": { | ||
"$ref": "orderClass/v0.3.0.json#" | ||
}, | ||
"hooks": { | ||
"$ref": "hooks/v0.1.0.json#" | ||
}, | ||
"widget": { | ||
"$ref": "widget/v0.1.0.json#" | ||
}, | ||
"partnerFee": { | ||
"$ref": "partnerFee/v0.1.0.json#" | ||
}, | ||
"replacedOrder": { | ||
"$ref": "replacedOrder/v0.1.0.json#" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters