@imtbl/sdk 0.15.1-alpha → 0.16.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/blockchain_data.js +252 -33
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +56 -1
- package/dist/checkout_sdk.js +460 -92
- package/dist/checkout_widgets.d.ts +1 -0
- package/dist/checkout_widgets.js +1 -1
- package/dist/erc721.d.ts +4 -4
- package/dist/erc721.js +57 -69
- package/dist/erc721_mint_by_id.d.ts +4 -4
- package/dist/erc721_mint_by_id.js +51 -51
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +15 -15
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +857 -253
- package/dist/index.d.ts +225 -16
- package/dist/index.js +855 -251
- package/dist/orderbook.d.ts +150 -4
- package/dist/orderbook.js +135 -0
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +228 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7804,7 +7804,7 @@ declare type TradeB = TradeSide;
|
|
|
7804
7804
|
* @export
|
|
7805
7805
|
* @interface Trade
|
|
7806
7806
|
*/
|
|
7807
|
-
interface Trade {
|
|
7807
|
+
interface Trade$2 {
|
|
7808
7808
|
/**
|
|
7809
7809
|
*
|
|
7810
7810
|
* @type {TradeA}
|
|
@@ -7872,7 +7872,7 @@ interface ListTradesResponse {
|
|
|
7872
7872
|
* @type {Array<Trade>}
|
|
7873
7873
|
* @memberof ListTradesResponse
|
|
7874
7874
|
*/
|
|
7875
|
-
'result': Array<Trade>;
|
|
7875
|
+
'result': Array<Trade$2>;
|
|
7876
7876
|
}
|
|
7877
7877
|
|
|
7878
7878
|
/**
|
|
@@ -11659,7 +11659,7 @@ declare class TradesApi extends BaseAPI {
|
|
|
11659
11659
|
* @throws {RequiredError}
|
|
11660
11660
|
* @memberof TradesApi
|
|
11661
11661
|
*/
|
|
11662
|
-
getTrade(requestParameters: TradesApiGetTradeRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Trade, any>>;
|
|
11662
|
+
getTrade(requestParameters: TradesApiGetTradeRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Trade$2, any>>;
|
|
11663
11663
|
/**
|
|
11664
11664
|
* Get a list of trades. This version of the endpoint is deprecated, the latest version can be found at https://docs.x.immutable.com/reference/#/operations/listTradesV3. Deprecation date - Mon, 01 May 2023 Sunset date - Fri, 01 Sept 2023
|
|
11665
11665
|
* @summary Get a list of trades
|
|
@@ -12651,7 +12651,7 @@ declare class ImmutableXClient {
|
|
|
12651
12651
|
* @returns a promise that resolves with the requested Trade
|
|
12652
12652
|
* @throws {@link index.IMXError}
|
|
12653
12653
|
*/
|
|
12654
|
-
getTrade(request: TradesApiGetTradeRequest): Promise<Trade>;
|
|
12654
|
+
getTrade(request: TradesApiGetTradeRequest): Promise<Trade$2>;
|
|
12655
12655
|
/**
|
|
12656
12656
|
* Get a list of Trades
|
|
12657
12657
|
* @param request - optional object containing the parameters to be provided in the API request
|
|
@@ -13075,6 +13075,7 @@ declare class Passport {
|
|
|
13075
13075
|
getUserInfoDeviceFlow(): Promise<UserProfile | undefined>;
|
|
13076
13076
|
getIdToken(): Promise<string | undefined>;
|
|
13077
13077
|
getAccessToken(): Promise<string | undefined>;
|
|
13078
|
+
getLinkedAddresses(): Promise<string[]>;
|
|
13078
13079
|
}
|
|
13079
13080
|
|
|
13080
13081
|
type passport_d_AccountsChangedEvent = AccountsChangedEvent;
|
|
@@ -13356,9 +13357,6 @@ type CreateListingRequestBody = {
|
|
|
13356
13357
|
* Buy item for listing should either be NATIVE or ERC20 item
|
|
13357
13358
|
*/
|
|
13358
13359
|
buy: Array<Item>;
|
|
13359
|
-
/**
|
|
13360
|
-
* The maker marketplace fee
|
|
13361
|
-
*/
|
|
13362
13360
|
fee?: Fee$1;
|
|
13363
13361
|
/**
|
|
13364
13362
|
* Time after which the Order is considered expired
|
|
@@ -13480,6 +13478,54 @@ type ListListingsResult$1 = {
|
|
|
13480
13478
|
result: Array<Order$1>;
|
|
13481
13479
|
};
|
|
13482
13480
|
|
|
13481
|
+
/**
|
|
13482
|
+
* The metadata related to the transaction in which the activity occurred
|
|
13483
|
+
*/
|
|
13484
|
+
type TradeBlockchainMetadata = {
|
|
13485
|
+
/**
|
|
13486
|
+
* The transaction hash of the trade
|
|
13487
|
+
*/
|
|
13488
|
+
transaction_hash: string;
|
|
13489
|
+
/**
|
|
13490
|
+
* EVM block number (uint64 as string)
|
|
13491
|
+
*/
|
|
13492
|
+
block_number: string;
|
|
13493
|
+
/**
|
|
13494
|
+
* Transaction index in a block (uint32 as string)
|
|
13495
|
+
*/
|
|
13496
|
+
transaction_index: string;
|
|
13497
|
+
/**
|
|
13498
|
+
* The log index of the fulfillment event in a block (uint32 as string)
|
|
13499
|
+
*/
|
|
13500
|
+
log_index: string;
|
|
13501
|
+
};
|
|
13502
|
+
|
|
13503
|
+
type Trade$1 = {
|
|
13504
|
+
buy: Array<Item>;
|
|
13505
|
+
buyer_address: string;
|
|
13506
|
+
buyer_fees: Array<Fee$1>;
|
|
13507
|
+
chain: Chain;
|
|
13508
|
+
order_id: string;
|
|
13509
|
+
blockchain_metadata: TradeBlockchainMetadata;
|
|
13510
|
+
/**
|
|
13511
|
+
* Time the on-chain trade event is indexed by the order book system
|
|
13512
|
+
*/
|
|
13513
|
+
indexed_at: string;
|
|
13514
|
+
/**
|
|
13515
|
+
* Global Trade identifier
|
|
13516
|
+
*/
|
|
13517
|
+
id: string;
|
|
13518
|
+
sell: Array<Item>;
|
|
13519
|
+
seller_address: string;
|
|
13520
|
+
maker_address: string;
|
|
13521
|
+
taker_address: string;
|
|
13522
|
+
};
|
|
13523
|
+
|
|
13524
|
+
type ListTradeResult = {
|
|
13525
|
+
page: Page$1;
|
|
13526
|
+
result: Array<Trade$1>;
|
|
13527
|
+
};
|
|
13528
|
+
|
|
13483
13529
|
/**
|
|
13484
13530
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
13485
13531
|
*/
|
|
@@ -13490,6 +13536,10 @@ type PageCursor = string;
|
|
|
13490
13536
|
*/
|
|
13491
13537
|
type PageSize = number;
|
|
13492
13538
|
|
|
13539
|
+
type TradeResult$1 = {
|
|
13540
|
+
result: Trade$1;
|
|
13541
|
+
};
|
|
13542
|
+
|
|
13493
13543
|
declare class OrdersService {
|
|
13494
13544
|
readonly httpRequest: BaseHttpRequest;
|
|
13495
13545
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -13569,6 +13619,45 @@ declare class OrdersService {
|
|
|
13569
13619
|
}): CancelablePromise<{
|
|
13570
13620
|
result: Array<FulfillmentDataResult>;
|
|
13571
13621
|
}>;
|
|
13622
|
+
/**
|
|
13623
|
+
* List all trades
|
|
13624
|
+
* List all trades
|
|
13625
|
+
* @returns ListTradeResult OK response.
|
|
13626
|
+
* @throws ApiError
|
|
13627
|
+
*/
|
|
13628
|
+
listTrades({ chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, }: {
|
|
13629
|
+
chainName: ChainName$1;
|
|
13630
|
+
accountAddress?: string;
|
|
13631
|
+
/**
|
|
13632
|
+
* Maximum number of trades to return per page
|
|
13633
|
+
*/
|
|
13634
|
+
pageSize?: PageSize;
|
|
13635
|
+
/**
|
|
13636
|
+
* Trade field to sort by
|
|
13637
|
+
*/
|
|
13638
|
+
sortBy?: 'created_at';
|
|
13639
|
+
/**
|
|
13640
|
+
* Ascending or descending direction for sort
|
|
13641
|
+
*/
|
|
13642
|
+
sortDirection?: 'asc' | 'desc';
|
|
13643
|
+
/**
|
|
13644
|
+
* Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
13645
|
+
*/
|
|
13646
|
+
pageCursor?: PageCursor;
|
|
13647
|
+
}): CancelablePromise<ListTradeResult>;
|
|
13648
|
+
/**
|
|
13649
|
+
* Get a single trade by ID
|
|
13650
|
+
* Get a single trade by ID
|
|
13651
|
+
* @returns TradeResult OK response.
|
|
13652
|
+
* @throws ApiError
|
|
13653
|
+
*/
|
|
13654
|
+
getTrade({ chainName, tradeId, }: {
|
|
13655
|
+
chainName: ChainName$1;
|
|
13656
|
+
/**
|
|
13657
|
+
* Global Trade identifier
|
|
13658
|
+
*/
|
|
13659
|
+
tradeId: string;
|
|
13660
|
+
}): CancelablePromise<TradeResult$1>;
|
|
13572
13661
|
}
|
|
13573
13662
|
|
|
13574
13663
|
interface ERC721Item$1 {
|
|
@@ -13607,6 +13696,7 @@ interface CreateListingParams {
|
|
|
13607
13696
|
makerFee?: FeeValue;
|
|
13608
13697
|
}
|
|
13609
13698
|
type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
|
|
13699
|
+
type ListTradesParams = Omit<Parameters<typeof OrdersService.prototype.listTrades>[0], 'chainName'>;
|
|
13610
13700
|
declare enum FeeType {
|
|
13611
13701
|
MAKER_MARKETPLACE = "MAKER_MARKETPLACE",
|
|
13612
13702
|
TAKER_MARKETPLACE = "TAKER_MARKETPLACE",
|
|
@@ -13707,6 +13797,50 @@ interface Page {
|
|
|
13707
13797
|
*/
|
|
13708
13798
|
nextCursor: string | null;
|
|
13709
13799
|
}
|
|
13800
|
+
interface Trade {
|
|
13801
|
+
id: string;
|
|
13802
|
+
orderId: string;
|
|
13803
|
+
chain: {
|
|
13804
|
+
id: string;
|
|
13805
|
+
name: string;
|
|
13806
|
+
};
|
|
13807
|
+
buy: (ERC20Item$1 | NativeItem$1)[];
|
|
13808
|
+
sell: ERC721Item$1[];
|
|
13809
|
+
buyerFees: Fee[];
|
|
13810
|
+
sellerAddress: string;
|
|
13811
|
+
buyerAddress: string;
|
|
13812
|
+
makerAddress: string;
|
|
13813
|
+
takerAddress: string;
|
|
13814
|
+
/**
|
|
13815
|
+
* Time the on-chain event was indexed by the Immutable order book service
|
|
13816
|
+
*/
|
|
13817
|
+
indexedAt: string;
|
|
13818
|
+
blockchainMetadata: {
|
|
13819
|
+
/**
|
|
13820
|
+
* The transaction hash of the trade
|
|
13821
|
+
*/
|
|
13822
|
+
transactionHash: string;
|
|
13823
|
+
/**
|
|
13824
|
+
* EVM block number (uint64 as string)
|
|
13825
|
+
*/
|
|
13826
|
+
blockNumber: string;
|
|
13827
|
+
/**
|
|
13828
|
+
* Transaction index in a block (uint32 as string)
|
|
13829
|
+
*/
|
|
13830
|
+
transactionIndex: string;
|
|
13831
|
+
/**
|
|
13832
|
+
* The log index of the fulfillment event in a block (uint32 as string)
|
|
13833
|
+
*/
|
|
13834
|
+
logIndex: string;
|
|
13835
|
+
};
|
|
13836
|
+
}
|
|
13837
|
+
interface TradeResult {
|
|
13838
|
+
result: Trade;
|
|
13839
|
+
}
|
|
13840
|
+
interface ListTradesResult {
|
|
13841
|
+
page: Page;
|
|
13842
|
+
result: Trade[];
|
|
13843
|
+
}
|
|
13710
13844
|
|
|
13711
13845
|
/**
|
|
13712
13846
|
* zkEVM orderbook SDK
|
|
@@ -13729,6 +13863,12 @@ declare class Orderbook {
|
|
|
13729
13863
|
* @return {ListingResult} The returned order result.
|
|
13730
13864
|
*/
|
|
13731
13865
|
getListing(listingId: string): Promise<ListingResult>;
|
|
13866
|
+
/**
|
|
13867
|
+
* Get a trade by ID
|
|
13868
|
+
* @param {string} tradeId - The tradeId to find.
|
|
13869
|
+
* @return {TradeResult} The returned order result.
|
|
13870
|
+
*/
|
|
13871
|
+
getTrade(tradeId: string): Promise<TradeResult>;
|
|
13732
13872
|
/**
|
|
13733
13873
|
* List orders. This method is used to get a list of orders filtered by conditions specified
|
|
13734
13874
|
* in the params object.
|
|
@@ -13736,6 +13876,13 @@ declare class Orderbook {
|
|
|
13736
13876
|
* @return {ListListingsResult} The paged orders.
|
|
13737
13877
|
*/
|
|
13738
13878
|
listListings(listOrderParams: ListListingsParams): Promise<ListListingsResult>;
|
|
13879
|
+
/**
|
|
13880
|
+
* List trades. This method is used to get a list of trades filtered by conditions specified
|
|
13881
|
+
* in the params object
|
|
13882
|
+
* @param {ListTradesParams} listTradesParams - Filtering, ordering and page parameters.
|
|
13883
|
+
* @return {ListTradesResult} The paged trades.
|
|
13884
|
+
*/
|
|
13885
|
+
listTrades(listTradesParams: ListTradesParams): Promise<ListTradesResult>;
|
|
13739
13886
|
/**
|
|
13740
13887
|
* Get required transactions and messages for signing prior to creating a listing
|
|
13741
13888
|
* through the createListing method
|
|
@@ -13786,6 +13933,8 @@ type orderbook_d_FeeValue = FeeValue;
|
|
|
13786
13933
|
type orderbook_d_FulfillOrderResponse = FulfillOrderResponse;
|
|
13787
13934
|
type orderbook_d_ListListingsParams = ListListingsParams;
|
|
13788
13935
|
type orderbook_d_ListListingsResult = ListListingsResult;
|
|
13936
|
+
type orderbook_d_ListTradesParams = ListTradesParams;
|
|
13937
|
+
type orderbook_d_ListTradesResult = ListTradesResult;
|
|
13789
13938
|
type orderbook_d_ListingResult = ListingResult;
|
|
13790
13939
|
type orderbook_d_Order = Order;
|
|
13791
13940
|
type orderbook_d_OrderStatus = OrderStatus;
|
|
@@ -13799,6 +13948,8 @@ type orderbook_d_RoyaltyInfo = RoyaltyInfo;
|
|
|
13799
13948
|
type orderbook_d_SignableAction = SignableAction;
|
|
13800
13949
|
type orderbook_d_SignablePurpose = SignablePurpose;
|
|
13801
13950
|
declare const orderbook_d_SignablePurpose: typeof SignablePurpose;
|
|
13951
|
+
type orderbook_d_Trade = Trade;
|
|
13952
|
+
type orderbook_d_TradeResult = TradeResult;
|
|
13802
13953
|
type orderbook_d_TransactionAction = TransactionAction;
|
|
13803
13954
|
type orderbook_d_TransactionBuilder = TransactionBuilder;
|
|
13804
13955
|
type orderbook_d_TransactionPurpose = TransactionPurpose;
|
|
@@ -13818,6 +13969,8 @@ declare namespace orderbook_d {
|
|
|
13818
13969
|
orderbook_d_FulfillOrderResponse as FulfillOrderResponse,
|
|
13819
13970
|
orderbook_d_ListListingsParams as ListListingsParams,
|
|
13820
13971
|
orderbook_d_ListListingsResult as ListListingsResult,
|
|
13972
|
+
orderbook_d_ListTradesParams as ListTradesParams,
|
|
13973
|
+
orderbook_d_ListTradesResult as ListTradesResult,
|
|
13821
13974
|
orderbook_d_ListingResult as ListingResult,
|
|
13822
13975
|
NativeItem$1 as NativeItem,
|
|
13823
13976
|
orderbook_d_Order as Order,
|
|
@@ -13829,6 +13982,8 @@ declare namespace orderbook_d {
|
|
|
13829
13982
|
orderbook_d_RoyaltyInfo as RoyaltyInfo,
|
|
13830
13983
|
orderbook_d_SignableAction as SignableAction,
|
|
13831
13984
|
orderbook_d_SignablePurpose as SignablePurpose,
|
|
13985
|
+
orderbook_d_Trade as Trade,
|
|
13986
|
+
orderbook_d_TradeResult as TradeResult,
|
|
13832
13987
|
orderbook_d_TransactionAction as TransactionAction,
|
|
13833
13988
|
orderbook_d_TransactionBuilder as TransactionBuilder,
|
|
13834
13989
|
orderbook_d_TransactionPurpose as TransactionPurpose,
|
|
@@ -14169,6 +14324,15 @@ type GasEstimateSwapTokenConfig = {
|
|
|
14169
14324
|
inAddress: string;
|
|
14170
14325
|
outAddress: string;
|
|
14171
14326
|
};
|
|
14327
|
+
/**
|
|
14328
|
+
* A type representing all the feature flags available.
|
|
14329
|
+
* @property {TokenInfo[] | undefined} allowed - List of allowed tokens for a given chain.
|
|
14330
|
+
* @property {boolean | undefined} blockscout - Feature flag to enable/disable blockscout integration.
|
|
14331
|
+
*/
|
|
14332
|
+
type ChainTokensConfig = {
|
|
14333
|
+
allowed?: TokenInfo[];
|
|
14334
|
+
blockscout?: boolean;
|
|
14335
|
+
};
|
|
14172
14336
|
/**
|
|
14173
14337
|
* Represents information about a network.
|
|
14174
14338
|
* @interface NetworkInfo
|
|
@@ -14479,6 +14643,7 @@ declare enum CheckoutErrorType {
|
|
|
14479
14643
|
DEFAULT_PROVIDER_ERROR = "DEFAULT_PROVIDER_ERROR",
|
|
14480
14644
|
CONNECT_PROVIDER_ERROR = "CONNECT_PROVIDER_ERROR",
|
|
14481
14645
|
GET_BALANCE_ERROR = "GET_BALANCE_ERROR",
|
|
14646
|
+
GET_INDEXER_BALANCE_ERROR = "GET_INDEXER_BALANCE_ERROR",
|
|
14482
14647
|
GET_ERC20_BALANCE_ERROR = "GET_ERC20_BALANCE_ERROR",
|
|
14483
14648
|
GET_ERC721_BALANCE_ERROR = "GET_ERC721_BALANCE_ERROR",
|
|
14484
14649
|
GET_NETWORK_INFO_ERROR = "GET_NETWORK_INFO_ERROR",
|
|
@@ -14494,6 +14659,7 @@ declare enum CheckoutErrorType {
|
|
|
14494
14659
|
UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
|
|
14495
14660
|
UNSUPPORTED_BALANCE_REQUIREMENT_ERROR = "UNSUPPORTED_BALANCE_REQUIREMENT_ERROR",
|
|
14496
14661
|
GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
|
|
14662
|
+
PREPARE_ORDER_LISTING_ERROR = "PREPARE_ORDER_LISTING_ERROR",
|
|
14497
14663
|
SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED",
|
|
14498
14664
|
GET_ERC20_ALLOWANCE_ERROR = "GET_ERC20_ALLOWANCE_ERROR",
|
|
14499
14665
|
GET_ERC721_ALLOWANCE_ERROR = "GET_ERC721_ALLOWANCE_ERROR"
|
|
@@ -14518,7 +14684,7 @@ type RemoteConfigParams = {
|
|
|
14518
14684
|
declare class RemoteConfigFetcher {
|
|
14519
14685
|
constructor(params: RemoteConfigParams);
|
|
14520
14686
|
getConfig(key?: keyof RemoteConfiguration): Promise<RemoteConfiguration | RemoteConfiguration[keyof RemoteConfiguration] | undefined>;
|
|
14521
|
-
|
|
14687
|
+
getTokensConfig(chainId: ChainId): Promise<ChainTokensConfig>;
|
|
14522
14688
|
}
|
|
14523
14689
|
declare class CheckoutConfiguration {
|
|
14524
14690
|
readonly isDevelopment: boolean;
|
|
@@ -14528,6 +14694,44 @@ declare class CheckoutConfiguration {
|
|
|
14528
14694
|
readonly networkMap: NetworkMap;
|
|
14529
14695
|
constructor(config: CheckoutModuleConfiguration);
|
|
14530
14696
|
}
|
|
14697
|
+
/**
|
|
14698
|
+
* Interface representing the parameters for {@link Checkout.sell}
|
|
14699
|
+
* @property {Web3Provider} provider - The provider to use for the sell.
|
|
14700
|
+
* @property {string} id - The ERC721 ID.
|
|
14701
|
+
* @property {string} collectionAddress - The contract address of the ERC721s collection.
|
|
14702
|
+
* @property {BuyToken} buyToken - The token to buy the item with.
|
|
14703
|
+
*/
|
|
14704
|
+
interface SellParams {
|
|
14705
|
+
provider: Web3Provider;
|
|
14706
|
+
id: string;
|
|
14707
|
+
collectionAddress: string;
|
|
14708
|
+
buyToken: BuyToken;
|
|
14709
|
+
}
|
|
14710
|
+
/**
|
|
14711
|
+
* Represents the token that the item can be bought with once listed for sale.
|
|
14712
|
+
* NativeBuyToken or ERC20BuyToken {@link Checkout.smartCheckout}.
|
|
14713
|
+
*/
|
|
14714
|
+
type BuyToken = NativeBuyToken | ERC20BuyToken;
|
|
14715
|
+
/**
|
|
14716
|
+
* Represents a native buy token
|
|
14717
|
+
* @property {ItemType} type - The type indicate this is a native token.
|
|
14718
|
+
* @property {BigNumber} amount - The amount of native token.
|
|
14719
|
+
*/
|
|
14720
|
+
type NativeBuyToken = {
|
|
14721
|
+
type: ItemType.NATIVE;
|
|
14722
|
+
amount: BigNumber;
|
|
14723
|
+
};
|
|
14724
|
+
/**
|
|
14725
|
+
* Represents a ERC20 buy token
|
|
14726
|
+
* @property {ItemType} type - The type indicate this is a ERC20 token.
|
|
14727
|
+
* @property {BigNumber} amount - The amount of native token.
|
|
14728
|
+
* @property {string} contractAddress - The contract address of the ERC20.
|
|
14729
|
+
*/
|
|
14730
|
+
type ERC20BuyToken = {
|
|
14731
|
+
type: ItemType.ERC20;
|
|
14732
|
+
amount: BigNumber;
|
|
14733
|
+
contractAddress: string;
|
|
14734
|
+
};
|
|
14531
14735
|
declare class Checkout {
|
|
14532
14736
|
readonly config: CheckoutConfiguration;
|
|
14533
14737
|
/**
|
|
@@ -14607,6 +14811,11 @@ declare class Checkout {
|
|
|
14607
14811
|
* @param {BuyParams} params - The parameters for the buy.
|
|
14608
14812
|
*/
|
|
14609
14813
|
buy(params: BuyParams): Promise<void>;
|
|
14814
|
+
/**
|
|
14815
|
+
* Determines the requirements for performing a sell.
|
|
14816
|
+
* @param {SellParams} params - The parameters for the sell.
|
|
14817
|
+
*/
|
|
14818
|
+
sell(params: SellParams): Promise<void>;
|
|
14610
14819
|
/**
|
|
14611
14820
|
* Determines the transaction requirements to complete a purchase.
|
|
14612
14821
|
* @params {SmartCheckoutParams} params - The parameters for smart checkout.
|
|
@@ -29823,9 +30032,9 @@ declare class ERC721 {
|
|
|
29823
30032
|
*/
|
|
29824
30033
|
ownerOf(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
29825
30034
|
/**
|
|
29826
|
-
* @returns the
|
|
30035
|
+
* @returns the operator allowlist as a string.
|
|
29827
30036
|
*/
|
|
29828
|
-
|
|
30037
|
+
operatorAllowlist(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
|
|
29829
30038
|
/**
|
|
29830
30039
|
* @returns the royalty information for a particular tokenId.
|
|
29831
30040
|
*/
|
|
@@ -30008,9 +30217,9 @@ declare class ERC721 {
|
|
|
30008
30217
|
from?: PromiseOrValue<string>;
|
|
30009
30218
|
}): Promise<PopulatedTransaction>;
|
|
30010
30219
|
/**
|
|
30011
|
-
* @returns a populated transaction for the
|
|
30220
|
+
* @returns a populated transaction for the setOperatorAllowlistRegistry contract function
|
|
30012
30221
|
*/
|
|
30013
|
-
|
|
30222
|
+
populateSetOperatorAllowlistRegistry(_operatorAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
|
|
30014
30223
|
from?: PromiseOrValue<string>;
|
|
30015
30224
|
}): Promise<PopulatedTransaction>;
|
|
30016
30225
|
}
|
|
@@ -30118,9 +30327,9 @@ declare class ERC721MintByID {
|
|
|
30118
30327
|
*/
|
|
30119
30328
|
ownerOf(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
30120
30329
|
/**
|
|
30121
|
-
* @returns the
|
|
30330
|
+
* @returns the operator allowlist as a string.
|
|
30122
30331
|
*/
|
|
30123
|
-
|
|
30332
|
+
operatorAllowlist(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
|
|
30124
30333
|
/**
|
|
30125
30334
|
* @returns the royalty information for a particular tokenId.
|
|
30126
30335
|
*/
|
|
@@ -30267,9 +30476,9 @@ declare class ERC721MintByID {
|
|
|
30267
30476
|
from?: PromiseOrValue<string>;
|
|
30268
30477
|
}): Promise<PopulatedTransaction>;
|
|
30269
30478
|
/**
|
|
30270
|
-
* @returns a populated transaction for the
|
|
30479
|
+
* @returns a populated transaction for the setOperatorAllowlistRegistry contract function
|
|
30271
30480
|
*/
|
|
30272
|
-
|
|
30481
|
+
populateSetOperatorAllowlistRegistry(_operatorAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
|
|
30273
30482
|
from?: PromiseOrValue<string>;
|
|
30274
30483
|
}): Promise<PopulatedTransaction>;
|
|
30275
30484
|
}
|