@artblocks/contracts 1.4.0 → 1.6.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.
- package/README.md +1 -1
- package/artifacts/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol/IFormPaletteBindingHooks.json +723 -0
- package/artifacts/contracts/interfaces/v0.8.x/IMintTimeAndTransferCountHooks.sol/IMintTimeAndTransferCountHooks.json +356 -0
- package/artifacts/contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol/IPMPProjectViewsV0.json +126 -0
- package/artifacts/contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol/ISharedMinterRequiredPMPV0.json +36 -0
- package/artifacts/contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol/RequiredPMPLib.json +10 -0
- package/artifacts/contracts/minter-suite/Minters/MinterSetPricePMPV0.sol/MinterSetPricePMPV0.json +613 -0
- package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/IMinterPMPPurchase.json +91 -0
- package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/MockPMPMinterReentrantConfigureHook.json +180 -0
- package/artifacts/contracts/mock/MockPMPReentrantConfigureHook.sol/MockPMPReentrantConfigureHook.json +158 -0
- package/artifacts/contracts/mock/ReentrancyPMPMockShared.sol/IMinterPurchaseWithPMPs.json +67 -0
- package/artifacts/contracts/mock/ReentrancyPMPMockShared.sol/ReentrancyPMPMockShared.json +154 -0
- package/artifacts/contracts/web3call/combined-hooks/FormPaletteBindingHooks.sol/FormPaletteBindingHooks.json +919 -0
- package/artifacts/contracts/web3call/combined-hooks/MintTimeAndTransferCountHooks.sol/MintTimeAndTransferCountHooks.json +435 -0
- package/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol +339 -0
- package/contracts/interfaces/v0.8.x/IMintTimeAndTransferCountHooks.sol +125 -0
- package/contracts/interfaces/v0.8.x/IPMPProjectViewsV0.sol +59 -0
- package/contracts/interfaces/v0.8.x/ISharedMinterRequiredPMPV0.sol +27 -0
- package/contracts/libs/v0.8.x/minter-libs/RequiredPMPLib.sol +336 -0
- package/contracts/minter-suite/Minters/MinterSetPricePMPV0.sol +664 -0
- package/contracts/mock/MockPMPMinterReentrantConfigureHook.sol +85 -0
- package/contracts/mock/MockPMPReentrantConfigureHook.sol +59 -0
- package/contracts/mock/ReentrancyPMPMockShared.sol +81 -0
- package/contracts/web3call/combined-hooks/FormPaletteBindingHooks.sol +1392 -0
- package/contracts/web3call/combined-hooks/MintTimeAndTransferCountHooks.sol +483 -0
- package/package.json +2 -1
package/artifacts/contracts/mock/MockPMPMinterReentrantConfigureHook.sol/IMinterPMPPurchase.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IMinterPMPPurchase",
|
|
4
|
+
"sourceName": "contracts/mock/MockPMPMinterReentrantConfigureHook.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "projectId",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "coreContract",
|
|
16
|
+
"type": "address"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "purchase",
|
|
20
|
+
"outputs": [
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint256",
|
|
23
|
+
"name": "tokenId",
|
|
24
|
+
"type": "uint256"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"stateMutability": "payable",
|
|
28
|
+
"type": "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"internalType": "uint256",
|
|
34
|
+
"name": "projectId",
|
|
35
|
+
"type": "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"internalType": "address",
|
|
39
|
+
"name": "coreContract",
|
|
40
|
+
"type": "address"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"components": [
|
|
44
|
+
{
|
|
45
|
+
"internalType": "string",
|
|
46
|
+
"name": "key",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"internalType": "enum IPMPV0.ParamType",
|
|
51
|
+
"name": "configuredParamType",
|
|
52
|
+
"type": "uint8"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"internalType": "bytes32",
|
|
56
|
+
"name": "configuredValue",
|
|
57
|
+
"type": "bytes32"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"internalType": "bool",
|
|
61
|
+
"name": "configuringArtistString",
|
|
62
|
+
"type": "bool"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"internalType": "string",
|
|
66
|
+
"name": "configuredValueString",
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"internalType": "struct IPMPV0.PMPInput[]",
|
|
71
|
+
"name": "pmpInputs",
|
|
72
|
+
"type": "tuple[]"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"name": "purchaseWithPMPs",
|
|
76
|
+
"outputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "tokenId",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"stateMutability": "payable",
|
|
84
|
+
"type": "function"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"bytecode": "0x",
|
|
88
|
+
"deployedBytecode": "0x",
|
|
89
|
+
"linkReferences": {},
|
|
90
|
+
"deployedLinkReferences": {}
|
|
91
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "MockPMPMinterReentrantConfigureHook",
|
|
4
|
+
"sourceName": "contracts/mock/MockPMPMinterReentrantConfigureHook.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "minter_",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "projectId_",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "coreContract_",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "pricePerTokenInWei_",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "bool",
|
|
30
|
+
"name": "reenterWithPMPs_",
|
|
31
|
+
"type": "bool"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"stateMutability": "nonpayable",
|
|
35
|
+
"type": "constructor"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "coreContract",
|
|
40
|
+
"outputs": [
|
|
41
|
+
{
|
|
42
|
+
"internalType": "address",
|
|
43
|
+
"name": "",
|
|
44
|
+
"type": "address"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"stateMutability": "view",
|
|
48
|
+
"type": "function"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"inputs": [],
|
|
52
|
+
"name": "minter",
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"internalType": "address",
|
|
56
|
+
"name": "",
|
|
57
|
+
"type": "address"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"stateMutability": "view",
|
|
61
|
+
"type": "function"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [
|
|
65
|
+
{
|
|
66
|
+
"internalType": "address",
|
|
67
|
+
"name": "",
|
|
68
|
+
"type": "address"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"internalType": "uint256",
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "uint256"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"components": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "string",
|
|
79
|
+
"name": "key",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "enum IPMPV0.ParamType",
|
|
84
|
+
"name": "configuredParamType",
|
|
85
|
+
"type": "uint8"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "bytes32",
|
|
89
|
+
"name": "configuredValue",
|
|
90
|
+
"type": "bytes32"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"internalType": "bool",
|
|
94
|
+
"name": "configuringArtistString",
|
|
95
|
+
"type": "bool"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"internalType": "string",
|
|
99
|
+
"name": "configuredValueString",
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"internalType": "struct IPMPV0.PMPInput",
|
|
104
|
+
"name": "pmpInput",
|
|
105
|
+
"type": "tuple"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"name": "onTokenPMPConfigure",
|
|
109
|
+
"outputs": [],
|
|
110
|
+
"stateMutability": "nonpayable",
|
|
111
|
+
"type": "function"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"inputs": [],
|
|
115
|
+
"name": "pricePerTokenInWei",
|
|
116
|
+
"outputs": [
|
|
117
|
+
{
|
|
118
|
+
"internalType": "uint256",
|
|
119
|
+
"name": "",
|
|
120
|
+
"type": "uint256"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"stateMutability": "view",
|
|
124
|
+
"type": "function"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"inputs": [],
|
|
128
|
+
"name": "projectId",
|
|
129
|
+
"outputs": [
|
|
130
|
+
{
|
|
131
|
+
"internalType": "uint256",
|
|
132
|
+
"name": "",
|
|
133
|
+
"type": "uint256"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"stateMutability": "view",
|
|
137
|
+
"type": "function"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"inputs": [],
|
|
141
|
+
"name": "reenterWithPMPs",
|
|
142
|
+
"outputs": [
|
|
143
|
+
{
|
|
144
|
+
"internalType": "bool",
|
|
145
|
+
"name": "",
|
|
146
|
+
"type": "bool"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"stateMutability": "view",
|
|
150
|
+
"type": "function"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "bytes4",
|
|
156
|
+
"name": "interfaceId",
|
|
157
|
+
"type": "bytes4"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "supportsInterface",
|
|
161
|
+
"outputs": [
|
|
162
|
+
{
|
|
163
|
+
"internalType": "bool",
|
|
164
|
+
"name": "",
|
|
165
|
+
"type": "bool"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"stateMutability": "view",
|
|
169
|
+
"type": "function"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"stateMutability": "payable",
|
|
173
|
+
"type": "receive"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"bytecode": "0x61012060405234801561001157600080fd5b506040516109c43803806109c483398101604081905261003091610076565b6001600160a01b0394851660805260a093909352921660c05260e0919091521515610100526100d6565b80516001600160a01b038116811461007157600080fd5b919050565b600080600080600060a0868803121561008e57600080fd5b6100978661005a565b9450602086015193506100ac6040870161005a565b925060608601519150608086015180151581146100c857600080fd5b809150509295509295909350565b60805160a05160c05160e0516101005161086c61015860003960008181610167015261022a01526000818161019b01528181610303015261045b0152600081816101cf01528181610345015261040a0152600081816101030152818161032401526103dc01526000818160b7015281816102d40152610432015261086c6000f3fe6080604052600436106100645760003560e01c806301ffc9a71461007057806307546172146100a55780633fafa127146100f1578063677e713514610133578063b5c2934714610155578063df520efc14610189578063e80db5db146101bd57600080fd5b3661006b57005b600080fd5b34801561007c57600080fd5b5061009061008b3660046104c7565b6101f1565b60405190151581526020015b60405180910390f35b3480156100b157600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161009c565b3480156100fd57600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161009c565b34801561013f57600080fd5b5061015361014e3660046104f8565b610228565b005b34801561016157600080fd5b506100907f000000000000000000000000000000000000000000000000000000000000000081565b34801561019557600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c957600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663677e713560e01b148061022257506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f0000000000000000000000000000000000000000000000000000000000000000156103cd57604080516001808252818301909252600091816020015b6102966040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816102655790505090506102b482610642565b816000815181106102c7576102c76106e3565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a569e60d7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000856040518563ffffffff1660e01b81526004016103839392919061073f565b60206040518083038185885af11580156103a1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103c6919061081d565b5050505050565b60405163ae77c23760e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063ae77c237907f00000000000000000000000000000000000000000000000000000000000000009060440160206040518083038185885af115801561049c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906104c1919061081d565b50505050565b6000602082840312156104d957600080fd5b81356001600160e01b0319811681146104f157600080fd5b9392505050565b60008060006060848603121561050d57600080fd5b83356001600160a01b038116811461052457600080fd5b92506020840135915060408401356001600160401b0381111561054657600080fd5b840160a0818703121561055857600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171561059b5761059b610563565b60405290565b600082601f8301126105b257600080fd5b81356001600160401b03808211156105cc576105cc610563565b604051601f8301601f19908116603f011681019082821181831017156105f4576105f4610563565b8160405283815286602085880101111561060d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b8035801515811461063d57600080fd5b919050565b600060a0823603121561065457600080fd5b61065c610579565b82356001600160401b038082111561067357600080fd5b61067f368387016105a1565b8352602085013591506009821061069557600080fd5b816020840152604085013560408401526106b16060860161062d565b606084015260808501359150808211156106ca57600080fd5b506106d7368286016105a1565b60808301525092915050565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b8181101561071f57602081850181015186830182015201610703565b506000602082860101526020601f19601f83011685010191505092915050565b60006060808301868452602060018060a01b038716818601526040606060408701528287518085526080945060808801915060808160051b890101848a016000805b8481101561080a57607f198c8503018652825160a081518187526107a7828801826106f9565b91505089820151600981106107ca57634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b870152906107f681836106f9565b978a01979550505091870191600101610781565b50919d9c50505050505050505050505050565b60006020828403121561082f57600080fd5b505191905056fea2646970667358221220200f61ea257a7a30909603af3ec8e8a122c4392b4b8f679d9f0b764903b793c864736f6c63430008160033",
|
|
177
|
+
"deployedBytecode": "0x6080604052600436106100645760003560e01c806301ffc9a71461007057806307546172146100a55780633fafa127146100f1578063677e713514610133578063b5c2934714610155578063df520efc14610189578063e80db5db146101bd57600080fd5b3661006b57005b600080fd5b34801561007c57600080fd5b5061009061008b3660046104c7565b6101f1565b60405190151581526020015b60405180910390f35b3480156100b157600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161009c565b3480156100fd57600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161009c565b34801561013f57600080fd5b5061015361014e3660046104f8565b610228565b005b34801561016157600080fd5b506100907f000000000000000000000000000000000000000000000000000000000000000081565b34801561019557600080fd5b506101257f000000000000000000000000000000000000000000000000000000000000000081565b3480156101c957600080fd5b506100d97f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663677e713560e01b148061022257506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f0000000000000000000000000000000000000000000000000000000000000000156103cd57604080516001808252818301909252600091816020015b6102966040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816102655790505090506102b482610642565b816000815181106102c7576102c76106e3565b60200260200101819052507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a569e60d7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000856040518563ffffffff1660e01b81526004016103839392919061073f565b60206040518083038185885af11580156103a1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103c6919061081d565b5050505050565b60405163ae77c23760e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063ae77c237907f00000000000000000000000000000000000000000000000000000000000000009060440160206040518083038185885af115801561049c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906104c1919061081d565b50505050565b6000602082840312156104d957600080fd5b81356001600160e01b0319811681146104f157600080fd5b9392505050565b60008060006060848603121561050d57600080fd5b83356001600160a01b038116811461052457600080fd5b92506020840135915060408401356001600160401b0381111561054657600080fd5b840160a0818703121561055857600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b038111828210171561059b5761059b610563565b60405290565b600082601f8301126105b257600080fd5b81356001600160401b03808211156105cc576105cc610563565b604051601f8301601f19908116603f011681019082821181831017156105f4576105f4610563565b8160405283815286602085880101111561060d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b8035801515811461063d57600080fd5b919050565b600060a0823603121561065457600080fd5b61065c610579565b82356001600160401b038082111561067357600080fd5b61067f368387016105a1565b8352602085013591506009821061069557600080fd5b816020840152604085013560408401526106b16060860161062d565b606084015260808501359150808211156106ca57600080fd5b506106d7368286016105a1565b60808301525092915050565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b8181101561071f57602081850181015186830182015201610703565b506000602082860101526020601f19601f83011685010191505092915050565b60006060808301868452602060018060a01b038716818601526040606060408701528287518085526080945060808801915060808160051b890101848a016000805b8481101561080a57607f198c8503018652825160a081518187526107a7828801826106f9565b91505089820151600981106107ca57634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b870152906107f681836106f9565b978a01979550505091870191600101610781565b50919d9c50505050505050505050505050565b60006020828403121561082f57600080fd5b505191905056fea2646970667358221220200f61ea257a7a30909603af3ec8e8a122c4392b4b8f679d9f0b764903b793c864736f6c63430008160033",
|
|
178
|
+
"linkReferences": {},
|
|
179
|
+
"deployedLinkReferences": {}
|
|
180
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "MockPMPReentrantConfigureHook",
|
|
4
|
+
"sourceName": "contracts/mock/MockPMPReentrantConfigureHook.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "pmp_",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "targetCoreContract_",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "targetTokenId_",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "string",
|
|
25
|
+
"name": "targetKey_",
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"stateMutability": "nonpayable",
|
|
30
|
+
"type": "constructor"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"internalType": "address",
|
|
36
|
+
"name": "",
|
|
37
|
+
"type": "address"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"internalType": "uint256",
|
|
41
|
+
"name": "",
|
|
42
|
+
"type": "uint256"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"components": [
|
|
46
|
+
{
|
|
47
|
+
"internalType": "string",
|
|
48
|
+
"name": "key",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"internalType": "enum IPMPV0.ParamType",
|
|
53
|
+
"name": "configuredParamType",
|
|
54
|
+
"type": "uint8"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"internalType": "bytes32",
|
|
58
|
+
"name": "configuredValue",
|
|
59
|
+
"type": "bytes32"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"internalType": "bool",
|
|
63
|
+
"name": "configuringArtistString",
|
|
64
|
+
"type": "bool"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "string",
|
|
68
|
+
"name": "configuredValueString",
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"internalType": "struct IPMPV0.PMPInput",
|
|
73
|
+
"name": "",
|
|
74
|
+
"type": "tuple"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"name": "onTokenPMPConfigure",
|
|
78
|
+
"outputs": [],
|
|
79
|
+
"stateMutability": "nonpayable",
|
|
80
|
+
"type": "function"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [],
|
|
84
|
+
"name": "pmp",
|
|
85
|
+
"outputs": [
|
|
86
|
+
{
|
|
87
|
+
"internalType": "contract IPMPV0",
|
|
88
|
+
"name": "",
|
|
89
|
+
"type": "address"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"stateMutability": "view",
|
|
93
|
+
"type": "function"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputs": [
|
|
97
|
+
{
|
|
98
|
+
"internalType": "bytes4",
|
|
99
|
+
"name": "interfaceId",
|
|
100
|
+
"type": "bytes4"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"name": "supportsInterface",
|
|
104
|
+
"outputs": [
|
|
105
|
+
{
|
|
106
|
+
"internalType": "bool",
|
|
107
|
+
"name": "",
|
|
108
|
+
"type": "bool"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"stateMutability": "view",
|
|
112
|
+
"type": "function"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"inputs": [],
|
|
116
|
+
"name": "targetCoreContract",
|
|
117
|
+
"outputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "address",
|
|
120
|
+
"name": "",
|
|
121
|
+
"type": "address"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"stateMutability": "view",
|
|
125
|
+
"type": "function"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"inputs": [],
|
|
129
|
+
"name": "targetKey",
|
|
130
|
+
"outputs": [
|
|
131
|
+
{
|
|
132
|
+
"internalType": "string",
|
|
133
|
+
"name": "",
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"stateMutability": "view",
|
|
138
|
+
"type": "function"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [],
|
|
142
|
+
"name": "targetTokenId",
|
|
143
|
+
"outputs": [
|
|
144
|
+
{
|
|
145
|
+
"internalType": "uint256",
|
|
146
|
+
"name": "",
|
|
147
|
+
"type": "uint256"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"stateMutability": "view",
|
|
151
|
+
"type": "function"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"bytecode": "0x60e06040523480156200001157600080fd5b50604051620009b8380380620009b8833981016040819052620000349162000098565b6001600160a01b03808516608052831660a05260c082905260006200005a82826200022d565b5050505050620002f9565b80516001600160a01b03811681146200007d57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215620000af57600080fd5b620000ba8562000065565b93506020620000cb81870162000065565b6040870151606088015191955093506001600160401b0380821115620000f057600080fd5b818801915088601f8301126200010557600080fd5b8151818111156200011a576200011a62000082565b604051601f8201601f19908116603f0116810190838211818310171562000145576200014562000082565b816040528281528b868487010111156200015e57600080fd5b600093505b8284101562000182578484018601518185018701529285019262000163565b600086848301015280965050505050505092959194509250565b600181811c90821680620001b157607f821691505b602082108103620001d257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000228576000816000526020600020601f850160051c81016020861015620002035750805b601f850160051c820191505b8181101562000224578281556001016200020f565b5050505b505050565b81516001600160401b0381111562000249576200024962000082565b62000261816200025a84546200019c565b84620001d8565b602080601f831160018114620002995760008415620002805750858301515b600019600386901b1c1916600185901b17855562000224565b600085815260208120601f198616915b82811015620002ca57888601518255948401946001909101908401620002a9565b5085821015620002e95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05161067c6200033c60003960008181610124015261033401526000818160e8015261031201526000818160a901526102e5015261067c6000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806301ffc9a714610067578063677e71351461008f578063713f3647146100a457806385c038a5146100e3578063a73e8e361461010a578063b49673941461011f575b600080fd5b61007a610075366004610424565b610154565b60405190151581526020015b60405180910390f35b6100a261009d366004610455565b61018b565b005b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610086565b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b610112610396565b6040516100869190610506565b6101467f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610086565b60006001600160e01b0319821663677e713560e01b148061018557506301ffc9a760e01b6001600160e01b03198316145b92915050565b604080516001808252818301909252600091816020015b6101d36040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816101a25790505090506040518060a001604052806000805461020090610519565b80601f016020809104026020016040519081016040528092919081815260200182805461022c90610519565b80156102795780601f1061024e57610100808354040283529160200191610279565b820191906000526020600020905b81548152906001019060200180831161025c57829003601f168201915b5050509183525050602001600381526020016000801b815260200160001515815260200160405180602001604052806000815250815250816000815181106102c3576102c3610553565b602090810291909101015260405163037c31bd60e51b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636f8637a09061035e907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000908690600401610569565b600060405180830381600087803b15801561037857600080fd5b505af115801561038c573d6000803e3d6000fd5b5050505050505050565b600080546103a390610519565b80601f01602080910402602001604051908101604052809291908181526020018280546103cf90610519565b801561041c5780601f106103f15761010080835404028352916020019161041c565b820191906000526020600020905b8154815290600101906020018083116103ff57829003601f168201915b505050505081565b60006020828403121561043657600080fd5b81356001600160e01b03198116811461044e57600080fd5b9392505050565b60008060006060848603121561046a57600080fd5b83356001600160a01b038116811461048157600080fd5b92506020840135915060408401356001600160401b038111156104a357600080fd5b840160a081870312156104b557600080fd5b809150509250925092565b6000815180845260005b818110156104e6576020818501810151868301820152016104ca565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061044e60208301846104c0565b600181811c9082168061052d57607f821691505b60208210810361054d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03841681526020808201849052606060408084018290528451848301819052600093608092909183870190600581901b8801850189850188805b8481101561063357607f198c8503018652825160a081518187526105d0828801826104c0565b91505089820151600981106105f357634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b8701529061061f81836104c0565b978a019795505050918701916001016105aa565b50919d9c5050505050505050505050505056fea2646970667358221220135f769dace5d6bb5351da1ec8090052b16f36af411e7c964946aa7b5f9d539864736f6c63430008160033",
|
|
155
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c806301ffc9a714610067578063677e71351461008f578063713f3647146100a457806385c038a5146100e3578063a73e8e361461010a578063b49673941461011f575b600080fd5b61007a610075366004610424565b610154565b60405190151581526020015b60405180910390f35b6100a261009d366004610455565b61018b565b005b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610086565b6100cb7f000000000000000000000000000000000000000000000000000000000000000081565b610112610396565b6040516100869190610506565b6101467f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610086565b60006001600160e01b0319821663677e713560e01b148061018557506301ffc9a760e01b6001600160e01b03198316145b92915050565b604080516001808252818301909252600091816020015b6101d36040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816101a25790505090506040518060a001604052806000805461020090610519565b80601f016020809104026020016040519081016040528092919081815260200182805461022c90610519565b80156102795780601f1061024e57610100808354040283529160200191610279565b820191906000526020600020905b81548152906001019060200180831161025c57829003601f168201915b5050509183525050602001600381526020016000801b815260200160001515815260200160405180602001604052806000815250815250816000815181106102c3576102c3610553565b602090810291909101015260405163037c31bd60e51b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636f8637a09061035e907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000908690600401610569565b600060405180830381600087803b15801561037857600080fd5b505af115801561038c573d6000803e3d6000fd5b5050505050505050565b600080546103a390610519565b80601f01602080910402602001604051908101604052809291908181526020018280546103cf90610519565b801561041c5780601f106103f15761010080835404028352916020019161041c565b820191906000526020600020905b8154815290600101906020018083116103ff57829003601f168201915b505050505081565b60006020828403121561043657600080fd5b81356001600160e01b03198116811461044e57600080fd5b9392505050565b60008060006060848603121561046a57600080fd5b83356001600160a01b038116811461048157600080fd5b92506020840135915060408401356001600160401b038111156104a357600080fd5b840160a081870312156104b557600080fd5b809150509250925092565b6000815180845260005b818110156104e6576020818501810151868301820152016104ca565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061044e60208301846104c0565b600181811c9082168061052d57607f821691505b60208210810361054d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03841681526020808201849052606060408084018290528451848301819052600093608092909183870190600581901b8801850189850188805b8481101561063357607f198c8503018652825160a081518187526105d0828801826104c0565b91505089820151600981106105f357634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b8701529061061f81836104c0565b978a019795505050918701916001016105aa565b50919d9c5050505050505050505050505056fea2646970667358221220135f769dace5d6bb5351da1ec8090052b16f36af411e7c964946aa7b5f9d539864736f6c63430008160033",
|
|
156
|
+
"linkReferences": {},
|
|
157
|
+
"deployedLinkReferences": {}
|
|
158
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IMinterPurchaseWithPMPs",
|
|
4
|
+
"sourceName": "contracts/mock/ReentrancyPMPMockShared.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "projectId",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "coreContract",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"components": [
|
|
20
|
+
{
|
|
21
|
+
"internalType": "string",
|
|
22
|
+
"name": "key",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"internalType": "enum IPMPV0.ParamType",
|
|
27
|
+
"name": "configuredParamType",
|
|
28
|
+
"type": "uint8"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "bytes32",
|
|
32
|
+
"name": "configuredValue",
|
|
33
|
+
"type": "bytes32"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"internalType": "bool",
|
|
37
|
+
"name": "configuringArtistString",
|
|
38
|
+
"type": "bool"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"internalType": "string",
|
|
42
|
+
"name": "configuredValueString",
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"internalType": "struct IPMPV0.PMPInput[]",
|
|
47
|
+
"name": "pmpInputs",
|
|
48
|
+
"type": "tuple[]"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "purchaseWithPMPs",
|
|
52
|
+
"outputs": [
|
|
53
|
+
{
|
|
54
|
+
"internalType": "uint256",
|
|
55
|
+
"name": "tokenId",
|
|
56
|
+
"type": "uint256"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"stateMutability": "payable",
|
|
60
|
+
"type": "function"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"bytecode": "0x",
|
|
64
|
+
"deployedBytecode": "0x",
|
|
65
|
+
"linkReferences": {},
|
|
66
|
+
"deployedLinkReferences": {}
|
|
67
|
+
}
|