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/dist/index.mjs CHANGED
@@ -1,4 +1,375 @@
1
- const one = 1;
2
- const two = 2;
1
+ const _draft = {
2
+ production: "draft",
3
+ testnet: "drafttest222"
4
+ };
5
+ const _fund = {
6
+ production: "fund",
7
+ testnet: "fundtest2222"
8
+ };
9
+ const _gateway = {
10
+ production: "gateway",
11
+ testnet: "gateway2222"
12
+ };
13
+ const _system$1 = {
14
+ production: "eosio",
15
+ testnet: "eosio"
16
+ };
17
+ const _soviet = {
18
+ production: "soviet",
19
+ testnet: "soviettest22"
20
+ };
21
+ const _marketplace = {
22
+ production: "marketplace",
23
+ testnet: "markettest22"
24
+ };
3
25
 
4
- export { one, two };
26
+ const index$y = {
27
+ __proto__: null,
28
+ _draft: _draft,
29
+ _fund: _fund,
30
+ _gateway: _gateway,
31
+ _marketplace: _marketplace,
32
+ _soviet: _soviet,
33
+ _system: _system$1
34
+ };
35
+
36
+ const active = "active";
37
+ const owner = "owner";
38
+ const special = {
39
+ contract: "_contract",
40
+ action: "actionName"
41
+ };
42
+
43
+ const index$x = {
44
+ __proto__: null,
45
+ active: active,
46
+ owner: owner,
47
+ special: special
48
+ };
49
+
50
+ const authorizations$j = [{ permissions: [active], actor: _system$1 }];
51
+ const actionName$j = "createtrans";
52
+
53
+ const index$w = {
54
+ __proto__: null,
55
+ actionName: actionName$j,
56
+ authorizations: authorizations$j
57
+ };
58
+
59
+ const authorizations$i = [{ permissions: [active], actor: _system$1 }];
60
+ const actionName$i = "createdraft";
61
+
62
+ const index$v = {
63
+ __proto__: null,
64
+ actionName: actionName$i,
65
+ authorizations: authorizations$i
66
+ };
67
+
68
+ const authorizations$h = [{ permissions: [active], actor: _system$1 }];
69
+ const actionName$h = "deldraft";
70
+
71
+ const index$u = {
72
+ __proto__: null,
73
+ actionName: actionName$h,
74
+ authorizations: authorizations$h
75
+ };
76
+
77
+ const authorizations$g = [{ permissions: [active], actor: _system$1 }];
78
+ const actionName$g = "edittrans";
79
+
80
+ const index$t = {
81
+ __proto__: null,
82
+ actionName: actionName$g,
83
+ authorizations: authorizations$g
84
+ };
85
+
86
+ const authorizations$f = [{ permissions: [active], actor: _draft }];
87
+ const actionName$f = "newid";
88
+
89
+ const index$s = {
90
+ __proto__: null,
91
+ actionName: actionName$f,
92
+ authorizations: authorizations$f
93
+ };
94
+
95
+ const index$r = {
96
+ __proto__: null,
97
+ createDraft: index$v,
98
+ createTranslation: index$w,
99
+ deleteDraft: index$u,
100
+ editTranslation: index$t,
101
+ newId: index$s
102
+ };
103
+
104
+ const _username = "_username";
105
+ const _coopname = "_coopname";
106
+ const _chairman = "_chairman";
107
+ const _admin = "_admin";
108
+ const _contract = "_contract";
109
+ const _system = "_system";
110
+
111
+ const index$q = {
112
+ __proto__: null,
113
+ _admin: _admin,
114
+ _chairman: _chairman,
115
+ _contract: _contract,
116
+ _coopname: _coopname,
117
+ _system: _system,
118
+ _username: _username
119
+ };
120
+
121
+ const tableName$5 = "translations";
122
+ const scope$5 = _contract;
123
+
124
+ const index$p = {
125
+ __proto__: null,
126
+ scope: scope$5,
127
+ tableName: tableName$5
128
+ };
129
+
130
+ const tableName$4 = "drafts";
131
+ const scope$4 = _contract;
132
+
133
+ const index$o = {
134
+ __proto__: null,
135
+ scope: scope$4,
136
+ tableName: tableName$4
137
+ };
138
+
139
+ const index$n = {
140
+ __proto__: null,
141
+ Drafts: index$p,
142
+ Translations: index$o
143
+ };
144
+
145
+ const draft = {
146
+ __proto__: null
147
+ };
148
+
149
+ const contractName$1 = _draft;
150
+
151
+ const index$m = {
152
+ __proto__: null,
153
+ Actions: index$r,
154
+ Interfaces: draft,
155
+ Tables: index$n,
156
+ contractName: contractName$1
157
+ };
158
+
159
+ const authorizations$e = [{ permissions: [active], actor: _fund }];
160
+ const actionName$e = "addaccum";
161
+
162
+ const index$l = {
163
+ __proto__: null,
164
+ actionName: actionName$e,
165
+ authorizations: authorizations$e
166
+ };
167
+
168
+ const authorizations$d = [{ permissions: [active], actor: _fund }];
169
+ const actionName$d = "subaccum";
170
+
171
+ const index$k = {
172
+ __proto__: null,
173
+ actionName: actionName$d,
174
+ authorizations: authorizations$d
175
+ };
176
+
177
+ const authorizations$c = [{ permissions: [active], actor: _gateway }];
178
+ const actionName$c = "addcirculate";
179
+
180
+ const index$j = {
181
+ __proto__: null,
182
+ actionName: actionName$c,
183
+ authorizations: authorizations$c
184
+ };
185
+
186
+ const authorizations$b = [{ permissions: [active], actor: _fund }];
187
+ const actionName$b = "addexpense";
188
+
189
+ const index$i = {
190
+ __proto__: null,
191
+ actionName: actionName$b,
192
+ authorizations: authorizations$b
193
+ };
194
+
195
+ const authorizations$a = [{ permissions: [active], actor: _soviet }];
196
+ const actionName$a = "authorize";
197
+
198
+ const index$h = {
199
+ __proto__: null,
200
+ actionName: actionName$a,
201
+ authorizations: authorizations$a
202
+ };
203
+
204
+ const authorizations$9 = [{ permissions: [active, special], actor: _admin }];
205
+ const actionName$9 = "complete";
206
+
207
+ const index$g = {
208
+ __proto__: null,
209
+ actionName: actionName$9,
210
+ authorizations: authorizations$9
211
+ };
212
+
213
+ const authorizations$8 = [{ permissions: [active], actor: _fund }];
214
+ const actionName$8 = "newfund";
215
+
216
+ const index$f = {
217
+ __proto__: null,
218
+ actionName: actionName$8,
219
+ authorizations: authorizations$8
220
+ };
221
+
222
+ const authorizations$7 = [{ permissions: [active], actor: _chairman }];
223
+ const actionName$7 = "createfund";
224
+
225
+ const index$e = {
226
+ __proto__: null,
227
+ actionName: actionName$7,
228
+ authorizations: authorizations$7
229
+ };
230
+
231
+ const authorizations$6 = [{ permissions: [active], actor: _chairman }];
232
+ const actionName$6 = "delfund";
233
+
234
+ const index$d = {
235
+ __proto__: null,
236
+ actionName: actionName$6,
237
+ authorizations: authorizations$6
238
+ };
239
+
240
+ const authorizations$5 = [{ permissions: [active], actor: _chairman }];
241
+ const actionName$5 = "editfund";
242
+
243
+ const index$c = {
244
+ __proto__: null,
245
+ actionName: actionName$5,
246
+ authorizations: authorizations$5
247
+ };
248
+
249
+ const authorizations$4 = [
250
+ { permissions: [active], actor: _username },
251
+ { permissions: [active, special], actor: _admin },
252
+ { permissions: [active], actor: _contract }
253
+ ];
254
+ const actionName$4 = "fundwithdraw";
255
+
256
+ const index$b = {
257
+ __proto__: null,
258
+ actionName: actionName$4,
259
+ authorizations: authorizations$4
260
+ };
261
+
262
+ const authorizations$3 = [{ permissions: [active], actor: _soviet }];
263
+ const actionName$3 = "init";
264
+
265
+ const index$a = {
266
+ __proto__: null,
267
+ actionName: actionName$3,
268
+ authorizations: authorizations$3
269
+ };
270
+
271
+ const authorizations$2 = [{ permissions: [active], actor: _fund }];
272
+ const actionName$2 = "newwithdraw";
273
+
274
+ const index$9 = {
275
+ __proto__: null,
276
+ actionName: actionName$2,
277
+ authorizations: authorizations$2
278
+ };
279
+
280
+ const authorizations$1 = [{ permissions: [active], actor: _marketplace }, { permissions: [active], actor: _gateway }];
281
+ const actionName$1 = "spreadamount";
282
+
283
+ const index$8 = {
284
+ __proto__: null,
285
+ actionName: actionName$1,
286
+ authorizations: authorizations$1
287
+ };
288
+
289
+ const authorizations = [{ permissions: [active], actor: _gateway }];
290
+ const actionName = "subcirculate";
291
+
292
+ const index$7 = {
293
+ __proto__: null,
294
+ actionName: actionName,
295
+ authorizations: authorizations
296
+ };
297
+
298
+ const index$6 = {
299
+ __proto__: null,
300
+ addAccumulation: index$l,
301
+ addCirculation: index$j,
302
+ addExpence: index$i,
303
+ authorizeWithdraw: index$h,
304
+ completeWithdraw: index$g,
305
+ createFund: index$e,
306
+ createWithdraw: index$b,
307
+ deleteFund: index$d,
308
+ editFund: index$c,
309
+ init: index$a,
310
+ newFund: index$f,
311
+ newWithdraw: index$9,
312
+ spreadAmount: index$8,
313
+ subAccumulation: index$k,
314
+ subCirculation: index$7
315
+ };
316
+
317
+ const tableName$3 = "accfunds";
318
+ const scope$3 = _fund;
319
+
320
+ const index$5 = {
321
+ __proto__: null,
322
+ scope: scope$3,
323
+ tableName: tableName$3
324
+ };
325
+
326
+ const tableName$2 = "expfunds";
327
+ const scope$2 = _fund;
328
+
329
+ const index$4 = {
330
+ __proto__: null,
331
+ scope: scope$2,
332
+ tableName: tableName$2
333
+ };
334
+
335
+ const tableName$1 = "fundwallet";
336
+ const scope$1 = _fund;
337
+
338
+ const index$3 = {
339
+ __proto__: null,
340
+ scope: scope$1,
341
+ tableName: tableName$1
342
+ };
343
+
344
+ const tableName = "fwithdraws";
345
+ const scope = _fund;
346
+
347
+ const index$2 = {
348
+ __proto__: null,
349
+ scope: scope,
350
+ tableName: tableName
351
+ };
352
+
353
+ const index$1 = {
354
+ __proto__: null,
355
+ AccumulatedFunds: index$5,
356
+ ExpensedFunds: index$4,
357
+ FundWallet: index$3,
358
+ FundWithdraws: index$2
359
+ };
360
+
361
+ const fund = {
362
+ __proto__: null
363
+ };
364
+
365
+ const contractName = _fund;
366
+
367
+ const index = {
368
+ __proto__: null,
369
+ Actions: index$6,
370
+ Interfaces: fund,
371
+ Tables: index$1,
372
+ contractName: contractName
373
+ };
374
+
375
+ export { index$q as Actors, index$y as ContractNames, index$m as DraftContract, index as FundContract, index$x as Permissions };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cooptypes",
3
3
  "type": "module",
