@silvana-one/orderbook 1.1.19 → 1.1.21
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/node/index.cjs +81 -2
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.d.ts +52 -30
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js +1 -1
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/node/proto/silvana/settlement/v1/settlement_pb.d.ts +508 -43
- package/dist/node/proto/silvana/settlement/v1/settlement_pb.js +150 -1
- package/dist/node/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
- package/dist/node/settlement.d.ts +43 -5
- package/dist/node/settlement.js +19 -1
- package/dist/node/settlement.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.d.ts +52 -30
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js +1 -1
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/web/proto/silvana/settlement/v1/settlement_pb.d.ts +508 -43
- package/dist/web/proto/silvana/settlement/v1/settlement_pb.js +150 -1
- package/dist/web/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
- package/dist/web/settlement.d.ts +43 -5
- package/dist/web/settlement.js +19 -1
- package/dist/web/settlement.js.map +1 -1
- package/package.json +1 -1
- package/src/proto/silvana/orderbook/v1/orderbook_pb.ts +59 -34
- package/src/proto/silvana/settlement/v1/settlement_pb.ts +602 -44
- package/src/settlement.ts +61 -4
|
@@ -82,13 +82,13 @@ export declare const SettlementInstrumentSchema: GenMessage<SettlementInstrument
|
|
|
82
82
|
*/
|
|
83
83
|
export type SettlementProposalMessage = Message<"silvana.settlement.v1.SettlementProposalMessage"> & {
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* UUID v7 - single ID used everywhere
|
|
86
86
|
*
|
|
87
|
-
* @generated from field:
|
|
87
|
+
* @generated from field: string proposal_id = 1;
|
|
88
88
|
*/
|
|
89
|
-
proposalId:
|
|
89
|
+
proposalId: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Same as proposal_id for DVP operations
|
|
92
92
|
*
|
|
93
93
|
* @generated from field: string settlement_id = 2;
|
|
94
94
|
*/
|
|
@@ -156,9 +156,11 @@ export declare const SettlementProposalMessageSchema: GenMessage<SettlementPropo
|
|
|
156
156
|
*/
|
|
157
157
|
export type PreconfirmationRequest = Message<"silvana.settlement.v1.PreconfirmationRequest"> & {
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* UUID v7
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: string proposal_id = 1;
|
|
160
162
|
*/
|
|
161
|
-
proposalId:
|
|
163
|
+
proposalId: string;
|
|
162
164
|
/**
|
|
163
165
|
* @generated from field: string settlement_id = 2;
|
|
164
166
|
*/
|
|
@@ -198,9 +200,11 @@ export declare const PreconfirmationRequestSchema: GenMessage<PreconfirmationReq
|
|
|
198
200
|
*/
|
|
199
201
|
export type PreconfirmationDecision = Message<"silvana.settlement.v1.PreconfirmationDecision"> & {
|
|
200
202
|
/**
|
|
201
|
-
*
|
|
203
|
+
* UUID v7
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: string proposal_id = 1;
|
|
202
206
|
*/
|
|
203
|
-
proposalId:
|
|
207
|
+
proposalId: string;
|
|
204
208
|
/**
|
|
205
209
|
* @generated from field: string settlement_id = 2;
|
|
206
210
|
*/
|
|
@@ -242,9 +246,11 @@ export declare const PreconfirmationDecisionSchema: GenMessage<PreconfirmationDe
|
|
|
242
246
|
*/
|
|
243
247
|
export type DvpContractCreated = Message<"silvana.settlement.v1.DvpContractCreated"> & {
|
|
244
248
|
/**
|
|
245
|
-
*
|
|
249
|
+
* UUID v7
|
|
250
|
+
*
|
|
251
|
+
* @generated from field: string proposal_id = 1;
|
|
246
252
|
*/
|
|
247
|
-
proposalId:
|
|
253
|
+
proposalId: string;
|
|
248
254
|
/**
|
|
249
255
|
* @generated from field: string settlement_id = 2;
|
|
250
256
|
*/
|
|
@@ -290,9 +296,11 @@ export declare const DvpContractCreatedSchema: GenMessage<DvpContractCreated>;
|
|
|
290
296
|
*/
|
|
291
297
|
export type DvpContractAccepted = Message<"silvana.settlement.v1.DvpContractAccepted"> & {
|
|
292
298
|
/**
|
|
293
|
-
*
|
|
299
|
+
* UUID v7
|
|
300
|
+
*
|
|
301
|
+
* @generated from field: string proposal_id = 1;
|
|
294
302
|
*/
|
|
295
|
-
proposalId:
|
|
303
|
+
proposalId: string;
|
|
296
304
|
/**
|
|
297
305
|
* @generated from field: string settlement_id = 2;
|
|
298
306
|
*/
|
|
@@ -332,9 +340,11 @@ export declare const DvpContractAcceptedSchema: GenMessage<DvpContractAccepted>;
|
|
|
332
340
|
*/
|
|
333
341
|
export type AllocationStatus = Message<"silvana.settlement.v1.AllocationStatus"> & {
|
|
334
342
|
/**
|
|
335
|
-
*
|
|
343
|
+
* UUID v7
|
|
344
|
+
*
|
|
345
|
+
* @generated from field: string proposal_id = 1;
|
|
336
346
|
*/
|
|
337
|
-
proposalId:
|
|
347
|
+
proposalId: string;
|
|
338
348
|
/**
|
|
339
349
|
* @generated from field: string settlement_id = 2;
|
|
340
350
|
*/
|
|
@@ -394,9 +404,11 @@ export declare const AllocationStatusSchema: GenMessage<AllocationStatus>;
|
|
|
394
404
|
*/
|
|
395
405
|
export type SettlementExecutionStatus = Message<"silvana.settlement.v1.SettlementExecutionStatus"> & {
|
|
396
406
|
/**
|
|
397
|
-
*
|
|
407
|
+
* UUID v7
|
|
408
|
+
*
|
|
409
|
+
* @generated from field: string proposal_id = 1;
|
|
398
410
|
*/
|
|
399
|
-
proposalId:
|
|
411
|
+
proposalId: string;
|
|
400
412
|
/**
|
|
401
413
|
* @generated from field: string settlement_id = 2;
|
|
402
414
|
*/
|
|
@@ -760,9 +772,11 @@ export declare const CantonToServerMessageSchema: GenMessage<CantonToServerMessa
|
|
|
760
772
|
*/
|
|
761
773
|
export type DvpCreationReport = Message<"silvana.settlement.v1.DvpCreationReport"> & {
|
|
762
774
|
/**
|
|
763
|
-
*
|
|
775
|
+
* UUID v7
|
|
776
|
+
*
|
|
777
|
+
* @generated from field: string proposal_id = 1;
|
|
764
778
|
*/
|
|
765
|
-
proposalId:
|
|
779
|
+
proposalId: string;
|
|
766
780
|
/**
|
|
767
781
|
* @generated from field: string settlement_id = 2;
|
|
768
782
|
*/
|
|
@@ -800,9 +814,11 @@ export declare const DvpCreationReportSchema: GenMessage<DvpCreationReport>;
|
|
|
800
814
|
*/
|
|
801
815
|
export type DvpAcceptanceReport = Message<"silvana.settlement.v1.DvpAcceptanceReport"> & {
|
|
802
816
|
/**
|
|
803
|
-
*
|
|
817
|
+
* UUID v7
|
|
818
|
+
*
|
|
819
|
+
* @generated from field: string proposal_id = 1;
|
|
804
820
|
*/
|
|
805
|
-
proposalId:
|
|
821
|
+
proposalId: string;
|
|
806
822
|
/**
|
|
807
823
|
* @generated from field: string settlement_id = 2;
|
|
808
824
|
*/
|
|
@@ -840,9 +856,11 @@ export declare const DvpAcceptanceReportSchema: GenMessage<DvpAcceptanceReport>;
|
|
|
840
856
|
*/
|
|
841
857
|
export type AllocationReport = Message<"silvana.settlement.v1.AllocationReport"> & {
|
|
842
858
|
/**
|
|
843
|
-
*
|
|
859
|
+
* UUID v7
|
|
860
|
+
*
|
|
861
|
+
* @generated from field: string proposal_id = 1;
|
|
844
862
|
*/
|
|
845
|
-
proposalId:
|
|
863
|
+
proposalId: string;
|
|
846
864
|
/**
|
|
847
865
|
* @generated from field: string settlement_id = 2;
|
|
848
866
|
*/
|
|
@@ -890,9 +908,11 @@ export declare const AllocationReportSchema: GenMessage<AllocationReport>;
|
|
|
890
908
|
*/
|
|
891
909
|
export type SettlementReport = Message<"silvana.settlement.v1.SettlementReport"> & {
|
|
892
910
|
/**
|
|
893
|
-
*
|
|
911
|
+
* UUID v7
|
|
912
|
+
*
|
|
913
|
+
* @generated from field: string proposal_id = 1;
|
|
894
914
|
*/
|
|
895
|
-
proposalId:
|
|
915
|
+
proposalId: string;
|
|
896
916
|
/**
|
|
897
917
|
* @generated from field: string settlement_id = 2;
|
|
898
918
|
*/
|
|
@@ -940,9 +960,11 @@ export declare const SettlementReportSchema: GenMessage<SettlementReport>;
|
|
|
940
960
|
*/
|
|
941
961
|
export type ErrorReport = Message<"silvana.settlement.v1.ErrorReport"> & {
|
|
942
962
|
/**
|
|
943
|
-
*
|
|
963
|
+
* UUID v7
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: string proposal_id = 1;
|
|
944
966
|
*/
|
|
945
|
-
proposalId:
|
|
967
|
+
proposalId: string;
|
|
946
968
|
/**
|
|
947
969
|
* @generated from field: string settlement_id = 2;
|
|
948
970
|
*/
|
|
@@ -980,9 +1002,11 @@ export declare const ErrorReportSchema: GenMessage<ErrorReport>;
|
|
|
980
1002
|
*/
|
|
981
1003
|
export type StatusUpdate = Message<"silvana.settlement.v1.StatusUpdate"> & {
|
|
982
1004
|
/**
|
|
983
|
-
*
|
|
1005
|
+
* UUID v7
|
|
1006
|
+
*
|
|
1007
|
+
* @generated from field: string proposal_id = 1;
|
|
984
1008
|
*/
|
|
985
|
-
proposalId:
|
|
1009
|
+
proposalId: string;
|
|
986
1010
|
/**
|
|
987
1011
|
* @generated from field: string settlement_id = 2;
|
|
988
1012
|
*/
|
|
@@ -1022,9 +1046,11 @@ export type SettlementCommand = Message<"silvana.settlement.v1.SettlementCommand
|
|
|
1022
1046
|
*/
|
|
1023
1047
|
commandType: SettlementCommand_CommandType;
|
|
1024
1048
|
/**
|
|
1025
|
-
*
|
|
1049
|
+
* UUID v7
|
|
1050
|
+
*
|
|
1051
|
+
* @generated from field: string proposal_id = 2;
|
|
1026
1052
|
*/
|
|
1027
|
-
proposalId:
|
|
1053
|
+
proposalId: string;
|
|
1028
1054
|
/**
|
|
1029
1055
|
* @generated from field: string settlement_id = 3;
|
|
1030
1056
|
*/
|
|
@@ -1238,9 +1264,11 @@ export declare const GetSettlementStatusRequestSchema: GenMessage<GetSettlementS
|
|
|
1238
1264
|
*/
|
|
1239
1265
|
export type GetSettlementStatusResponse = Message<"silvana.settlement.v1.GetSettlementStatusResponse"> & {
|
|
1240
1266
|
/**
|
|
1241
|
-
*
|
|
1267
|
+
* UUID v7
|
|
1268
|
+
*
|
|
1269
|
+
* @generated from field: string proposal_id = 1;
|
|
1242
1270
|
*/
|
|
1243
|
-
proposalId:
|
|
1271
|
+
proposalId: string;
|
|
1244
1272
|
/**
|
|
1245
1273
|
* @generated from field: string settlement_id = 2;
|
|
1246
1274
|
*/
|
|
@@ -1312,9 +1340,11 @@ export type UpdateSettlementProposalRequest = Message<"silvana.settlement.v1.Upd
|
|
|
1312
1340
|
*/
|
|
1313
1341
|
auth?: CantonNodeAuth;
|
|
1314
1342
|
/**
|
|
1315
|
-
*
|
|
1343
|
+
* UUID v7
|
|
1344
|
+
*
|
|
1345
|
+
* @generated from field: string proposal_id = 2;
|
|
1316
1346
|
*/
|
|
1317
|
-
proposalId:
|
|
1347
|
+
proposalId: string;
|
|
1318
1348
|
/**
|
|
1319
1349
|
* For optimistic locking - must match current version
|
|
1320
1350
|
*
|
|
@@ -1463,9 +1493,11 @@ export type SaveDisclosedContractRequest = Message<"silvana.settlement.v1.SaveDi
|
|
|
1463
1493
|
*/
|
|
1464
1494
|
auth?: CantonNodeAuth;
|
|
1465
1495
|
/**
|
|
1466
|
-
*
|
|
1496
|
+
* UUID v7
|
|
1497
|
+
*
|
|
1498
|
+
* @generated from field: string proposal_id = 2;
|
|
1467
1499
|
*/
|
|
1468
|
-
proposalId:
|
|
1500
|
+
proposalId: string;
|
|
1469
1501
|
/**
|
|
1470
1502
|
* @generated from field: silvana.settlement.v1.DisclosedContractMessage contract = 3;
|
|
1471
1503
|
*/
|
|
@@ -1507,9 +1539,11 @@ export type GetDisclosedContractsRequest = Message<"silvana.settlement.v1.GetDis
|
|
|
1507
1539
|
*/
|
|
1508
1540
|
auth?: CantonNodeAuth;
|
|
1509
1541
|
/**
|
|
1510
|
-
*
|
|
1542
|
+
* UUID v7
|
|
1543
|
+
*
|
|
1544
|
+
* @generated from field: string proposal_id = 2;
|
|
1511
1545
|
*/
|
|
1512
|
-
proposalId:
|
|
1546
|
+
proposalId: string;
|
|
1513
1547
|
/**
|
|
1514
1548
|
* "buyer" or "seller", omit for all (operator only)
|
|
1515
1549
|
*
|
|
@@ -1550,9 +1584,11 @@ export type RecordSettlementRequest = Message<"silvana.settlement.v1.RecordSettl
|
|
|
1550
1584
|
*/
|
|
1551
1585
|
auth?: CantonNodeAuth;
|
|
1552
1586
|
/**
|
|
1553
|
-
*
|
|
1587
|
+
* UUID v7
|
|
1588
|
+
*
|
|
1589
|
+
* @generated from field: string proposal_id = 2;
|
|
1554
1590
|
*/
|
|
1555
|
-
proposalId:
|
|
1591
|
+
proposalId: string;
|
|
1556
1592
|
/**
|
|
1557
1593
|
* SettledDvp contract ID from Canton
|
|
1558
1594
|
*
|
|
@@ -1592,17 +1628,305 @@ export type RecordSettlementResponse = Message<"silvana.settlement.v1.RecordSett
|
|
|
1592
1628
|
*/
|
|
1593
1629
|
message: string;
|
|
1594
1630
|
/**
|
|
1595
|
-
*
|
|
1631
|
+
* UUID v7 - The proposal_id used as settlement ID
|
|
1596
1632
|
*
|
|
1597
|
-
* @generated from field:
|
|
1633
|
+
* @generated from field: string settlement_id = 3;
|
|
1598
1634
|
*/
|
|
1599
|
-
settlementId:
|
|
1635
|
+
settlementId: string;
|
|
1600
1636
|
};
|
|
1601
1637
|
/**
|
|
1602
1638
|
* Describes the message silvana.settlement.v1.RecordSettlementResponse.
|
|
1603
1639
|
* Use `create(RecordSettlementResponseSchema)` to create a new message.
|
|
1604
1640
|
*/
|
|
1605
1641
|
export declare const RecordSettlementResponseSchema: GenMessage<RecordSettlementResponse>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Record a transaction in history
|
|
1644
|
+
*
|
|
1645
|
+
* @generated from message silvana.settlement.v1.RecordTransactionRequest
|
|
1646
|
+
*/
|
|
1647
|
+
export type RecordTransactionRequest = Message<"silvana.settlement.v1.RecordTransactionRequest"> & {
|
|
1648
|
+
/**
|
|
1649
|
+
* @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
|
|
1650
|
+
*/
|
|
1651
|
+
auth?: CantonNodeAuth;
|
|
1652
|
+
/**
|
|
1653
|
+
* @generated from field: silvana.settlement.v1.TransactionType tx_type = 2;
|
|
1654
|
+
*/
|
|
1655
|
+
txType: TransactionType;
|
|
1656
|
+
/**
|
|
1657
|
+
* @generated from field: string sender_party = 3;
|
|
1658
|
+
*/
|
|
1659
|
+
senderParty: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* @generated from field: silvana.settlement.v1.SenderType sender_type = 4;
|
|
1662
|
+
*/
|
|
1663
|
+
senderType: SenderType;
|
|
1664
|
+
/**
|
|
1665
|
+
* Optional Canton IDs
|
|
1666
|
+
*
|
|
1667
|
+
* @generated from field: optional string update_id = 5;
|
|
1668
|
+
*/
|
|
1669
|
+
updateId?: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* @generated from field: optional string submission_id = 6;
|
|
1672
|
+
*/
|
|
1673
|
+
submissionId?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* @generated from field: optional string settlement_proposal_id = 7;
|
|
1676
|
+
*/
|
|
1677
|
+
settlementProposalId?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* Transaction context
|
|
1680
|
+
*
|
|
1681
|
+
* @generated from field: optional string market_id = 8;
|
|
1682
|
+
*/
|
|
1683
|
+
marketId?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* @generated from field: optional string counterparty = 9;
|
|
1686
|
+
*/
|
|
1687
|
+
counterparty?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* Contract references
|
|
1690
|
+
*
|
|
1691
|
+
* @generated from field: optional string contract_id = 10;
|
|
1692
|
+
*/
|
|
1693
|
+
contractId?: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* @generated from field: optional string choice_name = 11;
|
|
1696
|
+
*/
|
|
1697
|
+
choiceName?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Financial data
|
|
1700
|
+
*
|
|
1701
|
+
* DECIMAL(38,10) as string
|
|
1702
|
+
*
|
|
1703
|
+
* @generated from field: optional string amount = 12;
|
|
1704
|
+
*/
|
|
1705
|
+
amount?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* @generated from field: optional string rewards_amount = 13;
|
|
1708
|
+
*/
|
|
1709
|
+
rewardsAmount?: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* @generated from field: optional uint64 rewards_round = 14;
|
|
1712
|
+
*/
|
|
1713
|
+
rewardsRound?: bigint;
|
|
1714
|
+
/**
|
|
1715
|
+
* @generated from field: optional uint64 traffic_request = 15;
|
|
1716
|
+
*/
|
|
1717
|
+
trafficRequest?: bigint;
|
|
1718
|
+
/**
|
|
1719
|
+
* @generated from field: optional uint64 traffic_response = 16;
|
|
1720
|
+
*/
|
|
1721
|
+
trafficResponse?: bigint;
|
|
1722
|
+
/**
|
|
1723
|
+
* @generated from field: optional uint64 traffic_total = 17;
|
|
1724
|
+
*/
|
|
1725
|
+
trafficTotal?: bigint;
|
|
1726
|
+
/**
|
|
1727
|
+
* @generated from field: optional uint64 activity_marker_created = 18;
|
|
1728
|
+
*/
|
|
1729
|
+
activityMarkerCreated?: bigint;
|
|
1730
|
+
/**
|
|
1731
|
+
* Result
|
|
1732
|
+
*
|
|
1733
|
+
* @generated from field: silvana.settlement.v1.TransactionResult result = 19;
|
|
1734
|
+
*/
|
|
1735
|
+
result: TransactionResult;
|
|
1736
|
+
/**
|
|
1737
|
+
* @generated from field: optional string error_message = 20;
|
|
1738
|
+
*/
|
|
1739
|
+
errorMessage?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* @generated from field: optional google.protobuf.Struct metadata = 21;
|
|
1742
|
+
*/
|
|
1743
|
+
metadata?: JsonObject;
|
|
1744
|
+
};
|
|
1745
|
+
/**
|
|
1746
|
+
* Describes the message silvana.settlement.v1.RecordTransactionRequest.
|
|
1747
|
+
* Use `create(RecordTransactionRequestSchema)` to create a new message.
|
|
1748
|
+
*/
|
|
1749
|
+
export declare const RecordTransactionRequestSchema: GenMessage<RecordTransactionRequest>;
|
|
1750
|
+
/**
|
|
1751
|
+
* @generated from message silvana.settlement.v1.RecordTransactionResponse
|
|
1752
|
+
*/
|
|
1753
|
+
export type RecordTransactionResponse = Message<"silvana.settlement.v1.RecordTransactionResponse"> & {
|
|
1754
|
+
/**
|
|
1755
|
+
* @generated from field: bool success = 1;
|
|
1756
|
+
*/
|
|
1757
|
+
success: boolean;
|
|
1758
|
+
/**
|
|
1759
|
+
* @generated from field: string message = 2;
|
|
1760
|
+
*/
|
|
1761
|
+
message: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* Auto-generated ID
|
|
1764
|
+
*
|
|
1765
|
+
* @generated from field: uint64 transaction_id = 3;
|
|
1766
|
+
*/
|
|
1767
|
+
transactionId: bigint;
|
|
1768
|
+
};
|
|
1769
|
+
/**
|
|
1770
|
+
* Describes the message silvana.settlement.v1.RecordTransactionResponse.
|
|
1771
|
+
* Use `create(RecordTransactionResponseSchema)` to create a new message.
|
|
1772
|
+
*/
|
|
1773
|
+
export declare const RecordTransactionResponseSchema: GenMessage<RecordTransactionResponse>;
|
|
1774
|
+
/**
|
|
1775
|
+
* Get transaction history
|
|
1776
|
+
*
|
|
1777
|
+
* @generated from message silvana.settlement.v1.GetTransactionHistoryRequest
|
|
1778
|
+
*/
|
|
1779
|
+
export type GetTransactionHistoryRequest = Message<"silvana.settlement.v1.GetTransactionHistoryRequest"> & {
|
|
1780
|
+
/**
|
|
1781
|
+
* @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
|
|
1782
|
+
*/
|
|
1783
|
+
auth?: CantonNodeAuth;
|
|
1784
|
+
/**
|
|
1785
|
+
* @generated from field: optional string sender_party = 2;
|
|
1786
|
+
*/
|
|
1787
|
+
senderParty?: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* @generated from field: optional silvana.settlement.v1.TransactionType tx_type = 3;
|
|
1790
|
+
*/
|
|
1791
|
+
txType?: TransactionType;
|
|
1792
|
+
/**
|
|
1793
|
+
* @generated from field: optional string settlement_proposal_id = 4;
|
|
1794
|
+
*/
|
|
1795
|
+
settlementProposalId?: string;
|
|
1796
|
+
/**
|
|
1797
|
+
* @generated from field: optional silvana.settlement.v1.TransactionResult result = 5;
|
|
1798
|
+
*/
|
|
1799
|
+
result?: TransactionResult;
|
|
1800
|
+
/**
|
|
1801
|
+
* @generated from field: optional uint32 limit = 6;
|
|
1802
|
+
*/
|
|
1803
|
+
limit?: number;
|
|
1804
|
+
/**
|
|
1805
|
+
* @generated from field: optional uint32 offset = 7;
|
|
1806
|
+
*/
|
|
1807
|
+
offset?: number;
|
|
1808
|
+
};
|
|
1809
|
+
/**
|
|
1810
|
+
* Describes the message silvana.settlement.v1.GetTransactionHistoryRequest.
|
|
1811
|
+
* Use `create(GetTransactionHistoryRequestSchema)` to create a new message.
|
|
1812
|
+
*/
|
|
1813
|
+
export declare const GetTransactionHistoryRequestSchema: GenMessage<GetTransactionHistoryRequest>;
|
|
1814
|
+
/**
|
|
1815
|
+
* @generated from message silvana.settlement.v1.GetTransactionHistoryResponse
|
|
1816
|
+
*/
|
|
1817
|
+
export type GetTransactionHistoryResponse = Message<"silvana.settlement.v1.GetTransactionHistoryResponse"> & {
|
|
1818
|
+
/**
|
|
1819
|
+
* @generated from field: repeated silvana.settlement.v1.TransactionHistoryEntry transactions = 1;
|
|
1820
|
+
*/
|
|
1821
|
+
transactions: TransactionHistoryEntry[];
|
|
1822
|
+
/**
|
|
1823
|
+
* @generated from field: uint32 total = 2;
|
|
1824
|
+
*/
|
|
1825
|
+
total: number;
|
|
1826
|
+
};
|
|
1827
|
+
/**
|
|
1828
|
+
* Describes the message silvana.settlement.v1.GetTransactionHistoryResponse.
|
|
1829
|
+
* Use `create(GetTransactionHistoryResponseSchema)` to create a new message.
|
|
1830
|
+
*/
|
|
1831
|
+
export declare const GetTransactionHistoryResponseSchema: GenMessage<GetTransactionHistoryResponse>;
|
|
1832
|
+
/**
|
|
1833
|
+
* @generated from message silvana.settlement.v1.TransactionHistoryEntry
|
|
1834
|
+
*/
|
|
1835
|
+
export type TransactionHistoryEntry = Message<"silvana.settlement.v1.TransactionHistoryEntry"> & {
|
|
1836
|
+
/**
|
|
1837
|
+
* @generated from field: uint64 id = 1;
|
|
1838
|
+
*/
|
|
1839
|
+
id: bigint;
|
|
1840
|
+
/**
|
|
1841
|
+
* @generated from field: silvana.settlement.v1.TransactionType tx_type = 2;
|
|
1842
|
+
*/
|
|
1843
|
+
txType: TransactionType;
|
|
1844
|
+
/**
|
|
1845
|
+
* @generated from field: string sender_party = 3;
|
|
1846
|
+
*/
|
|
1847
|
+
senderParty: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* @generated from field: silvana.settlement.v1.SenderType sender_type = 4;
|
|
1850
|
+
*/
|
|
1851
|
+
senderType: SenderType;
|
|
1852
|
+
/**
|
|
1853
|
+
* @generated from field: optional string update_id = 5;
|
|
1854
|
+
*/
|
|
1855
|
+
updateId?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* @generated from field: optional string submission_id = 6;
|
|
1858
|
+
*/
|
|
1859
|
+
submissionId?: string;
|
|
1860
|
+
/**
|
|
1861
|
+
* @generated from field: optional string settlement_proposal_id = 7;
|
|
1862
|
+
*/
|
|
1863
|
+
settlementProposalId?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* @generated from field: optional string market_id = 8;
|
|
1866
|
+
*/
|
|
1867
|
+
marketId?: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* @generated from field: optional string counterparty = 9;
|
|
1870
|
+
*/
|
|
1871
|
+
counterparty?: string;
|
|
1872
|
+
/**
|
|
1873
|
+
* @generated from field: optional string contract_id = 10;
|
|
1874
|
+
*/
|
|
1875
|
+
contractId?: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* @generated from field: optional string choice_name = 11;
|
|
1878
|
+
*/
|
|
1879
|
+
choiceName?: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* @generated from field: optional string amount = 12;
|
|
1882
|
+
*/
|
|
1883
|
+
amount?: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* @generated from field: optional string rewards_amount = 13;
|
|
1886
|
+
*/
|
|
1887
|
+
rewardsAmount?: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* @generated from field: optional uint64 rewards_round = 14;
|
|
1890
|
+
*/
|
|
1891
|
+
rewardsRound?: bigint;
|
|
1892
|
+
/**
|
|
1893
|
+
* @generated from field: optional uint64 traffic_request = 15;
|
|
1894
|
+
*/
|
|
1895
|
+
trafficRequest?: bigint;
|
|
1896
|
+
/**
|
|
1897
|
+
* @generated from field: optional uint64 traffic_response = 16;
|
|
1898
|
+
*/
|
|
1899
|
+
trafficResponse?: bigint;
|
|
1900
|
+
/**
|
|
1901
|
+
* @generated from field: optional uint64 traffic_total = 17;
|
|
1902
|
+
*/
|
|
1903
|
+
trafficTotal?: bigint;
|
|
1904
|
+
/**
|
|
1905
|
+
* @generated from field: optional uint64 activity_marker_created = 18;
|
|
1906
|
+
*/
|
|
1907
|
+
activityMarkerCreated?: bigint;
|
|
1908
|
+
/**
|
|
1909
|
+
* @generated from field: silvana.settlement.v1.TransactionResult result = 19;
|
|
1910
|
+
*/
|
|
1911
|
+
result: TransactionResult;
|
|
1912
|
+
/**
|
|
1913
|
+
* @generated from field: optional string error_message = 20;
|
|
1914
|
+
*/
|
|
1915
|
+
errorMessage?: string;
|
|
1916
|
+
/**
|
|
1917
|
+
* @generated from field: optional google.protobuf.Struct metadata = 21;
|
|
1918
|
+
*/
|
|
1919
|
+
metadata?: JsonObject;
|
|
1920
|
+
/**
|
|
1921
|
+
* @generated from field: google.protobuf.Timestamp created_at = 22;
|
|
1922
|
+
*/
|
|
1923
|
+
createdAt?: Timestamp;
|
|
1924
|
+
};
|
|
1925
|
+
/**
|
|
1926
|
+
* Describes the message silvana.settlement.v1.TransactionHistoryEntry.
|
|
1927
|
+
* Use `create(TransactionHistoryEntrySchema)` to create a new message.
|
|
1928
|
+
*/
|
|
1929
|
+
export declare const TransactionHistoryEntrySchema: GenMessage<TransactionHistoryEntry>;
|
|
1606
1930
|
/**
|
|
1607
1931
|
* DVP settlement stage enumeration
|
|
1608
1932
|
*
|
|
@@ -1720,6 +2044,127 @@ export declare enum PartyRole {
|
|
|
1720
2044
|
* Describes the enum silvana.settlement.v1.PartyRole.
|
|
1721
2045
|
*/
|
|
1722
2046
|
export declare const PartyRoleSchema: GenEnum<PartyRole>;
|
|
2047
|
+
/**
|
|
2048
|
+
* Transaction type for history tracking
|
|
2049
|
+
*
|
|
2050
|
+
* @generated from enum silvana.settlement.v1.TransactionType
|
|
2051
|
+
*/
|
|
2052
|
+
export declare enum TransactionType {
|
|
2053
|
+
/**
|
|
2054
|
+
* @generated from enum value: TRANSACTION_TYPE_UNSPECIFIED = 0;
|
|
2055
|
+
*/
|
|
2056
|
+
UNSPECIFIED = 0,
|
|
2057
|
+
/**
|
|
2058
|
+
* @generated from enum value: TRANSACTION_TYPE_USER_SERVICE_REQUEST = 1;
|
|
2059
|
+
*/
|
|
2060
|
+
USER_SERVICE_REQUEST = 1,
|
|
2061
|
+
/**
|
|
2062
|
+
* @generated from enum value: TRANSACTION_TYPE_USER_SERVICE_REQUEST_ACCEPT = 2;
|
|
2063
|
+
*/
|
|
2064
|
+
USER_SERVICE_REQUEST_ACCEPT = 2,
|
|
2065
|
+
/**
|
|
2066
|
+
* @generated from enum value: TRANSACTION_TYPE_USER_SERVICE_CANCEL = 3;
|
|
2067
|
+
*/
|
|
2068
|
+
USER_SERVICE_CANCEL = 3,
|
|
2069
|
+
/**
|
|
2070
|
+
* @generated from enum value: TRANSACTION_TYPE_DVP_PROPOSE = 4;
|
|
2071
|
+
*/
|
|
2072
|
+
DVP_PROPOSE = 4,
|
|
2073
|
+
/**
|
|
2074
|
+
* @generated from enum value: TRANSACTION_TYPE_DVP_ACCEPT = 5;
|
|
2075
|
+
*/
|
|
2076
|
+
DVP_ACCEPT = 5,
|
|
2077
|
+
/**
|
|
2078
|
+
* @generated from enum value: TRANSACTION_TYPE_DVP_CANCEL = 6;
|
|
2079
|
+
*/
|
|
2080
|
+
DVP_CANCEL = 6,
|
|
2081
|
+
/**
|
|
2082
|
+
* @generated from enum value: TRANSACTION_TYPE_DVP_SETTLE = 7;
|
|
2083
|
+
*/
|
|
2084
|
+
DVP_SETTLE = 7,
|
|
2085
|
+
/**
|
|
2086
|
+
* @generated from enum value: TRANSACTION_TYPE_ALLOCATE = 8;
|
|
2087
|
+
*/
|
|
2088
|
+
ALLOCATE = 8,
|
|
2089
|
+
/**
|
|
2090
|
+
* @generated from enum value: TRANSACTION_TYPE_ALLOCATE_CANCEL = 9;
|
|
2091
|
+
*/
|
|
2092
|
+
ALLOCATE_CANCEL = 9,
|
|
2093
|
+
/**
|
|
2094
|
+
* @generated from enum value: TRANSACTION_TYPE_FEE_TRANSFER = 10;
|
|
2095
|
+
*/
|
|
2096
|
+
FEE_TRANSFER = 10,
|
|
2097
|
+
/**
|
|
2098
|
+
* @generated from enum value: TRANSACTION_TYPE_MERGE = 11;
|
|
2099
|
+
*/
|
|
2100
|
+
MERGE = 11,
|
|
2101
|
+
/**
|
|
2102
|
+
* @generated from enum value: TRANSACTION_TYPE_UNLOCK = 12;
|
|
2103
|
+
*/
|
|
2104
|
+
UNLOCK = 12
|
|
2105
|
+
}
|
|
2106
|
+
/**
|
|
2107
|
+
* Describes the enum silvana.settlement.v1.TransactionType.
|
|
2108
|
+
*/
|
|
2109
|
+
export declare const TransactionTypeSchema: GenEnum<TransactionType>;
|
|
2110
|
+
/**
|
|
2111
|
+
* Sender type for transaction history
|
|
2112
|
+
*
|
|
2113
|
+
* @generated from enum silvana.settlement.v1.SenderType
|
|
2114
|
+
*/
|
|
2115
|
+
export declare enum SenderType {
|
|
2116
|
+
/**
|
|
2117
|
+
* @generated from enum value: SENDER_TYPE_UNSPECIFIED = 0;
|
|
2118
|
+
*/
|
|
2119
|
+
UNSPECIFIED = 0,
|
|
2120
|
+
/**
|
|
2121
|
+
* @generated from enum value: SENDER_TYPE_OPERATOR = 1;
|
|
2122
|
+
*/
|
|
2123
|
+
OPERATOR = 1,
|
|
2124
|
+
/**
|
|
2125
|
+
* @generated from enum value: SENDER_TYPE_USER = 2;
|
|
2126
|
+
*/
|
|
2127
|
+
USER = 2,
|
|
2128
|
+
/**
|
|
2129
|
+
* @generated from enum value: SENDER_TYPE_BUYER = 3;
|
|
2130
|
+
*/
|
|
2131
|
+
BUYER = 3,
|
|
2132
|
+
/**
|
|
2133
|
+
* @generated from enum value: SENDER_TYPE_SELLER = 4;
|
|
2134
|
+
*/
|
|
2135
|
+
SELLER = 4
|
|
2136
|
+
}
|
|
2137
|
+
/**
|
|
2138
|
+
* Describes the enum silvana.settlement.v1.SenderType.
|
|
2139
|
+
*/
|
|
2140
|
+
export declare const SenderTypeSchema: GenEnum<SenderType>;
|
|
2141
|
+
/**
|
|
2142
|
+
* Transaction result
|
|
2143
|
+
*
|
|
2144
|
+
* @generated from enum silvana.settlement.v1.TransactionResult
|
|
2145
|
+
*/
|
|
2146
|
+
export declare enum TransactionResult {
|
|
2147
|
+
/**
|
|
2148
|
+
* @generated from enum value: TRANSACTION_RESULT_UNSPECIFIED = 0;
|
|
2149
|
+
*/
|
|
2150
|
+
UNSPECIFIED = 0,
|
|
2151
|
+
/**
|
|
2152
|
+
* @generated from enum value: TRANSACTION_RESULT_PENDING = 1;
|
|
2153
|
+
*/
|
|
2154
|
+
PENDING = 1,
|
|
2155
|
+
/**
|
|
2156
|
+
* @generated from enum value: TRANSACTION_RESULT_SUCCESS = 2;
|
|
2157
|
+
*/
|
|
2158
|
+
SUCCESS = 2,
|
|
2159
|
+
/**
|
|
2160
|
+
* @generated from enum value: TRANSACTION_RESULT_FAILED = 3;
|
|
2161
|
+
*/
|
|
2162
|
+
FAILED = 3
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* Describes the enum silvana.settlement.v1.TransactionResult.
|
|
2166
|
+
*/
|
|
2167
|
+
export declare const TransactionResultSchema: GenEnum<TransactionResult>;
|
|
1723
2168
|
/**
|
|
1724
2169
|
* @generated from service silvana.settlement.v1.SettlementService
|
|
1725
2170
|
*/
|
|
@@ -1805,4 +2250,24 @@ export declare const SettlementService: GenService<{
|
|
|
1805
2250
|
input: typeof RecordSettlementRequestSchema;
|
|
1806
2251
|
output: typeof RecordSettlementResponseSchema;
|
|
1807
2252
|
};
|
|
2253
|
+
/**
|
|
2254
|
+
* Record a transaction in history
|
|
2255
|
+
*
|
|
2256
|
+
* @generated from rpc silvana.settlement.v1.SettlementService.RecordTransaction
|
|
2257
|
+
*/
|
|
2258
|
+
recordTransaction: {
|
|
2259
|
+
methodKind: "unary";
|
|
2260
|
+
input: typeof RecordTransactionRequestSchema;
|
|
2261
|
+
output: typeof RecordTransactionResponseSchema;
|
|
2262
|
+
};
|
|
2263
|
+
/**
|
|
2264
|
+
* Get transaction history
|
|
2265
|
+
*
|
|
2266
|
+
* @generated from rpc silvana.settlement.v1.SettlementService.GetTransactionHistory
|
|
2267
|
+
*/
|
|
2268
|
+
getTransactionHistory: {
|
|
2269
|
+
methodKind: "unary";
|
|
2270
|
+
input: typeof GetTransactionHistoryRequestSchema;
|
|
2271
|
+
output: typeof GetTransactionHistoryResponseSchema;
|
|
2272
|
+
};
|
|
1808
2273
|
}>;
|