@opensea/seaport-js 1.0.0 → 1.0.1-beta.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 (79) hide show
  1. package/lib/abi/ERC1155.d.ts +29 -29
  2. package/lib/abi/ERC20.d.ts +29 -29
  3. package/lib/abi/ERC721.d.ts +29 -29
  4. package/lib/abi/Seaport.d.ts +112 -112
  5. package/lib/constants.d.ts +49 -49
  6. package/lib/index.d.ts +2 -2
  7. package/lib/index.esm.mjs +2 -0
  8. package/lib/index.esm.mjs.map +1 -0
  9. package/lib/index.js +2 -6
  10. package/lib/index.js.map +1 -1
  11. package/lib/index.modern.mjs +2 -0
  12. package/lib/index.modern.mjs.map +1 -0
  13. package/lib/index.umd.js +2 -0
  14. package/lib/index.umd.js.map +1 -0
  15. package/lib/seaport.d.ts +181 -181
  16. package/lib/types.d.ts +207 -207
  17. package/lib/utils/approval.d.ts +9 -9
  18. package/lib/utils/balance.d.ts +4 -4
  19. package/lib/utils/balanceAndApprovalCheck.d.ts +108 -108
  20. package/lib/utils/criteria.d.ts +13 -14
  21. package/lib/utils/fulfill.d.ts +84 -84
  22. package/lib/utils/gcd.d.ts +3 -3
  23. package/lib/utils/item.d.ts +30 -29
  24. package/lib/utils/match.d.ts +49 -49
  25. package/lib/utils/merkletree.d.ts +11 -11
  26. package/lib/utils/order.d.ts +37 -37
  27. package/lib/utils/usecase.d.ts +4 -4
  28. package/package.json +4 -2
  29. package/lib/abi/ERC1155.js +0 -319
  30. package/lib/abi/ERC1155.js.map +0 -1
  31. package/lib/abi/ERC20.js +0 -317
  32. package/lib/abi/ERC20.js.map +0 -1
  33. package/lib/abi/ERC721.js +0 -337
  34. package/lib/abi/ERC721.js.map +0 -1
  35. package/lib/abi/Seaport.js +0 -2585
  36. package/lib/abi/Seaport.js.map +0 -1
  37. package/lib/constants.js +0 -73
  38. package/lib/constants.js.map +0 -1
  39. package/lib/seaport.js +0 -720
  40. package/lib/seaport.js.map +0 -1
  41. package/lib/typechain/ERC1155.d.ts +0 -189
  42. package/lib/typechain/ERC1155.js +0 -3
  43. package/lib/typechain/ERC1155.js.map +0 -1
  44. package/lib/typechain/ERC20.d.ts +0 -209
  45. package/lib/typechain/ERC20.js +0 -3
  46. package/lib/typechain/ERC20.js.map +0 -1
  47. package/lib/typechain/ERC721.d.ts +0 -220
  48. package/lib/typechain/ERC721.js +0 -3
  49. package/lib/typechain/ERC721.js.map +0 -1
  50. package/lib/typechain/Seaport.d.ts +0 -686
  51. package/lib/typechain/Seaport.js +0 -3
  52. package/lib/typechain/Seaport.js.map +0 -1
  53. package/lib/typechain/common.d.ts +0 -21
  54. package/lib/typechain/common.js +0 -3
  55. package/lib/typechain/common.js.map +0 -1
  56. package/lib/types.js +0 -3
  57. package/lib/types.js.map +0 -1
  58. package/lib/utils/approval.js +0 -108
  59. package/lib/utils/approval.js.map +0 -1
  60. package/lib/utils/balance.js +0 -86
  61. package/lib/utils/balance.js.map +0 -1
  62. package/lib/utils/balanceAndApprovalCheck.js +0 -322
  63. package/lib/utils/balanceAndApprovalCheck.js.map +0 -1
  64. package/lib/utils/criteria.js +0 -91
  65. package/lib/utils/criteria.js.map +0 -1
  66. package/lib/utils/fulfill.js +0 -573
  67. package/lib/utils/fulfill.js.map +0 -1
  68. package/lib/utils/gcd.js +0 -25
  69. package/lib/utils/gcd.js.map +0 -1
  70. package/lib/utils/item.js +0 -136
  71. package/lib/utils/item.js.map +0 -1
  72. package/lib/utils/match.js +0 -56
  73. package/lib/utils/match.js.map +0 -1
  74. package/lib/utils/merkletree.js +0 -32
  75. package/lib/utils/merkletree.js.map +0 -1
  76. package/lib/utils/order.js +0 -224
  77. package/lib/utils/order.js.map +0 -1
  78. package/lib/utils/usecase.js +0 -158
  79. package/lib/utils/usecase.js.map +0 -1
