@prosopo/cli 0.2.13 → 0.2.15
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/dist/cjs/cli.cjs +4 -5
- package/dist/cjs/commands/dappRegister.cjs +21 -5
- package/dist/cjs/commands/dappUpdate.cjs +22 -6
- package/dist/cjs/commands/providerDataset.cjs +20 -3
- package/dist/cjs/commands/providerDetails.cjs +19 -2
- package/dist/cjs/commands/providerRegister.cjs +4 -5
- package/dist/cjs/commands/providerSetDataset.cjs +19 -2
- package/dist/cjs/commands/providerUpdate.cjs +25 -9
- package/dist/cjs/commands/validators.cjs +21 -4
- package/dist/cjs/env.cjs +2 -3
- package/dist/cjs/process.env.cjs +4 -4
- package/dist/cjs/prosopo.config.cjs +12 -12
- package/dist/cjs/start.cjs +9 -6
- package/dist/cli.js +4 -19
- package/dist/cli.js.map +1 -1
- package/dist/commands/dappRegister.d.ts.map +1 -1
- package/dist/commands/dappRegister.js +2 -2
- package/dist/commands/dappRegister.js.map +1 -1
- package/dist/commands/dappUpdate.d.ts.map +1 -1
- package/dist/commands/dappUpdate.js +2 -2
- package/dist/commands/dappUpdate.js.map +1 -1
- package/dist/commands/providerDataset.d.ts.map +1 -1
- package/dist/commands/providerDataset.js +2 -4
- package/dist/commands/providerDataset.js.map +1 -1
- package/dist/commands/providerDeregister.js +0 -3
- package/dist/commands/providerDeregister.js.map +1 -1
- package/dist/commands/providerDetails.d.ts.map +1 -1
- package/dist/commands/providerDetails.js +1 -1
- package/dist/commands/providerDetails.js.map +1 -1
- package/dist/commands/providerRegister.js +2 -2
- package/dist/commands/providerRegister.js.map +1 -1
- package/dist/commands/providerSetDataset.d.ts.map +1 -1
- package/dist/commands/providerSetDataset.js +1 -1
- package/dist/commands/providerSetDataset.js.map +1 -1
- package/dist/commands/providerUpdate.d.ts +1 -2
- package/dist/commands/providerUpdate.d.ts.map +1 -1
- package/dist/commands/providerUpdate.js +2 -2
- package/dist/commands/providerUpdate.js.map +1 -1
- package/dist/commands/validators.d.ts +2 -1
- package/dist/commands/validators.d.ts.map +1 -1
- package/dist/commands/validators.js +2 -2
- package/dist/commands/validators.js.map +1 -1
- package/dist/env.js +1 -14
- package/dist/env.js.map +1 -1
- package/dist/files.js +0 -14
- package/dist/files.js.map +1 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +1 -1
- package/dist/process.env.js +7 -7
- package/dist/process.env.js.map +1 -1
- package/dist/prosopo.config.js +14 -27
- package/dist/prosopo.config.js.map +1 -1
- package/dist/start.d.ts +2 -2
- package/dist/start.d.ts.map +1 -1
- package/dist/start.js +9 -20
- package/dist/start.js.map +1 -1
- package/dist/tests/bundle/bundle.test.js +1 -5
- package/dist/tests/bundle/bundle.test.js.map +1 -1
- package/package.json +11 -11
- package/vite.config.ts +1 -1
- package/dist/cjs/contracts/captcha/dist/build-extrinsic/captcha.cjs +0 -339
- package/dist/cjs/contracts/captcha/dist/contract-info/captcha.cjs +0 -6
- package/dist/cjs/contracts/captcha/dist/contracts/captcha.cjs +0 -79
- package/dist/cjs/contracts/captcha/dist/data/captcha.json.cjs +0 -3374
- package/dist/cjs/contracts/captcha/dist/event-data/captcha.json.cjs +0 -3
- package/dist/cjs/contracts/captcha/dist/events/captcha.cjs +0 -23
- package/dist/cjs/contracts/captcha/dist/index.cjs +0 -44
- package/dist/cjs/contracts/captcha/dist/mixed-methods/captcha.cjs +0 -470
- package/dist/cjs/contracts/captcha/dist/query/captcha.cjs +0 -468
- package/dist/cjs/contracts/captcha/dist/shared/utils.cjs +0 -31
- package/dist/cjs/contracts/captcha/dist/tx-sign-and-send/captcha.cjs +0 -426
- package/dist/cjs/contracts/captcha/dist/types-arguments/captcha.cjs +0 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"clean": "tsc --build --clean",
|
|
19
19
|
"build": "tsc --build --verbose",
|
|
20
20
|
"build:cjs": "npx vite --config vite.cjs.config.ts build",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"bundle:dev": "vite build --config vite.config.ts --mode development",
|
|
22
|
+
"bundle:prod": "vite build --config vite.config.ts --mode production",
|
|
23
23
|
"cli": "node ./dist/cli.js",
|
|
24
24
|
"start": "node ./dist/start.js --api",
|
|
25
25
|
"lint": "npx eslint .",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@polkadot/types": "10.10.1",
|
|
31
31
|
"@polkadot/util": "12.5.1",
|
|
32
32
|
"@polkadot/util-crypto": "12.5.1",
|
|
33
|
-
"@prosopo/captcha-contract": "0.2.
|
|
34
|
-
"@prosopo/common": "0.2.
|
|
35
|
-
"@prosopo/contract": "0.2.
|
|
36
|
-
"@prosopo/env": "0.2.
|
|
37
|
-
"@prosopo/provider": "0.2.
|
|
38
|
-
"@prosopo/types": "0.2.
|
|
39
|
-
"@prosopo/util": "0.2.
|
|
33
|
+
"@prosopo/captcha-contract": "0.2.15",
|
|
34
|
+
"@prosopo/common": "0.2.15",
|
|
35
|
+
"@prosopo/contract": "0.2.15",
|
|
36
|
+
"@prosopo/env": "0.2.15",
|
|
37
|
+
"@prosopo/provider": "0.2.15",
|
|
38
|
+
"@prosopo/types": "0.2.15",
|
|
39
|
+
"@prosopo/util": "0.2.15",
|
|
40
40
|
"cors": "^2.8.5",
|
|
41
41
|
"cron-parser": "^4.9.0",
|
|
42
42
|
"dotenv": "^16.0.1",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"express": "^4.18.2",
|
|
49
49
|
"vite": "^4.5.0",
|
|
50
50
|
"vitest": "^0.34.6",
|
|
51
|
-
"@prosopo/config": "0.2.
|
|
51
|
+
"@prosopo/config": "0.2.15",
|
|
52
52
|
"@types/cors": "^2.8.14",
|
|
53
53
|
"tslib": "2.6.2",
|
|
54
54
|
"typescript": "5.1.6"
|
package/vite.config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as path from 'path'
|
|
2
2
|
import { ViteBackendConfig } from '@prosopo/config'
|
|
3
3
|
import { defineConfig } from 'vite'
|
|
4
|
-
import { loadEnv } from '
|
|
4
|
+
import { loadEnv } from '@prosopo/cli'
|
|
5
5
|
import { version } from './package.json'
|
|
6
6
|
|
|
7
7
|
// load env using our util because vite loadEnv is not working for .env.development
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const typechainTypes = require("@727-ventures/typechain-types");
|
|
3
|
-
class Methods {
|
|
4
|
-
constructor(nativeContract, apiPromise) {
|
|
5
|
-
this.__nativeContract = nativeContract;
|
|
6
|
-
this.__apiPromise = apiPromise;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* getGitCommitId
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
getGitCommitId(__options) {
|
|
13
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getGitCommitId", [], __options);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* getAdmin
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
getAdmin(__options) {
|
|
20
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getAdmin", [], __options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* getPayees
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
getPayees(__options) {
|
|
27
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getPayees", [], __options);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* getDappPayees
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
getDappPayees(__options) {
|
|
34
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getDappPayees", [], __options);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* getStatuses
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
getStatuses(__options) {
|
|
41
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getStatuses", [], __options);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* getProviderStakeThreshold
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
getProviderStakeThreshold(__options) {
|
|
48
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getProviderStakeThreshold", [], __options);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* getDappStakeThreshold
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
getDappStakeThreshold(__options) {
|
|
55
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getDappStakeThreshold", [], __options);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* getMaxProviderFee
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
getMaxProviderFee(__options) {
|
|
62
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getMaxProviderFee", [], __options);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* getMinNumActiveProviders
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
getMinNumActiveProviders(__options) {
|
|
69
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getMinNumActiveProviders", [], __options);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* getBlockTime
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
getBlockTime(__options) {
|
|
76
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getBlockTime", [], __options);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* getMaxUserHistoryAgeSeconds
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
getMaxUserHistoryAgeSeconds(__options) {
|
|
83
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getMaxUserHistoryAgeSeconds", [], __options);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* getMaxUserHistoryLen
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
getMaxUserHistoryLen(__options) {
|
|
90
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getMaxUserHistoryLen", [], __options);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* getMaxUserHistoryAgeBlocks
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
getMaxUserHistoryAgeBlocks(__options) {
|
|
97
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getMaxUserHistoryAgeBlocks", [], __options);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* providerRegister
|
|
101
|
-
*
|
|
102
|
-
* @param { Array<(number | string | BN)> } url,
|
|
103
|
-
* @param { (number | string | BN) } fee,
|
|
104
|
-
* @param { ArgumentTypes.Payee } payee,
|
|
105
|
-
*/
|
|
106
|
-
providerRegister(url, fee, payee, __options) {
|
|
107
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerRegister", [url, fee, payee], __options);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* providerUpdate
|
|
111
|
-
*
|
|
112
|
-
* @param { Array<(number | string | BN)> } url,
|
|
113
|
-
* @param { (number | string | BN) } fee,
|
|
114
|
-
* @param { ArgumentTypes.Payee } payee,
|
|
115
|
-
*/
|
|
116
|
-
providerUpdate(url, fee, payee, __options) {
|
|
117
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerUpdate", [url, fee, payee], __options);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* providerDeactivate
|
|
121
|
-
*
|
|
122
|
-
*/
|
|
123
|
-
providerDeactivate(__options) {
|
|
124
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerDeactivate", [], __options);
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* providerDeregister
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
providerDeregister(__options) {
|
|
131
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerDeregister", [], __options);
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* getProvider
|
|
135
|
-
*
|
|
136
|
-
* @param { ArgumentTypes.AccountId } account,
|
|
137
|
-
*/
|
|
138
|
-
getProvider(account, __options) {
|
|
139
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getProvider", [account], __options);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* providerFund
|
|
143
|
-
*
|
|
144
|
-
*/
|
|
145
|
-
providerFund(__options) {
|
|
146
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerFund", [], __options);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* providerSetDataset
|
|
150
|
-
*
|
|
151
|
-
* @param { ArgumentTypes.Hash } datasetId,
|
|
152
|
-
* @param { ArgumentTypes.Hash } datasetIdContent,
|
|
153
|
-
*/
|
|
154
|
-
providerSetDataset(datasetId, datasetIdContent, __options) {
|
|
155
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerSetDataset", [datasetId, datasetIdContent], __options);
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* getDapp
|
|
159
|
-
*
|
|
160
|
-
* @param { ArgumentTypes.AccountId } contract,
|
|
161
|
-
*/
|
|
162
|
-
getDapp(contract, __options) {
|
|
163
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getDapp", [contract], __options);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* dappRegister
|
|
167
|
-
*
|
|
168
|
-
* @param { ArgumentTypes.AccountId } contract,
|
|
169
|
-
* @param { ArgumentTypes.DappPayee } payee,
|
|
170
|
-
*/
|
|
171
|
-
dappRegister(contract, payee, __options) {
|
|
172
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappRegister", [contract, payee], __options);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* dappUpdate
|
|
176
|
-
*
|
|
177
|
-
* @param { ArgumentTypes.AccountId } contract,
|
|
178
|
-
* @param { ArgumentTypes.DappPayee } payee,
|
|
179
|
-
* @param { ArgumentTypes.AccountId } owner,
|
|
180
|
-
*/
|
|
181
|
-
dappUpdate(contract, payee, owner, __options) {
|
|
182
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappUpdate", [contract, payee, owner], __options);
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* dappFund
|
|
186
|
-
*
|
|
187
|
-
* @param { ArgumentTypes.AccountId } contract,
|
|
188
|
-
*/
|
|
189
|
-
dappFund(contract, __options) {
|
|
190
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappFund", [contract], __options);
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* dappDeregister
|
|
194
|
-
*
|
|
195
|
-
* @param { ArgumentTypes.AccountId } contract,
|
|
196
|
-
*/
|
|
197
|
-
dappDeregister(contract, __options) {
|
|
198
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappDeregister", [contract], __options);
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* dappDeactivate
|
|
202
|
-
*
|
|
203
|
-
* @param { ArgumentTypes.AccountId } contract,
|
|
204
|
-
*/
|
|
205
|
-
dappDeactivate(contract, __options) {
|
|
206
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappDeactivate", [contract], __options);
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* getUserHistorySummary
|
|
210
|
-
*
|
|
211
|
-
* @param { ArgumentTypes.AccountId } userAccount,
|
|
212
|
-
*/
|
|
213
|
-
getUserHistorySummary(userAccount, __options) {
|
|
214
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getUserHistorySummary", [userAccount], __options);
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* providerCommit
|
|
218
|
-
*
|
|
219
|
-
* @param { ArgumentTypes.Commit } commit,
|
|
220
|
-
*/
|
|
221
|
-
providerCommit(commit, __options) {
|
|
222
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerCommit", [commit], __options);
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* providerCommitMany
|
|
226
|
-
*
|
|
227
|
-
* @param { Array<ArgumentTypes.Commit> } commits,
|
|
228
|
-
*/
|
|
229
|
-
providerCommitMany(commits, __options) {
|
|
230
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "providerCommitMany", [commits], __options);
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* dappOperatorIsHumanUser
|
|
234
|
-
*
|
|
235
|
-
* @param { ArgumentTypes.AccountId } userAccount,
|
|
236
|
-
* @param { (number | string | BN) } threshold,
|
|
237
|
-
*/
|
|
238
|
-
dappOperatorIsHumanUser(userAccount, threshold, __options) {
|
|
239
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappOperatorIsHumanUser", [userAccount, threshold], __options);
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* dappOperatorLastCorrectCaptcha
|
|
243
|
-
*
|
|
244
|
-
* @param { ArgumentTypes.AccountId } userAccount,
|
|
245
|
-
*/
|
|
246
|
-
dappOperatorLastCorrectCaptcha(userAccount, __options) {
|
|
247
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "dappOperatorLastCorrectCaptcha", [userAccount], __options);
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* getCaptchaData
|
|
251
|
-
*
|
|
252
|
-
* @param { ArgumentTypes.Hash } datasetId,
|
|
253
|
-
*/
|
|
254
|
-
getCaptchaData(datasetId, __options) {
|
|
255
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getCaptchaData", [datasetId], __options);
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* getUser
|
|
259
|
-
*
|
|
260
|
-
* @param { ArgumentTypes.AccountId } userAccount,
|
|
261
|
-
*/
|
|
262
|
-
getUser(userAccount, __options) {
|
|
263
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getUser", [userAccount], __options);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* getCommit
|
|
267
|
-
*
|
|
268
|
-
* @param { ArgumentTypes.Hash } commitId,
|
|
269
|
-
*/
|
|
270
|
-
getCommit(commitId, __options) {
|
|
271
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getCommit", [commitId], __options);
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* listProvidersByAccounts
|
|
275
|
-
*
|
|
276
|
-
* @param { Array<ArgumentTypes.AccountId> } providerAccounts,
|
|
277
|
-
*/
|
|
278
|
-
listProvidersByAccounts(providerAccounts, __options) {
|
|
279
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "listProvidersByAccounts", [providerAccounts], __options);
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* listProvidersByStatus
|
|
283
|
-
*
|
|
284
|
-
* @param { Array<ArgumentTypes.GovernanceStatus> } statuses,
|
|
285
|
-
*/
|
|
286
|
-
listProvidersByStatus(statuses, __options) {
|
|
287
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "listProvidersByStatus", [statuses], __options);
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* getRandomActiveProvider
|
|
291
|
-
*
|
|
292
|
-
* @param { ArgumentTypes.AccountId } userAccount,
|
|
293
|
-
* @param { ArgumentTypes.AccountId } dappContract,
|
|
294
|
-
*/
|
|
295
|
-
getRandomActiveProvider(userAccount, dappContract, __options) {
|
|
296
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getRandomActiveProvider", [userAccount, dappContract], __options);
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* getAllProviderAccounts
|
|
300
|
-
*
|
|
301
|
-
*/
|
|
302
|
-
getAllProviderAccounts(__options) {
|
|
303
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getAllProviderAccounts", [], __options);
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* getRandomNumber
|
|
307
|
-
*
|
|
308
|
-
* @param { (string | number | BN) } len,
|
|
309
|
-
* @param { ArgumentTypes.AccountId } userAccount,
|
|
310
|
-
* @param { ArgumentTypes.AccountId } dappContract,
|
|
311
|
-
*/
|
|
312
|
-
getRandomNumber(len, userAccount, dappContract, __options) {
|
|
313
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "getRandomNumber", [len, userAccount, dappContract], __options);
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* terminate
|
|
317
|
-
*
|
|
318
|
-
*/
|
|
319
|
-
terminate(__options) {
|
|
320
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "terminate", [], __options);
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* withdraw
|
|
324
|
-
*
|
|
325
|
-
* @param { (string | number | BN) } amount,
|
|
326
|
-
*/
|
|
327
|
-
withdraw(amount, __options) {
|
|
328
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "withdraw", [amount], __options);
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* setCodeHash
|
|
332
|
-
*
|
|
333
|
-
* @param { Array<(number | string | BN)> } codeHash,
|
|
334
|
-
*/
|
|
335
|
-
setCodeHash(codeHash, __options) {
|
|
336
|
-
return typechainTypes.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "setCodeHash", [codeHash], __options);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
module.exports = Methods;
|