Skip to content

Commit

Permalink
feat: update orderbook api types (#201)
Browse files Browse the repository at this point in the history
* feat: update to latest services release

* chore: graphql build updates
  • Loading branch information
alfetopito authored Mar 6, 2024
1 parent 3d3e9f5 commit e5bedea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"graphql:codegen": "graphql-codegen --config graphql-codegen.yml",
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.245.1/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false",
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.248.0/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false",
"typechain:codegen": "typechain --target ethers-v5 --out-dir ./src/composable/generated './abi/*.json'"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion src/order-book/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export type { PreSignature } from './models/PreSignature';
export { PriceEstimationError } from './models/PriceEstimationError';
export { PriceQuality } from './models/PriceQuality';
export type { ProtocolAppData } from './models/ProtocolAppData';
export { ReplaceOrderError } from './models/ReplaceOrderError';
export { SellTokenSource } from './models/SellTokenSource';
export type { Signature } from './models/Signature';
export { SigningScheme } from './models/SigningScheme';
Expand Down
3 changes: 2 additions & 1 deletion src/order-book/generated/models/OrderPostError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export namespace OrderPostError {
TRANSFER_SIMULATION_FAILED = 'TransferSimulationFailed',
ZERO_AMOUNT = 'ZeroAmount',
INCOMPATIBLE_SIGNING_SCHEME = 'IncompatibleSigningScheme',
TOO_MANY_LIMIT_ORDERS_UNSUPPORTED_BUY_TOKEN_DESTINATION = 'TooManyLimitOrders UnsupportedBuyTokenDestination',
TOO_MANY_LIMIT_ORDERS = 'TooManyLimitOrders',
UNSUPPORTED_BUY_TOKEN_DESTINATION = 'UnsupportedBuyTokenDestination',
UNSUPPORTED_SELL_TOKEN_SOURCE = 'UnsupportedSellTokenSource',
UNSUPPORTED_ORDER_TYPE = 'UnsupportedOrderType',
INSUFFICIENT_VALID_TO = 'InsufficientValidTo',
Expand Down
36 changes: 0 additions & 36 deletions src/order-book/generated/models/ReplaceOrderError.ts

This file was deleted.

7 changes: 7 additions & 0 deletions src/subgraph/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export type Scalars = {
Int8: any;
};

export enum Aggregation_Interval {
Day = 'day',
Hour = 'hour'
}

export type BlockChangedFilter = {
number_gte: Scalars['Int'];
};
Expand Down Expand Up @@ -3337,6 +3342,8 @@ export type _Block_ = {
hash?: Maybe<Scalars['Bytes']>;
/** The block number */
number: Scalars['Int'];
/** The hash of the parent block */
parentHash?: Maybe<Scalars['Bytes']>;
/** Integer representation of the timestamp stored in blocks for the chain */
timestamp?: Maybe<Scalars['Int']>;
};
Expand Down

0 comments on commit e5bedea

Please sign in to comment.