@ottochain/sdk 2.3.0 → 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 +35 -40
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +80 -37
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +4 -4
- 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 +58 -40
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +46 -40
- package/dist/cjs/apps/governance/state-machines/dao-single.js +28 -11
- package/dist/cjs/apps/governance/state-machines/dao-token.js +67 -41
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +93 -61
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +2 -2
- 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 +3 -3
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +25 -22
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +288 -0
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +3 -3
- 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 +14 -13
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +29 -24
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +24 -26
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +80 -53
- package/dist/cjs/apps/markets/state-machines/market-universal.js +5 -5
- 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 +4 -4
- package/dist/cjs/generated/ottochain/v1/fiber.js +4 -4
- package/dist/cjs/index.js +41 -7
- package/dist/cjs/openapi.js +2 -0
- package/dist/cjs/ottochain/drop-nulls.js +1 -2
- package/dist/cjs/ottochain/genesis-manifest.js +11 -11
- package/dist/cjs/ottochain/index.js +23 -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 +16 -2
- 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 +35 -40
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +80 -37
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +4 -4
- 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 +58 -40
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +46 -40
- package/dist/esm/apps/governance/state-machines/dao-single.js +28 -11
- package/dist/esm/apps/governance/state-machines/dao-token.js +67 -41
- package/dist/esm/apps/governance/state-machines/governance-simple.js +93 -61
- package/dist/esm/apps/governance/state-machines/governance-universal.js +2 -2
- 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 +3 -3
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +25 -22
- package/dist/esm/apps/identity/state-machines/identity-registry.js +285 -0
- package/dist/esm/apps/identity/state-machines/identity-universal.js +3 -3
- 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 +14 -13
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +29 -24
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +24 -26
- package/dist/esm/apps/markets/state-machines/market-prediction.js +80 -53
- package/dist/esm/apps/markets/state-machines/market-universal.js +5 -5
- 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/index.js +21 -2
- package/dist/esm/openapi.js +1 -0
- package/dist/esm/ottochain/genesis-manifest.js +9 -9
- package/dist/esm/ottochain/index.js +2 -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 +15 -1
- 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 +69 -209
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +20 -95
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +46 -112
- 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 +296 -398
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +77 -92
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +42 -66
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +25 -47
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +60 -49
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +87 -117
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +2 -2
- package/dist/types/apps/identity/constants.d.ts +32 -4
- package/dist/types/apps/identity/index.d.ts +378 -94
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +16 -87
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +379 -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 +108 -203
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +13 -37
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +16 -34
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +17 -43
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +51 -72
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +5 -5
- 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/index.d.ts +6 -2
- package/dist/types/openapi.d.ts +22 -0
- package/dist/types/ottochain/genesis-manifest.d.ts +5 -5
- package/dist/types/ottochain/index.d.ts +5 -6
- 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 +335 -30
- 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 +1 -2
- 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 +27 -13
- 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
|
@@ -140,7 +140,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
140
140
|
readonly var: "event.proposal";
|
|
141
141
|
};
|
|
142
142
|
readonly proposedAt: {
|
|
143
|
-
readonly var: "$
|
|
143
|
+
readonly var: "$ordinal";
|
|
144
144
|
};
|
|
145
145
|
readonly votes: {};
|
|
146
146
|
}];
|
|
@@ -191,9 +191,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
191
191
|
readonly var: "event.result";
|
|
192
192
|
};
|
|
193
193
|
readonly proposal: null;
|
|
194
|
-
/**
|
|
195
|
-
* Get remaining signatures needed
|
|
196
|
-
*/
|
|
197
194
|
readonly votes: null;
|
|
198
195
|
}];
|
|
199
196
|
};
|
|
@@ -211,7 +208,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
211
208
|
}, {
|
|
212
209
|
readonly status: "DISSOLVED";
|
|
213
210
|
readonly dissolvedAt: {
|
|
214
|
-
readonly var: "$
|
|
211
|
+
readonly var: "$ordinal";
|
|
215
212
|
};
|
|
216
213
|
}];
|
|
217
214
|
};
|
|
@@ -349,13 +346,8 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
349
346
|
};
|
|
350
347
|
};
|
|
351
348
|
readonly finalize: {
|
|
352
|
-
readonly description: "Finalize the voting period";
|
|
353
|
-
readonly
|
|
354
|
-
readonly properties: {
|
|
355
|
-
readonly forCount: {
|
|
356
|
-
readonly type: "number";
|
|
357
|
-
};
|
|
358
|
-
};
|
|
349
|
+
readonly description: "Finalize the voting period (for-count derived from recorded ballots)";
|
|
350
|
+
readonly properties: {};
|
|
359
351
|
};
|
|
360
352
|
readonly file_dispute: {
|
|
361
353
|
readonly description: "File a dispute against a member";
|
|
@@ -380,9 +372,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
380
372
|
readonly required: readonly ["content"];
|
|
381
373
|
readonly properties: {
|
|
382
374
|
readonly agent: {
|
|
383
|
-
/**
|
|
384
|
-
* Get remaining signatures needed
|
|
385
|
-
*/
|
|
386
375
|
readonly type: "address";
|
|
387
376
|
};
|
|
388
377
|
readonly content: {
|
|
@@ -403,17 +392,10 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
403
392
|
};
|
|
404
393
|
};
|
|
405
394
|
readonly dissolve: {
|
|
406
|
-
readonly description: "Dissolve the organization (requires
|
|
407
|
-
readonly
|
|
408
|
-
readonly properties: {
|
|
409
|
-
readonly approvalCount: {
|
|
410
|
-
readonly type: "number";
|
|
411
|
-
};
|
|
412
|
-
};
|
|
395
|
+
readonly description: "Dissolve the organization (requires every member to sign this op — verified unanimity)";
|
|
396
|
+
readonly properties: {};
|
|
413
397
|
};
|
|
414
|
-
};
|
|
415
|
-
* Get effective voting power (includes delegation)
|
|
416
|
-
*/
|
|
398
|
+
};
|
|
417
399
|
readonly states: {
|
|
418
400
|
readonly ACTIVE: {
|
|
419
401
|
readonly id: "ACTIVE";
|
|
@@ -457,19 +439,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
457
439
|
readonly from: "ACTIVE";
|
|
458
440
|
readonly to: "ACTIVE";
|
|
459
441
|
readonly eventName: "add_member";
|
|
460
|
-
readonly guard:
|
|
461
|
-
readonly in: readonly [{
|
|
462
|
-
readonly var: "event.agent";
|
|
463
|
-
}, {
|
|
464
|
-
readonly var: "state.admins";
|
|
465
|
-
}];
|
|
466
|
-
};
|
|
442
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
467
443
|
readonly effect: {
|
|
468
444
|
readonly merge: readonly [{
|
|
469
445
|
readonly var: "state";
|
|
470
446
|
}, {
|
|
471
447
|
readonly members: {
|
|
472
|
-
readonly
|
|
448
|
+
readonly set: readonly [{
|
|
473
449
|
readonly var: "state.members";
|
|
474
450
|
}, {
|
|
475
451
|
readonly var: "event.member";
|
|
@@ -478,7 +454,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
478
454
|
readonly var: "event.role";
|
|
479
455
|
};
|
|
480
456
|
readonly addedAt: {
|
|
481
|
-
readonly var: "$
|
|
457
|
+
readonly var: "$ordinal";
|
|
482
458
|
};
|
|
483
459
|
}];
|
|
484
460
|
};
|
|
@@ -489,19 +465,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
489
465
|
readonly from: "ACTIVE";
|
|
490
466
|
readonly to: "ACTIVE";
|
|
491
467
|
readonly eventName: "remove_member";
|
|
492
|
-
readonly guard:
|
|
493
|
-
readonly in: readonly [{
|
|
494
|
-
readonly var: "event.agent";
|
|
495
|
-
}, {
|
|
496
|
-
readonly var: "state.admins";
|
|
497
|
-
}];
|
|
498
|
-
};
|
|
468
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
499
469
|
readonly effect: {
|
|
500
470
|
readonly merge: readonly [{
|
|
501
471
|
readonly var: "state";
|
|
502
472
|
}, {
|
|
503
473
|
readonly members: {
|
|
504
|
-
readonly
|
|
474
|
+
readonly unset: readonly [{
|
|
505
475
|
readonly var: "state.members";
|
|
506
476
|
}, {
|
|
507
477
|
readonly var: "event.member";
|
|
@@ -514,13 +484,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
514
484
|
readonly from: "ACTIVE";
|
|
515
485
|
readonly to: "VOTING";
|
|
516
486
|
readonly eventName: "propose";
|
|
517
|
-
readonly guard:
|
|
518
|
-
readonly getKey: readonly [{
|
|
519
|
-
readonly var: "state.members";
|
|
520
|
-
}, {
|
|
521
|
-
readonly var: "event.agent";
|
|
522
|
-
}];
|
|
523
|
-
};
|
|
487
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
524
488
|
readonly effect: {
|
|
525
489
|
readonly merge: readonly [{
|
|
526
490
|
readonly var: "state";
|
|
@@ -539,11 +503,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
539
503
|
readonly var: "event.agent";
|
|
540
504
|
};
|
|
541
505
|
readonly proposedAt: {
|
|
542
|
-
readonly var: "$
|
|
506
|
+
readonly var: "$ordinal";
|
|
543
507
|
};
|
|
544
508
|
readonly deadline: {
|
|
545
509
|
readonly "+": readonly [{
|
|
546
|
-
readonly var: "$
|
|
510
|
+
readonly var: "$ordinal";
|
|
547
511
|
}, {
|
|
548
512
|
readonly var: "state.votingPeriodMs";
|
|
549
513
|
}];
|
|
@@ -558,15 +522,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
558
522
|
readonly to: "VOTING";
|
|
559
523
|
readonly eventName: "vote";
|
|
560
524
|
readonly guard: {
|
|
561
|
-
readonly and: readonly [{
|
|
562
|
-
readonly getKey: readonly [{
|
|
563
|
-
readonly var: "state.members";
|
|
564
|
-
}, {
|
|
565
|
-
readonly var: "event.agent";
|
|
566
|
-
}];
|
|
567
|
-
}, {
|
|
525
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
568
526
|
readonly "!": readonly [{
|
|
569
|
-
readonly
|
|
527
|
+
readonly has: readonly [{
|
|
570
528
|
readonly var: "state.votes";
|
|
571
529
|
}, {
|
|
572
530
|
readonly var: "event.agent";
|
|
@@ -579,7 +537,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
579
537
|
readonly var: "state";
|
|
580
538
|
}, {
|
|
581
539
|
readonly votes: {
|
|
582
|
-
readonly
|
|
540
|
+
readonly set: readonly [{
|
|
583
541
|
readonly var: "state.votes";
|
|
584
542
|
}, {
|
|
585
543
|
readonly var: "event.agent";
|
|
@@ -588,7 +546,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
588
546
|
readonly var: "event.vote";
|
|
589
547
|
};
|
|
590
548
|
readonly votedAt: {
|
|
591
|
-
readonly var: "$
|
|
549
|
+
readonly var: "$ordinal";
|
|
592
550
|
};
|
|
593
551
|
}];
|
|
594
552
|
};
|
|
@@ -601,12 +559,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
601
559
|
readonly eventName: "finalize";
|
|
602
560
|
readonly guard: {
|
|
603
561
|
readonly ">=": readonly [{
|
|
604
|
-
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
|
+
}];
|
|
605
573
|
}, {
|
|
606
574
|
readonly "*": readonly [{
|
|
607
|
-
readonly
|
|
608
|
-
readonly
|
|
609
|
-
|
|
575
|
+
readonly length: readonly [{
|
|
576
|
+
readonly keys: readonly [{
|
|
577
|
+
readonly var: "state.members";
|
|
578
|
+
}];
|
|
579
|
+
}];
|
|
610
580
|
}, {
|
|
611
581
|
readonly var: "state.passingThreshold";
|
|
612
582
|
}];
|
|
@@ -633,7 +603,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
633
603
|
};
|
|
634
604
|
readonly outcome: "passed";
|
|
635
605
|
readonly finalizedAt: {
|
|
636
|
-
readonly var: "$
|
|
606
|
+
readonly var: "$ordinal";
|
|
637
607
|
};
|
|
638
608
|
}]];
|
|
639
609
|
};
|
|
@@ -648,12 +618,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
648
618
|
readonly eventName: "finalize";
|
|
649
619
|
readonly guard: {
|
|
650
620
|
readonly "<": readonly [{
|
|
651
|
-
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
|
+
}];
|
|
652
632
|
}, {
|
|
653
633
|
readonly "*": readonly [{
|
|
654
|
-
readonly
|
|
655
|
-
readonly
|
|
656
|
-
|
|
634
|
+
readonly length: readonly [{
|
|
635
|
+
readonly keys: readonly [{
|
|
636
|
+
readonly var: "state.members";
|
|
637
|
+
}];
|
|
638
|
+
}];
|
|
657
639
|
}, {
|
|
658
640
|
readonly var: "state.passingThreshold";
|
|
659
641
|
}];
|
|
@@ -673,7 +655,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
673
655
|
};
|
|
674
656
|
readonly outcome: "failed";
|
|
675
657
|
readonly finalizedAt: {
|
|
676
|
-
readonly var: "$
|
|
658
|
+
readonly var: "$ordinal";
|
|
677
659
|
};
|
|
678
660
|
}]];
|
|
679
661
|
};
|
|
@@ -686,13 +668,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
686
668
|
readonly from: "ACTIVE";
|
|
687
669
|
readonly to: "DISPUTE";
|
|
688
670
|
readonly eventName: "file_dispute";
|
|
689
|
-
readonly guard:
|
|
690
|
-
readonly getKey: readonly [{
|
|
691
|
-
readonly var: "state.members";
|
|
692
|
-
}, {
|
|
693
|
-
readonly var: "event.agent";
|
|
694
|
-
}];
|
|
695
|
-
};
|
|
671
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
696
672
|
readonly effect: {
|
|
697
673
|
readonly merge: readonly [{
|
|
698
674
|
readonly var: "state";
|
|
@@ -711,7 +687,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
711
687
|
readonly var: "event.claim";
|
|
712
688
|
};
|
|
713
689
|
readonly filedAt: {
|
|
714
|
-
readonly var: "$
|
|
690
|
+
readonly var: "$ordinal";
|
|
715
691
|
};
|
|
716
692
|
readonly evidence: readonly [];
|
|
717
693
|
};
|
|
@@ -723,21 +699,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
723
699
|
readonly from: "DISPUTE";
|
|
724
700
|
readonly to: "DISPUTE";
|
|
725
701
|
readonly eventName: "submit_evidence";
|
|
726
|
-
readonly guard:
|
|
727
|
-
readonly or: readonly [{
|
|
728
|
-
readonly "===": readonly [{
|
|
729
|
-
readonly var: "event.agent";
|
|
730
|
-
}, {
|
|
731
|
-
readonly var: "state.dispute.plaintiff";
|
|
732
|
-
}];
|
|
733
|
-
}, {
|
|
734
|
-
readonly "===": readonly [{
|
|
735
|
-
readonly var: "event.agent";
|
|
736
|
-
}, {
|
|
737
|
-
readonly var: "state.dispute.defendant";
|
|
738
|
-
}];
|
|
739
|
-
}];
|
|
740
|
-
};
|
|
702
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
741
703
|
readonly effect: {
|
|
742
704
|
readonly merge: readonly [{
|
|
743
705
|
readonly var: "state";
|
|
@@ -757,7 +719,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
757
719
|
readonly var: "event.content";
|
|
758
720
|
};
|
|
759
721
|
readonly at: {
|
|
760
|
-
readonly var: "$
|
|
722
|
+
readonly var: "$ordinal";
|
|
761
723
|
};
|
|
762
724
|
}]];
|
|
763
725
|
};
|
|
@@ -771,27 +733,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
771
733
|
readonly to: "DISPUTE";
|
|
772
734
|
readonly eventName: "vote";
|
|
773
735
|
readonly guard: {
|
|
774
|
-
readonly and: readonly [{
|
|
775
|
-
readonly getKey: readonly [{
|
|
776
|
-
readonly var: "state.members";
|
|
777
|
-
}, {
|
|
778
|
-
readonly var: "event.agent";
|
|
779
|
-
}];
|
|
780
|
-
}, {
|
|
781
|
-
readonly "!==": readonly [{
|
|
782
|
-
readonly var: "event.agent";
|
|
783
|
-
}, {
|
|
784
|
-
readonly var: "state.dispute.plaintiff";
|
|
785
|
-
}];
|
|
786
|
-
}, {
|
|
787
|
-
readonly "!==": readonly [{
|
|
788
|
-
readonly var: "event.agent";
|
|
789
|
-
}, {
|
|
790
|
-
readonly var: "state.dispute.defendant";
|
|
791
|
-
}];
|
|
792
|
-
}, {
|
|
736
|
+
readonly and: readonly [import("../../index.js").GuardRule, import("../../index.js").GuardRule, import("../../index.js").GuardRule, {
|
|
793
737
|
readonly "!": readonly [{
|
|
794
|
-
readonly
|
|
738
|
+
readonly has: readonly [{
|
|
795
739
|
readonly var: "state.votes";
|
|
796
740
|
}, {
|
|
797
741
|
readonly var: "event.agent";
|
|
@@ -804,7 +748,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
804
748
|
readonly var: "state";
|
|
805
749
|
}, {
|
|
806
750
|
readonly votes: {
|
|
807
|
-
readonly
|
|
751
|
+
readonly set: readonly [{
|
|
808
752
|
readonly var: "state.votes";
|
|
809
753
|
}, {
|
|
810
754
|
readonly var: "event.agent";
|
|
@@ -813,7 +757,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
813
757
|
readonly var: "event.ruling";
|
|
814
758
|
};
|
|
815
759
|
readonly votedAt: {
|
|
816
|
-
readonly var: "$
|
|
760
|
+
readonly var: "$ordinal";
|
|
817
761
|
};
|
|
818
762
|
}];
|
|
819
763
|
};
|
|
@@ -826,9 +770,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
826
770
|
readonly eventName: "resolve";
|
|
827
771
|
readonly guard: {
|
|
828
772
|
readonly ">=": readonly [{
|
|
829
|
-
readonly
|
|
830
|
-
readonly
|
|
831
|
-
|
|
773
|
+
readonly length: readonly [{
|
|
774
|
+
readonly keys: readonly [{
|
|
775
|
+
readonly var: "state.votes";
|
|
776
|
+
}];
|
|
777
|
+
}];
|
|
832
778
|
}, {
|
|
833
779
|
readonly var: "state.disputeQuorum";
|
|
834
780
|
}];
|
|
@@ -852,7 +798,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
852
798
|
readonly var: "event.remedy";
|
|
853
799
|
};
|
|
854
800
|
readonly resolvedAt: {
|
|
855
|
-
readonly var: "$
|
|
801
|
+
readonly var: "$ordinal";
|
|
856
802
|
};
|
|
857
803
|
}]];
|
|
858
804
|
};
|
|
@@ -866,14 +812,30 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
866
812
|
readonly to: "DISSOLVED";
|
|
867
813
|
readonly eventName: "dissolve";
|
|
868
814
|
readonly guard: {
|
|
869
|
-
readonly
|
|
870
|
-
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];
|
|
871
823
|
}, {
|
|
872
|
-
readonly
|
|
873
|
-
readonly
|
|
824
|
+
readonly all: readonly [{
|
|
825
|
+
readonly keys: readonly [{
|
|
874
826
|
readonly var: "state.members";
|
|
875
|
-
};
|
|
876
|
-
},
|
|
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
|
+
}];
|
|
877
839
|
}];
|
|
878
840
|
};
|
|
879
841
|
readonly effect: {
|
|
@@ -881,7 +843,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
881
843
|
readonly var: "state";
|
|
882
844
|
}, {
|
|
883
845
|
readonly dissolvedAt: {
|
|
884
|
-
readonly var: "$
|
|
846
|
+
readonly var: "$ordinal";
|
|
885
847
|
};
|
|
886
848
|
}];
|
|
887
849
|
};
|
|
@@ -1027,13 +989,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1027
989
|
readonly from: "ACTIVE";
|
|
1028
990
|
readonly to: "ACTIVE";
|
|
1029
991
|
readonly eventName: "execute";
|
|
1030
|
-
readonly guard:
|
|
1031
|
-
readonly "===": readonly [{
|
|
1032
|
-
readonly var: "event.agent";
|
|
1033
|
-
}, {
|
|
1034
|
-
readonly var: "state.owner";
|
|
1035
|
-
}];
|
|
1036
|
-
};
|
|
992
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1037
993
|
readonly effect: {
|
|
1038
994
|
readonly merge: readonly [{
|
|
1039
995
|
readonly var: "state";
|
|
@@ -1052,28 +1008,27 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1052
1008
|
readonly var: "event.payload";
|
|
1053
1009
|
};
|
|
1054
1010
|
readonly executedAt: {
|
|
1055
|
-
readonly var: "$
|
|
1011
|
+
readonly var: "$ordinal";
|
|
1056
1012
|
};
|
|
1057
1013
|
}]];
|
|
1058
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
|
+
}];
|
|
1059
1024
|
}];
|
|
1060
1025
|
};
|
|
1061
|
-
readonly emits: readonly [{
|
|
1062
|
-
readonly event: "action_executed";
|
|
1063
|
-
readonly to: "external";
|
|
1064
|
-
}];
|
|
1065
1026
|
readonly dependencies: readonly [];
|
|
1066
1027
|
}, {
|
|
1067
1028
|
readonly from: "ACTIVE";
|
|
1068
1029
|
readonly to: "TRANSFERRING";
|
|
1069
1030
|
readonly eventName: "transfer_ownership";
|
|
1070
|
-
readonly guard:
|
|
1071
|
-
readonly "===": readonly [{
|
|
1072
|
-
readonly var: "event.agent";
|
|
1073
|
-
}, {
|
|
1074
|
-
readonly var: "state.owner";
|
|
1075
|
-
}];
|
|
1076
|
-
};
|
|
1031
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1077
1032
|
readonly effect: {
|
|
1078
1033
|
readonly merge: readonly [{
|
|
1079
1034
|
readonly var: "state";
|
|
@@ -1082,7 +1037,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1082
1037
|
readonly var: "event.newOwner";
|
|
1083
1038
|
};
|
|
1084
1039
|
readonly transferInitiatedAt: {
|
|
1085
|
-
readonly var: "$
|
|
1040
|
+
readonly var: "$ordinal";
|
|
1086
1041
|
};
|
|
1087
1042
|
}];
|
|
1088
1043
|
};
|
|
@@ -1091,13 +1046,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1091
1046
|
readonly from: "TRANSFERRING";
|
|
1092
1047
|
readonly to: "ACTIVE";
|
|
1093
1048
|
readonly eventName: "accept_ownership";
|
|
1094
|
-
readonly guard:
|
|
1095
|
-
readonly "===": readonly [{
|
|
1096
|
-
readonly var: "event.agent";
|
|
1097
|
-
}, {
|
|
1098
|
-
readonly var: "state.pendingOwner";
|
|
1099
|
-
}];
|
|
1100
|
-
};
|
|
1049
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1101
1050
|
readonly effect: {
|
|
1102
1051
|
readonly merge: readonly [{
|
|
1103
1052
|
readonly var: "state";
|
|
@@ -1112,37 +1061,31 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1112
1061
|
readonly var: "state.ownershipHistory";
|
|
1113
1062
|
}, readonly [{
|
|
1114
1063
|
readonly from: {
|
|
1115
|
-
/**
|
|
1116
|
-
* Check if agent meets threshold for action
|
|
1117
|
-
*/
|
|
1118
1064
|
readonly var: "state.owner";
|
|
1119
1065
|
};
|
|
1120
1066
|
readonly to: {
|
|
1121
1067
|
readonly var: "state.pendingOwner";
|
|
1122
1068
|
};
|
|
1123
1069
|
readonly at: {
|
|
1124
|
-
readonly var: "$
|
|
1070
|
+
readonly var: "$ordinal";
|
|
1125
1071
|
};
|
|
1126
1072
|
}]];
|
|
1127
1073
|
};
|
|
1074
|
+
readonly _emit: readonly [{
|
|
1075
|
+
readonly name: "ownership_transferred";
|
|
1076
|
+
readonly data: {
|
|
1077
|
+
readonly var: "event";
|
|
1078
|
+
};
|
|
1079
|
+
readonly destination: "Identity";
|
|
1080
|
+
}];
|
|
1128
1081
|
}];
|
|
1129
1082
|
};
|
|
1130
|
-
readonly emits: readonly [{
|
|
1131
|
-
readonly event: "ownership_transferred";
|
|
1132
|
-
readonly to: "Identity";
|
|
1133
|
-
}];
|
|
1134
1083
|
readonly dependencies: readonly [];
|
|
1135
1084
|
}, {
|
|
1136
1085
|
readonly from: "TRANSFERRING";
|
|
1137
1086
|
readonly to: "ACTIVE";
|
|
1138
1087
|
readonly eventName: "cancel_transfer";
|
|
1139
|
-
readonly guard:
|
|
1140
|
-
readonly "===": readonly [{
|
|
1141
|
-
readonly var: "event.agent";
|
|
1142
|
-
}, {
|
|
1143
|
-
readonly var: "state.owner";
|
|
1144
|
-
}];
|
|
1145
|
-
};
|
|
1088
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1146
1089
|
readonly effect: {
|
|
1147
1090
|
readonly merge: readonly [{
|
|
1148
1091
|
readonly var: "state";
|
|
@@ -1156,19 +1099,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1156
1099
|
readonly from: "ACTIVE";
|
|
1157
1100
|
readonly to: "DISSOLVED";
|
|
1158
1101
|
readonly eventName: "dissolve";
|
|
1159
|
-
readonly guard:
|
|
1160
|
-
readonly "===": readonly [{
|
|
1161
|
-
readonly var: "event.agent";
|
|
1162
|
-
}, {
|
|
1163
|
-
readonly var: "state.owner";
|
|
1164
|
-
}];
|
|
1165
|
-
};
|
|
1102
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1166
1103
|
readonly effect: {
|
|
1167
1104
|
readonly merge: readonly [{
|
|
1168
1105
|
readonly var: "state";
|
|
1169
1106
|
}, {
|
|
1170
1107
|
readonly dissolvedAt: {
|
|
1171
|
-
readonly var: "$
|
|
1108
|
+
readonly var: "$ordinal";
|
|
1172
1109
|
};
|
|
1173
1110
|
readonly status: "DISSOLVED";
|
|
1174
1111
|
}];
|
|
@@ -1339,12 +1276,8 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1339
1276
|
};
|
|
1340
1277
|
};
|
|
1341
1278
|
readonly dissolve: {
|
|
1342
|
-
readonly description: "Dissolve the DAO (requires
|
|
1343
|
-
readonly properties: {
|
|
1344
|
-
readonly signatureCount: {
|
|
1345
|
-
readonly type: "number";
|
|
1346
|
-
};
|
|
1347
|
-
};
|
|
1279
|
+
readonly description: "Dissolve the DAO (requires every signer to sign this op — verified unanimity)";
|
|
1280
|
+
readonly properties: {};
|
|
1348
1281
|
};
|
|
1349
1282
|
};
|
|
1350
1283
|
readonly states: {
|
|
@@ -1381,13 +1314,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1381
1314
|
readonly from: "ACTIVE";
|
|
1382
1315
|
readonly to: "PENDING";
|
|
1383
1316
|
readonly eventName: "propose";
|
|
1384
|
-
readonly guard:
|
|
1385
|
-
readonly in: readonly [{
|
|
1386
|
-
readonly var: "event.agent";
|
|
1387
|
-
}, {
|
|
1388
|
-
readonly var: "state.signers";
|
|
1389
|
-
}];
|
|
1390
|
-
};
|
|
1317
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1391
1318
|
readonly effect: {
|
|
1392
1319
|
readonly merge: readonly [{
|
|
1393
1320
|
readonly var: "state";
|
|
@@ -1406,21 +1333,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1406
1333
|
readonly var: "event.agent";
|
|
1407
1334
|
};
|
|
1408
1335
|
readonly proposedAt: {
|
|
1409
|
-
readonly var: "$
|
|
1336
|
+
readonly var: "$ordinal";
|
|
1410
1337
|
};
|
|
1411
1338
|
readonly expiresAt: {
|
|
1412
1339
|
readonly "+": readonly [{
|
|
1413
|
-
readonly var: "$
|
|
1340
|
+
readonly var: "$ordinal";
|
|
1414
1341
|
}, {
|
|
1415
1342
|
readonly var: "state.proposalTTLMs";
|
|
1416
1343
|
}];
|
|
1417
1344
|
};
|
|
1418
1345
|
};
|
|
1419
1346
|
readonly signatures: {
|
|
1420
|
-
readonly
|
|
1347
|
+
readonly set: readonly [{}, {
|
|
1421
1348
|
readonly var: "event.agent";
|
|
1422
1349
|
}, {
|
|
1423
|
-
readonly var: "$
|
|
1350
|
+
readonly var: "$ordinal";
|
|
1424
1351
|
}];
|
|
1425
1352
|
};
|
|
1426
1353
|
}];
|
|
@@ -1431,15 +1358,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1431
1358
|
readonly to: "PENDING";
|
|
1432
1359
|
readonly eventName: "sign";
|
|
1433
1360
|
readonly guard: {
|
|
1434
|
-
readonly and: readonly [{
|
|
1435
|
-
readonly in: readonly [{
|
|
1436
|
-
readonly var: "event.agent";
|
|
1437
|
-
}, {
|
|
1438
|
-
readonly var: "state.signers";
|
|
1439
|
-
}];
|
|
1440
|
-
}, {
|
|
1361
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
1441
1362
|
readonly "!": readonly [{
|
|
1442
|
-
readonly
|
|
1363
|
+
readonly has: readonly [{
|
|
1443
1364
|
readonly var: "state.signatures";
|
|
1444
1365
|
}, {
|
|
1445
1366
|
readonly var: "event.agent";
|
|
@@ -1447,9 +1368,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1447
1368
|
}];
|
|
1448
1369
|
}, {
|
|
1449
1370
|
readonly "<": readonly [{
|
|
1450
|
-
readonly
|
|
1451
|
-
readonly
|
|
1452
|
-
|
|
1371
|
+
readonly length: readonly [{
|
|
1372
|
+
readonly keys: readonly [{
|
|
1373
|
+
readonly var: "state.signatures";
|
|
1374
|
+
}];
|
|
1375
|
+
}];
|
|
1453
1376
|
}, {
|
|
1454
1377
|
readonly var: "state.threshold";
|
|
1455
1378
|
}];
|
|
@@ -1460,12 +1383,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1460
1383
|
readonly var: "state";
|
|
1461
1384
|
}, {
|
|
1462
1385
|
readonly signatures: {
|
|
1463
|
-
readonly
|
|
1386
|
+
readonly set: readonly [{
|
|
1464
1387
|
readonly var: "state.signatures";
|
|
1465
1388
|
}, {
|
|
1466
1389
|
readonly var: "event.agent";
|
|
1467
1390
|
}, {
|
|
1468
|
-
readonly var: "$
|
|
1391
|
+
readonly var: "$ordinal";
|
|
1469
1392
|
}];
|
|
1470
1393
|
};
|
|
1471
1394
|
}];
|
|
@@ -1477,9 +1400,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1477
1400
|
readonly eventName: "execute";
|
|
1478
1401
|
readonly guard: {
|
|
1479
1402
|
readonly ">=": readonly [{
|
|
1480
|
-
readonly
|
|
1481
|
-
readonly
|
|
1482
|
-
|
|
1403
|
+
readonly length: readonly [{
|
|
1404
|
+
readonly keys: readonly [{
|
|
1405
|
+
readonly var: "state.signatures";
|
|
1406
|
+
}];
|
|
1407
|
+
}];
|
|
1483
1408
|
}, {
|
|
1484
1409
|
readonly var: "state.threshold";
|
|
1485
1410
|
}];
|
|
@@ -1505,18 +1430,23 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1505
1430
|
readonly var: "state.signatures";
|
|
1506
1431
|
};
|
|
1507
1432
|
readonly executedAt: {
|
|
1508
|
-
readonly var: "$
|
|
1433
|
+
readonly var: "$ordinal";
|
|
1509
1434
|
};
|
|
1510
1435
|
}]];
|
|
1511
1436
|
};
|
|
1512
1437
|
readonly proposal: null;
|
|
1513
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
|
+
}];
|
|
1514
1448
|
}];
|
|
1515
1449
|
};
|
|
1516
|
-
readonly emits: readonly [{
|
|
1517
|
-
readonly event: "multisig_executed";
|
|
1518
|
-
readonly to: "external";
|
|
1519
|
-
}];
|
|
1520
1450
|
readonly dependencies: readonly [];
|
|
1521
1451
|
}, {
|
|
1522
1452
|
readonly from: "PENDING";
|
|
@@ -1525,17 +1455,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1525
1455
|
readonly guard: {
|
|
1526
1456
|
readonly or: readonly [{
|
|
1527
1457
|
readonly ">": readonly [{
|
|
1528
|
-
readonly var: "$
|
|
1458
|
+
readonly var: "$ordinal";
|
|
1529
1459
|
}, {
|
|
1530
1460
|
readonly var: "state.proposal.expiresAt";
|
|
1531
1461
|
}];
|
|
1532
|
-
},
|
|
1533
|
-
readonly "===": readonly [{
|
|
1534
|
-
readonly var: "event.agent";
|
|
1535
|
-
}, {
|
|
1536
|
-
readonly var: "state.proposal.proposer";
|
|
1537
|
-
}];
|
|
1538
|
-
}];
|
|
1462
|
+
}, import("../../index.js").GuardRule];
|
|
1539
1463
|
};
|
|
1540
1464
|
readonly effect: {
|
|
1541
1465
|
readonly merge: readonly [{
|
|
@@ -1549,7 +1473,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1549
1473
|
readonly var: "state.proposal";
|
|
1550
1474
|
}, {
|
|
1551
1475
|
readonly cancelledAt: {
|
|
1552
|
-
readonly var: "$
|
|
1476
|
+
readonly var: "$ordinal";
|
|
1553
1477
|
};
|
|
1554
1478
|
}];
|
|
1555
1479
|
}]];
|
|
@@ -1563,13 +1487,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1563
1487
|
readonly from: "ACTIVE";
|
|
1564
1488
|
readonly to: "PENDING";
|
|
1565
1489
|
readonly eventName: "propose_add_signer";
|
|
1566
|
-
readonly guard:
|
|
1567
|
-
readonly in: readonly [{
|
|
1568
|
-
readonly var: "event.agent";
|
|
1569
|
-
}, {
|
|
1570
|
-
readonly var: "state.signers";
|
|
1571
|
-
}];
|
|
1572
|
-
};
|
|
1490
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
1573
1491
|
readonly effect: {
|
|
1574
1492
|
readonly merge: readonly [{
|
|
1575
1493
|
readonly var: "state";
|
|
@@ -1588,21 +1506,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1588
1506
|
readonly var: "event.agent";
|
|
1589
1507
|
};
|
|
1590
1508
|
readonly proposedAt: {
|
|
1591
|
-
readonly var: "$
|
|
1509
|
+
readonly var: "$ordinal";
|
|
1592
1510
|
};
|
|
1593
1511
|
readonly expiresAt: {
|
|
1594
1512
|
readonly "+": readonly [{
|
|
1595
|
-
readonly var: "$
|
|
1513
|
+
readonly var: "$ordinal";
|
|
1596
1514
|
}, {
|
|
1597
1515
|
readonly var: "state.proposalTTLMs";
|
|
1598
1516
|
}];
|
|
1599
1517
|
};
|
|
1600
1518
|
};
|
|
1601
1519
|
readonly signatures: {
|
|
1602
|
-
readonly
|
|
1520
|
+
readonly set: readonly [{}, {
|
|
1603
1521
|
readonly var: "event.agent";
|
|
1604
1522
|
}, {
|
|
1605
|
-
readonly var: "$
|
|
1523
|
+
readonly var: "$ordinal";
|
|
1606
1524
|
}];
|
|
1607
1525
|
};
|
|
1608
1526
|
}];
|
|
@@ -1613,17 +1531,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1613
1531
|
readonly to: "PENDING";
|
|
1614
1532
|
readonly eventName: "propose_remove_signer";
|
|
1615
1533
|
readonly guard: {
|
|
1616
|
-
readonly and: readonly [{
|
|
1617
|
-
readonly in: readonly [{
|
|
1618
|
-
readonly var: "event.agent";
|
|
1619
|
-
}, {
|
|
1620
|
-
readonly var: "state.signers";
|
|
1621
|
-
}];
|
|
1622
|
-
}, {
|
|
1534
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
1623
1535
|
readonly ">": readonly [{
|
|
1624
|
-
readonly
|
|
1536
|
+
readonly length: readonly [{
|
|
1625
1537
|
readonly var: "state.signers";
|
|
1626
|
-
};
|
|
1538
|
+
}];
|
|
1627
1539
|
}, {
|
|
1628
1540
|
readonly var: "state.threshold";
|
|
1629
1541
|
}];
|
|
@@ -1647,21 +1559,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1647
1559
|
readonly var: "event.agent";
|
|
1648
1560
|
};
|
|
1649
1561
|
readonly proposedAt: {
|
|
1650
|
-
readonly var: "$
|
|
1562
|
+
readonly var: "$ordinal";
|
|
1651
1563
|
};
|
|
1652
1564
|
readonly expiresAt: {
|
|
1653
1565
|
readonly "+": readonly [{
|
|
1654
|
-
readonly var: "$
|
|
1566
|
+
readonly var: "$ordinal";
|
|
1655
1567
|
}, {
|
|
1656
1568
|
readonly var: "state.proposalTTLMs";
|
|
1657
1569
|
}];
|
|
1658
1570
|
};
|
|
1659
1571
|
};
|
|
1660
1572
|
readonly signatures: {
|
|
1661
|
-
readonly
|
|
1573
|
+
readonly set: readonly [{}, {
|
|
1662
1574
|
readonly var: "event.agent";
|
|
1663
1575
|
}, {
|
|
1664
|
-
readonly var: "$
|
|
1576
|
+
readonly var: "$ordinal";
|
|
1665
1577
|
}];
|
|
1666
1578
|
};
|
|
1667
1579
|
}];
|
|
@@ -1672,13 +1584,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1672
1584
|
readonly to: "PENDING";
|
|
1673
1585
|
readonly eventName: "propose_change_threshold";
|
|
1674
1586
|
readonly guard: {
|
|
1675
|
-
readonly and: readonly [{
|
|
1676
|
-
readonly in: readonly [{
|
|
1677
|
-
readonly var: "event.agent";
|
|
1678
|
-
}, {
|
|
1679
|
-
readonly var: "state.signers";
|
|
1680
|
-
}];
|
|
1681
|
-
}, {
|
|
1587
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
1682
1588
|
readonly ">=": readonly [{
|
|
1683
1589
|
readonly var: "event.newThreshold";
|
|
1684
1590
|
}, 1];
|
|
@@ -1686,9 +1592,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1686
1592
|
readonly "<=": readonly [{
|
|
1687
1593
|
readonly var: "event.newThreshold";
|
|
1688
1594
|
}, {
|
|
1689
|
-
readonly
|
|
1595
|
+
readonly length: readonly [{
|
|
1690
1596
|
readonly var: "state.signers";
|
|
1691
|
-
};
|
|
1597
|
+
}];
|
|
1692
1598
|
}];
|
|
1693
1599
|
}];
|
|
1694
1600
|
};
|
|
@@ -1710,21 +1616,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1710
1616
|
readonly var: "event.agent";
|
|
1711
1617
|
};
|
|
1712
1618
|
readonly proposedAt: {
|
|
1713
|
-
readonly var: "$
|
|
1619
|
+
readonly var: "$ordinal";
|
|
1714
1620
|
};
|
|
1715
1621
|
readonly expiresAt: {
|
|
1716
1622
|
readonly "+": readonly [{
|
|
1717
|
-
readonly var: "$
|
|
1623
|
+
readonly var: "$ordinal";
|
|
1718
1624
|
}, {
|
|
1719
1625
|
readonly var: "state.proposalTTLMs";
|
|
1720
1626
|
}];
|
|
1721
1627
|
};
|
|
1722
1628
|
};
|
|
1723
1629
|
readonly signatures: {
|
|
1724
|
-
readonly
|
|
1630
|
+
readonly set: readonly [{}, {
|
|
1725
1631
|
readonly var: "event.agent";
|
|
1726
1632
|
}, {
|
|
1727
|
-
readonly var: "$
|
|
1633
|
+
readonly var: "$ordinal";
|
|
1728
1634
|
}];
|
|
1729
1635
|
};
|
|
1730
1636
|
}];
|
|
@@ -1737,9 +1643,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1737
1643
|
readonly guard: {
|
|
1738
1644
|
readonly and: readonly [{
|
|
1739
1645
|
readonly ">=": readonly [{
|
|
1740
|
-
readonly
|
|
1741
|
-
readonly
|
|
1742
|
-
|
|
1646
|
+
readonly length: readonly [{
|
|
1647
|
+
readonly keys: readonly [{
|
|
1648
|
+
readonly var: "state.signatures";
|
|
1649
|
+
}];
|
|
1650
|
+
}];
|
|
1743
1651
|
}, {
|
|
1744
1652
|
readonly var: "state.threshold";
|
|
1745
1653
|
}];
|
|
@@ -1808,12 +1716,26 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1808
1716
|
readonly to: "DISSOLVED";
|
|
1809
1717
|
readonly eventName: "dissolve";
|
|
1810
1718
|
readonly guard: {
|
|
1811
|
-
readonly
|
|
1812
|
-
readonly
|
|
1719
|
+
readonly and: readonly [{
|
|
1720
|
+
readonly ">": readonly [{
|
|
1721
|
+
readonly length: readonly [{
|
|
1722
|
+
readonly var: "state.signers";
|
|
1723
|
+
}];
|
|
1724
|
+
}, 0];
|
|
1813
1725
|
}, {
|
|
1814
|
-
readonly
|
|
1726
|
+
readonly all: readonly [{
|
|
1815
1727
|
readonly var: "state.signers";
|
|
1816
|
-
}
|
|
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
|
+
}];
|
|
1817
1739
|
}];
|
|
1818
1740
|
};
|
|
1819
1741
|
readonly effect: {
|
|
@@ -1821,7 +1743,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1821
1743
|
readonly var: "state";
|
|
1822
1744
|
}, {
|
|
1823
1745
|
readonly dissolvedAt: {
|
|
1824
|
-
readonly var: "$
|
|
1746
|
+
readonly var: "$ordinal";
|
|
1825
1747
|
};
|
|
1826
1748
|
readonly status: "DISSOLVED";
|
|
1827
1749
|
}];
|
|
@@ -1913,10 +1835,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
1913
1835
|
};
|
|
1914
1836
|
readonly eventSchemas: {
|
|
1915
1837
|
readonly propose: {
|
|
1916
|
-
readonly description: "Submit a proposal (requires >= proposalThreshold tokens)";
|
|
1917
|
-
* Get a governance state machine definition by type.
|
|
1918
|
-
* @param type - 'universal' | 'simple' | 'daoSingle' | 'daoMultisig' | 'daoToken' | 'daoReputation'
|
|
1919
|
-
*/
|
|
1838
|
+
readonly description: "Submit a proposal (requires >= proposalThreshold tokens)";
|
|
1920
1839
|
readonly required: readonly ["proposalId", "title", "description", "actionType", "payload"];
|
|
1921
1840
|
readonly properties: {
|
|
1922
1841
|
readonly agent: {
|
|
@@ -2040,14 +1959,22 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2040
1959
|
readonly to: "VOTING";
|
|
2041
1960
|
readonly eventName: "propose";
|
|
2042
1961
|
readonly guard: {
|
|
2043
|
-
readonly
|
|
2044
|
-
readonly
|
|
2045
|
-
readonly var: "
|
|
1962
|
+
readonly some: readonly [{
|
|
1963
|
+
readonly map: readonly [{
|
|
1964
|
+
readonly var: "proofs";
|
|
2046
1965
|
}, {
|
|
2047
|
-
readonly var: "
|
|
1966
|
+
readonly var: "address";
|
|
2048
1967
|
}];
|
|
2049
1968
|
}, {
|
|
2050
|
-
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
|
+
}];
|
|
2051
1978
|
}];
|
|
2052
1979
|
};
|
|
2053
1980
|
readonly effect: {
|
|
@@ -2074,13 +2001,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2074
2001
|
readonly var: "event.agent";
|
|
2075
2002
|
};
|
|
2076
2003
|
readonly proposedAt: {
|
|
2077
|
-
readonly var: "$
|
|
2078
|
-
};
|
|
2079
|
-
* Check if threshold proposal has quorum
|
|
2080
|
-
*/
|
|
2004
|
+
readonly var: "$ordinal";
|
|
2005
|
+
};
|
|
2081
2006
|
readonly votingEndsAt: {
|
|
2082
2007
|
readonly "+": readonly [{
|
|
2083
|
-
readonly var: "$
|
|
2008
|
+
readonly var: "$ordinal";
|
|
2084
2009
|
}, {
|
|
2085
2010
|
readonly var: "state.votingPeriodMs";
|
|
2086
2011
|
}];
|
|
@@ -2103,9 +2028,9 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2103
2028
|
readonly to: "VOTING";
|
|
2104
2029
|
readonly eventName: "vote";
|
|
2105
2030
|
readonly guard: {
|
|
2106
|
-
readonly and: readonly [{
|
|
2031
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2107
2032
|
readonly ">": readonly [{
|
|
2108
|
-
readonly
|
|
2033
|
+
readonly get: readonly [{
|
|
2109
2034
|
readonly var: "state.balances";
|
|
2110
2035
|
}, {
|
|
2111
2036
|
readonly var: "event.agent";
|
|
@@ -2113,7 +2038,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2113
2038
|
}, 0];
|
|
2114
2039
|
}, {
|
|
2115
2040
|
readonly "!": readonly [{
|
|
2116
|
-
readonly
|
|
2041
|
+
readonly has: readonly [{
|
|
2117
2042
|
readonly var: "state.votes.voters";
|
|
2118
2043
|
}, {
|
|
2119
2044
|
readonly var: "event.agent";
|
|
@@ -2121,7 +2046,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2121
2046
|
}];
|
|
2122
2047
|
}, {
|
|
2123
2048
|
readonly "<=": readonly [{
|
|
2124
|
-
readonly var: "$
|
|
2049
|
+
readonly var: "$ordinal";
|
|
2125
2050
|
}, {
|
|
2126
2051
|
readonly var: "state.proposal.votingEndsAt";
|
|
2127
2052
|
}];
|
|
@@ -2144,7 +2069,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2144
2069
|
readonly "+": readonly [{
|
|
2145
2070
|
readonly var: "state.votes.for";
|
|
2146
2071
|
}, {
|
|
2147
|
-
readonly
|
|
2072
|
+
readonly get: readonly [{
|
|
2148
2073
|
readonly var: "state.balances";
|
|
2149
2074
|
}, {
|
|
2150
2075
|
readonly var: "event.agent";
|
|
@@ -2160,7 +2085,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2160
2085
|
readonly "+": readonly [{
|
|
2161
2086
|
readonly var: "state.votes.against";
|
|
2162
2087
|
}, {
|
|
2163
|
-
readonly
|
|
2088
|
+
readonly get: readonly [{
|
|
2164
2089
|
readonly var: "state.balances";
|
|
2165
2090
|
}, {
|
|
2166
2091
|
readonly var: "event.agent";
|
|
@@ -2172,7 +2097,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2172
2097
|
readonly "+": readonly [{
|
|
2173
2098
|
readonly var: "state.votes.abstain";
|
|
2174
2099
|
}, {
|
|
2175
|
-
readonly
|
|
2100
|
+
readonly get: readonly [{
|
|
2176
2101
|
readonly var: "state.balances";
|
|
2177
2102
|
}, {
|
|
2178
2103
|
readonly var: "event.agent";
|
|
@@ -2182,7 +2107,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2182
2107
|
}];
|
|
2183
2108
|
}, {
|
|
2184
2109
|
readonly voters: {
|
|
2185
|
-
readonly
|
|
2110
|
+
readonly set: readonly [{
|
|
2186
2111
|
readonly var: "state.votes.voters";
|
|
2187
2112
|
}, {
|
|
2188
2113
|
readonly var: "event.agent";
|
|
@@ -2191,14 +2116,14 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2191
2116
|
readonly var: "event.vote";
|
|
2192
2117
|
};
|
|
2193
2118
|
readonly weight: {
|
|
2194
|
-
readonly
|
|
2119
|
+
readonly get: readonly [{
|
|
2195
2120
|
readonly var: "state.balances";
|
|
2196
2121
|
}, {
|
|
2197
2122
|
readonly var: "event.agent";
|
|
2198
2123
|
}];
|
|
2199
2124
|
};
|
|
2200
2125
|
readonly votedAt: {
|
|
2201
|
-
readonly var: "$
|
|
2126
|
+
readonly var: "$ordinal";
|
|
2202
2127
|
};
|
|
2203
2128
|
}];
|
|
2204
2129
|
};
|
|
@@ -2214,7 +2139,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2214
2139
|
readonly guard: {
|
|
2215
2140
|
readonly and: readonly [{
|
|
2216
2141
|
readonly ">": readonly [{
|
|
2217
|
-
readonly var: "$
|
|
2142
|
+
readonly var: "$ordinal";
|
|
2218
2143
|
}, {
|
|
2219
2144
|
readonly var: "state.proposal.votingEndsAt";
|
|
2220
2145
|
}];
|
|
@@ -2247,11 +2172,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2247
2172
|
readonly var: "state.proposal";
|
|
2248
2173
|
}, {
|
|
2249
2174
|
readonly queuedAt: {
|
|
2250
|
-
readonly var: "$
|
|
2175
|
+
readonly var: "$ordinal";
|
|
2251
2176
|
};
|
|
2252
2177
|
readonly executableAt: {
|
|
2253
2178
|
readonly "+": readonly [{
|
|
2254
|
-
readonly var: "$
|
|
2179
|
+
readonly var: "$ordinal";
|
|
2255
2180
|
}, {
|
|
2256
2181
|
readonly var: "state.timelockMs";
|
|
2257
2182
|
}];
|
|
@@ -2267,7 +2192,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2267
2192
|
readonly eventName: "execute";
|
|
2268
2193
|
readonly guard: {
|
|
2269
2194
|
readonly ">=": readonly [{
|
|
2270
|
-
readonly var: "$
|
|
2195
|
+
readonly var: "$ordinal";
|
|
2271
2196
|
}, {
|
|
2272
2197
|
readonly var: "state.proposal.executableAt";
|
|
2273
2198
|
}];
|
|
@@ -2287,19 +2212,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2287
2212
|
readonly var: "state.votes";
|
|
2288
2213
|
};
|
|
2289
2214
|
readonly executedAt: {
|
|
2290
|
-
readonly var: "$
|
|
2215
|
+
readonly var: "$ordinal";
|
|
2291
2216
|
};
|
|
2292
2217
|
}];
|
|
2293
2218
|
}]];
|
|
2294
2219
|
};
|
|
2295
2220
|
readonly proposal: null;
|
|
2296
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
|
+
}];
|
|
2297
2231
|
}];
|
|
2298
2232
|
};
|
|
2299
|
-
readonly emits: readonly [{
|
|
2300
|
-
readonly event: "proposal_executed";
|
|
2301
|
-
readonly to: "external";
|
|
2302
|
-
}];
|
|
2303
2233
|
readonly dependencies: readonly [];
|
|
2304
2234
|
}, {
|
|
2305
2235
|
readonly from: "VOTING";
|
|
@@ -2308,7 +2238,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2308
2238
|
readonly guard: {
|
|
2309
2239
|
readonly and: readonly [{
|
|
2310
2240
|
readonly ">": readonly [{
|
|
2311
|
-
readonly var: "$
|
|
2241
|
+
readonly var: "$ordinal";
|
|
2312
2242
|
}, {
|
|
2313
2243
|
readonly var: "state.proposal.votingEndsAt";
|
|
2314
2244
|
}];
|
|
@@ -2349,7 +2279,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2349
2279
|
readonly var: "state.votes";
|
|
2350
2280
|
};
|
|
2351
2281
|
readonly rejectedAt: {
|
|
2352
|
-
readonly var: "$
|
|
2282
|
+
readonly var: "$ordinal";
|
|
2353
2283
|
};
|
|
2354
2284
|
}];
|
|
2355
2285
|
}]];
|
|
@@ -2363,13 +2293,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2363
2293
|
readonly from: "QUEUED";
|
|
2364
2294
|
readonly to: "ACTIVE";
|
|
2365
2295
|
readonly eventName: "cancel";
|
|
2366
|
-
readonly guard:
|
|
2367
|
-
readonly "===": readonly [{
|
|
2368
|
-
readonly var: "event.agent";
|
|
2369
|
-
}, {
|
|
2370
|
-
readonly var: "state.proposal.proposer";
|
|
2371
|
-
}];
|
|
2372
|
-
};
|
|
2296
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
2373
2297
|
readonly effect: {
|
|
2374
2298
|
readonly merge: readonly [{
|
|
2375
2299
|
readonly var: "state";
|
|
@@ -2382,7 +2306,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2382
2306
|
readonly var: "state.proposal";
|
|
2383
2307
|
}, {
|
|
2384
2308
|
readonly cancelledAt: {
|
|
2385
|
-
readonly var: "$
|
|
2309
|
+
readonly var: "$ordinal";
|
|
2386
2310
|
};
|
|
2387
2311
|
}];
|
|
2388
2312
|
}]];
|
|
@@ -2397,20 +2321,22 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2397
2321
|
readonly to: "ACTIVE";
|
|
2398
2322
|
readonly eventName: "delegate";
|
|
2399
2323
|
readonly guard: {
|
|
2400
|
-
readonly
|
|
2401
|
-
readonly
|
|
2402
|
-
readonly
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
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
|
+
}];
|
|
2407
2333
|
};
|
|
2408
2334
|
readonly effect: {
|
|
2409
2335
|
readonly merge: readonly [{
|
|
2410
2336
|
readonly var: "state";
|
|
2411
2337
|
}, {
|
|
2412
2338
|
readonly delegations: {
|
|
2413
|
-
readonly
|
|
2339
|
+
readonly set: readonly [{
|
|
2414
2340
|
readonly var: "state.delegations";
|
|
2415
2341
|
}, {
|
|
2416
2342
|
readonly var: "event.agent";
|
|
@@ -2426,10 +2352,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2426
2352
|
readonly to: "ACTIVE";
|
|
2427
2353
|
readonly eventName: "undelegate";
|
|
2428
2354
|
readonly guard: {
|
|
2429
|
-
readonly
|
|
2430
|
-
readonly
|
|
2431
|
-
|
|
2432
|
-
|
|
2355
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2356
|
+
readonly has: readonly [{
|
|
2357
|
+
readonly var: "state.delegations";
|
|
2358
|
+
}, {
|
|
2359
|
+
readonly var: "event.agent";
|
|
2360
|
+
}];
|
|
2433
2361
|
}];
|
|
2434
2362
|
};
|
|
2435
2363
|
readonly effect: {
|
|
@@ -2437,7 +2365,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2437
2365
|
readonly var: "state";
|
|
2438
2366
|
}, {
|
|
2439
2367
|
readonly delegations: {
|
|
2440
|
-
readonly
|
|
2368
|
+
readonly unset: readonly [{
|
|
2441
2369
|
readonly var: "state.delegations";
|
|
2442
2370
|
}, {
|
|
2443
2371
|
readonly var: "event.agent";
|
|
@@ -2614,9 +2542,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2614
2542
|
readonly type: "number";
|
|
2615
2543
|
};
|
|
2616
2544
|
readonly voteThreshold: {
|
|
2617
|
-
/**
|
|
2618
|
-
* Get effective voting power (includes delegation)
|
|
2619
|
-
*/
|
|
2620
2545
|
readonly type: "number";
|
|
2621
2546
|
};
|
|
2622
2547
|
readonly proposeThreshold: {
|
|
@@ -2657,9 +2582,6 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2657
2582
|
readonly initialState: "ACTIVE";
|
|
2658
2583
|
readonly transitions: readonly [{
|
|
2659
2584
|
readonly from: "ACTIVE";
|
|
2660
|
-
/**
|
|
2661
|
-
* Check if agent can propose
|
|
2662
|
-
*/
|
|
2663
2585
|
readonly to: "VOTING";
|
|
2664
2586
|
readonly eventName: "propose";
|
|
2665
2587
|
readonly guard: {
|
|
@@ -2693,11 +2615,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2693
2615
|
readonly var: "event.agent";
|
|
2694
2616
|
};
|
|
2695
2617
|
readonly proposedAt: {
|
|
2696
|
-
readonly var: "$
|
|
2618
|
+
readonly var: "$ordinal";
|
|
2697
2619
|
};
|
|
2698
2620
|
readonly deadline: {
|
|
2699
2621
|
readonly "+": readonly [{
|
|
2700
|
-
readonly var: "$
|
|
2622
|
+
readonly var: "$ordinal";
|
|
2701
2623
|
}, {
|
|
2702
2624
|
readonly var: "state.votingPeriodMs";
|
|
2703
2625
|
}];
|
|
@@ -2723,32 +2645,14 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2723
2645
|
readonly var: "state.voteThreshold";
|
|
2724
2646
|
}];
|
|
2725
2647
|
}, {
|
|
2726
|
-
readonly "!": readonly [
|
|
2727
|
-
readonly in: readonly [{
|
|
2728
|
-
readonly var: "event.agent";
|
|
2729
|
-
}, {
|
|
2730
|
-
readonly var: "state.votes.for";
|
|
2731
|
-
}];
|
|
2732
|
-
}];
|
|
2648
|
+
readonly "!": readonly [import("../../index.js").GuardRule];
|
|
2733
2649
|
}, {
|
|
2734
|
-
readonly "!": readonly [
|
|
2735
|
-
readonly in: readonly [{
|
|
2736
|
-
readonly var: "event.agent";
|
|
2737
|
-
}, {
|
|
2738
|
-
readonly var: "state.votes.against";
|
|
2739
|
-
}];
|
|
2740
|
-
}];
|
|
2650
|
+
readonly "!": readonly [import("../../index.js").GuardRule];
|
|
2741
2651
|
}, {
|
|
2742
|
-
readonly "!": readonly [
|
|
2743
|
-
readonly in: readonly [{
|
|
2744
|
-
readonly var: "event.agent";
|
|
2745
|
-
}, {
|
|
2746
|
-
readonly var: "state.votes.abstain";
|
|
2747
|
-
}];
|
|
2748
|
-
}];
|
|
2652
|
+
readonly "!": readonly [import("../../index.js").GuardRule];
|
|
2749
2653
|
}, {
|
|
2750
2654
|
readonly "<=": readonly [{
|
|
2751
|
-
readonly var: "$
|
|
2655
|
+
readonly var: "$ordinal";
|
|
2752
2656
|
}, {
|
|
2753
2657
|
readonly var: "state.proposal.deadline";
|
|
2754
2658
|
}];
|
|
@@ -2815,30 +2719,30 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2815
2719
|
readonly guard: {
|
|
2816
2720
|
readonly and: readonly [{
|
|
2817
2721
|
readonly ">": readonly [{
|
|
2818
|
-
readonly var: "$
|
|
2722
|
+
readonly var: "$ordinal";
|
|
2819
2723
|
}, {
|
|
2820
2724
|
readonly var: "state.proposal.deadline";
|
|
2821
2725
|
}];
|
|
2822
2726
|
}, {
|
|
2823
2727
|
readonly ">": readonly [{
|
|
2824
|
-
readonly
|
|
2728
|
+
readonly length: readonly [{
|
|
2825
2729
|
readonly var: "state.votes.for";
|
|
2826
|
-
};
|
|
2730
|
+
}];
|
|
2827
2731
|
}, {
|
|
2828
|
-
readonly
|
|
2732
|
+
readonly length: readonly [{
|
|
2829
2733
|
readonly var: "state.votes.against";
|
|
2830
|
-
};
|
|
2734
|
+
}];
|
|
2831
2735
|
}];
|
|
2832
2736
|
}, {
|
|
2833
2737
|
readonly ">=": readonly [{
|
|
2834
2738
|
readonly "+": readonly [{
|
|
2835
|
-
readonly
|
|
2739
|
+
readonly length: readonly [{
|
|
2836
2740
|
readonly var: "state.votes.for";
|
|
2837
|
-
};
|
|
2741
|
+
}];
|
|
2838
2742
|
}, {
|
|
2839
|
-
readonly
|
|
2743
|
+
readonly length: readonly [{
|
|
2840
2744
|
readonly var: "state.votes.against";
|
|
2841
|
-
};
|
|
2745
|
+
}];
|
|
2842
2746
|
}];
|
|
2843
2747
|
}, {
|
|
2844
2748
|
readonly var: "state.quorum";
|
|
@@ -2861,24 +2765,24 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2861
2765
|
readonly var: "state.votes";
|
|
2862
2766
|
};
|
|
2863
2767
|
readonly at: {
|
|
2864
|
-
readonly var: "$
|
|
2768
|
+
readonly var: "$ordinal";
|
|
2865
2769
|
};
|
|
2866
2770
|
}]];
|
|
2867
2771
|
};
|
|
2868
2772
|
readonly proposal: null;
|
|
2869
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
|
+
}];
|
|
2870
2784
|
}];
|
|
2871
2785
|
};
|
|
2872
|
-
readonly emits: readonly [{
|
|
2873
|
-
readonly event: "proposal_executed";
|
|
2874
|
-
readonly to: "Reputation";
|
|
2875
|
-
readonly payload: {
|
|
2876
|
-
readonly action: "increase";
|
|
2877
|
-
readonly agents: {
|
|
2878
|
-
readonly var: "state.votes.for";
|
|
2879
|
-
};
|
|
2880
|
-
};
|
|
2881
|
-
}];
|
|
2882
2786
|
readonly dependencies: readonly [];
|
|
2883
2787
|
}, {
|
|
2884
2788
|
readonly from: "VOTING";
|
|
@@ -2887,31 +2791,31 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2887
2791
|
readonly guard: {
|
|
2888
2792
|
readonly and: readonly [{
|
|
2889
2793
|
readonly ">": readonly [{
|
|
2890
|
-
readonly var: "$
|
|
2794
|
+
readonly var: "$ordinal";
|
|
2891
2795
|
}, {
|
|
2892
2796
|
readonly var: "state.proposal.deadline";
|
|
2893
2797
|
}];
|
|
2894
2798
|
}, {
|
|
2895
2799
|
readonly or: readonly [{
|
|
2896
2800
|
readonly "<=": readonly [{
|
|
2897
|
-
readonly
|
|
2801
|
+
readonly length: readonly [{
|
|
2898
2802
|
readonly var: "state.votes.for";
|
|
2899
|
-
};
|
|
2803
|
+
}];
|
|
2900
2804
|
}, {
|
|
2901
|
-
readonly
|
|
2805
|
+
readonly length: readonly [{
|
|
2902
2806
|
readonly var: "state.votes.against";
|
|
2903
|
-
};
|
|
2807
|
+
}];
|
|
2904
2808
|
}];
|
|
2905
2809
|
}, {
|
|
2906
2810
|
readonly "<": readonly [{
|
|
2907
2811
|
readonly "+": readonly [{
|
|
2908
|
-
readonly
|
|
2812
|
+
readonly length: readonly [{
|
|
2909
2813
|
readonly var: "state.votes.for";
|
|
2910
|
-
};
|
|
2814
|
+
}];
|
|
2911
2815
|
}, {
|
|
2912
|
-
readonly
|
|
2816
|
+
readonly length: readonly [{
|
|
2913
2817
|
readonly var: "state.votes.against";
|
|
2914
|
-
};
|
|
2818
|
+
}];
|
|
2915
2819
|
}];
|
|
2916
2820
|
}, {
|
|
2917
2821
|
readonly var: "state.quorum";
|
|
@@ -2935,7 +2839,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2935
2839
|
readonly var: "state.votes";
|
|
2936
2840
|
};
|
|
2937
2841
|
readonly at: {
|
|
2938
|
-
readonly var: "$
|
|
2842
|
+
readonly var: "$ordinal";
|
|
2939
2843
|
};
|
|
2940
2844
|
}]];
|
|
2941
2845
|
};
|
|
@@ -2949,7 +2853,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2949
2853
|
readonly to: "ACTIVE";
|
|
2950
2854
|
readonly eventName: "join";
|
|
2951
2855
|
readonly guard: {
|
|
2952
|
-
readonly and: readonly [{
|
|
2856
|
+
readonly and: readonly [import("../../index.js").GuardRule, {
|
|
2953
2857
|
readonly ">=": readonly [{
|
|
2954
2858
|
readonly var: "event.agentReputation";
|
|
2955
2859
|
}, {
|
|
@@ -2977,12 +2881,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2977
2881
|
}]];
|
|
2978
2882
|
};
|
|
2979
2883
|
readonly memberJoinedAt: {
|
|
2980
|
-
readonly
|
|
2884
|
+
readonly set: readonly [{
|
|
2981
2885
|
readonly var: "state.memberJoinedAt";
|
|
2982
2886
|
}, {
|
|
2983
2887
|
readonly var: "event.agent";
|
|
2984
2888
|
}, {
|
|
2985
|
-
readonly var: "$
|
|
2889
|
+
readonly var: "$ordinal";
|
|
2986
2890
|
}];
|
|
2987
2891
|
};
|
|
2988
2892
|
}];
|
|
@@ -2992,13 +2896,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
2992
2896
|
readonly from: "ACTIVE";
|
|
2993
2897
|
readonly to: "ACTIVE";
|
|
2994
2898
|
readonly eventName: "leave";
|
|
2995
|
-
readonly guard:
|
|
2996
|
-
readonly in: readonly [{
|
|
2997
|
-
readonly var: "event.agent";
|
|
2998
|
-
}, {
|
|
2999
|
-
readonly var: "state.members";
|
|
3000
|
-
}];
|
|
3001
|
-
};
|
|
2899
|
+
readonly guard: import("../../index.js").GuardRule;
|
|
3002
2900
|
readonly effect: {
|
|
3003
2901
|
readonly merge: readonly [{
|
|
3004
2902
|
readonly var: "state";
|
|
@@ -3053,11 +2951,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
|
|
|
3053
2951
|
readonly var: "event.agent";
|
|
3054
2952
|
};
|
|
3055
2953
|
readonly proposedAt: {
|
|
3056
|
-
readonly var: "$
|
|
2954
|
+
readonly var: "$ordinal";
|
|
3057
2955
|
};
|
|
3058
2956
|
readonly deadline: {
|
|
3059
2957
|
readonly "+": readonly [{
|
|
3060
|
-
readonly var: "$
|
|
2958
|
+
readonly var: "$ordinal";
|
|
3061
2959
|
}, {
|
|
3062
2960
|
readonly var: "state.votingPeriodMs";
|
|
3063
2961
|
}];
|