Skip to content

Commit

Permalink
generateAppDataDoc() example
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Mar 3, 2023
1 parent 296f784 commit 5013ac3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/metadata/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ export class MetadataApi {
*
* Without params creates a default minimum appData doc
* Optionally creates metadata docs
*
* Example of result:
* {
* "appCode": "CoW Swap",
* "environment": "local",
* "metadata": {
* "quote": {
* "slippageBips": "50",
* "version": "0.2.0"
* },
* "orderClass": {
* "orderClass": "market",
* "version": "0.1.0"
* }
* },
* "version": "0.5.0"
* }
*/
generateAppDataDoc(params?: GenerateAppDataDocParams): LatestAppDataDocVersion {
const { appDataParams, metadataParams } = params || {}
Expand Down

0 comments on commit 5013ac3

Please sign in to comment.