Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump openapi #204

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cowprotocol/cow-sdk",
"version": "5.1.0",
"version": "5.2.0",
"license": "(MIT OR Apache-2.0)",
"files": [
"/dist"
Expand All @@ -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.248.0/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false",
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.252.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: 1 addition & 0 deletions src/order-book/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type { OrderQuoteValidity } from './models/OrderQuoteValidity';
export { OrderStatus } from './models/OrderStatus';
export type { PreSignature } from './models/PreSignature';
export { PriceEstimationError } from './models/PriceEstimationError';
export type { PriceImprovement } from './models/PriceImprovement';
export { PriceQuality } from './models/PriceQuality';
export type { ProtocolAppData } from './models/ProtocolAppData';
export { SellTokenSource } from './models/SellTokenSource';
Expand Down
3 changes: 2 additions & 1 deletion src/order-book/generated/models/FeePolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
/* tslint:disable */
/* eslint-disable */

import type { PriceImprovement } from './PriceImprovement';
import type { Surplus } from './Surplus';
import type { Volume } from './Volume';

/**
* Defines the ways to calculate the protocol fee.
*/
export type FeePolicy = (Surplus | Volume);
export type FeePolicy = (Surplus | Volume | PriceImprovement);

2 changes: 1 addition & 1 deletion src/order-book/generated/models/OrderPostError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export namespace OrderPostError {
INSUFFICIENT_BALANCE = 'InsufficientBalance',
INSUFFICIENT_ALLOWANCE = 'InsufficientAllowance',
INVALID_SIGNATURE = 'InvalidSignature',
INSUFFICIENT_FEE = 'InsufficientFee',
SELL_AMOUNT_OVERFLOW = 'SellAmountOverflow',
TRANSFER_SIMULATION_FAILED = 'TransferSimulationFailed',
ZERO_AMOUNT = 'ZeroAmount',
INCOMPATIBLE_SIGNING_SCHEME = 'IncompatibleSigningScheme',
TOO_MANY_LIMIT_ORDERS = 'TooManyLimitOrders',
TOO_MUCH_GAS = 'TooMuchGas',
UNSUPPORTED_BUY_TOKEN_DESTINATION = 'UnsupportedBuyTokenDestination',
UNSUPPORTED_SELL_TOKEN_SOURCE = 'UnsupportedSellTokenSource',
UNSUPPORTED_ORDER_TYPE = 'UnsupportedOrderType',
Expand Down
12 changes: 12 additions & 0 deletions src/order-book/generated/models/PriceImprovement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* The protocol fee is taken as a percent of the order price improvement which is a difference between the executed price and the best quote.
*/
export type PriceImprovement = {
factor: number;
maxVolumeFactor: number;
};

2 changes: 1 addition & 1 deletion src/order-book/generated/models/Surplus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
*/
export type Surplus = {
factor: number;
max_volume_factor: number;
maxVolumeFactor: number;
};

1 change: 1 addition & 0 deletions src/subgraph/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type Scalars = {
BigInt: any;
Bytes: any;
Int8: any;
Timestamp: any;
};

export enum Aggregation_Interval {
Expand Down
Loading