@prosopo/procaptcha 0.2.11 → 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.
Files changed (50) hide show
  1. package/dist/api/ExtensionWeb2.d.ts.map +1 -1
  2. package/dist/api/ExtensionWeb2.js +9 -8
  3. package/dist/api/ExtensionWeb2.js.map +1 -1
  4. package/dist/api/handlers.d.ts +2 -3
  5. package/dist/api/handlers.d.ts.map +1 -1
  6. package/dist/api/handlers.js +23 -1
  7. package/dist/api/handlers.js.map +1 -1
  8. package/dist/api/index.d.ts +0 -1
  9. package/dist/api/index.d.ts.map +1 -1
  10. package/dist/api/index.js +0 -1
  11. package/dist/api/index.js.map +1 -1
  12. package/dist/api/sign.js +2 -2
  13. package/dist/api/sign.js.map +1 -1
  14. package/dist/cjs/api/ExtensionWeb2.cjs +17 -16
  15. package/dist/cjs/api/handlers.cjs +10 -1
  16. package/dist/cjs/api/index.cjs +0 -3
  17. package/dist/cjs/index.cjs +0 -2
  18. package/dist/cjs/modules/Manager.cjs +20 -20
  19. package/dist/cjs/modules/ProsopoCaptchaApi.cjs +10 -12
  20. package/dist/modules/Manager.d.ts.map +1 -1
  21. package/dist/modules/Manager.js +7 -6
  22. package/dist/modules/Manager.js.map +1 -1
  23. package/dist/modules/ProsopoCaptchaApi.d.ts +1 -1
  24. package/dist/modules/ProsopoCaptchaApi.d.ts.map +1 -1
  25. package/dist/modules/ProsopoCaptchaApi.js +14 -1
  26. package/dist/modules/ProsopoCaptchaApi.js.map +1 -1
  27. package/package.json +23 -15
  28. package/dist/api/HttpClientBase.d.ts +0 -9
  29. package/dist/api/HttpClientBase.d.ts.map +0 -1
  30. package/dist/api/HttpClientBase.js +0 -28
  31. package/dist/api/HttpClientBase.js.map +0 -1
  32. package/dist/cjs/api/HttpClientBase.cjs +0 -17
  33. package/dist/cjs/contracts/captcha/dist/build-extrinsic/captcha.cjs +0 -339
  34. package/dist/cjs/contracts/captcha/dist/contract-info/captcha.cjs +0 -6
  35. package/dist/cjs/contracts/captcha/dist/contracts/captcha.cjs +0 -79
  36. package/dist/cjs/contracts/captcha/dist/data/captcha.json.cjs +0 -3374
  37. package/dist/cjs/contracts/captcha/dist/event-data/captcha.json.cjs +0 -3
  38. package/dist/cjs/contracts/captcha/dist/events/captcha.cjs +0 -23
  39. package/dist/cjs/contracts/captcha/dist/index.cjs +0 -44
  40. package/dist/cjs/contracts/captcha/dist/mixed-methods/captcha.cjs +0 -470
  41. package/dist/cjs/contracts/captcha/dist/query/captcha.cjs +0 -468
  42. package/dist/cjs/contracts/captcha/dist/shared/utils.cjs +0 -31
  43. package/dist/cjs/contracts/captcha/dist/tx-sign-and-send/captcha.cjs +0 -426
  44. package/dist/cjs/contracts/captcha/dist/types-arguments/captcha.cjs +0 -62
  45. package/dist/cjs/packages/datasets/dist/captcha/captcha.cjs +0 -143
  46. package/dist/cjs/packages/datasets/dist/captcha/dataset.cjs +0 -87
  47. package/dist/cjs/packages/datasets/dist/captcha/index.cjs +0 -27
  48. package/dist/cjs/packages/datasets/dist/captcha/merkle.cjs +0 -106
  49. package/dist/cjs/packages/datasets/dist/captcha/util.cjs +0 -12
  50. package/dist/cjs/packages/datasets/dist/index.cjs +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha",
3
- "version": "0.2.11",
3
+ "version": "0.2.14",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -29,23 +29,31 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@fingerprintjs/fingerprintjs": "^3.3.6",
32
- "@polkadot/api": "10.9.1",
33
- "@polkadot/api-contract": "10.9.1",
32
+ "@polkadot/api": "10.10.1",
33
+ "@polkadot/api-contract": "10.10.1",
34
34
  "@polkadot/extension-base": "0.46.5",
35
35
  "@polkadot/extension-dapp": "0.46.5",
36
36
  "@polkadot/extension-inject": "0.46.5",
