@human-protocol/sdk 2.1.3 → 3.0.1
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.
- package/README.md +23 -80
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +56 -24
- package/dist/enums.d.ts +7 -2
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +8 -2
- package/dist/error.d.ts +16 -0
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +18 -2
- package/dist/escrow.d.ts +91 -7
- package/dist/escrow.d.ts.map +1 -1
- package/dist/escrow.js +154 -39
- package/dist/graphql/queries/escrow.d.ts +1 -0
- package/dist/graphql/queries/escrow.d.ts.map +1 -1
- package/dist/graphql/queries/escrow.js +50 -9
- package/dist/graphql/queries/hmtoken.d.ts +1 -1
- package/dist/graphql/queries/hmtoken.d.ts.map +1 -1
- package/dist/graphql/queries/hmtoken.js +23 -7
- package/dist/graphql/queries/kvstore.d.ts +2 -0
- package/dist/graphql/queries/kvstore.d.ts.map +1 -0
- package/dist/graphql/queries/kvstore.js +28 -0
- package/dist/graphql/queries/statistics.d.ts.map +1 -1
- package/dist/graphql/queries/statistics.js +2 -0
- package/dist/graphql/queries/transaction.d.ts +4 -0
- package/dist/graphql/queries/transaction.d.ts.map +1 -0
- package/dist/graphql/queries/transaction.js +64 -0
- package/dist/graphql/types.d.ts +19 -0
- package/dist/graphql/types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/interfaces.d.ts +35 -4
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/kvstore.d.ts +84 -0
- package/dist/kvstore.d.ts.map +1 -1
- package/dist/kvstore.js +103 -1
- package/dist/operator.d.ts +5 -2
- package/dist/operator.d.ts.map +1 -1
- package/dist/operator.js +68 -57
- package/dist/statistics.d.ts +29 -2
- package/dist/statistics.d.ts.map +1 -1
- package/dist/statistics.js +53 -7
- package/dist/transaction.d.ts +75 -0
- package/dist/transaction.d.ts.map +1 -0
- package/dist/transaction.js +130 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +9 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +21 -1
- package/package.json +7 -6
- package/src/constants.ts +73 -23
- package/src/enums.ts +7 -1
- package/src/error.ts +23 -0
- package/src/escrow.ts +199 -51
- package/src/graphql/queries/escrow.ts +53 -8
- package/src/graphql/queries/hmtoken.ts +23 -7
- package/src/graphql/queries/kvstore.ts +23 -0
- package/src/graphql/queries/statistics.ts +2 -0
- package/src/graphql/queries/transaction.ts +64 -0
- package/src/graphql/types.ts +22 -0
- package/src/index.ts +2 -0
- package/src/interfaces.ts +40 -4
- package/src/kvstore.ts +114 -1
- package/src/operator.ts +90 -69
- package/src/statistics.ts +63 -9
- package/src/transaction.ts +152 -0
- package/src/types.ts +4 -0
- package/src/utils.ts +25 -0
package/README.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://www.humanprotocol.org/" target="blank"><img src="https://s2.coinmarketcap.com/static/img/coins/64x64/10347.png" width="100" alt="Human Protocol" /></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
6
|
+
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
|
7
|
+
|
|
8
|
+
<h1 align="center">Human Protocol Node.js SDK</h1>
|
|
9
|
+
<p align="center">Node.js SDK to launch/manage escrows on <a href="https://www.humanprotocol.org/">Human Protocol</a>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://github.com/humanprotocol/human-protocol/actions/workflows/ci-test-node-sdk.yaml">
|
|
14
|
+
<img src="https://github.com/humanprotocol/human-protocol/actions/workflows/ci-test-node-sdk.yaml/badge.svg?branch=main" alt="Node SDK Check">
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://github.com/humanprotocol/human-protocol/actions/workflows/cd-node-sdk.yaml">
|
|
17
|
+
<img src="https://github.com/humanprotocol/human-protocol/actions/workflows/cd-node-sdk.yaml/badge.svg?event=release" alt="Node SDK deployment">
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
4
20
|
|
|
5
21
|
## Installation
|
|
6
22
|
|
|
@@ -8,83 +24,10 @@ This SDK is available on [NPM](https://www.npmjs.com/package/@human-protocol/sdk
|
|
|
8
24
|
|
|
9
25
|
yarn add @human-protocol/sdk
|
|
10
26
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
- InitClient
|
|
14
|
-
|
|
15
|
-
**InitClient** has one static function that returns a `Signer` or `Provider` (depending on the passed parameter), as well as a chainId associated with this parameter in an asynchronous way. Used for further passing as a constructor parameter to Web3 dependent modules.
|
|
16
|
-
|
|
17
|
-
- StorageClient
|
|
18
|
-
|
|
19
|
-
**StorageClient** is used to upload/download files to the cloud storage with given credentials and params. If credentials are not provided, anonymous access will be used (for downloading files).
|
|
20
|
-
|
|
21
|
-
- EscrowClient
|
|
22
|
-
|
|
23
|
-
**EscrowClient** enables to perform actions on Escrow contracts and obtain information from both the contracts and subgraph. Internally, the SDK will use one network or another according to the network ID of the `signerOrProvider`.
|
|
24
|
-
|
|
25
|
-
- KVStoreClient
|
|
26
|
-
|
|
27
|
-
**KVStoreClient** enables to perform actions on KVStore contract and obtain information from both the contracts and subgraph. Internally, the SDK will use one network or another according to the network ID of the `signerOrProvider`.
|
|
28
|
-
|
|
29
|
-
- StakingClient
|
|
30
|
-
|
|
31
|
-
**StakingClient** enables to perform actions on staking contracts and obtain staking information from both the contracts and subgraph. Internally, the SDK will use one network or another according to the network ID of the `signerOrProvider`.
|
|
32
|
-
|
|
33
|
-
## Example
|
|
34
|
-
|
|
35
|
-
```typescript
|
|
36
|
-
const {
|
|
37
|
-
EscrowClient,
|
|
38
|
-
StakingClient,
|
|
39
|
-
NETWORKS,
|
|
40
|
-
ChainId,
|
|
41
|
-
} = require('@human-protocol/sdk');
|
|
42
|
-
const { ethers } = require('ethers');
|
|
43
|
-
|
|
44
|
-
(async () => {
|
|
45
|
-
// Hardhat Provider
|
|
46
|
-
const provider = new ethers.providers.JsonRpcProvider(
|
|
47
|
-
'http://127.0.0.1:8545/'
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
// Load localhost configuration
|
|
51
|
-
const network = NETWORKS[ChainId.LOCALHOST];
|
|
52
|
-
|
|
53
|
-
const signer = new ethers.Wallet(
|
|
54
|
-
'0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a',
|
|
55
|
-
provider
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
// Initialize StakingClient
|
|
59
|
-
const stakingClient = new StakingClient({
|
|
60
|
-
signerOrProvider: signer,
|
|
61
|
-
network,
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
// Stake 10 HMT
|
|
65
|
-
await stakingClient.approveStake(ethers.BigNumber.from(10));
|
|
66
|
-
await stakingClient.stake(ethers.BigNumber.from(10));
|
|
27
|
+
## Documentation
|
|
67
28
|
|
|
68
|
-
|
|
69
|
-
const escrowClient = new EscrowClient({
|
|
70
|
-
signerOrProvider: signer,
|
|
71
|
-
network,
|
|
72
|
-
});
|
|
29
|
+
For detailed information about core, please refer to the [Human Protocol Docs](https://sdk.humanprotocol.org/).
|
|
73
30
|
|
|
74
|
-
|
|
75
|
-
const escrowAddress = await escrowClient.createEscrow(network.hmtAddress, [
|
|
76
|
-
signer.address,
|
|
77
|
-
]);
|
|
31
|
+
## License
|
|
78
32
|
|
|
79
|
-
|
|
80
|
-
recordingOracle: '0x90F79bf6EB2c4f870365E785982E1f101E93b906',
|
|
81
|
-
reputationOracle: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65',
|
|
82
|
-
exchangeOracle: '0x6b7E3C31F34cF38d1DFC1D9A8A59482028395809',
|
|
83
|
-
recordingOracleFee: ethers.BigNumber.from(1),
|
|
84
|
-
reputationOracleFee: ethers.BigNumber.from(1),
|
|
85
|
-
exchangeOracleFee: ethers.BigNumber.from(1),
|
|
86
|
-
manifestUrl: 'http://example.com',
|
|
87
|
-
hash: 'test',
|
|
88
|
-
});
|
|
89
|
-
})();
|
|
90
|
-
```
|
|
33
|
+
This project is licensed under the MIT License. See the [LICENSE](https://github.com/humanprotocol/human-protocol/blob/main/LICENSE) file for details.
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;GAEG;AACH,oBAAY,UAAU;IACpB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,WAAW,MAAM;IACjB,YAAY,MAAM;IAClB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,SAAS,MAAM;IACf,qBAAqB,MAAM;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE;KACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;GAEG;AACH,oBAAY,UAAU;IACpB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,WAAW,MAAM;IACjB,YAAY,MAAM;IAClB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,SAAS,MAAM;IACf,qBAAqB,MAAM;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE;KACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,WAAW;CAmSnC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;CAKhB,CAAC;AAEF,eAAO,MAAM,4BAA4B,uBAAuB,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Role = exports.KVStoreKeys = exports.NETWORKS = exports.HttpStatus = exports.DEFAULT_TX_ID = exports.DEFAULT_USE_SSL = exports.DEFAULT_PORT = exports.DEFAULT_REGION = exports.DEFAULT_ENDPOINT = exports.DEFAULT_PUBLIC_BUCKET = void 0;
|
|
3
|
+
exports.SUBGRAPH_API_KEY_PLACEHOLDER = exports.Role = exports.KVStoreKeys = exports.NETWORKS = exports.HttpStatus = exports.DEFAULT_TX_ID = exports.DEFAULT_USE_SSL = exports.DEFAULT_PORT = exports.DEFAULT_REGION = exports.DEFAULT_ENDPOINT = exports.DEFAULT_PUBLIC_BUCKET = void 0;
|
|
4
4
|
const enums_1 = require("./enums");
|
|
5
5
|
/**
|
|
6
6
|
* @constant Default public bucket name
|
|
@@ -53,7 +53,8 @@ exports.NETWORKS = {
|
|
|
53
53
|
stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123',
|
|
54
54
|
rewardPoolAddress: '0x4A5963Dd6792692e9147EdC7659936b96251917a',
|
|
55
55
|
kvstoreAddress: '0xB6d36B1CDaD50302BCB3DB43bAb0D349458e1b8D',
|
|
56
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
56
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/ethereum/version/latest',
|
|
57
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/BtC96WCK6ZpZ35v94MK6rZNiBzDEZYHFzDmhMYyZ369D',
|
|
57
58
|
oldSubgraphUrl: '',
|
|
58
59
|
oldFactoryAddress: '',
|
|
59
60
|
},
|
|
@@ -67,6 +68,7 @@ exports.NETWORKS = {
|
|
|
67
68
|
rewardPoolAddress: '',
|
|
68
69
|
kvstoreAddress: '',
|
|
69
70
|
subgraphUrl: '',
|
|
71
|
+
subgraphUrlApiKey: '',
|
|
70
72
|
oldSubgraphUrl: '',
|
|
71
73
|
oldFactoryAddress: '',
|
|
72
74
|
},
|
|
@@ -80,6 +82,7 @@ exports.NETWORKS = {
|
|
|
80
82
|
rewardPoolAddress: '0x0376D26246Eb35FF4F9924cF13E6C05fd0bD7Fb4',
|
|
81
83
|
kvstoreAddress: '0x19Fc3e859C1813ac9427a7a78BeB9ae102CE96d3',
|
|
82
84
|
subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/goerli-v2',
|
|
85
|
+
subgraphUrlApiKey: '',
|
|
83
86
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/goerli',
|
|
84
87
|
oldFactoryAddress: '0xaAe6a2646C1F88763E62e0cD08aD050Ea66AC46F',
|
|
85
88
|
},
|
|
@@ -92,7 +95,8 @@ exports.NETWORKS = {
|
|
|
92
95
|
stakingAddress: '0x2B9C5EC6220BA8Ad08CB51A60FFdbC6a6235B203',
|
|
93
96
|
rewardPoolAddress: '0xAFf5a986A530ff839d49325A5dF69F96627E8D29',
|
|
94
97
|
kvstoreAddress: '0xCc0AF0635aa19fE799B6aFDBe28fcFAeA7f00a60',
|
|
95
|
-
subgraphUrl: 'https://
|
|
98
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/sepolia/version/latest',
|
|
99
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/UMLaZHtLE9LxzDyvBLBgfWj4erzYzYMeGUbQtxtyMaE',
|
|
96
100
|
oldSubgraphUrl: '',
|
|
97
101
|
oldFactoryAddress: '',
|
|
98
102
|
},
|
|
@@ -105,7 +109,8 @@ exports.NETWORKS = {
|
|
|
105
109
|
stakingAddress: '0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C',
|
|
106
110
|
rewardPoolAddress: '0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e',
|
|
107
111
|
kvstoreAddress: '0x21A0C4CED7aE447fCf87D9FE3A29FA9B3AB20Ff1',
|
|
108
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
112
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc/version/latest',
|
|
113
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/JBJPC3YmRSNjyjRTTpazhhSX5CCZ4CeBx6ptRsM8PCBb',
|
|
109
114
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc',
|
|
110
115
|
oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4',
|
|
111
116
|
},
|
|
@@ -118,7 +123,8 @@ exports.NETWORKS = {
|
|
|
118
123
|
stakingAddress: '0x5517fE916Fe9F8dB15B0DDc76ebDf0BdDCd4ed18',
|
|
119
124
|
rewardPoolAddress: '0xB0A0500103eCEc431b73F6BAd923F0a2774E6e29',
|
|
120
125
|
kvstoreAddress: '0x32e27177BA6Ea91cf28dfd91a0Da9822A4b74EcF',
|
|
121
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
126
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest',
|
|
127
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/BnaC4CDqgdbGvcgM7KoZ6d7Yeebsm7NvLFrr61Lxg6Ao',
|
|
122
128
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest',
|
|
123
129
|
oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f',
|
|
124
130
|
},
|
|
@@ -131,7 +137,8 @@ exports.NETWORKS = {
|
|
|
131
137
|
stakingAddress: '0xcbAd56bE3f504E98bd70875823d3CC0242B7bB29',
|
|
132
138
|
rewardPoolAddress: '0xa8e32d777a3839440cc7c24D591A64B9481753B3',
|
|
133
139
|
kvstoreAddress: '0xbcB28672F826a50B03EE91B28145EAbddA73B2eD',
|
|
134
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
140
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/polygon/version/latest',
|
|
141
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/HHYwCHBvDrjckpNB4jbB8k63pSot6rGtBYLBygGji3vD',
|
|
135
142
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon',
|
|
136
143
|
oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794',
|
|
137
144
|
},
|
|
@@ -145,6 +152,7 @@ exports.NETWORKS = {
|
|
|
145
152
|
rewardPoolAddress: '0xf0145eD99AC3c4f877aDa7dA4D1E059ec9116BAE',
|
|
146
153
|
kvstoreAddress: '0xD96158c7267Ea658a4688F4aEf1c85659851625d',
|
|
147
154
|
subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai-v2',
|
|
155
|
+
subgraphUrlApiKey: '',
|
|
148
156
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai',
|
|
149
157
|
oldFactoryAddress: '0x558cd800f9F0B02f3B149667bDe003284c867E94',
|
|
150
158
|
},
|
|
@@ -157,7 +165,8 @@ exports.NETWORKS = {
|
|
|
157
165
|
stakingAddress: '0xCc0AF0635aa19fE799B6aFDBe28fcFAeA7f00a60',
|
|
158
166
|
rewardPoolAddress: '0xd866bCEFf6D0F77E1c3EAE28230AE6C79b03fDa7',
|
|
159
167
|
kvstoreAddress: '0x724AeFC243EdacCA27EAB86D3ec5a76Af4436Fc7',
|
|
160
|
-
subgraphUrl: 'https://
|
|
168
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/amoy/version/latest',
|
|
169
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/FmdCVzHV3bB4abPVYtBALtBHr7ZRZmZ67m5c432S7GZH',
|
|
161
170
|
oldSubgraphUrl: '',
|
|
162
171
|
oldFactoryAddress: '',
|
|
163
172
|
},
|
|
@@ -170,7 +179,8 @@ exports.NETWORKS = {
|
|
|
170
179
|
stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123',
|
|
171
180
|
rewardPoolAddress: '0x4A5963Dd6792692e9147EdC7659936b96251917a',
|
|
172
181
|
kvstoreAddress: '0x2B95bEcb6EBC4589f64CB000dFCF716b4aeF8aA6',
|
|
173
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
182
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/moonbeam/version/latest',
|
|
183
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/BH5Sm6exn76o5frV5VeCufChB43DCfMXCQsdtWt4AuQP',
|
|
174
184
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/moonbeam',
|
|
175
185
|
oldFactoryAddress: '0x98108c28B7767a52BE38B4860832dd4e11A7ecad',
|
|
176
186
|
},
|
|
@@ -183,7 +193,8 @@ exports.NETWORKS = {
|
|
|
183
193
|
stakingAddress: '0xBFC7009F3371F93F3B54DdC8caCd02914a37495c',
|
|
184
194
|
rewardPoolAddress: '0xf46B45Df3d956369726d8Bd93Ba33963Ab692920',
|
|
185
195
|
kvstoreAddress: '0xcC561f4482f4Ff051D2Dcc65c2cE1A0f291bbA46',
|
|
186
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
196
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/moonbase-alpha/version/latest',
|
|
197
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/AmmRkJszUbjfUwHubcRkU6CfG1Q9psRWRbbHADVmsLjE',
|
|
187
198
|
oldSubgraphUrl: '',
|
|
188
199
|
oldFactoryAddress: '',
|
|
189
200
|
},
|
|
@@ -196,7 +207,8 @@ exports.NETWORKS = {
|
|
|
196
207
|
stakingAddress: '0x9890473B0b93E24d6D1a8Dfb739D577C6f25FFd3',
|
|
197
208
|
rewardPoolAddress: '0x5517fE916Fe9F8dB15B0DDc76ebDf0BdDCd4ed18',
|
|
198
209
|
kvstoreAddress: '0x3aD4B091E054f192a822D1406f4535eAd38580e4',
|
|
199
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
210
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/fuji/version/latest',
|
|
211
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/CnZCDsWziQF3jNoqgQMkmJbF9frof5osM3hN5eUgyL5u',
|
|
200
212
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/fuji',
|
|
201
213
|
oldFactoryAddress: '0xfb4469201951C3B9a7F1996c477cb7BDBEcE0A88',
|
|
202
214
|
},
|
|
@@ -209,7 +221,8 @@ exports.NETWORKS = {
|
|
|
209
221
|
stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123',
|
|
210
222
|
rewardPoolAddress: '0x4A5963Dd6792692e9147EdC7659936b96251917a',
|
|
211
223
|
kvstoreAddress: '0x9Bc7bff35B2Be2413708d48c3B0aEF5c43646728',
|
|
212
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
224
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/avalanche/version/latest',
|
|
225
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/FweDaDWZ6ZDcsA63wsjnWgdgw4aCbkiVQYMYvtcP5p2u',
|
|
213
226
|
oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/avalanche',
|
|
214
227
|
oldFactoryAddress: '0x9767a578ba7a5FA1563c8229943cB01cd8446BB4',
|
|
215
228
|
},
|
|
@@ -222,7 +235,8 @@ exports.NETWORKS = {
|
|
|
222
235
|
stakingAddress: '0x003548Df34be8836cF0F9673403a1E40ba449a0F',
|
|
223
236
|
rewardPoolAddress: '0xA9545C2530BD5bdb464d5E274F59ACceAa73eD86',
|
|
224
237
|
kvstoreAddress: '0x938335006ea6F9Eb0e8020969cFF94404425e298',
|
|
225
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
238
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/celo-alfajores/version/latest',
|
|
239
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/EGWCWuzBNkbypW8ipRKuyGwq8azoCy6LKKosGgSPMGRD',
|
|
226
240
|
oldSubgraphUrl: '',
|
|
227
241
|
oldFactoryAddress: '',
|
|
228
242
|
},
|
|
@@ -235,22 +249,38 @@ exports.NETWORKS = {
|
|
|
235
249
|
stakingAddress: '0x34cD3Bd6B16c559f321799b516dE61E12017fFd1',
|
|
236
250
|
rewardPoolAddress: '0xb9344bAD98E3d26a4d83900922baf395a2Ec154c',
|
|
237
251
|
kvstoreAddress: '0x86Af9f6Cd34B69Db1B202223C6d6D109f2491569',
|
|
238
|
-
subgraphUrl: 'https://api.thegraph.com/
|
|
252
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/celo/version/latest',
|
|
253
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/HTgMnYWGsdsw41o8dyph1bwhotuXh6va3L8r8DGgLjsA',
|
|
239
254
|
oldSubgraphUrl: '',
|
|
240
255
|
oldFactoryAddress: '',
|
|
241
256
|
},
|
|
242
|
-
[enums_1.ChainId.
|
|
243
|
-
chainId: enums_1.ChainId.
|
|
244
|
-
title: '
|
|
245
|
-
scanUrl: 'https://
|
|
246
|
-
factoryAddress: '
|
|
247
|
-
hmtAddress: '
|
|
248
|
-
stakingAddress: '
|
|
249
|
-
rewardPoolAddress: '
|
|
250
|
-
kvstoreAddress: '
|
|
251
|
-
subgraphUrl: 'https://
|
|
257
|
+
[enums_1.ChainId.XLAYER]: {
|
|
258
|
+
chainId: enums_1.ChainId.XLAYER,
|
|
259
|
+
title: 'XLayer',
|
|
260
|
+
scanUrl: 'https://www.oklink.com/xlayer',
|
|
261
|
+
factoryAddress: '0x4949C9DFFD83F0D5Ab0AB24C57C4D403D5c20C15',
|
|
262
|
+
hmtAddress: '0x10acbe3b9e6a2ff7f341e5cbf4b6617741ff44aa',
|
|
263
|
+
stakingAddress: '0x01D115E9E8bF0C58318793624CC662a030D07F1D',
|
|
264
|
+
rewardPoolAddress: '0x7ABa5F75b2b530cB0c8927C86591c21dF44f06b6',
|
|
265
|
+
kvstoreAddress: '0x6512d894cc3d3FE93Da9d0420430136fA889FaB9',
|
|
266
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/xlayer/version/latest',
|
|
267
|
+
subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/CrratkbjCraj1BZLgJmck1GGxbMb2Y2iPZiW4Lh5DdcX',
|
|
252
268
|
oldSubgraphUrl: '',
|
|
253
|
-
oldFactoryAddress: '
|
|
269
|
+
oldFactoryAddress: '',
|
|
270
|
+
},
|
|
271
|
+
[enums_1.ChainId.XLAYER_TESTNET]: {
|
|
272
|
+
chainId: enums_1.ChainId.XLAYER_TESTNET,
|
|
273
|
+
title: 'XLayer Testnet',
|
|
274
|
+
scanUrl: 'https://www.okx.com/explorer/xlayer-test',
|
|
275
|
+
factoryAddress: '0x6Cd3ecAD36ee88E9ef3665CF381D9dAE0FE0a32e',
|
|
276
|
+
hmtAddress: '0x792abbcC99c01dbDec49c9fa9A828a186Da45C33',
|
|
277
|
+
stakingAddress: '0x819069fEd50581587fAB9E583b5488fc2D33B7ea',
|
|
278
|
+
rewardPoolAddress: '0x6daccd1f3a68945f8a7ac6d20260953f7a97fae4',
|
|
279
|
+
kvstoreAddress: '0xdE8BE9E3C12E9F546309A429cd88d026a25EaF8C',
|
|
280
|
+
subgraphUrl: 'https://api.studio.thegraph.com/query/74256/xlayer-testnet/version/latest',
|
|
281
|
+
subgraphUrlApiKey: 'https://gateway-testnet-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/subgraphs/id/9zd1LcywWjuSUtde4ofC8oyyzpawPwGUiPsvqTq247xk',
|
|
282
|
+
oldSubgraphUrl: '',
|
|
283
|
+
oldFactoryAddress: '',
|
|
254
284
|
},
|
|
255
285
|
[enums_1.ChainId.LOCALHOST]: {
|
|
256
286
|
chainId: enums_1.ChainId.LOCALHOST,
|
|
@@ -262,6 +292,7 @@ exports.NETWORKS = {
|
|
|
262
292
|
rewardPoolAddress: '0xa513E6E4b8f2a923D98304ec87F64353C4D5C853',
|
|
263
293
|
kvstoreAddress: '0x5FC8d32690cc91D4c39d9d3abcBD16989F875707',
|
|
264
294
|
subgraphUrl: 'http://localhost:8000/subgraphs/name/humanprotocol/localhost',
|
|
295
|
+
subgraphUrlApiKey: '',
|
|
265
296
|
oldSubgraphUrl: '',
|
|
266
297
|
oldFactoryAddress: '',
|
|
267
298
|
},
|
|
@@ -280,3 +311,4 @@ exports.Role = {
|
|
|
280
311
|
ReputationOracle: 'Reputation Oracle',
|
|
281
312
|
RecordingOracle: 'Recording Oracle',
|
|
282
313
|
};
|
|
314
|
+
exports.SUBGRAPH_API_KEY_PLACEHOLDER = '[SUBGRAPH_API_KEY]';
|
package/dist/enums.d.ts
CHANGED
|
@@ -13,9 +13,14 @@ export declare enum ChainId {
|
|
|
13
13
|
MOONBASE_ALPHA = 1287,
|
|
14
14
|
AVALANCHE_TESTNET = 43113,
|
|
15
15
|
AVALANCHE = 43114,
|
|
16
|
-
SKALE = 1273227453,
|
|
17
16
|
CELO = 42220,
|
|
18
17
|
CELO_ALFAJORES = 44787,
|
|
19
|
-
|
|
18
|
+
XLAYER_TESTNET = 195,
|
|
19
|
+
LOCALHOST = 1338,
|
|
20
|
+
XLAYER = 196
|
|
21
|
+
}
|
|
22
|
+
export declare enum OrderDirection {
|
|
23
|
+
ASC = "asc",
|
|
24
|
+
DESC = "desc"
|
|
20
25
|
}
|
|
21
26
|
//# sourceMappingURL=enums.d.ts.map
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,GAAG,KAAK;IACR,OAAO,IAAI;IACX,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,WAAW;IAClB,WAAW,KAAK;IAChB,WAAW,KAAK;IAChB,OAAO,MAAM;IACb,cAAc,QAAQ;IACtB,YAAY,QAAQ;IACpB,QAAQ,OAAO;IACf,cAAc,OAAO;IACrB,iBAAiB,QAAQ;IACzB,SAAS,QAAQ;IACjB,
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,GAAG,KAAK;IACR,OAAO,IAAI;IACX,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,WAAW;IAClB,WAAW,KAAK;IAChB,WAAW,KAAK;IAChB,OAAO,MAAM;IACb,cAAc,QAAQ;IACtB,YAAY,QAAQ;IACpB,QAAQ,OAAO;IACf,cAAc,OAAO;IACrB,iBAAiB,QAAQ;IACzB,SAAS,QAAQ;IACjB,IAAI,QAAQ;IACZ,cAAc,QAAQ;IACtB,cAAc,MAAM;IACpB,SAAS,OAAO;IAChB,MAAM,MAAM;CACb;AAED,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd"}
|
package/dist/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChainId = void 0;
|
|
3
|
+
exports.OrderDirection = exports.ChainId = void 0;
|
|
4
4
|
var ChainId;
|
|
5
5
|
(function (ChainId) {
|
|
6
6
|
ChainId[ChainId["ALL"] = -1] = "ALL";
|
|
@@ -17,8 +17,14 @@ var ChainId;
|
|
|
17
17
|
ChainId[ChainId["MOONBASE_ALPHA"] = 1287] = "MOONBASE_ALPHA";
|
|
18
18
|
ChainId[ChainId["AVALANCHE_TESTNET"] = 43113] = "AVALANCHE_TESTNET";
|
|
19
19
|
ChainId[ChainId["AVALANCHE"] = 43114] = "AVALANCHE";
|
|
20
|
-
ChainId[ChainId["SKALE"] = 1273227453] = "SKALE";
|
|
21
20
|
ChainId[ChainId["CELO"] = 42220] = "CELO";
|
|
22
21
|
ChainId[ChainId["CELO_ALFAJORES"] = 44787] = "CELO_ALFAJORES";
|
|
22
|
+
ChainId[ChainId["XLAYER_TESTNET"] = 195] = "XLAYER_TESTNET";
|
|
23
23
|
ChainId[ChainId["LOCALHOST"] = 1338] = "LOCALHOST";
|
|
24
|
+
ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
|
|
24
25
|
})(ChainId = exports.ChainId || (exports.ChainId = {}));
|
|
26
|
+
var OrderDirection;
|
|
27
|
+
(function (OrderDirection) {
|
|
28
|
+
OrderDirection["ASC"] = "asc";
|
|
29
|
+
OrderDirection["DESC"] = "desc";
|
|
30
|
+
})(OrderDirection = exports.OrderDirection || (exports.OrderDirection = {}));
|
package/dist/error.d.ts
CHANGED
|
@@ -74,6 +74,14 @@ export declare const ErrorInvalidSlasherAddressProvided: Error;
|
|
|
74
74
|
* @constant {Error} - Invalid staker address provided.
|
|
75
75
|
*/
|
|
76
76
|
export declare const ErrorInvalidStakerAddressProvided: Error;
|
|
77
|
+
/**
|
|
78
|
+
* @constant {Error} - Invalid hash provided.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ErrorInvalidHahsProvided: Error;
|
|
81
|
+
/**
|
|
82
|
+
* @constant {Error} - Cannot use both date and block filters simultaneously.
|
|
83
|
+
*/
|
|
84
|
+
export declare const ErrorCannotUseDateAndBlockSimultaneously: Error;
|
|
77
85
|
/**
|
|
78
86
|
* @constant {Error} - Invalid escrow address provided.
|
|
79
87
|
*/
|
|
@@ -199,4 +207,12 @@ export declare class InvalidEthereumAddressError extends Error {
|
|
|
199
207
|
* @constant {Error} - The Hash does not match
|
|
200
208
|
*/
|
|
201
209
|
export declare const ErrorInvalidHash: Error;
|
|
210
|
+
/**
|
|
211
|
+
* @constant {Error} - The Status is not supported
|
|
212
|
+
*/
|
|
213
|
+
export declare const ErrorUnsupportedStatus: Error;
|
|
214
|
+
/**
|
|
215
|
+
* @constant {Error} - The SUBGRAPH_API_KEY is not being provided
|
|
216
|
+
*/
|
|
217
|
+
export declare const WarnSubgraphApiKeyNotProvided = "\"SUBGRAPH_API_KEY\" is not being provided. It might cause issues with the subgraph.";
|
|
202
218
|
//# sourceMappingURL=error.d.ts.map
|
package/dist/error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,OAA2C,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,gCAAgC,OAE5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,OAEvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,OAE1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,OAAgC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,wBAAwB,OAA8B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,2BAA2B,OAAiC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,oBAAoB,OAAoC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,uBAAuB,OAEnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,OAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,wBAAwB,OAAqC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,0CAA0C,OAEtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2CAA2C,OAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yCAAyC,OAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,OAE3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,OAExC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,OAExC,CAAC;AAEF;;GAEG;AACH,eAAO,MA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EG;AACH,eAAO,MAAM,gBAAgB,OAA4B,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,sBAAsB,OAA4C,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,6BAA6B,yFAC4C,CAAC"}
|
package/dist/error.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ErrorInvalidHash = exports.InvalidEthereumAddressError = exports.ContractExecutionError = void 0;
|
|
3
|
+
exports.NumericFault = exports.ReplacementUnderpriced = exports.InvalidArgumentError = exports.EthereumError = exports.ErrorHashIsEmptyString = exports.ErrorLaunchedEventIsNotEmitted = exports.ErrorRecipientAndAmountsMustBeSameLength = exports.ErrorAmountsCannotBeEmptyArray = exports.ErrorEscrowDoesNotHaveEnoughBalance = exports.ErrorAmountMustBeGreaterThanZero = exports.ErrorRecipientCannotBeEmptyArray = exports.ErrorTotalFeeMustBeLessThanHundred = exports.ErrorFeeMustBeBetweenZeroAndHundred = exports.ErrorNoURLprovided = exports.ErrorListOfHandlersCannotBeEmpty = exports.ErrorUrlIsEmptyString = exports.ErrorInvalidUrl = exports.ErrorStorageClientDoesNotExist = exports.ErrorManifestFileDoesNotExist = exports.ErrorTransferEventNotFoundInTransactionLogs = exports.ErrorEscrowAddressIsNotProvidedByFactory = exports.ErrorSigner = exports.ErrorUnsupportedChainID = exports.ErrorProviderDoesNotExist = exports.ErrorHMTokenAmountNotApproved = exports.ErrorFailedToCheckAllowance = exports.ErrorFailedToApproveStakingAmountSignerDoesNotExist = exports.ErrorStakingGetStakers = exports.ErrorInvalidEscrowAddressProvided = exports.ErrorCannotUseDateAndBlockSimultaneously = exports.ErrorInvalidHahsProvided = exports.ErrorInvalidStakerAddressProvided = exports.ErrorInvalidSlasherAddressProvided = exports.ErrorInvalidStakingValueSign = exports.ErrorInvalidStakingValueType = exports.ErrorStakingValueMustBePositive = exports.ErrorInvalidExchangeOracleAddressProvided = exports.ErrorInvalidReputationOracleAddressProvided = exports.ErrorInvalidRecordingOracleAddressProvided = exports.ErrorInvalidTokenAddress = exports.ErrorInvalidAddress = exports.ErrorKVStoreArrayLength = exports.ErrorKVStoreEmptyKey = exports.ErrorStorageFileNotUploaded = exports.ErrorStorageFileNotFound = exports.ErrorStorageBucketNotFound = exports.ErrorStorageCredentialsMissing = exports.ErrorStorageClientNotExists = exports.ErrorStorageClientNotInitialized = exports.ErrorStakingMissing = void 0;
|
|
4
|
+
exports.WarnSubgraphApiKeyNotProvided = exports.ErrorUnsupportedStatus = exports.ErrorInvalidHash = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* @constant {Error} - The Staking contract is missing.
|
|
7
7
|
*/
|
|
@@ -78,6 +78,14 @@ exports.ErrorInvalidSlasherAddressProvided = new Error('Invalid slasher address
|
|
|
78
78
|
* @constant {Error} - Invalid staker address provided.
|
|
79
79
|
*/
|
|
80
80
|
exports.ErrorInvalidStakerAddressProvided = new Error('Invalid staker address provided');
|
|
81
|
+
/**
|
|
82
|
+
* @constant {Error} - Invalid hash provided.
|
|
83
|
+
*/
|
|
84
|
+
exports.ErrorInvalidHahsProvided = new Error('Invalid hash provided');
|
|
85
|
+
/**
|
|
86
|
+
* @constant {Error} - Cannot use both date and block filters simultaneously.
|
|
87
|
+
*/
|
|
88
|
+
exports.ErrorCannotUseDateAndBlockSimultaneously = new Error('Cannot use both date and block filters simultaneously');
|
|
81
89
|
/**
|
|
82
90
|
* @constant {Error} - Invalid escrow address provided.
|
|
83
91
|
*/
|
|
@@ -227,3 +235,11 @@ exports.InvalidEthereumAddressError = InvalidEthereumAddressError;
|
|
|
227
235
|
* @constant {Error} - The Hash does not match
|
|
228
236
|
*/
|
|
229
237
|
exports.ErrorInvalidHash = new Error('Invalid hash');
|
|
238
|
+
/**
|
|
239
|
+
* @constant {Error} - The Status is not supported
|
|
240
|
+
*/
|
|
241
|
+
exports.ErrorUnsupportedStatus = new Error('Unsupported status for query');
|
|
242
|
+
/**
|
|
243
|
+
* @constant {Error} - The SUBGRAPH_API_KEY is not being provided
|
|
244
|
+
*/
|
|
245
|
+
exports.WarnSubgraphApiKeyNotProvided = '"SUBGRAPH_API_KEY" is not being provided. It might cause issues with the subgraph.';
|
package/dist/escrow.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContractRunner, Overrides } from 'ethers';
|
|
2
2
|
import { BaseEthersClient } from './base';
|
|
3
|
-
import { ChainId } from './enums';
|
|
4
|
-
import { EscrowData } from './graphql';
|
|
3
|
+
import { ChainId, OrderDirection } from './enums';
|
|
4
|
+
import { EscrowData, StatusEvent } from './graphql';
|
|
5
5
|
import { IEscrowConfig, IEscrowsFilter } from './interfaces';
|
|
6
6
|
import { EscrowCancel, EscrowStatus, NetworkData } from './types';
|
|
7
7
|
/**
|
|
@@ -693,7 +693,7 @@ export declare class EscrowClient extends BaseEthersClient {
|
|
|
693
693
|
* import { ChainId, EscrowUtils } from '@human-protocol/sdk';
|
|
694
694
|
*
|
|
695
695
|
* const escrowAddresses = new EscrowUtils.getEscrows({
|
|
696
|
-
*
|
|
696
|
+
* network: ChainId.POLYGON_AMOY
|
|
697
697
|
* });
|
|
698
698
|
* ```
|
|
699
699
|
*/
|
|
@@ -706,7 +706,7 @@ export declare class EscrowUtils {
|
|
|
706
706
|
*
|
|
707
707
|
* ```ts
|
|
708
708
|
* interface IEscrowsFilter {
|
|
709
|
-
*
|
|
709
|
+
* chainId: ChainId;
|
|
710
710
|
* launcher?: string;
|
|
711
711
|
* reputationOracle?: string;
|
|
712
712
|
* recordingOracle?: string;
|
|
@@ -715,6 +715,9 @@ export declare class EscrowUtils {
|
|
|
715
715
|
* status?: EscrowStatus;
|
|
716
716
|
* from?: Date;
|
|
717
717
|
* to?: Date;
|
|
718
|
+
* first?: number;
|
|
719
|
+
* skip?: number;
|
|
720
|
+
* orderDirection?: OrderDirection;
|
|
718
721
|
* }
|
|
719
722
|
* ```
|
|
720
723
|
*
|
|
@@ -735,12 +738,19 @@ export declare class EscrowUtils {
|
|
|
735
738
|
* AVALANCHE_TESTNET = 43113,
|
|
736
739
|
* CELO = 42220,
|
|
737
740
|
* CELO_ALFAJORES = 44787,
|
|
738
|
-
*
|
|
741
|
+
* = 1273227453,
|
|
739
742
|
* LOCALHOST = 1338,
|
|
740
743
|
* }
|
|
741
744
|
* ```
|
|
742
745
|
*
|
|
743
746
|
* ```ts
|
|
747
|
+
* enum OrderDirection {
|
|
748
|
+
* ASC = 'asc',
|
|
749
|
+
* DESC = 'desc',
|
|
750
|
+
* }
|
|
751
|
+
* ```
|
|
752
|
+
*
|
|
753
|
+
* ```ts
|
|
744
754
|
* enum EscrowStatus {
|
|
745
755
|
* Launched,
|
|
746
756
|
* Pending,
|
|
@@ -791,7 +801,7 @@ export declare class EscrowUtils {
|
|
|
791
801
|
* status: EscrowStatus.Pending,
|
|
792
802
|
* from: new Date(2023, 4, 8),
|
|
793
803
|
* to: new Date(2023, 5, 8),
|
|
794
|
-
*
|
|
804
|
+
* chainId: ChainId.POLYGON_AMOY
|
|
795
805
|
* };
|
|
796
806
|
* const escrowDatas = await EscrowUtils.getEscrows(filters);
|
|
797
807
|
* ```
|
|
@@ -821,7 +831,6 @@ export declare class EscrowUtils {
|
|
|
821
831
|
* AVALANCHE_TESTNET = 43113,
|
|
822
832
|
* CELO = 42220,
|
|
823
833
|
* CELO_ALFAJORES = 44787,
|
|
824
|
-
* SKALE = 1273227453,
|
|
825
834
|
* LOCALHOST = 1338,
|
|
826
835
|
* }
|
|
827
836
|
* ```
|
|
@@ -867,5 +876,80 @@ export declare class EscrowUtils {
|
|
|
867
876
|
* ```
|
|
868
877
|
*/
|
|
869
878
|
static getEscrow(chainId: ChainId, escrowAddress: string): Promise<EscrowData>;
|
|
879
|
+
/**
|
|
880
|
+
* This function returns the status events for a given set of networks within an optional date range.
|
|
881
|
+
*
|
|
882
|
+
* > This uses Subgraph
|
|
883
|
+
*
|
|
884
|
+
* **Input parameters**
|
|
885
|
+
*
|
|
886
|
+
* ```ts
|
|
887
|
+
* enum ChainId {
|
|
888
|
+
* ALL = -1,
|
|
889
|
+
* MAINNET = 1,
|
|
890
|
+
* RINKEBY = 4,
|
|
891
|
+
* GOERLI = 5,
|
|
892
|
+
* SEPOLIA = 11155111,
|
|
893
|
+
* BSC_MAINNET = 56,
|
|
894
|
+
* BSC_TESTNET = 97,
|
|
895
|
+
* POLYGON = 137,
|
|
896
|
+
* POLYGON_MUMBAI = 80001,
|
|
897
|
+
* POLYGON_AMOY = 80002,
|
|
898
|
+
* MOONBEAM = 1284,
|
|
899
|
+
* MOONBASE_ALPHA = 1287,
|
|
900
|
+
* AVALANCHE = 43114,
|
|
901
|
+
* AVALANCHE_TESTNET = 43113,
|
|
902
|
+
* CELO = 42220,
|
|
903
|
+
* CELO_ALFAJORES = 44787,
|
|
904
|
+
* LOCALHOST = 1338,
|
|
905
|
+
* XLAYER_TESTNET = 195,
|
|
906
|
+
* XLAYER = 196,
|
|
907
|
+
* }
|
|
908
|
+
* ```
|
|
909
|
+
*
|
|
910
|
+
* ```ts
|
|
911
|
+
* enum OrderDirection {
|
|
912
|
+
* ASC = 'asc',
|
|
913
|
+
* DESC = 'desc',
|
|
914
|
+
* }
|
|
915
|
+
* ```
|
|
916
|
+
*
|
|
917
|
+
* ```ts
|
|
918
|
+
* type Status = {
|
|
919
|
+
* escrowAddress: string;
|
|
920
|
+
* timestamp: string;
|
|
921
|
+
* status: string;
|
|
922
|
+
* };
|
|
923
|
+
* ```
|
|
924
|
+
*
|
|
925
|
+
* @param {ChainId} chainId - List of network IDs to query for status events.
|
|
926
|
+
* @param {EscrowStatus[]} [statuses] - Optional array of statuses to query for. If not provided, queries for all statuses.
|
|
927
|
+
* @param {Date} [from] - Optional start date to filter events.
|
|
928
|
+
* @param {Date} [to] - Optional end date to filter events.
|
|
929
|
+
* @param {string} [launcher] - Optional launcher address to filter events. Must be a valid Ethereum address.
|
|
930
|
+
* @param {number} [first] - Optional number of transactions per page. Default is 10.
|
|
931
|
+
* @param {number} [skip] - Optional number of transactions to skip. Default is 0.
|
|
932
|
+
* @param {OrderDirection} [orderDirection] - Optional order of the results. Default is DESC.
|
|
933
|
+
* @returns {Promise<StatusEvent[]>} - Array of status events with their corresponding statuses.
|
|
934
|
+
*
|
|
935
|
+
* **Code example**
|
|
936
|
+
*
|
|
937
|
+
* ```ts
|
|
938
|
+
* import { ChainId, EscrowUtils, EscrowStatus } from '@human-protocol/sdk';
|
|
939
|
+
*
|
|
940
|
+
* (async () => {
|
|
941
|
+
* const fromDate = new Date('2023-01-01');
|
|
942
|
+
* const toDate = new Date('2023-12-31');
|
|
943
|
+
* const statusEvents = await EscrowUtils.getStatusEvents(
|
|
944
|
+
* [ChainId.POLYGON, ChainId.MAINNET],
|
|
945
|
+
* [EscrowStatus.Pending, EscrowStatus.Complete],
|
|
946
|
+
* fromDate,
|
|
947
|
+
* toDate
|
|
948
|
+
* );
|
|
949
|
+
* console.log(statusEvents);
|
|
950
|
+
* })();
|
|
951
|
+
* ```
|
|
952
|
+
*/
|
|
953
|
+
static getStatusEvents(chainId: ChainId, statuses?: EscrowStatus[], from?: Date, to?: Date, launcher?: string, first?: number, skip?: number, orderDirection?: OrderDirection): Promise<StatusEvent[]>;
|
|
870
954
|
}
|
|
871
955
|
//# sourceMappingURL=escrow.d.ts.map
|
package/dist/escrow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escrow.d.ts","sourceRoot":"","sources":["../src/escrow.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAY,SAAS,EAAU,MAAM,QAAQ,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"escrow.d.ts","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