wowok 1.1.3 → 1.1.5

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.
Files changed (56) hide show
  1. package/dist/demand.d.ts +8 -6
  2. package/dist/demand.d.ts.map +1 -1
  3. package/dist/demand.js +46 -38
  4. package/dist/guard.d.ts +5 -1
  5. package/dist/guard.d.ts.map +1 -1
  6. package/dist/guard.js +169 -168
  7. package/dist/machine.d.ts +2 -0
  8. package/dist/machine.d.ts.map +1 -1
  9. package/dist/machine.js +8 -1
  10. package/dist/passport.d.ts +18 -0
  11. package/dist/passport.d.ts.map +1 -1
  12. package/dist/passport.js +361 -2
  13. package/dist/permission.d.ts +2 -0
  14. package/dist/permission.d.ts.map +1 -1
  15. package/dist/permission.js +8 -1
  16. package/dist/progress.d.ts +2 -0
  17. package/dist/progress.d.ts.map +1 -1
  18. package/dist/progress.js +8 -1
  19. package/dist/protocol.d.ts +18 -2
  20. package/dist/protocol.d.ts.map +1 -1
  21. package/dist/protocol.js +31 -2
  22. package/dist/repository.d.ts +2 -0
  23. package/dist/repository.d.ts.map +1 -1
  24. package/dist/repository.js +10 -1
  25. package/dist/resource.d.ts +19 -0
  26. package/dist/resource.d.ts.map +1 -0
  27. package/dist/resource.js +109 -0
  28. package/dist/reward.d.ts +2 -0
  29. package/dist/reward.d.ts.map +1 -1
  30. package/dist/reward.js +8 -1
  31. package/dist/service.d.ts +2 -0
  32. package/dist/service.d.ts.map +1 -1
  33. package/dist/service.js +9 -1
  34. package/dist/utils.d.ts +15 -1
  35. package/dist/utils.d.ts.map +1 -1
  36. package/dist/utils.js +48 -0
  37. package/dist/vote.d.ts +2 -0
  38. package/dist/vote.d.ts.map +1 -1
  39. package/dist/vote.js +8 -1
  40. package/package.json +1 -1
  41. package/src/demand.ts +51 -42
  42. package/src/entity.ts +57 -0
  43. package/src/exception.ts +1 -0
  44. package/src/guard.ts +186 -168
  45. package/src/machine.ts +11 -2
  46. package/src/passport.ts +364 -3
  47. package/src/permission.ts +13 -4
  48. package/src/progress.ts +11 -3
  49. package/src/protocol.ts +51 -7
  50. package/src/repository.ts +11 -1
  51. package/src/resource.ts +122 -0
  52. package/src/reward.ts +10 -1
  53. package/src/service.ts +12 -1
  54. package/src/utils.ts +65 -2
  55. package/src/vote.ts +10 -1
  56. package/src/wowok.ts +56 -0
package/dist/demand.d.ts CHANGED
@@ -1,26 +1,28 @@
1
1
  import { type TransactionResult } from '@mysten/sui.js/transactions';
2
2
  import { Protocol, PassportObject, PermissionObject, GuardObject, DemandAddress, TxbObject } from './protocol';
