cooptypes 0.0.4 → 0.1.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # pkg-placeholder
1
+ # cooptypes
2
2
 
3
3
  [![npm version][npm-version-src]][npm-version-href]
4
4
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
@@ -6,32 +6,30 @@
6
6
  [![JSDocs][jsdocs-src]][jsdocs-href]
7
7
  [![License][license-src]][license-href]
8
8
 
9
- _description_
9
+ ## Обозначения
10
+ _username - имя аккаунта пользователя до 12 символов.
10
11
 
11
- > **Note**:
12
- > Replace `pkg-placeholder`, `_description_` and `antfu` globally to use this template.
12
+ _coopname - имя аккаунта кооператива до 12 символов.
13
13
 
14
- ## Sponsors
14
+ _chairman - имя аккаунта председателя кооператива до 12 символов.
15
15
 
16
- <p align="center">
17
- <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
18
- <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
19
- </a>
20
- </p>
16
+ _admin - имя аккаунта администратора кооператива до 12 символов.
17
+
18
+ _contract - собственное имя аккаунта контракта до 12 символов, в котором вызывается действие.
21
19
 
22
20
  ## License
23
21
 
24
- [MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/antfu)
22
+ [MIT](./LICENSE) License © 2024-PRESENT [Alex Ant](https://github.com/dacom-dark-sun)
25
23
 
26
24
  <!-- Badges -->
27
25
 
28
- [npm-version-src]: https://img.shields.io/npm/v/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
29
- [npm-version-href]: https://npmjs.com/package/pkg-placeholder
30
- [npm-downloads-src]: https://img.shields.io/npm/dm/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
31
- [npm-downloads-href]: https://npmjs.com/package/pkg-placeholder
32
- [bundle-src]: https://img.shields.io/bundlephobia/minzip/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669&label=minzip
33
- [bundle-href]: https://bundlephobia.com/result?p=pkg-placeholder
34
- [license-src]: https://img.shields.io/github/license/antfu/pkg-placeholder.svg?style=flat&colorA=080f12&colorB=1fa669
35
- [license-href]: https://github.com/antfu/pkg-placeholder/blob/main/LICENSE
26
+ [npm-version-src]: https://img.shields.io/npm/v/cooptypes?style=flat&colorA=080f12&colorB=1fa669
27
+ [npm-version-href]: https://npmjs.com/package/cooptypes
28
+ [npm-downloads-src]: https://img.shields.io/npm/dm/cooptypes?style=flat&colorA=080f12&colorB=1fa669
29
+ [npm-downloads-href]: https://npmjs.com/package/cooptypes
30
+ [bundle-src]: https://img.shields.io/bundlephobia/minzip/cooptypes?style=flat&colorA=080f12&colorB=1fa669&label=minzip
31
+ [bundle-href]: https://bundlephobia.com/result?p=cooptypes
32
+ [license-src]: https://img.shields.io/github/license/intellect-run/cooptypes.svg?style=flat&colorA=080f12&colorB=1fa669
33
+ [license-href]: https://github.com/intellect-run/cooptypes/blob/main/LICENSE
36
34
  [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
37
- [jsdocs-href]: https://www.jsdocs.io/package/pkg-placeholder
35
+ [jsdocs-href]: https://www.jsdocs.io/package/cooptypes
package/dist/index.cjs CHANGED
@@ -1,7 +1,381 @@
1
1
  'use strict';
2
2
 
3
- const one = 1;
4
- const two = 2;
3
+ const _draft = {
4
+ production: "draft",
5
+ testnet: "drafttest222"
6
+ };
7
+ const _fund = {
8
+ production: "fund",
9
+ testnet: "fundtest2222"
10
+ };
11
+ const _gateway = {
12
+ production: "gateway",
13
+ testnet: "gateway2222"
14
+ };
15
+ const _system$1 = {
16
+ production: "eosio",
17
+ testnet: "eosio"
18
+ };
19
+ const _soviet = {
20
+ production: "soviet",
21
+ testnet: "soviettest22"
22
+ };
23
+ const _marketplace = {
24
+ production: "marketplace",
25
+ testnet: "markettest22"
26
+ };
5
27
 
6
- exports.one = one;
7
- exports.two = two;
28
+ const index$y = {
29
+ __proto__: null,
30
+ _draft: _draft,
31
+ _fund: _fund,
32
+ _gateway: _gateway,
33
+ _marketplace: _marketplace,
34
+ _soviet: _soviet,
35
+ _system: _system$1
36
+ };
37
+
38
+ const active = "active";
39
+ const owner = "owner";
40
+ const special = {
41
+ contract: "_contract",
42
+ action: "actionName"
43
+ };
44
+
45
+ const index$x = {
46
+ __proto__: null,
47
+ active: active,
48
+ owner: owner,
49
+ special: special
50
+ };
51
+
52
+ const authorizations$j = [{ permissions: [active], actor: _system$1 }];
53
+ const actionName$j = "createtrans";
54
+
55
+ const index$w = {
56
+ __proto__: null,
57
+ actionName: actionName$j,
58
+ authorizations: authorizations$j
59
+ };
60
+
61
+ const authorizations$i = [{ permissions: [active], actor: _system$1 }];
62
+ const actionName$i = "createdraft";
63
+
64
+ const index$v = {
65
+ __proto__: null,
66
+ actionName: actionName$i,
67
+ authorizations: authorizations$i
68
+ };
69
+
70
+ const authorizations$h = [{ permissions: [active], actor: _system$1 }];
71
+ const actionName$h = "deldraft";
72
+
73
+ const index$u = {
74
+ __proto__: null,
75
+ actionName: actionName$h,
76
+ authorizations: authorizations$h
77
+ };
78
+
79
+ const authorizations$g = [{ permissions: [active], actor: _system$1 }];
80
+ const actionName$g = "edittrans";
81
+
82
+ const index$t = {
83
+ __proto__: null,
84
+ actionName: actionName$g,
85
+ authorizations: authorizations$g
86
+ };
87
+
88
+ const authorizations$f = [{ permissions: [active], actor: _draft }];
89
+ const actionName$f = "newid";
90
+
91
+ const index$s = {
92
+ __proto__: null,
93
+ actionName: actionName$f,
94
+ authorizations: authorizations$f
95
+ };
96
+
97
+ const index$r = {
98
+ __proto__: null,
99
+ createDraft: index$v,
100
+ createTranslation: index$w,
101
+ deleteDraft: index$u,
102
+ editTranslation: index$t,
103
+ newId: index$s
104
+ };
105
+
106
+ const _username = "_username";
107
+ const _coopname = "_coopname";
108
+ const _chairman = "_chairman";
109
+ const _admin = "_admin";
110
+ const _contract = "_contract";
111
+ const _system = "_system";
112
+
113
+ const index$q = {
114
+ __proto__: null,
115
+ _admin: _admin,
116
+ _chairman: _chairman,
117
+ _contract: _contract,
118
+ _coopname: _coopname,
119
+ _system: _system,
120
+ _username: _username
121
+ };
122
+
123
+ const tableName$5 = "translations";
124
+ const scope$5 = _contract;
125
+
126
+ const index$p = {
127
+ __proto__: null,
128
+ scope: scope$5,
129
+ tableName: tableName$5
130
+ };
131
+
132
+ const tableName$4 = "drafts";
133
+ const scope$4 = _contract;
134
+
135
+ const index$o = {
136
+ __proto__: null,
137
+ scope: scope$4,
138
+ tableName: tableName$4
139
+ };
140
+
141
+ const index$n = {
142
+ __proto__: null,
143
+ Drafts: index$p,
144
+ Translations: index$o
145
+ };
146
+
147
+ const draft = {
148
+ __proto__: null
149
+ };
150
+
151
+ const contractName$1 = _draft;
152
+
153
+ const index$m = {
154
+ __proto__: null,
155
+ Actions: index$r,
156
+ Interfaces: draft,
157
+ Tables: index$n,
158
+ contractName: contractName$1
159
+ };
160
+
161
+ const authorizations$e = [{ permissions: [active], actor: _fund }];
162
+ const actionName$e = "addaccum";
163
+
164
+ const index$l = {
165
+ __proto__: null,
166
+ actionName: actionName$e,
167
+ authorizations: authorizations$e
168
+ };
169
+
170
+ const authorizations$d = [{ permissions: [active], actor: _fund }];
171
+ const actionName$d = "subaccum";
172
+
173
+ const index$k = {
174
+ __proto__: null,
175
+ actionName: actionName$d,
176
+ authorizations: authorizations$d
177
+ };
178
+
179
+ const authorizations$c = [{ permissions: [active], actor: _gateway }];
180
+ const actionName$c = "addcirculate";
181
+
182
+ const index$j = {
183
+ __proto__: null,
184
+ actionName: actionName$c,
185
+ authorizations: authorizations$c
186
+ };
187
+
188
+ const authorizations$b = [{ permissions: [active], actor: _fund }];
189
+ const actionName$b = "addexpense";
190
+
191
+ const index$i = {
192
+ __proto__: null,
193
+ actionName: actionName$b,
194
+ authorizations: authorizations$b
195
+ };
196
+
197
+ const authorizations$a = [{ permissions: [active], actor: _soviet }];
198
+ const actionName$a = "authorize";
199
+
200
+ const index$h = {
201
+ __proto__: null,
202
+ actionName: actionName$a,
203
+ authorizations: authorizations$a
204
+ };
205
+
206
+ const authorizations$9 = [{ permissions: [active, special], actor: _admin }];
207
+ const actionName$9 = "complete";
208
+
209
+ const index$g = {
210
+ __proto__: null,
211
+ actionName: actionName$9,
212
+ authorizations: authorizations$9
213
+ };
214
+
215
+ const authorizations$8 = [{ permissions: [active], actor: _fund }];
216
+ const actionName$8 = "newfund";
217
+
218
+ const index$f = {
219
+ __proto__: null,
220
+ actionName: actionName$8,
221
+ authorizations: authorizations$8
222
+ };
223
+
224
+ const authorizations$7 = [{ permissions: [active], actor: _chairman }];
225
+ const actionName$7 = "createfund";
226
+
227
+ const index$e = {
228
+ __proto__: null,
229
+ actionName: actionName$7,
230
+ authorizations: authorizations$7
231
+ };
232
+
233
+ const authorizations$6 = [{ permissions: [active], actor: _chairman }];
234
+ const actionName$6 = "delfund";
235
+
236
+ const index$d = {
237
+ __proto__: null,
238
+ actionName: actionName$6,
239
+ authorizations: authorizations$6
240
+ };
241
+
242
+ const authorizations$5 = [{ permissions: [active], actor: _chairman }];
243
+ const actionName$5 = "editfund";
244
+
245
+ const index$c = {
246
+ __proto__: null,
247
+ actionName: actionName$5,
248
+ authorizations: authorizations$5
249
+ };
250
+
251
+ const authorizations$4 = [
252
+ { permissions: [active], actor: _username },
253
+ { permissions: [active, special], actor: _admin },
254
+ { permissions: [active], actor: _contract }
255
+ ];
256
+ const actionName$4 = "fundwithdraw";
257
+
258
+ const index$b = {
259
+ __proto__: null,
260
+ actionName: actionName$4,
261
+ authorizations: authorizations$4
262
+ };
263
+
264
+ const authorizations$3 = [{ permissions: [active], actor: _soviet }];
265
+ const actionName$3 = "init";
266
+
267
+ const index$a = {
268
+ __proto__: null,
269
+ actionName: actionName$3,
270
+ authorizations: authorizations$3
271
+ };
272
+
273
+ const authorizations$2 = [{ permissions: [active], actor: _fund }];
274
+ const actionName$2 = "newwithdraw";
275
+
276
+ const index$9 = {
277
+ __proto__: null,
278
+ actionName: actionName$2,
279
+ authorizations: authorizations$2
280
+ };
281
+
282
+ const authorizations$1 = [{ permissions: [active], actor: _marketplace }, { permissions: [active], actor: _gateway }];
283
+ const actionName$1 = "spreadamount";
284
+
285
+ const index$8 = {
286
+ __proto__: null,
287
+ actionName: actionName$1,
288
+ authorizations: authorizations$1
289
+ };
290
+
291
+ const authorizations = [{ permissions: [active], actor: _gateway }];
292
+ const actionName = "subcirculate";
293
+
294
+ const index$7 = {
295
+ __proto__: null,
296
+ actionName: actionName,
297
+ authorizations: authorizations
298
+ };
299
+
300
+ const index$6 = {
301
+ __proto__: null,
302
+ addAccumulation: index$l,
303
+ addCirculation: index$j,
304
+ addExpence: index$i,
305
+ authorizeWithdraw: index$h,
306
+ completeWithdraw: index$g,
307
+ createFund: index$e,
308
+ createWithdraw: index$b,
309
+ deleteFund: index$d,
310
+ editFund: index$c,
311
+ init: index$a,
312
+ newFund: index$f,
313
+ newWithdraw: index$9,
314
+ spreadAmount: index$8,
315
+ subAccumulation: index$k,
316
+ subCirculation: index$7
317
+ };
318
+
319
+ const tableName$3 = "accfunds";
320
+ const scope$3 = _fund;
321
+
322
+ const index$5 = {
323
+ __proto__: null,
324
+ scope: scope$3,
325
+ tableName: tableName$3
326
+ };
327
+
328
+ const tableName$2 = "expfunds";
329
+ const scope$2 = _fund;
330
+
331
+ const index$4 = {
332
+ __proto__: null,
333
+ scope: scope$2,
334
+ tableName: tableName$2
335
+ };
336
+
337
+ const tableName$1 = "fundwallet";
338
+ const scope$1 = _fund;
339
+
340
+ const index$3 = {
341
+ __proto__: null,
342
+ scope: scope$1,
343
+ tableName: tableName$1
344
+ };
345
+
346
+ const tableName = "fwithdraws";
347
+ const scope = _fund;
348
+
349
+ const index$2 = {
350
+ __proto__: null,
351
+ scope: scope,
352
+ tableName: tableName
353
+ };
354
+
355
+ const index$1 = {
356
+ __proto__: null,
357
+ AccumulatedFunds: index$5,
358
+ ExpensedFunds: index$4,
359
+ FundWallet: index$3,
360
+ FundWithdraws: index$2
361
+ };
362
+
363
+ const fund = {
364
+ __proto__: null
365
+ };
366
+
367
+ const contractName = _fund;
368
+
369
+ const index = {
370
+ __proto__: null,
371
+ Actions: index$6,
372
+ Interfaces: fund,
373
+ Tables: index$1,
374
+ contractName: contractName
375
+ };
376
+
377
+ exports.Actors = index$q;
378
+ exports.ContractNames = index$y;
379
+ exports.DraftContract = index$m;
380
+ exports.FundContract = index;
381
+ exports.Permissions = index$x;