@ocap/proto 1.18.94 → 1.18.96

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/lib/gen/spec.json CHANGED
@@ -2424,6 +2424,111 @@
2424
2424
  }
2425
2425
  }
2426
2426
  },
2427
+ "RateLimit": {
2428
+ "fields": {
2429
+ "interval": {
2430
+ "type": "uint64",
2431
+ "id": 1
2432
+ },
2433
+ "anchor": {
2434
+ "type": "uint64",
2435
+ "id": 3
2436
+ }
2437
+ }
2438
+ },
2439
+ "TokenLimit": {
2440
+ "fields": {
2441
+ "address": {
2442
+ "type": "string",
2443
+ "id": 1
2444
+ },
2445
+ "to": {
2446
+ "rule": "repeated",
2447
+ "type": "string",
2448
+ "id": 2
2449
+ },
2450
+ "txCount": {
2451
+ "type": "uint32",
2452
+ "id": 3
2453
+ },
2454
+ "txAllowance": {
2455
+ "type": "string",
2456
+ "id": 4
2457
+ },
2458
+ "totalAllowance": {
2459
+ "type": "string",
2460
+ "id": 5
2461
+ },
2462
+ "validUntil": {
2463
+ "type": "uint64",
2464
+ "id": 6
2465
+ },
2466
+ "rate": {
2467
+ "type": "RateLimit",
2468
+ "id": 7
2469
+ },
2470
+ "txSent": {
2471
+ "type": "uint32",
2472
+ "id": 8
2473
+ },
2474
+ "spentAllowance": {
2475
+ "type": "string",
2476
+ "id": 9
2477
+ },
2478
+ "lastTx": {
2479
+ "type": "uint64",
2480
+ "id": 10
2481
+ }
2482
+ }
2483
+ },
2484
+ "AssetLimit": {
2485
+ "fields": {
2486
+ "address": {
2487
+ "rule": "repeated",
2488
+ "type": "string",
2489
+ "id": 1
2490
+ },
2491
+ "to": {
2492
+ "rule": "repeated",
2493
+ "type": "string",
2494
+ "id": 2
2495
+ },
2496
+ "txCount": {
2497
+ "type": "uint32",
2498
+ "id": 3
2499
+ },
2500
+ "validUntil": {
2501
+ "type": "uint64",
2502
+ "id": 4
2503
+ },
2504
+ "rate": {
2505
+ "type": "RateLimit",
2506
+ "id": 5
2507
+ },
2508
+ "txSent": {
2509
+ "type": "uint32",
2510
+ "id": 6
2511
+ },
2512
+ "lastTx": {
2513
+ "type": "uint64",
2514
+ "id": 7
2515
+ }
2516
+ }
2517
+ },
2518
+ "DelegateLimit": {
2519
+ "fields": {
2520
+ "tokens": {
2521
+ "rule": "repeated",
2522
+ "type": "TokenLimit",
2523
+ "id": 1
2524
+ },
2525
+ "assets": {
2526
+ "rule": "repeated",
2527
+ "type": "AssetLimit",
2528
+ "id": 2
2529
+ }
2530
+ }
2531
+ },
2427
2532
  "AccountState": {
2428
2533
  "fields": {
2429
2534
  "balance": {
@@ -2640,23 +2745,42 @@
2640
2745
  "fields": {
2641
2746
  "rule": {
2642
2747
  "type": "string",
2643
- "id": 1
2748
+ "id": 1,
2749
+ "options": {
2750
+ "deprecated": true
2751
+ }
2644
2752
  },
2645
2753
  "numTxs": {
2646
2754
  "type": "uint64",
2647
- "id": 2
2755
+ "id": 2,
2756
+ "options": {
2757
+ "deprecated": true
2758
+ }
2648
2759
  },
2649
2760
  "numTxsDelta": {
2650
2761
  "type": "uint64",
2651
- "id": 3
2762
+ "id": 3,
2763
+ "options": {
2764
+ "deprecated": true
2765
+ }
2652
2766
  },
2653
2767
  "balance": {
2654
2768
  "type": "BigUint",
2655
- "id": 4
2769
+ "id": 4,
2770
+ "options": {
2771
+ "deprecated": true
2772
+ }
2656
2773
  },
2657
2774
  "balanceDelta": {
2658
2775
  "type": "BigUint",
2659
- "id": 5
2776
+ "id": 5,
2777
+ "options": {
2778
+ "deprecated": true
2779
+ }
2780
+ },
2781
+ "limit": {
2782
+ "type": "DelegateLimit",
2783
+ "id": 6
2660
2784
  }
2661
2785
  }
2662
2786
  },
@@ -3170,6 +3294,26 @@
3170
3294
  }
3171
3295
  }
3172
3296
  },
