@etherisc/gif-next 0.0.2-ebbe63d → 0.0.2-ed4dd55
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +95 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +179 -0
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +35 -0
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +179 -0
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +192 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
- package/artifacts/contracts/components/Pool.sol/Pool.json +195 -0
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
- package/artifacts/contracts/components/Product.sol/Product.json +213 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +128 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +42 -0
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +76 -0
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +89 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +128 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +37 -0
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +50 -0
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +63 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +892 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +4 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1009 -0
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +400 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.json +10 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +35 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +50 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +336 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +327 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +105 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.json +10 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +179 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +245 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +94 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +24 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.json +10 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +231 -0
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +231 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +4 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.json +10 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +149 -0
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +162 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +4 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +75 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +114 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +4 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +75 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +125 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +534 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +452 -0
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +24 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +166 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +279 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +49 -0
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +166 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +4 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.json +305 -0
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +60 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +10 -0
- package/contracts/components/Component.sol +62 -0
- package/contracts/components/IPool.sol +9 -0
- package/contracts/components/IProduct.sol +11 -0
- package/contracts/components/Pool.sol +29 -0
- package/contracts/components/Product.sol +65 -0
- package/contracts/experiment/inheritance/A.sol +56 -0
- package/contracts/experiment/inheritance/B.sol +23 -0
- package/contracts/experiment/inheritance/C.sol +28 -0
- package/contracts/experiment/inheritance/IA.sol +18 -0
- package/contracts/experiment/inheritance/IB.sol +9 -0
- package/contracts/experiment/inheritance/IC.sol +11 -0
- package/contracts/experiment/types/TypeA.sol +42 -0
- package/contracts/experiment/types/TypeB.sol +24 -0
- package/contracts/instance/IInstance.sol +20 -0
- package/contracts/instance/Instance.sol +63 -0
- package/contracts/instance/access/Access.sol +218 -0
- package/contracts/instance/access/IAccess.sol +83 -0
- package/contracts/instance/component/ComponentModule.sol +259 -0
- package/contracts/instance/component/IComponent.sol +94 -0
- package/contracts/instance/policy/IPolicy.sol +66 -0
- package/contracts/instance/policy/PolicyModule.sol +106 -0
- package/contracts/instance/pool/IPoolModule.sol +40 -0
- package/contracts/instance/pool/PoolModule.sol +83 -0
- package/contracts/instance/product/IProductService.sol +45 -0
- package/contracts/instance/product/ProductService.sol +105 -0
- package/contracts/registry/ChainNft.sol +173 -0
- package/contracts/registry/IChainNft.sol +18 -0
- package/contracts/registry/IRegistry.sol +68 -0
- package/contracts/registry/Registry.sol +176 -0
- package/contracts/types/ChainId.sol +24 -0
- package/contracts/types/NftId.sol +25 -0
- package/package.json +7 -6
- package/artifacts/contracts/Dip.sol/DIP.dbg.json +0 -4
- package/artifacts/contracts/Dip.sol/DIP.json +0 -338
- package/artifacts/contracts/Lock.sol/Lock.dbg.json +0 -4
- package/artifacts/contracts/Lock.sol/Lock.json +0 -74
- package/contracts/Dip.sol +0 -26
- package/contracts/Lock.sol +0 -34
@@ -0,0 +1,305 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "Registry",
|
4
|
+
"sourceName": "contracts/registry/Registry.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [],
|
8
|
+
"name": "BUNDLE",
|
9
|
+
"outputs": [
|
10
|
+
{
|
11
|
+
"internalType": "uint256",
|
12
|
+
"name": "",
|
13
|
+
"type": "uint256"
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"stateMutability": "pure",
|
17
|
+
"type": "function"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"inputs": [],
|
21
|
+
"name": "EMPTY_URI",
|
22
|
+
"outputs": [
|
23
|
+
{
|
24
|
+
"internalType": "string",
|
25
|
+
"name": "",
|
26
|
+
"type": "string"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"stateMutability": "view",
|
30
|
+
"type": "function"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"inputs": [],
|
34
|
+
"name": "INSTANCE",
|
35
|
+
"outputs": [
|
36
|
+
{
|
37
|
+
"internalType": "uint256",
|
38
|
+
"name": "",
|
39
|
+
"type": "uint256"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"stateMutability": "pure",
|
43
|
+
"type": "function"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"inputs": [],
|
47
|
+
"name": "ORACLE",
|
48
|
+
"outputs": [
|
49
|
+
{
|
50
|
+
"internalType": "uint256",
|
51
|
+
"name": "",
|
52
|
+
"type": "uint256"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"stateMutability": "pure",
|
56
|
+
"type": "function"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"inputs": [],
|
60
|
+
"name": "POLICY",
|
61
|
+
"outputs": [
|
62
|
+
{
|
63
|
+
"internalType": "uint256",
|
64
|
+
"name": "",
|
65
|
+
"type": "uint256"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"stateMutability": "pure",
|
69
|
+
"type": "function"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "POOL",
|
74
|
+
"outputs": [
|
75
|
+
{
|
76
|
+
"internalType": "uint256",
|
77
|
+
"name": "",
|
78
|
+
"type": "uint256"
|
79
|
+
}
|
80
|
+
],
|
81
|
+
"stateMutability": "pure",
|
82
|
+
"type": "function"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"inputs": [],
|
86
|
+
"name": "PRODUCT",
|
87
|
+
"outputs": [
|
88
|
+
{
|
89
|
+
"internalType": "uint256",
|
90
|
+
"name": "",
|
91
|
+
"type": "uint256"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"stateMutability": "pure",
|
95
|
+
"type": "function"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"inputs": [],
|
99
|
+
"name": "TOKEN",
|
100
|
+
"outputs": [
|
101
|
+
{
|
102
|
+
"internalType": "uint256",
|
103
|
+
"name": "",
|
104
|
+
"type": "uint256"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
"stateMutability": "pure",
|
108
|
+
"type": "function"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"inputs": [
|
112
|
+
{
|
113
|
+
"internalType": "uint256",
|
114
|
+
"name": "nftId",
|
115
|
+
"type": "uint256"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"name": "getInfo",
|
119
|
+
"outputs": [
|
120
|
+
{
|
121
|
+
"components": [
|
122
|
+
{
|
123
|
+
"internalType": "uint256",
|
124
|
+
"name": "nftId",
|
125
|
+
"type": "uint256"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"internalType": "uint256",
|
129
|
+
"name": "parentNftId",
|
130
|
+
"type": "uint256"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"internalType": "uint256",
|
134
|
+
"name": "objectType",
|
135
|
+
"type": "uint256"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"internalType": "address",
|
139
|
+
"name": "objectAddress",
|
140
|
+
"type": "address"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"internalType": "address",
|
144
|
+
"name": "initialOwner",
|
145
|
+
"type": "address"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"internalType": "struct IRegistry.RegistryInfo",
|
149
|
+
"name": "info",
|
150
|
+
"type": "tuple"
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"stateMutability": "view",
|
154
|
+
"type": "function"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"inputs": [],
|
158
|
+
"name": "getNftAddress",
|
159
|
+
"outputs": [
|
160
|
+
{
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "nft",
|
163
|
+
"type": "address"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"stateMutability": "view",
|
167
|
+
"type": "function"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"inputs": [
|
171
|
+
{
|
172
|
+
"internalType": "address",
|
173
|
+
"name": "object",
|
174
|
+
"type": "address"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"name": "getNftId",
|
178
|
+
"outputs": [
|
179
|
+
{
|
180
|
+
"internalType": "uint256",
|
181
|
+
"name": "id",
|
182
|
+
"type": "uint256"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"stateMutability": "view",
|
186
|
+
"type": "function"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"inputs": [],
|
190
|
+
"name": "getObjectCount",
|
191
|
+
"outputs": [
|
192
|
+
{
|
193
|
+
"internalType": "uint256",
|
194
|
+
"name": "",
|
195
|
+
"type": "uint256"
|
196
|
+
}
|
197
|
+
],
|
198
|
+
"stateMutability": "view",
|
199
|
+
"type": "function"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"inputs": [
|
203
|
+
{
|
204
|
+
"internalType": "uint256",
|
205
|
+
"name": "nftId",
|
206
|
+
"type": "uint256"
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"name": "getOwner",
|
210
|
+
"outputs": [
|
211
|
+
{
|
212
|
+
"internalType": "address",
|
213
|
+
"name": "",
|
214
|
+
"type": "address"
|
215
|
+
}
|
216
|
+
],
|
217
|
+
"stateMutability": "view",
|
218
|
+
"type": "function"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"inputs": [
|
222
|
+
{
|
223
|
+
"internalType": "address",
|
224
|
+
"name": "chainNft",
|
225
|
+
"type": "address"
|
226
|
+
}
|
227
|
+
],
|
228
|
+
"name": "initialize",
|
229
|
+
"outputs": [],
|
230
|
+
"stateMutability": "nonpayable",
|
231
|
+
"type": "function"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"inputs": [
|
235
|
+
{
|
236
|
+
"internalType": "address",
|
237
|
+
"name": "object",
|
238
|
+
"type": "address"
|
239
|
+
}
|
240
|
+
],
|
241
|
+
"name": "isRegistered",
|
242
|
+
"outputs": [
|
243
|
+
{
|
244
|
+
"internalType": "bool",
|
245
|
+
"name": "",
|
246
|
+
"type": "bool"
|
247
|
+
}
|
248
|
+
],
|
249
|
+
"stateMutability": "view",
|
250
|
+
"type": "function"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"inputs": [
|
254
|
+
{
|
255
|
+
"internalType": "address",
|
256
|
+
"name": "objectAddress",
|
257
|
+
"type": "address"
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"name": "register",
|
261
|
+
"outputs": [
|
262
|
+
{
|
263
|
+
"internalType": "uint256",
|
264
|
+
"name": "nftId",
|
265
|
+
"type": "uint256"
|
266
|
+
}
|
267
|
+
],
|
268
|
+
"stateMutability": "nonpayable",
|
269
|
+
"type": "function"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"inputs": [
|
273
|
+
{
|
274
|
+
"internalType": "uint256",
|
275
|
+
"name": "parentNftId",
|
276
|
+
"type": "uint256"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"internalType": "uint256",
|
280
|
+
"name": "objectType",
|
281
|
+
"type": "uint256"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"internalType": "address",
|
285
|
+
"name": "initialOwner",
|
286
|
+
"type": "address"
|
287
|
+
}
|
288
|
+
],
|
289
|
+
"name": "registerObjectForInstance",
|
290
|
+
"outputs": [
|
291
|
+
{
|
292
|
+
"internalType": "uint256",
|
293
|
+
"name": "nftId",
|
294
|
+
"type": "uint256"
|
295
|
+
}
|
296
|
+
],
|
297
|
+
"stateMutability": "nonpayable",
|
298
|
+
"type": "function"
|
299
|
+
}
|
300
|
+
],
|
301
|
+
"bytecode": "0x608060405234801561001057600080fd5b506117e3806100206000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806382bfefc8116100a2578063c41a360a11610071578063c41a360a146102c0578063c4d66de8146102f0578063d15db8b41461030c578063d272ac1e1461032a578063dadbccee1461035a5761010b565b806382bfefc814610224578063ab10b8ec14610242578063be9a71bd14610272578063c3c5a547146102905761010b565b80633fe9300e116100de5780633fe9300e1461019a5780634420e486146101b857806353bed7c3146101e85780637535d246146102065761010b565b80631a3cd59a146101105780631a848cfb1461014057806325425a911461015e57806338013f021461017c575b600080fd5b61012a60048036038101906101259190611176565b610378565b604051610137919061125b565b60405180910390f35b61014861046e565b6040516101559190611285565b60405180910390f35b610166610506565b6040516101739190611285565b60405180910390f35b61018461050f565b6040516101919190611285565b60405180910390f35b6101a2610518565b6040516101af9190611330565b60405180910390f35b6101d260048036038101906101cd919061137e565b61052b565b6040516101df9190611285565b60405180910390f35b6101f0610c4c565b6040516101fd9190611285565b60405180910390f35b61020e610c55565b60405161021b9190611285565b60405180910390f35b61022c610c5e565b6040516102399190611285565b60405180910390f35b61025c600480360381019061025791906113ab565b610c67565b6040516102699190611285565b60405180910390f35b61027a610e96565b604051610287919061140d565b60405180910390f35b6102aa60048036038101906102a5919061137e565b610ec0565b6040516102b79190611443565b60405180910390f35b6102da60048036038101906102d59190611176565b610f0b565b6040516102e7919061140d565b60405180910390f35b61030a6004803603810190610305919061137e565b610fb0565b005b610314611085565b6040516103219190611285565b60405180910390f35b610344600480360381019061033f919061137e565b61108e565b6040516103519190611285565b60405180910390f35b6103626110d7565b60405161036f9190611285565b60405180910390f35b6103806110e0565b6000808381526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105019190611473565b905090565b60006032905090565b6000603c905090565b6040518060200160405280600081525081565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146105ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a5906114ec565b60405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff166379e829d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106229190611538565b610661576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610658906115b1565b60405180910390fd5b610669611085565b8173ffffffffffffffffffffffffffffffffffffffff166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d89190611473565b1461087f5760008060008373ffffffffffffffffffffffffffffffffffffffff166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561072d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107519190611473565b81526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050600081600001511161087d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108749061161d565b60405180910390fd5b505b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0def5218273ffffffffffffffffffffffffffffffffffffffff1663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa158015610908573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092c9190611652565b604051806020016040528060008152506040518363ffffffff1660e01b815260040161095992919061167f565b6020604051808303816000875af1158015610978573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099c9190611473565b915060006040518060a001604052808481526020018373ffffffffffffffffffffffffffffffffffffffff166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a209190611473565b81526020018373ffffffffffffffffffffffffffffffffffffffff166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a949190611473565b81526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b249190611652565b73ffffffffffffffffffffffffffffffffffffffff1681525090508060008085815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505082600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050919050565b6000605a905090565b60006046905090565b6000601e905090565b6000610c716110d7565b831480610c845750610c81610c4c565b83145b610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba906116fb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0def52183604051806020016040528060008152506040518363ffffffff1660e01b8152600401610d2f92919061167f565b6020604051808303816000875af1158015610d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d729190611473565b905060006040518060a00160405280838152602001868152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681525090508060008084815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050509392505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054119050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610f689190611285565b602060405180830381865afa158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190611652565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611041576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110389061178d565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006028905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006050905090565b6040518060a00160405280600081526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600080fd5b6000819050919050565b61115381611140565b811461115e57600080fd5b50565b6000813590506111708161114a565b92915050565b60006020828403121561118c5761118b61113b565b5b600061119a84828501611161565b91505092915050565b6111ac81611140565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111dd826111b2565b9050919050565b6111ed816111d2565b82525050565b60a08201600082015161120960008501826111a3565b50602082015161121c60208501826111a3565b50604082015161122f60408501826111a3565b50606082015161124260608501826111e4565b50608082015161125560808501826111e4565b50505050565b600060a08201905061127060008301846111f3565b92915050565b61127f81611140565b82525050565b600060208201905061129a6000830184611276565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112da5780820151818401526020810190506112bf565b60008484015250505050565b6000601f19601f8301169050919050565b6000611302826112a0565b61130c81856112ab565b935061131c8185602086016112bc565b611325816112e6565b840191505092915050565b6000602082019050818103600083015261134a81846112f7565b905092915050565b61135b816111d2565b811461136657600080fd5b50565b60008135905061137881611352565b92915050565b6000602082840312156113945761139361113b565b5b60006113a284828501611369565b91505092915050565b6000806000606084860312156113c4576113c361113b565b5b60006113d286828701611161565b93505060206113e386828701611161565b92505060406113f486828701611369565b9150509250925092565b611407816111d2565b82525050565b600060208201905061142260008301846113fe565b92915050565b60008115159050919050565b61143d81611428565b82525050565b60006020820190506114586000830184611434565b92915050565b60008151905061146d8161114a565b92915050565b6000602082840312156114895761148861113b565b5b60006114978482850161145e565b91505092915050565b7f4552524f523a5245472d3030313a414c52454144595f52454749535445524544600082015250565b60006114d66020836112ab565b91506114e1826114a0565b602082019050919050565b60006020820190508181036000830152611505816114c9565b9050919050565b61151581611428565b811461152057600080fd5b50565b6000815190506115328161150c565b92915050565b60006020828403121561154e5761154d61113b565b5b600061155c84828501611523565b91505092915050565b7f4552524f523a5245472d3030323a4e4f545f524547495354455241424c450000600082015250565b600061159b601e836112ab565b91506115a682611565565b602082019050919050565b600060208201905081810360008301526115ca8161158e565b9050919050565b7f4552524f523a5245472d3030333a504152454e545f4e4f545f464f554e440000600082015250565b6000611607601e836112ab565b9150611612826115d1565b602082019050919050565b60006020820190508181036000830152611636816115fa565b9050919050565b60008151905061164c81611352565b92915050565b6000602082840312156116685761166761113b565b5b60006116768482850161163d565b91505092915050565b600060408201905061169460008301856113fe565b81810360208301526116a681846112f7565b90509392505050565b7f4552524f523a5245472d3030353a545950455f494e56414c4944000000000000600082015250565b60006116e5601a836112ab565b91506116f0826116af565b602082019050919050565b60006020820190508181036000830152611714816116d8565b9050919050565b7f4552524f523a5245472d3030313a414c52454144595f494e495449414c495a4560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b60006117776021836112ab565b91506117828261171b565b604082019050919050565b600060208201905081810360008301526117a68161176a565b905091905056fea2646970667358221220b3d9bb8f0008c6333b80dd7514f21858c42aca09341fe2aa6324e61e9e75084864736f6c63430008140033",
|
302
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806382bfefc8116100a2578063c41a360a11610071578063c41a360a146102c0578063c4d66de8146102f0578063d15db8b41461030c578063d272ac1e1461032a578063dadbccee1461035a5761010b565b806382bfefc814610224578063ab10b8ec14610242578063be9a71bd14610272578063c3c5a547146102905761010b565b80633fe9300e116100de5780633fe9300e1461019a5780634420e486146101b857806353bed7c3146101e85780637535d246146102065761010b565b80631a3cd59a146101105780631a848cfb1461014057806325425a911461015e57806338013f021461017c575b600080fd5b61012a60048036038101906101259190611176565b610378565b604051610137919061125b565b60405180910390f35b61014861046e565b6040516101559190611285565b60405180910390f35b610166610506565b6040516101739190611285565b60405180910390f35b61018461050f565b6040516101919190611285565b60405180910390f35b6101a2610518565b6040516101af9190611330565b60405180910390f35b6101d260048036038101906101cd919061137e565b61052b565b6040516101df9190611285565b60405180910390f35b6101f0610c4c565b6040516101fd9190611285565b60405180910390f35b61020e610c55565b60405161021b9190611285565b60405180910390f35b61022c610c5e565b6040516102399190611285565b60405180910390f35b61025c600480360381019061025791906113ab565b610c67565b6040516102699190611285565b60405180910390f35b61027a610e96565b604051610287919061140d565b60405180910390f35b6102aa60048036038101906102a5919061137e565b610ec0565b6040516102b79190611443565b60405180910390f35b6102da60048036038101906102d59190611176565b610f0b565b6040516102e7919061140d565b60405180910390f35b61030a6004803603810190610305919061137e565b610fb0565b005b610314611085565b6040516103219190611285565b60405180910390f35b610344600480360381019061033f919061137e565b61108e565b6040516103519190611285565b60405180910390f35b6103626110d7565b60405161036f9190611285565b60405180910390f35b6103806110e0565b6000808381526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105019190611473565b905090565b60006032905090565b6000603c905090565b6040518060200160405280600081525081565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146105ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a5906114ec565b60405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff166379e829d06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106229190611538565b610661576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610658906115b1565b60405180910390fd5b610669611085565b8173ffffffffffffffffffffffffffffffffffffffff166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d89190611473565b1461087f5760008060008373ffffffffffffffffffffffffffffffffffffffff166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561072d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107519190611473565b81526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050600081600001511161087d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108749061161d565b60405180910390fd5b505b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0def5218273ffffffffffffffffffffffffffffffffffffffff1663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa158015610908573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092c9190611652565b604051806020016040528060008152506040518363ffffffff1660e01b815260040161095992919061167f565b6020604051808303816000875af1158015610978573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099c9190611473565b915060006040518060a001604052808481526020018373ffffffffffffffffffffffffffffffffffffffff166331b62a3b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a209190611473565b81526020018373ffffffffffffffffffffffffffffffffffffffff166315dae03e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a949190611473565b81526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1663fb2cb1016040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b249190611652565b73ffffffffffffffffffffffffffffffffffffffff1681525090508060008085815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505082600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050919050565b6000605a905090565b60006046905090565b6000601e905090565b6000610c716110d7565b831480610c845750610c81610c4c565b83145b610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba906116fb565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0def52183604051806020016040528060008152506040518363ffffffff1660e01b8152600401610d2f92919061167f565b6020604051808303816000875af1158015610d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d729190611473565b905060006040518060a00160405280838152602001868152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681525090508060008084815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050509392505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054119050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610f689190611285565b602060405180830381865afa158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190611652565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611041576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110389061178d565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006028905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006050905090565b6040518060a00160405280600081526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600080fd5b6000819050919050565b61115381611140565b811461115e57600080fd5b50565b6000813590506111708161114a565b92915050565b60006020828403121561118c5761118b61113b565b5b600061119a84828501611161565b91505092915050565b6111ac81611140565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111dd826111b2565b9050919050565b6111ed816111d2565b82525050565b60a08201600082015161120960008501826111a3565b50602082015161121c60208501826111a3565b50604082015161122f60408501826111a3565b50606082015161124260608501826111e4565b50608082015161125560808501826111e4565b50505050565b600060a08201905061127060008301846111f3565b92915050565b61127f81611140565b82525050565b600060208201905061129a6000830184611276565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112da5780820151818401526020810190506112bf565b60008484015250505050565b6000601f19601f8301169050919050565b6000611302826112a0565b61130c81856112ab565b935061131c8185602086016112bc565b611325816112e6565b840191505092915050565b6000602082019050818103600083015261134a81846112f7565b905092915050565b61135b816111d2565b811461136657600080fd5b50565b60008135905061137881611352565b92915050565b6000602082840312156113945761139361113b565b5b60006113a284828501611369565b91505092915050565b6000806000606084860312156113c4576113c361113b565b5b60006113d286828701611161565b93505060206113e386828701611161565b92505060406113f486828701611369565b9150509250925092565b611407816111d2565b82525050565b600060208201905061142260008301846113fe565b92915050565b60008115159050919050565b61143d81611428565b82525050565b60006020820190506114586000830184611434565b92915050565b60008151905061146d8161114a565b92915050565b6000602082840312156114895761148861113b565b5b60006114978482850161145e565b91505092915050565b7f4552524f523a5245472d3030313a414c52454144595f52454749535445524544600082015250565b60006114d66020836112ab565b91506114e1826114a0565b602082019050919050565b60006020820190508181036000830152611505816114c9565b9050919050565b61151581611428565b811461152057600080fd5b50565b6000815190506115328161150c565b92915050565b60006020828403121561154e5761154d61113b565b5b600061155c84828501611523565b91505092915050565b7f4552524f523a5245472d3030323a4e4f545f524547495354455241424c450000600082015250565b600061159b601e836112ab565b91506115a682611565565b602082019050919050565b600060208201905081810360008301526115ca8161158e565b9050919050565b7f4552524f523a5245472d3030333a504152454e545f4e4f545f464f554e440000600082015250565b6000611607601e836112ab565b9150611612826115d1565b602082019050919050565b60006020820190508181036000830152611636816115fa565b9050919050565b60008151905061164c81611352565b92915050565b6000602082840312156116685761166761113b565b5b60006116768482850161163d565b91505092915050565b600060408201905061169460008301856113fe565b81810360208301526116a681846112f7565b90509392505050565b7f4552524f523a5245472d3030353a545950455f494e56414c4944000000000000600082015250565b60006116e5601a836112ab565b91506116f0826116af565b602082019050919050565b60006020820190508181036000830152611714816116d8565b9050919050565b7f4552524f523a5245472d3030313a414c52454144595f494e495449414c495a4560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b60006117776021836112ab565b91506117828261171b565b604082019050919050565b600060208201905081810360008301526117a68161176a565b905091905056fea2646970667358221220b3d9bb8f0008c6333b80dd7514f21858c42aca09341fe2aa6324e61e9e75084864736f6c63430008140033",
|
303
|
+
"linkReferences": {},
|
304
|
+
"deployedLinkReferences": {}
|
305
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "RegistryLinked",
|
4
|
+
"sourceName": "contracts/registry/Registry.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "registry",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"stateMutability": "nonpayable",
|
15
|
+
"type": "constructor"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"anonymous": false,
|
19
|
+
"inputs": [
|
20
|
+
{
|
21
|
+
"indexed": false,
|
22
|
+
"internalType": "uint256",
|
23
|
+
"name": "idx",
|
24
|
+
"type": "uint256"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"indexed": false,
|
28
|
+
"internalType": "address",
|
29
|
+
"name": "module",
|
30
|
+
"type": "address"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"indexed": false,
|
34
|
+
"internalType": "string",
|
35
|
+
"name": "comment",
|
36
|
+
"type": "string"
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"name": "LogDebug",
|
40
|
+
"type": "event"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"inputs": [],
|
44
|
+
"name": "getRegistry",
|
45
|
+
"outputs": [
|
46
|
+
{
|
47
|
+
"internalType": "contract IRegistry",
|
48
|
+
"name": "registry",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"stateMutability": "view",
|
53
|
+
"type": "function"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"bytecode": "0x608060405234801561001057600080fd5b50604051610249380380610249833981810160405281019061003291906100db565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610108565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100a88261007d565b9050919050565b6100b88161009d565b81146100c357600080fd5b50565b6000815190506100d5816100af565b92915050565b6000602082840312156100f1576100f0610078565b5b60006100ff848285016100c6565b91505092915050565b610132806101176000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80635ab1bd5314602d575b600080fd5b60336047565b604051603e919060e3565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060af60ab60a7846070565b6090565b6070565b9050919050565b600060bf82609a565b9050919050565b600060cf8260b6565b9050919050565b60dd8160c6565b82525050565b600060208201905060f6600083018460d6565b9291505056fea26469706673582212205e251c6161feb424ce832a043a415b134612284e0cb9aa598bbde829849d4d0364736f6c63430008140033",
|
57
|
+
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c80635ab1bd5314602d575b600080fd5b60336047565b604051603e919060e3565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060af60ab60a7846070565b6090565b6070565b9050919050565b600060bf82609a565b9050919050565b600060cf8260b6565b9050919050565b60dd8160c6565b82525050565b600060208201905060f6600083018460d6565b9291505056fea26469706673582212205e251c6161feb424ce832a043a415b134612284e0cb9aa598bbde829849d4d0364736f6c63430008140033",
|
58
|
+
"linkReferences": {},
|
59
|
+
"deployedLinkReferences": {}
|
60
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "ChainIdLib",
|
4
|
+
"sourceName": "contracts/types/ChainId.sol",
|
5
|
+
"abi": [],
|
6
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dd3f9a8ead123d3fb63286326c7c66922df2a931f4f9084bb2d119acb033596d64736f6c63430008140033",
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dd3f9a8ead123d3fb63286326c7c66922df2a931f4f9084bb2d119acb033596d64736f6c63430008140033",
|
8
|
+
"linkReferences": {},
|
9
|
+
"deployedLinkReferences": {}
|
10
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "NftIdLib",
|
4
|
+
"sourceName": "contracts/types/NftId.sol",
|
5
|
+
"abi": [],
|
6
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220032da13230c796286a3fa1acdd6b13903f9e4b1e749979d71d48a4930b7159c564736f6c63430008140033",
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220032da13230c796286a3fa1acdd6b13903f9e4b1e749979d71d48a4930b7159c564736f6c63430008140033",
|
8
|
+
"linkReferences": {},
|
9
|
+
"deployedLinkReferences": {}
|
10
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.19;
|
3
|
+
|
4
|
+
import {IRegistry, IRegisterable, IRegistryLinked} from "../registry/IRegistry.sol";
|
5
|
+
import {Registerable} from "../registry/Registry.sol";
|
6
|
+
import {IInstance} from "../instance/IInstance.sol";
|
7
|
+
|
8
|
+
import {IInstanceLinked, IComponent, IComponentContract, IComponentModule, IComponentOwnerService} from "../instance/component/IComponent.sol";
|
9
|
+
|
10
|
+
|
11
|
+
contract InstanceLinked is
|
12
|
+
IInstanceLinked
|
13
|
+
{
|
14
|
+
IInstance internal _instance;
|
15
|
+
|
16
|
+
constructor(address instance) {
|
17
|
+
_instance = IInstance(instance);
|
18
|
+
}
|
19
|
+
|
20
|
+
// function setInstance(address instance) public override {
|
21
|
+
// require(address(_instance) == address(0), "ERROR:RGL-001:INSTANCE_ALREADY_SET");
|
22
|
+
// _instance = IInstance(instance);
|
23
|
+
// }
|
24
|
+
|
25
|
+
function getInstance() public view override returns(IInstance instance) {
|
26
|
+
return _instance;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
abstract contract Component is
|
32
|
+
Registerable,
|
33
|
+
InstanceLinked,
|
34
|
+
IComponentContract
|
35
|
+
{
|
36
|
+
|
37
|
+
address private _deployer;
|
38
|
+
|
39
|
+
constructor(address registry, address instance)
|
40
|
+
Registerable(registry)
|
41
|
+
InstanceLinked(instance)
|
42
|
+
{ }
|
43
|
+
|
44
|
+
// from registerable
|
45
|
+
function register()
|
46
|
+
public
|
47
|
+
override
|
48
|
+
returns(uint256 componentId)
|
49
|
+
{
|
50
|
+
require(msg.sender == getInitialOwner(), "");
|
51
|
+
require(address(_registry) != address(0), "ERROR:PRD-001:REGISTRY_ZERO");
|
52
|
+
require(_registry.isRegistered(address(_instance)), "ERROR:PRD-002:INSTANCE_NOT_REGISTERED");
|
53
|
+
|
54
|
+
IComponentOwnerService cos = _instance.getComponentOwnerService();
|
55
|
+
componentId = cos.register(this);
|
56
|
+
}
|
57
|
+
|
58
|
+
// from registerable
|
59
|
+
function getParentNftId() public view override returns(uint256) {
|
60
|
+
return getInstance().getNftId();
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.19;
|
3
|
+
|
4
|
+
import {IComponentContract} from "../instance/component/IComponent.sol";
|
5
|
+
|
6
|
+
interface IProductComponent is
|
7
|
+
IComponentContract
|
8
|
+
{
|
9
|
+
|
10
|
+
function getPoolNftId() external view returns(uint256 poolNftId);
|
11
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.19;
|
3
|
+
|
4
|
+
import {IPoolComponent} from "./IPool.sol";
|
5
|
+
import {Component} from "./Component.sol";
|
6
|
+
|
7
|
+
|
8
|
+
contract Pool is
|
9
|
+
Component,
|
10
|
+
IPoolComponent
|
11
|
+
{
|
12
|
+
|
13
|
+
constructor(
|
14
|
+
address registry,
|
15
|
+
address instance
|
16
|
+
)
|
17
|
+
Component(registry, instance)
|
18
|
+
{ }
|
19
|
+
|
20
|
+
// from registerable
|
21
|
+
function getType() public view override returns(uint256) {
|
22
|
+
return _registry.POOL();
|
23
|
+
}
|
24
|
+
|
25
|
+
// from registerable
|
26
|
+
function getData() external view override returns(bytes memory data) {
|
27
|
+
return bytes(abi.encode(getInstance().getNftId()));
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
2
|
+
pragma solidity ^0.8.19;
|
3
|
+
|
4
|
+
import {IProductService} from "../instance/product/IProductService.sol";
|
5
|
+
import {Component} from "./Component.sol";
|
6
|
+
import {IProductComponent} from "./IProduct.sol";
|
7
|
+
|
8
|
+
|
9
|
+
contract Product is
|
10
|
+
Component,
|
11
|
+
IProductComponent
|
12
|
+
{
|
13
|
+
IProductService private _productService;
|
14
|
+
address private _pool;
|
15
|
+
|
16
|
+
constructor(
|
17
|
+
address registry,
|
18
|
+
address instance,
|
19
|
+
address pool
|
20
|
+
)
|
21
|
+
Component(registry, instance)
|
22
|
+
{
|
23
|
+
_productService = _instance.getProductService();
|
24
|
+
_pool = pool;
|
25
|
+
}
|
26
|
+
|
27
|
+
function _createApplication(
|
28
|
+
address applicationOwner,
|
29
|
+
uint256 sumInsuredAmount,
|
30
|
+
uint256 premiumAmount,
|
31
|
+
uint256 lifetime,
|
32
|
+
uint256 bundleNftId
|
33
|
+
)
|
34
|
+
internal
|
35
|
+
returns(uint256 nftId)
|
36
|
+
{
|
37
|
+
nftId = _productService.createApplication(
|
38
|
+
applicationOwner,
|
39
|
+
sumInsuredAmount,
|
40
|
+
premiumAmount,
|
41
|
+
lifetime,
|
42
|
+
bundleNftId
|
43
|
+
);
|
44
|
+
}
|
45
|
+
|
46
|
+
function _underwrite(uint256 nftId)
|
47
|
+
internal
|
48
|
+
{
|
49
|
+
_productService.underwrite(nftId);
|
50
|
+
}
|
51
|
+
|
52
|
+
function getPoolNftId() external view override returns(uint256 poolNftId) {
|
53
|
+
return _registry.getNftId(_pool);
|
54
|
+
}
|
55
|
+
|
56
|
+
// from registerable
|
57
|
+
function getType() public view override returns(uint256) {
|
58
|
+
return _registry.PRODUCT();
|
59
|
+
}
|
60
|
+
|
61
|
+
// from registerable
|
62
|
+
function getData() external view override returns(bytes memory data) {
|
63
|
+
return bytes(abi.encode(getInstance().getNftId()));
|
64
|
+
}
|
65
|
+
}
|