@polyester/sdk 0.1.0 → 0.2.0

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 (46) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +19 -1
  3. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  4. package/dist/gen/chain/lifecycle/v1/types_pb.js +19 -1
  5. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  6. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +130 -2
  7. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  8. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +72 -2
  9. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  10. package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
  11. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  12. package/dist/gen/ledger/v1/catalog_pb.d.ts +7 -1
  13. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  14. package/dist/gen/ledger/v1/catalog_pb.js +7 -1
  15. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  18. package/dist/services/lifecycle/lifecycle.codecs.d.ts +1 -1
  19. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  20. package/dist/services/lifecycle/lifecycle.codecs.js +4 -1
  21. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  22. package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
  23. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  24. package/dist/services/orders/orders-batch.schemas.d.ts +14 -14
  25. package/dist/services/orders/orders-output.schemas.d.ts +8 -8
  26. package/dist/services/subaccounts/subaccounts.schemas.d.ts +2 -2
  27. package/dist/services/trading-withdraws/index.d.ts +1 -1
  28. package/dist/services/trading-withdraws/trading-withdraws.codecs.js +10 -1
  29. package/dist/services/trading-withdraws/trading-withdraws.codecs.js.map +1 -1
  30. package/dist/services/trading-withdraws/trading-withdraws.d.ts +6 -2
  31. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  32. package/dist/services/trading-withdraws/trading-withdraws.js +9 -1
  33. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  34. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -2
  35. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  36. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +37 -2
  37. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  38. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
  39. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  40. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  41. package/dist/services/triggers/triggers-output.schemas.d.ts +13 -13
  42. package/dist/shared/ledger-codes.d.ts +1 -1
  43. package/dist/shared/ledger-codes.d.ts.map +1 -1
  44. package/dist/shared/ledger-codes.js +6 -3
  45. package/dist/shared/ledger-codes.js.map +1 -1
  46. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @polyester/sdk
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#43](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/43) [`0896e61`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/0896e61b83df934b090e7a31903fe3ba001c3a05) Thanks [@aiiven](https://github.com/aiiven)! - feat(ledger): add trading withdrawal request-fee codes to transfer filters and decoded records.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#43](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/43) [`0896e61`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/0896e61b83df934b090e7a31903fe3ba001c3a05) Thanks [@aiiven](https://github.com/aiiven)! - feat(withdraw): add a destination validation method to support preflight checks before external-chain withdrawals.
12
+
13
+ ## 0.1.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#41](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/41) [`4ee1746`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/4ee174671d677740aa9bfe911736dd51b758da6a) Thanks [@aiiven](https://github.com/aiiven)! - Expose trading withdrawal policy, contract, and execution failure reasons through lifecycle responses.
18
+
3
19
  ## 0.1.0
4
20
 
5
21
  ### Minor Changes
@@ -172,7 +172,25 @@ declare enum LifecycleReason {
172
172
  *
173
173
  * @generated from enum value: LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204;
174
174
  */
175
- LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204
175
+ LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204,
176
+ /**
177
+ * A trading withdrawal was denied by the account's active transfer policy.
178
+ *
179
+ * @generated from enum value: TRADING_WITHDRAW_POLICY_DENIED = 300;
180
+ */
181
+ TRADING_WITHDRAW_POLICY_DENIED = 300,
182
+ /**
183
+ * A trading withdrawal was rejected before submission by its destination contract.
184
+ *
185
+ * @generated from enum value: TRADING_WITHDRAW_CONTRACT_REVERTED = 301;
186
+ */
187
+ TRADING_WITHDRAW_CONTRACT_REVERTED = 301,
188
+ /**
189
+ * A trading withdrawal could not be submitted because execution failed.
190
+ *
191
+ * @generated from enum value: TRADING_WITHDRAW_EXECUTION_FAILED = 302;
192
+ */
193
+ TRADING_WITHDRAW_EXECUTION_FAILED = 302
176
194
  }
