@ottochain/sdk 2.3.0 → 2.5.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 (287) 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 +16 -9
  5. package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +134 -161
  6. package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +192 -170
  7. package/dist/cjs/apps/contracts/state-machines/contract-universal.js +46 -58
  8. package/dist/cjs/apps/corporate/index.js +2 -2
  9. package/dist/cjs/apps/corporate/state-machines/corp-board.js +500 -456
  10. package/dist/cjs/apps/corporate/state-machines/corp-entity.js +487 -361
  11. package/dist/cjs/apps/corporate/state-machines/corp-securities.js +769 -576
  12. package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +567 -557
  13. package/dist/cjs/apps/governance/index.js +21 -21
  14. package/dist/cjs/apps/governance/state-machines/dao-multisig.js +188 -209
  15. package/dist/cjs/apps/governance/state-machines/dao-reputation.js +181 -228
  16. package/dist/cjs/apps/governance/state-machines/dao-single.js +105 -88
  17. package/dist/cjs/apps/governance/state-machines/dao-token.js +199 -227
  18. package/dist/cjs/apps/governance/state-machines/governance-simple.js +231 -231
  19. package/dist/cjs/apps/governance/state-machines/governance-universal.js +64 -64
  20. package/dist/cjs/apps/identity/constants.js +55 -22
  21. package/dist/cjs/apps/identity/index.js +28 -12
  22. package/dist/cjs/apps/identity/state-machines/identity-agent.js +124 -158
  23. package/dist/cjs/apps/identity/state-machines/identity-oracle.js +158 -173
  24. package/dist/cjs/apps/identity/state-machines/identity-registry.js +262 -0
  25. package/dist/cjs/apps/identity/state-machines/identity-universal.js +51 -57
  26. package/dist/cjs/apps/identity/state-machines/index.js +3 -1
  27. package/dist/cjs/apps/index.js +22 -8
  28. package/dist/cjs/apps/lending/assets.js +247 -0
  29. package/dist/cjs/apps/lending/credit-scoring.js +87 -0
  30. package/dist/cjs/apps/lending/eligibility.js +105 -0
  31. package/dist/cjs/apps/lending/index.js +91 -0
  32. package/dist/cjs/apps/lending/state-machines/index.js +9 -0
  33. package/dist/cjs/apps/lending/state-machines/lending-zk-loan.js +433 -0
  34. package/dist/cjs/apps/markets/index.js +22 -12
  35. package/dist/cjs/apps/markets/state-machines/market-auction.js +116 -134
  36. package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +131 -141
  37. package/dist/cjs/apps/markets/state-machines/market-group-buy.js +163 -184
  38. package/dist/cjs/apps/markets/state-machines/market-prediction.js +226 -233
  39. package/dist/cjs/apps/markets/state-machines/market-universal.js +65 -80
  40. package/dist/cjs/apps/oracles/index.js +3 -3
  41. package/dist/cjs/apps/privacy/index.js +67 -0
  42. package/dist/cjs/apps/privacy/state-machines/index.js +17 -0
  43. package/dist/cjs/apps/privacy/state-machines/mixer-ddhRing.js +286 -0
  44. package/dist/cjs/apps/privacy/state-machines/note-pool.js +476 -0
  45. package/dist/cjs/apps/staked-pool/assets.js +103 -0
  46. package/dist/cjs/apps/staked-pool/base.js +498 -0
  47. package/dist/cjs/apps/staked-pool/consumer.js +55 -0
  48. package/dist/cjs/apps/staked-pool/index.js +83 -0
  49. package/dist/cjs/apps/staked-pool/state-machines/index.js +12 -0
  50. package/dist/cjs/apps/staked-pool/state-machines/staked-pool-base.js +49 -0
  51. package/dist/cjs/apps/staked-pool/state-machines/staked-pool-oracle.js +131 -0
  52. package/dist/cjs/errors.js +3 -3
  53. package/dist/cjs/generated/google/protobuf/struct.js +5 -5
  54. package/dist/cjs/generated/google/protobuf/timestamp.js +1 -1
  55. package/dist/cjs/generated/index.js +11 -7
  56. package/dist/cjs/generated/openapi.js +6 -0
  57. package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +51 -51
  58. package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +20 -21
  59. package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +14 -14
  60. package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +5 -5
  61. package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +125 -131
  62. package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +108 -108
  63. package/dist/cjs/generated/ottochain/v1/common.js +5 -5
  64. package/dist/cjs/generated/ottochain/v1/fiber.js +44 -6
  65. package/dist/cjs/generated/ottochain/v1/messages.js +1 -1
  66. package/dist/cjs/generated/ottochain/v1/records.js +1 -1
  67. package/dist/cjs/index.js +58 -7
  68. package/dist/cjs/openapi.js +2 -0
  69. package/dist/cjs/ottochain/drop-nulls.js +1 -2
  70. package/dist/cjs/ottochain/genesis-manifest.js +17 -11
  71. package/dist/cjs/ottochain/index.js +23 -13
  72. package/dist/cjs/ottochain/metagraph-client.js +81 -16
  73. package/dist/cjs/ottochain/snapshot.js +13 -16
  74. package/dist/cjs/ottochain/transaction.js +67 -14
  75. package/dist/cjs/ottochain/types.js +16 -2
  76. package/dist/cjs/privacy/index.js +14 -0
  77. package/dist/cjs/privacy/sealed-bid.js +213 -0
  78. package/dist/cjs/privacy/shield-app.js +131 -0
  79. package/dist/cjs/schema/effects.js +156 -0
  80. package/dist/cjs/schema/fiber-app.js +150 -15
  81. package/dist/cjs/schema/guard-lint.js +343 -0
  82. package/dist/cjs/schema/guards.js +246 -0
  83. package/dist/cjs/signing.js +80 -0
  84. package/dist/cjs/templates/asset-policy.js +190 -0
  85. package/dist/cjs/templates/index.js +86 -0
  86. package/dist/cjs/templates/machine.js +130 -0
  87. package/dist/cjs/templates/migration.js +39 -0
  88. package/dist/cjs/templates/state-shape.js +38 -0
  89. package/dist/cjs/types.js +2 -3
  90. package/dist/cjs/validation.js +9 -11
  91. package/dist/cjs/verify.js +9 -4
  92. package/dist/cjs/zk/commit.js +53 -0
  93. package/dist/cjs/zk/guard.js +107 -0
  94. package/dist/cjs/zk/index.js +48 -0
  95. package/dist/cjs/zk/preimage.js +37 -0
  96. package/dist/cjs/zk/prover.js +87 -0
  97. package/dist/cjs/zk/registry.js +62 -0
  98. package/dist/cjs/zk/types.js +28 -0
  99. package/dist/cjs/zk/witness.js +19 -0
  100. package/dist/esm/apps/compute/index.js +29 -0
  101. package/dist/esm/apps/compute/state-machines/compute-rule110.js +161 -0
  102. package/dist/esm/apps/compute/state-machines/index.js +5 -0
  103. package/dist/esm/apps/contracts/index.js +9 -5
  104. package/dist/esm/apps/contracts/state-machines/contract-agreement.js +135 -162
  105. package/dist/esm/apps/contracts/state-machines/contract-escrow.js +193 -171
  106. package/dist/esm/apps/contracts/state-machines/contract-universal.js +47 -59
  107. package/dist/esm/apps/corporate/index.js +2 -2
  108. package/dist/esm/apps/corporate/state-machines/corp-board.js +501 -457
  109. package/dist/esm/apps/corporate/state-machines/corp-entity.js +488 -362
  110. package/dist/esm/apps/corporate/state-machines/corp-securities.js +770 -577
  111. package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +568 -558
  112. package/dist/esm/apps/governance/index.js +10 -10
  113. package/dist/esm/apps/governance/state-machines/dao-multisig.js +189 -210
  114. package/dist/esm/apps/governance/state-machines/dao-reputation.js +182 -229
  115. package/dist/esm/apps/governance/state-machines/dao-single.js +106 -89
  116. package/dist/esm/apps/governance/state-machines/dao-token.js +200 -228
  117. package/dist/esm/apps/governance/state-machines/governance-simple.js +232 -232
  118. package/dist/esm/apps/governance/state-machines/governance-universal.js +65 -65
  119. package/dist/esm/apps/identity/constants.js +52 -21
  120. package/dist/esm/apps/identity/index.js +14 -9
  121. package/dist/esm/apps/identity/state-machines/identity-agent.js +125 -159
  122. package/dist/esm/apps/identity/state-machines/identity-oracle.js +159 -174
  123. package/dist/esm/apps/identity/state-machines/identity-registry.js +259 -0
  124. package/dist/esm/apps/identity/state-machines/identity-universal.js +52 -58
  125. package/dist/esm/apps/identity/state-machines/index.js +1 -0
  126. package/dist/esm/apps/index.js +9 -5
  127. package/dist/esm/apps/lending/assets.js +231 -0
  128. package/dist/esm/apps/lending/credit-scoring.js +81 -0
  129. package/dist/esm/apps/lending/eligibility.js +99 -0
  130. package/dist/esm/apps/lending/index.js +69 -0
  131. package/dist/esm/apps/lending/state-machines/index.js +5 -0
  132. package/dist/esm/apps/lending/state-machines/lending-zk-loan.js +430 -0
  133. package/dist/esm/apps/markets/index.js +11 -7
  134. package/dist/esm/apps/markets/state-machines/market-auction.js +117 -135
  135. package/dist/esm/apps/markets/state-machines/market-crowdfund.js +132 -142
  136. package/dist/esm/apps/markets/state-machines/market-group-buy.js +164 -185
  137. package/dist/esm/apps/markets/state-machines/market-prediction.js +227 -234
  138. package/dist/esm/apps/markets/state-machines/market-universal.js +66 -81
  139. package/dist/esm/apps/oracles/index.js +3 -3
  140. package/dist/esm/apps/privacy/index.js +56 -0
  141. package/dist/esm/apps/privacy/state-machines/index.js +6 -0
  142. package/dist/esm/apps/privacy/state-machines/mixer-ddhRing.js +282 -0
  143. package/dist/esm/apps/privacy/state-machines/note-pool.js +470 -0
  144. package/dist/esm/apps/staked-pool/assets.js +91 -0
  145. package/dist/esm/apps/staked-pool/base.js +493 -0
  146. package/dist/esm/apps/staked-pool/consumer.js +49 -0
  147. package/dist/esm/apps/staked-pool/index.js +60 -0
  148. package/dist/esm/apps/staked-pool/state-machines/index.js +6 -0
  149. package/dist/esm/apps/staked-pool/state-machines/staked-pool-base.js +46 -0
  150. package/dist/esm/apps/staked-pool/state-machines/staked-pool-oracle.js +127 -0
  151. package/dist/esm/generated/google/protobuf/struct.js +1 -1
  152. package/dist/esm/generated/google/protobuf/timestamp.js +1 -1
  153. package/dist/esm/generated/index.js +9 -5
  154. package/dist/esm/generated/openapi.js +5 -0
  155. package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +47 -47
  156. package/dist/esm/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
  157. package/dist/esm/generated/ottochain/apps/governance/v1/governance.js +1 -1
  158. package/dist/esm/generated/ottochain/apps/identity/v1/attestation.js +1 -1
  159. package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +115 -121
  160. package/dist/esm/generated/ottochain/apps/markets/v1/market.js +101 -101
  161. package/dist/esm/generated/ottochain/v1/common.js +1 -1
  162. package/dist/esm/generated/ottochain/v1/fiber.js +40 -2
  163. package/dist/esm/generated/ottochain/v1/messages.js +1 -1
  164. package/dist/esm/generated/ottochain/v1/records.js +1 -1
  165. package/dist/esm/index.js +28 -3
  166. package/dist/esm/openapi.js +1 -0
  167. package/dist/esm/ottochain/genesis-manifest.js +15 -9
  168. package/dist/esm/ottochain/index.js +2 -3
  169. package/dist/esm/ottochain/metagraph-client.js +81 -16
  170. package/dist/esm/ottochain/snapshot.js +6 -8
  171. package/dist/esm/ottochain/transaction.js +51 -3
  172. package/dist/esm/ottochain/types.js +15 -1
  173. package/dist/esm/privacy/index.js +6 -0
  174. package/dist/esm/privacy/sealed-bid.js +209 -0
  175. package/dist/esm/privacy/shield-app.js +127 -0
  176. package/dist/esm/schema/effects.js +145 -0
  177. package/dist/esm/schema/fiber-app.js +139 -8
  178. package/dist/esm/schema/guard-lint.js +337 -0
  179. package/dist/esm/schema/guards.js +228 -0
  180. package/dist/esm/signing.js +74 -0
  181. package/dist/esm/templates/asset-policy.js +182 -0
  182. package/dist/esm/templates/index.js +41 -0
  183. package/dist/esm/templates/machine.js +125 -0
  184. package/dist/esm/templates/migration.js +34 -0
  185. package/dist/esm/templates/state-shape.js +34 -0
  186. package/dist/esm/validation.js +1 -3
  187. package/dist/esm/verify.js +8 -2
  188. package/dist/esm/zk/commit.js +44 -0
  189. package/dist/esm/zk/guard.js +99 -0
  190. package/dist/esm/zk/index.js +19 -0
  191. package/dist/esm/zk/preimage.js +30 -0
  192. package/dist/esm/zk/prover.js +82 -0
  193. package/dist/esm/zk/registry.js +55 -0
  194. package/dist/esm/zk/types.js +25 -0
  195. package/dist/esm/zk/witness.js +15 -0
  196. package/dist/types/apps/compute/index.d.ts +176 -0
  197. package/dist/types/apps/compute/state-machines/compute-rule110.d.ts +157 -0
  198. package/dist/types/apps/compute/state-machines/index.d.ts +5 -0
  199. package/dist/types/apps/contracts/index.d.ts +81 -221
  200. package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +23 -98
  201. package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +49 -115
  202. package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +4 -4
  203. package/dist/types/apps/corporate/index.d.ts +1176 -440
  204. package/dist/types/apps/corporate/state-machines/corp-board.d.ts +271 -135
  205. package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +279 -74
  206. package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +373 -149
  207. package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +252 -80
  208. package/dist/types/apps/governance/index.d.ts +368 -470
  209. package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +92 -107
  210. package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +61 -85
  211. package/dist/types/apps/governance/state-machines/dao-single.d.ts +25 -47
  212. package/dist/types/apps/governance/state-machines/dao-token.d.ts +79 -68
  213. package/dist/types/apps/governance/state-machines/governance-simple.d.ts +95 -125
  214. package/dist/types/apps/governance/state-machines/governance-universal.d.ts +6 -6
  215. package/dist/types/apps/identity/constants.d.ts +33 -5
  216. package/dist/types/apps/identity/index.d.ts +415 -131
  217. package/dist/types/apps/identity/state-machines/identity-agent.d.ts +23 -23
  218. package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +27 -98
  219. package/dist/types/apps/identity/state-machines/identity-registry.d.ts +379 -0
  220. package/dist/types/apps/identity/state-machines/identity-universal.d.ts +4 -4
  221. package/dist/types/apps/identity/state-machines/index.d.ts +1 -0
  222. package/dist/types/apps/index.d.ts +9 -5
  223. package/dist/types/apps/lending/assets.d.ts +258 -0
  224. package/dist/types/apps/lending/credit-scoring.d.ts +80 -0
  225. package/dist/types/apps/lending/eligibility.d.ts +83 -0
  226. package/dist/types/apps/lending/index.d.ts +556 -0
  227. package/dist/types/apps/lending/state-machines/index.d.ts +5 -0
  228. package/dist/types/apps/lending/state-machines/lending-zk-loan.d.ts +536 -0
  229. package/dist/types/apps/markets/index.d.ts +181 -276
  230. package/dist/types/apps/markets/state-machines/market-auction.d.ts +25 -49
  231. package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +35 -53
  232. package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +35 -61
  233. package/dist/types/apps/markets/state-machines/market-prediction.d.ts +65 -86
  234. package/dist/types/apps/markets/state-machines/market-universal.d.ts +12 -12
  235. package/dist/types/apps/oracles/index.d.ts +1 -1
  236. package/dist/types/apps/privacy/index.d.ts +328 -0
  237. package/dist/types/apps/privacy/state-machines/index.d.ts +6 -0
  238. package/dist/types/apps/privacy/state-machines/mixer-ddhRing.d.ts +337 -0
  239. package/dist/types/apps/privacy/state-machines/note-pool.d.ts +196 -0
  240. package/dist/types/apps/staked-pool/assets.d.ts +53 -0
  241. package/dist/types/apps/staked-pool/base.d.ts +80 -0
  242. package/dist/types/apps/staked-pool/consumer.d.ts +29 -0
  243. package/dist/types/apps/staked-pool/index.d.ts +51 -0
  244. package/dist/types/apps/staked-pool/state-machines/index.d.ts +6 -0
  245. package/dist/types/apps/staked-pool/state-machines/staked-pool-base.d.ts +8 -0
  246. package/dist/types/apps/staked-pool/state-machines/staked-pool-oracle.d.ts +34 -0
  247. package/dist/types/generated/index.d.ts +5 -5
  248. package/dist/types/generated/openapi.d.ts +1270 -0
  249. package/dist/types/generated/ottochain/apps/contracts/v1/contract.d.ts +5 -5
  250. package/dist/types/generated/ottochain/apps/identity/v1/identity.d.ts +12 -12
  251. package/dist/types/generated/ottochain/apps/markets/v1/market.d.ts +11 -11
  252. package/dist/types/generated/ottochain/v1/fiber.d.ts +7 -0
  253. package/dist/types/index.d.ts +7 -3
  254. package/dist/types/openapi.d.ts +24 -0
  255. package/dist/types/ottochain/genesis-manifest.d.ts +11 -5
  256. package/dist/types/ottochain/index.d.ts +5 -6
  257. package/dist/types/ottochain/metagraph-client.d.ts +49 -7
  258. package/dist/types/ottochain/snapshot.d.ts +6 -6
  259. package/dist/types/ottochain/transaction.d.ts +41 -1
  260. package/dist/types/ottochain/types.d.ts +336 -31
  261. package/dist/types/privacy/index.d.ts +6 -0
  262. package/dist/types/privacy/sealed-bid.d.ts +348 -0
  263. package/dist/types/privacy/shield-app.d.ts +48 -0
  264. package/dist/types/schema/effects.d.ts +141 -0
  265. package/dist/types/schema/fiber-app.d.ts +282 -2
  266. package/dist/types/schema/guard-lint.d.ts +111 -0
  267. package/dist/types/schema/guards.d.ts +146 -0
  268. package/dist/types/signing.d.ts +45 -0
  269. package/dist/types/templates/asset-policy.d.ts +119 -0
  270. package/dist/types/templates/index.d.ts +26 -0
  271. package/dist/types/templates/machine.d.ts +139 -0
  272. package/dist/types/templates/migration.d.ts +34 -0
  273. package/dist/types/templates/state-shape.d.ts +30 -0
  274. package/dist/types/validation.d.ts +22 -217
  275. package/dist/types/verify.d.ts +4 -0
  276. package/dist/types/zk/commit.d.ts +28 -0
  277. package/dist/types/zk/guard.d.ts +46 -0
  278. package/dist/types/zk/index.d.ts +19 -0
  279. package/dist/types/zk/preimage.d.ts +10 -0
  280. package/dist/types/zk/prover.d.ts +34 -0
  281. package/dist/types/zk/registry.d.ts +34 -0
  282. package/dist/types/zk/types.d.ts +33 -0
  283. package/dist/types/zk/witness.d.ts +40 -0
  284. package/package.json +47 -15
  285. package/dist/cjs/ottochain/normalize.js +0 -186
  286. package/dist/esm/ottochain/normalize.js +0 -179
  287. package/dist/types/ottochain/normalize.d.ts +0 -79
