@polyester/sdk 0.32.2-devnet-20261103214026 → 0.33.0-devnet-20261104154957

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 (80) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/gen/auth/v1/auth_pb.js +1 -1
  3. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  4. package/dist/gen/auth/v1/policies_pb.js +1 -1
  5. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  6. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +6 -4
  7. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  8. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  9. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
  10. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  11. package/dist/gen/chain/lifecycle/v1/types_pb.js +1 -1
  12. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  13. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  14. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +1 -1
  15. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  16. package/dist/gen/fees/v1/fees_pb.d.ts +228 -12
  17. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
  18. package/dist/gen/fees/v1/fees_pb.js +23 -4
  19. package/dist/gen/fees/v1/fees_pb.js.map +1 -1
  20. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +16 -121
  21. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  22. package/dist/gen/ledger/read/v1/ledger_read_pb.js +4 -22
  23. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  24. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +24 -21
  25. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  26. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  27. package/dist/gen/orders/v1/orders_pb.d.ts +54 -28
  28. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  29. package/dist/gen/orders/v1/orders_pb.js +18 -12
  30. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  31. package/dist/gen/orders/v1/orders_read_pb.d.ts +28 -14
  32. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  33. package/dist/gen/orders/v1/orders_read_pb.js +11 -7
  34. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  35. package/dist/gen/privatews/v1/private_ws_pb.js +1 -1
  36. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -1
  37. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +3 -2
  38. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
  39. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
  40. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1 -1
  41. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  42. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +4 -3
  43. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  44. package/dist/gen/transfer/v1/internal_transfer_pb.js +1 -1
  45. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  46. package/dist/gen/triggers/v1/triggers_pb.d.ts +51 -31
  47. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  48. package/dist/gen/triggers/v1/triggers_pb.js +19 -17
  49. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  50. package/dist/index.d.ts +2 -2
  51. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  52. package/dist/services/balances/balances.schemas.d.ts +3 -3
  53. package/dist/services/candles/candles.schemas.d.ts +10 -10
  54. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  55. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  56. package/dist/services/fees/fees.d.ts +1 -1
  57. package/dist/services/fees/fees.js +1 -1
  58. package/dist/services/fees/fees.js.map +1 -1
  59. package/dist/services/fees/fees.schemas.d.ts +172 -1
  60. package/dist/services/fees/fees.schemas.d.ts.map +1 -1
  61. package/dist/services/fees/fees.schemas.js +38 -1
  62. package/dist/services/fees/fees.schemas.js.map +1 -1
  63. package/dist/services/fees/fees.types.d.ts +2 -2
  64. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  65. package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
  66. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  67. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  68. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  69. package/dist/services/orders/orders-batch.schemas.d.ts +25 -25
  70. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  71. package/dist/services/orders/orders-output.schemas.d.ts +13 -13
  72. package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
  73. package/dist/services/trades/trades.schemas.d.ts +8 -8
  74. package/dist/services/trades/trades.schemas.d.ts.map +1 -1
  75. package/dist/services/trades/trades.schemas.js +8 -7
  76. package/dist/services/trades/trades.schemas.js.map +1 -1
  77. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  78. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  79. package/dist/services/triggers/triggers-output.schemas.d.ts +37 -37
  80. package/package.json +1 -1
