@imtbl/sdk 0.16.0 → 0.17.0
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.d.ts +151 -26
- package/dist/blockchain_data.js +350 -32
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +236 -3
- package/dist/checkout_sdk.js +1139 -309
- package/dist/checkout_widgets.d.ts +1 -0
- package/dist/erc721.d.ts +40 -0
- package/dist/erc721.js +173 -1
- package/dist/erc721_mint_by_id.d.ts +14 -0
- package/dist/erc721_mint_by_id.js +165 -19
- package/dist/index.browser.js +15 -15
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1963 -485
- package/dist/index.d.ts +594 -18
- package/dist/index.js +1805 -327
- package/dist/orderbook.d.ts +150 -4
- package/dist/orderbook.js +135 -0
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +273 -10
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="global.d.ts" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import {
|
|
3
|
+
import { ProviderConfiguration as ProviderConfiguration$1, ExchangeContracts } from 'config';
|
|
4
4
|
|
|
5
5
|
declare enum Environment {
|
|
6
6
|
PRODUCTION = "production",
|
|
@@ -32,6 +32,90 @@ declare namespace config_d {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Immutable zkEVM API
|
|
37
|
+
* Immutable Multi Rollup API
|
|
38
|
+
*
|
|
39
|
+
* The version of the OpenAPI document: 1.0.0
|
|
40
|
+
* Contact: support@immutable.com
|
|
41
|
+
*
|
|
42
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
43
|
+
* https://openapi-generator.tech
|
|
44
|
+
* Do not edit the class manually.
|
|
45
|
+
*/
|
|
46
|
+
interface ConfigurationParameters$1 {
|
|
47
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
48
|
+
username?: string;
|
|
49
|
+
password?: string;
|
|
50
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
51
|
+
basePath?: string;
|
|
52
|
+
baseOptions?: any;
|
|
53
|
+
formDataCtor?: new () => any;
|
|
54
|
+
}
|
|
55
|
+
declare class Configuration$1 {
|
|
56
|
+
/**
|
|
57
|
+
* parameter for apiKey security
|
|
58
|
+
* @param name security name
|
|
59
|
+
* @memberof Configuration
|
|
60
|
+
*/
|
|
61
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
62
|
+
/**
|
|
63
|
+
* parameter for basic security
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
username?: string;
|
|
69
|
+
/**
|
|
70
|
+
* parameter for basic security
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Configuration
|
|
74
|
+
*/
|
|
75
|
+
password?: string;
|
|
76
|
+
/**
|
|
77
|
+
* parameter for oauth2 security
|
|
78
|
+
* @param name security name
|
|
79
|
+
* @param scopes oauth2 scope
|
|
80
|
+
* @memberof Configuration
|
|
81
|
+
*/
|
|
82
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
83
|
+
/**
|
|
84
|
+
* override base path
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof Configuration
|
|
88
|
+
*/
|
|
89
|
+
basePath?: string;
|
|
90
|
+
/**
|
|
91
|
+
* base options for axios calls
|
|
92
|
+
*
|
|
93
|
+
* @type {any}
|
|
94
|
+
* @memberof Configuration
|
|
95
|
+
*/
|
|
96
|
+
baseOptions?: any;
|
|
97
|
+
/**
|
|
98
|
+
* The FormData constructor that will be used to create multipart form data
|
|
99
|
+
* requests. You can inject this here so that execution environments that
|
|
100
|
+
* do not support the FormData class can still run the generated client.
|
|
101
|
+
*
|
|
102
|
+
* @type {new () => FormData}
|
|
103
|
+
*/
|
|
104
|
+
formDataCtor?: new () => any;
|
|
105
|
+
constructor(param?: ConfigurationParameters$1);
|
|
106
|
+
/**
|
|
107
|
+
* Check if the given MIME is a JSON MIME.
|
|
108
|
+
* JSON MIME examples:
|
|
109
|
+
* application/json
|
|
110
|
+
* application/json; charset=UTF8
|
|
111
|
+
* APPLICATION/JSON
|
|
112
|
+
* application/vnd.company+json
|
|
113
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
114
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
115
|
+
*/
|
|
116
|
+
isJsonMime(mime: string): boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
35
119
|
/**
|
|
36
120
|
* Immutable zkEVM API
|
|
37
121
|
* Immutable Multi Rollup API
|
|
@@ -1689,6 +1773,37 @@ interface CollectionsApiListCollectionsRequest$1 {
|
|
|
1689
1773
|
*/
|
|
1690
1774
|
readonly pageSize?: number;
|
|
1691
1775
|
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Request parameters for listCollectionsByNFTOwner operation in CollectionsApi.
|
|
1778
|
+
* @export
|
|
1779
|
+
* @interface CollectionsApiListCollectionsByNFTOwnerRequest
|
|
1780
|
+
*/
|
|
1781
|
+
interface CollectionsApiListCollectionsByNFTOwnerRequest {
|
|
1782
|
+
/**
|
|
1783
|
+
* Account address
|
|
1784
|
+
* @type {string}
|
|
1785
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1786
|
+
*/
|
|
1787
|
+
readonly accountAddress: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* The name of chain
|
|
1790
|
+
* @type {string}
|
|
1791
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1792
|
+
*/
|
|
1793
|
+
readonly chainName: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1796
|
+
* @type {string}
|
|
1797
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1798
|
+
*/
|
|
1799
|
+
readonly pageCursor?: string;
|
|
1800
|
+
/**
|
|
1801
|
+
* Maximum number of items to return
|
|
1802
|
+
* @type {number}
|
|
1803
|
+
* @memberof CollectionsApiListCollectionsByNFTOwner
|
|
1804
|
+
*/
|
|
1805
|
+
readonly pageSize?: number;
|
|
1806
|
+
}
|
|
1692
1807
|
|
|
1693
1808
|
/**
|
|
1694
1809
|
* Request parameters for listNFTOwners operation in NftOwnersApi.
|
|
@@ -1886,6 +2001,18 @@ declare class APIError$1 extends Error {
|
|
|
1886
2001
|
constructor({ message, code, details, link, trace_id: traceId, }: OpenAPIError);
|
|
1887
2002
|
}
|
|
1888
2003
|
|
|
2004
|
+
interface APIConfigurationParams {
|
|
2005
|
+
basePath: string;
|
|
2006
|
+
headers?: Record<string, string>;
|
|
2007
|
+
}
|
|
2008
|
+
interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfigurationParams> {
|
|
2009
|
+
}
|
|
2010
|
+
declare class BlockchainDataConfiguration {
|
|
2011
|
+
readonly apiConfig: Configuration$1;
|
|
2012
|
+
readonly baseConfig: ImmutableConfiguration;
|
|
2013
|
+
constructor({ baseConfig, overrides }: BlockchainDataModuleConfiguration);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1889
2016
|
declare class BlockchainData {
|
|
1890
2017
|
readonly config: BlockchainDataConfiguration;
|
|
1891
2018
|
private readonly activities;
|
|
@@ -1894,7 +2021,7 @@ declare class BlockchainData {
|
|
|
1894
2021
|
private readonly nfts;
|
|
1895
2022
|
private readonly nftOwners;
|
|
1896
2023
|
private readonly tokens;
|
|
1897
|
-
constructor(moduleConfig: BlockchainDataModuleConfiguration
|
|
2024
|
+
constructor(moduleConfig: BlockchainDataModuleConfiguration);
|
|
1898
2025
|
/**
|
|
1899
2026
|
* List all activities
|
|
1900
2027
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -1923,6 +2050,13 @@ declare class BlockchainData {
|
|
|
1923
2050
|
* @throws {@link index.APIError}
|
|
1924
2051
|
*/
|
|
1925
2052
|
listCollections(request: CollectionsApiListCollectionsRequest$1): Promise<ListCollectionsResult>;
|
|
2053
|
+
/**
|
|
2054
|
+
* List collections by NFT owner
|
|
2055
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2056
|
+
* @returns a promise that resolves with a list of collections
|
|
2057
|
+
* @throws {@link index.APIError}
|
|
2058
|
+
*/
|
|
2059
|
+
listCollectionsByNFTOwner(request: CollectionsApiListCollectionsByNFTOwnerRequest): Promise<ListCollectionsResult>;
|
|
1926
2060
|
/**
|
|
1927
2061
|
* Get collection by contract address
|
|
1928
2062
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -1974,13 +2108,6 @@ declare class BlockchainData {
|
|
|
1974
2108
|
getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
|
|
1975
2109
|
}
|
|
1976
2110
|
|
|
1977
|
-
interface APIConfigurationParams {
|
|
1978
|
-
basePath: string;
|
|
1979
|
-
headers?: Record<string, string>;
|
|
1980
|
-
}
|
|
1981
|
-
interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfigurationParams> {
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
2111
|
type ActivityType = ActivityType$1;
|
|
1985
2112
|
|
|
1986
2113
|
type blockchain_data_d_ActivityType = ActivityType;
|
|
@@ -7804,7 +7931,7 @@ declare type TradeB = TradeSide;
|
|
|
7804
7931
|
* @export
|
|
7805
7932
|
* @interface Trade
|
|
7806
7933
|
*/
|
|
7807
|
-
interface Trade {
|
|
7934
|
+
interface Trade$2 {
|
|
7808
7935
|
/**
|
|
7809
7936
|
*
|
|
7810
7937
|
* @type {TradeA}
|
|
@@ -7872,7 +7999,7 @@ interface ListTradesResponse {
|
|
|
7872
7999
|
* @type {Array<Trade>}
|
|
7873
8000
|
* @memberof ListTradesResponse
|
|
7874
8001
|
*/
|
|
7875
|
-
'result': Array<Trade>;
|
|
8002
|
+
'result': Array<Trade$2>;
|
|
7876
8003
|
}
|
|
7877
8004
|
|
|
7878
8005
|
/**
|
|
@@ -11659,7 +11786,7 @@ declare class TradesApi extends BaseAPI {
|
|
|
11659
11786
|
* @throws {RequiredError}
|
|
11660
11787
|
* @memberof TradesApi
|
|
11661
11788
|
*/
|
|
11662
|
-
getTrade(requestParameters: TradesApiGetTradeRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Trade, any>>;
|
|
11789
|
+
getTrade(requestParameters: TradesApiGetTradeRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<Trade$2, any>>;
|
|
11663
11790
|
/**
|
|
11664
11791
|
* 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
11792
|
* @summary Get a list of trades
|
|
@@ -12651,7 +12778,7 @@ declare class ImmutableXClient {
|
|
|
12651
12778
|
* @returns a promise that resolves with the requested Trade
|
|
12652
12779
|
* @throws {@link index.IMXError}
|
|
12653
12780
|
*/
|
|
12654
|
-
getTrade(request: TradesApiGetTradeRequest): Promise<Trade>;
|
|
12781
|
+
getTrade(request: TradesApiGetTradeRequest): Promise<Trade$2>;
|
|
12655
12782
|
/**
|
|
12656
12783
|
* Get a list of Trades
|
|
12657
12784
|
* @param request - optional object containing the parameters to be provided in the API request
|
|
@@ -13075,6 +13202,7 @@ declare class Passport {
|
|
|
13075
13202
|
getUserInfoDeviceFlow(): Promise<UserProfile | undefined>;
|
|
13076
13203
|
getIdToken(): Promise<string | undefined>;
|
|
13077
13204
|
getAccessToken(): Promise<string | undefined>;
|
|
13205
|
+
getLinkedAddresses(): Promise<string[]>;
|
|
13078
13206
|
}
|
|
13079
13207
|
|
|
13080
13208
|
type passport_d_AccountsChangedEvent = AccountsChangedEvent;
|
|
@@ -13356,9 +13484,6 @@ type CreateListingRequestBody = {
|
|
|
13356
13484
|
* Buy item for listing should either be NATIVE or ERC20 item
|
|
13357
13485
|
*/
|
|
13358
13486
|
buy: Array<Item>;
|
|
13359
|
-
/**
|
|
13360
|
-
* The maker marketplace fee
|
|
13361
|
-
*/
|
|
13362
13487
|
fee?: Fee$1;
|
|
13363
13488
|
/**
|
|
13364
13489
|
* Time after which the Order is considered expired
|
|
@@ -13480,6 +13605,54 @@ type ListListingsResult$1 = {
|
|
|
13480
13605
|
result: Array<Order$1>;
|
|
13481
13606
|
};
|
|
13482
13607
|
|
|
13608
|
+
/**
|
|
13609
|
+
* The metadata related to the transaction in which the activity occurred
|
|
13610
|
+
*/
|
|
13611
|
+
type TradeBlockchainMetadata = {
|
|
13612
|
+
/**
|
|
13613
|
+
* The transaction hash of the trade
|
|
13614
|
+
*/
|
|
13615
|
+
transaction_hash: string;
|
|
13616
|
+
/**
|
|
13617
|
+
* EVM block number (uint64 as string)
|
|
13618
|
+
*/
|
|
13619
|
+
block_number: string;
|
|
13620
|
+
/**
|
|
13621
|
+
* Transaction index in a block (uint32 as string)
|
|
13622
|
+
*/
|
|
13623
|
+
transaction_index: string;
|
|
13624
|
+
/**
|
|
13625
|
+
* The log index of the fulfillment event in a block (uint32 as string)
|
|
13626
|
+
*/
|
|
13627
|
+
log_index: string;
|
|
13628
|
+
};
|
|
13629
|
+
|
|
13630
|
+
type Trade$1 = {
|
|
13631
|
+
buy: Array<Item>;
|
|
13632
|
+
buyer_address: string;
|
|
13633
|
+
buyer_fees: Array<Fee$1>;
|
|
13634
|
+
chain: Chain;
|
|
13635
|
+
order_id: string;
|
|
13636
|
+
blockchain_metadata: TradeBlockchainMetadata;
|
|
13637
|
+
/**
|
|
13638
|
+
* Time the on-chain trade event is indexed by the order book system
|
|
13639
|
+
*/
|
|
13640
|
+
indexed_at: string;
|
|
13641
|
+
/**
|
|
13642
|
+
* Global Trade identifier
|
|
13643
|
+
*/
|
|
13644
|
+
id: string;
|
|
13645
|
+
sell: Array<Item>;
|
|
13646
|
+
seller_address: string;
|
|
13647
|
+
maker_address: string;
|
|
13648
|
+
taker_address: string;
|
|
13649
|
+
};
|
|
13650
|
+
|
|
13651
|
+
type ListTradeResult = {
|
|
13652
|
+
page: Page$1;
|
|
13653
|
+
result: Array<Trade$1>;
|
|
13654
|
+
};
|
|
13655
|
+
|
|
13483
13656
|
/**
|
|
13484
13657
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
13485
13658
|
*/
|
|
@@ -13490,6 +13663,10 @@ type PageCursor = string;
|
|
|
13490
13663
|
*/
|
|
13491
13664
|
type PageSize = number;
|
|
13492
13665
|
|
|
13666
|
+
type TradeResult$1 = {
|
|
13667
|
+
result: Trade$1;
|
|
13668
|
+
};
|
|
13669
|
+
|
|
13493
13670
|
declare class OrdersService {
|
|
13494
13671
|
readonly httpRequest: BaseHttpRequest;
|
|
13495
13672
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -13569,6 +13746,45 @@ declare class OrdersService {
|
|
|
13569
13746
|
}): CancelablePromise<{
|
|
13570
13747
|
result: Array<FulfillmentDataResult>;
|
|
13571
13748
|
}>;
|
|
13749
|
+
/**
|
|
13750
|
+
* List all trades
|
|
13751
|
+
* List all trades
|
|
13752
|
+
* @returns ListTradeResult OK response.
|
|
13753
|
+
* @throws ApiError
|
|
13754
|
+
*/
|
|
13755
|
+
listTrades({ chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, }: {
|
|
13756
|
+
chainName: ChainName$1;
|
|
13757
|
+
accountAddress?: string;
|
|
13758
|
+
/**
|
|
13759
|
+
* Maximum number of trades to return per page
|
|
13760
|
+
*/
|
|
13761
|
+
pageSize?: PageSize;
|
|
13762
|
+
/**
|
|
13763
|
+
* Trade field to sort by
|
|
13764
|
+
*/
|
|
13765
|
+
sortBy?: 'created_at';
|
|
13766
|
+
/**
|
|
13767
|
+
* Ascending or descending direction for sort
|
|
13768
|
+
*/
|
|
13769
|
+
sortDirection?: 'asc' | 'desc';
|
|
13770
|
+
/**
|
|
13771
|
+
* Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
13772
|
+
*/
|
|
13773
|
+
pageCursor?: PageCursor;
|
|
13774
|
+
}): CancelablePromise<ListTradeResult>;
|
|
13775
|
+
/**
|
|
13776
|
+
* Get a single trade by ID
|
|
13777
|
+
* Get a single trade by ID
|
|
13778
|
+
* @returns TradeResult OK response.
|
|
13779
|
+
* @throws ApiError
|
|
13780
|
+
*/
|
|
13781
|
+
getTrade({ chainName, tradeId, }: {
|
|
13782
|
+
chainName: ChainName$1;
|
|
13783
|
+
/**
|
|
13784
|
+
* Global Trade identifier
|
|
13785
|
+
*/
|
|
13786
|
+
tradeId: string;
|
|
13787
|
+
}): CancelablePromise<TradeResult$1>;
|
|
13572
13788
|
}
|
|
13573
13789
|
|
|
13574
13790
|
interface ERC721Item$1 {
|
|
@@ -13607,6 +13823,7 @@ interface CreateListingParams {
|
|
|
13607
13823
|
makerFee?: FeeValue;
|
|
13608
13824
|
}
|
|
13609
13825
|
type ListListingsParams = Omit<Parameters<typeof OrdersService.prototype.listListings>[0], 'chainName'>;
|
|
13826
|
+
type ListTradesParams = Omit<Parameters<typeof OrdersService.prototype.listTrades>[0], 'chainName'>;
|
|
13610
13827
|
declare enum FeeType {
|
|
13611
13828
|
MAKER_MARKETPLACE = "MAKER_MARKETPLACE",
|
|
13612
13829
|
TAKER_MARKETPLACE = "TAKER_MARKETPLACE",
|
|
@@ -13707,6 +13924,50 @@ interface Page {
|
|
|
13707
13924
|
*/
|
|
13708
13925
|
nextCursor: string | null;
|
|
13709
13926
|
}
|
|
13927
|
+
interface Trade {
|
|
13928
|
+
id: string;
|
|
13929
|
+
orderId: string;
|
|
13930
|
+
chain: {
|
|
13931
|
+
id: string;
|
|
13932
|
+
name: string;
|
|
13933
|
+
};
|
|
13934
|
+
buy: (ERC20Item$1 | NativeItem$1)[];
|
|
13935
|
+
sell: ERC721Item$1[];
|
|
13936
|
+
buyerFees: Fee[];
|
|
13937
|
+
sellerAddress: string;
|
|
13938
|
+
buyerAddress: string;
|
|
13939
|
+
makerAddress: string;
|
|
13940
|
+
takerAddress: string;
|
|
13941
|
+
/**
|
|
13942
|
+
* Time the on-chain event was indexed by the Immutable order book service
|
|
13943
|
+
*/
|
|
13944
|
+
indexedAt: string;
|
|
13945
|
+
blockchainMetadata: {
|
|
13946
|
+
/**
|
|
13947
|
+
* The transaction hash of the trade
|
|
13948
|
+
*/
|
|
13949
|
+
transactionHash: string;
|
|
13950
|
+
/**
|
|
13951
|
+
* EVM block number (uint64 as string)
|
|
13952
|
+
*/
|
|
13953
|
+
blockNumber: string;
|
|
13954
|
+
/**
|
|
13955
|
+
* Transaction index in a block (uint32 as string)
|
|
13956
|
+
*/
|
|
13957
|
+
transactionIndex: string;
|
|
13958
|
+
/**
|
|
13959
|
+
* The log index of the fulfillment event in a block (uint32 as string)
|
|
13960
|
+
*/
|
|
13961
|
+
logIndex: string;
|
|
13962
|
+
};
|
|
13963
|
+
}
|
|
13964
|
+
interface TradeResult {
|
|
13965
|
+
result: Trade;
|
|
13966
|
+
}
|
|
13967
|
+
interface ListTradesResult {
|
|
13968
|
+
page: Page;
|
|
13969
|
+
result: Trade[];
|
|
13970
|
+
}
|
|
13710
13971
|
|
|
13711
13972
|
/**
|
|
13712
13973
|
* zkEVM orderbook SDK
|
|
@@ -13729,6 +13990,12 @@ declare class Orderbook {
|
|
|
13729
13990
|
* @return {ListingResult} The returned order result.
|
|
13730
13991
|
*/
|
|
13731
13992
|
getListing(listingId: string): Promise<ListingResult>;
|
|
13993
|
+
/**
|
|
13994
|
+
* Get a trade by ID
|
|
13995
|
+
* @param {string} tradeId - The tradeId to find.
|
|
13996
|
+
* @return {TradeResult} The returned order result.
|
|
13997
|
+
*/
|
|
13998
|
+
getTrade(tradeId: string): Promise<TradeResult>;
|
|
13732
13999
|
/**
|
|
13733
14000
|
* List orders. This method is used to get a list of orders filtered by conditions specified
|
|
13734
14001
|
* in the params object.
|
|
@@ -13736,6 +14003,13 @@ declare class Orderbook {
|
|
|
13736
14003
|
* @return {ListListingsResult} The paged orders.
|
|
13737
14004
|
*/
|
|
13738
14005
|
listListings(listOrderParams: ListListingsParams): Promise<ListListingsResult>;
|
|
14006
|
+
/**
|
|
14007
|
+
* List trades. This method is used to get a list of trades filtered by conditions specified
|
|
14008
|
+
* in the params object
|
|
14009
|
+
* @param {ListTradesParams} listTradesParams - Filtering, ordering and page parameters.
|
|
14010
|
+
* @return {ListTradesResult} The paged trades.
|
|
14011
|
+
*/
|
|
14012
|
+
listTrades(listTradesParams: ListTradesParams): Promise<ListTradesResult>;
|
|
13739
14013
|
/**
|
|
13740
14014
|
* Get required transactions and messages for signing prior to creating a listing
|
|
13741
14015
|
* through the createListing method
|
|
@@ -13786,6 +14060,8 @@ type orderbook_d_FeeValue = FeeValue;
|
|
|
13786
14060
|
type orderbook_d_FulfillOrderResponse = FulfillOrderResponse;
|
|
13787
14061
|
type orderbook_d_ListListingsParams = ListListingsParams;
|
|
13788
14062
|
type orderbook_d_ListListingsResult = ListListingsResult;
|
|
14063
|
+
type orderbook_d_ListTradesParams = ListTradesParams;
|
|
14064
|
+
type orderbook_d_ListTradesResult = ListTradesResult;
|
|
13789
14065
|
type orderbook_d_ListingResult = ListingResult;
|
|
13790
14066
|
type orderbook_d_Order = Order;
|
|
13791
14067
|
type orderbook_d_OrderStatus = OrderStatus;
|
|
@@ -13799,6 +14075,8 @@ type orderbook_d_RoyaltyInfo = RoyaltyInfo;
|
|
|
13799
14075
|
type orderbook_d_SignableAction = SignableAction;
|
|
13800
14076
|
type orderbook_d_SignablePurpose = SignablePurpose;
|
|
13801
14077
|
declare const orderbook_d_SignablePurpose: typeof SignablePurpose;
|
|
14078
|
+
type orderbook_d_Trade = Trade;
|
|
14079
|
+
type orderbook_d_TradeResult = TradeResult;
|
|
13802
14080
|
type orderbook_d_TransactionAction = TransactionAction;
|
|
13803
14081
|
type orderbook_d_TransactionBuilder = TransactionBuilder;
|
|
13804
14082
|
type orderbook_d_TransactionPurpose = TransactionPurpose;
|
|
@@ -13818,6 +14096,8 @@ declare namespace orderbook_d {
|
|
|
13818
14096
|
orderbook_d_FulfillOrderResponse as FulfillOrderResponse,
|
|
13819
14097
|
orderbook_d_ListListingsParams as ListListingsParams,
|
|
13820
14098
|
orderbook_d_ListListingsResult as ListListingsResult,
|
|
14099
|
+
orderbook_d_ListTradesParams as ListTradesParams,
|
|
14100
|
+
orderbook_d_ListTradesResult as ListTradesResult,
|
|
13821
14101
|
orderbook_d_ListingResult as ListingResult,
|
|
13822
14102
|
NativeItem$1 as NativeItem,
|
|
13823
14103
|
orderbook_d_Order as Order,
|
|
@@ -13829,6 +14109,8 @@ declare namespace orderbook_d {
|
|
|
13829
14109
|
orderbook_d_RoyaltyInfo as RoyaltyInfo,
|
|
13830
14110
|
orderbook_d_SignableAction as SignableAction,
|
|
13831
14111
|
orderbook_d_SignablePurpose as SignablePurpose,
|
|
14112
|
+
orderbook_d_Trade as Trade,
|
|
14113
|
+
orderbook_d_TradeResult as TradeResult,
|
|
13832
14114
|
orderbook_d_TransactionAction as TransactionAction,
|
|
13833
14115
|
orderbook_d_TransactionBuilder as TransactionBuilder,
|
|
13834
14116
|
orderbook_d_TransactionPurpose as TransactionPurpose,
|
|
@@ -14096,6 +14378,68 @@ type ERC20Gas = {
|
|
|
14096
14378
|
contractAddress: string;
|
|
14097
14379
|
limit: BigNumber;
|
|
14098
14380
|
};
|
|
14381
|
+
/**
|
|
14382
|
+
* Represents the result of {@link Checkout.smartCheckout}.
|
|
14383
|
+
* @property {boolean} sufficient - If the user address has sufficient funds to cover the transaction.
|
|
14384
|
+
* @property {TransactionRequirement[]} transactionRequirements - The transaction requirements.
|
|
14385
|
+
*/
|
|
14386
|
+
interface SmartCheckoutResult {
|
|
14387
|
+
sufficient: boolean;
|
|
14388
|
+
transactionRequirements: TransactionRequirement[];
|
|
14389
|
+
}
|
|
14390
|
+
/**
|
|
14391
|
+
* Represents the transaction requirement for a transaction.
|
|
14392
|
+
* @property {ItemType} type - The type of the transaction requirement.
|
|
14393
|
+
* @property {boolean} sufficient - If the user address has sufficient funds to cover the transaction.
|
|
14394
|
+
* @property {TransactionRequirementItem} required - The required item balance.
|
|
14395
|
+
* @property {TransactionRequirementItem} current - The current item balance.
|
|
14396
|
+
* @property {TransactionRequirementDelta} delta - The delta between the required and current balances.
|
|
14397
|
+
*/
|
|
14398
|
+
type TransactionRequirement = {
|
|
14399
|
+
type: ItemType;
|
|
14400
|
+
sufficient: boolean;
|
|
14401
|
+
required: ItemBalance;
|
|
14402
|
+
current: ItemBalance;
|
|
14403
|
+
delta: BalanceDelta;
|
|
14404
|
+
};
|
|
14405
|
+
/**
|
|
14406
|
+
* Represents the balance for either a native or ERC20 token.
|
|
14407
|
+
* @property {BigNumber} balance - The balance of the item.
|
|
14408
|
+
* @property {string} formattedBalance - The formatted balance of the item.
|
|
14409
|
+
* @property {TokenInfo} token - The token info of the item.
|
|
14410
|
+
*/
|
|
14411
|
+
type TokenBalance = {
|
|
14412
|
+
type: ItemType.NATIVE | ItemType.ERC20;
|
|
14413
|
+
balance: BigNumber;
|
|
14414
|
+
formattedBalance: string;
|
|
14415
|
+
token: TokenInfo;
|
|
14416
|
+
};
|
|
14417
|
+
/**
|
|
14418
|
+
* Represents the balance for an ERC20.
|
|
14419
|
+
* @property {BigNumber} balance - The balance of the item.
|
|
14420
|
+
* @property {string} formattedBalance - The formatted balance of the item.
|
|
14421
|
+
* @property {TokenInfo} token - The token info of the item.
|
|
14422
|
+
*/
|
|
14423
|
+
interface ERC721Balance {
|
|
14424
|
+
type: ItemType.ERC721;
|
|
14425
|
+
balance: BigNumber;
|
|
14426
|
+
formattedBalance: string;
|
|
14427
|
+
contractAddress: string;
|
|
14428
|
+
id: string;
|
|
14429
|
+
}
|
|
14430
|
+
/**
|
|
14431
|
+
* Type representing the balance of an item.
|
|
14432
|
+
*/
|
|
14433
|
+
type ItemBalance = ERC721Balance | TokenBalance;
|
|
14434
|
+
/**
|
|
14435
|
+
* Represents the delta between two balances.
|
|
14436
|
+
* @property {BigNumber} balance - The delta of the balance.
|
|
14437
|
+
* @property {string} formattedBalance - The formatted balance of the delta.
|
|
14438
|
+
*/
|
|
14439
|
+
type BalanceDelta = {
|
|
14440
|
+
balance: BigNumber;
|
|
14441
|
+
formattedBalance: string;
|
|
14442
|
+
};
|
|
14099
14443
|
/**
|
|
14100
14444
|
* Interface representing the parameters for {@link Checkout.buy}
|
|
14101
14445
|
* @property {Web3Provider} provider - The provider to use for the buy.
|
|
@@ -14105,9 +14449,65 @@ interface BuyParams {
|
|
|
14105
14449
|
provider: Web3Provider;
|
|
14106
14450
|
orderId: string;
|
|
14107
14451
|
}
|
|
14452
|
+
/**
|
|
14453
|
+
* Interface representing the result of the buy
|
|
14454
|
+
* @property {SmartCheckoutResult} smartCheckoutResult - The result of smart checkout.
|
|
14455
|
+
* @property {string} orderId - The order ID.
|
|
14456
|
+
* @property {BuyStatus} status - The status of the buy, present when smart checkout balances are sufficient
|
|
14457
|
+
* and the transactions were executed
|
|
14458
|
+
*/
|
|
14459
|
+
type BuyResult = {
|
|
14460
|
+
smartCheckoutResult: SmartCheckoutResult;
|
|
14461
|
+
orderId: string;
|
|
14462
|
+
status?: BuyStatus;
|
|
14463
|
+
};
|
|
14464
|
+
/**
|
|
14465
|
+
* Represents the status of the transaction for the Buy
|
|
14466
|
+
*/
|
|
14467
|
+
type BuyStatus = BuySuccessStatus | BuyFailedStatus;
|
|
14468
|
+
/**
|
|
14469
|
+
* Represents the status of a successful Buy
|
|
14470
|
+
* @property {string} type - The success buy status type.
|
|
14471
|
+
*/
|
|
14472
|
+
interface BuySuccessStatus {
|
|
14473
|
+
type: BuyStatusType.SUCCESS;
|
|
14474
|
+
}
|
|
14475
|
+
/**
|
|
14476
|
+
* Represents the status of a failed Buy
|
|
14477
|
+
* @property {string} type - The failed buy status type.
|
|
14478
|
+
* @property {string} transactionHash - The transaction hash of the failed transaction.
|
|
14479
|
+
* @property {string} reason - The reason for the failed transaction.
|
|
14480
|
+
*/
|
|
14481
|
+
interface BuyFailedStatus {
|
|
14482
|
+
type: BuyStatusType.FAILED;
|
|
14483
|
+
transactionHash: string;
|
|
14484
|
+
reason: string;
|
|
14485
|
+
}
|
|
14486
|
+
/**
|
|
14487
|
+
* A type representing the status of the transaction for the Buy
|
|
14488
|
+
* @enum {string}
|
|
14489
|
+
* @property {string} SUCCESS - All the transactions were successful.
|
|
14490
|
+
* @property {string} FAILED - At least one of the transactions failed.
|
|
14491
|
+
*/
|
|
14492
|
+
declare enum BuyStatusType {
|
|
14493
|
+
SUCCESS = "SUCCESS",
|
|
14494
|
+
FAILED = "FAILED"
|
|
14495
|
+
}
|
|
14496
|
+
/**
|
|
14497
|
+
* Interface representing the parameters for {@link Checkout.cancel}
|
|
14498
|
+
* @property {Web3Provider} provider - The provider to use for the cancel.
|
|
14499
|
+
* @property {string} orderId - The order ID.
|
|
14500
|
+
*/
|
|
14501
|
+
interface CancelParams {
|
|
14502
|
+
provider: Web3Provider;
|
|
14503
|
+
orderId: string;
|
|
14504
|
+
}
|
|
14108
14505
|
interface CheckoutOverrides {
|
|
14109
14506
|
}
|
|
14110
14507
|
interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverrides> {
|
|
14508
|
+
isOnRampEnabled?: boolean;
|
|
14509
|
+
isSwapEnabled?: boolean;
|
|
14510
|
+
isBridgeEnabled?: boolean;
|
|
14111
14511
|
}
|
|
14112
14512
|
/**
|
|
14113
14513
|
* A type representing various remotely defined configurations which are
|
|
@@ -14169,6 +14569,15 @@ type GasEstimateSwapTokenConfig = {
|
|
|
14169
14569
|
inAddress: string;
|
|
14170
14570
|
outAddress: string;
|
|
14171
14571
|
};
|
|
14572
|
+
/**
|
|
14573
|
+
* A type representing all the feature flags available.
|
|
14574
|
+
* @property {TokenInfo[] | undefined} allowed - List of allowed tokens for a given chain.
|
|
14575
|
+
* @property {boolean | undefined} blockscout - Feature flag to enable/disable blockscout integration.
|
|
14576
|
+
*/
|
|
14577
|
+
type ChainTokensConfig = {
|
|
14578
|
+
allowed?: TokenInfo[];
|
|
14579
|
+
blockscout?: boolean;
|
|
14580
|
+
};
|
|
14172
14581
|
/**
|
|
14173
14582
|
* Represents information about a network.
|
|
14174
14583
|
* @interface NetworkInfo
|
|
@@ -14333,6 +14742,91 @@ declare enum NetworkFilterTypes {
|
|
|
14333
14742
|
interface NetworkFilter {
|
|
14334
14743
|
chainId: ChainId;
|
|
14335
14744
|
}
|
|
14745
|
+
/**
|
|
14746
|
+
* Interface representing the parameters for {@link Checkout.sell}
|
|
14747
|
+
* @property {Web3Provider} provider - The provider to use for the sell.
|
|
14748
|
+
* @property {string} id - The ERC721 ID.
|
|
14749
|
+
* @property {string} collectionAddress - The contract address of the ERC721s collection.
|
|
14750
|
+
* @property {BuyToken} buyToken - The token to buy the item with.
|
|
14751
|
+
*/
|
|
14752
|
+
interface SellParams {
|
|
14753
|
+
provider: Web3Provider;
|
|
14754
|
+
id: string;
|
|
14755
|
+
collectionAddress: string;
|
|
14756
|
+
buyToken: BuyToken;
|
|
14757
|
+
}
|
|
14758
|
+
/**
|
|
14759
|
+
* Interface representing the result of the sell
|
|
14760
|
+
* @property {string} id - The ERC721 ID.
|
|
14761
|
+
* @property {string} collectionAddress - The contract address of the ERC721s collection.
|
|
14762
|
+
* @property {SmartCheckoutResult} smartCheckoutResult - The result of the smart checkout.
|
|
14763
|
+
* @property {SellStatus} status - The status of the sell, present when smart checkout balances are sufficient
|
|
14764
|
+
*/
|
|
14765
|
+
type SellResult = {
|
|
14766
|
+
id: string;
|
|
14767
|
+
collectionAddress: string;
|
|
14768
|
+
smartCheckoutResult: SmartCheckoutResult;
|
|
14769
|
+
status?: SellStatus;
|
|
14770
|
+
};
|
|
14771
|
+
/**
|
|
14772
|
+
* Represents the status of the transaction for the Sell
|
|
14773
|
+
*/
|
|
14774
|
+
type SellStatus = SellSuccessStatus | SellFailedStatus;
|
|
14775
|
+
/**
|
|
14776
|
+
* Represents the status of a successful Sell
|
|
14777
|
+
* @property {string} type - The success sell status type.
|
|
14778
|
+
* @property {string} orderId - The order ID of the listing.
|
|
14779
|
+
*/
|
|
14780
|
+
interface SellSuccessStatus {
|
|
14781
|
+
type: SellStatusType.SUCCESS;
|
|
14782
|
+
orderId: string;
|
|
14783
|
+
}
|
|
14784
|
+
/**
|
|
14785
|
+
* Represents the status of a failed Sell
|
|
14786
|
+
* @property {string} type - The failed sell status type.
|
|
14787
|
+
* @property {string} transactionHash - The transaction hash of the failed transaction.
|
|
14788
|
+
* @property {string} reason - The reason for the failed transaction.
|
|
14789
|
+
*/
|
|
14790
|
+
interface SellFailedStatus {
|
|
14791
|
+
type: SellStatusType.FAILED;
|
|
14792
|
+
transactionHash: string;
|
|
14793
|
+
reason: string;
|
|
14794
|
+
}
|
|
14795
|
+
/**
|
|
14796
|
+
* A type representing the status of the transaction for the Sell
|
|
14797
|
+
* @enum {string}
|
|
14798
|
+
* @property {string} SUCCESS - All the transactions were successful.
|
|
14799
|
+
* @property {string} FAILED - At least one of the transactions failed.
|
|
14800
|
+
*/
|
|
14801
|
+
declare enum SellStatusType {
|
|
14802
|
+
SUCCESS = "SUCCESS",
|
|
14803
|
+
FAILED = "FAILED"
|
|
14804
|
+
}
|
|
14805
|
+
/**
|
|
14806
|
+
* Represents the token that the item can be bought with once listed for sale.
|
|
14807
|
+
* NativeBuyToken or ERC20BuyToken {@link Checkout.smartCheckout}.
|
|
14808
|
+
*/
|
|
14809
|
+
type BuyToken = NativeBuyToken | ERC20BuyToken;
|
|
14810
|
+
/**
|
|
14811
|
+
* Represents a native buy token
|
|
14812
|
+
* @property {ItemType} type - The type indicate this is a native token.
|
|
14813
|
+
* @property {BigNumber} amount - The amount of native token.
|
|
14814
|
+
*/
|
|
14815
|
+
type NativeBuyToken = {
|
|
14816
|
+
type: ItemType.NATIVE;
|
|
14817
|
+
amount: BigNumber;
|
|
14818
|
+
};
|
|
14819
|
+
/**
|
|
14820
|
+
* Represents a ERC20 buy token
|
|
14821
|
+
* @property {ItemType} type - The type indicate this is a ERC20 token.
|
|
14822
|
+
* @property {BigNumber} amount - The amount of native token.
|
|
14823
|
+
* @property {string} contractAddress - The contract address of the ERC20.
|
|
14824
|
+
*/
|
|
14825
|
+
type ERC20BuyToken = {
|
|
14826
|
+
type: ItemType.ERC20;
|
|
14827
|
+
amount: BigNumber;
|
|
14828
|
+
contractAddress: string;
|
|
14829
|
+
};
|
|
14336
14830
|
/**
|
|
14337
14831
|
* Interface representing the parameters for {@link Checkout.getTokenAllowList}.
|
|
14338
14832
|
* @property {TokenFilterTypes} type - The type of token to retrieve.
|
|
@@ -14479,6 +14973,7 @@ declare enum CheckoutErrorType {
|
|
|
14479
14973
|
DEFAULT_PROVIDER_ERROR = "DEFAULT_PROVIDER_ERROR",
|
|
14480
14974
|
CONNECT_PROVIDER_ERROR = "CONNECT_PROVIDER_ERROR",
|
|
14481
14975
|
GET_BALANCE_ERROR = "GET_BALANCE_ERROR",
|
|
14976
|
+
GET_INDEXER_BALANCE_ERROR = "GET_INDEXER_BALANCE_ERROR",
|
|
14482
14977
|
GET_ERC20_BALANCE_ERROR = "GET_ERC20_BALANCE_ERROR",
|
|
14483
14978
|
GET_ERC721_BALANCE_ERROR = "GET_ERC721_BALANCE_ERROR",
|
|
14484
14979
|
GET_NETWORK_INFO_ERROR = "GET_NETWORK_INFO_ERROR",
|
|
@@ -14494,9 +14989,15 @@ declare enum CheckoutErrorType {
|
|
|
14494
14989
|
UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
|
|
14495
14990
|
UNSUPPORTED_BALANCE_REQUIREMENT_ERROR = "UNSUPPORTED_BALANCE_REQUIREMENT_ERROR",
|
|
14496
14991
|
GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
|
|
14992
|
+
CANCEL_ORDER_LISTING_ERROR = "CANCEL_ORDER_LISTING_ERROR",
|
|
14993
|
+
PREPARE_ORDER_LISTING_ERROR = "PREPARE_ORDER_LISTING_ERROR",
|
|
14994
|
+
CREATE_ORDER_LISTING_ERROR = "CREATE_ORDER_LISTING_ERROR",
|
|
14497
14995
|
SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED",
|
|
14498
14996
|
GET_ERC20_ALLOWANCE_ERROR = "GET_ERC20_ALLOWANCE_ERROR",
|
|
14499
|
-
GET_ERC721_ALLOWANCE_ERROR = "GET_ERC721_ALLOWANCE_ERROR"
|
|
14997
|
+
GET_ERC721_ALLOWANCE_ERROR = "GET_ERC721_ALLOWANCE_ERROR",
|
|
14998
|
+
EXECUTE_APPROVAL_TRANSACTION_ERROR = "EXECUTE_APPROVAL_TRANSACTION_ERROR",
|
|
14999
|
+
EXECUTE_FULFILMENT_TRANSACTION_ERROR = "EXECUTE_FULFILMENT_TRANSACTION_ERROR",
|
|
15000
|
+
SIGN_MESSAGE_ERROR = "SIGN_MESSAGE_ERROR"
|
|
14500
15001
|
}
|
|
14501
15002
|
/**
|
|
14502
15003
|
* Represents an error object with a specific type, optional message, and optional data.
|
|
@@ -14518,11 +15019,14 @@ type RemoteConfigParams = {
|
|
|
14518
15019
|
declare class RemoteConfigFetcher {
|
|
14519
15020
|
constructor(params: RemoteConfigParams);
|
|
14520
15021
|
getConfig(key?: keyof RemoteConfiguration): Promise<RemoteConfiguration | RemoteConfiguration[keyof RemoteConfiguration] | undefined>;
|
|
14521
|
-
|
|
15022
|
+
getTokensConfig(chainId: ChainId): Promise<ChainTokensConfig>;
|
|
14522
15023
|
}
|
|
14523
15024
|
declare class CheckoutConfiguration {
|
|
14524
15025
|
readonly isDevelopment: boolean;
|
|
14525
15026
|
readonly isProduction: boolean;
|
|
15027
|
+
readonly isOnRampEnabled: boolean;
|
|
15028
|
+
readonly isSwapEnabled: boolean;
|
|
15029
|
+
readonly isBridgeEnabled: boolean;
|
|
14526
15030
|
readonly remote: RemoteConfigFetcher;
|
|
14527
15031
|
readonly environment: Environment;
|
|
14528
15032
|
readonly networkMap: NetworkMap;
|
|
@@ -14607,6 +15111,16 @@ declare class Checkout {
|
|
|
14607
15111
|
* @param {BuyParams} params - The parameters for the buy.
|
|
14608
15112
|
*/
|
|
14609
15113
|
buy(params: BuyParams): Promise<void>;
|
|
15114
|
+
/**
|
|
15115
|
+
* Determines the requirements for performing a sell.
|
|
15116
|
+
* @param {SellParams} params - The parameters for the sell.
|
|
15117
|
+
*/
|
|
15118
|
+
sell(params: SellParams): Promise<void>;
|
|
15119
|
+
/**
|
|
15120
|
+
* Cancels a sell.
|
|
15121
|
+
* @param {CancelParams} params - The parameters for the cancel.
|
|
15122
|
+
*/
|
|
15123
|
+
cancel(params: CancelParams): Promise<void>;
|
|
14610
15124
|
/**
|
|
14611
15125
|
* Determines the transaction requirements to complete a purchase.
|
|
14612
15126
|
* @params {SmartCheckoutParams} params - The parameters for smart checkout.
|
|
@@ -14628,7 +15142,9 @@ declare class Checkout {
|
|
|
14628
15142
|
|
|
14629
15143
|
type checkout_sdk_d_AllowedNetworkConfig = AllowedNetworkConfig;
|
|
14630
15144
|
type checkout_sdk_d_BuyParams = BuyParams;
|
|
15145
|
+
type checkout_sdk_d_BuyResult = BuyResult;
|
|
14631
15146
|
declare const checkout_sdk_d_CHECKOUT_API_BASE_URL: typeof CHECKOUT_API_BASE_URL;
|
|
15147
|
+
type checkout_sdk_d_CancelParams = CancelParams;
|
|
14632
15148
|
type checkout_sdk_d_ChainId = ChainId;
|
|
14633
15149
|
declare const checkout_sdk_d_ChainId: typeof ChainId;
|
|
14634
15150
|
type checkout_sdk_d_ChainName = ChainName;
|
|
@@ -14670,6 +15186,8 @@ type checkout_sdk_d_NetworkFilterTypes = NetworkFilterTypes;
|
|
|
14670
15186
|
declare const checkout_sdk_d_NetworkFilterTypes: typeof NetworkFilterTypes;
|
|
14671
15187
|
type checkout_sdk_d_NetworkInfo = NetworkInfo;
|
|
14672
15188
|
type checkout_sdk_d_RemoteConfiguration = RemoteConfiguration;
|
|
15189
|
+
type checkout_sdk_d_SellParams = SellParams;
|
|
15190
|
+
type checkout_sdk_d_SellResult = SellResult;
|
|
14673
15191
|
type checkout_sdk_d_SendTransactionParams = SendTransactionParams;
|
|
14674
15192
|
type checkout_sdk_d_SendTransactionResult = SendTransactionResult;
|
|
14675
15193
|
type checkout_sdk_d_SmartCheckoutParams = SmartCheckoutParams;
|
|
@@ -14691,7 +15209,9 @@ declare namespace checkout_sdk_d {
|
|
|
14691
15209
|
export {
|
|
14692
15210
|
checkout_sdk_d_AllowedNetworkConfig as AllowedNetworkConfig,
|
|
14693
15211
|
checkout_sdk_d_BuyParams as BuyParams,
|
|
15212
|
+
checkout_sdk_d_BuyResult as BuyResult,
|
|
14694
15213
|
checkout_sdk_d_CHECKOUT_API_BASE_URL as CHECKOUT_API_BASE_URL,
|
|
15214
|
+
checkout_sdk_d_CancelParams as CancelParams,
|
|
14695
15215
|
checkout_sdk_d_ChainId as ChainId,
|
|
14696
15216
|
checkout_sdk_d_ChainName as ChainName,
|
|
14697
15217
|
checkout_sdk_d_CheckConnectionParams as CheckConnectionParams,
|
|
@@ -14725,6 +15245,8 @@ declare namespace checkout_sdk_d {
|
|
|
14725
15245
|
checkout_sdk_d_NetworkFilterTypes as NetworkFilterTypes,
|
|
14726
15246
|
checkout_sdk_d_NetworkInfo as NetworkInfo,
|
|
14727
15247
|
checkout_sdk_d_RemoteConfiguration as RemoteConfiguration,
|
|
15248
|
+
checkout_sdk_d_SellParams as SellParams,
|
|
15249
|
+
checkout_sdk_d_SellResult as SellResult,
|
|
14728
15250
|
checkout_sdk_d_SendTransactionParams as SendTransactionParams,
|
|
14729
15251
|
checkout_sdk_d_SendTransactionResult as SendTransactionResult,
|
|
14730
15252
|
checkout_sdk_d_SmartCheckoutParams as SmartCheckoutParams,
|
|
@@ -29770,6 +30292,11 @@ declare class ERC721 {
|
|
|
29770
30292
|
* @returns the DEFAULT_ADMIN_ROLE as a string.
|
|
29771
30293
|
*/
|
|
29772
30294
|
DEFAULT_ADMIN_ROLE(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
|
|
30295
|
+
/**
|
|
30296
|
+
* Returns the domain separator used in the encoding of the signature for permits, as defined by EIP-712
|
|
30297
|
+
* @return the bytes32 domain separator
|
|
30298
|
+
*/
|
|
30299
|
+
DOMAIN_SEPARATOR(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
|
|
29773
30300
|
/**
|
|
29774
30301
|
* @returns the MINTER_ROLE as a string.
|
|
29775
30302
|
*/
|
|
@@ -29786,6 +30313,27 @@ declare class ERC721 {
|
|
|
29786
30313
|
* @returns the contractURI as a string.
|
|
29787
30314
|
*/
|
|
29788
30315
|
contractURI(provider: Provider$1, overrides?: CallOverrides): Promise<string>;
|
|
30316
|
+
/**
|
|
30317
|
+
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
|
|
30318
|
+
* signature.
|
|
30319
|
+
*/
|
|
30320
|
+
eip712Domain(provider: Provider$1, overrides?: CallOverrides): Promise<[
|
|
30321
|
+
string,
|
|
30322
|
+
string,
|
|
30323
|
+
string,
|
|
30324
|
+
BigNumber,
|
|
30325
|
+
string,
|
|
30326
|
+
string,
|
|
30327
|
+
BigNumber[]
|
|
30328
|
+
] & {
|
|
30329
|
+
fields: string;
|
|
30330
|
+
name: string;
|
|
30331
|
+
version: string;
|
|
30332
|
+
chainId: BigNumber;
|
|
30333
|
+
verifyingContract: string;
|
|
30334
|
+
salt: string;
|
|
30335
|
+
extensions: BigNumber[];
|
|
30336
|
+
}>;
|
|
29789
30337
|
/**
|
|
29790
30338
|
* @returns admin addresses as an array of strings.
|
|
29791
30339
|
*/
|
|
@@ -29822,6 +30370,12 @@ declare class ERC721 {
|
|
|
29822
30370
|
* @returns the owner address of a particular tokenId.
|
|
29823
30371
|
*/
|
|
29824
30372
|
ownerOf(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
30373
|
+
/**
|
|
30374
|
+
* Returns the current nonce of a given token ID.
|
|
30375
|
+
* @param tokenId The ID of the token for which to retrieve the nonce.
|
|
30376
|
+
* @return Current nonce of the given token.
|
|
30377
|
+
*/
|
|
30378
|
+
nonces(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
29825
30379
|
/**
|
|
29826
30380
|
* @returns the operator allowlist as a string.
|
|
29827
30381
|
*/
|
|
@@ -29851,6 +30405,14 @@ declare class ERC721 {
|
|
|
29851
30405
|
populateApprove(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
29852
30406
|
from?: PromiseOrValue<string>;
|
|
29853
30407
|
}): Promise<PopulatedTransaction>;
|
|
30408
|
+
/**
|
|
30409
|
+
* Function to approve by way of owner signature
|
|
30410
|
+
* @param spender the address to approve
|
|
30411
|
+
* @param tokenId the index of the NFT to approve the spender on
|
|
30412
|
+
* @param deadline a timestamp expiry for the permit
|
|
30413
|
+
* @param sig a traditional or EIP-2098 signature
|
|
30414
|
+
*/
|
|
30415
|
+
populatePermit(spender: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
29854
30416
|
/**
|
|
29855
30417
|
* @returns a populated transaction for the burn contract function
|
|
29856
30418
|
*/
|
|
@@ -30117,6 +30679,12 @@ declare class ERC721MintByID {
|
|
|
30117
30679
|
* @returns the owner address of a particular tokenId.
|
|
30118
30680
|
*/
|
|
30119
30681
|
ownerOf(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
30682
|
+
/**
|
|
30683
|
+
* Returns the current nonce of a given token ID.
|
|
30684
|
+
* @param tokenId The ID of the token for which to retrieve the nonce.
|
|
30685
|
+
* @return Current nonce of the given token.
|
|
30686
|
+
*/
|
|
30687
|
+
nonces(provider: Provider$1, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
30120
30688
|
/**
|
|
30121
30689
|
* @returns the operator allowlist as a string.
|
|
30122
30690
|
*/
|
|
@@ -30146,6 +30714,14 @@ declare class ERC721MintByID {
|
|
|
30146
30714
|
populateApprove(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
30147
30715
|
from?: PromiseOrValue<string>;
|
|
30148
30716
|
}): Promise<PopulatedTransaction>;
|
|
30717
|
+
/**
|
|
30718
|
+
* Function to approve by way of owner signature
|
|
30719
|
+
* @param spender the address to approve
|
|
30720
|
+
* @param tokenId the index of the NFT to approve the spender on
|
|
30721
|
+
* @param deadline a timestamp expiry for the permit
|
|
30722
|
+
* @param sig a traditional or EIP-2098 signature
|
|
30723
|
+
*/
|
|
30724
|
+
populatePermit(spender: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, sig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
30149
30725
|
/**
|
|
30150
30726
|
* @returns a populated transaction for the burn contract function
|
|
30151
30727
|
*/
|