@@ -19,10 +19,10 @@
19
19
  *
20
20
  * @packageDocumentation
21
21
  */
22
- export { DAOType, DAOStatus, ProposalStatus, VoteChoice, DAOMetadata, Proposal, Vote, VoteTally, SingleOwnerDAO, SingleOwnerAction, OwnershipTransfer, MultisigDAO, MultisigAction, TokenDAO, TokenProposalResult, ThresholdDAO, ThresholdVotes, ThresholdHistoryEntry, CreateDAORequest, ProposeRequest, VoteRequest, ExecuteRequest, dAOTypeFromJSON, dAOTypeToJSON, dAOStatusFromJSON, dAOStatusToJSON, proposalStatusFromJSON, proposalStatusToJSON, voteChoiceFromJSON, voteChoiceToJSON, } from "../../generated/ottochain/apps/governance/v1/governance.js";
23
- import { govUniversalDef, govSimpleDef, daoSingleDef, daoMultisigDef, daoTokenDef, daoReputationDef } from "./state-machines/index.js";
24
- import type { FiberAppDefinition } from "../../schema/fiber-app.js";
25
- export { govUniversalDef, govSimpleDef, daoSingleDef, daoMultisigDef, daoTokenDef, daoReputationDef, };
22
+ export { DAOType, DAOStatus, ProposalStatus, VoteChoice, DAOMetadata, Proposal, Vote, VoteTally, SingleOwnerDAO, SingleOwnerAction, OwnershipTransfer, MultisigDAO, MultisigAction, TokenDAO, TokenProposalResult, ThresholdDAO, ThresholdVotes, ThresholdHistoryEntry, CreateDAORequest, ProposeRequest, VoteRequest, ExecuteRequest, dAOTypeFromJSON, dAOTypeToJSON, dAOStatusFromJSON, dAOStatusToJSON, proposalStatusFromJSON, proposalStatusToJSON, voteChoiceFromJSON, voteChoiceToJSON, } from '../../generated/ottochain/apps/governance/v1/governance.js';
23
+ import { govUniversalDef, govSimpleDef, daoSingleDef, daoMultisigDef, daoTokenDef, daoReputationDef } from './state-machines/index.js';
24
+ import type { FiberAppDefinition } from '../../schema/fiber-app.js';
25
+ export { govUniversalDef, govSimpleDef, daoSingleDef, daoMultisigDef, daoTokenDef, daoReputationDef };
26
26
  /** All governance state machine definitions */