177
195
  /**
178
196
  * Describes the enum chain.lifecycle.v1.LifecycleReason.
@@ -1 +1 @@
1
- {"version":3,"file":"types_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/lifecycle/v1/types_pb.ts"],"mappings":";;;;;;;;;cAaa,+BAA+B;;;;;;KAQhC,WAAW;;;;;;;;;EASrB;;;;;;;;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;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,uBAAuB,QAAQ;;;;;;aAQhC;;;;EAIV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,gBAAgB,QAAQ;;;;;;;aASzB;;;;EAIV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,kBAAkB,QAAQ;;;;;;;aAS3B;;;;EAIV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,uBAAuB,QAAQ;;;;;;aAQhC;;;;EAIV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,iBAAiB,QAAQ"}
@@ -22,7 +22,7 @@ var types_pb_exports = /* @__PURE__ */ __exportAll({
22
22
  /**
23
23
  * Describes the file chain/lifecycle/v1/types.proto.
24
24
  */
25
- const file_chain_lifecycle_v1_types = /*@__PURE__*/ fileDesc("Ch5jaGFpbi9saWZlY3ljbGUvdjEvdHlwZXMucHJvdG8SEmNoYWluLmxpZmVjeWNsZS52MSJDCghBc3NldElkcxIXCg96aXBwZWRfYXNzZXRfaWQYASABKA0SGAoQdW5pZmllZF9hc3NldF9pZBgDIAEoDUoECAIQAyK7AQoKUmVxdWVzdEZlZRIvCglhc3NldF9pZHMYASABKAsyHC5jaGFpbi5saWZlY3ljbGUudjEuQXNzZXRJZHMSKwoKYW1vdW50X2UxOBgCIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjgSGQoRcmVjaXBpZW50X2FkZHJlc3MYAyABKAkSNAoGc3RhdHVzGAQgASgOMiQuY2hhaW4ubGlmZWN5Y2xlLnYxLlJlcXVlc3RGZWVTdGF0dXMqdQoQUmVxdWVzdEZ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hoKFlNPVVJDRV9QT0xZRVNURVJfQ0hBSU4QAhITCg9TT1VSQ0VfRVhFQ1VUT1IQAxIRCg1TT1VSQ0VfTEVER0VSEAQqxwEKCUZsb3dTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhgKFFNUQVRFX1BFTkRJTkdfU09VUkNFEAESIQodU1RBVEVfUEVORElOR19QT0xZRVNURVJfQ0hBSU4QAhIYChRTVEFURV9QRU5ESU5HX0xFREdFUhADEhMKD1NUQVRFX0NPTVBMRVRFRBAEEhAKDFNUQVRFX0ZBSUxFRBAFEhEKDVNUQVRFX0RST1BQRUQQBhISCg5TVEFURV9SRUZVTkRFRBAHQlFaT2dpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vbGlmZWN5Y2xlL3YxO2NoYWlubGlmZWN5Y2xldjFiBnByb3RvMw==", [file_polyester_type_v1_u128]);
26
26
  /**
27
27
  * Describes the message chain.lifecycle.v1.AssetIds.
28
28
  * Use `create(AssetIdsSchema)` to create a new message.
@@ -130,6 +130,24 @@ let LifecycleReason = /* @__PURE__ */ function(LifecycleReason) {
130
130
  * @generated from enum value: LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204;
131
131
  */
132
132
  LifecycleReason[LifecycleReason["LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED"] = 204] = "LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED";
133
+ /**
134
+ * A trading withdrawal was denied by the account's active transfer policy.
135
+ *
136
+ * @generated from enum value: TRADING_WITHDRAW_POLICY_DENIED = 300;
137
+ */
138
+ LifecycleReason[LifecycleReason["TRADING_WITHDRAW_POLICY_DENIED"] = 300] = "TRADING_WITHDRAW_POLICY_DENIED";
139
+ /**
140
+ * A trading withdrawal was rejected before submission by its destination contract.
141
+ *
142
+ * @generated from enum value: TRADING_WITHDRAW_CONTRACT_REVERTED = 301;
143
+ */
144
+ LifecycleReason[LifecycleReason["TRADING_WITHDRAW_CONTRACT_REVERTED"] = 301] = "TRADING_WITHDRAW_CONTRACT_REVERTED";
145
+ /**
146
+ * A trading withdrawal could not be submitted because execution failed.
147
+ *
148
+ * @generated from enum value: TRADING_WITHDRAW_EXECUTION_FAILED = 302;
149
+ */
150
+ LifecycleReason[LifecycleReason["TRADING_WITHDRAW_EXECUTION_FAILED"] = 302] = "TRADING_WITHDRAW_EXECUTION_FAILED";
133
151
  return LifecycleReason;
134
152
  }({});
135
153
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types_pb.js","names":[],"sources":["../../../../../src/gen/chain/lifecycle/v1/types_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/lifecycle/v1/types.proto (package chain.lifecycle.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\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/lifecycle/v1/types.proto.\n */\nexport const file_chain_lifecycle_v1_types: GenFile = /*@__PURE__*/\n fileDesc(\"Ch5jaGFpbi9saWZlY3ljbGUvdjEvdHlwZXMucHJvdG8SEmNoYWluLmxpZmVjeWNsZS52MSJDCghBc3NldElkcxIXCg96aXBwZWRfYXNzZXRfaWQYASABKA0SGAoQdW5pZmllZF9hc3NldF9pZBgDIAEoDUoECAIQAyK7AQoKUmVxdWVzdEZlZRIvCglhc3NldF9pZHMYASABKAsyHC5jaGFpbi5saWZlY3ljbGUudjEuQXNzZXRJZHMSKwoKYW1vdW50X2UxOBgCIAEoCzIXLnBvbHllc3Rlci50eXBlLnYxLlUxMjgSGQoRcmVjaXBpZW50X2FkZHJlc3MYAyABKAk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cmNlEhYKElNPVVJDRV9VTlNQRUNJRklFRBAAEhIKDlNPVVJDRV9SRUxBWUVSEAESGgoWU09VUkNFX1BPTFlFU1RFUl9DSEFJThACEhMKD1NPVVJDRV9FWEVDVVRPUhADEhEKDVNPVVJDRV9MRURHRVIQBCrHAQoJRmxvd1N0YXRlEhUKEVNUQVRFX1VOU1BFQ0lGSUVEEAASGAoUU1RBVEVfUEVORElOR19TT1VSQ0UQARIhCh1TVEFURV9QRU5ESU5HX1BPTFlFU1RFUl9DSEFJThACEhgKFFNUQVRFX1BFTkRJTkdfTEVER0VSEAMSEwoPU1RBVEVfQ09NUExFVEVEEAQSEAoMU1RBVEVfRkFJTEVEEAUSEQoNU1RBVEVfRFJPUFBFRBAGEhIKDlNUQVRFX1JFRlVOREVEEAdCUVpPZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9jaGFpbi9saWZlY3ljbGUvdjE7Y2hhaW5saWZlY3ljbGV2MWIGcHJvdG8z\", [file_polyester_type_v1_u128]);\n\n/**\n * AssetIds identifies the asset roles involved in one lifecycle.\n *\n * @generated from message chain.lifecycle.v1.AssetIds\n */\nexport type AssetIds = Message<\"chain.lifecycle.v1.AssetIds\"> & {\n /**\n * Zipped asset identifier for the chain-specific asset mapping row. This is\n * the canonical id from `chain_zipped_assets`, which already represents the\n * source-chain asset metadata plus its mapped zToken relationship when\n * relevant.\n *\n * @generated from field: uint32 zipped_asset_id = 1;\n */\n zippedAssetId: number;\n\n /**\n * Unified asset identifier for the uAsset used by funding or trading flows\n * when relevant. This is the canonical Polyester asset identity used by\n * FundingAccount, TradingGateway, Lending, and other downstream product\n * domains.\n *\n * @generated from field: uint32 unified_asset_id = 3;\n */\n unifiedAssetId: number;\n};\n\n/**\n * Describes the message chain.lifecycle.v1.AssetIds.\n * Use `create(AssetIdsSchema)` to create a new message.\n */\nexport const AssetIdsSchema: GenMessage<AssetIds> = /*@__PURE__*/\n messageDesc(file_chain_lifecycle_v1_types, 0);\n\n/**\n * RequestFee captures the on-chain fee associated with a deposit or withdrawal\n * request. This is separate from summary `amount_e18`, which carries the gross\n * request principal for API display.\n *\n * @generated from message chain.lifecycle.v1.RequestFee\n */\nexport type RequestFee = Message<\"chain.lifecycle.v1.RequestFee\"> & {\n /**\n * Asset identities for the fee asset.\n *\n * @generated from field: chain.lifecycle.v1.AssetIds asset_ids = 1;\n */\n assetIds?: AssetIds | undefined;\n\n /**\n * On-chain request fee in 18-decimal units of the fee asset identified by\n * asset_ids. Separate from gross flow amount_e18 on summaries.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 2;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Fee recipient address when settled on chain.\n *\n * @generated from field: string recipient_address = 3;\n */\n recipientAddress: string;\n\n /**\n * Current state of the fee snapshot.\n *\n * @generated from field: chain.lifecycle.v1.RequestFeeStatus status = 4;\n */\n status: RequestFeeStatus;\n};\n\n/**\n * Describes the message chain.lifecycle.v1.RequestFee.\n * Use `create(RequestFeeSchema)` to create a new message.\n */\nexport const RequestFeeSchema: GenMessage<RequestFee> = /*@__PURE__*/\n messageDesc(file_chain_lifecycle_v1_types, 1);\n\n/**\n * RequestFeeStatus identifies the current lifecycle state of a request-scoped\n * on-chain fee snapshot.\n *\n * @generated from enum chain.lifecycle.v1.RequestFeeStatus\n */\nexport enum RequestFeeStatus {\n /**\n * @generated from enum value: REQUEST_FEE_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * The request locked a fee snapshot at creation time.\n *\n * @generated from enum value: REQUEST_FEE_STATUS_LOCKED = 1;\n */\n LOCKED = 1,\n\n /**\n * The request completed far enough for the locked fee to settle.\n *\n * @generated from enum value: REQUEST_FEE_STATUS_SETTLED = 2;\n */\n SETTLED = 2,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.RequestFeeStatus.\n */\nexport const RequestFeeStatusSchema: GenEnum<RequestFeeStatus> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 0);\n\n/**\n * LifecycleReason is the stable product-facing reason catalog for failed, dropped,\n * refunded, or otherwise notable lifecycle states.\n *\n * @generated from enum chain.lifecycle.v1.LifecycleReason\n */\nexport enum LifecycleReason {\n /**\n * @generated from enum value: REASON_UNSPECIFIED = 0;\n */\n REASON_UNSPECIFIED = 0,\n\n /**\n * Zipper validators reached the rejection quorum.\n *\n * @generated from enum value: ZIPPER_VALIDATION_REJECTED = 101;\n */\n ZIPPER_VALIDATION_REJECTED = 101,\n\n /**\n * Zipper execution rejected the request.\n *\n * @generated from enum value: ZIPPER_EXECUTION_REJECTED = 102;\n */\n ZIPPER_EXECUTION_REJECTED = 102,\n\n /**\n * Zipper withdraw execution failed.\n *\n * @generated from enum value: ZIPPER_WITHDRAW_EXECUTION_FAILED = 103;\n */\n ZIPPER_WITHDRAW_EXECUTION_FAILED = 103,\n\n /**\n * Zipper deposit refund failed.\n *\n * @generated from enum value: ZIPPER_DEPOSIT_REFUND_FAILED = 104;\n */\n ZIPPER_DEPOSIT_REFUND_FAILED = 104,\n\n /**\n * Ledger mirror rejected a command before it could be durably applied.\n *\n * @generated from enum value: LEDGER_MIRROR_REJECTED = 200;\n */\n LEDGER_MIRROR_REJECTED = 200,\n\n /**\n * Ledger settlement rejected the mirror command because the source account did\n * not have enough credits for the transfer.\n *\n * @generated from enum value: LEDGER_MIRROR_TRANSFER_EXCEEDS_CREDITS = 201;\n */\n LEDGER_MIRROR_TRANSFER_EXCEEDS_CREDITS = 201,\n\n /**\n * Ledger settlement reported that the transfer already exists for this mirror\n * command identity.\n *\n * @generated from enum value: LEDGER_MIRROR_TRANSFER_EXISTS = 202;\n */\n LEDGER_MIRROR_TRANSFER_EXISTS = 202,\n\n /**\n * Ledger settlement reported that the pending transfer referenced by the\n * command was not found.\n *\n * @generated from enum value: LEDGER_MIRROR_PENDING_TRANSFER_NOT_FOUND = 203;\n */\n LEDGER_MIRROR_PENDING_TRANSFER_NOT_FOUND = 203,\n\n /**\n * Ledger settlement reported that this transfer id is already marked failed.\n *\n * @generated from enum value: LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204;\n */\n LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.LifecycleReason.\n */\nexport const LifecycleReasonSchema: GenEnum<LifecycleReason> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 1);\n\n/**\n * FlowKind identifies the product flow family.\n *\n * @generated from enum chain.lifecycle.v1.FlowKind\n */\nexport enum FlowKind {\n /**\n * @generated from enum value: KIND_UNSPECIFIED = 0;\n */\n KIND_UNSPECIFIED = 0,\n\n /**\n * Deposit flow into Polyester-controlled assets or accounts.\n *\n * @generated from enum value: KIND_DEPOSIT = 1;\n */\n KIND_DEPOSIT = 1,\n\n /**\n * Withdraw flow out of Polyester-controlled assets or accounts.\n *\n * @generated from enum value: KIND_WITHDRAW = 2;\n */\n KIND_WITHDRAW = 2,\n\n /**\n * Internal transfer flow between Polyester-controlled accounts.\n *\n * @generated from enum value: KIND_TRANSFER = 3;\n */\n KIND_TRANSFER = 3,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.FlowKind.\n */\nexport const FlowKindSchema: GenEnum<FlowKind> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 2);\n\n/**\n * FlowDomain identifies the product domain that currently owns or processes the\n * value represented by the lifecycle.\n *\n * @generated from enum chain.lifecycle.v1.FlowDomain\n */\nexport enum FlowDomain {\n /**\n * @generated from enum value: DOMAIN_UNSPECIFIED = 0;\n */\n DOMAIN_UNSPECIFIED = 0,\n\n /**\n * Value still belongs to an external chain outside Polyester.\n *\n * @generated from enum value: DOMAIN_EXTERNAL_CHAIN = 1;\n */\n DOMAIN_EXTERNAL_CHAIN = 1,\n\n /**\n * Value is inside the Zipper layer on Polyester Chain.\n *\n * @generated from enum value: DOMAIN_ZIPPER = 2;\n */\n DOMAIN_ZIPPER = 2,\n\n /**\n * Value is inside FundingAccount.\n *\n * @generated from enum value: DOMAIN_FUNDING = 3;\n */\n DOMAIN_FUNDING = 3,\n\n /**\n * Value is inside TradingGateway or the trading domain.\n *\n * @generated from enum value: DOMAIN_TRADING = 4;\n */\n DOMAIN_TRADING = 4,\n\n /**\n * Value is inside the lending domain or pool.\n *\n * @generated from enum value: DOMAIN_LENDING = 5;\n */\n DOMAIN_LENDING = 5,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.FlowDomain.\n */\nexport const FlowDomainSchema: GenEnum<FlowDomain> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 3);\n\n/**\n * LifecycleSource identifies the subsystem that emitted a normalized fact or\n * visible milestone.\n *\n * @generated from enum chain.lifecycle.v1.LifecycleSource\n */\nexport enum LifecycleSource {\n /**\n * @generated from enum value: SOURCE_UNSPECIFIED = 0;\n */\n SOURCE_UNSPECIFIED = 0,\n\n /**\n * Off-chain relayer or source-chain watcher.\n *\n * @generated from enum value: SOURCE_RELAYER = 1;\n */\n SOURCE_RELAYER = 1,\n\n /**\n * Polyester Chain contract event or other chain-owned lifecycle fact.\n *\n * @generated from enum value: SOURCE_POLYESTER_CHAIN = 2;\n */\n SOURCE_POLYESTER_CHAIN = 2,\n\n /**\n * Executor-owned lifecycle fact.\n *\n * @generated from enum value: SOURCE_EXECUTOR = 3;\n */\n SOURCE_EXECUTOR = 3,\n\n /**\n * Off-chain ledger posting or settlement fact.\n *\n * @generated from enum value: SOURCE_LEDGER = 4;\n */\n SOURCE_LEDGER = 4,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.LifecycleSource.\n */\nexport const LifecycleSourceSchema: GenEnum<LifecycleSource> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 4);\n\n/**\n * FlowState is the latest lifecycle state after folding normalized facts.\n *\n * @generated from enum chain.lifecycle.v1.FlowState\n */\nexport enum FlowState {\n /**\n * @generated from enum value: STATE_UNSPECIFIED = 0;\n */\n STATE_UNSPECIFIED = 0,\n\n /**\n * Flow exists and is still waiting on source-chain progress.\n *\n * @generated from enum value: STATE_PENDING_SOURCE = 1;\n */\n STATE_PENDING_SOURCE = 1,\n\n /**\n * Flow is now progressing on Polyester Chain after source readiness.\n *\n * @generated from enum value: STATE_PENDING_POLYESTER_CHAIN = 2;\n */\n STATE_PENDING_POLYESTER_CHAIN = 2,\n\n /**\n * Flow is now waiting for an off-chain ledger effect or settlement effect.\n *\n * @generated from enum value: STATE_PENDING_LEDGER = 3;\n */\n STATE_PENDING_LEDGER = 3,\n\n /**\n * Flow completed successfully.\n *\n * @generated from enum value: STATE_COMPLETED = 4;\n */\n STATE_COMPLETED = 4,\n\n /**\n * Flow failed and is no longer progressing.\n *\n * @generated from enum value: STATE_FAILED = 5;\n */\n STATE_FAILED = 5,\n\n /**\n * Flow was dropped before successful completion.\n *\n * @generated from enum value: STATE_DROPPED = 6;\n */\n STATE_DROPPED = 6,\n\n /**\n * Flow ended in a refund or reversal.\n *\n * @generated from enum value: STATE_REFUNDED = 7;\n */\n STATE_REFUNDED = 7,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.FlowState.\n */\nexport const FlowStateSchema: GenEnum<FlowState> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 5);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,gCACX,uBAAS,g7DAAg7D,CAAC,2BAA2B,CAAC;;;;;AAiCx9D,MAAa,iBACX,0BAAY,+BAA+B,CAAC;;;;;AA4C9C,MAAa,mBACX,0BAAY,+BAA+B,CAAC;;;;;;;AAQ9C,IAAY,mBAAL,yBAAA,kBAAA;;;;CAIL,iBAAA,iBAAA,iBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,YAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,+BAA+B,CAAC;;;;;;;AAQ3C,IAAY,kBAAL,yB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gBAAA,gBAAA,qBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,mBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,+BAA+B,CAAC;;;;;;AAO3C,IAAY,YAAL,yBAAA,WAAA;;;;CAIL,UAAA,UAAA,uBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,0BAAA,KAAA;;;;;;CAOA,UAAA,UAAA,mCAAA,KAAA;;;;;;CAOA,UAAA,UAAA,0BAAA,KAAA;;;;;;CAOA,UAAA,UAAA,qBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,kBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,mBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,oBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,kBACX,uBAAS,+BAA+B,CAAC"}
1
+ {"version":3,"file":"types_pb.js","names":[],"sources":["../../../../../src/gen/chain/lifecycle/v1/types_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/lifecycle/v1/types.proto (package chain.lifecycle.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\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/lifecycle/v1/types.proto.\n */\nexport const file_chain_lifecycle_v1_types: GenFile = /*@__PURE__*/\n fileDesc(\"Ch5jaGFpbi9saWZlY3ljbGUvdjEvdHlwZXMucHJvdG8SEmNoYWluLmxpZmVjeWNsZS52MSJDCghBc3NldElkcxIXCg96aXBwZWRfYXNzZXRfaWQYASABKA0SGAoQdW5pZmllZF9hc3NldF9pZBg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VUSU9OX0ZBSUxFRBCuAipYCghGbG93S2luZBIUChBLSU5EX1VOU1BFQ0lGSUVEEAASEAoMS0lORF9ERVBPU0lUEAESEQoNS0lORF9XSVRIRFJBVxACEhEKDUtJTkRfVFJBTlNGRVIQAyqOAQoKRmxvd0RvbWFpbhIWChJET01BSU5fVU5TUEVDSUZJRUQQABIZChVET01BSU5fRVhURVJOQUxfQ0hBSU4QARIRCg1ET01BSU5fWklQUEVSEAISEgoORE9NQUlOX0ZVTkRJTkcQAxISCg5ET01BSU5fVFJBRElORxAEEhIKDkRPTUFJTl9MRU5ESU5HEAUqgQEKD0xpZmVjeWNsZVNvdXJjZRIWChJTT1VSQ0VfVU5TUEVDSUZJRUQQABISCg5TT1VSQ0VfUkVMQVlFUhABEhoKFlNPVVJDRV9QT0xZRVNURVJfQ0hBSU4QAhITCg9TT1VSQ0VfRVhFQ1VUT1IQAxIRCg1TT1VSQ0VfTEVER0VSEAQqxwEKCUZsb3dTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhgKFFNUQVRFX1BFTkRJTkdfU09VUkNFEAESIQodU1RBVEVfUEVORElOR19QT0xZRVNURVJfQ0hBSU4QAhIYChRTVEFURV9QRU5ESU5HX0xFREdFUhADEhMKD1NUQVRFX0NPTVBMRVRFRBAEEhAKDFNUQVRFX0ZBSUxFRBAFEhEKDVNUQVRFX0RST1BQRUQQBhISCg5TVEFURV9SRUZVTkRFRBAHQlFaT2dpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vbGlmZWN5Y2xlL3YxO2NoYWlubGlmZWN5Y2xldjFiBnByb3RvMw==\", [file_polyester_type_v1_u128]);\n\n/**\n * AssetIds identifies the asset roles involved in one lifecycle.\n *\n * @generated from message chain.lifecycle.v1.AssetIds\n */\nexport type AssetIds = Message<\"chain.lifecycle.v1.AssetIds\"> & {\n /**\n * Zipped asset identifier for the chain-specific asset mapping row. This is\n * the canonical id from `chain_zipped_assets`, which already represents the\n * source-chain asset metadata plus its mapped zToken relationship when\n * relevant.\n *\n * @generated from field: uint32 zipped_asset_id = 1;\n */\n zippedAssetId: number;\n\n /**\n * Unified asset identifier for the uAsset used by funding or trading flows\n * when relevant. This is the canonical Polyester asset identity used by\n * FundingAccount, TradingGateway, Lending, and other downstream product\n * domains.\n *\n * @generated from field: uint32 unified_asset_id = 3;\n */\n unifiedAssetId: number;\n};\n\n/**\n * Describes the message chain.lifecycle.v1.AssetIds.\n * Use `create(AssetIdsSchema)` to create a new message.\n */\nexport const AssetIdsSchema: GenMessage<AssetIds> = /*@__PURE__*/\n messageDesc(file_chain_lifecycle_v1_types, 0);\n\n/**\n * RequestFee captures the on-chain fee associated with a deposit or withdrawal\n * request. This is separate from summary `amount_e18`, which carries the gross\n * request principal for API display.\n *\n * @generated from message chain.lifecycle.v1.RequestFee\n */\nexport type RequestFee = Message<\"chain.lifecycle.v1.RequestFee\"> & {\n /**\n * Asset identities for the fee asset.\n *\n * @generated from field: chain.lifecycle.v1.AssetIds asset_ids = 1;\n */\n assetIds?: AssetIds | undefined;\n\n /**\n * On-chain request fee in 18-decimal units of the fee asset identified by\n * asset_ids. Separate from gross flow amount_e18 on summaries.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 2;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Fee recipient address when settled on chain.\n *\n * @generated from field: string recipient_address = 3;\n */\n recipientAddress: string;\n\n /**\n * Current state of the fee snapshot.\n *\n * @generated from field: chain.lifecycle.v1.RequestFeeStatus status = 4;\n */\n status: RequestFeeStatus;\n};\n\n/**\n * Describes the message chain.lifecycle.v1.RequestFee.\n * Use `create(RequestFeeSchema)` to create a new message.\n */\nexport const RequestFeeSchema: GenMessage<RequestFee> = /*@__PURE__*/\n messageDesc(file_chain_lifecycle_v1_types, 1);\n\n/**\n * RequestFeeStatus identifies the current lifecycle state of a request-scoped\n * on-chain fee snapshot.\n *\n * @generated from enum chain.lifecycle.v1.RequestFeeStatus\n */\nexport enum RequestFeeStatus {\n /**\n * @generated from enum value: REQUEST_FEE_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * The request locked a fee snapshot at creation time.\n *\n * @generated from enum value: REQUEST_FEE_STATUS_LOCKED = 1;\n */\n LOCKED = 1,\n\n /**\n * The request completed far enough for the locked fee to settle.\n *\n * @generated from enum value: REQUEST_FEE_STATUS_SETTLED = 2;\n */\n SETTLED = 2,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.RequestFeeStatus.\n */\nexport const RequestFeeStatusSchema: GenEnum<RequestFeeStatus> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 0);\n\n/**\n * LifecycleReason is the stable product-facing reason catalog for failed, dropped,\n * refunded, or otherwise notable lifecycle states.\n *\n * @generated from enum chain.lifecycle.v1.LifecycleReason\n */\nexport enum LifecycleReason {\n /**\n * @generated from enum value: REASON_UNSPECIFIED = 0;\n */\n REASON_UNSPECIFIED = 0,\n\n /**\n * Zipper validators reached the rejection quorum.\n *\n * @generated from enum value: ZIPPER_VALIDATION_REJECTED = 101;\n */\n ZIPPER_VALIDATION_REJECTED = 101,\n\n /**\n * Zipper execution rejected the request.\n *\n * @generated from enum value: ZIPPER_EXECUTION_REJECTED = 102;\n */\n ZIPPER_EXECUTION_REJECTED = 102,\n\n /**\n * Zipper withdraw execution failed.\n *\n * @generated from enum value: ZIPPER_WITHDRAW_EXECUTION_FAILED = 103;\n */\n ZIPPER_WITHDRAW_EXECUTION_FAILED = 103,\n\n /**\n * Zipper deposit refund failed.\n *\n * @generated from enum value: ZIPPER_DEPOSIT_REFUND_FAILED = 104;\n */\n ZIPPER_DEPOSIT_REFUND_FAILED = 104,\n\n /**\n * Ledger mirror rejected a command before it could be durably applied.\n *\n * @generated from enum value: LEDGER_MIRROR_REJECTED = 200;\n */\n LEDGER_MIRROR_REJECTED = 200,\n\n /**\n * Ledger settlement rejected the mirror command because the source account did\n * not have enough credits for the transfer.\n *\n * @generated from enum value: LEDGER_MIRROR_TRANSFER_EXCEEDS_CREDITS = 201;\n */\n LEDGER_MIRROR_TRANSFER_EXCEEDS_CREDITS = 201,\n\n /**\n * Ledger settlement reported that the transfer already exists for this mirror\n * command identity.\n *\n * @generated from enum value: LEDGER_MIRROR_TRANSFER_EXISTS = 202;\n */\n LEDGER_MIRROR_TRANSFER_EXISTS = 202,\n\n /**\n * Ledger settlement reported that the pending transfer referenced by the\n * command was not found.\n *\n * @generated from enum value: LEDGER_MIRROR_PENDING_TRANSFER_NOT_FOUND = 203;\n */\n LEDGER_MIRROR_PENDING_TRANSFER_NOT_FOUND = 203,\n\n /**\n * Ledger settlement reported that this transfer id is already marked failed.\n *\n * @generated from enum value: LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204;\n */\n LEDGER_MIRROR_TRANSFER_ID_ALREADY_FAILED = 204,\n\n /**\n * A trading withdrawal was denied by the account's active transfer policy.\n *\n * @generated from enum value: TRADING_WITHDRAW_POLICY_DENIED = 300;\n */\n TRADING_WITHDRAW_POLICY_DENIED = 300,\n\n /**\n * A trading withdrawal was rejected before submission by its destination contract.\n *\n * @generated from enum value: TRADING_WITHDRAW_CONTRACT_REVERTED = 301;\n */\n TRADING_WITHDRAW_CONTRACT_REVERTED = 301,\n\n /**\n * A trading withdrawal could not be submitted because execution failed.\n *\n * @generated from enum value: TRADING_WITHDRAW_EXECUTION_FAILED = 302;\n */\n TRADING_WITHDRAW_EXECUTION_FAILED = 302,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.LifecycleReason.\n */\nexport const LifecycleReasonSchema: GenEnum<LifecycleReason> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 1);\n\n/**\n * FlowKind identifies the product flow family.\n *\n * @generated from enum chain.lifecycle.v1.FlowKind\n */\nexport enum FlowKind {\n /**\n * @generated from enum value: KIND_UNSPECIFIED = 0;\n */\n KIND_UNSPECIFIED = 0,\n\n /**\n * Deposit flow into Polyester-controlled assets or accounts.\n *\n * @generated from enum value: KIND_DEPOSIT = 1;\n */\n KIND_DEPOSIT = 1,\n\n /**\n * Withdraw flow out of Polyester-controlled assets or accounts.\n *\n * @generated from enum value: KIND_WITHDRAW = 2;\n */\n KIND_WITHDRAW = 2,\n\n /**\n * Internal transfer flow between Polyester-controlled accounts.\n *\n * @generated from enum value: KIND_TRANSFER = 3;\n */\n KIND_TRANSFER = 3,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.FlowKind.\n */\nexport const FlowKindSchema: GenEnum<FlowKind> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 2);\n\n/**\n * FlowDomain identifies the product domain that currently owns or processes the\n * value represented by the lifecycle.\n *\n * @generated from enum chain.lifecycle.v1.FlowDomain\n */\nexport enum FlowDomain {\n /**\n * @generated from enum value: DOMAIN_UNSPECIFIED = 0;\n */\n DOMAIN_UNSPECIFIED = 0,\n\n /**\n * Value still belongs to an external chain outside Polyester.\n *\n * @generated from enum value: DOMAIN_EXTERNAL_CHAIN = 1;\n */\n DOMAIN_EXTERNAL_CHAIN = 1,\n\n /**\n * Value is inside the Zipper layer on Polyester Chain.\n *\n * @generated from enum value: DOMAIN_ZIPPER = 2;\n */\n DOMAIN_ZIPPER = 2,\n\n /**\n * Value is inside FundingAccount.\n *\n * @generated from enum value: DOMAIN_FUNDING = 3;\n */\n DOMAIN_FUNDING = 3,\n\n /**\n * Value is inside TradingGateway or the trading domain.\n *\n * @generated from enum value: DOMAIN_TRADING = 4;\n */\n DOMAIN_TRADING = 4,\n\n /**\n * Value is inside the lending domain or pool.\n *\n * @generated from enum value: DOMAIN_LENDING = 5;\n */\n DOMAIN_LENDING = 5,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.FlowDomain.\n */\nexport const FlowDomainSchema: GenEnum<FlowDomain> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 3);\n\n/**\n * LifecycleSource identifies the subsystem that emitted a normalized fact or\n * visible milestone.\n *\n * @generated from enum chain.lifecycle.v1.LifecycleSource\n */\nexport enum LifecycleSource {\n /**\n * @generated from enum value: SOURCE_UNSPECIFIED = 0;\n */\n SOURCE_UNSPECIFIED = 0,\n\n /**\n * Off-chain relayer or source-chain watcher.\n *\n * @generated from enum value: SOURCE_RELAYER = 1;\n */\n SOURCE_RELAYER = 1,\n\n /**\n * Polyester Chain contract event or other chain-owned lifecycle fact.\n *\n * @generated from enum value: SOURCE_POLYESTER_CHAIN = 2;\n */\n SOURCE_POLYESTER_CHAIN = 2,\n\n /**\n * Executor-owned lifecycle fact.\n *\n * @generated from enum value: SOURCE_EXECUTOR = 3;\n */\n SOURCE_EXECUTOR = 3,\n\n /**\n * Off-chain ledger posting or settlement fact.\n *\n * @generated from enum value: SOURCE_LEDGER = 4;\n */\n SOURCE_LEDGER = 4,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.LifecycleSource.\n */\nexport const LifecycleSourceSchema: GenEnum<LifecycleSource> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 4);\n\n/**\n * FlowState is the latest lifecycle state after folding normalized facts.\n *\n * @generated from enum chain.lifecycle.v1.FlowState\n */\nexport enum FlowState {\n /**\n * @generated from enum value: STATE_UNSPECIFIED = 0;\n */\n STATE_UNSPECIFIED = 0,\n\n /**\n * Flow exists and is still waiting on source-chain progress.\n *\n * @generated from enum value: STATE_PENDING_SOURCE = 1;\n */\n STATE_PENDING_SOURCE = 1,\n\n /**\n * Flow is now progressing on Polyester Chain after source readiness.\n *\n * @generated from enum value: STATE_PENDING_POLYESTER_CHAIN = 2;\n */\n STATE_PENDING_POLYESTER_CHAIN = 2,\n\n /**\n * Flow is now waiting for an off-chain ledger effect or settlement effect.\n *\n * @generated from enum value: STATE_PENDING_LEDGER = 3;\n */\n STATE_PENDING_LEDGER = 3,\n\n /**\n * Flow completed successfully.\n *\n * @generated from enum value: STATE_COMPLETED = 4;\n */\n STATE_COMPLETED = 4,\n\n /**\n * Flow failed and is no longer progressing.\n *\n * @generated from enum value: STATE_FAILED = 5;\n */\n STATE_FAILED = 5,\n\n /**\n * Flow was dropped before successful completion.\n *\n * @generated from enum value: STATE_DROPPED = 6;\n */\n STATE_DROPPED = 6,\n\n /**\n * Flow ended in a refund or reversal.\n *\n * @generated from enum value: STATE_REFUNDED = 7;\n */\n STATE_REFUNDED = 7,\n}\n\n/**\n * Describes the enum chain.lifecycle.v1.FlowState.\n */\nexport const FlowStateSchema: GenEnum<FlowState> = /*@__PURE__*/\n enumDesc(file_chain_lifecycle_v1_types, 5);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,gCACX,uBAAS,glEAAglE,CAAC,2BAA2B,CAAC;;;;;AAiCxnE,MAAa,iBACX,0BAAY,+BAA+B,CAAC;;;;;AA4C9C,MAAa,mBACX,0BAAY,+BAA+B,CAAC;;;;;;;AAQ9C,IAAY,mBAAL,yBAAA,kBAAA;;;;CAIL,iBAAA,iBAAA,iBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,YAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,aAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,+BAA+B,CAAC;;;;;;;AAQ3C,IAAY,kBAAL,yBAAA,iBAAA;;;;CAIL,gBAAA,gBAAA,wBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,gCAAA,OAAA;;;;;;CAOA,gBAAA,gBAAA,+BAAA,OAAA;;;;;;CAOA,gBAAA,gBAAA,sCAAA,OAAA;;;;;;CAOA,gBAAA,gBAAA,kCAAA,OAAA;;;;;;CAOA,gBAAA,gBAAA,4BAAA,OAAA;;;;;;;CAQA,gBAAA,gBAAA,4CAAA,OAAA;;;;;;;CAQA,gBAAA,gBAAA,mCAAA,OAAA;;;;;;;CAQA,gBAAA,gBAAA,8CAAA,OAAA;;;;;;CAOA,gBAAA,gBAAA,8CAAA,OAAA;;;;;;CAOA,gBAAA,gBAAA,oCAAA,OAAA;;;;;;CA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AAA,qBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,kBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,mBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,oBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,kBACX,uBAAS,+BAA+B,CAAC"}
@@ -2,7 +2,7 @@ import { U128 } from "../../../polyester/type/v1/u128_pb.js";
2
2
  import { Message } from "@bufbuild/protobuf";
3
3
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
4
4
  declare namespace withdraw_pb_d_exports {
5
- export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
5
+ export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
6
6
  }
7
7
  /**
8
8
  * Describes the file chain/withdraw/v1/withdraw.proto.
@@ -181,6 +181,68 @@ type CreateWalletTradingWithdrawRequest = Message<"chain.withdraw.v1.CreateWalle
181
181
  * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.
182
182
  */
183
183
  declare const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest>;
184
+ /**
185
+ * ValidateWithdrawDestinationRequest checks one external-chain
186
+ * destination for an authenticated caller without creating a withdraw.
187
+ *
188
+ * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationRequest
189
+ */
190
+ type ValidateWithdrawDestinationRequest = Message<"chain.withdraw.v1.ValidateWithdrawDestinationRequest"> & {
191
+ /**
192
+ * External destination chain identifier.
193
+ *
194
+ * @generated from field: uint64 destination_chain_id = 1;
195
+ */
196
+ destinationChainId: bigint;
197
+ /**
198
+ * Destination address to validate for destination_chain_id.
199
+ *
200
+ * @generated from field: string destination_address = 2;
201
+ */
202
+ destinationAddress: string;
203
+ };
204
+ /**
205
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.
206
+ * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.
207
+ */
208
+ declare const ValidateWithdrawDestinationRequestSchema: GenMessage<ValidateWithdrawDestinationRequest>;
209
+ /**
210
+ * ValidateWithdrawDestinationResponse returns a user-safe validation
211
+ * result without exposing internal denylist details.
212
+ *
213
+ * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationResponse
214
+ */
215
+ type ValidateWithdrawDestinationResponse = Message<"chain.withdraw.v1.ValidateWithdrawDestinationResponse"> & {
216
+ /**
217
+ * Whether the destination may be used for a withdraw.
218
+ *
219
+ * @generated from field: bool valid = 1;
220
+ */
221
+ valid: boolean;
222
+ /**
223
+ * Public validation outcome code.
224
+ *
225
+ * @generated from field: chain.withdraw.v1.WithdrawDestinationValidationCode code = 2;
226
+ */
227
+ code: WithdrawDestinationValidationCode;
228
+ /**
229
+ * User-safe explanation of the validation outcome.
230
+ *
231
+ * @generated from field: string message = 3;
232
+ */
233
+ message: string;
234
+ /**
235
+ * Canonical destination address when valid. Empty when valid is false.
236
+ *
237
+ * @generated from field: string canonical_destination_address = 4;
238
+ */
239
+ canonicalDestinationAddress: string;
240
+ };
241
+ /**
242
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.
243
+ * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.
244
+ */
245
+ declare const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse>;
184
246
  /**
185
247
  * TradingWithdrawAction identifies where funds should move from Trading.
186
248
  *
@@ -204,12 +266,78 @@ declare enum TradingWithdrawAction {
204
266
  * Describes the enum chain.withdraw.v1.TradingWithdrawAction.
205
267
  */
206
268
  declare const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction>;
269
+ /**
270
+ * WithdrawDestinationValidationCode identifies the public outcome of an
271
+ * external-chain destination validation.
272
+ *
273
+ * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode
274
+ */
275
+ declare enum WithdrawDestinationValidationCode {
276
+ /**
277
+ * No validation outcome was produced.
278
+ *
279
+ * @generated from enum value: RESULT_UNSPECIFIED = 0;
280
+ */
281
+ RESULT_UNSPECIFIED = 0,
282
+ /**
283
+ * The destination is valid and may be used for a withdraw.
284
+ *
285
+ * @generated from enum value: VALID = 1;
286
+ */
287
+ VALID = 1,
288
+ /**
289
+ * The address is not valid for the selected destination chain.
290
+ *
291
+ * @generated from enum value: INVALID_ADDRESS = 2;
292
+ */
293
+ INVALID_ADDRESS = 2,
294
+ /**
295
+ * The selected destination chain is not supported for withdraws.
296
+ *
297
+ * @generated from enum value: UNSUPPORTED_CHAIN = 3;
298
+ */
299
+ UNSUPPORTED_CHAIN = 3,
300
+ /**
301
+ * The destination is a Polyester smart account and cannot be used for an
302
+ * external-chain withdraw.
303
+ *
304
+ * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;
305
+ */
306
+ POLYESTER_SMART_ACCOUNT = 4,
307
+ /**
308
+ * The destination is a token contract and cannot receive withdrawals.
309
+ *
310
+ * @generated from enum value: TOKEN_CONTRACT = 5;
311
+ */
312
+ TOKEN_CONTRACT = 5,
313
+ /**
314
+ * The destination is blocked by Polyester's user-safety denylist.
315
+ *
316
+ * @generated from enum value: DENYLISTED_ADDRESS = 6;
317
+ */
318
+ DENYLISTED_ADDRESS = 6
319
+ }
320
+ /**
321
+ * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.
322
+ */
323
+ declare const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode>;
207
324
  /**
208
325
  * WithdrawService manages authenticated chain-facing withdraw request intake.
209
326
  *
210
327
  * @generated from service chain.withdraw.v1.WithdrawService
211
328
  */
212
329
  declare const WithdrawService: GenService<{
330
+ /**
331
+ * Validate an external-chain withdraw destination for an authenticated
332
+ * caller without creating, signing, or reserving a withdraw.
333
+ *
334
+ * @generated from rpc chain.withdraw.v1.WithdrawService.ValidateWithdrawDestination
335
+ */
336
+ validateWithdrawDestination: {
337
+ methodKind: "unary";
338
+ input: typeof ValidateWithdrawDestinationRequestSchema;
339
+ output: typeof ValidateWithdrawDestinationResponseSchema;
340
+ };
213
341
  /**
214
342
  * Create or return one durable withdraw from Trading.
215
343
  *
@@ -234,5 +362,5 @@ declare const WithdrawService: GenService<{
234
362
  };
235
363
  }>;
236
364
  //#endregion
237
- export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
365
+ export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
238
366
  //# sourceMappingURL=withdraw_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withdraw_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"mappings":";;;;;;;;;cAca,iCAAiC;;;;;;;KASlC,gCAAgC;;;;;;;EAO1C;;;;;;cAOW,qCAAqC,WAAW;;;;;;;KASjD,sCAAsC;;;;;;;EAOhD;;;;;;cAOW,2CAA2C,WAAW;;;;;;;KASvD,+BAA+B;;;;;;EAMzC,QAAQ;;;;;;;EAQR;;;;;;EAOA;;;;;;;EAQA,YAAY;;;;;;;;EASZ;;;;;;;EAQA,QAAQ;;;;;;;;;;EAWR;;;;;;;EAQA;;;;;;cAOW,oCAAoC,WAAW;;;;;;;KAShD,+BAA+B;;;;;;EAMzC,UAAU;;;;;;EAOV,kBAAkB;;;;;;cAOP,oCAAoC,WAAW;;;;;;;KAShD,qCAAqC;;;;;;EAM/C,UAAU;;;;;;EAOV;;;;;;EAOA;;;;;;EAOA,kBAAkB;;;;;;cAOP,0CAA0C,WAAW;;;;;;aAQtD;;;;EAIV;;;;EAKA;;;;EAKA;;;;;cAMW,6BAA6B,QAAQ;;;;;;cAQrC,iBAAiB;;;;;;EAM5B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe"}
1
+ {"version":3,"file":"withdraw_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"mappings":";;;;;;;;;cAca,iCAAiC;;;;;;;KASlC,gCAAgC;;;;;;;EAO1C;;;;;;cAOW,qCAAqC,WAAW;;;;;;;KASjD,sCAAsC;;;;;;;EAOhD;;;;;;cAOW,2CAA2C,WAAW;;;;;;;KASvD,+BAA+B;;;;;;EAMzC,QAAQ;;;;;;;EAQR;;;;;;EAOA;;;;;;;EAQA,YAAY;;;;;;;;EASZ;;;;;;;EAQA,QAAQ;;;;;;;;;;EAWR;;;;;;;EAQA;;;;;;cAOW,oCAAoC,WAAW;;;;;;;KAShD,+BAA+B;;;;;;EAMzC,UAAU;;;;;;EAOV,kBAAkB;;;;;;cAOP,oCAAoC,WAAW;;;;;;;KAShD,qCAAqC;;;;;;EAM/C,UAAU;;;;;;EAOV;;;;;;EAOA;;;;;;EAOA,kBAAkB;;;;;;cAOP,0CAA0C,WAAW;;;;;;;KAStD,qCAAqC;;;;;;EAM/C;;;;;;EAOA;;;;;;cAOW,0CAA0C,WAAW;;;;;;;KAStD,sCAAsC;;;;;;EAMhD;;;;;;EAOA,MAAM;;;;;;EAON;;;;;;EAOA;;;;;;cAOW,2CAA2C,WAAW;;;;;;aAQvD;;;;EAIV;;;;EAKA;;;;EAKA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;aAStC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,yCAAyC,QAAQ;;;;;;cAQjD,iBAAiB;;;;;;;EAO5B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -11,13 +11,17 @@ var withdraw_pb_exports = /* @__PURE__ */ __exportAll({
11
11
  TradingWithdrawAction: () => TradingWithdrawAction,
12
12
  TradingWithdrawActionSchema: () => TradingWithdrawActionSchema,
13
13
  TradingWithdrawIntentPayloadSchema: () => TradingWithdrawIntentPayloadSchema,
14
+ ValidateWithdrawDestinationRequestSchema: () => ValidateWithdrawDestinationRequestSchema,
15
+ ValidateWithdrawDestinationResponseSchema: () => ValidateWithdrawDestinationResponseSchema,
16
+ WithdrawDestinationValidationCode: () => WithdrawDestinationValidationCode,
17
+ WithdrawDestinationValidationCodeSchema: () => WithdrawDestinationValidationCodeSchema,
14
18
  WithdrawService: () => WithdrawService,
15
19
  file_chain_withdraw_v1_withdraw: () => file_chain_withdraw_v1_withdraw
16
20
  });
17
21
  /**
18
22
  * Describes the file chain/withdraw/v1/withdraw.proto.
19
23
  */
20
- const file_chain_withdraw_v1_withdraw = /*@__PURE__*/ fileDesc("CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSK4AgocVHJhZGluZ1dpdGhkcmF3SW50ZW50UGF5bG9hZBI6CgZhY3Rpb24YASABKA4yKC5jaGFpbi53aXRoZHJhdy52MS5UcmFkaW5nV2l0aGRyYXdBY3Rpb25CABISCghhc3NldF9pZBgCIAEoDUIAEhwKFGRlc3RpbmF0aW9uX2NoYWluX2lkGAMgASgEEi0KCmFtb3VudF9lMTgYBCABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGQoPZGVhZGxpbmVfdHNfc2VjGAUgASgEQgASKAoFbm9uY2UYBiABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGwoTZGVzdGluYXRpb25fYWRkcmVzcxgHIAEoCRIZCg9pZGVtcG90ZW5jeV9rZXkYCCABKAlCACJ/ChxDcmVhdGVUcmFkaW5nV2l0aGRyYXdSZXF1ZXN0EkIKB3BheWxvYWQYASABKAsyLy5jaGFpbi53aXRoZHJhdy52MS5UcmFkaW5nV2l0aGRyYXdJbnRlbnRQYXlsb2FkQgASGwoRcGF5bG9hZF9zaWduYXR1c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WluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=", [file_polyester_api_options, file_polyester_type_v1_u128]);
21
25
  /**
22
26
  * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.
23
27
  * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.
@@ -44,6 +48,16 @@ const CreateTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_
44
48
  */
45
49
  const CreateWalletTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 4);
46
50
  /**
51
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.
52
+ * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.
53
+ */
54
+ const ValidateWithdrawDestinationRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 5);
55
+ /**
56
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.
57
+ * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.
58
+ */
59
+ const ValidateWithdrawDestinationResponseSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 6);
60
+ /**
47
61
  * TradingWithdrawAction identifies where funds should move from Trading.
48
62
  *
49
63
  * @generated from enum chain.withdraw.v1.TradingWithdrawAction
@@ -68,12 +82,68 @@ let TradingWithdrawAction = /* @__PURE__ */ function(TradingWithdrawAction) {
68
82
  */
69
83
  const TradingWithdrawActionSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 0);
70
84
  /**
85
+ * WithdrawDestinationValidationCode identifies the public outcome of an
86
+ * external-chain destination validation.
87
+ *
88
+ * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode
89
+ */
90
+ let WithdrawDestinationValidationCode = /* @__PURE__ */ function(WithdrawDestinationValidationCode) {
91
+ /**
92
+ * No validation outcome was produced.
93
+ *
94
+ * @generated from enum value: RESULT_UNSPECIFIED = 0;
95
+ */
96
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["RESULT_UNSPECIFIED"] = 0] = "RESULT_UNSPECIFIED";
97
+ /**
98
+ * The destination is valid and may be used for a withdraw.
99
+ *
100
+ * @generated from enum value: VALID = 1;
101
+ */
102
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["VALID"] = 1] = "VALID";
103
+ /**
104
+ * The address is not valid for the selected destination chain.
105
+ *
106
+ * @generated from enum value: INVALID_ADDRESS = 2;
107
+ */
108
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["INVALID_ADDRESS"] = 2] = "INVALID_ADDRESS";
109
+ /**
110
+ * The selected destination chain is not supported for withdraws.
111
+ *
112
+ * @generated from enum value: UNSUPPORTED_CHAIN = 3;
113
+ */
114
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["UNSUPPORTED_CHAIN"] = 3] = "UNSUPPORTED_CHAIN";
115
+ /**
116
+ * The destination is a Polyester smart account and cannot be used for an
117
+ * external-chain withdraw.
118
+ *
119
+ * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;
120
+ */
121
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["POLYESTER_SMART_ACCOUNT"] = 4] = "POLYESTER_SMART_ACCOUNT";
122
+ /**
123
+ * The destination is a token contract and cannot receive withdrawals.
124
+ *
125
+ * @generated from enum value: TOKEN_CONTRACT = 5;
126
+ */
127
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["TOKEN_CONTRACT"] = 5] = "TOKEN_CONTRACT";
128
+ /**
129
+ * The destination is blocked by Polyester's user-safety denylist.
130
+ *
131
+ * @generated from enum value: DENYLISTED_ADDRESS = 6;
132
+ */
133
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["DENYLISTED_ADDRESS"] = 6] = "DENYLISTED_ADDRESS";
134
+ return WithdrawDestinationValidationCode;
135
+ }({});
136
+ /**
137
+ * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.
138
+ */
139
+ const WithdrawDestinationValidationCodeSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 1);
140
+ /**
71
141
  * WithdrawService manages authenticated chain-facing withdraw request intake.
72
142
  *
73
143
  * @generated from service chain.withdraw.v1.WithdrawService
74
144
  */