37
- "@polkadot/keyring": "12.3.2",
38
- "@polkadot/rpc-provider": "10.9.1",
39
- "@polkadot/types": "10.9.1",
40
- "@polkadot/util": "12.3.2",
41
- "@polkadot/util-crypto": "12.3.2",
42
- "@prosopo/api": "0.2.11",
43
- "@prosopo/common": "0.2.11",
44
- "@prosopo/contract": "0.2.11",
45
- "@prosopo/datasets": "0.2.11",
46
- "@prosopo/types": "0.2.11",
47
- "@prosopo/util": "0.2.11",
48
- "axios": "^1.5.0"
37
+ "@polkadot/keyring": "12.5.1",
38
+ "@polkadot/rpc-provider": "10.10.1",
39
+ "@polkadot/types": "10.10.1",
40
+ "@polkadot/util": "12.5.1",
41
+ "@polkadot/util-crypto": "12.5.1",
42
+ "@prosopo/api": "0.2.14",
43
+ "@prosopo/common": "0.2.14",
44
+ "@prosopo/contract": "0.2.14",
45
+ "@prosopo/datasets": "0.2.14",
46
+ "@prosopo/types": "0.2.14",
47
+ "@prosopo/util": "0.2.14",
48
+ "rxjs": "7.8.1"
49
+ },
50
+ "overrides": {
51
+ "@polkadot/extension-base": {
52
+ "@polkadot/ui-keyring": {
53
+ "@polkadot/keyring": "12.5.1",
54
+ "@polkadot/util-crypto": "12.5.1"
55
+ }
56
+ }
49
57
  },
50
58
  "devDependencies": {
51
59
  "tslib": "2.6.2",
@@ -1,9 +0,0 @@
1
- import { AxiosInstance, AxiosResponse } from 'axios';
2
- export declare class HttpClientBase {
3
- protected readonly axios: AxiosInstance;
4
- constructor(baseURL: string, prefix?: string);
5
- protected responseHandler: (response: AxiosResponse) => any;
6
- protected errorHandler: (error: any) => Promise<never>;
7
- }
8
- export default HttpClientBase;
9
- //# sourceMappingURL=HttpClientBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpClientBase.d.ts","sourceRoot":"","sources":["../../src/api/HttpClientBase.ts"],"names":[],"mappings":"AAaA,OAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE3D,qBAAa,cAAc;IACvB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;gBAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAK;IAMxC,SAAS,CAAC,eAAe,aAAc,aAAa,SAGnD;IAED,SAAS,CAAC,YAAY,UAAW,GAAG,oBAAmC;CAC1E;AAED,eAAe,cAAc,CAAA"}
@@ -1,28 +0,0 @@
1
- // Copyright 2021-2023 Prosopo (UK) Ltd.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
- import axios from 'axios';
15
- export class HttpClientBase {
16
- constructor(baseURL, prefix = '') {
17
- this.responseHandler = (response) => {
18
- console.log('API REQUEST', response.request);
19
- return response.data;
20
- };
21
- this.errorHandler = (error) => Promise.reject(error.response);
22
- baseURL = baseURL + prefix;
23
- this.axios = axios.create({ baseURL });
24
- this.axios.interceptors.response.use(this.responseHandler, this.errorHandler);
25
- }
26
- }
27
- export default HttpClientBase;
28
- //# sourceMappingURL=HttpClientBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpClientBase.js","sourceRoot":"","sources":["../../src/api/HttpClientBase.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;AACjC,OAAO,KAAuC,MAAM,OAAO,CAAA;AAE3D,MAAM,OAAO,cAAc;IAGvB,YAAY,OAAe,EAAE,MAAM,GAAG,EAAE;QAM9B,oBAAe,GAAG,CAAC,QAAuB,EAAE,EAAE;YACpD,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;YAC5C,OAAO,QAAQ,CAAC,IAAI,CAAA;QACxB,CAAC,CAAA;QAES,iBAAY,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAVnE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;QACtC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;IACjF,CAAC;CAQJ;AAED,eAAe,cAAc,CAAA"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const client = require("axios");
4
- class HttpClientBase {
5
- constructor(baseURL, prefix = "") {
6
- this.responseHandler = (response) => {
7
- console.log("API REQUEST", response.request);
8
- return response.data;
9
- };
10
- this.errorHandler = (error) => Promise.reject(error.response);
11
- baseURL = baseURL + prefix;
12
- this.axios = client.create({ baseURL });
13
- this.axios.interceptors.response.use(this.responseHandler, this.errorHandler);
14
- }
15
- }
16
- exports.HttpClientBase = HttpClientBase;
17
- exports.default = HttpClientBase;
@@ -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;