@@ -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(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSI5CgtFcnJvckRldGFpbBIqCgRjb2RlGAEgASgOMhwuY2hhaW4ud2l0aGRyYXcudjEuRXJyb3JDb2RlIrgCChxUcmFkaW5nV2l0aGRyYXdJbnRlbnRQYXlsb2FkEjoKBmFjdGlvbhgBIAEoDjIoLmNoYWluLndpdGhkcmF3LnYxLlRyYWRpbmdXaXRoZHJhd0FjdGlvbkIAEhIKCGFzc2V0X2lkGAIgASgNQgASHAoUZGVzdGluYXRpb25fY2hhaW5faWQYAyABKAQSLQoKYW1vdW50X2UxOBgEIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjhCABIZCg9kZWFkbGluZV90c19zZWMYBSABKARCABIoCgVub25jZRgGIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjhCABIbChNkZXN0aW5hdGlvbl9hZGRyZXNzGAcgASgJEhkKD2lkZW1wb3RlbmN5X2tleRgIIAEoCUIAIn8KHENyZWF0ZVRyYWRpbmdXaXRoZHJhd1JlcXVlc3QSQgoHcGF5bG9hZBgBIAEoCzIvLmNoYWluLndpdGhkcmF3LnYxLlRyYWRpbmdXaXRoZHJhd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oFVkFMSUQQARITCg9JTlZBTElEX0FERFJFU1MQAhIVChFVTlNVUFBPUlRFRF9DSEFJThADEhsKF1BPTFlFU1RFUl9TTUFSVF9BQ0NPVU5UEAQSEgoOVE9LRU5fQ09OVFJBQ1QQBRIWChJERU5ZTElTVEVEX0FERFJFU1MQBjKzAwoPV2l0aGRyYXdTZXJ2aWNlEo4BChtWYWxpZGF0ZVdpdGhkcmF3RGVzdGluYXRpb24SNS5jaGFpbi53aXRoZHJhdy52MS5WYWxpZGF0ZVdpdGhkcmF3RGVzdGluYXRpb25SZXF1ZXN0GjYuY2hhaW4ud2l0aGRyYXcudjEuVmFsaWRhdGVXaXRoZHJhd0Rlc3RpbmF0aW9uUmVzcG9uc2UiABJ8ChVDcmVhdGVUcmFkaW5nV2l0aGRyYXcSLy5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVUcmFkaW5nV2l0aGRyYXdSZXF1ZXN0GjAuY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2UiABKOAQobQ3JlYXRlV2FsbGV0VHJhZGluZ1dpdGhkcmF3EjUuY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlV2FsbGV0VHJhZGluZ1dpdGhkcmF3UmVxdWVzdBo2LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgAaAEJPWk1naXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2NoYWluL3dpdGhkcmF3L3YxO2NoYWlud2l0aGRyYXd2MWIGcHJvdG8z\", [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. For TO_EXTERNAL_CHAIN,\n * it must be a whole number of the destination network token's smallest\n * units: a multiple of 10^(18 - AssetChainVariant.source_decimals) when the\n * token has fewer than 18 decimals. A finer amount is refused with\n * ERROR_CODE_AMOUNT_EXCEEDS_ROUTE_PRECISION before any funds are reserved.\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 * Must not be empty.\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 personal_sign 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-191 personal_sign signature over the canonical withdraw\n * authorization message. Must not be empty.\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 * The auto-withdraw schedule is invalid: a field its cadence needs is\n * missing or out of range, or a field of another cadence is set.\n *\n * @generated from enum value: ERROR_CODE_INVALID_AUTO_WITHDRAW_SCHEDULE = 43;\n */\n INVALID_AUTO_WITHDRAW_SCHEDULE = 43,\n\n /**\n * The withdraw amount has more decimal places than the destination\n * network's token supports (AssetChainVariant.source_decimals). Round\n * amount_e18 down to a whole number of that token's smallest units before\n * signing.\n *\n * @generated from enum value: ERROR_CODE_AMOUNT_EXCEEDS_ROUTE_PRECISION = 44;\n */\n AMOUNT_EXCEEDS_ROUTE_PRECISION = 44,\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,4zJAA4zJ,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsBh4J,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAoBhD,MAAa,oBACX,0BAAY,iCAAiC,CAAC;;;;;AAoFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA6BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA2ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;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_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(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSI5CgtFcnJvckRldGFpbBIqCgRjb2RlGAEgASgOMhwuY2hhaW4ud2l0aGRyYXcudjEuRXJyb3JDb2RlIrgCChxUcmFkaW5nV2l0aGRyYXdJbnRlbnRQYXlsb2FkEjoKBmFjdGlvbhgBIAEoDjIoLmNoYWluLndpdGhkcmF3LnYxLlRyYWRpbmdXaXRoZHJhd0FjdGlvbkIAEhIKCGFzc2V0X2lkGAIgASgNQgASHAoUZGVzdGluYXRpb25fY2hhaW5faWQYAyABKAQSLQoKYW1vdW50X2UxOBgEIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjhCABIZCg9kZWFkbGluZV90c19zZWMY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zZGstZ28vZ2VuL2NoYWluL3dpdGhkcmF3L3YxO2NoYWlud2l0aGRyYXd2MWIGcHJvdG8z\", [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. For TO_EXTERNAL_CHAIN,\n * it must be a whole number of the destination network token's smallest\n * units: a multiple of 10^(18 - AssetChainVariant.source_decimals) when the\n * token has fewer than 18 decimals. A finer amount is refused with\n * ERROR_CODE_AMOUNT_EXCEEDS_ROUTE_PRECISION before any funds are reserved.\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 * Must not be empty.\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 personal_sign 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-191 personal_sign signature over the canonical withdraw\n * authorization message. Must not be empty.\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 * Funds movement for this account is temporarily unavailable. Retry later.\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 * The auto-withdraw schedule is invalid: a field its cadence needs is\n * missing or out of range, or a field of another cadence is set.\n *\n * @generated from enum value: ERROR_CODE_INVALID_AUTO_WITHDRAW_SCHEDULE = 43;\n */\n INVALID_AUTO_WITHDRAW_SCHEDULE = 43,\n\n /**\n * The withdraw amount has more decimal places than the destination\n * network's token supports (AssetChainVariant.source_decimals). Round\n * amount_e18 down to a whole number of that token's smallest units before\n * signing.\n *\n * @generated from enum value: ERROR_CODE_AMOUNT_EXCEEDS_ROUTE_PRECISION = 44;\n */\n AMOUNT_EXCEEDS_ROUTE_PRECISION = 44,\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,4zJAA4zJ,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsBh4J,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iC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;;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,15 +1,17 @@
1
1
  import { Message } from "@bufbuild/protobuf";
2
2
  import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
+ import { Timestamp } from "@bufbuild/protobuf/wkt";
3
4
  declare namespace fees_pb_d_exports {
4
- export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeRate, SpotFeeRateSchema, file_fees_v1_fees };
5
+ export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeDiscount, SpotFeeDiscountSchema, SpotFeeMultiplier, SpotFeeMultiplierSchema, SpotFeeRate, SpotFeeRateBreakdown, SpotFeeRateBreakdownSchema, SpotFeeRateSchema, file_fees_v1_fees };
5
6
  }
6
7
  /**
7
8
  * Describes the file fees/v1/fees.proto.
8
9
  */
9
10
  declare const file_fees_v1_fees: GenFile;
10
11
  /**
11
- * SpotFeeRate describes the effective maker and taker rates for one spot
12
- * market and account target.
12
+ * SpotFeeRate describes, for one spot market and account target, the
13
+ * effective maker and taker rates, the rates an order reserves its fee at,
14
+ * and the components the effective rates are computed from.
13
15
  *
14
16
  * @generated from message fees.v1.SpotFeeRate
15
17
  */
