-
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
Showing
3 changed files
with
96 additions
and
12 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,20 @@ | ||
{ | ||
"$id": "#partnerFee/v0.1.0.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"required": ["bips", "recipient"], | ||
"title": "Partner fee", | ||
"type": "object", | ||
"properties": { | ||
"bips": { | ||
"$id": "#/properties/bips", | ||
"title": "Basis Point (BPS)", | ||
"description": "The fee in basis points (BPS) to be paid to the partner. One basis point is equivalent to 0.01% (1/100th of a percent)", | ||
"$ref": "../definitions.json#/definitions/bips" | ||
}, | ||
"recipient": { | ||
"$ref": "../definitions.json#/definitions/ethereumAddress", | ||
"title": "Partner account", | ||
"description": "The Ethereum address of the partner to receive the fee." | ||
} | ||
} | ||
} |
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,65 @@ | ||
{ | ||
"$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/v0.3.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#" | ||
} | ||
} | ||
} | ||
} | ||
} |