cooptypes 0.0.5 → 0.2.0

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/index.cjs CHANGED
@@ -1,7 +1,745 @@
1
1
  'use strict';
2
2
 
3
- const one = 1;
4
- const two = 2;
3
+ const _username = "_username";
4
+ const _coopname = "_coopname";
5
+ const _chairman = "_chairman";
6
+ const _admin = "_admin";
7
+ const _contract = "_contract";
8
+ const _system$1 = "_system";
5
9
 
6
- exports.one = one;
7
- exports.two = two;
10
+ const index$i = {
11
+ __proto__: null,
12
+ _admin: _admin,
13
+ _chairman: _chairman,
14
+ _contract: _contract,
15
+ _coopname: _coopname,
16
+ _system: _system$1,
17
+ _username: _username
18
+ };
19
+
20
+ const _draft = {
21
+ production: "draft",
22
+ testnet: "drafttest222"
23
+ };
24
+ const _fund = {
25
+ production: "fund",
26
+ testnet: "fundtest2222"
27
+ };
28
+ const _gateway = {
29
+ production: "gateway",
30
+ testnet: "gateway2222"
31
+ };
32
+ const _system = {
33
+ production: "eosio",
34
+ testnet: "eosio"
35
+ };
36
+ const _soviet = {
37
+ production: "soviet",
38
+ testnet: "soviettest22"
39
+ };
40
+ const _marketplace = {
41
+ production: "marketplace",
42
+ testnet: "markettest22"
43
+ };
44
+ const _registrator = {
45
+ production: "registrator",
46
+ testnet: "regtest22222"
47
+ };
48
+ const _token = {
49
+ production: "eosio.token",
50
+ testnet: "eosio.token"
51
+ };
52
+
53
+ const index$h = {
54
+ __proto__: null,
55
+ _draft: _draft,
56
+ _fund: _fund,
57
+ _gateway: _gateway,
58
+ _marketplace: _marketplace,
59
+ _registrator: _registrator,
60
+ _soviet: _soviet,
61
+ _system: _system,
62
+ _token: _token
63
+ };
64
+
65
+ const active = "active";
66
+ const owner = "owner";
67
+ const special = {
68
+ contract: "_contract",
69
+ action: "actionName"
70
+ };
71
+
72
+ const index$g = {
73
+ __proto__: null,
74
+ active: active,
75
+ owner: owner,
76
+ special: special
77
+ };
78
+
79
+ const index$f = {
80
+ __proto__: null,
81
+ Actors: index$i,
82
+ ContractNames: index$h,
83
+ Permissions: index$g
84
+ };
85
+
86
+ const authorizations$E = [{ permissions: [active], actor: _system }];
87
+ const actionName$E = "createtrans";
88
+
89
+ const createTranslation = {
90
+ __proto__: null,
91
+ actionName: actionName$E,
92
+ authorizations: authorizations$E
93
+ };
94
+
95
+ const authorizations$D = [{ permissions: [active], actor: _system }];
96
+ const actionName$D = "createdraft";
97
+
98
+ const createDraft = {
99
+ __proto__: null,
100
+ actionName: actionName$D,
101
+ authorizations: authorizations$D
102
+ };
103
+
104
+ const authorizations$C = [{ permissions: [active], actor: _system }];
105
+ const actionName$C = "deldraft";
106
+
107
+ const deleteDraft = {
108
+ __proto__: null,
109
+ actionName: actionName$C,
110
+ authorizations: authorizations$C
111
+ };
112
+
113
+ const authorizations$B = [{ permissions: [active], actor: _system }];
114
+ const actionName$B = "edittrans";
115
+
116
+ const editTranslation = {
117
+ __proto__: null,
118
+ actionName: actionName$B,
119
+ authorizations: authorizations$B
120
+ };
121
+
122
+ const authorizations$A = [{ permissions: [active], actor: _draft }];
123
+ const actionName$A = "newid";
124
+
125
+ const newId = {
126
+ __proto__: null,
127
+ actionName: actionName$A,
128
+ authorizations: authorizations$A
129
+ };
130
+
131
+ const index$e = {
132
+ __proto__: null,
133
+ createDraft: createDraft,
134
+ createTranslation: createTranslation,
135
+ deleteDraft: deleteDraft,
136
+ editTranslation: editTranslation,
137
+ newId: newId
138
+ };
139
+
140
+ const tableName$c = "drafts";
141
+ const scope$c = _contract;
142
+
143
+ const drafts = {
144
+ __proto__: null,
145
+ scope: scope$c,
146
+ tableName: tableName$c
147
+ };
148
+
149
+ const tableName$b = "translations";
150
+ const scope$b = _contract;
151
+
152
+ const translations = {
153
+ __proto__: null,
154
+ scope: scope$b,
155
+ tableName: tableName$b
156
+ };
157
+
158
+ const index$d = {
159
+ __proto__: null,
160
+ Drafts: drafts,
161
+ Translations: translations
162
+ };
163
+
164
+ const draft = {
165
+ __proto__: null
166
+ };
167
+
168
+ const contractName$4 = _draft;
169
+
170
+ const index$c = {
171
+ __proto__: null,
172
+ Actions: index$e,
173
+ Interfaces: draft,
174
+ Tables: index$d,
175
+ contractName: contractName$4
176
+ };
177
+
178
+ const authorizations$z = [{ permissions: [active], actor: _fund }];
179
+ const actionName$z = "addaccum";
180
+
181
+ const addAccumulation = {
182
+ __proto__: null,
183
+ actionName: actionName$z,
184
+ authorizations: authorizations$z
185
+ };
186
+
187
+ const authorizations$y = [{ permissions: [active], actor: _fund }];
188
+ const actionName$y = "subaccum";
189
+
190
+ const subAccumulation = {
191
+ __proto__: null,
192
+ actionName: actionName$y,
193
+ authorizations: authorizations$y
194
+ };
195
+
196
+ const authorizations$x = [{ permissions: [active], actor: _gateway }];
197
+ const actionName$x = "addcirculate";
198
+
199
+ const addCirculation = {
200
+ __proto__: null,
201
+ actionName: actionName$x,
202
+ authorizations: authorizations$x
203
+ };
204
+
205
+ const authorizations$w = [{ permissions: [active], actor: _fund }];
206
+ const actionName$w = "addexpense";
207
+
208
+ const addExpense = {
209
+ __proto__: null,
210
+ actionName: actionName$w,
211
+ authorizations: authorizations$w
212
+ };
213
+
214
+ const authorizations$v = [{ permissions: [active], actor: _soviet }];
215
+ const actionName$v = "authorize";
216
+
217
+ const authorizeWithdraw = {
218
+ __proto__: null,
219
+ actionName: actionName$v,
220
+ authorizations: authorizations$v
221
+ };
222
+
223
+ const authorizations$u = [{ permissions: [active, special], actor: _admin }];
224
+ const actionName$u = "complete";
225
+
226
+ const completeWithdraw$1 = {
227
+ __proto__: null,
228
+ actionName: actionName$u,
229
+ authorizations: authorizations$u
230
+ };
231
+
232
+ const authorizations$t = [{ permissions: [active], actor: _fund }];
233
+ const actionName$t = "newfund";
234
+
235
+ const newFund = {
236
+ __proto__: null,
237
+ actionName: actionName$t,
238
+ authorizations: authorizations$t
239
+ };
240
+
241
+ const authorizations$s = [{ permissions: [active], actor: _chairman }];
242
+ const actionName$s = "createfund";
243
+
244
+ const createFund = {
245
+ __proto__: null,
246
+ actionName: actionName$s,
247
+ authorizations: authorizations$s
248
+ };
249
+
250
+ const authorizations$r = [{ permissions: [active], actor: _chairman }];
251
+ const actionName$r = "delfund";
252
+
253
+ const deleteFund = {
254
+ __proto__: null,
255
+ actionName: actionName$r,
256
+ authorizations: authorizations$r
257
+ };
258
+
259
+ const authorizations$q = [{ permissions: [active], actor: _chairman }];
260
+ const actionName$q = "editfund";
261
+
262
+ const editFund = {
263
+ __proto__: null,
264
+ actionName: actionName$q,
265
+ authorizations: authorizations$q
266
+ };
267
+
268
+ const authorizations$p = [
269
+ { permissions: [active], actor: _username },
270
+ { permissions: [active, special], actor: _admin },
271
+ { permissions: [active], actor: _contract }
272
+ ];
273
+ const actionName$p = "fundwithdraw";
274
+
275
+ const createWithdraw$1 = {
276
+ __proto__: null,
277
+ actionName: actionName$p,
278
+ authorizations: authorizations$p
279
+ };
280
+
281
+ const authorizations$o = [{ permissions: [active], actor: _soviet }];
282
+ const actionName$o = "init";
283
+
284
+ const init = {
285
+ __proto__: null,
286
+ actionName: actionName$o,
287
+ authorizations: authorizations$o
288
+ };
289
+
290
+ const authorizations$n = [{ permissions: [active], actor: _fund }];
291
+ const actionName$n = "newwithdraw";
292
+
293
+ const newWithdraw = {
294
+ __proto__: null,
295
+ actionName: actionName$n,
296
+ authorizations: authorizations$n
297
+ };
298
+
299
+ const authorizations$m = [{ permissions: [active], actor: _marketplace }, { permissions: [active], actor: _gateway }];
300
+ const actionName$m = "spreadamount";
301
+
302
+ const spreadAmount = {
303
+ __proto__: null,
304
+ actionName: actionName$m,
305
+ authorizations: authorizations$m
306
+ };
307
+
308
+ const authorizations$l = [{ permissions: [active], actor: _gateway }];
309
+ const actionName$l = "subcirculate";
310
+
311
+ const subCirculation = {
312
+ __proto__: null,
313
+ actionName: actionName$l,
314
+ authorizations: authorizations$l
315
+ };
316
+
317
+ const index$b = {
318
+ __proto__: null,
319
+ addAccumulation: addAccumulation,
320
+ addCirculation: addCirculation,
321
+ addExpense: addExpense,
322
+ authorizeWithdraw: authorizeWithdraw,
323
+ completeWithdraw: completeWithdraw$1,
324
+ createFund: createFund,
325
+ createWithdraw: createWithdraw$1,
326
+ deleteFund: deleteFund,
327
+ editFund: editFund,
328
+ init: init,
329
+ newFund: newFund,
330
+ newWithdraw: newWithdraw,
331
+ spreadAmount: spreadAmount,
332
+ subAccumulation: subAccumulation,
333
+ subCirculation: subCirculation
334
+ };
335
+
336
+ const tableName$a = "accfunds";
337
+ const scope$a = _fund;
338
+
339
+ const accumulationFunds = {
340
+ __proto__: null,
341
+ scope: scope$a,
342
+ tableName: tableName$a
343
+ };
344
+
345
+ const tableName$9 = "expfunds";
346
+ const scope$9 = _fund;
347
+
348
+ const expenseFunds = {
349
+ __proto__: null,
350
+ scope: scope$9,
351
+ tableName: tableName$9
352
+ };
353
+
354
+ const tableName$8 = "fundwallet";
355
+ const scope$8 = _fund;
356
+
357
+ const fundWallet = {
358
+ __proto__: null,
359
+ scope: scope$8,
360
+ tableName: tableName$8
361
+ };
362
+
363
+ const tableName$7 = "fwithdraws";
364
+ const scope$7 = _fund;
365
+
366
+ const fundWithdraws = {
367
+ __proto__: null,
368
+ scope: scope$7,
369
+ tableName: tableName$7
370
+ };
371
+
372
+ const index$a = {
373
+ __proto__: null,
374
+ AccumulatedFunds: accumulationFunds,
375
+ ExpensedFunds: expenseFunds,
376
+ FundWallet: fundWallet,
377
+ FundWithdraws: fundWithdraws
378
+ };
379
+
380
+ const fund = {
381
+ __proto__: null
382
+ };
383
+
384
+ const contractName$3 = _fund;
385
+
386
+ const index$9 = {
387
+ __proto__: null,
388
+ Actions: index$b,
389
+ Interfaces: fund,
390
+ Tables: index$a,
391
+ contractName: contractName$3
392
+ };
393
+
394
+ const authorizations$k = [{ permissions: [active, special], actor: _coopname }];
395
+ const actionName$k = "deposit";
396
+
397
+ const createDeposit = {
398
+ __proto__: null,
399
+ actionName: actionName$k,
400
+ authorizations: authorizations$k
401
+ };
402
+
403
+ const authorizations$j = [{ permissions: [active, special], actor: _admin }];
404
+ const actionName$j = "dpcomplete";
405
+
406
+ const completeDeposit = {
407
+ __proto__: null,
408
+ actionName: actionName$j,
409
+ authorizations: authorizations$j
410
+ };
411
+
412
+ const authorizations$i = [{ permissions: [active, special], actor: _admin }];
413
+ const actionName$i = "dpfail";
414
+
415
+ const failDeposit = {
416
+ __proto__: null,
417
+ actionName: actionName$i,
418
+ authorizations: authorizations$i
419
+ };
420
+
421
+ const authorizations$h = [{ permissions: [active], actor: _gateway }];
422
+ const actionName$h = "newdepositid";
423
+
424
+ const newDepositId = {
425
+ __proto__: null,
426
+ actionName: actionName$h,
427
+ authorizations: authorizations$h
428
+ };
429
+
430
+ const authorizations$g = [{ permissions: [active], actor: _gateway }];
431
+ const actionName$g = "newwithdrid";
432
+
433
+ const newWithdrawId = {
434
+ __proto__: null,
435
+ actionName: actionName$g,
436
+ authorizations: authorizations$g
437
+ };
438
+
439
+ const authorizations$f = [{ permissions: [active], actor: _username }];
440
+ const actionName$f = "withdraw";
441
+
442
+ const createWithdraw = {
443
+ __proto__: null,
444
+ actionName: actionName$f,
445
+ authorizations: authorizations$f
446
+ };
447
+
448
+ const authorizations$e = [{ permissions: [active, special], actor: _admin }];
449
+ const actionName$e = "wthdcomplete";
450
+
451
+ const completeWithdraw = {
452
+ __proto__: null,
453
+ actionName: actionName$e,
454
+ authorizations: authorizations$e
455
+ };
456
+
457
+ const authorizations$d = [{ permissions: [active, special], actor: _admin }];
458
+ const actionName$d = "wthdfail";
459
+
460
+ const failWithdraw = {
461
+ __proto__: null,
462
+ actionName: actionName$d,
463
+ authorizations: authorizations$d
464
+ };
465
+
466
+ const index$8 = {
467
+ __proto__: null,
468
+ completeDeposit: completeDeposit,
469
+ completeWithdraw: completeWithdraw,
470
+ createDeposit: createDeposit,
471
+ createWithdraw: createWithdraw,
472
+ failDeposit: failDeposit,
473
+ failWithdraw: failWithdraw,
474
+ newDepositId: newDepositId,
475
+ newWithdrawId: newWithdrawId
476
+ };
477
+
478
+ const tableName$6 = "deposits";
479
+ const scope$6 = _gateway;
480
+
481
+ const deposits = {
482
+ __proto__: null,
483
+ scope: scope$6,
484
+ tableName: tableName$6
485
+ };
486
+
487
+ const tableName$5 = "withdraws";
488
+ const scope$5 = _gateway;
489
+
490
+ const withdraws = {
491
+ __proto__: null,
492
+ scope: scope$5,
493
+ tableName: tableName$5
494
+ };
495
+
496
+ const index$7 = {
497
+ __proto__: null,
498
+ Deposits: deposits,
499
+ Withdrws: withdraws
500
+ };
501
+
502
+ const gateway = {
503
+ __proto__: null
504
+ };
505
+
506
+ const contractName$2 = _gateway;
507
+
508
+ const index$6 = {
509
+ __proto__: null,
510
+ Actions: index$8,
511
+ Interfaces: gateway,
512
+ Tables: index$7,
513
+ contractName: contractName$2
514
+ };
515
+
516
+ const authorizations$c = [{ permissions: [active], actor: _system }];
517
+ const actionName$c = "verificate";
518
+
519
+ const verificateAccount = {
520
+ __proto__: null,
521
+ actionName: actionName$c,
522
+ authorizations: authorizations$c
523
+ };
524
+
525
+ const authorizations$b = [{ permissions: [active], actor: _username }];
526
+ const actionName$b = "update";
527
+
528
+ const updateAccount = {
529
+ __proto__: null,
530
+ actionName: actionName$b,
531
+ authorizations: authorizations$b
532
+ };
533
+
534
+ const authorizations$a = [{ permissions: [active], actor: _admin }];
535
+ const actionName$a = "newaccount";
536
+
537
+ const createAccount = {
538
+ __proto__: null,
539
+ actionName: actionName$a,
540
+ authorizations: authorizations$a
541
+ };
542
+
543
+ const authorizations$9 = [{ permissions: [active], actor: _admin }];
544
+ const actionName$9 = "regorg";
545
+
546
+ const registerOrganization = {
547
+ __proto__: null,
548
+ actionName: actionName$9,
549
+ authorizations: authorizations$9
550
+ };
551
+
552
+ const authorizations$8 = [{ permissions: [active], actor: _system }];
553
+ const actionName$8 = "changekey";
554
+
555
+ const changeKey = {
556
+ __proto__: null,
557
+ actionName: actionName$8,
558
+ authorizations: authorizations$8
559
+ };
560
+
561
+ const authorizations$7 = [{ permissions: [active], actor: _admin }, { permissions: [active], actor: _username }];
562
+ const actionName$7 = "joincoop";
563
+
564
+ const joinCooperative = {
565
+ __proto__: null,
566
+ actionName: actionName$7,
567
+ authorizations: authorizations$7
568
+ };
569
+
570
+ const authorizations$6 = [{ permissions: [active], actor: _soviet }];
571
+ const actionName$6 = "confirmreg";
572
+
573
+ const confirmJoin = {
574
+ __proto__: null,
575
+ actionName: actionName$6,
576
+ authorizations: authorizations$6
577
+ };
578
+
579
+ const index$5 = {
580
+ __proto__: null,
581
+ changeKey: changeKey,
582
+ confirmJoin: confirmJoin,
583
+ createAccount: createAccount,
584
+ joinCooperative: joinCooperative,
585
+ registerOrganization: registerOrganization,
586
+ updateAccount: updateAccount,
587
+ verificateAccount: verificateAccount
588
+ };
589
+
590
+ const tableName$4 = "accounts";
591
+ const scope$4 = _registrator;
592
+
593
+ const accounts = {
594
+ __proto__: null,
595
+ scope: scope$4,
596
+ tableName: tableName$4
597
+ };
598
+
599
+ const tableName$3 = "orgs";
600
+ const scope$3 = _registrator;
601
+
602
+ const organizations = {
603
+ __proto__: null,
604
+ scope: scope$3,
605
+ tableName: tableName$3
606
+ };
607
+
608
+ const tableName$2 = "users";
609
+ const scope$2 = _coopname;
610
+
611
+ const users = {
612
+ __proto__: null,
613
+ scope: scope$2,
614
+ tableName: tableName$2
615
+ };
616
+
617
+ const index$4 = {
618
+ __proto__: null,
619
+ Accounts: accounts,
620
+ Organizations: organizations,
621
+ Users: users
622
+ };
623
+
624
+ const registrator = {
625
+ __proto__: null
626
+ };
627
+
628
+ const contractName$1 = _registrator;
629
+
630
+ const index$3 = {
631
+ __proto__: null,
632
+ Actions: index$5,
633
+ Interfaces: registrator,
634
+ Tables: index$4,
635
+ contractName: contractName$1
636
+ };
637
+
638
+ const authorizations$5 = [{ permissions: [active], actor: _username }];
639
+ const actionName$5 = "transfer";
640
+
641
+ const transfer = {
642
+ __proto__: null,
643
+ actionName: actionName$5,
644
+ authorizations: authorizations$5
645
+ };
646
+
647
+ const authorizations$4 = [{ permissions: [active], actor: _username }];
648
+ const actionName$4 = "open";
649
+
650
+ const open = {
651
+ __proto__: null,
652
+ actionName: actionName$4,
653
+ authorizations: authorizations$4
654
+ };
655
+
656
+ const authorizations$3 = [{ permissions: [active], actor: _username }];
657
+ const actionName$3 = "close";
658
+
659
+ const close = {
660
+ __proto__: null,
661
+ actionName: actionName$3,
662
+ authorizations: authorizations$3
663
+ };
664
+
665
+ const authorizations$2 = [{ permissions: [active], actor: _system$1 }];
666
+ const actionName$2 = "create";
667
+
668
+ const create = {
669
+ __proto__: null,
670
+ actionName: actionName$2,
671
+ authorizations: authorizations$2
672
+ };
673
+
674
+ const authorizations$1 = [{ permissions: [active], actor: "currencyStats.issuer" }];
675
+ const actionName$1 = "issue";
676
+
677
+ const issue = {
678
+ __proto__: null,
679
+ actionName: actionName$1,
680
+ authorizations: authorizations$1
681
+ };
682
+
683
+ const authorizations = [{ permissions: [active], actor: "currencyStats.issuer" }];
684
+ const actionName = "retire";
685
+
686
+ const retire = {
687
+ __proto__: null,
688
+ actionName: actionName,
689
+ authorizations: authorizations
690
+ };
691
+
692
+ const index$2 = {
693
+ __proto__: null,
694
+ close: close,
695
+ create: create,
696
+ issue: issue,
697
+ open: open,
698
+ retire: retire,
699
+ transfer: transfer
700
+ };
701
+
702
+ const tableName$1 = "accounts";
703
+ const scope$1 = _username;
704
+
705
+ const accountBalance = {
706
+ __proto__: null,
707
+ scope: scope$1,
708
+ tableName: tableName$1
709
+ };
710
+
711
+ const tableName = "stat";
712
+ const scope = "AXON";
713
+
714
+ const currencyStats = {
715
+ __proto__: null,
716
+ scope: scope,
717
+ tableName: tableName
718
+ };
719
+
720
+ const index$1 = {
721
+ __proto__: null,
722
+ AccountBalance: accountBalance,
723
+ CurrencyStats: currencyStats
724
+ };
725
+
726
+ const eosio_token = {
727
+ __proto__: null
728
+ };
729
+
730
+ const contractName = _token;
731
+
732
+ const index = {
733
+ __proto__: null,
734
+ Actions: index$2,
735
+ Interfaces: eosio_token,
736
+ Tables: index$1,
737
+ contractName: contractName
738
+ };
739
+
740
+ exports.DraftContract = index$c;
741
+ exports.FundContract = index$9;
742
+ exports.GatewayContract = index$6;
743
+ exports.RegistratorContract = index$3;
744
+ exports.TokenContract = index;
745
+ exports._Common = index$f;