Skip to content

Commit

Permalink
chore: todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Oct 3, 2024
1 parent 32ee2f3 commit 285de56
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/core/src/DatumBuilders/ContractTypes/Contract.Blaze.v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@ export const WithdrawAssetSchema = Data.Enum([
export type TWithdrawAsset = Static<typeof WithdrawAssetSchema>;
export const WithdrawAsset = WithdrawAssetSchema as unknown as TWithdrawAsset;

/**
* @todo
* The WithdrawAsset is using an enum that can be consolidated like V3 orders.
* This will help simplify checking order datums with a single type.
*
* - OrderSchema
* -- ident
* -- orderAddresses
* -- scooperFee
* -- details (enum)
* --- Swap (121)
* --- Withdraw (122)
* --- Deposit (123)
*/
export const WithdrawOrderSchema = Data.Object({
ident: Data.Bytes(),
orderAddresses: OrderAddressesSchema,
Expand Down

0 comments on commit 285de56

Please sign in to comment.