@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.
Files changed (227) hide show
  1. package/dist/cjs/apps/compute/index.js +33 -0
  2. package/dist/cjs/apps/compute/state-machines/compute-rule110.js +164 -0
  3. package/dist/cjs/apps/compute/state-machines/index.js +9 -0
  4. package/dist/cjs/apps/contracts/index.js +1 -1
  5. package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +126 -148
  6. package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +153 -174
  7. package/dist/cjs/apps/contracts/state-machines/contract-universal.js +46 -58
  8. package/dist/cjs/apps/corporate/state-machines/corp-board.js +415 -481
  9. package/dist/cjs/apps/corporate/state-machines/corp-entity.js +368 -440
  10. package/dist/cjs/apps/corporate/state-machines/corp-securities.js +532 -647
  11. package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +499 -603
  12. package/dist/cjs/apps/governance/index.js +7 -7
  13. package/dist/cjs/apps/governance/state-machines/dao-multisig.js +170 -209
  14. package/dist/cjs/apps/governance/state-machines/dao-reputation.js +161 -214
  15. package/dist/cjs/apps/governance/state-machines/dao-single.js +92 -92
  16. package/dist/cjs/apps/governance/state-machines/dao-token.js +169 -223
  17. package/dist/cjs/apps/governance/state-machines/governance-simple.js +185 -217
  18. package/dist/cjs/apps/governance/state-machines/governance-universal.js +64 -64
  19. package/dist/cjs/apps/identity/constants.js +16 -24
  20. package/dist/cjs/apps/identity/index.js +1 -1
  21. package/dist/cjs/apps/identity/state-machines/identity-agent.js +124 -158
  22. package/dist/cjs/apps/identity/state-machines/identity-oracle.js +151 -169
  23. package/dist/cjs/apps/identity/state-machines/identity-registry.js +89 -115
  24. package/dist/cjs/apps/identity/state-machines/identity-universal.js +51 -57
  25. package/dist/cjs/apps/index.js +4 -1
  26. package/dist/cjs/apps/lending/assets.js +41 -17
  27. package/dist/cjs/apps/lending/credit-scoring.js +4 -4
  28. package/dist/cjs/apps/lending/eligibility.js +9 -25
  29. package/dist/cjs/apps/lending/index.js +1 -1
  30. package/dist/cjs/apps/lending/state-machines/lending-zk-loan.js +177 -156
  31. package/dist/cjs/apps/markets/index.js +1 -1
  32. package/dist/cjs/apps/markets/state-machines/market-auction.js +115 -134
  33. package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +122 -137
  34. package/dist/cjs/apps/markets/state-machines/market-group-buy.js +158 -177
  35. package/dist/cjs/apps/markets/state-machines/market-prediction.js +193 -227
  36. package/dist/cjs/apps/markets/state-machines/market-universal.js +65 -80
  37. package/dist/cjs/apps/oracles/index.js +1 -1
  38. package/dist/cjs/apps/privacy/index.js +67 -0
  39. package/dist/cjs/apps/privacy/state-machines/index.js +17 -0
  40. package/dist/cjs/apps/privacy/state-machines/mixer-ddhRing.js +286 -0
  41. package/dist/cjs/apps/privacy/state-machines/note-pool.js +476 -0
  42. package/dist/cjs/apps/staked-pool/assets.js +103 -0
  43. package/dist/cjs/apps/staked-pool/base.js +498 -0
  44. package/dist/cjs/apps/staked-pool/consumer.js +55 -0
  45. package/dist/cjs/apps/staked-pool/index.js +83 -0
  46. package/dist/cjs/apps/staked-pool/state-machines/index.js +12 -0
  47. package/dist/cjs/apps/staked-pool/state-machines/staked-pool-base.js +49 -0
  48. package/dist/cjs/apps/staked-pool/state-machines/staked-pool-oracle.js +131 -0
  49. package/dist/cjs/generated/google/protobuf/struct.js +1 -1
  50. package/dist/cjs/generated/google/protobuf/timestamp.js +1 -1
  51. package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +1 -1
  52. package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
  53. package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +1 -1
  54. package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +1 -1
  55. package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +1 -1
  56. package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +1 -1
  57. package/dist/cjs/generated/ottochain/v1/common.js +1 -1
  58. package/dist/cjs/generated/ottochain/v1/fiber.js +40 -2
  59. package/dist/cjs/generated/ottochain/v1/messages.js +1 -1
  60. package/dist/cjs/generated/ottochain/v1/records.js +1 -1
  61. package/dist/cjs/index.js +21 -3
  62. package/dist/cjs/ottochain/genesis-manifest.js +6 -0
  63. package/dist/cjs/ottochain/metagraph-client.js +63 -11
  64. package/dist/cjs/ottochain/snapshot.js +2 -4
  65. package/dist/cjs/ottochain/transaction.js +10 -0
  66. package/dist/cjs/privacy/sealed-bid.js +85 -82
  67. package/dist/cjs/privacy/shield-app.js +32 -32
  68. package/dist/cjs/schema/effects.js +145 -1
  69. package/dist/cjs/schema/fiber-app.js +139 -5
  70. package/dist/cjs/schema/guard-lint.js +3 -12
  71. package/dist/cjs/schema/guards.js +38 -38
  72. package/dist/cjs/templates/asset-policy.js +190 -0
  73. package/dist/cjs/templates/index.js +86 -0
  74. package/dist/cjs/templates/machine.js +130 -0
  75. package/dist/cjs/templates/migration.js +39 -0
  76. package/dist/cjs/templates/state-shape.js +38 -0
  77. package/dist/cjs/validation.js +1 -3
  78. package/dist/esm/apps/compute/index.js +29 -0
  79. package/dist/esm/apps/compute/state-machines/compute-rule110.js +161 -0
  80. package/dist/esm/apps/compute/state-machines/index.js +5 -0
  81. package/dist/esm/apps/contracts/index.js +4 -4
  82. package/dist/esm/apps/contracts/state-machines/contract-agreement.js +128 -150
  83. package/dist/esm/apps/contracts/state-machines/contract-escrow.js +155 -176
  84. package/dist/esm/apps/contracts/state-machines/contract-universal.js +47 -59
  85. package/dist/esm/apps/corporate/index.js +2 -2
  86. package/dist/esm/apps/corporate/state-machines/corp-board.js +418 -484
  87. package/dist/esm/apps/corporate/state-machines/corp-entity.js +371 -443
  88. package/dist/esm/apps/corporate/state-machines/corp-securities.js +535 -650
  89. package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +502 -606
  90. package/dist/esm/apps/governance/index.js +10 -10
  91. package/dist/esm/apps/governance/state-machines/dao-multisig.js +172 -211
  92. package/dist/esm/apps/governance/state-machines/dao-reputation.js +163 -216
  93. package/dist/esm/apps/governance/state-machines/dao-single.js +94 -94
  94. package/dist/esm/apps/governance/state-machines/dao-token.js +171 -225
  95. package/dist/esm/apps/governance/state-machines/governance-simple.js +187 -219
  96. package/dist/esm/apps/governance/state-machines/governance-universal.js +65 -65
  97. package/dist/esm/apps/identity/constants.js +18 -26
  98. package/dist/esm/apps/identity/index.js +8 -8
  99. package/dist/esm/apps/identity/state-machines/identity-agent.js +125 -159
  100. package/dist/esm/apps/identity/state-machines/identity-oracle.js +153 -171
  101. package/dist/esm/apps/identity/state-machines/identity-registry.js +91 -117
  102. package/dist/esm/apps/identity/state-machines/identity-universal.js +52 -58
  103. package/dist/esm/apps/index.js +9 -6
  104. package/dist/esm/apps/lending/assets.js +41 -17
  105. package/dist/esm/apps/lending/credit-scoring.js +6 -6
  106. package/dist/esm/apps/lending/eligibility.js +10 -26
  107. package/dist/esm/apps/lending/index.js +5 -5
  108. package/dist/esm/apps/lending/state-machines/lending-zk-loan.js +178 -157
  109. package/dist/esm/apps/markets/index.js +5 -5
  110. package/dist/esm/apps/markets/state-machines/market-auction.js +117 -136
  111. package/dist/esm/apps/markets/state-machines/market-crowdfund.js +124 -139
  112. package/dist/esm/apps/markets/state-machines/market-group-buy.js +160 -179
  113. package/dist/esm/apps/markets/state-machines/market-prediction.js +195 -229
  114. package/dist/esm/apps/markets/state-machines/market-universal.js +66 -81
  115. package/dist/esm/apps/oracles/index.js +3 -3
  116. package/dist/esm/apps/privacy/index.js +56 -0
  117. package/dist/esm/apps/privacy/state-machines/index.js +6 -0
  118. package/dist/esm/apps/privacy/state-machines/mixer-ddhRing.js +282 -0
  119. package/dist/esm/apps/privacy/state-machines/note-pool.js +470 -0
  120. package/dist/esm/apps/staked-pool/assets.js +91 -0
  121. package/dist/esm/apps/staked-pool/base.js +493 -0
  122. package/dist/esm/apps/staked-pool/consumer.js +49 -0
  123. package/dist/esm/apps/staked-pool/index.js +60 -0
  124. package/dist/esm/apps/staked-pool/state-machines/index.js +6 -0
  125. package/dist/esm/apps/staked-pool/state-machines/staked-pool-base.js +46 -0
  126. package/dist/esm/apps/staked-pool/state-machines/staked-pool-oracle.js +127 -0
  127. package/dist/esm/generated/google/protobuf/struct.js +1 -1
  128. package/dist/esm/generated/google/protobuf/timestamp.js +1 -1
  129. package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +1 -1
  130. package/dist/esm/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
  131. package/dist/esm/generated/ottochain/apps/governance/v1/governance.js +1 -1
  132. package/dist/esm/generated/ottochain/apps/identity/v1/attestation.js +1 -1
  133. package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +1 -1
  134. package/dist/esm/generated/ottochain/apps/markets/v1/market.js +1 -1
  135. package/dist/esm/generated/ottochain/v1/common.js +1 -1
  136. package/dist/esm/generated/ottochain/v1/fiber.js +40 -2
  137. package/dist/esm/generated/ottochain/v1/messages.js +1 -1
  138. package/dist/esm/generated/ottochain/v1/records.js +1 -1
  139. package/dist/esm/index.js +10 -4
  140. package/dist/esm/ottochain/genesis-manifest.js +6 -0
  141. package/dist/esm/ottochain/metagraph-client.js +63 -11
  142. package/dist/esm/ottochain/snapshot.js +2 -4
  143. package/dist/esm/ottochain/transaction.js +8 -0
  144. package/dist/esm/privacy/index.js +2 -2
  145. package/dist/esm/privacy/sealed-bid.js +87 -84
  146. package/dist/esm/privacy/shield-app.js +33 -33
  147. package/dist/esm/schema/effects.js +137 -0
  148. package/dist/esm/schema/fiber-app.js +134 -5
  149. package/dist/esm/schema/guard-lint.js +3 -12
  150. package/dist/esm/schema/guards.js +36 -37
  151. package/dist/esm/templates/asset-policy.js +182 -0
  152. package/dist/esm/templates/index.js +41 -0
  153. package/dist/esm/templates/machine.js +125 -0
  154. package/dist/esm/templates/migration.js +34 -0
  155. package/dist/esm/templates/state-shape.js +34 -0
  156. package/dist/esm/validation.js +1 -3
  157. package/dist/esm/zk/index.js +4 -4
  158. package/dist/types/apps/compute/index.d.ts +176 -0
  159. package/dist/types/apps/compute/state-machines/compute-rule110.d.ts +157 -0
  160. package/dist/types/apps/compute/state-machines/index.d.ts +5 -0
  161. package/dist/types/apps/contracts/index.d.ts +14 -14
  162. package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +3 -3
  163. package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +3 -3
  164. package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +4 -4
  165. package/dist/types/apps/corporate/index.d.ts +162 -162
  166. package/dist/types/apps/corporate/state-machines/corp-board.d.ts +88 -88
  167. package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +14 -14
  168. package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +18 -18
  169. package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +43 -43
  170. package/dist/types/apps/governance/index.d.ts +81 -81
  171. package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +16 -16
  172. package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +22 -22
  173. package/dist/types/apps/governance/state-machines/dao-token.d.ts +21 -21
  174. package/dist/types/apps/governance/state-machines/governance-simple.d.ts +11 -11
  175. package/dist/types/apps/governance/state-machines/governance-universal.d.ts +4 -4
  176. package/dist/types/apps/identity/constants.d.ts +2 -2
  177. package/dist/types/apps/identity/index.d.ts +70 -70
  178. package/dist/types/apps/identity/state-machines/identity-agent.d.ts +23 -23
  179. package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +11 -11
  180. package/dist/types/apps/identity/state-machines/identity-registry.d.ts +27 -27
  181. package/dist/types/apps/identity/state-machines/identity-universal.d.ts +4 -4
  182. package/dist/types/apps/index.d.ts +9 -6
  183. package/dist/types/apps/lending/assets.d.ts +2 -2
  184. package/dist/types/apps/lending/credit-scoring.d.ts +5 -5
  185. package/dist/types/apps/lending/eligibility.d.ts +2 -2
  186. package/dist/types/apps/lending/index.d.ts +20 -12
  187. package/dist/types/apps/lending/state-machines/lending-zk-loan.d.ts +15 -7
  188. package/dist/types/apps/markets/index.d.ts +76 -76
  189. package/dist/types/apps/markets/state-machines/market-auction.d.ts +12 -12
  190. package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +19 -19
  191. package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +18 -18
  192. package/dist/types/apps/markets/state-machines/market-prediction.d.ts +15 -15
  193. package/dist/types/apps/markets/state-machines/market-universal.d.ts +7 -7
  194. package/dist/types/apps/oracles/index.d.ts +1 -1
  195. package/dist/types/apps/privacy/index.d.ts +328 -0
  196. package/dist/types/apps/privacy/state-machines/index.d.ts +6 -0
  197. package/dist/types/apps/privacy/state-machines/mixer-ddhRing.d.ts +337 -0
  198. package/dist/types/apps/privacy/state-machines/note-pool.d.ts +196 -0
  199. package/dist/types/apps/staked-pool/assets.d.ts +53 -0
  200. package/dist/types/apps/staked-pool/base.d.ts +80 -0
  201. package/dist/types/apps/staked-pool/consumer.d.ts +29 -0
  202. package/dist/types/apps/staked-pool/index.d.ts +51 -0
  203. package/dist/types/apps/staked-pool/state-machines/index.d.ts +6 -0
  204. package/dist/types/apps/staked-pool/state-machines/staked-pool-base.d.ts +8 -0
  205. package/dist/types/apps/staked-pool/state-machines/staked-pool-oracle.d.ts +34 -0
  206. package/dist/types/generated/openapi.d.ts +13 -0
  207. package/dist/types/generated/ottochain/v1/fiber.d.ts +7 -0
  208. package/dist/types/index.d.ts +3 -3
  209. package/dist/types/openapi.d.ts +4 -2
  210. package/dist/types/ottochain/genesis-manifest.d.ts +6 -0
  211. package/dist/types/ottochain/index.d.ts +1 -1
  212. package/dist/types/ottochain/metagraph-client.d.ts +69 -15
  213. package/dist/types/ottochain/transaction.d.ts +9 -1
  214. package/dist/types/ottochain/types.d.ts +1 -1
  215. package/dist/types/privacy/index.d.ts +2 -2
  216. package/dist/types/privacy/sealed-bid.d.ts +9 -9
  217. package/dist/types/privacy/shield-app.d.ts +1 -1
  218. package/dist/types/schema/effects.d.ts +132 -0
  219. package/dist/types/schema/fiber-app.d.ts +281 -0
  220. package/dist/types/schema/guards.d.ts +12 -0
  221. package/dist/types/templates/asset-policy.d.ts +119 -0
  222. package/dist/types/templates/index.d.ts +26 -0
  223. package/dist/types/templates/machine.d.ts +139 -0
  224. package/dist/types/templates/migration.d.ts +34 -0
  225. package/dist/types/templates/state-shape.d.ts +30 -0
  226. package/dist/types/zk/index.d.ts +4 -4
  227. 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 "+": 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 "!": 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 "<": 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 ">=": 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 ">": 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 "+": 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 ">": 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 "+": 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 ">=": readonly [{
476
+ readonly '>=': readonly [{
477
477
  readonly var: "event.newThreshold";
478
478
  }, 1];
479
479
  }, {
480
- readonly "<=": 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 "+": 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 ">=": 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 "===": 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 "===": 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 "!==": 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 ">": 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 ">=": 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 "+": 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 ">=": readonly [{
267
+ readonly '>=': readonly [{
268
268
  readonly var: "event.agentReputation";
269
269
  }, {
270
270
  readonly var: "state.voteThreshold";
271
271
  }];
272
272
  }, {
273
- readonly "!": readonly [import("../../../schema/guards.js").GuardRule];
273
+ readonly '!': readonly [import("../../../schema/guards.js").GuardRule];
274
274
  }, {
275
- readonly "!": readonly [import("../../../schema/guards.js").GuardRule];
275
+ readonly '!': readonly [import("../../../schema/guards.js").GuardRule];
276
276
  }, {
277
- readonly "!": readonly [import("../../../schema/guards.js").GuardRule];
277
+ readonly '!': readonly [import("../../../schema/guards.js").GuardRule];
278
278
  }, {
279
- readonly "<=": 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 "===": 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 "===": 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 ">": readonly [{
346
+ readonly '>': readonly [{
347
347
  readonly var: "$ordinal";
348
348
  }, {
349
349
  readonly var: "state.proposal.deadline";
350
350
  }];
351
351
  }, {
352
- readonly ">": 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 ">=": readonly [{
363
- readonly "+": 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 ">": 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 "<=": 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 "<": readonly [{
436
- readonly "+": 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 ">=": readonly [{
482
+ readonly '>=': readonly [{
483
483
  readonly var: "event.agentReputation";
484
484
  }, {
485
485
  readonly var: "state.memberThreshold";
486
486
  }];
487
487
  }, {
488
- readonly "!": 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 "!==": 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 ">=": 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 "+": 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 ">=": 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 "+": 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 ">": 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 "!": 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 "<=": 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 "===": readonly [{
314
+ readonly '===': readonly [{
315
315
  readonly var: "event.vote";
316
316
  }, "for"];
317
317
  }, {
318
318
  readonly for: {
319
- readonly "+": 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 "===": readonly [{
330
+ readonly '===': readonly [{
331
331
  readonly var: "event.vote";
332
332
  }, "against"];
333
333
  }, {
334
334
  readonly against: {
335
- readonly "+": 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 "+": 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 ">": readonly [{
391
+ readonly '>': readonly [{
392
392
  readonly var: "$ordinal";
393
393
  }, {
394
394
  readonly var: "state.proposal.votingEndsAt";
395
395
  }];
396
396
  }, {
397
- readonly ">": 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 ">=": readonly [{
404
- readonly "+": 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 "+": 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 ">=": 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 ">": 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 "<=": 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 "<": readonly [{
504
- readonly "+": 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 ">": 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 "+": 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 "!": 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 ">=": 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 "===": readonly [{
354
+ readonly '===': readonly [{
355
355
  readonly var: "vote";
356
356
  }, "for"];
357
357
  }];
358
358
  }];
359
359
  }, {
360
- readonly "*": 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 "<": 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 "===": readonly [{
413
+ readonly '===': readonly [{
414
414
  readonly var: "vote";
415
415
  }, "for"];
416
416
  }];
417
417
  }];
418
418
  }, {
419
- readonly "*": 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 "!": 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 ">=": 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 ">": 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 "==": readonly [1, 1];
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 "==": readonly [1, 1];
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 "==": readonly [1, 1];
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 "==": readonly [1, 1];
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 "../../generated/ottochain/apps/identity/v1/identity.js";
9
- import { AttestationType } from "../../generated/ottochain/apps/identity/v1/attestation.js";
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.