@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.
Files changed (141) hide show
  1. package/README.md +95 -1
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +179 -0
  4. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +4 -0
  5. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +35 -0
  6. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +179 -0
  8. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +192 -0
  10. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
  11. package/artifacts/contracts/components/Pool.sol/Pool.json +195 -0
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  13. package/artifacts/contracts/components/Product.sol/Product.json +213 -0
  14. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +4 -0
  15. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +128 -0
  16. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +4 -0
  17. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +42 -0
  18. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +76 -0
  20. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +89 -0
  22. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +128 -0
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +4 -0
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +37 -0
  26. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +4 -0
  27. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +50 -0
  28. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +4 -0
  29. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +63 -0
  30. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +4 -0
  31. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +10 -0
  32. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +10 -0
  34. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +4 -0
  35. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +892 -0
  36. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +4 -0
  37. package/artifacts/contracts/instance/Instance.sol/Instance.json +1009 -0
  38. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +4 -0
  39. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +400 -0
  40. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +4 -0
  41. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.json +10 -0
  42. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +4 -0
  43. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +35 -0
  44. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +4 -0
  45. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +50 -0
  46. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  47. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +336 -0
  48. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  49. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +327 -0
  50. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +4 -0
  51. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +105 -0
  52. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +4 -0
  53. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.json +10 -0
  54. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +4 -0
  55. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +179 -0
  56. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  57. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +245 -0
  58. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +94 -0
  60. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +4 -0
  61. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +24 -0
  62. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  63. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.json +10 -0
  64. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  65. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +231 -0
  66. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  67. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +231 -0
  68. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  69. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.json +10 -0
  70. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  71. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +149 -0
  72. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +162 -0
  74. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +4 -0
  75. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +75 -0
  76. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +4 -0
  77. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +114 -0
  78. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +75 -0
  80. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +125 -0
  82. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
  83. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +534 -0
  84. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +4 -0
  85. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +452 -0
  86. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +4 -0
  87. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +24 -0
  88. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +4 -0
  89. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +166 -0
  90. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +4 -0
  91. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +279 -0
  92. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +4 -0
  93. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +49 -0
  94. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +4 -0
  95. package/artifacts/contracts/registry/Registry.sol/Registerable.json +166 -0
  96. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +4 -0
  97. package/artifacts/contracts/registry/Registry.sol/Registry.json +305 -0
  98. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +4 -0
  99. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +60 -0
  100. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
  101. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
  102. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
  103. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +10 -0
  104. package/contracts/components/Component.sol +62 -0
  105. package/contracts/components/IPool.sol +9 -0
  106. package/contracts/components/IProduct.sol +11 -0
  107. package/contracts/components/Pool.sol +29 -0
  108. package/contracts/components/Product.sol +65 -0
  109. package/contracts/experiment/inheritance/A.sol +56 -0
  110. package/contracts/experiment/inheritance/B.sol +23 -0
  111. package/contracts/experiment/inheritance/C.sol +28 -0
  112. package/contracts/experiment/inheritance/IA.sol +18 -0
  113. package/contracts/experiment/inheritance/IB.sol +9 -0
  114. package/contracts/experiment/inheritance/IC.sol +11 -0
  115. package/contracts/experiment/types/TypeA.sol +42 -0
  116. package/contracts/experiment/types/TypeB.sol +24 -0
  117. package/contracts/instance/IInstance.sol +20 -0
  118. package/contracts/instance/Instance.sol +63 -0
  119. package/contracts/instance/access/Access.sol +218 -0
  120. package/contracts/instance/access/IAccess.sol +83 -0
  121. package/contracts/instance/component/ComponentModule.sol +259 -0
  122. package/contracts/instance/component/IComponent.sol +94 -0
  123. package/contracts/instance/policy/IPolicy.sol +66 -0
  124. package/contracts/instance/policy/PolicyModule.sol +106 -0
  125. package/contracts/instance/pool/IPoolModule.sol +40 -0
  126. package/contracts/instance/pool/PoolModule.sol +83 -0
  127. package/contracts/instance/product/IProductService.sol +45 -0
  128. package/contracts/instance/product/ProductService.sol +105 -0
  129. package/contracts/registry/ChainNft.sol +173 -0
  130. package/contracts/registry/IChainNft.sol +18 -0
  131. package/contracts/registry/IRegistry.sol +68 -0
  132. package/contracts/registry/Registry.sol +176 -0
  133. package/contracts/types/ChainId.sol +24 -0
  134. package/contracts/types/NftId.sol +25 -0
  135. package/package.json +7 -6
  136. package/artifacts/contracts/Dip.sol/DIP.dbg.json +0 -4
  137. package/artifacts/contracts/Dip.sol/DIP.json +0 -338
  138. package/artifacts/contracts/Lock.sol/Lock.dbg.json +0 -4
  139. package/artifacts/contracts/Lock.sol/Lock.json +0 -74
  140. package/contracts/Dip.sol +0 -26
  141. package/contracts/Lock.sol +0 -34
@@ -0,0 +1,94 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IComponentOwnerService",
4
+ "sourceName": "contracts/instance/component/IComponent.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "uint256",
12
+ "name": "idx",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "address",
18
+ "name": "module",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "string",
24
+ "name": "comment",
25
+ "type": "string"
26
+ }
27
+ ],
28
+ "name": "LogDebug",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "getRegistry",
34
+ "outputs": [
35
+ {
36
+ "internalType": "contract IRegistry",
37
+ "name": "registry",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "contract IComponentContract",
48
+ "name": "component",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "lock",
53
+ "outputs": [],
54
+ "stateMutability": "nonpayable",
55
+ "type": "function"
56
+ },
57
+ {
58
+ "inputs": [
59
+ {
60
+ "internalType": "contract IComponentContract",
61
+ "name": "component",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "name": "register",
66
+ "outputs": [
67
+ {
68
+ "internalType": "uint256",
69
+ "name": "id",
70
+ "type": "uint256"
71
+ }
72
+ ],
73
+ "stateMutability": "nonpayable",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "contract IComponentContract",
80
+ "name": "component",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "unlock",
85
+ "outputs": [],
86
+ "stateMutability": "nonpayable",
87
+ "type": "function"
88
+ }
89
+ ],
90
+ "bytecode": "0x",
91
+ "deployedBytecode": "0x",
92
+ "linkReferences": {},
93
+ "deployedLinkReferences": {}
94
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/ed3ef11345a2570c641488ff5c975aca.json"
4
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IInstanceLinked",
4
+ "sourceName": "contracts/instance/component/IComponent.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "getInstance",
9
+ "outputs": [
10
+ {
11
+ "internalType": "contract IInstance",
12
+ "name": "instance",
13
+ "type": "address"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ }
19
+ ],
20
+ "bytecode": "0x",
21
+ "deployedBytecode": "0x",
22
+ "linkReferences": {},
23
+ "deployedLinkReferences": {}
24
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/ed3ef11345a2570c641488ff5c975aca.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPolicy",
4
+ "sourceName": "contracts/instance/policy/IPolicy.sol",
5
+ "abi": [],
6
+ "bytecode": "0x",
7
+ "deployedBytecode": "0x",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/ed3ef11345a2570c641488ff5c975aca.json"
4
+ }
@@ -0,0 +1,231 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPolicyModule",
4
+ "sourceName": "contracts/instance/policy/IPolicy.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "uint256",
12
+ "name": "idx",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "address",
18
+ "name": "module",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "string",
24
+ "name": "comment",
25
+ "type": "string"
26
+ }
27
+ ],
28
+ "name": "LogDebug",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "inputs": [
33
+ {
34
+ "internalType": "uint256",
35
+ "name": "nftId",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "activate",
40
+ "outputs": [],
41
+ "stateMutability": "nonpayable",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "components": [
48
+ {
49
+ "internalType": "uint256",
50
+ "name": "nftId",
51
+ "type": "uint256"
52
+ },
53
+ {
54
+ "internalType": "uint256",
55
+ "name": "parentNftId",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "objectType",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "internalType": "address",
65
+ "name": "objectAddress",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "internalType": "address",
70
+ "name": "initialOwner",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "internalType": "struct IRegistry.RegistryInfo",
75
+ "name": "productInfo",
76
+ "type": "tuple"
77
+ },
78
+ {
79
+ "internalType": "address",
80
+ "name": "applicationOwner",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "sumInsuredAmount",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "premiumAmount",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "lifetime",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "bundleNftId",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "name": "createApplication",
105
+ "outputs": [
106
+ {
107
+ "internalType": "uint256",
108
+ "name": "nftId",
109
+ "type": "uint256"
110
+ }
111
+ ],
112
+ "stateMutability": "nonpayable",
113
+ "type": "function"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "nftId",
120
+ "type": "uint256"
121
+ }
122
+ ],
123
+ "name": "getBundleNftForPolicy",
124
+ "outputs": [
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "bundleNft",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "stateMutability": "view",
132
+ "type": "function"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "getOwner",
137
+ "outputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "owner",
141
+ "type": "address"
142
+ }
143
+ ],
144
+ "stateMutability": "view",
145
+ "type": "function"
146
+ },
147
+ {
148
+ "inputs": [
149
+ {
150
+ "internalType": "uint256",
151
+ "name": "nftId",
152
+ "type": "uint256"
153
+ }
154
+ ],
155
+ "name": "getPolicyInfo",
156
+ "outputs": [
157
+ {
158
+ "components": [
159
+ {
160
+ "internalType": "uint256",
161
+ "name": "nftId",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "internalType": "enum IPolicy.PolicyState",
166
+ "name": "state",
167
+ "type": "uint8"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "sumInsuredAmount",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "premiumAmount",
177
+ "type": "uint256"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "lifetime",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "createdAt",
187
+ "type": "uint256"
188
+ },
189
+ {
190
+ "internalType": "uint256",
191
+ "name": "activatedAt",
192
+ "type": "uint256"
193
+ },
194
+ {
195
+ "internalType": "uint256",
196
+ "name": "expiredAt",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "closedAt",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "internalType": "struct IPolicy.PolicyInfo",
206
+ "name": "info",
207
+ "type": "tuple"
208
+ }
209
+ ],
210
+ "stateMutability": "view",
211
+ "type": "function"
212
+ },
213
+ {
214
+ "inputs": [],
215
+ "name": "getRegistry",
216
+ "outputs": [
217
+ {
218
+ "internalType": "contract IRegistry",
219
+ "name": "registry",
220
+ "type": "address"
221
+ }
222
+ ],
223
+ "stateMutability": "view",
224
+ "type": "function"
225
+ }
226
+ ],
227
+ "bytecode": "0x",
228
+ "deployedBytecode": "0x",
229
+ "linkReferences": {},
230
+ "deployedLinkReferences": {}
231
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/ed3ef11345a2570c641488ff5c975aca.json"
4
+ }
@@ -0,0 +1,231 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "PolicyModule",
4
+ "sourceName": "contracts/instance/policy/PolicyModule.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "uint256",
12
+ "name": "idx",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "address",
18
+ "name": "module",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "string",
24
+ "name": "comment",
25
+ "type": "string"
26
+ }
27
+ ],
28
+ "name": "LogDebug",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "inputs": [
33
+ {
34
+ "internalType": "uint256",
35
+ "name": "nftId",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "activate",
40
+ "outputs": [],
41
+ "stateMutability": "nonpayable",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "components": [
48
+ {
49
+ "internalType": "uint256",
50
+ "name": "nftId",
51
+ "type": "uint256"
52
+ },
53
+ {
54
+ "internalType": "uint256",
55
+ "name": "parentNftId",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "objectType",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "internalType": "address",
65
+ "name": "objectAddress",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "internalType": "address",
70
+ "name": "initialOwner",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "internalType": "struct IRegistry.RegistryInfo",
75
+ "name": "productInfo",
76
+ "type": "tuple"
77
+ },
78
+ {
79
+ "internalType": "address",
80
+ "name": "applicationOwner",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "sumInsuredAmount",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "premiumAmount",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "lifetime",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "bundleNftId",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "name": "createApplication",
105
+ "outputs": [
106
+ {
107
+ "internalType": "uint256",
108
+ "name": "nftId",
109
+ "type": "uint256"
110
+ }
111
+ ],
112
+ "stateMutability": "nonpayable",
113
+ "type": "function"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "nftId",
120
+ "type": "uint256"
121
+ }
122
+ ],
123
+ "name": "getBundleNftForPolicy",
124
+ "outputs": [
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "bundleNft",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "stateMutability": "view",
132
+ "type": "function"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "getOwner",
137
+ "outputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "owner",
141
+ "type": "address"
142
+ }
143
+ ],
144
+ "stateMutability": "view",
145
+ "type": "function"
146
+ },
147
+ {
148
+ "inputs": [
149
+ {
150
+ "internalType": "uint256",
151
+ "name": "nftId",
152
+ "type": "uint256"
153
+ }
154
+ ],
155
+ "name": "getPolicyInfo",
156
+ "outputs": [
157
+ {
158
+ "components": [
159
+ {
160
+ "internalType": "uint256",
161
+ "name": "nftId",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "internalType": "enum IPolicy.PolicyState",
166
+ "name": "state",
167
+ "type": "uint8"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "sumInsuredAmount",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "premiumAmount",
177
+ "type": "uint256"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "lifetime",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "createdAt",
187
+ "type": "uint256"
188
+ },
189
+ {
190
+ "internalType": "uint256",
191
+ "name": "activatedAt",
192
+ "type": "uint256"
193
+ },
194
+ {
195
+ "internalType": "uint256",
196
+ "name": "expiredAt",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "closedAt",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "internalType": "struct IPolicy.PolicyInfo",
206
+ "name": "info",
207
+ "type": "tuple"
208
+ }
209
+ ],
210
+ "stateMutability": "view",
211
+ "type": "function"
212
+ },
213
+ {
214
+ "inputs": [],
215
+ "name": "getRegistry",
216
+ "outputs": [
217
+ {
218
+ "internalType": "contract IRegistry",
219
+ "name": "registry",
220
+ "type": "address"
221
+ }
222
+ ],
223
+ "stateMutability": "view",
224
+ "type": "function"
225
+ }
226
+ ],
227
+ "bytecode": "0x",
228
+ "deployedBytecode": "0x",
229
+ "linkReferences": {},
230
+ "deployedLinkReferences": {}
231
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/ed3ef11345a2570c641488ff5c975aca.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPool",
4
+ "sourceName": "contracts/instance/pool/IPoolModule.sol",
5
+ "abi": [],
6
+ "bytecode": "0x",
7
+ "deployedBytecode": "0x",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/ed3ef11345a2570c641488ff5c975aca.json"
4
+ }