@imtbl/sdk 0.13.2-alpha → 0.14.0-alpha.1

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"
@@ -13568,6 +13570,54 @@ interface FulfillOrderResponse {
13568
13570
  interface CancelOrderResponse {
13569
13571
  unsignedCancelOrderTransaction: PopulatedTransaction;
13570
13572
  }
13573
+ interface Order {
13574
+ id: string;
13575
+ accountAddress: string;
13576
+ buy: (ERC20Item$1 | NativeItem$1)[];
13577
+ sell: ERC721Item$1[];
13578
+ fees: Fee[];
13579
+ chain: {
13580
+ id: string;
13581
+ name: string;
13582
+ };
13583
+ createTime: string;
13584
+ updateTime: string;
13585
+ /**
13586
+ * Time after which the Order is considered active
13587
+ */
13588
+ startTime: string;
13589
+ /**
13590
+ * Time after which the Order is expired
13591
+ */
13592
+ endTime: string;
13593
+ protocolData: {
13594
+ orderType: 'FULL_RESTRICTED';
13595
+ zoneAddress: string;
13596
+ counter: string;
13597
+ seaportAddress: string;
13598
+ seaportVersion: string;
13599
+ };
13600
+ salt: string;
13601
+ signature: string;
13602
+ status: OrderStatus;
13603
+ }
13604
+ interface ListingResult {
13605
+ result: Order;
13606
+ }
13607
+ interface ListListingsResult {
13608
+ page: Page;
13609
+ result: Order[];
13610
+ }
13611
+ interface Page {
13612
+ /**
13613
+ * First item as an encoded string
13614
+ */
13615
+ previousCursor: string | null;
13616
+ /**
13617
+ * Last item as an encoded string
13618
+ */
13619
+ nextCursor: string | null;
13620
+ }
13571
13621
 
13572
13622
  /**
13573
13623
  * zkEVM orderbook SDK
@@ -13620,7 +13670,7 @@ declare class Orderbook {
13620
13670
  * @param {string} fulfillerAddress - The address of the account fulfilling the order.
13621
13671
  * @return {FulfillOrderResponse} Approval and fulfilment transactions.
13622
13672
  */
13623
- fulfillOrder(listingId: string, takerAddress: string, takerFee?: Fee): Promise<FulfillOrderResponse>;
13673
+ fulfillOrder(listingId: string, takerAddress: string, takerFee?: FeeValue): Promise<FulfillOrderResponse>;
13624
13674
  /**
13625
13675
  * Get an unsigned cancel order transaction. Orders can only be cancelled by
13626
13676
  * the account that created them.
@@ -13643,6 +13693,7 @@ type orderbook_d_CreateListingParams = CreateListingParams;
13643
13693
  type orderbook_d_Fee = Fee;
13644
13694
  type orderbook_d_FeeType = FeeType;
13645
13695
  declare const orderbook_d_FeeType: typeof FeeType;
13696
+ type orderbook_d_FeeValue = FeeValue;
13646
13697
  type orderbook_d_FulfillOrderResponse = FulfillOrderResponse;
13647
13698
  type orderbook_d_ListListingsParams = ListListingsParams;
13648
13699
  type orderbook_d_ListListingsResult = ListListingsResult;
@@ -13652,6 +13703,7 @@ type orderbook_d_OrderStatus = OrderStatus;
13652
13703
  declare const orderbook_d_OrderStatus: typeof OrderStatus;
13653
13704
  type orderbook_d_Orderbook = Orderbook;
13654
13705
  declare const orderbook_d_Orderbook: typeof Orderbook;
13706
+ type orderbook_d_Page = Page;
13655
13707
  type orderbook_d_PrepareListingParams = PrepareListingParams;
13656
13708
  type orderbook_d_PrepareListingResponse = PrepareListingResponse;
13657
13709
  type orderbook_d_RoyaltyInfo = RoyaltyInfo;
@@ -13673,6 +13725,7 @@ declare namespace orderbook_d {
13673
13725
  ERC721Item$1 as ERC721Item,
13674
13726
  orderbook_d_Fee as Fee,
13675
13727
  orderbook_d_FeeType as FeeType,
13728
+ orderbook_d_FeeValue as FeeValue,
13676
13729
  orderbook_d_FulfillOrderResponse as FulfillOrderResponse,
13677
13730
  orderbook_d_ListListingsParams as ListListingsParams,
13678
13731
  orderbook_d_ListListingsResult as ListListingsResult,
@@ -13681,6 +13734,7 @@ declare namespace orderbook_d {
13681
13734
  orderbook_d_Order as Order,
13682
13735
  orderbook_d_OrderStatus as OrderStatus,
13683
13736
  orderbook_d_Orderbook as Orderbook,
13737
+ orderbook_d_Page as Page,
13684
13738
  orderbook_d_PrepareListingParams as PrepareListingParams,
13685
13739
  orderbook_d_PrepareListingResponse as PrepareListingResponse,
13686
13740
  orderbook_d_RoyaltyInfo as RoyaltyInfo,
@@ -29591,6 +29645,14 @@ declare namespace ERC721Hybrid {
29591
29645
  to: string;
29592
29646
  quantity: BigNumber;
29593
29647
  };
29648
+ type IDBurnStruct = {
29649
+ owner: PromiseOrValue<string>;
29650
+ tokenIds: PromiseOrValue<BigNumberish>[];
29651
+ };
29652
+ type IDBurnStructOutput = [string, BigNumber[]] & {
29653
+ owner: string;
29654
+ tokenIds: BigNumber[];
29655
+ };
29594
29656
  type TransferRequestStruct = {
29595
29657
  from: PromiseOrValue<string>;
29596
29658
  tos: PromiseOrValue<string>[];
@@ -29606,7 +29668,8 @@ declare namespace ERC721Hybrid {
29606
29668
  type Mint = ERC721Hybrid.MintStruct;
29607
29669
  type IDMint$1 = ERC721Hybrid.IDMintStruct;
29608
29670
  type TransferRequest$1 = ERC721Hybrid.TransferRequestStruct;
29609
- declare class ERC721HybridPermissionedMintable {
29671
+ type IDBurn$1 = ERC721Hybrid.IDBurnStruct;
29672
+ declare class ERC721 {
29610
29673
  private readonly contract;
29611
29674
  constructor(contractAddress: string);
29612
29675
  /**
@@ -29709,6 +29772,18 @@ declare class ERC721HybridPermissionedMintable {
29709
29772
  populateBurnBatch(tokenIds: PromiseOrValue<BigNumberish>[], overrides?: Overrides & {
29710
29773
  from?: PromiseOrValue<string>;
29711
29774
  }): Promise<PopulatedTransaction>;
29775
+ /**
29776
+ * @returns a populated transaction for the safe burn contract function
29777
+ */
29778
+ populateSafeBurn(owner: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
29779
+ from?: PromiseOrValue<string>;
29780
+ }): Promise<PopulatedTransaction>;
29781
+ /**
29782
+ * @returns a populated transaction for the safe burn batch contract function
29783
+ */
29784
+ populateSafeBurnBatch(burns: IDBurn$1[], overrides?: Overrides & {
29785
+ from?: PromiseOrValue<string>;
29786
+ }): Promise<PopulatedTransaction>;
29712
29787
  /**
29713
29788
  * @returns a populated transaction for the grantMinterRole contract function
29714
29789
  */
