@opensea/sdk 12.9.1 → 12.9.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/lib/api/walletAuth.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export declare class WalletAuthAPI {
|
|
|
13
13
|
stages: {
|
|
14
14
|
stageUuid: string;
|
|
15
15
|
isEligible: boolean;
|
|
16
|
-
price?: string | undefined;
|
|
17
|
-
maxTotalMintableByWallet?: string | undefined;
|
|
18
|
-
maxTotalMintableByWalletPerToken?: string | undefined;
|
|
16
|
+
price?: string | null | undefined;
|
|
17
|
+
maxTotalMintableByWallet?: string | null | undefined;
|
|
18
|
+
maxTotalMintableByWalletPerToken?: string | null | undefined;
|
|
19
19
|
}[];
|
|
20
20
|
}>;
|
|
21
21
|
getFavorites(address: string, query?: WalletAuthQuery<"get_profile_favorites">): Promise<{
|
|
@@ -53,28 +53,28 @@ export declare class WalletAuthAPI {
|
|
|
53
53
|
chain: string;
|
|
54
54
|
name: string;
|
|
55
55
|
symbol: string;
|
|
56
|
-
imageUrl?: string | undefined;
|
|
56
|
+
imageUrl?: string | null | undefined;
|
|
57
57
|
usdPrice: string;
|
|
58
58
|
decimals: number;
|
|
59
59
|
openseaUrl: string;
|
|
60
|
-
marketCapUsd?: number | undefined;
|
|
61
|
-
volume24h?: number | undefined;
|
|
62
|
-
priceChange24h?: number | undefined;
|
|
63
|
-
holdersCount?: number | undefined;
|
|
60
|
+
marketCapUsd?: number | null | undefined;
|
|
61
|
+
volume24h?: number | null | undefined;
|
|
62
|
+
priceChange24h?: number | null | undefined;
|
|
63
|
+
holdersCount?: number | null | undefined;
|
|
64
64
|
isVerified: boolean;
|
|
65
|
-
createdAt?: number | undefined;
|
|
66
|
-
genesisDate?: number | undefined;
|
|
65
|
+
createdAt?: number | null | undefined;
|
|
66
|
+
genesisDate?: number | null | undefined;
|
|
67
67
|
}[];
|
|
68
|
-
next?: string | undefined;
|
|
68
|
+
next?: string | null | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
getPerpetualWatchlist(address: string): Promise<{
|
|
71
71
|
perpetuals: {
|
|
72
72
|
id: string;
|
|
73
73
|
name: string;
|
|
74
74
|
symbol: string;
|
|
75
|
-
imageUrl?: string | undefined;
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
createdAt?: number | undefined;
|
|
75
|
+
imageUrl?: string | null | undefined;
|
|
76
|
+
description?: string | null | undefined;
|
|
77
|
+
createdAt?: number | null | undefined;
|
|
78
78
|
chain: string;
|
|
79
79
|
contractAddress: string;
|
|
80
80
|
maxLeverage: number;
|
|
@@ -82,18 +82,18 @@ export declare class WalletAuthAPI {
|
|
|
82
82
|
assetId: string;
|
|
83
83
|
version: number;
|
|
84
84
|
categories: string[];
|
|
85
|
-
market?: string | undefined;
|
|
85
|
+
market?: string | null | undefined;
|
|
86
86
|
stats?: {
|
|
87
|
-
priceUsd?: number | undefined;
|
|
88
|
-
priceChange24h?: number | undefined;
|
|
89
|
-
volume24h?: number | undefined;
|
|
90
|
-
markPrice?: number | undefined;
|
|
91
|
-
oraclePrice?: number | undefined;
|
|
92
|
-
fundingRate?: number | undefined;
|
|
93
|
-
openInterest?: number | undefined;
|
|
94
|
-
} | undefined;
|
|
87
|
+
priceUsd?: number | null | undefined;
|
|
88
|
+
priceChange24h?: number | null | undefined;
|
|
89
|
+
volume24h?: number | null | undefined;
|
|
90
|
+
markPrice?: number | null | undefined;
|
|
91
|
+
oraclePrice?: number | null | undefined;
|
|
92
|
+
fundingRate?: number | null | undefined;
|
|
93
|
+
openInterest?: number | null | undefined;
|
|
94
|
+
} | null | undefined;
|
|
95
95
|
}[];
|
|
96
|
-
next?: string | undefined;
|
|
96
|
+
next?: string | null | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
addWatchlistEntry(body: WalletAuthRequest<"add_watchlist_entry">): Promise<{
|
|
99
99
|
success: boolean;
|
|
@@ -166,7 +166,7 @@ export declare class WalletAuthAPI {
|
|
|
166
166
|
registryChain: string;
|
|
167
167
|
registryAddr: string;
|
|
168
168
|
}[];
|
|
169
|
-
next?: string | undefined;
|
|
169
|
+
next?: string | null | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
saveTool(body: WalletAuthRequest<"save_tool">): Promise<{
|
|
172
172
|
id: string;
|
|
@@ -197,15 +197,19 @@ export declare class WalletAuthAPI {
|
|
|
197
197
|
}>;
|
|
198
198
|
saveSelfMintDropItem(slug: string, body: WalletAuthRequest<"save_self_mint_drop_item">): Promise<{
|
|
199
199
|
to: string;
|
|
200
|
+
from: string;
|
|
200
201
|
data: string;
|
|
201
202
|
value: string;
|
|
202
203
|
chain: string;
|
|
204
|
+
tokenId: string;
|
|
203
205
|
}>;
|
|
204
206
|
updateSelfMintDropItem(slug: string, tokenId: string | number, body: WalletAuthRequest<"update_self_mint_drop_item">): Promise<{
|
|
205
207
|
to: string;
|
|
208
|
+
from: string;
|
|
206
209
|
data: string;
|
|
207
210
|
value: string;
|
|
208
211
|
chain: string;
|
|
212
|
+
tokenId: string;
|
|
209
213
|
}>;
|
|
210
214
|
updateDropItem(slug: string, tokenId: string | number, body: WalletAuthRequest<"update_drop_item">): Promise<{
|
|
211
215
|
tokenId: string;
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* A missing or malformed suffix is ignored rather than raised. Attribution is
|
|
16
16
|
* optional by design and must never be the reason a fill fails.
|
|
17
17
|
*/
|
|
18
|
-
export declare function appendCalldataSuffix(calldata: string, suffix: string | undefined): string;
|
|
18
|
+
export declare function appendCalldataSuffix(calldata: string, suffix: string | null | undefined): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../../src/orders/attribution.ts"],"names":[],"mappings":";;AAoBA,oDAQC;AA5BD,wEAAwE;AACxE,MAAM,uBAAuB,GAAG,kBAAkB,CAAA;AAElD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,oBAAoB,CAClC,QAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../../src/orders/attribution.ts"],"names":[],"mappings":";;AAoBA,oDAQC;AA5BD,wEAAwE;AACxE,MAAM,uBAAuB,GAAG,kBAAkB,CAAA;AAElD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,oBAAoB,CAClC,QAAgB,EAChB,MAAiC;IAEjC,IAAI,CAAC,MAAM,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QACrD,OAAO,QAAQ,CAAA;IACjB,CAAC;IACD,OAAO,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACnC,CAAC"}
|
package/lib/sdk/base.d.ts
CHANGED
|
@@ -281,10 +281,10 @@ export declare class BaseOpenSeaSDK {
|
|
|
281
281
|
}): Promise<{
|
|
282
282
|
transactions: {
|
|
283
283
|
chain: string;
|
|
284
|
-
to?: string | undefined;
|
|
284
|
+
to?: string | null | undefined;
|
|
285
285
|
data: string;
|
|
286
|
-
value?: string | undefined;
|
|
287
|
-
valueHex?: string | undefined;
|
|
286
|
+
value?: string | null | undefined;
|
|
287
|
+
valueHex?: string | null | undefined;
|
|
288
288
|
svm?: {
|
|
289
289
|
from: string;
|
|
290
290
|
instructions: {
|
|
@@ -294,11 +294,17 @@ export declare class BaseOpenSeaSDK {
|
|
|
294
294
|
signer: boolean;
|
|
295
295
|
writable: boolean;
|
|
296
296
|
}[];
|
|
297
|
-
data?: string | undefined;
|
|
297
|
+
data?: string | null | undefined;
|
|
298
298
|
}[];
|
|
299
299
|
addressLookupTables: string[];
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
transactionConfig?: {
|
|
301
|
+
priorityFeeLamports?: string | null | undefined;
|
|
302
|
+
computeUnitLimit?: number | null | undefined;
|
|
303
|
+
loadedAccountsDataSizeLimit?: number | null | undefined;
|
|
304
|
+
heapSizeBytes?: number | null | undefined;
|
|
305
|
+
} | null | undefined;
|
|
306
|
+
} | null | undefined;
|
|
307
|
+
gasLimit?: string | null | undefined;
|
|
302
308
|
}[];
|
|
303
309
|
}>;
|
|
304
310
|
/** Returns whether an order is fulfillable. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensea/sdk",
|
|
3
|
-
"version": "12.9.
|
|
3
|
+
"version": "12.9.2",
|
|
4
4
|
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs, tokens, and our marketplace data",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "OpenSea Developers",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"types": "lib/index.d.ts",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@noble/hashes": "^2.0.1",
|
|
50
|
-
"@opensea/api-types": "^0.
|
|
50
|
+
"@opensea/api-types": "^0.13.0",
|
|
51
51
|
"@opensea/seaport-js": "^4.2.0",
|
|
52
52
|
"ethers": "^6.16.0"
|
|
53
53
|
},
|
|
@@ -20,7 +20,7 @@ const CALLDATA_SUFFIX_PATTERN = /^0x[0-9a-f]{8}$/i
|
|
|
20
20
|
*/
|
|
21
21
|
export function appendCalldataSuffix(
|
|
22
22
|
calldata: string,
|
|
23
|
-
suffix: string | undefined,
|
|
23
|
+
suffix: string | null | undefined,
|
|
24
24
|
): string {
|
|
25
25
|
if (!suffix || !CALLDATA_SUFFIX_PATTERN.test(suffix)) {
|
|
26
26
|
return calldata
|