dkg 0.1.0b6__py3-none-any.whl → 1.1.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.
- dkg/asset.py +106 -28
- dkg/constants.py +18 -10
- dkg/data/interfaces/ContentAsset.json +133 -3
- dkg/data/interfaces/Paranet.json +821 -0
- dkg/data/interfaces/{Identity.json → ParanetIncentivesPoolFactory.json} +67 -86
- dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +919 -0
- dkg/data/interfaces/ParanetNeurowebIncentivesPool.json +1102 -0
- dkg/data/interfaces/{ServiceAgreementStorageV1.json → ParanetsRegistry.json} +331 -360
- dkg/dataclasses.py +28 -8
- dkg/exceptions.py +1 -1
- dkg/main.py +6 -3
- dkg/method.py +55 -39
- dkg/module.py +1 -0
- dkg/network.py +20 -10
- dkg/paranet.py +476 -0
- dkg/providers/blockchain.py +57 -26
- dkg/types/__init__.py +1 -0
- dkg/types/general.py +44 -0
- dkg/utils/blockchain_request.py +149 -4
- dkg/utils/node_request.py +77 -80
- {dkg-0.1.0b6.dist-info → dkg-1.1.0.dist-info}/METADATA +3 -141
- dkg-1.1.0.dist-info/NOTICE +9 -0
- dkg-1.1.0.dist-info/RECORD +52 -0
- {dkg-0.1.0b6.dist-info → dkg-1.1.0.dist-info}/WHEEL +1 -1
- dkg/data/interfaces/Assertion.json +0 -157
- dkg/data/interfaces/CommitManagerV1.json +0 -549
- dkg/data/interfaces/CommitManagerV1U1.json +0 -735
- dkg/data/interfaces/HashingProxy.json +0 -253
- dkg/data/interfaces/IdentityStorage.json +0 -342
- dkg/data/interfaces/ParametersStorage.json +0 -487
- dkg/data/interfaces/Profile.json +0 -318
- dkg/data/interfaces/ProfileStorage.json +0 -596
- dkg/data/interfaces/ProofManagerV1.json +0 -540
- dkg/data/interfaces/ProofManagerV1U1.json +0 -561
- dkg/data/interfaces/ScoringProxy.json +0 -268
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
- dkg/data/interfaces/ServiceAgreementV1.json +0 -745
- dkg/data/interfaces/ShardingTable.json +0 -294
- dkg/data/interfaces/ShardingTableStorage.json +0 -317
- dkg/data/interfaces/Staking.json +0 -482
- dkg/data/interfaces/StakingStorage.json +0 -407
- dkg/data/interfaces/WhitelistStorage.json +0 -124
- dkg-0.1.0b6.dist-info/RECORD +0 -64
- {dkg-0.1.0b6.dist-info → dkg-1.1.0.dist-info}/LICENSE +0 -0
@@ -11,105 +11,104 @@
|
|
11
11
|
"type": "constructor"
|
12
12
|
},
|
13
13
|
{
|
14
|
-
"anonymous": false,
|
15
14
|
"inputs": [
|
16
15
|
{
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"type": "uint72"
|
16
|
+
"internalType": "address",
|
17
|
+
"name": "knowledgeAssetStorageAddress",
|
18
|
+
"type": "address"
|
21
19
|
},
|
22
20
|
{
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"type": "bytes32"
|
21
|
+
"internalType": "uint256",
|
22
|
+
"name": "tokenId",
|
23
|
+
"type": "uint256"
|
27
24
|
},
|
28
25
|
{
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
|
26
|
+
"internalType": "string",
|
27
|
+
"name": "poolType",
|
28
|
+
"type": "string"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"internalType": "address",
|
32
|
+
"name": "poolAddress",
|
33
|
+
"type": "address"
|
33
34
|
}
|
34
35
|
],
|
35
|
-
"name": "
|
36
|
-
"type": "
|
36
|
+
"name": "ParanetIncentivesPoolAlreadyExists",
|
37
|
+
"type": "error"
|
37
38
|
},
|
38
39
|
{
|
39
40
|
"anonymous": false,
|
40
41
|
"inputs": [
|
41
42
|
{
|
42
43
|
"indexed": true,
|
43
|
-
"internalType": "
|
44
|
-
"name": "
|
45
|
-
"type": "
|
44
|
+
"internalType": "address",
|
45
|
+
"name": "paranetKAStorageContract",
|
46
|
+
"type": "address"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"indexed": true,
|
50
|
+
"internalType": "uint256",
|
51
|
+
"name": "paranetKATokenId",
|
52
|
+
"type": "uint256"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"components": [
|
56
|
+
{
|
57
|
+
"internalType": "string",
|
58
|
+
"name": "poolType",
|
59
|
+
"type": "string"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "address",
|
63
|
+
"name": "addr",
|
64
|
+
"type": "address"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"indexed": false,
|
68
|
+
"internalType": "struct ParanetStructs.IncentivesPool",
|
69
|
+
"name": "incentivesPool",
|
70
|
+
"type": "tuple"
|
46
71
|
}
|
47
72
|
],
|
48
|
-
"name": "
|
73
|
+
"name": "ParanetIncetivesPoolDeployed",
|
49
74
|
"type": "event"
|
50
75
|
},
|
51
76
|
{
|
52
77
|
"inputs": [
|
53
78
|
{
|
54
|
-
"internalType": "
|
55
|
-
"name": "
|
56
|
-
"type": "
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"internalType": "bytes32",
|
60
|
-
"name": "key",
|
61
|
-
"type": "bytes32"
|
79
|
+
"internalType": "address",
|
80
|
+
"name": "paranetKAStorageContract",
|
81
|
+
"type": "address"
|
62
82
|
},
|
63
83
|
{
|
64
84
|
"internalType": "uint256",
|
65
|
-
"name": "
|
85
|
+
"name": "paranetKATokenId",
|
66
86
|
"type": "uint256"
|
67
87
|
},
|
68
88
|
{
|
69
89
|
"internalType": "uint256",
|
70
|
-
"name": "
|
90
|
+
"name": "tracToNeuroEmissionMultiplier",
|
71
91
|
"type": "uint256"
|
72
|
-
}
|
73
|
-
],
|
74
|
-
"name": "addKey",
|
75
|
-
"outputs": [],
|
76
|
-
"stateMutability": "nonpayable",
|
77
|
-
"type": "function"
|
78
|
-
},
|
79
|
-
{
|
80
|
-
"inputs": [
|
92
|
+
},
|
81
93
|
{
|
82
|
-
"internalType": "
|
83
|
-
"name": "
|
84
|
-
"type": "
|
94
|
+
"internalType": "uint16",
|
95
|
+
"name": "paranetOperatorRewardPercentage",
|
96
|
+
"type": "uint16"
|
85
97
|
},
|
86
98
|
{
|
87
|
-
"internalType": "
|
88
|
-
"name": "
|
89
|
-
"type": "
|
99
|
+
"internalType": "uint16",
|
100
|
+
"name": "paranetIncentivizationProposalVotersRewardPercentage",
|
101
|
+
"type": "uint16"
|
90
102
|
}
|
91
103
|
],
|
92
|
-
"name": "
|
104
|
+
"name": "deployNeuroIncentivesPool",
|
93
105
|
"outputs": [
|
94
106
|
{
|
95
|
-
"internalType": "
|
107
|
+
"internalType": "address",
|
96
108
|
"name": "",
|
97
|
-
"type": "
|
98
|
-
}
|
99
|
-
],
|
100
|
-
"stateMutability": "nonpayable",
|
101
|
-
"type": "function"
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"inputs": [
|
105
|
-
{
|
106
|
-
"internalType": "uint72",
|
107
|
-
"name": "identityId",
|
108
|
-
"type": "uint72"
|
109
|
+
"type": "address"
|
109
110
|
}
|
110
111
|
],
|
111
|
-
"name": "deleteIdentity",
|
112
|
-
"outputs": [],
|
113
112
|
"stateMutability": "nonpayable",
|
114
113
|
"type": "function"
|
115
114
|
},
|
@@ -118,20 +117,7 @@
|
|
118
117
|
"name": "hub",
|
119
118
|
"outputs": [
|
120
119
|
{
|
121
|
-
"internalType": "contract
|
122
|
-
"name": "",
|
123
|
-
"type": "address"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"stateMutability": "view",
|
127
|
-
"type": "function"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"inputs": [],
|
131
|
-
"name": "identityStorage",
|
132
|
-
"outputs": [
|
133
|
-
{
|
134
|
-
"internalType": "contract IdentityStorage",
|
120
|
+
"internalType": "contract HubV2",
|
135
121
|
"name": "",
|
136
122
|
"type": "address"
|
137
123
|
}
|
@@ -160,21 +146,16 @@
|
|
160
146
|
"type": "function"
|
161
147
|
},
|
162
148
|
{
|
163
|
-
"inputs": [
|
164
|
-
|
165
|
-
|
166
|
-
"name": "identityId",
|
167
|
-
"type": "uint72"
|
168
|
-
},
|
149
|
+
"inputs": [],
|
150
|
+
"name": "paranetsRegistry",
|
151
|
+
"outputs": [
|
169
152
|
{
|
170
|
-
"internalType": "
|
171
|
-
"name": "
|
172
|
-
"type": "
|
153
|
+
"internalType": "contract ParanetsRegistry",
|
154
|
+
"name": "",
|
155
|
+
"type": "address"
|
173
156
|
}
|
174
157
|
],
|
175
|
-
"
|
176
|
-
"outputs": [],
|
177
|
-
"stateMutability": "nonpayable",
|
158
|
+
"stateMutability": "view",
|
178
159
|
"type": "function"
|
179
160
|
},
|
180
161
|
{
|