@silvana-one/orderbook 1.2.11 → 1.2.14

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.
Files changed (128) hide show
  1. package/dist/node/agent-account.d.ts +1 -0
  2. package/dist/node/agent-account.js +2 -0
  3. package/dist/node/agent-account.js.map +1 -0
  4. package/dist/node/index.cjs +197 -99
  5. package/dist/node/index.d.ts +1 -0
  6. package/dist/node/index.js +1 -0
  7. package/dist/node/index.js.map +1 -1
  8. package/dist/node/proto/silvana/ledger/v1/bridge_pb.d.ts +105 -1
  9. package/dist/node/proto/silvana/ledger/v1/bridge_pb.js +17 -2
  10. package/dist/node/proto/silvana/ledger/v1/bridge_pb.js.map +1 -1
  11. package/dist/node/proto/silvana/ledger/v1/cip56_pb.d.ts +9 -5
  12. package/dist/node/proto/silvana/ledger/v1/cip56_pb.js +2 -2
  13. package/dist/node/proto/silvana/ledger/v1/cip56_pb.js.map +1 -1
  14. package/dist/node/proto/silvana/ledger/v1/common_pb.d.ts +27 -1
  15. package/dist/node/proto/silvana/ledger/v1/common_pb.js +28 -2
  16. package/dist/node/proto/silvana/ledger/v1/common_pb.js.map +1 -1
  17. package/dist/node/proto/silvana/ledger/v1/dvp_pb.js +1 -1
  18. package/dist/node/proto/silvana/ledger/v1/faucet_pb.js +1 -1
  19. package/dist/node/proto/silvana/ledger/v1/fees_pb.js +1 -1
  20. package/dist/node/proto/silvana/ledger/v1/lock_pb.js +1 -1
  21. package/dist/node/proto/silvana/ledger/v1/multicall_pb.js +1 -1
  22. package/dist/node/proto/silvana/ledger/v1/onboarding_pb.js +1 -1
  23. package/dist/node/proto/silvana/ledger/v1/pay_fee_pb.js +1 -1
  24. package/dist/node/proto/silvana/ledger/v1/preapproval_pb.js +1 -1
  25. package/dist/node/proto/silvana/ledger/v1/queries_pb.js +1 -1
  26. package/dist/node/proto/silvana/ledger/v1/recurring_pb.js +1 -1
  27. package/dist/node/proto/silvana/ledger/v1/service_pb.js +1 -1
  28. package/dist/node/proto/silvana/ledger/v1/transactions_pb.d.ts +39 -0
  29. package/dist/node/proto/silvana/ledger/v1/transactions_pb.js +3 -2
  30. package/dist/node/proto/silvana/ledger/v1/transactions_pb.js.map +1 -1
  31. package/dist/node/proto/silvana/ledger/v1/transfer_pb.d.ts +2 -2
  32. package/dist/node/proto/silvana/ledger/v1/transfer_pb.js +1 -1
  33. package/dist/node/proto/silvana/ledger/v1/usdcx_pb.d.ts +138 -0
  34. package/dist/node/proto/silvana/ledger/v1/usdcx_pb.js +39 -0
  35. package/dist/node/proto/silvana/ledger/v1/usdcx_pb.js.map +1 -0
  36. package/dist/node/proto/silvana/news/v1/news_pb.js +1 -1
  37. package/dist/node/proto/silvana/orderbook/v1/agent_account_pb.d.ts +509 -0
  38. package/dist/node/proto/silvana/orderbook/v1/agent_account_pb.js +122 -0
  39. package/dist/node/proto/silvana/orderbook/v1/agent_account_pb.js.map +1 -0
  40. package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js +1 -1
  41. package/dist/node/proto/silvana/pricing/v1/pricing_pb.d.ts +61 -0
  42. package/dist/node/proto/silvana/pricing/v1/pricing_pb.js +26 -21
  43. package/dist/node/proto/silvana/pricing/v1/pricing_pb.js.map +1 -1
  44. package/dist/node/proto/silvana/rfqv2/v1/atomic_ledger_pb.js +1 -1
  45. package/dist/node/proto/silvana/rfqv2/v1/rfqv2_pb.d.ts +20 -2
  46. package/dist/node/proto/silvana/rfqv2/v1/rfqv2_pb.js +2 -2
  47. package/dist/node/proto/silvana/rfqv2/v1/rfqv2_pb.js.map +1 -1
  48. package/dist/node/proto/silvana/settlement/v1/settlement_pb.d.ts +27 -1
  49. package/dist/node/proto/silvana/settlement/v1/settlement_pb.js +28 -2
  50. package/dist/node/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/dist/tsconfig.web.tsbuildinfo +1 -1
  53. package/dist/web/agent-account.d.ts +1 -0
  54. package/dist/web/agent-account.js +2 -0
  55. package/dist/web/agent-account.js.map +1 -0
  56. package/dist/web/index.d.ts +1 -0
  57. package/dist/web/index.js +1 -0
  58. package/dist/web/index.js.map +1 -1
  59. package/dist/web/proto/silvana/ledger/v1/bridge_pb.d.ts +105 -1
  60. package/dist/web/proto/silvana/ledger/v1/bridge_pb.js +17 -2
  61. package/dist/web/proto/silvana/ledger/v1/bridge_pb.js.map +1 -1
  62. package/dist/web/proto/silvana/ledger/v1/cip56_pb.d.ts +9 -5
  63. package/dist/web/proto/silvana/ledger/v1/cip56_pb.js +2 -2
  64. package/dist/web/proto/silvana/ledger/v1/cip56_pb.js.map +1 -1
  65. package/dist/web/proto/silvana/ledger/v1/common_pb.d.ts +27 -1
  66. package/dist/web/proto/silvana/ledger/v1/common_pb.js +28 -2
  67. package/dist/web/proto/silvana/ledger/v1/common_pb.js.map +1 -1
  68. package/dist/web/proto/silvana/ledger/v1/dvp_pb.js +1 -1
  69. package/dist/web/proto/silvana/ledger/v1/faucet_pb.js +1 -1
  70. package/dist/web/proto/silvana/ledger/v1/fees_pb.js +1 -1
  71. package/dist/web/proto/silvana/ledger/v1/lock_pb.js +1 -1
  72. package/dist/web/proto/silvana/ledger/v1/multicall_pb.js +1 -1
  73. package/dist/web/proto/silvana/ledger/v1/onboarding_pb.js +1 -1
  74. package/dist/web/proto/silvana/ledger/v1/pay_fee_pb.js +1 -1
  75. package/dist/web/proto/silvana/ledger/v1/preapproval_pb.js +1 -1
  76. package/dist/web/proto/silvana/ledger/v1/queries_pb.js +1 -1
  77. package/dist/web/proto/silvana/ledger/v1/recurring_pb.js +1 -1
  78. package/dist/web/proto/silvana/ledger/v1/service_pb.js +1 -1
  79. package/dist/web/proto/silvana/ledger/v1/transactions_pb.d.ts +39 -0
  80. package/dist/web/proto/silvana/ledger/v1/transactions_pb.js +3 -2
  81. package/dist/web/proto/silvana/ledger/v1/transactions_pb.js.map +1 -1
  82. package/dist/web/proto/silvana/ledger/v1/transfer_pb.d.ts +2 -2
  83. package/dist/web/proto/silvana/ledger/v1/transfer_pb.js +1 -1
  84. package/dist/web/proto/silvana/ledger/v1/usdcx_pb.d.ts +138 -0
  85. package/dist/web/proto/silvana/ledger/v1/usdcx_pb.js +39 -0
  86. package/dist/web/proto/silvana/ledger/v1/usdcx_pb.js.map +1 -0
  87. package/dist/web/proto/silvana/news/v1/news_pb.js +1 -1
  88. package/dist/web/proto/silvana/orderbook/v1/agent_account_pb.d.ts +509 -0
  89. package/dist/web/proto/silvana/orderbook/v1/agent_account_pb.js +122 -0
  90. package/dist/web/proto/silvana/orderbook/v1/agent_account_pb.js.map +1 -0
  91. package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js +1 -1
  92. package/dist/web/proto/silvana/pricing/v1/pricing_pb.d.ts +61 -0
  93. package/dist/web/proto/silvana/pricing/v1/pricing_pb.js +26 -21
  94. package/dist/web/proto/silvana/pricing/v1/pricing_pb.js.map +1 -1
  95. package/dist/web/proto/silvana/rfqv2/v1/atomic_ledger_pb.js +1 -1
  96. package/dist/web/proto/silvana/rfqv2/v1/rfqv2_pb.d.ts +20 -2
  97. package/dist/web/proto/silvana/rfqv2/v1/rfqv2_pb.js +2 -2
  98. package/dist/web/proto/silvana/rfqv2/v1/rfqv2_pb.js.map +1 -1
  99. package/dist/web/proto/silvana/settlement/v1/settlement_pb.d.ts +27 -1
  100. package/dist/web/proto/silvana/settlement/v1/settlement_pb.js +28 -2
  101. package/dist/web/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
  102. package/package.json +1 -1
  103. package/src/agent-account.ts +1 -0
  104. package/src/index.ts +1 -0
  105. package/src/proto/silvana/ledger/v1/bridge_pb.ts +128 -3
  106. package/src/proto/silvana/ledger/v1/cip56_pb.ts +12 -7
  107. package/src/proto/silvana/ledger/v1/common_pb.ts +34 -2
  108. package/src/proto/silvana/ledger/v1/dvp_pb.ts +1 -1
  109. package/src/proto/silvana/ledger/v1/faucet_pb.ts +1 -1
  110. package/src/proto/silvana/ledger/v1/fees_pb.ts +1 -1
  111. package/src/proto/silvana/ledger/v1/lock_pb.ts +1 -1
  112. package/src/proto/silvana/ledger/v1/multicall_pb.ts +1 -1
  113. package/src/proto/silvana/ledger/v1/onboarding_pb.ts +1 -1
  114. package/src/proto/silvana/ledger/v1/pay_fee_pb.ts +1 -1
  115. package/src/proto/silvana/ledger/v1/preapproval_pb.ts +1 -1
  116. package/src/proto/silvana/ledger/v1/queries_pb.ts +1 -1
  117. package/src/proto/silvana/ledger/v1/recurring_pb.ts +1 -1
  118. package/src/proto/silvana/ledger/v1/service_pb.ts +1 -1
  119. package/src/proto/silvana/ledger/v1/transactions_pb.ts +42 -2
  120. package/src/proto/silvana/ledger/v1/transfer_pb.ts +3 -3
  121. package/src/proto/silvana/ledger/v1/usdcx_pb.ts +169 -0
  122. package/src/proto/silvana/news/v1/news_pb.ts +1 -1
  123. package/src/proto/silvana/orderbook/v1/agent_account_pb.ts +630 -0
  124. package/src/proto/silvana/orderbook/v1/orderbook_pb.ts +1 -1
  125. package/src/proto/silvana/pricing/v1/pricing_pb.ts +92 -21
  126. package/src/proto/silvana/rfqv2/v1/atomic_ledger_pb.ts +1 -1
  127. package/src/proto/silvana/rfqv2/v1/rfqv2_pb.ts +25 -4
  128. package/src/proto/silvana/settlement/v1/settlement_pb.ts +34 -2
