@ottochain/sdk 2.2.5 → 2.4.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/index.js +15 -8
- package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +89 -46
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +152 -45
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +40 -8
- package/dist/cjs/apps/corporate/index.js +2 -2
- package/dist/cjs/apps/corporate/state-machines/corp-board.js +169 -59
- package/dist/cjs/apps/corporate/state-machines/corp-entity.js +245 -47
- package/dist/cjs/apps/corporate/state-machines/corp-securities.js +407 -99
- package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +151 -37
- package/dist/cjs/apps/governance/index.js +14 -14
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +85 -43
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +73 -43
- package/dist/cjs/apps/governance/state-machines/dao-single.js +55 -14
- package/dist/cjs/apps/governance/state-machines/dao-token.js +103 -45
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +129 -65
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +29 -5
- package/dist/cjs/apps/identity/constants.js +55 -14
- package/dist/cjs/apps/identity/index.js +27 -11
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +57 -9
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +70 -27
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +288 -0
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +30 -6
- package/dist/cjs/apps/identity/state-machines/index.js +3 -1
- package/dist/cjs/apps/index.js +19 -8
- package/dist/cjs/apps/lending/assets.js +223 -0
- package/dist/cjs/apps/lending/credit-scoring.js +87 -0
- package/dist/cjs/apps/lending/eligibility.js +121 -0
- package/dist/cjs/apps/lending/index.js +91 -0
- package/dist/cjs/apps/lending/state-machines/index.js +9 -0
- package/dist/cjs/apps/lending/state-machines/lending-zk-loan.js +412 -0
- package/dist/cjs/apps/markets/index.js +21 -11
- package/dist/cjs/apps/markets/state-machines/market-auction.js +44 -19
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +54 -29
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +53 -31
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +120 -61
- package/dist/cjs/apps/markets/state-machines/market-universal.js +50 -10
- package/dist/cjs/apps/oracles/index.js +2 -2
- package/dist/cjs/errors.js +3 -3
- package/dist/cjs/generated/google/protobuf/struct.js +4 -4
- package/dist/cjs/generated/index.js +11 -7
- package/dist/cjs/generated/openapi.js +6 -0
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +50 -50
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +19 -20
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +13 -13
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +4 -4
- package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +124 -130
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +107 -107
- package/dist/cjs/generated/ottochain/v1/common.js +1722 -1
- package/dist/cjs/generated/ottochain/v1/fiber.js +355 -5
- 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 +45 -7
- package/dist/cjs/openapi.js +2 -0
- package/dist/cjs/ottochain/drop-nulls.js +1 -2
- package/dist/cjs/ottochain/genesis-manifest.js +193 -0
- package/dist/cjs/ottochain/index.js +27 -13
- package/dist/cjs/ottochain/metagraph-client.js +65 -8
- package/dist/cjs/ottochain/snapshot.js +11 -12
- package/dist/cjs/ottochain/transaction.js +57 -14
- package/dist/cjs/ottochain/types.js +19 -1
- package/dist/cjs/privacy/index.js +14 -0
- package/dist/cjs/privacy/sealed-bid.js +210 -0
- package/dist/cjs/privacy/shield-app.js +131 -0
- package/dist/cjs/schema/effects.js +40 -0
- package/dist/cjs/schema/fiber-app.js +19 -13
- package/dist/cjs/schema/guard-lint.js +352 -0
- package/dist/cjs/schema/guards.js +246 -0
- package/dist/cjs/signing.js +80 -0
- package/dist/cjs/types.js +2 -3
- package/dist/cjs/validation.js +8 -8
- package/dist/cjs/verify.js +9 -4
- package/dist/cjs/zk/commit.js +53 -0
- package/dist/cjs/zk/guard.js +107 -0
- package/dist/cjs/zk/index.js +48 -0
- package/dist/cjs/zk/preimage.js +37 -0
- package/dist/cjs/zk/prover.js +87 -0
- package/dist/cjs/zk/registry.js +62 -0
- package/dist/cjs/zk/types.js +28 -0
- package/dist/cjs/zk/witness.js +19 -0
- package/dist/esm/apps/contracts/index.js +7 -3
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +89 -46
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +152 -45
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +40 -8
- package/dist/esm/apps/corporate/state-machines/corp-board.js +169 -59
- package/dist/esm/apps/corporate/state-machines/corp-entity.js +245 -47
- package/dist/esm/apps/corporate/state-machines/corp-securities.js +407 -99
- package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +151 -37
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +85 -43
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +73 -43
- package/dist/esm/apps/governance/state-machines/dao-single.js +55 -14
- package/dist/esm/apps/governance/state-machines/dao-token.js +103 -45
- package/dist/esm/apps/governance/state-machines/governance-simple.js +129 -65
- package/dist/esm/apps/governance/state-machines/governance-universal.js +29 -5
- package/dist/esm/apps/identity/constants.js +51 -12
- package/dist/esm/apps/identity/index.js +12 -7
- package/dist/esm/apps/identity/state-machines/identity-agent.js +57 -9
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +70 -27
- package/dist/esm/apps/identity/state-machines/identity-registry.js +285 -0
- package/dist/esm/apps/identity/state-machines/identity-universal.js +30 -6
- package/dist/esm/apps/identity/state-machines/index.js +1 -0
- package/dist/esm/apps/index.js +1 -0
- package/dist/esm/apps/lending/assets.js +207 -0
- package/dist/esm/apps/lending/credit-scoring.js +81 -0
- package/dist/esm/apps/lending/eligibility.js +115 -0
- package/dist/esm/apps/lending/index.js +69 -0
- package/dist/esm/apps/lending/state-machines/index.js +5 -0
- package/dist/esm/apps/lending/state-machines/lending-zk-loan.js +409 -0
- package/dist/esm/apps/markets/index.js +8 -4
- package/dist/esm/apps/markets/state-machines/market-auction.js +44 -19
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +54 -29
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +53 -31
- package/dist/esm/apps/markets/state-machines/market-prediction.js +120 -61
- package/dist/esm/apps/markets/state-machines/market-universal.js +50 -10
- package/dist/esm/generated/index.js +9 -5
- package/dist/esm/generated/openapi.js +5 -0
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +46 -46
- package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +114 -120
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +100 -100
- 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 +23 -2
- package/dist/esm/openapi.js +1 -0
- package/dist/esm/ottochain/genesis-manifest.js +189 -0
- package/dist/esm/ottochain/index.js +4 -3
- package/dist/esm/ottochain/metagraph-client.js +65 -8
- package/dist/esm/ottochain/snapshot.js +4 -4
- package/dist/esm/ottochain/transaction.js +43 -3
- package/dist/esm/ottochain/types.js +18 -0
- package/dist/esm/privacy/index.js +6 -0
- package/dist/esm/privacy/sealed-bid.js +206 -0
- package/dist/esm/privacy/shield-app.js +127 -0
- package/dist/esm/schema/effects.js +35 -0
- package/dist/esm/schema/fiber-app.js +13 -6
- package/dist/esm/schema/guard-lint.js +346 -0
- package/dist/esm/schema/guards.js +229 -0
- package/dist/esm/signing.js +74 -0
- package/dist/esm/verify.js +8 -2
- package/dist/esm/zk/commit.js +44 -0
- package/dist/esm/zk/guard.js +99 -0
- package/dist/esm/zk/index.js +19 -0
- package/dist/esm/zk/preimage.js +30 -0
- package/dist/esm/zk/prover.js +82 -0
- package/dist/esm/zk/registry.js +55 -0
- package/dist/esm/zk/types.js +25 -0
- package/dist/esm/zk/witness.js +15 -0
- package/dist/types/apps/contracts/index.d.ts +159 -227
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +50 -101
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +86 -120
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +20 -4
- package/dist/types/apps/corporate/index.d.ts +1040 -304
- package/dist/types/apps/corporate/state-machines/corp-board.d.ts +188 -52
- package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +267 -62
- package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +355 -131
- package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +225 -53
- package/dist/types/apps/governance/index.d.ts +396 -417
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +92 -95
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +57 -69
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +40 -50
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +80 -53
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +107 -121
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +17 -5
- package/dist/types/apps/identity/constants.d.ts +32 -4
- package/dist/types/apps/identity/index.d.ts +449 -100
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +30 -0
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +41 -87
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +379 -0
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +15 -0
- package/dist/types/apps/identity/state-machines/index.d.ts +1 -0
- package/dist/types/apps/index.d.ts +1 -0
- package/dist/types/apps/lending/assets.d.ts +258 -0
- package/dist/types/apps/lending/credit-scoring.d.ts +80 -0
- package/dist/types/apps/lending/eligibility.d.ts +83 -0
- package/dist/types/apps/lending/index.d.ts +548 -0
- package/dist/types/apps/lending/state-machines/index.d.ts +5 -0
- package/dist/types/apps/lending/state-machines/lending-zk-loan.d.ts +528 -0
- package/dist/types/apps/markets/index.d.ts +184 -204
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +25 -37
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +26 -34
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +31 -43
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +67 -72
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +30 -10
- package/dist/types/generated/index.d.ts +5 -5
- package/dist/types/generated/openapi.d.ts +1257 -0
- package/dist/types/generated/ottochain/apps/contracts/v1/contract.d.ts +5 -5
- package/dist/types/generated/ottochain/apps/identity/v1/identity.d.ts +12 -12
- package/dist/types/generated/ottochain/apps/markets/v1/market.d.ts +11 -11
- 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 +8 -2
- package/dist/types/openapi.d.ts +22 -0
- package/dist/types/ottochain/genesis-manifest.d.ts +130 -0
- package/dist/types/ottochain/index.d.ts +6 -5
- package/dist/types/ottochain/metagraph-client.d.ts +49 -7
- package/dist/types/ottochain/snapshot.d.ts +6 -6
- package/dist/types/ottochain/transaction.d.ts +33 -1
- package/dist/types/ottochain/types.d.ts +602 -11
- package/dist/types/privacy/index.d.ts +6 -0
- package/dist/types/privacy/sealed-bid.d.ts +348 -0
- package/dist/types/privacy/shield-app.d.ts +48 -0
- package/dist/types/schema/effects.d.ts +34 -0
- package/dist/types/schema/fiber-app.d.ts +41 -3
- package/dist/types/schema/guard-lint.d.ts +111 -0
- package/dist/types/schema/guards.d.ts +134 -0
- package/dist/types/signing.d.ts +45 -0
- package/dist/types/validation.d.ts +22 -217
- package/dist/types/verify.d.ts +4 -0
- package/dist/types/zk/commit.d.ts +28 -0
- package/dist/types/zk/guard.d.ts +46 -0
- package/dist/types/zk/index.d.ts +19 -0
- package/dist/types/zk/preimage.d.ts +10 -0
- package/dist/types/zk/prover.d.ts +34 -0
- package/dist/types/zk/registry.d.ts +34 -0
- package/dist/types/zk/types.d.ts +33 -0
- package/dist/types/zk/witness.d.ts +40 -0
- package/package.json +52 -35
- package/dist/cjs/ottochain/normalize.js +0 -186
- package/dist/esm/ottochain/normalize.js +0 -179
- package/dist/types/ottochain/normalize.d.ts +0 -79
|
@@ -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";
|
|
@@ -128,7 +140,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
128
140
|
readonly var: "event.proposal";
|
|
129
141
|
};
|
|
130
142
|
readonly proposedAt: {
|
|
131
|
-
readonly var: "$
|
|
143
|
+
readonly var: "$ordinal";
|
|
132
144
|
};
|
|
133
145
|
readonly votes: {};
|
|
134
146
|
}];
|
|
@@ -196,7 +208,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
196
208
|
}, {
|
|
197
209
|
readonly status: "DISSOLVED";
|
|
198
210
|
readonly dissolvedAt: {
|
|
199
|
-
readonly var: "$
|
|
211
|
+
readonly var: "$ordinal";
|
|
200
212
|
};
|
|
201
213
|
}];
|
|
202
214
|
};
|
|
@@ -334,13 +346,8 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
334
346
|
};
|
|
335
347
|
};
|
|
336
348
|
readonly finalize: {
|
|
337
|
-
readonly description: "Finalize the voting period";
|
|
338
|
-
readonly
|
|
339
|
-
readonly properties: {
|
|
340
|
-
readonly forCount: {
|
|
341
|
-
readonly type: "number";
|
|
342
|
-
};
|
|
343
|
-
};
|
|
349
|
+
readonly description: "Finalize the voting period (for-count derived from recorded ballots)";
|
|
350
|
+
readonly properties: {};
|
|
344
351
|
};
|
|
345
352
|
readonly file_dispute: {
|
|
346
353
|
readonly description: "File a dispute against a member";
|
|
@@ -365,9 +372,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
365
372
|
readonly required: readonly ["content"];
|
|
366
373
|
readonly properties: {
|
|
367
374
|
readonly agent: {
|
|
368
|
-
/**
|
|
369
|
-
* Get remaining signatures needed
|
|
370
|
-
*/
|
|
371
375
|
readonly type: "address";
|
|
372
376
|
};
|
|
373
377
|
readonly content: {
|
|
@@ -388,37 +392,46 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
388
392
|
};
|
|
389
393
|
};
|
|
390
394
|
readonly dissolve: {
|
|
391
|
-
readonly description: "Dissolve the organization (requires
|
|
392
|
-
readonly
|
|
393
|
-
readonly properties: {
|
|
394
|
-
readonly approvalCount: {
|
|
395
|
-
readonly type: "number";
|
|
396
|
-
};
|
|
397
|
-
};
|
|
395
|
+
readonly description: "Dissolve the organization (requires every member to sign this op — verified unanimity)";
|
|
396
|
+
readonly properties: {};
|
|
398
397
|
};
|
|
399
|
-
};
|
|
400
|
-
* Get effective voting power (includes delegation)
|
|
401
|
-
*/
|
|
398
|
+
};
|
|
402
399
|
readonly states: {
|
|
403
400
|
readonly ACTIVE: {
|
|
404
401
|
readonly id: "ACTIVE";
|
|
405
402
|
readonly isFinal: false;
|
|
406
|
-
readonly metadata:
|
|
403
|
+
readonly metadata: {
|
|
404
|
+
readonly label: "Active";
|
|
405
|
+
readonly description: "Governance is idle and ready to accept a proposal";
|
|
406
|
+
readonly category: "initial";
|
|
407
|
+
};
|
|
407
408
|
};
|
|
408
409
|
readonly VOTING: {
|
|
409
410
|
readonly id: "VOTING";
|
|
410
411
|
readonly isFinal: false;
|
|
411
|
-
readonly metadata:
|
|
412
|
+
readonly metadata: {
|
|
413
|
+
readonly label: "Voting";
|
|
414
|
+
readonly description: "A proposal is open for voting";
|
|
415
|
+
readonly category: "pending";
|
|
416
|
+
};
|
|
412
417
|
};
|
|
413
418
|
readonly DISPUTE: {
|
|
414
419
|
readonly id: "DISPUTE";
|
|
415
420
|
readonly isFinal: false;
|
|
416
|
-
readonly metadata:
|
|
421
|
+
readonly metadata: {
|
|
422
|
+
readonly label: "Dispute";
|
|
423
|
+
readonly description: "A proposal outcome is being disputed";
|
|
424
|
+
readonly category: "pending";
|
|
425
|
+
};
|
|
417
426
|
};
|
|
418
427
|
readonly DISSOLVED: {
|
|
419
428
|
readonly id: "DISSOLVED";
|
|
420
429
|
readonly isFinal: true;
|
|
421
|
-
readonly metadata:
|
|
430
|
+
readonly metadata: {
|
|
431
|
+
readonly label: "Dissolved";
|
|
432
|
+
readonly description: "Governance entity dissolved (terminal)";
|
|
433
|
+
readonly category: "terminal";
|
|
434
|
+
};
|
|
422
435
|
};
|
|
423
436
|
};
|
|
424
437
|
readonly initialState: "ACTIVE";
|
|
@@ -426,19 +439,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
426
439
|
readonly from: "ACTIVE";
|
|
427
440
|
readonly to: "ACTIVE";
|
|
428
441
|
readonly eventName: "add_member";
|
|
429
|
-
readonly guard:
|
|
430
|
-
readonly in: readonly [{
|
|
431
|
-
readonly var: "event.agent";
|
|
432
|
-
}, {
|
|
433
|
-
readonly var: "state.admins";
|
|
434
|
-
}];
|
|
435
|
-
};
|
|
442
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
436
443
|
readonly effect: {
|
|
437
444
|
readonly merge: readonly [{
|
|
438
445
|
readonly var: "state";
|
|
439
446
|
}, {
|
|
440
447
|
readonly members: {
|
|
441
|
-
readonly
|
|
448
|
+
readonly set: readonly [{
|
|
442
449
|
readonly var: "state.members";
|
|
443
450
|
}, {
|
|
444
451
|
readonly var: "event.member";
|
|
@@ -447,7 +454,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
447
454
|
readonly var: "event.role";
|
|
448
455
|
};
|
|
449
456
|
readonly addedAt: {
|
|
450
|
-
readonly var: "$
|
|
457
|
+
readonly var: "$ordinal";
|
|
451
458
|
};
|
|
452
459
|
}];
|
|
453
460
|
};
|
|
@@ -458,19 +465,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
458
465
|
readonly from: "ACTIVE";
|
|
459
466
|
readonly to: "ACTIVE";
|
|
460
467
|
readonly eventName: "remove_member";
|
|
461
|
-
readonly guard:
|
|
462
|
-
readonly in: readonly [{
|
|
463
|
-
readonly var: "event.agent";
|
|
464
|
-
}, {
|
|
465
|
-
readonly var: "state.admins";
|
|
466
|
-
}];
|
|
467
|
-
};
|
|
468
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
468
469
|
readonly effect: {
|
|
469
470
|
readonly merge: readonly [{
|
|
470
471
|
readonly var: "state";
|
|
471
472
|
}, {
|
|
472
473
|
readonly members: {
|
|
473
|
-
readonly
|
|
474
|
+
readonly unset: readonly [{
|
|
474
475
|
readonly var: "state.members";
|
|
475
476
|
}, {
|
|
476
477
|
readonly var: "event.member";
|
|
@@ -483,13 +484,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
483
484
|
readonly from: "ACTIVE";
|
|
484
485
|
readonly to: "VOTING";
|
|
485
486
|
readonly eventName: "propose";
|
|
486
|
-
readonly guard:
|
|
487
|
-
readonly getKey: readonly [{
|
|
488
|
-
readonly var: "state.members";
|
|
489
|
-
}, {
|
|
490
|
-
readonly var: "event.agent";
|
|
491
|
-
}];
|
|
492
|
-
};
|
|
487
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
493
488
|
readonly effect: {
|
|
494
489
|
readonly merge: readonly [{
|
|
495
490
|
readonly var: "state";
|
|
@@ -508,11 +503,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
508
503
|
readonly var: "event.agent";
|
|
509
504
|
};
|
|
510
505
|
readonly proposedAt: {
|
|
511
|
-
readonly var: "$
|
|
506
|
+
readonly var: "$ordinal";
|
|
512
507
|
};
|
|
513
508
|
readonly deadline: {
|
|
514
509
|
readonly "+": readonly [{
|
|
515
|
-
readonly var: "$
|
|
510
|
+
readonly var: "$ordinal";
|
|
516
511
|
}, {
|
|
517
512
|
readonly var: "state.votingPeriodMs";
|
|
518
513
|
}];
|
|
@@ -527,15 +522,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
527
522
|
readonly to: "VOTING";
|
|
528
523
|
readonly eventName: "vote";
|
|
529
524
|
readonly guard: {
|
|
530
|
-
readonly and: readonly [{
|
|
531
|
-
readonly getKey: readonly [{
|
|
532
|
-
readonly var: "state.members";
|
|
533
|
-
}, {
|
|
534
|
-
readonly var: "event.agent";
|
|
535
|
-
}];
|
|
536
|
-
}, {
|
|
525
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
537
526
|
readonly "!": readonly [{
|
|
538
|
-
readonly
|
|
527
|
+
readonly has: readonly [{
|
|
539
528
|
readonly var: "state.votes";
|
|
540
529
|
}, {
|
|
541
530
|
readonly var: "event.agent";
|
|
@@ -548,7 +537,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
548
537
|
readonly var: "state";
|
|
549
538
|
}, {
|
|
550
539
|
readonly votes: {
|
|
551
|
-
readonly
|
|
540
|
+
readonly set: readonly [{
|
|
552
541
|
readonly var: "state.votes";
|
|
553
542
|
}, {
|
|
554
543
|
readonly var: "event.agent";
|
|
@@ -557,7 +546,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
557
546
|
readonly var: "event.vote";
|
|
558
547
|
};
|
|
559
548
|
readonly votedAt: {
|
|
560
|
-
readonly var: "$
|
|
549
|
+
readonly var: "$ordinal";
|
|
561
550
|
};
|
|
562
551
|
}];
|
|
563
552
|
};
|
|
@@ -570,12 +559,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
570
559
|
readonly eventName: "finalize";
|
|
571
560
|
readonly guard: {
|
|
572
561
|
readonly ">=": readonly [{
|
|
573
|
-
readonly
|
|
562
|
+
readonly length: readonly [{
|
|
563
|
+
readonly filter: readonly [{
|
|
564
|
+
readonly values: readonly [{
|
|
565
|
+
readonly var: "state.votes";
|
|
566
|
+
}];
|
|
567
|
+
}, {
|
|
568
|
+
readonly "===": readonly [{
|
|
569
|
+
readonly var: "vote";
|
|
570
|
+
}, "for"];
|
|
571
|
+
}];
|
|
572
|
+
}];
|
|
574
573
|
}, {
|
|
575
574
|
readonly "*": readonly [{
|
|
576
|
-
readonly
|
|
577
|
-
readonly
|
|
578
|
-
|
|
575
|
+
readonly length: readonly [{
|
|
576
|
+
readonly keys: readonly [{
|
|
577
|
+
readonly var: "state.members";
|
|
578
|
+
}];
|
|
579
|
+
}];
|
|
579
580
|
}, {
|
|
580
581
|
readonly var: "state.passingThreshold";
|
|
581
582
|
}];
|
|
@@ -602,7 +603,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
602
603
|
};
|
|
603
604
|
readonly outcome: "passed";
|
|
604
605
|
readonly finalizedAt: {
|
|
605
|
-
readonly var: "$
|
|
606
|
+
readonly var: "$ordinal";
|
|
606
607
|
};
|
|
607
608
|
}]];
|
|
608
609
|
};
|
|
@@ -617,12 +618,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
617
618
|
readonly eventName: "finalize";
|
|
618
619
|
readonly guard: {
|
|
619
620
|
readonly "<": readonly [{
|
|
620
|
-
readonly
|
|
621
|
+
readonly length: readonly [{
|
|
622
|
+
readonly filter: readonly [{
|
|
623
|
+
readonly values: readonly [{
|
|
624
|
+
readonly var: "state.votes";
|
|
625
|
+
}];
|
|
626
|
+
}, {
|
|
627
|
+
readonly "===": readonly [{
|
|
628
|
+
readonly var: "vote";
|
|
629
|
+
}, "for"];
|
|
630
|
+
}];
|
|
631
|
+
}];
|
|
621
632
|
}, {
|
|
622
633
|
readonly "*": readonly [{
|
|
623
|
-
readonly
|
|
624
|
-
readonly
|
|
625
|
-
|
|
634
|
+
readonly length: readonly [{
|
|
635
|
+
readonly keys: readonly [{
|
|
636
|
+
readonly var: "state.members";
|
|
637
|
+
}];
|
|
638
|
+
}];
|
|
626
639
|
}, {
|
|
627
640
|
readonly var: "state.passingThreshold";
|
|
628
641
|
}];
|
|
@@ -642,7 +655,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
642
655
|
};
|
|
643
656
|
readonly outcome: "failed";
|
|
644
657
|
readonly finalizedAt: {
|
|
645
|
-
readonly var: "$
|
|
658
|
+
readonly var: "$ordinal";
|
|
646
659
|
};
|
|
647
660
|
}]];
|
|
648
661
|
};
|
|
@@ -655,13 +668,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
655
668
|
readonly from: "ACTIVE";
|
|
656
669
|
readonly to: "DISPUTE";
|
|
657
670
|
readonly eventName: "file_dispute";
|
|
658
|
-
readonly guard:
|
|
659
|
-
readonly getKey: readonly [{
|
|
660
|
-
readonly var: "state.members";
|
|
661
|
-
}, {
|
|
662
|
-
readonly var: "event.agent";
|
|
663
|
-
}];
|
|
664
|
-
};
|
|
671
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
665
672
|
readonly effect: {
|
|
666
673
|
readonly merge: readonly [{
|
|
667
674
|
readonly var: "state";
|
|
@@ -680,7 +687,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
680
687
|
readonly var: "event.claim";
|
|
681
688
|
};
|
|
682
689
|
readonly filedAt: {
|
|
683
|
-
readonly var: "$
|
|
690
|
+
readonly var: "$ordinal";
|
|
684
691
|
};
|
|
685
692
|
readonly evidence: readonly [];
|
|
686
693
|
};
|
|
@@ -692,21 +699,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
692
699
|
readonly from: "DISPUTE";
|
|
693
700
|
readonly to: "DISPUTE";
|
|
694
701
|
readonly eventName: "submit_evidence";
|
|
695
|
-
readonly guard:
|
|
696
|
-
readonly or: readonly [{
|
|
697
|
-
readonly "===": readonly [{
|
|
698
|
-
readonly var: "event.agent";
|
|
699
|
-
}, {
|
|
700
|
-
readonly var: "state.dispute.plaintiff";
|
|
701
|
-
}];
|
|
702
|
-
}, {
|
|
703
|
-
readonly "===": readonly [{
|
|
704
|
-
readonly var: "event.agent";
|
|
705
|
-
}, {
|
|
706
|
-
readonly var: "state.dispute.defendant";
|
|
707
|
-
}];
|
|
708
|
-
}];
|
|
709
|
-
};
|
|
702
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
710
703
|
readonly effect: {
|
|
711
704
|
readonly merge: readonly [{
|
|
712
705
|
readonly var: "state";
|
|
@@ -726,7 +719,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
726
719
|
readonly var: "event.content";
|
|
727
720
|
};
|
|
728
721
|
readonly at: {
|
|
729
|
-
readonly var: "$
|
|
722
|
+
readonly var: "$ordinal";
|
|
730
723
|
};
|
|
731
724
|
}]];
|
|
732
725
|
};
|
|
@@ -740,27 +733,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
740
733
|
readonly to: "DISPUTE";
|
|
741
734
|
readonly eventName: "vote";
|
|
742
735
|
readonly guard: {
|
|
743
|
-
readonly and: readonly [{
|
|
744
|
-
readonly getKey: readonly [{
|
|
745
|
-
readonly var: "state.members";
|
|
746
|
-
}, {
|
|
747
|
-
readonly var: "event.agent";
|
|
748
|
-
}];
|
|
749
|
-
}, {
|
|
750
|
-
readonly "!==": readonly [{
|
|
751
|
-
readonly var: "event.agent";
|
|
752
|
-
}, {
|
|
753
|
-
readonly var: "state.dispute.plaintiff";
|
|
754
|
-
}];
|
|
755
|
-
}, {
|
|
756
|
-
readonly "!==": readonly [{
|
|
757
|
-
readonly var: "event.agent";
|
|
758
|
-
}, {
|
|
759
|
-
readonly var: "state.dispute.defendant";
|
|
760
|
-
}];
|
|
761
|
-
}, {
|
|
736
|
+
readonly and: readonly [import("../../index.js").GuardRule, import("../../index.js").GuardRule, import("../../index.js").GuardRule, {
|
|
762
737
|
readonly "!": readonly [{
|
|
763
|
-
readonly
|
|
738
|
+
readonly has: readonly [{
|
|
764
739
|
readonly var: "state.votes";
|
|
765
740
|
}, {
|
|
766
741
|
readonly var: "event.agent";
|
|
@@ -773,7 +748,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
773
748
|
readonly var: "state";
|
|
774
749
|
}, {
|
|
775
750
|
readonly votes: {
|
|
776
|
-
readonly
|
|
751
|
+
readonly set: readonly [{
|
|
777
752
|
readonly var: "state.votes";
|
|
778
753
|
}, {
|
|
779
754
|
readonly var: "event.agent";
|
|
@@ -782,7 +757,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
782
757
|
readonly var: "event.ruling";
|
|
783
758
|
};
|
|
784
759
|
readonly votedAt: {
|
|
785
|
-
readonly var: "$
|
|
760
|
+
readonly var: "$ordinal";
|
|
786
761
|
};
|
|
787
762
|
}];
|
|
788
763
|
};
|
|
@@ -795,9 +770,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
795
770
|
readonly eventName: "resolve";
|
|
796
771
|
readonly guard: {
|
|
797
772
|
readonly ">=": readonly [{
|
|
798
|
-
readonly
|
|
799
|
-
readonly
|
|
800
|
-
|
|
773
|
+
readonly length: readonly [{
|
|
774
|
+
readonly keys: readonly [{
|
|
775
|
+
readonly var: "state.votes";
|
|
776
|
+
}];
|
|
777
|
+
}];
|
|
801
778
|
}, {
|
|
802
779
|
readonly var: "state.disputeQuorum";
|
|
803
780
|
}];
|
|
@@ -821,7 +798,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
821
798
|
readonly var: "event.remedy";
|
|
822
799
|
};
|
|
823
800
|
readonly resolvedAt: {
|
|
824
|
-
readonly var: "$
|
|
801
|
+
readonly var: "$ordinal";
|
|
825
802
|
};
|
|
826
803
|
}]];
|
|
827
804
|
};
|
|
@@ -835,14 +812,30 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
835
812
|
readonly to: "DISSOLVED";
|
|
836
813
|
readonly eventName: "dissolve";
|
|
837
814
|
readonly guard: {
|
|
838
|
-
readonly
|
|
839
|
-
readonly
|
|
815
|
+
readonly and: readonly [{
|
|
816
|
+
readonly ">": readonly [{
|
|
817
|
+
readonly length: readonly [{
|
|
818
|
+
readonly keys: readonly [{
|
|
819
|
+
readonly var: "state.members";
|
|
820
|
+
}];
|
|
821
|
+
}];
|
|
822
|
+
}, 0];
|
|
840
823
|
}, {
|
|
841
|
-
readonly
|
|
842
|
-
readonly
|
|
824
|
+
readonly all: readonly [{
|
|
825
|
+
readonly keys: readonly [{
|
|
843
826
|
readonly var: "state.members";
|
|
844
|
-
};
|
|
845
|
-
},
|
|
827
|
+
}];
|
|
828
|
+
}, {
|
|
829
|
+
readonly in: readonly [{
|
|
830
|
+
readonly var: "";
|
|
831
|
+
}, {
|
|
832
|
+
readonly map: readonly [{
|
|
833
|
+
readonly var: "proofs";
|
|
834
|
+
}, {
|
|
835
|
+
readonly var: "address";
|
|
836
|
+
}];
|
|
837
|
+
}];
|
|
838
|
+
}];
|
|
846
839
|
}];
|
|
847
840
|
};
|
|
848
841
|
readonly effect: {
|
|
@@ -850,7 +843,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
850
843
|
readonly var: "state";
|
|
851
844
|
}, {
|
|
852
845
|
readonly dissolvedAt: {
|
|
853
|
-
readonly var: "$
|
|
846
|
+
readonly var: "$ordinal";
|
|
854
847
|
};
|
|
855
848
|
}];
|
|
856
849
|
};
|
|
@@ -966,17 +959,29 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
966
959
|
readonly ACTIVE: {
|
|
967
960
|
readonly id: "ACTIVE";
|
|
968
961
|
readonly isFinal: false;
|
|
969
|
-
readonly metadata:
|
|
962
|
+
readonly metadata: {
|
|
963
|
+
readonly label: "Active";
|
|
964
|
+
readonly description: "Single owner controls the DAO and may act or transfer ownership";
|
|
965
|
+
readonly category: "initial";
|
|
966
|
+
};
|
|
970
967
|
};
|
|
971
968
|
readonly TRANSFERRING: {
|
|
972
969
|
readonly id: "TRANSFERRING";
|
|
973
970
|
readonly isFinal: false;
|
|
974
|
-
readonly metadata:
|
|
971
|
+
readonly metadata: {
|
|
972
|
+
readonly label: "Transferring";
|
|
973
|
+
readonly description: "Ownership transfer proposed; awaiting acceptance";
|
|
974
|
+
readonly category: "pending";
|
|
975
|
+
};
|
|
975
976
|
};
|
|
976
977
|
readonly DISSOLVED: {
|
|
977
978
|
readonly id: "DISSOLVED";
|
|
978
979
|
readonly isFinal: true;
|
|
979
|
-
readonly metadata:
|
|
980
|
+
readonly metadata: {
|
|
981
|
+
readonly label: "Dissolved";
|
|
982
|
+
readonly description: "DAO dissolved by its owner (terminal)";
|
|
983
|
+
readonly category: "terminal";
|
|
984
|
+
};
|
|
980
985
|
};
|
|
981
986
|
};
|
|
982
987
|
readonly initialState: "ACTIVE";
|
|
@@ -984,13 +989,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
984
989
|
readonly from: "ACTIVE";
|
|
985
990
|
readonly to: "ACTIVE";
|
|
986
991
|
readonly eventName: "execute";
|
|
987
|
-
readonly guard:
|
|
988
|
-
readonly "===": readonly [{
|
|
989
|
-
readonly var: "event.agent";
|
|
990
|
-
}, {
|
|
991
|
-
readonly var: "state.owner";
|
|
992
|
-
}];
|
|
993
|
-
};
|
|
992
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
994
993
|
readonly effect: {
|
|
995
994
|
readonly merge: readonly [{
|
|
996
995
|
readonly var: "state";
|
|
@@ -1009,28 +1008,27 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1009
1008
|
readonly var: "event.payload";
|
|
1010
1009
|
};
|
|
1011
1010
|
readonly executedAt: {
|
|
1012
|
-
readonly var: "$
|
|
1011
|
+
readonly var: "$ordinal";
|
|
1013
1012
|
};
|
|
1014
1013
|
}]];
|
|
1015
1014
|
};
|
|
1015
|
+
readonly _emit: readonly [{
|
|
1016
|
+
readonly name: "action_executed";
|
|
1017
|
+
readonly data: {
|
|
1018
|
+
readonly actionId: {
|
|
1019
|
+
readonly var: "event.actionId";
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
readonly destination: "external";
|
|
1023
|
+
}];
|
|
1016
1024
|
}];
|
|
1017
1025
|
};
|
|
1018
|
-
readonly emits: readonly [{
|
|
1019
|
-
readonly event: "action_executed";
|
|
1020
|
-
readonly to: "external";
|
|
1021
|
-
}];
|
|
1022
1026
|
readonly dependencies: readonly [];
|
|
1023
1027
|
}, {
|
|
1024
1028
|
readonly from: "ACTIVE";
|
|
1025
1029
|
readonly to: "TRANSFERRING";
|
|
1026
1030
|
readonly eventName: "transfer_ownership";
|
|
1027
|
-
readonly guard:
|
|
1028
|
-
readonly "===": readonly [{
|
|
1029
|
-
readonly var: "event.agent";
|
|
1030
|
-
}, {
|
|
1031
|
-
readonly var: "state.owner";
|
|
1032
|
-
}];
|
|
1033
|
-
};
|
|
1031
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1034
1032
|
readonly effect: {
|
|
1035
1033
|
readonly merge: readonly [{
|
|
1036
1034
|
readonly var: "state";
|
|
@@ -1039,7 +1037,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1039
1037
|
readonly var: "event.newOwner";
|
|
1040
1038
|
};
|
|
1041
1039
|
readonly transferInitiatedAt: {
|
|
1042
|
-
readonly var: "$
|
|
1040
|
+
readonly var: "$ordinal";
|
|
1043
1041
|
};
|
|
1044
1042
|
}];
|
|
1045
1043
|
};
|
|
@@ -1048,13 +1046,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1048
1046
|
readonly from: "TRANSFERRING";
|
|
1049
1047
|
readonly to: "ACTIVE";
|
|
1050
1048
|
readonly eventName: "accept_ownership";
|
|
1051
|
-
readonly guard:
|
|
1052
|
-
readonly "===": readonly [{
|
|
1053
|
-
readonly var: "event.agent";
|
|
1054
|
-
}, {
|
|
1055
|
-
readonly var: "state.pendingOwner";
|
|
1056
|
-
}];
|
|
1057
|
-
};
|
|
1049
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1058
1050
|
readonly effect: {
|
|
1059
1051
|
readonly merge: readonly [{
|
|
1060
1052
|
readonly var: "state";
|
|
@@ -1075,28 +1067,25 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1075
1067
|
readonly var: "state.pendingOwner";
|
|
1076
1068
|
};
|
|
1077
1069
|
readonly at: {
|
|
1078
|
-
readonly var: "$
|
|
1070
|
+
readonly var: "$ordinal";
|
|
1079
1071
|
};
|
|
1080
1072
|
}]];
|
|
1081
1073
|
};
|
|
1074
|
+
readonly _emit: readonly [{
|
|
1075
|
+
readonly name: "ownership_transferred";
|
|
1076
|
+
readonly data: {
|
|
1077
|
+
readonly var: "event";
|
|
1078
|
+
};
|
|
1079
|
+
readonly destination: "Identity";
|
|
1080
|
+
}];
|
|
1082
1081
|
}];
|
|
1083
1082
|
};
|
|
1084
|
-
readonly emits: readonly [{
|
|
1085
|
-
readonly event: "ownership_transferred";
|
|
1086
|
-
readonly to: "Identity";
|
|
1087
|
-
}];
|
|
1088
1083
|
readonly dependencies: readonly [];
|
|
1089
1084
|
}, {
|
|
1090
1085
|
readonly from: "TRANSFERRING";
|
|
1091
1086
|
readonly to: "ACTIVE";
|
|
1092
1087
|
readonly eventName: "cancel_transfer";
|
|
1093
|
-
readonly guard:
|
|
1094
|
-
readonly "===": readonly [{
|
|
1095
|
-
readonly var: "event.agent";
|
|
1096
|
-
}, {
|
|
1097
|
-
readonly var: "state.owner";
|
|
1098
|
-
}];
|
|
1099
|
-
};
|
|
1088
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1100
1089
|
readonly effect: {
|
|
1101
1090
|
readonly merge: readonly [{
|
|
1102
1091
|
readonly var: "state";
|
|
@@ -1110,19 +1099,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1110
1099
|
readonly from: "ACTIVE";
|
|
1111
1100
|
readonly to: "DISSOLVED";
|
|
1112
1101
|
readonly eventName: "dissolve";
|
|
1113
|
-
readonly guard:
|
|
1114
|
-
readonly "===": readonly [{
|
|
1115
|
-
readonly var: "event.agent";
|
|
1116
|
-
}, {
|
|
1117
|
-
readonly var: "state.owner";
|
|
1118
|
-
}];
|
|
1119
|
-
};
|
|
1102
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1120
1103
|
readonly effect: {
|
|
1121
1104
|
readonly merge: readonly [{
|
|
1122
1105
|
readonly var: "state";
|
|
1123
1106
|
}, {
|
|
1124
1107
|
readonly dissolvedAt: {
|
|
1125
|
-
readonly var: "$
|
|
1108
|
+
readonly var: "$ordinal";
|
|
1126
1109
|
};
|
|
1127
1110
|
readonly status: "DISSOLVED";
|
|
1128
1111
|
}];
|
|
@@ -1293,29 +1276,37 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1293
1276
|
};
|
|
1294
1277
|
};
|
|
1295
1278
|
readonly dissolve: {
|
|
1296
|
-
readonly description: "Dissolve the DAO (requires
|
|
1297
|
-
readonly properties: {
|
|
1298
|
-
readonly signatureCount: {
|
|
1299
|
-
readonly type: "number";
|
|
1300
|
-
};
|
|
1301
|
-
};
|
|
1279
|
+
readonly description: "Dissolve the DAO (requires every signer to sign this op — verified unanimity)";
|
|
1280
|
+
readonly properties: {};
|
|
1302
1281
|
};
|
|
1303
1282
|
};
|
|
1304
1283
|
readonly states: {
|
|
1305
1284
|
readonly ACTIVE: {
|
|
1306
1285
|
readonly id: "ACTIVE";
|
|
1307
1286
|
readonly isFinal: false;
|
|
1308
|
-
readonly metadata:
|
|
1287
|
+
readonly metadata: {
|
|
1288
|
+
readonly label: "Active";
|
|
1289
|
+
readonly description: "Multisig is idle and ready to propose an action";
|
|
1290
|
+
readonly category: "initial";
|
|
1291
|
+
};
|
|
1309
1292
|
};
|
|
1310
1293
|
readonly PENDING: {
|
|
1311
1294
|
readonly id: "PENDING";
|
|
1312
1295
|
readonly isFinal: false;
|
|
1313
|
-
readonly metadata:
|
|
1296
|
+
readonly metadata: {
|
|
1297
|
+
readonly label: "Pending";
|
|
1298
|
+
readonly description: "An action is awaiting the required signature threshold";
|
|
1299
|
+
readonly category: "pending";
|
|
1300
|
+
};
|
|
1314
1301
|
};
|
|
1315
1302
|
readonly DISSOLVED: {
|
|
1316
1303
|
readonly id: "DISSOLVED";
|
|
1317
1304
|
readonly isFinal: true;
|
|
1318
|
-
readonly metadata:
|
|
1305
|
+
readonly metadata: {
|
|
1306
|
+
readonly label: "Dissolved";
|
|
1307
|
+
readonly description: "Multisig DAO dissolved (terminal)";
|
|
1308
|
+
readonly category: "terminal";
|
|
1309
|
+
};
|
|
1319
1310
|
};
|
|
1320
1311
|
};
|
|
1321
1312
|
readonly initialState: "ACTIVE";
|
|
@@ -1323,13 +1314,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1323
1314
|
readonly from: "ACTIVE";
|
|
1324
1315
|
readonly to: "PENDING";
|
|
1325
1316
|
readonly eventName: "propose";
|
|
1326
|
-
readonly guard:
|
|
1327
|
-
readonly in: readonly [{
|
|
1328
|
-
readonly var: "event.agent";
|
|
1329
|
-
}, {
|
|
1330
|
-
readonly var: "state.signers";
|
|
1331
|
-
}];
|
|
1332
|
-
};
|
|
1317
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1333
1318
|
readonly effect: {
|
|
1334
1319
|
readonly merge: readonly [{
|
|
1335
1320
|
readonly var: "state";
|
|
@@ -1348,21 +1333,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1348
1333
|
readonly var: "event.agent";
|
|
1349
1334
|
};
|
|
1350
1335
|
readonly proposedAt: {
|
|
1351
|
-
readonly var: "$
|
|
1336
|
+
readonly var: "$ordinal";
|
|
1352
1337
|
};
|
|
1353
1338
|
readonly expiresAt: {
|
|
1354
1339
|
readonly "+": readonly [{
|
|
1355
|
-
readonly var: "$
|
|
1340
|
+
readonly var: "$ordinal";
|
|
1356
1341
|
}, {
|
|
1357
1342
|
readonly var: "state.proposalTTLMs";
|
|
1358
1343
|
}];
|
|
1359
1344
|
};
|
|
1360
1345
|
};
|
|
1361
1346
|
readonly signatures: {
|
|
1362
|
-
readonly
|
|
1347
|
+
readonly set: readonly [{}, {
|
|
1363
1348
|
readonly var: "event.agent";
|
|
1364
1349
|
}, {
|
|
1365
|
-
readonly var: "$
|
|
1350
|
+
readonly var: "$ordinal";
|
|
1366
1351
|
}];
|
|
1367
1352
|
};
|
|
1368
1353
|
}];
|
|
@@ -1373,15 +1358,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1373
1358
|
readonly to: "PENDING";
|
|
1374
1359
|
readonly eventName: "sign";
|
|
1375
1360
|
readonly guard: {
|
|
1376
|
-
readonly and: readonly [{
|
|
1377
|
-
readonly in: readonly [{
|
|
1378
|
-
readonly var: "event.agent";
|
|
1379
|
-
}, {
|
|
1380
|
-
readonly var: "state.signers";
|
|
1381
|
-
}];
|
|
1382
|
-
}, {
|
|
1361
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
1383
1362
|
readonly "!": readonly [{
|
|
1384
|
-
readonly
|
|
1363
|
+
readonly has: readonly [{
|
|
1385
1364
|
readonly var: "state.signatures";
|
|
1386
1365
|
}, {
|
|
1387
1366
|
readonly var: "event.agent";
|
|
@@ -1389,11 +1368,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1389
1368
|
}];
|
|
1390
1369
|
}, {
|
|
1391
1370
|
readonly "<": readonly [{
|
|
1392
|
-
readonly
|
|
1393
|
-
readonly
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
};
|
|
1371
|
+
readonly length: readonly [{
|
|
1372
|
+
readonly keys: readonly [{
|
|
1373
|
+
readonly var: "state.signatures";
|
|
1374
|
+
}];
|
|
1375
|
+
}];
|
|
1397
1376
|
}, {
|
|
1398
1377
|
readonly var: "state.threshold";
|
|
1399
1378
|
}];
|
|
@@ -1401,17 +1380,15 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1401
1380
|
};
|
|
1402
1381
|
readonly effect: {
|
|
1403
1382
|
readonly merge: readonly [{
|
|
1404
|
-
readonly var: "state";
|
|
1405
|
-
* Check if threshold proposal has quorum
|
|
1406
|
-
*/
|
|
1383
|
+
readonly var: "state";
|
|
1407
1384
|
}, {
|
|
1408
1385
|
readonly signatures: {
|
|
1409
|
-
readonly
|
|
1386
|
+
readonly set: readonly [{
|
|
1410
1387
|
readonly var: "state.signatures";
|
|
1411
1388
|
}, {
|
|
1412
1389
|
readonly var: "event.agent";
|
|
1413
1390
|
}, {
|
|
1414
|
-
readonly var: "$
|
|
1391
|
+
readonly var: "$ordinal";
|
|
1415
1392
|
}];
|
|
1416
1393
|
};
|
|
1417
1394
|
}];
|
|
@@ -1423,9 +1400,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1423
1400
|
readonly eventName: "execute";
|
|
1424
1401
|
readonly guard: {
|
|
1425
1402
|
readonly ">=": readonly [{
|
|
1426
|
-
readonly
|
|
1427
|
-
readonly
|
|
1428
|
-
|
|
1403
|
+
readonly length: readonly [{
|
|
1404
|
+
readonly keys: readonly [{
|
|
1405
|
+
readonly var: "state.signatures";
|
|
1406
|
+
}];
|
|
1407
|
+
}];
|
|
1429
1408
|
}, {
|
|
1430
1409
|
readonly var: "state.threshold";
|
|
1431
1410
|
}];
|
|
@@ -1451,18 +1430,23 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1451
1430
|
readonly var: "state.signatures";
|
|
1452
1431
|
};
|
|
1453
1432
|
readonly executedAt: {
|
|
1454
|
-
readonly var: "$
|
|
1433
|
+
readonly var: "$ordinal";
|
|
1455
1434
|
};
|
|
1456
1435
|
}]];
|
|
1457
1436
|
};
|
|
1458
1437
|
readonly proposal: null;
|
|
1459
1438
|
readonly signatures: {};
|
|
1439
|
+
readonly _emit: readonly [{
|
|
1440
|
+
readonly name: "multisig_executed";
|
|
1441
|
+
readonly data: {
|
|
1442
|
+
readonly proposalId: {
|
|
1443
|
+
readonly var: "state.proposal.id";
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
readonly destination: "external";
|
|
1447
|
+
}];
|
|
1460
1448
|
}];
|
|
1461
1449
|
};
|
|
1462
|
-
readonly emits: readonly [{
|
|
1463
|
-
readonly event: "multisig_executed";
|
|
1464
|
-
readonly to: "external";
|
|
1465
|
-
}];
|
|
1466
1450
|
readonly dependencies: readonly [];
|
|
1467
1451
|
}, {
|
|
1468
1452
|
readonly from: "PENDING";
|
|
@@ -1471,17 +1455,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1471
1455
|
readonly guard: {
|
|
1472
1456
|
readonly or: readonly [{
|
|
1473
1457
|
readonly ">": readonly [{
|
|
1474
|
-
readonly var: "$
|
|
1458
|
+
readonly var: "$ordinal";
|
|
1475
1459
|
}, {
|
|
1476
1460
|
readonly var: "state.proposal.expiresAt";
|
|
1477
1461
|
}];
|
|
1478
|
-
},
|
|
1479
|
-
readonly "===": readonly [{
|
|
1480
|
-
readonly var: "event.agent";
|
|
1481
|
-
}, {
|
|
1482
|
-
readonly var: "state.proposal.proposer";
|
|
1483
|
-
}];
|
|
1484
|
-
}];
|
|
1462
|
+
}, import("../../index.js").GuardRule];
|
|
1485
1463
|
};
|
|
1486
1464
|
readonly effect: {
|
|
1487
1465
|
readonly merge: readonly [{
|
|
@@ -1495,7 +1473,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1495
1473
|
readonly var: "state.proposal";
|
|
1496
1474
|
}, {
|
|
1497
1475
|
readonly cancelledAt: {
|
|
1498
|
-
readonly var: "$
|
|
1476
|
+
readonly var: "$ordinal";
|
|
1499
1477
|
};
|
|
1500
1478
|
}];
|
|
1501
1479
|
}]];
|
|
@@ -1509,13 +1487,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1509
1487
|
readonly from: "ACTIVE";
|
|
1510
1488
|
readonly to: "PENDING";
|
|
1511
1489
|
readonly eventName: "propose_add_signer";
|
|
1512
|
-
readonly guard:
|
|
1513
|
-
readonly in: readonly [{
|
|
1514
|
-
readonly var: "event.agent";
|
|
1515
|
-
}, {
|
|
1516
|
-
readonly var: "state.signers";
|
|
1517
|
-
}];
|
|
1518
|
-
};
|
|
1490
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1519
1491
|
readonly effect: {
|
|
1520
1492
|
readonly merge: readonly [{
|
|
1521
1493
|
readonly var: "state";
|
|
@@ -1534,21 +1506,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1534
1506
|
readonly var: "event.agent";
|
|
1535
1507
|
};
|
|
1536
1508
|
readonly proposedAt: {
|
|
1537
|
-
readonly var: "$
|
|
1509
|
+
readonly var: "$ordinal";
|
|
1538
1510
|
};
|
|
1539
1511
|
readonly expiresAt: {
|
|
1540
1512
|
readonly "+": readonly [{
|
|
1541
|
-
readonly var: "$
|
|
1513
|
+
readonly var: "$ordinal";
|
|
1542
1514
|
}, {
|
|
1543
1515
|
readonly var: "state.proposalTTLMs";
|
|
1544
1516
|
}];
|
|
1545
1517
|
};
|
|
1546
1518
|
};
|
|
1547
1519
|
readonly signatures: {
|
|
1548
|
-
readonly
|
|
1520
|
+
readonly set: readonly [{}, {
|
|
1549
1521
|
readonly var: "event.agent";
|
|
1550
1522
|
}, {
|
|
1551
|
-
readonly var: "$
|
|
1523
|
+
readonly var: "$ordinal";
|
|
1552
1524
|
}];
|
|
1553
1525
|
};
|
|
1554
1526
|
}];
|
|
@@ -1559,17 +1531,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1559
1531
|
readonly to: "PENDING";
|
|
1560
1532
|
readonly eventName: "propose_remove_signer";
|
|
1561
1533
|
readonly guard: {
|
|
1562
|
-
readonly and: readonly [{
|
|
1563
|
-
readonly in: readonly [{
|
|
1564
|
-
readonly var: "event.agent";
|
|
1565
|
-
}, {
|
|
1566
|
-
readonly var: "state.signers";
|
|
1567
|
-
}];
|
|
1568
|
-
}, {
|
|
1534
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
1569
1535
|
readonly ">": readonly [{
|
|
1570
|
-
readonly
|
|
1536
|
+
readonly length: readonly [{
|
|
1571
1537
|
readonly var: "state.signers";
|
|
1572
|
-
};
|
|
1538
|
+
}];
|
|
1573
1539
|
}, {
|
|
1574
1540
|
readonly var: "state.threshold";
|
|
1575
1541
|
}];
|
|
@@ -1593,21 +1559,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1593
1559
|
readonly var: "event.agent";
|
|
1594
1560
|
};
|
|
1595
1561
|
readonly proposedAt: {
|
|
1596
|
-
readonly var: "$
|
|
1562
|
+
readonly var: "$ordinal";
|
|
1597
1563
|
};
|
|
1598
1564
|
readonly expiresAt: {
|
|
1599
1565
|
readonly "+": readonly [{
|
|
1600
|
-
readonly var: "$
|
|
1566
|
+
readonly var: "$ordinal";
|
|
1601
1567
|
}, {
|
|
1602
1568
|
readonly var: "state.proposalTTLMs";
|
|
1603
1569
|
}];
|
|
1604
1570
|
};
|
|
1605
1571
|
};
|
|
1606
1572
|
readonly signatures: {
|
|
1607
|
-
readonly
|
|
1573
|
+
readonly set: readonly [{}, {
|
|
1608
1574
|
readonly var: "event.agent";
|
|
1609
1575
|
}, {
|
|
1610
|
-
readonly var: "$
|
|
1576
|
+
readonly var: "$ordinal";
|
|
1611
1577
|
}];
|
|
1612
1578
|
};
|
|
1613
1579
|
}];
|
|
@@ -1618,13 +1584,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1618
1584
|
readonly to: "PENDING";
|
|
1619
1585
|
readonly eventName: "propose_change_threshold";
|
|
1620
1586
|
readonly guard: {
|
|
1621
|
-
readonly and: readonly [{
|
|
1622
|
-
readonly in: readonly [{
|
|
1623
|
-
readonly var: "event.agent";
|
|
1624
|
-
}, {
|
|
1625
|
-
readonly var: "state.signers";
|
|
1626
|
-
}];
|
|
1627
|
-
}, {
|
|
1587
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
1628
1588
|
readonly ">=": readonly [{
|
|
1629
1589
|
readonly var: "event.newThreshold";
|
|
1630
1590
|
}, 1];
|
|
@@ -1632,9 +1592,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1632
1592
|
readonly "<=": readonly [{
|
|
1633
1593
|
readonly var: "event.newThreshold";
|
|
1634
1594
|
}, {
|
|
1635
|
-
readonly
|
|
1595
|
+
readonly length: readonly [{
|
|
1636
1596
|
readonly var: "state.signers";
|
|
1637
|
-
};
|
|
1597
|
+
}];
|
|
1638
1598
|
}];
|
|
1639
1599
|
}];
|
|
1640
1600
|
};
|
|
@@ -1656,21 +1616,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1656
1616
|
readonly var: "event.agent";
|
|
1657
1617
|
};
|
|
1658
1618
|
readonly proposedAt: {
|
|
1659
|
-
readonly var: "$
|
|
1619
|
+
readonly var: "$ordinal";
|
|
1660
1620
|
};
|
|
1661
1621
|
readonly expiresAt: {
|
|
1662
1622
|
readonly "+": readonly [{
|
|
1663
|
-
readonly var: "$
|
|
1623
|
+
readonly var: "$ordinal";
|
|
1664
1624
|
}, {
|
|
1665
1625
|
readonly var: "state.proposalTTLMs";
|
|
1666
1626
|
}];
|
|
1667
1627
|
};
|
|
1668
1628
|
};
|
|
1669
1629
|
readonly signatures: {
|
|
1670
|
-
readonly
|
|
1630
|
+
readonly set: readonly [{}, {
|
|
1671
1631
|
readonly var: "event.agent";
|
|
1672
1632
|
}, {
|
|
1673
|
-
readonly var: "$
|
|
1633
|
+
readonly var: "$ordinal";
|
|
1674
1634
|
}];
|
|
1675
1635
|
};
|
|
1676
1636
|
}];
|
|
@@ -1683,9 +1643,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1683
1643
|
readonly guard: {
|
|
1684
1644
|
readonly and: readonly [{
|
|
1685
1645
|
readonly ">=": readonly [{
|
|
1686
|
-
readonly
|
|
1687
|
-
readonly
|
|
1688
|
-
|
|
1646
|
+
readonly length: readonly [{
|
|
1647
|
+
readonly keys: readonly [{
|
|
1648
|
+
readonly var: "state.signatures";
|
|
1649
|
+
}];
|
|
1650
|
+
}];
|
|
1689
1651
|
}, {
|
|
1690
1652
|
readonly var: "state.threshold";
|
|
1691
1653
|
}];
|
|
@@ -1754,12 +1716,26 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1754
1716
|
readonly to: "DISSOLVED";
|
|
1755
1717
|
readonly eventName: "dissolve";
|
|
1756
1718
|
readonly guard: {
|
|
1757
|
-
readonly
|
|
1758
|
-
readonly
|
|
1719
|
+
readonly and: readonly [{
|
|
1720
|
+
readonly ">": readonly [{
|
|
1721
|
+
readonly length: readonly [{
|
|
1722
|
+
readonly var: "state.signers";
|
|
1723
|
+
}];
|
|
1724
|
+
}, 0];
|
|
1759
1725
|
}, {
|
|
1760
|
-
readonly
|
|
1726
|
+
readonly all: readonly [{
|
|
1761
1727
|
readonly var: "state.signers";
|
|
1762
|
-
}
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly in: readonly [{
|
|
1730
|
+
readonly var: "";
|
|
1731
|
+
}, {
|
|
1732
|
+
readonly map: readonly [{
|
|
1733
|
+
readonly var: "proofs";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly var: "address";
|
|
1736
|
+
}];
|
|
1737
|
+
}];
|
|
1738
|
+
}];
|
|
1763
1739
|
}];
|
|
1764
1740
|
};
|
|
1765
1741
|
readonly effect: {
|
|
@@ -1767,7 +1743,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1767
1743
|
readonly var: "state";
|
|
1768
1744
|
}, {
|
|
1769
1745
|
readonly dissolvedAt: {
|
|
1770
|
-
readonly var: "$
|
|
1746
|
+
readonly var: "$ordinal";
|
|
1771
1747
|
};
|
|
1772
1748
|
readonly status: "DISSOLVED";
|
|
1773
1749
|
}];
|
|
@@ -1859,10 +1835,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1859
1835
|
};
|
|
1860
1836
|
readonly eventSchemas: {
|
|
1861
1837
|
readonly propose: {
|
|
1862
|
-
readonly description: "Submit a proposal (requires >= proposalThreshold tokens)";
|
|
1863
|
-
* Get a governance state machine definition by type.
|
|
1864
|
-
* @param type - 'universal' | 'simple' | 'daoSingle' | 'daoMultisig' | 'daoToken' | 'daoReputation'
|
|
1865
|
-
*/
|
|
1838
|
+
readonly description: "Submit a proposal (requires >= proposalThreshold tokens)";
|
|
1866
1839
|
readonly required: readonly ["proposalId", "title", "description", "actionType", "payload"];
|
|
1867
1840
|
readonly properties: {
|
|
1868
1841
|
readonly agent: {
|
|
@@ -1946,22 +1919,38 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1946
1919
|
readonly ACTIVE: {
|
|
1947
1920
|
readonly id: "ACTIVE";
|
|
1948
1921
|
readonly isFinal: false;
|
|
1949
|
-
readonly metadata:
|
|
1922
|
+
readonly metadata: {
|
|
1923
|
+
readonly label: "Active";
|
|
1924
|
+
readonly description: "DAO is idle and ready to accept a proposal";
|
|
1925
|
+
readonly category: "initial";
|
|
1926
|
+
};
|
|
1950
1927
|
};
|
|
1951
1928
|
readonly VOTING: {
|
|
1952
1929
|
readonly id: "VOTING";
|
|
1953
1930
|
readonly isFinal: false;
|
|
1954
|
-
readonly metadata:
|
|
1931
|
+
readonly metadata: {
|
|
1932
|
+
readonly label: "Voting";
|
|
1933
|
+
readonly description: "Token holders are voting on the active proposal";
|
|
1934
|
+
readonly category: "pending";
|
|
1935
|
+
};
|
|
1955
1936
|
};
|
|
1956
1937
|
readonly QUEUED: {
|
|
1957
1938
|
readonly id: "QUEUED";
|
|
1958
1939
|
readonly isFinal: false;
|
|
1959
|
-
readonly metadata:
|
|
1940
|
+
readonly metadata: {
|
|
1941
|
+
readonly label: "Queued";
|
|
1942
|
+
readonly description: "Passed proposal queued in timelock before execution";
|
|
1943
|
+
readonly category: "pending";
|
|
1944
|
+
};
|
|
1960
1945
|
};
|
|
1961
1946
|
readonly DISSOLVED: {
|
|
1962
1947
|
readonly id: "DISSOLVED";
|
|
1963
1948
|
readonly isFinal: true;
|
|
1964
|
-
readonly metadata:
|
|
1949
|
+
readonly metadata: {
|
|
1950
|
+
readonly label: "Dissolved";
|
|
1951
|
+
readonly description: "Token DAO dissolved (terminal)";
|
|
1952
|
+
readonly category: "terminal";
|
|
1953
|
+
};
|
|
1965
1954
|
};
|
|
1966
1955
|
};
|
|
1967
1956
|
readonly initialState: "ACTIVE";
|
|
@@ -1970,14 +1959,22 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1970
1959
|
readonly to: "VOTING";
|
|
1971
1960
|
readonly eventName: "propose";
|
|
1972
1961
|
readonly guard: {
|
|
1973
|
-
readonly
|
|
1974
|
-
readonly
|
|
1975
|
-
readonly var: "
|
|
1962
|
+
readonly some: readonly [{
|
|
1963
|
+
readonly map: readonly [{
|
|
1964
|
+
readonly var: "proofs";
|
|
1976
1965
|
}, {
|
|
1977
|
-
readonly var: "
|
|
1966
|
+
readonly var: "address";
|
|
1978
1967
|
}];
|
|
1979
1968
|
}, {
|
|
1980
|
-
readonly
|
|
1969
|
+
readonly ">=": readonly [{
|
|
1970
|
+
readonly get: readonly [{
|
|
1971
|
+
readonly var: "state.balances";
|
|
1972
|
+
}, {
|
|
1973
|
+
readonly var: "";
|
|
1974
|
+
}];
|
|
1975
|
+
}, {
|
|
1976
|
+
readonly var: "state.proposalThreshold";
|
|
1977
|
+
}];
|
|
1981
1978
|
}];
|
|
1982
1979
|
};
|
|
1983
1980
|
readonly effect: {
|
|
@@ -1997,9 +1994,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1997
1994
|
readonly actionType: {
|
|
1998
1995
|
readonly var: "event.actionType";
|
|
1999
1996
|
};
|
|
2000
|
-
/**
|
|
2001
|
-
* Check if agent can propose
|
|
2002
|
-
*/
|
|
2003
1997
|
readonly payload: {
|
|
2004
1998
|
readonly var: "event.payload";
|
|
2005
1999
|
};
|
|
@@ -2007,14 +2001,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2007
2001
|
readonly var: "event.agent";
|
|
2008
2002
|
};
|
|
2009
2003
|
readonly proposedAt: {
|
|
2010
|
-
readonly var: "$
|
|
2004
|
+
readonly var: "$ordinal";
|
|
2011
2005
|
};
|
|
2012
2006
|
readonly votingEndsAt: {
|
|
2013
|
-
/**
|
|
2014
|
-
* Check if agent meets threshold for action
|
|
2015
|
-
*/
|
|
2016
2007
|
readonly "+": readonly [{
|
|
2017
|
-
readonly var: "$
|
|
2008
|
+
readonly var: "$ordinal";
|
|
2018
2009
|
}, {
|
|
2019
2010
|
readonly var: "state.votingPeriodMs";
|
|
2020
2011
|
}];
|
|
@@ -2037,9 +2028,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2037
2028
|
readonly to: "VOTING";
|
|
2038
2029
|
readonly eventName: "vote";
|
|
2039
2030
|
readonly guard: {
|
|
2040
|
-
readonly and: readonly [{
|
|
2031
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2041
2032
|
readonly ">": readonly [{
|
|
2042
|
-
readonly
|
|
2033
|
+
readonly get: readonly [{
|
|
2043
2034
|
readonly var: "state.balances";
|
|
2044
2035
|
}, {
|
|
2045
2036
|
readonly var: "event.agent";
|
|
@@ -2047,7 +2038,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2047
2038
|
}, 0];
|
|
2048
2039
|
}, {
|
|
2049
2040
|
readonly "!": readonly [{
|
|
2050
|
-
readonly
|
|
2041
|
+
readonly has: readonly [{
|
|
2051
2042
|
readonly var: "state.votes.voters";
|
|
2052
2043
|
}, {
|
|
2053
2044
|
readonly var: "event.agent";
|
|
@@ -2055,7 +2046,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2055
2046
|
}];
|
|
2056
2047
|
}, {
|
|
2057
2048
|
readonly "<=": readonly [{
|
|
2058
|
-
readonly var: "$
|
|
2049
|
+
readonly var: "$ordinal";
|
|
2059
2050
|
}, {
|
|
2060
2051
|
readonly var: "state.proposal.votingEndsAt";
|
|
2061
2052
|
}];
|
|
@@ -2078,7 +2069,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2078
2069
|
readonly "+": readonly [{
|
|
2079
2070
|
readonly var: "state.votes.for";
|
|
2080
2071
|
}, {
|
|
2081
|
-
readonly
|
|
2072
|
+
readonly get: readonly [{
|
|
2082
2073
|
readonly var: "state.balances";
|
|
2083
2074
|
}, {
|
|
2084
2075
|
readonly var: "event.agent";
|
|
@@ -2094,7 +2085,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2094
2085
|
readonly "+": readonly [{
|
|
2095
2086
|
readonly var: "state.votes.against";
|
|
2096
2087
|
}, {
|
|
2097
|
-
readonly
|
|
2088
|
+
readonly get: readonly [{
|
|
2098
2089
|
readonly var: "state.balances";
|
|
2099
2090
|
}, {
|
|
2100
2091
|
readonly var: "event.agent";
|
|
@@ -2106,7 +2097,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2106
2097
|
readonly "+": readonly [{
|
|
2107
2098
|
readonly var: "state.votes.abstain";
|
|
2108
2099
|
}, {
|
|
2109
|
-
readonly
|
|
2100
|
+
readonly get: readonly [{
|
|
2110
2101
|
readonly var: "state.balances";
|
|
2111
2102
|
}, {
|
|
2112
2103
|
readonly var: "event.agent";
|
|
@@ -2116,7 +2107,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2116
2107
|
}];
|
|
2117
2108
|
}, {
|
|
2118
2109
|
readonly voters: {
|
|
2119
|
-
readonly
|
|
2110
|
+
readonly set: readonly [{
|
|
2120
2111
|
readonly var: "state.votes.voters";
|
|
2121
2112
|
}, {
|
|
2122
2113
|
readonly var: "event.agent";
|
|
@@ -2125,14 +2116,14 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2125
2116
|
readonly var: "event.vote";
|
|
2126
2117
|
};
|
|
2127
2118
|
readonly weight: {
|
|
2128
|
-
readonly
|
|
2119
|
+
readonly get: readonly [{
|
|
2129
2120
|
readonly var: "state.balances";
|
|
2130
2121
|
}, {
|
|
2131
2122
|
readonly var: "event.agent";
|
|
2132
2123
|
}];
|
|
2133
2124
|
};
|
|
2134
2125
|
readonly votedAt: {
|
|
2135
|
-
readonly var: "$
|
|
2126
|
+
readonly var: "$ordinal";
|
|
2136
2127
|
};
|
|
2137
2128
|
}];
|
|
2138
2129
|
};
|
|
@@ -2148,7 +2139,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2148
2139
|
readonly guard: {
|
|
2149
2140
|
readonly and: readonly [{
|
|
2150
2141
|
readonly ">": readonly [{
|
|
2151
|
-
readonly var: "$
|
|
2142
|
+
readonly var: "$ordinal";
|
|
2152
2143
|
}, {
|
|
2153
2144
|
readonly var: "state.proposal.votingEndsAt";
|
|
2154
2145
|
}];
|
|
@@ -2181,11 +2172,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2181
2172
|
readonly var: "state.proposal";
|
|
2182
2173
|
}, {
|
|
2183
2174
|
readonly queuedAt: {
|
|
2184
|
-
readonly var: "$
|
|
2175
|
+
readonly var: "$ordinal";
|
|
2185
2176
|
};
|
|
2186
2177
|
readonly executableAt: {
|
|
2187
2178
|
readonly "+": readonly [{
|
|
2188
|
-
readonly var: "$
|
|
2179
|
+
readonly var: "$ordinal";
|
|
2189
2180
|
}, {
|
|
2190
2181
|
readonly var: "state.timelockMs";
|
|
2191
2182
|
}];
|
|
@@ -2201,7 +2192,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2201
2192
|
readonly eventName: "execute";
|
|
2202
2193
|
readonly guard: {
|
|
2203
2194
|
readonly ">=": readonly [{
|
|
2204
|
-
readonly var: "$
|
|
2195
|
+
readonly var: "$ordinal";
|
|
2205
2196
|
}, {
|
|
2206
2197
|
readonly var: "state.proposal.executableAt";
|
|
2207
2198
|
}];
|
|
@@ -2221,19 +2212,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2221
2212
|
readonly var: "state.votes";
|
|
2222
2213
|
};
|
|
2223
2214
|
readonly executedAt: {
|
|
2224
|
-
readonly var: "$
|
|
2215
|
+
readonly var: "$ordinal";
|
|
2225
2216
|
};
|
|
2226
2217
|
}];
|
|
2227
2218
|
}]];
|
|
2228
2219
|
};
|
|
2229
2220
|
readonly proposal: null;
|
|
2230
2221
|
readonly votes: null;
|
|
2222
|
+
readonly _emit: readonly [{
|
|
2223
|
+
readonly name: "proposal_executed";
|
|
2224
|
+
readonly data: {
|
|
2225
|
+
readonly proposalId: {
|
|
2226
|
+
readonly var: "state.proposal.id";
|
|
2227
|
+
};
|
|
2228
|
+
};
|
|
2229
|
+
readonly destination: "external";
|
|
2230
|
+
}];
|
|
2231
2231
|
}];
|
|
2232
2232
|
};
|
|
2233
|
-
readonly emits: readonly [{
|
|
2234
|
-
readonly event: "proposal_executed";
|
|
2235
|
-
readonly to: "external";
|
|
2236
|
-
}];
|
|
2237
2233
|
readonly dependencies: readonly [];
|
|
2238
2234
|
}, {
|
|
2239
2235
|
readonly from: "VOTING";
|
|
@@ -2242,7 +2238,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2242
2238
|
readonly guard: {
|
|
2243
2239
|
readonly and: readonly [{
|
|
2244
2240
|
readonly ">": readonly [{
|
|
2245
|
-
readonly var: "$
|
|
2241
|
+
readonly var: "$ordinal";
|
|
2246
2242
|
}, {
|
|
2247
2243
|
readonly var: "state.proposal.votingEndsAt";
|
|
2248
2244
|
}];
|
|
@@ -2283,7 +2279,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2283
2279
|
readonly var: "state.votes";
|
|
2284
2280
|
};
|
|
2285
2281
|
readonly rejectedAt: {
|
|
2286
|
-
readonly var: "$
|
|
2282
|
+
readonly var: "$ordinal";
|
|
2287
2283
|
};
|
|
2288
2284
|
}];
|
|
2289
2285
|
}]];
|
|
@@ -2297,13 +2293,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2297
2293
|
readonly from: "QUEUED";
|
|
2298
2294
|
readonly to: "ACTIVE";
|
|
2299
2295
|
readonly eventName: "cancel";
|
|
2300
|
-
readonly guard:
|
|
2301
|
-
readonly "===": readonly [{
|
|
2302
|
-
readonly var: "event.agent";
|
|
2303
|
-
}, {
|
|
2304
|
-
readonly var: "state.proposal.proposer";
|
|
2305
|
-
}];
|
|
2306
|
-
};
|
|
2296
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
2307
2297
|
readonly effect: {
|
|
2308
2298
|
readonly merge: readonly [{
|
|
2309
2299
|
readonly var: "state";
|
|
@@ -2316,7 +2306,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2316
2306
|
readonly var: "state.proposal";
|
|
2317
2307
|
}, {
|
|
2318
2308
|
readonly cancelledAt: {
|
|
2319
|
-
readonly var: "$
|
|
2309
|
+
readonly var: "$ordinal";
|
|
2320
2310
|
};
|
|
2321
2311
|
}];
|
|
2322
2312
|
}]];
|
|
@@ -2331,20 +2321,22 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2331
2321
|
readonly to: "ACTIVE";
|
|
2332
2322
|
readonly eventName: "delegate";
|
|
2333
2323
|
readonly guard: {
|
|
2334
|
-
readonly
|
|
2335
|
-
readonly
|
|
2336
|
-
readonly
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2324
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2325
|
+
readonly ">": readonly [{
|
|
2326
|
+
readonly get: readonly [{
|
|
2327
|
+
readonly var: "state.balances";
|
|
2328
|
+
}, {
|
|
2329
|
+
readonly var: "event.agent";
|
|
2330
|
+
}];
|
|
2331
|
+
}, 0];
|
|
2332
|
+
}];
|
|
2341
2333
|
};
|
|
2342
2334
|
readonly effect: {
|
|
2343
2335
|
readonly merge: readonly [{
|
|
2344
2336
|
readonly var: "state";
|
|
2345
2337
|
}, {
|
|
2346
2338
|
readonly delegations: {
|
|
2347
|
-
readonly
|
|
2339
|
+
readonly set: readonly [{
|
|
2348
2340
|
readonly var: "state.delegations";
|
|
2349
2341
|
}, {
|
|
2350
2342
|
readonly var: "event.agent";
|
|
@@ -2360,10 +2352,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2360
2352
|
readonly to: "ACTIVE";
|
|
2361
2353
|
readonly eventName: "undelegate";
|
|
2362
2354
|
readonly guard: {
|
|
2363
|
-
readonly
|
|
2364
|
-
readonly
|
|
2365
|
-
|
|
2366
|
-
|
|
2355
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2356
|
+
readonly has: readonly [{
|
|
2357
|
+
readonly var: "state.delegations";
|
|
2358
|
+
}, {
|
|
2359
|
+
readonly var: "event.agent";
|
|
2360
|
+
}];
|
|
2367
2361
|
}];
|
|
2368
2362
|
};
|
|
2369
2363
|
readonly effect: {
|
|
@@ -2371,7 +2365,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2371
2365
|
readonly var: "state";
|
|
2372
2366
|
}, {
|
|
2373
2367
|
readonly delegations: {
|
|
2374
|
-
readonly
|
|
2368
|
+
readonly unset: readonly [{
|
|
2375
2369
|
readonly var: "state.delegations";
|
|
2376
2370
|
}, {
|
|
2377
2371
|
readonly var: "event.agent";
|
|
@@ -2548,9 +2542,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2548
2542
|
readonly type: "number";
|
|
2549
2543
|
};
|
|
2550
2544
|
readonly voteThreshold: {
|
|
2551
|
-
/**
|
|
2552
|
-
* Get effective voting power (includes delegation)
|
|
2553
|
-
*/
|
|
2554
2545
|
readonly type: "number";
|
|
2555
2546
|
};
|
|
2556
2547
|
readonly proposeThreshold: {
|
|
@@ -2563,17 +2554,29 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2563
2554
|
readonly ACTIVE: {
|
|
2564
2555
|
readonly id: "ACTIVE";
|
|
2565
2556
|
readonly isFinal: false;
|
|
2566
|
-
readonly metadata:
|
|
2557
|
+
readonly metadata: {
|
|
2558
|
+
readonly label: "Active";
|
|
2559
|
+
readonly description: "DAO is idle and ready to accept a proposal";
|
|
2560
|
+
readonly category: "initial";
|
|
2561
|
+
};
|
|
2567
2562
|
};
|
|
2568
2563
|
readonly VOTING: {
|
|
2569
2564
|
readonly id: "VOTING";
|
|
2570
2565
|
readonly isFinal: false;
|
|
2571
|
-
readonly metadata:
|
|
2566
|
+
readonly metadata: {
|
|
2567
|
+
readonly label: "Voting";
|
|
2568
|
+
readonly description: "Members vote with reputation-weighted power";
|
|
2569
|
+
readonly category: "pending";
|
|
2570
|
+
};
|
|
2572
2571
|
};
|
|
2573
2572
|
readonly DISSOLVED: {
|
|
2574
2573
|
readonly id: "DISSOLVED";
|
|
2575
2574
|
readonly isFinal: true;
|
|
2576
|
-
readonly metadata:
|
|
2575
|
+
readonly metadata: {
|
|
2576
|
+
readonly label: "Dissolved";
|
|
2577
|
+
readonly description: "Reputation DAO dissolved (terminal)";
|
|
2578
|
+
readonly category: "terminal";
|
|
2579
|
+
};
|
|
2577
2580
|
};
|
|
2578
2581
|
};
|
|
2579
2582
|
readonly initialState: "ACTIVE";
|
|
@@ -2612,11 +2615,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2612
2615
|
readonly var: "event.agent";
|
|
2613
2616
|
};
|
|
2614
2617
|
readonly proposedAt: {
|
|
2615
|
-
readonly var: "$
|
|
2618
|
+
readonly var: "$ordinal";
|
|
2616
2619
|
};
|
|
2617
2620
|
readonly deadline: {
|
|
2618
2621
|
readonly "+": readonly [{
|
|
2619
|
-
readonly var: "$
|
|
2622
|
+
readonly var: "$ordinal";
|
|
2620
2623
|
}, {
|
|
2621
2624
|
readonly var: "state.votingPeriodMs";
|
|
2622
2625
|
}];
|
|
@@ -2642,32 +2645,14 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2642
2645
|
readonly var: "state.voteThreshold";
|
|
2643
2646
|
}];
|
|
2644
2647
|
}, {
|
|
2645
|
-
readonly "!": readonly [
|
|
2646
|
-
readonly in: readonly [{
|
|
2647
|
-
readonly var: "event.agent";
|
|
2648
|
-
}, {
|
|
2649
|
-
readonly var: "state.votes.for";
|
|
2650
|
-
}];
|
|
2651
|
-
}];
|
|
2648
|
+
readonly "!": readonly [import("../../index.js").GuardRule];
|
|
2652
2649
|
}, {
|
|
2653
|
-
readonly "!": readonly [
|
|
2654
|
-
readonly in: readonly [{
|
|
2655
|
-
readonly var: "event.agent";
|
|
2656
|
-
}, {
|
|
2657
|
-
readonly var: "state.votes.against";
|
|
2658
|
-
}];
|
|
2659
|
-
}];
|
|
2650
|
+
readonly "!": readonly [import("../../index.js").GuardRule];
|
|
2660
2651
|
}, {
|
|
2661
|
-
readonly "!": readonly [
|
|
2662
|
-
readonly in: readonly [{
|
|
2663
|
-
readonly var: "event.agent";
|
|
2664
|
-
}, {
|
|
2665
|
-
readonly var: "state.votes.abstain";
|
|
2666
|
-
}];
|
|
2667
|
-
}];
|
|
2652
|
+
readonly "!": readonly [import("../../index.js").GuardRule];
|
|
2668
2653
|
}, {
|
|
2669
2654
|
readonly "<=": readonly [{
|
|
2670
|
-
readonly var: "$
|
|
2655
|
+
readonly var: "$ordinal";
|
|
2671
2656
|
}, {
|
|
2672
2657
|
readonly var: "state.proposal.deadline";
|
|
2673
2658
|
}];
|
|
@@ -2734,30 +2719,30 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2734
2719
|
readonly guard: {
|
|
2735
2720
|
readonly and: readonly [{
|
|
2736
2721
|
readonly ">": readonly [{
|
|
2737
|
-
readonly var: "$
|
|
2722
|
+
readonly var: "$ordinal";
|
|
2738
2723
|
}, {
|
|
2739
2724
|
readonly var: "state.proposal.deadline";
|
|
2740
2725
|
}];
|
|
2741
2726
|
}, {
|
|
2742
2727
|
readonly ">": readonly [{
|
|
2743
|
-
readonly
|
|
2728
|
+
readonly length: readonly [{
|
|
2744
2729
|
readonly var: "state.votes.for";
|
|
2745
|
-
};
|
|
2730
|
+
}];
|
|
2746
2731
|
}, {
|
|
2747
|
-
readonly
|
|
2732
|
+
readonly length: readonly [{
|
|
2748
2733
|
readonly var: "state.votes.against";
|
|
2749
|
-
};
|
|
2734
|
+
}];
|
|
2750
2735
|
}];
|
|
2751
2736
|
}, {
|
|
2752
2737
|
readonly ">=": readonly [{
|
|
2753
2738
|
readonly "+": readonly [{
|
|
2754
|
-
readonly
|
|
2739
|
+
readonly length: readonly [{
|
|
2755
2740
|
readonly var: "state.votes.for";
|
|
2756
|
-
};
|
|
2741
|
+
}];
|
|
2757
2742
|
}, {
|
|
2758
|
-
readonly
|
|
2743
|
+
readonly length: readonly [{
|
|
2759
2744
|
readonly var: "state.votes.against";
|
|
2760
|
-
};
|
|
2745
|
+
}];
|
|
2761
2746
|
}];
|
|
2762
2747
|
}, {
|
|
2763
2748
|
readonly var: "state.quorum";
|
|
@@ -2780,24 +2765,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2780
2765
|
readonly var: "state.votes";
|
|
2781
2766
|
};
|
|
2782
2767
|
readonly at: {
|
|
2783
|
-
readonly var: "$
|
|
2768
|
+
readonly var: "$ordinal";
|
|
2784
2769
|
};
|
|
2785
2770
|
}]];
|
|
2786
2771
|
};
|
|
2787
2772
|
readonly proposal: null;
|
|
2788
2773
|
readonly votes: null;
|
|
2774
|
+
readonly _emit: readonly [{
|
|
2775
|
+
readonly name: "proposal_executed";
|
|
2776
|
+
readonly data: {
|
|
2777
|
+
readonly action: "increase";
|
|
2778
|
+
readonly agents: {
|
|
2779
|
+
readonly var: "state.votes.for";
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2782
|
+
readonly destination: "Reputation";
|
|
2783
|
+
}];
|
|
2789
2784
|
}];
|
|
2790
2785
|
};
|
|
2791
|
-
readonly emits: readonly [{
|
|
2792
|
-
readonly event: "proposal_executed";
|
|
2793
|
-
readonly to: "Reputation";
|
|
2794
|
-
readonly payload: {
|
|
2795
|
-
readonly action: "increase";
|
|
2796
|
-
readonly agents: {
|
|
2797
|
-
readonly var: "state.votes.for";
|
|
2798
|
-
};
|
|
2799
|
-
};
|
|
2800
|
-
}];
|
|
2801
2786
|
readonly dependencies: readonly [];
|
|
2802
2787
|
}, {
|
|
2803
2788
|
readonly from: "VOTING";
|
|
@@ -2806,31 +2791,31 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2806
2791
|
readonly guard: {
|
|
2807
2792
|
readonly and: readonly [{
|
|
2808
2793
|
readonly ">": readonly [{
|
|
2809
|
-
readonly var: "$
|
|
2794
|
+
readonly var: "$ordinal";
|
|
2810
2795
|
}, {
|
|
2811
2796
|
readonly var: "state.proposal.deadline";
|
|
2812
2797
|
}];
|
|
2813
2798
|
}, {
|
|
2814
2799
|
readonly or: readonly [{
|
|
2815
2800
|
readonly "<=": readonly [{
|
|
2816
|
-
readonly
|
|
2801
|
+
readonly length: readonly [{
|
|
2817
2802
|
readonly var: "state.votes.for";
|
|
2818
|
-
};
|
|
2803
|
+
}];
|
|
2819
2804
|
}, {
|
|
2820
|
-
readonly
|
|
2805
|
+
readonly length: readonly [{
|
|
2821
2806
|
readonly var: "state.votes.against";
|
|
2822
|
-
};
|
|
2807
|
+
}];
|
|
2823
2808
|
}];
|
|
2824
2809
|
}, {
|
|
2825
2810
|
readonly "<": readonly [{
|
|
2826
2811
|
readonly "+": readonly [{
|
|
2827
|
-
readonly
|
|
2812
|
+
readonly length: readonly [{
|
|
2828
2813
|
readonly var: "state.votes.for";
|
|
2829
|
-
};
|
|
2814
|
+
}];
|
|
2830
2815
|
}, {
|
|
2831
|
-
readonly
|
|
2816
|
+
readonly length: readonly [{
|
|
2832
2817
|
readonly var: "state.votes.against";
|
|
2833
|
-
};
|
|
2818
|
+
}];
|
|
2834
2819
|
}];
|
|
2835
2820
|
}, {
|
|
2836
2821
|
readonly var: "state.quorum";
|
|
@@ -2854,7 +2839,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2854
2839
|
readonly var: "state.votes";
|
|
2855
2840
|
};
|
|
2856
2841
|
readonly at: {
|
|
2857
|
-
readonly var: "$
|
|
2842
|
+
readonly var: "$ordinal";
|
|
2858
2843
|
};
|
|
2859
2844
|
}]];
|
|
2860
2845
|
};
|
|
@@ -2868,7 +2853,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2868
2853
|
readonly to: "ACTIVE";
|
|
2869
2854
|
readonly eventName: "join";
|
|
2870
2855
|
readonly guard: {
|
|
2871
|
-
readonly and: readonly [{
|
|
2856
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2872
2857
|
readonly ">=": readonly [{
|
|
2873
2858
|
readonly var: "event.agentReputation";
|
|
2874
2859
|
}, {
|
|
@@ -2896,12 +2881,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2896
2881
|
}]];
|
|
2897
2882
|
};
|
|
2898
2883
|
readonly memberJoinedAt: {
|
|
2899
|
-
readonly
|
|
2884
|
+
readonly set: readonly [{
|
|
2900
2885
|
readonly var: "state.memberJoinedAt";
|
|
2901
2886
|
}, {
|
|
2902
2887
|
readonly var: "event.agent";
|
|
2903
2888
|
}, {
|
|
2904
|
-
readonly var: "$
|
|
2889
|
+
readonly var: "$ordinal";
|
|
2905
2890
|
}];
|
|
2906
2891
|
};
|
|
2907
2892
|
}];
|
|
@@ -2911,13 +2896,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2911
2896
|
readonly from: "ACTIVE";
|
|
2912
2897
|
readonly to: "ACTIVE";
|
|
2913
2898
|
readonly eventName: "leave";
|
|
2914
|
-
readonly guard:
|
|
2915
|
-
readonly in: readonly [{
|
|
2916
|
-
readonly var: "event.agent";
|
|
2917
|
-
}, {
|
|
2918
|
-
readonly var: "state.members";
|
|
2919
|
-
}];
|
|
2920
|
-
};
|
|
2899
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
2921
2900
|
readonly effect: {
|
|
2922
2901
|
readonly merge: readonly [{
|
|
2923
2902
|
readonly var: "state";
|
|
@@ -2972,11 +2951,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2972
2951
|
readonly var: "event.agent";
|
|
2973
2952
|
};
|
|
2974
2953
|
readonly proposedAt: {
|
|
2975
|
-
readonly var: "$
|
|
2954
|
+
readonly var: "$ordinal";
|
|
2976
2955
|
};
|
|
2977
2956
|
readonly deadline: {
|
|
2978
2957
|
readonly "+": readonly [{
|
|
2979
|
-
readonly var: "$
|
|
2958
|
+
readonly var: "$ordinal";
|
|
2980
2959
|
}, {
|
|
2981
2960
|
readonly var: "state.votingPeriodMs";
|
|
2982
2961
|
}];
|