3
+ import { Resource } from './resource';
3
4
  export declare class Demand {
4
- protected earnest_type: string;
5
+ protected bounty_type: string;
5
6
  protected permission: PermissionObject;
6
7
  protected object: TxbObject;
7
8
  protected protocol: Protocol;
8
- get_earnest_type(): string;
9
+ get_bounty_type(): string;
9
10
  get_object(): TxbObject;
10
- static From(protocol: Protocol, earnest_type: string, permission: PermissionObject, object: TxbObject): Demand;
11
+ static From(protocol: Protocol, bounty_type: string, permission: PermissionObject, object: TxbObject): Demand;
11
12
  private constructor();
12
- static New(protocol: Protocol, earnest_type: string, permission: PermissionObject, description: string, earnest: TransactionResult, passport?: PassportObject): Demand;
13
+ static New(protocol: Protocol, bounty_type: string, permission: PermissionObject, description: string, bounty: TransactionResult, passport?: PassportObject): Demand;
13
14
  launch(): DemandAddress;
14
15
  destroy(): void;
16
+ mark(like: 'like' | 'unlike', resource: Resource): void;
15
17
  refund(passport?: PassportObject): void;
16
18
  expand_time(minutes_duration: number, passport?: PassportObject): void;
17
19
  set_guard(guard?: GuardObject, passport?: PassportObject): void;
18
20
  set_description(description: string, passport?: PassportObject): void;
19
21
  yes(service_address: string, passport?: PassportObject): void;
20
- deposit(earnest: TxbObject): void;
22
+ deposit(bounty: TxbObject): void;
21
23
  present(service_address: string, service_pay_type: string, tips: string, passport?: PassportObject): void;
22
24
  change_permission(new_permission: PermissionObject): void;
23
- static MAX_EARNEST_COUNT: number;
25
+ static MAX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QAAQ,CAAC,EAAC,cAAc;IAiB/B,WAAW,CAAC,gBAAgB,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IAuB9D,SAAS,CAAC,KAAK,CAAC,EAAC,WAAW,EAAE,QAAQ,CAAC,EAAC,cAAc;IAuCrD,eAAe,CAAC,WAAW,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IAsB5D,GAAG,CAAC,eAAe,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IAyBpD,OAAO,CAAC,MAAM,EAAC,SAAS;IAaxB,OAAO,CAAC,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IA4B/F,iBAAiB,CAAC,cAAc,EAAC,gBAAgB;IAcjD,MAAM,CAAC,gBAAgB,SAAO;IAC9B,MAAM,CAAC,oBAAoB,SAAO;CACrC"}
package/dist/demand.js CHANGED
@@ -3,47 +3,47 @@ import { Protocol } from './protocol';
3
3
  import { IsValidDesription, IsValidUint, IsValidAddress, IsValidArgType, } from './utils';
4
4
  import { Errors, ERROR } from './exception';
5
5
  export class Demand {
6
- earnest_type;
6
+ bounty_type;
7
7
  permission;
8
8
  object;
9
9
  protocol;
10
- get_earnest_type() { return this.earnest_type; }
10
+ get_bounty_type() { return this.bounty_type; }
11
11
  get_object() { return this.object; }
12
- static From(protocol, earnest_type, permission, object) {
13
- let d = new Demand(protocol, earnest_type, permission);
12
+ static From(protocol, bounty_type, permission, object) {
13
+ let d = new Demand(protocol, bounty_type, permission);
14
14
  d.object = Protocol.TXB_OBJECT(protocol.CurrentSession(), object);
15
15
  return d;
16
16
  }
17
- constructor(protocol, earnest_type, permission) {
18
- this.earnest_type = earnest_type;
17
+ constructor(protocol, bounty_type, permission) {
18
+ this.bounty_type = bounty_type;
19
19
  this.permission = permission;
20
20
  this.protocol = protocol;
21
21
  this.object = '';
22
22
  }
23
- static New(protocol, earnest_type, permission, description, earnest, passport) {
24
- let d = new Demand(protocol, earnest_type, permission);
25
- if (!Protocol.IsValidObjects([permission, earnest])) {
26
- ERROR(Errors.IsValidObjects, 'permission, earnest');
23
+ static New(protocol, bounty_type, permission, description, bounty, passport) {
24
+ if (!Protocol.IsValidObjects([permission, bounty])) {
25
+ ERROR(Errors.IsValidObjects, 'permission, bounty');
27
26
  }
28
27
  if (!IsValidDesription(description)) {
29
28
  ERROR(Errors.IsValidDesription);
30
29
  }
31
- if (!IsValidArgType(earnest_type)) {
32
- ERROR(Errors.IsValidArgType, earnest_type);
30
+ if (!IsValidArgType(bounty_type)) {
31
+ ERROR(Errors.IsValidArgType, bounty_type);
33
32
  }
33
+ let d = new Demand(protocol, bounty_type, permission);
34
34
  let txb = protocol.CurrentSession();
35
35
  if (passport) {
36
36
  d.object = txb.moveCall({
37
37
  target: protocol.DemandFn('new_with_passport'),
38
- arguments: [passport, txb.pure(description), earnest, Protocol.TXB_OBJECT(txb, permission)],
39
- typeArguments: [earnest_type],
38
+ arguments: [passport, txb.pure(description), bounty, Protocol.TXB_OBJECT(txb, permission)],
39
+ typeArguments: [bounty_type],
40
40
  });
41
41
  }
42
42
  else {
43
43
  d.object = txb.moveCall({
44
44
  target: protocol.DemandFn('new'),
45
- arguments: [txb.pure(description), earnest, Protocol.TXB_OBJECT(txb, permission)],
46
- typeArguments: [earnest_type],
45
+ arguments: [txb.pure(description), bounty, Protocol.TXB_OBJECT(txb, permission)],
46
+ typeArguments: [bounty_type],
47
47
  });
48
48
  }
49
49
  return d;
@@ -53,7 +53,7 @@ export class Demand {
53
53
  return txb.moveCall({
54
54
  target: this.protocol.DemandFn('create'),
55
55
  arguments: [Protocol.TXB_OBJECT(txb, this.object)],
56
- typeArguments: [this.earnest_type],
56
+ typeArguments: [this.bounty_type],
57
57
  });
58
58
  }
59
59
  destroy() {
@@ -61,7 +61,15 @@ export class Demand {
61
61
  txb.moveCall({
62
62
  target: this.protocol.DemandFn('destroy'),
63
63
  arguments: [Protocol.TXB_OBJECT(txb, this.object)],
64
- typeArguments: [this.earnest_type]
64
+ typeArguments: [this.bounty_type]
65
+ });
66
+ }
67
+ mark(like, resource) {
68
+ let txb = this.protocol.CurrentSession();
69
+ txb.moveCall({
70
+ target: this.protocol.DemandFn(like),
71
+ arguments: [Protocol.TXB_OBJECT(txb, resource.get_object()), Protocol.TXB_OBJECT(txb, this.object)],
72
+ typeArguments: [this.bounty_type]
65
73
  });
66
74
  }
67
75
  refund(passport) {
@@ -70,14 +78,14 @@ export class Demand {
70
78
  txb.moveCall({
71
79
  target: this.protocol.DemandFn('refund_with_passport'),
72
80
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), txb.object(Protocol.CLOCK_OBJECT), Protocol.TXB_OBJECT(txb, this.permission)],
73
- typeArguments: [this.earnest_type],
81
+ typeArguments: [this.bounty_type],
74
82
  });
75
83
  }
76
84
  else {
77
85
  txb.moveCall({
78
86
  target: this.protocol.DemandFn('refund'),
79
87
  arguments: [Protocol.TXB_OBJECT(txb, this.object), txb.object(Protocol.CLOCK_OBJECT), Protocol.TXB_OBJECT(txb, this.permission)],
80
- typeArguments: [this.earnest_type],
88
+ typeArguments: [this.bounty_type],
81
89
  });
82
90
  }
83
91
  }
@@ -91,7 +99,7 @@ export class Demand {
91
99
  target: this.protocol.DemandFn('time_expand_with_passport'),
92
100
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), txb.pure(minutes_duration, BCS.U64),
93
101
  txb.object(Protocol.CLOCK_OBJECT), Protocol.TXB_OBJECT(txb, this.permission)],
94
- typeArguments: [this.earnest_type],
102
+ typeArguments: [this.bounty_type],
95
103
  });
96
104
  }
97
105
  else {
@@ -99,7 +107,7 @@ export class Demand {
99
107
  target: this.protocol.DemandFn('time_expand'),
100
108
  arguments: [Protocol.TXB_OBJECT(txb, this.object), txb.pure(minutes_duration, BCS.U64),
101
109
  txb.object(Protocol.CLOCK_OBJECT), Protocol.TXB_OBJECT(txb, this.permission)],
102
- typeArguments: [this.earnest_type],
110
+ typeArguments: [this.bounty_type],
103
111
  });
104
112
  }
105
113
  }
@@ -114,14 +122,14 @@ export class Demand {
114
122
  target: this.protocol.DemandFn('guard_set_with_passport'),
115
123
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, guard),
116
124
  Protocol.TXB_OBJECT(txb, this.permission)],
