@human-protocol/sdk 0.0.10

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.
@@ -0,0 +1,30 @@
1
+ export const DEFAULT_HMTOKEN_ADDR =
2
+ '0x5FbDB2315678afecb367f032d93F642f64180aa3';
3
+
4
+ export const DEFAULT_STAKING_ADDR =
5
+ '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512';
6
+
7
+ export const DEFAULT_GAS_PAYER_ADDR =
8
+ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266';
9
+ export const DEFAULT_GAS_PAYER_PRIVKEY =
10
+ 'ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80';
11
+
12
+ export const REPUTATION_ORACLE_ADDR =
13
+ '0x70997970C51812dc3A010C7d01b50e0d17dc79C8';
14
+ export const REPUTATION_ORACLE_PRIVKEY =
15
+ '59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d';
16
+
17
+ export const TRUSTED_OPERATOR1_ADDR =
18
+ '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC';
19
+ export const TRUSTED_OPERATOR1_PRIVKEY =
20
+ '5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a';
21
+
22
+ export const TRUSTED_OPERATOR2_ADDR =
23
+ '0x90F79bf6EB2c4f870365E785982E1f101E93b906';
24
+
25
+ export const WORKER1_ADDR = '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65';
26
+ export const WORKER2_ADDR = '0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc';
27
+ export const WORKER3_ADDR = '0x976EA74026E726554dB657fA54763abd0C3a0aa9';
28
+
29
+ export const NOT_TRUSTED_OPERATOR_PRIVKEY =
30
+ '5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365b';
@@ -0,0 +1,33 @@
1
+ import { Manifest } from '../../src';
2
+
3
+ const CALLBACK_URL = 'http://google.com/webback';
4
+ const GAS_PAYER = '0x1413862c2b7054cdbfdc181b83962cb0fc11fd92';
5
+ const FAKE_URL = 'http://google.com/fake';
6
+ const IMAGE_LABEL_BINARY = 'image_label_binary';
7
+
8
+ export const manifest: Manifest = {
9
+ requester_restricted_answer_set: {
10
+ '0': { en: 'English Answer 1' },
11
+ '1': {
12
+ en: 'English Answer 2',
13
+ answer_example_uri: 'https://hcaptcha.com/example_answer2.jpg',
14
+ },
15
+ },
16
+ job_mode: 'batch',
17
+ request_type: IMAGE_LABEL_BINARY,
18
+ unsafe_content: false,
19
+ task_bid_price: 1,
20
+ oracle_stake: 0.05,
21
+ expiration_date: 0,
22
+ minimum_trust_server: 0.1,
23
+ minimum_trust_client: 0.1,
24
+ requester_accuracy_target: 0.1,
25
+ recording_oracle_addr: GAS_PAYER,
26
+ reputation_oracle_addr: GAS_PAYER,
27
+ reputation_agent_addr: GAS_PAYER,
28
+ instant_result_delivery_webhook: CALLBACK_URL,
29
+ requester_question: { en: 'How much money are we to make' },
30
+ requester_question_example: FAKE_URL,
31
+ job_total_tasks: 100,
32
+ taskdata_uri: FAKE_URL,
33
+ };