75
145
  const WithdrawService = /*@__PURE__*/ serviceDesc(file_chain_withdraw_v1_withdraw, 0);
76
146
  //#endregion
77
- export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
147
+ export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
78
148
 
79
149
  //# sourceMappingURL=withdraw_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/withdraw.proto (package chain.withdraw.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/withdraw.proto.\n */\nexport const file_chain_withdraw_v1_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSK4AgocVHJhZGluZ1dpdGhkcmF3SW50ZW50UGF5bG9hZBI6CgZhY3Rpb24YASABKA4yKC5jaGFpbi53aXRoZHJhdy52MS5UcmFkaW5nV2l0aGRyYXdBY3Rpb25CABISCghhc3NldF9pZBgCIAEoDUIAEhwKFGRlc3RpbmF0aW9uX2NoYWluX2lkGAMgASgEEi0KCmFtb3VudF9lMTgYBCABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGQoPZGVhZGxpbmVfdHNfc2VjGAUgASgEQgASKAoFbm9uY2UYBiABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGwoTZGVzdGluYXRpb25fYWRkcmVzcxgHIAEoCRIZCg9pZGVtcG90ZW5jeV9rZXkYCCABKAlCACJ/ChxDcmVhdGVUcmFkaW5nV2l0aGRyYXdSZXF1ZXN0EkIKB3BheWxvYWQYASABKAsyLy5jaGFpbi53aXRoZHJhdy52MS5UcmFkaW5nV2l0aGRyYXdJbnRlbnRQYXlsb2FkQgASGwoRcGF5bG9hZF9zaWduYXR1cmUYAiABKAxCACK1AQoiQ3JlYXRlV2FsbGV0VHJhZGluZ1dpdGhkcmF3UmVxdWVzdBJCCgdwYXlsb2FkGAEgASgLMi8uY2hhaW4ud2l0aGRyYXcudjEuVHJhZGluZ1dpdGhkcmF3SW50ZW50UGF5bG9hZEIAEhUKDXN1YmFjY291bnRfaWQYAiABKAQSFwoNc2lnbmVyX3dhbGxldBgDIAEoCUIAEhsKEXBheWxvYWRfc2lnbmF0dXJlGAQgASgMQgAqVgoVVHJhZGluZ1dpdGhkcmF3QWN0aW9uEhYKEkFDVElPTl9VTlNQRUNJRklFRBAAEg4KClRPX0ZVTkRJTkcQARIVChFUT19FWFRFUk5BTF9DSEFJThACMqACCg9XaXRoZHJhd1NlcnZpY2USfAoVQ3JlYXRlVHJhZGluZ1dpdGhkcmF3Ei8uY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVxdWVzdBowLmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgASjgEKG0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhdxI1LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=\", [file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * CreateTradingWithdrawResponse returns the accepted durable intent identifier\n * for the withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawResponse\n */\nexport type CreateTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.\n * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawResponseSchema: GenMessage<CreateTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * CreateWalletTradingWithdrawResponse returns the accepted durable intent\n * identifier for a wallet-authorized withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawResponse\n */\nexport type CreateWalletTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawResponse.\n * Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * TradingWithdrawIntentPayload is the client-signed typed withdraw request.\n * Account scope and backend intent ids are derived server-side.\n *\n * @generated from message chain.withdraw.v1.TradingWithdrawIntentPayload\n */\nexport type TradingWithdrawIntentPayload = Message<\"chain.withdraw.v1.TradingWithdrawIntentPayload\"> & {\n /**\n * Destination for funds leaving Trading.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawAction action = 1;\n */\n action: TradingWithdrawAction;\n\n /**\n * Unified asset identifier from Polyester asset metadata. amount_e18 is\n * denominated in this asset at canonical 18-decimal scale.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.\n *\n * @generated from field: uint64 destination_chain_id = 3;\n */\n destinationChainId: bigint;\n\n /**\n * Withdraw amount in canonical 18-decimal unified asset units.\n * For example, 0.5 is encoded as 500000000000000000.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 4;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Unix timestamp in seconds after which this signed user authorization is no\n * longer accepted by the API. This is separate from the server-owned\n * execution deadline used later for on-chain submission.\n *\n * @generated from field: uint64 deadline_ts_sec = 5;\n */\n deadlineTsSec: bigint;\n\n /**\n * Client-generated unsigned 128-bit nonce bound to the signed request. This\n * is an identifier, not a decimal amount.\n *\n * @generated from field: polyester.type.v1.U128 nonce = 6;\n */\n nonce?: U128 | undefined;\n\n /**\n * Destination address. For TO_EXTERNAL_CHAIN this is an address on\n * destination_chain_id and is validated according to that network. For\n * TO_FUNDING, omit it to move funds to the selected account's Funding account\n * or provide another Polyester funding address for a Trading-to-Funding\n * transfer.\n *\n * @generated from field: string destination_address = 7;\n */\n destinationAddress: string;\n\n /**\n * Client-chosen idempotency key. Reusing the same key with the same payload\n * returns the existing withdraw; reusing it with different payload fails.\n *\n * @generated from field: string idempotency_key = 8;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.\n * Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.\n */\nexport const TradingWithdrawIntentPayloadSchema: GenMessage<TradingWithdrawIntentPayload> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * CreateTradingWithdrawRequest creates or returns one durable backend-authorized\n * Trading withdraw intent from typed protobuf fields and an API-key signature.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawRequest\n */\nexport type CreateTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * User/API signature over deterministic TradingWithdrawIntentPayload bytes.\n *\n * @generated from field: bytes payload_signature = 2;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.\n * Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawRequestSchema: GenMessage<CreateTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 3);\n\n/**\n * CreateWalletTradingWithdrawRequest creates or returns one durable Trading\n * withdraw intent from typed frontend fields plus a wallet EIP-712 signature.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawRequest\n */\nexport type CreateWalletTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * Optional public subaccount id. Omit to withdraw from the JWT root account.\n *\n * @generated from field: uint64 subaccount_id = 2;\n */\n subaccountId: bigint;\n\n /**\n * Wallet address that produced payload_signature.\n *\n * @generated from field: string signer_wallet = 3;\n */\n signerWallet: string;\n\n /**\n * Wallet EIP-712 signature over the typed withdraw payload.\n *\n * @generated from field: bytes payload_signature = 4;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.\n * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 4);\n\n/**\n * TradingWithdrawAction identifies where funds should move from Trading.\n *\n * @generated from enum chain.withdraw.v1.TradingWithdrawAction\n */\nexport enum TradingWithdrawAction {\n /**\n * @generated from enum value: ACTION_UNSPECIFIED = 0;\n */\n ACTION_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: TO_FUNDING = 1;\n */\n TO_FUNDING = 1,\n\n /**\n * @generated from enum value: TO_EXTERNAL_CHAIN = 2;\n */\n TO_EXTERNAL_CHAIN = 2,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.TradingWithdrawAction.\n */\nexport const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * WithdrawService manages authenticated chain-facing withdraw request intake.\n *\n * @generated from service chain.withdraw.v1.WithdrawService\n */\nexport const WithdrawService: GenService<{\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 * Own-account Trading to Funding accepts recent MFA; external, cross-owner,\n * 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,opDAAopD,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsBxtD,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAgFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;;AAOhD,IAAY,wBAAL,yBAAA,uBAAA;;;;CAIL,sBAAA,sBAAA,wBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,gBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,MAAa,kBAwBX,0BAAY,iCAAiC,CAAC"}
