@polyester/sdk 0.19.3 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/gen/auth/v1/api_keys_pb.d.ts +3 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +49 -5
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +21 -3
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +7 -0
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +4 -2
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +4 -2
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +290 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +288 -9
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/index.d.ts +10 -10
- package/dist/gen/index.js +7 -7
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +5 -3
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +14 -6
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +7 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +2 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +200 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +193 -4
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +47 -2
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -2
- package/dist/services/auth/auth.d.ts +7 -0
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +9 -0
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auth/profile/profile.js +1 -1
- package/dist/services/auth/profile/profile.schemas.d.ts +1 -0
- package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.schemas.js +2 -1
- package/dist/services/auth/profile/profile.schemas.js.map +1 -1
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.js +1 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/heatmap/heatmap.schemas.d.ts +9 -9
- package/dist/services/internal-transfers/internal-transfers.js +1 -1
- package/dist/services/market-overview/market-overview.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/orders/index.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +34 -34
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +7 -7
- package/dist/services/orders/orders-input.schemas.js +2 -2
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/orders/orders.d.ts +1 -1
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +5 -3
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/orders/orders.schemas.d.ts +1 -1
- package/dist/services/orders/orders.types.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/transfers/transfers.js +1 -1
- package/dist/services/transfers/transfers.schemas.js +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +25 -4
- package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +38 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +3 -26
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +77 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +36 -25
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +50 -50
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +37 -0
- package/dist/shared/error-detail.d.ts.map +1 -0
- package/dist/shared/error-detail.js +106 -0
- package/dist/shared/error-detail.js.map +1 -0
- package/dist/shared/errors.d.ts +11 -6
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +3 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +1 -15
- package/dist/utils/errors.js.map +1 -1
- package/dist/wired-services.js +5 -5
- package/package.json +1 -1
- package/dist/utils/connect-order-errors.d.ts +0 -15
- package/dist/utils/connect-order-errors.d.ts.map +0 -1
- package/dist/utils/connect-order-errors.js +0 -41
- package/dist/utils/connect-order-errors.js.map +0 -1
|
@@ -8,6 +8,9 @@ var withdraw_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
8
8
|
CreateTradingWithdrawResponseSchema: () => CreateTradingWithdrawResponseSchema,
|
|
9
9
|
CreateWalletTradingWithdrawRequestSchema: () => CreateWalletTradingWithdrawRequestSchema,
|
|
10
10
|
CreateWalletTradingWithdrawResponseSchema: () => CreateWalletTradingWithdrawResponseSchema,
|
|
11
|
+
ErrorCode: () => ErrorCode,
|
|
12
|
+
ErrorCodeSchema: () => ErrorCodeSchema,
|
|
13
|
+
ErrorDetailSchema: () => ErrorDetailSchema,
|
|
11
14
|
TradingWithdrawAction: () => TradingWithdrawAction,
|
|
12
15
|
TradingWithdrawActionSchema: () => TradingWithdrawActionSchema,
|
|
13
16
|
TradingWithdrawIntentPayloadSchema: () => TradingWithdrawIntentPayloadSchema,
|
|
@@ -21,7 +24,7 @@ var withdraw_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
21
24
|
/**
|
|
22
25
|
* Describes the file chain/withdraw/v1/withdraw.proto.
|
|
23
26
|
*/
|
|
24
|
-
const file_chain_withdraw_v1_withdraw = /*@__PURE__*/ fileDesc("
|
|
27
|
+
const file_chain_withdraw_v1_withdraw = /*@__PURE__*/ fileDesc("CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wc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JhdxIvLmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaMC5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAEo4BChtDcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXcSNS5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXF1ZXN0GjYuY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlV2FsbGV0VHJhZGluZ1dpdGhkcmF3UmVzcG9uc2UiAEJPWk1naXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2NoYWluL3dpdGhkcmF3L3YxO2NoYWlud2l0aGRyYXd2MWIGcHJvdG8z", [file_polyester_api_options, file_polyester_type_v1_u128]);
|
|
25
28
|
/**
|
|
26
29
|
* Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.
|
|
27
30
|
* Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.
|
|
@@ -33,30 +36,306 @@ const CreateTradingWithdrawResponseSchema = /*@__PURE__*/ messageDesc(file_chain
|
|
|
33
36
|
*/
|
|
34
37
|
const CreateWalletTradingWithdrawResponseSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 1);
|
|
35
38
|
/**
|
|
39
|
+
* Describes the message chain.withdraw.v1.ErrorDetail.
|
|
40
|
+
* Use `create(ErrorDetailSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
const ErrorDetailSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 2);
|
|
43
|
+
/**
|
|
36
44
|
* Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.
|
|
37
45
|
* Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.
|
|
38
46
|
*/
|
|
39
|
-
const TradingWithdrawIntentPayloadSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw,
|
|
47
|
+
const TradingWithdrawIntentPayloadSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 3);
|
|
40
48
|
/**
|
|
41
49
|
* Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.
|
|
42
50
|
* Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.
|
|
43
51
|
*/
|
|
44
|
-
const CreateTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw,
|
|
52
|
+
const CreateTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 4);
|
|
45
53
|
/**
|
|
46
54
|
* Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.
|
|
47
55
|
* Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.
|
|
48
56
|
*/
|
|
49
|
-
const CreateWalletTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw,
|
|
57
|
+
const CreateWalletTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 5);
|
|
50
58
|
/**
|
|
51
59
|
* Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.
|
|
52
60
|
* Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.
|
|
53
61
|
*/
|
|
54
|
-
const ValidateWithdrawDestinationRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw,
|
|
62
|
+
const ValidateWithdrawDestinationRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 6);
|
|
55
63
|
/**
|
|
56
64
|
* Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.
|
|
57
65
|
* Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.
|
|
58
66
|
*/
|
|
59
|
-
const ValidateWithdrawDestinationResponseSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw,
|
|
67
|
+
const ValidateWithdrawDestinationResponseSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 7);
|
|
68
|
+
/**
|
|
69
|
+
* ErrorCode identifies stable, machine-readable Withdraw API errors.
|
|
70
|
+
* Values mirror the REST problem+json code field.
|
|
71
|
+
*
|
|
72
|
+
* @generated from enum chain.withdraw.v1.ErrorCode
|
|
73
|
+
*/
|
|
74
|
+
let ErrorCode = /* @__PURE__ */ function(ErrorCode) {
|
|
75
|
+
/**
|
|
76
|
+
* No domain error code was provided.
|
|
77
|
+
*
|
|
78
|
+
* @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
|
|
79
|
+
*/
|
|
80
|
+
ErrorCode[ErrorCode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
81
|
+
/**
|
|
82
|
+
* The source account does not have enough available Trading balance.
|
|
83
|
+
*
|
|
84
|
+
* @generated from enum value: ERROR_CODE_INSUFFICIENT_FUNDS = 1;
|
|
85
|
+
*/
|
|
86
|
+
ErrorCode[ErrorCode["INSUFFICIENT_FUNDS"] = 1] = "INSUFFICIENT_FUNDS";
|
|
87
|
+
/**
|
|
88
|
+
* Request payload or one of its fields is invalid.
|
|
89
|
+
*
|
|
90
|
+
* @generated from enum value: ERROR_CODE_INVALID_REQUEST = 2;
|
|
91
|
+
*/
|
|
92
|
+
ErrorCode[ErrorCode["INVALID_REQUEST"] = 2] = "INVALID_REQUEST";
|
|
93
|
+
/**
|
|
94
|
+
* Caller is not authenticated.
|
|
95
|
+
*
|
|
96
|
+
* @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 3;
|
|
97
|
+
*/
|
|
98
|
+
ErrorCode[ErrorCode["UNAUTHENTICATED"] = 3] = "UNAUTHENTICATED";
|
|
99
|
+
/**
|
|
100
|
+
* Caller is not permitted to perform the withdraw operation.
|
|
101
|
+
*
|
|
102
|
+
* @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 4;
|
|
103
|
+
*/
|
|
104
|
+
ErrorCode[ErrorCode["PERMISSION_DENIED"] = 4] = "PERMISSION_DENIED";
|
|
105
|
+
/**
|
|
106
|
+
* Request exceeded the applicable admission rate limit.
|
|
107
|
+
*
|
|
108
|
+
* @generated from enum value: ERROR_CODE_RATE_LIMIT_EXCEEDED = 5;
|
|
109
|
+
*/
|
|
110
|
+
ErrorCode[ErrorCode["RATE_LIMIT_EXCEEDED"] = 5] = "RATE_LIMIT_EXCEEDED";
|
|
111
|
+
/**
|
|
112
|
+
* A required dependency is temporarily unavailable.
|
|
113
|
+
*
|
|
114
|
+
* @generated from enum value: ERROR_CODE_SERVICE_UNAVAILABLE = 6;
|
|
115
|
+
*/
|
|
116
|
+
ErrorCode[ErrorCode["SERVICE_UNAVAILABLE"] = 6] = "SERVICE_UNAVAILABLE";
|
|
117
|
+
/**
|
|
118
|
+
* The request failed because of an unexpected server error.
|
|
119
|
+
*
|
|
120
|
+
* @generated from enum value: ERROR_CODE_INTERNAL_ERROR = 7;
|
|
121
|
+
*/
|
|
122
|
+
ErrorCode[ErrorCode["INTERNAL_ERROR"] = 7] = "INTERNAL_ERROR";
|
|
123
|
+
/**
|
|
124
|
+
* The selected subaccount identifier is invalid.
|
|
125
|
+
*
|
|
126
|
+
* @generated from enum value: ERROR_CODE_INVALID_SUBACCOUNT_ID = 8;
|
|
127
|
+
*/
|
|
128
|
+
ErrorCode[ErrorCode["INVALID_SUBACCOUNT_ID"] = 8] = "INVALID_SUBACCOUNT_ID";
|
|
129
|
+
/**
|
|
130
|
+
* The selected subaccount does not exist.
|
|
131
|
+
*
|
|
132
|
+
* @generated from enum value: ERROR_CODE_SUBACCOUNT_NOT_FOUND = 9;
|
|
133
|
+
*/
|
|
134
|
+
ErrorCode[ErrorCode["SUBACCOUNT_NOT_FOUND"] = 9] = "SUBACCOUNT_NOT_FOUND";
|
|
135
|
+
/**
|
|
136
|
+
* The requested withdraw action is invalid for this endpoint.
|
|
137
|
+
*
|
|
138
|
+
* @generated from enum value: ERROR_CODE_INVALID_ACTION = 10;
|
|
139
|
+
*/
|
|
140
|
+
ErrorCode[ErrorCode["INVALID_ACTION"] = 10] = "INVALID_ACTION";
|
|
141
|
+
/**
|
|
142
|
+
* The requested ledger is not supported for withdrawals.
|
|
143
|
+
*
|
|
144
|
+
* @generated from enum value: ERROR_CODE_UNSUPPORTED_LEDGER = 11;
|
|
145
|
+
*/
|
|
146
|
+
ErrorCode[ErrorCode["UNSUPPORTED_LEDGER"] = 11] = "UNSUPPORTED_LEDGER";
|
|
147
|
+
/**
|
|
148
|
+
* The requested asset or withdraw route is not supported.
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum value: ERROR_CODE_UNSUPPORTED_ASSET = 12;
|
|
151
|
+
*/
|
|
152
|
+
ErrorCode[ErrorCode["UNSUPPORTED_ASSET"] = 12] = "UNSUPPORTED_ASSET";
|
|
153
|
+
/**
|
|
154
|
+
* The withdraw amount is invalid.
|
|
155
|
+
*
|
|
156
|
+
* @generated from enum value: ERROR_CODE_INVALID_AMOUNT = 13;
|
|
157
|
+
*/
|
|
158
|
+
ErrorCode[ErrorCode["INVALID_AMOUNT"] = 13] = "INVALID_AMOUNT";
|
|
159
|
+
/**
|
|
160
|
+
* The destination chain is invalid.
|
|
161
|
+
*
|
|
162
|
+
* @generated from enum value: ERROR_CODE_INVALID_DESTINATION_CHAIN = 14;
|
|
163
|
+
*/
|
|
164
|
+
ErrorCode[ErrorCode["INVALID_DESTINATION_CHAIN"] = 14] = "INVALID_DESTINATION_CHAIN";
|
|
165
|
+
/**
|
|
166
|
+
* The destination address is invalid.
|
|
167
|
+
*
|
|
168
|
+
* @generated from enum value: ERROR_CODE_INVALID_DESTINATION_ADDRESS = 15;
|
|
169
|
+
*/
|
|
170
|
+
ErrorCode[ErrorCode["INVALID_DESTINATION_ADDRESS"] = 15] = "INVALID_DESTINATION_ADDRESS";
|
|
171
|
+
/**
|
|
172
|
+
* The external destination is not whitelisted.
|
|
173
|
+
*
|
|
174
|
+
* @generated from enum value: ERROR_CODE_EXTERNAL_DESTINATION_NOT_WHITELISTED = 16;
|
|
175
|
+
*/
|
|
176
|
+
ErrorCode[ErrorCode["EXTERNAL_DESTINATION_NOT_WHITELISTED"] = 16] = "EXTERNAL_DESTINATION_NOT_WHITELISTED";
|
|
177
|
+
/**
|
|
178
|
+
* The internal funding recipient is not whitelisted.
|
|
179
|
+
*
|
|
180
|
+
* @generated from enum value: ERROR_CODE_INTERNAL_RECIPIENT_NOT_WHITELISTED = 17;
|
|
181
|
+
*/
|
|
182
|
+
ErrorCode[ErrorCode["INTERNAL_RECIPIENT_NOT_WHITELISTED"] = 17] = "INTERNAL_RECIPIENT_NOT_WHITELISTED";
|
|
183
|
+
/**
|
|
184
|
+
* The withdraw amount is below the configured minimum including fees.
|
|
185
|
+
*
|
|
186
|
+
* @generated from enum value: ERROR_CODE_AMOUNT_BELOW_MINIMUM = 18;
|
|
187
|
+
*/
|
|
188
|
+
ErrorCode[ErrorCode["AMOUNT_BELOW_MINIMUM"] = 18] = "AMOUNT_BELOW_MINIMUM";
|
|
189
|
+
/**
|
|
190
|
+
* The withdraw amount exceeds the available zipped-asset supply.
|
|
191
|
+
*
|
|
192
|
+
* @generated from enum value: ERROR_CODE_AMOUNT_EXCEEDS_SUPPLY = 19;
|
|
193
|
+
*/
|
|
194
|
+
ErrorCode[ErrorCode["AMOUNT_EXCEEDS_SUPPLY"] = 19] = "AMOUNT_EXCEEDS_SUPPLY";
|
|
195
|
+
/**
|
|
196
|
+
* The source smart-account address is unavailable.
|
|
197
|
+
*
|
|
198
|
+
* @generated from enum value: ERROR_CODE_SOURCE_SMART_ACCOUNT_UNAVAILABLE = 20;
|
|
199
|
+
*/
|
|
200
|
+
ErrorCode[ErrorCode["SOURCE_SMART_ACCOUNT_UNAVAILABLE"] = 20] = "SOURCE_SMART_ACCOUNT_UNAVAILABLE";
|
|
201
|
+
/**
|
|
202
|
+
* The required payload signature is missing.
|
|
203
|
+
*
|
|
204
|
+
* @generated from enum value: ERROR_CODE_SIGNATURE_REQUIRED = 21;
|
|
205
|
+
*/
|
|
206
|
+
ErrorCode[ErrorCode["SIGNATURE_REQUIRED"] = 21] = "SIGNATURE_REQUIRED";
|
|
207
|
+
/**
|
|
208
|
+
* The requested signature scheme is unsupported.
|
|
209
|
+
*
|
|
210
|
+
* @generated from enum value: ERROR_CODE_SIGNATURE_SCHEME_UNSUPPORTED = 22;
|
|
211
|
+
*/
|
|
212
|
+
ErrorCode[ErrorCode["SIGNATURE_SCHEME_UNSUPPORTED"] = 22] = "SIGNATURE_SCHEME_UNSUPPORTED";
|
|
213
|
+
/**
|
|
214
|
+
* The wallet supplied as signer is invalid.
|
|
215
|
+
*
|
|
216
|
+
* @generated from enum value: ERROR_CODE_SIGNER_WALLET_INVALID = 23;
|
|
217
|
+
*/
|
|
218
|
+
ErrorCode[ErrorCode["SIGNER_WALLET_INVALID"] = 23] = "SIGNER_WALLET_INVALID";
|
|
219
|
+
/**
|
|
220
|
+
* Wallet authorization binding verification failed.
|
|
221
|
+
*
|
|
222
|
+
* @generated from enum value: ERROR_CODE_WALLET_BINDING_INVALID = 24;
|
|
223
|
+
*/
|
|
224
|
+
ErrorCode[ErrorCode["WALLET_BINDING_INVALID"] = 24] = "WALLET_BINDING_INVALID";
|
|
225
|
+
/**
|
|
226
|
+
* Wallet authorization binding does not cover the requested scope.
|
|
227
|
+
*
|
|
228
|
+
* @generated from enum value: ERROR_CODE_WALLET_BINDING_SCOPE_MISMATCH = 25;
|
|
229
|
+
*/
|
|
230
|
+
ErrorCode[ErrorCode["WALLET_BINDING_SCOPE_MISMATCH"] = 25] = "WALLET_BINDING_SCOPE_MISMATCH";
|
|
231
|
+
/**
|
|
232
|
+
* Wallet authorization binding does not match the signer.
|
|
233
|
+
*
|
|
234
|
+
* @generated from enum value: ERROR_CODE_WALLET_BINDING_SIGNER_MISMATCH = 26;
|
|
235
|
+
*/
|
|
236
|
+
ErrorCode[ErrorCode["WALLET_BINDING_SIGNER_MISMATCH"] = 26] = "WALLET_BINDING_SIGNER_MISMATCH";
|
|
237
|
+
/**
|
|
238
|
+
* The API key could not be resolved.
|
|
239
|
+
*
|
|
240
|
+
* @generated from enum value: ERROR_CODE_API_KEY_NOT_FOUND = 27;
|
|
241
|
+
*/
|
|
242
|
+
ErrorCode[ErrorCode["API_KEY_NOT_FOUND"] = 27] = "API_KEY_NOT_FOUND";
|
|
243
|
+
/**
|
|
244
|
+
* API-key authorization binding verification failed.
|
|
245
|
+
*
|
|
246
|
+
* @generated from enum value: ERROR_CODE_API_KEY_BINDING_INVALID = 28;
|
|
247
|
+
*/
|
|
248
|
+
ErrorCode[ErrorCode["API_KEY_BINDING_INVALID"] = 28] = "API_KEY_BINDING_INVALID";
|
|
249
|
+
/**
|
|
250
|
+
* API-key authorization binding does not cover the requested scope.
|
|
251
|
+
*
|
|
252
|
+
* @generated from enum value: ERROR_CODE_API_KEY_BINDING_SCOPE_MISMATCH = 29;
|
|
253
|
+
*/
|
|
254
|
+
ErrorCode[ErrorCode["API_KEY_BINDING_SCOPE_MISMATCH"] = 29] = "API_KEY_BINDING_SCOPE_MISMATCH";
|
|
255
|
+
/**
|
|
256
|
+
* API-key authorization binding does not match the configured public key.
|
|
257
|
+
*
|
|
258
|
+
* @generated from enum value: ERROR_CODE_API_KEY_BINDING_PUBLIC_KEY_MISMATCH = 30;
|
|
259
|
+
*/
|
|
260
|
+
ErrorCode[ErrorCode["API_KEY_BINDING_PUBLIC_KEY_MISMATCH"] = 30] = "API_KEY_BINDING_PUBLIC_KEY_MISMATCH";
|
|
261
|
+
/**
|
|
262
|
+
* The idempotency key was reused with different request data.
|
|
263
|
+
*
|
|
264
|
+
* @generated from enum value: ERROR_CODE_IDEMPOTENCY_CONFLICT = 31;
|
|
265
|
+
*/
|
|
266
|
+
ErrorCode[ErrorCode["IDEMPOTENCY_CONFLICT"] = 31] = "IDEMPOTENCY_CONFLICT";
|
|
267
|
+
/**
|
|
268
|
+
* The funds lock conflicts with an existing or finalized reservation.
|
|
269
|
+
*
|
|
270
|
+
* @generated from enum value: ERROR_CODE_FUNDS_LOCK_CONFLICT = 32;
|
|
271
|
+
*/
|
|
272
|
+
ErrorCode[ErrorCode["FUNDS_LOCK_CONFLICT"] = 32] = "FUNDS_LOCK_CONFLICT";
|
|
273
|
+
/**
|
|
274
|
+
* The authoritative capital view is not ready or is stale.
|
|
275
|
+
*
|
|
276
|
+
* @generated from enum value: ERROR_CODE_CAPITAL_VIEW_UNAVAILABLE = 33;
|
|
277
|
+
*/
|
|
278
|
+
ErrorCode[ErrorCode["CAPITAL_VIEW_UNAVAILABLE"] = 33] = "CAPITAL_VIEW_UNAVAILABLE";
|
|
279
|
+
/**
|
|
280
|
+
* Required chain or contract metadata is unavailable.
|
|
281
|
+
*
|
|
282
|
+
* @generated from enum value: ERROR_CODE_CHAIN_METADATA_UNAVAILABLE = 34;
|
|
283
|
+
*/
|
|
284
|
+
ErrorCode[ErrorCode["CHAIN_METADATA_UNAVAILABLE"] = 34] = "CHAIN_METADATA_UNAVAILABLE";
|
|
285
|
+
/**
|
|
286
|
+
* Required network fee data is unavailable.
|
|
287
|
+
*
|
|
288
|
+
* @generated from enum value: ERROR_CODE_FEE_UNAVAILABLE = 35;
|
|
289
|
+
*/
|
|
290
|
+
ErrorCode[ErrorCode["FEE_UNAVAILABLE"] = 35] = "FEE_UNAVAILABLE";
|
|
291
|
+
/**
|
|
292
|
+
* Required zipped-asset supply data is unavailable.
|
|
293
|
+
*
|
|
294
|
+
* @generated from enum value: ERROR_CODE_SUPPLY_UNAVAILABLE = 36;
|
|
295
|
+
*/
|
|
296
|
+
ErrorCode[ErrorCode["SUPPLY_UNAVAILABLE"] = 36] = "SUPPLY_UNAVAILABLE";
|
|
297
|
+
/**
|
|
298
|
+
* Fresh step-up verification is temporarily unavailable.
|
|
299
|
+
*
|
|
300
|
+
* @generated from enum value: ERROR_CODE_STEP_UP_UNAVAILABLE = 37;
|
|
301
|
+
*/
|
|
302
|
+
ErrorCode[ErrorCode["STEP_UP_UNAVAILABLE"] = 37] = "STEP_UP_UNAVAILABLE";
|
|
303
|
+
/**
|
|
304
|
+
* Destination validation is temporarily unavailable.
|
|
305
|
+
*
|
|
306
|
+
* @generated from enum value: ERROR_CODE_DESTINATION_VALIDATION_UNAVAILABLE = 38;
|
|
307
|
+
*/
|
|
308
|
+
ErrorCode[ErrorCode["DESTINATION_VALIDATION_UNAVAILABLE"] = 38] = "DESTINATION_VALIDATION_UNAVAILABLE";
|
|
309
|
+
/**
|
|
310
|
+
* The account shard cannot currently accept fund movement.
|
|
311
|
+
*
|
|
312
|
+
* @generated from enum value: ERROR_CODE_ACCOUNT_SHARD_UNAVAILABLE = 39;
|
|
313
|
+
*/
|
|
314
|
+
ErrorCode[ErrorCode["ACCOUNT_SHARD_UNAVAILABLE"] = 39] = "ACCOUNT_SHARD_UNAVAILABLE";
|
|
315
|
+
/**
|
|
316
|
+
* A required precondition was not satisfied.
|
|
317
|
+
*
|
|
318
|
+
* @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 40;
|
|
319
|
+
*/
|
|
320
|
+
ErrorCode[ErrorCode["FAILED_PRECONDITION"] = 40] = "FAILED_PRECONDITION";
|
|
321
|
+
/**
|
|
322
|
+
* The requested resource was not found.
|
|
323
|
+
*
|
|
324
|
+
* @generated from enum value: ERROR_CODE_NOT_FOUND = 41;
|
|
325
|
+
*/
|
|
326
|
+
ErrorCode[ErrorCode["NOT_FOUND"] = 41] = "NOT_FOUND";
|
|
327
|
+
/**
|
|
328
|
+
* The request conflicts with existing state.
|
|
329
|
+
*
|
|
330
|
+
* @generated from enum value: ERROR_CODE_CONFLICT = 42;
|
|
331
|
+
*/
|
|
332
|
+
ErrorCode[ErrorCode["CONFLICT"] = 42] = "CONFLICT";
|
|
333
|
+
return ErrorCode;
|
|
334
|
+
}({});
|
|
335
|
+
/**
|
|
336
|
+
* Describes the enum chain.withdraw.v1.ErrorCode.
|
|
337
|
+
*/
|
|
338
|
+
const ErrorCodeSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 0);
|
|
60
339
|
/**
|
|
61
340
|
* TradingWithdrawAction identifies where funds should move from Trading.
|
|
62
341
|
*
|
|
@@ -80,7 +359,7 @@ let TradingWithdrawAction = /* @__PURE__ */ function(TradingWithdrawAction) {
|
|
|
80
359
|
/**
|
|
81
360
|
* Describes the enum chain.withdraw.v1.TradingWithdrawAction.
|
|
82
361
|
*/
|
|
83
|
-
const TradingWithdrawActionSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw,
|
|
362
|
+
const TradingWithdrawActionSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 1);
|
|
84
363
|
/**
|
|
85
364
|
* WithdrawDestinationValidationCode identifies the public outcome of an
|
|
86
365
|
* external-chain destination validation.
|
|
@@ -136,7 +415,7 @@ let WithdrawDestinationValidationCode = /* @__PURE__ */ function(WithdrawDestina
|
|
|
136
415
|
/**
|
|
137
416
|
* Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.
|
|
138
417
|
*/
|
|
139
|
-
const WithdrawDestinationValidationCodeSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw,
|
|
418
|
+
const WithdrawDestinationValidationCodeSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 2);
|
|
140
419
|
/**
|
|
141
420
|
* WithdrawService manages authenticated chain-facing withdraw request intake.
|
|
142
421
|
*
|
|
@@ -144,6 +423,6 @@ const WithdrawDestinationValidationCodeSchema = /*@__PURE__*/ enumDesc(file_chai
|
|
|
144
423
|
*/
|
|
145
424
|
const WithdrawService = /*@__PURE__*/ serviceDesc(file_chain_withdraw_v1_withdraw, 0);
|
|
146
425
|
//#endregion
|
|
147
|
-
export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
|
|
426
|
+
export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetailSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
|
|
148
427
|
|
|
149
428
|
//# sourceMappingURL=withdraw_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/withdraw.proto (package chain.withdraw.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/withdraw.proto.\n */\nexport const file_chain_withdraw_v1_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRl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WRpbmdXaXRoZHJhdxI1LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=\", [file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * CreateTradingWithdrawResponse returns the accepted durable intent identifier\n * for the withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawResponse\n */\nexport type CreateTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.\n * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawResponseSchema: GenMessage<CreateTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * CreateWalletTradingWithdrawResponse returns the accepted durable intent\n * identifier for a wallet-authorized withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawResponse\n */\nexport type CreateWalletTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawResponse.\n * Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * TradingWithdrawIntentPayload is the client-signed typed withdraw request.\n * Account scope and backend intent ids are derived server-side.\n *\n * @generated from message chain.withdraw.v1.TradingWithdrawIntentPayload\n */\nexport type TradingWithdrawIntentPayload = Message<\"chain.withdraw.v1.TradingWithdrawIntentPayload\"> & {\n /**\n * Destination for funds leaving Trading.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawAction action = 1;\n */\n action: TradingWithdrawAction;\n\n /**\n * Unified asset identifier from Polyester asset metadata. amount_e18 is\n * denominated in this asset at canonical 18-decimal scale.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.\n *\n * @generated from field: uint64 destination_chain_id = 3;\n */\n destinationChainId: bigint;\n\n /**\n * Withdraw amount in canonical 18-decimal unified asset units.\n * For example, 0.5 is encoded as 500000000000000000.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 4;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Unix timestamp in seconds after which this signed user authorization is no\n * longer accepted by the API. This is separate from the server-owned\n * execution deadline used later for on-chain submission.\n *\n * @generated from field: uint64 deadline_ts_sec = 5;\n */\n deadlineTsSec: bigint;\n\n /**\n * Client-generated unsigned 128-bit nonce bound to the signed request. This\n * is an identifier, not a decimal amount.\n *\n * @generated from field: polyester.type.v1.U128 nonce = 6;\n */\n nonce?: U128 | undefined;\n\n /**\n * Destination address. For TO_EXTERNAL_CHAIN this is an address on\n * destination_chain_id and is validated according to that network. For\n * TO_FUNDING, omit it to move funds to the selected account's Funding account\n * or provide another Polyester funding address for a Trading-to-Funding\n * transfer.\n *\n * @generated from field: string destination_address = 7;\n */\n destinationAddress: string;\n\n /**\n * Client-chosen idempotency key. Reusing the same key with the same payload\n * returns the existing withdraw; reusing it with different payload fails.\n *\n * @generated from field: string idempotency_key = 8;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.\n * Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.\n */\nexport const TradingWithdrawIntentPayloadSchema: GenMessage<TradingWithdrawIntentPayload> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * CreateTradingWithdrawRequest creates or returns one durable backend-authorized\n * Trading withdraw intent from typed protobuf fields and an API-key signature.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawRequest\n */\nexport type CreateTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * User/API signature over deterministic TradingWithdrawIntentPayload bytes.\n *\n * @generated from field: bytes payload_signature = 2;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.\n * Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawRequestSchema: GenMessage<CreateTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 3);\n\n/**\n * CreateWalletTradingWithdrawRequest creates or returns one durable Trading\n * withdraw intent from typed frontend fields plus a wallet EIP-712 signature.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawRequest\n */\nexport type CreateWalletTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * Optional public subaccount id. Omit to withdraw from the JWT root account.\n *\n * @generated from field: uint64 subaccount_id = 2;\n */\n subaccountId: bigint;\n\n /**\n * Wallet address that produced payload_signature.\n *\n * @generated from field: string signer_wallet = 3;\n */\n signerWallet: string;\n\n /**\n * Wallet EIP-712 signature over the typed withdraw payload.\n *\n * @generated from field: bytes payload_signature = 4;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.\n * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 4);\n\n/**\n * ValidateWithdrawDestinationRequest checks one external-chain\n * destination for an authenticated caller without creating a withdraw.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationRequest\n */\nexport type ValidateWithdrawDestinationRequest = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationRequest\"> & {\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 1;\n */\n destinationChainId: bigint;\n\n /**\n * Destination address to validate for destination_chain_id.\n *\n * @generated from field: string destination_address = 2;\n */\n destinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.\n * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationRequestSchema: GenMessage<ValidateWithdrawDestinationRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 5);\n\n/**\n * ValidateWithdrawDestinationResponse returns a user-safe validation\n * result without exposing internal denylist details.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationResponse\n */\nexport type ValidateWithdrawDestinationResponse = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationResponse\"> & {\n /**\n * Whether the destination may be used for a withdraw.\n *\n * @generated from field: bool valid = 1;\n */\n valid: boolean;\n\n /**\n * Public validation outcome code.\n *\n * @generated from field: chain.withdraw.v1.WithdrawDestinationValidationCode code = 2;\n */\n code: WithdrawDestinationValidationCode;\n\n /**\n * User-safe explanation of the validation outcome.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Canonical destination address when valid. Empty when valid is false.\n *\n * @generated from field: string canonical_destination_address = 4;\n */\n canonicalDestinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.\n * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 6);\n\n/**\n * TradingWithdrawAction identifies where funds should move from Trading.\n *\n * @generated from enum chain.withdraw.v1.TradingWithdrawAction\n */\nexport enum TradingWithdrawAction {\n /**\n * @generated from enum value: ACTION_UNSPECIFIED = 0;\n */\n ACTION_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: TO_FUNDING = 1;\n */\n TO_FUNDING = 1,\n\n /**\n * @generated from enum value: TO_EXTERNAL_CHAIN = 2;\n */\n TO_EXTERNAL_CHAIN = 2,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.TradingWithdrawAction.\n */\nexport const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * WithdrawDestinationValidationCode identifies the public outcome of an\n * external-chain destination validation.\n *\n * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode\n */\nexport enum WithdrawDestinationValidationCode {\n /**\n * No validation outcome was produced.\n *\n * @generated from enum value: RESULT_UNSPECIFIED = 0;\n */\n RESULT_UNSPECIFIED = 0,\n\n /**\n * The destination is valid and may be used for a withdraw.\n *\n * @generated from enum value: VALID = 1;\n */\n VALID = 1,\n\n /**\n * The address is not valid for the selected destination chain.\n *\n * @generated from enum value: INVALID_ADDRESS = 2;\n */\n INVALID_ADDRESS = 2,\n\n /**\n * The selected destination chain is not supported for withdraws.\n *\n * @generated from enum value: UNSUPPORTED_CHAIN = 3;\n */\n UNSUPPORTED_CHAIN = 3,\n\n /**\n * The destination is a Polyester smart account and cannot be used for an\n * external-chain withdraw.\n *\n * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;\n */\n POLYESTER_SMART_ACCOUNT = 4,\n\n /**\n * The destination is a token contract and cannot receive withdrawals.\n *\n * @generated from enum value: TOKEN_CONTRACT = 5;\n */\n TOKEN_CONTRACT = 5,\n\n /**\n * The destination is blocked by Polyester's user-safety denylist.\n *\n * @generated from enum value: DENYLISTED_ADDRESS = 6;\n */\n DENYLISTED_ADDRESS = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.\n */\nexport const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * WithdrawService manages authenticated chain-facing withdraw request intake.\n *\n * @generated from service chain.withdraw.v1.WithdrawService\n */\nexport const WithdrawService: GenService<{\n /**\n * Validate an external-chain withdraw destination for an authenticated\n * caller without creating, signing, or reserving a withdraw.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.ValidateWithdrawDestination\n */\n validateWithdrawDestination: {\n methodKind: \"unary\";\n input: typeof ValidateWithdrawDestinationRequestSchema;\n output: typeof ValidateWithdrawDestinationResponseSchema;\n },\n /**\n * Create or return one durable withdraw from Trading.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateTradingWithdraw\n */\n createTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateTradingWithdrawRequestSchema;\n output: typeof CreateTradingWithdrawResponseSchema;\n },\n /**\n * Create or return one wallet/JWT withdraw from Trading.\n * Root-owner Trading to Funding and root-owner withdrawals to explicitly\n * whitelisted external destinations accept recent MFA. Other external,\n * cross-owner, and delegated movements require a fresh single-use step-up.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateWalletTradingWithdraw\n */\n createWalletTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateWalletTradingWithdrawRequestSchema;\n output: typeof CreateWalletTradingWithdrawResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,kCACX,uBAAS,w8EAAw8E,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsB5gF,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAgFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;;AAOhD,IAAY,wBAAL,yBAAA,uBAAA;;;;CAIL,sBAAA,sBAAA,wBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,gBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,iCAAiC,CAAC;;;;;;;AAQ7C,IAAY,oCAAL,yBAAA,mCAAA;;;;;;CAML,kCAAA,kCAAA,wBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,WAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,qBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,uBAAA,KAAA;;;;;;;CAQA,kCAAA,kCAAA,6BAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,oBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,0CACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,MAAa,kBAoCX,0BAAY,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/withdraw.proto (package chain.withdraw.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/withdraw.proto.\n */\nexport const file_chain_withdraw_v1_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSI5CgtFcnJvckRldGFpbBIqCgRjb2RlGAEgASgOMhwuY2hhaW4ud2l0aGRyYXcudjEuRXJyb3JDb2RlIrgCChxUcmFkaW5nV2l0aGRyYXdJbnRlbnRQYXlsb2FkEjoKBmFjdGlvbhgBIAEoDjIoLmNoYWluLndpdGhkcmF3LnYxLlRyYWRpbmdXaXRoZHJhd0FjdGlvbkIAEhIKCGFzc2V0X2lkGAIgASgNQgASHAoUZGVzdGluYXRpb25fY2hhaW5faWQYAyABKAQSLQoKYW1vdW50X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\", [file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * CreateTradingWithdrawResponse returns the accepted durable intent identifier\n * for the withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawResponse\n */\nexport type CreateTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.\n * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawResponseSchema: GenMessage<CreateTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * CreateWalletTradingWithdrawResponse returns the accepted durable intent\n * identifier for a wallet-authorized withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawResponse\n */\nexport type CreateWalletTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawResponse.\n * Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * ErrorDetail is attached to ConnectRPC errors for structured error handling.\n *\n * @generated from message chain.withdraw.v1.ErrorDetail\n */\nexport type ErrorDetail = Message<\"chain.withdraw.v1.ErrorDetail\"> & {\n /**\n * Stable error code matching the REST problem+json code field.\n *\n * @generated from field: chain.withdraw.v1.ErrorCode code = 1;\n */\n code: ErrorCode;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ErrorDetail.\n * Use `create(ErrorDetailSchema)` to create a new message.\n */\nexport const ErrorDetailSchema: GenMessage<ErrorDetail> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * TradingWithdrawIntentPayload is the client-signed typed withdraw request.\n * Account scope and backend intent ids are derived server-side.\n *\n * @generated from message chain.withdraw.v1.TradingWithdrawIntentPayload\n */\nexport type TradingWithdrawIntentPayload = Message<\"chain.withdraw.v1.TradingWithdrawIntentPayload\"> & {\n /**\n * Destination for funds leaving Trading.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawAction action = 1;\n */\n action: TradingWithdrawAction;\n\n /**\n * Unified asset identifier from Polyester asset metadata. amount_e18 is\n * denominated in this asset at canonical 18-decimal scale.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.\n *\n * @generated from field: uint64 destination_chain_id = 3;\n */\n destinationChainId: bigint;\n\n /**\n * Withdraw amount in canonical 18-decimal unified asset units.\n * For example, 0.5 is encoded as 500000000000000000.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 4;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Unix timestamp in seconds after which this signed user authorization is no\n * longer accepted by the API. This is separate from the server-owned\n * execution deadline used later for on-chain submission.\n *\n * @generated from field: uint64 deadline_ts_sec = 5;\n */\n deadlineTsSec: bigint;\n\n /**\n * Client-generated unsigned 128-bit nonce bound to the signed request. This\n * is an identifier, not a decimal amount.\n *\n * @generated from field: polyester.type.v1.U128 nonce = 6;\n */\n nonce?: U128 | undefined;\n\n /**\n * Destination address. For TO_EXTERNAL_CHAIN this is an address on\n * destination_chain_id and is validated according to that network. For\n * TO_FUNDING, omit it to move funds to the selected account's Funding account\n * or provide another Polyester funding address for a Trading-to-Funding\n * transfer.\n *\n * @generated from field: string destination_address = 7;\n */\n destinationAddress: string;\n\n /**\n * Client-chosen idempotency key. Reusing the same key with the same payload\n * returns the existing withdraw; reusing it with different payload fails.\n *\n * @generated from field: string idempotency_key = 8;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.\n * Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.\n */\nexport const TradingWithdrawIntentPayloadSchema: GenMessage<TradingWithdrawIntentPayload> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 3);\n\n/**\n * CreateTradingWithdrawRequest creates or returns one durable backend-authorized\n * Trading withdraw intent from typed protobuf fields and an API-key signature.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawRequest\n */\nexport type CreateTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * User/API signature over deterministic TradingWithdrawIntentPayload bytes.\n *\n * @generated from field: bytes payload_signature = 2;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.\n * Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawRequestSchema: GenMessage<CreateTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 4);\n\n/**\n * CreateWalletTradingWithdrawRequest creates or returns one durable Trading\n * withdraw intent from typed frontend fields plus a wallet EIP-712 signature.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawRequest\n */\nexport type CreateWalletTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * Optional public subaccount id. Omit to withdraw from the JWT root account.\n *\n * @generated from field: uint64 subaccount_id = 2;\n */\n subaccountId: bigint;\n\n /**\n * Wallet address that produced payload_signature.\n *\n * @generated from field: string signer_wallet = 3;\n */\n signerWallet: string;\n\n /**\n * Wallet EIP-712 signature over the typed withdraw payload.\n *\n * @generated from field: bytes payload_signature = 4;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.\n * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 5);\n\n/**\n * ValidateWithdrawDestinationRequest checks one external-chain\n * destination for an authenticated caller without creating a withdraw.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationRequest\n */\nexport type ValidateWithdrawDestinationRequest = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationRequest\"> & {\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 1;\n */\n destinationChainId: bigint;\n\n /**\n * Destination address to validate for destination_chain_id.\n *\n * @generated from field: string destination_address = 2;\n */\n destinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.\n * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationRequestSchema: GenMessage<ValidateWithdrawDestinationRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 6);\n\n/**\n * ValidateWithdrawDestinationResponse returns a user-safe validation\n * result without exposing internal denylist details.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationResponse\n */\nexport type ValidateWithdrawDestinationResponse = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationResponse\"> & {\n /**\n * Whether the destination may be used for a withdraw.\n *\n * @generated from field: bool valid = 1;\n */\n valid: boolean;\n\n /**\n * Public validation outcome code.\n *\n * @generated from field: chain.withdraw.v1.WithdrawDestinationValidationCode code = 2;\n */\n code: WithdrawDestinationValidationCode;\n\n /**\n * User-safe explanation of the validation outcome.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Canonical destination address when valid. Empty when valid is false.\n *\n * @generated from field: string canonical_destination_address = 4;\n */\n canonicalDestinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.\n * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 7);\n\n/**\n * ErrorCode identifies stable, machine-readable Withdraw API errors.\n * Values mirror the REST problem+json code field.\n *\n * @generated from enum chain.withdraw.v1.ErrorCode\n */\nexport enum ErrorCode {\n /**\n * No domain error code was provided.\n *\n * @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * The source account does not have enough available Trading balance.\n *\n * @generated from enum value: ERROR_CODE_INSUFFICIENT_FUNDS = 1;\n */\n INSUFFICIENT_FUNDS = 1,\n\n /**\n * Request payload or one of its fields is invalid.\n *\n * @generated from enum value: ERROR_CODE_INVALID_REQUEST = 2;\n */\n INVALID_REQUEST = 2,\n\n /**\n * Caller is not authenticated.\n *\n * @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 3;\n */\n UNAUTHENTICATED = 3,\n\n /**\n * Caller is not permitted to perform the withdraw operation.\n *\n * @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 4;\n */\n PERMISSION_DENIED = 4,\n\n /**\n * Request exceeded the applicable admission rate limit.\n *\n * @generated from enum value: ERROR_CODE_RATE_LIMIT_EXCEEDED = 5;\n */\n RATE_LIMIT_EXCEEDED = 5,\n\n /**\n * A required dependency is temporarily unavailable.\n *\n * @generated from enum value: ERROR_CODE_SERVICE_UNAVAILABLE = 6;\n */\n SERVICE_UNAVAILABLE = 6,\n\n /**\n * The request failed because of an unexpected server error.\n *\n * @generated from enum value: ERROR_CODE_INTERNAL_ERROR = 7;\n */\n INTERNAL_ERROR = 7,\n\n /**\n * The selected subaccount identifier is invalid.\n *\n * @generated from enum value: ERROR_CODE_INVALID_SUBACCOUNT_ID = 8;\n */\n INVALID_SUBACCOUNT_ID = 8,\n\n /**\n * The selected subaccount does not exist.\n *\n * @generated from enum value: ERROR_CODE_SUBACCOUNT_NOT_FOUND = 9;\n */\n SUBACCOUNT_NOT_FOUND = 9,\n\n /**\n * The requested withdraw action is invalid for this endpoint.\n *\n * @generated from enum value: ERROR_CODE_INVALID_ACTION = 10;\n */\n INVALID_ACTION = 10,\n\n /**\n * The requested ledger is not supported for withdrawals.\n *\n * @generated from enum value: ERROR_CODE_UNSUPPORTED_LEDGER = 11;\n */\n UNSUPPORTED_LEDGER = 11,\n\n /**\n * The requested asset or withdraw route is not supported.\n *\n * @generated from enum value: ERROR_CODE_UNSUPPORTED_ASSET = 12;\n */\n UNSUPPORTED_ASSET = 12,\n\n /**\n * The withdraw amount is invalid.\n *\n * @generated from enum value: ERROR_CODE_INVALID_AMOUNT = 13;\n */\n INVALID_AMOUNT = 13,\n\n /**\n * The destination chain is invalid.\n *\n * @generated from enum value: ERROR_CODE_INVALID_DESTINATION_CHAIN = 14;\n */\n INVALID_DESTINATION_CHAIN = 14,\n\n /**\n * The destination address is invalid.\n *\n * @generated from enum value: ERROR_CODE_INVALID_DESTINATION_ADDRESS = 15;\n */\n INVALID_DESTINATION_ADDRESS = 15,\n\n /**\n * The external destination is not whitelisted.\n *\n * @generated from enum value: ERROR_CODE_EXTERNAL_DESTINATION_NOT_WHITELISTED = 16;\n */\n EXTERNAL_DESTINATION_NOT_WHITELISTED = 16,\n\n /**\n * The internal funding recipient is not whitelisted.\n *\n * @generated from enum value: ERROR_CODE_INTERNAL_RECIPIENT_NOT_WHITELISTED = 17;\n */\n INTERNAL_RECIPIENT_NOT_WHITELISTED = 17,\n\n /**\n * The withdraw amount is below the configured minimum including fees.\n *\n * @generated from enum value: ERROR_CODE_AMOUNT_BELOW_MINIMUM = 18;\n */\n AMOUNT_BELOW_MINIMUM = 18,\n\n /**\n * The withdraw amount exceeds the available zipped-asset supply.\n *\n * @generated from enum value: ERROR_CODE_AMOUNT_EXCEEDS_SUPPLY = 19;\n */\n AMOUNT_EXCEEDS_SUPPLY = 19,\n\n /**\n * The source smart-account address is unavailable.\n *\n * @generated from enum value: ERROR_CODE_SOURCE_SMART_ACCOUNT_UNAVAILABLE = 20;\n */\n SOURCE_SMART_ACCOUNT_UNAVAILABLE = 20,\n\n /**\n * The required payload signature is missing.\n *\n * @generated from enum value: ERROR_CODE_SIGNATURE_REQUIRED = 21;\n */\n SIGNATURE_REQUIRED = 21,\n\n /**\n * The requested signature scheme is unsupported.\n *\n * @generated from enum value: ERROR_CODE_SIGNATURE_SCHEME_UNSUPPORTED = 22;\n */\n SIGNATURE_SCHEME_UNSUPPORTED = 22,\n\n /**\n * The wallet supplied as signer is invalid.\n *\n * @generated from enum value: ERROR_CODE_SIGNER_WALLET_INVALID = 23;\n */\n SIGNER_WALLET_INVALID = 23,\n\n /**\n * Wallet authorization binding verification failed.\n *\n * @generated from enum value: ERROR_CODE_WALLET_BINDING_INVALID = 24;\n */\n WALLET_BINDING_INVALID = 24,\n\n /**\n * Wallet authorization binding does not cover the requested scope.\n *\n * @generated from enum value: ERROR_CODE_WALLET_BINDING_SCOPE_MISMATCH = 25;\n */\n WALLET_BINDING_SCOPE_MISMATCH = 25,\n\n /**\n * Wallet authorization binding does not match the signer.\n *\n * @generated from enum value: ERROR_CODE_WALLET_BINDING_SIGNER_MISMATCH = 26;\n */\n WALLET_BINDING_SIGNER_MISMATCH = 26,\n\n /**\n * The API key could not be resolved.\n *\n * @generated from enum value: ERROR_CODE_API_KEY_NOT_FOUND = 27;\n */\n API_KEY_NOT_FOUND = 27,\n\n /**\n * API-key authorization binding verification failed.\n *\n * @generated from enum value: ERROR_CODE_API_KEY_BINDING_INVALID = 28;\n */\n API_KEY_BINDING_INVALID = 28,\n\n /**\n * API-key authorization binding does not cover the requested scope.\n *\n * @generated from enum value: ERROR_CODE_API_KEY_BINDING_SCOPE_MISMATCH = 29;\n */\n API_KEY_BINDING_SCOPE_MISMATCH = 29,\n\n /**\n * API-key authorization binding does not match the configured public key.\n *\n * @generated from enum value: ERROR_CODE_API_KEY_BINDING_PUBLIC_KEY_MISMATCH = 30;\n */\n API_KEY_BINDING_PUBLIC_KEY_MISMATCH = 30,\n\n /**\n * The idempotency key was reused with different request data.\n *\n * @generated from enum value: ERROR_CODE_IDEMPOTENCY_CONFLICT = 31;\n */\n IDEMPOTENCY_CONFLICT = 31,\n\n /**\n * The funds lock conflicts with an existing or finalized reservation.\n *\n * @generated from enum value: ERROR_CODE_FUNDS_LOCK_CONFLICT = 32;\n */\n FUNDS_LOCK_CONFLICT = 32,\n\n /**\n * The authoritative capital view is not ready or is stale.\n *\n * @generated from enum value: ERROR_CODE_CAPITAL_VIEW_UNAVAILABLE = 33;\n */\n CAPITAL_VIEW_UNAVAILABLE = 33,\n\n /**\n * Required chain or contract metadata is unavailable.\n *\n * @generated from enum value: ERROR_CODE_CHAIN_METADATA_UNAVAILABLE = 34;\n */\n CHAIN_METADATA_UNAVAILABLE = 34,\n\n /**\n * Required network fee data is unavailable.\n *\n * @generated from enum value: ERROR_CODE_FEE_UNAVAILABLE = 35;\n */\n FEE_UNAVAILABLE = 35,\n\n /**\n * Required zipped-asset supply data is unavailable.\n *\n * @generated from enum value: ERROR_CODE_SUPPLY_UNAVAILABLE = 36;\n */\n SUPPLY_UNAVAILABLE = 36,\n\n /**\n * Fresh step-up verification is temporarily unavailable.\n *\n * @generated from enum value: ERROR_CODE_STEP_UP_UNAVAILABLE = 37;\n */\n STEP_UP_UNAVAILABLE = 37,\n\n /**\n * Destination validation is temporarily unavailable.\n *\n * @generated from enum value: ERROR_CODE_DESTINATION_VALIDATION_UNAVAILABLE = 38;\n */\n DESTINATION_VALIDATION_UNAVAILABLE = 38,\n\n /**\n * The account shard cannot currently accept fund movement.\n *\n * @generated from enum value: ERROR_CODE_ACCOUNT_SHARD_UNAVAILABLE = 39;\n */\n ACCOUNT_SHARD_UNAVAILABLE = 39,\n\n /**\n * A required precondition was not satisfied.\n *\n * @generated from enum value: ERROR_CODE_FAILED_PRECONDITION = 40;\n */\n FAILED_PRECONDITION = 40,\n\n /**\n * The requested resource was not found.\n *\n * @generated from enum value: ERROR_CODE_NOT_FOUND = 41;\n */\n NOT_FOUND = 41,\n\n /**\n * The request conflicts with existing state.\n *\n * @generated from enum value: ERROR_CODE_CONFLICT = 42;\n */\n CONFLICT = 42,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.ErrorCode.\n */\nexport const ErrorCodeSchema: GenEnum<ErrorCode> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * TradingWithdrawAction identifies where funds should move from Trading.\n *\n * @generated from enum chain.withdraw.v1.TradingWithdrawAction\n */\nexport enum TradingWithdrawAction {\n /**\n * @generated from enum value: ACTION_UNSPECIFIED = 0;\n */\n ACTION_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: TO_FUNDING = 1;\n */\n TO_FUNDING = 1,\n\n /**\n * @generated from enum value: TO_EXTERNAL_CHAIN = 2;\n */\n TO_EXTERNAL_CHAIN = 2,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.TradingWithdrawAction.\n */\nexport const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * WithdrawDestinationValidationCode identifies the public outcome of an\n * external-chain destination validation.\n *\n * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode\n */\nexport enum WithdrawDestinationValidationCode {\n /**\n * No validation outcome was produced.\n *\n * @generated from enum value: RESULT_UNSPECIFIED = 0;\n */\n RESULT_UNSPECIFIED = 0,\n\n /**\n * The destination is valid and may be used for a withdraw.\n *\n * @generated from enum value: VALID = 1;\n */\n VALID = 1,\n\n /**\n * The address is not valid for the selected destination chain.\n *\n * @generated from enum value: INVALID_ADDRESS = 2;\n */\n INVALID_ADDRESS = 2,\n\n /**\n * The selected destination chain is not supported for withdraws.\n *\n * @generated from enum value: UNSUPPORTED_CHAIN = 3;\n */\n UNSUPPORTED_CHAIN = 3,\n\n /**\n * The destination is a Polyester smart account and cannot be used for an\n * external-chain withdraw.\n *\n * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;\n */\n POLYESTER_SMART_ACCOUNT = 4,\n\n /**\n * The destination is a token contract and cannot receive withdrawals.\n *\n * @generated from enum value: TOKEN_CONTRACT = 5;\n */\n TOKEN_CONTRACT = 5,\n\n /**\n * The destination is blocked by Polyester's user-safety denylist.\n *\n * @generated from enum value: DENYLISTED_ADDRESS = 6;\n */\n DENYLISTED_ADDRESS = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.\n */\nexport const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * WithdrawService manages authenticated chain-facing withdraw request intake.\n *\n * @generated from service chain.withdraw.v1.WithdrawService\n */\nexport const WithdrawService: GenService<{\n /**\n * Validate an external-chain withdraw destination for an authenticated\n * caller without creating, signing, or reserving a withdraw.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.ValidateWithdrawDestination\n */\n validateWithdrawDestination: {\n methodKind: \"unary\";\n input: typeof ValidateWithdrawDestinationRequestSchema;\n output: typeof ValidateWithdrawDestinationResponseSchema;\n },\n /**\n * Create or return one durable withdraw from Trading.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateTradingWithdraw\n */\n createTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateTradingWithdrawRequestSchema;\n output: typeof CreateTradingWithdrawResponseSchema;\n },\n /**\n * Create or return one wallet/JWT withdraw from Trading.\n * Root-owner Trading to Funding and root-owner withdrawals to explicitly\n * whitelisted external destinations accept recent MFA. Other external,\n * cross-owner, and delegated movements require a fresh single-use step-up.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateWalletTradingWithdraw\n */\n createWalletTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateWalletTradingWithdrawRequestSchema;\n output: typeof CreateWalletTradingWithdrawResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,kCACX,uBAAS,4rJAA4rJ,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsBhwJ,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAoBhD,MAAa,oBACX,0BAAY,iCAAiC,CAAC;;;;;AAgFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;;;AAQhD,IAAY,YAAL,yBAAA,WAAA;;;;;;CAML,UAAA,UAAA,iBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,wBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,qBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,qBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,uBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,yBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,yBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,oBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,2BAAA,KAAA;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;;;CAOA,UAAA,UAAA,cAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,kBACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,IAAY,wBAAL,yBAAA,uBAAA;;;;CAIL,sBAAA,sBAAA,wBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,gBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,iCAAiC,CAAC;;;;;;;AAQ7C,IAAY,oCAAL,yBAAA,mCAAA;;;;;;CAML,kCAAA,kCAAA,wBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,WAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,qBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,uBAAA,KAAA;;;;;;;CAQA,kCAAA,kCAAA,6BAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,oBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,0CACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,MAAa,kBAoCX,0BAAY,iCAAiC,CAAC"}
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { mfa_pb_d_exports } from "./auth/v1/mfa_pb.js";
|
|
2
|
+
import { auth_pb_d_exports } from "./auth/v1/auth_pb.js";
|
|
3
|
+
import { profile_pb_d_exports } from "./auth/v1/profile_pb.js";
|
|
4
|
+
import { u128_pb_d_exports } from "./polyester/type/v1/u128_pb.js";
|
|
5
|
+
import { withdraw_pb_d_exports } from "./chain/withdraw/v1/withdraw_pb.js";
|
|
6
|
+
import { catalog_pb_d_exports } from "./ledger/v1/catalog_pb.js";
|
|
7
|
+
import { ledger_read_pb_d_exports } from "./ledger/read/v1/ledger_read_pb.js";
|
|
8
|
+
import { marketoverview_pb_d_exports } from "./marketoverview/v1/marketoverview_pb.js";
|
|
9
|
+
import { internal_transfer_pb_d_exports } from "./transfer/v1/internal_transfer_pb.js";
|
|
1
10
|
import { types_pb_d_exports as types_pb_d_exports$1 } from "./polyester/ratelimit/v1/types_pb.js";
|
|
11
|
+
import { orders_pb_d_exports } from "./orders/v1/orders_pb.js";
|
|
2
12
|
import { api_keys_pb_d_exports } from "./auth/v1/api_keys_pb.js";
|
|
3
13
|
import { policies_pb_d_exports } from "./auth/v1/policies_pb.js";
|
|
4
|
-
import { catalog_pb_d_exports } from "./ledger/v1/catalog_pb.js";
|
|
5
|
-
import { u128_pb_d_exports } from "./polyester/type/v1/u128_pb.js";
|
|
6
|
-
import { ledger_read_pb_d_exports } from "./ledger/read/v1/ledger_read_pb.js";
|
|
7
14
|
import { subaccounts_pb_d_exports } from "./auth/v1/subaccounts_pb.js";
|
|
8
15
|
import { address_book_pb_d_exports } from "./auth/v1/address_book_pb.js";
|
|
9
|
-
import { mfa_pb_d_exports } from "./auth/v1/mfa_pb.js";
|
|
10
|
-
import { auth_pb_d_exports } from "./auth/v1/auth_pb.js";
|
|
11
|
-
import { profile_pb_d_exports } from "./auth/v1/profile_pb.js";
|
|
12
16
|
import { resolve_pb_d_exports } from "./auth/v1/resolve_pb.js";
|
|
13
17
|
import { social_verification_pb_d_exports } from "./auth/v1/social_verification_pb.js";
|
|
14
18
|
import { analytics_read_pb_d_exports } from "./chain/analytics/v1/analytics_read_pb.js";
|
|
@@ -17,7 +21,6 @@ import { guard_signer_pb_d_exports } from "./chain/guard/v1/guard_signer_pb.js";
|
|
|
17
21
|
import { types_pb_d_exports } from "./chain/lifecycle/v1/types_pb.js";
|
|
18
22
|
import { reason_pb_d_exports } from "./chain/zipper/v1/reason_pb.js";
|
|
19
23
|
import { lifecycle_read_pb_d_exports } from "./chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
20
|
-
import { withdraw_pb_d_exports } from "./chain/withdraw/v1/withdraw_pb.js";
|
|
21
24
|
import { zipper_pb_d_exports } from "./chain/zipper/v1/zipper_pb.js";
|
|
22
25
|
import { whiteboard_pb_d_exports } from "./collab/v1/whiteboard_pb.js";
|
|
23
26
|
import { fees_pb_d_exports } from "./fees/v1/fees_pb.js";
|
|
@@ -25,15 +28,12 @@ import { polychart_pb_d_exports } from "./polychart/v1/polychart_pb.js";
|
|
|
25
28
|
import { layout_pb_d_exports } from "./layout/v1/layout_pb.js";
|
|
26
29
|
import { heatmap_pb_d_exports } from "./marketdata/v1/heatmap_pb.js";
|
|
27
30
|
import { marketdata_pb_d_exports } from "./marketdata/v1/marketdata_pb.js";
|
|
28
|
-
import { marketoverview_pb_d_exports } from "./marketoverview/v1/marketoverview_pb.js";
|
|
29
31
|
import { orderbook_pb_d_exports } from "./orderbook/v1/orderbook_pb.js";
|
|
30
|
-
import { orders_pb_d_exports } from "./orders/v1/orders_pb.js";
|
|
31
32
|
import { orders_read_pb_d_exports } from "./orders/v1/orders_read_pb.js";
|
|
32
33
|
import { polychart_events_pb_d_exports } from "./polychart/events/v1/polychart_events_pb.js";
|
|
33
34
|
import { options_pb_d_exports } from "./polyester/api/options_pb.js";
|
|
34
35
|
import { ratelimit_pb_d_exports } from "./ratelimit/v1/ratelimit_pb.js";
|
|
35
36
|
import { trade_ws_pb_d_exports } from "./tradews/v1/trade_ws_pb.js";
|
|
36
|
-
import { internal_transfer_pb_d_exports } from "./transfer/v1/internal_transfer_pb.js";
|
|
37
37
|
import { triggers_pb_d_exports } from "./triggers/v1/triggers_pb.js";
|
|
38
38
|
import { vip_pb_d_exports } from "./vip/v1/vip_pb.js";
|
|
39
39
|
export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, deposit_pb_d_exports as depositPb, fees_pb_d_exports as feesPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, ratelimit_pb_d_exports as tradingRateLimitPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, vip_pb_d_exports as vipPb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
|
package/dist/gen/index.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { options_pb_exports } from "./polyester/api/options_pb.js";
|
|
2
2
|
import { mfa_pb_exports } from "./auth/v1/mfa_pb.js";
|
|
3
3
|
import { auth_pb_exports } from "./auth/v1/auth_pb.js";
|
|
4
|
+
import { profile_pb_exports } from "./auth/v1/profile_pb.js";
|
|
5
|
+
import { u128_pb_exports } from "./polyester/type/v1/u128_pb.js";
|
|
6
|
+
import { withdraw_pb_exports } from "./chain/withdraw/v1/withdraw_pb.js";
|
|
7
|
+
import { catalog_pb_exports } from "./ledger/v1/catalog_pb.js";
|
|
8
|
+
import { ledger_read_pb_exports } from "./ledger/read/v1/ledger_read_pb.js";
|
|
9
|
+
import { marketoverview_pb_exports } from "./marketoverview/v1/marketoverview_pb.js";
|
|
4
10
|
import { types_pb_exports as types_pb_exports$1 } from "./polyester/ratelimit/v1/types_pb.js";
|
|
5
11
|
import { orders_pb_exports } from "./orders/v1/orders_pb.js";
|
|
12
|
+
import { internal_transfer_pb_exports } from "./transfer/v1/internal_transfer_pb.js";
|
|
6
13
|
import { resolve_pb_exports } from "./auth/v1/resolve_pb.js";
|
|
7
14
|
import { api_keys_pb_exports } from "./auth/v1/api_keys_pb.js";
|
|
8
15
|
import { policies_pb_exports } from "./auth/v1/policies_pb.js";
|
|
9
|
-
import { profile_pb_exports } from "./auth/v1/profile_pb.js";
|
|
10
|
-
import { catalog_pb_exports } from "./ledger/v1/catalog_pb.js";
|
|
11
|
-
import { u128_pb_exports } from "./polyester/type/v1/u128_pb.js";
|
|
12
|
-
import { ledger_read_pb_exports } from "./ledger/read/v1/ledger_read_pb.js";
|
|
13
16
|
import { subaccounts_pb_exports } from "./auth/v1/subaccounts_pb.js";
|
|
14
17
|
import { marketdata_pb_exports } from "./marketdata/v1/marketdata_pb.js";
|
|
15
18
|
import { analytics_read_pb_exports } from "./chain/analytics/v1/analytics_read_pb.js";
|
|
16
|
-
import { marketoverview_pb_exports } from "./marketoverview/v1/marketoverview_pb.js";
|
|
17
19
|
import { orderbook_pb_exports } from "./orderbook/v1/orderbook_pb.js";
|
|
18
20
|
import { heatmap_pb_exports } from "./marketdata/v1/heatmap_pb.js";
|
|
19
21
|
import { types_pb_exports } from "./chain/lifecycle/v1/types_pb.js";
|
|
@@ -21,8 +23,6 @@ import { reason_pb_exports } from "./chain/zipper/v1/reason_pb.js";
|
|
|
21
23
|
import { lifecycle_read_pb_exports } from "./chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
22
24
|
import { orders_read_pb_exports } from "./orders/v1/orders_read_pb.js";
|
|
23
25
|
import { triggers_pb_exports } from "./triggers/v1/triggers_pb.js";
|
|
24
|
-
import { internal_transfer_pb_exports } from "./transfer/v1/internal_transfer_pb.js";
|
|
25
|
-
import { withdraw_pb_exports } from "./chain/withdraw/v1/withdraw_pb.js";
|
|
26
26
|
import { deposit_pb_exports } from "./chain/deposit/v1/deposit_pb.js";
|
|
27
27
|
import { address_book_pb_exports } from "./auth/v1/address_book_pb.js";
|
|
28
28
|
import { guard_signer_pb_exports } from "./chain/guard/v1/guard_signer_pb.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AccountCode, TransferCode } from "../../v1/catalog_pb.js";
|
|
2
1
|
import { U128 } from "../../../polyester/type/v1/u128_pb.js";
|
|
2
|
+
import { AccountCode, TransferCode } from "../../v1/catalog_pb.js";
|
|
3
3
|
import { Message } from "@bufbuild/protobuf";
|
|
4
4
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
declare namespace ledger_read_pb_d_exports {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { file_ledger_v1_catalog } from "../../v1/catalog_pb.js";
|
|
3
2
|
import { file_polyester_type_v1_u128 } from "../../../polyester/type/v1/u128_pb.js";
|
|
3
|
+
import { file_ledger_v1_catalog } from "../../v1/catalog_pb.js";
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
//#region src/gen/ledger/read/v1/ledger_read_pb.ts
|
|
6
6
|
var ledger_read_pb_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -59,7 +59,9 @@ type PriceLevel = Message<"orderbook.v1.PriceLevel"> & {
|
|
|
59
59
|
declare const PriceLevelSchema: GenMessage<PriceLevel>;
|
|
60
60
|
/**
|
|
61
61
|
* GetOrderBookResponse is a depth snapshot for the binary (protobuf) API (scaled integers).
|
|
62
|
-
* REST surfaces expose decimal strings via DTO conversion.
|
|
62
|
+
* REST surfaces expose decimal strings via DTO conversion. A configured symbol
|
|
63
|
+
* without an initialized book returns a successful snapshot with sequence zero
|
|
64
|
+
* and empty bid and ask collections.
|
|
63
65
|
*
|
|
64
66
|
* @generated from message orderbook.v1.GetOrderBookResponse
|
|
65
67
|
*/
|
|
@@ -77,13 +79,13 @@ type GetOrderBookResponse = Message<"orderbook.v1.GetOrderBookResponse"> & {
|
|
|
77
79
|
*/
|
|
78
80
|
bookSeq: bigint;
|
|
79
81
|
/**
|
|
80
|
-
* Best bid first; descending price.
|
|
82
|
+
* Best bid first; descending price. Empty when there is no current liquidity.
|
|
81
83
|
*
|
|
82
84
|
* @generated from field: repeated orderbook.v1.PriceLevel bids = 3;
|
|
83
85
|
*/
|
|
84
86
|
bids: PriceLevel[];
|
|
85
87
|
/**
|
|
86
|
-
* Best ask first; ascending price.
|
|
88
|
+
* Best ask first; ascending price. Empty when there is no current liquidity.
|
|
87
89
|
*
|
|
88
90
|
* @generated from field: repeated orderbook.v1.PriceLevel asks = 4;
|
|
89
91
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderbook_pb.d.ts","names":[],"sources":["../../../../src/gen/orderbook/v1/orderbook_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;KAQ9B,sBAAsB;;;;;;EAMhC;;;;;;EAOA,OAAO;;;;;;cAOI,2BAA2B,WAAW;;;;;;;KASvC,aAAa;;;;;;EAMvB;;;;;;EAOA;;;;;;cAOW,kBAAkB,WAAW
|
|
1
|
+
{"version":3,"file":"orderbook_pb.d.ts","names":[],"sources":["../../../../src/gen/orderbook/v1/orderbook_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;KAQ9B,sBAAsB;;;;;;EAMhC;;;;;;EAOA,OAAO;;;;;;cAOI,2BAA2B,WAAW;;;;;;;KASvC,aAAa;;;;;;EAMvB;;;;;;EAOA;;;;;;cAOW,kBAAkB,WAAW;;;;;;;;;KAW9B,uBAAuB;;;;;;EAMjC;;;;;;EAOA;;;;;;EAOA,MAAM;;;;;;EAON,MAAM;;;;;;EAON,KAAK;;;;;;cAOM,4BAA4B,WAAW;;;;;;;;;;;;;;;;;KAmBxC,iBAAiB;;;;;;EAM3B;;;;;;;EAQA;;;;;;;EAQA;;;;;;EAOA,MAAM;;;;;;EAON,MAAM;;;;;;;EAQN;;;;;;EAOA,KAAK;;;;;;cAOM,sBAAsB,WAAW;;;;;;aAQlC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,aAAa,QAAQ;;;;cAMrB,kBAAkB;;;;;;;EAO7B;IACE;IACA,cAAc;IACd,eAAe"}
|