117
- typeArguments: [this.earnest_type],
125
+ typeArguments: [this.bounty_type],
118
126
  });
119
127
  }
120
128
  else {
121
129
  txb.moveCall({
122
130
  target: this.protocol.DemandFn('guard_none_with_passport'),
123
131
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, this.permission)],
124
- typeArguments: [this.earnest_type],
132
+ typeArguments: [this.bounty_type],
125
133
  });
126
134
  }
127
135
  }
@@ -131,14 +139,14 @@ export class Demand {
131
139
  target: this.protocol.DemandFn('guard_set'),
132
140
  arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, guard),
133
141
  Protocol.TXB_OBJECT(txb, this.permission)],
134
- typeArguments: [this.earnest_type],
142
+ typeArguments: [this.bounty_type],
135
143
  });
136
144
  }
137
145
  else {
138
146
  txb.moveCall({
139
147
  target: this.protocol.DemandFn('guard_none'),
140
148
  arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, this.permission)],
141
- typeArguments: [this.earnest_type],
149
+ typeArguments: [this.bounty_type],
142
150
  });
143
151
  }
144
152
  }
@@ -153,14 +161,14 @@ export class Demand {
153
161
  target: this.protocol.DemandFn('description_set_with_passport'),
154
162
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), txb.pure(description),
155
163
  Protocol.TXB_OBJECT(txb, this.permission)],
