@manifoldxyz/marketplace-sdk 1.0.0-beta.34

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # marketplace-sdk
2
+
3
+ This package contains the core library for interacting with the Manifold marketplace.
4
+
5
+ The marketplace-sdk relies on the Manifold's EthereumProvider (node connection management library)
6
+
7
+ Please see code-comments for a full description of methods.
@@ -0,0 +1,76 @@
1
+ {
2
+ "IdentityVerifierABIv1": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "bytes4",
7
+ "name": "interfaceId",
8
+ "type": "bytes4"
9
+ }
10
+ ],
11
+ "name": "supportsInterface",
12
+ "outputs": [
13
+ {
14
+ "internalType": "bool",
15
+ "name": "",
16
+ "type": "bool"
17
+ }
18
+ ],
19
+ "stateMutability": "view",
20
+ "type": "function"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "identity",
27
+ "type": "address"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "ethAmount",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "verify",
36
+ "outputs": [
37
+ {
38
+ "internalType": "bool",
39
+ "name": "",
40
+ "type": "bool"
41
+ }
42
+ ],
43
+ "stateMutability": "view",
44
+ "type": "function"
45
+ },
46
+ {
47
+ "inputs": [
48
+ {
49
+ "internalType": "address",
50
+ "name": "identity",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "internalType": "address",
55
+ "name": "erc20Address",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "erc20Amount",
61
+ "type": "uint256"
62
+ }
63
+ ],
64
+ "name": "verify",
65
+ "outputs": [
66
+ {
67
+ "internalType": "bool",
68
+ "name": "",
69
+ "type": "bool"
70
+ }
71
+ ],
72
+ "stateMutability": "view",
73
+ "type": "function"
74
+ }
75
+ ]
76
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "IdentityVerifierABIv2": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "bytes4",
7
+ "name": "interfaceId",
8
+ "type": "bytes4"
9
+ }
10
+ ],
11
+ "name": "supportsInterface",
12
+ "outputs": [
13
+ {
14
+ "internalType": "bool",
15
+ "name": "",
16
+ "type": "bool"
17
+ }
18
+ ],
19
+ "stateMutability": "view",
20
+ "type": "function"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "uint40",
26
+ "name": "listingId",
27
+ "type": "uint40"
28
+ },
29
+ {
30
+ "internalType": "address",
31
+ "name": "identity",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "tokenAddress",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "tokenId",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint24",
46
+ "name": "requestCount",
47
+ "type": "uint24"
48
+ },
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "requestAmount",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "internalType": "address",
56
+ "name": "requestERC20",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "internalType": "bytes",
61
+ "name": "data",
62
+ "type": "bytes"
63
+ }
64
+ ],
65
+ "name": "verify",
66
+ "outputs": [
67
+ {
68
+ "internalType": "bool",
69
+ "name": "",
70
+ "type": "bool"
71
+ }
72
+ ],
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ }
76
+ ]
77
+ }
@@ -0,0 +1,136 @@
1
+ {
2
+ "IdentityVerifierViewABIv2": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "bytes4",
7
+ "name": "interfaceId",
8
+ "type": "bytes4"
9
+ }
10
+ ],
11
+ "name": "supportsInterface",
12
+ "outputs": [
13
+ {
14
+ "internalType": "bool",
15
+ "name": "",
16
+ "type": "bool"
17
+ }
18
+ ],
19
+ "stateMutability": "view",
20
+ "type": "function"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "uint40",
26
+ "name": "listingId",
27
+ "type": "uint40"
28
+ },
29
+ {
30
+ "internalType": "address",
31
+ "name": "identity",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "tokenAddress",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "tokenId",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint24",
46
+ "name": "requestCount",
47
+ "type": "uint24"
48
+ },
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "requestAmount",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "internalType": "address",
56
+ "name": "requestERC20",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "internalType": "bytes",
61
+ "name": "data",
62
+ "type": "bytes"
63
+ }
64
+ ],
65
+ "name": "verifyView",
66
+ "outputs": [
67
+ {
68
+ "internalType": "bool",
69
+ "name": "",
70
+ "type": "bool"
71
+ }
72
+ ],
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "marketplaceAddress",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "uint40",
85
+ "name": "listingId",
86
+ "type": "uint40"
87
+ },
88
+ {
89
+ "internalType": "address",
90
+ "name": "identity",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "tokenAddress",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "tokenId",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "internalType": "uint24",
105
+ "name": "requestCount",
106
+ "type": "uint24"
107
+ },
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "requestAmount",
111
+ "type": "uint256"
112
+ },
113
+ {
114
+ "internalType": "address",
115
+ "name": "requestERC20",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "internalType": "bytes",
120
+ "name": "data",
121
+ "type": "bytes"
122
+ }
123
+ ],
124
+ "name": "checkVerify",
125
+ "outputs": [
126
+ {
127
+ "internalType": "bool",
128
+ "name": "",
129
+ "type": "bool"
130
+ }
131
+ ],
132
+ "stateMutability": "view",
133
+ "type": "function"
134
+ }
135
+ ]
136
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "LazyDeliveryABI": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "uint256",
7
+ "name": "assetId",
8
+ "type": "uint256"
9
+ }
10
+ ],
11
+ "name": "assetURI",
12
+ "outputs": [
13
+ {
14
+ "internalType": "string",
15
+ "name": "",
16
+ "type": "string"
17
+ }
18
+ ],
19
+ "stateMutability": "view",
20
+ "type": "function"
21
+ }
22
+ ]
23
+ }