@@ -22,14 +24,16 @@ type SpotFeeRate = Message<"fees.v1.SpotFeeRate"> & {
22
24
  symbolId: number;
23
25
  /**
24
26
  * Effective maker fee rate encoded as a base-10 percentage string without a
25
- * percent sign. Values are between -100 and 100 inclusive.
27
+ * percent sign. Values are between -100 and 100 inclusive. It is computed
28
+ * from breakdown as SpotFeeRateBreakdown describes.
26
29
  *
27
30
  * @generated from field: string maker_fee_rate_percent = 3;
28
31
  */
29
32
  makerFeeRatePercent: string;
30
33
  /**
31
34
  * Effective taker fee rate encoded as a non-negative base-10 percentage
32
- * string without a percent sign. Values are between 0 and 100 inclusive.
35
+ * string without a percent sign. Values are between 0 and 100 inclusive. It
36
+ * is computed from breakdown as SpotFeeRateBreakdown describes.
33
37
  *
34
38
  * @generated from field: string taker_fee_rate_percent = 4;
35
39
  */
@@ -40,12 +44,222 @@ type SpotFeeRate = Message<"fees.v1.SpotFeeRate"> & {
40
44
  * @generated from field: uint32 vip_tier = 5;
41
45
  */
42
46
  vipTier: number;
47
+ /**
48
+ * Fee rate a new order on this market reserves its fee at when the fee is
49
+ * paid in the quote asset, encoded as a non-negative base-10 percentage
50
+ * string without a percent sign, between 0 and 100 inclusive. It is the
51
+ * highest maker or taker rate of every VIP tier under the fee schedule in
52
+ * force on this market, so it is at least the effective rates and
53
+ * discounts never lower it. A buy limit order that pays its fee in the
54
+ * quote asset reserves N + F, computed in units of 10^-18 of the quote
55
+ * asset whatever the quote asset's own decimals: N is its price times its
56
+ * quantity rounded up to 10^-18, and F is N times this rate rounded up to
57
+ * 10^-18. It has sufficient quote balance when N + F is at most the
58
+ * available quote balance, compared in the same 10^-18 units; other order
59
+ * validation and market limits still apply. A post-only limit order
60
+ * reserves at post_only_reserve_fee_rate_percent instead, and a buy sized
61
+ * by a quote amount reserves at the lower of this rate and
62
+ * taker_fee_rate_percent. Fills charge the effective rate, and the rest of
63
+ * the reserve is released as the order fills or ends.
64
+ *
65
+ * @generated from field: string reserve_fee_rate_percent = 6;
66
+ */
67
+ reserveFeeRatePercent: string;
68
+ /**
69
+ * Fee rate a new post-only limit order on this market reserves its fee at
70
+ * when the fee is paid in the quote asset, encoded as a non-negative
71
+ * base-10 percentage string without a percent sign, between 0 and 100
72
+ * inclusive: the highest maker rate of every VIP tier under the fee
73
+ * schedule in force on this market, as reserve_fee_rate_percent describes.
74
+ *
75
+ * @generated from field: string post_only_reserve_fee_rate_percent = 7;
76
+ */
77
+ postOnlyReserveFeeRatePercent: string;
78
+ /**
79
+ * Components of the effective maker and taker rates in force.
80
+ *
81
+ * @generated from field: fees.v1.SpotFeeRateBreakdown breakdown = 8;
82
+ */
83
+ breakdown?: SpotFeeRateBreakdown | undefined;
84
+ /**
85
+ * Earliest scheduled time at which a component of these rates starts or
86
+ * ends: a fee schedule or discount in breakdown ending, or a VIP tier, fee
87
+ * policy, fee schedule or discount not yet in force starting. The effective
88
+ * and reserve rates can change then, or stay the same. Omitted when no
89
+ * change is scheduled.
90
+ *
91
+ * @generated from field: optional google.protobuf.Timestamp next_change_at = 9;
92
+ */
93
+ nextChangeAt?: Timestamp | undefined;
43
94
  };
44
95
  /**
45
96
  * Describes the message fees.v1.SpotFeeRate.
46
97
  * Use `create(SpotFeeRateSchema)` to create a new message.
47
98
  */
48
99
  declare const SpotFeeRateSchema: GenMessage<SpotFeeRate>;
100
+ /**
101
+ * SpotFeeRateBreakdown lists the components of one market's effective fee
102
+ * rates in force. A client reproduces maker_fee_rate_percent and
103
+ * taker_fee_rate_percent exactly by applying the steps below to the maker
104
+ * and the taker rate separately, in this order, in integer arithmetic. Work
105
+ * in units of 0.0000001 percent: write every rate as an integer R, the
106
+ * percentage times 10,000,000. Write every multiplier and discount as an
107
+ * integer M or D, the percentage times 100. trunc(x / 10000) divides and
108
+ * rounds toward zero.
109
+ *
110
+ * 1. Start from the VIP tier rate: R = tier_maker_fee_rate_percent or
111
+ * tier_taker_fee_rate_percent.
112
+ * 2. When market_multiplier is set, multiply by it:
113
+ * R = trunc((R × M + 5000) / 10000).
114
+ * 3. When R is above 0, let D be the highest maker or taker discount of
115
+ * account_discounts, 0 when the list is empty. When D is above 0, apply
116
+ * it: R = trunc((R × (10000 − D) + 5000) / 10000).
117
+ * 4. When R is above 0 and referral_discount is set with a maker or taker
118
+ * discount D above 0, apply it the same way:
119
+ * R = trunc((R × (10000 − D) + 5000) / 10000).
120
+ *
121
+ * The result is the effective rate times 10,000,000. The steps multiply: a
122
+ * 10% account discount and a 20% referral discount on a 0.1% rate leave
123
+ * 0.1% × 0.9 × 0.8 = 0.072%. A negative maker rate is a rebate, which only
124
+ * the multiplier scales.
125
+ *
126
+ * @generated from message fees.v1.SpotFeeRateBreakdown
127
+ */
128
+ type SpotFeeRateBreakdown = Message<"fees.v1.SpotFeeRateBreakdown"> & {
129
+ /**
130
+ * Maker fee rate of the account's VIP tier under the fee policy in force,
131
+ * before the market multiplier and discounts, encoded as a base-10
132
+ * percentage string without a percent sign. Values are between -100 and
133
+ * 100 inclusive; a negative rate is a rebate.
134
+ *
135
+ * @generated from field: string tier_maker_fee_rate_percent = 1;
136
+ */
137
+ tierMakerFeeRatePercent: string;
138
+ /**
139
+ * Taker fee rate of the account's VIP tier under the fee policy in force,
140
+ * before the market multiplier and discounts, encoded as a non-negative
141
+ * base-10 percentage string without a percent sign, between 0 and 100
142
+ * inclusive.
143
+ *
144
+ * @generated from field: string tier_taker_fee_rate_percent = 2;
145
+ */
146
+ tierTakerFeeRatePercent: string;
147
+ /**
148
+ * Fee schedule multipliers in force on this market. Omitted when none is
149
+ * in force, which leaves the tier rates unchanged.
150
+ *
151
+ * @generated from field: optional fees.v1.SpotFeeMultiplier market_multiplier = 3;
152
+ */
153
+ marketMultiplier?: SpotFeeMultiplier | undefined;
154
+ /**
155
+ * Account discounts in force on this market, in no particular order. The
156
+ * highest maker discount and the highest taker discount apply, each
157
+ * possibly from a different discount.
158
+ *
159
+ * @generated from field: repeated fees.v1.SpotFeeDiscount account_discounts = 4;
160
+ */
161
+ accountDiscounts: SpotFeeDiscount[];
162
+ /**
163
+ * Referral discount in force for the account. Omitted when none is in
164
+ * force.
165
+ *
166
+ * @generated from field: optional fees.v1.SpotFeeDiscount referral_discount = 5;
167
+ */
168
+ referralDiscount?: SpotFeeDiscount | undefined;
169
+ };
170
+ /**
171
+ * Describes the message fees.v1.SpotFeeRateBreakdown.
172
+ * Use `create(SpotFeeRateBreakdownSchema)` to create a new message.
173
+ */
174
+ declare const SpotFeeRateBreakdownSchema: GenMessage<SpotFeeRateBreakdown>;
175
+ /**
176
+ * SpotFeeMultiplier is the fee schedule of one market, which scales the VIP
177
+ * tier rates.
178
+ *
179
+ * @generated from message fees.v1.SpotFeeMultiplier
180
+ */
181
+ type SpotFeeMultiplier = Message<"fees.v1.SpotFeeMultiplier"> & {
182
+ /**
183
+ * Maker rate multiplier encoded as a base-10 percentage string without a
184
+ * percent sign, between 0 and 100 inclusive with at most two decimals.
185
+ *
186
+ * @generated from field: string maker_multiplier_percent = 1;
187
+ */
188
+ makerMultiplierPercent: string;
189
+ /**
190
+ * Taker rate multiplier encoded as a base-10 percentage string without a
191
+ * percent sign, between 0 and 100 inclusive with at most two decimals.
192
+ *
193
+ * @generated from field: string taker_multiplier_percent = 2;
194
+ */
195
+ takerMultiplierPercent: string;
196
+ /**
197
+ * Time from which the fee schedule is in force, inclusive.
198
+ *
199
+ * @generated from field: google.protobuf.Timestamp effective_from = 3;
200
+ */
201
+ effectiveFrom?: Timestamp | undefined;
202
+ /**
203
+ * Time at which the fee schedule ends, exclusive. Omitted when it has no
204
+ * scheduled end.
205
+ *
206
+ * @generated from field: optional google.protobuf.Timestamp effective_to = 4;
207
+ */
208
+ effectiveTo?: Timestamp | undefined;
209
+ };
210
+ /**
211
+ * Describes the message fees.v1.SpotFeeMultiplier.
212
+ * Use `create(SpotFeeMultiplierSchema)` to create a new message.
213
+ */
214
+ declare const SpotFeeMultiplierSchema: GenMessage<SpotFeeMultiplier>;
215
+ /**
216
+ * SpotFeeDiscount is one fee discount of the account's.
217
+ *
218
+ * @generated from message fees.v1.SpotFeeDiscount
219
+ */
220
+ type SpotFeeDiscount = Message<"fees.v1.SpotFeeDiscount"> & {
221
+ /**
222
+ * Maker fee discount encoded as a base-10 percentage string without a
223
+ * percent sign, with at most two decimals. It lowers a positive maker rate
224
+ * only.
225
+ *
226
+ * @generated from field: string maker_discount_percent = 1;
227
+ */
228
+ makerDiscountPercent: string;
229
+ /**
230
+ * Taker fee discount encoded as a base-10 percentage string without a
231
+ * percent sign, with at most two decimals.
232
+ *
233
+ * @generated from field: string taker_discount_percent = 2;
234
+ */
235
+ takerDiscountPercent: string;
236
+ /**
237
+ * True when the discount applies to every spot market; false when it
238
+ * applies to selected markets, this one included. A referral discount
239
+ * always applies to every spot market.
240
+ *
241
+ * @generated from field: bool all_markets = 3;
242
+ */
243
+ allMarkets: boolean;
244
+ /**
245
+ * Time from which the discount is in force, inclusive.
246
+ *
247
+ * @generated from field: google.protobuf.Timestamp effective_from = 4;
248
+ */
249
+ effectiveFrom?: Timestamp | undefined;
250
+ /**
251
+ * Time at which the discount ends, exclusive. Omitted when it has no
252
+ * scheduled end.
253
+ *
254
+ * @generated from field: optional google.protobuf.Timestamp effective_to = 5;
255
+ */
256
+ effectiveTo?: Timestamp | undefined;
257
+ };
258
+ /**
259
+ * Describes the message fees.v1.SpotFeeDiscount.
260
+ * Use `create(SpotFeeDiscountSchema)` to create a new message.
261
+ */
262
+ declare const SpotFeeDiscountSchema: GenMessage<SpotFeeDiscount>;
49
263
  /**
50
264
  * GetSpotFeeRatesRequest requests effective spot fee rates for one account
51
265
  * target and an optional set of markets.
@@ -54,8 +268,9 @@ declare const SpotFeeRateSchema: GenMessage<SpotFeeRate>;
54
268
  */
55
269
  type GetSpotFeeRatesRequest = Message<"fees.v1.GetSpotFeeRatesRequest"> & {
56
270
  /**
57
- * Optional subaccount public identifier. When omitted, the authenticated
58
- * caller's root account is used.
271
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
272
+ * use their bound subaccount; other callers use their authenticated root
273
+ * account.
59
274
  *
60
275
  * @generated from field: optional fixed64 subaccount_id = 1;
61
276
  */
@@ -75,8 +290,8 @@ type GetSpotFeeRatesRequest = Message<"fees.v1.GetSpotFeeRatesRequest"> & {
75
290
  */
76
291
  declare const GetSpotFeeRatesRequestSchema: GenMessage<GetSpotFeeRatesRequest>;
77
292
  /**
78
- * GetSpotFeeRatesResponse contains effective spot fee rates ordered by numeric
79
- * market identifier ascending.
293
+ * GetSpotFeeRatesResponse contains spot fee rates ordered by numeric market
294
+ * identifier ascending.
80
295
  *
81
296
  * @generated from message fees.v1.GetSpotFeeRatesResponse
82
297
  */
@@ -102,8 +317,9 @@ declare const GetSpotFeeRatesResponseSchema: GenMessage<GetSpotFeeRatesResponse>
102
317
  */
103
318
  declare const FeeService: GenService<{
104
319
  /**
105
- * Get effective maker and taker fee rates for the authenticated caller's
106
- * root account or selected subaccount.
320
+ * Get effective maker and taker fee rates, the rates an order reserves its
321
+ * fee at, and the components of the effective rates for the authenticated
322
+ * caller's root account or selected subaccount.
107
323
  *
108
324
  * @generated from rpc fees.v1.FeeService.GetSpotFeeRates
109
325
  */
@@ -114,5 +330,5 @@ declare const FeeService: GenService<{
114
330
  };
115
331
  }>;
116
332
  //#endregion
117
- export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeRate, SpotFeeRateSchema, fees_pb_d_exports, file_fees_v1_fees };
333
+ export { FeeService, GetSpotFeeRatesRequest, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponse, GetSpotFeeRatesResponseSchema, SpotFeeDiscount, SpotFeeDiscountSchema, SpotFeeMultiplier, SpotFeeMultiplierSchema, SpotFeeRate, SpotFeeRateBreakdown, SpotFeeRateBreakdownSchema, SpotFeeRateSchema, fees_pb_d_exports, file_fees_v1_fees };
118
334
  //# sourceMappingURL=fees_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fees_pb.d.ts","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"mappings":";;;;;;;;cAYa,mBAAmB;;;;;;;KASpB,cAAc;;;;;;EAMxB;;;;;;;EAQA;;;;;;;EAQA;;;;;;EAOA;;;;;;cAOW,mBAAmB,WAAW;;;;;;;KAS/B,yBAAyB;;;;;;;EAOnC;;;;;;;;EASA;;;;;;cAOW,8BAA8B,WAAW;;;;;;;KAS1C,0BAA0B;;;;;;;;EAQpC,UAAU;;;;;;cAOC,+BAA+B,WAAW;;;;;;cAQ1C,YAAY;;;;;;;EAOvB;IACE;IACA,cAAc;IACd,eAAe"}
1
+ {"version":3,"file":"fees_pb.d.ts","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"mappings":";;;;;;;;;cAca,mBAAmB;;;;;;;;KAUpB,cAAc;;;;;;EAMxB;;;;;;;;EASA;;;;;;;;EASA;;;;;;EAOA;;;;;;;;;;;;;;;;;;;;;EAsBA;;;;;;;;;;EAWA;;;;;;EAOA,YAAY;;;;;;;;;;EAWZ,eAAe;;;;;;cAOJ,mBAAmB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+B/B,uBAAuB;;;;;;;;;EASjC;;;;;;;;;EAUA;;;;;;;EAQA,mBAAmB;;;;;;;;EASnB,kBAAkB;;;;;;;EAQlB,mBAAmB;;;;;;cAOR,4BAA4B,WAAW;;;;;;;KASxC,oBAAoB;;;;;;;EAO9B;;;;;;;EAQA;;;;;;EAOA,gBAAgB;;;;;;;EAQhB,cAAc;;;;;;cAOH,yBAAyB,WAAW;;;;;;KAQrC,kBAAkB;;;;;;;;EAQ5B;;;;;;;EAQA;;;;;;;;EASA;;;;;;EAOA,gBAAgB;;;;;;;EAQhB,cAAc;;;;;;cAOH,uBAAuB,WAAW;;;;;;;KASnC,yBAAyB;;;;;;;;EAQnC;;;;;;;;EASA;;;;;;cAOW,8BAA8B,WAAW;;;;;;;KAS1C,0BAA0B;;;;;;;;EAQpC,UAAU;;;;;;cAOC,+BAA+B,WAAW;;;;;;cAQ1C,YAAY;;;;;;;;EAQvB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -1,33 +1,52 @@
1
1
  import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
3
3
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
4
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
4
5
  //#region src/gen/fees/v1/fees_pb.ts
5
6
  var fees_pb_exports = /* @__PURE__ */ __exportAll({
6
7
  FeeService: () => FeeService,
7
8
  GetSpotFeeRatesRequestSchema: () => GetSpotFeeRatesRequestSchema,
8
9
  GetSpotFeeRatesResponseSchema: () => GetSpotFeeRatesResponseSchema,
10
+ SpotFeeDiscountSchema: () => SpotFeeDiscountSchema,
11
+ SpotFeeMultiplierSchema: () => SpotFeeMultiplierSchema,
12
+ SpotFeeRateBreakdownSchema: () => SpotFeeRateBreakdownSchema,
9
13
  SpotFeeRateSchema: () => SpotFeeRateSchema,
10
14
  file_fees_v1_fees: () => file_fees_v1_fees
11
15
  });
12
16
  /**
13
17
  * Describes the file fees/v1/fees.proto.
14
18
  */
15
- const file_fees_v1_fees = /*@__PURE__*/ fileDesc("ChJmZWVzL3YxL2ZlZXMucHJvdG8SB2ZlZXMudjEiegoLU3BvdEZlZVJhdGUSEwoJc3ltYm9sX2lkGAEgASgNQgASIAoWbWFrZXJfZmVlX3JhdGVfcGVyY2VudBgDIAEoCUIAEiAKFnRha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABISCgh2aXBfdGllchgFIAEoDUIAIl0KFkdldFNwb3RGZWVSYXRlc1JlcXVlc3QSHAoNc3ViYWNjb3VudF9pZBgBIAEoBkIASACIAQESEwoJc3ltYm9sX2lkGAIgAygNQgBCEAoOX3N1YmFjY291bnRfaWQiQgoXR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2USJwoJZmVlX3JhdGVzGAEgAygLMhQuZmVlcy52MS5TcG90RmVlUmF0ZTJmCgpGZWVTZXJ2aWNlElYKD0dldFNwb3RGZWVSYXRlcxIfLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVxdWVzdBog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vMw==", [file_google_protobuf_timestamp, file_polyester_api_options]);
16
20
  /**
17
21
  * Describes the message fees.v1.SpotFeeRate.
18
22
  * Use `create(SpotFeeRateSchema)` to create a new message.
19
23
  */
20
24
  const SpotFeeRateSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 0);
21
25
  /**
26
+ * Describes the message fees.v1.SpotFeeRateBreakdown.
27
+ * Use `create(SpotFeeRateBreakdownSchema)` to create a new message.
28
+ */
29
+ const SpotFeeRateBreakdownSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 1);
30
+ /**
31
+ * Describes the message fees.v1.SpotFeeMultiplier.
32
+ * Use `create(SpotFeeMultiplierSchema)` to create a new message.
33
+ */
34
+ const SpotFeeMultiplierSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 2);
35
+ /**
36
+ * Describes the message fees.v1.SpotFeeDiscount.
37
+ * Use `create(SpotFeeDiscountSchema)` to create a new message.
38
+ */
39
+ const SpotFeeDiscountSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 3);
40
+ /**
22
41
  * Describes the message fees.v1.GetSpotFeeRatesRequest.
23
42
  * Use `create(GetSpotFeeRatesRequestSchema)` to create a new message.
24
43
  */
