@imtbl/sdk 0.21.0 → 0.22.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
@@ -377,7 +377,7 @@ interface Deposit$1 {
377
377
  * @export
378
378
  * @interface Mint
379
379
  */
380
- interface Mint$2 {
380
+ interface Mint$1 {
381
381
  /**
382
382
  * The account address the asset was minted to
383
383
  * @type {string}
@@ -676,7 +676,7 @@ interface Withdrawal$1 {
676
676
  * The activity details
677
677
  * @export
678
678
  */
679
- type ActivityDetails = Burn | Deposit$1 | Mint$2 | NFTSale | Transfer$1 | Withdrawal$1;
679
+ type ActivityDetails = Burn | Deposit$1 | Mint$1 | NFTSale | Transfer$1 | Withdrawal$1;
680
680
 
681
681
  /**
682
682
  * Immutable zkEVM API
@@ -2405,24 +2405,6 @@ declare abstract class Signer {
2405
2405
  static isSigner(value: any): value is Signer;
2406
2406
  }
2407
2407
 
2408
- interface Overrides {
2409
- gasLimit?: BigNumberish | Promise<BigNumberish>;
2410
- gasPrice?: BigNumberish | Promise<BigNumberish>;
2411
- maxFeePerGas?: BigNumberish | Promise<BigNumberish>;
2412
- maxPriorityFeePerGas?: BigNumberish | Promise<BigNumberish>;
2413
- nonce?: BigNumberish | Promise<BigNumberish>;
2414
- type?: number;
2415
- accessList?: AccessListish;
2416
- customData?: Record<string, any>;
2417
- ccipReadEnabled?: boolean;
2418
- }
2419
- interface PayableOverrides extends Overrides {
2420
- value?: BigNumberish | Promise<BigNumberish>;
2421
- }
2422
- interface CallOverrides extends PayableOverrides {
2423
- blockTag?: BlockTag | Promise<BlockTag>;
2424
- from?: string | Promise<string>;
2425
- }
2426
2408
  interface PopulatedTransaction {
2427
2409
  to?: string;
2428
2410
  from?: string;
@@ -4962,7 +4944,7 @@ interface CreateTradeResponse {
4962
4944
  * @export
4963
4945
  * @interface TransferRequest
4964
4946
  */
4965
- interface TransferRequest$2 {
4947
+ interface TransferRequest {
4966
4948
  /**
4967
4949
  * Amount to transfer
4968
4950
  * @type {string}
@@ -5036,7 +5018,7 @@ interface CreateTransferRequest {
5036
5018
  * @type {Array<TransferRequest>}
5037
5019
  * @memberof CreateTransferRequest
5038
5020
  */
5039
- 'requests': Array<TransferRequest$2>;
5021
+ 'requests': Array<TransferRequest>;
5040
5022
  /**
5041
5023
  * Public stark key of the user sending the transfer
5042
5024
  * @type {string}
@@ -7245,7 +7227,7 @@ interface ListDepositsResponse {
7245
7227
  * @export
7246
7228
  * @interface Mint
7247
7229
  */
7248
- interface Mint$1 {
7230
+ interface Mint {
7249
7231
  /**
7250
7232
  * Fee details
7251
7233
  * @type {Array<Fee>}
@@ -7319,7 +7301,7 @@ interface ListMintsResponse {
7319
7301
  * @type {Array<Mint>}
7320
7302
  * @memberof ListMintsResponse
7321
7303
  */
7322
- 'result': Array<Mint$1>;
7304
+ 'result': Array<Mint>;
7323
7305
  }
7324
7306
 
7325
7307
  /**
@@ -10381,7 +10363,7 @@ declare class MintsApi extends BaseAPI {
10381
10363
  * @throws {RequiredError}
10382
10364
  * @memberof MintsApi
10383
10365
  */
10384
- getMint(requestParameters: MintsApiGetMintRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Mint$1[], any>>;
10366
+ getMint(requestParameters: MintsApiGetMintRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Mint[], any>>;
10385
10367
  /**
10386
10368
  * Get details of a mintable token with the given token address and token ID
10387
10369
  * @summary Get details of a mintable token with the given token address and token ID
@@ -12734,7 +12716,7 @@ declare class ImmutableXClient {
12734
12716
  * @returns a promise that resolves with the requested Mint
12735
12717
  * @throws {@link index.IMXError}
12736
12718
  */
12737
- getMint(request: MintsApiGetMintRequest): Promise<Mint$1[]>;
12719
+ getMint(request: MintsApiGetMintRequest): Promise<Mint[]>;
12738
12720
  /**
12739
12721
  * Get a list of Mints
12740
12722
  * @param request optional object containing the parameters to be provided in the API request
@@ -13540,11 +13522,6 @@ type CreateListingRequestBody = {
13540
13522
  start_at: string;
13541
13523
  };
13542
13524
 
13543
- type FulfillmentDataRequest = {
13544
- order_id: string;
13545
- fees: Array<Fee$1>;
13546
- };
13547
-
13548
13525
  /**
13549
13526
  * The chain details
13550
13527
  */
@@ -13609,11 +13586,16 @@ type Order$1 = {
13609
13586
  updated_at: string;
13610
13587
  };
13611
13588
 
13612
- type FulfillmentDataResult = {
13589
+ type FulfillableOrder = {
13613
13590
  extra_data: string;
13614
13591
  order: Order$1;
13615
13592
  };
13616
13593
 
13594
+ type FulfillmentDataRequest = {
13595
+ order_id: string;
13596
+ fees: Array<Fee$1>;
13597
+ };
13598
+
13617
13599
  type ListingResult$1 = {
13618
13600
  result: Order$1;
13619
13601
  };
@@ -13699,6 +13681,17 @@ type TradeResult$1 = {
13699
13681
  result: Trade$1;
13700
13682
  };
13701
13683
 
13684
+ type UnfulfillableOrder = {
13685
+ /**
13686
+ * OrderID for the requested but unfulfillable order
13687
+ */
13688
+ order_id: string;
13689
+ /**
13690
+ * Nullable string containing error reason if the signing is unsuccessful for the order
13691
+ */
13692
+ reason: string;
13693
+ };
13694
+
13702
13695
  declare class OrdersService {
13703
13696
  readonly httpRequest: BaseHttpRequest;
13704
13697
  constructor(httpRequest: BaseHttpRequest);
@@ -13776,7 +13769,10 @@ declare class OrdersService {
13776
13769
  chainName: ChainName$1;
13777
13770
  requestBody: Array<FulfillmentDataRequest>;
13778
13771
  }): CancelablePromise<{
13779
- result: Array<FulfillmentDataResult>;
13772
+ result: {
13773
+ fulfillable_orders: Array<FulfillableOrder>;
13774
+ unfulfillable_orders: Array<UnfulfillableOrder>;
13775
+ };
13780
13776
  }>;
13781
13777
  /**
13782
13778
  * List all trades
@@ -30483,673 +30479,4 @@ declare namespace checkout_widgets_d {
30483
30479
  };
30484
30480
  }
30485
30481
 
30486
- /* Autogenerated file. Do not edit manually. */
30487
- /* tslint:disable */
30488
- /* eslint-disable */
30489
-
30490
-
30491
- type PromiseOrValue$1<T> = T | Promise<T>;
30492
-
30493
- declare class ERC20 {
30494
- private readonly contract;
30495
- constructor(contractAddress: string);
30496
- /**
30497
- * @returns a promise that resolves with a BigNumber that represents the amount of tokens in existence
30498
- */
30499
- totalSupply(provider: Provider$1, overrides?: CallOverrides): Promise<BigNumber>;
30500
- /**
30501
- * @returns a promise that resolves with a BigNumber that represents the amount of tokens owned by account
30502
- */
30503
- balanceOf(provider: Provider$1, account: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<BigNumber>;
30504
- /**
30505
- * @returns a promise that resolves with a BigNumber that represents the remaining number of tokens that spender will be allowed to spend on behalf of owner through transferFrom
30506
- */
30507
- allowance(provider: Provider$1, owner: PromiseOrValue$1<string>, spender: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<BigNumber>;
30508
- /**
30509
- * @returns a promise that resolves with a populated transaction
30510
- */
30511
- populateTransfer(to: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
30512
- from?: PromiseOrValue$1<string>;
30513
- }): Promise<PopulatedTransaction>;
30514
- /**
30515
- * @returns a promise that resolves with a populated transaction
30516
- */
30517
- populateApprove(spender: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
30518
- from?: PromiseOrValue$1<string>;
30519
- }): Promise<PopulatedTransaction>;
30520
- /**
30521
- * @returns a promise that resolves with a populated transaction
30522
- */
30523
- populateTransferFrom(from: PromiseOrValue$1<string>, to: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
30524
- from?: PromiseOrValue$1<string>;
30525
- }): Promise<PopulatedTransaction>;
30526
- }
30527
-
30528
- type erc20_d_ERC20 = ERC20;
30529
- declare const erc20_d_ERC20: typeof ERC20;
30530
- declare namespace erc20_d {
30531
- export {
30532
- erc20_d_ERC20 as ERC20,
30533
- };
30534
- }
30535
-
30536
- type PromiseOrValue<T> = T | Promise<T>;
30537
-
30538
- declare namespace ERC721Hybrid {
30539
- type IDMintStruct = {
30540
- to: PromiseOrValue<string>;
30541
- tokenIds: PromiseOrValue<BigNumberish>[];
30542
- };
30543
- type IDMintStructOutput = [string, BigNumber[]] & {
30544
- to: string;
30545
- tokenIds: BigNumber[];
30546
- };
30547
- type MintStruct = {
30548
- to: PromiseOrValue<string>;
30549
- quantity: PromiseOrValue<BigNumberish>;
30550
- };
30551
- type MintStructOutput = [string, BigNumber] & {
30552
- to: string;
30553
- quantity: BigNumber;
30554
- };
30555
- type IDBurnStruct = {
30556
- owner: PromiseOrValue<string>;
30557
- tokenIds: PromiseOrValue<BigNumberish>[];
30558
- };
30559
- type IDBurnStructOutput = [string, BigNumber[]] & {
30560
- owner: string;
30561
- tokenIds: BigNumber[];
30562
- };
30563
- type TransferRequestStruct = {
30564
- from: PromiseOrValue<string>;
30565
- tos: PromiseOrValue<string>[];
30566
- tokenIds: PromiseOrValue<BigNumberish>[];
30567
- };
30568
- type TransferRequestStructOutput = [string, string[], BigNumber[]] & {
30569
- from: string;
30570
- tos: string[];
30571
- tokenIds: BigNumber[];
30572
- };
30573
- }
30574
-
30575
- type Mint = ERC721Hybrid.MintStruct;
30576
- type IDMint$1 = ERC721Hybrid.IDMintStruct;
30577
- type TransferRequest$1 = ERC721Hybrid.TransferRequestStruct;
30578
- type IDBurn$1 = ERC721Hybrid.IDBurnStruct;
30579
- declare class ERC721 {
30580
- private readonly contract;
30581
- constructor(contractAddress: string);
30582
- /**
30583
- * Read functions
30584
- */
30585
- /**
30586
- * @returns the DEFAULT_ADMIN_ROLE as a string.
30587
- */
30588
- DEFAULT_ADMIN_ROLE(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30589
- /**
30590
- * Returns the domain separator used in the encoding of the signature for permits, as defined by EIP-712
30591
- * @return the bytes32 domain separator
30592
- */
30593
- DOMAIN_SEPARATOR(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30594
- /**
30595
- * @returns the MINTER_ROLE as a string.
30596
- */
30597
- MINTER_ROLE(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30598
- /**
30599
- * @returns the balance of an address as a BigNumber.
30600
- */
30601
- balanceOf(provider: Provider$1, owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
30602
- /**
30603
- * @returns the baseURI as a string.
30604
- */
30605
- baseURI(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30606
- /**
30607
- * @returns the contractURI as a string.
30608
- */
30609
- contractURI(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30610
- /**
30611
- * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
30612
- * signature.
30613
- */
30614
- eip712Domain(provider: Provider$1, overrides?: CallOverrides): Promise<[
30615
- string,
30616
- string,
30617
- string,
30618
- BigNumber,
30619
- string,
30620
- string,
30621
- BigNumber[]
30622
- ] & {
30623
- fields: string;
30624
- name: string;
30625
- version: string;
30626
- chainId: BigNumber;
30627
- verifyingContract: string;
30628
- salt: string;
30629
- extensions: BigNumber[];
30630
- }>;
30631
- /**
30632
- * @returns admin addresses as an array of strings.
30633
- */
30634
- getAdmins(provider: Provider$1, overrides?: CallOverrides): Promise<string[]>;
30635
- /**
30636
- * @returns the approved address for a token ID, or zero if no address set.
30637
- */
30638
- getApproved(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30639
- /**
30640
- * @returns the role admin address.
30641
- */
30642
- getRoleAdmin(provider: Provider$1, role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
30643
- /**
30644
- * @returns the role member address at a particular index.
30645
- */
30646
- getRoleMember(provider: Provider$1, role: PromiseOrValue<BytesLike>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30647
- /**
30648
- * @returns the role member count as a BigNumber.
30649
- */
30650
- getRoleMemberCount(provider: Provider$1, role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
30651
- /**
30652
- * @returns a boolean for whether an account has a particular role.
30653
- */
30654
- hasRole(provider: Provider$1, role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
30655
- /**
30656
- * @returns a booolean that tells whether an operator is approved by a given owner.
30657
- */
30658
- isApprovedForAll(provider: Provider$1, owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
30659
- /**
30660
- * @returns the name of the contract as a string.
30661
- */
30662
- name(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30663
- /**
30664
- * @returns the owner address of a particular tokenId.
30665
- */
30666
- ownerOf(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30667
- /**
30668
- * Returns the current nonce of a given token ID.
30669
- * @param tokenId The ID of the token for which to retrieve the nonce.
30670
- * @return Current nonce of the given token.
30671
- */
30672
- nonces(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
30673
- /**
30674
- * @returns the operator allowlist as a string.
30675
- */
30676
- operatorAllowlist(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30677
- /**
30678
- * @returns the royalty information for a particular tokenId.
30679
- */
30680
- royaltyInfo(provider: Provider$1, _tokenId: PromiseOrValue<BigNumberish>, _salePrice: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string, BigNumber]>;
30681
- /**
30682
- * @returns the symbol of the contract as a string.
30683
- */
30684
- symbol(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30685
- /**
30686
- * @returns the Uniform Resource Identifier (URI) for tokenId token.
30687
- */
30688
- tokenURI(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30689
- /**
30690
- * @returns returns the total amount of tokens stored by the contract.
30691
- */
30692
- totalSupply(provider: Provider$1, overrides?: CallOverrides): Promise<BigNumber>;
30693
- /**
30694
- * Write functions
30695
- */
30696
- /**
30697
- * @returns a populated transaction for the approve contract function
30698
- */
30699
- populateApprove(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30700
- from?: PromiseOrValue<string>;
30701
- }): Promise<PopulatedTransaction>;
30702
- /**
30703
- * Function to approve by way of owner signature
30704
- * @param spender the address to approve
30705
- * @param tokenId the index of the NFT to approve the spender on
30706
- * @param deadline a timestamp expiry for the permit
30707
- * @param sig a traditional or EIP-2098 signature
30708
- */
30709
- populatePermit(spender: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
30710
- /**
30711
- * @returns a populated transaction for the burn contract function
30712
- */
30713
- populateBurn(tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30714
- from?: PromiseOrValue<string>;
30715
- }): Promise<PopulatedTransaction>;
30716
- /**
30717
- * @returns a populated transaction for the batch burn contract function
30718
- */
30719
- populateBurnBatch(tokenIds: PromiseOrValue<BigNumberish>[], overrides?: Overrides & {
30720
- from?: PromiseOrValue<string>;
30721
- }): Promise<PopulatedTransaction>;
30722
- /**
30723
- * @returns a populated transaction for the safe burn contract function
30724
- */
30725
- populateSafeBurn(owner: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30726
- from?: PromiseOrValue<string>;
30727
- }): Promise<PopulatedTransaction>;
30728
- /**
30729
- * @returns a populated transaction for the safe burn batch contract function
30730
- */
30731
- populateSafeBurnBatch(burns: IDBurn$1[], overrides?: Overrides & {
30732
- from?: PromiseOrValue<string>;
30733
- }): Promise<PopulatedTransaction>;
30734
- /**
30735
- * @returns a populated transaction for the grantMinterRole contract function
30736
- */
30737
- populateGrantMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
30738
- from?: PromiseOrValue<string>;
30739
- }): Promise<PopulatedTransaction>;
30740
- /**
30741
- * @returns a populated transaction for the grantRole contract function
30742
- */
30743
- populateGrantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
30744
- from?: PromiseOrValue<string>;
30745
- }): Promise<PopulatedTransaction>;
30746
- /**
30747
- * @returns a populated transaction for the mint by ID contract function
30748
- */
30749
- populateMint(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30750
- from?: PromiseOrValue<string>;
30751
- }): Promise<PopulatedTransaction>;
30752
- /**
30753
- * @returns a populated transaction for the safe mint by ID contract function
30754
- */
30755
- populateSafeMint(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30756
- from?: PromiseOrValue<string>;
30757
- }): Promise<PopulatedTransaction>;
30758
- /**
30759
- * @returns a populated transaction for the mint by quantity contract function
30760
- */
30761
- populateMintByQuantity(to: PromiseOrValue<string>, quantity: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30762
- from?: PromiseOrValue<string>;
30763
- }): Promise<PopulatedTransaction>;
30764
- /**
30765
- * @returns a populated transaction for the safe mint by quantity contract function
30766
- */
30767
- populateSafeMintByQuantity(to: PromiseOrValue<string>, quantity: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30768
- from?: PromiseOrValue<string>;
30769
- }): Promise<PopulatedTransaction>;
30770
- /**
30771
- * @returns a populated transaction for the batch mint by quantity contract function
30772
- */
30773
- populateMintBatchByQuantity(mints: Mint[], overrides?: Overrides & {
30774
- from?: PromiseOrValue<string>;
30775
- }): Promise<PopulatedTransaction>;
30776
- /**
30777
- * @returns a populated transaction for the batch safe mint by quantity contract function
30778
- */
30779
- populateSafeMintBatchByQuantity(mints: Mint[], overrides?: Overrides & {
30780
- from?: PromiseOrValue<string>;
30781
- }): Promise<PopulatedTransaction>;
30782
- /**
30783
- * @returns a populated transaction for the batch mint by ID to multiple recipients contract function
30784
- */
30785
- populateMintBatch(mints: IDMint$1[], overrides?: Overrides & {
30786
- from?: PromiseOrValue<string>;
30787
- }): Promise<PopulatedTransaction>;
30788
- /**
30789
- * @returns a populated transaction for the batch safe mint by ID to multiple recipients contract function
30790
- */
30791
- populateSafeMintBatch(mints: IDMint$1[], overrides?: Overrides & {
30792
- from?: PromiseOrValue<string>;
30793
- }): Promise<PopulatedTransaction>;
30794
- /**
30795
- * @returns a populated transaction for the renounceRole contract function
30796
- */
30797
- populateRenounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
30798
- from?: PromiseOrValue<string>;
30799
- }): Promise<PopulatedTransaction>;
30800
- /**
30801
- * @returns a populated transaction for the revokeMinterRole contract function
30802
- */
30803
- populateRevokeMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
30804
- from?: PromiseOrValue<string>;
30805
- }): Promise<PopulatedTransaction>;
30806
- /**
30807
- * @returns a populated transaction for the revokeRole contract function
30808
- */
30809
- populateRevokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
30810
- from?: PromiseOrValue<string>;
30811
- }): Promise<PopulatedTransaction>;
30812
- /**
30813
- * @returns a populated transaction for the batch save transfer from function
30814
- */
30815
- populateSafeTransferFromBatch(transfers: TransferRequest$1, overrides?: Overrides & {
30816
- from?: PromiseOrValue<string>;
30817
- }): Promise<PopulatedTransaction>;
30818
- /**
30819
- * @returns a populated transaction for the safeTransferFrom(address,address,uint256) contract function
30820
- */
30821
- 'populateSafeTransferFrom(address,address,uint256)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30822
- from?: PromiseOrValue<string>;
30823
- }): Promise<PopulatedTransaction>;
30824
- /**
30825
- * @returns a populated transaction for the safeTransferFrom(address,address,uint256,bytes) contract function
30826
- */
30827
- 'populateSafeTransferFrom(address,address,uint256,bytes)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
30828
- from?: PromiseOrValue<string>;
30829
- }): Promise<PopulatedTransaction>;
30830
- /**
30831
- * @returns a populated transaction for the setApprovalForAll contract function
30832
- */
30833
- populateSetApprovalForAll(operator: PromiseOrValue<string>, approved: PromiseOrValue<boolean>, overrides?: Overrides & {
30834
- from?: PromiseOrValue<string>;
30835
- }): Promise<PopulatedTransaction>;
30836
- /**
30837
- * @returns a populated transaction for the setBaseURI contract function
30838
- */
30839
- populateSetBaseURI(baseURI_: PromiseOrValue<string>, overrides?: Overrides & {
30840
- from?: PromiseOrValue<string>;
30841
- }): Promise<PopulatedTransaction>;
30842
- /**
30843
- * @returns a populated transaction for the setContractURI contract function
30844
- */
30845
- populateSetContractURI(_contractURI: PromiseOrValue<string>, overrides?: Overrides & {
30846
- from?: PromiseOrValue<string>;
30847
- }): Promise<PopulatedTransaction>;
30848
- /**
30849
- * @returns a populated transaction for the setDefaultRoyaltyReceiver contract function
30850
- */
30851
- populateSetDefaultRoyaltyReceiver(receiver: PromiseOrValue<string>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30852
- from?: PromiseOrValue<string>;
30853
- }): Promise<PopulatedTransaction>;
30854
- /**
30855
- * @returns a populated transaction for the setNFTRoyaltyReceiver contract function
30856
- */
30857
- populateSetNFTRoyaltyReceiver(tokenId: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30858
- from?: PromiseOrValue<string>;
30859
- }): Promise<PopulatedTransaction>;
30860
- /**
30861
- * @returns a populated transaction for the setNFTRoyaltyReceiverBatch contract function
30862
- */
30863
- populateSetNFTRoyaltyReceiverBatch(tokenIds: PromiseOrValue<BigNumberish>[], receiver: PromiseOrValue<string>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
30864
- from?: PromiseOrValue<string>;
30865
- }): Promise<PopulatedTransaction>;
30866
- /**
30867
- * @returns a populated transaction for the setOperatorAllowlistRegistry contract function
30868
- */
30869
- populateSetOperatorAllowlistRegistry(_operatorAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
30870
- from?: PromiseOrValue<string>;
30871
- }): Promise<PopulatedTransaction>;
30872
- }
30873
-
30874
- type erc721_d_ERC721 = ERC721;
30875
- declare const erc721_d_ERC721: typeof ERC721;
30876
- declare namespace erc721_d {
30877
- export {
30878
- erc721_d_ERC721 as ERC721,
30879
- };
30880
- }
30881
-
30882
- declare namespace ImmutableERC721Base {
30883
- type IDBurnStruct = {
30884
- owner: PromiseOrValue<string>;
30885
- tokenIds: PromiseOrValue<BigNumberish>[];
30886
- };
30887
- type IDBurnStructOutput = [string, BigNumber[]] & {
30888
- owner: string;
30889
- tokenIds: BigNumber[];
30890
- };
30891
- type IDMintStruct = {
30892
- to: PromiseOrValue<string>;
30893
- tokenIds: PromiseOrValue<BigNumberish>[];
30894
- };
30895
- type IDMintStructOutput = [string, BigNumber[]] & {
30896
- to: string;
30897
- tokenIds: BigNumber[];
30898
- };
30899
- type TransferRequestStruct = {
30900
- from: PromiseOrValue<string>;
30901
- tos: PromiseOrValue<string>[];
30902
- tokenIds: PromiseOrValue<BigNumberish>[];
30903
- };
30904
- type TransferRequestStructOutput = [string, string[], BigNumber[]] & {
30905
- from: string;
30906
- tos: string[];
30907
- tokenIds: BigNumber[];
30908
- };
30909
- }
30910
-
30911
- type IDMint = ImmutableERC721Base.IDMintStruct;
30912
- type TransferRequest = ImmutableERC721Base.TransferRequestStruct;
30913
- type IDBurn = ImmutableERC721Base.IDBurnStruct;
30914
- declare class ERC721MintByID {
30915
- private readonly contract;
30916
- constructor(contractAddress: string);
30917
- /**
30918
- * Read functions
30919
- */
30920
- /**
30921
- * @returns the DEFAULT_ADMIN_ROLE as a string.
30922
- */
30923
- DEFAULT_ADMIN_ROLE(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30924
- /**
30925
- * @returns the MINTER_ROLE as a string.
30926
- */
30927
- MINTER_ROLE(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30928
- /**
30929
- * @returns the balance of an address as a BigNumber.
30930
- */
30931
- balanceOf(provider: Provider$1, owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
30932
- /**
30933
- * @returns the baseURI as a string.
30934
- */
30935
- baseURI(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30936
- /**
30937
- * @returns the contractURI as a string.
30938
- */
30939
- contractURI(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30940
- /**
30941
- * @returns admin addresses as an array of strings.
30942
- */
30943
- getAdmins(provider: Provider$1, overrides?: CallOverrides): Promise<string[]>;
30944
- /**
30945
- * @returns the approved address for a token ID, or zero if no address set.
30946
- */
30947
- getApproved(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30948
- /**
30949
- * @returns the role admin address.
30950
- */
30951
- getRoleAdmin(provider: Provider$1, role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
30952
- /**
30953
- * @returns the role member address at a particular index.
30954
- */
30955
- getRoleMember(provider: Provider$1, role: PromiseOrValue<BytesLike>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30956
- /**
30957
- * @returns the role member count as a BigNumber.
30958
- */
30959
- getRoleMemberCount(provider: Provider$1, role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
30960
- /**
30961
- * @returns a boolean for whether an account has a particular role.
30962
- */
30963
- hasRole(provider: Provider$1, role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
30964
- /**
30965
- * @returns a booolean that tells whether an operator is approved by a given owner.
30966
- */
30967
- isApprovedForAll(provider: Provider$1, owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
30968
- /**
30969
- * @returns the name of the contract as a string.
30970
- */
30971
- name(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30972
- /**
30973
- * @returns the owner address of a particular tokenId.
30974
- */
30975
- ownerOf(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30976
- /**
30977
- * Returns the current nonce of a given token ID.
30978
- * @param tokenId The ID of the token for which to retrieve the nonce.
30979
- * @return Current nonce of the given token.
30980
- */
30981
- nonces(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
30982
- /**
30983
- * @returns the operator allowlist as a string.
30984
- */
30985
- operatorAllowlist(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30986
- /**
30987
- * @returns the royalty information for a particular tokenId.
30988
- */
30989
- royaltyInfo(provider: Provider$1, _tokenId: PromiseOrValue<BigNumberish>, _salePrice: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string, BigNumber]>;
30990
- /**
30991
- * @returns the symbol of the contract as a string.
30992
- */
30993
- symbol(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
30994
- /**
30995
- * @returns the Uniform Resource Identifier (URI) for tokenId token.
30996
- */
30997
- tokenURI(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
30998
- /**
30999
- * @returns returns the total amount of tokens stored by the contract.
31000
- */
31001
- totalSupply(provider: Provider$1, overrides?: CallOverrides): Promise<BigNumber>;
31002
- /**
31003
- * Write functions
31004
- */
31005
- /**
31006
- * @returns a populated transaction for the approve contract function
31007
- */
31008
- populateApprove(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31009
- from?: PromiseOrValue<string>;
31010
- }): Promise<PopulatedTransaction>;
31011
- /**
31012
- * Function to approve by way of owner signature
31013
- * @param spender the address to approve
31014
- * @param tokenId the index of the NFT to approve the spender on
31015
- * @param deadline a timestamp expiry for the permit
31016
- * @param sig a traditional or EIP-2098 signature
31017
- */
31018
- populatePermit(spender: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
31019
- /**
31020
- * @returns a populated transaction for the burn contract function
31021
- */
31022
- populateBurn(tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31023
- from?: PromiseOrValue<string>;
31024
- }): Promise<PopulatedTransaction>;
31025
- /**
31026
- * @returns a populated transaction for the batch burn contract function
31027
- */
31028
- populateBurnBatch(tokenIds: PromiseOrValue<BigNumberish>[], overrides?: Overrides & {
31029
- from?: PromiseOrValue<string>;
31030
- }): Promise<PopulatedTransaction>;
31031
- /**
31032
- * @returns a populated transaction for the grantMinterRole contract function
31033
- */
31034
- populateGrantMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
31035
- from?: PromiseOrValue<string>;
31036
- }): Promise<PopulatedTransaction>;
31037
- /**
31038
- * @returns a populated transaction for the grantRole contract function
31039
- */
31040
- populateGrantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
31041
- from?: PromiseOrValue<string>;
31042
- }): Promise<PopulatedTransaction>;
31043
- /**
31044
- * @returns a populated transaction for the mint contract function
31045
- */
31046
- populateMint(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31047
- from?: PromiseOrValue<string>;
31048
- }): Promise<PopulatedTransaction>;
31049
- /**
31050
- * @returns a populated transaction for the batch mint contract function
31051
- */
31052
- populateSafeMintBatch(mints: IDMint[], overrides?: Overrides & {
31053
- from?: PromiseOrValue<string>;
31054
- }): Promise<PopulatedTransaction>;
31055
- /**
31056
- * @returns a populated transaction for the safe burn contract function
31057
- */
31058
- populateSafeBurn(owner: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31059
- from?: PromiseOrValue<string>;
31060
- }): Promise<PopulatedTransaction>;
31061
- /**
31062
- * @returns a populated transaction for the safe burn batch contract function
31063
- */
31064
- populateSafeBurnBatch(burns: IDBurn[], overrides?: Overrides & {
31065
- from?: PromiseOrValue<string>;
31066
- }): Promise<PopulatedTransaction>;
31067
- /**
31068
- * @returns a populated transaction for the renounceRole contract function
31069
- */
31070
- populateRenounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
31071
- from?: PromiseOrValue<string>;
31072
- }): Promise<PopulatedTransaction>;
31073
- /**
31074
- * @returns a populated transaction for the revokeMinterRole contract function
31075
- */
31076
- populateRevokeMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
31077
- from?: PromiseOrValue<string>;
31078
- }): Promise<PopulatedTransaction>;
31079
- /**
31080
- * @returns a populated transaction for the revokeRole contract function
31081
- */
31082
- populateRevokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
31083
- from?: PromiseOrValue<string>;
31084
- }): Promise<PopulatedTransaction>;
31085
- /**
31086
- * @returns a populated transaction for the batch save transfer from function
31087
- */
31088
- populateSafeTransferFromBatch(transfers: TransferRequest, overrides?: Overrides & {
31089
- from?: PromiseOrValue<string>;
31090
- }): Promise<PopulatedTransaction>;
31091
- /**
31092
- * @returns a populated transaction for the safeTransferFrom(address,address,uint256) contract function
31093
- */
31094
- 'populateSafeTransferFrom(address,address,uint256)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31095
- from?: PromiseOrValue<string>;
31096
- }): Promise<PopulatedTransaction>;
31097
- /**
31098
- * @returns a populated transaction for the safeTransferFrom(address,address,uint256,bytes) contract function
31099
- */
31100
- 'populateSafeTransferFrom(address,address,uint256,bytes)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
31101
- from?: PromiseOrValue<string>;
31102
- }): Promise<PopulatedTransaction>;
31103
- /**
31104
- * @returns a populated transaction for the setApprovalForAll contract function
31105
- */
31106
- populateSetApprovalForAll(operator: PromiseOrValue<string>, approved: PromiseOrValue<boolean>, overrides?: Overrides & {
31107
- from?: PromiseOrValue<string>;
31108
- }): Promise<PopulatedTransaction>;
31109
- /**
31110
- * @returns a populated transaction for the setBaseURI contract function
31111
- */
31112
- populateSetBaseURI(baseURI_: PromiseOrValue<string>, overrides?: Overrides & {
31113
- from?: PromiseOrValue<string>;
31114
- }): Promise<PopulatedTransaction>;
31115
- /**
31116
- * @returns a populated transaction for the setContractURI contract function
31117
- */
31118
- populateSetContractURI(_contractURI: PromiseOrValue<string>, overrides?: Overrides & {
31119
- from?: PromiseOrValue<string>;
31120
- }): Promise<PopulatedTransaction>;
31121
- /**
31122
- * @returns a populated transaction for the setDefaultRoyaltyReceiver contract function
31123
- */
31124
- populateSetDefaultRoyaltyReceiver(receiver: PromiseOrValue<string>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31125
- from?: PromiseOrValue<string>;
31126
- }): Promise<PopulatedTransaction>;
31127
- /**
31128
- * @returns a populated transaction for the setNFTRoyaltyReceiver contract function
31129
- */
31130
- populateSetNFTRoyaltyReceiver(tokenId: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31131
- from?: PromiseOrValue<string>;
31132
- }): Promise<PopulatedTransaction>;
31133
- /**
31134
- * @returns a populated transaction for the setNFTRoyaltyReceiverBatch contract function
31135
- */
31136
- populateSetNFTRoyaltyReceiverBatch(tokenIds: PromiseOrValue<BigNumberish>[], receiver: PromiseOrValue<string>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
31137
- from?: PromiseOrValue<string>;
31138
- }): Promise<PopulatedTransaction>;
31139
- /**
31140
- * @returns a populated transaction for the setOperatorAllowlistRegistry contract function
31141
- */
31142
- populateSetOperatorAllowlistRegistry(_operatorAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
31143
- from?: PromiseOrValue<string>;
31144
- }): Promise<PopulatedTransaction>;
31145
- }
31146
-
31147
- type erc721_mint_by_id_d_ERC721MintByID = ERC721MintByID;
31148
- declare const erc721_mint_by_id_d_ERC721MintByID: typeof ERC721MintByID;
31149
- declare namespace erc721_mint_by_id_d {
31150
- export {
31151
- erc721_mint_by_id_d_ERC721MintByID as ERC721MintByID,
31152
- };
31153
- }
31154
-
31155
- 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 };
30482
+ export { blockchain_data_d as blockchainData, checkout_sdk_d as checkoutSdk, checkout_widgets_d as checkoutWidgets, config_d as config, immutablex_client_d as immutablexClient, orderbook_d as orderbook, passport_d as passport, provider_d as provider };