@artblocks/contracts 1.5.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/artifacts/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol/IFormPaletteBindingHooks.json +723 -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/contracts/interfaces/v0.8.x/IFormPaletteBindingHooks.sol +339 -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/package.json +1 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ReentrancyPMPMockShared",
|
|
4
|
+
"sourceName": "contracts/mock/ReentrancyPMPMockShared.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "_qtyToPurchase",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "_minterContractAddress",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "_projectId",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "_coreContract",
|
|
26
|
+
"type": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "_priceToPay",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "string",
|
|
35
|
+
"name": "_pmpKey",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "uint8",
|
|
40
|
+
"name": "_pmpParamType",
|
|
41
|
+
"type": "uint8"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "bytes32",
|
|
45
|
+
"name": "_pmpValue",
|
|
46
|
+
"type": "bytes32"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"name": "attack",
|
|
50
|
+
"outputs": [],
|
|
51
|
+
"stateMutability": "payable",
|
|
52
|
+
"type": "function"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [],
|
|
56
|
+
"name": "currentCoreContract",
|
|
57
|
+
"outputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "address",
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "address"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"stateMutability": "view",
|
|
65
|
+
"type": "function"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [],
|
|
69
|
+
"name": "currentPMPKey",
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"internalType": "string",
|
|
73
|
+
"name": "",
|
|
74
|
+
"type": "string"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"stateMutability": "view",
|
|
78
|
+
"type": "function"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [],
|
|
82
|
+
"name": "currentPMPParamType",
|
|
83
|
+
"outputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "uint8",
|
|
86
|
+
"name": "",
|
|
87
|
+
"type": "uint8"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"stateMutability": "view",
|
|
91
|
+
"type": "function"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [],
|
|
95
|
+
"name": "currentPMPValue",
|
|
96
|
+
"outputs": [
|
|
97
|
+
{
|
|
98
|
+
"internalType": "bytes32",
|
|
99
|
+
"name": "",
|
|
100
|
+
"type": "bytes32"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"stateMutability": "view",
|
|
104
|
+
"type": "function"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "currentPriceToPay",
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "view",
|
|
117
|
+
"type": "function"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [],
|
|
121
|
+
"name": "currentProjectId",
|
|
122
|
+
"outputs": [
|
|
123
|
+
{
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "",
|
|
126
|
+
"type": "uint256"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"stateMutability": "view",
|
|
130
|
+
"type": "function"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "currentQtyToPurchase",
|
|
135
|
+
"outputs": [
|
|
136
|
+
{
|
|
137
|
+
"internalType": "uint256",
|
|
138
|
+
"name": "",
|
|
139
|
+
"type": "uint256"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"stateMutability": "view",
|
|
143
|
+
"type": "function"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"stateMutability": "payable",
|
|
147
|
+
"type": "receive"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610927806100206000396000f3fe60806040526004361061006f5760003560e01c80631f5304931461011e5780632969be221461014f5780632e53f207146101735780637b87436a14610186578063a32f420f146101a8578063ae9680e5146101be578063db3bc7c1146101d4578063e55b5f0d1461020c57600080fd5b3661011957600080549080610083836104f1565b90915550506000541561011757600354600154600254339263a569e60d9290916001600160a01b03166100b4610222565b6040518563ffffffff1660e01b81526004016100d293929190610572565b60206040518083038185885af11580156100f0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906101159190610650565b505b005b600080fd5b34801561012a57600080fd5b506005546101389060ff1681565b60405160ff90911681526020015b60405180910390f35b34801561015b57600080fd5b5061016560015481565b604051908152602001610146565b610117610181366004610696565b610390565b34801561019257600080fd5b5061019b610463565b6040516101469190610760565b3480156101b457600080fd5b5061016560035481565b3480156101ca57600080fd5b5061016560065481565b3480156101e057600080fd5b506002546101f4906001600160a01b031681565b6040516001600160a01b039091168152602001610146565b34801561021857600080fd5b5061016560005481565b604080516001808252818301909252606091816020015b61026a6040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816102395790505090506040518060a001604052806004805461029790610790565b80601f01602080910402602001604051908101604052809291908181526020018280546102c390610790565b80156103105780601f106102e557610100808354040283529160200191610310565b820191906000526020600020905b8154815290600101906020018083116102f357829003601f168201915b505050918352505060055460209091019060ff1660088111156103355761033561055c565b60088111156103465761034661055c565b815260200160065481526020016000151581526020016040518060200160405280600081525081525081600081518110610382576103826107ca565b602002602001018190525090565b60008990556001879055600280546001600160a01b0319166001600160a01b038816179055600385905560046103c7848683610831565b506005805460ff191660ff841617905560068190556001600160a01b03881663a569e60d8689896103f6610222565b6040518563ffffffff1660e01b815260040161041493929190610572565b60206040518083038185885af1158015610432573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906104579190610650565b50505050505050505050565b6004805461047090610790565b80601f016020809104026020016040519081016040528092919081815260200182805461049c90610790565b80156104e95780601f106104be576101008083540402835291602001916104e9565b820191906000526020600020905b8154815290600101906020018083116104cc57829003601f168201915b505050505081565b60008161050e57634e487b7160e01b600052601160045260246000fd5b506000190190565b6000815180845260005b8181101561053c57602081850181015186830182015201610520565b506000602082860101526020601f19601f83011685010191505092915050565b634e487b7160e01b600052602160045260246000fd5b60006060808301868452602060018060a01b038716818601526040606060408701528287518085526080945060808801915060808160051b890101848a016000805b8481101561063d57607f198c8503018652825160a081518187526105da82880182610516565b91505089820151600981106105fd57634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b870152906106298183610516565b978a019795505050918701916001016105b4565b50919d9c50505050505050505050505050565b60006020828403121561066257600080fd5b5051919050565b80356001600160a01b038116811461068057600080fd5b919050565b803560ff8116811461068057600080fd5b60008060008060008060008060006101008a8c0312156106b557600080fd5b893598506106c560208b01610669565b975060408a013596506106da60608b01610669565b955060808a0135945060a08a01356001600160401b03808211156106fd57600080fd5b818c0191508c601f83011261071157600080fd5b81358181111561072057600080fd5b8d602082850101111561073257600080fd5b60208301965080955050505061074a60c08b01610685565b915060e08a013590509295985092959850929598565b6020815260006107736020830184610516565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806107a457607f821691505b6020821081036107c457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b601f82111561082c576000816000526020600020601f850160051c810160208610156108095750805b601f850160051c820191505b8181101561082857828155600101610815565b5050505b505050565b6001600160401b038311156108485761084861077a565b61085c836108568354610790565b836107e0565b6000601f84116001811461089057600085156108785750838201355b600019600387901b1c1916600186901b1783556108ea565b600083815260209020601f19861690835b828110156108c157868501358255602094850194600190920191016108a1565b50868210156108de5760001960f88860031b161c19848701351681555b505060018560011b0183555b505050505056fea26469706673582212206b7319b5d821e7b1f63c1c1b1274257053392f3d5ae79c2fd6dd35ed8bb9990464736f6c63430008160033",
|
|
151
|
+
"deployedBytecode": "0x60806040526004361061006f5760003560e01c80631f5304931461011e5780632969be221461014f5780632e53f207146101735780637b87436a14610186578063a32f420f146101a8578063ae9680e5146101be578063db3bc7c1146101d4578063e55b5f0d1461020c57600080fd5b3661011957600080549080610083836104f1565b90915550506000541561011757600354600154600254339263a569e60d9290916001600160a01b03166100b4610222565b6040518563ffffffff1660e01b81526004016100d293929190610572565b60206040518083038185885af11580156100f0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906101159190610650565b505b005b600080fd5b34801561012a57600080fd5b506005546101389060ff1681565b60405160ff90911681526020015b60405180910390f35b34801561015b57600080fd5b5061016560015481565b604051908152602001610146565b610117610181366004610696565b610390565b34801561019257600080fd5b5061019b610463565b6040516101469190610760565b3480156101b457600080fd5b5061016560035481565b3480156101ca57600080fd5b5061016560065481565b3480156101e057600080fd5b506002546101f4906001600160a01b031681565b6040516001600160a01b039091168152602001610146565b34801561021857600080fd5b5061016560005481565b604080516001808252818301909252606091816020015b61026a6040805160a08101909152606081526020810160008152600060208201819052604082015260609081015290565b8152602001906001900390816102395790505090506040518060a001604052806004805461029790610790565b80601f01602080910402602001604051908101604052809291908181526020018280546102c390610790565b80156103105780601f106102e557610100808354040283529160200191610310565b820191906000526020600020905b8154815290600101906020018083116102f357829003601f168201915b505050918352505060055460209091019060ff1660088111156103355761033561055c565b60088111156103465761034661055c565b815260200160065481526020016000151581526020016040518060200160405280600081525081525081600081518110610382576103826107ca565b602002602001018190525090565b60008990556001879055600280546001600160a01b0319166001600160a01b038816179055600385905560046103c7848683610831565b506005805460ff191660ff841617905560068190556001600160a01b03881663a569e60d8689896103f6610222565b6040518563ffffffff1660e01b815260040161041493929190610572565b60206040518083038185885af1158015610432573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906104579190610650565b50505050505050505050565b6004805461047090610790565b80601f016020809104026020016040519081016040528092919081815260200182805461049c90610790565b80156104e95780601f106104be576101008083540402835291602001916104e9565b820191906000526020600020905b8154815290600101906020018083116104cc57829003601f168201915b505050505081565b60008161050e57634e487b7160e01b600052601160045260246000fd5b506000190190565b6000815180845260005b8181101561053c57602081850181015186830182015201610520565b506000602082860101526020601f19601f83011685010191505092915050565b634e487b7160e01b600052602160045260246000fd5b60006060808301868452602060018060a01b038716818601526040606060408701528287518085526080945060808801915060808160051b890101848a016000805b8481101561063d57607f198c8503018652825160a081518187526105da82880182610516565b91505089820151600981106105fd57634e487b7160e01b85526021600452602485fd5b868b015281890151898701528b82015115158c870152908a01518582038b870152906106298183610516565b978a019795505050918701916001016105b4565b50919d9c50505050505050505050505050565b60006020828403121561066257600080fd5b5051919050565b80356001600160a01b038116811461068057600080fd5b919050565b803560ff8116811461068057600080fd5b60008060008060008060008060006101008a8c0312156106b557600080fd5b893598506106c560208b01610669565b975060408a013596506106da60608b01610669565b955060808a0135945060a08a01356001600160401b03808211156106fd57600080fd5b818c0191508c601f83011261071157600080fd5b81358181111561072057600080fd5b8d602082850101111561073257600080fd5b60208301965080955050505061074a60c08b01610685565b915060e08a013590509295985092959850929598565b6020815260006107736020830184610516565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806107a457607f821691505b6020821081036107c457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b601f82111561082c576000816000526020600020601f850160051c810160208610156108095750805b601f850160051c820191505b8181101561082857828155600101610815565b5050505b505050565b6001600160401b038311156108485761084861077a565b61085c836108568354610790565b836107e0565b6000601f84116001811461089057600085156108785750838201355b600019600387901b1c1916600186901b1783556108ea565b600083815260209020601f19861690835b828110156108c157868501358255602094850194600190920191016108a1565b50868210156108de5760001960f88860031b161c19848701351681555b505060018560011b0183555b505050505056fea26469706673582212206b7319b5d821e7b1f63c1c1b1274257053392f3d5ae79c2fd6dd35ed8bb9990464736f6c63430008160033",
|
|
152
|
+
"linkReferences": {},
|
|
153
|
+
"deployedLinkReferences": {}
|
|
154
|
+
}
|