@@ -0,0 +1,138 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file silvana/ledger/v1/usdcx.proto.
5
+ */
6
+ export declare const file_silvana_ledger_v1_usdcx: GenFile;
7
+ /**
8
+ * Create a BridgeUserAgreementRequest (onboarding).
9
+ *
10
+ * @generated from message silvana.ledger.v1.UsdcxRequestAgreementParams
11
+ */
12
+ export type UsdcxRequestAgreementParams = Message<"silvana.ledger.v1.UsdcxRequestAgreementParams"> & {
13
+ /**
14
+ * @generated from field: bool pre_approval = 1;
15
+ */
16
+ preApproval: boolean;
17
+ /**
18
+ * Client UUID v4, reused on every retry of this onboarding; keys the
19
+ * command id.
20
+ *
21
+ * @generated from field: string request_id = 2;
22
+ */
23
+ requestId: string;
24
+ };
25
+ /**
26
+ * Describes the message silvana.ledger.v1.UsdcxRequestAgreementParams.
27
+ * Use `create(UsdcxRequestAgreementParamsSchema)` to create a new message.
28
+ */
29
+ export declare const UsdcxRequestAgreementParamsSchema: GenMessage<UsdcxRequestAgreementParams>;
30
+ /**
31
+ * BridgeUserAgreement_Mint of a DepositAttestation.
32
+ *
33
+ * @generated from message silvana.ledger.v1.UsdcxMintParams
34
+ */
35
+ export type UsdcxMintParams = Message<"silvana.ledger.v1.UsdcxMintParams"> & {
36
+ /**
37
+ * @generated from field: string deposit_attestation_cid = 1;
38
+ */
39
+ depositAttestationCid: string;
40
+ };
41
+ /**
42
+ * Describes the message silvana.ledger.v1.UsdcxMintParams.
43
+ * Use `create(UsdcxMintParamsSchema)` to create a new message.
44
+ */
45
+ export declare const UsdcxMintParamsSchema: GenMessage<UsdcxMintParams>;
46
+ /**
47
+ * BridgeUserAgreement_Burn; the destination domain is fixed to 0 (Ethereum).
48
+ *
49
+ * @generated from message silvana.ledger.v1.UsdcxBurnParams
50
+ */
51
+ export type UsdcxBurnParams = Message<"silvana.ledger.v1.UsdcxBurnParams"> & {
52
+ /**
53
+ * Decimal, at most 6 fractional digits.
54
+ *
55
+ * @generated from field: string amount = 1;
56
+ */
57
+ amount: string;
58
+ /**
59
+ * 0x + 40 hex; the server lowercases it.
60
+ *
61
+ * @generated from field: string destination_recipient = 2;
62
+ */
63
+ destinationRecipient: string;
64
+ /**
65
+ * Client UUID v4: the idempotency key of this withdrawal. Reuse it on
66
+ * every retry; never start a new one while an earlier burn is unsettled.
67
+ *
68
+ * @generated from field: string request_id = 3;
69
+ */
70
+ requestId: string;
71
+ /**
72
+ * Optional; empty = the server selects the party's unlocked holdings.
73
+ *
74
+ * @generated from field: repeated string input_holding_cids = 4;
75
+ */
76
+ inputHoldingCids: string[];
77
+ /**
78
+ * Optional cap for server selection (default 20).
79
+ *
80
+ * @generated from field: optional uint32 max_input_holdings = 5;
81
+ */
82
+ maxInputHoldings?: number | undefined;
83
+ };
84
+ /**
85
+ * Describes the message silvana.ledger.v1.UsdcxBurnParams.
86
+ * Use `create(UsdcxBurnParamsSchema)` to create a new message.
87
+ */
88
+ export declare const UsdcxBurnParamsSchema: GenMessage<UsdcxBurnParams>;
89
+ /**
90
+ * BridgeUserAgreement_ReclaimHolding of a RevokedWithdrawAttestation.
91
+ *
92
+ * @generated from message silvana.ledger.v1.UsdcxReclaimHoldingParams
93
+ */
94
+ export type UsdcxReclaimHoldingParams = Message<"silvana.ledger.v1.UsdcxReclaimHoldingParams"> & {
95
+ /**
96
+ * @generated from field: string revoked_withdraw_attestation_cid = 1;
97
+ */
98
+ revokedWithdrawAttestationCid: string;
99
+ };
100
+ /**
101
+ * Describes the message silvana.ledger.v1.UsdcxReclaimHoldingParams.
102
+ * Use `create(UsdcxReclaimHoldingParamsSchema)` to create a new message.
103
+ */
104
+ export declare const UsdcxReclaimHoldingParamsSchema: GenMessage<UsdcxReclaimHoldingParams>;
105
+ /**
106
+ * BridgeUserAgreement_UpdatePreApproval.
107
+ *
108
+ * @generated from message silvana.ledger.v1.UsdcxUpdatePreApprovalParams
109
+ */
110
+ export type UsdcxUpdatePreApprovalParams = Message<"silvana.ledger.v1.UsdcxUpdatePreApprovalParams"> & {
111
+ /**
112
+ * @generated from field: bool pre_approval = 1;
113
+ */
114
+ preApproval: boolean;
115
+ };
116
+ /**
117
+ * Describes the message silvana.ledger.v1.UsdcxUpdatePreApprovalParams.
118
+ * Use `create(UsdcxUpdatePreApprovalParamsSchema)` to create a new message.
119
+ */
120
+ export declare const UsdcxUpdatePreApprovalParamsSchema: GenMessage<UsdcxUpdatePreApprovalParams>;
121
+ /**
122
+ * BridgeUserAgreement_Terminate, with the party as the actor.
123
+ *
124
+ * @generated from message silvana.ledger.v1.UsdcxTerminateAgreementParams
125
+ */
126
+ export type UsdcxTerminateAgreementParams = Message<"silvana.ledger.v1.UsdcxTerminateAgreementParams"> & {
127
+ /**
128
+ * Free text without line breaks.
129
+ *
130
+ * @generated from field: string reason = 1;
131
+ */
132
+ reason: string;
133
+ };
134
+ /**
135
+ * Describes the message silvana.ledger.v1.UsdcxTerminateAgreementParams.
136
+ * Use `create(UsdcxTerminateAgreementParamsSchema)` to create a new message.
137
+ */
138
+ export declare const UsdcxTerminateAgreementParamsSchema: GenMessage<UsdcxTerminateAgreementParams>;
@@ -0,0 +1,39 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=ts,js_import_style=module,import_extension=.js"
2
+ // @generated from file silvana/ledger/v1/usdcx.proto (package silvana.ledger.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file silvana/ledger/v1/usdcx.proto.
7
+ */
8
+ export const file_silvana_ledger_v1_usdcx = /*@__PURE__*/ fileDesc("Ch1zaWx2YW5hL2xlZGdlci92MS91c2RjeC5wcm90bxIRc2lsdmFuYS5sZWRnZXIudjEiRwobVXNkY3hSZXF1ZXN0QWdyZWVtZW50UGFyYW1zEhQKDHByZV9hcHByb3ZhbBgBIAEoCBISCgpyZXF1ZXN0X2lkGAIgASgJIjIKD1VzZGN4TWludFBhcmFtcxIfChdkZXBvc2l0X2F0dGVzdGF0aW9uX2NpZBgBIAEoCSKoAQoPVXNkY3hCdXJuUGFyYW1zEg4KBmFtb3VudBgBIAEoCRIdChVkZXN0aW5hdGlvbl9yZWNpcGllbnQYAiABKAkSEgoKcmVxdWVzdF9pZBgDIAEoCRIaChJpbnB1dF9ob2xkaW5nX2NpZHMYBCADKAkSHwoSbWF4X2lucHV0X2hvbGRpbmdzGAUgASgNSACIAQFCFQoTX21heF9pbnB1dF9ob2xkaW5ncyJFChlVc2RjeFJlY2xhaW1Ib2xkaW5nUGFyYW1zEigKIHJldm9rZWRfd2l0aGRyYXdfYXR0ZXN0YXRpb25fY2lkGAEgASgJIjQKHFVzZGN4VXBkYXRlUHJlQXBwcm92YWxQYXJhbXMSFAoMcHJlX2FwcHJvdmFsGAEgASgIIi8KHVVzZGN4VGVybWluYXRlQWdyZWVtZW50UGFyYW1zEg4KBnJlYXNvbhgBIAEoCUIxWi9naXRodWIuY29tL1NpbHZhbmFPbmUvY2FudG9uLWFnZW50L3Byb3RvO2xlZGdlcmIGcHJvdG8z");
9
+ /**
10
+ * Describes the message silvana.ledger.v1.UsdcxRequestAgreementParams.
11
+ * Use `create(UsdcxRequestAgreementParamsSchema)` to create a new message.
12
+ */
13
+ export const UsdcxRequestAgreementParamsSchema = /*@__PURE__*/ messageDesc(file_silvana_ledger_v1_usdcx, 0);
14
+ /**
15
+ * Describes the message silvana.ledger.v1.UsdcxMintParams.
16
+ * Use `create(UsdcxMintParamsSchema)` to create a new message.
17
+ */
18
+ export const UsdcxMintParamsSchema = /*@__PURE__*/ messageDesc(file_silvana_ledger_v1_usdcx, 1);
19
+ /**
20
+ * Describes the message silvana.ledger.v1.UsdcxBurnParams.
21
+ * Use `create(UsdcxBurnParamsSchema)` to create a new message.
22
+ */
23
+ export const UsdcxBurnParamsSchema = /*@__PURE__*/ messageDesc(file_silvana_ledger_v1_usdcx, 2);
24
+ /**
25
+ * Describes the message silvana.ledger.v1.UsdcxReclaimHoldingParams.
26
+ * Use `create(UsdcxReclaimHoldingParamsSchema)` to create a new message.
27
+ */
28
+ export const UsdcxReclaimHoldingParamsSchema = /*@__PURE__*/ messageDesc(file_silvana_ledger_v1_usdcx, 3);
29
+ /**
30
+ * Describes the message silvana.ledger.v1.UsdcxUpdatePreApprovalParams.
31
+ * Use `create(UsdcxUpdatePreApprovalParamsSchema)` to create a new message.
32
+ */
33
+ export const UsdcxUpdatePreApprovalParamsSchema = /*@__PURE__*/ messageDesc(file_silvana_ledger_v1_usdcx, 4);
34
+ /**
35
+ * Describes the message silvana.ledger.v1.UsdcxTerminateAgreementParams.
36
+ * Use `create(UsdcxTerminateAgreementParamsSchema)` to create a new message.
37
+ */
38
+ export const UsdcxTerminateAgreementParamsSchema = /*@__PURE__*/ messageDesc(file_silvana_ledger_v1_usdcx, 5);
39
+ //# sourceMappingURL=usdcx_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usdcx_pb.js","sourceRoot":"","sources":["../../../../../../src/proto/silvana/ledger/v1/usdcx_pb.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,gGAAgG;AAChG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAY,aAAa,CAChE,QAAQ,CAAC,swBAAswB,CAAC,CAAC;AAsBnxB;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAA4C,aAAa,CACrG,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAc/C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AA6C/C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAc/C;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0C,aAAa,CACjG,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAc/C;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAA6C,aAAa,CACvG,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAgB/C;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA8C,aAAa,CACzG,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v2.14.0 with parameter "target=ts,js_import_style=module,import_extension=.js"
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=ts,js_import_style=module,import_extension=.js"
2
2
  // @generated from file silvana/news/v1/news.proto (package silvana.news.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
