@imtbl/sdk 0.11.0-alpha → 0.12.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { OrderbookOverrides, OrderbookModuleConfiguration } from 'config/config';
2
- import { ListingResult, ListListingsResult, OrdersService } from 'openapi/sdk';
2
+ import { ListingResult, ListListingsResult, Fee, OrdersService } from 'openapi/sdk';
3
3
  import { ListListingsParams as ListListingsParams$1, PrepareListingParams as PrepareListingParams$1, PrepareListingResponse as PrepareListingResponse$1, CreateListingParams as CreateListingParams$1, FulfillOrderResponse as FulfillOrderResponse$1, CancelOrderResponse as CancelOrderResponse$1 } from 'types';
4
4
 
5
5
  declare enum Environment {
@@ -43,8 +43,8 @@ declare class Orderbook {
43
43
  /**
44
44
  * List orders. This method is used to get a list of orders filtered by conditions specified
45
45
  * in the params object.
46
- * @param {ListOrderParams} listOrderParams - Filtering, ordering and page parameters.
47
- * @return {Orders} The paged orders.
46
+ * @param {ListListingsParams} listOrderParams - Filtering, ordering and page parameters.
47
+ * @return {ListListingsResult} The paged orders.
48
48
  */
49
49
  listListings(listOrderParams: ListListingsParams$1): Promise<ListListingsResult>;
50
50
  /**
@@ -70,7 +70,7 @@ declare class Orderbook {
70
70
  * @param {string} fulfillerAddress - The address of the account fulfilling the order.
71
71
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
72
72
  */
73
- fulfillOrder(listingId: string, takerAddress: string): Promise<FulfillOrderResponse$1>;
73
+ fulfillOrder(listingId: string, takerAddress: string, takerFee?: Fee): Promise<FulfillOrderResponse$1>;
74
74
  /**
75
75
  * Get an unsigned cancel order transaction. Orders can only be cancelled by
76
76
  * the account that created them.
@@ -241,6 +241,7 @@ interface CreateListingParams {
241
241
  orderComponents: OrderComponents;
242
242
  orderHash: string;
243
243
  orderSignature: string;
244
+ makerFee?: Fee;
244
245
  }
245
246
  type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
246
247
  declare enum TransactionPurpose {