25
- const GetSpotFeeRatesRequestSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 1);
44
+ const GetSpotFeeRatesRequestSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 4);
26
45
  /**
27
46
  * Describes the message fees.v1.GetSpotFeeRatesResponse.
28
47
  * Use `create(GetSpotFeeRatesResponseSchema)` to create a new message.
29
48
  */
30
- const GetSpotFeeRatesResponseSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 2);
49
+ const GetSpotFeeRatesResponseSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fees, 5);
31
50
  /**
32
51
  * FeeService serves authenticated effective spot trading fee rates.
33
52
  *
@@ -35,6 +54,6 @@ const GetSpotFeeRatesResponseSchema = /*@__PURE__*/ messageDesc(file_fees_v1_fee
35
54
  */
36
55
  const FeeService = /*@__PURE__*/ serviceDesc(file_fees_v1_fees, 0);
37
56
  //#endregion
38
- export { FeeService, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponseSchema, SpotFeeRateSchema, fees_pb_exports, file_fees_v1_fees };
57
+ export { FeeService, GetSpotFeeRatesRequestSchema, GetSpotFeeRatesResponseSchema, SpotFeeDiscountSchema, SpotFeeMultiplierSchema, SpotFeeRateBreakdownSchema, SpotFeeRateSchema, fees_pb_exports, file_fees_v1_fees };
39
58
 
40
59
  //# sourceMappingURL=fees_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fees_pb.js","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file fees/v1/fees.proto (package fees.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file fees/v1/fees.proto.\n */\nexport const file_fees_v1_fees: GenFile = /*@__PURE__*/\n fileDesc(\"ChJmZWVzL3YxL2ZlZXMucHJvdG8SB2ZlZXMudjEiegoLU3BvdEZlZVJhdGUSEwoJc3ltYm9sX2lkGAEgASgNQgASIAoWbWFrZXJfZmVlX3JhdGVfcGVyY2VudBgDIAEoCUIAEiAKFnRha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABISCgh2aXBfdGllchgFIAEoDUIAIl0KFkdldFNwb3RGZWVSYXRlc1JlcXVlc3QSHAoNc3ViYWNjb3VudF9pZBgBIAEoBkIASACIAQESEwoJc3ltYm9sX2lkGAIgAygNQgBCEAoOX3N1YmFjY291bnRfaWQiQgoXR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2USJwoJZmVlX3JhdGVzGAEgAygLMhQuZmVlcy52MS5TcG90RmVlUmF0ZTJmCgpGZWVTZXJ2aWNlElYKD0dldFNwb3RGZWVSYXRlcxIfLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVxdWVzdBogLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vZmVlcy92MTtmZWVzdjFiBnByb3RvMw==\", [file_polyester_api_options]);\n\n/**\n * SpotFeeRate describes the effective maker and taker rates for one spot\n * market and account target.\n *\n * @generated from message fees.v1.SpotFeeRate\n */\nexport type SpotFeeRate = Message<\"fees.v1.SpotFeeRate\"> & {\n /**\n * Stable numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Effective maker fee rate encoded as a base-10 percentage string without a\n * percent sign. Values are between -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 3;\n */\n makerFeeRatePercent: string;\n\n /**\n * Effective taker fee rate encoded as a non-negative base-10 percentage\n * string without a percent sign. Values are between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 4;\n */\n takerFeeRatePercent: string;\n\n /**\n * VIP tier used to resolve these rates, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 5;\n */\n vipTier: number;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeRate.\n * Use `create(SpotFeeRateSchema)` to create a new message.\n */\nexport const SpotFeeRateSchema: GenMessage<SpotFeeRate> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 0);\n\n/**\n * GetSpotFeeRatesRequest requests effective spot fee rates for one account\n * target and an optional set of markets.\n *\n * @generated from message fees.v1.GetSpotFeeRatesRequest\n */\nexport type GetSpotFeeRatesRequest = Message<\"fees.v1.GetSpotFeeRatesRequest\"> & {\n /**\n * Optional subaccount public identifier. When omitted, the authenticated\n * caller's root account is used.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional unique spot market identifier filter. When empty, all currently\n * listed, non-disabled spot markets are returned. At most 100 identifiers\n * may be requested.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesRequest.\n * Use `create(GetSpotFeeRatesRequestSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesRequestSchema: GenMessage<GetSpotFeeRatesRequest> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 1);\n\n/**\n * GetSpotFeeRatesResponse contains effective spot fee rates ordered by numeric\n * market identifier ascending.\n *\n * @generated from message fees.v1.GetSpotFeeRatesResponse\n */\nexport type GetSpotFeeRatesResponse = Message<\"fees.v1.GetSpotFeeRatesResponse\"> & {\n /**\n * Effective spot fee rows ordered by symbol_id ascending. The result is a\n * finite snapshot of the requested or currently listed, non-disabled spot\n * market catalog and is not paginated.\n *\n * @generated from field: repeated fees.v1.SpotFeeRate fee_rates = 1;\n */\n feeRates: SpotFeeRate[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesResponse.\n * Use `create(GetSpotFeeRatesResponseSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesResponseSchema: GenMessage<GetSpotFeeRatesResponse> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 2);\n\n/**\n * FeeService serves authenticated effective spot trading fee rates.\n *\n * @generated from service fees.v1.FeeService\n */\nexport const FeeService: GenService<{\n /**\n * Get effective maker and taker fee rates for the authenticated caller's\n * root account or selected subaccount.\n *\n * @generated from rpc fees.v1.FeeService.GetSpotFeeRates\n */\n getSpotFeeRates: {\n methodKind: \"unary\";\n input: typeof GetSpotFeeRatesRequestSchema;\n output: typeof GetSpotFeeRatesResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_fees_v1_fees, 0);\n\n"],"mappings":";;;;;;;;;;;;;;AAYA,MAAa,oBACX,uBAAS,opBAAopB,CAAC,0BAA0B,CAAC;;;;;AA4C3rB,MAAa,oBACX,0BAAY,mBAAmB,CAAC;;;;;AA+BlC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAuBlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;;AAOlC,MAAa,aAaX,0BAAY,mBAAmB,CAAC"}
1
+ {"version":3,"file":"fees_pb.js","names":[],"sources":["../../../../src/gen/fees/v1/fees_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file fees/v1/fees.proto (package fees.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file fees/v1/fees.proto.\n */\nexport const file_fees_v1_fees: GenFile = /*@__PURE__*/\n fileDesc(\"ChJmZWVzL3YxL2ZlZXMucHJvdG8SB2ZlZXMudjEizAIKC1Nwb3RGZWVSYXRlEhMKCXN5bWJvbF9pZBgBIAEoDUIAEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYAyABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAQgASgJQgASEgoIdmlwX3RpZXIYBSABKA1CABIiChhyZXNlcnZlX2ZlZV9yYXRlX3BlcmNlbnQYBiABKAlCABIsCiJwb3N0X29ubHlfcmVzZXJ2ZV9mZWVfcmF0ZV9wZXJjZW50GAcgASgJQgASMgoJYnJlYWtkb3duGAggASgLMh0uZmVlcy52MS5TcG90RmVlUmF0ZUJyZWFrZ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5wcm90b2J1Zi5UaW1lc3RhbXBIAIgBAUIPCg1fZWZmZWN0aXZlX3RvIl0KFkdldFNwb3RGZWVSYXRlc1JlcXVlc3QSHAoNc3ViYWNjb3VudF9pZBgBIAEoBkIASACIAQESEwoJc3ltYm9sX2lkGAIgAygNQgBCEAoOX3N1YmFjY291bnRfaWQiQgoXR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2USJwoJZmVlX3JhdGVzGAEgAygLMhQuZmVlcy52MS5TcG90RmVlUmF0ZTJmCgpGZWVTZXJ2aWNlElYKD0dldFNwb3RGZWVSYXRlcxIfLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVxdWVzdBogLmZlZXMudjEuR2V0U3BvdEZlZVJhdGVzUmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vZmVlcy92MTtmZWVzdjFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * SpotFeeRate describes, for one spot market and account target, the\n * effective maker and taker rates, the rates an order reserves its fee at,\n * and the components the effective rates are computed from.\n *\n * @generated from message fees.v1.SpotFeeRate\n */\nexport type SpotFeeRate = Message<\"fees.v1.SpotFeeRate\"> & {\n /**\n * Stable numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Effective maker fee rate encoded as a base-10 percentage string without a\n * percent sign. Values are between -100 and 100 inclusive. It is computed\n * from breakdown as SpotFeeRateBreakdown describes.\n *\n * @generated from field: string maker_fee_rate_percent = 3;\n */\n makerFeeRatePercent: string;\n\n /**\n * Effective taker fee rate encoded as a non-negative base-10 percentage\n * string without a percent sign. Values are between 0 and 100 inclusive. It\n * is computed from breakdown as SpotFeeRateBreakdown describes.\n *\n * @generated from field: string taker_fee_rate_percent = 4;\n */\n takerFeeRatePercent: string;\n\n /**\n * VIP tier used to resolve these rates, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 5;\n */\n vipTier: number;\n\n /**\n * Fee rate a new order on this market reserves its fee at when the fee is\n * paid in the quote asset, encoded as a non-negative base-10 percentage\n * string without a percent sign, between 0 and 100 inclusive. It is the\n * highest maker or taker rate of every VIP tier under the fee schedule in\n * force on this market, so it is at least the effective rates and\n * discounts never lower it. A buy limit order that pays its fee in the\n * quote asset reserves N + F, computed in units of 10^-18 of the quote\n * asset whatever the quote asset's own decimals: N is its price times its\n * quantity rounded up to 10^-18, and F is N times this rate rounded up to\n * 10^-18. It has sufficient quote balance when N + F is at most the\n * available quote balance, compared in the same 10^-18 units; other order\n * validation and market limits still apply. A post-only limit order\n * reserves at post_only_reserve_fee_rate_percent instead, and a buy sized\n * by a quote amount reserves at the lower of this rate and\n * taker_fee_rate_percent. Fills charge the effective rate, and the rest of\n * the reserve is released as the order fills or ends.\n *\n * @generated from field: string reserve_fee_rate_percent = 6;\n */\n reserveFeeRatePercent: string;\n\n /**\n * Fee rate a new post-only limit order on this market reserves its fee at\n * when the fee is paid in the quote asset, encoded as a non-negative\n * base-10 percentage string without a percent sign, between 0 and 100\n * inclusive: the highest maker rate of every VIP tier under the fee\n * schedule in force on this market, as reserve_fee_rate_percent describes.\n *\n * @generated from field: string post_only_reserve_fee_rate_percent = 7;\n */\n postOnlyReserveFeeRatePercent: string;\n\n /**\n * Components of the effective maker and taker rates in force.\n *\n * @generated from field: fees.v1.SpotFeeRateBreakdown breakdown = 8;\n */\n breakdown?: SpotFeeRateBreakdown | undefined;\n\n /**\n * Earliest scheduled time at which a component of these rates starts or\n * ends: a fee schedule or discount in breakdown ending, or a VIP tier, fee\n * policy, fee schedule or discount not yet in force starting. The effective\n * and reserve rates can change then, or stay the same. Omitted when no\n * change is scheduled.\n *\n * @generated from field: optional google.protobuf.Timestamp next_change_at = 9;\n */\n nextChangeAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeRate.\n * Use `create(SpotFeeRateSchema)` to create a new message.\n */\nexport const SpotFeeRateSchema: GenMessage<SpotFeeRate> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 0);\n\n/**\n * SpotFeeRateBreakdown lists the components of one market's effective fee\n * rates in force. A client reproduces maker_fee_rate_percent and\n * taker_fee_rate_percent exactly by applying the steps below to the maker\n * and the taker rate separately, in this order, in integer arithmetic. Work\n * in units of 0.0000001 percent: write every rate as an integer R, the\n * percentage times 10,000,000. Write every multiplier and discount as an\n * integer M or D, the percentage times 100. trunc(x / 10000) divides and\n * rounds toward zero.\n *\n * 1. Start from the VIP tier rate: R = tier_maker_fee_rate_percent or\n * tier_taker_fee_rate_percent.\n * 2. When market_multiplier is set, multiply by it:\n * R = trunc((R × M + 5000) / 10000).\n * 3. When R is above 0, let D be the highest maker or taker discount of\n * account_discounts, 0 when the list is empty. When D is above 0, apply\n * it: R = trunc((R × (10000 − D) + 5000) / 10000).\n * 4. When R is above 0 and referral_discount is set with a maker or taker\n * discount D above 0, apply it the same way:\n * R = trunc((R × (10000 − D) + 5000) / 10000).\n *\n * The result is the effective rate times 10,000,000. The steps multiply: a\n * 10% account discount and a 20% referral discount on a 0.1% rate leave\n * 0.1% × 0.9 × 0.8 = 0.072%. A negative maker rate is a rebate, which only\n * the multiplier scales.\n *\n * @generated from message fees.v1.SpotFeeRateBreakdown\n */\nexport type SpotFeeRateBreakdown = Message<\"fees.v1.SpotFeeRateBreakdown\"> & {\n /**\n * Maker fee rate of the account's VIP tier under the fee policy in force,\n * before the market multiplier and discounts, encoded as a base-10\n * percentage string without a percent sign. Values are between -100 and\n * 100 inclusive; a negative rate is a rebate.\n *\n * @generated from field: string tier_maker_fee_rate_percent = 1;\n */\n tierMakerFeeRatePercent: string;\n\n /**\n * Taker fee rate of the account's VIP tier under the fee policy in force,\n * before the market multiplier and discounts, encoded as a non-negative\n * base-10 percentage string without a percent sign, between 0 and 100\n * inclusive.\n *\n * @generated from field: string tier_taker_fee_rate_percent = 2;\n */\n tierTakerFeeRatePercent: string;\n\n /**\n * Fee schedule multipliers in force on this market. Omitted when none is\n * in force, which leaves the tier rates unchanged.\n *\n * @generated from field: optional fees.v1.SpotFeeMultiplier market_multiplier = 3;\n */\n marketMultiplier?: SpotFeeMultiplier | undefined;\n\n /**\n * Account discounts in force on this market, in no particular order. The\n * highest maker discount and the highest taker discount apply, each\n * possibly from a different discount.\n *\n * @generated from field: repeated fees.v1.SpotFeeDiscount account_discounts = 4;\n */\n accountDiscounts: SpotFeeDiscount[];\n\n /**\n * Referral discount in force for the account. Omitted when none is in\n * force.\n *\n * @generated from field: optional fees.v1.SpotFeeDiscount referral_discount = 5;\n */\n referralDiscount?: SpotFeeDiscount | undefined;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeRateBreakdown.\n * Use `create(SpotFeeRateBreakdownSchema)` to create a new message.\n */\nexport const SpotFeeRateBreakdownSchema: GenMessage<SpotFeeRateBreakdown> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 1);\n\n/**\n * SpotFeeMultiplier is the fee schedule of one market, which scales the VIP\n * tier rates.\n *\n * @generated from message fees.v1.SpotFeeMultiplier\n */\nexport type SpotFeeMultiplier = Message<\"fees.v1.SpotFeeMultiplier\"> & {\n /**\n * Maker rate multiplier encoded as a base-10 percentage string without a\n * percent sign, between 0 and 100 inclusive with at most two decimals.\n *\n * @generated from field: string maker_multiplier_percent = 1;\n */\n makerMultiplierPercent: string;\n\n /**\n * Taker rate multiplier encoded as a base-10 percentage string without a\n * percent sign, between 0 and 100 inclusive with at most two decimals.\n *\n * @generated from field: string taker_multiplier_percent = 2;\n */\n takerMultiplierPercent: string;\n\n /**\n * Time from which the fee schedule is in force, inclusive.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 3;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Time at which the fee schedule ends, exclusive. Omitted when it has no\n * scheduled end.\n *\n * @generated from field: optional google.protobuf.Timestamp effective_to = 4;\n */\n effectiveTo?: Timestamp | undefined;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeMultiplier.\n * Use `create(SpotFeeMultiplierSchema)` to create a new message.\n */\nexport const SpotFeeMultiplierSchema: GenMessage<SpotFeeMultiplier> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 2);\n\n/**\n * SpotFeeDiscount is one fee discount of the account's.\n *\n * @generated from message fees.v1.SpotFeeDiscount\n */\nexport type SpotFeeDiscount = Message<\"fees.v1.SpotFeeDiscount\"> & {\n /**\n * Maker fee discount encoded as a base-10 percentage string without a\n * percent sign, with at most two decimals. It lowers a positive maker rate\n * only.\n *\n * @generated from field: string maker_discount_percent = 1;\n */\n makerDiscountPercent: string;\n\n /**\n * Taker fee discount encoded as a base-10 percentage string without a\n * percent sign, with at most two decimals.\n *\n * @generated from field: string taker_discount_percent = 2;\n */\n takerDiscountPercent: string;\n\n /**\n * True when the discount applies to every spot market; false when it\n * applies to selected markets, this one included. A referral discount\n * always applies to every spot market.\n *\n * @generated from field: bool all_markets = 3;\n */\n allMarkets: boolean;\n\n /**\n * Time from which the discount is in force, inclusive.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 4;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Time at which the discount ends, exclusive. Omitted when it has no\n * scheduled end.\n *\n * @generated from field: optional google.protobuf.Timestamp effective_to = 5;\n */\n effectiveTo?: Timestamp | undefined;\n};\n\n/**\n * Describes the message fees.v1.SpotFeeDiscount.\n * Use `create(SpotFeeDiscountSchema)` to create a new message.\n */\nexport const SpotFeeDiscountSchema: GenMessage<SpotFeeDiscount> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 3);\n\n/**\n * GetSpotFeeRatesRequest requests effective spot fee rates for one account\n * target and an optional set of markets.\n *\n * @generated from message fees.v1.GetSpotFeeRatesRequest\n */\nexport type GetSpotFeeRatesRequest = Message<\"fees.v1.GetSpotFeeRatesRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional unique spot market identifier filter. When empty, all currently\n * listed, non-disabled spot markets are returned. At most 100 identifiers\n * may be requested.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesRequest.\n * Use `create(GetSpotFeeRatesRequestSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesRequestSchema: GenMessage<GetSpotFeeRatesRequest> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 4);\n\n/**\n * GetSpotFeeRatesResponse contains spot fee rates ordered by numeric market\n * identifier ascending.\n *\n * @generated from message fees.v1.GetSpotFeeRatesResponse\n */\nexport type GetSpotFeeRatesResponse = Message<\"fees.v1.GetSpotFeeRatesResponse\"> & {\n /**\n * Effective spot fee rows ordered by symbol_id ascending. The result is a\n * finite snapshot of the requested or currently listed, non-disabled spot\n * market catalog and is not paginated.\n *\n * @generated from field: repeated fees.v1.SpotFeeRate fee_rates = 1;\n */\n feeRates: SpotFeeRate[];\n};\n\n/**\n * Describes the message fees.v1.GetSpotFeeRatesResponse.\n * Use `create(GetSpotFeeRatesResponseSchema)` to create a new message.\n */\nexport const GetSpotFeeRatesResponseSchema: GenMessage<GetSpotFeeRatesResponse> = /*@__PURE__*/\n messageDesc(file_fees_v1_fees, 5);\n\n/**\n * FeeService serves authenticated effective spot trading fee rates.\n *\n * @generated from service fees.v1.FeeService\n */\nexport const FeeService: GenService<{\n /**\n * Get effective maker and taker fee rates, the rates an order reserves its\n * fee at, and the components of the effective rates for the authenticated\n * caller's root account or selected subaccount.\n *\n * @generated from rpc fees.v1.FeeService.GetSpotFeeRates\n */\n getSpotFeeRates: {\n methodKind: \"unary\";\n input: typeof GetSpotFeeRatesRequestSchema;\n output: typeof GetSpotFeeRatesResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_fees_v1_fees, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAcA,MAAa,oBACX,uBAAS,o7DAAo7D,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAkG3/D,MAAa,oBACX,0BAAY,mBAAmB,CAAC;;;;;AAiFlC,MAAa,6BACX,0BAAY,mBAAmB,CAAC;;;;;AA6ClC,MAAa,0BACX,0BAAY,mBAAmB,CAAC;;;;;AAsDlC,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;AAgClC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAuBlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;;AAOlC,MAAa,aAcX,0BAAY,mBAAmB,CAAC"}