Skip to content

Commit

Permalink
Merge pull request #21 from cowprotocol/20/improve-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
matextrem committed May 20, 2022
2 parents fa0be9d + cf4d226 commit 3a7e90d
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 20 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
"resetMocks": false,
"setupFiles": [
"./setupTests.js"
],
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/api/cow/errors/*.{ts,tsx}"
]
},
"keywords": [
Expand All @@ -67,4 +71,4 @@
"typescript",
"subgraph"
]
}
}
33 changes: 30 additions & 3 deletions src/api/cow-subgraph/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ export type Order = {
id: Scalars['ID'];
/** block's timestamp on invalidate event */
invalidateTimestamp?: Maybe<Scalars['BigInt']>;
/** Boolean value to show if the order is signed */
isSigned: Scalars['Boolean'];
/** Boolean value true by default unless is invalidated by the event */
isValid: Scalars['Boolean'];
/** Trade's owner or presign User */
Expand Down Expand Up @@ -369,6 +371,10 @@ export type Order_Filter = {
invalidateTimestamp_lte?: InputMaybe<Scalars['BigInt']>;
invalidateTimestamp_not?: InputMaybe<Scalars['BigInt']>;
invalidateTimestamp_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
isSigned?: InputMaybe<Scalars['Boolean']>;
isSigned_in?: InputMaybe<Array<Scalars['Boolean']>>;
isSigned_not?: InputMaybe<Scalars['Boolean']>;
isSigned_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
isValid?: InputMaybe<Scalars['Boolean']>;
isValid_in?: InputMaybe<Array<Scalars['Boolean']>>;
isValid_not?: InputMaybe<Scalars['Boolean']>;
Expand Down Expand Up @@ -414,6 +420,7 @@ export type Order_Filter = {
export enum Order_OrderBy {
Id = 'id',
InvalidateTimestamp = 'invalidateTimestamp',
IsSigned = 'isSigned',
IsValid = 'isValid',
Owner = 'owner',
PresignTimestamp = 'presignTimestamp',
Expand All @@ -423,26 +430,39 @@ export enum Order_OrderBy {

export type Pair = {
__typename?: 'Pair';
/** token0-token1 sorted by token0 < token1 */
/** Token0-token1 sorted by token0 < token1 */
id: Scalars['ID'];
/** The token 0 address lower than token1 */
token0: Token;
/** The token 1 address greater than token0 */
token1: Token;
/** Total volume of token 0 traded */
volumeToken0?: Maybe<Scalars['BigInt']>;
/** Total volume of token 1 traded */
volumeToken1?: Maybe<Scalars['BigInt']>;
/** Total volume in Eth */
volumeTradedEth?: Maybe<Scalars['BigDecimal']>;
/** Total volume in Usd */
volumeTradedUsd?: Maybe<Scalars['BigDecimal']>;
};

export type PairDaily = {
__typename?: 'PairDaily';
/** token0-token1-timestamp sorted by token0 < token1 */
id: Scalars['ID'];
/** Start day timestamp */
timestamp?: Maybe<Scalars['BigInt']>;
/** The token 0 address lower than token1 */
token0: Token;
/** The token 1 address greater than token0 */
token1: Token;
/** Total volume of token 0 traded */
volumeToken0?: Maybe<Scalars['BigInt']>;
/** Total volume of token 1 traded */
volumeToken1?: Maybe<Scalars['BigInt']>;
/** Total volume in Eth */
volumeTradedEth?: Maybe<Scalars['BigDecimal']>;
/** Total volume in Usd */
volumeTradedUsd?: Maybe<Scalars['BigDecimal']>;
};

Expand Down Expand Up @@ -554,12 +574,19 @@ export type PairHourly = {
__typename?: 'PairHourly';
/** token0-token1-timestamp sorted by token0 < token1 */
id: Scalars['ID'];
/** Start hour timestamp */
timestamp?: Maybe<Scalars['BigInt']>;
/** The token 0 address lower than token1 */
token0: Token;
/** The token 1 address greater than token0 */
token1: Token;
/** Total volume of token 0 traded */
volumeToken0?: Maybe<Scalars['BigInt']>;
/** Total volume of token 1 traded */
volumeToken1?: Maybe<Scalars['BigInt']>;
/** Total volume in Eth */
volumeTradedEth?: Maybe<Scalars['BigDecimal']>;
/** Total volume in Usd */
volumeTradedUsd?: Maybe<Scalars['BigDecimal']>;
};

Expand Down Expand Up @@ -2589,8 +2616,8 @@ export type User = {
firstTradeTimestamp?: Maybe<Scalars['BigInt']>;
/** Trade event order owner */
id: Scalars['ID'];
/** Is a solver */
isSolver?: Maybe<Scalars['Boolean']>;
/** Determine if user has solved a settlement */
isSolver: Scalars['Boolean'];
/** Solved trades */
numberOfTrades: Scalars['Int'];
/** List of orders placed by this user */
Expand Down
Loading

0 comments on commit 3a7e90d

Please sign in to comment.