wowok 1.6.84 → 1.6.85
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/dist/permission.d.ts +1 -1
- package/dist/permission.d.ts.map +1 -1
- package/dist/permission.js +0 -45
- package/package.json +1 -1
- package/src/permission.ts +18 -60
- package/tsconfig.json +112 -112
- package/dist/empty.d.ts +0 -1
- package/dist/empty.d.ts.map +0 -1
- package/dist/empty.js +0 -1
- package/dist/src/arbitration.d.ts +0 -61
- package/dist/src/arbitration.d.ts.map +0 -1
- package/dist/src/arbitration.js +0 -473
- package/dist/src/demand.d.ts +0 -26
- package/dist/src/demand.d.ts.map +0 -1
- package/dist/src/demand.js +0 -256
- package/dist/src/entity.d.ts +0 -27
- package/dist/src/entity.d.ts.map +0 -1
- package/dist/src/entity.js +0 -95
- package/dist/src/exception.d.ts +0 -31
- package/dist/src/exception.d.ts.map +0 -1
- package/dist/src/exception.js +0 -34
- package/dist/src/guard.d.ts +0 -79
- package/dist/src/guard.d.ts.map +0 -1
- package/dist/src/guard.js +0 -749
- package/dist/src/index.d.ts +0 -25
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -24
- package/dist/src/machine.d.ts +0 -67
- package/dist/src/machine.d.ts.map +0 -1
- package/dist/src/machine.js +0 -518
- package/dist/src/passport.d.ts +0 -86
- package/dist/src/passport.d.ts.map +0 -1
- package/dist/src/passport.js +0 -645
- package/dist/src/payment.d.ts +0 -16
- package/dist/src/payment.d.ts.map +0 -1
- package/dist/src/payment.js +0 -41
- package/dist/src/permission.d.ts +0 -150
- package/dist/src/permission.d.ts.map +0 -1
- package/dist/src/permission.js +0 -502
- package/dist/src/progress.d.ts +0 -72
- package/dist/src/progress.d.ts.map +0 -1
- package/dist/src/progress.js +0 -301
- package/dist/src/protocol.d.ts +0 -226
- package/dist/src/protocol.d.ts.map +0 -1
- package/dist/src/protocol.js +0 -482
- package/dist/src/repository.d.ts +0 -83
- package/dist/src/repository.d.ts.map +0 -1
- package/dist/src/repository.js +0 -528
- package/dist/src/resource.d.ts +0 -35
- package/dist/src/resource.d.ts.map +0 -1
- package/dist/src/resource.js +0 -130
- package/dist/src/service.d.ts +0 -128
- package/dist/src/service.d.ts.map +0 -1
- package/dist/src/service.js +0 -1234
- package/dist/src/treasury.d.ts +0 -55
- package/dist/src/treasury.d.ts.map +0 -1
- package/dist/src/treasury.js +0 -396
- package/dist/src/utils.d.ts +0 -93
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/utils.js +0 -616
- package/dist/src/wowok.d.ts +0 -15
- package/dist/src/wowok.d.ts.map +0 -1
- package/dist/src/wowok.js +0 -67
package/dist/permission.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export interface PermissionInfoType {
|
|
|
72
72
|
module: string;
|
|
73
73
|
guard?: string;
|
|
74
74
|
}
|
|
75
|
+
export declare const PermissionInfo: PermissionInfoType[];
|
|
75
76
|
export interface PermissionAnswer {
|
|
76
77
|
who: string;
|
|
77
78
|
owner?: boolean;
|
|
@@ -85,7 +86,6 @@ export interface PermissionAnswerItem {
|
|
|
85
86
|
guard?: string;
|
|
86
87
|
}
|
|
87
88
|
export type OnPermissionAnswer = (answer: PermissionAnswer) => void;
|
|
88
|
-
export declare const PermissionInfo: PermissionInfoType[];
|
|
89
89
|
export type PermissionIndexType = PermissionIndex | number;
|
|
90
90
|
export interface Permission_Entity_Permission {
|
|
91
91
|
index: PermissionIndexType;
|
package/dist/permission.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../src/permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAoB,iBAAiB,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AAIvH,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE3E,oBAAY,eAAe;IACvB,UAAU,MAAM;IAChB,sBAAsB,MAAM;IAC5B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AAC,MAAM,EAAE;IAaxB,YAAY,CAAC,KAAK,EAAC,MAAM,EAAE,EAAE,SAAS,CAAC,EAAC,OAAO;IAoB/C,YAAY,CAAC,SAAS,EAAC,MAAM;IAY7B,qBAAqB,CAAC,eAAe,EAAC,MAAM;IAW5C,gBAAgB,CAAC,UAAU,EAAC,MAAM,EAAE,eAAe,EAAC,MAAM,EAAE,kBAAkB,EAAC,kBAAkB,EAAE,MAAM,CAAC,EAAC,MAAM;IAwBjH,MAAM,CAAC,aAAa,CAAC,MAAM,EAAC,gBAAgB,GAAC,SAAS,EAAE,KAAK,EAAC,mBAAmB,EAAE,OAAO,GAAC,OAAa,GAAI;QAAC,GAAG,EAAC,OAAO,CAAC;QAAC,KAAK,CAAC,EAAC,MAAM,CAAC;QAAC,KAAK,CAAC,EAAC,OAAO,CAAA;KAAC,GAAG,SAAS;IAgBpK,MAAM,CAAC,eAAe,SAAM;IAC5B,MAAM,CAAC,gBAAgB,SAAQ;IAC/B,MAAM,CAAC,0BAA0B,SAAO;IACxC,MAAM,CAAC,6BAA6B,SAAO;IAE3C,MAAM,CAAC,iBAAiB,SAAK;IAC7B,MAAM,CAAC,gBAAgB,SAAK;IAC5B,MAAM,CAAC,gBAAgB,SAAK;IAC5B,MAAM,CAAC,0BAA0B,SAAK;IACtC,MAAM,CAAC,0BAA0B,kBAAsC;IAEvE,MAAM,CAAC,yBAAyB,GAAI,OAAM,MAAM,aAE/C;IAED,MAAM,CAAC,sBAAsB,GAAI,OAAM,mBAAmB,KAAI,OAAO,CAOpE;CACJ"}
|
package/dist/permission.js
CHANGED
|
@@ -9,18 +9,6 @@ export var PermissionIndex;
|
|
|
9
9
|
PermissionIndex[PermissionIndex["repository_mode"] = 102] = "repository_mode";
|
|
10
10
|
PermissionIndex[PermissionIndex["repository_policies"] = 103] = "repository_policies";
|
|
11
11
|
PermissionIndex[PermissionIndex["repository_reference"] = 104] = "repository_reference";
|
|
12
|
-
/*
|
|
13
|
-
vote = 150,
|
|
14
|
-
vote_description = 151,
|
|
15
|
-
vote_reference = 152,
|
|
16
|
-
vote_guard = 153,
|
|
17
|
-
vote_option = 155,
|
|
18
|
-
vote_max_choice_count = 157,
|
|
19
|
-
vote_open_voting = 158,
|
|
20
|
-
vote_lock_deadline = 159,
|
|
21
|
-
vote_expand_deadline = 160,
|
|
22
|
-
vote_lock_guard = 161,
|
|
23
|
-
*/
|
|
24
12
|
PermissionIndex[PermissionIndex["service"] = 200] = "service";
|
|
25
13
|
PermissionIndex[PermissionIndex["service_description"] = 201] = "service_description";
|
|
26
14
|
PermissionIndex[PermissionIndex["service_sales"] = 202] = "service_sales";
|
|
@@ -39,16 +27,6 @@ export var PermissionIndex;
|
|
|
39
27
|
PermissionIndex[PermissionIndex["service_pause"] = 215] = "service_pause";
|
|
40
28
|
PermissionIndex[PermissionIndex["service_treasury"] = 216] = "service_treasury";
|
|
41
29
|
PermissionIndex[PermissionIndex["service_arbitration"] = 217] = "service_arbitration";
|
|
42
|
-
/*
|
|
43
|
-
reward = 240,
|
|
44
|
-
reward_refund = 241,
|
|
45
|
-
reward_expand_time = 242,
|
|
46
|
-
reward_guard = 243,
|
|
47
|
-
reward_description = 245,
|
|
48
|
-
reward_lock_guards = 246,
|
|
49
|
-
reward_claim_repeatably = 247,
|
|
50
|
-
reward_allow_claiming = 248,
|
|
51
|
-
*/
|
|
52
30
|
PermissionIndex[PermissionIndex["demand"] = 260] = "demand";
|
|
53
31
|
PermissionIndex[PermissionIndex["demand_refund"] = 261] = "demand_refund";
|
|
54
32
|
PermissionIndex[PermissionIndex["demand_expand_time"] = 262] = "demand_expand_time";
|
|
@@ -96,18 +74,6 @@ export const PermissionInfo = [
|
|
|
96
74
|
{ index: PermissionIndex.repository_mode, name: 'Policy mode', description: 'Set Repository mode', module: MODULES.repository },
|
|
97
75
|
{ index: PermissionIndex.repository_policies, name: 'Policy', description: 'Set Repository policies', module: MODULES.repository },
|
|
98
76
|
{ index: PermissionIndex.repository_reference, name: 'Reference', description: 'Set Repository reference', module: MODULES.repository },
|
|
99
|
-
/*
|
|
100
|
-
{index:PermissionIndex.vote, name:'Vote', description:'Launch new Vote', module: 'vote'},
|
|
101
|
-
{index:PermissionIndex.vote_description, name:'Description', description:'Set Vote description', module: 'vote'},
|
|
102
|
-
{index:PermissionIndex.vote_reference, name:'Reference', description:'Set Vote reference', module: 'vote'},
|
|
103
|
-
{index:PermissionIndex.vote_guard, name:'Guard', description:'Set Vote guards', module: 'vote'},
|
|
104
|
-
{index:PermissionIndex.vote_option, name:'Option', description:'Set Vote options', module: 'vote'},
|
|
105
|
-
{index:PermissionIndex.vote_max_choice_count, name:'Choice count', description:'Set Vote max choice count', module: 'vote'},
|
|
106
|
-
{index:PermissionIndex.vote_open_voting, name:'Open voting', description:'Open voting', module: 'vote'},
|
|
107
|
-
{index:PermissionIndex.vote_lock_deadline, name:'Lock deadline', description:'Set Vote deadline immutable', module: 'vote'},
|
|
108
|
-
{index:PermissionIndex.vote_expand_deadline, name:'Expand deadline', description:'Expand Vote deadline', module: 'vote'},
|
|
109
|
-
{index:PermissionIndex.vote_lock_guard, name:'Lock Guard', description:'Set Vote guards immutable', module: 'vote'},
|
|
110
|
-
*/
|
|
111
77
|
{ index: PermissionIndex.service, name: 'Service', description: 'Launch new Service', module: MODULES.service },
|
|
112
78
|
{ index: PermissionIndex.service_description, name: 'Description', description: 'Set Service description', module: MODULES.service },
|
|
113
79
|
{ index: PermissionIndex.service_sales, name: 'Sales', description: 'Set Service sales items', module: MODULES.service },
|
|
@@ -122,20 +88,9 @@ export const PermissionInfo = [
|
|
|
122
88
|
{ index: PermissionIndex.service_publish, name: 'Publish', description: 'Allowing the creation of Order', module: MODULES.service },
|
|
123
89
|
{ index: PermissionIndex.service_clone, name: 'Clone', description: 'Clone Service', module: MODULES.service },
|
|
124
90
|
{ index: PermissionIndex.service_customer_required, name: 'Buyer info', description: 'Set Service buyer info required', module: MODULES.service },
|
|
125
|
-
//{index:PermissionIndex.service_change_order_required_pubkey, name:'Order pubkey', description:'Update Serivce order pubkey', module: MODULES.service},
|
|
126
91
|
{ index: PermissionIndex.service_pause, name: 'Pause', description: 'Pause/Unpause Service', module: MODULES.service },
|
|
127
92
|
{ index: PermissionIndex.service_treasury, name: 'Treasury', description: 'Externally withdrawable treasury for compensation or rewards', module: MODULES.service },
|
|
128
93
|
{ index: PermissionIndex.service_arbitration, name: 'Arbitration', description: 'Add/Remove arbitration that allows refunds from orders at any time based on arbitration results', module: MODULES.service },
|
|
129
|
-
/*
|
|
130
|
-
{index:PermissionIndex.reward, name:'reward', description:'Launch new reward', module: 'reward'},
|
|
131
|
-
{index:PermissionIndex.reward_refund, name:'Refund', description:'Refund from reward', module: 'reward'},
|
|
132
|
-
{index:PermissionIndex.reward_expand_time, name:'Expand deadline', description:'Expand reward deadline', module: 'reward'},
|
|
133
|
-
{index:PermissionIndex.reward_guard, name:'Guard', description:'Set reward guard', module: 'reward'},
|
|
134
|
-
{index:PermissionIndex.reward_description, name:'Description', description:'Set reward description', module: 'reward'},
|
|
135
|
-
{index:PermissionIndex.reward_lock_guards, name:'Lock Guard', description:'Set reward guard immutable', module: 'reward'},
|
|
136
|
-
{index:PermissionIndex.reward_claim_repeatably, name:'Claim repeatably', description:'Allow claimming repeatably', module: 'reward'},
|
|
137
|
-
{index:PermissionIndex.reward_allow_claiming, name:'Allow claiming', description:'Allow claiming', module: 'reward'},
|
|
138
|
-
*/
|
|
139
94
|
{ index: PermissionIndex.demand, name: 'Demand', description: 'Launch new Demand', module: MODULES.demand },
|
|
140
95
|
{ index: PermissionIndex.demand_refund, name: 'Refund', description: 'Refund from Demand', module: MODULES.demand },
|
|
141
96
|
{ index: PermissionIndex.demand_expand_time, name: 'Expand deadline', description: 'Expand Demand deadline', module: MODULES.demand },
|
package/package.json
CHANGED
package/src/permission.ts
CHANGED
|
@@ -10,18 +10,7 @@ export enum PermissionIndex {
|
|
|
10
10
|
repository_mode = 102,
|
|
11
11
|
repository_policies = 103,
|
|
12
12
|
repository_reference = 104,
|
|
13
|
-
|
|
14
|
-
vote = 150,
|
|
15
|
-
vote_description = 151,
|
|
16
|
-
vote_reference = 152,
|
|
17
|
-
vote_guard = 153,
|
|
18
|
-
vote_option = 155,
|
|
19
|
-
vote_max_choice_count = 157,
|
|
20
|
-
vote_open_voting = 158,
|
|
21
|
-
vote_lock_deadline = 159,
|
|
22
|
-
vote_expand_deadline = 160,
|
|
23
|
-
vote_lock_guard = 161,
|
|
24
|
-
*/
|
|
13
|
+
|
|
25
14
|
service = 200,
|
|
26
15
|
service_description = 201,
|
|
27
16
|
service_sales = 202,
|
|
@@ -41,16 +30,6 @@ export enum PermissionIndex {
|
|
|
41
30
|
service_treasury = 216,
|
|
42
31
|
service_arbitration = 217,
|
|
43
32
|
|
|
44
|
-
/*
|
|
45
|
-
reward = 240,
|
|
46
|
-
reward_refund = 241,
|
|
47
|
-
reward_expand_time = 242,
|
|
48
|
-
reward_guard = 243,
|
|
49
|
-
reward_description = 245,
|
|
50
|
-
reward_lock_guards = 246,
|
|
51
|
-
reward_claim_repeatably = 247,
|
|
52
|
-
reward_allow_claiming = 248,
|
|
53
|
-
*/
|
|
54
33
|
demand = 260,
|
|
55
34
|
demand_refund = 261,
|
|
56
35
|
demand_expand_time = 262,
|
|
@@ -105,39 +84,13 @@ export interface PermissionInfoType {
|
|
|
105
84
|
module: string;
|
|
106
85
|
guard?: string;
|
|
107
86
|
}
|
|
108
|
-
|
|
109
|
-
export interface PermissionAnswer {
|
|
110
|
-
who: string;
|
|
111
|
-
owner?: boolean;
|
|
112
|
-
admin?: boolean;
|
|
113
|
-
items?: PermissionAnswerItem[]; // items === undefined, while errors
|
|
114
|
-
object: string; // permission object
|
|
115
|
-
}
|
|
116
|
-
export interface PermissionAnswerItem {
|
|
117
|
-
query: PermissionIndexType;
|
|
118
|
-
permission: boolean;
|
|
119
|
-
guard?: string;
|
|
120
|
-
}
|
|
121
|
-
export type OnPermissionAnswer = (answer: PermissionAnswer) => void;
|
|
122
|
-
|
|
123
87
|
export const PermissionInfo : PermissionInfoType[] = [
|
|
124
88
|
{index:PermissionIndex.repository, name:'Repository', description:'Launch new Repository', module: MODULES.repository},
|
|
125
89
|
{index:PermissionIndex.repository_description, name:'Description', description:'Set Repository description', module: MODULES.repository},
|
|
126
90
|
{index:PermissionIndex.repository_mode, name:'Policy mode', description:'Set Repository mode', module: MODULES.repository},
|
|
127
91
|
{index:PermissionIndex.repository_policies, name:'Policy', description:'Set Repository policies', module: MODULES.repository},
|
|
128
92
|
{index:PermissionIndex.repository_reference, name:'Reference', description:'Set Repository reference', module: MODULES.repository},
|
|
129
|
-
|
|
130
|
-
{index:PermissionIndex.vote, name:'Vote', description:'Launch new Vote', module: 'vote'},
|
|
131
|
-
{index:PermissionIndex.vote_description, name:'Description', description:'Set Vote description', module: 'vote'},
|
|
132
|
-
{index:PermissionIndex.vote_reference, name:'Reference', description:'Set Vote reference', module: 'vote'},
|
|
133
|
-
{index:PermissionIndex.vote_guard, name:'Guard', description:'Set Vote guards', module: 'vote'},
|
|
134
|
-
{index:PermissionIndex.vote_option, name:'Option', description:'Set Vote options', module: 'vote'},
|
|
135
|
-
{index:PermissionIndex.vote_max_choice_count, name:'Choice count', description:'Set Vote max choice count', module: 'vote'},
|
|
136
|
-
{index:PermissionIndex.vote_open_voting, name:'Open voting', description:'Open voting', module: 'vote'},
|
|
137
|
-
{index:PermissionIndex.vote_lock_deadline, name:'Lock deadline', description:'Set Vote deadline immutable', module: 'vote'},
|
|
138
|
-
{index:PermissionIndex.vote_expand_deadline, name:'Expand deadline', description:'Expand Vote deadline', module: 'vote'},
|
|
139
|
-
{index:PermissionIndex.vote_lock_guard, name:'Lock Guard', description:'Set Vote guards immutable', module: 'vote'},
|
|
140
|
-
*/
|
|
93
|
+
|
|
141
94
|
{index:PermissionIndex.service, name:'Service', description:'Launch new Service', module: MODULES.service},
|
|
142
95
|
{index:PermissionIndex.service_description, name:'Description', description:'Set Service description', module: MODULES.service},
|
|
143
96
|
{index:PermissionIndex.service_sales, name:'Sales', description:'Set Service sales items', module: MODULES.service},
|
|
@@ -152,21 +105,10 @@ export const PermissionInfo : PermissionInfoType[] = [
|
|
|
152
105
|
{index:PermissionIndex.service_publish, name:'Publish', description:'Allowing the creation of Order', module: MODULES.service},
|
|
153
106
|
{index:PermissionIndex.service_clone, name:'Clone', description:'Clone Service', module: MODULES.service},
|
|
154
107
|
{index:PermissionIndex.service_customer_required, name:'Buyer info', description:'Set Service buyer info required', module: MODULES.service},
|
|
155
|
-
//{index:PermissionIndex.service_change_order_required_pubkey, name:'Order pubkey', description:'Update Serivce order pubkey', module: MODULES.service},
|
|
156
108
|
{index:PermissionIndex.service_pause, name:'Pause', description:'Pause/Unpause Service', module: MODULES.service},
|
|
157
109
|
{index:PermissionIndex.service_treasury, name:'Treasury', description:'Externally withdrawable treasury for compensation or rewards', module: MODULES.service},
|
|
158
110
|
{index:PermissionIndex.service_arbitration, name:'Arbitration', description:'Add/Remove arbitration that allows refunds from orders at any time based on arbitration results', module: MODULES.service},
|
|
159
111
|
|
|
160
|
-
/*
|
|
161
|
-
{index:PermissionIndex.reward, name:'reward', description:'Launch new reward', module: 'reward'},
|
|
162
|
-
{index:PermissionIndex.reward_refund, name:'Refund', description:'Refund from reward', module: 'reward'},
|
|
163
|
-
{index:PermissionIndex.reward_expand_time, name:'Expand deadline', description:'Expand reward deadline', module: 'reward'},
|
|
164
|
-
{index:PermissionIndex.reward_guard, name:'Guard', description:'Set reward guard', module: 'reward'},
|
|
165
|
-
{index:PermissionIndex.reward_description, name:'Description', description:'Set reward description', module: 'reward'},
|
|
166
|
-
{index:PermissionIndex.reward_lock_guards, name:'Lock Guard', description:'Set reward guard immutable', module: 'reward'},
|
|
167
|
-
{index:PermissionIndex.reward_claim_repeatably, name:'Claim repeatably', description:'Allow claimming repeatably', module: 'reward'},
|
|
168
|
-
{index:PermissionIndex.reward_allow_claiming, name:'Allow claiming', description:'Allow claiming', module: 'reward'},
|
|
169
|
-
*/
|
|
170
112
|
{index:PermissionIndex.demand, name:'Demand', description:'Launch new Demand', module: MODULES.demand},
|
|
171
113
|
{index:PermissionIndex.demand_refund, name:'Refund', description:'Refund from Demand', module: MODULES.demand},
|
|
172
114
|
{index:PermissionIndex.demand_expand_time, name:'Expand deadline', description:'Expand Demand deadline', module: MODULES.demand},
|
|
@@ -212,6 +154,22 @@ export const PermissionInfo : PermissionInfoType[] = [
|
|
|
212
154
|
{index:PermissionIndex.arbitration_treasury, name: 'Withdraw', description:'Set Treasury that fees was collected at the time of withdrawal', module: MODULES.arbitration},
|
|
213
155
|
]
|
|
214
156
|
|
|
157
|
+
export interface PermissionAnswer {
|
|
158
|
+
who: string;
|
|
159
|
+
owner?: boolean;
|
|
160
|
+
admin?: boolean;
|
|
161
|
+
items?: PermissionAnswerItem[]; // items === undefined, while errors
|
|
162
|
+
object: string; // permission object
|
|
163
|
+
}
|
|
164
|
+
export interface PermissionAnswerItem {
|
|
165
|
+
query: PermissionIndexType;
|
|
166
|
+
permission: boolean;
|
|
167
|
+
guard?: string;
|
|
168
|
+
}
|
|
169
|
+
export type OnPermissionAnswer = (answer: PermissionAnswer) => void;
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
215
173
|
export type PermissionIndexType = PermissionIndex | number;
|
|
216
174
|
|
|
217
175
|
export interface Permission_Entity_Permission {
|
package/tsconfig.json
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
+
// "outDir": "out",
|
|
5
|
+
// "sourceMap": true,
|
|
6
|
+
/* Projects */
|
|
7
|
+
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
8
|
+
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
9
|
+
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
10
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
11
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
12
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
13
|
+
|
|
14
|
+
/* Language and Environment */
|
|
15
|
+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
16
|
+
"lib": ["es2020", "DOM"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
17
|
+
"downlevelIteration": true,
|
|
18
|
+
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
19
|
+
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
20
|
+
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
21
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
22
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
23
|
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
24
|
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
25
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
26
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
27
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
28
|
+
|
|
29
|
+
/* Modules */
|
|
30
|
+
"module": "ES2022", /* Specify what module code is generated. */
|
|
31
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
32
|
+
"moduleResolution": "bundler", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
33
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
34
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
35
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
36
|
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
37
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
38
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
39
|
+
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
40
|
+
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
41
|
+
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
42
|
+
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
43
|
+
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
44
|
+
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
45
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
46
|
+
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
47
|
+
|
|
48
|
+
/* JavaScript Support */
|
|
49
|
+
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
50
|
+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
51
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
52
|
+
|
|
53
|
+
/* Emit */
|
|
54
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
55
|
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
56
|
+
"emitDeclarationOnly": false, /* Only output d.ts files and not JavaScript files. */
|
|
57
|
+
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
58
|
+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
59
|
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
60
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
61
|
+
// "removeComments": true, /* Disable emitting comments. */
|
|
62
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
63
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
64
|
+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
65
|
+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
66
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
67
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
68
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
69
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
70
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
71
|
+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
72
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
73
|
+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
74
|
+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
75
|
+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
76
|
+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
77
|
+
|
|
78
|
+
/* Interop Constraints */
|
|
79
|
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
80
|
+
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
81
|
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
82
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
83
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
84
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
85
|
+
|
|
86
|
+
/* Type Checking */
|
|
87
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
88
|
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
89
|
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
90
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
91
|
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
92
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
93
|
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
94
|
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
95
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
96
|
+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
97
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
98
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
99
|
+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
100
|
+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
101
|
+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
102
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
103
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
104
|
+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
105
|
+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
106
|
+
|
|
107
|
+
/* Completeness */
|
|
108
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
109
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
110
|
+
},
|
|
111
|
+
"include": ["src/**/*", "empty.ts"],
|
|
112
|
+
"exclude": ["node_modules"]
|
|
113
|
+
}
|
package/dist/empty.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=empty.d.ts.map
|
package/dist/empty.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../empty.ts"],"names":[],"mappings":""}
|
package/dist/empty.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
dispute(param: Dispute, passport?: PassportObject): ArbAddress;
|
|
54
|
-
change_permission(new_permission: PermissionObject): void;
|
|
55
|
-
static parseObjectType: (chain_type: string | undefined | null) => string;
|
|
56
|
-
static parseArbObjectType: (chain_type: string | undefined | null) => string;
|
|
57
|
-
static queryArbVoted: () => void;
|
|
58
|
-
static MAX_PROPOSITION_COUNT: number;
|
|
59
|
-
static MAX_VOTING_GUARD_COUNT: number;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=arbitration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arbitration.d.ts","sourceRoot":"","sources":["../../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,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,IAAI;IACjB,GAAG,EAAE,SAAS,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACrB,GAAG,EAAC,SAAS,CAAC;IACd,QAAQ,EAAC,MAAM,CAAC;IAChB,SAAS,CAAC,EAAC,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,WAAW,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;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