@percayso-community/cayso-contracts 0.29.0 → 1.0.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.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const CONTRACT_SCHEMA = {
17
- "contractVersion": "0.29.0",
17
+ "contractVersion": "1.0.0",
18
18
  "packageName": "@percayso-community/cayso-contracts",
19
19
  "capabilities": {
20
20
  "wallet": "cayso.wallet",
@@ -93,6 +93,14 @@ export const CONTRACT_SCHEMA = {
93
93
  "method": "POST",
94
94
  "path": "/api/cloud/standing-authorisations"
95
95
  },
96
+ "revokeStandingAuthorisation": {
97
+ "method": "POST",
98
+ "path": "/api/cloud/standing-authorisation-revocations"
99
+ },
100
+ "bindNode": {
101
+ "method": "POST",
102
+ "path": "/api/cloud/node-bindings"
103
+ },
96
104
  "version": {
97
105
  "method": "GET",
98
106
  "path": "/api/version"
@@ -102,9 +110,87 @@ export const CONTRACT_SCHEMA = {
102
110
  "cloudSettlement": {
103
111
  "method": "POST",
104
112
  "path": "/api/cloud/settlement-assertions"
113
+ },
114
+ "nodeBindingQuery": {
115
+ "method": "POST",
116
+ "path": "/api/cloud/node-binding-queries"
117
+ }
118
+ },
119
+ "keyRoutes": {
120
+ "acknowledgementKeys": {
121
+ "method": "GET",
122
+ "path": "/api/acknowledgement-keys"
105
123
  }
106
124
  },
107
125
  "types": {
126
+ "AcknowledgementKeyId": {
127
+ "kind": "alias",
128
+ "of": {
129
+ "scalar": "string"
130
+ }
131
+ },
132
+ "AcknowledgementKeySet": {
133
+ "kind": "object",
134
+ "properties": {
135
+ "keys": {
136
+ "type": {
137
+ "array": {
138
+ "ref": "AcknowledgementPublicKey"
139
+ },
140
+ "readonly": true
141
+ },
142
+ "readonly": true,
143
+ "optional": false
144
+ }
145
+ }
146
+ },
147
+ "AcknowledgementPublicKey": {
148
+ "kind": "object",
149
+ "properties": {
150
+ "kty": {
151
+ "type": {
152
+ "literal": "OKP"
153
+ },
154
+ "readonly": true,
155
+ "optional": false
156
+ },
157
+ "crv": {
158
+ "type": {
159
+ "literal": "Ed25519"
160
+ },
161
+ "readonly": true,
162
+ "optional": false
163
+ },
164
+ "x": {
165
+ "type": {
166
+ "scalar": "string"
167
+ },
168
+ "readonly": true,
169
+ "optional": false
170
+ },
171
+ "kid": {
172
+ "type": {
173
+ "ref": "AcknowledgementKeyId"
174
+ },
175
+ "readonly": true,
176
+ "optional": false
177
+ },
178
+ "alg": {
179
+ "type": {
180
+ "literal": "EdDSA"
181
+ },
182
+ "readonly": true,
183
+ "optional": false
184
+ },
185
+ "use": {
186
+ "type": {
187
+ "literal": "sig"
188
+ },
189
+ "readonly": true,
190
+ "optional": false
191
+ }
192
+ }
193
+ },
108
194
  "Allowance": {
109
195
  "kind": "object",
110
196
  "properties": {
@@ -272,6 +358,13 @@ export const CONTRACT_SCHEMA = {
272
358
  },
273
359
  "readonly": true,
274
360
  "optional": true
361
+ },
362
+ "auth_time": {
363
+ "type": {
364
+ "scalar": "number"
365
+ },
366
+ "readonly": true,
367
+ "optional": true
275
368
  }
276
369
  }
277
370
  },
@@ -374,6 +467,128 @@ export const CONTRACT_SCHEMA = {
374
467
  }
375
468
  }
376
469
  },
470
+ "AuthorityBindingRefusal": {
471
+ "kind": "alias",
472
+ "of": {
473
+ "union": [
474
+ {
475
+ "literal": "authority_assertion_missing"
476
+ },
477
+ {
478
+ "literal": "authority_assertion_invalid"
479
+ },
480
+ {
481
+ "literal": "subject_mismatch"
482
+ },
483
+ {
484
+ "literal": "operation_not_in_scope"
485
+ },
486
+ {
487
+ "literal": "operation_not_the_routes"
488
+ },
489
+ {
490
+ "literal": "auth_time_mismatch"
491
+ },
492
+ {
493
+ "literal": "not_jointly_current"
494
+ }
495
+ ]
496
+ }
497
+ },
498
+ "AuthorityClaims": {
499
+ "kind": "object",
500
+ "properties": {
501
+ "iss": {
502
+ "type": {
503
+ "scalar": "string"
504
+ },
505
+ "readonly": true,
506
+ "optional": false
507
+ },
508
+ "aud": {
509
+ "type": {
510
+ "literal": "cayso"
511
+ },
512
+ "readonly": true,
513
+ "optional": false
514
+ },
515
+ "jti": {
516
+ "type": {
517
+ "scalar": "string"
518
+ },
519
+ "readonly": true,
520
+ "optional": false
521
+ },
522
+ "iat": {
523
+ "type": {
524
+ "scalar": "number"
525
+ },
526
+ "readonly": true,
527
+ "optional": false
528
+ },
529
+ "exp": {
530
+ "type": {
531
+ "scalar": "number"
532
+ },
533
+ "readonly": true,
534
+ "optional": false
535
+ },
536
+ "sub": {
537
+ "type": {
538
+ "scalar": "string"
539
+ },
540
+ "readonly": true,
541
+ "optional": false
542
+ },
543
+ "operation": {
544
+ "type": {
545
+ "ref": "ContractOperation"
546
+ },
547
+ "readonly": true,
548
+ "optional": false
549
+ },
550
+ "organisationId": {
551
+ "type": {
552
+ "scalar": "string"
553
+ },
554
+ "readonly": true,
555
+ "optional": false
556
+ },
557
+ "mandateVersion": {
558
+ "type": {
559
+ "scalar": "number"
560
+ },
561
+ "readonly": true,
562
+ "optional": false
563
+ },
564
+ "auth_time": {
565
+ "type": {
566
+ "scalar": "number"
567
+ },
568
+ "readonly": true,
569
+ "optional": false
570
+ }
571
+ }
572
+ },
573
+ "AuthorityEnvelope": {
574
+ "kind": "object",
575
+ "properties": {
576
+ "header": {
577
+ "type": {
578
+ "ref": "AssertionHeader"
579
+ },
580
+ "readonly": true,
581
+ "optional": false
582
+ },
583
+ "claims": {
584
+ "type": {
585
+ "ref": "AuthorityClaims"
586
+ },
587
+ "readonly": true,
588
+ "optional": false
589
+ }
590
+ }
591
+ },
377
592
  "Balance": {
378
593
  "kind": "object",
379
594
  "properties": {
@@ -697,6 +912,33 @@ export const CONTRACT_SCHEMA = {
697
912
  {
698
913
  "literal": "receipt_signing_not_configured"
699
914
  },
915
+ {
916
+ "literal": "acknowledgement_signing_not_configured"
917
+ },
918
+ {
919
+ "literal": "standing_authorisation_store_not_configured"
920
+ },
921
+ {
922
+ "literal": "standing_authorisation_cap_ceiling_not_configured"
923
+ },
924
+ {
925
+ "literal": "standing_authorisation_life_ceiling_not_configured"
926
+ },
927
+ {
928
+ "literal": "node_binding_store_not_configured"
929
+ },
930
+ {
931
+ "literal": "core_node_ids_not_configured"
932
+ },
933
+ {
934
+ "literal": "contribution_store_issuer_not_configured"
935
+ },
936
+ {
937
+ "literal": "authority_issuer_not_configured"
938
+ },
939
+ {
940
+ "literal": "cloud_settlement_store_not_configured"
941
+ },
700
942
  {
701
943
  "literal": "marketplace_order_keys_not_configured"
702
944
  },
@@ -757,8 +999,20 @@ export const CONTRACT_SCHEMA = {
757
999
  {
758
1000
  "ref": "StandingAuthorisationRefusal"
759
1001
  },
1002
+ {
1003
+ "ref": "StandingAuthorisationRevocationRefusal"
1004
+ },
1005
+ {
1006
+ "ref": "NodeBindingRefusal"
1007
+ },
1008
+ {
1009
+ "ref": "NodeBindingQueryRefusal"
1010
+ },
760
1011
  {
761
1012
  "ref": "SettlementAssertionRefusal"
1013
+ },
1014
+ {
1015
+ "ref": "AuthorityBindingRefusal"
762
1016
  }
763
1017
  ]
764
1018
  }
@@ -1453,11 +1707,17 @@ export const CONTRACT_SCHEMA = {
1453
1707
  {
1454
1708
  "literal": "consumption_authorisation_revoked"
1455
1709
  },
1710
+ {
1711
+ "literal": "consumption_authorisation_not_in_force"
1712
+ },
1456
1713
  {
1457
1714
  "literal": "consumption_cap_not_the_acknowledged_cap"
1458
1715
  },
1459
1716
  {
1460
1717
  "literal": "consumption_over_cap"
1718
+ },
1719
+ {
1720
+ "literal": "consumption_wallet_short"
1461
1721
  }
1462
1722
  ]
1463
1723
  }
@@ -1558,6 +1818,12 @@ export const CONTRACT_SCHEMA = {
1558
1818
  },
1559
1819
  {
1560
1820
  "literal": "present-standing-authorisation"
1821
+ },
1822
+ {
1823
+ "literal": "revoke-standing-authorisation"
1824
+ },
1825
+ {
1826
+ "literal": "bind-node"
1561
1827
  }
1562
1828
  ]
1563
1829
  }