@@ -1,29 +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 };
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 };
@@ -1,29 +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 };
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 };
@@ -1,29 +1,29 @@
1
- declare const ERC721ABI: ({
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 };
1
+ declare const ERC721ABI: ({
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 };
@@ -1,112 +1,112 @@
1
- declare const SeaportABI: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- stateMutability: string;
8
- type: string;
9
- name?: undefined;
10
- anonymous?: undefined;
11
- outputs?: undefined;
12
- } | {
13
- inputs: {
14
- internalType: string;
15
- name: string;
16
- type: string;
17
- }[];
18
- name: string;
19
- type: string;
20
- stateMutability?: undefined;
21
- anonymous?: undefined;
22
- outputs?: undefined;
23
- } | {
24
- anonymous: boolean;
25
- inputs: ({
26
- indexed: boolean;
27
- internalType: string;
28
- name: string;
29
- type: string;
30
- components?: undefined;
31
- } | {
32
- components: {
33
- internalType: string;
34
- name: string;
35
- type: string;
36
- }[];
37
- indexed: boolean;
38
- internalType: string;
39
- name: string;
40
- type: string;
41
- })[];
42
- name: string;
43
- type: string;
44
- stateMutability?: undefined;
45
- outputs?: undefined;
46
- } | {
47
- inputs: ({
48
- components: ({
49
- components: ({
50
- internalType: string;
51
- name: string;
52
- type: string;
53
- components?: undefined;
54
- } | {
55
- components: {
56
- internalType: string;
57
- name: string;
58
- type: string;
59
- }[];
60
- internalType: string;
61
- name: string;
62
- type: string;
63
- })[];
64
- internalType: string;
65
- name: string;
66
- type: string;
67
- } | {
68
- internalType: string;
69
- name: string;
70
- type: string;
71
- components?: undefined;
72
- })[];
73
- internalType: string;
74
- name: string;
75
- type: string;
76
- } | {
77
- internalType: string;
78
- name: string;
79
- type: string;
80
- components?: undefined;
81
- })[];
82
- name: string;
83
- outputs: ({
84
- internalType: string;
85
- name: string;
86
- type: string;
87
- components?: undefined;
88
- } | {
89
- components: ({
90
- components: {
91
- internalType: string;
92
- name: string;
93
- type: string;
94
- }[];
95
- internalType: string;
96
- name: string;
97
- type: string;
98
- } | {
99
- internalType: string;
100
- name: string;
101
- type: string;
102
- components?: undefined;
103
- })[];
104
- internalType: string;
105
- name: string;
106
- type: string;
107
- })[];
108
- stateMutability: string;
109
- type: string;
110
- anonymous?: undefined;
111
- })[];
112
- export { SeaportABI };
1
+ declare const SeaportABI: ({
2
+ inputs: {
3
+ internalType: string;
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ stateMutability: string;
8
+ type: string;
9
+ name?: undefined;
10
+ anonymous?: undefined;
11
+ outputs?: undefined;
12
+ } | {
13
+ inputs: {
14
+ internalType: string;
15
+ name: string;
16
+ type: string;
17
+ }[];
18
+ name: string;
19
+ type: string;
20
+ stateMutability?: undefined;
21
+ anonymous?: undefined;
22
+ outputs?: undefined;
23
+ } | {
24
+ anonymous: boolean;
25
+ inputs: ({
26
+ indexed: boolean;
27
+ internalType: string;
28
+ name: string;
29
+ type: string;
30
+ components?: undefined;
31
+ } | {
32
+ components: {
33
+ internalType: string;
34
+ name: string;
35
+ type: string;
36
+ }[];
37
+ indexed: boolean;
38
+ internalType: string;
39
+ name: string;
40
+ type: string;
41
+ })[];
42
+ name: string;
43
+ type: string;
44
+ stateMutability?: undefined;
45
+ outputs?: undefined;
46
+ } | {
47
+ inputs: ({
48
+ components: ({
49
+ components: ({
50
+ internalType: string;
51
+ name: string;
52
+ type: string;
53
+ components?: undefined;
54
+ } | {
55
+ components: {
56
+ internalType: string;
57
+ name: string;
58
+ type: string;
59
+ }[];
60
+ internalType: string;
61
+ name: string;
62
+ type: string;
63
+ })[];
64
+ internalType: string;
65
+ name: string;
66
+ type: string;
67
+ } | {
68
+ internalType: string;
69
+ name: string;
70
+ type: string;
71
+ components?: undefined;
72
+ })[];
73
+ internalType: string;
74
+ name: string;
75
+ type: string;
76
+ } | {
77
+ internalType: string;
78
+ name: string;
79
+ type: string;
80
+ components?: undefined;
81
+ })[];
82
+ name: string;
83
+ outputs: ({
84
+ internalType: string;
85
+ name: string;
86
+ type: string;
87
+ components?: undefined;
88
+ } | {
89
+ components: ({
90
+ components: {
91
+ internalType: string;
92
+ name: string;
93
+ type: string;
94
+ }[];
95
+ internalType: string;
96
+ name: string;
97
+ type: string;
98
+ } | {
99
+ internalType: string;
100
+ name: string;
101
+ type: string;
102
+ components?: undefined;
103
+ })[];
104
+ internalType: string;
105
+ name: string;
106
+ type: string;
107
+ })[];
108
+ stateMutability: string;
109
+ type: string;
110
+ anonymous?: undefined;
111
+ })[];
112
+ export { SeaportABI };
@@ -1,49 +1,49 @@
1
- import { BigNumber } from "ethers";
2
- export declare const SEAPORT_CONTRACT_NAME = "Seaport";
3
- export declare const SEAPORT_CONTRACT_VERSION = "1.1";
4
- export declare const EIP_712_ORDER_TYPE: {
5
- OrderComponents: {
6
- name: string;
7
- type: string;
8
- }[];
9
- OfferItem: {
10
- name: string;
11
- type: string;
12
- }[];
13
- ConsiderationItem: {
14
- name: string;
15
- type: string;
16
- }[];
17
- };
18
- export declare enum OrderType {
19
- FULL_OPEN = 0,
20
- PARTIAL_OPEN = 1,
21
- FULL_RESTRICTED = 2,
22
- PARTIAL_RESTRICTED = 3
23
- }
24
- export declare enum ItemType {
25
- NATIVE = 0,
26
- ERC20 = 1,
27
- ERC721 = 2,
28
- ERC1155 = 3,
29
- ERC721_WITH_CRITERIA = 4,
30
- ERC1155_WITH_CRITERIA = 5
31
- }
32
- export declare enum Side {
33
- OFFER = 0,
34
- CONSIDERATION = 1
35
- }
36
- export declare type NftItemType = ItemType.ERC721 | ItemType.ERC1155 | ItemType.ERC721_WITH_CRITERIA | ItemType.ERC1155_WITH_CRITERIA;
37
- export declare enum BasicOrderRouteType {
38
- ETH_TO_ERC721 = 0,
39
- ETH_TO_ERC1155 = 1,
40
- ERC20_TO_ERC721 = 2,
41
- ERC20_TO_ERC1155 = 3,
42
- ERC721_TO_ERC20 = 4,
43
- ERC1155_TO_ERC20 = 5
44
- }
45
- export declare const MAX_INT: BigNumber;
46
- export declare const ONE_HUNDRED_PERCENT_BP = 10000;
47
- export declare const NO_CONDUIT = "0x0000000000000000000000000000000000000000000000000000000000000000";
48
- export declare const KNOWN_CONDUIT_KEYS_TO_CONDUIT: {};
49
- export declare const CROSS_CHAIN_SEAPORT_ADDRESS = "0x00000000006c3852cbef3e08e8df289169ede581";
1
+ import { BigNumber } from "ethers";
2
+ export declare const SEAPORT_CONTRACT_NAME = "Seaport";
3
+ export declare const SEAPORT_CONTRACT_VERSION = "1.1";
4
+ export declare const EIP_712_ORDER_TYPE: {
5
+ OrderComponents: {
6
+ name: string;
7
+ type: string;
8
+ }[];
9
+ OfferItem: {
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ ConsiderationItem: {
14
+ name: string;
15
+ type: string;
16
+ }[];
17
+ };
18
+ export declare enum OrderType {
19
+ FULL_OPEN = 0,
20
+ PARTIAL_OPEN = 1,
21
+ FULL_RESTRICTED = 2,
22
+ PARTIAL_RESTRICTED = 3
23
+ }
24
+ export declare enum ItemType {
25
+ NATIVE = 0,
26
+ ERC20 = 1,
27
+ ERC721 = 2,
28
+ ERC1155 = 3,
29
+ ERC721_WITH_CRITERIA = 4,
30
+ ERC1155_WITH_CRITERIA = 5
31
+ }
32
+ export declare enum Side {
33
+ OFFER = 0,
34
+ CONSIDERATION = 1
35
+ }
36
+ export declare type NftItemType = ItemType.ERC721 | ItemType.ERC1155 | ItemType.ERC721_WITH_CRITERIA | ItemType.ERC1155_WITH_CRITERIA;
37
+ export declare enum BasicOrderRouteType {
38
+ ETH_TO_ERC721 = 0,
39
+ ETH_TO_ERC1155 = 1,
40
+ ERC20_TO_ERC721 = 2,
41
+ ERC20_TO_ERC1155 = 3,
42
+ ERC721_TO_ERC20 = 4,
43
+ ERC1155_TO_ERC20 = 5
44
+ }
45
+ export declare const MAX_INT: BigNumber;
46
+ export declare const ONE_HUNDRED_PERCENT_BP = 10000;
47
+ export declare const NO_CONDUIT = "0x0000000000000000000000000000000000000000000000000000000000000000";
48
+ export declare const KNOWN_CONDUIT_KEYS_TO_CONDUIT: {};
49
+ export declare const CROSS_CHAIN_SEAPORT_ADDRESS = "0x00000000006c3852cbef3e08e8df289169ede581";
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Seaport } from "./seaport";
2
- export { Seaport };
1
+ import { Seaport } from "./seaport";
2
+ export { Seaport };