@ocap/proto 1.21.3 → 1.22.1

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
@@ -1,7 +1,4 @@
1
1
  {
2
- "options": {
3
- "syntax": "proto3"
4
- },
5
2
  "nested": {
6
3
  "ocap": {
7
4
  "nested": {
@@ -532,6 +529,10 @@
532
529
  "delegationFilter": {
533
530
  "type": "DelegationFilter",
534
531
  "id": 13
532
+ },
533
+ "tokenFactoryFilter": {
534
+ "type": "TokenFactoryFilter",
535
+ "id": 14
535
536
  }
536
537
  }
537
538
  },
@@ -1227,6 +1228,59 @@
1227
1228
  }
1228
1229
  }
1229
1230
  },
1231
+ "ResponseGetTokenFactoryState": {
1232
+ "fields": {
1233
+ "code": {
1234
+ "type": "StatusCode",
1235
+ "id": 1
1236
+ },
1237
+ "state": {
1238
+ "type": "TokenFactoryState",
1239
+ "id": 2
1240
+ }
1241
+ }
1242
+ },
1243
+ "RequestListTokenFactories": {
1244
+ "fields": {
1245
+ "paging": {
1246
+ "type": "Page",
1247
+ "id": 1
1248
+ },
1249
+ "owner": {
1250
+ "type": "string",
1251
+ "id": 2
1252
+ },
1253
+ "reserveAddress": {
1254
+ "type": "string",
1255
+ "id": 3
1256
+ },
1257
+ "tokenAddress": {
1258
+ "type": "string",
1259
+ "id": 4
1260
+ },
1261
+ "timeFilter": {
1262
+ "type": "TimeFilter",
1263
+ "id": 5
1264
+ }
1265
+ }
1266
+ },
1267
+ "ResponseListTokenFactories": {
1268
+ "fields": {
1269
+ "code": {
1270
+ "type": "StatusCode",
1271
+ "id": 1
1272
+ },
1273
+ "page": {
1274
+ "type": "PageInfo",
1275
+ "id": 2
1276
+ },
1277
+ "tokenFactories": {
1278
+ "rule": "repeated",
1279
+ "type": "IndexedTokenFactoryState",
1280
+ "id": 3
1281
+ }
1282
+ }
1283
+ },
1230
1284
  "BigUint": {
1231
1285
  "fields": {
1232
1286
  "value": {
@@ -1264,6 +1318,18 @@
1264
1318
  "unit": {
1265
1319
  "type": "string",
1266
1320
  "id": 4
1321
+ },
1322
+ "name": {
1323
+ "type": "string",
1324
+ "id": 5
1325
+ },
1326
+ "description": {
1327
+ "type": "string",
1328
+ "id": 6
1329
+ },
1330
+ "icon": {
1331
+ "type": "string",
1332
+ "id": 7
1267
1333
  }
1268
1334
  }
1269
1335
  },
@@ -2633,6 +2699,30 @@
2633
2699
  }
2634
2700
  }
2635
2701
  },
2702
+ "CurveConfig": {
2703
+ "fields": {
2704
+ "type": {
2705
+ "type": "string",
2706
+ "id": 1
2707
+ },
2708
+ "basePrice": {
2709
+ "type": "string",
2710
+ "id": 2
2711
+ },
2712
+ "slope": {
2713
+ "type": "string",
2714
+ "id": 3
2715
+ },
2716
+ "fixedPrice": {
2717
+ "type": "string",
2718
+ "id": 4
2719
+ },
2720
+ "constant": {
2721
+ "type": "uint32",
2722
+ "id": 5
2723
+ }
2724
+ }
2725
+ },
2636
2726
  "AccountState": {
2637
2727
  "fields": {
2638
2728
  "balance": {
@@ -2959,6 +3049,10 @@
2959
3049
  "type": "ForeignToken",
2960
3050
  "id": 10
2961
3051
  },
3052
+ "tokenFactoryAddress": {
3053
+ "type": "string",
3054
+ "id": 11
3055
+ },
2962
3056
  "context": {
2963
3057
  "type": "StateContext",
2964
3058
  "id": 15
@@ -3371,6 +3465,64 @@
3371
3465
  }
3372
3466
  }
3373
3467
  },
