@imtbl/sdk 0.14.0-alpha → 0.14.0-alpha.2

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.
package/dist/index.d.ts CHANGED
@@ -1281,7 +1281,7 @@ interface GetTokenResult {
1281
1281
  * @export
1282
1282
  * @interface Page
1283
1283
  */
1284
- interface Page$1 {
1284
+ interface Page$2 {
1285
1285
  /**
1286
1286
  * First item as an encoded string
1287
1287
  * @type {string}
@@ -1325,7 +1325,7 @@ interface ListActivitiesResult {
1325
1325
  * @type {Page}
1326
1326
  * @memberof ListActivitiesResult
1327
1327
  */
1328
- 'page': Page$1;
1328
+ 'page': Page$2;
1329
1329
  }
1330
1330
 
1331
1331
  /**
@@ -1357,7 +1357,7 @@ interface ListChainsResult {
1357
1357
  * @type {Page}
1358
1358
  * @memberof ListChainsResult
1359
1359
  */
1360
- 'page': Page$1;
1360
+ 'page': Page$2;
1361
1361
  }
1362
1362
 
1363
1363
  /**
@@ -1389,7 +1389,7 @@ interface ListCollectionsResult {
1389
1389
  * @type {Page}
1390
1390
  * @memberof ListCollectionsResult
1391
1391
  */
1392
- 'page': Page$1;
1392
+ 'page': Page$2;
1393
1393
  }
1394
1394
 
1395
1395
  /**
@@ -1471,7 +1471,7 @@ interface ListNFTOwnersResult {
1471
1471
  * @type {Page}
1472
1472
  * @memberof ListNFTOwnersResult
1473
1473
  */
1474
- 'page': Page$1;
1474
+ 'page': Page$2;
1475
1475
  }
1476
1476
 
1477
1477
  /**
@@ -1503,7 +1503,7 @@ interface ListNFTsResult {
1503
1503
  * @type {Page}
1504
1504
  * @memberof ListNFTsResult
1505
1505
  */
1506
- 'page': Page$1;
1506
+ 'page': Page$2;
1507
1507
  }
1508
1508
 
1509
1509
  /**
@@ -1535,7 +1535,7 @@ interface ListTokensResult {
1535
1535
  * @type {Page}
1536
1536
  * @memberof ListTokensResult
1537
1537
  */
1538
- 'page': Page$1;
1538
+ 'page': Page$2;
1539
1539
  }
1540
1540
 
1541
1541
  /**
@@ -7209,7 +7209,7 @@ declare type OrderSell = Token;
7209
7209
  * @export
7210
7210
  * @interface Order
7211
7211
  */