156
- typeArguments: [this.earnest_type],
164
+ typeArguments: [this.bounty_type],
157
165
  });
158
166
  }
159
167
  else {
160
168
  txb.moveCall({
161
169
  target: this.protocol.DemandFn('description_set'),
162
170
  arguments: [Protocol.TXB_OBJECT(txb, this.object), txb.pure(description), Protocol.TXB_OBJECT(txb, this.permission)],
163
- typeArguments: [this.earnest_type],
171
+ typeArguments: [this.bounty_type],
164
172
  });
165
173
  }
166
174
  }
@@ -175,7 +183,7 @@ export class Demand {
175
183
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object),
176
184
  txb.pure(service_address, BCS.ADDRESS),
177
185
  Protocol.TXB_OBJECT(txb, this.permission)],
178
- typeArguments: [this.earnest_type],
186
+ typeArguments: [this.bounty_type],
179
187
  });
180
188
  }
181
189
  else {
@@ -184,19 +192,19 @@ export class Demand {
184
192
  arguments: [Protocol.TXB_OBJECT(txb, this.object),
185
193
  txb.pure(service_address, BCS.ADDRESS),
186
194
  Protocol.TXB_OBJECT(txb, this.permission)],
187
- typeArguments: [this.earnest_type],
195
+ typeArguments: [this.bounty_type],
188
196
  });
189
197
  }
190
198
  }
191
- deposit(earnest) {
192
- if (!Protocol.IsValidObjects([earnest])) {
199
+ deposit(bounty) {
200
+ if (!Protocol.IsValidObjects([bounty])) {
193
201
  ERROR(Errors.IsValidObjects);
194
202
  }
195
203
  let txb = this.protocol.CurrentSession();
196
204
  txb.moveCall({
197
205
  target: this.protocol.DemandFn('deposit'),
198
- arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, earnest)],
199
- typeArguments: [this.earnest_type],
206
+ arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, bounty)],
207
+ typeArguments: [this.bounty_type],
200
208
  });
201
209
  }
202
210
  present(service_address, service_pay_type, tips, passport) {
@@ -215,7 +223,7 @@ export class Demand {
215
223
  target: this.protocol.DemandFn('present_with_passport'),
216
224
  arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, service_address),
217
225
  txb.pure(tips, BCS.STRING)],
