@silvana-one/orderbook 1.1.25 → 1.1.27
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 +237 -86
- package/dist/node/orderbook.d.ts +2 -0
- package/dist/node/orderbook.js +2 -0
- package/dist/node/orderbook.js.map +1 -1
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.d.ts +301 -201
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js +53 -66
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/node/proto/silvana/settlement/v1/settlement_pb.d.ts +988 -217
- package/dist/node/proto/silvana/settlement/v1/settlement_pb.js +470 -43
- package/dist/node/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
- package/dist/node/settlement.d.ts +41 -30
- package/dist/node/settlement.js +40 -7
- package/dist/node/settlement.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/orderbook.d.ts +2 -0
- package/dist/web/orderbook.js +2 -0
- package/dist/web/orderbook.js.map +1 -1
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.d.ts +301 -201
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js +53 -66
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/web/proto/silvana/settlement/v1/settlement_pb.d.ts +988 -217
- package/dist/web/proto/silvana/settlement/v1/settlement_pb.js +470 -43
- package/dist/web/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
- package/dist/web/settlement.d.ts +41 -30
- package/dist/web/settlement.js +40 -7
- package/dist/web/settlement.js.map +1 -1
- package/package.json +1 -1
- package/src/orderbook.ts +4 -0
- package/src/proto/silvana/orderbook/v1/orderbook_pb.ts +353 -247
- package/src/proto/silvana/settlement/v1/settlement_pb.ts +1243 -333
- package/src/settlement.ts +206 -31
|
@@ -329,6 +329,18 @@ export type Order = Message<"silvana.orderbook.v1.Order"> & {
|
|
|
329
329
|
* @generated from field: optional google.protobuf.Timestamp cancelled_at = 22;
|
|
330
330
|
*/
|
|
331
331
|
cancelledAt?: Timestamp;
|
|
332
|
+
/**
|
|
333
|
+
* Base64-encoded Ed25519 signature for order authentication
|
|
334
|
+
*
|
|
335
|
+
* @generated from field: optional string signature = 23;
|
|
336
|
+
*/
|
|
337
|
+
signature?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Unique nonce per trader for replay protection
|
|
340
|
+
*
|
|
341
|
+
* @generated from field: int64 nonce = 24;
|
|
342
|
+
*/
|
|
343
|
+
nonce: bigint;
|
|
332
344
|
};
|
|
333
345
|
/**
|
|
334
346
|
* Describes the message silvana.orderbook.v1.Order.
|
|
@@ -404,7 +416,7 @@ export type OrderbookDepth = Message<"silvana.orderbook.v1.OrderbookDepth"> & {
|
|
|
404
416
|
*/
|
|
405
417
|
export declare const OrderbookDepthSchema: GenMessage<OrderbookDepth>;
|
|
406
418
|
/**
|
|
407
|
-
* Settlement proposal message
|
|
419
|
+
* Settlement proposal message (simplified - immutable values + status only)
|
|
408
420
|
*
|
|
409
421
|
* @generated from message silvana.orderbook.v1.SettlementProposal
|
|
410
422
|
*/
|
|
@@ -427,180 +439,82 @@ export type SettlementProposal = Message<"silvana.orderbook.v1.SettlementProposa
|
|
|
427
439
|
* @generated from field: string seller = 4;
|
|
428
440
|
*/
|
|
429
441
|
seller: string;
|
|
442
|
+
/**
|
|
443
|
+
* @generated from field: string base_instrument = 5;
|
|
444
|
+
*/
|
|
445
|
+
baseInstrument: string;
|
|
446
|
+
/**
|
|
447
|
+
* @generated from field: string quote_instrument = 6;
|
|
448
|
+
*/
|
|
449
|
+
quoteInstrument: string;
|
|
430
450
|
/**
|
|
431
451
|
* DECIMAL(38,10) as string
|
|
432
452
|
*
|
|
433
|
-
* @generated from field: string base_quantity =
|
|
453
|
+
* @generated from field: string base_quantity = 7;
|
|
434
454
|
*/
|
|
435
455
|
baseQuantity: string;
|
|
436
456
|
/**
|
|
437
457
|
* DECIMAL(38,10) as string
|
|
438
458
|
*
|
|
439
|
-
* @generated from field: string quote_quantity =
|
|
459
|
+
* @generated from field: string quote_quantity = 8;
|
|
440
460
|
*/
|
|
441
461
|
quoteQuantity: string;
|
|
442
462
|
/**
|
|
443
463
|
* DECIMAL(38,10) as string
|
|
444
464
|
*
|
|
445
|
-
* @generated from field: string settlement_price =
|
|
465
|
+
* @generated from field: string settlement_price = 9;
|
|
446
466
|
*/
|
|
447
467
|
settlementPrice: string;
|
|
448
468
|
/**
|
|
449
|
-
*
|
|
450
|
-
*/
|
|
451
|
-
status: SettlementStatus;
|
|
452
|
-
/**
|
|
453
|
-
* Optimistic locking
|
|
469
|
+
* Fee schedule (set by matching engine, to be paid by parties)
|
|
454
470
|
*
|
|
455
|
-
*
|
|
456
|
-
*/
|
|
457
|
-
version: bigint;
|
|
458
|
-
/**
|
|
459
|
-
* Preconfirmation tracking
|
|
471
|
+
* DECIMAL(38,10) as string
|
|
460
472
|
*
|
|
461
|
-
* @generated from field:
|
|
462
|
-
*/
|
|
463
|
-
preconfirmationRequest?: JsonObject;
|
|
464
|
-
/**
|
|
465
|
-
* @generated from field: optional google.protobuf.Timestamp preconfirmation_request_sent_at = 11;
|
|
466
|
-
*/
|
|
467
|
-
preconfirmationRequestSentAt?: Timestamp;
|
|
468
|
-
/**
|
|
469
|
-
* @generated from field: optional google.protobuf.Struct buyer_preconfirmation = 12;
|
|
473
|
+
* @generated from field: string dvp_processing_fee_buyer = 10;
|
|
470
474
|
*/
|
|
471
|
-
|
|
475
|
+
dvpProcessingFeeBuyer: string;
|
|
472
476
|
/**
|
|
473
|
-
*
|
|
474
|
-
*/
|
|
475
|
-
buyerPreconfirmationReceivedAt?: Timestamp;
|
|
476
|
-
/**
|
|
477
|
-
* @generated from field: optional google.protobuf.Struct seller_preconfirmation = 14;
|
|
478
|
-
*/
|
|
479
|
-
sellerPreconfirmation?: JsonObject;
|
|
480
|
-
/**
|
|
481
|
-
* @generated from field: optional google.protobuf.Timestamp seller_preconfirmation_received_at = 15;
|
|
482
|
-
*/
|
|
483
|
-
sellerPreconfirmationReceivedAt?: Timestamp;
|
|
484
|
-
/**
|
|
485
|
-
* Canton DVP integration fields
|
|
477
|
+
* DECIMAL(38,10) as string
|
|
486
478
|
*
|
|
487
|
-
* @generated from field:
|
|
488
|
-
*/
|
|
489
|
-
dvpProposalCid?: string;
|
|
490
|
-
/**
|
|
491
|
-
* @generated from field: optional string dvp_proposal_update_id = 17;
|
|
492
|
-
*/
|
|
493
|
-
dvpProposalUpdateId?: string;
|
|
494
|
-
/**
|
|
495
|
-
* @generated from field: optional string dvp_cid = 18;
|
|
496
|
-
*/
|
|
497
|
-
dvpCid?: string;
|
|
498
|
-
/**
|
|
499
|
-
* @generated from field: optional string dvp_update_id = 19;
|
|
479
|
+
* @generated from field: string dvp_processing_fee_seller = 11;
|
|
500
480
|
*/
|
|
501
|
-
|
|
481
|
+
dvpProcessingFeeSeller: string;
|
|
502
482
|
/**
|
|
503
|
-
*
|
|
483
|
+
* DECIMAL(38,10) as string
|
|
504
484
|
*
|
|
505
|
-
* @generated from field:
|
|
506
|
-
*/
|
|
507
|
-
allocationBuyerCid?: string;
|
|
508
|
-
/**
|
|
509
|
-
* @generated from field: optional string allocation_buyer_update_id = 22;
|
|
510
|
-
*/
|
|
511
|
-
allocationBuyerUpdateId?: string;
|
|
512
|
-
/**
|
|
513
|
-
* @generated from field: optional string allocation_seller_cid = 23;
|
|
514
|
-
*/
|
|
515
|
-
allocationSellerCid?: string;
|
|
516
|
-
/**
|
|
517
|
-
* @generated from field: optional string allocation_seller_update_id = 24;
|
|
518
|
-
*/
|
|
519
|
-
allocationSellerUpdateId?: string;
|
|
520
|
-
/**
|
|
521
|
-
* @generated from field: optional string settled_dvp_cid = 25;
|
|
522
|
-
*/
|
|
523
|
-
settledDvpCid?: string;
|
|
524
|
-
/**
|
|
525
|
-
* @generated from field: optional string settlement_update_id = 26;
|
|
526
|
-
*/
|
|
527
|
-
settlementUpdateId?: string;
|
|
528
|
-
/**
|
|
529
|
-
* @generated from field: optional string settlement_completion_offset = 27;
|
|
485
|
+
* @generated from field: string allocation_processing_fee_buyer = 12;
|
|
530
486
|
*/
|
|
531
|
-
|
|
487
|
+
allocationProcessingFeeBuyer: string;
|
|
532
488
|
/**
|
|
533
|
-
*
|
|
489
|
+
* DECIMAL(38,10) as string
|
|
534
490
|
*
|
|
535
|
-
* @generated from field:
|
|
536
|
-
*/
|
|
537
|
-
createdAt?: Timestamp;
|
|
538
|
-
/**
|
|
539
|
-
* @generated from field: optional google.protobuf.Timestamp preconfirmed_at = 29;
|
|
491
|
+
* @generated from field: string allocation_processing_fee_seller = 13;
|
|
540
492
|
*/
|
|
541
|
-
|
|
493
|
+
allocationProcessingFeeSeller: string;
|
|
542
494
|
/**
|
|
543
|
-
* @generated from field:
|
|
495
|
+
* @generated from field: silvana.orderbook.v1.SettlementStatus status = 14;
|
|
544
496
|
*/
|
|
545
|
-
|
|
497
|
+
status: SettlementStatus;
|
|
546
498
|
/**
|
|
547
|
-
* @generated from field: optional
|
|
499
|
+
* @generated from field: optional string error_message = 15;
|
|
548
500
|
*/
|
|
549
|
-
|
|
501
|
+
errorMessage?: string;
|
|
550
502
|
/**
|
|
551
|
-
* @generated from field:
|
|
503
|
+
* @generated from field: google.protobuf.Timestamp created_at = 16;
|
|
552
504
|
*/
|
|
553
|
-
|
|
505
|
+
createdAt?: Timestamp;
|
|
554
506
|
/**
|
|
555
|
-
* @generated from field: optional google.protobuf.Timestamp settled_at =
|
|
507
|
+
* @generated from field: optional google.protobuf.Timestamp settled_at = 17;
|
|
556
508
|
*/
|
|
557
509
|
settledAt?: Timestamp;
|
|
558
510
|
/**
|
|
559
|
-
* @generated from field: optional google.protobuf.Timestamp cancelled_at =
|
|
511
|
+
* @generated from field: optional google.protobuf.Timestamp cancelled_at = 18;
|
|
560
512
|
*/
|
|
561
513
|
cancelledAt?: Timestamp;
|
|
562
514
|
/**
|
|
563
|
-
* @generated from field: optional google.protobuf.Timestamp failed_at =
|
|
515
|
+
* @generated from field: optional google.protobuf.Timestamp failed_at = 19;
|
|
564
516
|
*/
|
|
565
517
|
failedAt?: Timestamp;
|
|
566
|
-
/**
|
|
567
|
-
* @generated from field: optional string error_message = 36;
|
|
568
|
-
*/
|
|
569
|
-
errorMessage?: string;
|
|
570
|
-
/**
|
|
571
|
-
* @generated from field: optional google.protobuf.Struct metadata = 37;
|
|
572
|
-
*/
|
|
573
|
-
metadata?: JsonObject;
|
|
574
|
-
/**
|
|
575
|
-
* Fee tracking
|
|
576
|
-
*
|
|
577
|
-
* DECIMAL(38,10) as string
|
|
578
|
-
*
|
|
579
|
-
* @generated from field: string buyer_fee = 38;
|
|
580
|
-
*/
|
|
581
|
-
buyerFee: string;
|
|
582
|
-
/**
|
|
583
|
-
* DECIMAL(38,10) as string
|
|
584
|
-
*
|
|
585
|
-
* @generated from field: string seller_fee = 39;
|
|
586
|
-
*/
|
|
587
|
-
sellerFee: string;
|
|
588
|
-
/**
|
|
589
|
-
* @generated from field: optional bool buyer_fee_sent = 40;
|
|
590
|
-
*/
|
|
591
|
-
buyerFeeSent?: boolean;
|
|
592
|
-
/**
|
|
593
|
-
* @generated from field: optional bool seller_fee_sent = 41;
|
|
594
|
-
*/
|
|
595
|
-
sellerFeeSent?: boolean;
|
|
596
|
-
/**
|
|
597
|
-
* @generated from field: optional bool buyer_fee_received = 42;
|
|
598
|
-
*/
|
|
599
|
-
buyerFeeReceived?: boolean;
|
|
600
|
-
/**
|
|
601
|
-
* @generated from field: optional bool seller_fee_received = 43;
|
|
602
|
-
*/
|
|
603
|
-
sellerFeeReceived?: boolean;
|
|
604
518
|
};
|
|
605
519
|
/**
|
|
606
520
|
* Describes the message silvana.orderbook.v1.SettlementProposal.
|
|
@@ -650,7 +564,7 @@ export type OrderMatch = Message<"silvana.orderbook.v1.OrderMatch"> & {
|
|
|
650
564
|
*/
|
|
651
565
|
export declare const OrderMatchSchema: GenMessage<OrderMatch>;
|
|
652
566
|
/**
|
|
653
|
-
* Settlement (completed) message
|
|
567
|
+
* Settlement (completed) message - audit trail for completed settlements
|
|
654
568
|
*
|
|
655
569
|
* @generated from message silvana.orderbook.v1.Settlement
|
|
656
570
|
*/
|
|
@@ -679,44 +593,74 @@ export type Settlement = Message<"silvana.orderbook.v1.Settlement"> & {
|
|
|
679
593
|
* @generated from field: string seller = 5;
|
|
680
594
|
*/
|
|
681
595
|
seller: string;
|
|
596
|
+
/**
|
|
597
|
+
* @generated from field: string base_instrument = 6;
|
|
598
|
+
*/
|
|
599
|
+
baseInstrument: string;
|
|
600
|
+
/**
|
|
601
|
+
* @generated from field: string quote_instrument = 7;
|
|
602
|
+
*/
|
|
603
|
+
quoteInstrument: string;
|
|
682
604
|
/**
|
|
683
605
|
* DECIMAL(38,10) as string
|
|
684
606
|
*
|
|
685
|
-
* @generated from field: string base_quantity =
|
|
607
|
+
* @generated from field: string base_quantity = 8;
|
|
686
608
|
*/
|
|
687
609
|
baseQuantity: string;
|
|
688
610
|
/**
|
|
689
611
|
* DECIMAL(38,10) as string
|
|
690
612
|
*
|
|
691
|
-
* @generated from field: string quote_quantity =
|
|
613
|
+
* @generated from field: string quote_quantity = 9;
|
|
692
614
|
*/
|
|
693
615
|
quoteQuantity: string;
|
|
694
616
|
/**
|
|
695
617
|
* DECIMAL(38,10) as string
|
|
696
618
|
*
|
|
697
|
-
* @generated from field: string settlement_price =
|
|
619
|
+
* @generated from field: string settlement_price = 10;
|
|
698
620
|
*/
|
|
699
621
|
settlementPrice: string;
|
|
700
622
|
/**
|
|
701
|
-
*
|
|
623
|
+
* Fees paid (copied from proposal for audit trail)
|
|
624
|
+
*
|
|
625
|
+
* DECIMAL(38,10) as string
|
|
626
|
+
*
|
|
627
|
+
* @generated from field: string dvp_processing_fee_buyer = 11;
|
|
628
|
+
*/
|
|
629
|
+
dvpProcessingFeeBuyer: string;
|
|
630
|
+
/**
|
|
631
|
+
* DECIMAL(38,10) as string
|
|
632
|
+
*
|
|
633
|
+
* @generated from field: string dvp_processing_fee_seller = 12;
|
|
634
|
+
*/
|
|
635
|
+
dvpProcessingFeeSeller: string;
|
|
636
|
+
/**
|
|
637
|
+
* DECIMAL(38,10) as string
|
|
638
|
+
*
|
|
639
|
+
* @generated from field: string allocation_processing_fee_buyer = 13;
|
|
702
640
|
*/
|
|
703
|
-
|
|
641
|
+
allocationProcessingFeeBuyer: string;
|
|
704
642
|
/**
|
|
705
|
-
*
|
|
643
|
+
* DECIMAL(38,10) as string
|
|
644
|
+
*
|
|
645
|
+
* @generated from field: string allocation_processing_fee_seller = 14;
|
|
706
646
|
*/
|
|
707
|
-
|
|
647
|
+
allocationProcessingFeeSeller: string;
|
|
708
648
|
/**
|
|
709
|
-
*
|
|
649
|
+
* Final SettledDvp contract ID
|
|
650
|
+
*
|
|
651
|
+
* @generated from field: optional string settled_dvp_cid = 15;
|
|
710
652
|
*/
|
|
711
|
-
|
|
653
|
+
settledDvpCid?: string;
|
|
712
654
|
/**
|
|
713
|
-
*
|
|
655
|
+
* Canton update ID
|
|
656
|
+
*
|
|
657
|
+
* @generated from field: optional string settlement_update_id = 16;
|
|
714
658
|
*/
|
|
715
|
-
|
|
659
|
+
settlementUpdateId?: string;
|
|
716
660
|
/**
|
|
717
|
-
* @generated from field:
|
|
661
|
+
* @generated from field: google.protobuf.Timestamp settled_at = 17;
|
|
718
662
|
*/
|
|
719
|
-
|
|
663
|
+
settledAt?: Timestamp;
|
|
720
664
|
};
|
|
721
665
|
/**
|
|
722
666
|
* Describes the message silvana.orderbook.v1.Settlement.
|
|
@@ -1558,7 +1502,7 @@ export type SubscribeSettlementsRequest = Message<"silvana.orderbook.v1.Subscrib
|
|
|
1558
1502
|
*/
|
|
1559
1503
|
export declare const SubscribeSettlementsRequestSchema: GenMessage<SubscribeSettlementsRequest>;
|
|
1560
1504
|
/**
|
|
1561
|
-
* Settlement update event
|
|
1505
|
+
* Settlement update event (for streaming - simplified to status changes)
|
|
1562
1506
|
*
|
|
1563
1507
|
* @generated from message silvana.orderbook.v1.SettlementUpdate
|
|
1564
1508
|
*/
|
|
@@ -1590,47 +1534,35 @@ export declare enum SettlementUpdate_EventType {
|
|
|
1590
1534
|
*/
|
|
1591
1535
|
UNSPECIFIED = 0,
|
|
1592
1536
|
/**
|
|
1537
|
+
* New proposal created
|
|
1538
|
+
*
|
|
1593
1539
|
* @generated from enum value: EVENT_TYPE_PROPOSAL_CREATED = 1;
|
|
1594
1540
|
*/
|
|
1595
1541
|
PROPOSAL_CREATED = 1,
|
|
1596
1542
|
/**
|
|
1597
|
-
*
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
/**
|
|
1601
|
-
* @generated from enum value: EVENT_TYPE_PRECONFIRMED = 3;
|
|
1602
|
-
*/
|
|
1603
|
-
PRECONFIRMED = 3,
|
|
1604
|
-
/**
|
|
1605
|
-
* @generated from enum value: EVENT_TYPE_DVP_CREATED = 4;
|
|
1606
|
-
*/
|
|
1607
|
-
DVP_CREATED = 4,
|
|
1608
|
-
/**
|
|
1609
|
-
* @generated from enum value: EVENT_TYPE_DVP_ACCEPTED = 5;
|
|
1610
|
-
*/
|
|
1611
|
-
DVP_ACCEPTED = 5,
|
|
1612
|
-
/**
|
|
1613
|
-
* @generated from enum value: EVENT_TYPE_ALLOCATED = 6;
|
|
1614
|
-
*/
|
|
1615
|
-
ALLOCATED = 6,
|
|
1616
|
-
/**
|
|
1617
|
-
* @generated from enum value: EVENT_TYPE_SETTLED = 7;
|
|
1543
|
+
* Status changed (pending → settled/cancelled/failed)
|
|
1544
|
+
*
|
|
1545
|
+
* @generated from enum value: EVENT_TYPE_STATUS_CHANGED = 2;
|
|
1618
1546
|
*/
|
|
1619
|
-
|
|
1547
|
+
STATUS_CHANGED = 2,
|
|
1620
1548
|
/**
|
|
1621
|
-
*
|
|
1549
|
+
* Settlement completed
|
|
1550
|
+
*
|
|
1551
|
+
* @generated from enum value: EVENT_TYPE_SETTLED = 3;
|
|
1622
1552
|
*/
|
|
1623
|
-
|
|
1553
|
+
SETTLED = 3,
|
|
1624
1554
|
/**
|
|
1625
|
-
*
|
|
1555
|
+
* Settlement failed
|
|
1556
|
+
*
|
|
1557
|
+
* @generated from enum value: EVENT_TYPE_FAILED = 4;
|
|
1626
1558
|
*/
|
|
1627
|
-
|
|
1559
|
+
FAILED = 4,
|
|
1628
1560
|
/**
|
|
1629
|
-
*
|
|
1561
|
+
* Settlement cancelled
|
|
1630
1562
|
*
|
|
1631
|
-
* @generated from enum value:
|
|
1563
|
+
* @generated from enum value: EVENT_TYPE_CANCELLED = 5;
|
|
1632
1564
|
*/
|
|
1633
|
-
|
|
1565
|
+
CANCELLED = 5
|
|
1634
1566
|
}
|
|
1635
1567
|
/**
|
|
1636
1568
|
* Describes the enum silvana.orderbook.v1.SettlementUpdate.EventType.
|
|
@@ -1690,6 +1622,18 @@ export type SubmitOrderRequest = Message<"silvana.orderbook.v1.SubmitOrderReques
|
|
|
1690
1622
|
* @generated from field: optional google.protobuf.Struct metadata = 11;
|
|
1691
1623
|
*/
|
|
1692
1624
|
metadata?: JsonObject;
|
|
1625
|
+
/**
|
|
1626
|
+
* Base64-encoded Ed25519 signature for order authentication
|
|
1627
|
+
*
|
|
1628
|
+
* @generated from field: optional string signature = 12;
|
|
1629
|
+
*/
|
|
1630
|
+
signature?: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* Unique nonce per trader for replay protection
|
|
1633
|
+
*
|
|
1634
|
+
* @generated from field: int64 nonce = 13;
|
|
1635
|
+
*/
|
|
1636
|
+
nonce: bigint;
|
|
1693
1637
|
/**
|
|
1694
1638
|
* Alternative auth for external accounts
|
|
1695
1639
|
*
|
|
@@ -1824,6 +1768,30 @@ export type CreatePartyRequest = Message<"silvana.orderbook.v1.CreatePartyReques
|
|
|
1824
1768
|
* @generated from field: google.protobuf.Struct user_data = 9;
|
|
1825
1769
|
*/
|
|
1826
1770
|
userData?: JsonObject;
|
|
1771
|
+
/**
|
|
1772
|
+
* Party email address
|
|
1773
|
+
*
|
|
1774
|
+
* @generated from field: optional string email = 10;
|
|
1775
|
+
*/
|
|
1776
|
+
email?: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Base58 public key
|
|
1779
|
+
*
|
|
1780
|
+
* @generated from field: optional string public_key = 11;
|
|
1781
|
+
*/
|
|
1782
|
+
publicKey?: string;
|
|
1783
|
+
/**
|
|
1784
|
+
* Invite code used during registration
|
|
1785
|
+
*
|
|
1786
|
+
* @generated from field: optional string invite_code = 12;
|
|
1787
|
+
*/
|
|
1788
|
+
inviteCode?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* Source: loop_wallet, form, supa_wallet, admin
|
|
1791
|
+
*
|
|
1792
|
+
* @generated from field: optional string source = 13;
|
|
1793
|
+
*/
|
|
1794
|
+
source?: string;
|
|
1827
1795
|
/**
|
|
1828
1796
|
* Alternative auth for external accounts
|
|
1829
1797
|
*
|
|
@@ -1924,6 +1892,30 @@ export type UpdatePartyRequest = Message<"silvana.orderbook.v1.UpdatePartyReques
|
|
|
1924
1892
|
* @generated from field: optional string change_reason = 10;
|
|
1925
1893
|
*/
|
|
1926
1894
|
changeReason?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* Party email address
|
|
1897
|
+
*
|
|
1898
|
+
* @generated from field: optional string email = 11;
|
|
1899
|
+
*/
|
|
1900
|
+
email?: string;
|
|
1901
|
+
/**
|
|
1902
|
+
* Base58 public key
|
|
1903
|
+
*
|
|
1904
|
+
* @generated from field: optional string public_key = 12;
|
|
1905
|
+
*/
|
|
1906
|
+
publicKey?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* Invite code used during registration
|
|
1909
|
+
*
|
|
1910
|
+
* @generated from field: optional string invite_code = 13;
|
|
1911
|
+
*/
|
|
1912
|
+
inviteCode?: string;
|
|
1913
|
+
/**
|
|
1914
|
+
* Source: loop_wallet, form, supa_wallet, admin
|
|
1915
|
+
*
|
|
1916
|
+
* @generated from field: optional string source = 14;
|
|
1917
|
+
*/
|
|
1918
|
+
source?: string;
|
|
1927
1919
|
/**
|
|
1928
1920
|
* Alternative auth for external accounts
|
|
1929
1921
|
*
|
|
@@ -2604,6 +2596,120 @@ export type Round = Message<"silvana.orderbook.v1.Round"> & {
|
|
|
2604
2596
|
* Use `create(RoundSchema)` to create a new message.
|
|
2605
2597
|
*/
|
|
2606
2598
|
export declare const RoundSchema: GenMessage<Round>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Latest coefficient values (may come from different rounds)
|
|
2601
|
+
*
|
|
2602
|
+
* @generated from message silvana.orderbook.v1.LatestCoefficients
|
|
2603
|
+
*/
|
|
2604
|
+
export type LatestCoefficients = Message<"silvana.orderbook.v1.LatestCoefficients"> & {
|
|
2605
|
+
/**
|
|
2606
|
+
* Issuance coefficient for featured apps (from most recent round with value)
|
|
2607
|
+
*
|
|
2608
|
+
* @generated from field: optional string issuance_per_featured_app_reward_coupon = 1;
|
|
2609
|
+
*/
|
|
2610
|
+
issuancePerFeaturedAppRewardCoupon?: string;
|
|
2611
|
+
/**
|
|
2612
|
+
* @generated from field: optional uint64 issuance_per_featured_app_reward_coupon_round = 2;
|
|
2613
|
+
*/
|
|
2614
|
+
issuancePerFeaturedAppRewardCouponRound?: bigint;
|
|
2615
|
+
/**
|
|
2616
|
+
* Issuance coefficient for unfeatured apps (from most recent round with value)
|
|
2617
|
+
*
|
|
2618
|
+
* @generated from field: optional string issuance_per_unfeatured_app_reward_coupon = 3;
|
|
2619
|
+
*/
|
|
2620
|
+
issuancePerUnfeaturedAppRewardCoupon?: string;
|
|
2621
|
+
/**
|
|
2622
|
+
* @generated from field: optional uint64 issuance_per_unfeatured_app_reward_coupon_round = 4;
|
|
2623
|
+
*/
|
|
2624
|
+
issuancePerUnfeaturedAppRewardCouponRound?: bigint;
|
|
2625
|
+
/**
|
|
2626
|
+
* CC/USD exchange rate (from most recent round with value)
|
|
2627
|
+
*
|
|
2628
|
+
* @generated from field: optional string cc_usd_rate = 5;
|
|
2629
|
+
*/
|
|
2630
|
+
ccUsdRate?: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* @generated from field: optional uint64 cc_usd_rate_round = 6;
|
|
2633
|
+
*/
|
|
2634
|
+
ccUsdRateRound?: bigint;
|
|
2635
|
+
/**
|
|
2636
|
+
* Traffic cost in USD per MB (from most recent round with value)
|
|
2637
|
+
*
|
|
2638
|
+
* @generated from field: optional string traffic_cost_usd_per_mb = 7;
|
|
2639
|
+
*/
|
|
2640
|
+
trafficCostUsdPerMb?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* @generated from field: optional uint64 traffic_cost_usd_per_mb_round = 8;
|
|
2643
|
+
*/
|
|
2644
|
+
trafficCostUsdPerMbRound?: bigint;
|
|
2645
|
+
};
|
|
2646
|
+
/**
|
|
2647
|
+
* Describes the message silvana.orderbook.v1.LatestCoefficients.
|
|
2648
|
+
* Use `create(LatestCoefficientsSchema)` to create a new message.
|
|
2649
|
+
*/
|
|
2650
|
+
export declare const LatestCoefficientsSchema: GenMessage<LatestCoefficients>;
|
|
2651
|
+
/**
|
|
2652
|
+
* Get rounds data with latest coefficients
|
|
2653
|
+
*
|
|
2654
|
+
* @generated from message silvana.orderbook.v1.GetRoundsDataRequest
|
|
2655
|
+
*/
|
|
2656
|
+
export type GetRoundsDataRequest = Message<"silvana.orderbook.v1.GetRoundsDataRequest"> & {
|
|
2657
|
+
/**
|
|
2658
|
+
* @generated from field: silvana.orderbook.v1.JWTAuth auth = 1;
|
|
2659
|
+
*/
|
|
2660
|
+
auth?: JWTAuth;
|
|
2661
|
+
/**
|
|
2662
|
+
* Default: 10, max: 100
|
|
2663
|
+
*
|
|
2664
|
+
* @generated from field: optional uint32 limit = 2;
|
|
2665
|
+
*/
|
|
2666
|
+
limit?: number;
|
|
2667
|
+
/**
|
|
2668
|
+
* @generated from field: optional silvana.orderbook.v1.ExternalAuth external_auth = 10;
|
|
2669
|
+
*/
|
|
2670
|
+
externalAuth?: ExternalAuth;
|
|
2671
|
+
};
|
|
2672
|
+
/**
|
|
2673
|
+
* Describes the message silvana.orderbook.v1.GetRoundsDataRequest.
|
|
2674
|
+
* Use `create(GetRoundsDataRequestSchema)` to create a new message.
|
|
2675
|
+
*/
|
|
2676
|
+
export declare const GetRoundsDataRequestSchema: GenMessage<GetRoundsDataRequest>;
|
|
2677
|
+
/**
|
|
2678
|
+
* @generated from message silvana.orderbook.v1.GetRoundsDataResponse
|
|
2679
|
+
*/
|
|
2680
|
+
export type GetRoundsDataResponse = Message<"silvana.orderbook.v1.GetRoundsDataResponse"> & {
|
|
2681
|
+
/**
|
|
2682
|
+
* @generated from field: bool success = 1;
|
|
2683
|
+
*/
|
|
2684
|
+
success: boolean;
|
|
2685
|
+
/**
|
|
2686
|
+
* @generated from field: string message = 2;
|
|
2687
|
+
*/
|
|
2688
|
+
message: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* Last N rounds ordered by round_number DESC
|
|
2691
|
+
*
|
|
2692
|
+
* @generated from field: repeated silvana.orderbook.v1.Round rounds = 3;
|
|
2693
|
+
*/
|
|
2694
|
+
rounds: Round[];
|
|
2695
|
+
/**
|
|
2696
|
+
* Latest non-NULL values for each coefficient
|
|
2697
|
+
*
|
|
2698
|
+
* @generated from field: silvana.orderbook.v1.LatestCoefficients latest = 4;
|
|
2699
|
+
*/
|
|
2700
|
+
latest?: LatestCoefficients;
|
|
2701
|
+
/**
|
|
2702
|
+
* Total rounds in database
|
|
2703
|
+
*
|
|
2704
|
+
* @generated from field: uint32 total_rounds = 5;
|
|
2705
|
+
*/
|
|
2706
|
+
totalRounds: number;
|
|
2707
|
+
};
|
|
2708
|
+
/**
|
|
2709
|
+
* Describes the message silvana.orderbook.v1.GetRoundsDataResponse.
|
|
2710
|
+
* Use `create(GetRoundsDataResponseSchema)` to create a new message.
|
|
2711
|
+
*/
|
|
2712
|
+
export declare const GetRoundsDataResponseSchema: GenMessage<GetRoundsDataResponse>;
|
|
2607
2713
|
/**
|
|
2608
2714
|
* Invite code for user onboarding
|
|
2609
2715
|
*
|
|
@@ -3088,7 +3194,7 @@ export declare enum TimeInForce {
|
|
|
3088
3194
|
*/
|
|
3089
3195
|
export declare const TimeInForceSchema: GenEnum<TimeInForce>;
|
|
3090
3196
|
/**
|
|
3091
|
-
* Settlement status enumeration
|
|
3197
|
+
* Settlement status enumeration (simplified - 4 states only)
|
|
3092
3198
|
*
|
|
3093
3199
|
* @generated from enum silvana.orderbook.v1.SettlementStatus
|
|
3094
3200
|
*/
|
|
@@ -3098,37 +3204,21 @@ export declare enum SettlementStatus {
|
|
|
3098
3204
|
*/
|
|
3099
3205
|
UNSPECIFIED = 0,
|
|
3100
3206
|
/**
|
|
3101
|
-
* @generated from enum value:
|
|
3102
|
-
*/
|
|
3103
|
-
CREATED = 1,
|
|
3104
|
-
/**
|
|
3105
|
-
* @generated from enum value: SETTLEMENT_STATUS_PRECONFIRMED = 2;
|
|
3106
|
-
*/
|
|
3107
|
-
PRECONFIRMED = 2,
|
|
3108
|
-
/**
|
|
3109
|
-
* @generated from enum value: SETTLEMENT_STATUS_DVP_REQUEST_CREATED = 3;
|
|
3110
|
-
*/
|
|
3111
|
-
DVP_REQUEST_CREATED = 3,
|
|
3112
|
-
/**
|
|
3113
|
-
* @generated from enum value: SETTLEMENT_STATUS_DVP_REQUEST_ACCEPTED = 4;
|
|
3207
|
+
* @generated from enum value: SETTLEMENT_STATUS_PENDING = 1;
|
|
3114
3208
|
*/
|
|
3115
|
-
|
|
3209
|
+
PENDING = 1,
|
|
3116
3210
|
/**
|
|
3117
|
-
* @generated from enum value:
|
|
3211
|
+
* @generated from enum value: SETTLEMENT_STATUS_SETTLED = 2;
|
|
3118
3212
|
*/
|
|
3119
|
-
|
|
3213
|
+
SETTLED = 2,
|
|
3120
3214
|
/**
|
|
3121
|
-
* @generated from enum value:
|
|
3215
|
+
* @generated from enum value: SETTLEMENT_STATUS_CANCELLED = 3;
|
|
3122
3216
|
*/
|
|
3123
|
-
|
|
3217
|
+
CANCELLED = 3,
|
|
3124
3218
|
/**
|
|
3125
|
-
* @generated from enum value:
|
|
3219
|
+
* @generated from enum value: SETTLEMENT_STATUS_FAILED = 4;
|
|
3126
3220
|
*/
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* @generated from enum value: SETTLEMENT_STATUS_FAILED = 8;
|
|
3130
|
-
*/
|
|
3131
|
-
FAILED = 8
|
|
3221
|
+
FAILED = 4
|
|
3132
3222
|
}
|
|
3133
3223
|
/**
|
|
3134
3224
|
* Describes the enum silvana.orderbook.v1.SettlementStatus.
|
|
@@ -3344,6 +3434,16 @@ export declare const OrderbookService: GenService<{
|
|
|
3344
3434
|
input: typeof UseInviteRequestSchema;
|
|
3345
3435
|
output: typeof UseInviteResponseSchema;
|
|
3346
3436
|
};
|
|
3437
|
+
/**
|
|
3438
|
+
* Rounds operations
|
|
3439
|
+
*
|
|
3440
|
+
* @generated from rpc silvana.orderbook.v1.OrderbookService.GetRoundsData
|
|
3441
|
+
*/
|
|
3442
|
+
getRoundsData: {
|
|
3443
|
+
methodKind: "unary";
|
|
3444
|
+
input: typeof GetRoundsDataRequestSchema;
|
|
3445
|
+
output: typeof GetRoundsDataResponseSchema;
|
|
3446
|
+
};
|
|
3347
3447
|
/**
|
|
3348
3448
|
* Admin operations (require operator authentication)
|
|
3349
3449
|
*
|