@@ -0,0 +1,509 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file silvana/orderbook/v1/agent_account.proto.
6
+ */
7
+ export declare const file_silvana_orderbook_v1_agent_account: GenFile;
8
+ /**
9
+ * @generated from message silvana.orderbook.v1.AgentSummary
10
+ */
11
+ export type AgentSummary = Message<"silvana.orderbook.v1.AgentSummary"> & {
12
+ /**
13
+ * @generated from field: optional string party_id = 1;
14
+ */
15
+ partyId?: string | undefined;
16
+ /**
17
+ * @generated from field: string agent_name = 2;
18
+ */
19
+ agentName: string;
20
+ /**
21
+ * @generated from field: silvana.orderbook.v1.AgentOnboardingStatus status = 3;
22
+ */
23
+ status: AgentOnboardingStatus;
24
+ /**
25
+ * @generated from field: google.protobuf.Timestamp registered_at = 4;
26
+ */
27
+ registeredAt?: Timestamp | undefined;
28
+ };
29
+ /**
30
+ * Describes the message silvana.orderbook.v1.AgentSummary.
31
+ * Use `create(AgentSummarySchema)` to create a new message.
32
+ */
33
+ export declare const AgentSummarySchema: GenMessage<AgentSummary>;
34
+ /**
35
+ * @generated from message silvana.orderbook.v1.AgentInvite
36
+ */
37
+ export type AgentInvite = Message<"silvana.orderbook.v1.AgentInvite"> & {
38
+ /**
39
+ * @generated from field: string invite_code = 1;
40
+ */
41
+ inviteCode: string;
42
+ /**
43
+ * @generated from field: uint32 slot = 2;
44
+ */
45
+ slot: number;
46
+ /**
47
+ * @generated from field: string status = 3;
48
+ */
49
+ status: string;
50
+ /**
51
+ * @generated from field: google.protobuf.Timestamp created_at = 4;
52
+ */
53
+ createdAt?: Timestamp | undefined;
54
+ /**
55
+ * @generated from field: optional silvana.orderbook.v1.AgentSummary agent = 5;
56
+ */
57
+ agent?: AgentSummary | undefined;
58
+ };
59
+ /**
60
+ * Describes the message silvana.orderbook.v1.AgentInvite.
61
+ * Use `create(AgentInviteSchema)` to create a new message.
62
+ */
63
+ export declare const AgentInviteSchema: GenMessage<AgentInvite>;
64
+ /**
65
+ * @generated from message silvana.orderbook.v1.GetAgentAccountRequest
66
+ */
67
+ export type GetAgentAccountRequest = Message<"silvana.orderbook.v1.GetAgentAccountRequest"> & {};
68
+ /**
69
+ * Describes the message silvana.orderbook.v1.GetAgentAccountRequest.
70
+ * Use `create(GetAgentAccountRequestSchema)` to create a new message.
71
+ */
72
+ export declare const GetAgentAccountRequestSchema: GenMessage<GetAgentAccountRequest>;
73
+ /**
74
+ * @generated from message silvana.orderbook.v1.GetAgentAccountResponse
75
+ */
76
+ export type GetAgentAccountResponse = Message<"silvana.orderbook.v1.GetAgentAccountResponse"> & {
77
+ /**
78
+ * @generated from field: repeated silvana.orderbook.v1.AgentInvite invites = 1;
79
+ */
80
+ invites: AgentInvite[];
81
+ /**
82
+ * @generated from field: uint32 max_invites = 2;
83
+ */
84
+ maxInvites: number;
85
+ };
86
+ /**
87
+ * Describes the message silvana.orderbook.v1.GetAgentAccountResponse.
88
+ * Use `create(GetAgentAccountResponseSchema)` to create a new message.
89
+ */
90
+ export declare const GetAgentAccountResponseSchema: GenMessage<GetAgentAccountResponse>;
91
+ /**
92
+ * @generated from message silvana.orderbook.v1.CreateAgentInviteRequest
93
+ */
94
+ export type CreateAgentInviteRequest = Message<"silvana.orderbook.v1.CreateAgentInviteRequest"> & {};
95
+ /**
96
+ * Describes the message silvana.orderbook.v1.CreateAgentInviteRequest.
97
+ * Use `create(CreateAgentInviteRequestSchema)` to create a new message.
98
+ */
99
+ export declare const CreateAgentInviteRequestSchema: GenMessage<CreateAgentInviteRequest>;
100
+ /**
101
+ * @generated from message silvana.orderbook.v1.CreateAgentInviteResponse
102
+ */
103
+ export type CreateAgentInviteResponse = Message<"silvana.orderbook.v1.CreateAgentInviteResponse"> & {
104
+ /**
105
+ * @generated from field: optional silvana.orderbook.v1.AgentInvite invite = 1;
106
+ */
107
+ invite?: AgentInvite | undefined;
108
+ /**
109
+ * @generated from field: bool limit_reached = 2;
110
+ */
111
+ limitReached: boolean;
112
+ };
113
+ /**
114
+ * Describes the message silvana.orderbook.v1.CreateAgentInviteResponse.
115
+ * Use `create(CreateAgentInviteResponseSchema)` to create a new message.
116
+ */
117
+ export declare const CreateAgentInviteResponseSchema: GenMessage<CreateAgentInviteResponse>;
118
+ /**
119
+ * @generated from message silvana.orderbook.v1.GetAgentHoldingsRequest
120
+ */
121
+ export type GetAgentHoldingsRequest = Message<"silvana.orderbook.v1.GetAgentHoldingsRequest"> & {
122
+ /**
123
+ * @generated from field: string party_id = 1;
124
+ */
125
+ partyId: string;
126
+ };
127
+ /**
128
+ * Describes the message silvana.orderbook.v1.GetAgentHoldingsRequest.
129
+ * Use `create(GetAgentHoldingsRequestSchema)` to create a new message.
130
+ */
131
+ export declare const GetAgentHoldingsRequestSchema: GenMessage<GetAgentHoldingsRequest>;
132
+ /**
133
+ * @generated from message silvana.orderbook.v1.AgentHolding
134
+ */
135
+ export type AgentHolding = Message<"silvana.orderbook.v1.AgentHolding"> & {
136
+ /**
137
+ * @generated from field: string contract_id = 1;
138
+ */
139
+ contractId: string;
140
+ /**
141
+ * @generated from field: string template_id = 2;
142
+ */
143
+ templateId: string;
144
+ /**
145
+ * @generated from field: string instrument_id = 3;
146
+ */
147
+ instrumentId: string;
148
+ /**
149
+ * @generated from field: string instrument_admin = 4;
150
+ */
151
+ instrumentAdmin: string;
152
+ /**
153
+ * @generated from field: string amount = 5;
154
+ */
155
+ amount: string;
156
+ /**
157
+ * @generated from field: bool is_locked = 6;
158
+ */
159
+ isLocked: boolean;
160
+ /**
161
+ * @generated from field: int64 lock_expires_at_micros = 7;
162
+ */
163
+ lockExpiresAtMicros: bigint;
164
+ /**
165
+ * @generated from field: string label = 8;
166
+ */
167
+ label: string;
168
+ };
169
+ /**
170
+ * Describes the message silvana.orderbook.v1.AgentHolding.
171
+ * Use `create(AgentHoldingSchema)` to create a new message.
172
+ */
173
+ export declare const AgentHoldingSchema: GenMessage<AgentHolding>;
174
+ /**
175
+ * @generated from message silvana.orderbook.v1.AgentTokenTotal
176
+ */
177
+ export type AgentTokenTotal = Message<"silvana.orderbook.v1.AgentTokenTotal"> & {
178
+ /**
179
+ * @generated from field: string instrument_id = 1;
180
+ */
181
+ instrumentId: string;
182
+ /**
183
+ * @generated from field: string instrument_admin = 2;
184
+ */
185
+ instrumentAdmin: string;
186
+ /**
187
+ * @generated from field: string total_amount = 3;
188
+ */
189
+ totalAmount: string;
190
+ /**
191
+ * @generated from field: string locked_amount = 4;
192
+ */
193
+ lockedAmount: string;
194
+ /**
195
+ * @generated from field: string unlocked_amount = 5;
196
+ */
197
+ unlockedAmount: string;
198
+ };
199
+ /**
200
+ * Describes the message silvana.orderbook.v1.AgentTokenTotal.
201
+ * Use `create(AgentTokenTotalSchema)` to create a new message.
202
+ */
203
+ export declare const AgentTokenTotalSchema: GenMessage<AgentTokenTotal>;
204
+ /**
205
+ * @generated from message silvana.orderbook.v1.GetAgentHoldingsResponse
206
+ */
207
+ export type GetAgentHoldingsResponse = Message<"silvana.orderbook.v1.GetAgentHoldingsResponse"> & {
208
+ /**
209
+ * @generated from field: repeated silvana.orderbook.v1.AgentHolding holdings = 1;
210
+ */
211
+ holdings: AgentHolding[];
212
+ /**
213
+ * @generated from field: repeated silvana.orderbook.v1.AgentTokenTotal totals = 2;
214
+ */
215
+ totals: AgentTokenTotal[];
216
+ /**
217
+ * @generated from field: bool truncated = 3;
218
+ */
219
+ truncated: boolean;
220
+ /**
221
+ * @generated from field: google.protobuf.Timestamp as_of = 4;
222
+ */
223
+ asOf?: Timestamp | undefined;
224
+ /**
225
+ * @generated from field: bool stale = 5;
226
+ */
227
+ stale: boolean;
228
+ };
229
+ /**
230
+ * Describes the message silvana.orderbook.v1.GetAgentHoldingsResponse.
231
+ * Use `create(GetAgentHoldingsResponseSchema)` to create a new message.
232
+ */
233
+ export declare const GetAgentHoldingsResponseSchema: GenMessage<GetAgentHoldingsResponse>;
234
+ /**
235
+ * @generated from message silvana.orderbook.v1.GetAgentActivityRequest
236
+ */
237
+ export type GetAgentActivityRequest = Message<"silvana.orderbook.v1.GetAgentActivityRequest"> & {
238
+ /**
239
+ * @generated from field: string party_id = 1;
240
+ */
241
+ partyId: string;
242
+ /**
243
+ * @generated from field: uint32 limit = 2;
244
+ */
245
+ limit: number;
246
+ /**
247
+ * @generated from field: uint32 offset = 3;
248
+ */
249
+ offset: number;
250
+ };
251
+ /**
252
+ * Describes the message silvana.orderbook.v1.GetAgentActivityRequest.
253
+ * Use `create(GetAgentActivityRequestSchema)` to create a new message.
254
+ */
255
+ export declare const GetAgentActivityRequestSchema: GenMessage<GetAgentActivityRequest>;
256
+ /**
257
+ * @generated from message silvana.orderbook.v1.AgentActivityItem
258
+ */
259
+ export type AgentActivityItem = Message<"silvana.orderbook.v1.AgentActivityItem"> & {
260
+ /**
261
+ * @generated from field: string row_id = 1;
262
+ */
263
+ rowId: string;
264
+ /**
265
+ * @generated from field: string source = 2;
266
+ */
267
+ source: string;
268
+ /**
269
+ * @generated from field: string side = 3;
270
+ */
271
+ side: string;
272
+ /**
273
+ * @generated from field: string role = 4;
274
+ */
275
+ role: string;
276
+ /**
277
+ * @generated from field: string market_id = 5;
278
+ */
279
+ marketId: string;
280
+ /**
281
+ * @generated from field: string base_instrument = 6;
282
+ */
283
+ baseInstrument: string;
284
+ /**
285
+ * @generated from field: string base_quantity = 7;
286
+ */
287
+ baseQuantity: string;
288
+ /**
289
+ * @generated from field: string quote_instrument = 8;
290
+ */
291
+ quoteInstrument: string;
292
+ /**
293
+ * @generated from field: string quote_quantity = 9;
294
+ */
295
+ quoteQuantity: string;
296
+ /**
297
+ * @generated from field: string status = 10;
298
+ */
299
+ status: string;
300
+ /**
301
+ * @generated from field: google.protobuf.Timestamp created_at = 11;
302
+ */
303
+ createdAt?: Timestamp | undefined;
304
+ /**
305
+ * @generated from field: optional google.protobuf.Timestamp settled_at = 12;
306
+ */
307
+ settledAt?: Timestamp | undefined;
308
+ /**
309
+ * @generated from field: optional string update_id = 13;
310
+ */
311
+ updateId?: string | undefined;
312
+ /**
313
+ * @generated from field: optional string fee_amount = 14;
314
+ */
315
+ feeAmount?: string | undefined;
316
+ /**
317
+ * @generated from field: optional string fee_instrument = 15;
318
+ */
319
+ feeInstrument?: string | undefined;
320
+ };
321
+ /**
322
+ * Describes the message silvana.orderbook.v1.AgentActivityItem.
323
+ * Use `create(AgentActivityItemSchema)` to create a new message.
324
+ */
325
+ export declare const AgentActivityItemSchema: GenMessage<AgentActivityItem>;
326
+ /**
327
+ * @generated from message silvana.orderbook.v1.GetAgentActivityResponse
328
+ */
329
+ export type GetAgentActivityResponse = Message<"silvana.orderbook.v1.GetAgentActivityResponse"> & {
330
+ /**
331
+ * @generated from field: repeated silvana.orderbook.v1.AgentActivityItem items = 1;
332
+ */
333
+ items: AgentActivityItem[];
334
+ /**
335
+ * @generated from field: uint64 total = 2;
336
+ */
337
+ total: bigint;
338
+ };
339
+ /**
340
+ * Describes the message silvana.orderbook.v1.GetAgentActivityResponse.
341
+ * Use `create(GetAgentActivityResponseSchema)` to create a new message.
342
+ */
343
+ export declare const GetAgentActivityResponseSchema: GenMessage<GetAgentActivityResponse>;
344
+ /**
345
+ * @generated from message silvana.orderbook.v1.GetAgentLedgerRequest
346
+ */
347
+ export type GetAgentLedgerRequest = Message<"silvana.orderbook.v1.GetAgentLedgerRequest"> & {
348
+ /**
349
+ * @generated from field: string party_id = 1;
350
+ */
351
+ partyId: string;
352
+ /**
353
+ * @generated from field: uint32 limit = 2;
354
+ */
355
+ limit: number;
356
+ /**
357
+ * @generated from field: uint32 offset = 3;
358
+ */
359
+ offset: number;
360
+ };
361
+ /**
362
+ * Describes the message silvana.orderbook.v1.GetAgentLedgerRequest.
363
+ * Use `create(GetAgentLedgerRequestSchema)` to create a new message.
364
+ */
365
+ export declare const GetAgentLedgerRequestSchema: GenMessage<GetAgentLedgerRequest>;
366
+ /**
367
+ * @generated from message silvana.orderbook.v1.AgentLedgerTx
368
+ */
369
+ export type AgentLedgerTx = Message<"silvana.orderbook.v1.AgentLedgerTx"> & {
370
+ /**
371
+ * @generated from field: uint64 id = 1;
372
+ */
373
+ id: bigint;
374
+ /**
375
+ * @generated from field: string tx_type = 2;
376
+ */
377
+ txType: string;
378
+ /**
379
+ * @generated from field: string result = 3;
380
+ */
381
+ result: string;
382
+ /**
383
+ * @generated from field: optional string update_id = 4;
384
+ */
385
+ updateId?: string | undefined;
386
+ /**
387
+ * @generated from field: optional string settlement_proposal_id = 5;
388
+ */
389
+ settlementProposalId?: string | undefined;
390
+ /**
391
+ * @generated from field: optional string market_id = 6;
392
+ */
393
+ marketId?: string | undefined;
394
+ /**
395
+ * @generated from field: optional string daml_choice = 7;
396
+ */
397
+ damlChoice?: string | undefined;
398
+ /**
399
+ * @generated from field: optional string amount = 8;
400
+ */
401
+ amount?: string | undefined;
402
+ /**
403
+ * @generated from field: optional string token = 9;
404
+ */
405
+ token?: string | undefined;
406
+ /**
407
+ * @generated from field: optional uint64 traffic_total = 10;
408
+ */
409
+ trafficTotal?: bigint | undefined;
410
+ /**
411
+ * @generated from field: google.protobuf.Timestamp created_at = 11;
412
+ */
413
+ createdAt?: Timestamp | undefined;
414
+ };
415
+ /**
416
+ * Describes the message silvana.orderbook.v1.AgentLedgerTx.
417
+ * Use `create(AgentLedgerTxSchema)` to create a new message.
418
+ */
419
+ export declare const AgentLedgerTxSchema: GenMessage<AgentLedgerTx>;
420
+ /**
421
+ * @generated from message silvana.orderbook.v1.GetAgentLedgerResponse
422
+ */
423
+ export type GetAgentLedgerResponse = Message<"silvana.orderbook.v1.GetAgentLedgerResponse"> & {
424
+ /**
425
+ * @generated from field: repeated silvana.orderbook.v1.AgentLedgerTx transactions = 1;
426
+ */
427
+ transactions: AgentLedgerTx[];
428
+ /**
429
+ * @generated from field: uint64 total = 2;
430
+ */
431
+ total: bigint;
432
+ };
433
+ /**
434
+ * Describes the message silvana.orderbook.v1.GetAgentLedgerResponse.
435
+ * Use `create(GetAgentLedgerResponseSchema)` to create a new message.
436
+ */
437
+ export declare const GetAgentLedgerResponseSchema: GenMessage<GetAgentLedgerResponse>;
438
+ /**
439
+ * @generated from enum silvana.orderbook.v1.AgentOnboardingStatus
440
+ */
441
+ export declare enum AgentOnboardingStatus {
442
+ /**
443
+ * @generated from enum value: AGENT_ONBOARDING_STATUS_UNSPECIFIED = 0;
444
+ */
445
+ UNSPECIFIED = 0,
446
+ /**
447
+ * @generated from enum value: AGENT_ONBOARDING_STATUS_REQUESTED = 1;
448
+ */
449
+ REQUESTED = 1,
450
+ /**
451
+ * @generated from enum value: AGENT_ONBOARDING_STATUS_SIGNATURE_REQUIRED = 2;
452
+ */
453
+ SIGNATURE_REQUIRED = 2,
454
+ /**
455
+ * @generated from enum value: AGENT_ONBOARDING_STATUS_ACTIVE = 3;
456
+ */
457
+ ACTIVE = 3
458
+ }
459
+ /**
460
+ * Describes the enum silvana.orderbook.v1.AgentOnboardingStatus.
461
+ */
462
+ export declare const AgentOnboardingStatusSchema: GenEnum<AgentOnboardingStatus>;
463
+ /**
464
+ * Account-scoped agent invite codes and read-only agent views.
465
+ *
466
+ * @generated from service silvana.orderbook.v1.AgentAccountService
467
+ */
468
+ export declare const AgentAccountService: GenService<{
469
+ /**
470
+ * @generated from rpc silvana.orderbook.v1.AgentAccountService.GetAgentAccount
471
+ */
472
+ getAgentAccount: {
473
+ methodKind: "unary";
474
+ input: typeof GetAgentAccountRequestSchema;
475
+ output: typeof GetAgentAccountResponseSchema;
476
+ };
477
+ /**
478
+ * @generated from rpc silvana.orderbook.v1.AgentAccountService.CreateAgentInvite
479
+ */
480
+ createAgentInvite: {
481
+ methodKind: "unary";
482
+ input: typeof CreateAgentInviteRequestSchema;
483
+ output: typeof CreateAgentInviteResponseSchema;
484
+ };
485
+ /**
486
+ * @generated from rpc silvana.orderbook.v1.AgentAccountService.GetAgentHoldings
487
+ */
488
+ getAgentHoldings: {
489
+ methodKind: "unary";
490
+ input: typeof GetAgentHoldingsRequestSchema;
491
+ output: typeof GetAgentHoldingsResponseSchema;
492
+ };
493
+ /**
494
+ * @generated from rpc silvana.orderbook.v1.AgentAccountService.GetAgentActivity
495
+ */
496
+ getAgentActivity: {
497
+ methodKind: "unary";
498
+ input: typeof GetAgentActivityRequestSchema;
499
+ output: typeof GetAgentActivityResponseSchema;
500
+ };
501
+ /**
502
+ * @generated from rpc silvana.orderbook.v1.AgentAccountService.GetAgentLedger
503
+ */
504
+ getAgentLedger: {
505
+ methodKind: "unary";
506
+ input: typeof GetAgentLedgerRequestSchema;
507
+ output: typeof GetAgentLedgerResponseSchema;
508
+ };
509
+ }>;