218
- typeArguments: [this.earnest_type, service_pay_type],
226
+ typeArguments: [this.bounty_type, service_pay_type],
219
227
  });
220
228
  }
221
229
  else {
@@ -223,7 +231,7 @@ export class Demand {
223
231
  target: this.protocol.DemandFn('present'),
224
232
  arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, service_address),
225
233
  txb.pure(tips, BCS.STRING)],
226
- typeArguments: [this.earnest_type, service_pay_type],
234
+ typeArguments: [this.bounty_type, service_pay_type],
227
235
  });
228
236
  }
229
237
  }
@@ -235,10 +243,10 @@ export class Demand {
235
243
  txb.moveCall({
236
244
  target: this.protocol.DemandFn('permission_set'),
237
245
  arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, this.permission), Protocol.TXB_OBJECT(txb, new_permission)],
238
- typeArguments: [this.earnest_type]
246
+ typeArguments: [this.bounty_type]
239
247
  });
240
248
  this.permission = new_permission;
241
249
  }
242
- static MAX_EARNEST_COUNT = 200;
250
+ static MAX_BOUNTY_COUNT = 200;
243
251
  static MAX_PRESENTERS_COUNT = 200;
244
252
  }
package/dist/guard.d.ts CHANGED
@@ -11,6 +11,9 @@ export declare class Guard {
11
11
  static signer_guard(protocol: Protocol): GuardAddress;
12
12
  static everyone_guard(protocol: Protocol): GuardAddress;
13
13
  static QUERIES: any[];
14
+ static BoolCmd: any[];
15
+ static IsBoolCmd: (cmd: number) => boolean;
16
+ static GetCmd: (cmd: number) => any;
14
17
  }
15
18
  export declare class GuardVariableHelper {
16
19
  static IsValidIndentifier: (identifier: number) => boolean;
@@ -27,6 +30,7 @@ export declare class GuardMaker {
27
30
  private static get_index;
28
31
  constructor();
29
32
  add_variable(type: VariableType, value: any, bNeedSerialize?: boolean): number;
33
+ private serValueParam;
30
34
  add_param(type: ValueType | ContextType, param?: any): GuardMaker;
31
35
  add_query(module: MODULES, query_name: string, object_address_from: string | number, bWitness?: boolean): GuardMaker;
32
36
  add_logic(type: OperatorType): GuardMaker;
@@ -37,6 +41,6 @@ export declare class GuardMaker {
37
41
  get_input(): Uint8Array[];
38
42
  static input_combine(input1: Uint8Array, input2: Uint8Array, bAnd?: boolean): Uint8Array;
39
43
  static input_not(input: Uint8Array): Uint8Array;
40
- static match_u128(type: number): boolean;
44
+ static match_u256(type: number): boolean;
41
45
  }
42
46
  //# sourceMappingURL=guard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../src/guard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAc,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAG,YAAY,EAAE,YAAY,EAAC,MAAM,YAAY,CAAC;AAKxI,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,YAAY,CAAE;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAED,qBAAa,KAAK;IACd,MAAM,CAAC,gBAAgB,SAAQ;IAC/B,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAC,QAAQ,EAAE,WAAW,EAAC,MAAM,EAAE,KAAK,EAAC,UAAU,GAAI,YAAY;IA4DrF,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAI,YAAY;IAOtD,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAC,QAAQ,GAAI,YAAY;IAMvD,MAAM,CAAC,OAAO,EAAC,GAAG,EAAE,CAgInB;CACJ;AAED,qBAAa,mBAAmB;IAC5B,MAAM,CAAC,kBAAkB,eAAe,MAAM,KAAI,OAAO,CAGxD;IACD,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,EAAE,IAAI,EAAC,YAAY,GAAI,UAAU,GAAG,SAAS;IAQjH,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,GAAI,UAAU,GAAG,SAAS;IAShG,MAAM,CAAC,mBAAmB,CAAC,SAA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