Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cowprotocol/app-data

Package Overview
Dependencies
Maintainers
7
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cowprotocol/app-data - npm Package Compare versions

Comparing version 0.0.1-RC.4 to 0.0.1-RC.5

6

dist/generatedTypes/v0.1.0.d.ts

@@ -14,2 +14,6 @@ /**

export declare type AppCode = string;
/**
* Semantic versioning of document.
*/
export declare type Version1 = string;
export declare type ReferrerAddress = string;

@@ -33,5 +37,5 @@ /**

export interface Referrer {
version: Version;
version: Version1;
address: ReferrerAddress;
[k: string]: unknown;
}

@@ -14,2 +14,6 @@ /**

export declare type AppCode = string;
/**
* Semantic versioning of document.
*/
export declare type Version1 = string;
export declare type ReferrerAddress = string;

@@ -20,2 +24,6 @@ export declare type QuoteId = string;

/**
* Semantic versioning of document.
*/
export declare type Version2 = string;
/**
* Metadata JSON document for adding information to orders.

@@ -38,3 +46,3 @@ */

export interface Referrer {
version: Version;
version: Version1;
address: ReferrerAddress;

@@ -47,4 +55,4 @@ [k: string]: unknown;

buyAmount: QuoteBuyAmount;
version: Version;
version: Version2;
[k: string]: unknown;
}

@@ -18,2 +18,6 @@ /**

export declare type Environment = string;
/**
* Semantic versioning of document.
*/
export declare type Version1 = string;
export declare type ReferrerAddress = string;

@@ -24,2 +28,6 @@ export declare type QuoteId = string;

/**
* Semantic versioning of document.
*/
export declare type Version2 = string;
/**
* Metadata JSON document for adding information to orders.

@@ -43,3 +51,3 @@ */

export interface Referrer {
version: Version;
version: Version1;
address: ReferrerAddress;

@@ -52,4 +60,4 @@ [k: string]: unknown;

buyAmount: QuoteBuyAmount;
version: Version;
version: Version2;
[k: string]: unknown;
}

@@ -18,4 +18,12 @@ /**

export declare type Environment = string;
/**
* Semantic versioning of document.
*/
export declare type Version1 = string;
export declare type ReferrerAddress = string;
/**
* Semantic versioning of document.
*/
export declare type Version2 = string;
/**
* Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BIPS)

@@ -43,3 +51,3 @@ */