3468
+ "TokenFactoryStatus": {
3469
+ "values": {
3470
+ "TOKEN_FACTORY_ACTIVE": 0,
3471
+ "TOKEN_FACTORY_PAUSED": 1
3472
+ }
3473
+ },
3474
+ "TokenFactoryState": {
3475
+ "fields": {
3476
+ "address": {
3477
+ "type": "string",
3478
+ "id": 1
3479
+ },
3480
+ "ownerAddress": {
3481
+ "type": "string",
3482
+ "id": 2
3483
+ },
3484
+ "tokenAddress": {
3485
+ "type": "string",
3486
+ "id": 3
3487
+ },
3488
+ "reserveAddress": {
3489
+ "type": "string",
3490
+ "id": 4
3491
+ },
3492
+ "curve": {
3493
+ "type": "CurveConfig",
3494
+ "id": 5
3495
+ },
3496
+ "currentSupply": {
3497
+ "type": "string",
3498
+ "id": 6
3499
+ },
3500
+ "reserveBalance": {
3501
+ "type": "string",
3502
+ "id": 7
3503
+ },
3504
+ "feeRate": {
3505
+ "type": "int32",
3506
+ "id": 8
3507
+ },
3508
+ "status": {
3509
+ "type": "TokenFactoryStatus",
3510
+ "id": 9
3511
+ },
3512
+ "token": {
3513
+ "type": "TokenState",
3514
+ "id": 10
3515
+ },
3516
+ "reserveToken": {
3517
+ "type": "TokenState",
3518
+ "id": 11
3519
+ },
3520
+ "context": {
3521
+ "type": "StateContext",
3522
+ "id": 30
3523
+ }
3524
+ }
3525
+ },
3374
3526
  "AccountMigrateTx": {
3375
3527
  "fields": {
3376
3528
  "pk": {
@@ -4538,6 +4690,98 @@
4538
4690
  }
4539
4691
  }
4540
4692
  },
4693
+ "CreateTokenFactoryTx": {
4694
+ "fields": {
4695
+ "address": {
4696
+ "type": "string",
4697
+ "id": 1
4698
+ },
4699
+ "feeRate": {
4700
+ "type": "uint32",
4701
+ "id": 2
4702
+ },
4703
+ "token": {
4704
+ "type": "TokenSymbol",
4705
+ "id": 3
4706
+ },
4707
+ "reserveAddress": {
4708
+ "type": "string",
4709
+ "id": 4
4710
+ },
4711
+ "curve": {
4712
+ "type": "CurveConfig",
4713
+ "id": 5
4714
+ },
4715
+ "data": {
4716
+ "type": "google.protobuf.Any",
4717
+ "id": 50
4718
+ }
4719
+ }
4720
+ },
4721
+ "UpdateTokenFactoryTx": {
4722
+ "fields": {
4723
+ "address": {
4724
+ "type": "string",
4725
+ "id": 1
4726
+ },
4727
+ "feeRate": {
4728
+ "type": "uint32",
4729
+ "id": 2
4730
+ },
4731
+ "data": {
4732
+ "type": "google.protobuf.Any",
4733
+ "id": 50
4734
+ }
4735
+ }
4736
+ },
4737
+ "MintTokenTx": {
4738
+ "fields": {
4739
+ "tokenFactory": {
4740
+ "type": "string",
4741
+ "id": 1
4742
+ },
4743
+ "amount": {
4744
+ "type": "string",
4745
+ "id": 2
4746
+ },
4747
+ "maxReserve": {
4748
+ "type": "string",
4749
+ "id": 3
4750
+ },
4751
+ "receiver": {
4752
+ "type": "string",
4753
+ "id": 4
4754
+ },
4755
+ "data": {
4756
+ "type": "google.protobuf.Any",
4757
+ "id": 50
4758
+ }
4759
+ }
4760
+ },
4761
+ "BurnTokenTx": {
4762
+ "fields": {
4763
+ "tokenFactory": {
4764
+ "type": "string",
4765
+ "id": 1
4766
+ },
4767
+ "amount": {
4768
+ "type": "string",
4769
+ "id": 2
4770
+ },
4771
+ "minReserve": {
4772
+ "type": "string",
4773
+ "id": 3
4774
+ },
4775
+ "receiver": {
4776
+ "type": "string",
4777
+ "id": 4
4778
+ },
4779
+ "data": {
4780
+ "type": "google.protobuf.Any",
4781
+ "id": 50
4782
+ }
4783
+ }
4784
+ },
4541
4785
  "ItxStub": {
4542
4786
  "oneofs": {
4543
4787
  "value": {
@@ -4557,6 +4801,10 @@
4557
4801
  "createToken",
4558
4802
  "depositToken",
4559
4803
  "withdrawToken",
4804
+ "createTokenFactory",
4805
+ "updateTokenFactory",
4806
+ "mintToken",
4807
+ "burnToken",
4560
4808
  "createFactory",
4561
4809
  "acquireAssetV2",
4562
4810
  "acquireAssetV3",
@@ -4641,6 +4889,22 @@
4641
4889
  "type": "WithdrawTokenV2Tx",
4642
4890
  "id": 22
4643
4891
  },
4892
+ "createTokenFactory": {
4893
+ "type": "CreateTokenFactoryTx",
4894
+ "id": 23
4895
+ },
4896
+ "updateTokenFactory": {
4897
+ "type": "UpdateTokenFactoryTx",
4898
+ "id": 24
4899
+ },
4900
+ "mintToken": {
4901
+ "type": "MintTokenTx",
4902
+ "id": 25
4903
+ },
4904
+ "burnToken": {
4905
+ "type": "BurnTokenTx",
4906
+ "id": 26
4907
+ },
4644
4908
  "createFactory": {
4645
4909
  "type": "CreateFactoryTx",
4646
4910
  "id": 30
@@ -4842,6 +5106,15 @@
4842
5106
  }
4843
5107
  }
4844
5108
  },
