wowok_agent 0.1.13 → 0.1.16
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 +17 -0
- package/dist/124.index.js +1 -0
- package/dist/account.d.ts +38 -0
- package/dist/account.d.ts.map +1 -0
- package/dist/account.js +273 -0
- package/dist/agent/empty.d.ts +1 -0
- package/dist/agent/empty.d.ts.map +1 -0
- package/dist/agent/src/account.d.ts +38 -0
- package/dist/agent/src/account.d.ts.map +1 -0
- package/dist/agent/src/cache.d.ts +46 -0
- package/dist/agent/src/cache.d.ts.map +1 -0
- package/dist/agent/src/call/arbitration.d.ts +63 -0
- package/dist/agent/src/call/arbitration.d.ts.map +1 -0
- package/dist/agent/src/call/base.d.ts +34 -0
- package/dist/agent/src/call/base.d.ts.map +1 -0
- package/dist/agent/src/call/demand.d.ts +55 -0
- package/dist/agent/src/call/demand.d.ts.map +1 -0
- package/dist/agent/src/call/guard.d.ts +44 -0
- package/dist/agent/src/call/guard.d.ts.map +1 -0
- package/dist/agent/src/call/machine.d.ts +109 -0
- package/dist/agent/src/call/machine.d.ts.map +1 -0
- package/dist/agent/src/call/object_permission.d.ts +13 -0
- package/dist/agent/src/call/object_permission.d.ts.map +1 -0
- package/dist/agent/src/call/permission.d.ts +47 -0
- package/dist/agent/src/call/permission.d.ts.map +1 -0
- package/dist/agent/src/call/personal.d.ts +43 -0
- package/dist/agent/src/call/personal.d.ts.map +1 -0
- package/dist/agent/src/call/repository.d.ts +53 -0
- package/dist/agent/src/call/repository.d.ts.map +1 -0
- package/dist/agent/src/call/service.d.ts +134 -0
- package/dist/agent/src/call/service.d.ts.map +1 -0
- package/dist/agent/src/call/treasury.d.ts +53 -0
- package/dist/agent/src/call/treasury.d.ts.map +1 -0
- package/dist/agent/src/call.d.ts +24 -0
- package/dist/agent/src/call.d.ts.map +1 -0
- package/dist/agent/src/events.d.ts +65 -0
- package/dist/agent/src/events.d.ts.map +1 -0
- package/dist/agent/src/index.d.ts +19 -0
- package/dist/agent/src/index.d.ts.map +1 -0
- package/dist/agent/src/objects.d.ts +308 -0
- package/dist/agent/src/objects.d.ts.map +1 -0
- package/dist/agent/src/permission.d.ts +12 -0
- package/dist/agent/src/permission.d.ts.map +1 -0
- package/dist/agent/src/private_info.d.ts +26 -0
- package/dist/agent/src/private_info.d.ts.map +1 -0
- package/dist/cache.d.ts +46 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +59 -0
- package/dist/call/arbitration.d.ts +63 -0
- package/dist/call/arbitration.d.ts.map +1 -0
- package/dist/call/arbitration.js +182 -0
- package/dist/call/base.d.ts +34 -0
- package/dist/call/base.d.ts.map +1 -0
- package/dist/call/base.js +131 -0
- package/dist/call/demand.d.ts +55 -0
- package/dist/call/demand.d.ts.map +1 -0
- package/dist/call/demand.js +135 -0
- package/dist/call/guard.d.ts +44 -0
- package/dist/call/guard.d.ts.map +1 -0
- package/dist/call/guard.js +244 -0
- package/dist/call/machine.d.ts +109 -0
- package/dist/call/machine.d.ts.map +1 -0
- package/dist/call/machine.js +210 -0
- package/dist/call/object_permission.d.ts +13 -0
- package/dist/call/object_permission.d.ts.map +1 -0
- package/dist/call/object_permission.js +49 -0
- package/dist/call/permission.d.ts +47 -0
- package/dist/call/permission.d.ts.map +1 -0
- package/dist/call/permission.js +95 -0
- package/dist/call/personal.d.ts +43 -0
- package/dist/call/personal.d.ts.map +1 -0
- package/dist/call/personal.js +60 -0
- package/dist/call/repository.d.ts +53 -0
- package/dist/call/repository.d.ts.map +1 -0
- package/dist/call/repository.js +125 -0
- package/dist/call/service.d.ts +134 -0
- package/dist/call/service.d.ts.map +1 -0
- package/dist/call/service.js +340 -0
- package/dist/call/treasury.d.ts +53 -0
- package/dist/call/treasury.d.ts.map +1 -0
- package/dist/call/treasury.js +161 -0
- package/dist/call.d.ts +24 -0
- package/dist/call.d.ts.map +1 -0
- package/dist/call.js +58 -0
- package/dist/empty.d.ts +1 -0
- package/dist/empty.d.ts.map +1 -0
- package/dist/empty.js +1 -0
- package/dist/events.d.ts +65 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +59 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/objects.d.ts +308 -0
- package/dist/objects.d.ts.map +1 -0
- package/dist/objects.js +448 -0
- package/dist/permission.d.ts +12 -0
- package/dist/permission.d.ts.map +1 -0
- package/dist/permission.js +40 -0
- package/dist/private_info.d.ts +26 -0
- package/dist/private_info.d.ts.map +1 -0
- package/dist/private_info.js +243 -0
- package/dist/src/account.d.ts +38 -0
- package/dist/src/account.d.ts.map +1 -0
- package/dist/src/account.js +273 -0
- package/dist/src/cache.d.ts +46 -0
- package/dist/src/cache.d.ts.map +1 -0
- package/dist/src/cache.js +59 -0
- package/dist/src/call/arbitration.d.ts +63 -0
- package/dist/src/call/arbitration.d.ts.map +1 -0
- package/dist/src/call/arbitration.js +182 -0
- package/dist/src/call/base.d.ts +34 -0
- package/dist/src/call/base.d.ts.map +1 -0
- package/dist/src/call/base.js +131 -0
- package/dist/src/call/demand.d.ts +55 -0
- package/dist/src/call/demand.d.ts.map +1 -0
- package/dist/src/call/demand.js +135 -0
- package/dist/src/call/guard.d.ts +44 -0
- package/dist/src/call/guard.d.ts.map +1 -0
- package/dist/src/call/guard.js +244 -0
- package/dist/src/call/machine.d.ts +109 -0
- package/dist/src/call/machine.d.ts.map +1 -0
- package/dist/src/call/machine.js +210 -0
- package/dist/src/call/object_permission.d.ts +13 -0
- package/dist/src/call/object_permission.d.ts.map +1 -0
- package/dist/src/call/object_permission.js +49 -0
- package/dist/src/call/permission.d.ts +47 -0
- package/dist/src/call/permission.d.ts.map +1 -0
- package/dist/src/call/permission.js +95 -0
- package/dist/src/call/personal.d.ts +43 -0
- package/dist/src/call/personal.d.ts.map +1 -0
- package/dist/src/call/personal.js +60 -0
- package/dist/src/call/repository.d.ts +53 -0
- package/dist/src/call/repository.d.ts.map +1 -0
- package/dist/src/call/repository.js +125 -0
- package/dist/src/call/service.d.ts +134 -0
- package/dist/src/call/service.d.ts.map +1 -0
- package/dist/src/call/service.js +340 -0
- package/dist/src/call/treasury.d.ts +53 -0
- package/dist/src/call/treasury.d.ts.map +1 -0
- package/dist/src/call/treasury.js +161 -0
- package/dist/src/call.d.ts +24 -0
- package/dist/src/call.d.ts.map +1 -0
- package/dist/src/call.js +58 -0
- package/dist/src/events.d.ts +65 -0
- package/dist/src/events.d.ts.map +1 -0
- package/dist/src/events.js +59 -0
- package/dist/src/index.d.ts +19 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +18 -0
- package/dist/src/objects.d.ts +308 -0
- package/dist/src/objects.d.ts.map +1 -0
- package/dist/src/objects.js +448 -0
- package/dist/src/permission.d.ts +12 -0
- package/dist/src/permission.d.ts.map +1 -0
- package/dist/src/permission.js +40 -0
- package/dist/src/private_info.d.ts +26 -0
- package/dist/src/private_info.d.ts.map +1 -0
- package/dist/src/private_info.js +243 -0
- package/dist/webpack.config.d.ts +2 -0
- package/dist/webpack.config.d.ts.map +1 -0
- package/dist/webpack.config.js +17 -0
- package/dist/wowok/src/arbitration.d.ts +63 -0
- package/dist/wowok/src/arbitration.d.ts.map +1 -0
- package/dist/wowok/src/demand.d.ts +26 -0
- package/dist/wowok/src/demand.d.ts.map +1 -0
- package/dist/wowok/src/entity.d.ts +27 -0
- package/dist/wowok/src/entity.d.ts.map +1 -0
- package/dist/wowok/src/exception.d.ts +31 -0
- package/dist/wowok/src/exception.d.ts.map +1 -0
- package/dist/wowok/src/guard.d.ts +79 -0
- package/dist/wowok/src/guard.d.ts.map +1 -0
- package/dist/wowok/src/index.d.ts +35 -0
- package/dist/wowok/src/index.d.ts.map +1 -0
- package/dist/wowok/src/machine.d.ts +67 -0
- package/dist/wowok/src/machine.d.ts.map +1 -0
- package/dist/wowok/src/passport.d.ts +86 -0
- package/dist/wowok/src/passport.d.ts.map +1 -0
- package/dist/wowok/src/payment.d.ts +16 -0
- package/dist/wowok/src/payment.d.ts.map +1 -0
- package/dist/wowok/src/permission.d.ts +150 -0
- package/dist/wowok/src/permission.d.ts.map +1 -0
- package/dist/wowok/src/progress.d.ts +72 -0
- package/dist/wowok/src/progress.d.ts.map +1 -0
- package/dist/wowok/src/protocol.d.ts +226 -0
- package/dist/wowok/src/protocol.d.ts.map +1 -0
- package/dist/wowok/src/repository.d.ts +83 -0
- package/dist/wowok/src/repository.d.ts.map +1 -0
- package/dist/wowok/src/resource.d.ts +35 -0
- package/dist/wowok/src/resource.d.ts.map +1 -0
- package/dist/wowok/src/service.d.ts +138 -0
- package/dist/wowok/src/service.d.ts.map +1 -0
- package/dist/wowok/src/treasury.d.ts +55 -0
- package/dist/wowok/src/treasury.d.ts.map +1 -0
- package/dist/wowok/src/utils.d.ts +93 -0
- package/dist/wowok/src/utils.d.ts.map +1 -0
- package/dist/wowok/src/wowok.d.ts +15 -0
- package/dist/wowok/src/wowok.d.ts.map +1 -0
- package/dist/wowok_agent/empty.d.ts +1 -0
- package/dist/wowok_agent/empty.d.ts.map +1 -0
- package/dist/wowok_agent/src/account.d.ts +38 -0
- package/dist/wowok_agent/src/account.d.ts.map +1 -0
- package/dist/wowok_agent/src/cache.d.ts +46 -0
- package/dist/wowok_agent/src/cache.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/arbitration.d.ts +63 -0
- package/dist/wowok_agent/src/call/arbitration.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/base.d.ts +34 -0
- package/dist/wowok_agent/src/call/base.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/demand.d.ts +55 -0
- package/dist/wowok_agent/src/call/demand.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/guard.d.ts +44 -0
- package/dist/wowok_agent/src/call/guard.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/machine.d.ts +109 -0
- package/dist/wowok_agent/src/call/machine.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/object_permission.d.ts +13 -0
- package/dist/wowok_agent/src/call/object_permission.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/permission.d.ts +47 -0
- package/dist/wowok_agent/src/call/permission.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/personal.d.ts +43 -0
- package/dist/wowok_agent/src/call/personal.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/repository.d.ts +53 -0
- package/dist/wowok_agent/src/call/repository.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/service.d.ts +134 -0
- package/dist/wowok_agent/src/call/service.d.ts.map +1 -0
- package/dist/wowok_agent/src/call/treasury.d.ts +53 -0
- package/dist/wowok_agent/src/call/treasury.d.ts.map +1 -0
- package/dist/wowok_agent/src/call.d.ts +24 -0
- package/dist/wowok_agent/src/call.d.ts.map +1 -0
- package/dist/wowok_agent/src/events.d.ts +65 -0
- package/dist/wowok_agent/src/events.d.ts.map +1 -0
- package/dist/wowok_agent/src/index.d.ts +19 -0
- package/dist/wowok_agent/src/index.d.ts.map +1 -0
- package/dist/wowok_agent/src/objects.d.ts +308 -0
- package/dist/wowok_agent/src/objects.d.ts.map +1 -0
- package/dist/wowok_agent/src/permission.d.ts +12 -0
- package/dist/wowok_agent/src/permission.d.ts.map +1 -0
- package/dist/wowok_agent/src/private_info.d.ts +26 -0
- package/dist/wowok_agent/src/private_info.d.ts.map +1 -0
- package/empty.ts +0 -0
- package/package.json +12 -3
- package/src/account.ts +40 -37
- package/src/call/arbitration.ts +41 -19
- package/src/call/base.ts +14 -16
- package/src/call/demand.ts +8 -7
- package/src/call/guard.ts +2 -7
- package/src/call/machine.ts +56 -35
- package/src/call/repository.ts +17 -15
- package/src/call/service.ts +87 -55
- package/src/call/treasury.ts +11 -10
- package/src/call.ts +3 -3
- package/src/index.ts +1 -1
- package/tsconfig.json +6 -2
- package/webpack.config.cjs +26 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import * as os from 'os';
|
|
4
|
+
const Private_FileName = 'wowok.sel.dat';
|
|
5
|
+
const Private_Key = 'wowok-sel-v1';
|
|
6
|
+
export class PrivateInfo {
|
|
7
|
+
constructor(storage = 'File') {
|
|
8
|
+
this.storage = storage;
|
|
9
|
+
}
|
|
10
|
+
static _instance;
|
|
11
|
+
static Instance() {
|
|
12
|
+
if (!PrivateInfo._instance) {
|
|
13
|
+
PrivateInfo._instance = new PrivateInfo();
|
|
14
|
+
}
|
|
15
|
+
;
|
|
16
|
+
return PrivateInfo._instance;
|
|
17
|
+
}
|
|
18
|
+
storage = 'File';
|
|
19
|
+
_add(buffer, name, info, bDefault) {
|
|
20
|
+
var data;
|
|
21
|
+
try {
|
|
22
|
+
if (buffer) {
|
|
23
|
+
data = JSON.parse(buffer);
|
|
24
|
+
if (data) {
|
|
25
|
+
const f = data.find(v => v.name === name);
|
|
26
|
+
if (f) {
|
|
27
|
+
f.default = bDefault;
|
|
28
|
+
f.info = info;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if (bDefault) {
|
|
32
|
+
data.forEach(v => v.default = false);
|
|
33
|
+
}
|
|
34
|
+
data.push({ name: name, info: info, default: bDefault });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
data = [{ name: name, info: info, default: bDefault }];
|
|
39
|
+
}
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
console.log(e);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
_remove(buffer, name) {
|
|
48
|
+
var data;
|
|
49
|
+
try {
|
|
50
|
+
if (buffer) {
|
|
51
|
+
data = JSON.parse(buffer);
|
|
52
|
+
if (data) {
|
|
53
|
+
return data.filter(v => v.name !== name);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (e) {
|
|
58
|
+
console.log(e);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
_default(buffer) {
|
|
62
|
+
var data;
|
|
63
|
+
try {
|
|
64
|
+
if (buffer) {
|
|
65
|
+
data = JSON.parse(buffer);
|
|
66
|
+
if (data) {
|
|
67
|
+
const f = data.find(v => v.default);
|
|
68
|
+
if (f) {
|
|
69
|
+
return f;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
console.log(e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
_get(buffer, name, bNotFoundReturnDefault) {
|
|
79
|
+
var data;
|
|
80
|
+
try {
|
|
81
|
+
if (buffer) {
|
|
82
|
+
data = JSON.parse(buffer);
|
|
83
|
+
if (data) {
|
|
84
|
+
const f = data.find(v => v.name === name);
|
|
85
|
+
if (f) {
|
|
86
|
+
return f;
|
|
87
|
+
}
|
|
88
|
+
if (bNotFoundReturnDefault) {
|
|
89
|
+
return data.find(v => v.default);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
console.log(e);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
_rename(buffer, oldName, newName, bSwapIfExisted = true) {
|
|
99
|
+
var data;
|
|
100
|
+
try {
|
|
101
|
+
if (buffer) {
|
|
102
|
+
data = JSON.parse(buffer);
|
|
103
|
+
if (data) {
|
|
104
|
+
const f1 = data.find(v => v.name === oldName);
|
|
105
|
+
if (!f1)
|
|
106
|
+
return undefined;
|
|
107
|
+
const f2 = data.find(v => v.name === newName);
|
|
108
|
+
if (f2) {
|
|
109
|
+
if (bSwapIfExisted) {
|
|
110
|
+
f1.name = newName;
|
|
111
|
+
f2.name = oldName;
|
|
112
|
+
return data;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
f1.name = newName;
|
|
117
|
+
return data;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
catch (e) {
|
|
123
|
+
console.log(e);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
set_storage(storage = 'File') {
|
|
127
|
+
this.storage = storage;
|
|
128
|
+
}
|
|
129
|
+
default() {
|
|
130
|
+
try {
|
|
131
|
+
if (this.storage === 'File') {
|
|
132
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
133
|
+
return this._default(fs.readFileSync(filePath, 'utf-8'));
|
|
134
|
+
}
|
|
135
|
+
else if (this.storage === 'Explorer') {
|
|
136
|
+
return this._default(localStorage.getItem(Private_Key));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e) {
|
|
140
|
+
console.log(e);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
get(name, bNotFoundReturnDefault = true) {
|
|
144
|
+
try {
|
|
145
|
+
if (this.storage === 'File') {
|
|
146
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
147
|
+
return this._get(fs.readFileSync(filePath, 'utf-8'), name, bNotFoundReturnDefault);
|
|
148
|
+
}
|
|
149
|
+
else if (this.storage === 'Explorer') {
|
|
150
|
+
return this._get(localStorage.getItem(Private_Key), name, bNotFoundReturnDefault);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
catch (e) {
|
|
154
|
+
console.log(e);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
rename(oldName, newName, bSwapIfExisted = true) {
|
|
158
|
+
var res;
|
|
159
|
+
try {
|
|
160
|
+
if (this.storage === 'File') {
|
|
161
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
162
|
+
res = this._rename(fs.readFileSync(filePath, 'utf-8'), oldName, newName, bSwapIfExisted);
|
|
163
|
+
if (res) {
|
|
164
|
+
fs.writeFileSync(filePath, JSON.stringify(res), 'utf-8');
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else if (this.storage === 'Explorer') {
|
|
168
|
+
res = this._rename(localStorage.getItem(Private_Key), oldName, newName, bSwapIfExisted);
|
|
169
|
+
if (res)
|
|
170
|
+
localStorage.setItem(Private_Key, JSON.stringify(res));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
console.log(e);
|
|
175
|
+
}
|
|
176
|
+
return res ? true : false;
|
|
177
|
+
}
|
|
178
|
+
list() {
|
|
179
|
+
try {
|
|
180
|
+
if (this.storage === 'File') {
|
|
181
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
182
|
+
return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
183
|
+
}
|
|
184
|
+
else if (this.storage === 'Explorer') {
|
|
185
|
+
return JSON.parse(localStorage.getItem(Private_Key) ?? '');
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
catch (e) {
|
|
189
|
+
console.log(e);
|
|
190
|
+
}
|
|
191
|
+
return [];
|
|
192
|
+
}
|
|
193
|
+
add(name, info, bDefault) {
|
|
194
|
+
try {
|
|
195
|
+
if (this.storage === 'File') {
|
|
196
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
197
|
+
fs.readFile(filePath, 'utf-8', (err, d) => {
|
|
198
|
+
const data = this._add(d, name, info, bDefault);
|
|
199
|
+
fs.writeFileSync(filePath, JSON.stringify(data), 'utf-8');
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
else if (this.storage === 'Explorer') {
|
|
203
|
+
const data = this._add(localStorage.getItem(Private_Key), name, info, bDefault);
|
|
204
|
+
localStorage.setItem(Private_Key, JSON.stringify(data));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
catch (e) {
|
|
208
|
+
console.log(e);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
remove(name) {
|
|
212
|
+
try {
|
|
213
|
+
if (this.storage === 'File') {
|
|
214
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
215
|
+
fs.readFile(filePath, 'utf-8', (err, d) => {
|
|
216
|
+
const data = this._remove(d, name);
|
|
217
|
+
fs.writeFileSync(filePath, JSON.stringify(data), 'utf-8');
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
else if (this.storage === 'Explorer') {
|
|
221
|
+
const data = this._remove(localStorage.getItem(Private_Key), name);
|
|
222
|
+
localStorage.setItem(Private_Key, JSON.stringify(data));
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
catch (e) {
|
|
226
|
+
console.log(e);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
removeall() {
|
|
230
|
+
try {
|
|
231
|
+
if (this.storage === 'File') {
|
|
232
|
+
const filePath = path.join(os.homedir(), Private_FileName);
|
|
233
|
+
fs.unlink(filePath, (err) => { console.log(err); });
|
|
234
|
+
}
|
|
235
|
+
else if (this.storage === 'Explorer') {
|
|
236
|
+
localStorage.removeItem(Private_Key);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
console.log(e);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../webpack.config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
module.exports = {
|
|
3
|
+
entry: './src/index.ts',
|
|
4
|
+
output: {
|
|
5
|
+
filename: 'index.js',
|
|
6
|
+
path: path.resolve(__dirname, 'dist'),
|
|
7
|
+
libraryTarget: 'umd',
|
|
8
|
+
globalObject: 'this' // 兼容Node和浏览器环境
|
|
9
|
+
},
|
|
10
|
+
module: {
|
|
11
|
+
rules: [{
|
|
12
|
+
test: /\.ts$/,
|
|
13
|
+
use: 'ts-loader',
|
|
14
|
+
exclude: /node_modules/
|
|
15
|
+
}]
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { GuardObject, PassportObject, PermissionObject, CoinObject, TxbObject, ArbitrationAddress, OrderObject, ArbObject, PaymentAddress, TreasuryObject, ArbAddress } from './protocol';
|
|
2
|
+
import { Transaction as TransactionBlock } from '@mysten/sui/transactions';
|
|
3
|
+
export interface VotingGuard {
|
|
4
|
+
guard: GuardObject;
|
|
5
|
+
voting_weight: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Vote {
|
|
8
|
+
arb: ArbObject;
|
|
9
|
+
voting_guard?: GuardObject;
|
|
10
|
+
agrees: number[];
|
|
11
|
+
}
|
|
12
|
+
export interface Feedback {
|
|
13
|
+
arb: ArbObject;
|
|
14
|
+
feedback: string;
|
|
15
|
+
indemnity?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface Dispute {
|
|
18
|
+
order: OrderObject;
|
|
19
|
+
order_token_type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
votable_proposition: string[];
|
|
22
|
+
fee?: CoinObject;
|
|
23
|
+
}
|
|
24
|
+
export interface WithdrawFee {
|
|
25
|
+
treasury: TreasuryObject;
|
|
26
|
+
index: bigint;
|
|
27
|
+
remark: string;
|
|
28
|
+
for_object?: string;
|
|
29
|
+
for_guard?: GuardObject;
|
|
30
|
+
}
|
|
31
|
+
export declare class Arbitration {
|
|
32
|
+
protected pay_token_type: string;
|
|
33
|
+
protected permission: PermissionObject;
|
|
34
|
+
protected object: TxbObject;
|
|
35
|
+
protected txb: TransactionBlock;
|
|
36
|
+
get_pay_type(): string;
|
|
37
|
+
get_object(): TxbObject;
|
|
38
|
+
private constructor();
|
|
39
|
+
static From(txb: TransactionBlock, token_type: string, permission: PermissionObject, object: TxbObject): Arbitration;
|
|
40
|
+
static New(txb: TransactionBlock, token_type: string, permission: PermissionObject, description: string, fee: bigint | number | string, withdrawTreasury: TreasuryObject, passport?: PassportObject): Arbitration;
|
|
41
|
+
launch(): ArbitrationAddress;
|
|
42
|
+
set_description(description: string, passport?: PassportObject): void;
|
|
43
|
+
set_fee(fee: bigint, passport?: PassportObject): void;
|
|
44
|
+
set_endpoint(endpoint?: string, passport?: PassportObject): void;
|
|
45
|
+
add_voting_guard(guard: VotingGuard[], passport?: PassportObject): void;
|
|
46
|
+
remove_voting_guard(guard: string[], removeall?: boolean, passport?: PassportObject): void;
|
|
47
|
+
set_guard(apply_guard?: string, passport?: PassportObject): void;
|
|
48
|
+
pause(pause: boolean, passport?: PassportObject): void;
|
|
49
|
+
vote(param: Vote, passport?: PassportObject): void;
|
|
50
|
+
arbitration(param: Feedback, passport?: PassportObject): void;
|
|
51
|
+
withdraw_fee(arb: ArbObject, param: WithdrawFee, passport?: PassportObject): PaymentAddress;
|
|
52
|
+
set_withdrawTreasury(treasury: TreasuryObject, passport?: PassportObject): void;
|
|
53
|
+
arb(param: Dispute, passport?: PassportObject): ArbObject;
|
|
54
|
+
arb_launch(arb: ArbObject): ArbAddress;
|
|
55
|
+
dispute(param: Dispute, passport?: PassportObject): ArbAddress;
|
|
56
|
+
change_permission(new_permission: PermissionObject): void;
|
|
57
|
+
static parseObjectType: (chain_type: string | undefined | null) => string;
|
|
58
|
+
static parseArbObjectType: (chain_type: string | undefined | null) => string;
|
|
59
|
+
static queryArbVoted: () => void;
|
|
60
|
+
static MAX_PROPOSITION_COUNT: number;
|
|
61
|
+
static MAX_VOTING_GUARD_COUNT: number;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=arbitration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arbitration.d.ts","sourceRoot":"","sources":["../../../../wowok/src/arbitration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAC1E,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EACrF,UAAU,EAAC,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAI,MAAM,0BAA0B,CAAC;AAE7E,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,aAAa,EAAC,M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EvE;IAED,MAAM,CAAC,kBAAkB,GAAI,YAAW,MAAM,GAAG,SAAS,GAAG,IAAI,KAAI,MAAM,CAE1E;IAED,MAAM,CAAC,aAAa,aAEnB;IACD,MAAM,CAAC,qBAAqB,SAAM;IAClC,MAAM,CAAC,sBAAsB,SAAM;CACtC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Transaction as TransactionBlock } from '@mysten/sui/transactions';
|
|
2
|
+
import { PassportObject, PermissionObject, GuardObject, DemandAddress, TxbObject, ServiceObject } from './protocol';
|
|
3
|
+
export declare class Demand {
|
|
4
|
+
protected bounty_type: string;
|
|
5
|
+
protected permission: PermissionObject;
|
|
6
|
+
protected object: TxbObject;
|
|
7
|
+
protected txb: TransactionBlock;
|
|
8
|
+
get_bounty_type(): string;
|
|
9
|
+
get_object(): TxbObject;
|
|
10
|
+
static From(txb: TransactionBlock, bounty_type: string, permission: PermissionObject, object: TxbObject): Demand;
|
|
11
|
+
private constructor();
|
|
12
|
+
static New(txb: TransactionBlock, bounty_type: string, ms_expand: boolean, time: number, permission: PermissionObject, description: string, passport?: PassportObject): Demand;
|
|
13
|
+
launch(): DemandAddress;
|
|
14
|
+
refund(passport?: PassportObject): void;
|
|
15
|
+
expand_time(minutes_duration: boolean, time: number, passport?: PassportObject): void;
|
|
16
|
+
set_guard(guard?: GuardObject, service_identifier?: number, passport?: PassportObject): void;
|
|
17
|
+
set_description(description: string, passport?: PassportObject): void;
|
|
18
|
+
yes(service_address: string, passport?: PassportObject): void;
|
|
19
|
+
deposit(bounty: TxbObject): void;
|
|
20
|
+
present(service: ServiceObject | number, service_pay_type: string, tips: string, passport?: PassportObject): void;
|
|
21
|
+
change_permission(new_permission: PermissionObject): void;
|
|
22
|
+
static parseObjectType: (chain_type?: string | null) => string;
|
|
23
|
+
static MAX_BOUNTY_COUNT: number;
|
|
24
|
+
static MAX_PRESENTERS_COUNT: number;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=demand.d.ts.map
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,EAAC,cAAc;IAwBpD,OAAO,CAAC,MAAM,EAAC,SAAS;IAYxB,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,gBAAgB,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,cAAc;IA4CvG,iBAAiB,CAAC,cAAc,EAAC,gBAAgB;IAYjD,MAAM,CAAC,eAAe,GAAI,aAAY,MAAM,GAAG,IAAI,KAAI,MAAM,CAE5D;IAED,MAAM,CAAC,gBAAgB,SAAO;IAC9B,MAAM,CAAC,oBAAoB,SAAO;CACrC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TxbObject, ResourceAddress, ResourceObject } from './protocol';
|
|
2
|
+
import { TagName, Resource } from './resource';
|
|
3
|
+
import { Transaction as TransactionBlock, TransactionResult } from '@mysten/sui/transactions';
|
|
4
|
+
export interface Entity_Info {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
twitter?: string;
|
|
9
|
+
discord?: string;
|
|
10
|
+
homepage?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class Entity {
|
|
13
|
+
protected object: TxbObject;
|
|
14
|
+
protected txb: TransactionBlock;
|
|
15
|
+
get_object(): TxbObject;
|
|
16
|
+
private constructor();
|
|
17
|
+
static From(txb: TransactionBlock): Entity;
|
|
18
|
+
mark(resource: Resource, address: string | TransactionResult, like: TagName.Like | TagName.Dislike): void;
|
|
19
|
+
update(info: Entity_Info): void;
|
|
20
|
+
create_resource(): ResourceAddress;
|
|
21
|
+
create_resource2(): ResourceObject;
|
|
22
|
+
destroy_resource(resource: Resource): TransactionResult;
|
|
23
|
+
use_resource(resource: Resource): TransactionResult;
|
|
24
|
+
transfer_resource(resource: Resource, new_address: string): TransactionResult;
|
|
25
|
+
query_ent(address_queried: string): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../../wowok/src/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,SAAS,EAAE,eAAe,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG9F,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,MAAM;IACf,SAAS,CAAC,MAAM,EAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,GAAG,mBAAC;IAEd,UAAU;IACV,OAAO;IAKP,MAAM,CAAC,IAAI,CAAC,GAAG,EAAC,gBAAgB,GAAI,MAAM;IAM1C,IAAI,CAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,GAAG,iBAAiB,EAAE,IAAI,EAAC,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,OAAO;IAY/F,MAAM,CAAC,IAAI,EAAE,WAAW;IAsBxB,eAAe,IAAK,eAAe;IAOnC,gBAAgB,IAAI,cAAc;IAOlC,gBAAgB,CAAC,QAAQ,EAAC,QAAQ;IAOlC,YAAY,CAAC,QAAQ,EAAC,QAAQ;IAO9B,iBAAiB,CAAC,QAAQ,EAAC,QAAQ,EAAE,WAAW,EAAC,MAAM;IAUvD,SAAS,CAAC,eAAe,EAAC,MAAM;CAUnC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum Errors {
|
|
2
|
+
IsValidDesription = "invalid description",
|
|
3
|
+
IsValidName = "invalid name",
|
|
4
|
+
IsValidName_AllowEmpty = "invalid name",
|
|
5
|
+
IsValidEndpoint = "invalid endpoint",
|
|
6
|
+
IsValidAddress = "invalid address",
|
|
7
|
+
IsValidArgType = "invalid argument type",
|
|
8
|
+
IsValidTokenType = "invalid token type",
|
|
9
|
+
IsValidUint = "invalid uint",
|
|
10
|
+
IsValidInt = "invalid int",
|
|
11
|
+
IsValidU64 = "invalid u64",
|
|
12
|
+
IsValidU8 = "invalid u8",
|
|
13
|
+
IsValidPercent = "invalid percent",
|
|
14
|
+
IsValidArray = "invalid array",
|
|
15
|
+
IsValidObjects = "invalid objects",
|
|
16
|
+
AllInvalid = "one valid at least",
|
|
17
|
+
InvalidParam = "invalid parameter",
|
|
18
|
+
IsValidPermissionIndex = "invalid permission index",
|
|
19
|
+
IsValidKey = "invalid key",
|
|
20
|
+
Fail = "fail",
|
|
21
|
+
IsValidIndentifier = "indentifier invalid",
|
|
22
|
+
isValidHttpUrl = "invalid url",
|
|
23
|
+
IsValidBizPermissionIndex = "invalid biz-permission index",
|
|
24
|
+
bcsTypeInvalid = "invalid bcs type",
|
|
25
|
+
IsValidServiceItemName = "invalid service item name",
|
|
26
|
+
IsValidCoinType = "not the coin type",
|
|
27
|
+
IsValidGuardIdentifier = "guard identifier invalid",
|
|
28
|
+
noPermission = "no permission"
|
|
29
|
+
}
|
|
30
|
+
export declare const ERROR: (error: Errors, info?: any) => never;
|
|
31
|
+
//# sourceMappingURL=exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exception.d.ts","sourceRoot":"","sources":["../../../../wowok/src/exception.ts"],"names":[],"mappings":"AACA,oBAAY,MAAM;IACd,iBAAiB,wBAAwB;IACzC,WAAW,iBAAiB;IAC5B,sBAAsB,iBAAiB;IACvC,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,cAAc,0BAA0B;IACxC,gBAAgB,uBAAuB;IACvC,WAAW,iBAAiB;IAC5B,UAAU,gBAAgB;IAC1B,UAAU,gBAAgB;IAC1B,SAAS,eAAe;IACxB,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,UAAU,uBAAuB;IACjC,YAAY,sBAAuB;IACnC,sBAAsB,6BAA6B;IACnD,UAAU,gBAAgB;IAC1B,IAAI,SAAS;IACb,kBAAkB,wBAAwB;IAC1C,cAAc,gBAAgB;IAC9B,yBAAyB,iCAAiC;IAC1D,cAAc,qBAAqB;IACnC,sBAAsB,8BAA8B;IACpD,eAAe,sBAAsB;IACrC,sBAAsB,6BAA6B;IACnD,YAAY,kBAAkB;CACjC;AAED,eAAO,MAAM,KAAK,GAAI,OAAM,MAAM,EAAE,OAAM,GAAG,UAG5C,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { GuardAddress, Data_Type, MODULES, ContextType, ValueType, OperatorType, TxbObject, GuardObject } from './protocol';
|
|
2
|
+
import { Transaction as TransactionBlock } from '@mysten/sui/transactions';
|
|
3
|
+
export type GuardConstant = Map<number, Guard_Variable>;
|
|
4
|
+
export interface Guard_Variable {
|
|
5
|
+
type: ValueType;
|
|
6
|
+
value?: Uint8Array;
|
|
7
|
+
bWitness: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface Guard_Options {
|
|
10
|
+
from: 'query' | 'type';
|
|
11
|
+
name: string;
|
|
12
|
+
value: number;
|
|
13
|
+
group?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GuardAnswer {
|
|
16
|
+
txb: TransactionBlock;
|
|
17
|
+
err?: string;
|
|
18
|
+
identifiers: number[];
|
|
19
|
+
}
|
|
20
|
+
export type OnQueryAnswer = (answer: GuardAnswer) => void;
|
|
21
|
+
export declare const GUARD_QUERIES: any[];
|
|
22
|
+
export declare class Guard {
|
|
23
|
+
static MAX_INPUT_LENGTH: number;
|
|
24
|
+
protected txb: TransactionBlock;
|
|
25
|
+
protected object: TxbObject;
|
|
26
|
+
get_object(): TxbObject;
|
|
27
|
+
static From(txb: TransactionBlock, object: TxbObject): Guard;
|
|
28
|
+
private constructor();
|
|
29
|
+
static New(txb: TransactionBlock, description: string, maker: GuardMaker): Guard;
|
|
30
|
+
launch(): GuardAddress;
|
|
31
|
+
static everyone_guard(txb: TransactionBlock): GuardAddress;
|
|
32
|
+
static QueryAddressIdentifiers(guard: GuardObject, onQueryAnswer: OnQueryAnswer, sender: string): void;
|
|
33
|
+
static BoolCmd: any[];
|
|
34
|
+
static IsBoolCmd: (cmd: number) => boolean;
|
|
35
|
+
static CmdFilter: (retType: ValueType) => any[];
|
|
36
|
+
static GetCmd: (cmd: number | undefined) => any;
|
|
37
|
+
static GetCmdOption: (cmd: number) => Guard_Options | undefined;
|
|
38
|
+
static GetInputParams: (cmd: number) => ValueType[];
|
|
39
|
+
static GetModuleName: (cmd: number) => string;
|
|
40
|
+
static NumberOptions: () => Guard_Options[];
|
|
41
|
+
static Signer: Guard_Options;
|
|
42
|
+
static Time: Guard_Options;
|
|
43
|
+
static Guard: Guard_Options;
|
|
44
|
+
static Logics: () => Guard_Options[];
|
|
45
|
+
static Crunchings: Guard_Options[];
|
|
46
|
+
static CommonOptions: (retType: ValueType) => Guard_Options[];
|
|
47
|
+
static AllOptions: () => Guard_Options[];
|
|
48
|
+
static StringOptions: () => Guard_Options[];
|
|
49
|
+
static BoolOptions: () => Guard_Options[];
|
|
50
|
+
static AddressOptions: () => Guard_Options[];
|
|
51
|
+
static Options: (ret_type: ValueType | "number" | "any") => Guard_Options[];
|
|
52
|
+
}
|
|
53
|
+
export declare const IsValidGuardIdentifier: (identifier: number | undefined) => boolean;
|
|
54
|
+
export declare class GuardMaker {
|
|
55
|
+
protected data: Uint8Array[];
|
|
56
|
+
protected type_validator: Data_Type[];
|
|
57
|
+
protected constant: GuardConstant;
|
|
58
|
+
private static _witness_index;
|
|
59
|
+
private static _const_index;
|
|
60
|
+
private static GetWitnessIndex;
|
|
61
|
+
private static getConstIndex;
|
|
62
|
+
static IsValidIndentifier: (identifier: number) => boolean;
|
|
63
|
+
constructor();
|
|
64
|
+
add_constant(type: ValueType, value?: any, identifier?: number, bNeedSerialize?: boolean): number;
|
|
65
|
+
add_param(type: ValueType | ContextType, param?: any): GuardMaker;
|
|
66
|
+
add_query(module: MODULES, query_name: string, object_address_from: string | number): GuardMaker;
|
|
67
|
+
add_logic(type: OperatorType, logic_count?: number): GuardMaker;
|
|
68
|
+
hasIdentifier(id: number): boolean;
|
|
69
|
+
build(bNot?: boolean): GuardMaker;
|
|
70
|
+
IsReady(): boolean;
|
|
71
|
+
combine(otherBuilt: GuardMaker, bAnd?: boolean, bCombinConstant?: boolean): GuardMaker;
|
|
72
|
+
get_constant(): GuardConstant;
|
|
73
|
+
get_input(): Uint8Array<ArrayBufferLike>[];
|
|
74
|
+
static input_combine(input1: Uint8Array, input2: Uint8Array, bAnd?: boolean): Uint8Array;
|
|
75
|
+
static input_not(input: Uint8Array): Uint8Array;
|
|
76
|
+
static match_u256(type: number): boolean;
|
|
77
|
+
static is_multi_input_op(type: number): boolean;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../../../wowok/src/guard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,YAAY,EAAc,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAG,YAAY,EAAE,SAAS,EAAE,WAAW,EAAsB,MAAM,YAAY,CAAC;AAGnL,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAExD,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,SAAS,CAAE;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAG,OAAO,CAAC;CACtB;AAED,MAAM,WAAY,a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ID,YAAY,CAAC,IAAI,EAAC,SAAS,EAAE,KAAK,CAAC,EAAC,GAAG,EAAE,UAAU,CAAC,EAAC,MAAM,EAAE,cAAc,UAAK,GAAI,MAAM;IAgB1F,SAAS,CAAC,IAAI,EAAC,SAAS,GAAG,WAAW,EAAE,KAAK,CAAC,EAAC,GAAG,GAAI,UAAU;IAiEhE,SAAS,CAAC,MAAM,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,EAAE,mBAAmB,EAAC,MAAM,GAAG,MAAM,GAAI,UAAU;IAiD9F,SAAS,CAAC,IAAI,EAAC,YAAY,EAAE,WAAW,GAAC,MAAQ,GAAI,UAAU;IA4E/D,aAAa,CAAC,EAAE,EAAC,MAAM,GAAI,OAAO;IAIlC,KAAK,CAAC,IAAI,UAAQ,GAAI,UAAU;IAchC,OAAO,IAAK,OAAO;IAInB,OAAO,CAAC,UAAU,EAAC,UAAU,EAAE,IAAI,GAAC,OAAc,EAAE,eAAe,UAAM,GAAI,UAAU;IAmBvF,YAAY;IACZ,SAAS;IAGT,MAAM,CAAC,aAAa,CAAC,MAAM,EAAC,UAAU,EAAE,MAAM,EAAC,UAAU,EAAE,IAAI,GAAC,OAAc,GAAI,UAAU;IAI5F,MAAM,CAAC,SAAS,CAAC,KAAK,EAAC,UAAU,GAAI,UAAU;IAI/C,MAAM,CAAC,UAAU,CAAC,IAAI,EAAC,MAAM,GAAI,OAAO;IAGxC,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAC,MAAM,GAAI,OAAO;CAiBlD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './demand';
|
|
2
|
+
export * from './progress';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './permission';
|
|
5
|
+
export * from './guard';
|
|
6
|
+
export * from './repository';
|
|
7
|
+
export * from './protocol';
|
|
8
|
+
export * from './passport';
|
|
9
|
+
export * from './machine';
|
|
10
|
+
export * from './service';
|
|
11
|
+
export * from './entity';
|
|
12
|
+
export * from './wowok';
|
|
13
|
+
export * from './resource';
|
|
14
|
+
export * from './treasury';
|
|
15
|
+
export * from './payment';
|
|
16
|
+
export * from './arbitration';
|
|
17
|
+
export * from './exception';
|
|
18
|
+
export { BCS, getSuiMoveConfig, } from '@mysten/bcs';
|
|
19
|
+
export { Transaction as TransactionBlock } from '@mysten/sui/transactions';
|
|
20
|
+
export { SuiClient } from '@mysten/sui/client';
|
|
21
|
+
export { Ed25519Keypair, } from '@mysten/sui/keypairs/ed25519';
|
|
22
|
+
export { fromHEX, toHEX } from '@mysten/bcs';
|
|
23
|
+
export { decodeSuiPrivateKey, encodeSuiPrivateKey } from '@mysten/sui/cryptography';
|
|
24
|
+
export { getFaucetHost, requestSuiFromFaucetV0, requestSuiFromFaucetV1 } from '@mysten/sui/faucet';
|
|
25
|
+
export { normalizeSuiAddress } from '@mysten/sui/utils';
|
|
26
|
+
import * as WowokTxn from '@mysten/sui/transactions';
|
|
27
|
+
export type TransactionArgument = WowokTxn.TransactionArgument;
|
|
28
|
+
export type TransactionResult = WowokTxn.TransactionResult;
|
|
29
|
+
import * as WowokClt from '@mysten/sui/client';
|
|
30
|
+
export type ObjectResponse = WowokClt.SuiObjectResponse;
|
|
31
|
+
export type DynamicFieldPage = WowokClt.DynamicFieldPage;
|
|
32
|
+
export type CoinBalance = WowokClt.CoinBalance;
|
|
33
|
+
export type CoinStruct = WowokClt.CoinStruct;
|
|
34
|
+
export type CallResponse = WowokClt.SuiTransactionBlockResponse;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../wowok/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAA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C"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Transaction as TransactionBlock, type TransactionResult } from '@mysten/sui/transactions';
|
|
2
|
+
import { PermissionObject, RepositoryObject, PassportObject, MachineObject, MachineAddress, GuardObject, TxbObject, ServiceObject } from './protocol';
|
|
3
|
+
import { PermissionIndexType } from './permission';
|
|
4
|
+
export interface ServiceWrap {
|
|
5
|
+
object: ServiceObject;
|
|
6
|
+
pay_token_type: string;
|
|
7
|
+
bOptional: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface Machine_Forward {
|
|
10
|
+
name: string;
|
|
11
|
+
namedOperator?: string;
|
|
12
|
+
permission?: PermissionIndexType;
|
|
13
|
+
weight?: number;
|
|
14
|
+
guard?: GuardObject;
|
|
15
|
+
suppliers?: ServiceWrap[];
|
|
16
|
+
}
|
|
17
|
+
export interface Machine_Node_Pair {
|
|
18
|
+
prior_node: string;
|
|
19
|
+
forwards: Machine_Forward[];
|
|
20
|
+
threshold?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface Machine_Node {
|
|
23
|
+
name: string;
|
|
24
|
+
pairs: Machine_Node_Pair[];
|
|
25
|
+
}
|
|
26
|
+
export interface QueryGuardParam {
|
|
27
|
+
node: string;
|
|
28
|
+
prior_node: string;
|
|
29
|
+
forward: string;
|
|
30
|
+
txb: TransactionBlock;
|
|
31
|
+
guard: string | null;
|
|
32
|
+
}
|
|
33
|
+
export type OnQueryGuard = (param: QueryGuardParam) => void;
|
|
34
|
+
export declare class Machine {
|
|
35
|
+
protected txb: TransactionBlock;
|
|
36
|
+
protected object: TxbObject;
|
|
37
|
+
protected permission: TxbObject;
|
|
38
|
+
get_object(): TxbObject;
|
|
39
|
+
static From(txb: TransactionBlock, permission: PermissionObject, object: TxbObject): Machine;
|
|
40
|
+
private constructor();
|
|
41
|
+
static New(txb: TransactionBlock, permission: PermissionObject, description: string, endpoint?: string | null | undefined, passport?: PassportObject): Machine;
|
|
42
|
+
add_node(nodes: Machine_Node[], passport?: PassportObject): void;
|
|
43
|
+
forward(forward: Machine_Forward): TransactionResult;
|
|
44
|
+
add_node2(nodes: TxbObject[], passport?: PassportObject): void;
|
|
45
|
+
fetch_node(node_name: string, passport?: PassportObject): TxbObject;
|
|
46
|
+
rename_node(node_name: string, new_name: string, passport?: PassportObject): void;
|
|
47
|
+
remove_node(nodes_name: string[], bTransferMyself?: boolean, passport?: PassportObject): void;
|
|
48
|
+
launch(): MachineAddress;
|
|
49
|
+
set_description(description: string, passport?: PassportObject): void;
|
|
50
|
+
add_repository(repository: RepositoryObject, passport?: PassportObject): void;
|
|
51
|
+
remove_repository(repositories: string[], removeall?: boolean, passport?: PassportObject): void;
|
|
52
|
+
clone(bLaunch?: boolean, passport?: PassportObject): MachineObject | MachineAddress;
|
|
53
|
+
set_endpoint(endpoint?: string | null | undefined, passport?: PassportObject): void;
|
|
54
|
+
pause(bPaused: boolean, passport?: PassportObject): void;
|
|
55
|
+
publish(passport?: PassportObject): void;
|
|
56
|
+
change_permission(new_permission: PermissionObject): void;
|
|
57
|
+
add_forward(node_prior: string, node_name: string, foward: Machine_Forward, threshold?: number, old_forward_name?: string, passport?: PassportObject): void;
|
|
58
|
+
remove_pair(node_prior: string, node_name: string, passport?: PassportObject): void;
|
|
59
|
+
remove_forward(node_prior: string, node_name: string, foward_name: string, passport?: PassportObject): void;
|
|
60
|
+
static rpc_de_nodes(fields: any): Machine_Node[];
|
|
61
|
+
static rpc_de_pair(data: any): Machine_Node_Pair[];
|
|
62
|
+
static namedOperators(nodes: Machine_Node[]): string[];
|
|
63
|
+
static checkValidForward(forward: Machine_Forward): string;
|
|
64
|
+
static INITIAL_NODE_NAME: string;
|
|
65
|
+
static OPERATOR_ORDER_PAYER: string;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=machine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../wowok/src/machine.ts"],"names":[],"mappings":"AAAA,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