@@ -29724,13 +29799,13 @@ declare class ERC721HybridPermissionedMintable {
29724
29799
  /**
29725
29800
  * @returns a populated transaction for the mint by ID contract function
29726
29801
  */
29727
- populateMintByID(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
29802
+ populateMint(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
29728
29803
  from?: PromiseOrValue<string>;
29729
29804
  }): Promise<PopulatedTransaction>;
29730
29805
  /**
29731
29806
  * @returns a populated transaction for the safe mint by ID contract function
29732
29807
  */
29733
- populateSafeMintByID(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
29808
+ populateSafeMint(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
29734
29809
  from?: PromiseOrValue<string>;
29735
29810
  }): Promise<PopulatedTransaction>;
29736
29811
  /**
@@ -29748,25 +29823,25 @@ declare class ERC721HybridPermissionedMintable {
29748
29823
  /**
29749
29824
  * @returns a populated transaction for the batch mint by quantity contract function
29750
29825
  */
29751
- populateBatchMintByQuantity(mints: Mint[], overrides?: Overrides & {
29826
+ populateMintBatchByQuantity(mints: Mint[], overrides?: Overrides & {
29752
29827
  from?: PromiseOrValue<string>;
29753
29828
  }): Promise<PopulatedTransaction>;
29754
29829
  /**
29755
29830
  * @returns a populated transaction for the batch safe mint by quantity contract function
29756
29831
  */
29757
- populateBatchSafeMintByQuantity(mints: Mint[], overrides?: Overrides & {
29832
+ populateSafeMintBatchByQuantity(mints: Mint[], overrides?: Overrides & {
29758
29833
  from?: PromiseOrValue<string>;
29759
29834
  }): Promise<PopulatedTransaction>;
29760
29835
  /**
29761
29836
  * @returns a populated transaction for the batch mint by ID to multiple recipients contract function
29762
29837
  */
29763
- populateBatchMintByIDToMultiple(mints: IDMint$1[], overrides?: Overrides & {
29838
+ populateMintBatch(mints: IDMint$1[], overrides?: Overrides & {
29764
29839
  from?: PromiseOrValue<string>;
29765
29840
  }): Promise<PopulatedTransaction>;
29766
29841
  /**
29767
29842
  * @returns a populated transaction for the batch safe mint by ID to multiple recipients contract function
29768
29843
  */
29769
- populateBatchSafeMintByIDToMultiple(mints: IDMint$1[], overrides?: Overrides & {
29844
+ populateSafeMintBatch(mints: IDMint$1[], overrides?: Overrides & {
29770
29845
  from?: PromiseOrValue<string>;
29771
29846
  }): Promise<PopulatedTransaction>;
29772
29847
  /**
@@ -29849,15 +29924,23 @@ declare class ERC721HybridPermissionedMintable {
29849
29924
  }): Promise<PopulatedTransaction>;
29850
29925
  }
29851
29926
 
29852
- type erc721_hybrid_permissioned_mintable_d_ERC721HybridPermissionedMintable = ERC721HybridPermissionedMintable;
29853
- declare const erc721_hybrid_permissioned_mintable_d_ERC721HybridPermissionedMintable: typeof ERC721HybridPermissionedMintable;
29854
- declare namespace erc721_hybrid_permissioned_mintable_d {
29927
+ type erc721_d_ERC721 = ERC721;
29928
+ declare const erc721_d_ERC721: typeof ERC721;
29929
+ declare namespace erc721_d {
29855
29930
  export {
29856
- erc721_hybrid_permissioned_mintable_d_ERC721HybridPermissionedMintable as ERC721HybridPermissionedMintable,
29931
+ erc721_d_ERC721 as ERC721,
29857
29932
  };
29858
29933
  }
29859
29934
 
29860
29935
  declare namespace ImmutableERC721Base {
29936
+ type IDBurnStruct = {
29937
+ owner: PromiseOrValue<string>;
29938
+ tokenIds: PromiseOrValue<BigNumberish>[];
29939
+ };
29940
+ type IDBurnStructOutput = [string, BigNumber[]] & {
29941
+ owner: string;
29942
+ tokenIds: BigNumber[];
29943
+ };
29861
29944
  type IDMintStruct = {
29862
29945
  to: PromiseOrValue<string>;
29863
29946
  tokenIds: PromiseOrValue<BigNumberish>[];
@@ -29880,7 +29963,8 @@ declare namespace ImmutableERC721Base {
29880
29963
 
29881
29964
  type IDMint = ImmutableERC721Base.IDMintStruct;
29882
29965
  type TransferRequest = ImmutableERC721Base.TransferRequestStruct;
29883
- declare class ERC721PermissionedMintable {
29966
+ type IDBurn = ImmutableERC721Base.IDBurnStruct;
29967
+ declare class ERC721MintByID {
29884
29968
  private readonly contract;
29885
29969
  constructor(contractAddress: string);
29886
29970
  /**
@@ -30007,6 +30091,18 @@ declare class ERC721PermissionedMintable {
30007
30091
  populateSafeMintBatch(mints: IDMint[], overrides?: Overrides & {
30008
30092
  from?: PromiseOrValue<string>;
30009
30093
  }): Promise<PopulatedTransaction>;
30094
+ /**
30095
+ * @returns a populated transaction for the safe burn contract function
30096
+ */
30097
+ populateSafeBurn(owner: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30098
+ from?: PromiseOrValue<string>;
30099
+ }): Promise<PopulatedTransaction>;
30100
+ /**
30101
+ * @returns a populated transaction for the safe burn batch contract function
30102
+ */
30103
+ populateSafeBurnBatch(burns: IDBurn[], overrides?: Overrides & {
30104
+ from?: PromiseOrValue<string>;
30105
+ }): Promise<PopulatedTransaction>;
30010
30106
  /**
30011
30107
  * @returns a populated transaction for the renounceRole contract function
30012
30108
  */
@@ -30087,12 +30183,12 @@ declare class ERC721PermissionedMintable {
30087
30183
  }): Promise<PopulatedTransaction>;
30088
30184
  }
30089
30185
 
30090
- type erc721_permissioned_mintable_d_ERC721PermissionedMintable = ERC721PermissionedMintable;
30091
- declare const erc721_permissioned_mintable_d_ERC721PermissionedMintable: typeof ERC721PermissionedMintable;
30092
- declare namespace erc721_permissioned_mintable_d {
30186
+ type erc721_mint_by_id_d_ERC721MintByID = ERC721MintByID;
30187
+ declare const erc721_mint_by_id_d_ERC721MintByID: typeof ERC721MintByID;
30188
+ declare namespace erc721_mint_by_id_d {
30093
30189
  export {
30094
- erc721_permissioned_mintable_d_ERC721PermissionedMintable as ERC721PermissionedMintable,
30190
+ erc721_mint_by_id_d_ERC721MintByID as ERC721MintByID,
30095
30191
  };
30096
30192
  }
30097
30193
 
30098
- export { blockchain_data_d as blockchainData, checkout_sdk_d as checkoutSdk, checkout_widgets_d as checkoutWidgets, config_d as config, erc20_d as erc20, erc721_hybrid_permissioned_mintable_d as erc721HybridPermissionedMintable, erc721_permissioned_mintable_d as erc721PermissionedMintable, immutablex_client_d as immutablexClient, orderbook_d as orderbook, passport_d as passport, provider_d as provider };
30194
+ export { blockchain_data_d as blockchainData, checkout_sdk_d as checkoutSdk, checkout_widgets_d as checkoutWidgets, config_d as config, erc20_d as erc20, erc721_d as erc721, erc721_mint_by_id_d as erc721MintById, immutablex_client_d as immutablexClient, orderbook_d as orderbook, passport_d as passport, provider_d as provider };