27
27
  export declare const GOVERNANCE_DEFINITIONS: {
28
28
  readonly universal: {
@@ -129,7 +129,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
129
129
  readonly to: "VOTING";
130
130
  readonly eventName: "propose";
131
131
  readonly guard: {
132
- readonly "==": readonly [1, 1];
132
+ readonly '==': readonly [1, 1];
133
133
  };
134
134
  readonly effect: {
135
135
  readonly merge: readonly [{
@@ -140,7 +140,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
140
140
  readonly var: "event.proposal";
141
141
  };
142
142
  readonly proposedAt: {
143
- readonly var: "$timestamp";
143
+ readonly var: "$ordinal";
144
144
  };
145
145
  readonly votes: {};
146
146
  }];
@@ -151,7 +151,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
151
151
  readonly to: "VOTING";
152
152
  readonly eventName: "vote";
153
153
  readonly guard: {
154
- readonly "==": readonly [1, 1];
154
+ readonly '==': readonly [1, 1];
155
155
  };
156
156
  readonly effect: {
157
157
  readonly merge: readonly [{
@@ -177,7 +177,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
177
177
  readonly to: "ACTIVE";
178
178
  readonly eventName: "finalize";
179
179
  readonly guard: {
180
- readonly "==": readonly [1, 1];
180
+ readonly '==': readonly [1, 1];
181
181
  };
182
182
  readonly effect: {
183
183
  readonly merge: readonly [{
@@ -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
  };
@@ -203,7 +200,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
203
200
  readonly to: "DISSOLVED";
204
201
  readonly eventName: "dissolve";
205
202
  readonly guard: {
206
- readonly "==": readonly [1, 1];
203
+ readonly '==': readonly [1, 1];
207
204
  };
208
205
  readonly effect: {
209
206
  readonly merge: readonly [{
@@ -211,7 +208,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
211
208
  }, {
212
209
  readonly status: "DISSOLVED";
213
210
  readonly dissolvedAt: {
214
- readonly var: "$timestamp";
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 required: readonly ["forCount"];
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 90% approval)";
407
- readonly required: readonly ["approvalCount"];
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 setKey: 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: "$timestamp";
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 deleteKey: 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: "$timestamp";
506
+ readonly var: "$ordinal";
543
507
  };
544
508
  readonly deadline: {
545
- readonly "+": readonly [{
546
- readonly var: "$timestamp";
509
+ readonly '+': readonly [{
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
- }, {
568
- readonly "!": readonly [{
569
- readonly getKey: readonly [{
525
+ readonly and: readonly [import("../../index.js").GuardRule, {
526
+ readonly '!': 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 setKey: 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: "$timestamp";
549
+ readonly var: "$ordinal";
592
550
  };
593
551
  }];
594
552
  };
@@ -600,13 +558,25 @@ export declare const GOVERNANCE_DEFINITIONS: {
600
558
  readonly to: "ACTIVE";
601
559
  readonly eventName: "finalize";
602
560
  readonly guard: {
603
- readonly ">=": readonly [{
604
- readonly var: "event.forCount";
561
+ readonly '>=': 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
- readonly "*": readonly [{
607
- readonly size: {
608
- readonly var: "state.members";
609
- };
574
+ readonly '*': readonly [{
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: "$timestamp";
606
+ readonly var: "$ordinal";
637
607
  };
638
608
  }]];
639
609
  };
@@ -647,13 +617,25 @@ export declare const GOVERNANCE_DEFINITIONS: {
647
617
  readonly to: "ACTIVE";
648
618
  readonly eventName: "finalize";
649
619
  readonly guard: {
650
- readonly "<": readonly [{
651
- readonly var: "event.forCount";
620
+ readonly '<': 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
- readonly "*": readonly [{
654
- readonly size: {
655
- readonly var: "state.members";
656
- };
633
+ readonly '*': readonly [{
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: "$timestamp";
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: "$timestamp";
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: "$timestamp";
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
- }, {
793
- readonly "!": readonly [{
794
- readonly getKey: readonly [{
736
+ readonly and: readonly [import("../../index.js").GuardRule, import("../../index.js").GuardRule, import("../../index.js").GuardRule, {
737
+ readonly '!': 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 setKey: 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: "$timestamp";
760
+ readonly var: "$ordinal";
817
761
  };
818
762
  }];
819
763
  };
@@ -825,10 +769,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
825
769
  readonly to: "ACTIVE";
826
770
  readonly eventName: "resolve";
827
771
  readonly guard: {
828
- readonly ">=": readonly [{
829
- readonly size: {
830
- readonly var: "state.votes";
831
- };
772
+ readonly '>=': readonly [{
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: "$timestamp";
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 ">=": readonly [{
870
- readonly var: "event.approvalCount";
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 "*": readonly [{
873
- readonly size: {
824
+ readonly all: readonly [{
825
+ readonly keys: readonly [{
874
826
  readonly var: "state.members";
875
- };
876
- }, 0.9];
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: "$timestamp";
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: "$timestamp";
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: "$timestamp";
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: "$timestamp";
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: "$timestamp";
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 unanimous signer count)";
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: "$timestamp";
1336
+ readonly var: "$ordinal";
1410
1337
  };
1411
1338
  readonly expiresAt: {
1412
- readonly "+": readonly [{
1413
- readonly var: "$timestamp";
1339
+ readonly '+': readonly [{
1340
+ readonly var: "$ordinal";
1414
1341
  }, {
1415
1342
  readonly var: "state.proposalTTLMs";
1416
1343
  }];
1417
1344
  };
1418
1345
  };
1419
1346
  readonly signatures: {
1420
- readonly setKey: readonly [{}, {
1347
+ readonly set: readonly [{}, {
1421
1348
  readonly var: "event.agent";
1422
1349
  }, {
1423
- readonly var: "$timestamp";
1350
+ readonly var: "$ordinal";
1424
1351
  }];
1425
1352
  };
1426
1353
  }];
@@ -1431,25 +1358,21 @@ 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
- }, {
1441
- readonly "!": readonly [{
1442
- readonly getKey: readonly [{
1361
+ readonly and: readonly [import("../../index.js").GuardRule, {
1362
+ readonly '!': readonly [{
1363
+ readonly has: readonly [{
1443
1364
  readonly var: "state.signatures";
1444
1365
  }, {
1445
1366
  readonly var: "event.agent";
1446
1367
  }];
1447
1368
  }];
1448
1369
  }, {
1449
- readonly "<": readonly [{
1450
- readonly size: {
1451
- readonly var: "state.signatures";
1452
- };
1370
+ readonly '<': readonly [{
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 setKey: readonly [{
1386
+ readonly set: readonly [{
1464
1387
  readonly var: "state.signatures";
1465
1388
  }, {
1466
1389
  readonly var: "event.agent";
1467
1390
  }, {
1468
- readonly var: "$timestamp";
1391
+ readonly var: "$ordinal";
1469
1392
  }];
1470
1393
  };
1471
1394
  }];
@@ -1476,10 +1399,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
1476
1399
  readonly to: "ACTIVE";
1477
1400
  readonly eventName: "execute";
1478
1401
  readonly guard: {
1479
- readonly ">=": readonly [{
1480
- readonly size: {
1481
- readonly var: "state.signatures";
1482
- };
1402
+ readonly '>=': readonly [{
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: "$timestamp";
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";
@@ -1524,18 +1454,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
1524
1454
  readonly eventName: "cancel";
1525
1455
  readonly guard: {
1526
1456
  readonly or: readonly [{
1527
- readonly ">": readonly [{
1528
- readonly var: "$timestamp";
1457
+ readonly '>': readonly [{
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: "$timestamp";
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: "$timestamp";
1509
+ readonly var: "$ordinal";
1592
1510
  };
1593
1511
  readonly expiresAt: {
1594
- readonly "+": readonly [{
1595
- readonly var: "$timestamp";
1512
+ readonly '+': readonly [{
1513
+ readonly var: "$ordinal";
1596
1514
  }, {
1597
1515
  readonly var: "state.proposalTTLMs";
1598
1516
  }];
1599
1517
  };
1600
1518
  };
1601
1519
  readonly signatures: {
1602
- readonly setKey: readonly [{}, {
1520
+ readonly set: readonly [{}, {
1603
1521
  readonly var: "event.agent";
1604
1522
  }, {
1605
- readonly var: "$timestamp";
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
- }, {
1623
- readonly ">": readonly [{
1624
- readonly size: {
1534
+ readonly and: readonly [import("../../index.js").GuardRule, {
1535
+ readonly '>': 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: "$timestamp";
1562
+ readonly var: "$ordinal";
1651
1563
  };
1652
1564
  readonly expiresAt: {
1653
- readonly "+": readonly [{
1654
- readonly var: "$timestamp";
1565
+ readonly '+': readonly [{
1566
+ readonly var: "$ordinal";
1655
1567
  }, {
1656
1568
  readonly var: "state.proposalTTLMs";
1657
1569
  }];
1658
1570
  };
1659
1571
  };
1660
1572
  readonly signatures: {
1661
- readonly setKey: readonly [{}, {
1573
+ readonly set: readonly [{}, {
1662
1574
  readonly var: "event.agent";
1663
1575
  }, {
1664
- readonly var: "$timestamp";
1576
+ readonly var: "$ordinal";
1665
1577
  }];
1666
1578
  };
1667
1579
  }];
@@ -1672,23 +1584,17 @@ 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
- }, {
1682
- readonly ">=": readonly [{
1587
+ readonly and: readonly [import("../../index.js").GuardRule, {
1588
+ readonly '>=': readonly [{
1683
1589
  readonly var: "event.newThreshold";
1684
1590
  }, 1];
1685
1591
  }, {
1686
- readonly "<=": readonly [{
1592
+ readonly '<=': readonly [{
1687
1593
  readonly var: "event.newThreshold";
1688
1594
  }, {
1689
- readonly size: {
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: "$timestamp";
1619
+ readonly var: "$ordinal";
1714
1620
  };
1715
1621
  readonly expiresAt: {
1716
- readonly "+": readonly [{
1717
- readonly var: "$timestamp";
1622
+ readonly '+': readonly [{
1623
+ readonly var: "$ordinal";
1718
1624
  }, {
1719
1625
  readonly var: "state.proposalTTLMs";
1720
1626
  }];
1721
1627
  };
1722
1628
  };
1723
1629
  readonly signatures: {
1724
- readonly setKey: readonly [{}, {
1630
+ readonly set: readonly [{}, {
1725
1631
  readonly var: "event.agent";
1726
1632
  }, {
1727
- readonly var: "$timestamp";
1633
+ readonly var: "$ordinal";
1728
1634
  }];
1729
1635
  };
1730
1636
  }];
@@ -1736,10 +1642,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
1736
1642
  readonly eventName: "apply_signer_change";
1737
1643
  readonly guard: {
1738
1644
  readonly and: readonly [{
1739
- readonly ">=": readonly [{
1740
- readonly size: {
1741
- readonly var: "state.signatures";
1742
- };
1645
+ readonly '>=': readonly [{
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
  }];
@@ -1751,7 +1659,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1751
1659
  };
1752
1660
  readonly effect: {
1753
1661
  readonly if: readonly [{
1754
- readonly "===": readonly [{
1662
+ readonly '===': readonly [{
1755
1663
  readonly var: "state.proposal.actionType";
1756
1664
  }, "add_signer"];
1757
1665
  }, {
@@ -1769,7 +1677,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1769
1677
  readonly signatures: {};
1770
1678
  }];
1771
1679
  }, {
1772
- readonly "===": readonly [{
1680
+ readonly '===': readonly [{
1773
1681
  readonly var: "state.proposal.actionType";
1774
1682
  }, "remove_signer"];
1775
1683
  }, {
@@ -1780,7 +1688,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1780
1688
  readonly filter: readonly [{
1781
1689
  readonly var: "state.signers";
1782
1690
  }, {
1783
- readonly "!==": readonly [{
1691
+ readonly '!==': readonly [{
1784
1692
  readonly var: "";
1785
1693
  }, {
1786
1694
  readonly var: "state.proposal.payload.removeSigner";
@@ -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 "===": readonly [{
1812
- readonly var: "event.signatureCount";
1719
+ readonly and: readonly [{
1720
+ readonly '>': readonly [{
1721
+ readonly length: readonly [{
1722
+ readonly var: "state.signers";
1723
+ }];
1724
+ }, 0];
1813
1725
  }, {
1814
- readonly size: {
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: "$timestamp";
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 ">=": readonly [{
2044
- readonly getKey: readonly [{
2045
- readonly var: "state.balances";
1962
+ readonly some: readonly [{
1963
+ readonly map: readonly [{
1964
+ readonly var: "proofs";
2046
1965
  }, {
2047
- readonly var: "event.agent";
1966
+ readonly var: "address";
2048
1967
  }];
2049
1968
  }, {
2050
- readonly var: "state.proposalThreshold";
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: "$timestamp";
2078
- }; /**
2079
- * Check if threshold proposal has quorum
2080
- */
2004
+ readonly var: "$ordinal";
2005
+ };
2081
2006
  readonly votingEndsAt: {
2082
- readonly "+": readonly [{
2083
- readonly var: "$timestamp";
2007
+ readonly '+': readonly [{
2008
+ readonly var: "$ordinal";
2084
2009
  }, {
2085
2010
  readonly var: "state.votingPeriodMs";
2086
2011
  }];
@@ -2103,25 +2028,25 @@ export declare const GOVERNANCE_DEFINITIONS: {
2103
2028
  readonly to: "VOTING";
2104
2029
  readonly eventName: "vote";
2105
2030
  readonly guard: {
2106
- readonly and: readonly [{
2107
- readonly ">": readonly [{
2108
- readonly getKey: readonly [{
2031
+ readonly and: readonly [import("../../index.js").GuardRule, {
2032
+ readonly '>': readonly [{
2033
+ readonly get: readonly [{
2109
2034
  readonly var: "state.balances";
2110
2035
  }, {
2111
2036
  readonly var: "event.agent";
2112
2037
  }];
2113
2038
  }, 0];
2114
2039
  }, {
2115
- readonly "!": readonly [{
2116
- readonly getKey: readonly [{
2040
+ readonly '!': readonly [{
2041
+ readonly has: readonly [{
2117
2042
  readonly var: "state.votes.voters";
2118
2043
  }, {
2119
2044
  readonly var: "event.agent";
2120
2045
  }];
2121
2046
  }];
2122
2047
  }, {
2123
- readonly "<=": readonly [{
2124
- readonly var: "$timestamp";
2048
+ readonly '<=': readonly [{
2049
+ readonly var: "$ordinal";
2125
2050
  }, {
2126
2051
  readonly var: "state.proposal.votingEndsAt";
2127
2052
  }];
@@ -2136,15 +2061,15 @@ export declare const GOVERNANCE_DEFINITIONS: {
2136
2061
  readonly var: "state.votes";
2137
2062
  }, {
2138
2063
  readonly if: readonly [{
2139
- readonly "===": readonly [{
2064
+ readonly '===': readonly [{
2140
2065
  readonly var: "event.vote";
2141
2066
  }, "for"];
2142
2067
  }, {
2143
2068
  readonly for: {
2144
- readonly "+": readonly [{
2069
+ readonly '+': readonly [{
2145
2070
  readonly var: "state.votes.for";
2146
2071
  }, {
2147
- readonly getKey: readonly [{
2072
+ readonly get: readonly [{
2148
2073
  readonly var: "state.balances";
2149
2074
  }, {
2150
2075
  readonly var: "event.agent";
@@ -2152,15 +2077,15 @@ export declare const GOVERNANCE_DEFINITIONS: {
2152
2077
  }];
2153
2078
  };
2154
2079
  }, {
2155
- readonly "===": readonly [{
2080
+ readonly '===': readonly [{
2156
2081
  readonly var: "event.vote";
2157
2082
  }, "against"];
2158
2083
  }, {
2159
2084
  readonly against: {
2160
- readonly "+": readonly [{
2085
+ readonly '+': readonly [{
2161
2086
  readonly var: "state.votes.against";
2162
2087
  }, {
2163
- readonly getKey: readonly [{
2088
+ readonly get: readonly [{
2164
2089
  readonly var: "state.balances";
2165
2090
  }, {
2166
2091
  readonly var: "event.agent";
@@ -2169,10 +2094,10 @@ export declare const GOVERNANCE_DEFINITIONS: {
2169
2094
  };
2170
2095
  }, {
2171
2096
  readonly abstain: {
2172
- readonly "+": readonly [{
2097
+ readonly '+': readonly [{
2173
2098
  readonly var: "state.votes.abstain";
2174
2099
  }, {
2175
- readonly getKey: 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 setKey: 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 getKey: 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: "$timestamp";
2126
+ readonly var: "$ordinal";
2202
2127
  };
2203
2128
  }];
2204
2129
  };
@@ -2213,20 +2138,20 @@ export declare const GOVERNANCE_DEFINITIONS: {
2213
2138
  readonly eventName: "queue";
2214
2139
  readonly guard: {
2215
2140
  readonly and: readonly [{
2216
- readonly ">": readonly [{
2217
- readonly var: "$timestamp";
2141
+ readonly '>': readonly [{
2142
+ readonly var: "$ordinal";
2218
2143
  }, {
2219
2144
  readonly var: "state.proposal.votingEndsAt";
2220
2145
  }];
2221
2146
  }, {
2222
- readonly ">": readonly [{
2147
+ readonly '>': readonly [{
2223
2148
  readonly var: "state.votes.for";
2224
2149
  }, {
2225
2150
  readonly var: "state.votes.against";
2226
2151
  }];
2227
2152
  }, {
2228
- readonly ">=": readonly [{
2229
- readonly "+": readonly [{
2153
+ readonly '>=': readonly [{
2154
+ readonly '+': readonly [{
2230
2155
  readonly var: "state.votes.for";
2231
2156
  }, {
2232
2157
  readonly var: "state.votes.against";
@@ -2247,11 +2172,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
2247
2172
  readonly var: "state.proposal";
2248
2173
  }, {
2249
2174
  readonly queuedAt: {
2250
- readonly var: "$timestamp";
2175
+ readonly var: "$ordinal";
2251
2176
  };
2252
2177
  readonly executableAt: {
2253
- readonly "+": readonly [{
2254
- readonly var: "$timestamp";
2178
+ readonly '+': readonly [{
2179
+ readonly var: "$ordinal";
2255
2180
  }, {
2256
2181
  readonly var: "state.timelockMs";
2257
2182
  }];
@@ -2266,8 +2191,8 @@ export declare const GOVERNANCE_DEFINITIONS: {
2266
2191
  readonly to: "ACTIVE";
2267
2192
  readonly eventName: "execute";
2268
2193
  readonly guard: {
2269
- readonly ">=": readonly [{
2270
- readonly var: "$timestamp";
2194
+ readonly '>=': readonly [{
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: "$timestamp";
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";
@@ -2307,21 +2237,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
2307
2237
  readonly eventName: "reject";
2308
2238
  readonly guard: {
2309
2239
  readonly and: readonly [{
2310
- readonly ">": readonly [{
2311
- readonly var: "$timestamp";
2240
+ readonly '>': readonly [{
2241
+ readonly var: "$ordinal";
2312
2242
  }, {
2313
2243
  readonly var: "state.proposal.votingEndsAt";
2314
2244
  }];
2315
2245
  }, {
2316
2246
  readonly or: readonly [{
2317
- readonly "<=": readonly [{
2247
+ readonly '<=': readonly [{
2318
2248
  readonly var: "state.votes.for";
2319
2249
  }, {
2320
2250
  readonly var: "state.votes.against";
2321
2251
  }];
2322
2252
  }, {
2323
- readonly "<": readonly [{
2324
- readonly "+": readonly [{
2253
+ readonly '<': readonly [{
2254
+ readonly '+': readonly [{
2325
2255
  readonly var: "state.votes.for";
2326
2256
  }, {
2327
2257
  readonly var: "state.votes.against";
@@ -2349,7 +2279,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2349
2279
  readonly var: "state.votes";
2350
2280
  };
2351
2281
  readonly rejectedAt: {
2352
- readonly var: "$timestamp";
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: "$timestamp";
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 ">": readonly [{
2401
- readonly getKey: readonly [{
2402
- readonly var: "state.balances";
2403
- }, {
2404
- readonly var: "event.agent";
2405
- }];
2406
- }, 0];
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 setKey: 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 getKey: readonly [{
2430
- readonly var: "state.delegations";
2431
- }, {
2432
- readonly var: "event.agent";
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 deleteKey: 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,13 +2582,10 @@ 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: {
2666
- readonly ">=": readonly [{
2588
+ readonly '>=': readonly [{
2667
2589
  readonly var: "event.agentReputation";
2668
2590
  }, {
2669
2591
  readonly var: "state.proposeThreshold";
@@ -2693,11 +2615,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
2693
2615
  readonly var: "event.agent";
2694
2616
  };
2695
2617
  readonly proposedAt: {
2696
- readonly var: "$timestamp";
2618
+ readonly var: "$ordinal";
2697
2619
  };
2698
2620
  readonly deadline: {
2699
- readonly "+": readonly [{
2700
- readonly var: "$timestamp";
2621
+ readonly '+': readonly [{
2622
+ readonly var: "$ordinal";
2701
2623
  }, {
2702
2624
  readonly var: "state.votingPeriodMs";
2703
2625
  }];
@@ -2717,38 +2639,20 @@ export declare const GOVERNANCE_DEFINITIONS: {
2717
2639
  readonly eventName: "vote";
2718
2640
  readonly guard: {
2719
2641
  readonly and: readonly [{
2720
- readonly ">=": readonly [{
2642
+ readonly '>=': readonly [{
2721
2643
  readonly var: "event.agentReputation";
2722
2644
  }, {
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
- readonly "<=": readonly [{
2751
- readonly var: "$timestamp";
2654
+ readonly '<=': readonly [{
2655
+ readonly var: "$ordinal";
2752
2656
  }, {
2753
2657
  readonly var: "state.proposal.deadline";
2754
2658
  }];
@@ -2760,7 +2664,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2760
2664
  }, {
2761
2665
  readonly votes: {
2762
2666
  readonly if: readonly [{
2763
- readonly "===": readonly [{
2667
+ readonly '===': readonly [{
2764
2668
  readonly var: "event.vote";
2765
2669
  }, "for"];
2766
2670
  }, {
@@ -2776,7 +2680,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2776
2680
  };
2777
2681
  }];
2778
2682
  }, {
2779
- readonly "===": readonly [{
2683
+ readonly '===': readonly [{
2780
2684
  readonly var: "event.vote";
2781
2685
  }, "against"];
2782
2686
  }, {
@@ -2814,31 +2718,31 @@ export declare const GOVERNANCE_DEFINITIONS: {
2814
2718
  readonly eventName: "execute";
2815
2719
  readonly guard: {
2816
2720
  readonly and: readonly [{
2817
- readonly ">": readonly [{
2818
- readonly var: "$timestamp";
2721
+ readonly '>': readonly [{
2722
+ readonly var: "$ordinal";
2819
2723
  }, {
2820
2724
  readonly var: "state.proposal.deadline";
2821
2725
  }];
2822
2726
  }, {
2823
- readonly ">": readonly [{
2824
- readonly size: {
2727
+ readonly '>': readonly [{
2728
+ readonly length: readonly [{
2825
2729
  readonly var: "state.votes.for";
2826
- };
2730
+ }];
2827
2731
  }, {
2828
- readonly size: {
2732
+ readonly length: readonly [{
2829
2733
  readonly var: "state.votes.against";
2830
- };
2734
+ }];
2831
2735
  }];
2832
2736
  }, {
2833
- readonly ">=": readonly [{
2834
- readonly "+": readonly [{
2835
- readonly size: {
2737
+ readonly '>=': readonly [{
2738
+ readonly '+': readonly [{
2739
+ readonly length: readonly [{
2836
2740
  readonly var: "state.votes.for";
2837
- };
2741
+ }];
2838
2742
  }, {
2839
- readonly size: {
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: "$timestamp";
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";
@@ -2886,32 +2790,32 @@ export declare const GOVERNANCE_DEFINITIONS: {
2886
2790
  readonly eventName: "reject";
2887
2791
  readonly guard: {
2888
2792
  readonly and: readonly [{
2889
- readonly ">": readonly [{
2890
- readonly var: "$timestamp";
2793
+ readonly '>': readonly [{
2794
+ readonly var: "$ordinal";
2891
2795
  }, {
2892
2796
  readonly var: "state.proposal.deadline";
2893
2797
  }];
2894
2798
  }, {
2895
2799
  readonly or: readonly [{
2896
- readonly "<=": readonly [{
2897
- readonly size: {
2800
+ readonly '<=': readonly [{
2801
+ readonly length: readonly [{
2898
2802
  readonly var: "state.votes.for";
2899
- };
2803
+ }];
2900
2804
  }, {
2901
- readonly size: {
2805
+ readonly length: readonly [{
2902
2806
  readonly var: "state.votes.against";
2903
- };
2807
+ }];
2904
2808
  }];
2905
2809
  }, {
2906
- readonly "<": readonly [{
2907
- readonly "+": readonly [{
2908
- readonly size: {
2810
+ readonly '<': readonly [{
2811
+ readonly '+': readonly [{
2812
+ readonly length: readonly [{
2909
2813
  readonly var: "state.votes.for";
2910
- };
2814
+ }];
2911
2815
  }, {
2912
- readonly size: {
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: "$timestamp";
2842
+ readonly var: "$ordinal";
2939
2843
  };
2940
2844
  }]];
2941
2845
  };
@@ -2949,14 +2853,14 @@ export declare const GOVERNANCE_DEFINITIONS: {
2949
2853
  readonly to: "ACTIVE";
2950
2854
  readonly eventName: "join";
2951
2855
  readonly guard: {
2952
- readonly and: readonly [{
2953
- readonly ">=": readonly [{
2856
+ readonly and: readonly [import("../../index.js").GuardRule, {
2857
+ readonly '>=': readonly [{
2954
2858
  readonly var: "event.agentReputation";
2955
2859
  }, {
2956
2860
  readonly var: "state.memberThreshold";
2957
2861
  }];
2958
2862
  }, {
2959
- readonly "!": readonly [{
2863
+ readonly '!': readonly [{
2960
2864
  readonly in: readonly [{
2961
2865
  readonly var: "event.agent";
2962
2866
  }, {
@@ -2977,12 +2881,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
2977
2881
  }]];
2978
2882
  };
2979
2883
  readonly memberJoinedAt: {
2980
- readonly setKey: readonly [{
2884
+ readonly set: readonly [{
2981
2885
  readonly var: "state.memberJoinedAt";
2982
2886
  }, {
2983
2887
  readonly var: "event.agent";
2984
2888
  }, {
2985
- readonly var: "$timestamp";
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";
@@ -3007,7 +2905,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
3007
2905
  readonly filter: readonly [{
3008
2906
  readonly var: "state.members";
3009
2907
  }, {
3010
- readonly "!==": readonly [{
2908
+ readonly '!==': readonly [{
3011
2909
  readonly var: "";
3012
2910
  }, {
3013
2911
  readonly var: "event.agent";
@@ -3022,7 +2920,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
3022
2920
  readonly to: "VOTING";
3023
2921
  readonly eventName: "propose_threshold_change";
3024
2922
  readonly guard: {
3025
- readonly ">=": readonly [{
2923
+ readonly '>=': readonly [{
3026
2924
  readonly var: "event.agentReputation";
3027
2925
  }, {
3028
2926
  readonly var: "state.proposeThreshold";
@@ -3053,11 +2951,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
3053
2951
  readonly var: "event.agent";
3054
2952
  };
3055
2953
  readonly proposedAt: {
3056
- readonly var: "$timestamp";
2954
+ readonly var: "$ordinal";
3057
2955
  };
3058
2956
  readonly deadline: {
3059
- readonly "+": readonly [{
3060
- readonly var: "$timestamp";
2957
+ readonly '+': readonly [{
2958
+ readonly var: "$ordinal";
3061
2959
  }, {
3062
2960
  readonly var: "state.votingPeriodMs";
3063
2961
  }];
@@ -3081,8 +2979,8 @@ export type GovernanceType = keyof typeof GOVERNANCE_DEFINITIONS;
3081
2979
  */
3082
2980
  export declare function getGovernanceDefinition(type: GovernanceType): FiberAppDefinition;
3083
2981
  /** @deprecated Use getGovernanceDefinition('daoSingle' | 'daoMultisig' | 'daoToken' | 'daoReputation') */
3084
- export declare function getDAODefinition(daoType: "Single" | "Multisig" | "Threshold" | "Token"): FiberAppDefinition;
3085
- import type { MultisigDAO, TokenDAO, ThresholdDAO } from "../../generated/ottochain/apps/governance/v1/governance.js";
2982
+ export declare function getDAODefinition(daoType: 'Single' | 'Multisig' | 'Threshold' | 'Token'): FiberAppDefinition;
2983
+ import type { MultisigDAO, TokenDAO, ThresholdDAO } from '../../generated/ottochain/apps/governance/v1/governance.js';
3086
2984
  /**
3087
2985
  * Check if multisig has enough signatures to execute
3088
2986
  */
@@ -3118,7 +3016,7 @@ export declare function canPropose(state: TokenDAO, agent: string): boolean;
3118
3016
  /**
3119
3017
  * Check if agent meets threshold for action
3120
3018
  */
3121
- export declare function meetsThreshold(state: ThresholdDAO, reputation: number, action: "member" | "vote" | "propose"): boolean;
3019
+ export declare function meetsThreshold(state: ThresholdDAO, reputation: number, action: 'member' | 'vote' | 'propose'): boolean;
3122
3020
  /**
3123
3021
  * Check if agent is a member
3124
3022
  */