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