@ottochain/sdk 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apps/compute/index.js +33 -0
- package/dist/cjs/apps/compute/state-machines/compute-rule110.js +164 -0
- package/dist/cjs/apps/compute/state-machines/index.js +9 -0
- package/dist/cjs/apps/contracts/index.js +16 -9
- package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +134 -161
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +192 -170
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +46 -58
- package/dist/cjs/apps/corporate/index.js +2 -2
- package/dist/cjs/apps/corporate/state-machines/corp-board.js +500 -456
- package/dist/cjs/apps/corporate/state-machines/corp-entity.js +487 -361
- package/dist/cjs/apps/corporate/state-machines/corp-securities.js +769 -576
- package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +567 -557
- package/dist/cjs/apps/governance/index.js +21 -21
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +188 -209
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +181 -228
- package/dist/cjs/apps/governance/state-machines/dao-single.js +105 -88
- package/dist/cjs/apps/governance/state-machines/dao-token.js +199 -227
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +231 -231
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +64 -64
- package/dist/cjs/apps/identity/constants.js +55 -22
- package/dist/cjs/apps/identity/index.js +28 -12
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +124 -158
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +158 -173
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +262 -0
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +51 -57
- package/dist/cjs/apps/identity/state-machines/index.js +3 -1
- package/dist/cjs/apps/index.js +22 -8
- package/dist/cjs/apps/lending/assets.js +247 -0
- package/dist/cjs/apps/lending/credit-scoring.js +87 -0
- package/dist/cjs/apps/lending/eligibility.js +105 -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 +433 -0
- package/dist/cjs/apps/markets/index.js +22 -12
- package/dist/cjs/apps/markets/state-machines/market-auction.js +116 -134
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +131 -141
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +163 -184
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +226 -233
- package/dist/cjs/apps/markets/state-machines/market-universal.js +65 -80
- package/dist/cjs/apps/oracles/index.js +3 -3
- package/dist/cjs/apps/privacy/index.js +67 -0
- package/dist/cjs/apps/privacy/state-machines/index.js +17 -0
- package/dist/cjs/apps/privacy/state-machines/mixer-ddhRing.js +286 -0
- package/dist/cjs/apps/privacy/state-machines/note-pool.js +476 -0
- package/dist/cjs/apps/staked-pool/assets.js +103 -0
- package/dist/cjs/apps/staked-pool/base.js +498 -0
- package/dist/cjs/apps/staked-pool/consumer.js +55 -0
- package/dist/cjs/apps/staked-pool/index.js +83 -0
- package/dist/cjs/apps/staked-pool/state-machines/index.js +12 -0
- package/dist/cjs/apps/staked-pool/state-machines/staked-pool-base.js +49 -0
- package/dist/cjs/apps/staked-pool/state-machines/staked-pool-oracle.js +131 -0
- package/dist/cjs/errors.js +3 -3
- package/dist/cjs/generated/google/protobuf/struct.js +5 -5
- package/dist/cjs/generated/google/protobuf/timestamp.js +1 -1
- 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 +51 -51
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +20 -21
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +14 -14
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +5 -5
- package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +125 -131
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +108 -108
- package/dist/cjs/generated/ottochain/v1/common.js +5 -5
- package/dist/cjs/generated/ottochain/v1/fiber.js +44 -6
- package/dist/cjs/generated/ottochain/v1/messages.js +1 -1
- package/dist/cjs/generated/ottochain/v1/records.js +1 -1
- package/dist/cjs/index.js +58 -7
- package/dist/cjs/openapi.js +2 -0
- package/dist/cjs/ottochain/drop-nulls.js +1 -2
- package/dist/cjs/ottochain/genesis-manifest.js +17 -11
- package/dist/cjs/ottochain/index.js +23 -13
- package/dist/cjs/ottochain/metagraph-client.js +81 -16
- package/dist/cjs/ottochain/snapshot.js +13 -16
- package/dist/cjs/ottochain/transaction.js +67 -14
- package/dist/cjs/ottochain/types.js +16 -2
- package/dist/cjs/privacy/index.js +14 -0
- package/dist/cjs/privacy/sealed-bid.js +213 -0
- package/dist/cjs/privacy/shield-app.js +131 -0
- package/dist/cjs/schema/effects.js +156 -0
- package/dist/cjs/schema/fiber-app.js +150 -15
- package/dist/cjs/schema/guard-lint.js +343 -0
- package/dist/cjs/schema/guards.js +246 -0
- package/dist/cjs/signing.js +80 -0
- package/dist/cjs/templates/asset-policy.js +190 -0
- package/dist/cjs/templates/index.js +86 -0
- package/dist/cjs/templates/machine.js +130 -0
- package/dist/cjs/templates/migration.js +39 -0
- package/dist/cjs/templates/state-shape.js +38 -0
- package/dist/cjs/types.js +2 -3
- package/dist/cjs/validation.js +9 -11
- 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/compute/index.js +29 -0
- package/dist/esm/apps/compute/state-machines/compute-rule110.js +161 -0
- package/dist/esm/apps/compute/state-machines/index.js +5 -0
- package/dist/esm/apps/contracts/index.js +9 -5
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +135 -162
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +193 -171
- package/dist/esm/apps/contracts/state-machines/contract-universal.js +47 -59
- package/dist/esm/apps/corporate/index.js +2 -2
- package/dist/esm/apps/corporate/state-machines/corp-board.js +501 -457
- package/dist/esm/apps/corporate/state-machines/corp-entity.js +488 -362
- package/dist/esm/apps/corporate/state-machines/corp-securities.js +770 -577
- package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +568 -558
- package/dist/esm/apps/governance/index.js +10 -10
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +189 -210
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +182 -229
- package/dist/esm/apps/governance/state-machines/dao-single.js +106 -89
- package/dist/esm/apps/governance/state-machines/dao-token.js +200 -228
- package/dist/esm/apps/governance/state-machines/governance-simple.js +232 -232
- package/dist/esm/apps/governance/state-machines/governance-universal.js +65 -65
- package/dist/esm/apps/identity/constants.js +52 -21
- package/dist/esm/apps/identity/index.js +14 -9
- package/dist/esm/apps/identity/state-machines/identity-agent.js +125 -159
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +159 -174
- package/dist/esm/apps/identity/state-machines/identity-registry.js +259 -0
- package/dist/esm/apps/identity/state-machines/identity-universal.js +52 -58
- package/dist/esm/apps/identity/state-machines/index.js +1 -0
- package/dist/esm/apps/index.js +9 -5
- package/dist/esm/apps/lending/assets.js +231 -0
- package/dist/esm/apps/lending/credit-scoring.js +81 -0
- package/dist/esm/apps/lending/eligibility.js +99 -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 +430 -0
- package/dist/esm/apps/markets/index.js +11 -7
- package/dist/esm/apps/markets/state-machines/market-auction.js +117 -135
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +132 -142
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +164 -185
- package/dist/esm/apps/markets/state-machines/market-prediction.js +227 -234
- package/dist/esm/apps/markets/state-machines/market-universal.js +66 -81
- package/dist/esm/apps/oracles/index.js +3 -3
- package/dist/esm/apps/privacy/index.js +56 -0
- package/dist/esm/apps/privacy/state-machines/index.js +6 -0
- package/dist/esm/apps/privacy/state-machines/mixer-ddhRing.js +282 -0
- package/dist/esm/apps/privacy/state-machines/note-pool.js +470 -0
- package/dist/esm/apps/staked-pool/assets.js +91 -0
- package/dist/esm/apps/staked-pool/base.js +493 -0
- package/dist/esm/apps/staked-pool/consumer.js +49 -0
- package/dist/esm/apps/staked-pool/index.js +60 -0
- package/dist/esm/apps/staked-pool/state-machines/index.js +6 -0
- package/dist/esm/apps/staked-pool/state-machines/staked-pool-base.js +46 -0
- package/dist/esm/apps/staked-pool/state-machines/staked-pool-oracle.js +127 -0
- package/dist/esm/generated/google/protobuf/struct.js +1 -1
- package/dist/esm/generated/google/protobuf/timestamp.js +1 -1
- 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 +47 -47
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
- package/dist/esm/generated/ottochain/apps/governance/v1/governance.js +1 -1
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation.js +1 -1
- package/dist/esm/generated/ottochain/apps/identity/v1/identity.js +115 -121
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +101 -101
- package/dist/esm/generated/ottochain/v1/common.js +1 -1
- package/dist/esm/generated/ottochain/v1/fiber.js +40 -2
- package/dist/esm/generated/ottochain/v1/messages.js +1 -1
- package/dist/esm/generated/ottochain/v1/records.js +1 -1
- package/dist/esm/index.js +28 -3
- package/dist/esm/openapi.js +1 -0
- package/dist/esm/ottochain/genesis-manifest.js +15 -9
- package/dist/esm/ottochain/index.js +2 -3
- package/dist/esm/ottochain/metagraph-client.js +81 -16
- package/dist/esm/ottochain/snapshot.js +6 -8
- package/dist/esm/ottochain/transaction.js +51 -3
- package/dist/esm/ottochain/types.js +15 -1
- package/dist/esm/privacy/index.js +6 -0
- package/dist/esm/privacy/sealed-bid.js +209 -0
- package/dist/esm/privacy/shield-app.js +127 -0
- package/dist/esm/schema/effects.js +145 -0
- package/dist/esm/schema/fiber-app.js +139 -8
- package/dist/esm/schema/guard-lint.js +337 -0
- package/dist/esm/schema/guards.js +228 -0
- package/dist/esm/signing.js +74 -0
- package/dist/esm/templates/asset-policy.js +182 -0
- package/dist/esm/templates/index.js +41 -0
- package/dist/esm/templates/machine.js +125 -0
- package/dist/esm/templates/migration.js +34 -0
- package/dist/esm/templates/state-shape.js +34 -0
- package/dist/esm/validation.js +1 -3
- 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/compute/index.d.ts +176 -0
- package/dist/types/apps/compute/state-machines/compute-rule110.d.ts +157 -0
- package/dist/types/apps/compute/state-machines/index.d.ts +5 -0
- package/dist/types/apps/contracts/index.d.ts +81 -221
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +23 -98
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +49 -115
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +4 -4
- package/dist/types/apps/corporate/index.d.ts +1176 -440
- package/dist/types/apps/corporate/state-machines/corp-board.d.ts +271 -135
- package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +279 -74
- package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +373 -149
- package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +252 -80
- package/dist/types/apps/governance/index.d.ts +368 -470
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +92 -107
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +61 -85
- package/dist/types/apps/governance/state-machines/dao-single.d.ts +25 -47
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +79 -68
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +95 -125
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +6 -6
- package/dist/types/apps/identity/constants.d.ts +33 -5
- package/dist/types/apps/identity/index.d.ts +415 -131
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +23 -23
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +27 -98
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +379 -0
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +4 -4
- package/dist/types/apps/identity/state-machines/index.d.ts +1 -0
- package/dist/types/apps/index.d.ts +9 -5
- 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 +556 -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 +536 -0
- package/dist/types/apps/markets/index.d.ts +181 -276
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +25 -49
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +35 -53
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +35 -61
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +65 -86
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +12 -12
- package/dist/types/apps/oracles/index.d.ts +1 -1
- package/dist/types/apps/privacy/index.d.ts +328 -0
- package/dist/types/apps/privacy/state-machines/index.d.ts +6 -0
- package/dist/types/apps/privacy/state-machines/mixer-ddhRing.d.ts +337 -0
- package/dist/types/apps/privacy/state-machines/note-pool.d.ts +196 -0
- package/dist/types/apps/staked-pool/assets.d.ts +53 -0
- package/dist/types/apps/staked-pool/base.d.ts +80 -0
- package/dist/types/apps/staked-pool/consumer.d.ts +29 -0
- package/dist/types/apps/staked-pool/index.d.ts +51 -0
- package/dist/types/apps/staked-pool/state-machines/index.d.ts +6 -0
- package/dist/types/apps/staked-pool/state-machines/staked-pool-base.d.ts +8 -0
- package/dist/types/apps/staked-pool/state-machines/staked-pool-oracle.d.ts +34 -0
- package/dist/types/generated/index.d.ts +5 -5
- package/dist/types/generated/openapi.d.ts +1270 -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/fiber.d.ts +7 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/openapi.d.ts +24 -0
- package/dist/types/ottochain/genesis-manifest.d.ts +11 -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 +41 -1
- package/dist/types/ottochain/types.d.ts +336 -31
- 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 +141 -0
- package/dist/types/schema/fiber-app.d.ts +282 -2
- package/dist/types/schema/guard-lint.d.ts +111 -0
- package/dist/types/schema/guards.d.ts +146 -0
- package/dist/types/signing.d.ts +45 -0
- package/dist/types/templates/asset-policy.d.ts +119 -0
- package/dist/types/templates/index.d.ts +26 -0
- package/dist/types/templates/machine.d.ts +139 -0
- package/dist/types/templates/migration.d.ts +34 -0
- package/dist/types/templates/state-shape.d.ts +30 -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 +47 -15
- 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
|
@@ -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
|
};
|
|
@@ -244,24 +232,24 @@ export declare const marketGroupBuyDef: {
|
|
|
244
232
|
readonly eventName: "order";
|
|
245
233
|
readonly guard: {
|
|
246
234
|
readonly and: readonly [{
|
|
247
|
-
readonly
|
|
235
|
+
readonly '>': readonly [{
|
|
248
236
|
readonly var: "event.quantity";
|
|
249
237
|
}, 0];
|
|
250
238
|
}, {
|
|
251
239
|
readonly or: readonly [{
|
|
252
|
-
readonly
|
|
240
|
+
readonly '!': readonly [{
|
|
253
241
|
readonly var: "state.maxPerBuyer";
|
|
254
242
|
}];
|
|
255
243
|
}, {
|
|
256
|
-
readonly
|
|
244
|
+
readonly '<=': readonly [{
|
|
257
245
|
readonly var: "event.quantity";
|
|
258
246
|
}, {
|
|
259
247
|
readonly var: "state.maxPerBuyer";
|
|
260
248
|
}];
|
|
261
249
|
}];
|
|
262
250
|
}, {
|
|
263
|
-
readonly
|
|
264
|
-
readonly var: "$
|
|
251
|
+
readonly '<=': readonly [{
|
|
252
|
+
readonly var: "$ordinal";
|
|
265
253
|
}, {
|
|
266
254
|
readonly var: "state.deadline";
|
|
267
255
|
}];
|
|
@@ -285,12 +273,12 @@ 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
|
};
|
|
292
280
|
readonly totalQuantity: {
|
|
293
|
-
readonly
|
|
281
|
+
readonly '+': readonly [{
|
|
294
282
|
readonly var: "state.totalQuantity";
|
|
295
283
|
}, {
|
|
296
284
|
readonly var: "event.quantity";
|
|
@@ -304,7 +292,7 @@ export declare const marketGroupBuyDef: {
|
|
|
304
292
|
readonly to: "THRESHOLD_MET";
|
|
305
293
|
readonly eventName: "check_threshold";
|
|
306
294
|
readonly guard: {
|
|
307
|
-
readonly
|
|
295
|
+
readonly '>=': readonly [{
|
|
308
296
|
readonly var: "state.totalQuantity";
|
|
309
297
|
}, {
|
|
310
298
|
readonly var: "state.minQuantity";
|
|
@@ -316,14 +304,14 @@ 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 [{
|
|
323
311
|
readonly var: "state.priceTiers";
|
|
324
312
|
}, {
|
|
325
313
|
readonly if: readonly [{
|
|
326
|
-
readonly
|
|
314
|
+
readonly '<=': readonly [{
|
|
327
315
|
readonly var: "current.minQuantity";
|
|
328
316
|
}, {
|
|
329
317
|
readonly var: "state.totalQuantity";
|
|
@@ -344,12 +332,12 @@ export declare const marketGroupBuyDef: {
|
|
|
344
332
|
readonly eventName: "order";
|
|
345
333
|
readonly guard: {
|
|
346
334
|
readonly and: readonly [{
|
|
347
|
-
readonly
|
|
335
|
+
readonly '>': readonly [{
|
|
348
336
|
readonly var: "event.quantity";
|
|
349
337
|
}, 0];
|
|
350
338
|
}, {
|
|
351
|
-
readonly
|
|
352
|
-
readonly var: "$
|
|
339
|
+
readonly '<=': readonly [{
|
|
340
|
+
readonly var: "$ordinal";
|
|
353
341
|
}, {
|
|
354
342
|
readonly var: "state.deadline";
|
|
355
343
|
}];
|
|
@@ -373,12 +361,12 @@ 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
|
};
|
|
380
368
|
readonly totalQuantity: {
|
|
381
|
-
readonly
|
|
369
|
+
readonly '+': readonly [{
|
|
382
370
|
readonly var: "state.totalQuantity";
|
|
383
371
|
}, {
|
|
384
372
|
readonly var: "event.quantity";
|
|
@@ -389,10 +377,10 @@ export declare const marketGroupBuyDef: {
|
|
|
389
377
|
readonly var: "state.priceTiers";
|
|
390
378
|
}, {
|
|
391
379
|
readonly if: readonly [{
|
|
392
|
-
readonly
|
|
380
|
+
readonly '<=': readonly [{
|
|
393
381
|
readonly var: "current.minQuantity";
|
|
394
382
|
}, {
|
|
395
|
-
readonly
|
|
383
|
+
readonly '+': readonly [{
|
|
396
384
|
readonly var: "state.totalQuantity";
|
|
397
385
|
}, {
|
|
398
386
|
readonly var: "event.quantity";
|
|
@@ -415,8 +403,8 @@ export declare const marketGroupBuyDef: {
|
|
|
415
403
|
readonly to: "PROCESSING";
|
|
416
404
|
readonly eventName: "finalize";
|
|
417
405
|
readonly guard: {
|
|
418
|
-
readonly
|
|
419
|
-
readonly var: "$
|
|
406
|
+
readonly '>=': readonly [{
|
|
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";
|
|
@@ -481,14 +455,14 @@ export declare const marketGroupBuyDef: {
|
|
|
481
455
|
readonly eventName: "finalize";
|
|
482
456
|
readonly guard: {
|
|
483
457
|
readonly and: readonly [{
|
|
484
|
-
readonly
|
|
458
|
+
readonly '<': readonly [{
|
|
485
459
|
readonly var: "state.totalQuantity";
|
|
486
460
|
}, {
|
|
487
461
|
readonly var: "state.minQuantity";
|
|
488
462
|
}];
|
|
489
463
|
}, {
|
|
490
|
-
readonly
|
|
491
|
-
readonly var: "$
|
|
464
|
+
readonly '>=': readonly [{
|
|
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
|
}];
|
|
@@ -512,21 +486,21 @@ export declare const marketGroupBuyDef: {
|
|
|
512
486
|
readonly eventName: "claim_refund";
|
|
513
487
|
readonly guard: {
|
|
514
488
|
readonly and: readonly [{
|
|
515
|
-
readonly
|
|
516
|
-
readonly
|
|
489
|
+
readonly '>': readonly [{
|
|
490
|
+
readonly length: readonly [{
|
|
517
491
|
readonly filter: readonly [{
|
|
518
492
|
readonly var: "state.orders";
|
|
519
493
|
}, {
|
|
520
|
-
readonly
|
|
494
|
+
readonly '===': readonly [{
|
|
521
495
|
readonly var: "buyer";
|
|
522
496
|
}, {
|
|
523
497
|
readonly var: "event.agent";
|
|
524
498
|
}];
|
|
525
499
|
}];
|
|
526
|
-
};
|
|
500
|
+
}];
|
|
527
501
|
}, 0];
|
|
528
502
|
}, {
|
|
529
|
-
readonly
|
|
503
|
+
readonly '!': readonly [{
|
|
530
504
|
readonly in: readonly [{
|
|
531
505
|
readonly var: "event.agent";
|
|
532
506
|
}, {
|
|
@@ -14,13 +14,18 @@ export declare const marketPredictionDef: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
readonly createSchema: {
|
|
17
|
-
readonly required: readonly ["creator", "outcomes", "oracles", "quorum"];
|
|
17
|
+
readonly required: readonly ["creator", "outcomes", "oracles", "quorum", "arbiter"];
|
|
18
18
|
readonly properties: {
|
|
19
19
|
readonly creator: {
|
|
20
20
|
readonly type: "address";
|
|
21
21
|
readonly description: "DAG address of the market creator";
|
|
22
22
|
readonly immutable: true;
|
|
23
23
|
};
|
|
24
|
+
readonly arbiter: {
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
readonly description: "DAG address of the arbiter authorized to rule on a disputed resolution";
|
|
27
|
+
readonly immutable: true;
|
|
28
|
+
};
|
|
24
29
|
readonly outcomes: {
|
|
25
30
|
readonly type: "array";
|
|
26
31
|
readonly description: "Valid outcome identifiers";
|
|
@@ -52,6 +57,10 @@ export declare const marketPredictionDef: {
|
|
|
52
57
|
readonly type: "address";
|
|
53
58
|
readonly immutable: true;
|
|
54
59
|
};
|
|
60
|
+
readonly arbiter: {
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
readonly immutable: true;
|
|
63
|
+
};
|
|
55
64
|
readonly outcomes: {
|
|
56
65
|
readonly type: "array";
|
|
57
66
|
readonly immutable: true;
|
|
@@ -131,11 +140,6 @@ export declare const marketPredictionDef: {
|
|
|
131
140
|
};
|
|
132
141
|
readonly finalize: {
|
|
133
142
|
readonly description: "Finalize market after quorum reached";
|
|
134
|
-
readonly properties: {
|
|
135
|
-
readonly outcome: {
|
|
136
|
-
readonly type: "string";
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
143
|
};
|
|
140
144
|
readonly dispute: {
|
|
141
145
|
readonly description: "Dispute the resolution";
|
|
@@ -153,10 +157,7 @@ export declare const marketPredictionDef: {
|
|
|
153
157
|
readonly ruling: {
|
|
154
158
|
readonly description: "Judicial ruling on dispute";
|
|
155
159
|
readonly properties: {
|
|
156
|
-
readonly
|
|
157
|
-
readonly type: "boolean";
|
|
158
|
-
};
|
|
159
|
-
readonly outcome: {
|
|
160
|
+
readonly finalOutcome: {
|
|
160
161
|
readonly type: "string";
|
|
161
162
|
};
|
|
162
163
|
readonly rulingId: {
|
|
@@ -255,20 +256,14 @@ export declare const marketPredictionDef: {
|
|
|
255
256
|
readonly from: "PROPOSED";
|
|
256
257
|
readonly to: "OPEN";
|
|
257
258
|
readonly eventName: "open";
|
|
258
|
-
readonly guard:
|
|
259
|
-
readonly "===": readonly [{
|
|
260
|
-
readonly var: "event.agent";
|
|
261
|
-
}, {
|
|
262
|
-
readonly var: "state.creator";
|
|
263
|
-
}];
|
|
264
|
-
};
|
|
259
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
265
260
|
readonly effect: {
|
|
266
261
|
readonly merge: readonly [{
|
|
267
262
|
readonly var: "state";
|
|
268
263
|
}, {
|
|
269
264
|
readonly status: "OPEN";
|
|
270
265
|
readonly openedAt: {
|
|
271
|
-
readonly var: "$
|
|
266
|
+
readonly var: "$ordinal";
|
|
272
267
|
};
|
|
273
268
|
readonly positions: {};
|
|
274
269
|
readonly totalPool: 0;
|
|
@@ -279,20 +274,14 @@ export declare const marketPredictionDef: {
|
|
|
279
274
|
readonly from: "PROPOSED";
|
|
280
275
|
readonly to: "CANCELLED";
|
|
281
276
|
readonly eventName: "cancel";
|
|
282
|
-
readonly guard:
|
|
283
|
-
readonly "===": readonly [{
|
|
284
|
-
readonly var: "event.agent";
|
|
285
|
-
}, {
|
|
286
|
-
readonly var: "state.creator";
|
|
287
|
-
}];
|
|
288
|
-
};
|
|
277
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
289
278
|
readonly effect: {
|
|
290
279
|
readonly merge: readonly [{
|
|
291
280
|
readonly var: "state";
|
|
292
281
|
}, {
|
|
293
282
|
readonly status: "CANCELLED";
|
|
294
283
|
readonly cancelledAt: {
|
|
295
|
-
readonly var: "$
|
|
284
|
+
readonly var: "$ordinal";
|
|
296
285
|
};
|
|
297
286
|
readonly reason: {
|
|
298
287
|
readonly var: "event.reason";
|
|
@@ -306,7 +295,7 @@ export declare const marketPredictionDef: {
|
|
|
306
295
|
readonly eventName: "take_position";
|
|
307
296
|
readonly guard: {
|
|
308
297
|
readonly and: readonly [{
|
|
309
|
-
readonly
|
|
298
|
+
readonly '>': readonly [{
|
|
310
299
|
readonly var: "event.amount";
|
|
311
300
|
}, 0];
|
|
312
301
|
}, {
|
|
@@ -317,12 +306,12 @@ export declare const marketPredictionDef: {
|
|
|
317
306
|
}];
|
|
318
307
|
}, {
|
|
319
308
|
readonly or: readonly [{
|
|
320
|
-
readonly
|
|
309
|
+
readonly '!': readonly [{
|
|
321
310
|
readonly var: "state.deadline";
|
|
322
311
|
}];
|
|
323
312
|
}, {
|
|
324
|
-
readonly
|
|
325
|
-
readonly var: "$
|
|
313
|
+
readonly '<=': readonly [{
|
|
314
|
+
readonly var: "$ordinal";
|
|
326
315
|
}, {
|
|
327
316
|
readonly var: "state.deadline";
|
|
328
317
|
}];
|
|
@@ -347,7 +336,7 @@ export declare const marketPredictionDef: {
|
|
|
347
336
|
}];
|
|
348
337
|
};
|
|
349
338
|
readonly totalPool: {
|
|
350
|
-
readonly
|
|
339
|
+
readonly '+': readonly [{
|
|
351
340
|
readonly var: "state.totalPool";
|
|
352
341
|
}, {
|
|
353
342
|
readonly var: "event.amount";
|
|
@@ -361,18 +350,12 @@ export declare const marketPredictionDef: {
|
|
|
361
350
|
readonly to: "CLOSED";
|
|
362
351
|
readonly eventName: "close";
|
|
363
352
|
readonly guard: {
|
|
364
|
-
readonly or: readonly [{
|
|
365
|
-
readonly "===": readonly [{
|
|
366
|
-
readonly var: "event.agent";
|
|
367
|
-
}, {
|
|
368
|
-
readonly var: "state.creator";
|
|
369
|
-
}];
|
|
370
|
-
}, {
|
|
353
|
+
readonly or: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
371
354
|
readonly and: readonly [{
|
|
372
355
|
readonly var: "state.deadline";
|
|
373
356
|
}, {
|
|
374
|
-
readonly
|
|
375
|
-
readonly var: "$
|
|
357
|
+
readonly '>=': readonly [{
|
|
358
|
+
readonly var: "$ordinal";
|
|
376
359
|
}, {
|
|
377
360
|
readonly var: "state.deadline";
|
|
378
361
|
}];
|
|
@@ -385,7 +368,7 @@ export declare const marketPredictionDef: {
|
|
|
385
368
|
}, {
|
|
386
369
|
readonly status: "CLOSED";
|
|
387
370
|
readonly closedAt: {
|
|
388
|
-
readonly var: "$
|
|
371
|
+
readonly var: "$ordinal";
|
|
389
372
|
};
|
|
390
373
|
}];
|
|
391
374
|
};
|
|
@@ -394,13 +377,7 @@ export declare const marketPredictionDef: {
|
|
|
394
377
|
readonly from: "CLOSED";
|
|
395
378
|
readonly to: "RESOLVING";
|
|
396
379
|
readonly eventName: "submit_resolution";
|
|
397
|
-
readonly guard:
|
|
398
|
-
readonly in: readonly [{
|
|
399
|
-
readonly var: "event.agent";
|
|
400
|
-
}, {
|
|
401
|
-
readonly var: "state.oracles";
|
|
402
|
-
}];
|
|
403
|
-
};
|
|
380
|
+
readonly guard: import("../../../schema/guards.js").GuardRule;
|
|
404
381
|
readonly effect: {
|
|
405
382
|
readonly merge: readonly [{
|
|
406
383
|
readonly var: "state";
|
|
@@ -417,7 +394,7 @@ export declare const marketPredictionDef: {
|
|
|
417
394
|
readonly var: "event.proof";
|
|
418
395
|
};
|
|
419
396
|
readonly submittedAt: {
|
|
420
|
-
readonly var: "$
|
|
397
|
+
readonly var: "$ordinal";
|
|
421
398
|
};
|
|
422
399
|
}];
|
|
423
400
|
}];
|
|
@@ -428,14 +405,8 @@ export declare const marketPredictionDef: {
|
|
|
428
405
|
readonly to: "RESOLVING";
|
|
429
406
|
readonly eventName: "submit_resolution";
|
|
430
407
|
readonly guard: {
|
|
431
|
-
readonly and: readonly [{
|
|
432
|
-
readonly
|
|
433
|
-
readonly var: "event.agent";
|
|
434
|
-
}, {
|
|
435
|
-
readonly var: "state.oracles";
|
|
436
|
-
}];
|
|
437
|
-
}, {
|
|
438
|
-
readonly "!": readonly [{
|
|
408
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
409
|
+
readonly '!': readonly [{
|
|
439
410
|
readonly in: readonly [{
|
|
440
411
|
readonly var: "event.agent";
|
|
441
412
|
}, {
|
|
@@ -466,7 +437,7 @@ export declare const marketPredictionDef: {
|
|
|
466
437
|
readonly var: "event.proof";
|
|
467
438
|
};
|
|
468
439
|
readonly submittedAt: {
|
|
469
|
-
readonly var: "$
|
|
440
|
+
readonly var: "$ordinal";
|
|
470
441
|
};
|
|
471
442
|
}]];
|
|
472
443
|
};
|
|
@@ -478,12 +449,14 @@ export declare const marketPredictionDef: {
|
|
|
478
449
|
readonly to: "SETTLED";
|
|
479
450
|
readonly eventName: "finalize";
|
|
480
451
|
readonly guard: {
|
|
481
|
-
readonly
|
|
482
|
-
readonly
|
|
483
|
-
readonly
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
452
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
453
|
+
readonly '>=': readonly [{
|
|
454
|
+
readonly count: {
|
|
455
|
+
readonly var: "state.resolutions";
|
|
456
|
+
};
|
|
457
|
+
}, {
|
|
458
|
+
readonly var: "state.quorum";
|
|
459
|
+
}];
|
|
487
460
|
}];
|
|
488
461
|
};
|
|
489
462
|
readonly effect: {
|
|
@@ -492,10 +465,10 @@ export declare const marketPredictionDef: {
|
|
|
492
465
|
}, {
|
|
493
466
|
readonly status: "SETTLED";
|
|
494
467
|
readonly settledAt: {
|
|
495
|
-
readonly var: "$
|
|
468
|
+
readonly var: "$ordinal";
|
|
496
469
|
};
|
|
497
470
|
readonly finalOutcome: {
|
|
498
|
-
readonly var: "
|
|
471
|
+
readonly var: "state.resolutions.0.outcome";
|
|
499
472
|
};
|
|
500
473
|
readonly claims: readonly [];
|
|
501
474
|
}];
|
|
@@ -507,18 +480,18 @@ export declare const marketPredictionDef: {
|
|
|
507
480
|
readonly eventName: "dispute";
|
|
508
481
|
readonly guard: {
|
|
509
482
|
readonly and: readonly [{
|
|
510
|
-
readonly
|
|
511
|
-
readonly
|
|
483
|
+
readonly '>': readonly [{
|
|
484
|
+
readonly length: readonly [{
|
|
512
485
|
readonly filter: readonly [{
|
|
513
486
|
readonly var: "state.positions";
|
|
514
487
|
}, {
|
|
515
|
-
readonly
|
|
488
|
+
readonly '===': readonly [{
|
|
516
489
|
readonly var: "agent";
|
|
517
490
|
}, {
|
|
518
491
|
readonly var: "event.agent";
|
|
519
492
|
}];
|
|
520
493
|
}];
|
|
521
|
-
};
|
|
494
|
+
}];
|
|
522
495
|
}, 0];
|
|
523
496
|
}, {
|
|
524
497
|
readonly var: "event.stake";
|
|
@@ -530,7 +503,7 @@ export declare const marketPredictionDef: {
|
|
|
530
503
|
}, {
|
|
531
504
|
readonly status: "DISPUTED";
|
|
532
505
|
readonly disputedAt: {
|
|
533
|
-
readonly var: "$
|
|
506
|
+
readonly var: "$ordinal";
|
|
534
507
|
};
|
|
535
508
|
readonly disputedBy: {
|
|
536
509
|
readonly var: "event.agent";
|
|
@@ -549,7 +522,13 @@ export declare const marketPredictionDef: {
|
|
|
549
522
|
readonly to: "SETTLED";
|
|
550
523
|
readonly eventName: "ruling";
|
|
551
524
|
readonly guard: {
|
|
552
|
-
readonly
|
|
525
|
+
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
526
|
+
readonly in: readonly [{
|
|
527
|
+
readonly var: "event.finalOutcome";
|
|
528
|
+
}, {
|
|
529
|
+
readonly var: "state.outcomes";
|
|
530
|
+
}];
|
|
531
|
+
}];
|
|
553
532
|
};
|
|
554
533
|
readonly effect: {
|
|
555
534
|
readonly merge: readonly [{
|
|
@@ -557,10 +536,10 @@ export declare const marketPredictionDef: {
|
|
|
557
536
|
}, {
|
|
558
537
|
readonly status: "SETTLED";
|
|
559
538
|
readonly settledAt: {
|
|
560
|
-
readonly var: "$
|
|
539
|
+
readonly var: "$ordinal";
|
|
561
540
|
};
|
|
562
541
|
readonly finalOutcome: {
|
|
563
|
-
readonly var: "event.
|
|
542
|
+
readonly var: "event.finalOutcome";
|
|
564
543
|
};
|
|
565
544
|
readonly rulingId: {
|
|
566
545
|
readonly var: "event.rulingId";
|
|
@@ -574,16 +553,16 @@ export declare const marketPredictionDef: {
|
|
|
574
553
|
readonly to: "REFUNDED";
|
|
575
554
|
readonly eventName: "invalidate";
|
|
576
555
|
readonly guard: {
|
|
577
|
-
readonly
|
|
578
|
-
readonly
|
|
556
|
+
readonly '>=': readonly [{
|
|
557
|
+
readonly length: readonly [{
|
|
579
558
|
readonly filter: readonly [{
|
|
580
559
|
readonly var: "state.resolutions";
|
|
581
560
|
}, {
|
|
582
|
-
readonly
|
|
561
|
+
readonly '===': readonly [{
|
|
583
562
|
readonly var: "outcome";
|
|
584
563
|
}, "INVALID"];
|
|
585
564
|
}];
|
|
586
|
-
};
|
|
565
|
+
}];
|
|
587
566
|
}, {
|
|
588
567
|
readonly var: "state.quorum";
|
|
589
568
|
}];
|
|
@@ -594,7 +573,7 @@ export declare const marketPredictionDef: {
|
|
|
594
573
|
}, {
|
|
595
574
|
readonly status: "REFUNDED";
|
|
596
575
|
readonly refundedAt: {
|
|
597
|
-
readonly var: "$
|
|
576
|
+
readonly var: "$ordinal";
|
|
598
577
|
};
|
|
599
578
|
readonly reason: "oracle_invalidation";
|
|
600
579
|
}];
|
|
@@ -606,29 +585,29 @@ export declare const marketPredictionDef: {
|
|
|
606
585
|
readonly eventName: "claim";
|
|
607
586
|
readonly guard: {
|
|
608
587
|
readonly and: readonly [{
|
|
609
|
-
readonly
|
|
610
|
-
readonly
|
|
588
|
+
readonly '>': readonly [{
|
|
589
|
+
readonly length: readonly [{
|
|
611
590
|
readonly filter: readonly [{
|
|
612
591
|
readonly var: "state.positions";
|
|
613
592
|
}, {
|
|
614
593
|
readonly and: readonly [{
|
|
615
|
-
readonly
|
|
594
|
+
readonly '===': readonly [{
|
|
616
595
|
readonly var: "agent";
|
|
617
596
|
}, {
|
|
618
597
|
readonly var: "event.agent";
|
|
619
598
|
}];
|
|
620
599
|
}, {
|
|
621
|
-
readonly
|
|
600
|
+
readonly '===': readonly [{
|
|
622
601
|
readonly var: "outcome";
|
|
623
602
|
}, {
|
|
624
603
|
readonly var: "state.finalOutcome";
|
|
625
604
|
}];
|
|
626
605
|
}];
|
|
627
606
|
}];
|
|
628
|
-
};
|
|
607
|
+
}];
|
|
629
608
|
}, 0];
|
|
630
609
|
}, {
|
|
631
|
-
readonly
|
|
610
|
+
readonly '!': readonly [{
|
|
632
611
|
readonly in: readonly [{
|
|
633
612
|
readonly var: "event.agent";
|
|
634
613
|
}, {
|
|
@@ -656,7 +635,7 @@ export declare const marketPredictionDef: {
|
|
|
656
635
|
readonly var: "event.amount";
|
|
657
636
|
};
|
|
658
637
|
readonly claimedAt: {
|
|
659
|
-
readonly var: "$
|
|
638
|
+
readonly var: "$ordinal";
|
|
660
639
|
};
|
|
661
640
|
}]];
|
|
662
641
|
};
|