cooptypes 0.5.18 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.cjs +113 -103
- package/dist/index.d.cts +115 -94
- package/dist/index.d.mts +115 -94
- package/dist/index.d.ts +115 -94
- package/dist/index.mjs +113 -103
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -29,8 +29,11 @@ const api = new EosApi(options);
|
|
|
29
29
|
const coopname = 'testcoop' - тестовое имя аккаунта кооператива
|
|
30
30
|
|
|
31
31
|
const _scope = SovietContract.Tables.Boards.scope
|
|
32
|
+
```
|
|
32
33
|
|
|
33
34
|
Получив _scope, необходимо проверить его и подставить переменную:
|
|
35
|
+
|
|
36
|
+
```
|
|
34
37
|
let scope
|
|
35
38
|
|
|
36
39
|
if (_scope === '_coopname' )
|
package/dist/index.cjs
CHANGED
|
@@ -95,51 +95,51 @@ const index$z = {
|
|
|
95
95
|
Permissions: index$A
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
const authorizations$
|
|
99
|
-
const actionName$
|
|
98
|
+
const authorizations$2b = [{ permissions: [active], actor: _system }];
|
|
99
|
+
const actionName$2b = "createtrans";
|
|
100
100
|
|
|
101
101
|
const createTranslation = {
|
|
102
|
+
__proto__: null,
|
|
103
|
+
actionName: actionName$2b,
|
|
104
|
+
authorizations: authorizations$2b
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const authorizations$2a = [{ permissions: [active], actor: _system }];
|
|
108
|
+
const actionName$2a = "createdraft";
|
|
109
|
+
|
|
110
|
+
const createDraft = {
|
|
102
111
|
__proto__: null,
|
|
103
112
|
actionName: actionName$2a,
|
|
104
113
|
authorizations: authorizations$2a
|
|
105
114
|
};
|
|
106
115
|
|
|
107
116
|
const authorizations$29 = [{ permissions: [active], actor: _system }];
|
|
108
|
-
const actionName$29 = "
|
|
117
|
+
const actionName$29 = "deldraft";
|
|
109
118
|
|
|
110
|
-
const
|
|
119
|
+
const deleteDraft = {
|
|
111
120
|
__proto__: null,
|
|
112
121
|
actionName: actionName$29,
|
|
113
122
|
authorizations: authorizations$29
|
|
114
123
|
};
|
|
115
124
|
|
|
116
125
|
const authorizations$28 = [{ permissions: [active], actor: _system }];
|
|
117
|
-
const actionName$28 = "
|
|
126
|
+
const actionName$28 = "edittrans";
|
|
118
127
|
|
|
119
|
-
const
|
|
128
|
+
const editTranslation = {
|
|
120
129
|
__proto__: null,
|
|
121
130
|
actionName: actionName$28,
|
|
122
131
|
authorizations: authorizations$28
|
|
123
132
|
};
|
|
124
133
|
|
|
125
|
-
const authorizations$27 = [{ permissions: [active], actor:
|
|
126
|
-
const actionName$27 = "
|
|
134
|
+
const authorizations$27 = [{ permissions: [active], actor: _draft }];
|
|
135
|
+
const actionName$27 = "newid";
|
|
127
136
|
|
|
128
|
-
const
|
|
137
|
+
const newId = {
|
|
129
138
|
__proto__: null,
|
|
130
139
|
actionName: actionName$27,
|
|
131
140
|
authorizations: authorizations$27
|
|
132
141
|
};
|
|
133
142
|
|
|
134
|
-
const authorizations$26 = [{ permissions: [active], actor: _draft }];
|
|
135
|
-
const actionName$26 = "newid";
|
|
136
|
-
|
|
137
|
-
const newId = {
|
|
138
|
-
__proto__: null,
|
|
139
|
-
actionName: actionName$26,
|
|
140
|
-
authorizations: authorizations$26
|
|
141
|
-
};
|
|
142
|
-
|
|
143
143
|
const index$y = {
|
|
144
144
|
__proto__: null,
|
|
145
145
|
CreateDraft: createDraft,
|
|
@@ -187,145 +187,145 @@ const index$w = {
|
|
|
187
187
|
contractName: contractName$9
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
-
const authorizations$
|
|
191
|
-
const actionName$
|
|
190
|
+
const authorizations$26 = [{ permissions: [active], actor: _fund }];
|
|
191
|
+
const actionName$26 = "addaccum";
|
|
192
192
|
|
|
193
193
|
const addAccumulation = {
|
|
194
|
+
__proto__: null,
|
|
195
|
+
actionName: actionName$26,
|
|
196
|
+
authorizations: authorizations$26
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
const authorizations$25 = [{ permissions: [active], actor: _fund }];
|
|
200
|
+
const actionName$25 = "subaccum";
|
|
201
|
+
|
|
202
|
+
const subAccumulation = {
|
|
194
203
|
__proto__: null,
|
|
195
204
|
actionName: actionName$25,
|
|
196
205
|
authorizations: authorizations$25
|
|
197
206
|
};
|
|
198
207
|
|
|
199
|
-
const authorizations$24 = [{ permissions: [active], actor:
|
|
200
|
-
const actionName$24 = "
|
|
208
|
+
const authorizations$24 = [{ permissions: [active], actor: _gateway }];
|
|
209
|
+
const actionName$24 = "addcirculate";
|
|
201
210
|
|
|
202
|
-
const
|
|
211
|
+
const addCirculation = {
|
|
203
212
|
__proto__: null,
|
|
204
213
|
actionName: actionName$24,
|
|
205
214
|
authorizations: authorizations$24
|
|
206
215
|
};
|
|
207
216
|
|
|
208
|
-
const authorizations$23 = [{ permissions: [active], actor:
|
|
209
|
-
const actionName$23 = "
|
|
217
|
+
const authorizations$23 = [{ permissions: [active], actor: _fund }];
|
|
218
|
+
const actionName$23 = "addexpense";
|
|
210
219
|
|
|
211
|
-
const
|
|
220
|
+
const addExpense = {
|
|
212
221
|
__proto__: null,
|
|
213
222
|
actionName: actionName$23,
|
|
214
223
|
authorizations: authorizations$23
|
|
215
224
|
};
|
|
216
225
|
|
|
217
|
-
const authorizations$22 = [{ permissions: [active], actor:
|
|
218
|
-
const actionName$22 = "
|
|
226
|
+
const authorizations$22 = [{ permissions: [active], actor: _soviet }];
|
|
227
|
+
const actionName$22 = "authorize";
|
|
219
228
|
|
|
220
|
-
const
|
|
229
|
+
const authorizeWithdraw = {
|
|
221
230
|
__proto__: null,
|
|
222
231
|
actionName: actionName$22,
|
|
223
232
|
authorizations: authorizations$22
|
|
224
233
|
};
|
|
225
234
|
|
|
226
|
-
const authorizations$21 = [{ permissions: [active], actor:
|
|
227
|
-
const actionName$21 = "
|
|
235
|
+
const authorizations$21 = [{ permissions: [active, special], actor: _admin }];
|
|
236
|
+
const actionName$21 = "complete";
|
|
228
237
|
|
|
229
|
-
const
|
|
238
|
+
const completeWithdraw$1 = {
|
|
230
239
|
__proto__: null,
|
|
231
240
|
actionName: actionName$21,
|
|
232
241
|
authorizations: authorizations$21
|
|
233
242
|
};
|
|
234
243
|
|
|
235
|
-
const authorizations$20 = [{ permissions: [active
|
|
236
|
-
const actionName$20 = "
|
|
244
|
+
const authorizations$20 = [{ permissions: [active], actor: _fund }];
|
|
245
|
+
const actionName$20 = "newfund";
|
|
237
246
|
|
|
238
|
-
const
|
|
247
|
+
const newFund = {
|
|
239
248
|
__proto__: null,
|
|
240
249
|
actionName: actionName$20,
|
|
241
250
|
authorizations: authorizations$20
|
|
242
251
|
};
|
|
243
252
|
|
|
244
|
-
const authorizations$1$ = [{ permissions: [active], actor:
|
|
245
|
-
const actionName$1$ = "
|
|
253
|
+
const authorizations$1$ = [{ permissions: [active], actor: _chairman }];
|
|
254
|
+
const actionName$1$ = "createfund";
|
|
246
255
|
|
|
247
|
-
const
|
|
256
|
+
const createFund = {
|
|
248
257
|
__proto__: null,
|
|
249
258
|
actionName: actionName$1$,
|
|
250
259
|
authorizations: authorizations$1$
|
|
251
260
|
};
|
|
252
261
|
|
|
253
262
|
const authorizations$1_ = [{ permissions: [active], actor: _chairman }];
|
|
254
|
-
const actionName$1_ = "
|
|
263
|
+
const actionName$1_ = "delfund";
|
|
255
264
|
|
|
256
|
-
const
|
|
265
|
+
const deleteFund = {
|
|
257
266
|
__proto__: null,
|
|
258
267
|
actionName: actionName$1_,
|
|
259
268
|
authorizations: authorizations$1_
|
|
260
269
|
};
|
|
261
270
|
|
|
262
271
|
const authorizations$1Z = [{ permissions: [active], actor: _chairman }];
|
|
263
|
-
const actionName$1Z = "
|
|
272
|
+
const actionName$1Z = "editfund";
|
|
264
273
|
|
|
265
|
-
const
|
|
274
|
+
const editFund = {
|
|
266
275
|
__proto__: null,
|
|
267
276
|
actionName: actionName$1Z,
|
|
268
277
|
authorizations: authorizations$1Z
|
|
269
278
|
};
|
|
270
279
|
|
|
271
|
-
const authorizations$1Y = [
|
|
272
|
-
|
|
280
|
+
const authorizations$1Y = [
|
|
281
|
+
{ permissions: [active], actor: _username },
|
|
282
|
+
{ permissions: [active, special], actor: _admin },
|
|
283
|
+
{ permissions: [active], actor: _contract }
|
|
284
|
+
];
|
|
285
|
+
const actionName$1Y = "fundwithdraw";
|
|
273
286
|
|
|
274
|
-
const
|
|
287
|
+
const createWithdraw$1 = {
|
|
275
288
|
__proto__: null,
|
|
276
289
|
actionName: actionName$1Y,
|
|
277
290
|
authorizations: authorizations$1Y
|
|
278
291
|
};
|
|
279
292
|
|
|
280
|
-
const authorizations$1X = [
|
|
281
|
-
|
|
282
|
-
{ permissions: [active, special], actor: _admin },
|
|
283
|
-
{ permissions: [active], actor: _contract }
|
|
284
|
-
];
|
|
285
|
-
const actionName$1X = "fundwithdraw";
|
|
293
|
+
const authorizations$1X = [{ permissions: [active], actor: _soviet }];
|
|
294
|
+
const actionName$1X = "init";
|
|
286
295
|
|
|
287
|
-
const
|
|
296
|
+
const init$2 = {
|
|
288
297
|
__proto__: null,
|
|
289
298
|
actionName: actionName$1X,
|
|
290
299
|
authorizations: authorizations$1X
|
|
291
300
|
};
|
|
292
301
|
|
|
293
|
-
const authorizations$1W = [{ permissions: [active], actor:
|
|
294
|
-
const actionName$1W = "
|
|
302
|
+
const authorizations$1W = [{ permissions: [active], actor: _fund }];
|
|
303
|
+
const actionName$1W = "newwithdraw";
|
|
295
304
|
|
|
296
|
-
const
|
|
305
|
+
const newWithdraw = {
|
|
297
306
|
__proto__: null,
|
|
298
307
|
actionName: actionName$1W,
|
|
299
308
|
authorizations: authorizations$1W
|
|
300
309
|
};
|
|
301
310
|
|
|
302
|
-
const authorizations$1V = [{ permissions: [active], actor:
|
|
303
|
-
const actionName$1V = "
|
|
311
|
+
const authorizations$1V = [{ permissions: [active], actor: _marketplace }, { permissions: [active], actor: _gateway }];
|
|
312
|
+
const actionName$1V = "spreadamount";
|
|
304
313
|
|
|
305
|
-
const
|
|
314
|
+
const spreadAmount = {
|
|
306
315
|
__proto__: null,
|
|
307
316
|
actionName: actionName$1V,
|
|
308
317
|
authorizations: authorizations$1V
|
|
309
318
|
};
|
|
310
319
|
|
|
311
|
-
const authorizations$1U = [{ permissions: [active], actor:
|
|
312
|
-
const actionName$1U = "
|
|
320
|
+
const authorizations$1U = [{ permissions: [active], actor: _gateway }];
|
|
321
|
+
const actionName$1U = "subcirculate";
|
|
313
322
|
|
|
314
|
-
const
|
|
323
|
+
const subCirculation = {
|
|
315
324
|
__proto__: null,
|
|
316
325
|
actionName: actionName$1U,
|
|
317
326
|
authorizations: authorizations$1U
|
|
318
327
|
};
|
|
319
328
|
|
|
320
|
-
const authorizations$1T = [{ permissions: [active], actor: _gateway }];
|
|
321
|
-
const actionName$1T = "subcirculate";
|
|
322
|
-
|
|
323
|
-
const subCirculation = {
|
|
324
|
-
__proto__: null,
|
|
325
|
-
actionName: actionName$1T,
|
|
326
|
-
authorizations: authorizations$1T
|
|
327
|
-
};
|
|
328
|
-
|
|
329
329
|
const index$v = {
|
|
330
330
|
__proto__: null,
|
|
331
331
|
AddAccumulation: addAccumulation,
|
|
@@ -403,78 +403,78 @@ const index$t = {
|
|
|
403
403
|
contractName: contractName$8
|
|
404
404
|
};
|
|
405
405
|
|
|
406
|
-
const authorizations$
|
|
407
|
-
const actionName$
|
|
406
|
+
const authorizations$1T = [{ permissions: [active, special], actor: _coopname }];
|
|
407
|
+
const actionName$1T = "deposit";
|
|
408
408
|
|
|
409
409
|
const createDeposit = {
|
|
410
|
+
__proto__: null,
|
|
411
|
+
actionName: actionName$1T,
|
|
412
|
+
authorizations: authorizations$1T
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
const authorizations$1S = [{ permissions: [active, special], actor: _admin }];
|
|
416
|
+
const actionName$1S = "dpcomplete";
|
|
417
|
+
|
|
418
|
+
const completeDeposit = {
|
|
410
419
|
__proto__: null,
|
|
411
420
|
actionName: actionName$1S,
|
|
412
421
|
authorizations: authorizations$1S
|
|
413
422
|
};
|
|
414
423
|
|
|
415
424
|
const authorizations$1R = [{ permissions: [active, special], actor: _admin }];
|
|
416
|
-
const actionName$1R = "
|
|
425
|
+
const actionName$1R = "dpfail";
|
|
417
426
|
|
|
418
|
-
const
|
|
427
|
+
const failDeposit = {
|
|
419
428
|
__proto__: null,
|
|
420
429
|
actionName: actionName$1R,
|
|
421
430
|
authorizations: authorizations$1R
|
|
422
431
|
};
|
|
423
432
|
|
|
424
|
-
const authorizations$1Q = [{ permissions: [active
|
|
425
|
-
const actionName$1Q = "
|
|
433
|
+
const authorizations$1Q = [{ permissions: [active], actor: _gateway }];
|
|
434
|
+
const actionName$1Q = "newdepositid";
|
|
426
435
|
|
|
427
|
-
const
|
|
436
|
+
const newDepositId = {
|
|
428
437
|
__proto__: null,
|
|
429
438
|
actionName: actionName$1Q,
|
|
430
439
|
authorizations: authorizations$1Q
|
|
431
440
|
};
|
|
432
441
|
|
|
433
442
|
const authorizations$1P = [{ permissions: [active], actor: _gateway }];
|
|
434
|
-
const actionName$1P = "
|
|
443
|
+
const actionName$1P = "newwithdrid";
|
|
435
444
|
|
|
436
|
-
const
|
|
445
|
+
const newWithdrawId = {
|
|
437
446
|
__proto__: null,
|
|
438
447
|
actionName: actionName$1P,
|
|
439
448
|
authorizations: authorizations$1P
|
|
440
449
|
};
|
|
441
450
|
|
|
442
|
-
const authorizations$1O = [{ permissions: [active], actor:
|
|
443
|
-
const actionName$1O = "
|
|
451
|
+
const authorizations$1O = [{ permissions: [active], actor: _username }];
|
|
452
|
+
const actionName$1O = "withdraw";
|
|
444
453
|
|
|
445
|
-
const
|
|
454
|
+
const createWithdraw = {
|
|
446
455
|
__proto__: null,
|
|
447
456
|
actionName: actionName$1O,
|
|
448
457
|
authorizations: authorizations$1O
|
|
449
458
|
};
|
|
450
459
|
|
|
451
|
-
const authorizations$1N = [{ permissions: [active], actor:
|
|
452
|
-
const actionName$1N = "
|
|
460
|
+
const authorizations$1N = [{ permissions: [active, special], actor: _admin }];
|
|
461
|
+
const actionName$1N = "wthdcomplete";
|
|
453
462
|
|
|
454
|
-
const
|
|
463
|
+
const completeWithdraw = {
|
|
455
464
|
__proto__: null,
|
|
456
465
|
actionName: actionName$1N,
|
|
457
466
|
authorizations: authorizations$1N
|
|
458
467
|
};
|
|
459
468
|
|
|
460
469
|
const authorizations$1M = [{ permissions: [active, special], actor: _admin }];
|
|
461
|
-
const actionName$1M = "
|
|
470
|
+
const actionName$1M = "wthdfail";
|
|
462
471
|
|
|
463
|
-
const
|
|
472
|
+
const failWithdraw = {
|
|
464
473
|
__proto__: null,
|
|
465
474
|
actionName: actionName$1M,
|
|
466
475
|
authorizations: authorizations$1M
|
|
467
476
|
};
|
|
468
477
|
|
|
469
|
-
const authorizations$1L = [{ permissions: [active, special], actor: _admin }];
|
|
470
|
-
const actionName$1L = "wthdfail";
|
|
471
|
-
|
|
472
|
-
const failWithdraw = {
|
|
473
|
-
__proto__: null,
|
|
474
|
-
actionName: actionName$1L,
|
|
475
|
-
authorizations: authorizations$1L
|
|
476
|
-
};
|
|
477
|
-
|
|
478
478
|
const index$s = {
|
|
479
479
|
__proto__: null,
|
|
480
480
|
CompleteDeposit: completeDeposit,
|
|
@@ -525,28 +525,37 @@ const index$q = {
|
|
|
525
525
|
contractName: contractName$7
|
|
526
526
|
};
|
|
527
527
|
|
|
528
|
-
const authorizations$
|
|
529
|
-
const actionName$
|
|
528
|
+
const authorizations$1L = [{ permissions: [active], actor: _system }];
|
|
529
|
+
const actionName$1L = "verificate";
|
|
530
530
|
|
|
531
531
|
const verificateAccount = {
|
|
532
|
+
__proto__: null,
|
|
533
|
+
actionName: actionName$1L,
|
|
534
|
+
authorizations: authorizations$1L
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
const authorizations$1K = [{ permissions: [active], actor: _username }];
|
|
538
|
+
const actionName$1K = "update";
|
|
539
|
+
|
|
540
|
+
const updateAccount = {
|
|
532
541
|
__proto__: null,
|
|
533
542
|
actionName: actionName$1K,
|
|
534
543
|
authorizations: authorizations$1K
|
|
535
544
|
};
|
|
536
545
|
|
|
537
|
-
const authorizations$1J = [{ permissions: [active], actor:
|
|
538
|
-
const actionName$1J = "
|
|
546
|
+
const authorizations$1J = [{ permissions: [active, special], actor: _admin }];
|
|
547
|
+
const actionName$1J = "newaccount";
|
|
539
548
|
|
|
540
|
-
const
|
|
549
|
+
const createAccount$1 = {
|
|
541
550
|
__proto__: null,
|
|
542
551
|
actionName: actionName$1J,
|
|
543
552
|
authorizations: authorizations$1J
|
|
544
553
|
};
|
|
545
554
|
|
|
546
555
|
const authorizations$1I = [{ permissions: [active, special], actor: _admin }];
|
|
547
|
-
const actionName$1I = "
|
|
556
|
+
const actionName$1I = "reguser";
|
|
548
557
|
|
|
549
|
-
const
|
|
558
|
+
const registerUser = {
|
|
550
559
|
__proto__: null,
|
|
551
560
|
actionName: actionName$1I,
|
|
552
561
|
authorizations: authorizations$1I
|
|
@@ -605,6 +614,7 @@ const index$p = {
|
|
|
605
614
|
Init: init$1,
|
|
606
615
|
JoinCooperative: joinCooperative,
|
|
607
616
|
RegisterOrganization: registerOrganization,
|
|
617
|
+
RegisterUser: registerUser,
|
|
608
618
|
UpdateAccount: updateAccount,
|
|
609
619
|
VerificateAccount: verificateAccount
|
|
610
620
|
};
|