4
- "version": "0.0.4",
4
+ "version": "0.1.0",
5
5
  "packageManager": "pnpm@9.0.6",
6
6
  "description": "_description_",
7
7
  "author": "Alex Ant <dacom.dark.sun@gmail.com>",
@@ -45,21 +45,25 @@
45
45
  "prepare": "simple-git-hooks"
46
46
  },
47
47
  "devDependencies": {
48
- "@antfu/eslint-config": "^2.14.0",
48
+ "@antfu/eslint-config": "^2.16.0",
49
49
  "@antfu/ni": "^0.21.12",
50
50
  "@antfu/utils": "^0.7.7",
51
51
  "@types/node": "^20.12.7",
52
+ "better-docs": "^2.7.3",
52
53
  "bumpp": "^9.4.0",
53
- "eslint": "^9.0.0",
54
+ "eslint": "^9.1.1",
54
55
  "esno": "^4.7.0",
56
+ "jsdoc": "^4.0.2",
55
57
  "lint-staged": "^15.2.2",
56
- "pnpm": "^9.0.2",
58
+ "pnpm": "^9.0.6",
57
59
  "rimraf": "^5.0.5",
58
60
  "simple-git-hooks": "^2.11.1",
61
+ "typedoc": "^0.25.13",
62
+ "typedoc-plugin-inline-sources": "^1.0.2",
59
63
  "typescript": "^5.4.5",
60
64
  "unbuild": "^2.0.0",
61
- "vite": "^5.2.9",
62
- "vitest": "^1.5.0"
65
+ "vite": "^5.2.10",
66
+ "vitest": "^1.5.2"
63
67
  },
64
68
  "simple-git-hooks": {
65
69
  "pre-commit": "pnpm lint-staged"