@ottochain/sdk 2.4.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 (225) 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 +20 -3
  62. package/dist/cjs/ottochain/genesis-manifest.js +6 -0
  63. package/dist/cjs/ottochain/metagraph-client.js +16 -8
  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 +117 -1
  69. package/dist/cjs/schema/fiber-app.js +132 -3
  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 +16 -8
  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 +110 -0
  148. package/dist/esm/schema/fiber-app.js +127 -3
  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/transaction.d.ts +9 -1
  212. package/dist/types/ottochain/types.d.ts +1 -1
  213. package/dist/types/privacy/index.d.ts +2 -2
  214. package/dist/types/privacy/sealed-bid.d.ts +9 -9
  215. package/dist/types/privacy/shield-app.d.ts +1 -1
  216. package/dist/types/schema/effects.d.ts +107 -0
  217. package/dist/types/schema/fiber-app.d.ts +281 -0
  218. package/dist/types/schema/guards.d.ts +12 -0
  219. package/dist/types/templates/asset-policy.d.ts +119 -0
  220. package/dist/types/templates/index.d.ts +26 -0
  221. package/dist/types/templates/machine.d.ts +139 -0
  222. package/dist/types/templates/migration.d.ts +34 -0
  223. package/dist/types/templates/state-shape.d.ts +30 -0
  224. package/dist/types/zk/index.d.ts +4 -4
  225. package/package.json +31 -13
