@prosopo/types 0.2.1 → 0.2.4
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/config/config.cjs +2 -2
- package/dist/cjs/contract/index.cjs +0 -1
- package/dist/cjs/contracts/captcha/dist/build-extrinsic/captcha.cjs +339 -0
- package/dist/cjs/contracts/captcha/dist/contract-info/captcha.cjs +6 -0
- package/dist/cjs/contracts/captcha/dist/contracts/captcha.cjs +79 -0
- package/dist/cjs/contracts/captcha/dist/data/captcha.json.cjs +3374 -0
- package/dist/cjs/contracts/captcha/dist/event-data/captcha.json.cjs +3 -0
- package/dist/cjs/contracts/captcha/dist/events/captcha.cjs +23 -0
- package/dist/cjs/contracts/captcha/dist/index.cjs +44 -0
- package/dist/cjs/contracts/captcha/dist/mixed-methods/captcha.cjs +470 -0
- package/dist/cjs/contracts/captcha/dist/query/captcha.cjs +468 -0
- package/dist/cjs/contracts/captcha/dist/shared/utils.cjs +31 -0
- package/dist/cjs/contracts/captcha/dist/tx-sign-and-send/captcha.cjs +426 -0
- package/dist/cjs/contracts/captcha/dist/types-arguments/captcha.cjs +62 -0
- package/dist/cjs/index.cjs +18 -27
- package/dist/cjs/provider/argv.cjs +2 -2
- package/dist/config/config.d.ts +3 -3
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +2 -2
- package/dist/config/config.js.map +1 -1
- package/dist/contract/batch.d.ts +2 -2
- package/dist/contract/batch.d.ts.map +1 -1
- package/dist/contract/index.d.ts +0 -1
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +0 -1
- package/dist/contract/index.js.map +1 -1
- package/dist/datasets/dataset.d.ts +5 -5
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/dataset.js +13 -0
- package/dist/datasets/dataset.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/provider/accounts.d.ts +1 -1
- package/dist/provider/accounts.d.ts.map +1 -1
- package/dist/provider/argv.d.ts +1 -1
- package/dist/provider/argv.d.ts.map +1 -1
- package/dist/provider/argv.js +1 -1
- package/dist/provider/argv.js.map +1 -1
- package/package.json +9 -5
- package/dist/cjs/contract/typechain/captcha/index.cjs +0 -3
- package/dist/cjs/contract/typechain/captcha/types-arguments/captcha.cjs +0 -65
- package/dist/cjs/contract/typechain/captcha/types-arguments/index.cjs +0 -4
- package/dist/cjs/contract/typechain/captcha/types-returns/captcha.cjs +0 -65
- package/dist/cjs/contract/typechain/captcha/types-returns/index.cjs +0 -9
- package/dist/cjs/contract/typechain/index.cjs +0 -2
- package/dist/contract/typechain/captcha/index.d.ts +0 -3
- package/dist/contract/typechain/captcha/index.d.ts.map +0 -1
- package/dist/contract/typechain/captcha/index.js +0 -16
- package/dist/contract/typechain/captcha/index.js.map +0 -1
- package/dist/contract/typechain/captcha/types-arguments/captcha.d.ts +0 -104
- package/dist/contract/typechain/captcha/types-arguments/captcha.d.ts.map +0 -1
- package/dist/contract/typechain/captcha/types-arguments/captcha.js +0 -58
- package/dist/contract/typechain/captcha/types-arguments/captcha.js.map +0 -1
- package/dist/contract/typechain/captcha/types-arguments/index.d.ts +0 -2
- package/dist/contract/typechain/captcha/types-arguments/index.d.ts.map +0 -1
- package/dist/contract/typechain/captcha/types-arguments/index.js +0 -15
- package/dist/contract/typechain/captcha/types-arguments/index.js.map +0 -1
- package/dist/contract/typechain/captcha/types-returns/captcha.d.ts +0 -104
- package/dist/contract/typechain/captcha/types-returns/captcha.d.ts.map +0 -1
- package/dist/contract/typechain/captcha/types-returns/captcha.js +0 -58
- package/dist/contract/typechain/captcha/types-returns/captcha.js.map +0 -1
- package/dist/contract/typechain/captcha/types-returns/index.d.ts +0 -2
- package/dist/contract/typechain/captcha/types-returns/index.d.ts.map +0 -1
- package/dist/contract/typechain/captcha/types-returns/index.js +0 -15
- package/dist/contract/typechain/captcha/types-returns/index.js.map +0 -1
- package/dist/contract/typechain/index.d.ts +0 -2
- package/dist/contract/typechain/index.d.ts.map +0 -1
- package/dist/contract/typechain/index.js +0 -15
- package/dist/contract/typechain/index.js.map +0 -1
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const typechainTypes = require("@727-ventures/typechain-types");
|
|
3
|
+
const utils = require("../shared/utils.cjs");
|
|
4
|
+
const captcha = require("../event-data/captcha.json.cjs");
|
|
5
|
+
class Methods {
|
|
6
|
+
constructor(apiPromise, nativeContract, keyringPair) {
|
|
7
|
+
this.__apiPromise = apiPromise;
|
|
8
|
+
this.__nativeContract = nativeContract;
|
|
9
|
+
this.__keyringPair = keyringPair;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* getGitCommitId
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
getGitCommitId(__options) {
|
|
16
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getGitCommitId", (events) => {
|
|
17
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
18
|
+
}, [], __options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* getAdmin
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
getAdmin(__options) {
|
|
25
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getAdmin", (events) => {
|
|
26
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
27
|
+
}, [], __options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* getPayees
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
getPayees(__options) {
|
|
34
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getPayees", (events) => {
|
|
35
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
36
|
+
}, [], __options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* getDappPayees
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
getDappPayees(__options) {
|
|
43
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getDappPayees", (events) => {
|
|
44
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
45
|
+
}, [], __options);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* getStatuses
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
getStatuses(__options) {
|
|
52
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getStatuses", (events) => {
|
|
53
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
54
|
+
}, [], __options);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* getProviderStakeThreshold
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
getProviderStakeThreshold(__options) {
|
|
61
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getProviderStakeThreshold", (events) => {
|
|
62
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
63
|
+
}, [], __options);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* getDappStakeThreshold
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
getDappStakeThreshold(__options) {
|
|
70
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getDappStakeThreshold", (events) => {
|
|
71
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
72
|
+
}, [], __options);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* getMaxProviderFee
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
getMaxProviderFee(__options) {
|
|
79
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getMaxProviderFee", (events) => {
|
|
80
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
81
|
+
}, [], __options);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* getMinNumActiveProviders
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
getMinNumActiveProviders(__options) {
|
|
88
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getMinNumActiveProviders", (events) => {
|
|
89
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
90
|
+
}, [], __options);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* getBlockTime
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
getBlockTime(__options) {
|
|
97
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getBlockTime", (events) => {
|
|
98
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
99
|
+
}, [], __options);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* getMaxUserHistoryAgeSeconds
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
getMaxUserHistoryAgeSeconds(__options) {
|
|
106
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getMaxUserHistoryAgeSeconds", (events) => {
|
|
107
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
108
|
+
}, [], __options);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* getMaxUserHistoryLen
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
getMaxUserHistoryLen(__options) {
|
|
115
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getMaxUserHistoryLen", (events) => {
|
|
116
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
117
|
+
}, [], __options);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* getMaxUserHistoryAgeBlocks
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
getMaxUserHistoryAgeBlocks(__options) {
|
|
124
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getMaxUserHistoryAgeBlocks", (events) => {
|
|
125
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
126
|
+
}, [], __options);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* providerRegister
|
|
130
|
+
*
|
|
131
|
+
* @param { Array<(number | string | BN)> } url,
|
|
132
|
+
* @param { (number | string | BN) } fee,
|
|
133
|
+
* @param { ArgumentTypes.Payee } payee,
|
|
134
|
+
*/
|
|
135
|
+
providerRegister(url, fee, payee, __options) {
|
|
136
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerRegister", (events) => {
|
|
137
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
138
|
+
}, [url, fee, payee], __options);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* providerUpdate
|
|
142
|
+
*
|
|
143
|
+
* @param { Array<(number | string | BN)> } url,
|
|
144
|
+
* @param { (number | string | BN) } fee,
|
|
145
|
+
* @param { ArgumentTypes.Payee } payee,
|
|
146
|
+
*/
|
|
147
|
+
providerUpdate(url, fee, payee, __options) {
|
|
148
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerUpdate", (events) => {
|
|
149
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
150
|
+
}, [url, fee, payee], __options);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* providerDeactivate
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
providerDeactivate(__options) {
|
|
157
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerDeactivate", (events) => {
|
|
158
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
159
|
+
}, [], __options);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* providerDeregister
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
providerDeregister(__options) {
|
|
166
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerDeregister", (events) => {
|
|
167
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
168
|
+
}, [], __options);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* getProvider
|
|
172
|
+
*
|
|
173
|
+
* @param { ArgumentTypes.AccountId } account,
|
|
174
|
+
*/
|
|
175
|
+
getProvider(account, __options) {
|
|
176
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getProvider", (events) => {
|
|
177
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
178
|
+
}, [account], __options);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* providerFund
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
providerFund(__options) {
|
|
185
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerFund", (events) => {
|
|
186
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
187
|
+
}, [], __options);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* providerSetDataset
|
|
191
|
+
*
|
|
192
|
+
* @param { ArgumentTypes.Hash } datasetId,
|
|
193
|
+
* @param { ArgumentTypes.Hash } datasetIdContent,
|
|
194
|
+
*/
|
|
195
|
+
providerSetDataset(datasetId, datasetIdContent, __options) {
|
|
196
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerSetDataset", (events) => {
|
|
197
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
198
|
+
}, [datasetId, datasetIdContent], __options);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* getDapp
|
|
202
|
+
*
|
|
203
|
+
* @param { ArgumentTypes.AccountId } contract,
|
|
204
|
+
*/
|
|
205
|
+
getDapp(contract, __options) {
|
|
206
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getDapp", (events) => {
|
|
207
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
208
|
+
}, [contract], __options);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* dappRegister
|
|
212
|
+
*
|
|
213
|
+
* @param { ArgumentTypes.AccountId } contract,
|
|
214
|
+
* @param { ArgumentTypes.DappPayee } payee,
|
|
215
|
+
*/
|
|
216
|
+
dappRegister(contract, payee, __options) {
|
|
217
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappRegister", (events) => {
|
|
218
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
219
|
+
}, [contract, payee], __options);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* dappUpdate
|
|
223
|
+
*
|
|
224
|
+
* @param { ArgumentTypes.AccountId } contract,
|
|
225
|
+
* @param { ArgumentTypes.DappPayee } payee,
|
|
226
|
+
* @param { ArgumentTypes.AccountId } owner,
|
|
227
|
+
*/
|
|
228
|
+
dappUpdate(contract, payee, owner, __options) {
|
|
229
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappUpdate", (events) => {
|
|
230
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
231
|
+
}, [contract, payee, owner], __options);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* dappFund
|
|
235
|
+
*
|
|
236
|
+
* @param { ArgumentTypes.AccountId } contract,
|
|
237
|
+
*/
|
|
238
|
+
dappFund(contract, __options) {
|
|
239
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappFund", (events) => {
|
|
240
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
241
|
+
}, [contract], __options);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* dappDeregister
|
|
245
|
+
*
|
|
246
|
+
* @param { ArgumentTypes.AccountId } contract,
|
|
247
|
+
*/
|
|
248
|
+
dappDeregister(contract, __options) {
|
|
249
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappDeregister", (events) => {
|
|
250
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
251
|
+
}, [contract], __options);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* dappDeactivate
|
|
255
|
+
*
|
|
256
|
+
* @param { ArgumentTypes.AccountId } contract,
|
|
257
|
+
*/
|
|
258
|
+
dappDeactivate(contract, __options) {
|
|
259
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappDeactivate", (events) => {
|
|
260
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
261
|
+
}, [contract], __options);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* getUserHistorySummary
|
|
265
|
+
*
|
|
266
|
+
* @param { ArgumentTypes.AccountId } userAccount,
|
|
267
|
+
*/
|
|
268
|
+
getUserHistorySummary(userAccount, __options) {
|
|
269
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getUserHistorySummary", (events) => {
|
|
270
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
271
|
+
}, [userAccount], __options);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* providerCommit
|
|
275
|
+
*
|
|
276
|
+
* @param { ArgumentTypes.Commit } commit,
|
|
277
|
+
*/
|
|
278
|
+
providerCommit(commit, __options) {
|
|
279
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerCommit", (events) => {
|
|
280
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
281
|
+
}, [commit], __options);
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* providerCommitMany
|
|
285
|
+
*
|
|
286
|
+
* @param { Array<ArgumentTypes.Commit> } commits,
|
|
287
|
+
*/
|
|
288
|
+
providerCommitMany(commits, __options) {
|
|
289
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerCommitMany", (events) => {
|
|
290
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
291
|
+
}, [commits], __options);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* dappOperatorIsHumanUser
|
|
295
|
+
*
|
|
296
|
+
* @param { ArgumentTypes.AccountId } userAccount,
|
|
297
|
+
* @param { (number | string | BN) } threshold,
|
|
298
|
+
*/
|
|
299
|
+
dappOperatorIsHumanUser(userAccount, threshold, __options) {
|
|
300
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappOperatorIsHumanUser", (events) => {
|
|
301
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
302
|
+
}, [userAccount, threshold], __options);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* dappOperatorLastCorrectCaptcha
|
|
306
|
+
*
|
|
307
|
+
* @param { ArgumentTypes.AccountId } userAccount,
|
|
308
|
+
*/
|
|
309
|
+
dappOperatorLastCorrectCaptcha(userAccount, __options) {
|
|
310
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappOperatorLastCorrectCaptcha", (events) => {
|
|
311
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
312
|
+
}, [userAccount], __options);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* getCaptchaData
|
|
316
|
+
*
|
|
317
|
+
* @param { ArgumentTypes.Hash } datasetId,
|
|
318
|
+
*/
|
|
319
|
+
getCaptchaData(datasetId, __options) {
|
|
320
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getCaptchaData", (events) => {
|
|
321
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
322
|
+
}, [datasetId], __options);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* getUser
|
|
326
|
+
*
|
|
327
|
+
* @param { ArgumentTypes.AccountId } userAccount,
|
|
328
|
+
*/
|
|
329
|
+
getUser(userAccount, __options) {
|
|
330
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getUser", (events) => {
|
|
331
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
332
|
+
}, [userAccount], __options);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* getCommit
|
|
336
|
+
*
|
|
337
|
+
* @param { ArgumentTypes.Hash } commitId,
|
|
338
|
+
*/
|
|
339
|
+
getCommit(commitId, __options) {
|
|
340
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getCommit", (events) => {
|
|
341
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
342
|
+
}, [commitId], __options);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* listProvidersByAccounts
|
|
346
|
+
*
|
|
347
|
+
* @param { Array<ArgumentTypes.AccountId> } providerAccounts,
|
|
348
|
+
*/
|
|
349
|
+
listProvidersByAccounts(providerAccounts, __options) {
|
|
350
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "listProvidersByAccounts", (events) => {
|
|
351
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
352
|
+
}, [providerAccounts], __options);
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* listProvidersByStatus
|
|
356
|
+
*
|
|
357
|
+
* @param { Array<ArgumentTypes.GovernanceStatus> } statuses,
|
|
358
|
+
*/
|
|
359
|
+
listProvidersByStatus(statuses, __options) {
|
|
360
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "listProvidersByStatus", (events) => {
|
|
361
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
362
|
+
}, [statuses], __options);
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* getRandomActiveProvider
|
|
366
|
+
*
|
|
367
|
+
* @param { ArgumentTypes.AccountId } userAccount,
|
|
368
|
+
* @param { ArgumentTypes.AccountId } dappContract,
|
|
369
|
+
*/
|
|
370
|
+
getRandomActiveProvider(userAccount, dappContract, __options) {
|
|
371
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getRandomActiveProvider", (events) => {
|
|
372
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
373
|
+
}, [userAccount, dappContract], __options);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* getAllProviderAccounts
|
|
377
|
+
*
|
|
378
|
+
*/
|
|
379
|
+
getAllProviderAccounts(__options) {
|
|
380
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getAllProviderAccounts", (events) => {
|
|
381
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
382
|
+
}, [], __options);
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* getRandomNumber
|
|
386
|
+
*
|
|
387
|
+
* @param { (string | number | BN) } len,
|
|
388
|
+
* @param { ArgumentTypes.AccountId } userAccount,
|
|
389
|
+
* @param { ArgumentTypes.AccountId } dappContract,
|
|
390
|
+
*/
|
|
391
|
+
getRandomNumber(len, userAccount, dappContract, __options) {
|
|
392
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "getRandomNumber", (events) => {
|
|
393
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
394
|
+
}, [len, userAccount, dappContract], __options);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* terminate
|
|
398
|
+
*
|
|
399
|
+
*/
|
|
400
|
+
terminate(__options) {
|
|
401
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "terminate", (events) => {
|
|
402
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
403
|
+
}, [], __options);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* withdraw
|
|
407
|
+
*
|
|
408
|
+
* @param { (string | number | BN) } amount,
|
|
409
|
+
*/
|
|
410
|
+
withdraw(amount, __options) {
|
|
411
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "withdraw", (events) => {
|
|
412
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
413
|
+
}, [amount], __options);
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* setCodeHash
|
|
417
|
+
*
|
|
418
|
+
* @param { Array<(number | string | BN)> } codeHash,
|
|
419
|
+
*/
|
|
420
|
+
setCodeHash(codeHash, __options) {
|
|
421
|
+
return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "setCodeHash", (events) => {
|
|
422
|
+
return utils.decodeEvents(events, this.__nativeContract, captcha);
|
|
423
|
+
}, [codeHash], __options);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
module.exports = Methods;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
exports.Error = void 0;
|
|
4
|
+
(function(Error) {
|
|
5
|
+
Error["notAuthorised"] = "NotAuthorised";
|
|
6
|
+
Error["transferFailed"] = "TransferFailed";
|
|
7
|
+
Error["setCodeHashFailed"] = "SetCodeHashFailed";
|
|
8
|
+
Error["invalidDestination"] = "InvalidDestination";
|
|
9
|
+
Error["unknownMessage"] = "UnknownMessage";
|
|
10
|
+
Error["providerAccountExists"] = "ProviderAccountExists";
|
|
11
|
+
Error["providerExists"] = "ProviderExists";
|
|
12
|
+
Error["providerAccountDoesNotExist"] = "ProviderAccountDoesNotExist";
|
|
13
|
+
Error["providerDoesNotExist"] = "ProviderDoesNotExist";
|
|
14
|
+
Error["providerInsufficientFunds"] = "ProviderInsufficientFunds";
|
|
15
|
+
Error["providerInactive"] = "ProviderInactive";
|
|
16
|
+
Error["providerUrlUsed"] = "ProviderUrlUsed";
|
|
17
|
+
Error["dappExists"] = "DappExists";
|
|
18
|
+
Error["dappDoesNotExist"] = "DappDoesNotExist";
|
|
19
|
+
Error["dappInactive"] = "DappInactive";
|
|
20
|
+
Error["dappInsufficientFunds"] = "DappInsufficientFunds";
|
|
21
|
+
Error["captchaDataDoesNotExist"] = "CaptchaDataDoesNotExist";
|
|
22
|
+
Error["commitDoesNotExist"] = "CommitDoesNotExist";
|
|
23
|
+
Error["dappUserDoesNotExist"] = "DappUserDoesNotExist";
|
|
24
|
+
Error["noActiveProviders"] = "NoActiveProviders";
|
|
25
|
+
Error["datasetIdSolutionsSame"] = "DatasetIdSolutionsSame";
|
|
26
|
+
Error["codeNotFound"] = "CodeNotFound";
|
|
27
|
+
Error["unknown"] = "Unknown";
|
|
28
|
+
Error["invalidContract"] = "InvalidContract";
|
|
29
|
+
Error["invalidPayee"] = "InvalidPayee";
|
|
30
|
+
Error["invalidCaptchaStatus"] = "InvalidCaptchaStatus";
|
|
31
|
+
Error["noCorrectCaptcha"] = "NoCorrectCaptcha";
|
|
32
|
+
Error["notEnoughActiveProviders"] = "NotEnoughActiveProviders";
|
|
33
|
+
Error["providerFeeTooHigh"] = "ProviderFeeTooHigh";
|
|
34
|
+
Error["commitAlreadyExists"] = "CommitAlreadyExists";
|
|
35
|
+
Error["notAuthor"] = "NotAuthor";
|
|
36
|
+
})(exports.Error || (exports.Error = {}));
|
|
37
|
+
exports.LangError = void 0;
|
|
38
|
+
(function(LangError) {
|
|
39
|
+
LangError["couldNotReadInput"] = "CouldNotReadInput";
|
|
40
|
+
})(exports.LangError || (exports.LangError = {}));
|
|
41
|
+
exports.Payee = void 0;
|
|
42
|
+
(function(Payee) {
|
|
43
|
+
Payee["provider"] = "Provider";
|
|
44
|
+
Payee["dapp"] = "Dapp";
|
|
45
|
+
})(exports.Payee || (exports.Payee = {}));
|
|
46
|
+
exports.DappPayee = void 0;
|
|
47
|
+
(function(DappPayee) {
|
|
48
|
+
DappPayee["provider"] = "Provider";
|
|
49
|
+
DappPayee["dapp"] = "Dapp";
|
|
50
|
+
DappPayee["any"] = "Any";
|
|
51
|
+
})(exports.DappPayee || (exports.DappPayee = {}));
|
|
52
|
+
exports.GovernanceStatus = void 0;
|
|
53
|
+
(function(GovernanceStatus) {
|
|
54
|
+
GovernanceStatus["active"] = "Active";
|
|
55
|
+
GovernanceStatus["inactive"] = "Inactive";
|
|
56
|
+
})(exports.GovernanceStatus || (exports.GovernanceStatus = {}));
|
|
57
|
+
exports.CaptchaStatus = void 0;
|
|
58
|
+
(function(CaptchaStatus) {
|
|
59
|
+
CaptchaStatus["pending"] = "Pending";
|
|
60
|
+
CaptchaStatus["approved"] = "Approved";
|
|
61
|
+
CaptchaStatus["disapproved"] = "Disapproved";
|
|
62
|
+
})(exports.CaptchaStatus || (exports.CaptchaStatus = {}));
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -7,9 +7,7 @@ require("./provider/index.cjs");
|
|
|
7
7
|
require("./procaptcha/index.cjs");
|
|
8
8
|
const config = require("./config/config.cjs");
|
|
9
9
|
const artifacts = require("./contract/artifacts.cjs");
|
|
10
|
-
const captcha = require("./
|
|
11
|
-
const captcha$1 = require("./contract/typechain/captcha/types-arguments/captcha.cjs");
|
|
12
|
-
const captcha$2 = require("./datasets/captcha.cjs");
|
|
10
|
+
const captcha = require("./datasets/captcha.cjs");
|
|
13
11
|
const dataset = require("./datasets/dataset.cjs");
|
|
14
12
|
const api = require("./provider/api.cjs");
|
|
15
13
|
const scheduler = require("./provider/scheduler.cjs");
|
|
@@ -47,30 +45,23 @@ exports.AbiText = artifacts.AbiText;
|
|
|
47
45
|
exports.AbiTypeSpec = artifacts.AbiTypeSpec;
|
|
48
46
|
exports.AbiTypesSpec = artifacts.AbiTypesSpec;
|
|
49
47
|
exports.AbiVariantSpec = artifacts.AbiVariantSpec;
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.HashedCaptchaItemSchema = captcha$2.HashedCaptchaItemSchema;
|
|
68
|
-
exports.LabelledDataSchema = captcha$2.LabelledDataSchema;
|
|
69
|
-
exports.LabelledItemSchema = captcha$2.LabelledItemSchema;
|
|
70
|
-
exports.LabelsContainerSchema = captcha$2.LabelsContainerSchema;
|
|
71
|
-
exports.MaybeLabelledHashedItemSchema = captcha$2.MaybeLabelledHashedItemSchema;
|
|
72
|
-
exports.SelectAllCaptchaSchema = captcha$2.SelectAllCaptchaSchema;
|
|
73
|
-
exports.SelectAllCaptchaSchemaRaw = captcha$2.SelectAllCaptchaSchemaRaw;
|
|
48
|
+
exports.CaptchaItemSchema = captcha.CaptchaItemSchema;
|
|
49
|
+
exports.CaptchaItemTypes = captcha.CaptchaItemTypes;
|
|
50
|
+
exports.CaptchaSchema = captcha.CaptchaSchema;
|
|
51
|
+
exports.CaptchaSolutionArraySchema = captcha.CaptchaSolutionArraySchema;
|
|
52
|
+
exports.CaptchaSolutionSchema = captcha.CaptchaSolutionSchema;
|
|
53
|
+
exports.CaptchaStates = captcha.CaptchaStates;
|
|
54
|
+
exports.CaptchaTypes = captcha.CaptchaTypes;
|
|
55
|
+
exports.CaptchasContainerSchema = captcha.CaptchasContainerSchema;
|
|
56
|
+
exports.CaptchasSchema = captcha.CaptchasSchema;
|
|
57
|
+
exports.DataSchema = captcha.DataSchema;
|
|
58
|
+
exports.HashedCaptchaItemSchema = captcha.HashedCaptchaItemSchema;
|
|
59
|
+
exports.LabelledDataSchema = captcha.LabelledDataSchema;
|
|
60
|
+
exports.LabelledItemSchema = captcha.LabelledItemSchema;
|
|
61
|
+
exports.LabelsContainerSchema = captcha.LabelsContainerSchema;
|
|
62
|
+
exports.MaybeLabelledHashedItemSchema = captcha.MaybeLabelledHashedItemSchema;
|
|
63
|
+
exports.SelectAllCaptchaSchema = captcha.SelectAllCaptchaSchema;
|
|
64
|
+
exports.SelectAllCaptchaSchemaRaw = captcha.SelectAllCaptchaSchemaRaw;
|
|
74
65
|
exports.DatasetSchema = dataset.DatasetSchema;
|
|
75
66
|
exports.DatasetWithIdsAndTreeSchema = dataset.DatasetWithIdsAndTreeSchema;
|
|
76
67
|
exports.DatasetWithIdsSchema = dataset.DatasetWithIdsSchema;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../
|
|
3
|
+
require("../contracts/captcha/dist/index.cjs");
|
|
4
4
|
const z = require("zod");
|
|
5
|
-
const captcha = require("../
|
|
5
|
+
const captcha = require("../contracts/captcha/dist/types-arguments/captcha.cjs");
|
|
6
6
|
const PayeeSchema = z.z.nativeEnum(captcha.Payee);
|
|
7
7
|
exports.PayeeSchema = PayeeSchema;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -671,7 +671,7 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
671
671
|
numberOfRounds: number;
|
|
672
672
|
seed: number;
|
|
673
673
|
}>>;
|
|
674
|
-
|
|
674
|
+
theme: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
675
675
|
}, "strip", z.ZodTypeAny, {
|
|
676
676
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
677
677
|
defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
|
|
@@ -711,7 +711,7 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
711
711
|
numberOfRounds: number;
|
|
712
712
|
seed: number;
|
|
713
713
|
} | undefined;
|
|
714
|
-
|
|
714
|
+
theme?: "light" | "dark" | undefined;
|
|
715
715
|
}, {
|
|
716
716
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
717
717
|
account: {
|
|
@@ -751,7 +751,7 @@ export declare const ProcaptchaConfigSchema: z.ZodObject<{
|
|
|
751
751
|
numberOfRounds: number;
|
|
752
752
|
seed: number;
|
|
753
753
|
} | undefined;
|
|
754
|
-
|
|
754
|
+
theme?: "light" | "dark" | undefined;
|
|
755
755
|
}>;
|
|
756
756
|
export type ProcaptchaClientConfig = z.infer<typeof ProcaptchaConfigSchema>;
|
|
757
757
|
export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,aAAa,qCAAmC,CAAA;AAE7D,eAAO,MAAM,sBAAsB,sEAAoE,CAAA;AAEvG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAGrE,eAAO,MAAM,kBAAkB,sEAAyB,CAAA;AAExD,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAA;AAEpD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;IAUlB,CAAA;AAEf,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAA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C,OAAO,yBAAyB,CAAC,CAAA;AAE3E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAI3E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
package/dist/config/config.js
CHANGED
|
@@ -99,10 +99,10 @@ export const AccountCreatorConfigSchema = z.object({
|
|
|
99
99
|
numberOfRounds: z.number().positive(),
|
|
100
100
|
seed: z.number().positive(),
|
|
101
101
|
});
|
|
102
|
-
const
|
|
102
|
+
const ThemeType = z.union([z.literal('light'), z.literal('dark')]);
|
|
103
103
|
export const ProcaptchaConfigSchema = ProsopoClientConfigSchema.merge(z.object({
|
|
104
104
|
accountCreator: AccountCreatorConfigSchema.optional(),
|
|
105
|
-
|
|
105
|
+
theme: ThemeType.optional(),
|
|
106
106
|
}));
|
|
107
107
|
export const ProsopoConfigSchema = ProsopoBasicConfigSchema.merge(z.object({
|
|
108
108
|
captchas: ProsopoCaptchaCountConfigSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;AAIvG,gHAAgH;AAChH,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAA;AAIxD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAChC,MAAM,CACH,sBAAsB,EACtB,CAA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E,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAIF,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAElE,MAAM,CAAC,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,KAAK,CACjE,CAAC,CAAC,MAAM,CAAC;IACL,cAAc,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IACrD,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE;CAC9B,CAAC,CACL,CAAA;AAID,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,KAAK,CAC7D,CAAC,CAAC,MAAM,CAAC;IACL,QAAQ,EAAE,+BAA+B;IACzC,gBAAgB,EAAE,kCAAkC;IACpD,WAAW,EAAE,uBAAuB;IACpC,MAAM,EAAE,8BAA8B;CACzC,CAAC,CACL,CAAA"}
|
package/dist/contract/batch.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="bn.js" />
|
|
2
|
-
import { ArgumentTypes } from './typechain/captcha/types-arguments/index.js';
|
|
3
2
|
import { BN } from '@polkadot/util';
|
|
3
|
+
import { Hash } from '@prosopo/captcha-contract';
|
|
4
4
|
import { SubmittableExtrinsic } from '@polkadot/api/types';
|
|
5
5
|
export interface ExtrinsicBatch {
|
|
6
6
|
extrinsics: SubmittableExtrinsic<'promise'>[];
|
|
7
|
-
ids:
|
|
7
|
+
ids: Hash[];
|
|
8
8
|
totalFee: BN;
|
|
9
9
|
totalRefTime: BN;
|
|
10
10
|
totalProofSize: BN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../src/contract/batch.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../src/contract/batch.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAA;IAC7C,GAAG,EAAE,IAAI,EAAE,CAAA;IACX,QAAQ,EAAE,EAAE,CAAA;IACZ,YAAY,EAAE,EAAE,CAAA;IAChB,cAAc,EAAE,EAAE,CAAA;CACrB"}
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contract/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contract/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|