1
+ {"version":3,"file":"withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/withdraw.proto (package chain.withdraw.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/withdraw.proto.\n */\nexport const file_chain_withdraw_v1_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSK4AgocVHJhZGluZ1dpdGhkcmF3SW50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ZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=\", [file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * CreateTradingWithdrawResponse returns the accepted durable intent identifier\n * for the withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawResponse\n */\nexport type CreateTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.\n * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawResponseSchema: GenMessage<CreateTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * CreateWalletTradingWithdrawResponse returns the accepted durable intent\n * identifier for a wallet-authorized withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawResponse\n */\nexport type CreateWalletTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawResponse.\n * Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * TradingWithdrawIntentPayload is the client-signed typed withdraw request.\n * Account scope and backend intent ids are derived server-side.\n *\n * @generated from message chain.withdraw.v1.TradingWithdrawIntentPayload\n */\nexport type TradingWithdrawIntentPayload = Message<\"chain.withdraw.v1.TradingWithdrawIntentPayload\"> & {\n /**\n * Destination for funds leaving Trading.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawAction action = 1;\n */\n action: TradingWithdrawAction;\n\n /**\n * Unified asset identifier from Polyester asset metadata. amount_e18 is\n * denominated in this asset at canonical 18-decimal scale.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.\n *\n * @generated from field: uint64 destination_chain_id = 3;\n */\n destinationChainId: bigint;\n\n /**\n * Withdraw amount in canonical 18-decimal unified asset units.\n * For example, 0.5 is encoded as 500000000000000000.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 4;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Unix timestamp in seconds after which this signed user authorization is no\n * longer accepted by the API. This is separate from the server-owned\n * execution deadline used later for on-chain submission.\n *\n * @generated from field: uint64 deadline_ts_sec = 5;\n */\n deadlineTsSec: bigint;\n\n /**\n * Client-generated unsigned 128-bit nonce bound to the signed request. This\n * is an identifier, not a decimal amount.\n *\n * @generated from field: polyester.type.v1.U128 nonce = 6;\n */\n nonce?: U128 | undefined;\n\n /**\n * Destination address. For TO_EXTERNAL_CHAIN this is an address on\n * destination_chain_id and is validated according to that network. For\n * TO_FUNDING, omit it to move funds to the selected account's Funding account\n * or provide another Polyester funding address for a Trading-to-Funding\n * transfer.\n *\n * @generated from field: string destination_address = 7;\n */\n destinationAddress: string;\n\n /**\n * Client-chosen idempotency key. Reusing the same key with the same payload\n * returns the existing withdraw; reusing it with different payload fails.\n *\n * @generated from field: string idempotency_key = 8;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.\n * Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.\n */\nexport const TradingWithdrawIntentPayloadSchema: GenMessage<TradingWithdrawIntentPayload> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * CreateTradingWithdrawRequest creates or returns one durable backend-authorized\n * Trading withdraw intent from typed protobuf fields and an API-key signature.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawRequest\n */\nexport type CreateTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * User/API signature over deterministic TradingWithdrawIntentPayload bytes.\n *\n * @generated from field: bytes payload_signature = 2;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.\n * Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawRequestSchema: GenMessage<CreateTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 3);\n\n/**\n * CreateWalletTradingWithdrawRequest creates or returns one durable Trading\n * withdraw intent from typed frontend fields plus a wallet EIP-712 signature.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawRequest\n */\nexport type CreateWalletTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * Optional public subaccount id. Omit to withdraw from the JWT root account.\n *\n * @generated from field: uint64 subaccount_id = 2;\n */\n subaccountId: bigint;\n\n /**\n * Wallet address that produced payload_signature.\n *\n * @generated from field: string signer_wallet = 3;\n */\n signerWallet: string;\n\n /**\n * Wallet EIP-712 signature over the typed withdraw payload.\n *\n * @generated from field: bytes payload_signature = 4;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.\n * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 4);\n\n/**\n * ValidateWithdrawDestinationRequest checks one external-chain\n * destination for an authenticated caller without creating a withdraw.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationRequest\n */\nexport type ValidateWithdrawDestinationRequest = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationRequest\"> & {\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 1;\n */\n destinationChainId: bigint;\n\n /**\n * Destination address to validate for destination_chain_id.\n *\n * @generated from field: string destination_address = 2;\n */\n destinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.\n * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationRequestSchema: GenMessage<ValidateWithdrawDestinationRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 5);\n\n/**\n * ValidateWithdrawDestinationResponse returns a user-safe validation\n * result without exposing internal denylist details.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationResponse\n */\nexport type ValidateWithdrawDestinationResponse = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationResponse\"> & {\n /**\n * Whether the destination may be used for a withdraw.\n *\n * @generated from field: bool valid = 1;\n */\n valid: boolean;\n\n /**\n * Public validation outcome code.\n *\n * @generated from field: chain.withdraw.v1.WithdrawDestinationValidationCode code = 2;\n */\n code: WithdrawDestinationValidationCode;\n\n /**\n * User-safe explanation of the validation outcome.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Canonical destination address when valid. Empty when valid is false.\n *\n * @generated from field: string canonical_destination_address = 4;\n */\n canonicalDestinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.\n * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 6);\n\n/**\n * TradingWithdrawAction identifies where funds should move from Trading.\n *\n * @generated from enum chain.withdraw.v1.TradingWithdrawAction\n */\nexport enum TradingWithdrawAction {\n /**\n * @generated from enum value: ACTION_UNSPECIFIED = 0;\n */\n ACTION_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: TO_FUNDING = 1;\n */\n TO_FUNDING = 1,\n\n /**\n * @generated from enum value: TO_EXTERNAL_CHAIN = 2;\n */\n TO_EXTERNAL_CHAIN = 2,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.TradingWithdrawAction.\n */\nexport const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * WithdrawDestinationValidationCode identifies the public outcome of an\n * external-chain destination validation.\n *\n * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode\n */\nexport enum WithdrawDestinationValidationCode {\n /**\n * No validation outcome was produced.\n *\n * @generated from enum value: RESULT_UNSPECIFIED = 0;\n */\n RESULT_UNSPECIFIED = 0,\n\n /**\n * The destination is valid and may be used for a withdraw.\n *\n * @generated from enum value: VALID = 1;\n */\n VALID = 1,\n\n /**\n * The address is not valid for the selected destination chain.\n *\n * @generated from enum value: INVALID_ADDRESS = 2;\n */\n INVALID_ADDRESS = 2,\n\n /**\n * The selected destination chain is not supported for withdraws.\n *\n * @generated from enum value: UNSUPPORTED_CHAIN = 3;\n */\n UNSUPPORTED_CHAIN = 3,\n\n /**\n * The destination is a Polyester smart account and cannot be used for an\n * external-chain withdraw.\n *\n * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;\n */\n POLYESTER_SMART_ACCOUNT = 4,\n\n /**\n * The destination is a token contract and cannot receive withdrawals.\n *\n * @generated from enum value: TOKEN_CONTRACT = 5;\n */\n TOKEN_CONTRACT = 5,\n\n /**\n * The destination is blocked by Polyester's user-safety denylist.\n *\n * @generated from enum value: DENYLISTED_ADDRESS = 6;\n */\n DENYLISTED_ADDRESS = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.\n */\nexport const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * WithdrawService manages authenticated chain-facing withdraw request intake.\n *\n * @generated from service chain.withdraw.v1.WithdrawService\n */\nexport const WithdrawService: GenService<{\n /**\n * Validate an external-chain withdraw destination for an authenticated\n * caller without creating, signing, or reserving a withdraw.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.ValidateWithdrawDestination\n */\n validateWithdrawDestination: {\n methodKind: \"unary\";\n input: typeof ValidateWithdrawDestinationRequestSchema;\n output: typeof ValidateWithdrawDestinationResponseSchema;\n },\n /**\n * Create or return one durable withdraw from Trading.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateTradingWithdraw\n */\n createTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateTradingWithdrawRequestSchema;\n output: typeof CreateTradingWithdrawResponseSchema;\n },\n /**\n * Create or return one wallet/JWT withdraw from Trading.\n * Own-account Trading to Funding accepts recent MFA; external, cross-owner,\n * and delegated movements require a fresh single-use step-up.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateWalletTradingWithdraw\n */\n createWalletTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateWalletTradingWithdrawRequestSchema;\n output: typeof CreateWalletTradingWithdrawResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,kCACX,uBAAS,w8EAAw8E,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsB5gF,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAgFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;;AAOhD,IAAY,wBAAL,yBAAA,uBAAA;;;;CAIL,sBAAA,sBAAA,wBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,gBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,iCAAiC,CAAC;;;;;;;AAQ7C,IAAY,oCAAL,yBAAA,mCAAA;;;;;;CAML,kCAAA,kCAAA,wBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,WAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,qBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,uBAAA,KAAA;;;;;;;CAQA,kCAAA,kCAAA,6BAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,oBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,0CACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,MAAa,kBAmCX,0BAAY,iCAAiC,CAAC"}
@@ -37,7 +37,7 @@ var ledger_read_pb_exports = /* @__PURE__ */ __exportAll({
37
37
  /**
38
38
  * Describes the file ledger/read/v1/ledger_read.proto.
39
39
  */
40
- const file_ledger_read_v1_ledger_read = /*@__PURE__*/ fileDesc("CiBsZWRnZXIv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lci5yZWFkLnYxLkdldEVxdWl0eUhpc3RvcnlTZXJpZXNSZXF1ZXN0Gi4ubGVkZ2VyLnJlYWQudjEuR2V0RXF1aXR5SGlzdG9yeVNlcmllc1Jlc3BvbnNlIgASXgoNTGlzdFRyYW5zZmVycxIkLmxlZGdlci5yZWFkLnYxLkxpc3RUcmFuc2ZlcnNSZXF1ZXN0GiUubGVkZ2VyLnJlYWQudjEuTGlzdFRyYW5zZmVyc1Jlc3BvbnNlIgASUgoJTGlzdEhvbGRzEiAubGVkZ2VyLnJlYWQudjEuTGlzdEhvbGRzUmVxdWVzdBohLmxlZGdlci5yZWFkLnYxLkxpc3RIb2xkc1Jlc3BvbnNlIgASWAoLR2V0QmFsYW5jZXMSIi5sZWRnZXIucmVhZC52MS5HZXRCYWxhbmNlc1JlcXVlc3QaIy5sZWRnZXIucmVhZC52MS5HZXRCYWxhbmNlc1Jlc3BvbnNlIgBCR1pFZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9sZWRnZXIvcmVhZC92MTtsZWRnZXJyZHYxYgZwcm90bzM=", [file_ledger_v1_catalog, file_polyester_type_v1_u128]);
41
41
  /**
42
42
  * Describes the message ledger.read.v1.GetBalancesRequest.
43
43
  * Use `create(GetBalancesRequestSchema)` to create a new message.