@ottochain/sdk 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1 -1
- package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +126 -148
- package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +153 -174
- package/dist/cjs/apps/contracts/state-machines/contract-universal.js +46 -58
- package/dist/cjs/apps/corporate/state-machines/corp-board.js +415 -481
- package/dist/cjs/apps/corporate/state-machines/corp-entity.js +368 -440
- package/dist/cjs/apps/corporate/state-machines/corp-securities.js +532 -647
- package/dist/cjs/apps/corporate/state-machines/corp-shareholders.js +499 -603
- package/dist/cjs/apps/governance/index.js +7 -7
- package/dist/cjs/apps/governance/state-machines/dao-multisig.js +170 -209
- package/dist/cjs/apps/governance/state-machines/dao-reputation.js +161 -214
- package/dist/cjs/apps/governance/state-machines/dao-single.js +92 -92
- package/dist/cjs/apps/governance/state-machines/dao-token.js +169 -223
- package/dist/cjs/apps/governance/state-machines/governance-simple.js +185 -217
- package/dist/cjs/apps/governance/state-machines/governance-universal.js +64 -64
- package/dist/cjs/apps/identity/constants.js +16 -24
- package/dist/cjs/apps/identity/index.js +1 -1
- package/dist/cjs/apps/identity/state-machines/identity-agent.js +124 -158
- package/dist/cjs/apps/identity/state-machines/identity-oracle.js +151 -169
- package/dist/cjs/apps/identity/state-machines/identity-registry.js +89 -115
- package/dist/cjs/apps/identity/state-machines/identity-universal.js +51 -57
- package/dist/cjs/apps/index.js +4 -1
- package/dist/cjs/apps/lending/assets.js +41 -17
- package/dist/cjs/apps/lending/credit-scoring.js +4 -4
- package/dist/cjs/apps/lending/eligibility.js +9 -25
- package/dist/cjs/apps/lending/index.js +1 -1
- package/dist/cjs/apps/lending/state-machines/lending-zk-loan.js +177 -156
- package/dist/cjs/apps/markets/index.js +1 -1
- package/dist/cjs/apps/markets/state-machines/market-auction.js +115 -134
- package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +122 -137
- package/dist/cjs/apps/markets/state-machines/market-group-buy.js +158 -177
- package/dist/cjs/apps/markets/state-machines/market-prediction.js +193 -227
- package/dist/cjs/apps/markets/state-machines/market-universal.js +65 -80
- package/dist/cjs/apps/oracles/index.js +1 -1
- 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/generated/google/protobuf/struct.js +1 -1
- package/dist/cjs/generated/google/protobuf/timestamp.js +1 -1
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +1 -1
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +1 -1
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +1 -1
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +1 -1
- package/dist/cjs/generated/ottochain/apps/identity/v1/identity.js +1 -1
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +1 -1
- package/dist/cjs/generated/ottochain/v1/common.js +1 -1
- package/dist/cjs/generated/ottochain/v1/fiber.js +40 -2
- 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 +20 -3
- package/dist/cjs/ottochain/genesis-manifest.js +6 -0
- package/dist/cjs/ottochain/metagraph-client.js +16 -8
- package/dist/cjs/ottochain/snapshot.js +2 -4
- package/dist/cjs/ottochain/transaction.js +10 -0
- package/dist/cjs/privacy/sealed-bid.js +85 -82
- package/dist/cjs/privacy/shield-app.js +32 -32
- package/dist/cjs/schema/effects.js +117 -1
- package/dist/cjs/schema/fiber-app.js +132 -3
- package/dist/cjs/schema/guard-lint.js +3 -12
- package/dist/cjs/schema/guards.js +38 -38
- 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/validation.js +1 -3
- 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 +4 -4
- package/dist/esm/apps/contracts/state-machines/contract-agreement.js +128 -150
- package/dist/esm/apps/contracts/state-machines/contract-escrow.js +155 -176
- 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 +418 -484
- package/dist/esm/apps/corporate/state-machines/corp-entity.js +371 -443
- package/dist/esm/apps/corporate/state-machines/corp-securities.js +535 -650
- package/dist/esm/apps/corporate/state-machines/corp-shareholders.js +502 -606
- package/dist/esm/apps/governance/index.js +10 -10
- package/dist/esm/apps/governance/state-machines/dao-multisig.js +172 -211
- package/dist/esm/apps/governance/state-machines/dao-reputation.js +163 -216
- package/dist/esm/apps/governance/state-machines/dao-single.js +94 -94
- package/dist/esm/apps/governance/state-machines/dao-token.js +171 -225
- package/dist/esm/apps/governance/state-machines/governance-simple.js +187 -219
- package/dist/esm/apps/governance/state-machines/governance-universal.js +65 -65
- package/dist/esm/apps/identity/constants.js +18 -26
- package/dist/esm/apps/identity/index.js +8 -8
- package/dist/esm/apps/identity/state-machines/identity-agent.js +125 -159
- package/dist/esm/apps/identity/state-machines/identity-oracle.js +153 -171
- package/dist/esm/apps/identity/state-machines/identity-registry.js +91 -117
- package/dist/esm/apps/identity/state-machines/identity-universal.js +52 -58
- package/dist/esm/apps/index.js +9 -6
- package/dist/esm/apps/lending/assets.js +41 -17
- package/dist/esm/apps/lending/credit-scoring.js +6 -6
- package/dist/esm/apps/lending/eligibility.js +10 -26
- package/dist/esm/apps/lending/index.js +5 -5
- package/dist/esm/apps/lending/state-machines/lending-zk-loan.js +178 -157
- package/dist/esm/apps/markets/index.js +5 -5
- package/dist/esm/apps/markets/state-machines/market-auction.js +117 -136
- package/dist/esm/apps/markets/state-machines/market-crowdfund.js +124 -139
- package/dist/esm/apps/markets/state-machines/market-group-buy.js +160 -179
- package/dist/esm/apps/markets/state-machines/market-prediction.js +195 -229
- 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/ottochain/apps/contracts/v1/contract.js +1 -1
- 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 +1 -1
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +1 -1
- 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 +10 -4
- package/dist/esm/ottochain/genesis-manifest.js +6 -0
- package/dist/esm/ottochain/metagraph-client.js +16 -8
- package/dist/esm/ottochain/snapshot.js +2 -4
- package/dist/esm/ottochain/transaction.js +8 -0
- package/dist/esm/privacy/index.js +2 -2
- package/dist/esm/privacy/sealed-bid.js +87 -84
- package/dist/esm/privacy/shield-app.js +33 -33
- package/dist/esm/schema/effects.js +110 -0
- package/dist/esm/schema/fiber-app.js +127 -3
- package/dist/esm/schema/guard-lint.js +3 -12
- package/dist/esm/schema/guards.js +36 -37
- 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/zk/index.js +4 -4
- 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 +14 -14
- package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +3 -3
- package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +3 -3
- package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +4 -4
- package/dist/types/apps/corporate/index.d.ts +162 -162
- package/dist/types/apps/corporate/state-machines/corp-board.d.ts +88 -88
- package/dist/types/apps/corporate/state-machines/corp-entity.d.ts +14 -14
- package/dist/types/apps/corporate/state-machines/corp-securities.d.ts +18 -18
- package/dist/types/apps/corporate/state-machines/corp-shareholders.d.ts +43 -43
- package/dist/types/apps/governance/index.d.ts +81 -81
- package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +16 -16
- package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +22 -22
- package/dist/types/apps/governance/state-machines/dao-token.d.ts +21 -21
- package/dist/types/apps/governance/state-machines/governance-simple.d.ts +11 -11
- package/dist/types/apps/governance/state-machines/governance-universal.d.ts +4 -4
- package/dist/types/apps/identity/constants.d.ts +2 -2
- package/dist/types/apps/identity/index.d.ts +70 -70
- package/dist/types/apps/identity/state-machines/identity-agent.d.ts +23 -23
- package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +11 -11
- package/dist/types/apps/identity/state-machines/identity-registry.d.ts +27 -27
- package/dist/types/apps/identity/state-machines/identity-universal.d.ts +4 -4
- package/dist/types/apps/index.d.ts +9 -6
- package/dist/types/apps/lending/assets.d.ts +2 -2
- package/dist/types/apps/lending/credit-scoring.d.ts +5 -5
- package/dist/types/apps/lending/eligibility.d.ts +2 -2
- package/dist/types/apps/lending/index.d.ts +20 -12
- package/dist/types/apps/lending/state-machines/lending-zk-loan.d.ts +15 -7
- package/dist/types/apps/markets/index.d.ts +76 -76
- package/dist/types/apps/markets/state-machines/market-auction.d.ts +12 -12
- package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +19 -19
- package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +18 -18
- package/dist/types/apps/markets/state-machines/market-prediction.d.ts +15 -15
- package/dist/types/apps/markets/state-machines/market-universal.d.ts +7 -7
- 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/openapi.d.ts +13 -0
- package/dist/types/generated/ottochain/v1/fiber.d.ts +7 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/openapi.d.ts +4 -2
- package/dist/types/ottochain/genesis-manifest.d.ts +6 -0
- package/dist/types/ottochain/transaction.d.ts +9 -1
- package/dist/types/ottochain/types.d.ts +1 -1
- package/dist/types/privacy/index.d.ts +2 -2
- package/dist/types/privacy/sealed-bid.d.ts +9 -9
- package/dist/types/privacy/shield-app.d.ts +1 -1
- package/dist/types/schema/effects.d.ts +107 -0
- package/dist/types/schema/fiber-app.d.ts +281 -0
- package/dist/types/schema/guards.d.ts +12 -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/zk/index.d.ts +4 -4
- package/package.json +31 -13
|
@@ -211,23 +211,23 @@ export declare const marketCrowdfundDef: {
|
|
|
211
211
|
readonly eventName: "pledge";
|
|
212
212
|
readonly guard: {
|
|
213
213
|
readonly and: readonly [{
|
|
214
|
-
readonly
|
|
214
|
+
readonly '>': readonly [{
|
|
215
215
|
readonly var: "event.amount";
|
|
216
216
|
}, 0];
|
|
217
217
|
}, import("../../../schema/guards.js").GuardRule, {
|
|
218
218
|
readonly or: readonly [{
|
|
219
|
-
readonly
|
|
219
|
+
readonly '!': readonly [{
|
|
220
220
|
readonly var: "state.minPledge";
|
|
221
221
|
}];
|
|
222
222
|
}, {
|
|
223
|
-
readonly
|
|
223
|
+
readonly '>=': readonly [{
|
|
224
224
|
readonly var: "event.amount";
|
|
225
225
|
}, {
|
|
226
226
|
readonly var: "state.minPledge";
|
|
227
227
|
}];
|
|
228
228
|
}];
|
|
229
229
|
}, {
|
|
230
|
-
readonly
|
|
230
|
+
readonly '<=': readonly [{
|
|
231
231
|
readonly var: "$ordinal";
|
|
232
232
|
}, {
|
|
233
233
|
readonly var: "state.deadline";
|
|
@@ -257,14 +257,14 @@ export declare const marketCrowdfundDef: {
|
|
|
257
257
|
}]];
|
|
258
258
|
};
|
|
259
259
|
readonly totalPledged: {
|
|
260
|
-
readonly
|
|
260
|
+
readonly '+': readonly [{
|
|
261
261
|
readonly var: "state.totalPledged";
|
|
262
262
|
}, {
|
|
263
263
|
readonly var: "event.amount";
|
|
264
264
|
}];
|
|
265
265
|
};
|
|
266
266
|
readonly backerCount: {
|
|
267
|
-
readonly
|
|
267
|
+
readonly '+': readonly [{
|
|
268
268
|
readonly var: "state.backerCount";
|
|
269
269
|
}, 1];
|
|
270
270
|
};
|
|
@@ -277,22 +277,22 @@ export declare const marketCrowdfundDef: {
|
|
|
277
277
|
readonly eventName: "increase_pledge";
|
|
278
278
|
readonly guard: {
|
|
279
279
|
readonly and: readonly [{
|
|
280
|
-
readonly
|
|
280
|
+
readonly '>': readonly [{
|
|
281
281
|
readonly var: "event.additionalAmount";
|
|
282
282
|
}, 0];
|
|
283
283
|
}, {
|
|
284
|
-
readonly
|
|
284
|
+
readonly '<=': readonly [{
|
|
285
285
|
readonly var: "$ordinal";
|
|
286
286
|
}, {
|
|
287
287
|
readonly var: "state.deadline";
|
|
288
288
|
}];
|
|
289
289
|
}, {
|
|
290
|
-
readonly
|
|
290
|
+
readonly '>': readonly [{
|
|
291
291
|
readonly length: readonly [{
|
|
292
292
|
readonly filter: readonly [{
|
|
293
293
|
readonly var: "state.pledges";
|
|
294
294
|
}, {
|
|
295
|
-
readonly
|
|
295
|
+
readonly '===': readonly [{
|
|
296
296
|
readonly var: "backer";
|
|
297
297
|
}, {
|
|
298
298
|
readonly var: "event.agent";
|
|
@@ -307,7 +307,7 @@ export declare const marketCrowdfundDef: {
|
|
|
307
307
|
readonly var: "state";
|
|
308
308
|
}, {
|
|
309
309
|
readonly totalPledged: {
|
|
310
|
-
readonly
|
|
310
|
+
readonly '+': readonly [{
|
|
311
311
|
readonly var: "state.totalPledged";
|
|
312
312
|
}, {
|
|
313
313
|
readonly var: "event.additionalAmount";
|
|
@@ -322,13 +322,13 @@ export declare const marketCrowdfundDef: {
|
|
|
322
322
|
readonly eventName: "finalize";
|
|
323
323
|
readonly guard: {
|
|
324
324
|
readonly and: readonly [{
|
|
325
|
-
readonly
|
|
325
|
+
readonly '>=': readonly [{
|
|
326
326
|
readonly var: "state.totalPledged";
|
|
327
327
|
}, {
|
|
328
328
|
readonly var: "state.threshold";
|
|
329
329
|
}];
|
|
330
330
|
}, {
|
|
331
|
-
readonly
|
|
331
|
+
readonly '>=': readonly [{
|
|
332
332
|
readonly var: "$ordinal";
|
|
333
333
|
}, {
|
|
334
334
|
readonly var: "state.deadline";
|
|
@@ -347,7 +347,7 @@ export declare const marketCrowdfundDef: {
|
|
|
347
347
|
readonly filter: readonly [{
|
|
348
348
|
readonly var: "state.stretchGoals";
|
|
349
349
|
}, {
|
|
350
|
-
readonly
|
|
350
|
+
readonly '<=': readonly [{
|
|
351
351
|
readonly var: "target";
|
|
352
352
|
}, {
|
|
353
353
|
readonly var: "state.totalPledged";
|
|
@@ -363,13 +363,13 @@ export declare const marketCrowdfundDef: {
|
|
|
363
363
|
readonly eventName: "finalize";
|
|
364
364
|
readonly guard: {
|
|
365
365
|
readonly and: readonly [{
|
|
366
|
-
readonly
|
|
366
|
+
readonly '<': readonly [{
|
|
367
367
|
readonly var: "state.totalPledged";
|
|
368
368
|
}, {
|
|
369
369
|
readonly var: "state.threshold";
|
|
370
370
|
}];
|
|
371
371
|
}, {
|
|
372
|
-
readonly
|
|
372
|
+
readonly '>=': readonly [{
|
|
373
373
|
readonly var: "$ordinal";
|
|
374
374
|
}, {
|
|
375
375
|
readonly var: "state.deadline";
|
|
@@ -394,12 +394,12 @@ export declare const marketCrowdfundDef: {
|
|
|
394
394
|
readonly eventName: "claim_refund";
|
|
395
395
|
readonly guard: {
|
|
396
396
|
readonly and: readonly [{
|
|
397
|
-
readonly
|
|
397
|
+
readonly '>': readonly [{
|
|
398
398
|
readonly length: readonly [{
|
|
399
399
|
readonly filter: readonly [{
|
|
400
400
|
readonly var: "state.pledges";
|
|
401
401
|
}, {
|
|
402
|
-
readonly
|
|
402
|
+
readonly '===': readonly [{
|
|
403
403
|
readonly var: "backer";
|
|
404
404
|
}, {
|
|
405
405
|
readonly var: "event.agent";
|
|
@@ -408,7 +408,7 @@ export declare const marketCrowdfundDef: {
|
|
|
408
408
|
}];
|
|
409
409
|
}, 0];
|
|
410
410
|
}, {
|
|
411
|
-
readonly
|
|
411
|
+
readonly '!': readonly [{
|
|
412
412
|
readonly in: readonly [{
|
|
413
413
|
readonly var: "event.agent";
|
|
414
414
|
}, {
|
|
@@ -232,23 +232,23 @@ export declare const marketGroupBuyDef: {
|
|
|
232
232
|
readonly eventName: "order";
|
|
233
233
|
readonly guard: {
|
|
234
234
|
readonly and: readonly [{
|
|
235
|
-
readonly
|
|
235
|
+
readonly '>': readonly [{
|
|
236
236
|
readonly var: "event.quantity";
|
|
237
237
|
}, 0];
|
|
238
238
|
}, {
|
|
239
239
|
readonly or: readonly [{
|
|
240
|
-
readonly
|
|
240
|
+
readonly '!': readonly [{
|
|
241
241
|
readonly var: "state.maxPerBuyer";
|
|
242
242
|
}];
|
|
243
243
|
}, {
|
|
244
|
-
readonly
|
|
244
|
+
readonly '<=': readonly [{
|
|
245
245
|
readonly var: "event.quantity";
|
|
246
246
|
}, {
|
|
247
247
|
readonly var: "state.maxPerBuyer";
|
|
248
248
|
}];
|
|
249
249
|
}];
|
|
250
250
|
}, {
|
|
251
|
-
readonly
|
|
251
|
+
readonly '<=': readonly [{
|
|
252
252
|
readonly var: "$ordinal";
|
|
253
253
|
}, {
|
|
254
254
|
readonly var: "state.deadline";
|
|
@@ -278,7 +278,7 @@ export declare const marketGroupBuyDef: {
|
|
|
278
278
|
}]];
|
|
279
279
|
};
|
|
280
280
|
readonly totalQuantity: {
|
|
281
|
-
readonly
|
|
281
|
+
readonly '+': readonly [{
|
|
282
282
|
readonly var: "state.totalQuantity";
|
|
283
283
|
}, {
|
|
284
284
|
readonly var: "event.quantity";
|
|
@@ -292,7 +292,7 @@ export declare const marketGroupBuyDef: {
|
|
|
292
292
|
readonly to: "THRESHOLD_MET";
|
|
293
293
|
readonly eventName: "check_threshold";
|
|
294
294
|
readonly guard: {
|
|
295
|
-
readonly
|
|
295
|
+
readonly '>=': readonly [{
|
|
296
296
|
readonly var: "state.totalQuantity";
|
|
297
297
|
}, {
|
|
298
298
|
readonly var: "state.minQuantity";
|
|
@@ -311,7 +311,7 @@ export declare const marketGroupBuyDef: {
|
|
|
311
311
|
readonly var: "state.priceTiers";
|
|
312
312
|
}, {
|
|
313
313
|
readonly if: readonly [{
|
|
314
|
-
readonly
|
|
314
|
+
readonly '<=': readonly [{
|
|
315
315
|
readonly var: "current.minQuantity";
|
|
316
316
|
}, {
|
|
317
317
|
readonly var: "state.totalQuantity";
|
|
@@ -332,11 +332,11 @@ export declare const marketGroupBuyDef: {
|
|
|
332
332
|
readonly eventName: "order";
|
|
333
333
|
readonly guard: {
|
|
334
334
|
readonly and: readonly [{
|
|
335
|
-
readonly
|
|
335
|
+
readonly '>': readonly [{
|
|
336
336
|
readonly var: "event.quantity";
|
|
337
337
|
}, 0];
|
|
338
338
|
}, {
|
|
339
|
-
readonly
|
|
339
|
+
readonly '<=': readonly [{
|
|
340
340
|
readonly var: "$ordinal";
|
|
341
341
|
}, {
|
|
342
342
|
readonly var: "state.deadline";
|
|
@@ -366,7 +366,7 @@ export declare const marketGroupBuyDef: {
|
|
|
366
366
|
}]];
|
|
367
367
|
};
|
|
368
368
|
readonly totalQuantity: {
|
|
369
|
-
readonly
|
|
369
|
+
readonly '+': readonly [{
|
|
370
370
|
readonly var: "state.totalQuantity";
|
|
371
371
|
}, {
|
|
372
372
|
readonly var: "event.quantity";
|
|
@@ -377,10 +377,10 @@ export declare const marketGroupBuyDef: {
|
|
|
377
377
|
readonly var: "state.priceTiers";
|
|
378
378
|
}, {
|
|
379
379
|
readonly if: readonly [{
|
|
380
|
-
readonly
|
|
380
|
+
readonly '<=': readonly [{
|
|
381
381
|
readonly var: "current.minQuantity";
|
|
382
382
|
}, {
|
|
383
|
-
readonly
|
|
383
|
+
readonly '+': readonly [{
|
|
384
384
|
readonly var: "state.totalQuantity";
|
|
385
385
|
}, {
|
|
386
386
|
readonly var: "event.quantity";
|
|
@@ -403,7 +403,7 @@ export declare const marketGroupBuyDef: {
|
|
|
403
403
|
readonly to: "PROCESSING";
|
|
404
404
|
readonly eventName: "finalize";
|
|
405
405
|
readonly guard: {
|
|
406
|
-
readonly
|
|
406
|
+
readonly '>=': readonly [{
|
|
407
407
|
readonly var: "$ordinal";
|
|
408
408
|
}, {
|
|
409
409
|
readonly var: "state.deadline";
|
|
@@ -455,13 +455,13 @@ export declare const marketGroupBuyDef: {
|
|
|
455
455
|
readonly eventName: "finalize";
|
|
456
456
|
readonly guard: {
|
|
457
457
|
readonly and: readonly [{
|
|
458
|
-
readonly
|
|
458
|
+
readonly '<': readonly [{
|
|
459
459
|
readonly var: "state.totalQuantity";
|
|
460
460
|
}, {
|
|
461
461
|
readonly var: "state.minQuantity";
|
|
462
462
|
}];
|
|
463
463
|
}, {
|
|
464
|
-
readonly
|
|
464
|
+
readonly '>=': readonly [{
|
|
465
465
|
readonly var: "$ordinal";
|
|
466
466
|
}, {
|
|
467
467
|
readonly var: "state.deadline";
|
|
@@ -486,12 +486,12 @@ export declare const marketGroupBuyDef: {
|
|
|
486
486
|
readonly eventName: "claim_refund";
|
|
487
487
|
readonly guard: {
|
|
488
488
|
readonly and: readonly [{
|
|
489
|
-
readonly
|
|
489
|
+
readonly '>': readonly [{
|
|
490
490
|
readonly length: readonly [{
|
|
491
491
|
readonly filter: readonly [{
|
|
492
492
|
readonly var: "state.orders";
|
|
493
493
|
}, {
|
|
494
|
-
readonly
|
|
494
|
+
readonly '===': readonly [{
|
|
495
495
|
readonly var: "buyer";
|
|
496
496
|
}, {
|
|
497
497
|
readonly var: "event.agent";
|
|
@@ -500,7 +500,7 @@ export declare const marketGroupBuyDef: {
|
|
|
500
500
|
}];
|
|
501
501
|
}, 0];
|
|
502
502
|
}, {
|
|
503
|
-
readonly
|
|
503
|
+
readonly '!': readonly [{
|
|
504
504
|
readonly in: readonly [{
|
|
505
505
|
readonly var: "event.agent";
|
|
506
506
|
}, {
|
|
@@ -295,7 +295,7 @@ export declare const marketPredictionDef: {
|
|
|
295
295
|
readonly eventName: "take_position";
|
|
296
296
|
readonly guard: {
|
|
297
297
|
readonly and: readonly [{
|
|
298
|
-
readonly
|
|
298
|
+
readonly '>': readonly [{
|
|
299
299
|
readonly var: "event.amount";
|
|
300
300
|
}, 0];
|
|
301
301
|
}, {
|
|
@@ -306,11 +306,11 @@ export declare const marketPredictionDef: {
|
|
|
306
306
|
}];
|
|
307
307
|
}, {
|
|
308
308
|
readonly or: readonly [{
|
|
309
|
-
readonly
|
|
309
|
+
readonly '!': readonly [{
|
|
310
310
|
readonly var: "state.deadline";
|
|
311
311
|
}];
|
|
312
312
|
}, {
|
|
313
|
-
readonly
|
|
313
|
+
readonly '<=': readonly [{
|
|
314
314
|
readonly var: "$ordinal";
|
|
315
315
|
}, {
|
|
316
316
|
readonly var: "state.deadline";
|
|
@@ -336,7 +336,7 @@ export declare const marketPredictionDef: {
|
|
|
336
336
|
}];
|
|
337
337
|
};
|
|
338
338
|
readonly totalPool: {
|
|
339
|
-
readonly
|
|
339
|
+
readonly '+': readonly [{
|
|
340
340
|
readonly var: "state.totalPool";
|
|
341
341
|
}, {
|
|
342
342
|
readonly var: "event.amount";
|
|
@@ -354,7 +354,7 @@ export declare const marketPredictionDef: {
|
|
|
354
354
|
readonly and: readonly [{
|
|
355
355
|
readonly var: "state.deadline";
|
|
356
356
|
}, {
|
|
357
|
-
readonly
|
|
357
|
+
readonly '>=': readonly [{
|
|
358
358
|
readonly var: "$ordinal";
|
|
359
359
|
}, {
|
|
360
360
|
readonly var: "state.deadline";
|
|
@@ -406,7 +406,7 @@ export declare const marketPredictionDef: {
|
|
|
406
406
|
readonly eventName: "submit_resolution";
|
|
407
407
|
readonly guard: {
|
|
408
408
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
409
|
-
readonly
|
|
409
|
+
readonly '!': readonly [{
|
|
410
410
|
readonly in: readonly [{
|
|
411
411
|
readonly var: "event.agent";
|
|
412
412
|
}, {
|
|
@@ -450,7 +450,7 @@ export declare const marketPredictionDef: {
|
|
|
450
450
|
readonly eventName: "finalize";
|
|
451
451
|
readonly guard: {
|
|
452
452
|
readonly and: readonly [import("../../../schema/guards.js").GuardRule, {
|
|
453
|
-
readonly
|
|
453
|
+
readonly '>=': readonly [{
|
|
454
454
|
readonly count: {
|
|
455
455
|
readonly var: "state.resolutions";
|
|
456
456
|
};
|
|
@@ -480,12 +480,12 @@ export declare const marketPredictionDef: {
|
|
|
480
480
|
readonly eventName: "dispute";
|
|
481
481
|
readonly guard: {
|
|
482
482
|
readonly and: readonly [{
|
|
483
|
-
readonly
|
|
483
|
+
readonly '>': readonly [{
|
|
484
484
|
readonly length: readonly [{
|
|
485
485
|
readonly filter: readonly [{
|
|
486
486
|
readonly var: "state.positions";
|
|
487
487
|
}, {
|
|
488
|
-
readonly
|
|
488
|
+
readonly '===': readonly [{
|
|
489
489
|
readonly var: "agent";
|
|
490
490
|
}, {
|
|
491
491
|
readonly var: "event.agent";
|
|
@@ -553,12 +553,12 @@ export declare const marketPredictionDef: {
|
|
|
553
553
|
readonly to: "REFUNDED";
|
|
554
554
|
readonly eventName: "invalidate";
|
|
555
555
|
readonly guard: {
|
|
556
|
-
readonly
|
|
556
|
+
readonly '>=': readonly [{
|
|
557
557
|
readonly length: readonly [{
|
|
558
558
|
readonly filter: readonly [{
|
|
559
559
|
readonly var: "state.resolutions";
|
|
560
560
|
}, {
|
|
561
|
-
readonly
|
|
561
|
+
readonly '===': readonly [{
|
|
562
562
|
readonly var: "outcome";
|
|
563
563
|
}, "INVALID"];
|
|
564
564
|
}];
|
|
@@ -585,19 +585,19 @@ export declare const marketPredictionDef: {
|
|
|
585
585
|
readonly eventName: "claim";
|
|
586
586
|
readonly guard: {
|
|
587
587
|
readonly and: readonly [{
|
|
588
|
-
readonly
|
|
588
|
+
readonly '>': readonly [{
|
|
589
589
|
readonly length: readonly [{
|
|
590
590
|
readonly filter: readonly [{
|
|
591
591
|
readonly var: "state.positions";
|
|
592
592
|
}, {
|
|
593
593
|
readonly and: readonly [{
|
|
594
|
-
readonly
|
|
594
|
+
readonly '===': readonly [{
|
|
595
595
|
readonly var: "agent";
|
|
596
596
|
}, {
|
|
597
597
|
readonly var: "event.agent";
|
|
598
598
|
}];
|
|
599
599
|
}, {
|
|
600
|
-
readonly
|
|
600
|
+
readonly '===': readonly [{
|
|
601
601
|
readonly var: "outcome";
|
|
602
602
|
}, {
|
|
603
603
|
readonly var: "state.finalOutcome";
|
|
@@ -607,7 +607,7 @@ export declare const marketPredictionDef: {
|
|
|
607
607
|
}];
|
|
608
608
|
}, 0];
|
|
609
609
|
}, {
|
|
610
|
-
readonly
|
|
610
|
+
readonly '!': readonly [{
|
|
611
611
|
readonly in: readonly [{
|
|
612
612
|
readonly var: "event.agent";
|
|
613
613
|
}, {
|
|
@@ -99,7 +99,7 @@ export declare const marketUniversalDef: {
|
|
|
99
99
|
readonly to: "OPEN";
|
|
100
100
|
readonly eventName: "open";
|
|
101
101
|
readonly guard: {
|
|
102
|
-
readonly
|
|
102
|
+
readonly '==': readonly [1, 1];
|
|
103
103
|
};
|
|
104
104
|
readonly effect: {
|
|
105
105
|
readonly merge: readonly [{
|
|
@@ -117,7 +117,7 @@ export declare const marketUniversalDef: {
|
|
|
117
117
|
readonly to: "CANCELLED";
|
|
118
118
|
readonly eventName: "cancel";
|
|
119
119
|
readonly guard: {
|
|
120
|
-
readonly
|
|
120
|
+
readonly '==': readonly [1, 1];
|
|
121
121
|
};
|
|
122
122
|
readonly effect: {
|
|
123
123
|
readonly merge: readonly [{
|
|
@@ -135,7 +135,7 @@ export declare const marketUniversalDef: {
|
|
|
135
135
|
readonly to: "OPEN";
|
|
136
136
|
readonly eventName: "commit";
|
|
137
137
|
readonly guard: {
|
|
138
|
-
readonly
|
|
138
|
+
readonly '>': readonly [{
|
|
139
139
|
readonly var: "event.amount";
|
|
140
140
|
}, 0];
|
|
141
141
|
};
|
|
@@ -144,7 +144,7 @@ export declare const marketUniversalDef: {
|
|
|
144
144
|
readonly var: "state";
|
|
145
145
|
}, {
|
|
146
146
|
readonly totalCommitted: {
|
|
147
|
-
readonly
|
|
147
|
+
readonly '+': readonly [{
|
|
148
148
|
readonly var: "state.totalCommitted";
|
|
149
149
|
}, {
|
|
150
150
|
readonly var: "event.amount";
|
|
@@ -158,7 +158,7 @@ export declare const marketUniversalDef: {
|
|
|
158
158
|
readonly to: "CLOSED";
|
|
159
159
|
readonly eventName: "close";
|
|
160
160
|
readonly guard: {
|
|
161
|
-
readonly
|
|
161
|
+
readonly '==': readonly [1, 1];
|
|
162
162
|
};
|
|
163
163
|
readonly effect: {
|
|
164
164
|
readonly merge: readonly [{
|
|
@@ -176,7 +176,7 @@ export declare const marketUniversalDef: {
|
|
|
176
176
|
readonly to: "SETTLED";
|
|
177
177
|
readonly eventName: "settle";
|
|
178
178
|
readonly guard: {
|
|
179
|
-
readonly
|
|
179
|
+
readonly '==': readonly [1, 1];
|
|
180
180
|
};
|
|
181
181
|
readonly effect: {
|
|
182
182
|
readonly merge: readonly [{
|
|
@@ -194,7 +194,7 @@ export declare const marketUniversalDef: {
|
|
|
194
194
|
readonly to: "CANCELLED";
|
|
195
195
|
readonly eventName: "cancel";
|
|
196
196
|
readonly guard: {
|
|
197
|
-
readonly
|
|
197
|
+
readonly '==': readonly [1, 1];
|
|
198
198
|
};
|
|
199
199
|
readonly effect: {
|
|
200
200
|
readonly merge: readonly [{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @deprecated Use `@ottochain/sdk/apps/identity`
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
|
-
export { IdentityState as OracleState, Reputation as OracleReputation, PenaltyEvent as SlashingEvent, Identity as Oracle, RegisterIdentityRequest as RegisterOracleRequest, ActivateIdentityRequest as ActivateOracleRequest, AddStakeRequest, WithdrawIdentityRequest as WithdrawOracleRequest, IdentityDefinition as OracleDefinition, identityStateFromJSON as oracleStateFromJSON, identityStateToJSON as oracleStateToJSON, } from
|
|
10
|
+
export { IdentityState as OracleState, Reputation as OracleReputation, PenaltyEvent as SlashingEvent, Identity as Oracle, RegisterIdentityRequest as RegisterOracleRequest, ActivateIdentityRequest as ActivateOracleRequest, AddStakeRequest, WithdrawIdentityRequest as WithdrawOracleRequest, IdentityDefinition as OracleDefinition, identityStateFromJSON as oracleStateFromJSON, identityStateToJSON as oracleStateToJSON, } from '../identity/index.js';
|
|
11
11
|
/** @deprecated Use `getIdentityDefinition('oracle')` from `@ottochain/sdk/apps/identity` */
|
|
12
12
|
export declare function getOracleDefinition(_type?: string): unknown;
|
|
13
13
|
/** @deprecated Use `DEFAULT_REPUTATION_CONFIG` from `@ottochain/sdk/apps/identity` */
|