@@ -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 [{
@@ -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 [{
@@ -200,7 +200,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
200
200
  readonly to: "DISSOLVED";
201
201
  readonly eventName: "dissolve";
202
202
  readonly guard: {
203
- readonly "==": readonly [1, 1];
203
+ readonly '==': readonly [1, 1];
204
204
  };
205
205
  readonly effect: {
206
206
  readonly merge: readonly [{
@@ -506,7 +506,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
506
506
  readonly var: "$ordinal";
507
507
  };
508
508
  readonly deadline: {
509
- readonly "+": readonly [{
509
+ readonly '+': readonly [{
510
510
  readonly var: "$ordinal";
511
511
  }, {
512
512
  readonly var: "state.votingPeriodMs";
@@ -523,7 +523,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
523
523
  readonly eventName: "vote";
524
524
  readonly guard: {
525
525
  readonly and: readonly [import("../../index.js").GuardRule, {
526
- readonly "!": readonly [{
526
+ readonly '!': readonly [{
527
527
  readonly has: readonly [{
528
528
  readonly var: "state.votes";
529
529
  }, {
@@ -558,20 +558,20 @@ export declare const GOVERNANCE_DEFINITIONS: {
558
558
  readonly to: "ACTIVE";
559
559
  readonly eventName: "finalize";
560
560
  readonly guard: {
561
- readonly ">=": readonly [{
561
+ readonly '>=': readonly [{
562
562
  readonly length: readonly [{
563
563
  readonly filter: readonly [{
564
564
  readonly values: readonly [{
565
565
  readonly var: "state.votes";
566
566
  }];
567
567
  }, {
568
- readonly "===": readonly [{
568
+ readonly '===': readonly [{
569
569
  readonly var: "vote";
570
570
  }, "for"];
571
571
  }];
572
572
  }];
573
573
  }, {
574
- readonly "*": readonly [{
574
+ readonly '*': readonly [{
575
575
  readonly length: readonly [{
576
576
  readonly keys: readonly [{
577
577
  readonly var: "state.members";
@@ -617,20 +617,20 @@ export declare const GOVERNANCE_DEFINITIONS: {
617
617
  readonly to: "ACTIVE";
618
618
  readonly eventName: "finalize";
619
619
  readonly guard: {
620
- readonly "<": readonly [{
620
+ readonly '<': readonly [{
621
621
  readonly length: readonly [{
622
622
  readonly filter: readonly [{
623
623
  readonly values: readonly [{
624
624
  readonly var: "state.votes";
625
625
  }];
626
626
  }, {
627
- readonly "===": readonly [{
627
+ readonly '===': readonly [{
628
628
  readonly var: "vote";
629
629
  }, "for"];
630
630
  }];
631
631
  }];
632
632
  }, {
633
- readonly "*": readonly [{
633
+ readonly '*': readonly [{
634
634
  readonly length: readonly [{
635
635
  readonly keys: readonly [{
636
636
  readonly var: "state.members";
@@ -734,7 +734,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
734
734
  readonly eventName: "vote";
735
735
  readonly guard: {
736
736
  readonly and: readonly [import("../../index.js").GuardRule, import("../../index.js").GuardRule, import("../../index.js").GuardRule, {
737
- readonly "!": readonly [{
737
+ readonly '!': readonly [{
738
738
  readonly has: readonly [{
739
739
  readonly var: "state.votes";
740
740
  }, {
@@ -769,7 +769,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
769
769
  readonly to: "ACTIVE";
770
770
  readonly eventName: "resolve";
771
771
  readonly guard: {
772
- readonly ">=": readonly [{
772
+ readonly '>=': readonly [{
773
773
  readonly length: readonly [{
774
774
  readonly keys: readonly [{
775
775
  readonly var: "state.votes";
@@ -813,7 +813,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
813
813
  readonly eventName: "dissolve";
814
814
  readonly guard: {
815
815
  readonly and: readonly [{
816
- readonly ">": readonly [{
816
+ readonly '>': readonly [{
817
817
  readonly length: readonly [{
818
818
  readonly keys: readonly [{
819
819
  readonly var: "state.members";
@@ -1336,7 +1336,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1336
1336
  readonly var: "$ordinal";
1337
1337
  };
1338
1338
  readonly expiresAt: {
1339
- readonly "+": readonly [{
1339
+ readonly '+': readonly [{
1340
1340
  readonly var: "$ordinal";
1341
1341
  }, {
1342
1342
  readonly var: "state.proposalTTLMs";
@@ -1359,7 +1359,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1359
1359
  readonly eventName: "sign";
1360
1360
  readonly guard: {
1361
1361
  readonly and: readonly [import("../../index.js").GuardRule, {
1362
- readonly "!": readonly [{
1362
+ readonly '!': readonly [{
1363
1363
  readonly has: readonly [{
1364
1364
  readonly var: "state.signatures";
1365
1365
  }, {
@@ -1367,7 +1367,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1367
1367
  }];
1368
1368
  }];
1369
1369
  }, {
1370
- readonly "<": readonly [{
1370
+ readonly '<': readonly [{
1371
1371
  readonly length: readonly [{
1372
1372
  readonly keys: readonly [{
1373
1373
  readonly var: "state.signatures";
@@ -1399,7 +1399,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1399
1399
  readonly to: "ACTIVE";
1400
1400
  readonly eventName: "execute";
1401
1401
  readonly guard: {
1402
- readonly ">=": readonly [{
1402
+ readonly '>=': readonly [{
1403
1403
  readonly length: readonly [{
1404
1404
  readonly keys: readonly [{
1405
1405
  readonly var: "state.signatures";
@@ -1454,7 +1454,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1454
1454
  readonly eventName: "cancel";
1455
1455
  readonly guard: {
1456
1456
  readonly or: readonly [{
1457
- readonly ">": readonly [{
1457
+ readonly '>': readonly [{
1458
1458
  readonly var: "$ordinal";
1459
1459
  }, {
1460
1460
  readonly var: "state.proposal.expiresAt";
@@ -1509,7 +1509,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1509
1509
  readonly var: "$ordinal";
1510
1510
  };
1511
1511
  readonly expiresAt: {
1512
- readonly "+": readonly [{
1512
+ readonly '+': readonly [{
1513
1513
  readonly var: "$ordinal";
1514
1514
  }, {
1515
1515
  readonly var: "state.proposalTTLMs";
@@ -1532,7 +1532,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1532
1532
  readonly eventName: "propose_remove_signer";
1533
1533
  readonly guard: {
1534
1534
  readonly and: readonly [import("../../index.js").GuardRule, {
1535
- readonly ">": readonly [{
1535
+ readonly '>': readonly [{
1536
1536
  readonly length: readonly [{
1537
1537
  readonly var: "state.signers";
1538
1538
  }];
@@ -1562,7 +1562,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1562
1562
  readonly var: "$ordinal";
1563
1563
  };
1564
1564
  readonly expiresAt: {
1565
- readonly "+": readonly [{
1565
+ readonly '+': readonly [{
1566
1566
  readonly var: "$ordinal";
1567
1567
  }, {
1568
1568
  readonly var: "state.proposalTTLMs";
@@ -1585,11 +1585,11 @@ export declare const GOVERNANCE_DEFINITIONS: {
1585
1585
  readonly eventName: "propose_change_threshold";
1586
1586
  readonly guard: {
1587
1587
  readonly and: readonly [import("../../index.js").GuardRule, {
1588
- readonly ">=": readonly [{
1588
+ readonly '>=': readonly [{
1589
1589
  readonly var: "event.newThreshold";
1590
1590
  }, 1];
1591
1591
  }, {
1592
- readonly "<=": readonly [{
1592
+ readonly '<=': readonly [{
1593
1593
  readonly var: "event.newThreshold";
1594
1594
  }, {
1595
1595
  readonly length: readonly [{
@@ -1619,7 +1619,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1619
1619
  readonly var: "$ordinal";
1620
1620
  };
1621
1621
  readonly expiresAt: {
1622
- readonly "+": readonly [{
1622
+ readonly '+': readonly [{
1623
1623
  readonly var: "$ordinal";
1624
1624
  }, {
1625
1625
  readonly var: "state.proposalTTLMs";
@@ -1642,7 +1642,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1642
1642
  readonly eventName: "apply_signer_change";
1643
1643
  readonly guard: {
1644
1644
  readonly and: readonly [{
1645
- readonly ">=": readonly [{
1645
+ readonly '>=': readonly [{
1646
1646
  readonly length: readonly [{
1647
1647
  readonly keys: readonly [{
1648
1648
  readonly var: "state.signatures";
@@ -1659,7 +1659,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1659
1659
  };
1660
1660
  readonly effect: {
1661
1661
  readonly if: readonly [{
1662
- readonly "===": readonly [{
1662
+ readonly '===': readonly [{
1663
1663
  readonly var: "state.proposal.actionType";
1664
1664
  }, "add_signer"];
1665
1665
  }, {
@@ -1677,7 +1677,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1677
1677
  readonly signatures: {};
1678
1678
  }];
1679
1679
  }, {
1680
- readonly "===": readonly [{
1680
+ readonly '===': readonly [{
1681
1681
  readonly var: "state.proposal.actionType";
1682
1682
  }, "remove_signer"];
1683
1683
  }, {
@@ -1688,7 +1688,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1688
1688
  readonly filter: readonly [{
1689
1689
  readonly var: "state.signers";
1690
1690
  }, {
1691
- readonly "!==": readonly [{
1691
+ readonly '!==': readonly [{
1692
1692
  readonly var: "";
1693
1693
  }, {
1694
1694
  readonly var: "state.proposal.payload.removeSigner";
@@ -1717,7 +1717,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1717
1717
  readonly eventName: "dissolve";
1718
1718
  readonly guard: {
1719
1719
  readonly and: readonly [{
1720
- readonly ">": readonly [{
1720
+ readonly '>': readonly [{
1721
1721
  readonly length: readonly [{
1722
1722
  readonly var: "state.signers";
1723
1723
  }];
@@ -1966,7 +1966,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
1966
1966
  readonly var: "address";
1967
1967
  }];
1968
1968
  }, {
1969
- readonly ">=": readonly [{
1969
+ readonly '>=': readonly [{
1970
1970
  readonly get: readonly [{
1971
1971
  readonly var: "state.balances";
1972
1972
  }, {
@@ -2004,7 +2004,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2004
2004
  readonly var: "$ordinal";
2005
2005
  };
2006
2006
  readonly votingEndsAt: {
2007
- readonly "+": readonly [{
2007
+ readonly '+': readonly [{
2008
2008
  readonly var: "$ordinal";
2009
2009
  }, {
2010
2010
  readonly var: "state.votingPeriodMs";
@@ -2029,7 +2029,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2029
2029
  readonly eventName: "vote";
2030
2030
  readonly guard: {
2031
2031
  readonly and: readonly [import("../../index.js").GuardRule, {
2032
- readonly ">": readonly [{
2032
+ readonly '>': readonly [{
2033
2033
  readonly get: readonly [{
2034
2034
  readonly var: "state.balances";
2035
2035
  }, {
@@ -2037,7 +2037,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2037
2037
  }];
2038
2038
  }, 0];
2039
2039
  }, {
2040
- readonly "!": readonly [{
2040
+ readonly '!': readonly [{
2041
2041
  readonly has: readonly [{
2042
2042
  readonly var: "state.votes.voters";
2043
2043
  }, {
@@ -2045,7 +2045,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2045
2045
  }];
2046
2046
  }];
2047
2047
  }, {
2048
- readonly "<=": readonly [{
2048
+ readonly '<=': readonly [{
2049
2049
  readonly var: "$ordinal";
2050
2050
  }, {
2051
2051
  readonly var: "state.proposal.votingEndsAt";
@@ -2061,12 +2061,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
2061
2061
  readonly var: "state.votes";
2062
2062
  }, {
2063
2063
  readonly if: readonly [{
2064
- readonly "===": readonly [{
2064
+ readonly '===': readonly [{
2065
2065
  readonly var: "event.vote";
2066
2066
  }, "for"];
2067
2067
  }, {
2068
2068
  readonly for: {
2069
- readonly "+": readonly [{
2069
+ readonly '+': readonly [{
2070
2070
  readonly var: "state.votes.for";
2071
2071
  }, {
2072
2072
  readonly get: readonly [{
@@ -2077,12 +2077,12 @@ export declare const GOVERNANCE_DEFINITIONS: {
2077
2077
  }];
2078
2078
  };
2079
2079
  }, {
2080
- readonly "===": readonly [{
2080
+ readonly '===': readonly [{
2081
2081
  readonly var: "event.vote";
2082
2082
  }, "against"];
2083
2083
  }, {
2084
2084
  readonly against: {
2085
- readonly "+": readonly [{
2085
+ readonly '+': readonly [{
2086
2086
  readonly var: "state.votes.against";
2087
2087
  }, {
2088
2088
  readonly get: readonly [{
@@ -2094,7 +2094,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2094
2094
  };
2095
2095
  }, {
2096
2096
  readonly abstain: {
2097
- readonly "+": readonly [{
2097
+ readonly '+': readonly [{
2098
2098
  readonly var: "state.votes.abstain";
2099
2099
  }, {
2100
2100
  readonly get: readonly [{
@@ -2138,20 +2138,20 @@ export declare const GOVERNANCE_DEFINITIONS: {
2138
2138
  readonly eventName: "queue";
2139
2139
  readonly guard: {
2140
2140
  readonly and: readonly [{
2141
- readonly ">": readonly [{
2141
+ readonly '>': readonly [{
2142
2142
  readonly var: "$ordinal";
2143
2143
  }, {
2144
2144
  readonly var: "state.proposal.votingEndsAt";
2145
2145
  }];
2146
2146
  }, {
2147
- readonly ">": readonly [{
2147
+ readonly '>': readonly [{
2148
2148
  readonly var: "state.votes.for";
2149
2149
  }, {
2150
2150
  readonly var: "state.votes.against";
2151
2151
  }];
2152
2152
  }, {
2153
- readonly ">=": readonly [{
2154
- readonly "+": readonly [{
2153
+ readonly '>=': readonly [{
2154
+ readonly '+': readonly [{
2155
2155
  readonly var: "state.votes.for";
2156
2156
  }, {
2157
2157
  readonly var: "state.votes.against";
@@ -2175,7 +2175,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2175
2175
  readonly var: "$ordinal";
2176
2176
  };
2177
2177
  readonly executableAt: {
2178
- readonly "+": readonly [{
2178
+ readonly '+': readonly [{
2179
2179
  readonly var: "$ordinal";
2180
2180
  }, {
2181
2181
  readonly var: "state.timelockMs";
@@ -2191,7 +2191,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2191
2191
  readonly to: "ACTIVE";
2192
2192
  readonly eventName: "execute";
2193
2193
  readonly guard: {
2194
- readonly ">=": readonly [{
2194
+ readonly '>=': readonly [{
2195
2195
  readonly var: "$ordinal";
2196
2196
  }, {
2197
2197
  readonly var: "state.proposal.executableAt";
@@ -2237,21 +2237,21 @@ export declare const GOVERNANCE_DEFINITIONS: {
2237
2237
  readonly eventName: "reject";
2238
2238
  readonly guard: {
2239
2239
  readonly and: readonly [{
2240
- readonly ">": readonly [{
2240
+ readonly '>': readonly [{
2241
2241
  readonly var: "$ordinal";
2242
2242
  }, {
2243
2243
  readonly var: "state.proposal.votingEndsAt";
2244
2244
  }];
2245
2245
  }, {
2246
2246
  readonly or: readonly [{
2247
- readonly "<=": readonly [{
2247
+ readonly '<=': readonly [{
2248
2248
  readonly var: "state.votes.for";
2249
2249
  }, {
2250
2250
  readonly var: "state.votes.against";
2251
2251
  }];
2252
2252
  }, {
2253
- readonly "<": readonly [{
2254
- readonly "+": readonly [{
2253
+ readonly '<': readonly [{
2254
+ readonly '+': readonly [{
2255
2255
  readonly var: "state.votes.for";
2256
2256
  }, {
2257
2257
  readonly var: "state.votes.against";
@@ -2322,7 +2322,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2322
2322
  readonly eventName: "delegate";
2323
2323
  readonly guard: {
2324
2324
  readonly and: readonly [import("../../index.js").GuardRule, {
2325
- readonly ">": readonly [{
2325
+ readonly '>': readonly [{
2326
2326
  readonly get: readonly [{
2327
2327
  readonly var: "state.balances";
2328
2328
  }, {
@@ -2585,7 +2585,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2585
2585
  readonly to: "VOTING";
2586
2586
  readonly eventName: "propose";
2587
2587
  readonly guard: {
2588
- readonly ">=": readonly [{
2588
+ readonly '>=': readonly [{
2589
2589
  readonly var: "event.agentReputation";
2590
2590
  }, {
2591
2591
  readonly var: "state.proposeThreshold";
@@ -2618,7 +2618,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2618
2618
  readonly var: "$ordinal";
2619
2619
  };
2620
2620
  readonly deadline: {
2621
- readonly "+": readonly [{
2621
+ readonly '+': readonly [{
2622
2622
  readonly var: "$ordinal";
2623
2623
  }, {
2624
2624
  readonly var: "state.votingPeriodMs";
@@ -2639,19 +2639,19 @@ export declare const GOVERNANCE_DEFINITIONS: {
2639
2639
  readonly eventName: "vote";
2640
2640
  readonly guard: {
2641
2641
  readonly and: readonly [{
2642
- readonly ">=": readonly [{
2642
+ readonly '>=': readonly [{
2643
2643
  readonly var: "event.agentReputation";
2644
2644
  }, {
2645
2645
  readonly var: "state.voteThreshold";
2646
2646
  }];
2647
2647
  }, {
2648
- readonly "!": readonly [import("../../index.js").GuardRule];
2648
+ readonly '!': readonly [import("../../index.js").GuardRule];
2649
2649
  }, {
2650
- readonly "!": readonly [import("../../index.js").GuardRule];
2650
+ readonly '!': readonly [import("../../index.js").GuardRule];
2651
2651
  }, {
2652
- readonly "!": readonly [import("../../index.js").GuardRule];
2652
+ readonly '!': readonly [import("../../index.js").GuardRule];
2653
2653
  }, {
2654
- readonly "<=": readonly [{
2654
+ readonly '<=': readonly [{
2655
2655
  readonly var: "$ordinal";
2656
2656
  }, {
2657
2657
  readonly var: "state.proposal.deadline";
@@ -2664,7 +2664,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2664
2664
  }, {
2665
2665
  readonly votes: {
2666
2666
  readonly if: readonly [{
2667
- readonly "===": readonly [{
2667
+ readonly '===': readonly [{
2668
2668
  readonly var: "event.vote";
2669
2669
  }, "for"];
2670
2670
  }, {
@@ -2680,7 +2680,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2680
2680
  };
2681
2681
  }];
2682
2682
  }, {
2683
- readonly "===": readonly [{
2683
+ readonly '===': readonly [{
2684
2684
  readonly var: "event.vote";
2685
2685
  }, "against"];
2686
2686
  }, {
@@ -2718,13 +2718,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
2718
2718
  readonly eventName: "execute";
2719
2719
  readonly guard: {
2720
2720
  readonly and: readonly [{
2721
- readonly ">": readonly [{
2721
+ readonly '>': readonly [{
2722
2722
  readonly var: "$ordinal";
2723
2723
  }, {
2724
2724
  readonly var: "state.proposal.deadline";
2725
2725
  }];
2726
2726
  }, {
2727
- readonly ">": readonly [{
2727
+ readonly '>': readonly [{
2728
2728
  readonly length: readonly [{
2729
2729
  readonly var: "state.votes.for";
2730
2730
  }];
@@ -2734,8 +2734,8 @@ export declare const GOVERNANCE_DEFINITIONS: {
2734
2734
  }];
2735
2735
  }];
2736
2736
  }, {
2737
- readonly ">=": readonly [{
2738
- readonly "+": readonly [{
2737
+ readonly '>=': readonly [{
2738
+ readonly '+': readonly [{
2739
2739
  readonly length: readonly [{
2740
2740
  readonly var: "state.votes.for";
2741
2741
  }];
@@ -2790,14 +2790,14 @@ export declare const GOVERNANCE_DEFINITIONS: {
2790
2790
  readonly eventName: "reject";
2791
2791
  readonly guard: {
2792
2792
  readonly and: readonly [{
2793
- readonly ">": readonly [{
2793
+ readonly '>': readonly [{
2794
2794
  readonly var: "$ordinal";
2795
2795
  }, {
2796
2796
  readonly var: "state.proposal.deadline";
2797
2797
  }];
2798
2798
  }, {
2799
2799
  readonly or: readonly [{
2800
- readonly "<=": readonly [{
2800
+ readonly '<=': readonly [{
2801
2801
  readonly length: readonly [{
2802
2802
  readonly var: "state.votes.for";
2803
2803
  }];
@@ -2807,8 +2807,8 @@ export declare const GOVERNANCE_DEFINITIONS: {
2807
2807
  }];
2808
2808
  }];
2809
2809
  }, {
2810
- readonly "<": readonly [{
2811
- readonly "+": readonly [{
2810
+ readonly '<': readonly [{
2811
+ readonly '+': readonly [{
2812
2812
  readonly length: readonly [{
2813
2813
  readonly var: "state.votes.for";
2814
2814
  }];
@@ -2854,13 +2854,13 @@ export declare const GOVERNANCE_DEFINITIONS: {
2854
2854
  readonly eventName: "join";
2855
2855
  readonly guard: {
2856
2856
  readonly and: readonly [import("../../index.js").GuardRule, {
2857
- readonly ">=": readonly [{
2857
+ readonly '>=': readonly [{
2858
2858
  readonly var: "event.agentReputation";
2859
2859
  }, {
2860
2860
  readonly var: "state.memberThreshold";
2861
2861
  }];
2862
2862
  }, {
2863
- readonly "!": readonly [{
2863
+ readonly '!': readonly [{
2864
2864
  readonly in: readonly [{
2865
2865
  readonly var: "event.agent";
2866
2866
  }, {
@@ -2905,7 +2905,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2905
2905
  readonly filter: readonly [{
2906
2906
  readonly var: "state.members";
2907
2907
  }, {
2908
- readonly "!==": readonly [{
2908
+ readonly '!==': readonly [{
2909
2909
  readonly var: "";
2910
2910
  }, {
2911
2911
  readonly var: "event.agent";
@@ -2920,7 +2920,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2920
2920
  readonly to: "VOTING";
2921
2921
  readonly eventName: "propose_threshold_change";
2922
2922
  readonly guard: {
2923
- readonly ">=": readonly [{
2923
+ readonly '>=': readonly [{
2924
2924
  readonly var: "event.agentReputation";
2925
2925
  }, {
2926
2926
  readonly var: "state.proposeThreshold";
@@ -2954,7 +2954,7 @@ export declare const GOVERNANCE_DEFINITIONS: {
2954
2954
  readonly var: "$ordinal";
2955
2955
  };
2956
2956
  readonly deadline: {
2957
- readonly "+": readonly [{
2957
+ readonly '+': readonly [{
2958
2958
  readonly var: "$ordinal";
2959
2959
  }, {
2960
2960
  readonly var: "state.votingPeriodMs";
@@ -2979,8 +2979,8 @@ export type GovernanceType = keyof typeof GOVERNANCE_DEFINITIONS;
2979
2979
  */
2980
2980
  export declare function getGovernanceDefinition(type: GovernanceType): FiberAppDefinition;
2981
2981
  /** @deprecated Use getGovernanceDefinition('daoSingle' | 'daoMultisig' | 'daoToken' | 'daoReputation') */
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";
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';
2984
2984
  /**
2985
2985
  * Check if multisig has enough signatures to execute
2986
2986
  */
@@ -3016,7 +3016,7 @@ export declare function canPropose(state: TokenDAO, agent: string): boolean;
3016
3016
  /**
3017
3017
  * Check if agent meets threshold for action
3018
3018
  */
3019
- 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;
3020
3020
  /**
3021
3021
  * Check if agent is a member
3022
3022
  */