export interface Referrer {
version: Version;
version: Version1;
address: ReferrerAddress;

@@ -49,5 +57,5 @@ [k: string]: unknown;

export interface Quote {
version: Version;
version: Version2;
slippageBips: SlippageBips;
[k: string]: unknown;
}

2

package.json
{
"name": "@cowprotocol/app-data",
"version": "0.0.1-RC.4",
"version": "0.0.1-RC.5",
"description": "CowProtocol AppData schema definitions",

@@ -5,0 +5,0 @@ "type": "module",

@@ -1,1 +0,1 @@

{"$id":"https://cowswap.exchange/schemas/app-data/v0.1.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","properties":{"version":{"$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"appCode":{"$id":"#/properties/appCode","description":"The code identifying the CLI, UI, service generating the order.","examples":["CowSwap"],"title":"App Code","type":"string"},"metadata":{"$id":"#/properties/metadata","default":{},"description":"Each metadata will specify one aspect of the order.","required":[],"title":"Metadata","type":"object","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}}}}}}
{"$id":"https://cowswap.exchange/schemas/app-data/v0.1.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","properties":{"version":{"readOnly":true,"default":"0.1.0","$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"appCode":{"$id":"#/properties/appCode","description":"The code identifying the CLI, UI, service generating the order.","examples":["CoW Swap"],"title":"App Code","type":"string"},"metadata":{"$id":"#/properties/metadata","default":{},"description":"Each metadata will specify one aspect of the order.","required":[],"title":"Metadata","type":"object","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.1.0"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}}}}}}

@@ -1,1 +0,1 @@

{"$id":"https://cowswap.exchange/schemas/app-data/v0.2.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","properties":{"version":{"$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"appCode":{"$id":"#/properties/appCode","description":"The code identifying the CLI, UI, service generating the order.","examples":["CowSwap"],"title":"App Code","type":"string"},"metadata":{"$id":"#/properties/metadata","default":{},"description":"Each metadata will specify one aspect of the order.","required":[],"title":"Metadata","type":"object","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}},"quote":{"$id":"#quote/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["sellAmount","buyAmount","version"],"title":"Quote","type":"object","properties":{"id":{"$id":"#/properties/id","title":"Quote id","examples":["XA23443543534FF"],"type":"string"},"sellAmount":{"$ref":"#/properties/metadata/properties/quote/properties/buyAmount","title":"Quote sell amount"},"buyAmount":{"title":"Quote buy amount","$id":"#/definitions/bigNumber","pattern":"^\\d+$","examples":["90741097240912730913, 0, 75891372"],"type":"string"},"version":{"$ref":"#/properties/version"}}}}}}}
{"$id":"https://cowswap.exchange/schemas/app-data/v0.2.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","properties":{"version":{"readOnly":true,"default":"0.2.0","$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"appCode":{"$id":"#/properties/appCode","description":"The code identifying the CLI, UI, service generating the order.","examples":["CoW Swap"],"title":"App Code","type":"string"},"metadata":{"$id":"#/properties/metadata","default":{},"description":"Each metadata will specify one aspect of the order.","required":[],"title":"Metadata","type":"object","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.1.0"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}},"quote":{"$id":"#quote/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["sellAmount","buyAmount","version"],"title":"Quote","type":"object","properties":{"id":{"$id":"#/properties/id","title":"Quote id","examples":["XA23443543534FF"],"type":"string"},"sellAmount":{"$ref":"#/properties/metadata/properties/quote/properties/buyAmount","title":"Quote sell amount"},"buyAmount":{"title":"Quote buy amount","$id":"#/definitions/bigNumber","pattern":"^\\d+$","examples":["90741097240912730913, 0, 75891372"],"type":"string"},"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.1.0"}}}}}}}

@@ -1,1 +0,1 @@

{"$id":"https://cowswap.exchange/schemas/app-data/v0.3.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","properties":{"version":{"$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"appCode":{"$id":"#/properties/appCode","description":"The code identifying the CLI, UI, service generating the order.","examples":["CowSwap"],"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","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}},"quote":{"$id":"#quote/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["sellAmount","buyAmount","version"],"title":"Quote","type":"object","properties":{"id":{"$id":"#/properties/id","title":"Quote id","examples":["XA23443543534FF"],"type":"string"},"sellAmount":{"$ref":"#/properties/metadata/properties/quote/properties/buyAmount","title":"Quote sell amount"},"buyAmount":{"title":"Quote buy amount","$id":"#/definitions/bigNumber","pattern":"^\\d+$","examples":["90741097240912730913, 0, 75891372"],"type":"string"},"version":{"$ref":"#/properties/version"}}}}}}}
{"$id":"https://cowswap.exchange/schemas/app-data/v0.3.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","properties":{"version":{"readOnly":true,"default":"0.3.0","$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"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","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.1.0"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}},"quote":{"$id":"#quote/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["sellAmount","buyAmount","version"],"title":"Quote","type":"object","properties":{"id":{"$id":"#/properties/id","title":"Quote id","examples":["XA23443543534FF"],"type":"string"},"sellAmount":{"$ref":"#/properties/metadata/properties/quote/properties/buyAmount","title":"Quote sell amount"},"buyAmount":{"title":"Quote buy amount","$id":"#/definitions/bigNumber","pattern":"^\\d+$","examples":["90741097240912730913, 0, 75891372"],"type":"string"},"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.1.0"}}}}}}}

@@ -1,1 +0,1 @@

{"$id":"https://cowswap.exchange/schemas/app-data/v0.4.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","properties":{"version":{"$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"appCode":{"$id":"#/properties/appCode","description":"The code identifying the CLI, UI, service generating the order.","examples":["CowSwap"],"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","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}},"quote":{"$id":"#quote/v0.2.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","slippageBips"],"title":"Quote","type":"object","properties":{"version":{"$ref":"#/properties/version"},"slippageBips":{"$id":"#/properties/slippageBips","title":"Slippage Bips","description":"Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BIPS)","examples":["5","10","20","100"],"pattern":"^\\d+(\\.\\d+)?$","type":"string"}}}}}}}
{"$id":"https://cowswap.exchange/schemas/app-data/v0.4.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","properties":{"version":{"readOnly":true,"default":"0.4.0","$id":"#/definitions/version","description":"Semantic versioning of document.","examples":["1.0.0","1.2.3"],"title":"Version","type":"string"},"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","properties":{"referrer":{"$id":"#referrer/v0.1.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","address"],"title":"Referrer","type":"object","properties":{"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.1.0"},"address":{"title":"Referrer address","$id":"#/definitions/ethereumAddress","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],"type":"string"}}},"quote":{"$id":"#quote/v0.2.0.json","$schema":"http://json-schema.org/draft-07/schema","required":["version","slippageBips"],"title":"Quote","type":"object","properties":{"version":{"$ref":"#/properties/version","readOnly":true,"default":"0.2.0"},"slippageBips":{"$id":"#/properties/slippageBips","title":"Slippage Bips","description":"Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BIPS)","examples":["5","10","20","100"],"pattern":"^\\d+(\\.\\d+)?$","type":"string"}}}}}}}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc