dkg 1.1.1__py3-none-any.whl → 8.0.0__py3-none-any.whl

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.
Files changed (45) hide show
  1. dkg/asset.py +589 -683
  2. dkg/constants.py +106 -45
  3. dkg/data/interfaces/AskStorage.json +366 -0
  4. dkg/data/interfaces/Chronos.json +202 -0
  5. dkg/data/interfaces/Hub.json +294 -2
  6. dkg/data/interfaces/IdentityStorage.json +400 -0
  7. dkg/data/interfaces/KnowledgeCollection.json +610 -0
  8. dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
  9. dkg/data/interfaces/Paranet.json +656 -135
  10. dkg/data/interfaces/ParanetIncentivesPoolFactory.json +18 -2
  11. dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +20 -4
  12. dkg/data/interfaces/{ParanetNeurowebIncentivesPool.json → ParanetNeuroIncentivesPool.json} +7 -7
  13. dkg/data/interfaces/ParanetsRegistry.json +844 -36
  14. dkg/data/interfaces/Token.json +146 -17
  15. dkg/dataclasses.py +11 -1
  16. dkg/exceptions.py +1 -0
  17. dkg/graph.py +55 -24
  18. dkg/main.py +18 -2
  19. dkg/network.py +2 -2
  20. dkg/node.py +7 -0
  21. dkg/paranet.py +336 -33
  22. dkg/providers/blockchain.py +23 -24
  23. dkg/providers/node_http.py +11 -9
  24. dkg/services/input_service.py +183 -0
  25. dkg/services/node_service.py +164 -0
  26. dkg/types/__init__.py +15 -3
  27. dkg/types/general.py +15 -8
  28. dkg/utils/blockchain_request.py +189 -64
  29. dkg/utils/knowledge_asset_tools.py +5 -0
  30. dkg/utils/knowledge_collection_tools.py +236 -0
  31. dkg/utils/merkle.py +1 -1
  32. dkg/utils/node_request.py +33 -33
  33. dkg/utils/rdf.py +10 -6
  34. dkg/utils/string_transformations.py +1 -0
  35. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/METADATA +36 -26
  36. dkg-8.0.0.dist-info/RECORD +56 -0
  37. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/WHEEL +1 -1
  38. dkg/data/interfaces/AssertionStorage.json +0 -229
  39. dkg/data/interfaces/ContentAsset.json +0 -801
  40. dkg/data/interfaces/ContentAssetStorage.json +0 -782
  41. dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
  42. dkg/data/interfaces/UnfinalizedStateStorage.json +0 -171
  43. dkg-1.1.1.dist-info/RECORD +0 -52
  44. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/LICENSE +0 -0
  45. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/NOTICE +0 -0
dkg/utils/rdf.py CHANGED
@@ -17,7 +17,11 @@
17
17
 
18
18
  from typing import Literal
19
19
 
20
- from dkg.constants import PRIVATE_ASSERTION_PREDICATE
20
+ from dkg.constants import (
21
+ PRIVATE_ASSERTION_PREDICATE,
22
+ DEFAULT_RDF_FORMAT,
23
+ DEFAULT_CANON_ALGORITHM,
24
+ )
21
25
  from dkg.exceptions import DatasetInputFormatNotSupported, InvalidDataset
22
26
  from dkg.types import JSONLD, HexStr, NQuads
23
27
  from dkg.utils.merkle import MerkleTree, hash_assertion_with_indexes
@@ -27,10 +31,12 @@ from pyld import jsonld
27
31
  def normalize_dataset(
28
32
  dataset: JSONLD | NQuads,
29
33
  input_format: Literal["JSON-LD", "N-Quads"] = "JSON-LD",
34
+ output_format=DEFAULT_RDF_FORMAT,
35
+ algorithm=DEFAULT_CANON_ALGORITHM,
30
36
  ) -> NQuads:
31
37
  normalization_options = {
32
- "algorithm": "URDNA2015",
33
- "format": "application/n-quads",
38
+ "algorithm": algorithm,
39
+ "format": output_format,
34
40
  }
35
41
 
36
42
  match input_format.lower():
@@ -77,7 +83,5 @@ def format_content(
77
83
 
78
84
  return {
79
85
  "public": public_assertion,
80
- "private": private_assertion
81
- if content.get("private", None)
82
- else {},
86
+ "private": private_assertion if content.get("private", None) else {},
83
87
  }
@@ -15,6 +15,7 @@
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
17
 
18
+
18
19
  def snake_to_camel(string: str) -> str:
19
20
  splitted_string = string.split("_")
20
21
  return splitted_string[0] + "".join(
@@ -1,29 +1,32 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dkg
3
- Version: 1.1.1
3
+ Version: 8.0.0
4
4
  Summary: Python library for interacting with the OriginTrail Decentralized Knowledge Graph
5
5
  License: Apache-2.0
6
- Author: Uladzislau Hubar
7
- Author-email: hubar.uladzislau@gmail.com
6
+ Author: Zvonimir Scuac
7
+ Author-email: zvonimir.sculac@origin-trail.com
8
8
  Requires-Python: >=3.10,<4.0
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
- Requires-Dist: eth-abi (>=5.0.1,<6.0.0)
15
- Requires-Dist: eth-account (>=0.11.0,<0.12.0)
16
- Requires-Dist: hexbytes (>=0.3.0,<0.4.0)
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Dist: eth-abi (>=5.1.0,<6.0.0)
16
+ Requires-Dist: eth-account (>=0.13.4,<0.14.0)
17
+ Requires-Dist: eth-typing (>=5.0.0,<6.0.0)
18
+ Requires-Dist: hexbytes (>=1.2.1,<2.0.0)
17
19
  Requires-Dist: ot-pyld (>=2.1.1,<3.0.0)
18
- Requires-Dist: pandas (>=1.5.3,<2.0.0)
19
- Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
20
+ Requires-Dist: pandas (>=2.2.3,<3.0.0)
21
+ Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
22
+ Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
20
23
  Requires-Dist: rdflib (>=6.3.2,<7.0.0)
21
- Requires-Dist: web3 (>=6.19.0,<7.0.0)
24
+ Requires-Dist: web3 (>=7.3.0,<8.0.0)
22
25
  Description-Content-Type: text/markdown
23
26
 
24
27
  <a name="readme-top"></a>
25
28
 
26
- ___
29
+ ---
27
30
 
28
31
  <br />
29
32
  <div align="center">
@@ -74,7 +77,7 @@ ___
74
77
  </ol>
75
78
  </details>
76
79
 
77
- ___
80
+ ---
78
81
 
79
82
  <br/>
80
83
 
@@ -84,6 +87,7 @@ ___
84
87
  <summary>
85
88
 
86
89
  ### **What is the Decentralized Knowledge Graph?**
90
+
87
91
  </summary>
88
92
 
89
93
  <br/>
@@ -93,17 +97,19 @@ ___
93
97
  </div>
94
98
 
95
99
  OriginTrail Decentralized Knowledge Graph (DKG), hosted on the OriginTrail Decentralized Network (ODN) as trusted knowledge infrastructure, is shared global Knowledge Graph of Knowledge Assets. Running on the basis of the permissionless multi-chain OriginTrail protocol, it combines blockchains and knowledge graph technology to enable trusted AI applications based on key W3C standards.
100
+
96
101
  </details>
97
102
 
98
103
  <details open>
99
104
  <summary>
100
105
 
101
106
  ### **The OriginTrail DKG Architecture**
107
+
102
108
  </summary>
103
109
 
104
110
  <br/>
105
111
 
106
- The OriginTrail tech stack is a three layer structure, consisting of the multi-chain consensus layer (OriginTrail layer 1, running on multiple blockchains), the Decentralized Knowledge Graph layer (OriginTrail Layer 2, hosted on the ODN) and Trusted Knowledge applications in the application layer.
112
+ The OriginTrail tech stack is a three layer structure, consisting of the multi-chain consensus layer (OriginTrail layer 1, running on multiple blockchains), the Decentralized Knowledge Graph layer (OriginTrail Layer 2, hosted on the ODN) and Trusted Knowledge applications in the application layer.
107
113
 
108
114
  <div align="center">
109
115
  <img src="images/dkg-architecture.png" alt="DKG Architecture" width="400">
@@ -111,13 +117,15 @@ The OriginTrail tech stack is a three layer structure, consisting of the multi-c
111
117
 
112
118
  Further, the architecture differentiates between **the public, replicated knowledge graph** shared by all network nodes according to the protocol, and **private Knowledge graphs** hosted separately by each of the OriginTrail nodes.
113
119
 
114
- **Anyone can run an OriginTrail node and become part of the ODN, contributing to the network capacity and hosting the OriginTrail DKG. The OriginTrail node is the ultimate data service for data and knowledge intensive Web3 applications and is used as the key backbone for trusted AI applications (see https://chatdkg.ai)**
120
+ **Anyone can run an OriginTrail node and become part of the ODN, contributing to the network capacity and hosting the OriginTrail DKG. The OriginTrail node is the ultimate data service for data and knowledge intensive Web3 applications and is used as the key backbone for trusted AI applications (see https://chatdkg.ai)**
121
+
115
122
  </details>
116
123
 
117
124
  <details open>
118
125
  <summary>
119
126
 
120
127
  ### **What is a Knowledge Asset?**
128
+
121
129
  </summary>
122
130
 
123
131
  <br/>
@@ -129,15 +137,16 @@ Further, the architecture differentiates between **the public, replicated knowle
129
137
  **Knowledge Asset is the new, AI‑ready resource for the Internet**
130
138
 
131
139
  Knowledge Assets are verifiable containers of structured knowledge that live on the OriginTrail DKG and provide:
140
+
132
141
  - **Discoverability - UAL is the new URL**. Uniform Asset Locators (UALs, based on the W3C Decentralized Identifiers) are a new Web3 knowledge identifier (extensions of the Uniform Resource Locators - URLs) which identify a specific piece of knowledge and make it easy to find and connect with other Knowledge Assets.
133
142
  - **Ownership - NFTs enable ownership**. Each Knowledge Asset contains an NFT token that enables ownership, knowledge asset administration and market mechanisms.
134
143
  - **Verifiability - On-chain information origin and verifiable trail**. The blockchain tech increases trust, security, transparency, and the traceability of information.
135
144
 
136
-
137
145
  By their nature, Knowledge Assets are semantic resources (following the W3C Semantic Web set of standards), and through their symbolic representations inherently AI ready. See more at https://chatdkg.ai
138
146
  <br/>
139
147
 
140
148
  **Discover Knowledge Assets with the DKG Explorer:**
149
+
141
150
  <div align="center">
142
151
  <table>
143
152
  <tr>
@@ -169,7 +178,6 @@ By their nature, Knowledge Assets are semantic resources (following the W3C Sema
169
178
  </table>
170
179
  </div>
171
180
 
172
-
173
181
  </details>
174
182
 
175
183
  <p align="right">(<a href="#readme-top">back to top</a>)</p>
@@ -177,40 +185,43 @@ By their nature, Knowledge Assets are semantic resources (following the W3C Sema
177
185
 
178
186
  ## 🚀 Getting Started
179
187
 
180
- ___
188
+ ---
181
189
 
182
190
  ### Prerequisites
183
191
 
184
- * python `>=3.10`
185
- * poetry `>=1.5.1`
186
-
192
+ - python `>=3.10`
193
+ - poetry `>=1.5.1`
187
194
 
188
195
  In order to use in the local environment, make sure to [run the local DKG network](https://github.com/OriginTrail/ot-node?tab=readme-ov-file#local-network-setup).
189
196
 
190
- ___
197
+ ---
198
+
191
199
  <br/>
192
200
 
193
201
  ### Installation
194
202
 
195
-
196
203
  Create virtual environment (you can choose any existing folder this command will create configurations and virtual env for python):
204
+
197
205
  ```bash
198
206
  python3 -m venv /path/to/folder
199
207
  ```
200
208
 
201
209
  Inside of previously generated folder you will find activate script in bin folder and run it:
210
+
202
211
  ```bash
203
212
  source /path/to/folder/bin/activate
204
213
  ```
205
214
 
206
- Install dependencies:
215
+ Install dependencies and configure pre-commit hooks:
216
+
207
217
  ```bash
208
- poetry install
218
+ make install
209
219
  ```
210
220
 
211
221
  Now you can run a demo example file (you need to have the local DKG network running):
222
+
212
223
  ```bash
213
- python3 examples/demo.py
224
+ make run-demo
214
225
  ```
215
226
 
216
227
  <br/>
@@ -251,7 +262,6 @@ Don't forget to give the project a star! Thanks again!
251
262
 
252
263
  - [web3.py](https://github.com/ethereum/web3.py): Basis for this project
253
264
 
254
-
255
265
  <br/>
256
266
  <p align="right">(<a href="#readme-top">back to top</a>)</p>
257
267
 
@@ -286,5 +296,5 @@ Don't forget to give the project a star! Thanks again!
286
296
  </a>
287
297
  </div>
288
298
 
289
- ___
299
+ ---
290
300
 
@@ -0,0 +1,56 @@
1
+ dkg/__init__.py,sha256=2pZEIrpDODunXXZmcLuKLWUrTrWLlYj10f11VzK5oLs,108
2
+ dkg/assertion.py,sha256=Sp7mqLHuR588CRZ5JpMVDS2U0yOcwg-qbBl4xYOtRH8,2490
3
+ dkg/asset.py,sha256=FxIPBZqTmm_dNSh7H7nfU3zcUl_odLKtKWQy5HAA45o,33705
4
+ dkg/constants.py,sha256=8YsJv8YSFdTMqIVYlQo2iUNc4yHVkH6-uwmZAXK7mCc,5041
5
+ dkg/data/interfaces/AskStorage.json,sha256=hHWq3e0Kx8Cs3PKD4HL2xYRQ8DXRTxTL06QXqFyqlns,6773
6
+ dkg/data/interfaces/Chronos.json,sha256=aIpCUgJ8omHidyt0GPkj02COT1LW8Tu66qDm7iquQJk,3595
7
+ dkg/data/interfaces/Hub.json,sha256=ZcaePz10ff2Vm7VP-vWP63xLOuE0EE8jNruWvWmMjLw,12611
8
+ dkg/data/interfaces/IdentityStorage.json,sha256=OqyEB1WMj_pC7AHq-3y-I2MJL7xmuTek4asQ2TETTqo,7459
9
+ dkg/data/interfaces/KnowledgeCollection.json,sha256=ywC0fuvxWdFsDm-l67udpzDCKGf23pD3UsxEEqifHus,11922
10
+ dkg/data/interfaces/KnowledgeCollectionStorage.json,sha256=DN1gMEUU57jTFf9uSiHOLmRbmhghlzW5qnVALwBOQ4M,45342
11
+ dkg/data/interfaces/Paranet.json,sha256=y5k59RKwtoG00cnmPEoaGD6Qf2Ytxq7XIgrvMj6WaUc,28705
12
+ dkg/data/interfaces/ParanetIncentivesPoolFactory.json,sha256=F4eLqBHhAIGnaOGdxyWYpA23IzaQ0AN9-2maVD-fW8E,4253
13
+ dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json,sha256=PmvMZJsIahb1r01SYTdsFwHw73McpEqa9DdcZaVqkaw,19144
14
+ dkg/data/interfaces/ParanetNeuroIncentivesPool.json,sha256=a4h0FfQp3RgMpOhHgSWTEaig7jQ2OoVrm--VG9QkKvY,21944
15
+ dkg/data/interfaces/ParanetsRegistry.json,sha256=ruV9Qva7Voan9rSs67wwlWxPPBqAAND87tGtTiSZI98,34391
16
+ dkg/data/interfaces/Token.json,sha256=hp79eZJDoGqOTSclAv13pIJpMhqr7aBH8jbiQTlA7VU,13289
17
+ dkg/dataclasses.py,sha256=pOV0LzuNOTDsr48JGq_2H6BD7ISS4ZxOn2HGl9MjSyM,1906
18
+ dkg/exceptions.py,sha256=LiEhCVKw-jCJcyCNRjHZGKxZoljOKwLNV-9q7EPZkak,3756
19
+ dkg/graph.py,sha256=B4KlYMTmflya6b-66S6QCh9wOpGltv2BjzOlGwmAI8A,3574
20
+ dkg/main.py,sha256=XiFxzqbN0wzzYuyJw-XnWL6NxRHS_K1vuq0wAyV01SM,3473
21
+ dkg/manager.py,sha256=cT0dgkpOVphfodzO9ncXZxNu26zet6ED5XfIXORpLog,2627
22
+ dkg/method.py,sha256=E14K2UWe7lfnuwOIWW5AQSqJfmgjZ6jdn0YeX88qnWc,5415
23
+ dkg/module.py,sha256=Nh9IYLOqJKURf_1dYGFGlis7G-xOg9wwL2wzDAm5Yfw,2566
24
+ dkg/network.py,sha256=eT1Ve-gQgk9ErhtfIZBkXulWL2d9HeE7KNeqhQgYF-c,2174
25
+ dkg/node.py,sha256=CgNOp5mn6r3kQd4Axr6HS_a45gkaDYZ3nRCu1TqMxNc,1478
26
+ dkg/paranet.py,sha256=Pvs4KpedMb01WqBR05blghYe6C1ibiI8x6ZKFpuI-As,27062
27
+ dkg/providers/__init__.py,sha256=Z3Wp3ap4U4mnFgMQx8A-oyUdUAKrl3WKxGLYX15aj4s,99
28
+ dkg/providers/blockchain.py,sha256=_q-LY5Y6QvgugOETAOhMQJcZRXsB1Fm8NWqca__GlTg,11002
29
+ dkg/providers/node_http.py,sha256=5vqIoCOVhRX92Nf6vlK3JGLHwprC7fyZZVyLUx_GZKI,2402
30
+ dkg/services/input_service.py,sha256=q7cBfvIYMNymCBZw7lK8clv5PmSiY3FZq27EqDtM_Qw,6462
31
+ dkg/services/node_service.py,sha256=ko5WqQ5YS6gKROsvVWOkHunaURkN2F3JqBzSVobxwOs,4678
32
+ dkg/types/__init__.py,sha256=YewW48fOBq-FtecY12Tlr_0vGDuNc2uzpIiM-WERzBU,704
33
+ dkg/types/blockchain.py,sha256=hsBpFLgpcEmgODLK0g_cUW1AB69ZZYeX4AcW6wpAMtA,1682
34
+ dkg/types/dkg_node.py,sha256=uGjaYUO4D55sHJrL_3aOL3Nul3RlAo_aL4HLoSrQxr0,838
35
+ dkg/types/encoding.py,sha256=gOtt9XLoxs6TE7rOCrAx-aCOdsDdaTVn3bxu9HPavxc,915
36
+ dkg/types/evm.py,sha256=gN2hSq4MQzobWE3YAiTZPcv5b65AVyUEQut8hWPnx68,971
37
+ dkg/types/general.py,sha256=7SnOqQ9iFjYaXgs7qc3_SxN9ygI-rIoK6vQU6LJZ8og,1539
38
+ dkg/types/generics.py,sha256=9ZGFGWp4eN_5bGaWF6COtFMh228ZghjU1CmUok0fuds,907
39
+ dkg/types/network.py,sha256=htNZ00Vrb-wMcR4_XI1tn_-0uVjDqcW7hhdHyjbyq1g,838
40
+ dkg/types/rdf.py,sha256=qm1l7pqTLWBlSmaoQhmBg2qKS16eF83IcOnxuYPdiv8,851
41
+ dkg/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
+ dkg/utils/blockchain_request.py,sha256=z1mNv1M1Fl6s_-EA6XCjWjIVChQV1i4Tb2evMYCIcbk,12709
43
+ dkg/utils/decorators.py,sha256=uUh0xI9wv1gE6JF44eYEfUPGSFEBLR6Ua5D9Dhc3s10,1566
44
+ dkg/utils/knowledge_asset_tools.py,sha256=uehOshzaYg03hDU8RSIV_k2mNaASVgqyyErzj6GwBxw,81
45
+ dkg/utils/knowledge_collection_tools.py,sha256=YeMrucXDYHljS5ahBz3WEVPO4pugwGLZ4VKIzU8fFU0,7085
46
+ dkg/utils/merkle.py,sha256=924kloBAnCXydteVtWMj_QLP5CRJf2GbHMZ-lbIK0KE,5141
47
+ dkg/utils/metadata.py,sha256=483OroYwGNfZ_cCXfH3-xUrZgiR4mjjo9iU_Ie5RYRs,1658
48
+ dkg/utils/node_request.py,sha256=cjDq2t6QKl1l_IEEkjD3B09uikViFcnHf-KEdohVC4s,5761
49
+ dkg/utils/rdf.py,sha256=AvlcxZEeP58UbaGGvPX_ss69O-tgTXOJ9y9COZqVgkw,2973
50
+ dkg/utils/string_transformations.py,sha256=eR51fVwTF9QKxEqXo9_1Bfw_k8iQajdXD6rKuTvhs70,972
51
+ dkg/utils/ual.py,sha256=g7PFyS4Sbwjmwkq-eB20uRULEC2wlPGZr31BVQjs5OQ,1569
52
+ dkg-8.0.0.dist-info/LICENSE,sha256=Dr70w2zcW8-jrPGlpTTTlJPL8lR4j2zpDD32tdEFgjY,11375
53
+ dkg-8.0.0.dist-info/METADATA,sha256=d808D_GYF48tKNbheZAEM3lpe0LgVKsQa_Ba8SjiRMs,10772
54
+ dkg-8.0.0.dist-info/NOTICE,sha256=Rk5toFR2ZqPwVZ3P_P4wE6U1xCnWR9KD3rNBqfPY7h8,368
55
+ dkg-8.0.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
56
+ dkg-8.0.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.9.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,229 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "hubAddress",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "inputs": [
15
- {
16
- "internalType": "bytes32",
17
- "name": "assertionId",
18
- "type": "bytes32"
19
- }
20
- ],
21
- "name": "assertionExists",
22
- "outputs": [
23
- {
24
- "internalType": "bool",
25
- "name": "",
26
- "type": "bool"
27
- }
28
- ],
29
- "stateMutability": "view",
30
- "type": "function"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "bytes32",
36
- "name": "assertionId",
37
- "type": "bytes32"
38
- },
39
- {
40
- "internalType": "uint128",
41
- "name": "size",
42
- "type": "uint128"
43
- },
44
- {
45
- "internalType": "uint32",
46
- "name": "triplesNumber",
47
- "type": "uint32"
48
- },
49
- {
50
- "internalType": "uint96",
51
- "name": "chunksNumber",
52
- "type": "uint96"
53
- }
54
- ],
55
- "name": "createAssertion",
56
- "outputs": [],
57
- "stateMutability": "nonpayable",
58
- "type": "function"
59
- },
60
- {
61
- "inputs": [
62
- {
63
- "internalType": "bytes32",
64
- "name": "assertionId",
65
- "type": "bytes32"
66
- }
67
- ],
68
- "name": "deleteAssertion",
69
- "outputs": [],
70
- "stateMutability": "nonpayable",
71
- "type": "function"
72
- },
73
- {
74
- "inputs": [
75
- {
76
- "internalType": "bytes32",
77
- "name": "assertionId",
78
- "type": "bytes32"
79
- }
80
- ],
81
- "name": "getAssertion",
82
- "outputs": [
83
- {
84
- "components": [
85
- {
86
- "internalType": "uint256",
87
- "name": "timestamp",
88
- "type": "uint256"
89
- },
90
- {
91
- "internalType": "uint128",
92
- "name": "size",
93
- "type": "uint128"
94
- },
95
- {
96
- "internalType": "uint32",
97
- "name": "triplesNumber",
98
- "type": "uint32"
99
- },
100
- {
101
- "internalType": "uint96",
102
- "name": "chunksNumber",
103
- "type": "uint96"
104
- }
105
- ],
106
- "internalType": "struct AssertionStructs.Assertion",
107
- "name": "",
108
- "type": "tuple"
109
- }
110
- ],
111
- "stateMutability": "view",
112
- "type": "function"
113
- },
114
- {
115
- "inputs": [
116
- {
117
- "internalType": "bytes32",
118
- "name": "assertionId",
119
- "type": "bytes32"
120
- }
121
- ],
122
- "name": "getAssertionChunksNumber",
123
- "outputs": [
124
- {
125
- "internalType": "uint96",
126
- "name": "",
127
- "type": "uint96"
128
- }
129
- ],
130
- "stateMutability": "view",
131
- "type": "function"
132
- },
133
- {
134
- "inputs": [
135
- {
136
- "internalType": "bytes32",
137
- "name": "assertionId",
138
- "type": "bytes32"
139
- }
140
- ],
141
- "name": "getAssertionSize",
142
- "outputs": [
143
- {
144
- "internalType": "uint128",
145
- "name": "",
146
- "type": "uint128"
147
- }
148
- ],
149
- "stateMutability": "view",
150
- "type": "function"
151
- },
152
- {
153
- "inputs": [
154
- {
155
- "internalType": "bytes32",
156
- "name": "assertionId",
157
- "type": "bytes32"
158
- }
159
- ],
160
- "name": "getAssertionTimestamp",
161
- "outputs": [
162
- {
163
- "internalType": "uint256",
164
- "name": "",
165
- "type": "uint256"
166
- }
167
- ],
168
- "stateMutability": "view",
169
- "type": "function"
170
- },
171
- {
172
- "inputs": [
173
- {
174
- "internalType": "bytes32",
175
- "name": "assertionId",
176
- "type": "bytes32"
177
- }
178
- ],
179
- "name": "getAssertionTriplesNumber",
180
- "outputs": [
181
- {
182
- "internalType": "uint32",
183
- "name": "",
184
- "type": "uint32"
185
- }
186
- ],
187
- "stateMutability": "view",
188
- "type": "function"
189
- },
190
- {
191
- "inputs": [],
192
- "name": "hub",
193
- "outputs": [
194
- {
195
- "internalType": "contract Hub",
196
- "name": "",
197
- "type": "address"
198
- }
199
- ],
200
- "stateMutability": "view",
201
- "type": "function"
202
- },
203
- {
204
- "inputs": [],
205
- "name": "name",
206
- "outputs": [
207
- {
208
- "internalType": "string",
209
- "name": "",
210
- "type": "string"
211
- }
212
- ],
213
- "stateMutability": "pure",
214
- "type": "function"
215
- },
216
- {
217
- "inputs": [],
218
- "name": "version",
219
- "outputs": [
220
- {
221
- "internalType": "string",
222
- "name": "",
223
- "type": "string"
224
- }
225
- ],
226
- "stateMutability": "pure",
227
- "type": "function"
228
- }
229
- ]