@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
@@ -0,0 +1,317 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC20ABI = void 0;
4
+ var ERC20ABI = [
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: "spender",
18
+ type: "address",
19
+ },
20
+ {
21
+ indexed: false,
22
+ internalType: "uint256",
23
+ name: "amount",
24
+ type: "uint256",
25
+ },
26
+ ],
27
+ name: "Approval",
28
+ type: "event",
29
+ },
30
+ {
31
+ anonymous: false,
32
+ inputs: [
33
+ {
34
+ indexed: true,
35
+ internalType: "address",
36
+ name: "from",
37
+ type: "address",
38
+ },
39
+ {
40
+ indexed: true,
41
+ internalType: "address",
42
+ name: "to",
43
+ type: "address",
44
+ },
45
+ {
46
+ indexed: false,
47
+ internalType: "uint256",
48
+ name: "amount",
49
+ type: "uint256",
50
+ },
51
+ ],
52
+ name: "Transfer",
53
+ type: "event",
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: "DOMAIN_SEPARATOR",
58
+ outputs: [
59
+ {
60
+ internalType: "bytes32",
61
+ name: "",
62
+ type: "bytes32",
63
+ },
64
+ ],
65
+ stateMutability: "view",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "PERMIT_TYPEHASH",
71
+ outputs: [
72
+ {
73
+ internalType: "bytes32",
74
+ name: "",
75
+ type: "bytes32",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "address",
85
+ name: "",
86
+ type: "address",
87
+ },
88
+ {
89
+ internalType: "address",
90
+ name: "",
91
+ type: "address",
92
+ },
93
+ ],
94
+ name: "allowance",
95
+ outputs: [
96
+ {
97
+ internalType: "uint256",
98
+ name: "",
99
+ type: "uint256",
100
+ },
101
+ ],
102
+ stateMutability: "view",
103
+ type: "function",
104
+ },
105
+ {
106
+ inputs: [
107
+ {
108
+ internalType: "address",
109
+ name: "spender",
110
+ type: "address",
111
+ },
112
+ {
113
+ internalType: "uint256",
114
+ name: "amount",
115
+ type: "uint256",
116
+ },
117
+ ],
118
+ name: "approve",
119
+ outputs: [
120
+ {
121
+ internalType: "bool",
122
+ name: "",
123
+ type: "bool",
124
+ },
125
+ ],
126
+ stateMutability: "nonpayable",
127
+ type: "function",
128
+ },
129
+ {
130
+ inputs: [
131
+ {
132
+ internalType: "address",
133
+ name: "",
134
+ type: "address",
135
+ },
136
+ ],
137
+ name: "balanceOf",
138
+ outputs: [
139
+ {
140
+ internalType: "uint256",
141
+ name: "",
142
+ type: "uint256",
143
+ },
144
+ ],
145
+ stateMutability: "view",
146
+ type: "function",
147
+ },
148
+ {
149
+ inputs: [],
150
+ name: "decimals",
151
+ outputs: [
152
+ {
153
+ internalType: "uint8",
154
+ name: "",
155
+ type: "uint8",
156
+ },
157
+ ],
158
+ stateMutability: "view",
159
+ type: "function",
160
+ },
161
+ {
162
+ inputs: [],
163
+ name: "name",
164
+ outputs: [
165
+ {
166
+ internalType: "string",
167
+ name: "",
168
+ type: "string",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "address",
178
+ name: "",
179
+ type: "address",
180
+ },
181
+ ],
182
+ name: "nonces",
183
+ outputs: [
184
+ {
185
+ internalType: "uint256",
186
+ name: "",
187
+ type: "uint256",
188
+ },
189
+ ],
190
+ stateMutability: "view",
191
+ type: "function",
192
+ },
193
+ {
194
+ inputs: [
195
+ {
196
+ internalType: "address",
197
+ name: "owner",
198
+ type: "address",
199
+ },
200
+ {
201
+ internalType: "address",
202
+ name: "spender",
203
+ type: "address",
204
+ },
205
+ {
206
+ internalType: "uint256",
207
+ name: "value",
208
+ type: "uint256",
209
+ },
210
+ {
211
+ internalType: "uint256",
212
+ name: "deadline",
213
+ type: "uint256",
214
+ },
215
+ {
216
+ internalType: "uint8",
217
+ name: "v",
218
+ type: "uint8",
219
+ },
220
+ {
221
+ internalType: "bytes32",
222
+ name: "r",
223
+ type: "bytes32",
224
+ },
225
+ {
226
+ internalType: "bytes32",
227
+ name: "s",
228
+ type: "bytes32",
229
+ },
230
+ ],
231
+ name: "permit",
232
+ outputs: [],
233
+ stateMutability: "nonpayable",
234
+ type: "function",
235
+ },
236
+ {
237
+ inputs: [],
238
+ name: "symbol",
239
+ outputs: [
240
+ {
241
+ internalType: "string",
242
+ name: "",
243
+ type: "string",
244
+ },
245
+ ],
246
+ stateMutability: "view",
247
+ type: "function",
248
+ },
249
+ {
250
+ inputs: [],
251
+ name: "totalSupply",
252
+ outputs: [
253
+ {
254
+ internalType: "uint256",
255
+ name: "",
256
+ type: "uint256",
257
+ },
258
+ ],
259
+ stateMutability: "view",
260
+ type: "function",
261
+ },
262
+ {
263
+ inputs: [
264
+ {
265
+ internalType: "address",
266
+ name: "to",
267
+ type: "address",
268
+ },
269
+ {
270
+ internalType: "uint256",
271
+ name: "amount",
272
+ type: "uint256",
273
+ },
274
+ ],
275
+ name: "transfer",
276
+ outputs: [
277
+ {
278
+ internalType: "bool",
279
+ name: "",
280
+ type: "bool",
281
+ },
282
+ ],
283
+ stateMutability: "nonpayable",
284
+ type: "function",
285
+ },
286
+ {
287
+ inputs: [
288
+ {
289
+ internalType: "address",
290
+ name: "from",
291
+ type: "address",
292
+ },
293
+ {
294
+ internalType: "address",
295
+ name: "to",
296
+ type: "address",
297
+ },
298
+ {
299
+ internalType: "uint256",
300
+ name: "amount",
301
+ type: "uint256",
302
+ },
303
+ ],
304
+ name: "transferFrom",
305
+ outputs: [
306
+ {
307
+ internalType: "bool",
308
+ name: "",
309
+ type: "bool",
310
+ },
311
+ ],
312
+ stateMutability: "nonpayable",
313
+ type: "function",
314
+ },
315
+ ];
316
+ exports.ERC20ABI = ERC20ABI;
317
+ //# sourceMappingURL=ERC20.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ERC20.js","sourceRoot":"","sources":["../../src/abi/ERC20.ts"],"names":[],"mappings":";;;AAAA,IAAM,QAAQ,GAAG;IACf;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;g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C721ABI: ({
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 { ERC721ABI };
@@ -0,0 +1,337 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC721ABI = void 0;
4
+ var ERC721ABI = [
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: "spender",
18
+ type: "address",
19
+ },
20
+ {
21
+ indexed: true,
22
+ internalType: "uint256",
23
+ name: "id",
24
+ type: "uint256",
25
+ },
26
+ ],
27
+ name: "Approval",
28
+ type: "event",
29
+ },
30
+ {
31
+ anonymous: false,
32
+ inputs: [
33
+ {
34
+ indexed: true,
35
+ internalType: "address",
36
+ name: "owner",
37
+ type: "address",
38
+ },
39
+ {
40
+ indexed: true,
41
+ internalType: "address",
42
+ name: "operator",
43
+ type: "address",
44
+ },
45
+ {
46
+ indexed: false,
47
+ internalType: "bool",
48
+ name: "approved",
49
+ type: "bool",
50
+ },
51
+ ],
52
+ name: "ApprovalForAll",
53
+ type: "event",
54
+ },
55
+ {
56
+ anonymous: false,
57
+ inputs: [
58
+ {
59
+ indexed: true,
60
+ internalType: "address",
61
+ name: "from",
62
+ type: "address",
63
+ },
64
+ {
65
+ indexed: true,
66
+ internalType: "address",
67
+ name: "to",
68
+ type: "address",
69
+ },
70
+ {
71
+ indexed: true,
72
+ internalType: "uint256",
73
+ name: "id",
74
+ type: "uint256",
75
+ },
76
+ ],
77
+ name: "Transfer",
78
+ type: "event",
79
+ },
80
+ {
81
+ inputs: [
82
+ {
83
+ internalType: "address",
84
+ name: "spender",
85
+ type: "address",
86
+ },
87
+ {
88
+ internalType: "uint256",
89
+ name: "id",
90
+ type: "uint256",
91
+ },
92
+ ],
93
+ name: "approve",
94
+ outputs: [],
95
+ stateMutability: "nonpayable",
96
+ type: "function",
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: "address",
102
+ name: "",
103
+ type: "address",
104
+ },
105
+ ],
106
+ name: "balanceOf",
107
+ outputs: [
108
+ {
109
+ internalType: "uint256",
110
+ name: "",
111
+ type: "uint256",
112
+ },
113
+ ],
114
+ stateMutability: "view",
115
+ type: "function",
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: "uint256",
121
+ name: "",
122
+ type: "uint256",
123
+ },
124
+ ],
125
+ name: "getApproved",
126
+ outputs: [
127
+ {
128
+ internalType: "address",
129
+ name: "",
130
+ type: "address",
131
+ },
132
+ ],
133
+ stateMutability: "view",
134
+ type: "function",
135
+ },
136
+ {
137
+ inputs: [
138
+ {
139
+ internalType: "address",
140
+ name: "",
141
+ type: "address",
142
+ },
143
+ {
144
+ internalType: "address",
145
+ name: "",
146
+ type: "address",
147
+ },
148
+ ],
149
+ name: "isApprovedForAll",
150
+ outputs: [
151
+ {
152
+ internalType: "bool",
153
+ name: "",
154
+ type: "bool",
155
+ },
156
+ ],
157
+ stateMutability: "view",
158
+ type: "function",
159
+ },
160
+ {
161
+ inputs: [],
162
+ name: "name",
163
+ outputs: [
164
+ {
165
+ internalType: "string",
166
+ name: "",
167
+ type: "string",
168
+ },
169
+ ],
170
+ stateMutability: "view",
171
+ type: "function",
172
+ },
173
+ {
174
+ inputs: [
175
+ {
176
+ internalType: "uint256",
177
+ name: "",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ name: "ownerOf",
182
+ outputs: [
183
+ {
184
+ internalType: "address",
185
+ name: "",
186
+ type: "address",
187
+ },
188
+ ],
189
+ stateMutability: "view",
190
+ type: "function",
191
+ },
192
+ {
193
+ inputs: [
194
+ {
195
+ internalType: "address",
196
+ name: "from",
197
+ type: "address",
198
+ },
199
+ {
200
+ internalType: "address",
201
+ name: "to",
202
+ type: "address",
203
+ },
204
+ {
205
+ internalType: "uint256",
206
+ name: "id",
207
+ type: "uint256",
208
+ },
209
+ ],
210
+ name: "safeTransferFrom",
211
+ outputs: [],
212
+ stateMutability: "nonpayable",
213
+ type: "function",
214
+ },
215
+ {
216
+ inputs: [
217
+ {
218
+ internalType: "address",
219
+ name: "from",
220
+ type: "address",
221
+ },
222
+ {
223
+ internalType: "address",
224
+ name: "to",
225
+ type: "address",
226
+ },
227
+ {
228
+ internalType: "uint256",
229
+ name: "id",
230
+ type: "uint256",
231
+ },
232
+ {
233
+ internalType: "bytes",
234
+ name: "data",
235
+ type: "bytes",
236
+ },
237
+ ],
238
+ name: "safeTransferFrom",
239
+ outputs: [],
240
+ stateMutability: "nonpayable",
241
+ type: "function",
242
+ },
243
+ {
244
+ inputs: [
245
+ {
246
+ internalType: "address",
247
+ name: "operator",
248
+ type: "address",
249
+ },
250
+ {
251
+ internalType: "bool",
252
+ name: "approved",
253
+ type: "bool",
254
+ },
255
+ ],
256
+ name: "setApprovalForAll",
257
+ outputs: [],
258
+ stateMutability: "nonpayable",
259
+ type: "function",
260
+ },
261
+ {
262
+ inputs: [
263
+ {
264
+ internalType: "bytes4",
265
+ name: "interfaceId",
266
+ type: "bytes4",
267
+ },
268
+ ],
269
+ name: "supportsInterface",
270
+ outputs: [
271
+ {
272
+ internalType: "bool",
273
+ name: "",
274
+ type: "bool",
275
+ },
276
+ ],
277
+ stateMutability: "pure",
278
+ type: "function",
279
+ },
280
+ {
281
+ inputs: [],
282
+ name: "symbol",
283
+ outputs: [
284
+ {
285
+ internalType: "string",
286
+ name: "",
287
+ type: "string",
288
+ },
289
+ ],
290
+ stateMutability: "view",
291
+ type: "function",
292
+ },
293
+ {
294
+ inputs: [
295
+ {
296
+ internalType: "uint256",
297
+ name: "id",
298
+ type: "uint256",
299
+ },
300
+ ],
301
+ name: "tokenURI",
302
+ outputs: [
303
+ {
304
+ internalType: "string",
305
+ name: "",
306
+ type: "string",
307
+ },
308
+ ],
309
+ stateMutability: "view",
310
+ type: "function",
311
+ },
312
+ {
313
+ inputs: [
314
+ {
315
+ internalType: "address",
316
+ name: "from",
317
+ type: "address",
318
+ },
319
+ {
320
+ internalType: "address",
321
+ name: "to",
322
+ type: "address",
323
+ },
324
+ {
325
+ internalType: "uint256",
326
+ name: "id",
327
+ type: "uint256",
328
+ },
329
+ ],
330
+ name: "transferFrom",
331
+ outputs: [],
332
+ stateMutability: "nonpayable",
333
+ type: "function",
334
+ },
335
+ ];
336
+ exports.ERC721ABI = ERC721ABI;
337
+ //# sourceMappingURL=ERC721.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ERC721.js","sourceRoot":"","sources":["../../src/abi/ERC721.ts"],"names":[],"mappings":";;;AAAA,IAAM,SAAS,GAAG;IAChB;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,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OA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