@silvana-one/orderbook 1.1.24 → 1.1.25
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 -7
- package/dist/node/orderbook.d.ts +32 -1
- package/dist/node/orderbook.js +35 -1
- package/dist/node/orderbook.js.map +1 -1
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.d.ts +381 -0
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js +84 -7
- package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/orderbook.d.ts +32 -1
- package/dist/web/orderbook.js +35 -1
- package/dist/web/orderbook.js.map +1 -1
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.d.ts +381 -0
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js +84 -7
- package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
- package/package.json +1 -1
- package/src/orderbook.ts +62 -0
- package/src/proto/silvana/orderbook/v1/orderbook_pb.ts +462 -7
|
@@ -2304,6 +2304,30 @@ export type Party = Message<"silvana.orderbook.v1.Party"> & {
|
|
|
2304
2304
|
* @generated from field: uint64 version = 12;
|
|
2305
2305
|
*/
|
|
2306
2306
|
version: bigint;
|
|
2307
|
+
/**
|
|
2308
|
+
* Party email address
|
|
2309
|
+
*
|
|
2310
|
+
* @generated from field: optional string email = 13;
|
|
2311
|
+
*/
|
|
2312
|
+
email?: string;
|
|
2313
|
+
/**
|
|
2314
|
+
* Base58 public key
|
|
2315
|
+
*
|
|
2316
|
+
* @generated from field: optional string public_key = 14;
|
|
2317
|
+
*/
|
|
2318
|
+
publicKey?: string;
|
|
2319
|
+
/**
|
|
2320
|
+
* Invite code used during registration
|
|
2321
|
+
*
|
|
2322
|
+
* @generated from field: optional string invite_code = 15;
|
|
2323
|
+
*/
|
|
2324
|
+
inviteCode?: string;
|
|
2325
|
+
/**
|
|
2326
|
+
* Source: loop_wallet, form, supa_wallet, admin
|
|
2327
|
+
*
|
|
2328
|
+
* @generated from field: string source = 16;
|
|
2329
|
+
*/
|
|
2330
|
+
source: string;
|
|
2307
2331
|
};
|
|
2308
2332
|
/**
|
|
2309
2333
|
* Describes the message silvana.orderbook.v1.Party.
|
|
@@ -2416,6 +2440,304 @@ export type GetLiquidityProvidersResponse = Message<"silvana.orderbook.v1.GetLiq
|
|
|
2416
2440
|
* Use `create(GetLiquidityProvidersResponseSchema)` to create a new message.
|
|
2417
2441
|
*/
|
|
2418
2442
|
export declare const GetLiquidityProvidersResponseSchema: GenMessage<GetLiquidityProvidersResponse>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Waiting list entry for users pending onboarding
|
|
2445
|
+
*
|
|
2446
|
+
* @generated from message silvana.orderbook.v1.WaitingListEntry
|
|
2447
|
+
*/
|
|
2448
|
+
export type WaitingListEntry = Message<"silvana.orderbook.v1.WaitingListEntry"> & {
|
|
2449
|
+
/**
|
|
2450
|
+
* @generated from field: uint64 id = 1;
|
|
2451
|
+
*/
|
|
2452
|
+
id: bigint;
|
|
2453
|
+
/**
|
|
2454
|
+
* @generated from field: optional string party_id = 2;
|
|
2455
|
+
*/
|
|
2456
|
+
partyId?: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* @generated from field: google.protobuf.Struct user_data = 3;
|
|
2459
|
+
*/
|
|
2460
|
+
userData?: JsonObject;
|
|
2461
|
+
/**
|
|
2462
|
+
* loop_wallet, form, supa_wallet
|
|
2463
|
+
*
|
|
2464
|
+
* @generated from field: string source = 4;
|
|
2465
|
+
*/
|
|
2466
|
+
source: string;
|
|
2467
|
+
/**
|
|
2468
|
+
* @generated from field: optional string email = 5;
|
|
2469
|
+
*/
|
|
2470
|
+
email?: string;
|
|
2471
|
+
/**
|
|
2472
|
+
* @generated from field: optional string public_key = 6;
|
|
2473
|
+
*/
|
|
2474
|
+
publicKey?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* @generated from field: bool is_onboarded = 7;
|
|
2477
|
+
*/
|
|
2478
|
+
isOnboarded: boolean;
|
|
2479
|
+
/**
|
|
2480
|
+
* @generated from field: uint64 version = 8;
|
|
2481
|
+
*/
|
|
2482
|
+
version: bigint;
|
|
2483
|
+
/**
|
|
2484
|
+
* @generated from field: optional google.protobuf.Struct metadata = 9;
|
|
2485
|
+
*/
|
|
2486
|
+
metadata?: JsonObject;
|
|
2487
|
+
/**
|
|
2488
|
+
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
|
2489
|
+
*/
|
|
2490
|
+
createdAt?: Timestamp;
|
|
2491
|
+
/**
|
|
2492
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 11;
|
|
2493
|
+
*/
|
|
2494
|
+
updatedAt?: Timestamp;
|
|
2495
|
+
};
|
|
2496
|
+
/**
|
|
2497
|
+
* Describes the message silvana.orderbook.v1.WaitingListEntry.
|
|
2498
|
+
* Use `create(WaitingListEntrySchema)` to create a new message.
|
|
2499
|
+
*/
|
|
2500
|
+
export declare const WaitingListEntrySchema: GenMessage<WaitingListEntry>;
|
|
2501
|
+
/**
|
|
2502
|
+
* Add entry to waiting list (JWT auth with user 'onboard')
|
|
2503
|
+
*
|
|
2504
|
+
* @generated from message silvana.orderbook.v1.AddWaitingListEntryRequest
|
|
2505
|
+
*/
|
|
2506
|
+
export type AddWaitingListEntryRequest = Message<"silvana.orderbook.v1.AddWaitingListEntryRequest"> & {
|
|
2507
|
+
/**
|
|
2508
|
+
* @generated from field: silvana.orderbook.v1.JWTAuth auth = 1;
|
|
2509
|
+
*/
|
|
2510
|
+
auth?: JWTAuth;
|
|
2511
|
+
/**
|
|
2512
|
+
* @generated from field: google.protobuf.Struct user_data = 2;
|
|
2513
|
+
*/
|
|
2514
|
+
userData?: JsonObject;
|
|
2515
|
+
/**
|
|
2516
|
+
* @generated from field: string source = 3;
|
|
2517
|
+
*/
|
|
2518
|
+
source: string;
|
|
2519
|
+
/**
|
|
2520
|
+
* @generated from field: optional string email = 4;
|
|
2521
|
+
*/
|
|
2522
|
+
email?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* @generated from field: optional string public_key = 5;
|
|
2525
|
+
*/
|
|
2526
|
+
publicKey?: string;
|
|
2527
|
+
/**
|
|
2528
|
+
* @generated from field: optional google.protobuf.Struct metadata = 6;
|
|
2529
|
+
*/
|
|
2530
|
+
metadata?: JsonObject;
|
|
2531
|
+
};
|
|
2532
|
+
/**
|
|
2533
|
+
* Describes the message silvana.orderbook.v1.AddWaitingListEntryRequest.
|
|
2534
|
+
* Use `create(AddWaitingListEntryRequestSchema)` to create a new message.
|
|
2535
|
+
*/
|
|
2536
|
+
export declare const AddWaitingListEntryRequestSchema: GenMessage<AddWaitingListEntryRequest>;
|
|
2537
|
+
/**
|
|
2538
|
+
* @generated from message silvana.orderbook.v1.AddWaitingListEntryResponse
|
|
2539
|
+
*/
|
|
2540
|
+
export type AddWaitingListEntryResponse = Message<"silvana.orderbook.v1.AddWaitingListEntryResponse"> & {
|
|
2541
|
+
/**
|
|
2542
|
+
* @generated from field: bool success = 1;
|
|
2543
|
+
*/
|
|
2544
|
+
success: boolean;
|
|
2545
|
+
/**
|
|
2546
|
+
* @generated from field: string message = 2;
|
|
2547
|
+
*/
|
|
2548
|
+
message: string;
|
|
2549
|
+
/**
|
|
2550
|
+
* @generated from field: uint64 id = 3;
|
|
2551
|
+
*/
|
|
2552
|
+
id: bigint;
|
|
2553
|
+
};
|
|
2554
|
+
/**
|
|
2555
|
+
* Describes the message silvana.orderbook.v1.AddWaitingListEntryResponse.
|
|
2556
|
+
* Use `create(AddWaitingListEntryResponseSchema)` to create a new message.
|
|
2557
|
+
*/
|
|
2558
|
+
export declare const AddWaitingListEntryResponseSchema: GenMessage<AddWaitingListEntryResponse>;
|
|
2559
|
+
/**
|
|
2560
|
+
* Canton round with conversion coefficients for reward calculations
|
|
2561
|
+
*
|
|
2562
|
+
* @generated from message silvana.orderbook.v1.Round
|
|
2563
|
+
*/
|
|
2564
|
+
export type Round = Message<"silvana.orderbook.v1.Round"> & {
|
|
2565
|
+
/**
|
|
2566
|
+
* @generated from field: uint64 round_number = 1;
|
|
2567
|
+
*/
|
|
2568
|
+
roundNumber: bigint;
|
|
2569
|
+
/**
|
|
2570
|
+
* DECIMAL(38,10) as string
|
|
2571
|
+
*
|
|
2572
|
+
* @generated from field: optional string issuance_per_featured_app_reward_coupon = 2;
|
|
2573
|
+
*/
|
|
2574
|
+
issuancePerFeaturedAppRewardCoupon?: string;
|
|
2575
|
+
/**
|
|
2576
|
+
* DECIMAL(38,10) as string
|
|
2577
|
+
*
|
|
2578
|
+
* @generated from field: optional string issuance_per_unfeatured_app_reward_coupon = 3;
|
|
2579
|
+
*/
|
|
2580
|
+
issuancePerUnfeaturedAppRewardCoupon?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* DECIMAL(38,10) as string
|
|
2583
|
+
*
|
|
2584
|
+
* @generated from field: optional string cc_usd_rate = 4;
|
|
2585
|
+
*/
|
|
2586
|
+
ccUsdRate?: string;
|
|
2587
|
+
/**
|
|
2588
|
+
* DECIMAL(38,10) as string
|
|
2589
|
+
*
|
|
2590
|
+
* @generated from field: optional string traffic_cost_usd_per_mb = 5;
|
|
2591
|
+
*/
|
|
2592
|
+
trafficCostUsdPerMb?: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
2595
|
+
*/
|
|
2596
|
+
createdAt?: Timestamp;
|
|
2597
|
+
/**
|
|
2598
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
2599
|
+
*/
|
|
2600
|
+
updatedAt?: Timestamp;
|
|
2601
|
+
};
|
|
2602
|
+
/**
|
|
2603
|
+
* Describes the message silvana.orderbook.v1.Round.
|
|
2604
|
+
* Use `create(RoundSchema)` to create a new message.
|
|
2605
|
+
*/
|
|
2606
|
+
export declare const RoundSchema: GenMessage<Round>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Invite code for user onboarding
|
|
2609
|
+
*
|
|
2610
|
+
* @generated from message silvana.orderbook.v1.Invite
|
|
2611
|
+
*/
|
|
2612
|
+
export type Invite = Message<"silvana.orderbook.v1.Invite"> & {
|
|
2613
|
+
/**
|
|
2614
|
+
* @generated from field: string invite_code = 1;
|
|
2615
|
+
*/
|
|
2616
|
+
inviteCode: string;
|
|
2617
|
+
/**
|
|
2618
|
+
* @generated from field: string channel = 2;
|
|
2619
|
+
*/
|
|
2620
|
+
channel: string;
|
|
2621
|
+
/**
|
|
2622
|
+
* DECIMAL(38,10) as string
|
|
2623
|
+
*
|
|
2624
|
+
* @generated from field: optional string rewards = 3;
|
|
2625
|
+
*/
|
|
2626
|
+
rewards?: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* @generated from field: optional google.protobuf.Struct metadata = 4;
|
|
2629
|
+
*/
|
|
2630
|
+
metadata?: JsonObject;
|
|
2631
|
+
/**
|
|
2632
|
+
* @generated from field: silvana.orderbook.v1.InviteStatus status = 5;
|
|
2633
|
+
*/
|
|
2634
|
+
status: InviteStatus;
|
|
2635
|
+
/**
|
|
2636
|
+
* @generated from field: uint32 count_used = 6;
|
|
2637
|
+
*/
|
|
2638
|
+
countUsed: number;
|
|
2639
|
+
/**
|
|
2640
|
+
* @generated from field: optional uint32 max_count = 7;
|
|
2641
|
+
*/
|
|
2642
|
+
maxCount?: number;
|
|
2643
|
+
/**
|
|
2644
|
+
* @generated from field: string created_by = 8;
|
|
2645
|
+
*/
|
|
2646
|
+
createdBy: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
|
2649
|
+
*/
|
|
2650
|
+
createdAt?: Timestamp;
|
|
2651
|
+
/**
|
|
2652
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
|
2653
|
+
*/
|
|
2654
|
+
updatedAt?: Timestamp;
|
|
2655
|
+
};
|
|
2656
|
+
/**
|
|
2657
|
+
* Describes the message silvana.orderbook.v1.Invite.
|
|
2658
|
+
* Use `create(InviteSchema)` to create a new message.
|
|
2659
|
+
*/
|
|
2660
|
+
export declare const InviteSchema: GenMessage<Invite>;
|
|
2661
|
+
/**
|
|
2662
|
+
* Get invite by code
|
|
2663
|
+
*
|
|
2664
|
+
* @generated from message silvana.orderbook.v1.GetInviteRequest
|
|
2665
|
+
*/
|
|
2666
|
+
export type GetInviteRequest = Message<"silvana.orderbook.v1.GetInviteRequest"> & {
|
|
2667
|
+
/**
|
|
2668
|
+
* @generated from field: string invite_code = 1;
|
|
2669
|
+
*/
|
|
2670
|
+
inviteCode: string;
|
|
2671
|
+
};
|
|
2672
|
+
/**
|
|
2673
|
+
* Describes the message silvana.orderbook.v1.GetInviteRequest.
|
|
2674
|
+
* Use `create(GetInviteRequestSchema)` to create a new message.
|
|
2675
|
+
*/
|
|
2676
|
+
export declare const GetInviteRequestSchema: GenMessage<GetInviteRequest>;
|
|
2677
|
+
/**
|
|
2678
|
+
* @generated from message silvana.orderbook.v1.GetInviteResponse
|
|
2679
|
+
*/
|
|
2680
|
+
export type GetInviteResponse = Message<"silvana.orderbook.v1.GetInviteResponse"> & {
|
|
2681
|
+
/**
|
|
2682
|
+
* @generated from field: bool found = 1;
|
|
2683
|
+
*/
|
|
2684
|
+
found: boolean;
|
|
2685
|
+
/**
|
|
2686
|
+
* @generated from field: optional silvana.orderbook.v1.Invite invite = 2;
|
|
2687
|
+
*/
|
|
2688
|
+
invite?: Invite;
|
|
2689
|
+
};
|
|
2690
|
+
/**
|
|
2691
|
+
* Describes the message silvana.orderbook.v1.GetInviteResponse.
|
|
2692
|
+
* Use `create(GetInviteResponseSchema)` to create a new message.
|
|
2693
|
+
*/
|
|
2694
|
+
export declare const GetInviteResponseSchema: GenMessage<GetInviteResponse>;
|
|
2695
|
+
/**
|
|
2696
|
+
* Use invite code (increments count, marks used if at max)
|
|
2697
|
+
*
|
|
2698
|
+
* @generated from message silvana.orderbook.v1.UseInviteRequest
|
|
2699
|
+
*/
|
|
2700
|
+
export type UseInviteRequest = Message<"silvana.orderbook.v1.UseInviteRequest"> & {
|
|
2701
|
+
/**
|
|
2702
|
+
* @generated from field: string invite_code = 1;
|
|
2703
|
+
*/
|
|
2704
|
+
inviteCode: string;
|
|
2705
|
+
/**
|
|
2706
|
+
* Who is using the invite
|
|
2707
|
+
*
|
|
2708
|
+
* @generated from field: optional string party_id = 2;
|
|
2709
|
+
*/
|
|
2710
|
+
partyId?: string;
|
|
2711
|
+
};
|
|
2712
|
+
/**
|
|
2713
|
+
* Describes the message silvana.orderbook.v1.UseInviteRequest.
|
|
2714
|
+
* Use `create(UseInviteRequestSchema)` to create a new message.
|
|
2715
|
+
*/
|
|
2716
|
+
export declare const UseInviteRequestSchema: GenMessage<UseInviteRequest>;
|
|
2717
|
+
/**
|
|
2718
|
+
* @generated from message silvana.orderbook.v1.UseInviteResponse
|
|
2719
|
+
*/
|
|
2720
|
+
export type UseInviteResponse = Message<"silvana.orderbook.v1.UseInviteResponse"> & {
|
|
2721
|
+
/**
|
|
2722
|
+
* @generated from field: bool success = 1;
|
|
2723
|
+
*/
|
|
2724
|
+
success: boolean;
|
|
2725
|
+
/**
|
|
2726
|
+
* @generated from field: string message = 2;
|
|
2727
|
+
*/
|
|
2728
|
+
message: string;
|
|
2729
|
+
/**
|
|
2730
|
+
* Updated invite after use
|
|
2731
|
+
*
|
|
2732
|
+
* @generated from field: optional silvana.orderbook.v1.Invite invite = 3;
|
|
2733
|
+
*/
|
|
2734
|
+
invite?: Invite;
|
|
2735
|
+
};
|
|
2736
|
+
/**
|
|
2737
|
+
* Describes the message silvana.orderbook.v1.UseInviteResponse.
|
|
2738
|
+
* Use `create(UseInviteResponseSchema)` to create a new message.
|
|
2739
|
+
*/
|
|
2740
|
+
export declare const UseInviteResponseSchema: GenMessage<UseInviteResponse>;
|
|
2419
2741
|
/**
|
|
2420
2742
|
* Create a new instrument
|
|
2421
2743
|
*
|
|
@@ -2839,6 +3161,37 @@ export declare enum MarketType {
|
|
|
2839
3161
|
* Describes the enum silvana.orderbook.v1.MarketType.
|
|
2840
3162
|
*/
|
|
2841
3163
|
export declare const MarketTypeSchema: GenEnum<MarketType>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Invite status enum
|
|
3166
|
+
*
|
|
3167
|
+
* @generated from enum silvana.orderbook.v1.InviteStatus
|
|
3168
|
+
*/
|
|
3169
|
+
export declare enum InviteStatus {
|
|
3170
|
+
/**
|
|
3171
|
+
* @generated from enum value: INVITE_STATUS_UNSPECIFIED = 0;
|
|
3172
|
+
*/
|
|
3173
|
+
UNSPECIFIED = 0,
|
|
3174
|
+
/**
|
|
3175
|
+
* @generated from enum value: INVITE_STATUS_VALID = 1;
|
|
3176
|
+
*/
|
|
3177
|
+
VALID = 1,
|
|
3178
|
+
/**
|
|
3179
|
+
* @generated from enum value: INVITE_STATUS_EXPIRED = 2;
|
|
3180
|
+
*/
|
|
3181
|
+
EXPIRED = 2,
|
|
3182
|
+
/**
|
|
3183
|
+
* @generated from enum value: INVITE_STATUS_USED = 3;
|
|
3184
|
+
*/
|
|
3185
|
+
USED = 3,
|
|
3186
|
+
/**
|
|
3187
|
+
* @generated from enum value: INVITE_STATUS_CANCELLED = 4;
|
|
3188
|
+
*/
|
|
3189
|
+
CANCELLED = 4
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* Describes the enum silvana.orderbook.v1.InviteStatus.
|
|
3193
|
+
*/
|
|
3194
|
+
export declare const InviteStatusSchema: GenEnum<InviteStatus>;
|
|
2842
3195
|
/**
|
|
2843
3196
|
* @generated from service silvana.orderbook.v1.OrderbookService
|
|
2844
3197
|
*/
|
|
@@ -2963,6 +3316,34 @@ export declare const OrderbookService: GenService<{
|
|
|
2963
3316
|
input: typeof GetLiquidityProvidersRequestSchema;
|
|
2964
3317
|
output: typeof GetLiquidityProvidersResponseSchema;
|
|
2965
3318
|
};
|
|
3319
|
+
/**
|
|
3320
|
+
* Waiting list operations (JWT auth with user 'onboard')
|
|
3321
|
+
*
|
|
3322
|
+
* @generated from rpc silvana.orderbook.v1.OrderbookService.AddWaitingListEntry
|
|
3323
|
+
*/
|
|
3324
|
+
addWaitingListEntry: {
|
|
3325
|
+
methodKind: "unary";
|
|
3326
|
+
input: typeof AddWaitingListEntryRequestSchema;
|
|
3327
|
+
output: typeof AddWaitingListEntryResponseSchema;
|
|
3328
|
+
};
|
|
3329
|
+
/**
|
|
3330
|
+
* Invite operations
|
|
3331
|
+
*
|
|
3332
|
+
* @generated from rpc silvana.orderbook.v1.OrderbookService.GetInvite
|
|
3333
|
+
*/
|
|
3334
|
+
getInvite: {
|
|
3335
|
+
methodKind: "unary";
|
|
3336
|
+
input: typeof GetInviteRequestSchema;
|
|
3337
|
+
output: typeof GetInviteResponseSchema;
|
|
3338
|
+
};
|
|
3339
|
+
/**
|
|
3340
|
+
* @generated from rpc silvana.orderbook.v1.OrderbookService.UseInvite
|
|
3341
|
+
*/
|
|
3342
|
+
useInvite: {
|
|
3343
|
+
methodKind: "unary";
|
|
3344
|
+
input: typeof UseInviteRequestSchema;
|
|
3345
|
+
output: typeof UseInviteResponseSchema;
|
|
3346
|
+
};
|
|
2966
3347
|
/**
|
|
2967
3348
|
* Admin operations (require operator authentication)
|
|
2968
3349
|
*
|