Skip to content

Commit

Permalink
update types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
qvkare authored Dec 10, 2024
1 parent 6df37fd commit e30ab65
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/orders/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import { AdvancedOrder, OrderWithCounter } from "@opensea/seaport-js/lib/types";
import { OpenSeaAccount, OrderSide } from "../types";

// Protocol data
export enum OrderProtocol {
SEAPORT = "seaport"
}

type OrderProtocolToProtocolData = {
seaport: OrderWithCounter;
[OrderProtocol.SEAPORT]: OrderWithCounter;
};
export type OrderProtocol = keyof OrderProtocolToProtocolData;

export type ProtocolData =
OrderProtocolToProtocolData[keyof OrderProtocolToProtocolData];
OrderProtocolToProtocolData[keyof typeof OrderProtocol];

Check failure on line 15 in src/orders/types.ts

View workflow job for this annotation

GitHub Actions / test

Property 'SEAPORT' does not exist on type 'OrderProtocolToProtocolData'.

Check failure on line 15 in src/orders/types.ts

View workflow job for this annotation

GitHub Actions / lint

Property 'SEAPORT' does not exist on type 'OrderProtocolToProtocolData'.

Check failure on line 15 in src/orders/types.ts

View workflow job for this annotation

GitHub Actions / test-integration

Property 'SEAPORT' does not exist on type 'OrderProtocolToProtocolData'.

export enum OrderType {
BASIC = "basic",
Expand Down

0 comments on commit e30ab65

Please sign in to comment.