@@ -1651,7 +1917,17 @@ export const CONTRACT_SCHEMA = {
1651
1917
  "ContributionRowRefusal": {
1652
1918
  "kind": "alias",
1653
1919
  "of": {
1654
- "literal": "contribution_node_not_bound"
1920
+ "union": [
1921
+ {
1922
+ "literal": "contribution_node_not_bound"
1923
+ },
1924
+ {
1925
+ "literal": "contribution_node_is_a_core_node"
1926
+ },
1927
+ {
1928
+ "literal": "contribution_treasury_short"
1929
+ }
1930
+ ]
1655
1931
  }
1656
1932
  },
1657
1933
  "ContributionRowRefused": {
@@ -2750,50 +3026,303 @@ export const CONTRACT_SCHEMA = {
2750
3026
  "scalar": "number"
2751
3027
  }
2752
3028
  },
2753
- "NodeId": {
2754
- "kind": "alias",
2755
- "of": {
2756
- "scalar": "string"
2757
- }
2758
- },
2759
- "OrganisationView": {
3029
+ "NodeBindingQueryClaims": {
2760
3030
  "kind": "object",
2761
3031
  "properties": {
2762
- "wallet": {
3032
+ "iss": {
2763
3033
  "type": {
2764
- "ref": "WalletRecord"
3034
+ "ref": "ContributionStoreIssuer"
2765
3035
  },
2766
3036
  "readonly": true,
2767
3037
  "optional": false
2768
- }
2769
- }
2770
- },
2771
- "OwnQuote": {
2772
- "kind": "alias",
2773
- "of": {
2774
- "union": [
2775
- {
2776
- "ref": "OwnQuoteNotWithdrawn"
2777
- },
2778
- {
2779
- "ref": "OwnQuoteWithdrawn"
2780
- }
2781
- ]
2782
- }
2783
- },
2784
- "OwnQuoteNotWithdrawn": {
2785
- "kind": "object",
2786
- "properties": {
2787
- "quoteId": {
3038
+ },
3039
+ "aud": {
2788
3040
  "type": {
2789
- "scalar": "string"
3041
+ "literal": "cayso"
2790
3042
  },
2791
3043
  "readonly": true,
2792
3044
  "optional": false
2793
3045
  },
2794
- "side": {
3046
+ "node_id": {
2795
3047
  "type": {
2796
- "ref": "QuoteSide"
3048
+ "ref": "NodeId"
3049
+ },
3050
+ "readonly": true,
3051
+ "optional": false
3052
+ },
3053
+ "iat": {
3054
+ "type": {
3055
+ "scalar": "number"
3056
+ },
3057
+ "readonly": true,
3058
+ "optional": false
3059
+ },
3060
+ "exp": {
3061
+ "type": {
3062
+ "scalar": "number"
3063
+ },
3064
+ "readonly": true,
3065
+ "optional": false
3066
+ }
3067
+ }
3068
+ },
3069
+ "NodeBindingQueryRefusal": {
3070
+ "kind": "alias",
3071
+ "of": {
3072
+ "union": [
3073
+ {
3074
+ "literal": "node_binding_query_malformed"
3075
+ },
3076
+ {
3077
+ "literal": "node_binding_query_issuer_not_recognised"
3078
+ },
3079
+ {
3080
+ "literal": "node_binding_query_issuer_for_another_environment"
3081
+ },
3082
+ {
3083
+ "literal": "node_binding_query_signature_invalid"
3084
+ },
3085
+ {
3086
+ "literal": "node_binding_query_not_current"
3087
+ }
3088
+ ]
3089
+ }
3090
+ },
3091
+ "NodeBindingQueryRefused": {
3092
+ "kind": "object",
3093
+ "properties": {
3094
+ "outcome": {
3095
+ "type": {
3096
+ "literal": "refused"
3097
+ },
3098
+ "readonly": true,
3099
+ "optional": false
3100
+ },
3101
+ "error": {
3102
+ "type": {
3103
+ "ref": "NodeBindingQueryRefusal"
3104
+ },
3105
+ "readonly": true,
3106
+ "optional": false
3107
+ }
3108
+ }
3109
+ },
3110
+ "NodeBindingQueryRequest": {
3111
+ "kind": "object",
3112
+ "properties": {
3113
+ "nodeBindingQuery": {
3114
+ "type": {
3115
+ "scalar": "string"
3116
+ },
3117
+ "readonly": true,
3118
+ "optional": false
3119
+ }
3120
+ }
3121
+ },
3122
+ "NodeBindingRefusal": {
3123
+ "kind": "alias",
3124
+ "of": {
3125
+ "union": [
3126
+ {
3127
+ "literal": "assurance_not_money_grade"
3128
+ },
3129
+ {
3130
+ "literal": "node_presentation_malformed"
3131
+ },
3132
+ {
3133
+ "literal": "instance_key_malformed"
3134
+ },
3135
+ {
3136
+ "literal": "node_presentation_not_signed_by_its_instance_key"
3137
+ },
3138
+ {
3139
+ "literal": "node_presentation_not_current"
3140
+ },
3141
+ {
3142
+ "literal": "instance_key_not_bound_to_holder"
3143
+ },
3144
+ {
3145
+ "literal": "core_node_not_bound"
3146
+ },
3147
+ {
3148
+ "literal": "node_bound_to_another_wallet"
3149
+ }
3150
+ ]
3151
+ }
3152
+ },
3153
+ "NodeBindingRefused": {
3154
+ "kind": "object",
3155
+ "properties": {
3156
+ "outcome": {
3157
+ "type": {
3158
+ "literal": "refused"
3159
+ },
3160
+ "readonly": true,
3161
+ "optional": false
3162
+ },
3163
+ "error": {
3164
+ "type": {
3165
+ "ref": "NodeBindingRefusal"
3166
+ },
3167
+ "readonly": true,
3168
+ "optional": false
3169
+ }
3170
+ }
3171
+ },
3172
+ "NodeBindingRequest": {
3173
+ "kind": "object",
3174
+ "properties": {
3175
+ "nodePresentation": {
3176
+ "type": {
3177
+ "scalar": "string"
3178
+ },
3179
+ "readonly": true,
3180
+ "optional": false
3181
+ },
3182
+ "instanceKey": {
3183
+ "type": {
3184
+ "scalar": "string"
3185
+ },
3186
+ "readonly": true,
3187
+ "optional": false
3188
+ }
3189
+ }
3190
+ },
3191
+ "NodeBindingResponse": {
3192
+ "kind": "alias",
3193
+ "of": {
3194
+ "union": [
3195
+ {
3196
+ "ref": "NodeBound"
3197
+ },
3198
+ {
3199
+ "ref": "NodeBindingRefused"
3200
+ }
3201
+ ]
3202
+ }
3203
+ },
3204
+ "NodeBindingStatus": {
3205
+ "kind": "object",
3206
+ "properties": {
3207
+ "nodeId": {
3208
+ "type": {
3209
+ "ref": "NodeId"
3210
+ },
3211
+ "readonly": true,
3212
+ "optional": false
3213
+ },
3214
+ "bound": {
3215
+ "type": {
3216
+ "scalar": "boolean"
3217
+ },
3218
+ "readonly": true,
3219
+ "optional": false
3220
+ }
3221
+ }
3222
+ },
3223
+ "NodeBound": {
3224
+ "kind": "object",
3225
+ "properties": {
3226
+ "outcome": {
3227
+ "type": {
3228
+ "literal": "bound"
3229
+ },
3230
+ "readonly": true,
3231
+ "optional": false
3232
+ },
3233
+ "nodeId": {
3234
+ "type": {
3235
+ "ref": "NodeId"
3236
+ },
3237
+ "readonly": true,
3238
+ "optional": false
3239
+ }
3240
+ }
3241
+ },
3242
+ "NodeId": {
3243
+ "kind": "alias",
3244
+ "of": {
3245
+ "scalar": "string"
3246
+ }
3247
+ },
3248
+ "NodePresentationClaims": {
3249
+ "kind": "object",
3250
+ "properties": {
3251
+ "iss": {
3252
+ "type": {
3253
+ "ref": "InstanceKeyId"
3254
+ },
3255
+ "readonly": true,
3256
+ "optional": false
3257
+ },
3258
+ "aud": {
3259
+ "type": {
3260
+ "literal": "cayso"
3261
+ },
3262
+ "readonly": true,
3263
+ "optional": false
3264
+ },
3265
+ "node_id": {
3266
+ "type": {
3267
+ "ref": "NodeId"
3268
+ },
3269
+ "readonly": true,
3270
+ "optional": false
3271
+ },
3272
+ "iat": {
3273
+ "type": {
3274
+ "scalar": "number"
3275
+ },
3276
+ "readonly": true,
3277
+ "optional": false
3278
+ },
3279
+ "exp": {
3280
+ "type": {
3281
+ "scalar": "number"
3282
+ },
3283
+ "readonly": true,
3284
+ "optional": false
3285
+ }
3286
+ }
3287
+ },
3288
+ "OrganisationView": {
3289
+ "kind": "object",
3290
+ "properties": {
3291
+ "wallet": {
3292
+ "type": {
3293
+ "ref": "WalletRecord"
3294
+ },
3295
+ "readonly": true,
3296
+ "optional": false
3297
+ }
3298
+ }
3299
+ },
3300
+ "OwnQuote": {
3301
+ "kind": "alias",
3302
+ "of": {
3303
+ "union": [
3304
+ {
3305
+ "ref": "OwnQuoteNotWithdrawn"
3306
+ },
3307
+ {
3308
+ "ref": "OwnQuoteWithdrawn"
3309
+ }
3310
+ ]
3311
+ }
3312
+ },
3313
+ "OwnQuoteNotWithdrawn": {
3314
+ "kind": "object",
3315
+ "properties": {
3316
+ "quoteId": {
3317
+ "type": {
3318
+ "scalar": "string"
3319
+ },
3320
+ "readonly": true,
3321
+ "optional": false
3322
+ },
3323
+ "side": {
3324
+ "type": {
3325
+ "ref": "QuoteSide"
2797
3326
  },
2798
3327
  "readonly": true,
2799
3328
  "optional": false
@@ -3806,11 +4335,20 @@ export const CONTRACT_SCHEMA = {
3806
4335
  {
3807
4336
  "literal": "settlement_jti_not_the_period"
3808
4337
  },
4338
+ {
4339
+ "literal": "settlement_period_not_recognised"
4340
+ },
4341
+ {
4342
+ "literal": "settlement_period_not_ended"
4343
+ },
3809
4344
  {
3810
4345
  "literal": "settlement_period_already_settled_differently"
3811
4346
  },
3812
4347
  {
3813
4348
  "literal": "settlement_totals_do_not_add"
4349
+ },
4350
+ {
4351
+ "literal": "settlement_carve_contended"
3814
4352
  }
3815
4353
  ]
3816
4354
  }
@@ -4216,10 +4754,89 @@ export const CONTRACT_SCHEMA = {
4216
4754
  ]
4217
4755
  }
4218
4756
  },
4219
- "StoreSignedStatement": {
4220
- "kind": "object",
4221
- "properties": {
4222
- "statement": {
4757
+ "StandingAuthorisationRevocationRefusal": {
4758
+ "kind": "alias",
4759
+ "of": {
4760
+ "union": [
4761
+ {
4762
+ "literal": "assurance_not_money_grade"
4763
+ },
4764
+ {
4765
+ "literal": "wallet_has_no_live_binding"
4766
+ },
4767
+ {
4768
+ "literal": "authorisation_not_held_by_this_wallet"
4769
+ }
4770
+ ]
4771
+ }
4772
+ },
4773
+ "StandingAuthorisationRevocationRefused": {
4774
+ "kind": "object",
4775
+ "properties": {
4776
+ "outcome": {
4777
+ "type": {
4778
+ "literal": "refused"
4779
+ },
4780
+ "readonly": true,
4781
+ "optional": false
4782
+ },
4783
+ "error": {
4784
+ "type": {
4785
+ "ref": "StandingAuthorisationRevocationRefusal"
4786
+ },
4787
+ "readonly": true,
4788
+ "optional": false
4789
+ }
4790
+ }
4791
+ },
4792
+ "StandingAuthorisationRevocationRequest": {
4793
+ "kind": "object",
4794
+ "properties": {
4795
+ "authorisation": {
4796
+ "type": {
4797
+ "scalar": "string"
4798
+ },
4799
+ "readonly": true,
4800
+ "optional": false
4801
+ }
4802
+ }
4803
+ },
4804
+ "StandingAuthorisationRevocationResponse": {
4805
+ "kind": "alias",
4806
+ "of": {
4807
+ "union": [
4808
+ {
4809
+ "ref": "StandingAuthorisationRevoked"
4810
+ },
4811
+ {
4812
+ "ref": "StandingAuthorisationRevocationRefused"
4813
+ }
4814
+ ]
4815
+ }
4816
+ },
4817
+ "StandingAuthorisationRevoked": {
4818
+ "kind": "object",
4819
+ "properties": {
4820
+ "outcome": {
4821
+ "type": {
4822
+ "literal": "revoked"
4823
+ },
4824
+ "readonly": true,
4825
+ "optional": false
4826
+ },
4827
+ "authorisation": {
4828
+ "type": {
4829
+ "scalar": "string"
4830
+ },
4831
+ "readonly": true,
4832
+ "optional": false
4833
+ }
4834
+ }
4835
+ },
4836
+ "StoreSignedStatement": {
4837
+ "kind": "object",
4838
+ "properties": {
4839
+ "statement": {
4223
4840
  "type": {
4224
4841
  "scalar": "string"
4225
4842
  },
@@ -4447,6 +5064,11 @@ export const CONTRACT_SCHEMA = {
4447
5064
  "method": "GET",
4448
5065
  "path": "/api/operator/quickenings",
4449
5066
  "scope": "read-quickening-ladder-as-operator"
5067
+ },
5068
+ "summary": {
5069
+ "method": "GET",
5070
+ "path": "/api/operator/summary",
5071
+ "scope": "read-economy-summary-as-operator"
4450
5072
  }
4451
5073
  },
4452
5074
  "types": {
@@ -4511,6 +5133,12 @@ export const CONTRACT_SCHEMA = {
4511
5133
  },
4512
5134
  {
4513
5135
  "literal": "marketplace_settlement"
5136
+ },
5137
+ {
5138
+ "literal": "contribution_settlement"
5139
+ },
5140
+ {
5141
+ "literal": "consumption_settlement"
4514
5142
  }
4515
5143
  ]
4516
5144
  }
@@ -4562,6 +5190,248 @@ export const CONTRACT_SCHEMA = {
4562
5190
  ]
4563
5191
  }
4564
5192
  },
5193
+ "OperatorEconomySummary": {
5194
+ "kind": "object",
5195
+ "properties": {
5196
+ "asOf": {
5197
+ "type": {
5198
+ "scalar": "string"
5199
+ },
5200
+ "readonly": true,
5201
+ "optional": false
5202
+ },
5203
+ "wallets": {
5204
+ "type": {
5205
+ "ref": "OperatorWalletCounts"
5206
+ },
5207
+ "readonly": true,
5208
+ "optional": false
5209
+ },
5210
+ "supply": {
5211
+ "type": {
5212
+ "ref": "OperatorSupplySummary"
5213
+ },
5214
+ "readonly": true,
5215
+ "optional": false
5216
+ },
5217
+ "movements": {
5218
+ "type": {
5219
+ "ref": "OperatorMovementCounts"
5220
+ },
5221
+ "readonly": true,
5222
+ "optional": false
5223
+ },
5224
+ "purchases": {
5225
+ "type": {
5226
+ "ref": "OperatorPurchaseCounts"
5227
+ },
5228
+ "readonly": true,
5229
+ "optional": false
5230
+ }
5231
+ }
5232
+ },
5233
+ "OperatorEconomySummaryError": {
5234
+ "kind": "object",
5235
+ "properties": {
5236
+ "error": {
5237
+ "type": {
5238
+ "ref": "OperatorEconomySummaryErrorCode"
5239
+ },
5240
+ "readonly": true,
5241
+ "optional": false
5242
+ }
5243
+ }
5244
+ },
5245
+ "OperatorEconomySummaryErrorCode": {
5246
+ "kind": "alias",
5247
+ "of": {
5248
+ "union": [
5249
+ {
5250
+ "ref": "OperatorAuthenticationRefusal"
5251
+ },
5252
+ {
5253
+ "ref": "OperatorAccessRefusal"
5254
+ },
5255
+ {
5256
+ "ref": "OperatorRateLimited"
5257
+ },
5258
+ {
5259
+ "ref": "OperatorReadUnavailable"
5260
+ },
5261
+ {
5262
+ "ref": "OperatorEconomySummaryUnavailable"
5263
+ },
5264
+ {
5265
+ "ref": "OperatorReadFailed"
5266
+ }
5267
+ ]
5268
+ }
5269
+ },
5270
+ "OperatorEconomySummaryResponse": {
5271
+ "kind": "alias",
5272
+ "of": {
5273
+ "union": [
5274
+ {
5275
+ "ref": "OperatorEconomySummary"
5276
+ },
5277
+ {
5278
+ "ref": "OperatorVerificationRefused"
5279
+ },
5280
+ {
5281
+ "ref": "OperatorEconomySummaryError"
5282
+ }
5283
+ ]
5284
+ }
5285
+ },
5286
+ "OperatorEconomySummaryUnavailable": {
5287
+ "kind": "alias",
5288
+ "of": {
5289
+ "literal": "operator_summary_reader_not_configured"
5290
+ }
5291
+ },
5292
+ "OperatorMovementCounts": {
5293
+ "kind": "object",
5294
+ "properties": {
5295
+ "total": {
5296
+ "type": {
5297
+ "scalar": "number"
5298
+ },
5299
+ "readonly": true,
5300
+ "optional": false
5301
+ },
5302
+ "inLast7Days": {
5303
+ "type": {
5304
+ "scalar": "number"
5305
+ },
5306
+ "readonly": true,
5307
+ "optional": false
5308
+ },
5309
+ "inLast30Days": {
5310
+ "type": {
5311
+ "scalar": "number"
5312
+ },
5313
+ "readonly": true,
5314
+ "optional": false
5315
+ },
5316
+ "byKind": {
5317
+ "type": {
5318
+ "ref": "OperatorMovementCountsByKind"
5319
+ },
5320
+ "readonly": true,
5321
+ "optional": false
5322
+ }
5323
+ }
5324
+ },
5325
+ "OperatorMovementCountsByKind": {
5326
+ "kind": "object",
5327
+ "properties": {
5328
+ "issuance": {
5329
+ "type": {
5330
+ "scalar": "number"
5331
+ },
5332
+ "readonly": true,
5333
+ "optional": false
5334
+ },
5335
+ "purchase": {
5336
+ "type": {
5337
+ "scalar": "number"
5338
+ },
5339
+ "readonly": true,
5340
+ "optional": false
5341
+ },
5342
+ "grant": {
5343
+ "type": {
5344
+ "scalar": "number"
5345
+ },
5346
+ "readonly": true,
5347
+ "optional": false
5348
+ },
5349
+ "charge": {
5350
+ "type": {
5351
+ "scalar": "number"
5352
+ },
5353
+ "readonly": true,
5354
+ "optional": false
5355
+ },
5356
+ "payout": {
5357
+ "type": {
5358
+ "scalar": "number"
5359
+ },
5360
+ "readonly": true,
5361
+ "optional": false
5362
+ },
5363
+ "transfer": {
5364
+ "type": {
5365
+ "scalar": "number"
5366
+ },
5367
+ "readonly": true,
5368
+ "optional": false
5369
+ },
5370
+ "burn": {
5371
+ "type": {
5372
+ "scalar": "number"
5373
+ },
5374
+ "readonly": true,
5375
+ "optional": false
5376
+ },
5377
+ "forfeit": {
5378
+ "type": {
5379
+ "scalar": "number"
5380
+ },
5381
+ "readonly": true,
5382
+ "optional": false
5383
+ },
5384
+ "commercial_payment": {
5385
+ "type": {
5386
+ "scalar": "number"
5387
+ },
5388
+ "readonly": true,
5389
+ "optional": false
5390
+ },
5391
+ "quoted_sale": {
5392
+ "type": {
5393
+ "scalar": "number"
5394
+ },
5395
+ "readonly": true,
5396
+ "optional": false
5397
+ },
5398
+ "buy_back": {
5399
+ "type": {
5400
+ "scalar": "number"
5401
+ },
5402
+ "readonly": true,
5403
+ "optional": false
5404
+ },
5405
+ "quoted_sale_compensation": {
5406
+ "type": {
5407
+ "scalar": "number"
5408
+ },
5409
+ "readonly": true,
5410
+ "optional": false
5411
+ },
5412
+ "marketplace_settlement": {
5413
+ "type": {
5414
+ "scalar": "number"
5415
+ },
5416
+ "readonly": true,
5417
+ "optional": false
5418
+ },
5419
+ "contribution_settlement": {
5420
+ "type": {
5421
+ "scalar": "number"
5422
+ },
5423
+ "readonly": true,
5424
+ "optional": false
5425
+ },
5426
+ "consumption_settlement": {
5427
+ "type": {
5428
+ "scalar": "number"
5429
+ },
5430
+ "readonly": true,
5431
+ "optional": false
5432
+ }
5433
+ }
5434
+ },
4565
5435
  "OperatorMovementRow": {
4566
5436
  "kind": "object",
4567
5437
  "properties": {
@@ -4864,6 +5734,65 @@ export const CONTRACT_SCHEMA = {
4864
5734
  "literal": "operator_movements_reader_not_configured"
4865
5735
  }
4866
5736
  },
5737
+ "OperatorPurchaseCounts": {
5738
+ "kind": "object",
5739
+ "properties": {
5740
+ "total": {
5741
+ "type": {
5742
+ "scalar": "number"
5743
+ },
5744
+ "readonly": true,
5745
+ "optional": false
5746
+ },
5747
+ "byStatus": {
5748
+ "type": {
5749
+ "ref": "OperatorPurchaseCountsByStatus"
5750
+ },
5751
+ "readonly": true,
5752
+ "optional": false
5753
+ }
5754
+ }
5755
+ },
5756
+ "OperatorPurchaseCountsByStatus": {
5757
+ "kind": "object",
5758
+ "properties": {
5759
+ "pending": {
5760
+ "type": {
5761
+ "scalar": "number"
5762
+ },
5763
+ "readonly": true,
5764
+ "optional": false
5765
+ },
5766
+ "issued_uncaptured": {
5767
+ "type": {
5768
+ "scalar": "number"
5769
+ },
5770
+ "readonly": true,
5771
+ "optional": false
5772
+ },
5773
+ "succeeded": {
5774
+ "type": {
5775
+ "scalar": "number"
5776
+ },
5777
+ "readonly": true,
5778
+ "optional": false
5779
+ },
5780
+ "failed": {
5781
+ "type": {
5782
+ "scalar": "number"
5783
+ },
5784
+ "readonly": true,
5785
+ "optional": false
5786
+ },
5787
+ "cancelled": {
5788
+ "type": {
5789
+ "scalar": "number"
5790
+ },
5791
+ "readonly": true,
5792
+ "optional": false
5793
+ }
5794
+ }
5795
+ },
4867
5796
  "OperatorPurchaseRow": {
4868
5797
  "kind": "object",
4869
5798
  "properties": {
@@ -5205,6 +6134,9 @@ export const CONTRACT_SCHEMA = {
5205
6134
  },
5206
6135
  {
5207
6136
  "literal": "read-quickening-ladder-as-operator"
6137
+ },
6138
+ {
6139
+ "literal": "read-economy-summary-as-operator"
5208
6140
  }
5209
6141
  ]
5210
6142
  }
@@ -5225,6 +6157,81 @@ export const CONTRACT_SCHEMA = {
5225
6157
  ]
5226
6158
  }
5227
6159
  },
6160
+ "OperatorSupplySummary": {
6161
+ "kind": "object",
6162
+ "properties": {
6163
+ "totalMintedCents": {
6164
+ "type": {
6165
+ "ref": "Cents"
6166
+ },
6167
+ "readonly": true,
6168
+ "optional": false
6169
+ },
6170
+ "cancelledCents": {
6171
+ "type": {
6172
+ "ref": "Cents"
6173
+ },
6174
+ "readonly": true,
6175
+ "optional": false
6176
+ },
6177
+ "heldCents": {
6178
+ "type": {
6179
+ "ref": "Cents"
6180
+ },
6181
+ "readonly": true,
6182
+ "optional": false
6183
+ },
6184
+ "restrictedCents": {
6185
+ "type": {
6186
+ "ref": "Cents"
6187
+ },
6188
+ "readonly": true,
6189
+ "optional": false
6190
+ },
6191
+ "unrestrictedCents": {
6192
+ "type": {
6193
+ "ref": "Cents"
6194
+ },
6195
+ "readonly": true,
6196
+ "optional": false
6197
+ },
6198
+ "inCitizenWalletsCents": {
6199
+ "type": {
6200
+ "ref": "Cents"
6201
+ },
6202
+ "readonly": true,
6203
+ "optional": false
6204
+ },
6205
+ "inOrganisationWalletsCents": {
6206
+ "type": {
6207
+ "ref": "Cents"
6208
+ },
6209
+ "readonly": true,
6210
+ "optional": false
6211
+ },
6212
+ "inFounderWalletsCents": {
6213
+ "type": {
6214
+ "ref": "Cents"
6215
+ },
6216
+ "readonly": true,
6217
+ "optional": false
6218
+ },
6219
+ "inTreasuryCents": {
6220
+ "type": {
6221
+ "union": [
6222
+ {
6223
+ "ref": "Cents"
6224
+ },
6225
+ {
6226
+ "null": true
6227
+ }
6228
+ ]
6229
+ },
6230
+ "readonly": true,
6231
+ "optional": false
6232
+ }
6233
+ }
6234
+ },
5228
6235
  "OperatorVerificationRefused": {
5229
6236
  "kind": "object",
5230
6237
  "properties": {
@@ -5244,6 +6251,53 @@ export const CONTRACT_SCHEMA = {
5244
6251
  }
5245
6252
  }
5246
6253
  },
6254
+ "OperatorWalletCounts": {
6255
+ "kind": "object",
6256
+ "properties": {
6257
+ "total": {
6258
+ "type": {
6259
+ "scalar": "number"
6260
+ },
6261
+ "readonly": true,
6262
+ "optional": false
6263
+ },
6264
+ "citizenWallets": {
6265
+ "type": {
6266
+ "scalar": "number"
6267
+ },
6268
+ "readonly": true,
6269
+ "optional": false
6270
+ },
6271
+ "organisationWallets": {
6272
+ "type": {
6273
+ "scalar": "number"
6274
+ },
6275
+ "readonly": true,
6276
+ "optional": false
6277
+ },
6278
+ "founderWallets": {
6279
+ "type": {
6280
+ "scalar": "number"
6281
+ },
6282
+ "readonly": true,
6283
+ "optional": false
6284
+ },
6285
+ "createdInLast7Days": {
6286
+ "type": {
6287
+ "scalar": "number"
6288
+ },
6289
+ "readonly": true,
6290
+ "optional": false
6291
+ },
6292
+ "createdInLast30Days": {
6293
+ "type": {
6294
+ "scalar": "number"
6295
+ },
6296
+ "readonly": true,
6297
+ "optional": false
6298
+ }
6299
+ }
6300
+ },
5247
6301
  "QuickeningLadder": {
5248
6302
  "kind": "object",
5249
6303
  "properties": {