3297
+ "DelegateOp": {
3298
+ "fields": {
3299
+ "typeUrl": {
3300
+ "type": "string",
3301
+ "id": 1
3302
+ },
3303
+ "rules": {
3304
+ "rule": "repeated",
3305
+ "type": "string",
3306
+ "id": 2,
3307
+ "options": {
3308
+ "deprecated": true
3309
+ }
3310
+ },
3311
+ "limit": {
3312
+ "type": "DelegateLimit",
3313
+ "id": 3
3314
+ }
3315
+ }
3316
+ },
3173
3317
  "DelegateTx": {
3174
3318
  "fields": {
3175
3319
  "address": {
@@ -3191,19 +3335,6 @@
3191
3335
  }
3192
3336
  }
3193
3337
  },
3194
- "DelegateOp": {
3195
- "fields": {
3196
- "typeUrl": {
3197
- "type": "string",
3198
- "id": 1
3199
- },
3200
- "rules": {
3201
- "rule": "repeated",
3202
- "type": "string",
3203
- "id": 2
3204
- }
3205
- }
3206
- },
3207
3338
  "RevokeDelegateTx": {
3208
3339
  "fields": {
3209
3340
  "address": {
@@ -2740,7 +2740,8 @@ proto.ocap.DelegateOpState.toObject = function(includeInstance, msg) {
2740
2740
  numTxs: jspb.Message.getFieldWithDefault(msg, 2, 0),
2741
2741
  numTxsDelta: jspb.Message.getFieldWithDefault(msg, 3, 0),
2742
2742
  balance: (f = msg.getBalance()) && type_pb.BigUint.toObject(includeInstance, f),
2743
- balanceDelta: (f = msg.getBalanceDelta()) && type_pb.BigUint.toObject(includeInstance, f)
2743
+ balanceDelta: (f = msg.getBalanceDelta()) && type_pb.BigUint.toObject(includeInstance, f),
2744
+ limit: (f = msg.getLimit()) && type_pb.DelegateLimit.toObject(includeInstance, f)
2744
2745
  };
2745
2746
 
2746
2747
  if (includeInstance) {
@@ -2799,6 +2800,11 @@ proto.ocap.DelegateOpState.deserializeBinaryFromReader = function(msg, reader) {
2799
2800
  reader.readMessage(value,type_pb.BigUint.deserializeBinaryFromReader);
2800
2801
  msg.setBalanceDelta(value);
2801
2802
  break;
2803
+ case 6:
2804
+ var value = new type_pb.DelegateLimit;
2805
+ reader.readMessage(value,type_pb.DelegateLimit.deserializeBinaryFromReader);
2806
+ msg.setLimit(value);
2807
+ break;
2802
2808
  default:
2803
2809
  reader.skipField();
2804
2810
  break;
@@ -2865,6 +2871,14 @@ proto.ocap.DelegateOpState.serializeBinaryToWriter = function(message, writer) {
2865
2871
  type_pb.BigUint.serializeBinaryToWriter
2866
2872
  );
2867
2873
  }
2874
+ f = message.getLimit();
2875
+ if (f != null) {
2876
+ writer.writeMessage(
2877
+ 6,
2878
+ f,
2879
+ type_pb.DelegateLimit.serializeBinaryToWriter
2880
+ );
2881
+ }
2868
2882
  };
2869
2883
 
2870
2884
 
@@ -2996,6 +3010,43 @@ proto.ocap.DelegateOpState.prototype.hasBalanceDelta = function() {
2996
3010
  };
2997
3011
 
2998
3012
 
3013
+ /**
3014
+ * optional DelegateLimit limit = 6;
3015
+ * @return {?proto.ocap.DelegateLimit}
3016
+ */
3017
+ proto.ocap.DelegateOpState.prototype.getLimit = function() {
3018
+ return /** @type{?proto.ocap.DelegateLimit} */ (
3019
+ jspb.Message.getWrapperField(this, type_pb.DelegateLimit, 6));
3020
+ };
3021
+
3022
+
3023
+ /**
3024
+ * @param {?proto.ocap.DelegateLimit|undefined} value
3025
+ * @return {!proto.ocap.DelegateOpState} returns this
3026
+ */
3027
+ proto.ocap.DelegateOpState.prototype.setLimit = function(value) {
3028
+ return jspb.Message.setWrapperField(this, 6, value);
3029
+ };
3030
+
3031
+
3032
+ /**
3033
+ * Clears the message field making it undefined.
3034
+ * @return {!proto.ocap.DelegateOpState} returns this
3035
+ */
3036
+ proto.ocap.DelegateOpState.prototype.clearLimit = function() {
3037
+ return this.setLimit(undefined);
3038
+ };
3039
+
3040
+
3041
+ /**
3042
+ * Returns whether this field is set.
3043
+ * @return {boolean}
3044
+ */
3045
+ proto.ocap.DelegateOpState.prototype.hasLimit = function() {
3046
+ return jspb.Message.getField(this, 6) != null;
3047
+ };
3048
+
3049
+
2999
3050
 
3000
3051
 
3001
3052