@ottochain/sdk 2.3.0 → 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 +35 -40
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +80 -37
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +4 -4
- 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 +58 -40
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +46 -40
- package/dist/cjs/apps/governance/state-machines/dao-single.js +28 -11
- package/dist/cjs/apps/governance/state-machines/dao-token.js +67 -41
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +93 -61
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +2 -2
- 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 +3 -3
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +25 -22
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +288 -0
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +3 -3
- 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 +14 -13
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +29 -24
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +24 -26
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +80 -53
- package/dist/cjs/apps/markets/state-machines/market-universal.js +5 -5
- 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 +4 -4
- package/dist/cjs/generated/ottochain/v1/fiber.js +4 -4
- package/dist/cjs/index.js +41 -7
- package/dist/cjs/openapi.js +2 -0
- package/dist/cjs/ottochain/drop-nulls.js +1 -2
- package/dist/cjs/ottochain/genesis-manifest.js +11 -11
- package/dist/cjs/ottochain/index.js +23 -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 +16 -2
- 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 +35 -40
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +80 -37
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +4 -4
- 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 +58 -40
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +46 -40
- package/dist/esm/apps/governance/state-machines/dao-single.js +28 -11
- package/dist/esm/apps/governance/state-machines/dao-token.js +67 -41
- package/dist/esm/apps/governance/state-machines/governance-simple.js +93 -61
- package/dist/esm/apps/governance/state-machines/governance-universal.js +2 -2
- 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 +3 -3
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +25 -22
- package/dist/esm/apps/identity/state-machines/identity-registry.js +285 -0
- package/dist/esm/apps/identity/state-machines/identity-universal.js +3 -3
- 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 +14 -13
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +29 -24
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +24 -26
- package/dist/esm/apps/markets/state-machines/market-prediction.js +80 -53
- package/dist/esm/apps/markets/state-machines/market-universal.js +5 -5
- 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/index.js +21 -2
- package/dist/esm/openapi.js +1 -0
- package/dist/esm/ottochain/genesis-manifest.js +9 -9
- package/dist/esm/ottochain/index.js +2 -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 +15 -1
- 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 +69 -209
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +20 -95
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +46 -112
- 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 +296 -398
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +77 -92
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +42 -66
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +25 -47
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +60 -49
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +87 -117
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +2 -2
- package/dist/types/apps/identity/constants.d.ts +32 -4
- package/dist/types/apps/identity/index.d.ts +378 -94
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +16 -87
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +379 -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 +108 -203
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +13 -37
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +16 -34
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +17 -43
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +51 -72
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +5 -5
- 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/index.d.ts +6 -2
- package/dist/types/openapi.d.ts +22 -0
- package/dist/types/ottochain/genesis-manifest.d.ts +5 -5
- package/dist/types/ottochain/index.d.ts +5 -6
- 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 +335 -30
- 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 +1 -2
- 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 +27 -13
- 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
|
@@ -168,20 +168,14 @@ export declare const marketAuctionDef: {
|
|
|
168
168
|
readonly from: "PROPOSED";
|
|
169
169
|
readonly to: "OPEN";
|
|
170
170
|
readonly eventName: "open";
|
|
171
|
-
readonly guard:
|
|
172
|
-
readonly "===": readonly [{
|
|
173
|
-
readonly var: "event.agent";
|
|
174
|
-
}, {
|
|
175
|
-
readonly var: "state.seller";
|
|
176
|
-
}];
|
|
177
|
-
};
|
|
171
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
178
172
|
readonly effect: {
|
|
179
173
|
readonly merge: readonly [{
|
|
180
174
|
readonly var: "state";
|
|
181
175
|
}, {
|
|
182
176
|
readonly status: "OPEN";
|
|
183
177
|
readonly openedAt: {
|
|
184
|
-
readonly var: "$
|
|
178
|
+
readonly var: "$ordinal";
|
|
185
179
|
};
|
|
186
180
|
readonly bids: readonly [];
|
|
187
181
|
readonly highBid: null;
|
|
@@ -193,20 +187,14 @@ export declare const marketAuctionDef: {
|
|
|
193
187
|
readonly from: "PROPOSED";
|
|
194
188
|
readonly to: "CANCELLED";
|
|
195
189
|
readonly eventName: "cancel";
|
|
196
|
-
readonly guard:
|
|
197
|
-
readonly "===": readonly [{
|
|
198
|
-
readonly var: "event.agent";
|
|
199
|
-
}, {
|
|
200
|
-
readonly var: "state.seller";
|
|
201
|
-
}];
|
|
202
|
-
};
|
|
190
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
203
191
|
readonly effect: {
|
|
204
192
|
readonly merge: readonly [{
|
|
205
193
|
readonly var: "state";
|
|
206
194
|
}, {
|
|
207
195
|
readonly status: "CANCELLED";
|
|
208
196
|
readonly cancelledAt: {
|
|
209
|
-
readonly var: "$
|
|
197
|
+
readonly var: "$ordinal";
|
|
210
198
|
};
|
|
211
199
|
}];
|
|
212
200
|
};
|
|
@@ -216,13 +204,7 @@ export declare const marketAuctionDef: {
|
|
|
216
204
|
readonly to: "OPEN";
|
|
217
205
|
readonly eventName: "bid";
|
|
218
206
|
readonly guard: {
|
|
219
|
-
readonly and: readonly [{
|
|
220
|
-
readonly "!==": readonly [{
|
|
221
|
-
readonly var: "event.agent";
|
|
222
|
-
}, {
|
|
223
|
-
readonly var: "state.seller";
|
|
224
|
-
}];
|
|
225
|
-
}, {
|
|
207
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
226
208
|
readonly ">=": readonly [{
|
|
227
209
|
readonly var: "event.amount";
|
|
228
210
|
}, {
|
|
@@ -251,7 +233,7 @@ export declare const marketAuctionDef: {
|
|
|
251
233
|
}];
|
|
252
234
|
}, {
|
|
253
235
|
readonly "<=": readonly [{
|
|
254
|
-
readonly var: "$
|
|
236
|
+
readonly var: "$ordinal";
|
|
255
237
|
}, {
|
|
256
238
|
readonly var: "state.deadline";
|
|
257
239
|
}];
|
|
@@ -273,7 +255,7 @@ export declare const marketAuctionDef: {
|
|
|
273
255
|
readonly var: "event.amount";
|
|
274
256
|
};
|
|
275
257
|
readonly bidAt: {
|
|
276
|
-
readonly var: "$
|
|
258
|
+
readonly var: "$ordinal";
|
|
277
259
|
};
|
|
278
260
|
}]];
|
|
279
261
|
};
|
|
@@ -284,7 +266,7 @@ export declare const marketAuctionDef: {
|
|
|
284
266
|
readonly var: "event.agent";
|
|
285
267
|
};
|
|
286
268
|
readonly lastBidAt: {
|
|
287
|
-
readonly var: "$
|
|
269
|
+
readonly var: "$ordinal";
|
|
288
270
|
};
|
|
289
271
|
}];
|
|
290
272
|
};
|
|
@@ -294,18 +276,12 @@ export declare const marketAuctionDef: {
|
|
|
294
276
|
readonly to: "CLOSING";
|
|
295
277
|
readonly eventName: "close";
|
|
296
278
|
readonly guard: {
|
|
297
|
-
readonly or: readonly [{
|
|
298
|
-
readonly "===": readonly [{
|
|
299
|
-
readonly var: "event.agent";
|
|
300
|
-
}, {
|
|
301
|
-
readonly var: "state.seller";
|
|
302
|
-
}];
|
|
303
|
-
}, {
|
|
279
|
+
readonly or: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
304
280
|
readonly and: readonly [{
|
|
305
281
|
readonly var: "state.deadline";
|
|
306
282
|
}, {
|
|
307
283
|
readonly ">=": readonly [{
|
|
308
|
-
readonly var: "$
|
|
284
|
+
readonly var: "$ordinal";
|
|
309
285
|
}, {
|
|
310
286
|
readonly var: "state.deadline";
|
|
311
287
|
}];
|
|
@@ -318,7 +294,7 @@ export declare const marketAuctionDef: {
|
|
|
318
294
|
}, {
|
|
319
295
|
readonly status: "CLOSING";
|
|
320
296
|
readonly closedAt: {
|
|
321
|
-
readonly var: "$
|
|
297
|
+
readonly var: "$ordinal";
|
|
322
298
|
};
|
|
323
299
|
}];
|
|
324
300
|
};
|
|
@@ -350,7 +326,7 @@ export declare const marketAuctionDef: {
|
|
|
350
326
|
}, {
|
|
351
327
|
readonly status: "SETTLED";
|
|
352
328
|
readonly settledAt: {
|
|
353
|
-
readonly var: "$
|
|
329
|
+
readonly var: "$ordinal";
|
|
354
330
|
};
|
|
355
331
|
readonly winner: {
|
|
356
332
|
readonly var: "state.highBidder";
|
|
@@ -388,7 +364,7 @@ export declare const marketAuctionDef: {
|
|
|
388
364
|
}, {
|
|
389
365
|
readonly status: "NO_SALE";
|
|
390
366
|
readonly closedAt: {
|
|
391
|
-
readonly var: "$
|
|
367
|
+
readonly var: "$ordinal";
|
|
392
368
|
};
|
|
393
369
|
readonly reason: {
|
|
394
370
|
readonly if: readonly [{
|
|
@@ -174,20 +174,14 @@ export declare const marketCrowdfundDef: {
|
|
|
174
174
|
readonly from: "PROPOSED";
|
|
175
175
|
readonly to: "OPEN";
|
|
176
176
|
readonly eventName: "launch";
|
|
177
|
-
readonly guard:
|
|
178
|
-
readonly "===": readonly [{
|
|
179
|
-
readonly var: "event.agent";
|
|
180
|
-
}, {
|
|
181
|
-
readonly var: "state.creator";
|
|
182
|
-
}];
|
|
183
|
-
};
|
|
177
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
184
178
|
readonly effect: {
|
|
185
179
|
readonly merge: readonly [{
|
|
186
180
|
readonly var: "state";
|
|
187
181
|
}, {
|
|
188
182
|
readonly status: "OPEN";
|
|
189
183
|
readonly launchedAt: {
|
|
190
|
-
readonly var: "$
|
|
184
|
+
readonly var: "$ordinal";
|
|
191
185
|
};
|
|
192
186
|
readonly pledges: readonly [];
|
|
193
187
|
readonly totalPledged: 0;
|
|
@@ -199,20 +193,14 @@ export declare const marketCrowdfundDef: {
|
|
|
199
193
|
readonly from: "PROPOSED";
|
|
200
194
|
readonly to: "CANCELLED";
|
|
201
195
|
readonly eventName: "cancel";
|
|
202
|
-
readonly guard:
|
|
203
|
-
readonly "===": readonly [{
|
|
204
|
-
readonly var: "event.agent";
|
|
205
|
-
}, {
|
|
206
|
-
readonly var: "state.creator";
|
|
207
|
-
}];
|
|
208
|
-
};
|
|
196
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
209
197
|
readonly effect: {
|
|
210
198
|
readonly merge: readonly [{
|
|
211
199
|
readonly var: "state";
|
|
212
200
|
}, {
|
|
213
201
|
readonly status: "CANCELLED";
|
|
214
202
|
readonly cancelledAt: {
|
|
215
|
-
readonly var: "$
|
|
203
|
+
readonly var: "$ordinal";
|
|
216
204
|
};
|
|
217
205
|
}];
|
|
218
206
|
};
|
|
@@ -226,13 +214,7 @@ export declare const marketCrowdfundDef: {
|
|
|
226
214
|
readonly ">": readonly [{
|
|
227
215
|
readonly var: "event.amount";
|
|
228
216
|
}, 0];
|
|
229
|
-
}, {
|
|
230
|
-
readonly "!==": readonly [{
|
|
231
|
-
readonly var: "event.agent";
|
|
232
|
-
}, {
|
|
233
|
-
readonly var: "state.creator";
|
|
234
|
-
}];
|
|
235
|
-
}, {
|
|
217
|
+
}, import("../../../schema/guards.js").GuardRule, {
|
|
236
218
|
readonly or: readonly [{
|
|
237
219
|
readonly "!": readonly [{
|
|
238
220
|
readonly var: "state.minPledge";
|
|
@@ -246,7 +228,7 @@ export declare const marketCrowdfundDef: {
|
|
|
246
228
|
}];
|
|
247
229
|
}, {
|
|
248
230
|
readonly "<=": readonly [{
|
|
249
|
-
readonly var: "$
|
|
231
|
+
readonly var: "$ordinal";
|
|
250
232
|
}, {
|
|
251
233
|
readonly var: "state.deadline";
|
|
252
234
|
}];
|
|
@@ -270,7 +252,7 @@ export declare const marketCrowdfundDef: {
|
|
|
270
252
|
readonly var: "event.rewardTier";
|
|
271
253
|
};
|
|
272
254
|
readonly pledgedAt: {
|
|
273
|
-
readonly var: "$
|
|
255
|
+
readonly var: "$ordinal";
|
|
274
256
|
};
|
|
275
257
|
}]];
|
|
276
258
|
};
|
|
@@ -300,13 +282,13 @@ export declare const marketCrowdfundDef: {
|
|
|
300
282
|
}, 0];
|
|
301
283
|
}, {
|
|
302
284
|
readonly "<=": readonly [{
|
|
303
|
-
readonly var: "$
|
|
285
|
+
readonly var: "$ordinal";
|
|
304
286
|
}, {
|
|
305
287
|
readonly var: "state.deadline";
|
|
306
288
|
}];
|
|
307
289
|
}, {
|
|
308
290
|
readonly ">": readonly [{
|
|
309
|
-
readonly
|
|
291
|
+
readonly length: readonly [{
|
|
310
292
|
readonly filter: readonly [{
|
|
311
293
|
readonly var: "state.pledges";
|
|
312
294
|
}, {
|
|
@@ -316,7 +298,7 @@ export declare const marketCrowdfundDef: {
|
|
|
316
298
|
readonly var: "event.agent";
|
|
317
299
|
}];
|
|
318
300
|
}];
|
|
319
|
-
};
|
|
301
|
+
}];
|
|
320
302
|
}, 0];
|
|
321
303
|
}];
|
|
322
304
|
};
|
|
@@ -347,7 +329,7 @@ export declare const marketCrowdfundDef: {
|
|
|
347
329
|
}];
|
|
348
330
|
}, {
|
|
349
331
|
readonly ">=": readonly [{
|
|
350
|
-
readonly var: "$
|
|
332
|
+
readonly var: "$ordinal";
|
|
351
333
|
}, {
|
|
352
334
|
readonly var: "state.deadline";
|
|
353
335
|
}];
|
|
@@ -359,7 +341,7 @@ export declare const marketCrowdfundDef: {
|
|
|
359
341
|
}, {
|
|
360
342
|
readonly status: "FUNDED";
|
|
361
343
|
readonly fundedAt: {
|
|
362
|
-
readonly var: "$
|
|
344
|
+
readonly var: "$ordinal";
|
|
363
345
|
};
|
|
364
346
|
readonly stretchGoalsReached: {
|
|
365
347
|
readonly filter: readonly [{
|
|
@@ -388,7 +370,7 @@ export declare const marketCrowdfundDef: {
|
|
|
388
370
|
}];
|
|
389
371
|
}, {
|
|
390
372
|
readonly ">=": readonly [{
|
|
391
|
-
readonly var: "$
|
|
373
|
+
readonly var: "$ordinal";
|
|
392
374
|
}, {
|
|
393
375
|
readonly var: "state.deadline";
|
|
394
376
|
}];
|
|
@@ -400,7 +382,7 @@ export declare const marketCrowdfundDef: {
|
|
|
400
382
|
}, {
|
|
401
383
|
readonly status: "REFUNDED";
|
|
402
384
|
readonly refundedAt: {
|
|
403
|
-
readonly var: "$
|
|
385
|
+
readonly var: "$ordinal";
|
|
404
386
|
};
|
|
405
387
|
readonly reason: "threshold_not_met";
|
|
406
388
|
}];
|
|
@@ -413,7 +395,7 @@ export declare const marketCrowdfundDef: {
|
|
|
413
395
|
readonly guard: {
|
|
414
396
|
readonly and: readonly [{
|
|
415
397
|
readonly ">": readonly [{
|
|
416
|
-
readonly
|
|
398
|
+
readonly length: readonly [{
|
|
417
399
|
readonly filter: readonly [{
|
|
418
400
|
readonly var: "state.pledges";
|
|
419
401
|
}, {
|
|
@@ -423,7 +405,7 @@ export declare const marketCrowdfundDef: {
|
|
|
423
405
|
readonly var: "event.agent";
|
|
424
406
|
}];
|
|
425
407
|
}];
|
|
426
|
-
};
|
|
408
|
+
}];
|
|
427
409
|
}, 0];
|
|
428
410
|
}, {
|
|
429
411
|
readonly "!": readonly [{
|
|
@@ -195,20 +195,14 @@ export declare const marketGroupBuyDef: {
|
|
|
195
195
|
readonly from: "PROPOSED";
|
|
196
196
|
readonly to: "OPEN";
|
|
197
197
|
readonly eventName: "open";
|
|
198
|
-
readonly guard:
|
|
199
|
-
readonly "===": readonly [{
|
|
200
|
-
readonly var: "event.agent";
|
|
201
|
-
}, {
|
|
202
|
-
readonly var: "state.organizer";
|
|
203
|
-
}];
|
|
204
|
-
};
|
|
198
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
205
199
|
readonly effect: {
|
|
206
200
|
readonly merge: readonly [{
|
|
207
201
|
readonly var: "state";
|
|
208
202
|
}, {
|
|
209
203
|
readonly status: "OPEN";
|
|
210
204
|
readonly openedAt: {
|
|
211
|
-
readonly var: "$
|
|
205
|
+
readonly var: "$ordinal";
|
|
212
206
|
};
|
|
213
207
|
readonly orders: readonly [];
|
|
214
208
|
readonly totalQuantity: 0;
|
|
@@ -220,20 +214,14 @@ export declare const marketGroupBuyDef: {
|
|
|
220
214
|
readonly from: "PROPOSED";
|
|
221
215
|
readonly to: "CANCELLED";
|
|
222
216
|
readonly eventName: "cancel";
|
|
223
|
-
readonly guard:
|
|
224
|
-
readonly "===": readonly [{
|
|
225
|
-
readonly var: "event.agent";
|
|
226
|
-
}, {
|
|
227
|
-
readonly var: "state.organizer";
|
|
228
|
-
}];
|
|
229
|
-
};
|
|
217
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
230
218
|
readonly effect: {
|
|
231
219
|
readonly merge: readonly [{
|
|
232
220
|
readonly var: "state";
|
|
233
221
|
}, {
|
|
234
222
|
readonly status: "CANCELLED";
|
|
235
223
|
readonly cancelledAt: {
|
|
236
|
-
readonly var: "$
|
|
224
|
+
readonly var: "$ordinal";
|
|
237
225
|
};
|
|
238
226
|
}];
|
|
239
227
|
};
|
|
@@ -261,7 +249,7 @@ export declare const marketGroupBuyDef: {
|
|
|
261
249
|
}];
|
|
262
250
|
}, {
|
|
263
251
|
readonly "<=": readonly [{
|
|
264
|
-
readonly var: "$
|
|
252
|
+
readonly var: "$ordinal";
|
|
265
253
|
}, {
|
|
266
254
|
readonly var: "state.deadline";
|
|
267
255
|
}];
|
|
@@ -285,7 +273,7 @@ export declare const marketGroupBuyDef: {
|
|
|
285
273
|
readonly var: "event.shippingInfo";
|
|
286
274
|
};
|
|
287
275
|
readonly orderedAt: {
|
|
288
|
-
readonly var: "$
|
|
276
|
+
readonly var: "$ordinal";
|
|
289
277
|
};
|
|
290
278
|
}]];
|
|
291
279
|
};
|
|
@@ -316,7 +304,7 @@ export declare const marketGroupBuyDef: {
|
|
|
316
304
|
}, {
|
|
317
305
|
readonly status: "THRESHOLD_MET";
|
|
318
306
|
readonly thresholdMetAt: {
|
|
319
|
-
readonly var: "$
|
|
307
|
+
readonly var: "$ordinal";
|
|
320
308
|
};
|
|
321
309
|
readonly currentTier: {
|
|
322
310
|
readonly reduce: readonly [{
|
|
@@ -349,7 +337,7 @@ export declare const marketGroupBuyDef: {
|
|
|
349
337
|
}, 0];
|
|
350
338
|
}, {
|
|
351
339
|
readonly "<=": readonly [{
|
|
352
|
-
readonly var: "$
|
|
340
|
+
readonly var: "$ordinal";
|
|
353
341
|
}, {
|
|
354
342
|
readonly var: "state.deadline";
|
|
355
343
|
}];
|
|
@@ -373,7 +361,7 @@ export declare const marketGroupBuyDef: {
|
|
|
373
361
|
readonly var: "event.shippingInfo";
|
|
374
362
|
};
|
|
375
363
|
readonly orderedAt: {
|
|
376
|
-
readonly var: "$
|
|
364
|
+
readonly var: "$ordinal";
|
|
377
365
|
};
|
|
378
366
|
}]];
|
|
379
367
|
};
|
|
@@ -416,7 +404,7 @@ export declare const marketGroupBuyDef: {
|
|
|
416
404
|
readonly eventName: "finalize";
|
|
417
405
|
readonly guard: {
|
|
418
406
|
readonly ">=": readonly [{
|
|
419
|
-
readonly var: "$
|
|
407
|
+
readonly var: "$ordinal";
|
|
420
408
|
}, {
|
|
421
409
|
readonly var: "state.deadline";
|
|
422
410
|
}];
|
|
@@ -427,7 +415,7 @@ export declare const marketGroupBuyDef: {
|
|
|
427
415
|
}, {
|
|
428
416
|
readonly status: "PROCESSING";
|
|
429
417
|
readonly finalizedAt: {
|
|
430
|
-
readonly var: "$
|
|
418
|
+
readonly var: "$ordinal";
|
|
431
419
|
};
|
|
432
420
|
readonly finalTier: {
|
|
433
421
|
readonly var: "state.currentTier";
|
|
@@ -446,28 +434,14 @@ export declare const marketGroupBuyDef: {
|
|
|
446
434
|
readonly from: "PROCESSING";
|
|
447
435
|
readonly to: "FULFILLED";
|
|
448
436
|
readonly eventName: "fulfill";
|
|
449
|
-
readonly guard:
|
|
450
|
-
readonly or: readonly [{
|
|
451
|
-
readonly "===": readonly [{
|
|
452
|
-
readonly var: "event.agent";
|
|
453
|
-
}, {
|
|
454
|
-
readonly var: "state.vendor";
|
|
455
|
-
}];
|
|
456
|
-
}, {
|
|
457
|
-
readonly "===": readonly [{
|
|
458
|
-
readonly var: "event.agent";
|
|
459
|
-
}, {
|
|
460
|
-
readonly var: "state.organizer";
|
|
461
|
-
}];
|
|
462
|
-
}];
|
|
463
|
-
};
|
|
437
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
464
438
|
readonly effect: {
|
|
465
439
|
readonly merge: readonly [{
|
|
466
440
|
readonly var: "state";
|
|
467
441
|
}, {
|
|
468
442
|
readonly status: "FULFILLED";
|
|
469
443
|
readonly fulfilledAt: {
|
|
470
|
-
readonly var: "$
|
|
444
|
+
readonly var: "$ordinal";
|
|
471
445
|
};
|
|
472
446
|
readonly trackingInfo: {
|
|
473
447
|
readonly var: "event.trackingInfo";
|
|
@@ -488,7 +462,7 @@ export declare const marketGroupBuyDef: {
|
|
|
488
462
|
}];
|
|
489
463
|
}, {
|
|
490
464
|
readonly ">=": readonly [{
|
|
491
|
-
readonly var: "$
|
|
465
|
+
readonly var: "$ordinal";
|
|
492
466
|
}, {
|
|
493
467
|
readonly var: "state.deadline";
|
|
494
468
|
}];
|
|
@@ -500,7 +474,7 @@ export declare const marketGroupBuyDef: {
|
|
|
500
474
|
}, {
|
|
501
475
|
readonly status: "REFUNDED";
|
|
502
476
|
readonly refundedAt: {
|
|
503
|
-
readonly var: "$
|
|
477
|
+
readonly var: "$ordinal";
|
|
504
478
|
};
|
|
505
479
|
readonly reason: "threshold_not_met";
|
|
506
480
|
}];
|
|
@@ -513,7 +487,7 @@ export declare const marketGroupBuyDef: {
|
|
|
513
487
|
readonly guard: {
|
|
514
488
|
readonly and: readonly [{
|
|
515
489
|
readonly ">": readonly [{
|
|
516
|
-
readonly
|
|
490
|
+
readonly length: readonly [{
|
|
517
491
|
readonly filter: readonly [{
|
|
518
492
|
readonly var: "state.orders";
|
|
519
493
|
}, {
|
|
@@ -523,7 +497,7 @@ export declare const marketGroupBuyDef: {
|
|
|
523
497
|
readonly var: "event.agent";
|
|
524
498
|
}];
|
|
525
499
|
}];
|
|
526
|
-
};
|
|
500
|
+
}];
|
|
527
501
|
}, 0];
|
|
528
502
|
}, {
|
|
529
503
|
readonly "!": readonly [{
|