@artblocks/contracts 1.6.0 → 1.7.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/DependencyRegistryV0.sol/DependencyRegistryV0.json +61 -148
- package/artifacts/contracts/generator/GenArt721GeneratorV0.sol/GenArt721GeneratorV0.json +15 -2
- package/artifacts/contracts/generator/InPlaceDocument.sol/InPlaceDocument.json +10 -0
- package/artifacts/contracts/interfaces/v0.8.x/IAbxfsFileDataReader.sol/IAbxfsFileDataReader.json +109 -0
- package/artifacts/contracts/interfaces/v0.8.x/IAbxfsFileStore.sol/IAbxfsFileStore.json +86 -0
- package/artifacts/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol/IDependencyRegistryV0.json +41 -27
- package/artifacts/contracts/libs/v0.8.x/AbxfsCanonical.sol/AbxfsCanonical.json +10 -0
- package/artifacts/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol/DependencyRegistryStorageLib.json +2 -2
- package/artifacts/contracts/mock/CallProbeMock.sol/CallProbeMock.json +45 -0
- package/artifacts/contracts/mock/GasProbeMock.sol/GasProbeMock.json +45 -0
- package/artifacts/contracts/mock/GenArt721GeneratorV0ScriptyReferenceMock.sol/GenArt721GeneratorV0ScriptyReferenceMock.json +346 -0
- package/artifacts/contracts/mock/GenArt721GeneratorV0ScriptyReferenceMock.sol/ILegacyGenArt721CoreV2_PBAB_Flex.json +47 -0
- package/artifacts/contracts/mock/InPlaceDocumentHarnessMock.sol/InPlaceDocumentHarnessMock.json +161 -0
- package/artifacts/contracts/mock/MockAbxfsFileDataReader.sol/IMockFileStore.json +91 -0
- package/artifacts/contracts/mock/MockAbxfsFileDataReader.sol/MockAbxfsFileDataReader.json +183 -0
- package/artifacts/contracts/mock/MockAbxfsFileStore.sol/MockAbxfsFileStore.json +204 -0
- package/artifacts/contracts/mock/RawResponseMock.sol/RawResponseMock.json +61 -0
- package/contracts/DependencyRegistryV0.sol +136 -226
- package/contracts/generator/GenArt721GeneratorV0.sol +541 -280
- package/contracts/generator/InPlaceDocument.sol +306 -0
- package/contracts/interfaces/v0.8.x/IAbxfsFileDataReader.sol +67 -0
- package/contracts/interfaces/v0.8.x/IAbxfsFileStore.sol +40 -0
- package/contracts/interfaces/v0.8.x/IDependencyRegistryV0.sol +33 -22
- package/contracts/libs/v0.8.x/AbxfsCanonical.sol +23 -0
- package/contracts/libs/v0.8.x/DependencyRegistryStorageLib.sol +10 -4
- package/contracts/mock/CallProbeMock.sol +20 -0
- package/contracts/mock/GasProbeMock.sol +21 -0
- package/contracts/mock/GenArt721GeneratorV0ScriptyReferenceMock.sol +1316 -0
- package/contracts/mock/InPlaceDocumentHarnessMock.sol +189 -0
- package/contracts/mock/MockAbxfsFileDataReader.sol +134 -0
- package/contracts/mock/MockAbxfsFileStore.sol +125 -0
- package/contracts/mock/RawResponseMock.sol +58 -0
- package/package.json +1 -1
package/artifacts/contracts/mock/InPlaceDocumentHarnessMock.sol/InPlaceDocumentHarnessMock.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "InPlaceDocumentHarnessMock",
|
|
4
|
+
"sourceName": "contracts/mock/InPlaceDocumentHarnessMock.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes[]",
|
|
10
|
+
"name": "parts",
|
|
11
|
+
"type": "bytes[]"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "junk",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "shift",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bytes32",
|
|
25
|
+
"name": "prefix",
|
|
26
|
+
"type": "bytes32"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "prefixLength",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "dataUri",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "string",
|
|
38
|
+
"name": "",
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "view",
|
|
43
|
+
"type": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [
|
|
47
|
+
{
|
|
48
|
+
"internalType": "bytes[]",
|
|
49
|
+
"name": "parts",
|
|
50
|
+
"type": "bytes[]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "junk",
|
|
55
|
+
"type": "uint256"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "uint256",
|
|
59
|
+
"name": "shift",
|
|
60
|
+
"type": "uint256"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "document",
|
|
64
|
+
"outputs": [
|
|
65
|
+
{
|
|
66
|
+
"internalType": "string",
|
|
67
|
+
"name": "",
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"stateMutability": "pure",
|
|
72
|
+
"type": "function"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"inputs": [
|
|
76
|
+
{
|
|
77
|
+
"internalType": "bytes",
|
|
78
|
+
"name": "data",
|
|
79
|
+
"type": "bytes"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint256",
|
|
83
|
+
"name": "misalign",
|
|
84
|
+
"type": "uint256"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"name": "encodeInPlace",
|
|
88
|
+
"outputs": [
|
|
89
|
+
{
|
|
90
|
+
"internalType": "bytes",
|
|
91
|
+
"name": "encoded",
|
|
92
|
+
"type": "bytes"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"internalType": "bool",
|
|
96
|
+
"name": "clean",
|
|
97
|
+
"type": "bool"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"stateMutability": "pure",
|
|
101
|
+
"type": "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [
|
|
105
|
+
{
|
|
106
|
+
"internalType": "bytes[]",
|
|
107
|
+
"name": "data",
|
|
108
|
+
"type": "bytes[]"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "misalign",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"name": "encodeInPlaceBatch",
|
|
117
|
+
"outputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "bytes[]",
|
|
120
|
+
"name": "encoded",
|
|
121
|
+
"type": "bytes[]"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "bool[]",
|
|
125
|
+
"name": "clean",
|
|
126
|
+
"type": "bool[]"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"stateMutability": "pure",
|
|
130
|
+
"type": "function"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [
|
|
134
|
+
{
|
|
135
|
+
"internalType": "bytes",
|
|
136
|
+
"name": "data",
|
|
137
|
+
"type": "bytes"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"name": "gasOf",
|
|
141
|
+
"outputs": [
|
|
142
|
+
{
|
|
143
|
+
"internalType": "uint256",
|
|
144
|
+
"name": "ours",
|
|
145
|
+
"type": "uint256"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"internalType": "uint256",
|
|
149
|
+
"name": "openZeppelin",
|
|
150
|
+
"type": "uint256"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"stateMutability": "view",
|
|
154
|
+
"type": "function"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610df6806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806302f81e221461005c5780630bf476a51461008557806310b9fd61146100a657806316d42681146100b9578063c8d44bdb146100da575b600080fd5b61006f61006a366004610a76565b610102565b60405161007c9190610b18565b60405180910390f35b610098610093366004610b32565b61012e565b60405161007c929190610b76565b61006f6100b4366004610c13565b610243565b6100cc6100c7366004610c60565b61026b565b60405161007c929190610c95565b6100ed6100e8366004610cb9565b6103b5565b6040805192835260208301919091520161007c565b606060008061011288888861044a565b91509150610122828287876104b2565b98975050505050505050565b60608083516001600160401b0381111561014a5761014a61092f565b60405190808252806020026020018201604052801561017d57816020015b60608152602001906001900390816101685790505b50915083516001600160401b038111156101995761019961092f565b6040519080825280602002602001820160405280156101c2578160200160208202803683370190505b50905060005b845181101561023b576101f48582815181106101e6576101e6610cf5565b60200260200101518561026b565b84838151811061020657610206610cf5565b6020026020010184848151811061021f5761021f610cf5565b92151560209384029190910190920191909152526001016101c8565b509250929050565b606060008061025386868661044a565b91509150610261828261053c565b9695505050505050565b8151606090600090816003610281836002610d21565b61028b9190610d34565b90506000600282901b90506000806000601f89166040510160208101935060408601840192506020601f19601f8701168501019150602087840101828111156102d2578092505b50601f19601f830116915081604052835b608083018110156102fb5760001981526020016102e3565b5084905260005b8681101561031c576020818c018101518483015201610302565b50600086830152635c5c5c5c60005263a5a5a5a560205261033e828785610565565b63a5a5a5a560205114635c5c5c5c6000511416965060605115816040511416871696508360208403511487169650851561037c578383015115871696505b805b6080820181101561039c57805160001914979097169660200161037e565b5060800160405250601f19019793965092945050505050565b8051604051600091829160208101906003600284010401606001835b838110156103eb57602081880181015183830152016103d1565b5060008382015260006003600285010460021b83015260408382010160405260005a905061041a828585610565565b5a6104259082610d56565b95505a90506104338761077c565b505a61043f9082610d56565b945050505050915091565b60008061045784846108ce565b61046b604080518082019182905260200191565b909250905060005b85518110156104a95761049f8287838151811061049257610492610cf5565b60200260200101516108f3565b9150600101610473565b50935093915050565b6060600080600060208511156104c757600080fd5b602088018088039350858101915060406003600286010483010192508383858360045afa6104f457600080fd5b600083850152600019600387901b1c1987169052610513828483610565565b8793506003600284010460021b85018089526020808a0352601f19601f82011660400160208a03f35b606082905060208301820380845260008352602080850352601f19601f82011660400160208503f35b8115610777576003600283010460021b810181845b805160401c63ffffffff600160601b600160c01b038216028101905061ffff65ffffffffffff60301b65ffffffffffff60b01b018216028101905060ff7dffffff0000000000ffffff0000000000ffffff0000000000ffffff00000082160281019050600f7efff00000fff00000fff00000fff00000fff00000fff00000fff00000fff0008216028101905060037f0fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc0821602810190507f80808080808080808080808080808080808080808080808080808080808080807f666666666666666666666666666666666666666666666666666666666666666682011660071c7f01010101010101010101010101010101010101010101010101010101010101017f4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c830160071c167f02020202020202020202020202020202020202020202020202020202020202027f4242424242424242424242424242424242424242424242424242424242424242840160061c1660011c600f8102604b83020160038583160260068502017f414141414141414141414141414141414141414141414141414141414141414101850103865250505050602082019150828210156107605760180161057a565b5050613d3d60f01b60038406600204820352600090525b505050565b6060815160000361079b57505060408051602081019091526000815290565b6000604051806060016040528060408152602001610d8160409139905060006003845160026107ca9190610d21565b6107d49190610d34565b6107df906004610d69565b6001600160401b038111156107f6576107f661092f565b6040519080825280601f01601f191660200182016040528015610820576020820181803683370190505b509050600182016020820185865187015b8082101561088c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610831565b50506003865106600181146108a857600281146108bb576108c3565b603d6001830353603d60028303536108c3565b603d60018303535b509195945050505050565b60405160005b838110156108eb57600019828201526020016108d4565b500160405250565b600081516020830160005b828110156109165781810151868201526020016108fe565b5050601f9301928301601f191660405250815b92915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561096d5761096d61092f565b604052919050565b600082601f83011261098657600080fd5b81356001600160401b0381111561099f5761099f61092f565b6109b2601f8201601f1916602001610945565b8181528460208386010111156109c757600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f8301126109f557600080fd5b813560206001600160401b0380831115610a1157610a1161092f565b8260051b610a20838201610945565b9384528581018301938381019088861115610a3a57600080fd5b84880192505b8583101561012257823584811115610a585760008081fd5b610a668a87838c0101610975565b8352509184019190840190610a40565b600080600080600060a08688031215610a8e57600080fd5b85356001600160401b03811115610aa457600080fd5b610ab0888289016109e4565b9860208801359850604088013597606081013597506080013595509350505050565b6000815180845260005b81811015610af857602081850181015186830182015201610adc565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610b2b6020830184610ad2565b9392505050565b60008060408385031215610b4557600080fd5b82356001600160401b03811115610b5b57600080fd5b610b67858286016109e4565b95602094909401359450505050565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b83811015610bcd57605f19888703018552610bbb868351610ad2565b95509382019390820190600101610b9f565b50508584038187015286518085528782019482019350915060005b82811015610c06578451151584529381019392810192600101610be8565b5091979650505050505050565b600080600060608486031215610c2857600080fd5b83356001600160401b03811115610c3e57600080fd5b610c4a868287016109e4565b9660208601359650604090950135949350505050565b60008060408385031215610c7357600080fd5b82356001600160401b03811115610c8957600080fd5b610b6785828601610975565b604081526000610ca86040830185610ad2565b905082151560208301529392505050565b600060208284031215610ccb57600080fd5b81356001600160401b03811115610ce157600080fd5b610ced84828501610975565b949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092957610929610d0b565b600082610d5157634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561092957610929610d0b565b808202811582820484141761092957610929610d0b56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212202ecd47dbcb9ecadef9f771ff22b921f76486b31bd99d3d49c42a10f017d8b4df64736f6c63430008160033",
|
|
158
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806302f81e221461005c5780630bf476a51461008557806310b9fd61146100a657806316d42681146100b9578063c8d44bdb146100da575b600080fd5b61006f61006a366004610a76565b610102565b60405161007c9190610b18565b60405180910390f35b610098610093366004610b32565b61012e565b60405161007c929190610b76565b61006f6100b4366004610c13565b610243565b6100cc6100c7366004610c60565b61026b565b60405161007c929190610c95565b6100ed6100e8366004610cb9565b6103b5565b6040805192835260208301919091520161007c565b606060008061011288888861044a565b91509150610122828287876104b2565b98975050505050505050565b60608083516001600160401b0381111561014a5761014a61092f565b60405190808252806020026020018201604052801561017d57816020015b60608152602001906001900390816101685790505b50915083516001600160401b038111156101995761019961092f565b6040519080825280602002602001820160405280156101c2578160200160208202803683370190505b50905060005b845181101561023b576101f48582815181106101e6576101e6610cf5565b60200260200101518561026b565b84838151811061020657610206610cf5565b6020026020010184848151811061021f5761021f610cf5565b92151560209384029190910190920191909152526001016101c8565b509250929050565b606060008061025386868661044a565b91509150610261828261053c565b9695505050505050565b8151606090600090816003610281836002610d21565b61028b9190610d34565b90506000600282901b90506000806000601f89166040510160208101935060408601840192506020601f19601f8701168501019150602087840101828111156102d2578092505b50601f19601f830116915081604052835b608083018110156102fb5760001981526020016102e3565b5084905260005b8681101561031c576020818c018101518483015201610302565b50600086830152635c5c5c5c60005263a5a5a5a560205261033e828785610565565b63a5a5a5a560205114635c5c5c5c6000511416965060605115816040511416871696508360208403511487169650851561037c578383015115871696505b805b6080820181101561039c57805160001914979097169660200161037e565b5060800160405250601f19019793965092945050505050565b8051604051600091829160208101906003600284010401606001835b838110156103eb57602081880181015183830152016103d1565b5060008382015260006003600285010460021b83015260408382010160405260005a905061041a828585610565565b5a6104259082610d56565b95505a90506104338761077c565b505a61043f9082610d56565b945050505050915091565b60008061045784846108ce565b61046b604080518082019182905260200191565b909250905060005b85518110156104a95761049f8287838151811061049257610492610cf5565b60200260200101516108f3565b9150600101610473565b50935093915050565b6060600080600060208511156104c757600080fd5b602088018088039350858101915060406003600286010483010192508383858360045afa6104f457600080fd5b600083850152600019600387901b1c1987169052610513828483610565565b8793506003600284010460021b85018089526020808a0352601f19601f82011660400160208a03f35b606082905060208301820380845260008352602080850352601f19601f82011660400160208503f35b8115610777576003600283010460021b810181845b805160401c63ffffffff600160601b600160c01b038216028101905061ffff65ffffffffffff60301b65ffffffffffff60b01b018216028101905060ff7dffffff0000000000ffffff0000000000ffffff0000000000ffffff00000082160281019050600f7efff00000fff00000fff00000fff00000fff00000fff00000fff00000fff0008216028101905060037f0fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc00fc0821602810190507f80808080808080808080808080808080808080808080808080808080808080807f666666666666666666666666666666666666666666666666666666666666666682011660071c7f01010101010101010101010101010101010101010101010101010101010101017f4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c830160071c167f02020202020202020202020202020202020202020202020202020202020202027f4242424242424242424242424242424242424242424242424242424242424242840160061c1660011c600f8102604b83020160038583160260068502017f414141414141414141414141414141414141414141414141414141414141414101850103865250505050602082019150828210156107605760180161057a565b5050613d3d60f01b60038406600204820352600090525b505050565b6060815160000361079b57505060408051602081019091526000815290565b6000604051806060016040528060408152602001610d8160409139905060006003845160026107ca9190610d21565b6107d49190610d34565b6107df906004610d69565b6001600160401b038111156107f6576107f661092f565b6040519080825280601f01601f191660200182016040528015610820576020820181803683370190505b509050600182016020820185865187015b8082101561088c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610831565b50506003865106600181146108a857600281146108bb576108c3565b603d6001830353603d60028303536108c3565b603d60018303535b509195945050505050565b60405160005b838110156108eb57600019828201526020016108d4565b500160405250565b600081516020830160005b828110156109165781810151868201526020016108fe565b5050601f9301928301601f191660405250815b92915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561096d5761096d61092f565b604052919050565b600082601f83011261098657600080fd5b81356001600160401b0381111561099f5761099f61092f565b6109b2601f8201601f1916602001610945565b8181528460208386010111156109c757600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f8301126109f557600080fd5b813560206001600160401b0380831115610a1157610a1161092f565b8260051b610a20838201610945565b9384528581018301938381019088861115610a3a57600080fd5b84880192505b8583101561012257823584811115610a585760008081fd5b610a668a87838c0101610975565b8352509184019190840190610a40565b600080600080600060a08688031215610a8e57600080fd5b85356001600160401b03811115610aa457600080fd5b610ab0888289016109e4565b9860208801359850604088013597606081013597506080013595509350505050565b6000815180845260005b81811015610af857602081850181015186830182015201610adc565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610b2b6020830184610ad2565b9392505050565b60008060408385031215610b4557600080fd5b82356001600160401b03811115610b5b57600080fd5b610b67858286016109e4565b95602094909401359450505050565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b83811015610bcd57605f19888703018552610bbb868351610ad2565b95509382019390820190600101610b9f565b50508584038187015286518085528782019482019350915060005b82811015610c06578451151584529381019392810192600101610be8565b5091979650505050505050565b600080600060608486031215610c2857600080fd5b83356001600160401b03811115610c3e57600080fd5b610c4a868287016109e4565b9660208601359650604090950135949350505050565b60008060408385031215610c7357600080fd5b82356001600160401b03811115610c8957600080fd5b610b6785828601610975565b604081526000610ca86040830185610ad2565b905082151560208301529392505050565b600060208284031215610ccb57600080fd5b81356001600160401b03811115610ce157600080fd5b610ced84828501610975565b949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092957610929610d0b565b600082610d5157634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561092957610929610d0b565b808202811582820484141761092957610929610d0b56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212202ecd47dbcb9ecadef9f771ff22b921f76486b31bd99d3d49c42a10f017d8b4df64736f6c63430008160033",
|
|
159
|
+
"linkReferences": {},
|
|
160
|
+
"deployedLinkReferences": {}
|
|
161
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IMockFileStore",
|
|
4
|
+
"sourceName": "contracts/mock/MockAbxfsFileDataReader.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes32",
|
|
10
|
+
"name": "cid",
|
|
11
|
+
"type": "bytes32"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "getFileInfo",
|
|
15
|
+
"outputs": [
|
|
16
|
+
{
|
|
17
|
+
"components": [
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes32",
|
|
20
|
+
"name": "root",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint8",
|
|
25
|
+
"name": "rootLevel",
|
|
26
|
+
"type": "uint8"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "chunkCount",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "uint256",
|
|
35
|
+
"name": "size",
|
|
36
|
+
"type": "uint256"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "string",
|
|
40
|
+
"name": "mimeType",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "bytes32",
|
|
45
|
+
"name": "codec",
|
|
46
|
+
"type": "bytes32"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "bytes32",
|
|
50
|
+
"name": "outputHash",
|
|
51
|
+
"type": "bytes32"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"internalType": "struct IMockFileStore.FileInfo",
|
|
55
|
+
"name": "info",
|
|
56
|
+
"type": "tuple"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"stateMutability": "view",
|
|
60
|
+
"type": "function"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"internalType": "bytes32",
|
|
66
|
+
"name": "cid",
|
|
67
|
+
"type": "bytes32"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"internalType": "uint256",
|
|
71
|
+
"name": "index",
|
|
72
|
+
"type": "uint256"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"name": "readChunk",
|
|
76
|
+
"outputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "bytes",
|
|
79
|
+
"name": "data",
|
|
80
|
+
"type": "bytes"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"stateMutability": "view",
|
|
84
|
+
"type": "function"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"bytecode": "0x",
|
|
88
|
+
"deployedBytecode": "0x",
|
|
89
|
+
"linkReferences": {},
|
|
90
|
+
"deployedLinkReferences": {}
|
|
91
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "MockAbxfsFileDataReader",
|
|
4
|
+
"sourceName": "contracts/mock/MockAbxfsFileDataReader.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "bytesRequired",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "maxBytes",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "ByteLimitExceeded",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [
|
|
24
|
+
{
|
|
25
|
+
"internalType": "uint256",
|
|
26
|
+
"name": "chunksRequired",
|
|
27
|
+
"type": "uint256"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"internalType": "uint256",
|
|
31
|
+
"name": "maxChunks",
|
|
32
|
+
"type": "uint256"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"name": "ChunkLimitExceeded",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [],
|
|
40
|
+
"name": "InvalidFileLength",
|
|
41
|
+
"type": "error"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "start",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"internalType": "uint256",
|
|
52
|
+
"name": "length",
|
|
53
|
+
"type": "uint256"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"internalType": "uint256",
|
|
57
|
+
"name": "size",
|
|
58
|
+
"type": "uint256"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"name": "RangeOutOfBounds",
|
|
62
|
+
"type": "error"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"inputs": [
|
|
66
|
+
{
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "start",
|
|
69
|
+
"type": "uint256"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "uint256",
|
|
73
|
+
"name": "length",
|
|
74
|
+
"type": "uint256"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"name": "UnalignedBase64Range",
|
|
78
|
+
"type": "error"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"internalType": "bytes32",
|
|
84
|
+
"name": "cid",
|
|
85
|
+
"type": "bytes32"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "maxBytes",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"internalType": "uint256",
|
|
94
|
+
"name": "maxChunks",
|
|
95
|
+
"type": "uint256"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "readFileDataBase64",
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "string",
|
|
102
|
+
"name": "mimeType",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "bytes32",
|
|
107
|
+
"name": "codec",
|
|
108
|
+
"type": "bytes32"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "bytes32",
|
|
112
|
+
"name": "outputHash",
|
|
113
|
+
"type": "bytes32"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"internalType": "string",
|
|
117
|
+
"name": "base64",
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"stateMutability": "view",
|
|
122
|
+
"type": "function"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"inputs": [
|
|
126
|
+
{
|
|
127
|
+
"internalType": "bytes32",
|
|
128
|
+
"name": "cid",
|
|
129
|
+
"type": "bytes32"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"internalType": "uint256",
|
|
133
|
+
"name": "start",
|
|
134
|
+
"type": "uint256"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"internalType": "uint256",
|
|
138
|
+
"name": "length",
|
|
139
|
+
"type": "uint256"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"internalType": "uint256",
|
|
143
|
+
"name": "",
|
|
144
|
+
"type": "uint256"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"internalType": "uint256",
|
|
148
|
+
"name": "",
|
|
149
|
+
"type": "uint256"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"name": "readFileDataRangeBase64",
|
|
153
|
+
"outputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "string",
|
|
156
|
+
"name": "mimeType",
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"internalType": "bytes32",
|
|
161
|
+
"name": "codec",
|
|
162
|
+
"type": "bytes32"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "bytes32",
|
|
166
|
+
"name": "outputHash",
|
|
167
|
+
"type": "bytes32"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"internalType": "string",
|
|
171
|
+
"name": "base64",
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"stateMutability": "view",
|
|
176
|
+
"type": "function"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610a81806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806314c428451461003b5780634e2271af14610067575b600080fd5b61004e610049366004610667565b61007a565b60405161005e94939291906106f2565b60405180910390f35b61004e61007536600461072e565b61031c565b606060008060606000738b6077a1d6953d96687005b9408d56a655b4d1556001600160a01b03166352f7347b8b6040518263ffffffff1660e01b81526004016100c591815260200190565b600060405180830381865afa1580156100e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261010a9190810190610848565b606081015190915061011c898b610910565b111561015757606081015160405163e944a15760e01b8152600481018b9052602481018a905260448101919091526064015b60405180910390fd5b61016260038a61093f565b151580610190575061017560038961093f565b158015906101905750606081015161018d898b610910565b14155b156101b257888860405163d02c57b760e01b815260040161014e929190610953565b606060005b82604001518110156102765781738b6077a1d6953d96687005b9408d56a655b4d1556001600160a01b031663c203cb0c8e846040518363ffffffff1660e01b8152600401610206929190610953565b600060405180830381865afa158015610223573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261024b9190810190610961565b60405160200161025c9291906109b1565b60408051601f1981840301815291905291506001016101b7565b506000896001600160401b038111156102915761029161075a565b6040519080825280601f01601f1916602001820160405280156102bb576020820181803683370190505b5090508a60208301016020820160005b8c8110156102e35782810151828201526020016102cb565b506000908c015250898152608083015160a084015160c085015161030684610515565b929f919e509c50909a5098505050505050505050565b606060008060606000738b6077a1d6953d96687005b9408d56a655b4d1556001600160a01b03166352f7347b896040518263ffffffff1660e01b815260040161036791815260200190565b600060405180830381865afa158015610384573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103ac9190810190610848565b905086816060015111156103db57806060015187604051633df4df9760e01b815260040161014e929190610953565b858160400151111561040857806040015186604051635a0c51d560e11b815260040161014e929190610953565b606060005b82604001518110156104c457604051633080f2c360e21b81528290738b6077a1d6953d96687005b9408d56a655b4d1559063c203cb0c90610454908e908690600401610953565b600060405180830381865afa158015610471573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104999190810190610961565b6040516020016104aa9291906109b1565b60408051601f19818403018152919052915060010161040d565b5081606001518151146104ea576040516309495d9960e41b815260040160405180910390fd5b81608001518260a001518360c0015161050284610515565b9550955095509550505093509350935093565b6060815160000361053457505060408051602081019091526000815290565b6000604051806060016040528060408152602001610a0c60409139905060006003845160026105639190610910565b61056d91906109e0565b6105789060046109f4565b6001600160401b0381111561058f5761058f61075a565b6040519080825280601f01601f1916602001820160405280156105b9576020820181803683370190505b509050600182016020820185865187015b80821015610625576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506105ca565b505060038651066001811461064157600281146106545761065c565b603d6001830353603d600283035361065c565b603d60018303535b509195945050505050565b600080600080600060a0868803121561067f57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b838110156106bd5781810151838201526020016106a5565b50506000910152565b600081518084526106de8160208601602086016106a2565b601f01601f19169290920160200192915050565b60808152600061070560808301876106c6565b856020840152846040840152828103606084015261072381856106c6565b979650505050505050565b60008060006060848603121561074357600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156107925761079261075a565b60405290565b805160ff811681146107a957600080fd5b919050565b60006001600160401b03808411156107c8576107c861075a565b604051601f8501601f19908116603f011681019082821181831017156107f0576107f061075a565b8160405280935085815286868601111561080957600080fd5b6108178660208301876106a2565b5050509392505050565b600082601f83011261083257600080fd5b610841838351602085016107ae565b9392505050565b60006020828403121561085a57600080fd5b81516001600160401b038082111561087157600080fd5b9083019060e0828603121561088557600080fd5b61088d610770565b8251815261089d60208401610798565b602082015260408301516040820152606083015160608201526080830151828111156108c857600080fd5b6108d487828601610821565b60808301525060a083015160a082015260c083015160c082015280935050505092915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610923576109236108fa565b92915050565b634e487b7160e01b600052601260045260246000fd5b60008261094e5761094e610929565b500690565b918252602082015260400190565b60006020828403121561097357600080fd5b81516001600160401b0381111561098957600080fd5b8201601f8101841361099a57600080fd5b6109a9848251602084016107ae565b949350505050565b600083516109c38184602088016106a2565b8351908301906109d78183602088016106a2565b01949350505050565b6000826109ef576109ef610929565b500490565b8082028115828204841417610923576109236108fa56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220632b5f5942d05de485bf779caa28cfeac76b2e3d5af959b7678c82b890ad763164736f6c63430008160033",
|
|
180
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806314c428451461003b5780634e2271af14610067575b600080fd5b61004e610049366004610667565b61007a565b60405161005e94939291906106f2565b60405180910390f35b61004e61007536600461072e565b61031c565b606060008060606000738b6077a1d6953d96687005b9408d56a655b4d1556001600160a01b03166352f7347b8b6040518263ffffffff1660e01b81526004016100c591815260200190565b600060405180830381865afa1580156100e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261010a9190810190610848565b606081015190915061011c898b610910565b111561015757606081015160405163e944a15760e01b8152600481018b9052602481018a905260448101919091526064015b60405180910390fd5b61016260038a61093f565b151580610190575061017560038961093f565b158015906101905750606081015161018d898b610910565b14155b156101b257888860405163d02c57b760e01b815260040161014e929190610953565b606060005b82604001518110156102765781738b6077a1d6953d96687005b9408d56a655b4d1556001600160a01b031663c203cb0c8e846040518363ffffffff1660e01b8152600401610206929190610953565b600060405180830381865afa158015610223573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261024b9190810190610961565b60405160200161025c9291906109b1565b60408051601f1981840301815291905291506001016101b7565b506000896001600160401b038111156102915761029161075a565b6040519080825280601f01601f1916602001820160405280156102bb576020820181803683370190505b5090508a60208301016020820160005b8c8110156102e35782810151828201526020016102cb565b506000908c015250898152608083015160a084015160c085015161030684610515565b929f919e509c50909a5098505050505050505050565b606060008060606000738b6077a1d6953d96687005b9408d56a655b4d1556001600160a01b03166352f7347b896040518263ffffffff1660e01b815260040161036791815260200190565b600060405180830381865afa158015610384573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103ac9190810190610848565b905086816060015111156103db57806060015187604051633df4df9760e01b815260040161014e929190610953565b858160400151111561040857806040015186604051635a0c51d560e11b815260040161014e929190610953565b606060005b82604001518110156104c457604051633080f2c360e21b81528290738b6077a1d6953d96687005b9408d56a655b4d1559063c203cb0c90610454908e908690600401610953565b600060405180830381865afa158015610471573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104999190810190610961565b6040516020016104aa9291906109b1565b60408051601f19818403018152919052915060010161040d565b5081606001518151146104ea576040516309495d9960e41b815260040160405180910390fd5b81608001518260a001518360c0015161050284610515565b9550955095509550505093509350935093565b6060815160000361053457505060408051602081019091526000815290565b6000604051806060016040528060408152602001610a0c60409139905060006003845160026105639190610910565b61056d91906109e0565b6105789060046109f4565b6001600160401b0381111561058f5761058f61075a565b6040519080825280601f01601f1916602001820160405280156105b9576020820181803683370190505b509050600182016020820185865187015b80821015610625576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506105ca565b505060038651066001811461064157600281146106545761065c565b603d6001830353603d600283035361065c565b603d60018303535b509195945050505050565b600080600080600060a0868803121561067f57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b838110156106bd5781810151838201526020016106a5565b50506000910152565b600081518084526106de8160208601602086016106a2565b601f01601f19169290920160200192915050565b60808152600061070560808301876106c6565b856020840152846040840152828103606084015261072381856106c6565b979650505050505050565b60008060006060848603121561074357600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156107925761079261075a565b60405290565b805160ff811681146107a957600080fd5b919050565b60006001600160401b03808411156107c8576107c861075a565b604051601f8501601f19908116603f011681019082821181831017156107f0576107f061075a565b8160405280935085815286868601111561080957600080fd5b6108178660208301876106a2565b5050509392505050565b600082601f83011261083257600080fd5b610841838351602085016107ae565b9392505050565b60006020828403121561085a57600080fd5b81516001600160401b038082111561087157600080fd5b9083019060e0828603121561088557600080fd5b61088d610770565b8251815261089d60208401610798565b602082015260408301516040820152606083015160608201526080830151828111156108c857600080fd5b6108d487828601610821565b60808301525060a083015160a082015260c083015160c082015280935050505092915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610923576109236108fa565b92915050565b634e487b7160e01b600052601260045260246000fd5b60008261094e5761094e610929565b500690565b918252602082015260400190565b60006020828403121561097357600080fd5b81516001600160401b0381111561098957600080fd5b8201601f8101841361099a57600080fd5b6109a9848251602084016107ae565b949350505050565b600083516109c38184602088016106a2565b8351908301906109d78183602088016106a2565b01949350505050565b6000826109ef576109ef610929565b500490565b8082028115828204841417610923576109236108fa56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220632b5f5942d05de485bf779caa28cfeac76b2e3d5af959b7678c82b890ad763164736f6c63430008160033",
|
|
181
|
+
"linkReferences": {},
|
|
182
|
+
"deployedLinkReferences": {}
|
|
183
|
+
}
|