@rabby-wallet/rabby-api 0.9.48-0 → 0.9.48-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -3
- package/dist/index.js +0 -1
- package/dist/types.d.ts +415 -171
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosAdapter, AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { RateLimitedAxiosInstance } from 'axios-rate-limit';
|
|
3
3
|
import { InitOptions, RabbyApiPlugin } from './plugins/intf';
|
|
4
|
-
import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod, GasAccountInfo, TokenEntityDetail, TokenItemWithEntity, ProjectItem, CopyTradeTokenListResponse, CopyTradeRecentBuyListResponse, CopyTradePnlListResponse, AppChainListResponse, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken, DefaultRPCRes, TokenDetailWithPriceCurve, GiftEligibilityItem, UserFeedbackItem, PerpTopToken, KlineDataItem, TokenMarketInfo, TokenHolderInfo, TokenSupplyInfo, MarketSummary, MarketTradingHistoryItem, TokenHolderSummary, TokenHolderItem, CurrencyItem, PerpBridgeQuote, LiquidityPoolItem, LiquidityPoolHistoryItem, NFTDetail, NFTTradingConfig, PrepareAcceptNFTOfferResponse, PrepareListingNFTResponse } from './types';
|
|
4
|
+
import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod, GasAccountInfo, TokenEntityDetail, TokenItemWithEntity, ProjectItem, CopyTradeTokenListResponse, CopyTradeRecentBuyListResponse, CopyTradePnlListResponse, AppChainListResponse, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken, DefaultRPCRes, TokenDetailWithPriceCurve, GiftEligibilityItem, UserFeedbackItem, PerpTopToken, KlineDataItem, TokenMarketInfo, TokenHolderInfo, TokenSupplyInfo, MarketSummary, MarketTradingHistoryItem, TokenHolderSummary, TokenHolderItem, CurrencyItem, PerpBridgeQuote, LiquidityPoolItem, LiquidityPoolHistoryItem, NFTDetail, NFTTradingConfig, PrepareAcceptNFTOfferResponse, PrepareListingNFTResponse, CreateListingNFTOfferResponse } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -1393,6 +1393,7 @@ export declare class OpenApiService {
|
|
|
1393
1393
|
getNFTCollectionFees: (params: {
|
|
1394
1394
|
chain_id: string;
|
|
1395
1395
|
collection_id: string;
|
|
1396
|
+
inner_id: string;
|
|
1396
1397
|
}) => Promise<{
|
|
1397
1398
|
marketplace_fees: {
|
|
1398
1399
|
recipient: string;
|
|
@@ -1427,9 +1428,10 @@ export declare class OpenApiService {
|
|
|
1427
1428
|
}) => Promise<PrepareListingNFTResponse>;
|
|
1428
1429
|
createListingNFT: (postData: {
|
|
1429
1430
|
chain_id: string;
|
|
1430
|
-
order:
|
|
1431
|
+
order: PrepareListingNFTResponse['data']['post']['body']['order'];
|
|
1431
1432
|
signature: string;
|
|
1432
|
-
|
|
1433
|
+
protocol_address?: string;
|
|
1434
|
+
}) => Promise<CreateListingNFTOfferResponse>;
|
|
1433
1435
|
prepareAcceptNFTOffer: (postData: {
|
|
1434
1436
|
chain_id: string;
|
|
1435
1437
|
order_hash: string;
|
|
@@ -1437,6 +1439,7 @@ export declare class OpenApiService {
|
|
|
1437
1439
|
collection_id: string;
|
|
1438
1440
|
inner_id: string;
|
|
1439
1441
|
quantity?: number;
|
|
1442
|
+
include_optional_creator_fees?: boolean;
|
|
1440
1443
|
}) => Promise<PrepareAcceptNFTOfferResponse>;
|
|
1441
1444
|
}
|
|
1442
1445
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1797,7 +1797,6 @@ export class OpenApiService {
|
|
|
1797
1797
|
const { data } = yield this.request.post('/v1/nft/order/listing/prepare', postData);
|
|
1798
1798
|
return data;
|
|
1799
1799
|
});
|
|
1800
|
-
// todo ts type
|
|
1801
1800
|
this.createListingNFT = (postData) => __awaiter(this, void 0, void 0, function* () {
|
|
1802
1801
|
const { data } = yield this.request.post('/v1/nft/order/listing/post', postData);
|
|
1803
1802
|
return data;
|
package/dist/types.d.ts
CHANGED
|
@@ -421,6 +421,8 @@ export interface Collection {
|
|
|
421
421
|
};
|
|
422
422
|
};
|
|
423
423
|
is_tradable?: boolean;
|
|
424
|
+
is_erc721?: boolean;
|
|
425
|
+
is_erc1155?: boolean;
|
|
424
426
|
}
|
|
425
427
|
export interface CollectionList {
|
|
426
428
|
id: string;
|
|
@@ -1840,178 +1842,263 @@ export declare type NFTTradingConfig = Record<string, {
|
|
|
1840
1842
|
token_id: string;
|
|
1841
1843
|
};
|
|
1842
1844
|
}>;
|
|
1843
|
-
interface LastSale {
|
|
1844
|
-
event_type: 'sale' | string;
|
|
1845
|
-
event_timestamp: number;
|
|
1846
|
-
transaction: string;
|
|
1847
|
-
payment: Payment;
|
|
1848
|
-
seller: string;
|
|
1849
|
-
buyer: string;
|
|
1850
|
-
quantity: number;
|
|
1851
|
-
}
|
|
1852
|
-
interface Payment {
|
|
1853
|
-
quantity: string;
|
|
1854
|
-
decimals: number;
|
|
1855
|
-
symbol: string;
|
|
1856
|
-
token_id: string;
|
|
1857
|
-
price: number;
|
|
1858
|
-
}
|
|
1859
|
-
interface Rarity {
|
|
1860
|
-
strategy_id: 'openrarity' | string;
|
|
1861
|
-
strategy_version: string;
|
|
1862
|
-
rank: number;
|
|
1863
|
-
}
|
|
1864
|
-
interface ListingOrder {
|
|
1865
|
-
created_date: string;
|
|
1866
|
-
closing_date: string;
|
|
1867
|
-
listing_time: number;
|
|
1868
|
-
expiration_time: number;
|
|
1869
|
-
order_hash: string;
|
|
1870
|
-
protocol_data: SeaportProtocolData;
|
|
1871
|
-
protocol_address: string;
|
|
1872
|
-
current_price: string;
|
|
1873
|
-
maker: User;
|
|
1874
|
-
taker: null;
|
|
1875
|
-
maker_fees: any[];
|
|
1876
|
-
taker_fees: any[];
|
|
1877
|
-
side: 'ask' | 'bid';
|
|
1878
|
-
order_type: 'basic' | string;
|
|
1879
|
-
cancelled: boolean;
|
|
1880
|
-
finalized: boolean;
|
|
1881
|
-
marked_invalid: boolean;
|
|
1882
|
-
remaining_quantity: number;
|
|
1883
|
-
maker_asset_bundle: AssetBundle;
|
|
1884
|
-
taker_asset_bundle: AssetBundle;
|
|
1885
|
-
}
|
|
1886
|
-
interface BestOfferOrder {
|
|
1887
|
-
order_hash: string;
|
|
1888
|
-
chain: string;
|
|
1889
|
-
protocol_data: SeaportProtocolData;
|
|
1890
|
-
protocol_address: string;
|
|
1891
|
-
remaining_quantity: number;
|
|
1892
|
-
criteria: OfferCriteria;
|
|
1893
|
-
price: Price;
|
|
1894
|
-
status: 'ACTIVE' | string;
|
|
1895
|
-
}
|
|
1896
|
-
interface SeaportProtocolData {
|
|
1897
|
-
parameters: SeaportParameters;
|
|
1898
|
-
signature: null;
|
|
1899
|
-
}
|
|
1900
|
-
interface SeaportParameters {
|
|
1901
|
-
offerer: string;
|
|
1902
|
-
offer: SeaportItem[];
|
|
1903
|
-
consideration: SeaportConsiderationItem[];
|
|
1904
|
-
startTime: string;
|
|
1905
|
-
endTime: string;
|
|
1906
|
-
orderType: number;
|
|
1907
|
-
zone: string;
|
|
1908
|
-
zoneHash: string;
|
|
1909
|
-
salt: string;
|
|
1910
|
-
conduitKey: string;
|
|
1911
|
-
totalOriginalConsiderationItems: number;
|
|
1912
|
-
counter: number;
|
|
1913
|
-
}
|
|
1914
|
-
interface SeaportItem {
|
|
1915
|
-
itemType: number;
|
|
1916
|
-
token: string;
|
|
1917
|
-
identifierOrCriteria: string;
|
|
1918
|
-
startAmount: string;
|
|
1919
|
-
endAmount: string;
|
|
1920
|
-
}
|
|
1921
|
-
interface SeaportConsiderationItem extends SeaportItem {
|
|
1922
|
-
recipient: string;
|
|
1923
|
-
}
|
|
1924
|
-
interface AssetBundle {
|
|
1925
|
-
assets: Asset[];
|
|
1926
|
-
maker: null;
|
|
1927
|
-
asset_contract: null;
|
|
1928
|
-
slug: null;
|
|
1929
|
-
name: null;
|
|
1930
|
-
description: null;
|
|
1931
|
-
external_link: null;
|
|
1932
|
-
permalink: null;
|
|
1933
|
-
seaport_sell_orders: null;
|
|
1934
|
-
}
|
|
1935
|
-
interface Asset {
|
|
1936
|
-
id: null;
|
|
1937
|
-
token_id: string;
|
|
1938
|
-
num_sales: null;
|
|
1939
|
-
background_color: null;
|
|
1940
|
-
image_url: string | null;
|
|
1941
|
-
image_preview_url: null;
|
|
1942
|
-
image_thumbnail_url: null;
|
|
1943
|
-
image_original_url: null;
|
|
1944
|
-
animation_url: null;
|
|
1945
|
-
animation_original_url: null;
|
|
1946
|
-
name: string;
|
|
1947
|
-
description: string | null;
|
|
1948
|
-
external_link: null;
|
|
1949
|
-
asset_contract: AssetContract;
|
|
1950
|
-
permalink: string | null;
|
|
1951
|
-
collection: CollectionDetail | null;
|
|
1952
|
-
decimals: number | null;
|
|
1953
|
-
token_metadata: null;
|
|
1954
|
-
is_nsfw: boolean | null;
|
|
1955
|
-
owner: User | null;
|
|
1956
|
-
}
|
|
1957
|
-
interface AssetContract {
|
|
1958
|
-
address: string;
|
|
1959
|
-
chain_identifier: string;
|
|
1960
|
-
schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
|
|
1961
|
-
asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
|
|
1962
|
-
}
|
|
1963
|
-
interface CollectionDetail {
|
|
1964
|
-
collection: string;
|
|
1965
|
-
name: string;
|
|
1966
|
-
description: string;
|
|
1967
|
-
image_url: string;
|
|
1968
|
-
banner_image_url: string;
|
|
1969
|
-
owner: string;
|
|
1970
|
-
safelist_status: 'not_requested' | 'verified' | string;
|
|
1971
|
-
category: string;
|
|
1972
|
-
is_disabled: boolean;
|
|
1973
|
-
is_nsfw: boolean;
|
|
1974
|
-
trait_offers_enabled: boolean;
|
|
1975
|
-
collection_offers_enabled: boolean;
|
|
1976
|
-
opensea_url: string;
|
|
1977
|
-
project_url: string;
|
|
1978
|
-
wiki_url: string;
|
|
1979
|
-
discord_url: string;
|
|
1980
|
-
telegram_url: string;
|
|
1981
|
-
twitter_username: string;
|
|
1982
|
-
instagram_username: string;
|
|
1983
|
-
contracts: Contract[];
|
|
1984
|
-
}
|
|
1985
|
-
interface Contract {
|
|
1986
|
-
address: string;
|
|
1987
|
-
chain: string;
|
|
1988
|
-
}
|
|
1989
|
-
interface User {
|
|
1990
|
-
address: string;
|
|
1991
|
-
profile_img_url: null;
|
|
1992
|
-
config: null;
|
|
1993
|
-
}
|
|
1994
|
-
interface OfferCriteria {
|
|
1995
|
-
collection: {
|
|
1996
|
-
slug: string;
|
|
1997
|
-
};
|
|
1998
|
-
contract: {
|
|
1999
|
-
address: string;
|
|
2000
|
-
};
|
|
2001
|
-
trait: null;
|
|
2002
|
-
traits: null;
|
|
2003
|
-
encoded_token_ids: string;
|
|
2004
|
-
}
|
|
2005
|
-
interface Price {
|
|
2006
|
-
currency: string;
|
|
2007
|
-
decimals: number;
|
|
2008
|
-
value: string;
|
|
2009
|
-
}
|
|
2010
1845
|
export interface NFTDetail extends NFTItem {
|
|
2011
|
-
listing_order:
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
1846
|
+
listing_order: {
|
|
1847
|
+
created_date: string;
|
|
1848
|
+
closing_date: string;
|
|
1849
|
+
listing_time: number;
|
|
1850
|
+
expiration_time: number;
|
|
1851
|
+
order_hash: string;
|
|
1852
|
+
protocol_data: {
|
|
1853
|
+
parameters: {
|
|
1854
|
+
offerer: string;
|
|
1855
|
+
offer: Array<{
|
|
1856
|
+
itemType: number;
|
|
1857
|
+
token: string;
|
|
1858
|
+
identifierOrCriteria: string;
|
|
1859
|
+
startAmount: string;
|
|
1860
|
+
endAmount: string;
|
|
1861
|
+
}>;
|
|
1862
|
+
consideration: Array<{
|
|
1863
|
+
itemType: number;
|
|
1864
|
+
token: string;
|
|
1865
|
+
identifierOrCriteria: string;
|
|
1866
|
+
startAmount: string;
|
|
1867
|
+
endAmount: string;
|
|
1868
|
+
recipient: string;
|
|
1869
|
+
}>;
|
|
1870
|
+
startTime: string;
|
|
1871
|
+
endTime: string;
|
|
1872
|
+
orderType: number;
|
|
1873
|
+
zone: string;
|
|
1874
|
+
zoneHash: string;
|
|
1875
|
+
salt: string;
|
|
1876
|
+
conduitKey: string;
|
|
1877
|
+
totalOriginalConsiderationItems: number;
|
|
1878
|
+
counter: number;
|
|
1879
|
+
};
|
|
1880
|
+
signature: null;
|
|
1881
|
+
};
|
|
1882
|
+
protocol_address: string;
|
|
1883
|
+
current_price: string;
|
|
1884
|
+
maker: {
|
|
1885
|
+
address: string;
|
|
1886
|
+
profile_img_url: null;
|
|
1887
|
+
config: null;
|
|
1888
|
+
};
|
|
1889
|
+
taker: null;
|
|
1890
|
+
maker_fees: any[];
|
|
1891
|
+
taker_fees: any[];
|
|
1892
|
+
side: 'ask' | 'bid';
|
|
1893
|
+
order_type: 'basic' | string;
|
|
1894
|
+
cancelled: boolean;
|
|
1895
|
+
finalized: boolean;
|
|
1896
|
+
marked_invalid: boolean;
|
|
1897
|
+
remaining_quantity: number;
|
|
1898
|
+
maker_asset_bundle: {
|
|
1899
|
+
assets: Array<{
|
|
1900
|
+
id: null;
|
|
1901
|
+
token_id: string;
|
|
1902
|
+
num_sales: null;
|
|
1903
|
+
background_color: null;
|
|
1904
|
+
image_url: string | null;
|
|
1905
|
+
image_preview_url: null;
|
|
1906
|
+
image_thumbnail_url: null;
|
|
1907
|
+
image_original_url: null;
|
|
1908
|
+
animation_url: null;
|
|
1909
|
+
animation_original_url: null;
|
|
1910
|
+
name: string;
|
|
1911
|
+
description: string | null;
|
|
1912
|
+
external_link: null;
|
|
1913
|
+
asset_contract: {
|
|
1914
|
+
address: string;
|
|
1915
|
+
chain_identifier: string;
|
|
1916
|
+
schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
|
|
1917
|
+
asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
|
|
1918
|
+
};
|
|
1919
|
+
permalink: string | null;
|
|
1920
|
+
collection: {
|
|
1921
|
+
collection: string;
|
|
1922
|
+
name: string;
|
|
1923
|
+
description: string;
|
|
1924
|
+
image_url: string;
|
|
1925
|
+
banner_image_url: string;
|
|
1926
|
+
owner: string;
|
|
1927
|
+
safelist_status: 'not_requested' | 'verified' | string;
|
|
1928
|
+
category: string;
|
|
1929
|
+
is_disabled: boolean;
|
|
1930
|
+
is_nsfw: boolean;
|
|
1931
|
+
trait_offers_enabled: boolean;
|
|
1932
|
+
collection_offers_enabled: boolean;
|
|
1933
|
+
opensea_url: string;
|
|
1934
|
+
project_url: string;
|
|
1935
|
+
wiki_url: string;
|
|
1936
|
+
discord_url: string;
|
|
1937
|
+
telegram_url: string;
|
|
1938
|
+
twitter_username: string;
|
|
1939
|
+
instagram_username: string;
|
|
1940
|
+
contracts: Array<{
|
|
1941
|
+
address: string;
|
|
1942
|
+
chain: string;
|
|
1943
|
+
}>;
|
|
1944
|
+
} | null;
|
|
1945
|
+
decimals: number | null;
|
|
1946
|
+
token_metadata: null;
|
|
1947
|
+
is_nsfw: boolean | null;
|
|
1948
|
+
owner: {
|
|
1949
|
+
address: string;
|
|
1950
|
+
profile_img_url: null;
|
|
1951
|
+
config: null;
|
|
1952
|
+
} | null;
|
|
1953
|
+
}>;
|
|
1954
|
+
maker: null;
|
|
1955
|
+
asset_contract: null;
|
|
1956
|
+
slug: null;
|
|
1957
|
+
name: null;
|
|
1958
|
+
description: null;
|
|
1959
|
+
external_link: null;
|
|
1960
|
+
permalink: null;
|
|
1961
|
+
seaport_sell_orders: null;
|
|
1962
|
+
};
|
|
1963
|
+
taker_asset_bundle: {
|
|
1964
|
+
assets: Array<{
|
|
1965
|
+
id: null;
|
|
1966
|
+
token_id: string;
|
|
1967
|
+
num_sales: null;
|
|
1968
|
+
background_color: null;
|
|
1969
|
+
image_url: string | null;
|
|
1970
|
+
image_preview_url: null;
|
|
1971
|
+
image_thumbnail_url: null;
|
|
1972
|
+
image_original_url: null;
|
|
1973
|
+
animation_url: null;
|
|
1974
|
+
animation_original_url: null;
|
|
1975
|
+
name: string;
|
|
1976
|
+
description: string | null;
|
|
1977
|
+
external_link: null;
|
|
1978
|
+
asset_contract: {
|
|
1979
|
+
address: string;
|
|
1980
|
+
chain_identifier: string;
|
|
1981
|
+
schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
|
|
1982
|
+
asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
|
|
1983
|
+
};
|
|
1984
|
+
permalink: string | null;
|
|
1985
|
+
collection: {
|
|
1986
|
+
collection: string;
|
|
1987
|
+
name: string;
|
|
1988
|
+
description: string;
|
|
1989
|
+
image_url: string;
|
|
1990
|
+
banner_image_url: string;
|
|
1991
|
+
owner: string;
|
|
1992
|
+
safelist_status: 'not_requested' | 'verified' | string;
|
|
1993
|
+
category: string;
|
|
1994
|
+
is_disabled: boolean;
|
|
1995
|
+
is_nsfw: boolean;
|
|
1996
|
+
trait_offers_enabled: boolean;
|
|
1997
|
+
collection_offers_enabled: boolean;
|
|
1998
|
+
opensea_url: string;
|
|
1999
|
+
project_url: string;
|
|
2000
|
+
wiki_url: string;
|
|
2001
|
+
discord_url: string;
|
|
2002
|
+
telegram_url: string;
|
|
2003
|
+
twitter_username: string;
|
|
2004
|
+
instagram_username: string;
|
|
2005
|
+
contracts: Array<{
|
|
2006
|
+
address: string;
|
|
2007
|
+
chain: string;
|
|
2008
|
+
}>;
|
|
2009
|
+
} | null;
|
|
2010
|
+
decimals: number | null;
|
|
2011
|
+
token_metadata: null;
|
|
2012
|
+
is_nsfw: boolean | null;
|
|
2013
|
+
owner: {
|
|
2014
|
+
address: string;
|
|
2015
|
+
profile_img_url: null;
|
|
2016
|
+
config: null;
|
|
2017
|
+
} | null;
|
|
2018
|
+
}>;
|
|
2019
|
+
maker: null;
|
|
2020
|
+
asset_contract: null;
|
|
2021
|
+
slug: null;
|
|
2022
|
+
name: null;
|
|
2023
|
+
description: null;
|
|
2024
|
+
external_link: null;
|
|
2025
|
+
permalink: null;
|
|
2026
|
+
seaport_sell_orders: null;
|
|
2027
|
+
};
|
|
2028
|
+
} | null;
|
|
2029
|
+
best_offer_order: {
|
|
2030
|
+
order_hash: string;
|
|
2031
|
+
chain: string;
|
|
2032
|
+
protocol_data: {
|
|
2033
|
+
parameters: {
|
|
2034
|
+
offerer: string;
|
|
2035
|
+
offer: Array<{
|
|
2036
|
+
itemType: number;
|
|
2037
|
+
token: string;
|
|
2038
|
+
identifierOrCriteria: string;
|
|
2039
|
+
startAmount: string;
|
|
2040
|
+
endAmount: string;
|
|
2041
|
+
}>;
|
|
2042
|
+
consideration: Array<{
|
|
2043
|
+
itemType: number;
|
|
2044
|
+
token: string;
|
|
2045
|
+
identifierOrCriteria: string;
|
|
2046
|
+
startAmount: string;
|
|
2047
|
+
endAmount: string;
|
|
2048
|
+
recipient: string;
|
|
2049
|
+
}>;
|
|
2050
|
+
startTime: string;
|
|
2051
|
+
endTime: string;
|
|
2052
|
+
orderType: number;
|
|
2053
|
+
zone: string;
|
|
2054
|
+
zoneHash: string;
|
|
2055
|
+
salt: string;
|
|
2056
|
+
conduitKey: string;
|
|
2057
|
+
totalOriginalConsiderationItems: number;
|
|
2058
|
+
counter: number;
|
|
2059
|
+
};
|
|
2060
|
+
signature: null;
|
|
2061
|
+
};
|
|
2062
|
+
protocol_address: string;
|
|
2063
|
+
remaining_quantity: number;
|
|
2064
|
+
criteria: {
|
|
2065
|
+
collection: {
|
|
2066
|
+
slug: string;
|
|
2067
|
+
};
|
|
2068
|
+
contract: {
|
|
2069
|
+
address: string;
|
|
2070
|
+
};
|
|
2071
|
+
trait: null;
|
|
2072
|
+
traits: null;
|
|
2073
|
+
encoded_token_ids: string;
|
|
2074
|
+
};
|
|
2075
|
+
price: {
|
|
2076
|
+
currency: string;
|
|
2077
|
+
decimals: number;
|
|
2078
|
+
value: string;
|
|
2079
|
+
};
|
|
2080
|
+
status: 'ACTIVE' | string;
|
|
2081
|
+
} | null;
|
|
2082
|
+
rarity: {
|
|
2083
|
+
strategy_id: 'openrarity' | string;
|
|
2084
|
+
strategy_version: string;
|
|
2085
|
+
rank: number;
|
|
2086
|
+
} | null;
|
|
2087
|
+
last_sale?: {
|
|
2088
|
+
event_type: 'sale' | string;
|
|
2089
|
+
event_timestamp: number;
|
|
2090
|
+
transaction: string;
|
|
2091
|
+
payment: {
|
|
2092
|
+
quantity: string;
|
|
2093
|
+
decimals: number;
|
|
2094
|
+
symbol: string;
|
|
2095
|
+
token_id: string;
|
|
2096
|
+
price: number;
|
|
2097
|
+
};
|
|
2098
|
+
seller: string;
|
|
2099
|
+
buyer: string;
|
|
2100
|
+
quantity: number;
|
|
2101
|
+
} | null;
|
|
2015
2102
|
}
|
|
2016
2103
|
export interface PrepareListingNFTResponse {
|
|
2017
2104
|
data: {
|
|
@@ -2335,4 +2422,161 @@ export interface PrepareAcceptNFTOfferResponse {
|
|
|
2335
2422
|
};
|
|
2336
2423
|
};
|
|
2337
2424
|
}
|
|
2425
|
+
export interface CreateListingNFTOfferResponse {
|
|
2426
|
+
order: {
|
|
2427
|
+
created_date: string;
|
|
2428
|
+
closing_date: string;
|
|
2429
|
+
listing_time: number;
|
|
2430
|
+
expiration_time: number;
|
|
2431
|
+
order_hash: string;
|
|
2432
|
+
protocol_data: {
|
|
2433
|
+
parameters: {
|
|
2434
|
+
offerer: string;
|
|
2435
|
+
offer: Array<{
|
|
2436
|
+
itemType: number;
|
|
2437
|
+
token: string;
|
|
2438
|
+
identifierOrCriteria: string;
|
|
2439
|
+
startAmount: string;
|
|
2440
|
+
endAmount: string;
|
|
2441
|
+
}>;
|
|
2442
|
+
consideration: Array<{
|
|
2443
|
+
itemType: number;
|
|
2444
|
+
token: string;
|
|
2445
|
+
identifierOrCriteria: string;
|
|
2446
|
+
startAmount: string;
|
|
2447
|
+
endAmount: string;
|
|
2448
|
+
recipient: string;
|
|
2449
|
+
}>;
|
|
2450
|
+
startTime: string;
|
|
2451
|
+
endTime: string;
|
|
2452
|
+
orderType: number;
|
|
2453
|
+
zone: string;
|
|
2454
|
+
zoneHash: string;
|
|
2455
|
+
salt: string;
|
|
2456
|
+
conduitKey: string;
|
|
2457
|
+
totalOriginalConsiderationItems: number;
|
|
2458
|
+
counter: number;
|
|
2459
|
+
};
|
|
2460
|
+
signature: null;
|
|
2461
|
+
};
|
|
2462
|
+
protocol_address: string;
|
|
2463
|
+
current_price: string;
|
|
2464
|
+
maker: {
|
|
2465
|
+
address: string;
|
|
2466
|
+
profile_img_url: null;
|
|
2467
|
+
config: null;
|
|
2468
|
+
};
|
|
2469
|
+
taker: null;
|
|
2470
|
+
maker_fees: any[];
|
|
2471
|
+
taker_fees: any[];
|
|
2472
|
+
side: 'ask' | 'bid';
|
|
2473
|
+
order_type: 'basic' | string;
|
|
2474
|
+
cancelled: boolean;
|
|
2475
|
+
finalized: boolean;
|
|
2476
|
+
marked_invalid: boolean;
|
|
2477
|
+
remaining_quantity: number;
|
|
2478
|
+
maker_asset_bundle: {
|
|
2479
|
+
assets: Array<{
|
|
2480
|
+
id: null;
|
|
2481
|
+
token_id: string;
|
|
2482
|
+
num_sales: null;
|
|
2483
|
+
background_color: null;
|
|
2484
|
+
image_url: string | null;
|
|
2485
|
+
image_preview_url: null;
|
|
2486
|
+
image_thumbnail_url: null;
|
|
2487
|
+
image_original_url: null;
|
|
2488
|
+
animation_url: null;
|
|
2489
|
+
animation_original_url: null;
|
|
2490
|
+
name: string;
|
|
2491
|
+
description: string | null;
|
|
2492
|
+
external_link: null;
|
|
2493
|
+
asset_contract: {
|
|
2494
|
+
address: string;
|
|
2495
|
+
chain_identifier: string;
|
|
2496
|
+
schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
|
|
2497
|
+
asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
|
|
2498
|
+
};
|
|
2499
|
+
permalink: string | null;
|
|
2500
|
+
collection: {
|
|
2501
|
+
collection: string;
|
|
2502
|
+
name: string;
|
|
2503
|
+
description: string;
|
|
2504
|
+
image_url: string;
|
|
2505
|
+
banner_image_url: string;
|
|
2506
|
+
owner: string;
|
|
2507
|
+
safelist_status: 'not_requested' | 'verified' | string;
|
|
2508
|
+
category: string;
|
|
2509
|
+
is_disabled: boolean;
|
|
2510
|
+
is_nsfw: boolean;
|
|
2511
|
+
trait_offers_enabled: boolean;
|
|
2512
|
+
collection_offers_enabled: boolean;
|
|
2513
|
+
opensea_url: string;
|
|
2514
|
+
project_url: string;
|
|
2515
|
+
wiki_url: string;
|
|
2516
|
+
discord_url: string;
|
|
2517
|
+
telegram_url: string;
|
|
2518
|
+
twitter_username: string;
|
|
2519
|
+
instagram_username: string;
|
|
2520
|
+
contracts: Array<{
|
|
2521
|
+
address: string;
|
|
2522
|
+
chain: string;
|
|
2523
|
+
}>;
|
|
2524
|
+
} | null;
|
|
2525
|
+
decimals: number | null;
|
|
2526
|
+
token_metadata: null;
|
|
2527
|
+
is_nsfw: boolean | null;
|
|
2528
|
+
owner: {
|
|
2529
|
+
address: string;
|
|
2530
|
+
profile_img_url: null;
|
|
2531
|
+
config: null;
|
|
2532
|
+
} | null;
|
|
2533
|
+
}>;
|
|
2534
|
+
maker: null;
|
|
2535
|
+
asset_contract: null;
|
|
2536
|
+
slug: null;
|
|
2537
|
+
name: null;
|
|
2538
|
+
description: null;
|
|
2539
|
+
external_link: null;
|
|
2540
|
+
permalink: null;
|
|
2541
|
+
seaport_sell_orders: null;
|
|
2542
|
+
};
|
|
2543
|
+
taker_asset_bundle: {
|
|
2544
|
+
assets: Array<{
|
|
2545
|
+
id: null;
|
|
2546
|
+
token_id: string;
|
|
2547
|
+
num_sales: null;
|
|
2548
|
+
background_color: null;
|
|
2549
|
+
image_url: null;
|
|
2550
|
+
image_preview_url: null;
|
|
2551
|
+
image_thumbnail_url: null;
|
|
2552
|
+
image_original_url: null;
|
|
2553
|
+
animation_url: null;
|
|
2554
|
+
animation_original_url: null;
|
|
2555
|
+
name: string;
|
|
2556
|
+
description: null;
|
|
2557
|
+
external_link: null;
|
|
2558
|
+
asset_contract: {
|
|
2559
|
+
address: string;
|
|
2560
|
+
chain_identifier: string;
|
|
2561
|
+
schema_name: 'NATIVE' | string;
|
|
2562
|
+
asset_contract_type: 'unknown';
|
|
2563
|
+
};
|
|
2564
|
+
permalink: null;
|
|
2565
|
+
collection: null;
|
|
2566
|
+
decimals: number;
|
|
2567
|
+
token_metadata: null;
|
|
2568
|
+
is_nsfw: null;
|
|
2569
|
+
owner: null;
|
|
2570
|
+
}>;
|
|
2571
|
+
maker: null;
|
|
2572
|
+
asset_contract: null;
|
|
2573
|
+
slug: null;
|
|
2574
|
+
name: null;
|
|
2575
|
+
description: null;
|
|
2576
|
+
external_link: null;
|
|
2577
|
+
permalink: null;
|
|
2578
|
+
seaport_sell_orders: null;
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
}
|
|
2338
2582
|
export {};
|