@ottochain/sdk 2.2.5 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apps/contracts/index.js +15 -8
- package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +89 -46
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +152 -45
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +40 -8
- package/dist/cjs/apps/corporate/index.js +2 -2
- package/dist/cjs/apps/corporate/state-machines/corp-board.js +169 -59
- package/dist/cjs/apps/corporate/state-machines/corp-entity.js +245 -47
- package/dist/cjs/apps/corporate/state-machines/corp-securities.js +407 -99
- package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +151 -37
- package/dist/cjs/apps/governance/index.js +14 -14
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +85 -43
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +73 -43
- package/dist/cjs/apps/governance/state-machines/dao-single.js +55 -14
- package/dist/cjs/apps/governance/state-machines/dao-token.js +103 -45
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +129 -65
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +29 -5
- package/dist/cjs/apps/identity/constants.js +55 -14
- package/dist/cjs/apps/identity/index.js +27 -11
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +57 -9
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +70 -27
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +288 -0
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +30 -6
- package/dist/cjs/apps/identity/state-machines/index.js +3 -1
- package/dist/cjs/apps/index.js +19 -8
- package/dist/cjs/apps/lending/assets.js +223 -0
- package/dist/cjs/apps/lending/credit-scoring.js +87 -0
- package/dist/cjs/apps/lending/eligibility.js +121 -0
- package/dist/cjs/apps/lending/index.js +91 -0
- package/dist/cjs/apps/lending/state-machines/index.js +9 -0
- package/dist/cjs/apps/lending/state-machines/lending-zk-loan.js +412 -0
- package/dist/cjs/apps/markets/index.js +21 -11
- package/dist/cjs/apps/markets/state-machines/market-auction.js +44 -19
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +54 -29
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +53 -31
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +120 -61
- package/dist/cjs/apps/markets/state-machines/market-universal.js +50 -10
- package/dist/cjs/apps/oracles/index.js +2 -2
- package/dist/cjs/errors.js +3 -3
- package/dist/cjs/generated/google/protobuf/struct.js +4 -4
- package/dist/cjs/generated/index.js +11 -7
- package/dist/cjs/generated/openapi.js +6 -0
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +50 -50
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +19 -20
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +13 -13
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +4 -4
- package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +124 -130
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +107 -107
- package/dist/cjs/generated/ottochain/v1/common.js +1722 -1
- package/dist/cjs/generated/ottochain/v1/fiber.js +355 -5
- package/dist/cjs/generated/ottochain/v1/messages.js +775 -3
- package/dist/cjs/generated/ottochain/v1/records.js +350 -3
- package/dist/cjs/index.js +45 -7
- package/dist/cjs/openapi.js +2 -0
- package/dist/cjs/ottochain/drop-nulls.js +1 -2
- package/dist/cjs/ottochain/genesis-manifest.js +193 -0
- package/dist/cjs/ottochain/index.js +27 -13
- package/dist/cjs/ottochain/metagraph-client.js +65 -8
- package/dist/cjs/ottochain/snapshot.js +11 -12
- package/dist/cjs/ottochain/transaction.js +57 -14
- package/dist/cjs/ottochain/types.js +19 -1
- package/dist/cjs/privacy/index.js +14 -0
- package/dist/cjs/privacy/sealed-bid.js +210 -0
- package/dist/cjs/privacy/shield-app.js +131 -0
- package/dist/cjs/schema/effects.js +40 -0
- package/dist/cjs/schema/fiber-app.js +19 -13
- package/dist/cjs/schema/guard-lint.js +352 -0
- package/dist/cjs/schema/guards.js +246 -0
- package/dist/cjs/signing.js +80 -0
- package/dist/cjs/types.js +2 -3
- package/dist/cjs/validation.js +8 -8
- package/dist/cjs/verify.js +9 -4
- package/dist/cjs/zk/commit.js +53 -0
- package/dist/cjs/zk/guard.js +107 -0
- package/dist/cjs/zk/index.js +48 -0
- package/dist/cjs/zk/preimage.js +37 -0
- package/dist/cjs/zk/prover.js +87 -0
- package/dist/cjs/zk/registry.js +62 -0
- package/dist/cjs/zk/types.js +28 -0
- package/dist/cjs/zk/witness.js +19 -0
- package/dist/esm/apps/contracts/index.js +7 -3
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +89 -46
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +152 -45
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +40 -8
- package/dist/esm/apps/corporate/state-machines/corp-board.js +169 -59
- package/dist/esm/apps/corporate/state-machines/corp-entity.js +245 -47
- package/dist/esm/apps/corporate/state-machines/corp-securities.js +407 -99
- package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +151 -37
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +85 -43
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +73 -43
- package/dist/esm/apps/governance/state-machines/dao-single.js +55 -14
- package/dist/esm/apps/governance/state-machines/dao-token.js +103 -45
- package/dist/esm/apps/governance/state-machines/governance-simple.js +129 -65
- package/dist/esm/apps/governance/state-machines/governance-universal.js +29 -5
- package/dist/esm/apps/identity/constants.js +51 -12
- package/dist/esm/apps/identity/index.js +12 -7
- package/dist/esm/apps/identity/state-machines/identity-agent.js +57 -9
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +70 -27
- package/dist/esm/apps/identity/state-machines/identity-registry.js +285 -0
- package/dist/esm/apps/identity/state-machines/identity-universal.js +30 -6
- package/dist/esm/apps/identity/state-machines/index.js +1 -0
- package/dist/esm/apps/index.js +1 -0
- package/dist/esm/apps/lending/assets.js +207 -0
- package/dist/esm/apps/lending/credit-scoring.js +81 -0
- package/dist/esm/apps/lending/eligibility.js +115 -0
- package/dist/esm/apps/lending/index.js +69 -0
- package/dist/esm/apps/lending/state-machines/index.js +5 -0
- package/dist/esm/apps/lending/state-machines/lending-zk-loan.js +409 -0
- package/dist/esm/apps/markets/index.js +8 -4
- package/dist/esm/apps/markets/state-machines/market-auction.js +44 -19
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +54 -29
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +53 -31
- package/dist/esm/apps/markets/state-machines/market-prediction.js +120 -61
- package/dist/esm/apps/markets/state-machines/market-universal.js +50 -10
- package/dist/esm/generated/index.js +9 -5
- package/dist/esm/generated/openapi.js +5 -0
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +46 -46
- package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +114 -120
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +100 -100
- package/dist/esm/generated/ottochain/v1/common.js +1718 -0
- package/dist/esm/generated/ottochain/v1/fiber.js +351 -1
- package/dist/esm/generated/ottochain/v1/messages.js +774 -2
- package/dist/esm/generated/ottochain/v1/records.js +349 -2
- package/dist/esm/index.js +23 -2
- package/dist/esm/openapi.js +1 -0
- package/dist/esm/ottochain/genesis-manifest.js +189 -0
- package/dist/esm/ottochain/index.js +4 -3
- package/dist/esm/ottochain/metagraph-client.js +65 -8
- package/dist/esm/ottochain/snapshot.js +4 -4
- package/dist/esm/ottochain/transaction.js +43 -3
- package/dist/esm/ottochain/types.js +18 -0
- package/dist/esm/privacy/index.js +6 -0
- package/dist/esm/privacy/sealed-bid.js +206 -0
- package/dist/esm/privacy/shield-app.js +127 -0
- package/dist/esm/schema/effects.js +35 -0
- package/dist/esm/schema/fiber-app.js +13 -6
- package/dist/esm/schema/guard-lint.js +346 -0
- package/dist/esm/schema/guards.js +229 -0
- package/dist/esm/signing.js +74 -0
- package/dist/esm/verify.js +8 -2
- package/dist/esm/zk/commit.js +44 -0
- package/dist/esm/zk/guard.js +99 -0
- package/dist/esm/zk/index.js +19 -0
- package/dist/esm/zk/preimage.js +30 -0
- package/dist/esm/zk/prover.js +82 -0
- package/dist/esm/zk/registry.js +55 -0
- package/dist/esm/zk/types.js +25 -0
- package/dist/esm/zk/witness.js +15 -0
- package/dist/types/apps/contracts/index.d.ts +159 -227
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +50 -101
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +86 -120
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +20 -4
- package/dist/types/apps/corporate/index.d.ts +1040 -304
- package/dist/types/apps/corporate/state-machines/corp-board.d.ts +188 -52
- package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +267 -62
- package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +355 -131
- package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +225 -53
- package/dist/types/apps/governance/index.d.ts +396 -417
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +92 -95
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +57 -69
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +40 -50
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +80 -53
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +107 -121
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +17 -5
- package/dist/types/apps/identity/constants.d.ts +32 -4
- package/dist/types/apps/identity/index.d.ts +449 -100
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +30 -0
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +41 -87
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +379 -0
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +15 -0
- package/dist/types/apps/identity/state-machines/index.d.ts +1 -0
- package/dist/types/apps/index.d.ts +1 -0
- package/dist/types/apps/lending/assets.d.ts +258 -0
- package/dist/types/apps/lending/credit-scoring.d.ts +80 -0
- package/dist/types/apps/lending/eligibility.d.ts +83 -0
- package/dist/types/apps/lending/index.d.ts +548 -0
- package/dist/types/apps/lending/state-machines/index.d.ts +5 -0
- package/dist/types/apps/lending/state-machines/lending-zk-loan.d.ts +528 -0
- package/dist/types/apps/markets/index.d.ts +184 -204
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +25 -37
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +26 -34
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +31 -43
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +67 -72
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +30 -10
- package/dist/types/generated/index.d.ts +5 -5
- package/dist/types/generated/openapi.d.ts +1257 -0
- package/dist/types/generated/ottochain/apps/contracts/v1/contract.d.ts +5 -5
- package/dist/types/generated/ottochain/apps/identity/v1/identity.d.ts +12 -12
- package/dist/types/generated/ottochain/apps/markets/v1/market.d.ts +11 -11
- package/dist/types/generated/ottochain/v1/common.d.ts +228 -0
- package/dist/types/generated/ottochain/v1/fiber.d.ts +32 -1
- package/dist/types/generated/ottochain/v1/messages.d.ts +84 -0
- package/dist/types/generated/ottochain/v1/records.d.ts +34 -0
- package/dist/types/index.d.ts +8 -2
- package/dist/types/openapi.d.ts +22 -0
- package/dist/types/ottochain/genesis-manifest.d.ts +130 -0
- package/dist/types/ottochain/index.d.ts +6 -5
- package/dist/types/ottochain/metagraph-client.d.ts +49 -7
- package/dist/types/ottochain/snapshot.d.ts +6 -6
- package/dist/types/ottochain/transaction.d.ts +33 -1
- package/dist/types/ottochain/types.d.ts +602 -11
- package/dist/types/privacy/index.d.ts +6 -0
- package/dist/types/privacy/sealed-bid.d.ts +348 -0
- package/dist/types/privacy/shield-app.d.ts +48 -0
- package/dist/types/schema/effects.d.ts +34 -0
- package/dist/types/schema/fiber-app.d.ts +41 -3
- package/dist/types/schema/guard-lint.d.ts +111 -0
- package/dist/types/schema/guards.d.ts +134 -0
- package/dist/types/signing.d.ts +45 -0
- package/dist/types/validation.d.ts +22 -217
- package/dist/types/verify.d.ts +4 -0
- package/dist/types/zk/commit.d.ts +28 -0
- package/dist/types/zk/guard.d.ts +46 -0
- package/dist/types/zk/index.d.ts +19 -0
- package/dist/types/zk/preimage.d.ts +10 -0
- package/dist/types/zk/prover.d.ts +34 -0
- package/dist/types/zk/registry.d.ts +34 -0
- package/dist/types/zk/types.d.ts +33 -0
- package/dist/types/zk/witness.d.ts +40 -0
- package/package.json +52 -35
- package/dist/cjs/ottochain/normalize.js +0 -186
- package/dist/esm/ottochain/normalize.js +0 -179
- package/dist/types/ottochain/normalize.d.ts +0 -79
|
@@ -164,29 +164,37 @@ export declare const daoMultisigDef: {
|
|
|
164
164
|
};
|
|
165
165
|
};
|
|
166
166
|
readonly dissolve: {
|
|
167
|
-
readonly description: "Dissolve the DAO (requires
|
|
168
|
-
readonly properties: {
|
|
169
|
-
readonly signatureCount: {
|
|
170
|
-
readonly type: "number";
|
|
171
|
-
};
|
|
172
|
-
};
|
|
167
|
+
readonly description: "Dissolve the DAO (requires every signer to sign this op — verified unanimity)";
|
|
168
|
+
readonly properties: {};
|
|
173
169
|
};
|
|
174
170
|
};
|
|
175
171
|
readonly states: {
|
|
176
172
|
readonly ACTIVE: {
|
|
177
173
|
readonly id: "ACTIVE";
|
|
178
174
|
readonly isFinal: false;
|
|
179
|
-
readonly metadata:
|
|
175
|
+
readonly metadata: {
|
|
176
|
+
readonly label: "Active";
|
|
177
|
+
readonly description: "Multisig is idle and ready to propose an action";
|
|
178
|
+
readonly category: "initial";
|
|
179
|
+
};
|
|
180
180
|
};
|
|
181
181
|
readonly PENDING: {
|
|
182
182
|
readonly id: "PENDING";
|
|
183
183
|
readonly isFinal: false;
|
|
184
|
-
readonly metadata:
|
|
184
|
+
readonly metadata: {
|
|
185
|
+
readonly label: "Pending";
|
|
186
|
+
readonly description: "An action is awaiting the required signature threshold";
|
|
187
|
+
readonly category: "pending";
|
|
188
|
+
};
|
|
185
189
|
};
|
|
186
190
|
readonly DISSOLVED: {
|
|
187
191
|
readonly id: "DISSOLVED";
|
|
188
192
|
readonly isFinal: true;
|
|
189
|
-
readonly metadata:
|
|
193
|
+
readonly metadata: {
|
|
194
|
+
readonly label: "Dissolved";
|
|
195
|
+
readonly description: "Multisig DAO dissolved (terminal)";
|
|
196
|
+
readonly category: "terminal";
|
|
197
|
+
};
|
|
190
198
|
};
|
|
191
199
|
};
|
|
192
200
|
readonly initialState: "ACTIVE";
|
|
@@ -194,13 +202,7 @@ export declare const daoMultisigDef: {
|
|
|
194
202
|
readonly from: "ACTIVE";
|
|
195
203
|
readonly to: "PENDING";
|
|
196
204
|
readonly eventName: "propose";
|
|
197
|
-
readonly guard:
|
|
198
|
-
readonly in: readonly [{
|
|
199
|
-
readonly var: "event.agent";
|
|
200
|
-
}, {
|
|
201
|
-
readonly var: "state.signers";
|
|
202
|
-
}];
|
|
203
|
-
};
|
|
205
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
204
206
|
readonly effect: {
|
|
205
207
|
readonly merge: readonly [{
|
|
206
208
|
readonly var: "state";
|
|
@@ -219,21 +221,21 @@ export declare const daoMultisigDef: {
|
|
|
219
221
|
readonly var: "event.agent";
|
|
220
222
|
};
|
|
221
223
|
readonly proposedAt: {
|
|
222
|
-
readonly var: "$
|
|
224
|
+
readonly var: "$ordinal";
|
|
223
225
|
};
|
|
224
226
|
readonly expiresAt: {
|
|
225
227
|
readonly "+": readonly [{
|
|
226
|
-
readonly var: "$
|
|
228
|
+
readonly var: "$ordinal";
|
|
227
229
|
}, {
|
|
228
230
|
readonly var: "state.proposalTTLMs";
|
|
229
231
|
}];
|
|
230
232
|
};
|
|
231
233
|
};
|
|
232
234
|
readonly signatures: {
|
|
233
|
-
readonly
|
|
235
|
+
readonly set: readonly [{}, {
|
|
234
236
|
readonly var: "event.agent";
|
|
235
237
|
}, {
|
|
236
|
-
readonly var: "$
|
|
238
|
+
readonly var: "$ordinal";
|
|
237
239
|
}];
|
|
238
240
|
};
|
|
239
241
|
}];
|
|
@@ -244,15 +246,9 @@ export declare const daoMultisigDef: {
|
|
|
244
246
|
readonly to: "PENDING";
|
|
245
247
|
readonly eventName: "sign";
|
|
246
248
|
readonly guard: {
|
|
247
|
-
readonly and: readonly [{
|
|
248
|
-
readonly in: readonly [{
|
|
249
|
-
readonly var: "event.agent";
|
|
250
|
-
}, {
|
|
251
|
-
readonly var: "state.signers";
|
|
252
|
-
}];
|
|
253
|
-
}, {
|
|
249
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
254
250
|
readonly "!": readonly [{
|
|
255
|
-
readonly
|
|
251
|
+
readonly has: readonly [{
|
|
256
252
|
readonly var: "state.signatures";
|
|
257
253
|
}, {
|
|
258
254
|
readonly var: "event.agent";
|
|
@@ -260,9 +256,11 @@ export declare const daoMultisigDef: {
|
|
|
260
256
|
}];
|
|
261
257
|
}, {
|
|
262
258
|
readonly "<": readonly [{
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
|
|
259
|
+
readonly length: readonly [{
|
|
260
|
+
readonly keys: readonly [{
|
|
261
|
+
readonly var: "state.signatures";
|
|
262
|
+
}];
|
|
263
|
+
}];
|
|
266
264
|
}, {
|
|
267
265
|
readonly var: "state.threshold";
|
|
268
266
|
}];
|
|
@@ -273,12 +271,12 @@ export declare const daoMultisigDef: {
|
|
|
273
271
|
readonly var: "state";
|
|
274
272
|
}, {
|
|
275
273
|
readonly signatures: {
|
|
276
|
-
readonly
|
|
274
|
+
readonly set: readonly [{
|
|
277
275
|
readonly var: "state.signatures";
|
|
278
276
|
}, {
|
|
279
277
|
readonly var: "event.agent";
|
|
280
278
|
}, {
|
|
281
|
-
readonly var: "$
|
|
279
|
+
readonly var: "$ordinal";
|
|
282
280
|
}];
|
|
283
281
|
};
|
|
284
282
|
}];
|
|
@@ -290,9 +288,11 @@ export declare const daoMultisigDef: {
|
|
|
290
288
|
readonly eventName: "execute";
|
|
291
289
|
readonly guard: {
|
|
292
290
|
readonly ">=": readonly [{
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
|
|
291
|
+
readonly length: readonly [{
|
|
292
|
+
readonly keys: readonly [{
|
|
293
|
+
readonly var: "state.signatures";
|
|
294
|
+
}];
|
|
295
|
+
}];
|
|
296
296
|
}, {
|
|
297
297
|
readonly var: "state.threshold";
|
|
298
298
|
}];
|
|
@@ -318,18 +318,23 @@ export declare const daoMultisigDef: {
|
|
|
318
318
|
readonly var: "state.signatures";
|
|
319
319
|
};
|
|
320
320
|
readonly executedAt: {
|
|
321
|
-
readonly var: "$
|
|
321
|
+
readonly var: "$ordinal";
|
|
322
322
|
};
|
|
323
323
|
}]];
|
|
324
324
|
};
|
|
325
325
|
readonly proposal: null;
|
|
326
326
|
readonly signatures: {};
|
|
327
|
+
readonly _emit: readonly [{
|
|
328
|
+
readonly name: "multisig_executed";
|
|
329
|
+
readonly data: {
|
|
330
|
+
readonly proposalId: {
|
|
331
|
+
readonly var: "state.proposal.id";
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
readonly destination: "external";
|
|
335
|
+
}];
|
|
327
336
|
}];
|
|
328
337
|
};
|
|
329
|
-
readonly emits: readonly [{
|
|
330
|
-
readonly event: "multisig_executed";
|
|
331
|
-
readonly to: "external";
|
|
332
|
-
}];
|
|
333
338
|
readonly dependencies: readonly [];
|
|
334
339
|
}, {
|
|
335
340
|
readonly from: "PENDING";
|
|
@@ -338,17 +343,11 @@ export declare const daoMultisigDef: {
|
|
|
338
343
|
readonly guard: {
|
|
339
344
|
readonly or: readonly [{
|
|
340
345
|
readonly ">": readonly [{
|
|
341
|
-
readonly var: "$
|
|
346
|
+
readonly var: "$ordinal";
|
|
342
347
|
}, {
|
|
343
348
|
readonly var: "state.proposal.expiresAt";
|
|
344
349
|
}];
|
|
345
|
-
},
|
|
346
|
-
readonly "===": readonly [{
|
|
347
|
-
readonly var: "event.agent";
|
|
348
|
-
}, {
|
|
349
|
-
readonly var: "state.proposal.proposer";
|
|
350
|
-
}];
|
|
351
|
-
}];
|
|
350
|
+
}, import("../../../schema/guards.js").GuardRule];
|
|
352
351
|
};
|
|
353
352
|
readonly effect: {
|
|
354
353
|
readonly merge: readonly [{
|
|
@@ -362,7 +361,7 @@ export declare const daoMultisigDef: {
|
|
|
362
361
|
readonly var: "state.proposal";
|
|
363
362
|
}, {
|
|
364
363
|
readonly cancelledAt: {
|
|
365
|
-
readonly var: "$
|
|
364
|
+
readonly var: "$ordinal";
|
|
366
365
|
};
|
|
367
366
|
}];
|
|
368
367
|
}]];
|
|
@@ -376,13 +375,7 @@ export declare const daoMultisigDef: {
|
|
|
376
375
|
readonly from: "ACTIVE";
|
|
377
376
|
readonly to: "PENDING";
|
|
378
377
|
readonly eventName: "propose_add_signer";
|
|
379
|
-
readonly guard:
|
|
380
|
-
readonly in: readonly [{
|
|
381
|
-
readonly var: "event.agent";
|
|
382
|
-
}, {
|
|
383
|
-
readonly var: "state.signers";
|
|
384
|
-
}];
|
|
385
|
-
};
|
|
378
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
386
379
|
readonly effect: {
|
|
387
380
|
readonly merge: readonly [{
|
|
388
381
|
readonly var: "state";
|
|
@@ -401,21 +394,21 @@ export declare const daoMultisigDef: {
|
|
|
401
394
|
readonly var: "event.agent";
|
|
402
395
|
};
|
|
403
396
|
readonly proposedAt: {
|
|
404
|
-
readonly var: "$
|
|
397
|
+
readonly var: "$ordinal";
|
|
405
398
|
};
|
|
406
399
|
readonly expiresAt: {
|
|
407
400
|
readonly "+": readonly [{
|
|
408
|
-
readonly var: "$
|
|
401
|
+
readonly var: "$ordinal";
|
|
409
402
|
}, {
|
|
410
403
|
readonly var: "state.proposalTTLMs";
|
|
411
404
|
}];
|
|
412
405
|
};
|
|
413
406
|
};
|
|
414
407
|
readonly signatures: {
|
|
415
|
-
readonly
|
|
408
|
+
readonly set: readonly [{}, {
|
|
416
409
|
readonly var: "event.agent";
|
|
417
410
|
}, {
|
|
418
|
-
readonly var: "$
|
|
411
|
+
readonly var: "$ordinal";
|
|
419
412
|
}];
|
|
420
413
|
};
|
|
421
414
|
}];
|
|
@@ -426,17 +419,11 @@ export declare const daoMultisigDef: {
|
|
|
426
419
|
readonly to: "PENDING";
|
|
427
420
|
readonly eventName: "propose_remove_signer";
|
|
428
421
|
readonly guard: {
|
|
429
|
-
readonly and: readonly [{
|
|
430
|
-
readonly in: readonly [{
|
|
431
|
-
readonly var: "event.agent";
|
|
432
|
-
}, {
|
|
433
|
-
readonly var: "state.signers";
|
|
434
|
-
}];
|
|
435
|
-
}, {
|
|
422
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
436
423
|
readonly ">": readonly [{
|
|
437
|
-
readonly
|
|
424
|
+
readonly length: readonly [{
|
|
438
425
|
readonly var: "state.signers";
|
|
439
|
-
};
|
|
426
|
+
}];
|
|
440
427
|
}, {
|
|
441
428
|
readonly var: "state.threshold";
|
|
442
429
|
}];
|
|
@@ -460,21 +447,21 @@ export declare const daoMultisigDef: {
|
|
|
460
447
|
readonly var: "event.agent";
|
|
461
448
|
};
|
|
462
449
|
readonly proposedAt: {
|
|
463
|
-
readonly var: "$
|
|
450
|
+
readonly var: "$ordinal";
|
|
464
451
|
};
|
|
465
452
|
readonly expiresAt: {
|
|
466
453
|
readonly "+": readonly [{
|
|
467
|
-
readonly var: "$
|
|
454
|
+
readonly var: "$ordinal";
|
|
468
455
|
}, {
|
|
469
456
|
readonly var: "state.proposalTTLMs";
|
|
470
457
|
}];
|
|
471
458
|
};
|
|
472
459
|
};
|
|
473
460
|
readonly signatures: {
|
|
474
|
-
readonly
|
|
461
|
+
readonly set: readonly [{}, {
|
|
475
462
|
readonly var: "event.agent";
|
|
476
463
|
}, {
|
|
477
|
-
readonly var: "$
|
|
464
|
+
readonly var: "$ordinal";
|
|
478
465
|
}];
|
|
479
466
|
};
|
|
480
467
|
}];
|
|
@@ -485,13 +472,7 @@ export declare const daoMultisigDef: {
|
|
|
485
472
|
readonly to: "PENDING";
|
|
486
473
|
readonly eventName: "propose_change_threshold";
|
|
487
474
|
readonly guard: {
|
|
488
|
-
readonly and: readonly [{
|
|
489
|
-
readonly in: readonly [{
|
|
490
|
-
readonly var: "event.agent";
|
|
491
|
-
}, {
|
|
492
|
-
readonly var: "state.signers";
|
|
493
|
-
}];
|
|
494
|
-
}, {
|
|
475
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
495
476
|
readonly ">=": readonly [{
|
|
496
477
|
readonly var: "event.newThreshold";
|
|
497
478
|
}, 1];
|
|
@@ -499,9 +480,9 @@ export declare const daoMultisigDef: {
|
|
|
499
480
|
readonly "<=": readonly [{
|
|
500
481
|
readonly var: "event.newThreshold";
|
|
501
482
|
}, {
|
|
502
|
-
readonly
|
|
483
|
+
readonly length: readonly [{
|
|
503
484
|
readonly var: "state.signers";
|
|
504
|
-
};
|
|
485
|
+
}];
|
|
505
486
|
}];
|
|
506
487
|
}];
|
|
507
488
|
};
|
|
@@ -523,21 +504,21 @@ export declare const daoMultisigDef: {
|
|
|
523
504
|
readonly var: "event.agent";
|
|
524
505
|
};
|
|
525
506
|
readonly proposedAt: {
|
|
526
|
-
readonly var: "$
|
|
507
|
+
readonly var: "$ordinal";
|
|
527
508
|
};
|
|
528
509
|
readonly expiresAt: {
|
|
529
510
|
readonly "+": readonly [{
|
|
530
|
-
readonly var: "$
|
|
511
|
+
readonly var: "$ordinal";
|
|
531
512
|
}, {
|
|
532
513
|
readonly var: "state.proposalTTLMs";
|
|
533
514
|
}];
|
|
534
515
|
};
|
|
535
516
|
};
|
|
536
517
|
readonly signatures: {
|
|
537
|
-
readonly
|
|
518
|
+
readonly set: readonly [{}, {
|
|
538
519
|
readonly var: "event.agent";
|
|
539
520
|
}, {
|
|
540
|
-
readonly var: "$
|
|
521
|
+
readonly var: "$ordinal";
|
|
541
522
|
}];
|
|
542
523
|
};
|
|
543
524
|
}];
|
|
@@ -550,9 +531,11 @@ export declare const daoMultisigDef: {
|
|
|
550
531
|
readonly guard: {
|
|
551
532
|
readonly and: readonly [{
|
|
552
533
|
readonly ">=": readonly [{
|
|
553
|
-
readonly
|
|
554
|
-
readonly
|
|
555
|
-
|
|
534
|
+
readonly length: readonly [{
|
|
535
|
+
readonly keys: readonly [{
|
|
536
|
+
readonly var: "state.signatures";
|
|
537
|
+
}];
|
|
538
|
+
}];
|
|
556
539
|
}, {
|
|
557
540
|
readonly var: "state.threshold";
|
|
558
541
|
}];
|
|
@@ -621,12 +604,26 @@ export declare const daoMultisigDef: {
|
|
|
621
604
|
readonly to: "DISSOLVED";
|
|
622
605
|
readonly eventName: "dissolve";
|
|
623
606
|
readonly guard: {
|
|
624
|
-
readonly
|
|
625
|
-
readonly
|
|
607
|
+
readonly and: readonly [{
|
|
608
|
+
readonly ">": readonly [{
|
|
609
|
+
readonly length: readonly [{
|
|
610
|
+
readonly var: "state.signers";
|
|
611
|
+
}];
|
|
612
|
+
}, 0];
|
|
626
613
|
}, {
|
|
627
|
-
readonly
|
|
614
|
+
readonly all: readonly [{
|
|
628
615
|
readonly var: "state.signers";
|
|
629
|
-
}
|
|
616
|
+
}, {
|
|
617
|
+
readonly in: readonly [{
|
|
618
|
+
readonly var: "";
|
|
619
|
+
}, {
|
|
620
|
+
readonly map: readonly [{
|
|
621
|
+
readonly var: "proofs";
|
|
622
|
+
}, {
|
|
623
|
+
readonly var: "address";
|
|
624
|
+
}];
|
|
625
|
+
}];
|
|
626
|
+
}];
|
|
630
627
|
}];
|
|
631
628
|
};
|
|
632
629
|
readonly effect: {
|
|
@@ -634,7 +631,7 @@ export declare const daoMultisigDef: {
|
|
|
634
631
|
readonly var: "state";
|
|
635
632
|
}, {
|
|
636
633
|
readonly dissolvedAt: {
|
|
637
|
-
readonly var: "$
|
|
634
|
+
readonly var: "$ordinal";
|
|
638
635
|
};
|
|
639
636
|
readonly status: "DISSOLVED";
|
|
640
637
|
}];
|
|
@@ -179,17 +179,29 @@ export declare const daoReputationDef: {
|
|
|
179
179
|
readonly ACTIVE: {
|
|
180
180
|
readonly id: "ACTIVE";
|
|
181
181
|
readonly isFinal: false;
|
|
182
|
-
readonly metadata:
|
|
182
|
+
readonly metadata: {
|
|
183
|
+
readonly label: "Active";
|
|
184
|
+
readonly description: "DAO is idle and ready to accept a proposal";
|
|
185
|
+
readonly category: "initial";
|
|
186
|
+
};
|
|
183
187
|
};
|
|
184
188
|
readonly VOTING: {
|
|
185
189
|
readonly id: "VOTING";
|
|
186
190
|
readonly isFinal: false;
|
|
187
|
-
readonly metadata:
|
|
191
|
+
readonly metadata: {
|
|
192
|
+
readonly label: "Voting";
|
|
193
|
+
readonly description: "Members vote with reputation-weighted power";
|
|
194
|
+
readonly category: "pending";
|
|
195
|
+
};
|
|
188
196
|
};
|
|
189
197
|
readonly DISSOLVED: {
|
|
190
198
|
readonly id: "DISSOLVED";
|
|
191
199
|
readonly isFinal: true;
|
|
192
|
-
readonly metadata:
|
|
200
|
+
readonly metadata: {
|
|
201
|
+
readonly label: "Dissolved";
|
|
202
|
+
readonly description: "Reputation DAO dissolved (terminal)";
|
|
203
|
+
readonly category: "terminal";
|
|
204
|
+
};
|
|
193
205
|
};
|
|
194
206
|
};
|
|
195
207
|
readonly initialState: "ACTIVE";
|
|
@@ -228,11 +240,11 @@ export declare const daoReputationDef: {
|
|
|
228
240
|
readonly var: "event.agent";
|
|
229
241
|
};
|
|
230
242
|
readonly proposedAt: {
|
|
231
|
-
readonly var: "$
|
|
243
|
+
readonly var: "$ordinal";
|
|
232
244
|
};
|
|
233
245
|
readonly deadline: {
|
|
234
246
|
readonly "+": readonly [{
|
|
235
|
-
readonly var: "$
|
|
247
|
+
readonly var: "$ordinal";
|
|
236
248
|
}, {
|
|
237
249
|
readonly var: "state.votingPeriodMs";
|
|
238
250
|
}];
|
|
@@ -258,32 +270,14 @@ export declare const daoReputationDef: {
|
|
|
258
270
|
readonly var: "state.voteThreshold";
|
|
259
271
|
}];
|
|
260
272
|
}, {
|
|
261
|
-
readonly "!": readonly [
|
|
262
|
-
readonly in: readonly [{
|
|
263
|
-
readonly var: "event.agent";
|
|
264
|
-
}, {
|
|
265
|
-
readonly var: "state.votes.for";
|
|
266
|
-
}];
|
|
267
|
-
}];
|
|
273
|
+
readonly "!": readonly [import("../../../schema/guards.js").GuardRule];
|
|
268
274
|
}, {
|
|
269
|
-
readonly "!": readonly [
|
|
270
|
-
readonly in: readonly [{
|
|
271
|
-
readonly var: "event.agent";
|
|
272
|
-
}, {
|
|
273
|
-
readonly var: "state.votes.against";
|
|
274
|
-
}];
|
|
275
|
-
}];
|
|
275
|
+
readonly "!": readonly [import("../../../schema/guards.js").GuardRule];
|
|
276
276
|
}, {
|
|
277
|
-
readonly "!": readonly [
|
|
278
|
-
readonly in: readonly [{
|
|
279
|
-
readonly var: "event.agent";
|
|
280
|
-
}, {
|
|
281
|
-
readonly var: "state.votes.abstain";
|
|
282
|
-
}];
|
|
283
|
-
}];
|
|
277
|
+
readonly "!": readonly [import("../../../schema/guards.js").GuardRule];
|
|
284
278
|
}, {
|
|
285
279
|
readonly "<=": readonly [{
|
|
286
|
-
readonly var: "$
|
|
280
|
+
readonly var: "$ordinal";
|
|
287
281
|
}, {
|
|
288
282
|
readonly var: "state.proposal.deadline";
|
|
289
283
|
}];
|
|
@@ -350,30 +344,30 @@ export declare const daoReputationDef: {
|
|
|
350
344
|
readonly guard: {
|
|
351
345
|
readonly and: readonly [{
|
|
352
346
|
readonly ">": readonly [{
|
|
353
|
-
readonly var: "$
|
|
347
|
+
readonly var: "$ordinal";
|
|
354
348
|
}, {
|
|
355
349
|
readonly var: "state.proposal.deadline";
|
|
356
350
|
}];
|
|
357
351
|
}, {
|
|
358
352
|
readonly ">": readonly [{
|
|
359
|
-
readonly
|
|
353
|
+
readonly length: readonly [{
|
|
360
354
|
readonly var: "state.votes.for";
|
|
361
|
-
};
|
|
355
|
+
}];
|
|
362
356
|
}, {
|
|
363
|
-
readonly
|
|
357
|
+
readonly length: readonly [{
|
|
364
358
|
readonly var: "state.votes.against";
|
|
365
|
-
};
|
|
359
|
+
}];
|
|
366
360
|
}];
|
|
367
361
|
}, {
|
|
368
362
|
readonly ">=": readonly [{
|
|
369
363
|
readonly "+": readonly [{
|
|
370
|
-
readonly
|
|
364
|
+
readonly length: readonly [{
|
|
371
365
|
readonly var: "state.votes.for";
|
|
372
|
-
};
|
|
366
|
+
}];
|
|
373
367
|
}, {
|
|
374
|
-
readonly
|
|
368
|
+
readonly length: readonly [{
|
|
375
369
|
readonly var: "state.votes.against";
|
|
376
|
-
};
|
|
370
|
+
}];
|
|
377
371
|
}];
|
|
378
372
|
}, {
|
|
379
373
|
readonly var: "state.quorum";
|
|
@@ -396,24 +390,24 @@ export declare const daoReputationDef: {
|
|
|
396
390
|
readonly var: "state.votes";
|
|
397
391
|
};
|
|
398
392
|
readonly at: {
|
|
399
|
-
readonly var: "$
|
|
393
|
+
readonly var: "$ordinal";
|
|
400
394
|
};
|
|
401
395
|
}]];
|
|
402
396
|
};
|
|
403
397
|
readonly proposal: null;
|
|
404
398
|
readonly votes: null;
|
|
399
|
+
readonly _emit: readonly [{
|
|
400
|
+
readonly name: "proposal_executed";
|
|
401
|
+
readonly data: {
|
|
402
|
+
readonly action: "increase";
|
|
403
|
+
readonly agents: {
|
|
404
|
+
readonly var: "state.votes.for";
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly destination: "Reputation";
|
|
408
|
+
}];
|
|
405
409
|
}];
|
|
406
410
|
};
|
|
407
|
-
readonly emits: readonly [{
|
|
408
|
-
readonly event: "proposal_executed";
|
|
409
|
-
readonly to: "Reputation";
|
|
410
|
-
readonly payload: {
|
|
411
|
-
readonly action: "increase";
|
|
412
|
-
readonly agents: {
|
|
413
|
-
readonly var: "state.votes.for";
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
}];
|
|
417
411
|
readonly dependencies: readonly [];
|
|
418
412
|
}, {
|
|
419
413
|
readonly from: "VOTING";
|
|
@@ -422,31 +416,31 @@ export declare const daoReputationDef: {
|
|
|
422
416
|
readonly guard: {
|
|
423
417
|
readonly and: readonly [{
|
|
424
418
|
readonly ">": readonly [{
|
|
425
|
-
readonly var: "$
|
|
419
|
+
readonly var: "$ordinal";
|
|
426
420
|
}, {
|
|
427
421
|
readonly var: "state.proposal.deadline";
|
|
428
422
|
}];
|
|
429
423
|
}, {
|
|
430
424
|
readonly or: readonly [{
|
|
431
425
|
readonly "<=": readonly [{
|
|
432
|
-
readonly
|
|
426
|
+
readonly length: readonly [{
|
|
433
427
|
readonly var: "state.votes.for";
|
|
434
|
-
};
|
|
428
|
+
}];
|
|
435
429
|
}, {
|
|
436
|
-
readonly
|
|
430
|
+
readonly length: readonly [{
|
|
437
431
|
readonly var: "state.votes.against";
|
|
438
|
-
};
|
|
432
|
+
}];
|
|
439
433
|
}];
|
|
440
434
|
}, {
|
|
441
435
|
readonly "<": readonly [{
|
|
442
436
|
readonly "+": readonly [{
|
|
443
|
-
readonly
|
|
437
|
+
readonly length: readonly [{
|
|
444
438
|
readonly var: "state.votes.for";
|
|
445
|
-
};
|
|
439
|
+
}];
|
|
446
440
|
}, {
|
|
447
|
-
readonly
|
|
441
|
+
readonly length: readonly [{
|
|
448
442
|
readonly var: "state.votes.against";
|
|
449
|
-
};
|
|
443
|
+
}];
|
|
450
444
|
}];
|
|
451
445
|
}, {
|
|
452
446
|
readonly var: "state.quorum";
|
|
@@ -470,7 +464,7 @@ export declare const daoReputationDef: {
|
|
|
470
464
|
readonly var: "state.votes";
|
|
471
465
|
};
|
|
472
466
|
readonly at: {
|
|
473
|
-
readonly var: "$
|
|
467
|
+
readonly var: "$ordinal";
|
|
474
468
|
};
|
|
475
469
|
}]];
|
|
476
470
|
};
|
|
@@ -484,7 +478,7 @@ export declare const daoReputationDef: {
|
|
|
484
478
|
readonly to: "ACTIVE";
|
|
485
479
|
readonly eventName: "join";
|
|
486
480
|
readonly guard: {
|
|
487
|
-
readonly and: readonly [{
|
|
481
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
488
482
|
readonly ">=": readonly [{
|
|
489
483
|
readonly var: "event.agentReputation";
|
|
490
484
|
}, {
|
|
@@ -512,12 +506,12 @@ export declare const daoReputationDef: {
|
|
|
512
506
|
}]];
|
|
513
507
|
};
|
|
514
508
|
readonly memberJoinedAt: {
|
|
515
|
-
readonly
|
|
509
|
+
readonly set: readonly [{
|
|
516
510
|
readonly var: "state.memberJoinedAt";
|
|
517
511
|
}, {
|
|
518
512
|
readonly var: "event.agent";
|
|
519
513
|
}, {
|
|
520
|
-
readonly var: "$
|
|
514
|
+
readonly var: "$ordinal";
|
|
521
515
|
}];
|
|
522
516
|
};
|
|
523
517
|
}];
|
|
@@ -527,13 +521,7 @@ export declare const daoReputationDef: {
|
|
|
527
521
|
readonly from: "ACTIVE";
|
|
528
522
|
readonly to: "ACTIVE";
|
|
529
523
|
readonly eventName: "leave";
|
|
530
|
-
readonly guard:
|
|
531
|
-
readonly in: readonly [{
|
|
532
|
-
readonly var: "event.agent";
|
|
533
|
-
}, {
|
|
534
|
-
readonly var: "state.members";
|
|
535
|
-
}];
|
|
536
|
-
};
|
|
524
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
537
525
|
readonly effect: {
|
|
538
526
|
readonly merge: readonly [{
|
|
539
527
|
readonly var: "state";
|
|
@@ -588,11 +576,11 @@ export declare const daoReputationDef: {
|
|
|
588
576
|
readonly var: "event.agent";
|
|
589
577
|
};
|
|
590
578
|
readonly proposedAt: {
|
|
591
|
-
readonly var: "$
|
|
579
|
+
readonly var: "$ordinal";
|
|
592
580
|
};
|
|
593
581
|
readonly deadline: {
|
|
594
582
|
readonly "+": readonly [{
|
|
595
|
-
readonly var: "$
|
|
583
|
+
readonly var: "$ordinal";
|
|
596
584
|
}, {
|
|
597
585
|
readonly var: "state.votingPeriodMs";
|
|
598
586
|
}];
|