7212
- interface Order$1 {
7212
+ interface Order$2 {
7213
7213
  /**
7214
7214
  * Amount of the asset already sold by this order
7215
7215
  * @type {string}
@@ -7307,7 +7307,7 @@ interface ListOrdersResponse {
7307
7307
  * @type {Array<Order>}
7308
7308
  * @memberof ListOrdersResponse
7309
7309
  */
7310
- 'result': Array<Order$1>;
7310
+ 'result': Array<Order$2>;
7311
7311
  }
7312
7312
 
7313
7313
  /**
@@ -11079,7 +11079,7 @@ declare class OrdersApi extends BaseAPI {
11079
11079
  * @throws {RequiredError}
11080
11080
  * @memberof OrdersApi
11081
11081
  */
11082
- getOrder(requestParameters: OrdersApiGetOrderRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Order$1, any>>;
11082
+ getOrder(requestParameters: OrdersApiGetOrderRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Order$2, any>>;
11083
11083
  /**
11084
11084
  * Get an order (V3)
11085
11085
  * @summary Get an order (V3)
@@ -13331,7 +13331,7 @@ declare enum OrderStatus {
13331
13331
  EXPIRED = "EXPIRED"
13332
13332
  }
13333
13333
 
13334
- type Order = {
13334
+ type Order$1 = {
13335
13335
  account_address: string;
13336
13336
  buy: Array<Item>;
13337
13337
  fees: Array<Fee$1>;
@@ -13371,17 +13371,17 @@ type Order = {
13371
13371
 
13372
13372
  type FulfillmentDataResult = {
13373
13373
  extra_data: string;
13374
- order: Order;
13374
+ order: Order$1;
13375
13375
  };
13376
13376
 
13377
- type ListingResult = {
13378
- result: Order;
13377
+ type ListingResult$1 = {
13378
+ result: Order$1;
13379
13379
  };
13380
13380
 
13381
13381
  /**
13382
13382
  * Pagination properties
13383
13383
  */
13384
- type Page = {
13384
+ type Page$1 = {
13385
13385
  /**
13386
13386
  * First item as an encoded string
13387
13387
  */
@@ -13392,9 +13392,9 @@ type Page = {
13392
13392
  next_cursor: string | null;
13393
13393
  };
13394
13394
 
13395
- type ListListingsResult = {
13396
- page: Page;
13397
- result: Array<Order>;
13395
+ type ListListingsResult$1 = {
13396
+ page: Page$1;
13397
+ result: Array<Order$1>;
13398
13398
  };
13399
13399
 
13400
13400
  /**
@@ -13450,7 +13450,7 @@ declare class OrdersService {
13450
13450
  * Page cursor to retrieve previous or next page. Use the value returned in the response.
13451
13451
  */
13452
13452
  pageCursor?: PageCursor;
13453
- }): CancelablePromise<ListListingsResult>;
13453
+ }): CancelablePromise<ListListingsResult$1>;
13454
13454
  /**
13455
13455
  * Create a listing
13456
13456
  * Create a listing
@@ -13460,7 +13460,7 @@ declare class OrdersService {
13460
13460
  createListing({ chainName, requestBody, }: {
13461
13461
  chainName: ChainName$1;
13462
13462
  requestBody: CreateListingRequestBody;
13463
- }): CancelablePromise<ListingResult>;
13463
+ }): CancelablePromise<ListingResult$1>;
13464
13464
  /**
13465
13465
  * Get a single listing by ID
13466
13466
  * Get a single listing by ID
@@ -13473,7 +13473,7 @@ declare class OrdersService {
13473
13473
  * Global Order identifier
13474
13474
  */
13475
13475
  listingId: string;
13476
- }): CancelablePromise<ListingResult>;
13476
+ }): CancelablePromise<ListingResult$1>;
13477
13477
  /**
13478
13478
  * Retrieve fulfillment data for orders
13479
13479
  * Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
@@ -13521,7 +13521,7 @@ interface CreateListingParams {
13521
13521
  orderComponents: OrderComponents;
13522
13522
  orderHash: string;
13523
13523
  orderSignature: string;
13524
- makerFee?: Fee;
13524
+ makerFee?: FeeValue;
13525
13525
  }
13526
13526
  type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
13527
13527
  declare enum FeeType {
@@ -13530,11 +13530,13 @@ declare enum FeeType {
13530
13530
  PROTOCOL = "PROTOCOL",
13531
13531
  ROYALTY = "ROYALTY"
13532
13532
  }
13533
- interface Fee {
13534
- type: FeeType;
13533
+ interface FeeValue {
13535
13534
  recipient: string;
13536
13535
  amount: string;
13537
13536
  }
13537
+ interface Fee extends FeeValue {
13538
+ type: FeeType;
13539
+ }
13538
13540
  declare enum TransactionPurpose {
13539
13541
  APPROVAL = "APPROVAL",
13540
13542
  FULFILL_ORDER = "FULFILL_ORDER"
@@ -13564,10 +13566,64 @@ interface SignableAction {
13564
13566
  type Action = TransactionAction | SignableAction;
13565
13567
  interface FulfillOrderResponse {
13566
13568
  actions: Action[];
13569
+ /**
13570
+ * User MUST submit the fulfillment transaction before the expiration
13571
+ * Submitting after the expiration will result in a on chain revert
13572
+ */
13573
+ expiration: string;
13574
+ order: Order;
13567
13575
  }
13568
13576
  interface CancelOrderResponse {
13569
13577
  unsignedCancelOrderTransaction: PopulatedTransaction;
13570
13578
  }
13579
+ interface Order {
13580
+ id: string;
13581
+ accountAddress: string;
13582
+ buy: (ERC20Item$1 | NativeItem$1)[];
13583
+ sell: ERC721Item$1[];
13584
+ fees: Fee[];
13585
+ chain: {
13586
+ id: string;
13587
+ name: string;
13588
+ };
13589
+ createTime: string;
13590
+ updateTime: string;
13591
+ /**
13592
+ * Time after which the Order is considered active
13593
+ */
13594
+ startTime: string;
13595
+ /**
13596
+ * Time after which the Order is expired
13597
+ */
13598
+ endTime: string;
13599
+ protocolData: {
13600
+ orderType: 'FULL_RESTRICTED';
13601
+ zoneAddress: string;
13602
+ counter: string;
13603
+ seaportAddress: string;
13604
+ seaportVersion: string;
13605
+ };
13606
+ salt: string;
13607
+ signature: string;
13608
+ status: OrderStatus;
13609
+ }
13610
+ interface ListingResult {
13611
+ result: Order;
13612
+ }
13613
+ interface ListListingsResult {
13614
+ page: Page;
13615
+ result: Order[];
13616
+ }
13617
+ interface Page {
13618
+ /**
13619
+ * First item as an encoded string
13620
+ */
13621
+ previousCursor: string | null;
13622
+ /**
13623
+ * Last item as an encoded string
13624
+ */
13625
+ nextCursor: string | null;
13626
+ }
13571
13627
 
