wowok 1.4.35 → 1.5.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wowok",
3
- "version": "1.4.35",
3
+ "version": "1.5.36",
4
4
  "description": "Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/guard.ts CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- import { Protocol, LogicsInfo, GuardAddress, FnCallType, Data_Type, MODULES, ContextType, ValueType, OperatorType, SER_VALUE} from './protocol';
3
+ import { Protocol, LogicsInfo, GuardAddress, FnCallType, Data_Type, MODULES, ContextType, ValueType, OperatorType, TxbObject, GuardObject} from './protocol';
4
4
  import { concatenate, array_equal } from './utils';
5
5
  import { IsValidDesription, Bcs, IsValidInt, IsValidAddress, FirstLetterUppercase, insertAtHead } from './utils';
6
6
  import { ERROR, Errors } from './exception';
@@ -23,7 +23,22 @@ export interface Guard_Options {
23
23
 
24
24
  export class Guard {
25
25
  static MAX_INPUT_LENGTH = 10240;
26
- static launch(txb:TransactionBlock, description:string, maker:GuardMaker) : GuardAddress {
26
+ protected txb;
27
+ protected object : TxbObject;
28
+ get_object() { return this.object }
29
+
30
+ static From(txb:TransactionBlock, object:TxbObject) : Guard {
31
+ let d = new Guard(txb)
32
+ d.object = Protocol.TXB_OBJECT(txb, object)
33
+ return d
34
+ }
35
+
36
+ private constructor(txb:TransactionBlock) {
37
+ this.txb = txb;
38
+ this.object = '';
39
+ }
40
+
41
+ static New(txb:TransactionBlock, description:string, maker:GuardMaker) : Guard {
27
42
  if (!maker.IsReady()) {
28
43
  ERROR(Errors.InvalidParam, 'launch maker');
29
44
  }
@@ -50,7 +65,8 @@ export class Guard {
50
65
  let input = new Uint8Array(bcs_input); // copy new uint8array to reserve!
51
66
 
52
67
  // reserve the bytes for guard
53
- let guard = txb.moveCall({
68
+ let g = new Guard(txb);
69
+ g.object = txb.moveCall({
54
70
  target: Protocol.Instance().GuardFn('new') as FnCallType,
55
71
  arguments: [txb.pure.string(description), txb.pure.vector('u8', [].slice.call(input.reverse()))],
56
72
  });
@@ -60,20 +76,23 @@ export class Guard {
60
76
  const n = new Uint8Array(1); n.set([v.type], 0);
61
77
  txb.moveCall({
62
78
  target:Protocol.Instance().GuardFn("constant_add") as FnCallType,
63
- arguments:[guard, txb.pure.u8(k), txb.pure.bool(true), txb.pure.vector('u8', [].slice.call(n)), txb.pure.bool(true)]
79
+ arguments:[txb.object(g.object), txb.pure.u8(k), txb.pure.bool(true), txb.pure.vector('u8', [].slice.call(n)), txb.pure.bool(true)]
64
80
  })
65
81
  } else {
66
82
  const n = insertAtHead(v.value!, v.type);
67
83
  txb.moveCall({
68
84
  target:Protocol.Instance().GuardFn("constant_add") as FnCallType,
69
- arguments:[guard, txb.pure.u8(k), txb.pure.bool(false), txb.pure.vector('u8', [].slice.call(n)), txb.pure.bool(true)]
85
+ arguments:[txb.object(g.object), txb.pure.u8(k), txb.pure.bool(false), txb.pure.vector('u8', [].slice.call(n)), txb.pure.bool(true)]
70
86
  })
71
87
  }
72
88
  });
73
-
74
- return txb.moveCall({
89
+ return g
90
+ }
91
+
92
+ launch() : GuardAddress {
93
+ return this.txb.moveCall({
75
94
  target:Protocol.Instance().GuardFn("create") as FnCallType,
76
- arguments:[guard]
95
+ arguments:[this.txb.object(this.object)]
77
96
  });
78
97
  }
79
98
 
@@ -124,7 +143,7 @@ export class Guard {
124
143
  [MODULES.repository, 'Address Vector Data', 119, [ValueType.TYPE_ADDRESS, ValueType.TYPE_STRING], ValueType.TYPE_VEC_ADDRESS, 'Data for a field at an address and get address vector type data.', ['address', 'the field name']],
125
144
  [MODULES.repository, 'Bool Vector Data', 120, [ValueType.TYPE_ADDRESS, ValueType.TYPE_STRING], ValueType.TYPE_VEC_BOOL, 'Data for a field at an address and get bool vector type data.', ['address', 'the field name']],
126
145
 
127
- [MODULES.entity, 'Contains Entity?', 200, [ValueType.TYPE_ADDRESS], ValueType.TYPE_BOOL, 'Is an entity already registered?', ['address']],
146
+ [MODULES.entity, 'Has Entity', 200, [ValueType.TYPE_ADDRESS], ValueType.TYPE_BOOL, 'Is an entity already registered?', ['address']],
128
147
  [MODULES.entity, 'Likes', 201, [ValueType.TYPE_ADDRESS], ValueType.TYPE_U64, 'The number of likes for an address by other addresses.', ['address']],
129
148
  [MODULES.entity, 'Dislikes', 202, [ValueType.TYPE_ADDRESS], ValueType.TYPE_U64, 'The number of dislikes for an address by other addresses.', ['address']],
130
149
  [MODULES.entity, 'Entity Info', 203, [ValueType.TYPE_ADDRESS], ValueType.TYPE_VEC_U8, 'Public information about an entity.', ['address']],
@@ -162,6 +181,8 @@ export class Guard {
162
181
  [MODULES.service, 'Has Required Info', 416, [], ValueType.TYPE_BOOL, 'Whether the necessary information that needs to be provided by the customer is set?', []],
163
182
  [MODULES.service, 'Required Info of Service-Pubkey', 417, [], ValueType.TYPE_STRING, 'The public key used to encrypt customer information, and only the service provider can decrypt and view customer information.', []],
164
183
  [MODULES.service, 'Required Info', 418, [], ValueType.TYPE_VEC_STRING, 'Names of the required information item that needs to be provided by the customer.', []],
184
+ [MODULES.service, 'Number of Treasuries', 419, [], ValueType.TYPE_U64, 'The number of treasuries that can be externally withdrawn for purposes such as compensation or incentives.', []],
185
+ [MODULES.service, 'Contains Treasury', 420, [ValueType.TYPE_ADDRESS], ValueType.TYPE_BOOL, 'Does it contain externally withdrawable Treasury for purposes such as compensation or incentives?', ['treasury address']],
165
186
 
166
187
  [MODULES.order, 'Amount', 500, [], ValueType.TYPE_U64, 'Order amount.', []],
167
188
  [MODULES.order, 'Payer', 501, [], ValueType.TYPE_ADDRESS, 'Order payer.', []],
@@ -216,13 +237,13 @@ export class Guard {
216
237
  [MODULES.progress, 'Parent Next Node', 814, [], ValueType.TYPE_STRING, 'The child process is started at the next node stage of the parent process.', []],
217
238
  [MODULES.progress, 'Parent Forward', 815, [], ValueType.TYPE_STRING, 'The child process is started in the Forward phase of the next node of the parent process.', []],
218
239
  [MODULES.progress, 'Parent Node', 816, [], ValueType.TYPE_STRING, 'The node name of the parent process where the child process is located.', []],
219
- [MODULES.progress, 'Forward Accomplished', 817, [ValueType.TYPE_U64, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_BOOL, 'Has a forward been accomplished?', ['session-id', 'next node name', 'forward name']],
240
+ [MODULES.progress, 'Forward Accomplished', 817, [ValueType.TYPE_U64, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_BOOL, 'Has the forward been accomplished?', ['session-id', 'next node name', 'forward name']],
220
241
  [MODULES.progress, 'Forward Operator', 818, [ValueType.TYPE_U64, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_ADDRESS, 'The forward operator.', ['session-id', 'next node name', 'forward name']],
221
242
  [MODULES.progress, 'Forward Sub-progress', 819, [ValueType.TYPE_U64, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_ADDRESS, 'The forward child process address(if set).', ['session-id', 'next node name', 'forward name']],
222
243
  [MODULES.progress, 'Forward Deliverables', 820, [ValueType.TYPE_U64, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_ADDRESS, 'The forward deliverable(if set).', ['session-id', 'next node name', 'forward name']],
223
244
  [MODULES.progress, 'Forward time', 821, [ValueType.TYPE_U64, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_U64, 'The time when the forward was last triggered.', ['session-id', 'next node name', 'forward name']],
224
245
  [MODULES.progress, 'Closest Session Time', 822, [ValueType.TYPE_STRING], ValueType.TYPE_U64, 'The time a node that closest time to the current node completes its session.', ['node name']],
225
- [MODULES.progress, 'Closest Forward Accomplished', 823, [ValueType.TYPE_STRING, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_BOOL, 'Has a forward been accomplished?', ['node name', 'next node name', 'forward name']],
246
+ [MODULES.progress, 'Closest Forward Accomplished', 823, [ValueType.TYPE_STRING, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_BOOL, 'Has the forward been accomplished?', ['node name', 'next node name', 'forward name']],
226
247
  [MODULES.progress, 'Closest Forward Operator', 824, [ValueType.TYPE_STRING, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_ADDRESS, 'The operator of the forward that closest time to the current node.', ['node name', 'next node name', 'forward name']],
227
248
  [MODULES.progress, 'Closest Forward Sub-progress', 825, [ValueType.TYPE_STRING, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_ADDRESS, 'The child process address(if set) of the forward that closest time to the current node.', ['node name', 'next node name', 'forward name']],
228
249
  [MODULES.progress, 'Closest Forward Deliverables', 826, [ValueType.TYPE_STRING, ValueType.TYPE_STRING, ValueType.TYPE_STRING], ValueType.TYPE_ADDRESS, 'The deliverable(if set) of the forward that closest time to the current node.', ['node name', 'next node name', 'forward name']],
@@ -321,6 +342,31 @@ export class Guard {
321
342
  [MODULES.treasury, 'Has Operation with Pmt/Sgr', 1425, [ValueType.TYPE_U8, ValueType.TYPE_ADDRESS, ValueType.TYPE_ADDRESS], ValueType.TYPE_BOOL, 'Whether there was a fund operation?', ['operation', 'payment address', 'singer address']],
322
343
  [MODULES.treasury, 'Operation at Least Times', 1426, [ValueType.TYPE_U8, ValueType.TYPE_U8], ValueType.TYPE_BOOL, 'Does it operate at least a certain number of times?', ['operation', 'at least times']],
323
344
  [MODULES.treasury, 'Operation at Least Times by a Signer', 1427, [ValueType.TYPE_U8, ValueType.TYPE_ADDRESS, ValueType.TYPE_U8], ValueType.TYPE_BOOL, 'Does it operate at least a certain number of times by a signer?', ['operation', 'signer address', 'at least times']],
345
+
346
+ [MODULES.arbitration, 'Permission', 1500, [], ValueType.TYPE_ADDRESS, 'Permission object address.', []],
347
+ [MODULES.arbitration, 'Published', 1501, [], ValueType.TYPE_BOOL, "Is it allowed to create Arb?", []],
348
+ [MODULES.arbitration, 'Fee', 1502, [], ValueType.TYPE_U64, 'Cost of arbitration.', []],
349
+ [MODULES.arbitration, 'Has Endpoint', 1503, [], ValueType.TYPE_BOOL, 'Is the endpoint set?', []],
350
+ [MODULES.arbitration, 'Endpoint', 1504, [], ValueType.TYPE_STRING, 'Endpoint url/ipfs.', []],
351
+ [MODULES.arbitration, 'Has Guard', 1505, [], ValueType.TYPE_BOOL, 'Is there Guard set to apply for arbitration?', []],
352
+ [MODULES.arbitration, 'Guard', 1506, [], ValueType.TYPE_ADDRESS, 'Guard to apply for arbitration.', []],
353
+ [MODULES.arbitration, 'Number of Voting Guard', 1507, [], ValueType.TYPE_U64, 'Number of voting guards.', []],
354
+ [MODULES.arbitration, 'Has Voting Guard', 1508, [ValueType.TYPE_ADDRESS], ValueType.TYPE_BOOL, 'Has the voting Guard added?', ['guard address']],
355
+ [MODULES.arbitration, 'Voting Weight', 1509, [ValueType.TYPE_ADDRESS], ValueType.TYPE_U64, 'Voting weight of the voting Guard.', ['guard address']],
356
+
357
+ [MODULES.arb, 'Order', 1600, [], ValueType.TYPE_ADDRESS, 'Order under arbitration.', []],
358
+ [MODULES.arb, 'Arbitration', 1601, [], ValueType.TYPE_ADDRESS, "Arbitration object address.", []],
359
+ [MODULES.arb, 'Feedback', 1602, [], ValueType.TYPE_STRING, 'Arbitration feedback.', []],
360
+ [MODULES.arb, 'Has Compensation', 1603, [], ValueType.TYPE_BOOL, 'Whether there is an arbitration result?', []],
361
+ [MODULES.arb, 'Compensation', 1604, [], ValueType.TYPE_U64, 'Compensation should be given to the order payer.', []],
362
+ [MODULES.arb, 'Unclaimed Arbitration Costs', 1605, [], ValueType.TYPE_U64, 'Unclaimed arbitration costs.', []],
363
+ [MODULES.arb, 'Turnout', 1606, [], ValueType.TYPE_U64, 'The number of addresses have voted.', []],
364
+ [MODULES.arb, 'Has voted', 1607, [ValueType.TYPE_ADDRESS], ValueType.TYPE_BOOL, 'Has someone voted?', ['voter address']],
365
+ [MODULES.arb, 'Voting weight', 1608, [ValueType.TYPE_ADDRESS], ValueType.TYPE_U64, 'The weight of a complete vote for the address.', ['voter address']],
366
+ [MODULES.arb, 'Voting Time', 1609, [ValueType.TYPE_ADDRESS], ValueType.TYPE_U64, 'The time of a complete vote for the address.', ['voter address']],
367
+ [MODULES.arb, 'Voting Option', 1610, [ValueType.TYPE_ADDRESS, ValueType.TYPE_U8], ValueType.TYPE_BOOL, 'Does an address complete voting for the option?', ['voter address', 'option index']],
368
+ [MODULES.arb, 'Number of Options', 1611, [], ValueType.TYPE_U64, 'Number of voting options.', []],
369
+ [MODULES.arb, 'Number of Votes', 1612, [ValueType.TYPE_U8], ValueType.TYPE_U64, 'The number of votes received for an option.', ['option index']],
324
370
  ];
325
371
 
326
372
  static BoolCmd = Guard.QUERIES.filter(q => q[4] === ValueType.TYPE_BOOL);
package/src/machine.ts CHANGED
@@ -543,12 +543,5 @@ export class Machine {
543
543
  })
544
544
  }
545
545
  static INITIAL_NODE_NAME = '';
546
- /* static NODE_NAME_RESERVED = 'origin';
547
- static IsNodeNameReserved = (name:string) => {
548
- return name.toLowerCase() === Machine.NODE_NAME_RESERVED
549
- }*/
550
- static SolveNodeName = (name:string) => {
551
- return name ? name : '⚪';
552
- }
553
546
  static OPERATOR_ORDER_PAYER = 'OrderPayer';
554
547
  }
package/src/permission.ts CHANGED
@@ -45,6 +45,7 @@ export enum PermissionIndex {
45
45
  service_customer_required = 222,
46
46
  //service_change_order_required_pubkey = 224,
47
47
  service_pause = 225,
48
+ service_treasury = 226,
48
49
 
49
50
  reward = 240,
50
51
  reward_refund = 241,
@@ -87,6 +88,17 @@ export enum PermissionIndex {
87
88
  treasury_withdraw_mode = 706,
88
89
  treasury_withdraw_guard = 707,
89
90
 
91
+ arbitration = 800,
92
+ arbitration_description = 801,
93
+ arbitration_fee = 802,
94
+ arbitration_voting_guard = 803,
95
+ arbitration_endpoint = 804,
96
+ arbitration_guard = 805,
97
+ arbitration_publish = 806,
98
+ arbitration_vote = 807,
99
+ arbitration_arbitration = 808,
100
+ arbitration_withdraw = 809,
101
+
90
102
  user_defined_start = 1000,
91
103
  }
92
104
 
@@ -147,11 +159,12 @@ export const PermissionInfo : PermissionInfoType[] = [
147
159
  {index:PermissionIndex.service_buyer_guard, name:'Buyer Guard', description:'Set Guard of buying for Service', module: 'service'},
148
160
  {index:PermissionIndex.service_machine, name:'Machine', description:'Set Machine for Service', module: 'service'},
149
161
  {index:PermissionIndex.service_endpoint, name:'Endpoint', description:'Set Service endpoint', module: 'service'},
150
- {index:PermissionIndex.service_publish, name:'Publish', description:'Publish Service', module: 'service'},
162
+ {index:PermissionIndex.service_publish, name:'Publish', description:'Allowing the creation of Order', module: 'service'},
151
163
  {index:PermissionIndex.service_clone, name:'Clone', description:'Clone Service', module: 'service'},
152
164
  {index:PermissionIndex.service_customer_required, name:'Buyer info', description:'Set Service buyer info required', module: 'service'},
153
165
  //{index:PermissionIndex.service_change_order_required_pubkey, name:'Order pubkey', description:'Update Serivce order pubkey', module: 'service'},
154
166
  {index:PermissionIndex.service_pause, name:'Pause', description:'Pause/Unpause Service', module: 'service'},
167
+ {index:PermissionIndex.service_treasury, name:'Treasury', description:'Externally withdrawable treasury for compensation or rewards', module: 'service'},
155
168
 
156
169
  {index:PermissionIndex.reward, name:'reward', description:'Launch new reward', module: 'reward'},
157
170
  {index:PermissionIndex.reward_refund, name:'Refund', description:'Refund from reward', module: 'reward'},
@@ -176,7 +189,7 @@ export const PermissionInfo : PermissionInfoType[] = [
176
189
  {index:PermissionIndex.machine_node, name: 'Node', description:'Set Machine nodes', module: 'machine'},
177
190
  {index:PermissionIndex.machine_endpoint, name: 'Endpoint', description:'Set Machine endpoint', module: 'machine'},
178
191
  {index:PermissionIndex.machine_pause, name: 'Pause', description:'Pause/Unpause Machine', module: 'machine'},
179
- {index:PermissionIndex.machine_publish, name: 'Publish', description:'Publish Machine', module: 'machine'},
192
+ {index:PermissionIndex.machine_publish, name: 'Publish', description:'Allowing the creation of Progress', module: 'machine'},
180
193
 
181
194
  {index:PermissionIndex.progress, name: 'Progress', description:'Launch new Progress', module: 'progress'},
182
195
  {index:PermissionIndex.progress_namedOperator, name: 'Operator', description:'Set Progress operators', module: 'progress'},
@@ -192,6 +205,18 @@ export const PermissionInfo : PermissionInfoType[] = [
192
205
  {index:PermissionIndex.treasury_withdraw_guard, name: 'Withdraw Guard', description:'Add/Remove Treasury withdraw guard', module: 'treasury'},
193
206
  {index:PermissionIndex.treasury_withdraw_mode, name: 'Withdraw mode', description:'Set Treasury withdraw mode', module: 'treasury'},
194
207
  {index:PermissionIndex.treasury_deposit_guard, name: 'Deposit Guard', description:'Set Treasury deposit guard', module: 'treasury'},
208
+ {index:PermissionIndex.treasury_descritption, name: 'Description', description:'Set Treasury description', module: 'treasury'},
209
+
210
+ {index:PermissionIndex.arbitration, name: 'Arbitration', description:'Launch new Arbitration', module: 'arbitration'},
211
+ {index:PermissionIndex.arbitration_description, name: 'Description', description:'Set Arbitration description', module: 'arbitration'},
212
+ {index:PermissionIndex.arbitration_endpoint, name: 'Endpoint', description:'Set Arbitration endpoint', module: 'arbitration'},
213
+ {index:PermissionIndex.arbitration_fee, name: 'Fee', description:'Set Arbitration fee', module: 'arbitration'},
214
+ {index:PermissionIndex.arbitration_guard, name: 'Guard', description:'Set Guard to apply for arbitration', module: 'arbitration'},
215
+ {index:PermissionIndex.arbitration_arbitration, name: 'Arbitrate', description:'Determine the outcome of arbitration', module: 'arbitration'},
216
+ {index:PermissionIndex.arbitration_publish, name: 'Publish', description:'Allowing the creation of Arb', module: 'arbitration'},
217
+ {index:PermissionIndex.arbitration_voting_guard, name: 'Voting Guard', description:'Add/Remove voting Guard', module: 'arbitration'},
218
+ {index:PermissionIndex.arbitration_vote, name: 'Vote', description:'Vote on the application for arbitration', module: 'arbitration'},
219
+ {index:PermissionIndex.arbitration_withdraw, name: 'Withdraw', description:'Withdraw the arbitration fee', module: 'arbitration'},
195
220
  ]
196
221
 
197
222
  export type PermissionIndexType = PermissionIndex | number;
package/src/protocol.ts CHANGED
@@ -24,6 +24,8 @@ export enum MODULES {
24
24
  wowok = 'wowok',
25
25
  treasury = 'treasury',
26
26
  payment = 'payment',
27
+ arbitration = 'arbitration',
28
+ arb = 'arb',
27
29
  }
28
30
 
29
31
  export type PermissionAddress = TransactionResult;
@@ -213,11 +215,11 @@ const TESTNET = {
213
215
  }
214
216
  */
215
217
  const TESTNET = {
216
- wowok: "0x93a47e2e77b150258877b31a49d6e2dbda58c7840f14a99aeb658bddb3d0d021",
217
- wowok_origin:'0x93a47e2e77b150258877b31a49d6e2dbda58c7840f14a99aeb658bddb3d0d021' ,
218
+ wowok: "0xd8909c47713ee1199f41caaccff1a822cd82512e0ec4f9e7af04e71d3db6cb4b",
219
+ wowok_origin:'0xd8909c47713ee1199f41caaccff1a822cd82512e0ec4f9e7af04e71d3db6cb4b' ,
218
220
  base: '0x7efcdab72af2351e5915e34ad2ac8d4ea7f4f408e08138d3498af35a362db782',
219
- wowok_object: '0xdc4f31084f0f0ceb8c59feb78a361091fa84d54d562e28302f2b02b1d22e2905',
220
- entity_object: '0xbf547b1185c458a2498baf7235ce9824740e4c2fce27440354f342f9ccc79de0',
221
+ wowok_object: '0xb1105b665e0bc583cb91e80c7ea17cb35f5f145ccda25145328db1c1b984ea1a',
222
+ entity_object: '0x9d5a8823ccdbc369097d74672d25ac2045bce9bfb993858441513469469a44d0',
221
223
  treasury_cap:'0x538cf8f32d59f58c0450a3a97c1eeed3096f4ce63e07e0bdf343a5cc1464887c',
222
224
  }
223
225
  const MAINNET = {
package/src/reward.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /*****************
2
+ * depreacted
3
+ ******************/
4
+
1
5
  import { TransactionArgument, Transaction as TransactionBlock, type TransactionResult, } from '@mysten/sui/transactions';
2
6
  import { FnCallType, GuardObject, PassportObject, PermissionObject, RewardAddress, Protocol, TxbObject, } from './protocol';
3
7
  import { array_unique, IsValidAddress, IsValidArgType, IsValidArray, IsValidDesription, IsValidU64, parseObjectType} from './utils';
package/src/vote.ts CHANGED
@@ -1,3 +1,8 @@
1
+
2
+ /*****************
3
+ * depreacted
4
+ ******************/
5
+
1
6
  import { FnCallType, PassportObject, PermissionObject, GuardObject, VoteAddress, Protocol, TxbObject} from './protocol';
2
7
  import { IsValidDesription, IsValidAddress, Bcs, array_unique, IsValidArray, IsValidName, IsValidU64, IsValidU256, IsValidU8 } from './utils';
3
8
  import { ERROR, Errors } from './exception';