@ottochain/sdk 2.2.5 → 2.3.0
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/cjs/apps/contracts/state-machines/contract-agreement.js +54 -6
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +72 -8
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +36 -4
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +27 -3
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +27 -3
- package/dist/cjs/apps/governance/state-machines/dao-single.js +27 -3
- package/dist/cjs/apps/governance/state-machines/dao-token.js +36 -4
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +36 -4
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +27 -3
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +54 -6
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +45 -5
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +27 -3
- package/dist/cjs/apps/markets/state-machines/market-auction.js +30 -6
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +25 -5
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +29 -5
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +40 -8
- package/dist/cjs/apps/markets/state-machines/market-universal.js +45 -5
- package/dist/cjs/generated/ottochain/v1/common.js +1722 -1
- package/dist/cjs/generated/ottochain/v1/fiber.js +352 -2
- package/dist/cjs/generated/ottochain/v1/messages.js +775 -3
- package/dist/cjs/generated/ottochain/v1/records.js +350 -3
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/ottochain/genesis-manifest.js +193 -0
- package/dist/cjs/ottochain/index.js +5 -1
- package/dist/cjs/ottochain/types.js +4 -0
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +54 -6
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +72 -8
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +36 -4
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +27 -3
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +27 -3
- package/dist/esm/apps/governance/state-machines/dao-single.js +27 -3
- package/dist/esm/apps/governance/state-machines/dao-token.js +36 -4
- package/dist/esm/apps/governance/state-machines/governance-simple.js +36 -4
- package/dist/esm/apps/governance/state-machines/governance-universal.js +27 -3
- package/dist/esm/apps/identity/state-machines/identity-agent.js +54 -6
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +45 -5
- package/dist/esm/apps/identity/state-machines/identity-universal.js +27 -3
- package/dist/esm/apps/markets/state-machines/market-auction.js +30 -6
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +25 -5
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +29 -5
- package/dist/esm/apps/markets/state-machines/market-prediction.js +40 -8
- package/dist/esm/apps/markets/state-machines/market-universal.js +45 -5
- package/dist/esm/generated/ottochain/v1/common.js +1718 -0
- package/dist/esm/generated/ottochain/v1/fiber.js +351 -1
- package/dist/esm/generated/ottochain/v1/messages.js +774 -2
- package/dist/esm/generated/ottochain/v1/records.js +349 -2
- package/dist/esm/index.js +2 -0
- package/dist/esm/ottochain/genesis-manifest.js +189 -0
- package/dist/esm/ottochain/index.js +2 -0
- package/dist/esm/ottochain/types.js +4 -0
- package/dist/types/apps/contracts/index.d.ts +90 -18
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +30 -6
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +40 -8
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +20 -4
- package/dist/types/apps/governance/index.d.ts +114 -33
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +15 -3
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +15 -3
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +15 -3
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +20 -4
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +20 -4
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +15 -3
- package/dist/types/apps/identity/index.d.ts +71 -6
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +30 -0
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +25 -0
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +15 -0
- package/dist/types/apps/markets/index.d.ts +80 -5
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +12 -0
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +10 -0
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +14 -0
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +16 -0
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +25 -5
- package/dist/types/generated/ottochain/v1/common.d.ts +228 -0
- package/dist/types/generated/ottochain/v1/fiber.d.ts +32 -1
- package/dist/types/generated/ottochain/v1/messages.d.ts +84 -0
- package/dist/types/generated/ottochain/v1/records.d.ts +34 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/ottochain/genesis-manifest.d.ts +130 -0
- package/dist/types/ottochain/index.d.ts +3 -1
- package/dist/types/ottochain/types.d.ts +288 -2
- package/dist/types/schema/fiber-app.d.ts +40 -1
- package/dist/types/validation.d.ts +17 -17
- package/package.json +30 -27
|
@@ -16,5 +16,7 @@ export { createTransitionPayload, createArchivePayload, createInvokeScriptPayloa
|
|
|
16
16
|
// Data utilities
|
|
17
17
|
export { normalizeCreateStateMachine, normalizeTransitionStateMachine, normalizeArchiveStateMachine, normalizeMessage, } from './normalize.js';
|
|
18
18
|
export { dropNulls } from './drop-nulls.js';
|
|
19
|
+
// Genesis manifest exporter (std-app pre-registration content)
|
|
20
|
+
export { buildGenesisManifest, GENESIS_MANIFEST_VERSION } from './genesis-manifest.js';
|
|
19
21
|
// Note: Governance and Corporate types are now in src/apps/
|
|
20
22
|
// Import from '@ottochain/sdk/apps' instead
|
|
@@ -63,22 +63,38 @@ export declare const CONTRACTS_DEFINITIONS: {
|
|
|
63
63
|
PROPOSED: {
|
|
64
64
|
id: string;
|
|
65
65
|
isFinal: false;
|
|
66
|
-
metadata:
|
|
66
|
+
metadata: {
|
|
67
|
+
label: string;
|
|
68
|
+
description: string;
|
|
69
|
+
category: "initial";
|
|
70
|
+
};
|
|
67
71
|
};
|
|
68
72
|
ACTIVE: {
|
|
69
73
|
id: string;
|
|
70
74
|
isFinal: false;
|
|
71
|
-
metadata:
|
|
75
|
+
metadata: {
|
|
76
|
+
label: string;
|
|
77
|
+
description: string;
|
|
78
|
+
category: "active";
|
|
79
|
+
};
|
|
72
80
|
};
|
|
73
81
|
COMPLETED: {
|
|
74
82
|
id: string;
|
|
75
83
|
isFinal: true;
|
|
76
|
-
metadata:
|
|
84
|
+
metadata: {
|
|
85
|
+
label: string;
|
|
86
|
+
description: string;
|
|
87
|
+
category: "terminal";
|
|
88
|
+
};
|
|
77
89
|
};
|
|
78
90
|
CANCELLED: {
|
|
79
91
|
id: string;
|
|
80
92
|
isFinal: true;
|
|
81
|
-
metadata:
|
|
93
|
+
metadata: {
|
|
94
|
+
label: string;
|
|
95
|
+
description: string;
|
|
96
|
+
category: "terminal";
|
|
97
|
+
};
|
|
82
98
|
};
|
|
83
99
|
};
|
|
84
100
|
initialState: "PROPOSED";
|
|
@@ -326,32 +342,56 @@ export declare const CONTRACTS_DEFINITIONS: {
|
|
|
326
342
|
PROPOSED: {
|
|
327
343
|
id: string;
|
|
328
344
|
isFinal: false;
|
|
329
|
-
metadata:
|
|
345
|
+
metadata: {
|
|
346
|
+
label: string;
|
|
347
|
+
description: string;
|
|
348
|
+
category: "initial";
|
|
349
|
+
};
|
|
330
350
|
};
|
|
331
351
|
ACTIVE: {
|
|
332
352
|
id: string;
|
|
333
353
|
isFinal: false;
|
|
334
|
-
metadata:
|
|
354
|
+
metadata: {
|
|
355
|
+
label: string;
|
|
356
|
+
description: string;
|
|
357
|
+
category: "active";
|
|
358
|
+
};
|
|
335
359
|
};
|
|
336
360
|
COMPLETED: {
|
|
337
361
|
id: string;
|
|
338
362
|
isFinal: true;
|
|
339
|
-
metadata:
|
|
363
|
+
metadata: {
|
|
364
|
+
label: string;
|
|
365
|
+
description: string;
|
|
366
|
+
category: "terminal";
|
|
367
|
+
};
|
|
340
368
|
};
|
|
341
369
|
DISPUTED: {
|
|
342
370
|
id: string;
|
|
343
371
|
isFinal: false;
|
|
344
|
-
metadata:
|
|
372
|
+
metadata: {
|
|
373
|
+
label: string;
|
|
374
|
+
description: string;
|
|
375
|
+
category: "pending";
|
|
376
|
+
};
|
|
345
377
|
};
|
|
346
378
|
REJECTED: {
|
|
347
379
|
id: string;
|
|
348
380
|
isFinal: true;
|
|
349
|
-
metadata:
|
|
381
|
+
metadata: {
|
|
382
|
+
label: string;
|
|
383
|
+
description: string;
|
|
384
|
+
category: "terminal";
|
|
385
|
+
};
|
|
350
386
|
};
|
|
351
387
|
CANCELLED: {
|
|
352
388
|
id: string;
|
|
353
389
|
isFinal: true;
|
|
354
|
-
metadata:
|
|
390
|
+
metadata: {
|
|
391
|
+
label: string;
|
|
392
|
+
description: string;
|
|
393
|
+
category: "terminal";
|
|
394
|
+
};
|
|
355
395
|
};
|
|
356
396
|
};
|
|
357
397
|
initialState: "PROPOSED";
|
|
@@ -812,42 +852,74 @@ export declare const CONTRACTS_DEFINITIONS: {
|
|
|
812
852
|
CREATED: {
|
|
813
853
|
id: string;
|
|
814
854
|
isFinal: false;
|
|
815
|
-
metadata:
|
|
855
|
+
metadata: {
|
|
856
|
+
label: string;
|
|
857
|
+
description: string;
|
|
858
|
+
category: "initial";
|
|
859
|
+
};
|
|
816
860
|
};
|
|
817
861
|
FUNDED: {
|
|
818
862
|
id: string;
|
|
819
863
|
isFinal: false;
|
|
820
|
-
metadata:
|
|
864
|
+
metadata: {
|
|
865
|
+
label: string;
|
|
866
|
+
description: string;
|
|
867
|
+
category: "active";
|
|
868
|
+
};
|
|
821
869
|
};
|
|
822
870
|
ACTIVE: {
|
|
823
871
|
id: string;
|
|
824
872
|
isFinal: false;
|
|
825
|
-
metadata:
|
|
873
|
+
metadata: {
|
|
874
|
+
label: string;
|
|
875
|
+
description: string;
|
|
876
|
+
category: "active";
|
|
877
|
+
};
|
|
826
878
|
};
|
|
827
879
|
RELEASING: {
|
|
828
880
|
id: string;
|
|
829
881
|
isFinal: false;
|
|
830
|
-
metadata:
|
|
882
|
+
metadata: {
|
|
883
|
+
label: string;
|
|
884
|
+
description: string;
|
|
885
|
+
category: "pending";
|
|
886
|
+
};
|
|
831
887
|
};
|
|
832
888
|
DISPUTED: {
|
|
833
889
|
id: string;
|
|
834
890
|
isFinal: false;
|
|
835
|
-
metadata:
|
|
891
|
+
metadata: {
|
|
892
|
+
label: string;
|
|
893
|
+
description: string;
|
|
894
|
+
category: "pending";
|
|
895
|
+
};
|
|
836
896
|
};
|
|
837
897
|
RELEASED: {
|
|
838
898
|
id: string;
|
|
839
899
|
isFinal: true;
|
|
840
|
-
metadata:
|
|
900
|
+
metadata: {
|
|
901
|
+
label: string;
|
|
902
|
+
description: string;
|
|
903
|
+
category: "terminal";
|
|
904
|
+
};
|
|
841
905
|
};
|
|
842
906
|
REFUNDED: {
|
|
843
907
|
id: string;
|
|
844
908
|
isFinal: true;
|
|
845
|
-
metadata:
|
|
909
|
+
metadata: {
|
|
910
|
+
label: string;
|
|
911
|
+
description: string;
|
|
912
|
+
category: "terminal";
|
|
913
|
+
};
|
|
846
914
|
};
|
|
847
915
|
SPLIT: {
|
|
848
916
|
id: string;
|
|
849
917
|
isFinal: true;
|
|
850
|
-
metadata:
|
|
918
|
+
metadata: {
|
|
919
|
+
label: string;
|
|
920
|
+
description: string;
|
|
921
|
+
category: "terminal";
|
|
922
|
+
};
|
|
851
923
|
};
|
|
852
924
|
};
|
|
853
925
|
initialState: "CREATED";
|
|
@@ -159,32 +159,56 @@ export declare const contractAgreementDef: {
|
|
|
159
159
|
PROPOSED: {
|
|
160
160
|
id: string;
|
|
161
161
|
isFinal: false;
|
|
162
|
-
metadata:
|
|
162
|
+
metadata: {
|
|
163
|
+
label: string;
|
|
164
|
+
description: string;
|
|
165
|
+
category: "initial";
|
|
166
|
+
};
|
|
163
167
|
};
|
|
164
168
|
ACTIVE: {
|
|
165
169
|
id: string;
|
|
166
170
|
isFinal: false;
|
|
167
|
-
metadata:
|
|
171
|
+
metadata: {
|
|
172
|
+
label: string;
|
|
173
|
+
description: string;
|
|
174
|
+
category: "active";
|
|
175
|
+
};
|
|
168
176
|
};
|
|
169
177
|
COMPLETED: {
|
|
170
178
|
id: string;
|
|
171
179
|
isFinal: true;
|
|
172
|
-
metadata:
|
|
180
|
+
metadata: {
|
|
181
|
+
label: string;
|
|
182
|
+
description: string;
|
|
183
|
+
category: "terminal";
|
|
184
|
+
};
|
|
173
185
|
};
|
|
174
186
|
DISPUTED: {
|
|
175
187
|
id: string;
|
|
176
188
|
isFinal: false;
|
|
177
|
-
metadata:
|
|
189
|
+
metadata: {
|
|
190
|
+
label: string;
|
|
191
|
+
description: string;
|
|
192
|
+
category: "pending";
|
|
193
|
+
};
|
|
178
194
|
};
|
|
179
195
|
REJECTED: {
|
|
180
196
|
id: string;
|
|
181
197
|
isFinal: true;
|
|
182
|
-
metadata:
|
|
198
|
+
metadata: {
|
|
199
|
+
label: string;
|
|
200
|
+
description: string;
|
|
201
|
+
category: "terminal";
|
|
202
|
+
};
|
|
183
203
|
};
|
|
184
204
|
CANCELLED: {
|
|
185
205
|
id: string;
|
|
186
206
|
isFinal: true;
|
|
187
|
-
metadata:
|
|
207
|
+
metadata: {
|
|
208
|
+
label: string;
|
|
209
|
+
description: string;
|
|
210
|
+
category: "terminal";
|
|
211
|
+
};
|
|
188
212
|
};
|
|
189
213
|
};
|
|
190
214
|
initialState: "PROPOSED";
|
|
@@ -186,42 +186,74 @@ export declare const contractEscrowDef: {
|
|
|
186
186
|
CREATED: {
|
|
187
187
|
id: string;
|
|
188
188
|
isFinal: false;
|
|
189
|
-
metadata:
|
|
189
|
+
metadata: {
|
|
190
|
+
label: string;
|
|
191
|
+
description: string;
|
|
192
|
+
category: "initial";
|
|
193
|
+
};
|
|
190
194
|
};
|
|
191
195
|
FUNDED: {
|
|
192
196
|
id: string;
|
|
193
197
|
isFinal: false;
|
|
194
|
-
metadata:
|
|
198
|
+
metadata: {
|
|
199
|
+
label: string;
|
|
200
|
+
description: string;
|
|
201
|
+
category: "active";
|
|
202
|
+
};
|
|
195
203
|
};
|
|
196
204
|
ACTIVE: {
|
|
197
205
|
id: string;
|
|
198
206
|
isFinal: false;
|
|
199
|
-
metadata:
|
|
207
|
+
metadata: {
|
|
208
|
+
label: string;
|
|
209
|
+
description: string;
|
|
210
|
+
category: "active";
|
|
211
|
+
};
|
|
200
212
|
};
|
|
201
213
|
RELEASING: {
|
|
202
214
|
id: string;
|
|
203
215
|
isFinal: false;
|
|
204
|
-
metadata:
|
|
216
|
+
metadata: {
|
|
217
|
+
label: string;
|
|
218
|
+
description: string;
|
|
219
|
+
category: "pending";
|
|
220
|
+
};
|
|
205
221
|
};
|
|
206
222
|
DISPUTED: {
|
|
207
223
|
id: string;
|
|
208
224
|
isFinal: false;
|
|
209
|
-
metadata:
|
|
225
|
+
metadata: {
|
|
226
|
+
label: string;
|
|
227
|
+
description: string;
|
|
228
|
+
category: "pending";
|
|
229
|
+
};
|
|
210
230
|
};
|
|
211
231
|
RELEASED: {
|
|
212
232
|
id: string;
|
|
213
233
|
isFinal: true;
|
|
214
|
-
metadata:
|
|
234
|
+
metadata: {
|
|
235
|
+
label: string;
|
|
236
|
+
description: string;
|
|
237
|
+
category: "terminal";
|
|
238
|
+
};
|
|
215
239
|
};
|
|
216
240
|
REFUNDED: {
|
|
217
241
|
id: string;
|
|
218
242
|
isFinal: true;
|
|
219
|
-
metadata:
|
|
243
|
+
metadata: {
|
|
244
|
+
label: string;
|
|
245
|
+
description: string;
|
|
246
|
+
category: "terminal";
|
|
247
|
+
};
|
|
220
248
|
};
|
|
221
249
|
SPLIT: {
|
|
222
250
|
id: string;
|
|
223
251
|
isFinal: true;
|
|
224
|
-
metadata:
|
|
252
|
+
metadata: {
|
|
253
|
+
label: string;
|
|
254
|
+
description: string;
|
|
255
|
+
category: "terminal";
|
|
256
|
+
};
|
|
225
257
|
};
|
|
226
258
|
};
|
|
227
259
|
initialState: "CREATED";
|
|
@@ -40,22 +40,38 @@ export declare const contractUniversalDef: {
|
|
|
40
40
|
PROPOSED: {
|
|
41
41
|
id: string;
|
|
42
42
|
isFinal: false;
|
|
43
|
-
metadata:
|
|
43
|
+
metadata: {
|
|
44
|
+
label: string;
|
|
45
|
+
description: string;
|
|
46
|
+
category: "initial";
|
|
47
|
+
};
|
|
44
48
|
};
|
|
45
49
|
ACTIVE: {
|
|
46
50
|
id: string;
|
|
47
51
|
isFinal: false;
|
|
48
|
-
metadata:
|
|
52
|
+
metadata: {
|
|
53
|
+
label: string;
|
|
54
|
+
description: string;
|
|
55
|
+
category: "active";
|
|
56
|
+
};
|
|
49
57
|
};
|
|
50
58
|
COMPLETED: {
|
|
51
59
|
id: string;
|
|
52
60
|
isFinal: true;
|
|
53
|
-
metadata:
|
|
61
|
+
metadata: {
|
|
62
|
+
label: string;
|
|
63
|
+
description: string;
|
|
64
|
+
category: "terminal";
|
|
65
|
+
};
|
|
54
66
|
};
|
|
55
67
|
CANCELLED: {
|
|
56
68
|
id: string;
|
|
57
69
|
isFinal: true;
|
|
58
|
-
metadata:
|
|
70
|
+
metadata: {
|
|
71
|
+
label: string;
|
|
72
|
+
description: string;
|
|
73
|
+
category: "terminal";
|
|
74
|
+
};
|
|
59
75
|
};
|
|
60
76
|
};
|
|
61
77
|
initialState: "PROPOSED";
|
|
@@ -98,17 +98,29 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
98
98
|
readonly ACTIVE: {
|
|
99
99
|
readonly id: "ACTIVE";
|
|
100
100
|
readonly isFinal: false;
|
|
101
|
-
readonly metadata:
|
|
101
|
+
readonly metadata: {
|
|
102
|
+
readonly label: "Active";
|
|
103
|
+
readonly description: "Governance is idle and ready to accept a proposal";
|
|
104
|
+
readonly category: "initial";
|
|
105
|
+
};
|
|
102
106
|
};
|
|
103
107
|
readonly VOTING: {
|
|
104
108
|
readonly id: "VOTING";
|
|
105
109
|
readonly isFinal: false;
|
|
106
|
-
readonly metadata:
|
|
110
|
+
readonly metadata: {
|
|
111
|
+
readonly label: "Voting";
|
|
112
|
+
readonly description: "A proposal is open for voting";
|
|
113
|
+
readonly category: "pending";
|
|
114
|
+
};
|
|
107
115
|
};
|
|
108
116
|
readonly DISSOLVED: {
|
|
109
117
|
readonly id: "DISSOLVED";
|
|
110
118
|
readonly isFinal: true;
|
|
111
|
-
readonly metadata:
|
|
119
|
+
readonly metadata: {
|
|
120
|
+
readonly label: "Dissolved";
|
|
121
|
+
readonly description: "Governance entity dissolved (terminal)";
|
|
122
|
+
readonly category: "terminal";
|
|
123
|
+
};
|
|
112
124
|
};
|
|
113
125
|
};
|
|
114
126
|
readonly initialState: "ACTIVE";
|
|
@@ -179,6 +191,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
179
191
|
readonly var: "event.result";
|
|
180
192
|
};
|
|
181
193
|
readonly proposal: null;
|
|
194
|
+
/**
|
|
195
|
+
* Get remaining signatures needed
|
|
196
|
+
*/
|
|
182
197
|
readonly votes: null;
|
|
183
198
|
}];
|
|
184
199
|
};
|
|
@@ -403,22 +418,38 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
403
418
|
readonly ACTIVE: {
|
|
404
419
|
readonly id: "ACTIVE";
|
|
405
420
|
readonly isFinal: false;
|
|
406
|
-
readonly metadata:
|
|
421
|
+
readonly metadata: {
|
|
422
|
+
readonly label: "Active";
|
|
423
|
+
readonly description: "Governance is idle and ready to accept a proposal";
|
|
424
|
+
readonly category: "initial";
|
|
425
|
+
};
|
|
407
426
|
};
|
|
408
427
|
readonly VOTING: {
|
|
409
428
|
readonly id: "VOTING";
|
|
410
429
|
readonly isFinal: false;
|
|
411
|
-
readonly metadata:
|
|
430
|
+
readonly metadata: {
|
|
431
|
+
readonly label: "Voting";
|
|
432
|
+
readonly description: "A proposal is open for voting";
|
|
433
|
+
readonly category: "pending";
|
|
434
|
+
};
|
|
412
435
|
};
|
|
413
436
|
readonly DISPUTE: {
|
|
414
437
|
readonly id: "DISPUTE";
|
|
415
438
|
readonly isFinal: false;
|
|
416
|
-
readonly metadata:
|
|
439
|
+
readonly metadata: {
|
|
440
|
+
readonly label: "Dispute";
|
|
441
|
+
readonly description: "A proposal outcome is being disputed";
|
|
442
|
+
readonly category: "pending";
|
|
443
|
+
};
|
|
417
444
|
};
|
|
418
445
|
readonly DISSOLVED: {
|
|
419
446
|
readonly id: "DISSOLVED";
|
|
420
447
|
readonly isFinal: true;
|
|
421
|
-
readonly metadata:
|
|
448
|
+
readonly metadata: {
|
|
449
|
+
readonly label: "Dissolved";
|
|
450
|
+
readonly description: "Governance entity dissolved (terminal)";
|
|
451
|
+
readonly category: "terminal";
|
|
452
|
+
};
|
|
422
453
|
};
|
|
423
454
|
};
|
|
424
455
|
readonly initialState: "ACTIVE";
|
|
@@ -966,17 +997,29 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
966
997
|
readonly ACTIVE: {
|
|
967
998
|
readonly id: "ACTIVE";
|
|
968
999
|
readonly isFinal: false;
|
|
969
|
-
readonly metadata:
|
|
1000
|
+
readonly metadata: {
|
|
1001
|
+
readonly label: "Active";
|
|
1002
|
+
readonly description: "Single owner controls the DAO and may act or transfer ownership";
|
|
1003
|
+
readonly category: "initial";
|
|
1004
|
+
};
|
|
970
1005
|
};
|
|
971
1006
|
readonly TRANSFERRING: {
|
|
972
1007
|
readonly id: "TRANSFERRING";
|
|
973
1008
|
readonly isFinal: false;
|
|
974
|
-
readonly metadata:
|
|
1009
|
+
readonly metadata: {
|
|
1010
|
+
readonly label: "Transferring";
|
|
1011
|
+
readonly description: "Ownership transfer proposed; awaiting acceptance";
|
|
1012
|
+
readonly category: "pending";
|
|
1013
|
+
};
|
|
975
1014
|
};
|
|
976
1015
|
readonly DISSOLVED: {
|
|
977
1016
|
readonly id: "DISSOLVED";
|
|
978
1017
|
readonly isFinal: true;
|
|
979
|
-
readonly metadata:
|
|
1018
|
+
readonly metadata: {
|
|
1019
|
+
readonly label: "Dissolved";
|
|
1020
|
+
readonly description: "DAO dissolved by its owner (terminal)";
|
|
1021
|
+
readonly category: "terminal";
|
|
1022
|
+
};
|
|
980
1023
|
};
|
|
981
1024
|
};
|
|
982
1025
|
readonly initialState: "ACTIVE";
|
|
@@ -1069,6 +1112,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1069
1112
|
readonly var: "state.ownershipHistory";
|
|
1070
1113
|
}, readonly [{
|
|
1071
1114
|
readonly from: {
|
|
1115
|
+
/**
|
|
1116
|
+
* Check if agent meets threshold for action
|
|
1117
|
+
*/
|
|
1072
1118
|
readonly var: "state.owner";
|
|
1073
1119
|
};
|
|
1074
1120
|
readonly to: {
|
|
@@ -1305,17 +1351,29 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1305
1351
|
readonly ACTIVE: {
|
|
1306
1352
|
readonly id: "ACTIVE";
|
|
1307
1353
|
readonly isFinal: false;
|
|
1308
|
-
readonly metadata:
|
|
1354
|
+
readonly metadata: {
|
|
1355
|
+
readonly label: "Active";
|
|
1356
|
+
readonly description: "Multisig is idle and ready to propose an action";
|
|
1357
|
+
readonly category: "initial";
|
|
1358
|
+
};
|
|
1309
1359
|
};
|
|
1310
1360
|
readonly PENDING: {
|
|
1311
1361
|
readonly id: "PENDING";
|
|
1312
1362
|
readonly isFinal: false;
|
|
1313
|
-
readonly metadata:
|
|
1363
|
+
readonly metadata: {
|
|
1364
|
+
readonly label: "Pending";
|
|
1365
|
+
readonly description: "An action is awaiting the required signature threshold";
|
|
1366
|
+
readonly category: "pending";
|
|
1367
|
+
};
|
|
1314
1368
|
};
|
|
1315
1369
|
readonly DISSOLVED: {
|
|
1316
1370
|
readonly id: "DISSOLVED";
|
|
1317
1371
|
readonly isFinal: true;
|
|
1318
|
-
readonly metadata:
|
|
1372
|
+
readonly metadata: {
|
|
1373
|
+
readonly label: "Dissolved";
|
|
1374
|
+
readonly description: "Multisig DAO dissolved (terminal)";
|
|
1375
|
+
readonly category: "terminal";
|
|
1376
|
+
};
|
|
1319
1377
|
};
|
|
1320
1378
|
};
|
|
1321
1379
|
readonly initialState: "ACTIVE";
|
|
@@ -1390,9 +1448,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1390
1448
|
}, {
|
|
1391
1449
|
readonly "<": readonly [{
|
|
1392
1450
|
readonly size: {
|
|
1393
|
-
readonly var: "state.signatures";
|
|
1394
|
-
* Check if agent is a member
|
|
1395
|
-
*/
|
|
1451
|
+
readonly var: "state.signatures";
|
|
1396
1452
|
};
|
|
1397
1453
|
}, {
|
|
1398
1454
|
readonly var: "state.threshold";
|
|
@@ -1401,9 +1457,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1401
1457
|
};
|
|
1402
1458
|
readonly effect: {
|
|
1403
1459
|
readonly merge: readonly [{
|
|
1404
|
-
readonly var: "state";
|
|
1405
|
-
* Check if threshold proposal has quorum
|
|
1406
|
-
*/
|
|
1460
|
+
readonly var: "state";
|
|
1407
1461
|
}, {
|
|
1408
1462
|
readonly signatures: {
|
|
1409
1463
|
readonly setKey: readonly [{
|
|
@@ -1946,22 +2000,38 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1946
2000
|
readonly ACTIVE: {
|
|
1947
2001
|
readonly id: "ACTIVE";
|
|
1948
2002
|
readonly isFinal: false;
|
|
1949
|
-
readonly metadata:
|
|
2003
|
+
readonly metadata: {
|
|
2004
|
+
readonly label: "Active";
|
|
2005
|
+
readonly description: "DAO is idle and ready to accept a proposal";
|
|
2006
|
+
readonly category: "initial";
|
|
2007
|
+
};
|
|
1950
2008
|
};
|
|
1951
2009
|
readonly VOTING: {
|
|
1952
2010
|
readonly id: "VOTING";
|
|
1953
2011
|
readonly isFinal: false;
|
|
1954
|
-
readonly metadata:
|
|
2012
|
+
readonly metadata: {
|
|
2013
|
+
readonly label: "Voting";
|
|
2014
|
+
readonly description: "Token holders are voting on the active proposal";
|
|
2015
|
+
readonly category: "pending";
|
|
2016
|
+
};
|
|
1955
2017
|
};
|
|
1956
2018
|
readonly QUEUED: {
|
|
1957
2019
|
readonly id: "QUEUED";
|
|
1958
2020
|
readonly isFinal: false;
|
|
1959
|
-
readonly metadata:
|
|
2021
|
+
readonly metadata: {
|
|
2022
|
+
readonly label: "Queued";
|
|
2023
|
+
readonly description: "Passed proposal queued in timelock before execution";
|
|
2024
|
+
readonly category: "pending";
|
|
2025
|
+
};
|
|
1960
2026
|
};
|
|
1961
2027
|
readonly DISSOLVED: {
|
|
1962
2028
|
readonly id: "DISSOLVED";
|
|
1963
2029
|
readonly isFinal: true;
|
|
1964
|
-
readonly metadata:
|
|
2030
|
+
readonly metadata: {
|
|
2031
|
+
readonly label: "Dissolved";
|
|
2032
|
+
readonly description: "Token DAO dissolved (terminal)";
|
|
2033
|
+
readonly category: "terminal";
|
|
2034
|
+
};
|
|
1965
2035
|
};
|
|
1966
2036
|
};
|
|
1967
2037
|
readonly initialState: "ACTIVE";
|
|
@@ -1997,9 +2067,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1997
2067
|
readonly actionType: {
|
|
1998
2068
|
readonly var: "event.actionType";
|
|
1999
2069
|
};
|
|
2000
|
-
/**
|
|
2001
|
-
* Check if agent can propose
|
|
2002
|
-
*/
|
|
2003
2070
|
readonly payload: {
|
|
2004
2071
|
readonly var: "event.payload";
|
|
2005
2072
|
};
|
|
@@ -2008,11 +2075,10 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2008
2075
|
};
|
|
2009
2076
|
readonly proposedAt: {
|
|
2010
2077
|
readonly var: "$timestamp";
|
|
2011
|
-
};
|
|
2078
|
+
}; /**
|
|
2079
|
+
* Check if threshold proposal has quorum
|
|
2080
|
+
*/
|
|
2012
2081
|
readonly votingEndsAt: {
|
|
2013
|
-
/**
|
|
2014
|
-
* Check if agent meets threshold for action
|
|
2015
|
-
*/
|
|
2016
2082
|
readonly "+": readonly [{
|
|
2017
2083
|
readonly var: "$timestamp";
|
|
2018
2084
|
}, {
|
|
@@ -2563,22 +2629,37 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2563
2629
|
readonly ACTIVE: {
|
|
2564
2630
|
readonly id: "ACTIVE";
|
|
2565
2631
|
readonly isFinal: false;
|
|
2566
|
-
readonly metadata:
|
|
2632
|
+
readonly metadata: {
|
|
2633
|
+
readonly label: "Active";
|
|
2634
|
+
readonly description: "DAO is idle and ready to accept a proposal";
|
|
2635
|
+
readonly category: "initial";
|
|
2636
|
+
};
|
|
2567
2637
|
};
|
|
2568
2638
|
readonly VOTING: {
|
|
2569
2639
|
readonly id: "VOTING";
|
|
2570
2640
|
readonly isFinal: false;
|
|
2571
|
-
readonly metadata:
|
|
2641
|
+
readonly metadata: {
|
|
2642
|
+
readonly label: "Voting";
|
|
2643
|
+
readonly description: "Members vote with reputation-weighted power";
|
|
2644
|
+
readonly category: "pending";
|
|
2645
|
+
};
|
|
2572
2646
|
};
|
|
2573
2647
|
readonly DISSOLVED: {
|
|
2574
2648
|
readonly id: "DISSOLVED";
|
|
2575
2649
|
readonly isFinal: true;
|
|
2576
|
-
readonly metadata:
|
|
2650
|
+
readonly metadata: {
|
|
2651
|
+
readonly label: "Dissolved";
|
|
2652
|
+
readonly description: "Reputation DAO dissolved (terminal)";
|
|
2653
|
+
readonly category: "terminal";
|
|
2654
|
+
};
|
|
2577
2655
|
};
|
|
2578
2656
|
};
|
|
2579
2657
|
readonly initialState: "ACTIVE";
|
|
2580
2658
|
readonly transitions: readonly [{
|
|
2581
2659
|
readonly from: "ACTIVE";
|
|
2660
|
+
/**
|
|
2661
|
+
* Check if agent can propose
|
|
2662
|
+
*/
|
|
2582
2663
|
readonly to: "VOTING";
|
|
2583
2664
|
readonly eventName: "propose";
|
|
2584
2665
|
readonly guard: {
|