@ottochain/sdk 2.4.0 → 2.6.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/compute/index.js +33 -0
- package/dist/cjs/apps/compute/state-machines/compute-rule110.js +164 -0
- package/dist/cjs/apps/compute/state-machines/index.js +9 -0
- package/dist/cjs/apps/contracts/index.js +1 -1
- package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +126 -148
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +153 -174
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +46 -58
- package/dist/cjs/apps/corporate/state-machines/corp-board.js +415 -481
- package/dist/cjs/apps/corporate/state-machines/corp-entity.js +368 -440
- package/dist/cjs/apps/corporate/state-machines/corp-securities.js +532 -647
- package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +499 -603
- package/dist/cjs/apps/governance/index.js +7 -7
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +170 -209
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +161 -214
- package/dist/cjs/apps/governance/state-machines/dao-single.js +92 -92
- package/dist/cjs/apps/governance/state-machines/dao-token.js +169 -223
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +185 -217
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +64 -64
- package/dist/cjs/apps/identity/constants.js +16 -24
- package/dist/cjs/apps/identity/index.js +1 -1
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +124 -158
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +151 -169
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +89 -115
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +51 -57
- package/dist/cjs/apps/index.js +4 -1
- package/dist/cjs/apps/lending/assets.js +41 -17
- package/dist/cjs/apps/lending/credit-scoring.js +4 -4
- package/dist/cjs/apps/lending/eligibility.js +9 -25
- package/dist/cjs/apps/lending/index.js +1 -1
- package/dist/cjs/apps/lending/state-machines/lending-zk-loan.js +177 -156
- package/dist/cjs/apps/markets/index.js +1 -1
- package/dist/cjs/apps/markets/state-machines/market-auction.js +115 -134
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +122 -137
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +158 -177
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +193 -227
- package/dist/cjs/apps/markets/state-machines/market-universal.js +65 -80
- package/dist/cjs/apps/oracles/index.js +1 -1
- package/dist/cjs/apps/privacy/index.js +67 -0
- package/dist/cjs/apps/privacy/state-machines/index.js +17 -0
- package/dist/cjs/apps/privacy/state-machines/mixer-ddhRing.js +286 -0
- package/dist/cjs/apps/privacy/state-machines/note-pool.js +476 -0
- package/dist/cjs/apps/staked-pool/assets.js +103 -0
- package/dist/cjs/apps/staked-pool/base.js +498 -0
- package/dist/cjs/apps/staked-pool/consumer.js +55 -0
- package/dist/cjs/apps/staked-pool/index.js +83 -0
- package/dist/cjs/apps/staked-pool/state-machines/index.js +12 -0
- package/dist/cjs/apps/staked-pool/state-machines/staked-pool-base.js +49 -0
- package/dist/cjs/apps/staked-pool/state-machines/staked-pool-oracle.js +131 -0
- package/dist/cjs/generated/google/protobuf/struct.js +1 -1
- package/dist/cjs/generated/google/protobuf/timestamp.js +1 -1
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +1 -1
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +1 -1
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +1 -1
- package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +1 -1
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +1 -1
- package/dist/cjs/generated/ottochain/v1/common.js +1 -1
- package/dist/cjs/generated/ottochain/v1/fiber.js +40 -2
- package/dist/cjs/generated/ottochain/v1/messages.js +1 -1
- package/dist/cjs/generated/ottochain/v1/records.js +1 -1
- package/dist/cjs/index.js +21 -3
- package/dist/cjs/ottochain/genesis-manifest.js +6 -0
- package/dist/cjs/ottochain/metagraph-client.js +63 -11
- package/dist/cjs/ottochain/snapshot.js +2 -4
- package/dist/cjs/ottochain/transaction.js +10 -0
- package/dist/cjs/privacy/sealed-bid.js +85 -82
- package/dist/cjs/privacy/shield-app.js +32 -32
- package/dist/cjs/schema/effects.js +145 -1
- package/dist/cjs/schema/fiber-app.js +139 -5
- package/dist/cjs/schema/guard-lint.js +3 -12
- package/dist/cjs/schema/guards.js +38 -38
- package/dist/cjs/templates/asset-policy.js +190 -0
- package/dist/cjs/templates/index.js +86 -0
- package/dist/cjs/templates/machine.js +130 -0
- package/dist/cjs/templates/migration.js +39 -0
- package/dist/cjs/templates/state-shape.js +38 -0
- package/dist/cjs/validation.js +1 -3
- package/dist/esm/apps/compute/index.js +29 -0
- package/dist/esm/apps/compute/state-machines/compute-rule110.js +161 -0
- package/dist/esm/apps/compute/state-machines/index.js +5 -0
- package/dist/esm/apps/contracts/index.js +4 -4
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +128 -150
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +155 -176
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +47 -59
- package/dist/esm/apps/corporate/index.js +2 -2
- package/dist/esm/apps/corporate/state-machines/corp-board.js +418 -484
- package/dist/esm/apps/corporate/state-machines/corp-entity.js +371 -443
- package/dist/esm/apps/corporate/state-machines/corp-securities.js +535 -650
- package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +502 -606
- package/dist/esm/apps/governance/index.js +10 -10
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +172 -211
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +163 -216
- package/dist/esm/apps/governance/state-machines/dao-single.js +94 -94
- package/dist/esm/apps/governance/state-machines/dao-token.js +171 -225
- package/dist/esm/apps/governance/state-machines/governance-simple.js +187 -219
- package/dist/esm/apps/governance/state-machines/governance-universal.js +65 -65
- package/dist/esm/apps/identity/constants.js +18 -26
- package/dist/esm/apps/identity/index.js +8 -8
- package/dist/esm/apps/identity/state-machines/identity-agent.js +125 -159
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +153 -171
- package/dist/esm/apps/identity/state-machines/identity-registry.js +91 -117
- package/dist/esm/apps/identity/state-machines/identity-universal.js +52 -58
- package/dist/esm/apps/index.js +9 -6
- package/dist/esm/apps/lending/assets.js +41 -17
- package/dist/esm/apps/lending/credit-scoring.js +6 -6
- package/dist/esm/apps/lending/eligibility.js +10 -26
- package/dist/esm/apps/lending/index.js +5 -5
- package/dist/esm/apps/lending/state-machines/lending-zk-loan.js +178 -157
- package/dist/esm/apps/markets/index.js +5 -5
- package/dist/esm/apps/markets/state-machines/market-auction.js +117 -136
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +124 -139
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +160 -179
- package/dist/esm/apps/markets/state-machines/market-prediction.js +195 -229
- package/dist/esm/apps/markets/state-machines/market-universal.js +66 -81
- package/dist/esm/apps/oracles/index.js +3 -3
- package/dist/esm/apps/privacy/index.js +56 -0
- package/dist/esm/apps/privacy/state-machines/index.js +6 -0
- package/dist/esm/apps/privacy/state-machines/mixer-ddhRing.js +282 -0
- package/dist/esm/apps/privacy/state-machines/note-pool.js +470 -0
- package/dist/esm/apps/staked-pool/assets.js +91 -0
- package/dist/esm/apps/staked-pool/base.js +493 -0
- package/dist/esm/apps/staked-pool/consumer.js +49 -0
- package/dist/esm/apps/staked-pool/index.js +60 -0
- package/dist/esm/apps/staked-pool/state-machines/index.js +6 -0
- package/dist/esm/apps/staked-pool/state-machines/staked-pool-base.js +46 -0
- package/dist/esm/apps/staked-pool/state-machines/staked-pool-oracle.js +127 -0
- package/dist/esm/generated/google/protobuf/struct.js +1 -1
- package/dist/esm/generated/google/protobuf/timestamp.js +1 -1
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +1 -1
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
- package/dist/esm/generated/ottochain/apps/governance/v1/governance.js +1 -1
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation.js +1 -1
- package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +1 -1
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +1 -1
- package/dist/esm/generated/ottochain/v1/common.js +1 -1
- package/dist/esm/generated/ottochain/v1/fiber.js +40 -2
- package/dist/esm/generated/ottochain/v1/messages.js +1 -1
- package/dist/esm/generated/ottochain/v1/records.js +1 -1
- package/dist/esm/index.js +10 -4
- package/dist/esm/ottochain/genesis-manifest.js +6 -0
- package/dist/esm/ottochain/metagraph-client.js +63 -11
- package/dist/esm/ottochain/snapshot.js +2 -4
- package/dist/esm/ottochain/transaction.js +8 -0
- package/dist/esm/privacy/index.js +2 -2
- package/dist/esm/privacy/sealed-bid.js +87 -84
- package/dist/esm/privacy/shield-app.js +33 -33
- package/dist/esm/schema/effects.js +137 -0
- package/dist/esm/schema/fiber-app.js +134 -5
- package/dist/esm/schema/guard-lint.js +3 -12
- package/dist/esm/schema/guards.js +36 -37
- package/dist/esm/templates/asset-policy.js +182 -0
- package/dist/esm/templates/index.js +41 -0
- package/dist/esm/templates/machine.js +125 -0
- package/dist/esm/templates/migration.js +34 -0
- package/dist/esm/templates/state-shape.js +34 -0
- package/dist/esm/validation.js +1 -3
- package/dist/esm/zk/index.js +4 -4
- package/dist/types/apps/compute/index.d.ts +176 -0
- package/dist/types/apps/compute/state-machines/compute-rule110.d.ts +157 -0
- package/dist/types/apps/compute/state-machines/index.d.ts +5 -0
- package/dist/types/apps/contracts/index.d.ts +14 -14
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +3 -3
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +3 -3
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +4 -4
- package/dist/types/apps/corporate/index.d.ts +162 -162
- package/dist/types/apps/corporate/state-machines/corp-board.d.ts +88 -88
- package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +14 -14
- package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +18 -18
- package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +43 -43
- package/dist/types/apps/governance/index.d.ts +81 -81
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +16 -16
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +22 -22
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +21 -21
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +11 -11
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +4 -4
- package/dist/types/apps/identity/constants.d.ts +2 -2
- package/dist/types/apps/identity/index.d.ts +70 -70
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +23 -23
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +11 -11
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +27 -27
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +4 -4
- package/dist/types/apps/index.d.ts +9 -6
- package/dist/types/apps/lending/assets.d.ts +2 -2
- package/dist/types/apps/lending/credit-scoring.d.ts +5 -5
- package/dist/types/apps/lending/eligibility.d.ts +2 -2
- package/dist/types/apps/lending/index.d.ts +20 -12
- package/dist/types/apps/lending/state-machines/lending-zk-loan.d.ts +15 -7
- package/dist/types/apps/markets/index.d.ts +76 -76
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +12 -12
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +19 -19
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +18 -18
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +15 -15
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +7 -7
- package/dist/types/apps/oracles/index.d.ts +1 -1
- package/dist/types/apps/privacy/index.d.ts +328 -0
- package/dist/types/apps/privacy/state-machines/index.d.ts +6 -0
- package/dist/types/apps/privacy/state-machines/mixer-ddhRing.d.ts +337 -0
- package/dist/types/apps/privacy/state-machines/note-pool.d.ts +196 -0
- package/dist/types/apps/staked-pool/assets.d.ts +53 -0
- package/dist/types/apps/staked-pool/base.d.ts +80 -0
- package/dist/types/apps/staked-pool/consumer.d.ts +29 -0
- package/dist/types/apps/staked-pool/index.d.ts +51 -0
- package/dist/types/apps/staked-pool/state-machines/index.d.ts +6 -0
- package/dist/types/apps/staked-pool/state-machines/staked-pool-base.d.ts +8 -0
- package/dist/types/apps/staked-pool/state-machines/staked-pool-oracle.d.ts +34 -0
- package/dist/types/generated/openapi.d.ts +13 -0
- package/dist/types/generated/ottochain/v1/fiber.d.ts +7 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/openapi.d.ts +4 -2
- package/dist/types/ottochain/genesis-manifest.d.ts +6 -0
- package/dist/types/ottochain/index.d.ts +1 -1
- package/dist/types/ottochain/metagraph-client.d.ts +69 -15
- package/dist/types/ottochain/transaction.d.ts +9 -1
- package/dist/types/ottochain/types.d.ts +1 -1
- package/dist/types/privacy/index.d.ts +2 -2
- package/dist/types/privacy/sealed-bid.d.ts +9 -9
- package/dist/types/privacy/shield-app.d.ts +1 -1
- package/dist/types/schema/effects.d.ts +132 -0
- package/dist/types/schema/fiber-app.d.ts +281 -0
- package/dist/types/schema/guards.d.ts +12 -0
- package/dist/types/templates/asset-policy.d.ts +119 -0
- package/dist/types/templates/index.d.ts +26 -0
- package/dist/types/templates/machine.d.ts +139 -0
- package/dist/types/templates/migration.d.ts +34 -0
- package/dist/types/templates/state-shape.d.ts +30 -0
- package/dist/types/zk/index.d.ts +4 -4
- package/package.json +31 -13
|
@@ -224,7 +224,7 @@ export declare const daoMultisigDef: {
|
|
|
224
224
|
readonly var: "$ordinal";
|
|
225
225
|
};
|
|
226
226
|
readonly expiresAt: {
|
|
227
|
-
readonly
|
|
227
|
+
readonly '+': readonly [{
|
|
228
228
|
readonly var: "$ordinal";
|
|
229
229
|
}, {
|
|
230
230
|
readonly var: "state.proposalTTLMs";
|
|
@@ -247,7 +247,7 @@ export declare const daoMultisigDef: {
|
|
|
247
247
|
readonly eventName: "sign";
|
|
248
248
|
readonly guard: {
|
|
249
249
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
250
|
-
readonly
|
|
250
|
+
readonly '!': readonly [{
|
|
251
251
|
readonly has: readonly [{
|
|
252
252
|
readonly var: "state.signatures";
|
|
253
253
|
}, {
|
|
@@ -255,7 +255,7 @@ export declare const daoMultisigDef: {
|
|
|
255
255
|
}];
|
|
256
256
|
}];
|
|
257
257
|
}, {
|
|
258
|
-
readonly
|
|
258
|
+
readonly '<': readonly [{
|
|
259
259
|
readonly length: readonly [{
|
|
260
260
|
readonly keys: readonly [{
|
|
261
261
|
readonly var: "state.signatures";
|
|
@@ -287,7 +287,7 @@ export declare const daoMultisigDef: {
|
|
|
287
287
|
readonly to: "ACTIVE";
|
|
288
288
|
readonly eventName: "execute";
|
|
289
289
|
readonly guard: {
|
|
290
|
-
readonly
|
|
290
|
+
readonly '>=': readonly [{
|
|
291
291
|
readonly length: readonly [{
|
|
292
292
|
readonly keys: readonly [{
|
|
293
293
|
readonly var: "state.signatures";
|
|
@@ -342,7 +342,7 @@ export declare const daoMultisigDef: {
|
|
|
342
342
|
readonly eventName: "cancel";
|
|
343
343
|
readonly guard: {
|
|
344
344
|
readonly or: readonly [{
|
|
345
|
-
readonly
|
|
345
|
+
readonly '>': readonly [{
|
|
346
346
|
readonly var: "$ordinal";
|
|
347
347
|
}, {
|
|
348
348
|
readonly var: "state.proposal.expiresAt";
|
|
@@ -397,7 +397,7 @@ export declare const daoMultisigDef: {
|
|
|
397
397
|
readonly var: "$ordinal";
|
|
398
398
|
};
|
|
399
399
|
readonly expiresAt: {
|
|
400
|
-
readonly
|
|
400
|
+
readonly '+': readonly [{
|
|
401
401
|
readonly var: "$ordinal";
|
|
402
402
|
}, {
|
|
403
403
|
readonly var: "state.proposalTTLMs";
|
|
@@ -420,7 +420,7 @@ export declare const daoMultisigDef: {
|
|
|
420
420
|
readonly eventName: "propose_remove_signer";
|
|
421
421
|
readonly guard: {
|
|
422
422
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
423
|
-
readonly
|
|
423
|
+
readonly '>': readonly [{
|
|
424
424
|
readonly length: readonly [{
|
|
425
425
|
readonly var: "state.signers";
|
|
426
426
|
}];
|
|
@@ -450,7 +450,7 @@ export declare const daoMultisigDef: {
|
|
|
450
450
|
readonly var: "$ordinal";
|
|
451
451
|
};
|
|
452
452
|
readonly expiresAt: {
|
|
453
|
-
readonly
|
|
453
|
+
readonly '+': readonly [{
|
|
454
454
|
readonly var: "$ordinal";
|
|
455
455
|
}, {
|
|
456
456
|
readonly var: "state.proposalTTLMs";
|
|
@@ -473,11 +473,11 @@ export declare const daoMultisigDef: {
|
|
|
473
473
|
readonly eventName: "propose_change_threshold";
|
|
474
474
|
readonly guard: {
|
|
475
475
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
476
|
-
readonly
|
|
476
|
+
readonly '>=': readonly [{
|
|
477
477
|
readonly var: "event.newThreshold";
|
|
478
478
|
}, 1];
|
|
479
479
|
}, {
|
|
480
|
-
readonly
|
|
480
|
+
readonly '<=': readonly [{
|
|
481
481
|
readonly var: "event.newThreshold";
|
|
482
482
|
}, {
|
|
483
483
|
readonly length: readonly [{
|
|
@@ -507,7 +507,7 @@ export declare const daoMultisigDef: {
|
|
|
507
507
|
readonly var: "$ordinal";
|
|
508
508
|
};
|
|
509
509
|
readonly expiresAt: {
|
|
510
|
-
readonly
|
|
510
|
+
readonly '+': readonly [{
|
|
511
511
|
readonly var: "$ordinal";
|
|
512
512
|
}, {
|
|
513
513
|
readonly var: "state.proposalTTLMs";
|
|
@@ -530,7 +530,7 @@ export declare const daoMultisigDef: {
|
|
|
530
530
|
readonly eventName: "apply_signer_change";
|
|
531
531
|
readonly guard: {
|
|
532
532
|
readonly and: readonly [{
|
|
533
|
-
readonly
|
|
533
|
+
readonly '>=': readonly [{
|
|
534
534
|
readonly length: readonly [{
|
|
535
535
|
readonly keys: readonly [{
|
|
536
536
|
readonly var: "state.signatures";
|
|
@@ -547,7 +547,7 @@ export declare const daoMultisigDef: {
|
|
|
547
547
|
};
|
|
548
548
|
readonly effect: {
|
|
549
549
|
readonly if: readonly [{
|
|
550
|
-
readonly
|
|
550
|
+
readonly '===': readonly [{
|
|
551
551
|
readonly var: "state.proposal.actionType";
|
|
552
552
|
}, "add_signer"];
|
|
553
553
|
}, {
|
|
@@ -565,7 +565,7 @@ export declare const daoMultisigDef: {
|
|
|
565
565
|
readonly signatures: {};
|
|
566
566
|
}];
|
|
567
567
|
}, {
|
|
568
|
-
readonly
|
|
568
|
+
readonly '===': readonly [{
|
|
569
569
|
readonly var: "state.proposal.actionType";
|
|
570
570
|
}, "remove_signer"];
|
|
571
571
|
}, {
|
|
@@ -576,7 +576,7 @@ export declare const daoMultisigDef: {
|
|
|
576
576
|
readonly filter: readonly [{
|
|
577
577
|
readonly var: "state.signers";
|
|
578
578
|
}, {
|
|
579
|
-
readonly
|
|
579
|
+
readonly '!==': readonly [{
|
|
580
580
|
readonly var: "";
|
|
581
581
|
}, {
|
|
582
582
|
readonly var: "state.proposal.payload.removeSigner";
|
|
@@ -605,7 +605,7 @@ export declare const daoMultisigDef: {
|
|
|
605
605
|
readonly eventName: "dissolve";
|
|
606
606
|
readonly guard: {
|
|
607
607
|
readonly and: readonly [{
|
|
608
|
-
readonly
|
|
608
|
+
readonly '>': readonly [{
|
|
609
609
|
readonly length: readonly [{
|
|
610
610
|
readonly var: "state.signers";
|
|
611
611
|
}];
|
|
@@ -210,7 +210,7 @@ export declare const daoReputationDef: {
|
|
|
210
210
|
readonly to: "VOTING";
|
|
211
211
|
readonly eventName: "propose";
|
|
212
212
|
readonly guard: {
|
|
213
|
-
readonly
|
|
213
|
+
readonly '>=': readonly [{
|
|
214
214
|
readonly var: "event.agentReputation";
|
|
215
215
|
}, {
|
|
216
216
|
readonly var: "state.proposeThreshold";
|
|
@@ -243,7 +243,7 @@ export declare const daoReputationDef: {
|
|
|
243
243
|
readonly var: "$ordinal";
|
|
244
244
|
};
|
|
245
245
|
readonly deadline: {
|
|
246
|
-
readonly
|
|
246
|
+
readonly '+': readonly [{
|
|
247
247
|
readonly var: "$ordinal";
|
|
248
248
|
}, {
|
|
249
249
|
readonly var: "state.votingPeriodMs";
|
|
@@ -264,19 +264,19 @@ export declare const daoReputationDef: {
|
|
|
264
264
|
readonly eventName: "vote";
|
|
265
265
|
readonly guard: {
|
|
266
266
|
readonly and: readonly [{
|
|
267
|
-
readonly
|
|
267
|
+
readonly '>=': readonly [{
|
|
268
268
|
readonly var: "event.agentReputation";
|
|
269
269
|
}, {
|
|
270
270
|
readonly var: "state.voteThreshold";
|
|
271
271
|
}];
|
|
272
272
|
}, {
|
|
273
|
-
readonly
|
|
273
|
+
readonly '!': readonly [import("../../../schema/guards.js").GuardRule];
|
|
274
274
|
}, {
|
|
275
|
-
readonly
|
|
275
|
+
readonly '!': readonly [import("../../../schema/guards.js").GuardRule];
|
|
276
276
|
}, {
|
|
277
|
-
readonly
|
|
277
|
+
readonly '!': readonly [import("../../../schema/guards.js").GuardRule];
|
|
278
278
|
}, {
|
|
279
|
-
readonly
|
|
279
|
+
readonly '<=': readonly [{
|
|
280
280
|
readonly var: "$ordinal";
|
|
281
281
|
}, {
|
|
282
282
|
readonly var: "state.proposal.deadline";
|
|
@@ -289,7 +289,7 @@ export declare const daoReputationDef: {
|
|
|
289
289
|
}, {
|
|
290
290
|
readonly votes: {
|
|
291
291
|
readonly if: readonly [{
|
|
292
|
-
readonly
|
|
292
|
+
readonly '===': readonly [{
|
|
293
293
|
readonly var: "event.vote";
|
|
294
294
|
}, "for"];
|
|
295
295
|
}, {
|
|
@@ -305,7 +305,7 @@ export declare const daoReputationDef: {
|
|
|
305
305
|
};
|
|
306
306
|
}];
|
|
307
307
|
}, {
|
|
308
|
-
readonly
|
|
308
|
+
readonly '===': readonly [{
|
|
309
309
|
readonly var: "event.vote";
|
|
310
310
|
}, "against"];
|
|
311
311
|
}, {
|
|
@@ -343,13 +343,13 @@ export declare const daoReputationDef: {
|
|
|
343
343
|
readonly eventName: "execute";
|
|
344
344
|
readonly guard: {
|
|
345
345
|
readonly and: readonly [{
|
|
346
|
-
readonly
|
|
346
|
+
readonly '>': readonly [{
|
|
347
347
|
readonly var: "$ordinal";
|
|
348
348
|
}, {
|
|
349
349
|
readonly var: "state.proposal.deadline";
|
|
350
350
|
}];
|
|
351
351
|
}, {
|
|
352
|
-
readonly
|
|
352
|
+
readonly '>': readonly [{
|
|
353
353
|
readonly length: readonly [{
|
|
354
354
|
readonly var: "state.votes.for";
|
|
355
355
|
}];
|
|
@@ -359,8 +359,8 @@ export declare const daoReputationDef: {
|
|
|
359
359
|
}];
|
|
360
360
|
}];
|
|
361
361
|
}, {
|
|
362
|
-
readonly
|
|
363
|
-
readonly
|
|
362
|
+
readonly '>=': readonly [{
|
|
363
|
+
readonly '+': readonly [{
|
|
364
364
|
readonly length: readonly [{
|
|
365
365
|
readonly var: "state.votes.for";
|
|
366
366
|
}];
|
|
@@ -415,14 +415,14 @@ export declare const daoReputationDef: {
|
|
|
415
415
|
readonly eventName: "reject";
|
|
416
416
|
readonly guard: {
|
|
417
417
|
readonly and: readonly [{
|
|
418
|
-
readonly
|
|
418
|
+
readonly '>': readonly [{
|
|
419
419
|
readonly var: "$ordinal";
|
|
420
420
|
}, {
|
|
421
421
|
readonly var: "state.proposal.deadline";
|
|
422
422
|
}];
|
|
423
423
|
}, {
|
|
424
424
|
readonly or: readonly [{
|
|
425
|
-
readonly
|
|
425
|
+
readonly '<=': readonly [{
|
|
426
426
|
readonly length: readonly [{
|
|
427
427
|
readonly var: "state.votes.for";
|
|
428
428
|
}];
|
|
@@ -432,8 +432,8 @@ export declare const daoReputationDef: {
|
|
|
432
432
|
}];
|
|
433
433
|
}];
|
|
434
434
|
}, {
|
|
435
|
-
readonly
|
|
436
|
-
readonly
|
|
435
|
+
readonly '<': readonly [{
|
|
436
|
+
readonly '+': readonly [{
|
|
437
437
|
readonly length: readonly [{
|
|
438
438
|
readonly var: "state.votes.for";
|
|
439
439
|
}];
|
|
@@ -479,13 +479,13 @@ export declare const daoReputationDef: {
|
|
|
479
479
|
readonly eventName: "join";
|
|
480
480
|
readonly guard: {
|
|
481
481
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
482
|
-
readonly
|
|
482
|
+
readonly '>=': readonly [{
|
|
483
483
|
readonly var: "event.agentReputation";
|
|
484
484
|
}, {
|
|
485
485
|
readonly var: "state.memberThreshold";
|
|
486
486
|
}];
|
|
487
487
|
}, {
|
|
488
|
-
readonly
|
|
488
|
+
readonly '!': readonly [{
|
|
489
489
|
readonly in: readonly [{
|
|
490
490
|
readonly var: "event.agent";
|
|
491
491
|
}, {
|
|
@@ -530,7 +530,7 @@ export declare const daoReputationDef: {
|
|
|
530
530
|
readonly filter: readonly [{
|
|
531
531
|
readonly var: "state.members";
|
|
532
532
|
}, {
|
|
533
|
-
readonly
|
|
533
|
+
readonly '!==': readonly [{
|
|
534
534
|
readonly var: "";
|
|
535
535
|
}, {
|
|
536
536
|
readonly var: "event.agent";
|
|
@@ -545,7 +545,7 @@ export declare const daoReputationDef: {
|
|
|
545
545
|
readonly to: "VOTING";
|
|
546
546
|
readonly eventName: "propose_threshold_change";
|
|
547
547
|
readonly guard: {
|
|
548
|
-
readonly
|
|
548
|
+
readonly '>=': readonly [{
|
|
549
549
|
readonly var: "event.agentReputation";
|
|
550
550
|
}, {
|
|
551
551
|
readonly var: "state.proposeThreshold";
|
|
@@ -579,7 +579,7 @@ export declare const daoReputationDef: {
|
|
|
579
579
|
readonly var: "$ordinal";
|
|
580
580
|
};
|
|
581
581
|
readonly deadline: {
|
|
582
|
-
readonly
|
|
582
|
+
readonly '+': readonly [{
|
|
583
583
|
readonly var: "$ordinal";
|
|
584
584
|
}, {
|
|
585
585
|
readonly var: "state.votingPeriodMs";
|
|
@@ -216,7 +216,7 @@ export declare const daoTokenDef: {
|
|
|
216
216
|
readonly var: "address";
|
|
217
217
|
}];
|
|
218
218
|
}, {
|
|
219
|
-
readonly
|
|
219
|
+
readonly '>=': readonly [{
|
|
220
220
|
readonly get: readonly [{
|
|
221
221
|
readonly var: "state.balances";
|
|
222
222
|
}, {
|
|
@@ -254,7 +254,7 @@ export declare const daoTokenDef: {
|
|
|
254
254
|
readonly var: "$ordinal";
|
|
255
255
|
};
|
|
256
256
|
readonly votingEndsAt: {
|
|
257
|
-
readonly
|
|
257
|
+
readonly '+': readonly [{
|
|
258
258
|
readonly var: "$ordinal";
|
|
259
259
|
}, {
|
|
260
260
|
readonly var: "state.votingPeriodMs";
|
|
@@ -279,7 +279,7 @@ export declare const daoTokenDef: {
|
|
|
279
279
|
readonly eventName: "vote";
|
|
280
280
|
readonly guard: {
|
|
281
281
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
282
|
-
readonly
|
|
282
|
+
readonly '>': readonly [{
|
|
283
283
|
readonly get: readonly [{
|
|
284
284
|
readonly var: "state.balances";
|
|
285
285
|
}, {
|
|
@@ -287,7 +287,7 @@ export declare const daoTokenDef: {
|
|
|
287
287
|
}];
|
|
288
288
|
}, 0];
|
|
289
289
|
}, {
|
|
290
|
-
readonly
|
|
290
|
+
readonly '!': readonly [{
|
|
291
291
|
readonly has: readonly [{
|
|
292
292
|
readonly var: "state.votes.voters";
|
|
293
293
|
}, {
|
|
@@ -295,7 +295,7 @@ export declare const daoTokenDef: {
|
|
|
295
295
|
}];
|
|
296
296
|
}];
|
|
297
297
|
}, {
|
|
298
|
-
readonly
|
|
298
|
+
readonly '<=': readonly [{
|
|
299
299
|
readonly var: "$ordinal";
|
|
300
300
|
}, {
|
|
301
301
|
readonly var: "state.proposal.votingEndsAt";
|
|
@@ -311,12 +311,12 @@ export declare const daoTokenDef: {
|
|
|
311
311
|
readonly var: "state.votes";
|
|
312
312
|
}, {
|
|
313
313
|
readonly if: readonly [{
|
|
314
|
-
readonly
|
|
314
|
+
readonly '===': readonly [{
|
|
315
315
|
readonly var: "event.vote";
|
|
316
316
|
}, "for"];
|
|
317
317
|
}, {
|
|
318
318
|
readonly for: {
|
|
319
|
-
readonly
|
|
319
|
+
readonly '+': readonly [{
|
|
320
320
|
readonly var: "state.votes.for";
|
|
321
321
|
}, {
|
|
322
322
|
readonly get: readonly [{
|
|
@@ -327,12 +327,12 @@ export declare const daoTokenDef: {
|
|
|
327
327
|
}];
|
|
328
328
|
};
|
|
329
329
|
}, {
|
|
330
|
-
readonly
|
|
330
|
+
readonly '===': readonly [{
|
|
331
331
|
readonly var: "event.vote";
|
|
332
332
|
}, "against"];
|
|
333
333
|
}, {
|
|
334
334
|
readonly against: {
|
|
335
|
-
readonly
|
|
335
|
+
readonly '+': readonly [{
|
|
336
336
|
readonly var: "state.votes.against";
|
|
337
337
|
}, {
|
|
338
338
|
readonly get: readonly [{
|
|
@@ -344,7 +344,7 @@ export declare const daoTokenDef: {
|
|
|
344
344
|
};
|
|
345
345
|
}, {
|
|
346
346
|
readonly abstain: {
|
|
347
|
-
readonly
|
|
347
|
+
readonly '+': readonly [{
|
|
348
348
|
readonly var: "state.votes.abstain";
|
|
349
349
|
}, {
|
|
350
350
|
readonly get: readonly [{
|
|
@@ -388,20 +388,20 @@ export declare const daoTokenDef: {
|
|
|
388
388
|
readonly eventName: "queue";
|
|
389
389
|
readonly guard: {
|
|
390
390
|
readonly and: readonly [{
|
|
391
|
-
readonly
|
|
391
|
+
readonly '>': readonly [{
|
|
392
392
|
readonly var: "$ordinal";
|
|
393
393
|
}, {
|
|
394
394
|
readonly var: "state.proposal.votingEndsAt";
|
|
395
395
|
}];
|
|
396
396
|
}, {
|
|
397
|
-
readonly
|
|
397
|
+
readonly '>': readonly [{
|
|
398
398
|
readonly var: "state.votes.for";
|
|
399
399
|
}, {
|
|
400
400
|
readonly var: "state.votes.against";
|
|
401
401
|
}];
|
|
402
402
|
}, {
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
403
|
+
readonly '>=': readonly [{
|
|
404
|
+
readonly '+': readonly [{
|
|
405
405
|
readonly var: "state.votes.for";
|
|
406
406
|
}, {
|
|
407
407
|
readonly var: "state.votes.against";
|
|
@@ -425,7 +425,7 @@ export declare const daoTokenDef: {
|
|
|
425
425
|
readonly var: "$ordinal";
|
|
426
426
|
};
|
|
427
427
|
readonly executableAt: {
|
|
428
|
-
readonly
|
|
428
|
+
readonly '+': readonly [{
|
|
429
429
|
readonly var: "$ordinal";
|
|
430
430
|
}, {
|
|
431
431
|
readonly var: "state.timelockMs";
|
|
@@ -441,7 +441,7 @@ export declare const daoTokenDef: {
|
|
|
441
441
|
readonly to: "ACTIVE";
|
|
442
442
|
readonly eventName: "execute";
|
|
443
443
|
readonly guard: {
|
|
444
|
-
readonly
|
|
444
|
+
readonly '>=': readonly [{
|
|
445
445
|
readonly var: "$ordinal";
|
|
446
446
|
}, {
|
|
447
447
|
readonly var: "state.proposal.executableAt";
|
|
@@ -487,21 +487,21 @@ export declare const daoTokenDef: {
|
|
|
487
487
|
readonly eventName: "reject";
|
|
488
488
|
readonly guard: {
|
|
489
489
|
readonly and: readonly [{
|
|
490
|
-
readonly
|
|
490
|
+
readonly '>': readonly [{
|
|
491
491
|
readonly var: "$ordinal";
|
|
492
492
|
}, {
|
|
493
493
|
readonly var: "state.proposal.votingEndsAt";
|
|
494
494
|
}];
|
|
495
495
|
}, {
|
|
496
496
|
readonly or: readonly [{
|
|
497
|
-
readonly
|
|
497
|
+
readonly '<=': readonly [{
|
|
498
498
|
readonly var: "state.votes.for";
|
|
499
499
|
}, {
|
|
500
500
|
readonly var: "state.votes.against";
|
|
501
501
|
}];
|
|
502
502
|
}, {
|
|
503
|
-
readonly
|
|
504
|
-
readonly
|
|
503
|
+
readonly '<': readonly [{
|
|
504
|
+
readonly '+': readonly [{
|
|
505
505
|
readonly var: "state.votes.for";
|
|
506
506
|
}, {
|
|
507
507
|
readonly var: "state.votes.against";
|
|
@@ -572,7 +572,7 @@ export declare const daoTokenDef: {
|
|
|
572
572
|
readonly eventName: "delegate";
|
|
573
573
|
readonly guard: {
|
|
574
574
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
575
|
-
readonly
|
|
575
|
+
readonly '>': readonly [{
|
|
576
576
|
readonly get: readonly [{
|
|
577
577
|
readonly var: "state.balances";
|
|
578
578
|
}, {
|
|
@@ -292,7 +292,7 @@ export declare const govSimpleDef: {
|
|
|
292
292
|
readonly var: "$ordinal";
|
|
293
293
|
};
|
|
294
294
|
readonly deadline: {
|
|
295
|
-
readonly
|
|
295
|
+
readonly '+': readonly [{
|
|
296
296
|
readonly var: "$ordinal";
|
|
297
297
|
}, {
|
|
298
298
|
readonly var: "state.votingPeriodMs";
|
|
@@ -309,7 +309,7 @@ export declare const govSimpleDef: {
|
|
|
309
309
|
readonly eventName: "vote";
|
|
310
310
|
readonly guard: {
|
|
311
311
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
312
|
-
readonly
|
|
312
|
+
readonly '!': readonly [{
|
|
313
313
|
readonly has: readonly [{
|
|
314
314
|
readonly var: "state.votes";
|
|
315
315
|
}, {
|
|
@@ -344,20 +344,20 @@ export declare const govSimpleDef: {
|
|
|
344
344
|
readonly to: "ACTIVE";
|
|
345
345
|
readonly eventName: "finalize";
|
|
346
346
|
readonly guard: {
|
|
347
|
-
readonly
|
|
347
|
+
readonly '>=': readonly [{
|
|
348
348
|
readonly length: readonly [{
|
|
349
349
|
readonly filter: readonly [{
|
|
350
350
|
readonly values: readonly [{
|
|
351
351
|
readonly var: "state.votes";
|
|
352
352
|
}];
|
|
353
353
|
}, {
|
|
354
|
-
readonly
|
|
354
|
+
readonly '===': readonly [{
|
|
355
355
|
readonly var: "vote";
|
|
356
356
|
}, "for"];
|
|
357
357
|
}];
|
|
358
358
|
}];
|
|
359
359
|
}, {
|
|
360
|
-
readonly
|
|
360
|
+
readonly '*': readonly [{
|
|
361
361
|
readonly length: readonly [{
|
|
362
362
|
readonly keys: readonly [{
|
|
363
363
|
readonly var: "state.members";
|
|
@@ -403,20 +403,20 @@ export declare const govSimpleDef: {
|
|
|
403
403
|
readonly to: "ACTIVE";
|
|
404
404
|
readonly eventName: "finalize";
|
|
405
405
|
readonly guard: {
|
|
406
|
-
readonly
|
|
406
|
+
readonly '<': readonly [{
|
|
407
407
|
readonly length: readonly [{
|
|
408
408
|
readonly filter: readonly [{
|
|
409
409
|
readonly values: readonly [{
|
|
410
410
|
readonly var: "state.votes";
|
|
411
411
|
}];
|
|
412
412
|
}, {
|
|
413
|
-
readonly
|
|
413
|
+
readonly '===': readonly [{
|
|
414
414
|
readonly var: "vote";
|
|
415
415
|
}, "for"];
|
|
416
416
|
}];
|
|
417
417
|
}];
|
|
418
418
|
}, {
|
|
419
|
-
readonly
|
|
419
|
+
readonly '*': readonly [{
|
|
420
420
|
readonly length: readonly [{
|
|
421
421
|
readonly keys: readonly [{
|
|
422
422
|
readonly var: "state.members";
|
|
@@ -520,7 +520,7 @@ export declare const govSimpleDef: {
|
|
|
520
520
|
readonly eventName: "vote";
|
|
521
521
|
readonly guard: {
|
|
522
522
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, import("../../../schema/guards.js").GuardRule, import("../../../schema/guards.js").GuardRule, {
|
|
523
|
-
readonly
|
|
523
|
+
readonly '!': readonly [{
|
|
524
524
|
readonly has: readonly [{
|
|
525
525
|
readonly var: "state.votes";
|
|
526
526
|
}, {
|
|
@@ -555,7 +555,7 @@ export declare const govSimpleDef: {
|
|
|
555
555
|
readonly to: "ACTIVE";
|
|
556
556
|
readonly eventName: "resolve";
|
|
557
557
|
readonly guard: {
|
|
558
|
-
readonly
|
|
558
|
+
readonly '>=': readonly [{
|
|
559
559
|
readonly length: readonly [{
|
|
560
560
|
readonly keys: readonly [{
|
|
561
561
|
readonly var: "state.votes";
|
|
@@ -599,7 +599,7 @@ export declare const govSimpleDef: {
|
|
|
599
599
|
readonly eventName: "dissolve";
|
|
600
600
|
readonly guard: {
|
|
601
601
|
readonly and: readonly [{
|
|
602
|
-
readonly
|
|
602
|
+
readonly '>': readonly [{
|
|
603
603
|
readonly length: readonly [{
|
|
604
604
|
readonly keys: readonly [{
|
|
605
605
|
readonly var: "state.members";
|
|
@@ -105,7 +105,7 @@ export declare const govUniversalDef: {
|
|
|
105
105
|
readonly to: "VOTING";
|
|
106
106
|
readonly eventName: "propose";
|
|
107
107
|
readonly guard: {
|
|
108
|
-
readonly
|
|
108
|
+
readonly '==': readonly [1, 1];
|
|
109
109
|
};
|
|
110
110
|
readonly effect: {
|
|
111
111
|
readonly merge: readonly [{
|
|
@@ -127,7 +127,7 @@ export declare const govUniversalDef: {
|
|
|
127
127
|
readonly to: "VOTING";
|
|
128
128
|
readonly eventName: "vote";
|
|
129
129
|
readonly guard: {
|
|
130
|
-
readonly
|
|
130
|
+
readonly '==': readonly [1, 1];
|
|
131
131
|
};
|
|
132
132
|
readonly effect: {
|
|
133
133
|
readonly merge: readonly [{
|
|
@@ -153,7 +153,7 @@ export declare const govUniversalDef: {
|
|
|
153
153
|
readonly to: "ACTIVE";
|
|
154
154
|
readonly eventName: "finalize";
|
|
155
155
|
readonly guard: {
|
|
156
|
-
readonly
|
|
156
|
+
readonly '==': readonly [1, 1];
|
|
157
157
|
};
|
|
158
158
|
readonly effect: {
|
|
159
159
|
readonly merge: readonly [{
|
|
@@ -176,7 +176,7 @@ export declare const govUniversalDef: {
|
|
|
176
176
|
readonly to: "DISSOLVED";
|
|
177
177
|
readonly eventName: "dissolve";
|
|
178
178
|
readonly guard: {
|
|
179
|
-
readonly
|
|
179
|
+
readonly '==': readonly [1, 1];
|
|
180
180
|
};
|
|
181
181
|
readonly effect: {
|
|
182
182
|
readonly merge: readonly [{
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
*/
|
|
8
|
-
import { State } from
|
|
9
|
-
import { AttestationType } from
|
|
8
|
+
import { State } from '../../generated/ottochain/apps/identity/v1/identity.js';
|
|
9
|
+
import { AttestationType } from '../../generated/ottochain/apps/identity/v1/attestation.js';
|
|
10
10
|
/**
|
|
11
11
|
* Valid transitions for each identity state.
|
|
12
12
|
* Maps current state to allowed event names.
|