wowok 1.5.52 → 1.5.54
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 +5 -2
- package/package.json +1 -1
- package/src/protocol.ts +8 -8
- package/src/repository.ts +5 -0
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# WoWok
|
|
3
3
|
|
|
4
4
|
Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.
|
|
5
5
|
|
|
@@ -27,5 +27,8 @@ The protocol address may change due to protocol upgrade. Please update the SDK t
|
|
|
27
27
|
* Encrypted personal information transfer and order management
|
|
28
28
|
* Support compensation and dispute voting arbitration
|
|
29
29
|
|
|
30
|
-
#### [
|
|
30
|
+
#### [How can social resources collaborate to meet a Kenya 10-day personalized travel dream](https://github.com/wowok-ai/sdk-examples/tree/main/kenya)
|
|
31
|
+
* Demand + Service + Machine/Progress + Order + Permission + Treasury + Arbitration
|
|
32
|
+
|
|
33
|
+
#### [See more examples...](https://github.com/wowok-ai/sdk-examples)
|
|
31
34
|
|
package/package.json
CHANGED
package/src/protocol.ts
CHANGED
|
@@ -221,14 +221,14 @@ const TESTNET = {
|
|
|
221
221
|
}
|
|
222
222
|
*/
|
|
223
223
|
const TESTNET = {
|
|
224
|
-
wowok: "
|
|
225
|
-
wowok_origin:'
|
|
226
|
-
base: '
|
|
227
|
-
base_origin: '
|
|
228
|
-
|
|
229
|
-
wowok_object: '
|
|
230
|
-
entity_object: '
|
|
231
|
-
treasury_cap:'
|
|
224
|
+
wowok: "0x55d89b02397f9086c1025380d5b92d3bb0daa906341a6173c5943045b83c10fa",
|
|
225
|
+
wowok_origin:'0x55d89b02397f9086c1025380d5b92d3bb0daa906341a6173c5943045b83c10fa' ,
|
|
226
|
+
base: '0xf02b247c28b38a1484fbac51b165fea3e70da6c5ca41256ed3c7e1b746fc7173',
|
|
227
|
+
base_origin: '0xf02b247c28b38a1484fbac51b165fea3e70da6c5ca41256ed3c7e1b746fc7173',
|
|
228
|
+
|
|
229
|
+
wowok_object: '0xa6057ffe4d7ec2c0fc0be6361460f9e705e29e94ee856e5b09d1b19b44108022',
|
|
230
|
+
entity_object: '0x155bfce91711af83a9e7b313f057ed6759dc06cfe52ec5993b2b85eab79623ea',
|
|
231
|
+
treasury_cap:'0xf3eb0e39d7435112c127d5f2130f8bf40ed4250756902b6c21df5140205bdf82',
|
|
232
232
|
}
|
|
233
233
|
const MAINNET = {
|
|
234
234
|
wowok: "",
|
package/src/repository.ts
CHANGED
|
@@ -380,6 +380,11 @@ export class Repository {
|
|
|
380
380
|
static MAX_KEY_LENGTH = 128;
|
|
381
381
|
static MAX_VALUE_LENGTH = 204800;
|
|
382
382
|
static MAX_REFERENCE_COUNT = 100;
|
|
383
|
+
|
|
384
|
+
static TYPE_NORMAL = 0;
|
|
385
|
+
static TYPE_WOWOK_GRANTEE = 1;
|
|
386
|
+
static TYPE_WOWOK_ORACLE = 2;
|
|
387
|
+
|
|
383
388
|
static IsValidName = (key:string) => {
|
|
384
389
|
return key.length <= Repository.MAX_KEY_LENGTH && key.length != 0;
|
|
385
390
|
}
|