@prosopo/types-database 0.2.13 → 0.2.14

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.
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const EVENT_DATA_TYPE_DESCRIPTIONS = {};
3
- module.exports = EVENT_DATA_TYPE_DESCRIPTIONS;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- class EventsClass {
3
- constructor(nativeContract, api) {
4
- this.__nativeContract = nativeContract;
5
- this.__api = api;
6
- }
7
- __subscribeOnEvent(callback, filter = () => true) {
8
- return this.__api.query.system.events((events) => {
9
- events.forEach((record) => {
10
- const { event } = record;
11
- if (event.method == "ContractEmitted") {
12
- const [address, data] = record.event.data;
13
- if (address.toString() === this.__nativeContract.address.toString()) {
14
- const { args, event: event2 } = this.__nativeContract.abi.decodeEvent(data);
15
- if (filter(event2.identifier.toString()))
16
- callback(args, event2);
17
- }
18
- }
19
- });
20
- });
21
- }
22
- }
23
- module.exports = EventsClass;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const captcha = require("./build-extrinsic/captcha.cjs");
4
- const captcha$1 = require("./contract-info/captcha.cjs");
5
- const captcha$2 = require("./contracts/captcha.cjs");
6
- const captcha$3 = require("./mixed-methods/captcha.cjs");
7
- const captcha$4 = require("./query/captcha.cjs");
8
- const captcha$5 = require("./tx-sign-and-send/captcha.cjs");
9
- const utils = require("./shared/utils.cjs");
10
- const captcha$6 = require("./types-arguments/captcha.cjs");
11
- exports.Extrinsics = captcha;
12
- exports.ContractAbi = captcha$1.ContractAbi;
13
- exports.ContractFile = captcha$1.ContractFile;
14
- exports.Contract = captcha$2;
15
- exports.Methods = captcha$3;
16
- exports.Query = captcha$4;
17
- exports.Tx = captcha$5;
18
- exports.decodeEvents = utils.decodeEvents;
19
- exports.getEventTypeDescription = utils.getEventTypeDescription;
20
- exports.getTypeDescription = utils.getTypeDescription;
21
- Object.defineProperty(exports, "CaptchaStatus", {
22
- enumerable: true,
23
- get: () => captcha$6.CaptchaStatus
24
- });
25
- Object.defineProperty(exports, "DappPayee", {
26
- enumerable: true,
27
- get: () => captcha$6.DappPayee
28
- });
29
- Object.defineProperty(exports, "Error", {
30
- enumerable: true,
31
- get: () => captcha$6.Error
32
- });
33
- Object.defineProperty(exports, "GovernanceStatus", {
34
- enumerable: true,
35
- get: () => captcha$6.GovernanceStatus
36
- });
37
- Object.defineProperty(exports, "LangError", {
38
- enumerable: true,
39
- get: () => captcha$6.LangError
40
- });
41
- Object.defineProperty(exports, "Payee", {
42
- enumerable: true,
43
- get: () => captcha$6.Payee
44
- });
@@ -1,470 +0,0 @@
1
- "use strict";
2
- const typechainTypes = require("@727-ventures/typechain-types");
3
- const utils = require("../shared/utils.cjs");
4
- const captcha = require("../data/captcha.json.cjs");
5
- const captcha$1 = require("../event-data/captcha.json.cjs");
6
- class Methods {
7
- constructor(apiPromise, nativeContract, keyringPair) {
8
- this.__apiPromise = apiPromise;
9
- this.__nativeContract = nativeContract;
10
- this.__keyringPair = keyringPair;
11
- this.__callerAddress = keyringPair.address;
12
- }
13
- /**
14
- * getGitCommitId
15
- *
16
- * @returns { Result<Array<number>, ReturnTypes.LangError> }
17
- */
18
- getGitCommitId(__options) {
19
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getGitCommitId", [], __options, (result) => {
20
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(16, captcha));
21
- });
22
- }
23
- /**
24
- * getAdmin
25
- *
26
- * @returns { Result<ReturnTypes.AccountId, ReturnTypes.LangError> }
27
- */
28
- getAdmin(__options) {
29
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getAdmin", [], __options, (result) => {
30
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(18, captcha));
31
- });
32
- }
33
- /**
34
- * getPayees
35
- *
36
- * @returns { Result<Array<ReturnTypes.Payee>, ReturnTypes.LangError> }
37
- */
38
- getPayees(__options) {
39
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getPayees", [], __options, (result) => {
40
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(19, captcha));
41
- });
42
- }
43
- /**
44
- * getDappPayees
45
- *
46
- * @returns { Result<Array<ReturnTypes.DappPayee>, ReturnTypes.LangError> }
47
- */
48
- getDappPayees(__options) {
49
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getDappPayees", [], __options, (result) => {
50
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(22, captcha));
51
- });
52
- }
53
- /**
54
- * getStatuses
55
- *
56
- * @returns { Result<Array<ReturnTypes.GovernanceStatus>, ReturnTypes.LangError> }
57
- */
58
- getStatuses(__options) {
59
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getStatuses", [], __options, (result) => {
60
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(25, captcha));
61
- });
62
- }
63
- /**
64
- * getProviderStakeThreshold
65
- *
66
- * @returns { Result<ReturnNumber, ReturnTypes.LangError> }
67
- */
68
- getProviderStakeThreshold(__options) {
69
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getProviderStakeThreshold", [], __options, (result) => {
70
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(28, captcha));
71
- });
72
- }
73
- /**
74
- * getDappStakeThreshold
75
- *
76
- * @returns { Result<ReturnNumber, ReturnTypes.LangError> }
77
- */
78
- getDappStakeThreshold(__options) {
79
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getDappStakeThreshold", [], __options, (result) => {
80
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(28, captcha));
81
- });
82
- }
83
- /**
84
- * getMaxProviderFee
85
- *
86
- * @returns { Result<number, ReturnTypes.LangError> }
87
- */
88
- getMaxProviderFee(__options) {
89
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getMaxProviderFee", [], __options, (result) => {
90
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(29, captcha));
91
- });
92
- }
93
- /**
94
- * getMinNumActiveProviders
95
- *
96
- * @returns { Result<number, ReturnTypes.LangError> }
97
- */
98
- getMinNumActiveProviders(__options) {
99
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getMinNumActiveProviders", [], __options, (result) => {
100
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(30, captcha));
101
- });
102
- }
103
- /**
104
- * getBlockTime
105
- *
106
- * @returns { Result<number, ReturnTypes.LangError> }
107
- */
108
- getBlockTime(__options) {
109
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getBlockTime", [], __options, (result) => {
110
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(30, captcha));
111
- });
112
- }
113
- /**
114
- * getMaxUserHistoryAgeSeconds
115
- *
116
- * @returns { Result<number, ReturnTypes.LangError> }
117
- */
118
- getMaxUserHistoryAgeSeconds(__options) {
119
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getMaxUserHistoryAgeSeconds", [], __options, (result) => {
120
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(29, captcha));
121
- });
122
- }
123
- /**
124
- * getMaxUserHistoryLen
125
- *
126
- * @returns { Result<number, ReturnTypes.LangError> }
127
- */
128
- getMaxUserHistoryLen(__options) {
129
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getMaxUserHistoryLen", [], __options, (result) => {
130
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(30, captcha));
131
- });
132
- }
133
- /**
134
- * getMaxUserHistoryAgeBlocks
135
- *
136
- * @returns { Result<number, ReturnTypes.LangError> }
137
- */
138
- getMaxUserHistoryAgeBlocks(__options) {
139
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getMaxUserHistoryAgeBlocks", [], __options, (result) => {
140
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(29, captcha));
141
- });
142
- }
143
- /**
144
- * providerRegister
145
- *
146
- * @param { Array<(number | string | BN)> } url,
147
- * @param { (number | string | BN) } fee,
148
- * @param { ArgumentTypes.Payee } payee,
149
- * @returns { void }
150
- */
151
- providerRegister(url, fee, payee, __options) {
152
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerRegister", (events) => {
153
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
154
- }, [url, fee, payee], __options);
155
- }
156
- /**
157
- * providerUpdate
158
- *
159
- * @param { Array<(number | string | BN)> } url,
160
- * @param { (number | string | BN) } fee,
161
- * @param { ArgumentTypes.Payee } payee,
162
- * @returns { void }
163
- */
164
- providerUpdate(url, fee, payee, __options) {
165
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerUpdate", (events) => {
166
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
167
- }, [url, fee, payee], __options);
168
- }
169
- /**
170
- * providerDeactivate
171
- *
172
- * @returns { void }
173
- */
174
- providerDeactivate(__options) {
175
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerDeactivate", (events) => {
176
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
177
- }, [], __options);
178
- }
179
- /**
180
- * providerDeregister
181
- *
182
- * @returns { void }
183
- */
184
- providerDeregister(__options) {
185
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerDeregister", (events) => {
186
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
187
- }, [], __options);
188
- }
189
- /**
190
- * getProvider
191
- *
192
- * @param { ArgumentTypes.AccountId } account,
193
- * @returns { Result<Result<ReturnTypes.Provider, ReturnTypes.Error>, ReturnTypes.LangError> }
194
- */
195
- getProvider(account, __options) {
196
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getProvider", [account], __options, (result) => {
197
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(32, captcha));
198
- });
199
- }
200
- /**
201
- * providerFund
202
- *
203
- * @returns { void }
204
- */
205
- providerFund(__options) {
206
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerFund", (events) => {
207
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
208
- }, [], __options);
209
- }
210
- /**
211
- * providerSetDataset
212
- *
213
- * @param { ArgumentTypes.Hash } datasetId,
214
- * @param { ArgumentTypes.Hash } datasetIdContent,
215
- * @returns { void }
216
- */
217
- providerSetDataset(datasetId, datasetIdContent, __options) {
218
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerSetDataset", (events) => {
219
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
220
- }, [datasetId, datasetIdContent], __options);
221
- }
222
- /**
223
- * getDapp
224
- *
225
- * @param { ArgumentTypes.AccountId } contract,
226
- * @returns { Result<Result<ReturnTypes.Dapp, ReturnTypes.Error>, ReturnTypes.LangError> }
227
- */
228
- getDapp(contract, __options) {
229
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getDapp", [contract], __options, (result) => {
230
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(35, captcha));
231
- });
232
- }
233
- /**
234
- * dappRegister
235
- *
236
- * @param { ArgumentTypes.AccountId } contract,
237
- * @param { ArgumentTypes.DappPayee } payee,
238
- * @returns { void }
239
- */
240
- dappRegister(contract, payee, __options) {
241
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappRegister", (events) => {
242
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
243
- }, [contract, payee], __options);
244
- }
245
- /**
246
- * dappUpdate
247
- *
248
- * @param { ArgumentTypes.AccountId } contract,
249
- * @param { ArgumentTypes.DappPayee } payee,
250
- * @param { ArgumentTypes.AccountId } owner,
251
- * @returns { void }
252
- */
253
- dappUpdate(contract, payee, owner, __options) {
254
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappUpdate", (events) => {
255
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
256
- }, [contract, payee, owner], __options);
257
- }
258
- /**
259
- * dappFund
260
- *
261
- * @param { ArgumentTypes.AccountId } contract,
262
- * @returns { void }
263
- */
264
- dappFund(contract, __options) {
265
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappFund", (events) => {
266
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
267
- }, [contract], __options);
268
- }
269
- /**
270
- * dappDeregister
271
- *
272
- * @param { ArgumentTypes.AccountId } contract,
273
- * @returns { void }
274
- */
275
- dappDeregister(contract, __options) {
276
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappDeregister", (events) => {
277
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
278
- }, [contract], __options);
279
- }
280
- /**
281
- * dappDeactivate
282
- *
283
- * @param { ArgumentTypes.AccountId } contract,
284
- * @returns { void }
285
- */
286
- dappDeactivate(contract, __options) {
287
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "dappDeactivate", (events) => {
288
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
289
- }, [contract], __options);
290
- }
291
- /**
292
- * getUserHistorySummary
293
- *
294
- * @param { ArgumentTypes.AccountId } userAccount,
295
- * @returns { Result<Result<ReturnTypes.UserHistorySummary, ReturnTypes.Error>, ReturnTypes.LangError> }
296
- */
297
- getUserHistorySummary(userAccount, __options) {
298
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getUserHistorySummary", [userAccount], __options, (result) => {
299
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(38, captcha));
300
- });
301
- }
302
- /**
303
- * providerCommit
304
- *
305
- * @param { ArgumentTypes.Commit } commit,
306
- * @returns { void }
307
- */
308
- providerCommit(commit, __options) {
309
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerCommit", (events) => {
310
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
311
- }, [commit], __options);
312
- }
313
- /**
314
- * providerCommitMany
315
- *
316
- * @param { Array<ArgumentTypes.Commit> } commits,
317
- * @returns { void }
318
- */
319
- providerCommitMany(commits, __options) {
320
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "providerCommitMany", (events) => {
321
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
322
- }, [commits], __options);
323
- }
324
- /**
325
- * dappOperatorIsHumanUser
326
- *
327
- * @param { ArgumentTypes.AccountId } userAccount,
328
- * @param { (number | string | BN) } threshold,
329
- * @returns { Result<Result<boolean, ReturnTypes.Error>, ReturnTypes.LangError> }
330
- */
331
- dappOperatorIsHumanUser(userAccount, threshold, __options) {
332
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "dappOperatorIsHumanUser", [userAccount, threshold], __options, (result) => {
333
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(45, captcha));
334
- });
335
- }
336
- /**
337
- * dappOperatorLastCorrectCaptcha
338
- *
339
- * @param { ArgumentTypes.AccountId } userAccount,
340
- * @returns { Result<Result<ReturnTypes.LastCorrectCaptcha, ReturnTypes.Error>, ReturnTypes.LangError> }
341
- */
342
- dappOperatorLastCorrectCaptcha(userAccount, __options) {
343
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "dappOperatorLastCorrectCaptcha", [userAccount], __options, (result) => {
344
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(48, captcha));
345
- });
346
- }
347
- /**
348
- * getCaptchaData
349
- *
350
- * @param { ArgumentTypes.Hash } datasetId,
351
- * @returns { Result<Result<ReturnTypes.CaptchaData, ReturnTypes.Error>, ReturnTypes.LangError> }
352
- */
353
- getCaptchaData(datasetId, __options) {
354
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getCaptchaData", [datasetId], __options, (result) => {
355
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(51, captcha));
356
- });
357
- }
358
- /**
359
- * getUser
360
- *
361
- * @param { ArgumentTypes.AccountId } userAccount,
362
- * @returns { Result<Result<ReturnTypes.User, ReturnTypes.Error>, ReturnTypes.LangError> }
363
- */
364
- getUser(userAccount, __options) {
365
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getUser", [userAccount], __options, (result) => {
366
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(54, captcha));
367
- });
368
- }
369
- /**
370
- * getCommit
371
- *
372
- * @param { ArgumentTypes.Hash } commitId,
373
- * @returns { Result<Result<ReturnTypes.Commit, ReturnTypes.Error>, ReturnTypes.LangError> }
374
- */
375
- getCommit(commitId, __options) {
376
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getCommit", [commitId], __options, (result) => {
377
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(57, captcha));
378
- });
379
- }
380
- /**
381
- * listProvidersByAccounts
382
- *
383
- * @param { Array<ArgumentTypes.AccountId> } providerAccounts,
384
- * @returns { Result<Result<Array<ReturnTypes.Provider>, ReturnTypes.Error>, ReturnTypes.LangError> }
385
- */
386
- listProvidersByAccounts(providerAccounts, __options) {
387
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "listProvidersByAccounts", [providerAccounts], __options, (result) => {
388
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(59, captcha));
389
- });
390
- }
391
- /**
392
- * listProvidersByStatus
393
- *
394
- * @param { Array<ArgumentTypes.GovernanceStatus> } statuses,
395
- * @returns { Result<Result<Array<ReturnTypes.Provider>, ReturnTypes.Error>, ReturnTypes.LangError> }
396
- */
397
- listProvidersByStatus(statuses, __options) {
398
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "listProvidersByStatus", [statuses], __options, (result) => {
399
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(59, captcha));
400
- });
401
- }
402
- /**
403
- * getRandomActiveProvider
404
- *
405
- * @param { ArgumentTypes.AccountId } userAccount,
406
- * @param { ArgumentTypes.AccountId } dappContract,
407
- * @returns { Result<Result<ReturnTypes.RandomProvider, ReturnTypes.Error>, ReturnTypes.LangError> }
408
- */
409
- getRandomActiveProvider(userAccount, dappContract, __options) {
410
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getRandomActiveProvider", [userAccount, dappContract], __options, (result) => {
411
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(62, captcha));
412
- });
413
- }
414
- /**
415
- * getAllProviderAccounts
416
- *
417
- * @returns { Result<Result<Array<ReturnTypes.AccountId>, ReturnTypes.Error>, ReturnTypes.LangError> }
418
- */
419
- getAllProviderAccounts(__options) {
420
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getAllProviderAccounts", [], __options, (result) => {
421
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(65, captcha));
422
- });
423
- }
424
- /**
425
- * getRandomNumber
426
- *
427
- * @param { (string | number | BN) } len,
428
- * @param { ArgumentTypes.AccountId } userAccount,
429
- * @param { ArgumentTypes.AccountId } dappContract,
430
- * @returns { Result<ReturnNumber, ReturnTypes.LangError> }
431
- */
432
- getRandomNumber(len, userAccount, dappContract, __options) {
433
- return typechainTypes.queryOkJSON(this.__apiPromise, this.__nativeContract, this.__callerAddress, "getRandomNumber", [len, userAccount, dappContract], __options, (result) => {
434
- return typechainTypes.handleReturnType(result, utils.getTypeDescription(28, captcha));
435
- });
436
- }
437
- /**
438
- * terminate
439
- *
440
- * @returns { void }
441
- */
442
- terminate(__options) {
443
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "terminate", (events) => {
444
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
445
- }, [], __options);
446
- }
447
- /**
448
- * withdraw
449
- *
450
- * @param { (string | number | BN) } amount,
451
- * @returns { void }
452
- */
453
- withdraw(amount, __options) {
454
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "withdraw", (events) => {
455
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
456
- }, [amount], __options);
457
- }
458
- /**
459
- * setCodeHash
460
- *
461
- * @param { Array<(number | string | BN)> } codeHash,
462
- * @returns { void }
463
- */
464
- setCodeHash(codeHash, __options) {
465
- return typechainTypes.txSignAndSend(this.__apiPromise, this.__nativeContract, this.__keyringPair, "setCodeHash", (events) => {
466
- return utils.decodeEvents(events, this.__nativeContract, captcha$1);
467
- }, [codeHash], __options);
468
- }
469
- }
470
- module.exports = Methods;