wowok 1.0.11 → 1.1.1
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 +1 -1
- package/dist/demand.d.ts +5 -6
- package/dist/demand.d.ts.map +1 -1
- package/dist/demand.js +23 -17
- package/dist/guard.d.ts +1 -1
- package/dist/guard.d.ts.map +1 -1
- package/dist/guard.js +35 -35
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/machine.d.ts +2 -2
- package/dist/machine.d.ts.map +1 -1
- package/dist/machine.js +11 -10
- package/dist/passport.d.ts +5 -5
- package/dist/passport.d.ts.map +1 -1
- package/dist/passport.js +35 -25
- package/dist/permission.d.ts +1 -1
- package/dist/permission.d.ts.map +1 -1
- package/dist/permission.js +4 -4
- package/dist/progress.d.ts +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +5 -5
- package/dist/protocol.d.ts +7 -5
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +22 -8
- package/dist/repository.d.ts +2 -2
- package/dist/repository.d.ts.map +1 -1
- package/dist/repository.js +9 -8
- package/dist/reward.d.ts +1 -1
- package/dist/reward.d.ts.map +1 -1
- package/dist/reward.js +4 -3
- package/dist/service.d.ts +4 -4
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +118 -117
- package/dist/utils.d.ts +3 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +8 -1
- package/dist/vote.d.ts +1 -1
- package/dist/vote.d.ts.map +1 -1
- package/dist/vote.js +11 -10
- package/package.json +3 -8
- package/src/demand.ts +24 -18
- package/src/guard.ts +35 -35
- package/src/index.ts +12 -12
- package/src/machine.ts +13 -12
- package/src/passport.ts +45 -30
- package/src/permission.ts +4 -4
- package/src/progress.ts +5 -5
- package/src/protocol.ts +29 -15
- package/src/repository.ts +10 -9
- package/src/reward.ts +4 -3
- package/src/service.ts +120 -118
- package/src/utils.ts +8 -4
- package/src/vote.ts +11 -10
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
AI-oriented web3 collaboration protocol, driving innovaion and making it more likely to happen.
|
|
5
5
|
|
|
6
|
-
Github: [https://github.com/wowok-ai/sdk](https://github.com/wowok-ai/sdk)
|
|
6
|
+
Github: [https://github.com/wowok-ai/sdk](https://github.com/wowok-ai/sdk)
|
|
7
7
|
Examples: [https://github.com/wowok-ai/sdk-examples](https://github.com/wowok-ai/sdk-examples)
|
|
8
8
|
|
|
9
9
|
### Installation
|
package/dist/demand.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type TransactionResult } from '@mysten/sui.js/transactions';
|
|
2
|
-
import { Protocol, PassportObject, PermissionObject, GuardObject, DemandAddress, TxbObject } from './protocol
|
|
3
|
-
import { Service } from './service.js';
|
|
2
|
+
import { Protocol, PassportObject, PermissionObject, GuardObject, DemandAddress, TxbObject } from './protocol';
|
|
4
3
|
export declare class Demand {
|
|
5
4
|
protected earnest_type: string;
|
|
6
5
|
protected permission: PermissionObject;
|
|
@@ -16,11 +15,11 @@ export declare class Demand {
|
|
|
16
15
|
refund(passport?: PassportObject): void;
|
|
17
16
|
expand_time(minutes_duration: number, passport?: PassportObject): void;
|
|
18
17
|
set_guard(guard?: GuardObject, passport?: PassportObject): void;
|
|
19
|
-
set_description(description: string, passport?: PassportObject):
|
|
20
|
-
yes(
|
|
18
|
+
set_description(description: string, passport?: PassportObject): void;
|
|
19
|
+
yes(service_address: string, passport?: PassportObject): void;
|
|
21
20
|
deposit(earnest: TxbObject): void;
|
|
22
|
-
present(
|
|
23
|
-
change_permission(new_permission: PermissionObject):
|
|
21
|
+
present(service_address: string, service_pay_type: string, tips: string, passport?: PassportObject): void;
|
|
22
|
+
change_permission(new_permission: PermissionObject): void;
|
|
24
23
|
static MAX_EARNEST_COUNT: number;
|
|
25
24
|
static MAX_PRESENTERS_COUNT: number;
|
|
26
25
|
}
|
package/dist/demand.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demand.d.ts","sourceRoot":"","sources":["../src/demand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAc,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"demand.d.ts","sourceRoot":"","sources":["../src/demand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAc,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAM1H,qBAAa,MAAM;IACf,SAAS,CAAC,YAAY,SAAC;IACvB,SAAS,CAAC,UAAU,mBAAE;IACtB,SAAS,CAAC,MAAM,EAAG,SAAS,CAAE;IAC9B,SAAS,CAAC,QAAQ,WAAC;IAEnB,gBAAgB;IAChB,UAAU;IAEV,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAC,QAAQ,EAAE,YAAY,EAAC,MAAM,EAAE,UAAU,EAAC,gBAAgB,EAAE,MAAM,EAAC,SAAS,GAAI,MAAM;IAM3G,OAAO;IAMP,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAC,QAAQ,EAAE,YAAY,EAAC,MAAM,EAAE,UAAU,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,EAC9F,OAAO,EAAC,iBAAiB,EAAE,QAAQ,CAAC,EAAC,cAAc,GAAI,MAAM;IA8BjE,MAAM,IAAK,aAAa;IASxB,OAAO;IAQP,MAAM,CAAC,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,OAAO,EAAC,SAAS;IAazB,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,iBAAiB,SAAO;IAC/B,MAAM,CAAC,oBAAoB,SAAO;CACrC"}
|
package/dist/demand.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BCS } from '@mysten/bcs';
|
|
2
|
-
import { Protocol } from './protocol
|
|
3
|
-
import { IsValidDesription, IsValidUint, IsValidAddress, IsValidArgType, } from './utils
|
|
4
|
-
import { Errors, ERROR } from './exception
|
|
2
|
+
import { Protocol } from './protocol';
|
|
3
|
+
import { IsValidDesription, IsValidUint, IsValidAddress, IsValidArgType, } from './utils';
|
|
4
|
+
import { Errors, ERROR } from './exception';
|
|
5
5
|
export class Demand {
|
|
6
6
|
earnest_type;
|
|
7
7
|
permission;
|
|
@@ -163,17 +163,17 @@ export class Demand {
|
|
|
163
163
|
typeArguments: [this.earnest_type],
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
return true;
|
|
167
166
|
}
|
|
168
|
-
yes(
|
|
169
|
-
if (!IsValidAddress(
|
|
167
|
+
yes(service_address, passport) {
|
|
168
|
+
if (!IsValidAddress(service_address)) {
|
|
170
169
|
ERROR(Errors.IsValidAddress);
|
|
171
170
|
}
|
|
172
171
|
let txb = this.protocol.CurrentSession();
|
|
173
172
|
if (passport) {
|
|
174
173
|
txb.moveCall({
|
|
175
174
|
target: this.protocol.DemandFn('yes_with_passport'),
|
|
176
|
-
arguments: [passport, Protocol.TXB_OBJECT(txb, this.object),
|
|
175
|
+
arguments: [passport, Protocol.TXB_OBJECT(txb, this.object),
|
|
176
|
+
txb.pure(service_address, BCS.ADDRESS),
|
|
177
177
|
Protocol.TXB_OBJECT(txb, this.permission)],
|
|
178
178
|
typeArguments: [this.earnest_type],
|
|
179
179
|
});
|
|
@@ -181,7 +181,8 @@ export class Demand {
|
|
|
181
181
|
else {
|
|
182
182
|
txb.moveCall({
|
|
183
183
|
target: this.protocol.DemandFn('yes'),
|
|
184
|
-
arguments: [Protocol.TXB_OBJECT(txb, this.object),
|
|
184
|
+
arguments: [Protocol.TXB_OBJECT(txb, this.object),
|
|
185
|
+
txb.pure(service_address, BCS.ADDRESS),
|
|
185
186
|
Protocol.TXB_OBJECT(txb, this.permission)],
|
|
186
187
|
typeArguments: [this.earnest_type],
|
|
187
188
|
});
|
|
@@ -198,28 +199,33 @@ export class Demand {
|
|
|
198
199
|
typeArguments: [this.earnest_type],
|
|
199
200
|
});
|
|
200
201
|
}
|
|
201
|
-
present(
|
|
202
|
+
present(service_address, service_pay_type, tips, passport) {
|
|
202
203
|
if (!IsValidDesription(tips)) {
|
|
203
204
|
ERROR(Errors.IsValidDesription, 'tips');
|
|
204
205
|
}
|
|
206
|
+
if (!IsValidAddress(service_address)) {
|
|
207
|
+
ERROR(Errors.IsValidAddress, 'service_address');
|
|
208
|
+
}
|
|
209
|
+
if (!IsValidArgType(service_pay_type)) {
|
|
210
|
+
ERROR(Errors.IsValidArgType, 'service_pay_type');
|
|
211
|
+
}
|
|
205
212
|
let txb = this.protocol.CurrentSession();
|
|
206
213
|
if (passport) {
|
|
207
214
|
txb.moveCall({
|
|
208
215
|
target: this.protocol.DemandFn('present_with_passport'),
|
|
209
|
-
arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb,
|
|
210
|
-
txb.pure(tips, BCS.STRING)
|
|
211
|
-
typeArguments: [this.earnest_type,
|
|
216
|
+
arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, service_address),
|
|
217
|
+
txb.pure(tips, BCS.STRING)],
|
|
218
|
+
typeArguments: [this.earnest_type, service_pay_type],
|
|
212
219
|
});
|
|
213
220
|
}
|
|
214
221
|
else {
|
|
215
222
|
txb.moveCall({
|
|
216
223
|
target: this.protocol.DemandFn('present'),
|
|
217
|
-
arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb,
|
|
218
|
-
txb.pure(tips, BCS.STRING)
|
|
219
|
-
typeArguments: [this.earnest_type,
|
|
224
|
+
arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, service_address),
|
|
225
|
+
txb.pure(tips, BCS.STRING)],
|
|
226
|
+
typeArguments: [this.earnest_type, service_pay_type],
|
|
220
227
|
});
|
|
221
228
|
}
|
|
222
|
-
return true;
|
|
223
229
|
}
|
|
224
230
|
change_permission(new_permission) {
|
|
225
231
|
if (!Protocol.IsValidObjects([new_permission])) {
|
|
@@ -231,7 +237,7 @@ export class Demand {
|
|
|
231
237
|
arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, this.permission), Protocol.TXB_OBJECT(txb, new_permission)],
|
|
232
238
|
typeArguments: [this.earnest_type]
|
|
233
239
|
});
|
|
234
|
-
|
|
240
|
+
this.permission = new_permission;
|
|
235
241
|
}
|
|
236
242
|
static MAX_EARNEST_COUNT = 200;
|
|
237
243
|
static MAX_PRESENTERS_COUNT = 200;
|
package/dist/guard.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Protocol, GuardAddress, Data_Type, MODULES, ContextType, ValueType, OperatorType } from './protocol
|
|
1
|
+
import { Protocol, GuardAddress, Data_Type, MODULES, ContextType, ValueType, OperatorType } from './protocol';
|
|
2
2
|
export declare enum Guard_Sense_Binder {
|
|
3
3
|
AND = 0,
|
|
4
4
|
OR = 1
|
package/dist/guard.d.ts.map
CHANGED
|
@@ -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,EAAC,MAAM,
|
|
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,EAAC,MAAM,YAAY,CAAC;AAK1H,oBAAY,kBAAkB;IAC1B,GAAG,IAAI;IACP,EAAE,IAAI;CACT;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAC,kBAAkB,CAAE;CAC9B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,EAAE,WAAW,GAAG,YAAY,CAAC;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB,CAAA;AACD,MAAM,MAAM,cAAc,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,MAAM,EAAE,WAAW,EAAE,CAAC;CACzB,CAAA;AAED,qBAAa,KAAK;IACd,MAAM,CAAC,eAAe,SAAM;IAC5B,MAAM,CAAC,uBAAuB,SAAS,YAAY,GAAG,WAAW,KAAI,OAAO,CAO3E;IACD,MAAM,CAAC,kBAAkB,eAAe,MAAM,KAAI,OAAO,CAGxD;IACD,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAC,YAAY,EAAE,UAAU,EAA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AO,EAAE,UAAU,EAAC,MAAM,EAAE,QAAQ,EAAC,YAAY,GAAI,OAAO;IA2BvG,SAAS,CAAC,MAAM,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,EAAE,mBAAmB,EAAC,MAAM,GAAG,MAAM,GAAI,OAAO;IAmC3F,SAAS,CAAC,IAAI,EAAC,YAAY,GAAI,OAAO;IAwBtC,IAAI,CAAC,cAAc,GAAC,OAAe,EAAE,MAAM,GAAC,kBAA2C,GAAI,OAAO,GAAG,WAAW;IAahH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAC,MAAM,GAAI,OAAO;CAQ3C"}
|
package/dist/guard.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BCS } from '@mysten/bcs';
|
|
2
|
-
import { MODULES, ContextType, ValueType, OperatorType } from './protocol
|
|
3
|
-
import { concatenate, array_equal } from './utils
|
|
4
|
-
import { IsValidDesription,
|
|
5
|
-
import { ERROR, Errors } from './exception
|
|
2
|
+
import { MODULES, ContextType, ValueType, OperatorType } from './protocol';
|
|
3
|
+
import { concatenate, array_equal } from './utils';
|
|
4
|
+
import { IsValidDesription, Bcs, IsValidInt, IsValidAddress } from './utils';
|
|
5
|
+
import { ERROR, Errors } from './exception';
|
|
6
6
|
export var Guard_Sense_Binder;
|
|
7
7
|
(function (Guard_Sense_Binder) {
|
|
8
8
|
Guard_Sense_Binder[Guard_Sense_Binder["AND"] = 0] = "AND";
|
|
@@ -55,8 +55,8 @@ export class Guard {
|
|
|
55
55
|
if (variables.has(identifier)) {
|
|
56
56
|
let v = variables.get(identifier);
|
|
57
57
|
if (bNeedSerialize) {
|
|
58
|
-
v.value = value ?
|
|
59
|
-
v.witness = witness ?
|
|
58
|
+
v.value = value ? Bcs.getInstance().ser_address(value) : undefined;
|
|
59
|
+
v.witness = witness ? Bcs.getInstance().ser_address(witness) : undefined;
|
|
60
60
|
}
|
|
61
61
|
else {
|
|
62
62
|
v.value = value ? value : undefined;
|
|
@@ -65,7 +65,7 @@ export class Guard {
|
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
67
67
|
if (bNeedSerialize) {
|
|
68
|
-
variables.set(identifier, { type: type, value: value ?
|
|
68
|
+
variables.set(identifier, { type: type, value: value ? Bcs.getInstance().ser_address(value) : undefined, witness: witness ? Bcs.getInstance().ser_address(witness) : undefined });
|
|
69
69
|
}
|
|
70
70
|
else {
|
|
71
71
|
variables.set(identifier, { type: type, value: value ? value : undefined, witness: witness ? witness : undefined });
|
|
@@ -84,24 +84,24 @@ export class Guard {
|
|
|
84
84
|
return false;
|
|
85
85
|
switch (type) {
|
|
86
86
|
case ContextType.TYPE_CONTEXT_bool:
|
|
87
|
-
bNeedSerialize ? variables.set(identifier, { type: type, value:
|
|
87
|
+
bNeedSerialize ? variables.set(identifier, { type: type, value: Bcs.getInstance().ser_bool(value) }) :
|
|
88
88
|
variables.set(identifier, { type: type, value: value });
|
|
89
89
|
return true;
|
|
90
90
|
case ContextType.TYPE_CONTEXT_address:
|
|
91
91
|
case OperatorType.TYPE_QUERY_FROM_CONTEXT:
|
|
92
|
-
bNeedSerialize ? variables.set(identifier, { type: type, value:
|
|
92
|
+
bNeedSerialize ? variables.set(identifier, { type: type, value: Bcs.getInstance().ser_address(value) }) :
|
|
93
93
|
variables.set(identifier, { type: type, value: value });
|
|
94
94
|
return true;
|
|
95
95
|
case ContextType.TYPE_CONTEXT_u64:
|
|
96
|
-
bNeedSerialize ? variables.set(identifier, { type: type, value:
|
|
96
|
+
bNeedSerialize ? variables.set(identifier, { type: type, value: Bcs.getInstance().ser_u64(value) }) :
|
|
97
97
|
variables.set(identifier, { type: type, value: value });
|
|
98
98
|
return true;
|
|
99
99
|
case ContextType.TYPE_CONTEXT_u8:
|
|
100
|
-
bNeedSerialize ? variables.set(identifier, { type: type, value:
|
|
100
|
+
bNeedSerialize ? variables.set(identifier, { type: type, value: Bcs.getInstance().ser_u8(value) }) :
|
|
101
101
|
variables.set(identifier, { type: type, value: value });
|
|
102
102
|
return true;
|
|
103
103
|
case ContextType.TYPE_CONTEXT_vec_u8:
|
|
104
|
-
bNeedSerialize ? variables.set(identifier, { type: type, value:
|
|
104
|
+
bNeedSerialize ? variables.set(identifier, { type: type, value: Bcs.getInstance().ser_string(value) }) :
|
|
105
105
|
variables.set(identifier, { type: type, value: value });
|
|
106
106
|
return true;
|
|
107
107
|
}
|
|
@@ -334,45 +334,45 @@ export class SenseMaker {
|
|
|
334
334
|
case ValueType.TYPE_STATIC_address:
|
|
335
335
|
if (!param)
|
|
336
336
|
return false;
|
|
337
|
-
this.data.push(
|
|
338
|
-
this.data.push(
|
|
337
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
338
|
+
this.data.push(Bcs.getInstance().ser_address(param));
|
|
339
339
|
this.type_validator.push(type);
|
|
340
340
|
break;
|
|
341
341
|
case ValueType.TYPE_STATIC_bool:
|
|
342
342
|
if (!param)
|
|
343
343
|
return false;
|
|
344
|
-
this.data.push(
|
|
345
|
-
this.data.push(
|
|
344
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
345
|
+
this.data.push(Bcs.getInstance().ser_bool(param));
|
|
346
346
|
this.type_validator.push(type);
|
|
347
347
|
break;
|
|
348
348
|
case ValueType.TYPE_STATIC_u8:
|
|
349
349
|
if (!param)
|
|
350
350
|
return false;
|
|
351
|
-
this.data.push(
|
|
352
|
-
this.data.push(
|
|
351
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
352
|
+
this.data.push(Bcs.getInstance().ser_u8(param));
|
|
353
353
|
this.type_validator.push(type);
|
|
354
354
|
break;
|
|
355
355
|
case ValueType.TYPE_STATIC_u64:
|
|
356
356
|
if (!param)
|
|
357
357
|
return false;
|
|
358
|
-
this.data.push(
|
|
359
|
-
this.data.push(
|
|
358
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
359
|
+
this.data.push(Bcs.getInstance().ser_u64(param));
|
|
360
360
|
this.type_validator.push(type);
|
|
361
361
|
break;
|
|
362
362
|
case ValueType.TYPE_STATIC_vec_u8:
|
|
363
363
|
if (!param)
|
|
364
364
|
return false;
|
|
365
|
-
this.data.push(
|
|
366
|
-
this.data.push(
|
|
365
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
366
|
+
this.data.push(Bcs.getInstance().ser_string(param));
|
|
367
367
|
this.type_validator.push(type);
|
|
368
368
|
// this.data[this.data.length-1].forEach((item : number) => console.log(item))
|
|
369
369
|
break;
|
|
370
370
|
case ContextType.TYPE_CONTEXT_SIGNER:
|
|
371
|
-
this.data.push(
|
|
371
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
372
372
|
this.type_validator.push(ValueType.TYPE_STATIC_address);
|
|
373
373
|
break;
|
|
374
374
|
case ContextType.TYPE_CONTEXT_CLOCK:
|
|
375
|
-
this.data.push(
|
|
375
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
376
376
|
this.type_validator.push(ValueType.TYPE_STATIC_u64);
|
|
377
377
|
break;
|
|
378
378
|
case ContextType.TYPE_CONTEXT_bool:
|
|
@@ -389,8 +389,8 @@ export class SenseMaker {
|
|
|
389
389
|
return false;
|
|
390
390
|
var v = variable.get(param);
|
|
391
391
|
if (v?.type == type) {
|
|
392
|
-
this.data.push(
|
|
393
|
-
this.data.push(
|
|
392
|
+
this.data.push(Bcs.getInstance().ser_u8(type));
|
|
393
|
+
this.data.push(Bcs.getInstance().ser_u8(param));
|
|
394
394
|
if (type == ContextType.TYPE_CONTEXT_bool) {
|
|
395
395
|
this.type_validator.push(ValueType.TYPE_STATIC_bool);
|
|
396
396
|
}
|
|
@@ -443,9 +443,9 @@ export class SenseMaker {
|
|
|
443
443
|
if (!array_equal(types, Guard.QUERIES[query_index][3])) { // type validate
|
|
444
444
|
return false;
|
|
445
445
|
}
|
|
446
|
-
this.data.push(
|
|
447
|
-
this.data.push(
|
|
448
|
-
this.data.push(
|
|
446
|
+
this.data.push(Bcs.getInstance().ser_u8(OperatorType.TYPE_FUTURE_QUERY)); // TYPE
|
|
447
|
+
this.data.push(Bcs.getInstance().ser_u8(identifier)); // variable identifier
|
|
448
|
+
this.data.push(Bcs.getInstance().ser_u8(Guard.QUERIES[query_index][2])); // cmd
|
|
449
449
|
this.type_validator.splice(offset, Guard.QUERIES[query_index][3].length); // delete type stack
|
|
450
450
|
this.type_validator.push(Guard.QUERIES[query_index][4]); // add the return value type to type stack
|
|
451
451
|
// console.log(this.type_validator)
|
|
@@ -473,14 +473,14 @@ export class SenseMaker {
|
|
|
473
473
|
return false;
|
|
474
474
|
}
|
|
475
475
|
if (typeof (object_address_from) == 'string') {
|
|
476
|
-
this.data.push(
|
|
477
|
-
this.data.push(
|
|
476
|
+
this.data.push(Bcs.getInstance().ser_u8(OperatorType.TYPE_QUERY)); // TYPE
|
|
477
|
+
this.data.push(Bcs.getInstance().ser_address(object_address_from)); // object address
|
|
478
478
|
}
|
|
479
479
|
else {
|
|
480
|
-
this.data.push(
|
|
481
|
-
this.data.push(
|
|
480
|
+
this.data.push(Bcs.getInstance().ser_u8(OperatorType.TYPE_QUERY_FROM_CONTEXT)); // TYPE
|
|
481
|
+
this.data.push(Bcs.getInstance().ser_u8(object_address_from)); // object identifer in variables
|
|
482
482
|
}
|
|
483
|
-
this.data.push(
|
|
483
|
+
this.data.push(Bcs.getInstance().ser_u8(Guard.QUERIES[query_index][2])); // cmd
|
|
484
484
|
this.type_validator.splice(offset, Guard.QUERIES[query_index][3].length); // delete type stack
|
|
485
485
|
this.type_validator.push(Guard.QUERIES[query_index][4]); // add the return value type to type stack
|
|
486
486
|
// console.log(this.type_validator)
|
|
@@ -512,7 +512,7 @@ export class SenseMaker {
|
|
|
512
512
|
default:
|
|
513
513
|
return false;
|
|
514
514
|
}
|
|
515
|
-
this.data.push(
|
|
515
|
+
this.data.push(Bcs.getInstance().ser_u8(type)); // TYPE
|
|
516
516
|
this.type_validator.splice(this.type_validator.length - 2); // delete type stack
|
|
517
517
|
this.type_validator.push(ValueType.TYPE_STATIC_bool); // add bool to type stack
|
|
518
518
|
return true;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './demand
|
|
2
|
-
export * from './progress
|
|
3
|
-
export * from './reward
|
|
4
|
-
export * from './utils
|
|
5
|
-
export * from './permission
|
|
6
|
-
export * from './guard
|
|
7
|
-
export * from './repository
|
|
8
|
-
export * from './vote
|
|
9
|
-
export * from './protocol
|
|
10
|
-
export * from './passport
|
|
11
|
-
export * from './machine
|
|
12
|
-
export * from './service
|
|
1
|
+
export * from './demand';
|
|
2
|
+
export * from './progress';
|
|
3
|
+
export * from './reward';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './permission';
|
|
6
|
+
export * from './guard';
|
|
7
|
+
export * from './repository';
|
|
8
|
+
export * from './vote';
|
|
9
|
+
export * from './protocol';
|
|
10
|
+
export * from './passport';
|
|
11
|
+
export * from './machine';
|
|
12
|
+
export * from './service';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAe,YAAY,CAAA;AAC3B,cAAe,UAAU,CAAA;AACzB,cAAe,SAAS,CAAA;AACxB,cAAe,cAAc,CAAA;AAC7B,cAAe,SAAS,CAAA;AACxB,cAAe,cAAc,CAAA;AAC7B,cAAe,QAAQ,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './demand
|
|
2
|
-
export * from './progress
|
|
3
|
-
export * from './reward
|
|
4
|
-
export * from './utils
|
|
5
|
-
export * from './permission
|
|
6
|
-
export * from './guard
|
|
7
|
-
export * from './repository
|
|
8
|
-
export * from './vote
|
|
9
|
-
export * from './protocol
|
|
10
|
-
export * from './passport
|
|
11
|
-
export * from './machine
|
|
12
|
-
export * from './service
|
|
1
|
+
export * from './demand';
|
|
2
|
+
export * from './progress';
|
|
3
|
+
export * from './reward';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './permission';
|
|
6
|
+
export * from './guard';
|
|
7
|
+
export * from './repository';
|
|
8
|
+
export * from './vote';
|
|
9
|
+
export * from './protocol';
|
|
10
|
+
export * from './passport';
|
|
11
|
+
export * from './machine';
|
|
12
|
+
export * from './service';
|
package/dist/machine.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TransactionResult } from '@mysten/sui.js/transactions';
|
|
2
|
-
import { Protocol, PermissionObject, RepositoryObject, PassportObject, MachineObject, MachineAddress, GuardObject, TxbObject } from './protocol
|
|
3
|
-
import { PermissionIndexType } from './permission
|
|
2
|
+
import { Protocol, PermissionObject, RepositoryObject, PassportObject, MachineObject, MachineAddress, GuardObject, TxbObject } from './protocol';
|
|
3
|
+
import { PermissionIndexType } from './permission';
|
|
4
4
|
export type MachineNodeObject = TransactionResult | String;
|
|
5
5
|
export type Machine_Forward = {
|
|
6
6
|
name: string;
|
package/dist/machine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAc,gBAAgB,EAAE,gBAAgB,EAAG,cAAc,EAAE,aAAa,EAAE,cAAc,EAAG,WAAW,EAAE,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA,OAAO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Ac,GAAI,OAAO;IA8BpI,QAAQ,CAAC,KAAK,EAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,EAAC,cAAc;IA2DvD,SAAS,CAAC,KAAK,EAAC,iBAAiB,EAAE,EAAE,QAAQ,CAAC,EAAC,cAAc;IAyB7D,WAAW,CAAC,UAAU,EAAC,MAAM,EAAE,EAAE,eAAe,GAAC,OAAe,EAAE,QAAQ,CAAC,EAAC,cAAc;IAoB1F,OAAO;IAQP,MAAM,IAAK,cAAc;IAQzB,eAAe,CAAC,WAAW,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IAkB5D,cAAc,CAAC,UAAU,EAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAC,cAAc;IAepE,iBAAiB,CAAC,YAAY,EAAC,MAAM,EAAE,EAAE,SAAS,CAAC,EAAC,OAAO,EAAE,QAAQ,CAAC,EAAC,cAAc;IAsCrF,KAAK,CAAC,QAAQ,CAAC,EAAC,cAAc,GAAI,aAAa;IAe/C,YAAY,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IAoBvD,KAAK,CAAC,OAAO,EAAC,OAAO,EAAE,QAAQ,CAAC,EAAC,cAAc;IAc/C,OAAO,CAAC,QAAQ,CAAC,EAAC,cAAc;IAgBhC,iBAAiB,CAAC,cAAc,EAAC,gBAAgB;IAcjD,MAAM,CAAC,iBAAiB,SAAM;IAC9B,MAAM,CAAC,oBAAoB,SAAiB;CAC/C"}
|
package/dist/machine.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BCS } from '@mysten/bcs';
|
|
2
|
-
import { Protocol } from './protocol
|
|
3
|
-
import { IsValidInt, IsValidUint,
|
|
4
|
-
import { Permission } from './permission
|
|
5
|
-
import { Errors, ERROR } from './exception
|
|
2
|
+
import { Protocol } from './protocol';
|
|
3
|
+
import { IsValidInt, IsValidUint, Bcs, array_unique, IsValidArray, IsValidAddress, IsValidName, IsValidName_AllowEmpty, IsValidEndpoint, OptionNone, IsValidDesription } from './utils';
|
|
4
|
+
import { Permission } from './permission';
|
|
5
|
+
import { Errors, ERROR } from './exception';
|
|
6
6
|
export class Machine {
|
|
7
7
|
protocol;
|
|
8
8
|
object;
|
|
@@ -30,7 +30,7 @@ export class Machine {
|
|
|
30
30
|
ERROR(Errors.IsValidEndpoint);
|
|
31
31
|
}
|
|
32
32
|
let txb = protocol.CurrentSession();
|
|
33
|
-
let ep = endpoint ? txb.pure(
|
|
33
|
+
let ep = endpoint ? txb.pure(Bcs.getInstance().ser_option_string(endpoint)) : OptionNone(txb);
|
|
34
34
|
if (passport) {
|
|
35
35
|
m.object = txb.moveCall({
|
|
36
36
|
target: protocol.MachineFn('new_with_passport'),
|
|
@@ -89,10 +89,10 @@ export class Machine {
|
|
|
89
89
|
arguments: [txb.pure(node.name), txb.pure(node.description)]
|
|
90
90
|
});
|
|
91
91
|
node.pairs.forEach((pair) => {
|
|
92
|
-
let threshold = pair?.threshold ? txb.pure(
|
|
92
|
+
let threshold = pair?.threshold ? txb.pure(Bcs.getInstance().ser_option_u64(pair.threshold)) : OptionNone(txb);
|
|
93
93
|
pair.forwards.forEach((forward) => {
|
|
94
94
|
let weight = forward?.weight ? forward.weight : 1;
|
|
95
|
-
let perm = forward?.permission ? txb.pure(
|
|
95
|
+
let perm = forward?.permission ? txb.pure(Bcs.getInstance().ser_option_u64(forward.permission)) : OptionNone(txb);
|
|
96
96
|
let namedOperator = forward?.namedOperator ? txb.pure(forward.namedOperator) : txb.pure('');
|
|
97
97
|
let f;
|
|
98
98
|
if (forward?.guard) {
|
|
@@ -149,14 +149,14 @@ export class Machine {
|
|
|
149
149
|
if (passport) {
|
|
150
150
|
txb.moveCall({
|
|
151
151
|
target: this.protocol.MachineFn('node_remove_with_passport'),
|
|
152
|
-
arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), txb.pure(
|
|
152
|
+
arguments: [passport, Protocol.TXB_OBJECT(txb, this.object), txb.pure(Bcs.getInstance().ser_vector_string(nodes_name)),
|
|
153
153
|
txb.pure(bTransferMyself, BCS.BOOL), Protocol.TXB_OBJECT(txb, this.permission)],
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
157
|
txb.moveCall({
|
|
158
158
|
target: this.protocol.MachineFn('node_remove'),
|
|
159
|
-
arguments: [Protocol.TXB_OBJECT(txb, this.object), txb.pure(
|
|
159
|
+
arguments: [Protocol.TXB_OBJECT(txb, this.object), txb.pure(Bcs.getInstance().ser_vector_string(nodes_name)), txb.pure(bTransferMyself, BCS.BOOL), Protocol.TXB_OBJECT(txb, this.permission)],
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -266,7 +266,7 @@ export class Machine {
|
|
|
266
266
|
ERROR(Errors.IsValidEndpoint);
|
|
267
267
|
}
|
|
268
268
|
let txb = this.protocol.CurrentSession();
|
|
269
|
-
let ep = endpoint ? txb.pure(
|
|
269
|
+
let ep = endpoint ? txb.pure(Bcs.getInstance().ser_option_string(endpoint)) : OptionNone(txb);
|
|
270
270
|
if (passport) {
|
|
271
271
|
txb.moveCall({
|
|
272
272
|
target: this.protocol.MachineFn('endpoint_set_with_passport'),
|
|
@@ -320,6 +320,7 @@ export class Machine {
|
|
|
320
320
|
arguments: [Protocol.TXB_OBJECT(txb, this.object), Protocol.TXB_OBJECT(txb, this.permission), Protocol.TXB_OBJECT(txb, new_permission)],
|
|
321
321
|
typeArguments: []
|
|
322
322
|
});
|
|
323
|
+
this.permission = new_permission;
|
|
323
324
|
}
|
|
324
325
|
static INITIAL_NODE_NAME = '';
|
|
325
326
|
static OPERATOR_ORDER_PAYER = 'order payer';
|
package/dist/passport.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SuiObjectResponse, SuiObjectDataOptions } from '@mysten/sui.js/client';
|
|
2
2
|
import { type TransactionObjectInput } from '@mysten/sui.js/transactions';
|
|
3
|
-
import { FnCallType, Query_Param, GuardObject, Protocol, ContextType, OperatorType, Data_Type, MODULES } from './protocol
|
|
4
|
-
import { VariableType } from './guard
|
|
3
|
+
import { FnCallType, Query_Param, GuardObject, Protocol, ContextType, OperatorType, Data_Type, MODULES } from './protocol';
|
|
4
|
+
import { VariableType } from './guard';
|
|
5
5
|
export type Guard_Query_Object = {
|
|
6
6
|
target: FnCallType;
|
|
7
7
|
object: TransactionObjectInput;
|
|
@@ -20,15 +20,15 @@ export type FutureValueRequest = {
|
|
|
20
20
|
identifier: number;
|
|
21
21
|
type: ContextType | OperatorType;
|
|
22
22
|
witness: string;
|
|
23
|
-
value
|
|
23
|
+
value: string;
|
|
24
24
|
};
|
|
25
25
|
export declare class GuardParser {
|
|
26
26
|
static guard_futures: (protocol: Protocol, guards: string[]) => Promise<FutureValueRequest[]>;
|
|
27
27
|
static parse_futures(result: FutureValueRequest[], guardid: string, chain_sense_bsc: Uint8Array, variable?: VariableType): boolean;
|
|
28
28
|
static guard_queries: (protocol: Protocol, guards: string[], futures?: FutureValueRequest[]) => Promise<Guard_Query_Object[]>;
|
|
29
29
|
static parse_sense_bsc(result: string[], guardid: string, chain_sense_bsc: Uint8Array, variable?: VariableType): boolean;
|
|
30
|
-
static rpc_sense_objects_fn: (response: SuiObjectResponse, param: Query_Param, option: SuiObjectDataOptions) => void;
|
|
31
|
-
static rpc_query_cmd_fn: (response: SuiObjectResponse, param: Query_Param, option: SuiObjectDataOptions) => void;
|
|
30
|
+
static rpc_sense_objects_fn: (protocol: Protocol, response: SuiObjectResponse, param: Query_Param, option: SuiObjectDataOptions) => void;
|
|
31
|
+
static rpc_query_cmd_fn: (protocol: Protocol, response: SuiObjectResponse, param: Query_Param, option: SuiObjectDataOptions) => void;
|
|
32
32
|
}
|
|
33
33
|
export declare class Passport {
|
|
34
34
|
static MAX_GUARD_COUNT: number;
|
package/dist/passport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passport.d.ts","sourceRoot":"","sources":["../src/passport.ts"],"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