13572
13628
  /**
13573
13629
  * zkEVM orderbook SDK
@@ -13620,7 +13676,7 @@ declare class Orderbook {
13620
13676
  * @param {string} fulfillerAddress - The address of the account fulfilling the order.
13621
13677
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
13622
13678
  */
13623
- fulfillOrder(listingId: string, takerAddress: string, takerFee?: Fee): Promise<FulfillOrderResponse>;
13679
+ fulfillOrder(listingId: string, takerAddress: string, takerFee?: FeeValue): Promise<FulfillOrderResponse>;
13624
13680
  /**
13625
13681
  * Get an unsigned cancel order transaction. Orders can only be cancelled by
13626
13682
  * the account that created them.
@@ -13643,6 +13699,7 @@ type orderbook_d_CreateListingParams = CreateListingParams;
13643
13699
  type orderbook_d_Fee = Fee;
13644
13700
  type orderbook_d_FeeType = FeeType;
13645
13701
  declare const orderbook_d_FeeType: typeof FeeType;
13702
+ type orderbook_d_FeeValue = FeeValue;
13646
13703
  type orderbook_d_FulfillOrderResponse = FulfillOrderResponse;
13647
13704
  type orderbook_d_ListListingsParams = ListListingsParams;
13648
13705
  type orderbook_d_ListListingsResult = ListListingsResult;
@@ -13652,6 +13709,7 @@ type orderbook_d_OrderStatus = OrderStatus;
13652
13709
  declare const orderbook_d_OrderStatus: typeof OrderStatus;
13653
13710
  type orderbook_d_Orderbook = Orderbook;
13654
13711
  declare const orderbook_d_Orderbook: typeof Orderbook;
13712
+ type orderbook_d_Page = Page;
13655
13713
  type orderbook_d_PrepareListingParams = PrepareListingParams;
13656
13714
  type orderbook_d_PrepareListingResponse = PrepareListingResponse;
13657
13715
  type orderbook_d_RoyaltyInfo = RoyaltyInfo;
@@ -13673,6 +13731,7 @@ declare namespace orderbook_d {
13673
13731
  ERC721Item$1 as ERC721Item,
13674
13732
  orderbook_d_Fee as Fee,
13675
13733
  orderbook_d_FeeType as FeeType,
13734
+ orderbook_d_FeeValue as FeeValue,
13676
13735
  orderbook_d_FulfillOrderResponse as FulfillOrderResponse,
13677
13736
  orderbook_d_ListListingsParams as ListListingsParams,
13678
13737
  orderbook_d_ListListingsResult as ListListingsResult,
@@ -13681,6 +13740,7 @@ declare namespace orderbook_d {
13681
13740
  orderbook_d_Order as Order,
13682
13741
  orderbook_d_OrderStatus as OrderStatus,
13683
13742
  orderbook_d_Orderbook as Orderbook,
13743
+ orderbook_d_Page as Page,
13684
13744
  orderbook_d_PrepareListingParams as PrepareListingParams,
13685
13745
  orderbook_d_PrepareListingResponse as PrepareListingResponse,
13686
13746
  orderbook_d_RoyaltyInfo as RoyaltyInfo,
@@ -14337,6 +14397,7 @@ declare enum CheckoutErrorType {
14337
14397
  CONNECT_PROVIDER_ERROR = "CONNECT_PROVIDER_ERROR",
14338
14398
  GET_BALANCE_ERROR = "GET_BALANCE_ERROR",
14339
14399
  GET_ERC20_BALANCE_ERROR = "GET_ERC20_BALANCE_ERROR",
14400
+ GET_ERC721_BALANCE_ERROR = "GET_ERC721_BALANCE_ERROR",
14340
14401
  GET_NETWORK_INFO_ERROR = "GET_NETWORK_INFO_ERROR",
14341
14402
  METAMASK_PROVIDER_ERROR = "METAMASK_PROVIDER_ERROR",
14342
14403
  CHAIN_NOT_SUPPORTED_ERROR = "CHAIN_NOT_SUPPORTED_ERROR",
@@ -14348,6 +14409,7 @@ declare enum CheckoutErrorType {
14348
14409
  UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT",
14349
14410
  INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE",
14350
14411
  UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
14412
+ UNSUPPORTED_BALANCE_REQUIREMENT_ERROR = "UNSUPPORTED_BALANCE_REQUIREMENT_ERROR",
14351
14413
  GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
14352
14414
  SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED",
14353
14415
  GET_ERC20_ALLOWANCE_ERROR = "GET_ERC20_ALLOWANCE_ERROR",