@opensea/seaport-js 1.0.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.
Files changed (74) hide show
  1. package/README.md +45 -0
  2. package/lib/abi/ERC1155.d.ts +29 -0
  3. package/lib/abi/ERC1155.js +319 -0
  4. package/lib/abi/ERC1155.js.map +1 -0
  5. package/lib/abi/ERC20.d.ts +29 -0
  6. package/lib/abi/ERC20.js +317 -0
  7. package/lib/abi/ERC20.js.map +1 -0
  8. package/lib/abi/ERC721.d.ts +29 -0
  9. package/lib/abi/ERC721.js +337 -0
  10. package/lib/abi/ERC721.js.map +1 -0
  11. package/lib/abi/Seaport.d.ts +112 -0
  12. package/lib/abi/Seaport.js +2585 -0
  13. package/lib/abi/Seaport.js.map +1 -0
  14. package/lib/constants.d.ts +49 -0
  15. package/lib/constants.js +73 -0
  16. package/lib/constants.js.map +1 -0
  17. package/lib/index.d.ts +2 -0
  18. package/lib/index.js +6 -0
  19. package/lib/index.js.map +1 -0
  20. package/lib/seaport.d.ts +181 -0
  21. package/lib/seaport.js +720 -0
  22. package/lib/seaport.js.map +1 -0
  23. package/lib/typechain/ERC1155.d.ts +189 -0
  24. package/lib/typechain/ERC1155.js +3 -0
  25. package/lib/typechain/ERC1155.js.map +1 -0
  26. package/lib/typechain/ERC20.d.ts +209 -0
  27. package/lib/typechain/ERC20.js +3 -0
  28. package/lib/typechain/ERC20.js.map +1 -0
  29. package/lib/typechain/ERC721.d.ts +220 -0
  30. package/lib/typechain/ERC721.js +3 -0
  31. package/lib/typechain/ERC721.js.map +1 -0
  32. package/lib/typechain/Seaport.d.ts +686 -0
  33. package/lib/typechain/Seaport.js +3 -0
  34. package/lib/typechain/Seaport.js.map +1 -0
  35. package/lib/typechain/common.d.ts +21 -0
  36. package/lib/typechain/common.js +3 -0
  37. package/lib/typechain/common.js.map +1 -0
  38. package/lib/types.d.ts +207 -0
  39. package/lib/types.js +3 -0
  40. package/lib/types.js.map +1 -0
  41. package/lib/utils/approval.d.ts +9 -0
  42. package/lib/utils/approval.js +108 -0
  43. package/lib/utils/approval.js.map +1 -0
  44. package/lib/utils/balance.d.ts +4 -0
  45. package/lib/utils/balance.js +86 -0
  46. package/lib/utils/balance.js.map +1 -0
  47. package/lib/utils/balanceAndApprovalCheck.d.ts +108 -0
  48. package/lib/utils/balanceAndApprovalCheck.js +322 -0
  49. package/lib/utils/balanceAndApprovalCheck.js.map +1 -0
  50. package/lib/utils/criteria.d.ts +14 -0
  51. package/lib/utils/criteria.js +91 -0
  52. package/lib/utils/criteria.js.map +1 -0
  53. package/lib/utils/fulfill.d.ts +84 -0
  54. package/lib/utils/fulfill.js +573 -0
  55. package/lib/utils/fulfill.js.map +1 -0
  56. package/lib/utils/gcd.d.ts +3 -0
  57. package/lib/utils/gcd.js +25 -0
  58. package/lib/utils/gcd.js.map +1 -0
  59. package/lib/utils/item.d.ts +29 -0
  60. package/lib/utils/item.js +136 -0
  61. package/lib/utils/item.js.map +1 -0
  62. package/lib/utils/match.d.ts +54 -0
  63. package/lib/utils/match.js +56 -0
  64. package/lib/utils/match.js.map +1 -0
  65. package/lib/utils/merkletree.d.ts +11 -0
  66. package/lib/utils/merkletree.js +32 -0
  67. package/lib/utils/merkletree.js.map +1 -0
  68. package/lib/utils/order.d.ts +37 -0
  69. package/lib/utils/order.js +224 -0
  70. package/lib/utils/order.js.map +1 -0
  71. package/lib/utils/usecase.d.ts +4 -0
  72. package/lib/utils/usecase.js +158 -0
  73. package/lib/utils/usecase.js.map +1 -0
  74. package/package.json +93 -0
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # Seaport.js
2
+
3
+ [Seaport](https://github.com/ProjectOpenSea/seaport) is a new marketplace protocol for safely and efficiently buying and selling NFTs. This is a JavaScript library intended to make interfacing with the contract reasonable and easy.
4
+
5
+ - [Synopsis](#synopsis)
6
+ - [Installation](#installation)
7
+ - [Getting Started](#getting-started)
8
+ - [Use Cases](#use-cases)
9
+ - [Contributing](#contributing)
10
+
11
+ ## Synopsis
12
+
13
+ This is a JavaScript library to help interface with Seaport. It includes various helper methods and constants that makes interfacing with Seaport easier. These include creating orders, fulfilling orders, doing the necessary balance and approval checks, and more. We recommend taking a look at the [Seaport](https://github.com/ProjectOpenSea/seaport) docs to get a better understanding of how the Seaport marketplace works.
14
+
15
+ ## Installation
16
+
17
+ We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage Node.js versions. Execute `nvm use`, if you have `nvm` installed.
18
+
19
+ Then, in your project, run:
20
+
21
+ ```
22
+ npm install --save @opensea/seaport-js
23
+ ```
24
+
25
+ ## Getting Started
26
+
27
+ Instantiate your instance of seaport using your ethers provider:
28
+
29
+ ```JavaScript
30
+ import { Seaport } from "@opensea/seaport-js";
31
+
32
+ const provider = ethers.getDefaultProvider();
33
+
34
+ const seaport = new Seaport(provider);
35
+ ```
36
+
37
+ Look at the relevant definitions in `seaport.ts` in order to see the different functionality this library offers.
38
+
39
+ ### Use Cases
40
+
41
+ Many of the main core flows return _use cases_. What this means is that if you were to create an order (a la `createOrder`), the library helps perform the necessary balance and approval checks based on the `offer` of the order being created. If the `offerer` requires approvals on one asset contract, the `actions` field of the use case would contain an approval action that the user should execute first in order for the trade to succeed in the future.
42
+
43
+ ## Contributing
44
+
45
+ See [the contributing guide](CONTRIBUTING.md) for detailed instructions on how to get started with this project.
@@ -0,0 +1,29 @@
1
+ declare const ERC1155ABI: ({
2
+ anonymous: boolean;
3
+ inputs: {
4
+ indexed: boolean;
5
+ internalType: string;
6
+ name: string;
7
+ type: string;
8
+ }[];
9
+ name: string;
10
+ type: string;
11
+ outputs?: undefined;
12
+ stateMutability?: undefined;
13
+ } | {
14
+ inputs: {
15
+ internalType: string;
16
+ name: string;
17
+ type: string;
18
+ }[];
19
+ name: string;
20
+ outputs: {
21
+ internalType: string;
22
+ name: string;
23
+ type: string;
24
+ }[];
25
+ stateMutability: string;
26
+ type: string;
27
+ anonymous?: undefined;
28
+ })[];
29
+ export { ERC1155ABI };
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC1155ABI = void 0;
4
+ var ERC1155ABI = [
5
+ {
6
+ anonymous: false,
7
+ inputs: [
8
+ {
9
+ indexed: true,
10
+ internalType: "address",
11
+ name: "owner",
12
+ type: "address",
13
+ },
14
+ {
15
+ indexed: true,
16
+ internalType: "address",
17
+ name: "operator",
18
+ type: "address",
19
+ },
20
+ {
21
+ indexed: false,
22
+ internalType: "bool",
23
+ name: "approved",
24
+ type: "bool",
25
+ },
26
+ ],
27
+ name: "ApprovalForAll",
28
+ type: "event",
29
+ },
30
+ {
31
+ anonymous: false,
32
+ inputs: [
33
+ {
34
+ indexed: true,
35
+ internalType: "address",
36
+ name: "operator",
37
+ type: "address",
38
+ },
39
+ {
40
+ indexed: true,
41
+ internalType: "address",
42
+ name: "from",
43
+ type: "address",
44
+ },
45
+ {
46
+ indexed: true,
47
+ internalType: "address",
48
+ name: "to",
49
+ type: "address",
50
+ },
51
+ {
52
+ indexed: false,
53
+ internalType: "uint256[]",
54
+ name: "ids",
55
+ type: "uint256[]",
56
+ },
57
+ {
58
+ indexed: false,
59
+ internalType: "uint256[]",
60
+ name: "amounts",
61
+ type: "uint256[]",
62
+ },
63
+ ],
64
+ name: "TransferBatch",
65
+ type: "event",
66
+ },
67
+ {
68
+ anonymous: false,
69
+ inputs: [
70
+ {
71
+ indexed: true,
72
+ internalType: "address",
73
+ name: "operator",
74
+ type: "address",
75
+ },
76
+ {
77
+ indexed: true,
78
+ internalType: "address",
79
+ name: "from",
80
+ type: "address",
81
+ },
82
+ {
83
+ indexed: true,
84
+ internalType: "address",
85
+ name: "to",
86
+ type: "address",
87
+ },
88
+ {
89
+ indexed: false,
90
+ internalType: "uint256",
91
+ name: "id",
92
+ type: "uint256",
93
+ },
94
+ {
95
+ indexed: false,
96
+ internalType: "uint256",
97
+ name: "amount",
98
+ type: "uint256",
99
+ },
100
+ ],
101
+ name: "TransferSingle",
102
+ type: "event",
103
+ },
104
+ {
105
+ anonymous: false,
106
+ inputs: [
107
+ {
108
+ indexed: false,
109
+ internalType: "string",
110
+ name: "value",
111
+ type: "string",
112
+ },
113
+ {
114
+ indexed: true,
115
+ internalType: "uint256",
116
+ name: "id",
117
+ type: "uint256",
118
+ },
119
+ ],
120
+ name: "URI",
121
+ type: "event",
122
+ },
123
+ {
124
+ inputs: [
125
+ {
126
+ internalType: "address",
127
+ name: "",
128
+ type: "address",
129
+ },
130
+ {
131
+ internalType: "uint256",
132
+ name: "",
133
+ type: "uint256",
134
+ },
135
+ ],
136
+ name: "balanceOf",
137
+ outputs: [
138
+ {
139
+ internalType: "uint256",
140
+ name: "",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ stateMutability: "view",
145
+ type: "function",
146
+ },
147
+ {
148
+ inputs: [
149
+ {
150
+ internalType: "address[]",
151
+ name: "owners",
152
+ type: "address[]",
153
+ },
154
+ {
155
+ internalType: "uint256[]",
156
+ name: "ids",
157
+ type: "uint256[]",
158
+ },
159
+ ],
160
+ name: "balanceOfBatch",
161
+ outputs: [
162
+ {
163
+ internalType: "uint256[]",
164
+ name: "balances",
165
+ type: "uint256[]",
166
+ },
167
+ ],
168
+ stateMutability: "view",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [
173
+ {
174
+ internalType: "address",
175
+ name: "",
176
+ type: "address",
177
+ },
178
+ {
179
+ internalType: "address",
180
+ name: "",
181
+ type: "address",
182
+ },
183
+ ],
184
+ name: "isApprovedForAll",
185
+ outputs: [
186
+ {
187
+ internalType: "bool",
188
+ name: "",
189
+ type: "bool",
190
+ },
191
+ ],
192
+ stateMutability: "view",
193
+ type: "function",
194
+ },
195
+ {
196
+ inputs: [
197
+ {
198
+ internalType: "address",
199
+ name: "from",
200
+ type: "address",
201
+ },
202
+ {
203
+ internalType: "address",
204
+ name: "to",
205
+ type: "address",
206
+ },
207
+ {
208
+ internalType: "uint256[]",
209
+ name: "ids",
210
+ type: "uint256[]",
211
+ },
212
+ {
213
+ internalType: "uint256[]",
214
+ name: "amounts",
215
+ type: "uint256[]",
216
+ },
217
+ {
218
+ internalType: "bytes",
219
+ name: "data",
220
+ type: "bytes",
221
+ },
222
+ ],
223
+ name: "safeBatchTransferFrom",
224
+ outputs: [],
225
+ stateMutability: "nonpayable",
226
+ type: "function",
227
+ },
228
+ {
229
+ inputs: [
230
+ {
231
+ internalType: "address",
232
+ name: "from",
233
+ type: "address",
234
+ },
235
+ {
236
+ internalType: "address",
237
+ name: "to",
238
+ type: "address",
239
+ },
240
+ {
241
+ internalType: "uint256",
242
+ name: "id",
243
+ type: "uint256",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "amount",
248
+ type: "uint256",
249
+ },
250
+ {
251
+ internalType: "bytes",
252
+ name: "data",
253
+ type: "bytes",
254
+ },
255
+ ],
256
+ name: "safeTransferFrom",
257
+ outputs: [],
258
+ stateMutability: "nonpayable",
259
+ type: "function",
260
+ },
261
+ {
262
+ inputs: [
263
+ {
264
+ internalType: "address",
265
+ name: "operator",
266
+ type: "address",
267
+ },
268
+ {
269
+ internalType: "bool",
270
+ name: "approved",
271
+ type: "bool",
272
+ },
273
+ ],
274
+ name: "setApprovalForAll",
275
+ outputs: [],
276
+ stateMutability: "nonpayable",
277
+ type: "function",
278
+ },
279
+ {
280
+ inputs: [
281
+ {
282
+ internalType: "bytes4",
283
+ name: "interfaceId",
284
+ type: "bytes4",
285
+ },
286
+ ],
287
+ name: "supportsInterface",
288
+ outputs: [
289
+ {
290
+ internalType: "bool",
291
+ name: "",
292
+ type: "bool",
293
+ },
294
+ ],
295
+ stateMutability: "pure",
296
+ type: "function",
297
+ },
298
+ {
299
+ inputs: [
300
+ {
301
+ internalType: "uint256",
302
+ name: "id",
303
+ type: "uint256",
304
+ },
305
+ ],
306
+ name: "uri",
307
+ outputs: [
308
+ {
309
+ internalType: "string",
310
+ name: "",
311
+ type: "string",
312
+ },
313
+ ],
314
+ stateMutability: "view",
315
+ type: "function",
316
+ },
317
+ ];
318
+ exports.ERC1155ABI = ERC1155ABI;
319
+ //# sourceMappingURL=ERC1155.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ERC1155.js","sourceRoot":"","sources":["../../src/abi/ERC1155.ts"],"names":[],"mappings":";;;AAAA,IAAM,UAAU,GAAG;IACjB;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,WAAW;gBACzB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,WAAW;aAClB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,WAAW;gBACzB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,WAAW;aAClB;SACF;QACD,IAA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QACzB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,KAAK;QACX,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEO,gCAAU"}
@@ -0,0 +1,29 @@
1
+ declare const ERC20ABI: ({
2
+ anonymous: boolean;
3
+ inputs: {
4
+ indexed: boolean;
5
+ internalType: string;
6
+ name: string;
7
+ type: string;
8
+ }[];
9
+ name: string;
10
+ type: string;
11
+ outputs?: undefined;
12
+ stateMutability?: undefined;
13
+ } | {
14
+ inputs: {
15
+ internalType: string;
16
+ name: string;
17
+ type: string;
18
+ }[];
19
+ name: string;
20
+ outputs: {
21
+ internalType: string;
22
+ name: string;
23
+ type: string;
24
+ }[];
25
+ stateMutability: string;
26
+ type: string;
27
+ anonymous?: undefined;
28
+ })[];
29
+ export { ERC20ABI };