Skip to content

Commit aa2a0c1

Browse files
committed
Revert "[Subgraph][SDK] Add registration data to leaders entity (#2451)"
This reverts commit cc79357.
1 parent 651be27 commit aa2a0c1

File tree

26 files changed

+510
-179
lines changed

26 files changed

+510
-179
lines changed

docs/sdk/python/human_protocol_sdk.constants.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ Enum for KVStore keys
5454

5555
#### public_key *= 'public_key'*
5656

57-
#### registration_instructions *= 'registration_instructions'*
58-
5957
#### registration_needed *= 'registration_needed'*
6058

6159
#### role *= 'role'*

docs/sdk/python/human_protocol_sdk.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@
142142
* [`KVStoreKeys.fee`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.fee)
143143
* [`KVStoreKeys.job_types`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.job_types)
144144
* [`KVStoreKeys.public_key`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.public_key)
145-
* [`KVStoreKeys.registration_instructions`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.registration_instructions)
146145
* [`KVStoreKeys.registration_needed`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.registration_needed)
147146
* [`KVStoreKeys.role`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.role)
148147
* [`KVStoreKeys.url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.url)

docs/sdk/python/human_protocol_sdk.operator.operator_utils.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ print(
1717

1818
## Module
1919

20+
<<<<<<< HEAD
2021
### *class* human_protocol_sdk.operator.operator_utils.LeaderData(chain_id, id, address, amount_staked, amount_allocated, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, url=None, job_types=None, registration_needed=None, registration_instructions=None, reputation_networks=None)
2122

2223
Bases: `object`
2324

2425
#### \_\_init_\_(chain_id, id, address, amount_staked, amount_allocated, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, url=None, job_types=None, registration_needed=None, registration_instructions=None, reputation_networks=None)
26+
=======
27+
### *class* human_protocol_sdk.operator.operator_utils.LeaderData(chain_id, id, address, amount_staked, amount_allocated, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, url=None, job_types=None)
28+
29+
Bases: `object`
30+
31+
#### \_\_init_\_(chain_id, id, address, amount_staked, amount_allocated, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, url=None, job_types=None)
32+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
2533
2634
Initializes an LeaderData instance.
2735

@@ -43,9 +51,12 @@ Initializes an LeaderData instance.
4351
* **webhook_url** (`Optional`[`str`]) – Webhook url
4452
* **url** (`Optional`[`str`]) – Url
4553
* **job_types** (`Optional`[`List`[`str`]]) – Job types
54+
<<<<<<< HEAD
4655
* **reputation_networks** (`Optional`[`List`[`str`]]) – List of reputation networks
4756
* **registration_needed** (`Optional`[`bool`]) – True,
4857
* **registration_instructions** (`Optional`[`str`]) – Instructions url,
58+
=======
59+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
4960
5061
### *class* human_protocol_sdk.operator.operator_utils.LeaderFilter(chain_id, role=None)
5162

@@ -61,19 +72,17 @@ Initializes a LeaderFilter instance.
6172
* **chain_id** ([`ChainId`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId)) – Chain Id to request data
6273
* **role** (`Optional`[`str`]) – Leader role
6374

64-
### *class* human_protocol_sdk.operator.operator_utils.Operator(address, role, url='', job_types=[], registration_needed=None, registration_instructions=None)
75+
### *class* human_protocol_sdk.operator.operator_utils.Operator(address, role, url='', job_types=[])
6576

6677
Bases: `object`
6778

68-
#### \_\_init_\_(address, role, url='', job_types=[], registration_needed=None, registration_instructions=None)
79+
#### \_\_init_\_(address, role, url='', job_types=[])
6980

7081
Initializes an Operator instance.
7182

7283
* **Parameters:**
7384
* **address** (`str`) – Operator address
7485
* **role** (`str`) – Role of the operator
75-
* **registration_needed** (`Optional`[`bool`]) – True,
76-
* **registration_instructions** (`Optional`[`str`]) – Instructions url,
7786

7887
### *class* human_protocol_sdk.operator.operator_utils.OperatorUtils
7988

@@ -133,6 +142,8 @@ Get the reputation network operators of the specified address.
133142
* **chain_id** ([`ChainId`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId)) – Network in which the reputation network exists
134143
* **address** (`str`) – Address of the reputation oracle
135144
* **role** (`Optional`[`str`]) – (Optional) Role of the operator
145+
* **Parem job_types:**
146+
(Optional) Job types of the operator
136147
* **Return type:**
137148
`List`[[`Operator`](#human_protocol_sdk.operator.operator_utils.Operator)]
138149
* **Returns:**

docs/sdk/typescript/base/classes/BaseEthersClient.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ The network information required to connect to the contracts
4040

4141
#### Defined in
4242

43+
<<<<<<< HEAD
4344
[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
45+
=======
46+
[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
47+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
4448
4549
## Properties
4650

@@ -50,7 +54,11 @@ The network information required to connect to the contracts
5054
5155
#### Defined in
5256

57+
<<<<<<< HEAD
5358
[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
59+
=======
60+
[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
61+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
5462
5563
***
5664

@@ -60,4 +68,8 @@ The network information required to connect to the contracts
6068
6169
#### Defined in
6270

71+
<<<<<<< HEAD
6372
[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)
73+
=======
74+
[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)
75+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))

docs/sdk/typescript/encryption/classes/Encryption.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ The private key.
6565

6666
#### Defined in
6767

68+
<<<<<<< HEAD
6869
[encryption.ts:52](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L52)
70+
=======
71+
[encryption.ts:53](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L53)
72+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
6973
7074
## Methods
7175

@@ -117,7 +121,11 @@ const resultMessage = await encription.decrypt('message');
117121

118122
#### Defined in
119123

124+
<<<<<<< HEAD
120125
[encryption.ts:179](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L179)
126+
=======
127+
[encryption.ts:180](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L180)
128+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
121129
122130
***
123131

@@ -153,7 +161,11 @@ const resultMessage = await encription.sign('message');
153161

154162
#### Defined in
155163

164+
<<<<<<< HEAD
156165
[encryption.ts:216](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L216)
166+
=======
167+
[encryption.ts:217](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L217)
168+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
157169
158170
***
159171

@@ -218,7 +230,11 @@ const resultMessage = await encription.signAndEncrypt('message', publicKeys);
218230

219231
#### Defined in
220232

233+
<<<<<<< HEAD
221234
[encryption.ts:128](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L128)
235+
=======
236+
[encryption.ts:129](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L129)
237+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
222238
223239
***
224240

@@ -246,4 +262,8 @@ Optional: The passphrase for the private key.
246262

247263
#### Defined in
248264

265+
<<<<<<< HEAD
249266
[encryption.ts:63](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L63)
267+
=======
268+
[encryption.ts:64](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L64)
269+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))

docs/sdk/typescript/encryption/classes/EncryptionUtils.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ const result = await EncriptionUtils.encrypt('message', publicKeys);
9999

100100
#### Defined in
101101

102+
<<<<<<< HEAD
102103
[encryption.ts:421](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L421)
104+
=======
105+
[encryption.ts:422](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L422)
106+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
103107
104108
***
105109

@@ -154,7 +158,11 @@ const result = await EncriptionUtils.generateKeyPair(name, email, passphrase);
154158

155159
#### Defined in
156160

161+
<<<<<<< HEAD
157162
[encryption.ts:359](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L359)
163+
=======
164+
[encryption.ts:360](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L360)
165+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
158166
159167
***
160168

@@ -186,7 +194,11 @@ const signedData = await EncriptionUtils.getSignedData('message');
186194

187195
#### Defined in
188196

197+
<<<<<<< HEAD
189198
[encryption.ts:316](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L316)
199+
=======
200+
[encryption.ts:317](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L317)
201+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
190202
191203
***
192204

@@ -234,7 +246,11 @@ if (isEncrypted) {
234246

235247
#### Defined in
236248

249+
<<<<<<< HEAD
237250
[encryption.ts:470](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L470)
251+
=======
252+
[encryption.ts:471](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L471)
253+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))
238254
239255
***
240256

@@ -282,4 +298,8 @@ const result = await EncriptionUtils.verify('message', publicKey);
282298

283299
#### Defined in
284300

301+
<<<<<<< HEAD
285302
[encryption.ts:283](https://github.com/humanprotocol/human-protocol/blob/9ddd51f9c9a3ec97c56d6ffbca5fe9048b9ea0f8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L283)
303+
=======
304+
[encryption.ts:284](https://github.com/humanprotocol/human-protocol/blob/c09869ece39906cbc45f3dc508e1338970deeec5/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L284)
305+
>>>>>>> parent of cc79357b2 ([Subgraph][SDK] Add registration data to leaders entity (#2451))

0 commit comments

Comments
 (0)