5109
+ "TokenFactoryFilter": {
5110
+ "fields": {
5111
+ "tokenFactories": {
5112
+ "rule": "repeated",
5113
+ "type": "string",
5114
+ "id": 1
5115
+ }
5116
+ }
5117
+ },
4845
5118
  "TimeFilter": {
4846
5119
  "fields": {
4847
5120
  "startDateTime": {
@@ -5239,6 +5512,70 @@
5239
5512
  "type": "ForeignToken",
5240
5513
  "id": 13
5241
5514
  },
5515
+ "tokenFactoryAddress": {
5516
+ "type": "string",
5517
+ "id": 14
5518
+ },
5519
+ "data": {
5520
+ "type": "google.protobuf.Any",
5521
+ "id": 50
5522
+ }
5523
+ }
5524
+ },
5525
+ "IndexedTokenFactoryState": {
5526
+ "fields": {
5527
+ "address": {
5528
+ "type": "string",
5529
+ "id": 1
5530
+ },
5531
+ "owner": {
5532
+ "type": "string",
5533
+ "id": 2
5534
+ },
5535
+ "tokenAddress": {
5536
+ "type": "string",
5537
+ "id": 3
5538
+ },
5539
+ "reserveAddress": {
5540
+ "type": "string",
5541
+ "id": 4
5542
+ },
5543
+ "curve": {
5544
+ "type": "CurveConfig",
5545
+ "id": 5
5546
+ },
5547
+ "feeRate": {
5548
+ "type": "int32",
5549
+ "id": 6
5550
+ },
5551
+ "currentSupply": {
5552
+ "type": "string",
5553
+ "id": 7
5554
+ },
5555
+ "reserveBalance": {
5556
+ "type": "string",
5557
+ "id": 8
5558
+ },
5559
+ "status": {
5560
+ "type": "string",
5561
+ "id": 9
5562
+ },
5563
+ "genesisTime": {
5564
+ "type": "string",
5565
+ "id": 10
5566
+ },
5567
+ "renaissanceTime": {
5568
+ "type": "string",
5569
+ "id": 11
5570
+ },
5571
+ "token": {
5572
+ "type": "IndexedTokenInput",
5573
+ "id": 12
5574
+ },
5575
+ "reserveToken": {
5576
+ "type": "IndexedTokenInput",
5577
+ "id": 13
5578
+ },
5242
5579
  "data": {
5243
5580
  "type": "google.protobuf.Any",
5244
5581
  "id": 50
@@ -5962,6 +6299,12 @@
5962
6299
  "responseType": "ResponseGetEvidenceState",
5963
6300
  "responseStream": true
5964
6301
  },
6302
+ "getTokenFactoryState": {
6303
+ "requestType": "RequestGetState",
6304
+ "requestStream": true,
6305
+ "responseType": "ResponseGetTokenFactoryState",
6306
+ "responseStream": true
6307
+ },
5965
6308
  "getAccountTokens": {
5966
6309
  "requestType": "RequestGetAccountTokens",
5967
6310
  "requestStream": true,
@@ -5996,6 +6339,10 @@
5996
6339
  "requestType": "RequestListTokens",
5997
6340
  "responseType": "ResponseListTokens"
5998
6341
  },
6342
+ "listTokenFactories": {
6343
+ "requestType": "RequestListTokenFactories",
6344
+ "responseType": "ResponseListTokenFactories"
6345
+ },
5999
6346
  "itxSub": {
6000
6347
  "requestType": "RequestGetConfig",
6001
6348
  "responseType": "ItxStub"