Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
leric7 committed Mar 1, 2024
1 parent 4806607 commit 8eeb944
Show file tree
Hide file tree
Showing 13 changed files with 109 additions and 97 deletions.
10 changes: 9 additions & 1 deletion docs/sdk/python/human_protocol_sdk.constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ Bases: `Enum`

Enum for KVStore keys

#### public_key *= 'publicKey'*
#### fee *= 'fee'*

#### public_key *= 'public_key'*

#### role *= 'role'*

#### url *= 'url'*

#### webhook_url *= 'webhook_url'*

### *class* human_protocol_sdk.constants.Role(value)

Expand Down
4 changes: 2 additions & 2 deletions docs/sdk/python/human_protocol_sdk.kvstore.kvstore_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Gets the URL value of the given entity, and verify its hash.
)
linkedin_url = kvstore_client.get_file_url_and_verify_hash(
'0x62dD51230A30401C455c8398d06F85e4EaB6309f',
'linkedinUrl'
'linkedin_url'
)
```
* **Return type:**
Expand Down Expand Up @@ -255,7 +255,7 @@ Sets a URL value for the address that submits the transaction, and its hash.
kvstore_client = KVStoreClient(w3)

kvstore_client.set_file_url_and_hash('http://localhost')
kvstore_client.set_file_url_and_hash('https://linkedin.com/me', 'linkedinUrl')
kvstore_client.set_file_url_and_hash('https://linkedin.com/me', 'linkedin_url')
```

### *exception* human_protocol_sdk.kvstore.kvstore_client.KVStoreClientError
Expand Down
4 changes: 4 additions & 0 deletions docs/sdk/python/human_protocol_sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@
* [`ChainId.RINKEBY`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.RINKEBY)
* [`ChainId.SKALE`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.SKALE)
* [`KVStoreKeys`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys)
* [`KVStoreKeys.fee`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.fee)
* [`KVStoreKeys.public_key`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.public_key)
* [`KVStoreKeys.role`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.role)
* [`KVStoreKeys.url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.url)
* [`KVStoreKeys.webhook_url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.webhook_url)
* [`Role`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role)
* [`Role.exchange_oracle`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role.exchange_oracle)
* [`Role.job_launcher`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role.job_launcher)
Expand Down
6 changes: 3 additions & 3 deletions docs/sdk/typescript/classes/base.BaseEthersClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This class is used as a base class for other clients making on-chain calls.

#### Defined in

[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)
[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20)

## Properties

Expand All @@ -60,7 +60,7 @@ This class is used as a base class for other clients making on-chain calls.

#### Defined in

[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)
[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12)

___

Expand All @@ -70,4 +70,4 @@ ___

#### Defined in

[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)
[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11)
12 changes: 6 additions & 6 deletions docs/sdk/typescript/classes/encryption.Encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Constructor for the Encryption class.

#### Defined in

[encryption.ts:53](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L53)
[encryption.ts:53](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L53)

## Properties

Expand All @@ -91,7 +91,7 @@ Constructor for the Encryption class.

#### Defined in

[encryption.ts:46](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L46)
[encryption.ts:46](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L46)

## Methods

Expand Down Expand Up @@ -140,7 +140,7 @@ const resultMessage = await encription.decrypt('message');

#### Defined in

[encryption.ts:180](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L180)
[encryption.ts:180](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L180)

___

Expand Down Expand Up @@ -176,7 +176,7 @@ const resultMessage = await encription.sign('message');

#### Defined in

[encryption.ts:217](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L217)
[encryption.ts:217](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L217)

___

Expand Down Expand Up @@ -238,7 +238,7 @@ const resultMessage = await encription.signAndEncrypt('message', publicKeys);

#### Defined in

[encryption.ts:129](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L129)
[encryption.ts:129](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L129)

___

Expand All @@ -263,4 +263,4 @@ Builds an Encryption instance by decrypting the private key from an encrypted pr

#### Defined in

[encryption.ts:64](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L64)
[encryption.ts:64](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L64)
10 changes: 5 additions & 5 deletions docs/sdk/typescript/classes/encryption.EncryptionUtils.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const result = await EncriptionUtils.encrypt('message', publicKeys);

#### Defined in

[encryption.ts:422](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L422)
[encryption.ts:422](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L422)

___

Expand Down Expand Up @@ -157,7 +157,7 @@ const result = await EncriptionUtils.generateKeyPair(name, email, passphrase);

#### Defined in

[encryption.ts:360](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L360)
[encryption.ts:360](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L360)

___

Expand Down Expand Up @@ -189,7 +189,7 @@ const signedData = await EncriptionUtils.getSignedData('message');

#### Defined in

[encryption.ts:317](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L317)
[encryption.ts:317](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L317)

___

Expand Down Expand Up @@ -237,7 +237,7 @@ if (isEncrypted) {

#### Defined in

[encryption.ts:471](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L471)
[encryption.ts:471](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L471)

___

Expand Down Expand Up @@ -282,4 +282,4 @@ const result = await EncriptionUtils.verify('message', publicKey);

#### Defined in

[encryption.ts:284](https://github.com/humanprotocol/human-protocol/blob/8f001678/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L284)
[encryption.ts:284](https://github.com/humanprotocol/human-protocol/blob/48066071/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L284)
Loading

0 comments on commit 8eeb944

Please sign in to comment.