{"openapi":"3.1.0","info":{"title":"Bridge API","version":"0.0.1","description":"Functionality for interacting with Rhino bridge service"},"paths":{"/quote/public":{"get":{"tags":["quote"],"operationId":"quote.publicQuote","parameters":[{"name":"token","in":"query","schema":{"type":"string","description":"The token symbol to bridge (e.g., \"USDT\", \"USDC\"). Must be supported on both source and destination chains."},"required":true,"description":"The token symbol to bridge (e.g., \"USDT\", \"USDC\"). Must be supported on both source and destination chains."},{"name":"chainIn","in":"query","schema":{"type":"string","description":"The source chain ID"},"required":true,"description":"The source chain ID"},{"name":"chainOut","in":"query","schema":{"type":"string","description":"The target chain ID"},"required":true,"description":"The target chain ID"},{"name":"amount","in":"query","schema":{"$ref":"#/components/schemas/BigDecimalFromString"},"required":true},{"name":"amountNative","in":"query","schema":{"$ref":"#/components/schemas/BigDecimalFromString"},"required":false},{"name":"mode","in":"query","schema":{"type":"string","enum":["pay","receive"],"description":"\"pay\" for exact amount to pay (including fees), \"receive\" for exact amount to receive."},"required":true,"description":"\"pay\" for exact amount to pay (including fees), \"receive\" for exact amount to receive."},{"name":"isSda","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/BooleanFromString"}],"description":"Optional flag indicating if this quote is for a Smart Deposit Address. Defaults to false."},"required":false,"description":"Optional flag indicating if this quote is for a Smart Deposit Address. Defaults to false."}],"security":[],"responses":{"200":{"description":"SingleBridgePublicQuoteResponseSchema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SingleBridgePublicQuoteResponseSchema"},{"$ref":"#/components/schemas/BridgeSwapPublicQuoteResponseSchema"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidRequest"},{"$ref":"#/components/schemas/GasBoostGreaterThanReceiveAmount"},{"$ref":"#/components/schemas/NegativeReceiveAmount"}]}}}}},"description":"Deprecated: Use /quote/bridge-swap/public instead. Fetch public bridge quote.","summary":"Public Quote","deprecated":true}},"/quote/user":{"post":{"tags":["quote"],"operationId":"quote.userQuote","parameters":[],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"ConnectedSingleBridgeQuoteResponseSchema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectedSingleBridgeQuoteResponseSchema"},{"$ref":"#/components/schemas/ConnectedBridgeSwapQuoteResponseSchema"},{"$ref":"#/components/schemas/ConnectedDepositAddressBridgeQuoteResponseSchema"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"WithdrawLimitReached","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WithdrawLimitReached"},{"$ref":"#/components/schemas/DepositLimitReached"},{"$ref":"#/components/schemas/GasBoostGreaterThanReceiveAmount"},{"$ref":"#/components/schemas/NegativeReceiveAmount"},{"$ref":"#/components/schemas/InvalidRequest"}]}}}}},"description":"Deprecated: Use /quote/bridge-swap/user instead. Fetch bridge user quote when authenticated.","summary":"User Quote","deprecated":true,"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["token","chainIn","chainOut","amount","mode","depositor","recipient"],"properties":{"token":{"type":"string","description":"The token symbol to bridge (e.g., \"USDT\", \"USDC\"). Must be supported on both source and destination chains."},"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"amount":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"mode":{"type":"string","enum":["pay","receive"],"description":"\"pay\" for exact amount to pay (including fees), \"receive\" for exact amount to receive."},"isSda":{"allOf":[{"$ref":"#/components/schemas/BooleanFromString"}],"description":"Optional flag indicating if this quote is for a Smart Deposit Address. Defaults to false."},"depositor":{"type":"string","description":"The address initiating the bridge transaction."},"recipient":{"type":"string","description":"The address to receive the bridged tokens."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"webhookUrl":{"type":"string"}},"additionalProperties":false}}},"required":true}}},"/quote/commit/{quoteId}":{"post":{"tags":["quote"],"operationId":"quote.commitQuote","parameters":[{"name":"quoteId","in":"path","schema":{"type":"string","description":"Unique identifier of the quote to commit."},"required":true,"description":"Unique identifier of the quote to commit."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["quoteId"],"properties":{"quoteId":{"type":"string","description":"Unique identifier for the committed quote."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"QuoteNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteNotFound"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequests"}}}}},"description":"Commit an already cached user quote.","summary":"Commit Quote"}},"/quote/bridge-swap/public":{"get":{"tags":["quote"],"operationId":"quote.bridgeSwapPublicQuote","parameters":[{"name":"chainIn","in":"query","schema":{"type":"string","description":"The source chain ID"},"required":true,"description":"The source chain ID"},{"name":"chainOut","in":"query","schema":{"type":"string","description":"The target chain ID"},"required":true,"description":"The target chain ID"},{"name":"amount","in":"query","schema":{"$ref":"#/components/schemas/BigDecimalFromString"},"required":true},{"name":"amountNative","in":"query","schema":{"$ref":"#/components/schemas/BigDecimalFromString"},"required":false},{"name":"mode","in":"query","schema":{"type":"string","enum":["pay","receive"],"description":"\"pay\" for exact amount to pay (including fees), \"receive\" for exact amount to receive."},"required":true,"description":"\"pay\" for exact amount to pay (including fees), \"receive\" for exact amount to receive."},{"name":"isSda","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/BooleanFromString"}],"description":"Optional flag indicating if this quote is for a Smart Deposit Address. Defaults to false."},"required":false,"description":"Optional flag indicating if this quote is for a Smart Deposit Address. Defaults to false."},{"name":"tokenIn","in":"query","schema":{"type":"string","description":"The token symbol to deposit (e.g., \"USDT\")."},"required":true,"description":"The token symbol to deposit (e.g., \"USDT\")."},{"name":"tokenOut","in":"query","schema":{"type":"string","description":"The token symbol to receive after a swap (e.g., \"USDC\")."},"required":true,"description":"The token symbol to receive after a swap (e.g., \"USDC\")."}],"security":[],"responses":{"200":{"description":"SingleBridgePublicQuoteResponseSchema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SingleBridgePublicQuoteResponseSchema"},{"$ref":"#/components/schemas/BridgeSwapPublicQuoteResponseSchema"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"404":{"description":"NoRouteFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoRouteFoundError"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidRequest"},{"$ref":"#/components/schemas/GasBoostGreaterThanReceiveAmount"},{"$ref":"#/components/schemas/NegativeReceiveAmount"},{"$ref":"#/components/schemas/NoCommonBridgeTokensError"},{"$ref":"#/components/schemas/NoBridgeTokenFoundError"},{"$ref":"#/components/schemas/SameChainSwapNotAvailable"}]}}}}},"description":"Fetch public bridge and swap quote.","summary":"Public Quote for Bridge & Swap"}},"/quote/bridge-swap/user":{"post":{"tags":["quote"],"operationId":"quote.bridgeSwapUserQuote","parameters":[],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"ConnectedSingleBridgeQuoteResponseSchema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectedSingleBridgeQuoteResponseSchema"},{"$ref":"#/components/schemas/ConnectedBridgeSwapQuoteResponseSchema"},{"$ref":"#/components/schemas/ConnectedDepositAddressBridgeQuoteResponseSchema"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"NoRouteFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoRouteFoundError"}}}},"422":{"description":"WithdrawLimitReached","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WithdrawLimitReached"},{"$ref":"#/components/schemas/DepositLimitReached"},{"$ref":"#/components/schemas/GasBoostGreaterThanReceiveAmount"},{"$ref":"#/components/schemas/NegativeReceiveAmount"},{"$ref":"#/components/schemas/InvalidRequest"},{"$ref":"#/components/schemas/NoCommonBridgeTokensError"},{"$ref":"#/components/schemas/NoBridgeTokenFoundError"},{"$ref":"#/components/schemas/SameChainSwapNotAvailable"}]}}}}},"description":"Fetch bridge and swap user quote when authenticated.","summary":"User Quote for Bridge & Swap","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["chainIn","chainOut","amount","mode","tokenIn","tokenOut","depositor","recipient"],"properties":{"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"amount":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"mode":{"type":"string","enum":["pay","receive"],"description":"\"pay\" for exact amount to pay (including fees), \"receive\" for exact amount to receive."},"isSda":{"allOf":[{"$ref":"#/components/schemas/BooleanFromString"}],"description":"Optional flag indicating if this quote is for a Smart Deposit Address. Defaults to false."},"tokenIn":{"type":"string","description":"The token symbol to deposit (e.g., \"USDT\")."},"tokenOut":{"type":"string","description":"The token symbol to receive after a swap (e.g., \"USDC\")."},"depositor":{"type":"string","description":"The address initiating the bridge transaction."},"recipient":{"type":"string","description":"The address to receive the bridged tokens."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"webhookUrl":{"type":"string"},"refundAddress":{"type":"string"}},"additionalProperties":false}}},"required":true}}},"/configs":{"get":{"tags":["configs"],"operationId":"configs.configs","parameters":[],"security":[],"responses":{"200":{"description":"Map of network identifiers to their configuration details. Keys are network identifiers, values contain full network configuration including tokens.","content":{"application/json":{"schema":{"type":"object","required":[],"properties":{},"additionalProperties":{"$ref":"#/components/schemas/BridgeConfigEntrySchema"},"description":"Map of network identifiers to their configuration details. Keys are network identifiers, values contain full network configuration including tokens."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}}},"description":"Fetch bridge configs.","summary":"Configs (chains & tokens)"}},"/config/{chain}/{token}":{"get":{"tags":["configs"],"operationId":"configs.configTokenChain","parameters":[{"name":"chain","in":"path","schema":{"type":"string","description":"The blockchain chain identifier (e.g., \"ETHEREUM\", \"ARBITRUM\")."},"required":true,"description":"The blockchain chain identifier (e.g., \"ETHEREUM\", \"ARBITRUM\")."},{"name":"token","in":"path","schema":{"type":"string","description":"The token symbol or identifier (e.g., \"USDT\", \"ETH\")."},"required":true,"description":"The token symbol or identifier (e.g., \"USDT\", \"ETH\")."}],"security":[],"responses":{"200":{"description":"ExtendedTokenEntry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendedTokenEntry"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidTokenForChain"},{"$ref":"#/components/schemas/InvalidToken"}]}}}}},"description":"Fetch config for a token/chain","summary":"Single Config (token/chain)"}},"/config/tokens":{"get":{"tags":["configs"],"operationId":"configs.configTokenAddressChain","parameters":[{"name":"chain","in":"query","schema":{"type":"string","description":"The blockchain chain identifier (e.g., \"ETHEREUM\", \"ARBITRUM\")."},"required":true,"description":"The blockchain chain identifier (e.g., \"ETHEREUM\", \"ARBITRUM\")."},{"name":"tokenAddress","in":"query","schema":{"type":"string","description":"The token contract address on the specified chain."},"required":true,"description":"The token contract address on the specified chain."}],"security":[],"responses":{"200":{"description":"ExtendedTokenEntry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendedTokenEntry"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidTokenForChain"},{"$ref":"#/components/schemas/InvalidToken"}]}}}}},"description":"Fetch config for a token by address","summary":"Single Config (token address/chain)"}},"/bridge-swap-token-configs":{"get":{"tags":["configs"],"operationId":"configs.bridgeSwapTokenConfigs","parameters":[],"security":[],"responses":{"200":{"description":"Map of token symbols to their configuration arrays across all supported chains.","content":{"application/json":{"schema":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TokenConfigResponseSchema"},"description":"Array of token configurations for the specified token across different chains."},"description":"Map of token symbols to their configuration arrays across all supported chains."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}}},"description":"Fetch all bridge and swap token configs.","summary":"Get all token configs for bridge and swap"}},"/history/user":{"get":{"tags":["history"],"operationId":"history.userHistory","parameters":[{"name":"page","in":"query","schema":{"type":"string","description":"a string to be decoded into a number"},"required":true,"description":"a string to be decoded into a number"},{"name":"limit","in":"query","schema":{"type":"string","description":"a string to be decoded into a number"},"required":true,"description":"a string to be decoded into a number"},{"name":"sortBy","in":"query","schema":{"type":"string","enum":["createdAt","updatedAt"],"description":"Field to sort by: \"createdAt\" or \"updatedAt\"."},"required":true,"description":"Field to sort by: \"createdAt\" or \"updatedAt\"."},{"name":"sortDirection","in":"query","schema":{"type":"string","enum":["asc","desc"],"description":"Sort direction: \"asc\" for ascending, \"desc\" for descending."},"required":true,"description":"Sort direction: \"asc\" for ascending, \"desc\" for descending."},{"name":"state","in":"query","schema":{"type":"string","enum":["PENDING","ACCEPTED","EXECUTED"],"description":"Optional filter by bridge state: \"PENDING\", \"ACCEPTED\", or \"EXECUTED\"."},"required":false,"description":"Optional filter by bridge state: \"PENDING\", \"ACCEPTED\", or \"EXECUTED\"."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["totalItems","items"],"properties":{"totalItems":{"type":"number","description":"Total number of history items available (for pagination)."},"items":{"type":"array","items":{"type":"object","required":["bridge","rejections"],"properties":{"bridge":{"anyOf":[{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPending"},{"$ref":"#/components/schemas/DepositAddressBridgePending"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPendingConfirmation"},{"$ref":"#/components/schemas/DepositAddressBridgePendingConfirmation"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","cancelledAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"cancelledAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapCancelled"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","failedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"failedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["FAILED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapFailed"},{"$ref":"#/components/schemas/DepositAddressBridgeFailed"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapDepositAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeDepositAccepted"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["SWAP_FAILED_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD_REFUNDED"]}},"additionalProperties":false}]},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"}],"description":"Bridge transaction details."},"rejections":{"type":"array","items":{"type":"object","required":["depositTxHash","depositCommittedAt","reason"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]}},"additionalProperties":false},"description":"Any rejection reasons associated with this transaction."}},"additionalProperties":false},"description":"Array of history items with bridge details and any rejections."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}}},"description":"Fetch bridge history for a user. Will be removed in the future, please use /histor-cursor instead.","summary":"User History","deprecated":true}},"/history-cursor/user":{"get":{"tags":["history"],"operationId":"history.userHistoryCursor","parameters":[{"name":"sortBy","in":"query","schema":{"type":"string","enum":["createdAt","updatedAt"],"description":"Field to sort by: \"createdAt\" or \"updatedAt\"."},"required":true,"description":"Field to sort by: \"createdAt\" or \"updatedAt\"."},{"name":"sortDirection","in":"query","schema":{"type":"string","enum":["asc","desc"],"description":"Sort direction: \"asc\" for ascending, \"desc\" for descending."},"required":true,"description":"Sort direction: \"asc\" for ascending, \"desc\" for descending."},{"name":"state","in":"query","schema":{"type":"string","enum":["PENDING","ACCEPTED","EXECUTED"],"description":"Optional filter by bridge state: \"PENDING\", \"ACCEPTED\", or \"EXECUTED\"."},"required":false,"description":"Optional filter by bridge state: \"PENDING\", \"ACCEPTED\", or \"EXECUTED\"."},{"name":"pageToken","in":"query","schema":{"$ref":"#/components/schemas/NonEmptyString"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","description":"a string to be decoded into a number"},"required":true,"description":"a string to be decoded into a number"}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextPageToken"],"properties":{"items":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPending"},{"$ref":"#/components/schemas/DepositAddressBridgePending"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPendingConfirmation"},{"$ref":"#/components/schemas/DepositAddressBridgePendingConfirmation"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","cancelledAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"cancelledAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapCancelled"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","failedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"failedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["FAILED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapFailed"},{"$ref":"#/components/schemas/DepositAddressBridgeFailed"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapDepositAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeDepositAccepted"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["SWAP_FAILED_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD_REFUNDED"]}},"additionalProperties":false}]},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"}],"description":"Bridge transaction details."}},"nextPageToken":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyString"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}}},"description":"Fetch bridge history for a user.","summary":"User History"}},"/history/bridge/{bridgeId}":{"get":{"tags":["history"],"operationId":"history.bridgeHistory","parameters":[{"name":"bridgeId","in":"path","schema":{"type":"string","description":"Unique identifier of the bridge transaction."},"required":true,"description":"Unique identifier of the bridge transaction."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"BridgePending","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPending"},{"$ref":"#/components/schemas/DepositAddressBridgePending"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPendingConfirmation"},{"$ref":"#/components/schemas/DepositAddressBridgePendingConfirmation"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","cancelledAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"cancelledAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapCancelled"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","failedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"failedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["FAILED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapFailed"},{"$ref":"#/components/schemas/DepositAddressBridgeFailed"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapDepositAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeDepositAccepted"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["SWAP_FAILED_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}}},"description":"Fetch the status of a single bridge.","summary":"Bridge Status"},"patch":{"tags":["history"],"operationId":"history.patchBridgeHistory","parameters":[{"name":"bridgeId","in":"path","schema":{"type":"string","description":"Unique identifier of the bridge transaction."},"required":true,"description":"Unique identifier of the bridge transaction."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"BridgePending","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPending"},{"$ref":"#/components/schemas/DepositAddressBridgePending"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPendingConfirmation"},{"$ref":"#/components/schemas/DepositAddressBridgePendingConfirmation"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","cancelledAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"cancelledAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapCancelled"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","failedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"failedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["FAILED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapFailed"},{"$ref":"#/components/schemas/DepositAddressBridgeFailed"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapDepositAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeDepositAccepted"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["SWAP_FAILED_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"404":{"description":"BridgeNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeNotFound"}}}},"422":{"description":"CannotCancelBridge","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CannotCancelBridge"},{"$ref":"#/components/schemas/InvalidRequest"}]}}}}},"description":"Patch the status of a bridge.","summary":"Patch Bridge Status","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["state"],"properties":{"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false}}},"required":true}}},"/history/bridge/by-hash/{withdrawTxHash}":{"get":{"tags":["history"],"operationId":"history.bridgeHistoryByWithdrawHashDeprecated","parameters":[{"name":"withdrawTxHash","in":"path","schema":{"type":"string","description":"Transaction hash of the withdrawal transaction."},"required":true,"description":"Transaction hash of the withdrawal transaction."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"BridgeExecuted","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}}},"description":"Fetch the status of a single executed bridge by withdraw transaction hash.","summary":"Bridge Status (Withdraw Hash)","deprecated":true}},"/history/bridge/by-withdraw-hash/{withdrawTxHash}":{"get":{"tags":["history"],"operationId":"history.bridgeHistoryByWithdrawHash","parameters":[{"name":"withdrawTxHash","in":"path","schema":{"type":"string","description":"Transaction hash of the withdrawal transaction."},"required":true,"description":"Transaction hash of the withdrawal transaction."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"BridgeExecuted","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}}},"description":"Fetch the status of a single executed bridge by withdraw transaction hash.","summary":"Bridge Status (Withdraw Hash)"}},"/history/bridge/by-deposit-hash/{depositTxHash}":{"get":{"tags":["history"],"operationId":"history.bridgeHistoryByDepositHash","parameters":[{"name":"depositTxHash","in":"path","schema":{"type":"string","description":"Transaction hash of the deposit transaction."},"required":true,"description":"Transaction hash of the deposit transaction."}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","minItems":1,"items":{"anyOf":[{"anyOf":[{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPending"},{"$ref":"#/components/schemas/DepositAddressBridgePending"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapPendingConfirmation"},{"$ref":"#/components/schemas/DepositAddressBridgePendingConfirmation"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","cancelledAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"cancelledAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapCancelled"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","failedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"failedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["FAILED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapFailed"},{"$ref":"#/components/schemas/DepositAddressBridgeFailed"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapDepositAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeDepositAccepted"},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["SWAP_FAILED_REFUNDED"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD"]}},"additionalProperties":false},{"type":"object","required":["depositTxHash","depositCommittedAt","reason","_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","refundTxHash","refundTxTimestamp","refundedToken","refundedAmount","refundedChain","state"],"properties":{"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"reason":{"type":"string"},"additionalData":{"anyOf":[{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"null"}]},"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"refundTxHash":{"$ref":"#/components/schemas/NonEmptyString"},"refundTxTimestamp":{"$ref":"#/components/schemas/DateFromString"},"refundedToken":{"$ref":"#/components/schemas/NonEmptyString"},"refundedAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"refundedChain":{"$ref":"#/components/schemas/NonEmptyString"},"state":{"type":"string","enum":["DEPOSIT_RECEIVED_AFTER_GRACE_PERIOD_REFUNDED"]}},"additionalProperties":false}]},{"type":"object","required":["_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"_tag":{"type":"string","enum":["bridge"]},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},{"$ref":"#/components/schemas/BridgeSwapExecuted"}]}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}},"500":{"description":"HistoryNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryNotFound"}}}}},"description":"Fetch the status of bridges by deposit transaction hash.","summary":"Bridge Statuses (Deposit Hash)"}},"/swap/calldata/{commitmentId}":{"get":{"tags":["swap"],"operationId":"swap.calldata","parameters":[{"name":"commitmentId","in":"path","schema":{"type":"string","description":"Unique identifier of the swap commitment."},"required":true,"description":"Unique identifier of the swap commitment."}],"security":[],"responses":{"200":{"description":"SwapCalldataResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapCalldataResponse"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"404":{"description":"CommitmentNotFoundError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CommitmentNotFoundError"},{"$ref":"#/components/schemas/TokenNotFoundError"}]}}}},"422":{"description":"InvalidCommitmentTypeError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCommitmentTypeError"}}}}},"description":"Get the calldata needed to execute a single swap.","summary":"Calldata to execute a single swap"}},"/deposit-addresses":{"post":{"tags":["depositAddresses"],"operationId":"depositAddresses.createDepositAddress","parameters":[],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DepositAddress"}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"DepositAddressChainsNotSupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressChainsNotSupported"},{"$ref":"#/components/schemas/DepositAddressInvalidDestinationAddress"},{"$ref":"#/components/schemas/DepositAddressMultipleChainTypesNotAllowed"},{"$ref":"#/components/schemas/DepositAddressNoBridgableTokens"},{"$ref":"#/components/schemas/DepositAddressTokenOutNotSupported"},{"$ref":"#/components/schemas/DepositAddressInvalidPostBridgeData"},{"$ref":"#/components/schemas/DepositAddressInvalidRefundAddress"},{"$ref":"#/components/schemas/InvalidRequest"}]}}}},"429":{"description":"DepositAddressRateLimitExceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositAddressRateLimitExceeded"}}}},"503":{"description":"EndpointDisabledError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointDisabledError"}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Create new deposit address","deprecated":true,"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDepositAddressPayload"}}},"required":true}}},"/deposit-addresses/{depositAddress}/{depositChain}/activate":{"patch":{"tags":["depositAddresses"],"operationId":"depositAddresses.reactivateDepositAddress","parameters":[{"name":"depositAddress","in":"path","schema":{"anyOf":[{"$ref":"#/components/schemas/EthAddressSchema"},{"$ref":"#/components/schemas/TronAddressBasic"},{"$ref":"#/components/schemas/SolanaAddress"}]},"required":true},{"name":"depositChain","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"a boolean","content":{"application/json":{"schema":{"type":"boolean"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"DepositAddressAlreadyActive","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressAlreadyActive"},{"$ref":"#/components/schemas/DepositAddressNotFound"}]}}}},"503":{"description":"EndpointDisabledError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointDisabledError"}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Reactivate deposit address","deprecated":true}},"/deposit-addresses/{depositAddress}/{depositChain}":{"get":{"tags":["depositAddresses"],"operationId":"depositAddresses.statusDepositAddress","parameters":[{"name":"depositAddress","in":"path","schema":{"anyOf":[{"$ref":"#/components/schemas/EthAddressSchema"},{"$ref":"#/components/schemas/TronAddressBasic"},{"$ref":"#/components/schemas/SolanaAddress"}]},"required":true},{"name":"depositChain","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"DepositAddressStatusResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositAddressStatusResponse"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"DepositAddressNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressNotFound"},{"$ref":"#/components/schemas/DepositAddressChainsNotSupported"},{"$ref":"#/components/schemas/DepositAddressInvalidDestinationAddress"},{"$ref":"#/components/schemas/DepositAddressMultipleChainTypesNotAllowed"},{"$ref":"#/components/schemas/DepositAddressNoBridgableTokens"},{"$ref":"#/components/schemas/DepositAddressTokenOutNotSupported"},{"$ref":"#/components/schemas/InvalidRequest"}]}}}},"503":{"description":"EndpointDisabledError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointDisabledError"}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Get deposit address status","deprecated":true}},"/deposit-addresses/{depositAddress}/{depositChain}/history":{"get":{"tags":["depositAddresses"],"operationId":"depositAddresses.historyDepositAddress","parameters":[{"name":"depositAddress","in":"path","schema":{"anyOf":[{"$ref":"#/components/schemas/EthAddressSchema"},{"$ref":"#/components/schemas/TronAddressBasic"},{"$ref":"#/components/schemas/SolanaAddress"}]},"required":true},{"name":"depositChain","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"$ref":"#/components/schemas/from"},"required":false},{"name":"to","in":"query","schema":{"$ref":"#/components/schemas/from"},"required":false}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"DepositAddressHistoryResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositAddressHistoryResponse"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"DepositAddressNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressNotFound"},{"$ref":"#/components/schemas/DepositAddressChainsNotSupported"},{"$ref":"#/components/schemas/InvalidDateRange"}]}}}},"503":{"description":"EndpointDisabledError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointDisabledError"}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Get deposit address history","deprecated":true}},"/deposit-addresses/{depositAddress}/{depositChain}/public-status":{"get":{"tags":["depositAddresses"],"operationId":"depositAddresses.publicDepositAddressStatus","parameters":[{"name":"depositAddress","in":"path","schema":{"anyOf":[{"$ref":"#/components/schemas/EthAddressSchema"},{"$ref":"#/components/schemas/TronAddressBasic"},{"$ref":"#/components/schemas/SolanaAddress"}]},"required":true},{"name":"depositChain","in":"path","schema":{"type":"string"},"required":true},{"name":"destinationAddress","in":"query","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"PublicDepositAddressStatusResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDepositAddressStatusResponse"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"DepositAddressNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressNotFound"},{"$ref":"#/components/schemas/InvalidRequest"}]}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Get public deposit address status","deprecated":true}},"/deposit-addresses/{depositChain}/{destinationChain}/supported-tokens":{"get":{"tags":["depositAddresses"],"operationId":"depositAddresses.supportedTokens","parameters":[{"name":"depositChain","in":"path","schema":{"type":"string","description":"The blockchain network identifier where the deposit address is located.","title":"nonEmptyString","minLength":1},"required":true,"description":"The blockchain network identifier where the deposit address is located."},{"name":"destinationChain","in":"path","schema":{"type":"string","description":"The blockchain network identifier where bridged tokens will be sent.","title":"nonEmptyString","minLength":1},"required":true,"description":"The blockchain network identifier where bridged tokens will be sent."},{"name":"tokenOut","in":"query","schema":{"type":"string","description":"Optional token to receive after bridging (for token swaps)."},"required":false,"description":"Optional token to receive after bridging (for token swaps)."}],"security":[],"responses":{"200":{"description":"SupportedTokensResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportedTokensResponse"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"422":{"description":"DepositAddressChainsNotSupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressChainsNotSupported"},{"$ref":"#/components/schemas/DepositAddressNoBridgableTokens"},{"$ref":"#/components/schemas/DepositAddressTokenOutNotSupported"}]}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Get supported tokens between a deposit chain and a destination chain","deprecated":true}},"/deposit-addresses/search":{"get":{"tags":["depositAddresses"],"operationId":"depositAddresses.searchDepositAddress","parameters":[{"name":"addressNote","in":"query","schema":{"type":"string","description":"Optional note or label for the deposit address (max 80 characters).","title":"maxLength(80)","maxLength":80},"required":false,"description":"Optional note or label for the deposit address (max 80 characters)."},{"name":"depositChain","in":"query","schema":{"type":"string","description":"The blockchain network identifier where the deposit address is located.","title":"nonEmptyString","minLength":1},"required":false,"description":"The blockchain network identifier where the deposit address is located."},{"name":"destinationChain","in":"query","schema":{"type":"string","description":"The blockchain network identifier where bridged tokens will be sent.","title":"nonEmptyString","minLength":1},"required":false,"description":"The blockchain network identifier where bridged tokens will be sent."},{"name":"destinationAddress","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"The destination address where bridged tokens will be sent (optional)."},"required":false,"description":"The destination address where bridged tokens will be sent (optional)."},{"name":"pageToken","in":"query","schema":{"$ref":"#/components/schemas/NonEmptyString"},"required":false},{"name":"pageSize","in":"query","schema":{"type":"string","description":"a string to be decoded into a number"},"required":false,"description":"a string to be decoded into a number"}],"security":[{"bearer":[]},{"legacyApiKey":[]}],"responses":{"200":{"description":"SearchDepositAddressResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchDepositAddressResponse"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJwt"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"422":{"description":"InvalidRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequest"}}}}},"description":"Please use the identical endpoint under https://api.rhino.fi/sda. The sda endpoints here exist only for backwards compatibility and will be removed in the future. If you use the SDK, please upgrade to the latest version which uses the correct endpoint.","summary":"Search deposit addresses by different fields","deprecated":true}}},"components":{"schemas":{"BigDecimalFromString":{"type":"string","description":"a string to be decoded into a BigDecimal"},"BooleanFromString":{"type":"string","enum":["true","false"],"description":"a string to be decoded into a boolean"},"SingleBridgePublicQuoteResponseSchema":{"type":"object","required":["chainIn","chainOut","payAmount","payAmountUsd","receiveAmount","receiveAmountUsd","fees","token","_tag"],"properties":{"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"payAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"payAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"receiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"receiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"fees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","percentageFeeAmount","percentageFeeThreshold"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."},"percentageFeeAmount":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Calculated percentage fee amount (null if not applicable)."},"percentageFeeThreshold":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Threshold amount for percentage fee calculation (null if not applicable)."},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."}},"additionalProperties":false,"description":"Sponsored fees breakdown (optional)."}},"additionalProperties":false,"description":"Breakdown of all fees associated with the transaction."},"promotion":{"type":"object","required":["name","maxLimitUsd"],"properties":{"name":{"type":"string"},"maxLimitUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]}},"additionalProperties":false,"description":"Promotion details if applicable (optional)."},"gasBoost":{"type":"object","required":["amountNative","amountNativeUsd","amountNativeTokenCost"],"properties":{"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNativeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNativeTokenCost":{"$ref":"#/components/schemas/BigDecimalFromString"}},"additionalProperties":false,"description":"Gas amount to receive on the destination chain."},"speed":{"type":"string","enum":["fast","standard","slow"],"description":"Transaction speed (optional)."},"estimatedDuration":{"type":"number","description":"Estimated time for the transaction to complete in milliseconds (optional).","title":"nonNegative","minimum":0},"token":{"type":"string","description":"Token symbol or identifier being bridged."},"_tag":{"type":"string","enum":["bridge"]}},"additionalProperties":false},"BigDecimalFromNumber":{"type":"number","description":"a number to be decoded into a BigDecimal"},"BridgeSwapPublicQuoteResponseSchema":{"type":"object","required":["chainIn","chainOut","payAmount","payAmountUsd","receiveAmount","receiveAmountUsd","fees","tokenIn","tokenOut","bridgeToken","bridgePayAmount","bridgePayAmountUsd","bridgeReceiveAmount","minReceiveAmount","minReceiveAmountUsd","usdPriceTokenIn","usdPriceTokenOut","_tag"],"properties":{"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"payAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"payAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"receiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"receiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"fees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","percentageFeeAmount","percentageFeeThreshold"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."},"percentageFeeAmount":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Calculated percentage fee amount (null if not applicable)."},"percentageFeeThreshold":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Threshold amount for percentage fee calculation (null if not applicable)."},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."}},"additionalProperties":false,"description":"Sponsored fees breakdown (optional)."}},"additionalProperties":false,"description":"Breakdown of all fees associated with the transaction."},"promotion":{"type":"object","required":["name","maxLimitUsd"],"properties":{"name":{"type":"string"},"maxLimitUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]}},"additionalProperties":false,"description":"Promotion details if applicable (optional)."},"gasBoost":{"type":"object","required":["amountNative","amountNativeUsd","amountNativeTokenCost"],"properties":{"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNativeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNativeTokenCost":{"$ref":"#/components/schemas/BigDecimalFromString"}},"additionalProperties":false,"description":"Gas amount to receive on the destination chain."},"speed":{"type":"string","enum":["fast","standard","slow"],"description":"Transaction speed (optional)."},"estimatedDuration":{"type":"number","description":"Estimated time for the transaction to complete in milliseconds (optional).","title":"nonNegative","minimum":0},"tokenIn":{"type":"string","description":"Token symbol or identifier being sent from the source chain."},"tokenOut":{"type":"string","description":"Token symbol or identifier being received on the destination chain."},"bridgeToken":{"type":"string","description":"Intermediate token used for the bridge operation."},"bridgePayAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"bridgePayAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"bridgeReceiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"minReceiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"minReceiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"isAtomicSwap":{"type":"boolean","description":"Whether this is an atomic swap operation (optional)."},"_tag":{"type":"string","enum":["bridgeSwap"]}},"additionalProperties":false},"HttpApiDecodeError":{"type":"object","required":["issues","message","_tag"],"properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"message":{"type":"string"},"_tag":{"type":"string","enum":["HttpApiDecodeError"]}},"additionalProperties":false,"description":"The request did not match the expected schema"},"Issue":{"type":"object","required":["_tag","path","message"],"properties":{"_tag":{"type":"string","enum":["Pointer","Unexpected","Missing","Composite","Refinement","Transformation","Type","Forbidden"],"description":"The tag identifying the type of parse issue"},"path":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKey"},"description":"The path to the property where the issue occurred"},"message":{"type":"string","description":"A descriptive message explaining the issue"}},"additionalProperties":false,"description":"Represents an error encountered while parsing a value to match the schema"},"PropertyKey":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"object","required":["_tag","key"],"properties":{"_tag":{"type":"string","enum":["symbol"]},"key":{"type":"string"}},"additionalProperties":false,"description":"an object to be decoded into a globally shared symbol"}]},"InvalidRequest":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidRequest"]}},"additionalProperties":false},"GasBoostGreaterThanReceiveAmount":{"type":"object","required":["amountNativeTokenCost","receiveAmount","_tag"],"properties":{"amountNativeTokenCost":{"type":"string"},"receiveAmount":{"type":"string"},"_tag":{"type":"string","enum":["GasBoostGreaterThanReceiveAmount"]}},"additionalProperties":false},"NegativeReceiveAmount":{"type":"object","required":["receiveAmount","_tag"],"properties":{"receiveAmount":{"type":"string"},"_tag":{"type":"string","enum":["NegativeReceiveAmount"]}},"additionalProperties":false},"ExtendedPostBridgeData":{"type":"object","required":["_tag","vaultId"],"properties":{"_tag":{"type":"string","enum":["extended"]},"vaultId":{"$ref":"#/components/schemas/NonNegativeInt"}},"additionalProperties":false},"NonNegativeInt":{"type":"integer","description":"an integer","title":"int","minimum":0},"StarkwareBtcfiCampaignPostBridgeData":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["starkwarebtcfi"]}},"additionalProperties":false},"WirexWrapPostBridgeData":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["wirexwrap"]}},"additionalProperties":false},"WirexWrapSandboxPostBridgeData":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["wirexwrapsandbox"]}},"additionalProperties":false},"StarkwareBtcfiCampaignV2PostBridgeData":{"type":"object","required":["_tag","spans"],"properties":{"_tag":{"type":"string","enum":["starkwarebtcfiv2"]},"spans":{"type":"array","items":{"$ref":"#/components/schemas/StarknetFelt"},"description":"an array of at most 70 item(s)","title":"maxItems(70)","maxItems":70}},"additionalProperties":false},"StarknetFelt":{"type":"string","description":"a string that will be trimmed"},"AaveV3SupplyPostBridgeData":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["aavev3supply"]}},"additionalProperties":false},"RocketFoundationDepositPostBridgeData":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["rocketfoundationdeposit"]}},"additionalProperties":false},"MapleDepositPostBridgeData":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["mapledeposit"]}},"additionalProperties":false},"ConnectedSingleBridgeQuoteResponseSchema":{"type":"object","required":["_tag","chainIn","chainOut","payAmount","payAmountUsd","receiveAmount","receiveAmountUsd","fees","token","depositor","recipient","expiresAt","quoteId"],"properties":{"_tag":{"type":"string","enum":["bridge"]},"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"payAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"payAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"receiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"receiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"fees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","percentageFeeAmount","percentageFeeThreshold"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."},"percentageFeeAmount":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Calculated percentage fee amount (null if not applicable)."},"percentageFeeThreshold":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Threshold amount for percentage fee calculation (null if not applicable)."},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."}},"additionalProperties":false,"description":"Sponsored fees breakdown (optional)."}},"additionalProperties":false,"description":"Breakdown of all fees associated with the transaction."},"promotion":{"type":"object","required":["name","maxLimitUsd"],"properties":{"name":{"type":"string"},"maxLimitUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]}},"additionalProperties":false,"description":"Promotion details if applicable (optional)."},"gasBoost":{"type":"object","required":["amountNative","amountNativeUsd","amountNativeTokenCost"],"properties":{"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNativeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNativeTokenCost":{"$ref":"#/components/schemas/BigDecimalFromString"}},"additionalProperties":false,"description":"Gas amount to receive on the destination chain."},"speed":{"type":"string","enum":["fast","standard","slow"],"description":"Transaction speed (optional)."},"estimatedDuration":{"type":"number","description":"Estimated time for the transaction to complete in milliseconds (optional).","title":"nonNegative","minimum":0},"token":{"type":"string","description":"Token symbol or identifier being bridged."},"depositor":{"type":"string","description":"The address initiating the bridge transaction."},"recipient":{"type":"string","description":"The address to receive the bridged tokens."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}],"description":"Configuration for post-bridge actions (e.g., staking, lending). Must be omitted if your client does not have PBA enabled. See https://docs.rhino.fi/api-integration/smart-deposits#post-bridge-data for details."},"webhookUrl":{"type":"string","description":"Optional URL for webhook notifications when the bridge completes or fails."},"expiresAt":{"type":"string","description":"Timestamp when the quote expires and can no longer be committed."},"quoteId":{"type":"string","description":"Unique identifier for the committed quote."}},"additionalProperties":false},"ConnectedBridgeSwapQuoteResponseSchema":{"type":"object","required":["_tag","chainIn","chainOut","payAmount","payAmountUsd","receiveAmount","receiveAmountUsd","fees","tokenIn","tokenOut","bridgeToken","bridgePayAmount","bridgePayAmountUsd","bridgeReceiveAmount","minReceiveAmount","minReceiveAmountUsd","usdPriceTokenIn","usdPriceTokenOut","depositor","recipient","expiresAt","quoteId"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"payAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"payAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"receiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"receiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"fees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","percentageFeeAmount","percentageFeeThreshold"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."},"percentageFeeAmount":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Calculated percentage fee amount (null if not applicable)."},"percentageFeeThreshold":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Threshold amount for percentage fee calculation (null if not applicable)."},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."}},"additionalProperties":false,"description":"Sponsored fees breakdown (optional)."}},"additionalProperties":false,"description":"Breakdown of all fees associated with the transaction."},"promotion":{"type":"object","required":["name","maxLimitUsd"],"properties":{"name":{"type":"string"},"maxLimitUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]}},"additionalProperties":false,"description":"Promotion details if applicable (optional)."},"gasBoost":{"type":"object","required":["amountNative","amountNativeUsd","amountNativeTokenCost"],"properties":{"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNativeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNativeTokenCost":{"$ref":"#/components/schemas/BigDecimalFromString"}},"additionalProperties":false,"description":"Gas amount to receive on the destination chain."},"speed":{"type":"string","enum":["fast","standard","slow"],"description":"Transaction speed (optional)."},"estimatedDuration":{"type":"number","description":"Estimated time for the transaction to complete in milliseconds (optional).","title":"nonNegative","minimum":0},"tokenIn":{"type":"string","description":"Token symbol or identifier being sent from the source chain."},"tokenOut":{"type":"string","description":"Token symbol or identifier being received on the destination chain."},"bridgeToken":{"type":"string","description":"Intermediate token used for the bridge operation."},"bridgePayAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"bridgePayAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"bridgeReceiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"minReceiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"minReceiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"isAtomicSwap":{"type":"boolean","description":"Whether this is an atomic swap operation (optional)."},"depositor":{"type":"string","description":"The address initiating the bridge transaction."},"recipient":{"type":"string","description":"The address to receive the bridged tokens."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}],"description":"Configuration for post-bridge actions (e.g., staking, lending). Must be omitted if your client does not have PBA enabled. See https://docs.rhino.fi/api-integration/smart-deposits#post-bridge-data for details."},"webhookUrl":{"type":"string","description":"Optional URL for webhook notifications when the bridge completes or fails."},"expiresAt":{"type":"string","description":"Timestamp when the quote expires and can no longer be committed."},"quoteId":{"type":"string","description":"Unique identifier for the committed quote."}},"additionalProperties":false},"ConnectedDepositAddressBridgeQuoteResponseSchema":{"type":"object","required":["_tag","chainIn","chainOut","payAmount","payAmountUsd","receiveAmount","receiveAmountUsd","fees","token","depositor","recipient","expiresAt","quoteId"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"chainIn":{"type":"string","description":"The source chain ID"},"chainOut":{"type":"string","description":"The target chain ID"},"payAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"payAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"receiveAmount":{"$ref":"#/components/schemas/BigDecimalFromString"},"receiveAmountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"fees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","percentageFeeAmount","percentageFeeThreshold"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."},"percentageFeeAmount":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Calculated percentage fee amount (null if not applicable)."},"percentageFeeThreshold":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}],"description":"Threshold amount for percentage fee calculation (null if not applicable)."},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","sourceGasFee","sourceGasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd"],"properties":{"fee":{"type":"string","description":"Total fee amount in token units."},"feeUsd":{"type":"number","description":"Total fee amount in USD."},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"type":"string","description":"Platform fee amount in token units."},"platformFeeUsd":{"type":"number","description":"Platform fee amount in USD."},"percentageFee":{"type":"string","description":"Percentage-based fee amount in token units."},"percentageFeeUsd":{"type":"number","description":"Percentage-based fee amount in USD."}},"additionalProperties":false,"description":"Sponsored fees breakdown (optional)."}},"additionalProperties":false,"description":"Breakdown of all fees associated with the transaction."},"promotion":{"type":"object","required":["name","maxLimitUsd"],"properties":{"name":{"type":"string"},"maxLimitUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]}},"additionalProperties":false,"description":"Promotion details if applicable (optional)."},"gasBoost":{"type":"object","required":["amountNative","amountNativeUsd","amountNativeTokenCost"],"properties":{"amountNative":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountNativeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNativeTokenCost":{"$ref":"#/components/schemas/BigDecimalFromString"}},"additionalProperties":false,"description":"Gas amount to receive on the destination chain."},"speed":{"type":"string","enum":["fast","standard","slow"],"description":"Transaction speed (optional)."},"estimatedDuration":{"type":"number","description":"Estimated time for the transaction to complete in milliseconds (optional).","title":"nonNegative","minimum":0},"token":{"type":"string"},"depositor":{"type":"string","description":"The address initiating the bridge transaction."},"recipient":{"type":"string","description":"The address to receive the bridged tokens."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}],"description":"Configuration for post-bridge actions (e.g., staking, lending). Must be omitted if your client does not have PBA enabled. See https://docs.rhino.fi/api-integration/smart-deposits#post-bridge-data for details."},"webhookUrl":{"type":"string","description":"Optional URL for webhook notifications when the bridge completes or fails."},"expiresAt":{"type":"string","description":"Timestamp when the quote expires and can no longer be committed."},"quoteId":{"type":"string","description":"Unique identifier for the committed quote."}},"additionalProperties":false},"InvalidJwt":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidJwt"]}},"additionalProperties":false},"WithdrawLimitReached":{"type":"object","required":["token","chain","receiveAmount","maxWithdrawAmount","_tag"],"properties":{"token":{"type":"string"},"chain":{"type":"string"},"receiveAmount":{"$ref":"#/components/schemas/BigDecimal"},"maxWithdrawAmount":{"$ref":"#/components/schemas/BigDecimal"},"_tag":{"type":"string","enum":["WithdrawLimitReached"]}},"additionalProperties":false},"BigDecimal":{"type":"string","description":"a string to be decoded into a BigDecimal"},"DepositLimitReached":{"type":"object","required":["token","chain","payAmount","maxDepositAmount","_tag"],"properties":{"token":{"type":"string"},"chain":{"type":"string"},"payAmount":{"$ref":"#/components/schemas/BigDecimal"},"maxDepositAmount":{"$ref":"#/components/schemas/BigDecimal"},"payAmountUsd":{"$ref":"#/components/schemas/BigDecimal"},"maxDepositAmountUsd":{"$ref":"#/components/schemas/BigDecimal"},"_tag":{"type":"string","enum":["DepositLimitReached"]}},"additionalProperties":false},"Unauthorized":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["Unauthorized"]}},"additionalProperties":false},"QuoteNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["QuoteNotFound"]}},"additionalProperties":false},"TooManyRequests":{"type":"object","required":["message","retryAfter","_tag"],"properties":{"message":{"type":"string"},"retryAfter":{"type":"number"},"_tag":{"type":"string","enum":["TooManyRequests"]}},"additionalProperties":false},"NoCommonBridgeTokensError":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["NoCommonBridgeTokensError"]}},"additionalProperties":false},"NoBridgeTokenFoundError":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["NoBridgeTokenFoundError"]}},"additionalProperties":false},"SameChainSwapNotAvailable":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["SameChainSwapNotAvailable"]}},"additionalProperties":false},"NoRouteFoundError":{"type":"object","required":["tokenIn","tokenOut","chainIn","chainOut","_tag"],"properties":{"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"_tag":{"type":"string","enum":["NoRouteFoundError"]}},"additionalProperties":false},"BridgeConfigEntrySchema":{"type":"object","required":["name","type","networkId","contractAddress","confirmationBlocks","avgBlockTime","nativeTokenName","nativeTokenDecimals","nativeTokenSafeguard","blockExplorer","rpc","site","status","tokens","gasBoostEnabled","enabledDepositAddress"],"properties":{"name":{"type":"string","description":"Human-readable name of the blockchain network."},"type":{"type":"string","description":"Type of the blockchain network (e.g., \"evm\", \"starknet\").","title":"nonEmptyString","minLength":1},"networkId":{"type":"string","description":"Unique identifier for the network."},"contractAddress":{"type":"string","description":"Address of the main bridge contract on this network."},"multicallContractAddress":{"type":"string","description":"Address of the multicall contract for batching calls."},"confirmationBlocks":{"type":"number","description":"Number of blocks required for transaction confirmation."},"avgBlockTime":{"type":"number","description":"Average time in seconds between blocks on this network."},"nativeTokenName":{"type":"string","description":"Name of the native token on this network (e.g., \"ETH\", \"STRK\")."},"nativeTokenDecimals":{"type":"number","description":"Number of decimal places for the native token."},"nativeTokenSafeguard":{"type":"number","description":"Minimum amount of native token to keep as safeguard."},"gasMultiplier":{"type":"number","description":"Multiplier applied to gas estimates for safety (optional)."},"blockExplorer":{"type":"string","description":"URL of the block explorer for this network."},"rpc":{"type":"string","description":"RPC endpoint URL for connecting to the network."},"site":{"type":"string","description":"Official website URL for the network."},"status":{"type":"string","enum":["enabled","disabled"],"description":"Current status of the network integration."},"statusReason":{"type":"string","description":"Reason for the current status if disabled (optional)."},"tokens":{"type":"object","required":[],"properties":{},"additionalProperties":{"$ref":"#/components/schemas/BridgeTokenEntry"},"description":"Configuration for tokens supported on this network."},"badge":{"allOf":[{"$ref":"#/components/schemas/BridgeBadge"}],"description":"Visual badge/category for the network (optional)."},"category":{"type":"string","enum":["experimental","popular"],"description":"Category classification of the network (optional)."},"paradexSignerChainId":{"type":"string","description":"ChainId for the Paradex chain's signature (optional)."},"gasBoostEnabled":{"type":"boolean","description":"Whether gas boost feature is enabled for this network."},"enabledDepositAddress":{"type":"boolean","description":"Whether deposit addresses are enabled for this network."},"sameChainSwapsAddress":{"type":"string","description":"Address for same-chain swap functionality (optional)."},"executionChain":{"type":"string","description":"Identifier for the execution chain if different from main chain (optional)."}},"additionalProperties":false},"BridgeTokenEntry":{"type":"object","required":["token","address","decimals"],"properties":{"token":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"},"maxDepositLimit":{"type":"number"},"maxWithdrawLimit":{"type":"number"},"minAmountUsdInContract":{"type":"number"}},"additionalProperties":false},"BridgeBadge":{"type":"object","required":["type","translationKey"],"properties":{"type":{"type":"string","enum":["new","hot","campaign","achievement","free","airdrop","optimistic","launch"]},"translationKey":{"type":"string","enum":["airdrop","free_gas","memes","hot","new"]}},"additionalProperties":false},"ExtendedTokenEntry":{"type":"object","required":["decimals","coingeckoId","token","address","chain"],"properties":{"decimals":{"type":"number"},"coingeckoId":{"type":"string"},"maxDepositLimit":{"type":"number","description":"Maximum deposit limit for the token on this chain."},"maxWithdrawLimit":{"type":"number","description":"Maximum withdraw limit for the token on this chain."},"minAmountUsdInContract":{"type":"number","description":"Minimum USD amount required in the contract for this token on this chain."},"token":{"type":"string","description":"Token symbol or identifier (e.g., \"USDT\", \"ETH\")."},"address":{"type":"string","description":"Contract address of the token on the specified chain."},"chain":{"type":"string","description":"Blockchain network identifier (e.g., \"ETHEREUM\", \"BASE\")."}},"additionalProperties":false},"InvalidTokenForChain":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidTokenForChain"]}},"additionalProperties":false},"InvalidToken":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidToken"]}},"additionalProperties":false},"TokenConfigResponseSchema":{"type":"object","required":["chain","tokenAddress","name","symbol","decimals","iconUrl","aggregators","status"],"properties":{"chain":{"type":"string","description":"Blockchain network identifier (e.g., \"ethereum\", \"polygon\")."},"tokenAddress":{"type":"string","description":"Contract address of the token on the specified chain."},"name":{"type":"string","description":"Human-readable name of the token."},"symbol":{"type":"string","description":"Token symbol (e.g., \"USDT\", \"ETH\")."},"decimals":{"type":"number","description":"Number of decimal places the token uses.","title":"finite"},"iconUrl":{"type":"string","description":"URL to the token icon image."},"aggregators":{"type":"array","items":{"$comment":"/schemas/enums","anyOf":[{"type":"string","title":"KYBERSWAP","enum":["KYBERSWAP"]},{"type":"string","title":"RHINO","enum":["RHINO"]},{"type":"string","title":"ONEINCH","enum":["ONEINCH"]},{"type":"string","title":"BEBOP","enum":["BEBOP"]}]},"description":"List of swap aggregators that support this token."},"status":{"$ref":"#/components/schemas/StatusSchema"},"coingeckoId":{"type":"string","description":"CoinGecko identifier for price data (optional)."},"marketCap":{"allOf":[{"$ref":"#/components/schemas/JsonNumber"}],"description":"Market capitalization in USD (optional)."},"inactive":{"type":"boolean","description":"Whether the token is currently inactive (optional)."}},"additionalProperties":false},"StatusSchema":{"type":"object","required":["state","reason"],"properties":{"state":{"$comment":"/schemas/enums","anyOf":[{"type":"string","title":"PENDING_REVIEW","enum":["PENDING_REVIEW"]},{"type":"string","title":"LISTED","enum":["LISTED"]},{"type":"string","title":"NOT_LISTED","enum":["NOT_LISTED"]},{"type":"string","title":"BLACKLISTED","enum":["BLACKLISTED"]},{"type":"string","title":"DELISTED","enum":["DELISTED"]}],"description":"Current status state of the token listing."},"reason":{"type":"array","items":{"$comment":"/schemas/enums","anyOf":[{"type":"string","title":"MANUAL","enum":["MANUAL"]},{"type":"string","title":"CONFIG_SYNC","enum":["CONFIG_SYNC"]},{"type":"string","title":"LISTED_FOR_OTHER_CHAIN","enum":["LISTED_FOR_OTHER_CHAIN"]},{"type":"string","title":"INVALID_DECIMALS","enum":["INVALID_DECIMALS"]},{"type":"string","title":"UNKNOWN_QUANTIZATION","enum":["UNKNOWN_QUANTIZATION"]},{"type":"string","title":"NO_MARKET_CAP","enum":["NO_MARKET_CAP"]},{"type":"string","title":"NO_LIQUIDITY","enum":["NO_LIQUIDITY"]},{"type":"string","title":"CATEGORY_BLACKLIST","enum":["CATEGORY_BLACKLIST"]},{"type":"string","title":"NO_COINGECKO_DATA","enum":["NO_COINGECKO_DATA"]}]},"description":"Reasons for the current status state."}},"additionalProperties":false,"description":"Current listing status and reason for the token."},"JsonNumber":{"type":"number","description":"a finite number","title":"finite"},"DateFromString":{"type":"string","description":"a string to be decoded into a Date"},"BridgeSwapPending":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},"SwapQuote":{"type":"object","required":["tokenIn","tokenOut","amountIn","amountInUsd","amountOut","amountOutUsd","minAmountOut","minAmountOutUsd","aggregator"],"properties":{"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"aggregator":{"$comment":"/schemas/enums","anyOf":[{"type":"string","title":"KYBERSWAP","enum":["KYBERSWAP"]},{"type":"string","title":"RHINO","enum":["RHINO"]},{"type":"string","title":"ONEINCH","enum":["ONEINCH"]},{"type":"string","title":"BEBOP","enum":["BEBOP"]}]}},"additionalProperties":false},"DepositAddressBridgePending":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","state"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"tokenOut":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"depositAddress":{"type":"string"},"state":{"type":"string","enum":["PENDING"]}},"additionalProperties":false},"Int":{"type":"integer","description":"an integer","title":"int"},"BridgeSwapPendingConfirmation":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},"DepositAddressBridgePendingConfirmation":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositDiscoveredAt","expectedDepositConfirmedAt","expectedDepositConfirmedAtBlock","state"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"tokenOut":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"depositAddress":{"type":"string"},"depositTxHash":{"type":"string"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"state":{"type":"string","enum":["PENDING_CONFIRMATION"]}},"additionalProperties":false},"BridgeSwapCancelled":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","cancelledAt","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"cancelledAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["CANCELLED"]}},"additionalProperties":false},"BridgeSwapFailed":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"state":{"type":"string","enum":["SWAP_FAILED"]}},"additionalProperties":false},"DepositAddressBridgeFailed":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","failedAt","state"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"tokenOut":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"depositAddress":{"type":"string"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"failedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["FAILED"]}},"additionalProperties":false},"BridgeSwapDepositAccepted":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","depositTxHash","depositCommittedAt","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},"DepositAddressBridgeDepositAccepted":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"tokenOut":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"depositAddress":{"type":"string"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["DEPOSIT_ACCEPTED"]}},"additionalProperties":false},"BridgeSwapAccepted":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","depositTxHash","depositCommittedAt","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},"DepositAddressBridgeAccepted":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositTxHash","depositCommittedAt","state"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"tokenOut":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"depositAddress":{"type":"string"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"state":{"type":"string","enum":["ACCEPTED"]}},"additionalProperties":false},"DepositAddressBridgeExecuted":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","token","usdPrice","depositAddress","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_tag":{"type":"string","enum":["depositAddressBridge"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"token":{"type":"string"},"tokenOut":{"type":"string"},"usdPrice":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"depositAddress":{"type":"string"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},"NonEmptyString":{"type":"string","description":"a non empty string","title":"nonEmptyString","minLength":1},"BridgeSwapExecuted":{"type":"object","required":["_tag","_id","userId","chainIn","chainOut","amountIn","amountInUsd","amountOut","amountOutUsd","amountNative","amountNativeUsd","fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd","sponsoredFees","recipient","depositor","createdAt","commitmentDate","tokenIn","tokenOut","minAmountOut","minAmountOutUsd","usdPriceTokenIn","usdPriceTokenOut","depositTxHash","depositCommittedAt","withdrawTxHash","withdrawCommittedAt","state"],"properties":{"_tag":{"type":"string","enum":["bridgeSwap"]},"_id":{"type":"string"},"userId":{"type":"string"},"chainIn":{"type":"string"},"chainOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountInUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"amountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountNative":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromString"},{"type":"null"}]},"amountNativeUsd":{"anyOf":[{"$ref":"#/components/schemas/BigDecimalFromNumber"},{"type":"null"}]},"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sponsoredFees":{"type":"object","required":["fee","feeUsd","gasFee","gasFeeUsd","platformFee","platformFeeUsd","percentageFee","percentageFeeUsd","sourceGasFee","sourceGasFeeUsd"],"properties":{"fee":{"$ref":"#/components/schemas/BigDecimal"},"feeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"gasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"gasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"platformFee":{"$ref":"#/components/schemas/BigDecimal"},"platformFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"percentageFee":{"$ref":"#/components/schemas/BigDecimal"},"percentageFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"sourceGasFee":{"$ref":"#/components/schemas/BigDecimalFromString"},"sourceGasFeeUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"}},"additionalProperties":false},"recipient":{"type":"string"},"depositor":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"},"commitmentDate":{"$ref":"#/components/schemas/DateFromString"},"speed":{"type":"string","enum":["fast","standard","slow"]},"estimatedDuration":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"additionalSteps":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","txHash","chain","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoWithdrawalToKarnot"]},"txHash":{"type":"string"},"chain":{"type":"string"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false},{"type":"object","required":["_tag","chainIn","chainInExecutionChain","chainOut","depositTxHash","claimTxHash","gasCost","gasCostUsd","createdAt"],"properties":{"_tag":{"type":"string","enum":["RhinoDepositFromKarnot"]},"chainIn":{"type":"string"},"chainInExecutionChain":{"type":"string"},"chainOut":{"type":"string"},"depositTxHash":{"type":"string"},"claimTxHash":{"type":"string"},"gasCost":{"$ref":"#/components/schemas/BigDecimal"},"gasCostUsd":{"$ref":"#/components/schemas/BigDecimal"},"createdAt":{"$ref":"#/components/schemas/DateFromString"}},"additionalProperties":false}]}},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"minAmountOut":{"$ref":"#/components/schemas/BigDecimalFromString"},"minAmountOutUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenIn":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"usdPriceTokenOut":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"preSwap":{"$ref":"#/components/schemas/SwapQuote"},"postSwap":{"$ref":"#/components/schemas/SwapQuote"},"depositTxHash":{"type":"string"},"depositCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"depositDiscoveredAt":{"$ref":"#/components/schemas/DateFromString"},"depositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAt":{"$ref":"#/components/schemas/DateFromString"},"expectedDepositConfirmedAtBlock":{"$ref":"#/components/schemas/Int"},"preSwapTxHash":{"type":"string"},"preSwapCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"isConfirmed":{"type":"boolean"},"withdrawTxHash":{"type":"string"},"withdrawCommittedAt":{"$ref":"#/components/schemas/DateFromString"},"state":{"type":"string","enum":["EXECUTED"]}},"additionalProperties":false},"HistoryNotFound":{"type":"object","required":["_id","_tag"],"properties":{"_id":{"type":"string"},"_tag":{"type":"string","enum":["HistoryNotFound"]}},"additionalProperties":false},"BridgeNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["BridgeNotFound"]}},"additionalProperties":false},"CannotCancelBridge":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["CannotCancelBridge"]}},"additionalProperties":false},"SwapCalldataResponse":{"type":"object","required":["calldata"],"properties":{"calldata":{"type":"string","description":"Hex-encoded calldata for executing the swap transaction."}},"additionalProperties":false},"CommitmentNotFoundError":{"type":"object","required":["_id","_tag"],"properties":{"_id":{"type":"string"},"_tag":{"type":"string","enum":["CommitmentNotFoundError"]}},"additionalProperties":false},"TokenNotFoundError":{"type":"object","required":["chain","symbol","_tag"],"properties":{"chain":{"type":"string"},"symbol":{"type":"string"},"_tag":{"type":"string","enum":["TokenNotFoundError"]}},"additionalProperties":false},"InvalidCommitmentTypeError":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidCommitmentTypeError"]}},"additionalProperties":false},"CreateDepositAddressPayload":{"type":"object","required":["depositChains","destinationChain","destinationAddress"],"properties":{"depositChains":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/NonEmptyString"},"description":"Array of blockchain chain identifiers where deposit addresses should be created (e.g., [\"ETHEREUM\", \"ARBITRUM\"])."},"addressNote":{"type":"string","description":"Optional note or label for the deposit address (max 80 characters).","title":"maxLength(80)","maxLength":80},"reusePolicy":{"type":"string","enum":["create-new","reuse-existing"],"description":"Whether to reuse an existing deposit address that matches the given parameters or always create a new one. By default an existing address is reused unless create-new is specified."},"webhookUrl":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Optional URL for webhook notifications when deposits are processed."},"refundAddress":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Optional address for refunds in case of processing failures."},"destinationChain":{"type":"string","description":"The blockchain chain identifier for the destination address (e.g., \"BASE\").","title":"nonEmptyString","minLength":1},"destinationAddress":{"type":"string","description":"The blockchain address where bridged tokens will be sent.","title":"nonEmptyString","minLength":1},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}],"description":"Optional configuration for post-bridge actions (e.g., staking, lending). Must be omitted if your client does not have PBA enabled. See https://docs.rhino.fi/api-integration/smart-deposits#post-bridge-data for details."},"tokenOut":{"type":"string","description":"Token to be received on the destination address. The deposited token will be swapped automatically if needed.","title":"nonEmptyString","minLength":1},"bridgeIfNotSwappable":{"type":"boolean","description":"Only valid if tokenOut is set as well. If true, deposited tokens that cannot be swapped to the tokenOut will be bridged instead of causing a failed bridge.."}},"additionalProperties":false},"DepositAddress":{"type":"object","required":["depositChain","depositAddress","destinationChain","supportedTokens","isActive"],"properties":{"depositChain":{"type":"string","description":"The blockchain network identifier where the deposit address is located.","title":"nonEmptyString","minLength":1},"depositAddress":{"type":"string","description":"The generated deposit address where users should send tokens.","title":"nonEmptyString","minLength":1},"destinationChain":{"type":"string","description":"The blockchain network identifier where bridged tokens will be sent.","title":"nonEmptyString","minLength":1},"destinationAddress":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"The destination address where bridged tokens will be sent (optional)."},"addressNote":{"type":"string","description":"Optional note or label for the deposit address (max 80 characters).","title":"maxLength(80)","maxLength":80},"supportedTokens":{"type":"array","items":{"type":"object","required":["symbol","address","maxDepositLimitUsd","minDepositLimitUsd"],"properties":{"symbol":{"type":"string","description":"Token symbol (e.g., \"ETH\", \"USDC\").","title":"nonEmptyString","minLength":1},"address":{"type":"string","description":"Token contract address on the deposit chain.","title":"nonEmptyString","minLength":1},"maxDepositLimitUsd":{"type":"number","description":"Maximum deposit amount in USD for this token.","title":"nonNegative","minimum":0},"minDepositLimitUsd":{"type":"number","description":"Minimum deposit amount in USD for this token.","title":"nonNegative","minimum":0}},"additionalProperties":false},"description":"List of tokens that can be deposited to this address."},"isActive":{"type":"boolean","description":"Whether this deposit address is currently active and accepting deposits."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}],"description":"Optional configuration for post-bridge actions (e.g., staking, lending). Must be omitted if your client does not have PBA enabled. See https://docs.rhino.fi/api-integration/smart-deposits#post-bridge-data for details."},"tokenOut":{"type":"string","description":"Optional token to receive after bridging (for token swaps)."},"refundAddress":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Optional address for refunds if bridging fails."},"bridgeIfNotSwappable":{"type":"boolean","description":"Whether to bridge tokens even if they cannot be swapped (optional)."}},"additionalProperties":false},"DepositAddressChainsNotSupported":{"type":"object","required":["chains","_tag"],"properties":{"chains":{"type":"array","items":{"$ref":"#/components/schemas/NonEmptyString"}},"_tag":{"type":"string","enum":["DepositAddressChainsNotSupported"]}},"additionalProperties":false},"DepositAddressInvalidDestinationAddress":{"type":"object","required":["chain","address","_tag"],"properties":{"chain":{"$ref":"#/components/schemas/NonEmptyString"},"address":{"$ref":"#/components/schemas/NonEmptyString"},"_tag":{"type":"string","enum":["DepositAddressInvalidDestinationAddress"]}},"additionalProperties":false},"DepositAddressMultipleChainTypesNotAllowed":{"type":"object","required":["chainTypes","_tag"],"properties":{"chainTypes":{"type":"array","items":{"$ref":"#/components/schemas/NonEmptyString"}},"_tag":{"type":"string","enum":["DepositAddressMultipleChainTypesNotAllowed"]}},"additionalProperties":false},"DepositAddressNoBridgableTokens":{"type":"object","required":["from","to","_tag"],"properties":{"from":{"$ref":"#/components/schemas/NonEmptyString"},"to":{"$ref":"#/components/schemas/NonEmptyString"},"_tag":{"type":"string","enum":["DepositAddressNoBridgableTokens"]}},"additionalProperties":false},"DepositAddressTokenOutNotSupported":{"type":"object","required":["tokenOut","_tag"],"properties":{"tokenOut":{"type":"string"},"_tag":{"type":"string","enum":["DepositAddressTokenOutNotSupported"]}},"additionalProperties":false},"DepositAddressInvalidPostBridgeData":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["DepositAddressInvalidPostBridgeData"]}},"additionalProperties":false},"DepositAddressInvalidRefundAddress":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["DepositAddressInvalidRefundAddress"]}},"additionalProperties":false},"EndpointDisabledError":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["EndpointDisabledError"]}},"additionalProperties":false},"DepositAddressRateLimitExceeded":{"type":"object","required":["message","limit","_tag"],"properties":{"message":{"$ref":"#/components/schemas/NonEmptyString"},"limit":{"anyOf":[{"$ref":"#/components/schemas/CountLimitExceeded"},{"$ref":"#/components/schemas/WindowLimitExceeded"}]},"_tag":{"type":"string","enum":["DepositAddressRateLimitExceeded"]}},"additionalProperties":false},"CountLimitExceeded":{"type":"object","required":["allowed","current","_tag"],"properties":{"allowed":{"$ref":"#/components/schemas/NonNegativeInt"},"current":{"$ref":"#/components/schemas/NonNegativeInt"},"_tag":{"type":"string","enum":["CountLimitExceeded"]}},"additionalProperties":false},"WindowLimitExceeded":{"type":"object","required":["allowed","current","durationMs","_tag"],"properties":{"allowed":{"$ref":"#/components/schemas/NonNegativeInt"},"current":{"$ref":"#/components/schemas/NonNegativeInt"},"durationMs":{"$ref":"#/components/schemas/DurationFromMillis"},"_tag":{"type":"string","enum":["WindowLimitExceeded"]}},"additionalProperties":false},"DurationFromMillis":{"type":"number","description":"a non-negative number to be decoded into a Duration","title":"nonNegative","minimum":0},"EthAddressSchema":{"type":"string","description":"a string that will be trimmed"},"TronAddressBasic":{"type":"string","description":"Tron basic address format","pattern":"T[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+","title":"maxLength(60)","maxLength":60},"SolanaAddress":{"type":"string"},"DepositAddressAlreadyActive":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["DepositAddressAlreadyActive"]}},"additionalProperties":false},"DepositAddressNotFound":{"type":"object","required":["message","addresses","_tag"],"properties":{"message":{"type":"string"},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/NonEmptyString"}},"_tag":{"type":"string","enum":["DepositAddressNotFound"]}},"additionalProperties":false},"DepositAddressStatusResponse":{"type":"object","required":["depositChain","depositAddress","destinationChain","supportedTokens","isActive"],"properties":{"depositChain":{"type":"string","description":"The blockchain network identifier where the deposit address is located.","title":"nonEmptyString","minLength":1},"depositAddress":{"type":"string","description":"The generated deposit address where users should send tokens.","title":"nonEmptyString","minLength":1},"destinationChain":{"type":"string","description":"The blockchain network identifier where bridged tokens will be sent.","title":"nonEmptyString","minLength":1},"destinationAddress":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"The destination address where bridged tokens will be sent (optional)."},"addressNote":{"type":"string","description":"Optional note or label for the deposit address (max 80 characters).","title":"maxLength(80)","maxLength":80},"supportedTokens":{"type":"array","items":{"type":"object","required":["symbol","address","maxDepositLimitUsd","minDepositLimitUsd"],"properties":{"symbol":{"type":"string","description":"Token symbol (e.g., \"ETH\", \"USDC\").","title":"nonEmptyString","minLength":1},"address":{"type":"string","description":"Token contract address on the deposit chain.","title":"nonEmptyString","minLength":1},"maxDepositLimitUsd":{"type":"number","description":"Maximum deposit amount in USD for this token.","title":"nonNegative","minimum":0},"minDepositLimitUsd":{"type":"number","description":"Minimum deposit amount in USD for this token.","title":"nonNegative","minimum":0}},"additionalProperties":false},"description":"List of tokens that can be deposited to this address."},"isActive":{"type":"boolean","description":"Whether this deposit address is currently active and accepting deposits."},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}],"description":"Optional configuration for post-bridge actions (e.g., staking, lending). Must be omitted if your client does not have PBA enabled. See https://docs.rhino.fi/api-integration/smart-deposits#post-bridge-data for details."},"tokenOut":{"type":"string","description":"Optional token to receive after bridging (for token swaps)."},"refundAddress":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Optional address for refunds if bridging fails."},"bridgeIfNotSwappable":{"type":"boolean","description":"Whether to bridge tokens even if they cannot be swapped (optional)."}},"additionalProperties":false},"from":{"type":"string","description":"Start date for the history query, in milliseconds since epoch or Date.parse compatible string. Optional, defaults to 7 days ago. Max window is 31 days"},"DepositAddressHistoryResponse":{"type":"object","required":["depositAddress","depositChain","bridges"],"properties":{"depositAddress":{"type":"string","description":"The deposit address for which history is being retrieved.","title":"nonEmptyString","minLength":1},"depositChain":{"type":"string","description":"The blockchain network identifier of the deposit address.","title":"nonEmptyString","minLength":1},"bridges":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressBridgeFailedApi"},{"$ref":"#/components/schemas/DepositAddressBridgeRejectedApi"},{"$ref":"#/components/schemas/DepositAddressBridgeAcceptedApi"}]},"description":"Array of bridge transactions associated with this deposit address, including accepted, failed, and rejected transactions."}},"additionalProperties":false},"DepositAddressBridgeFailedApi":{"type":"object","required":["_id","tokenSymbol","tokenAddress","amount","amountUsd","amountWei","sender","txHash","createdAt","_tag"],"properties":{"_id":{"$ref":"#/components/schemas/NonEmptyString"},"tokenSymbol":{"$ref":"#/components/schemas/NonEmptyString"},"tokenAddress":{"$ref":"#/components/schemas/NonEmptyString"},"amount":{"$ref":"#/components/schemas/AmountWithDecimals"},"amountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountWei":{"$ref":"#/components/schemas/BigInt"},"sender":{"$ref":"#/components/schemas/NonEmptyString"},"txHash":{"$ref":"#/components/schemas/NonEmptyString"},"originalErrorTag":{"$ref":"#/components/schemas/NonEmptyString"},"createdAt":{"$ref":"#/components/schemas/DateTimeUtc"},"_tag":{"type":"string","enum":["failed"]}},"additionalProperties":false},"AmountWithDecimals":{"type":"string","description":"A value representing the human readable, normalized transaction amount or balance"},"BigInt":{"type":"string","description":"a string to be decoded into a bigint"},"DateTimeUtc":{"type":"string","description":"a string to be decoded into a DateTime.Utc"},"DepositAddressBridgeRejectedApi":{"type":"object","required":["_id","tokenSymbol","tokenAddress","amount","amountUsd","amountWei","sender","txHash","reason","txUid","createdAt","_tag"],"properties":{"_id":{"$ref":"#/components/schemas/NonEmptyString"},"tokenSymbol":{"$ref":"#/components/schemas/NonEmptyString"},"tokenAddress":{"$ref":"#/components/schemas/NonEmptyString"},"amount":{"$ref":"#/components/schemas/AmountWithDecimals"},"amountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountWei":{"$ref":"#/components/schemas/BigInt"},"sender":{"type":"string"},"txHash":{"type":"string"},"originalErrorTag":{"$ref":"#/components/schemas/NonEmptyString"},"reason":{"type":"string","enum":["OVER_MAX","UNDER_MIN","OPERATION_UNAVAILABLE","TERMINAL_PROCESSING_ISSUE","NO_ROUTE_FOUND","UNSUPPORTED_TOKEN"]},"txUid":{"$ref":"#/components/schemas/NonEmptyString"},"createdAt":{"$ref":"#/components/schemas/DateTimeUtc"},"blockNumber":{"$ref":"#/components/schemas/NonNegativeInt"},"_tag":{"type":"string","enum":["rejected"]}},"additionalProperties":false},"DepositAddressBridgeAcceptedApi":{"type":"object","required":["_id","tokenSymbol","tokenAddress","amount","amountUsd","amountWei","sender","txHash","history","createdAt","_tag"],"properties":{"_id":{"$ref":"#/components/schemas/NonEmptyString"},"tokenSymbol":{"$ref":"#/components/schemas/NonEmptyString"},"tokenAddress":{"$ref":"#/components/schemas/NonEmptyString"},"amount":{"$ref":"#/components/schemas/AmountWithDecimals"},"amountUsd":{"$ref":"#/components/schemas/BigDecimalFromNumber"},"amountWei":{"$ref":"#/components/schemas/BigInt"},"sender":{"$ref":"#/components/schemas/NonEmptyString"},"txHash":{"$ref":"#/components/schemas/NonEmptyString"},"history":{"anyOf":[{"$ref":"#/components/schemas/DepositAddressBridgePending"},{"$ref":"#/components/schemas/DepositAddressBridgePendingConfirmation"},{"$ref":"#/components/schemas/DepositAddressBridgeFailed"},{"$ref":"#/components/schemas/DepositAddressBridgeDepositAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeAccepted"},{"$ref":"#/components/schemas/DepositAddressBridgeExecuted"}]},"createdAt":{"$ref":"#/components/schemas/DateTimeUtc"},"_tag":{"type":"string","enum":["accepted"]}},"additionalProperties":false},"InvalidDateRange":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidDateRange"]}},"additionalProperties":false},"PublicDepositAddressStatusResponse":{"type":"object","required":["depositAddress","depositChain","destinationChain","destinationAddress","lastBridges"],"properties":{"depositAddress":{"type":"string","description":"The deposit address being queried."},"depositChain":{"type":"string","description":"The blockchain network of the deposit address."},"destinationChain":{"type":"string","description":"The destination blockchain network for bridged tokens."},"destinationAddress":{"type":"string","description":"The destination address for bridged tokens."},"lastBridges":{"type":"array","items":{"$ref":"#/components/schemas/PublicDepositAddressStatusBridge"},"description":"Recent bridge transactions for this deposit address."}},"additionalProperties":false},"PublicDepositAddressStatusBridge":{"type":"object","required":["depositTxHash","depositTxTimestamp","tokenSymbol","depositAmount","sender","status"],"properties":{"depositTxHash":{"type":"string"},"depositTxTimestamp":{"$ref":"#/components/schemas/DateTimeUtc"},"tokenSymbol":{"type":"string"},"depositAmount":{"$ref":"#/components/schemas/AmountWithDecimals"},"sender":{"type":"string"},"status":{"anyOf":[{"type":"object","required":["_tag","reason"],"properties":{"_tag":{"type":"string","enum":["REJECTED"]},"reason":{"type":"string","enum":["OVER_MAX","UNDER_MIN","OPERATION_UNAVAILABLE","TERMINAL_PROCESSING_ISSUE","NO_ROUTE_FOUND","UNSUPPORTED_TOKEN"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["RETRYING"]},"originalErrorTag":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","amountOut","fee"],"properties":{"_tag":{"type":"string","enum":["ACCEPTED"]},"amountOut":{"$ref":"#/components/schemas/AmountWithDecimals"},"fee":{"$ref":"#/components/schemas/AmountWithDecimals"}},"additionalProperties":false},{"type":"object","required":["_tag","withdrawTxHash","withdrawTxTimestamp","amountOut","fee"],"properties":{"_tag":{"type":"string","enum":["EXECUTED"]},"withdrawTxHash":{"type":"string"},"withdrawTxTimestamp":{"$ref":"#/components/schemas/DateTimeUtc"},"amountOut":{"$ref":"#/components/schemas/AmountWithDecimals"},"fee":{"$ref":"#/components/schemas/AmountWithDecimals"}},"additionalProperties":false}]}},"additionalProperties":false},"SupportedTokensResponse":{"type":"object","required":["supportedTokens"],"properties":{"supportedTokens":{"type":"array","items":{"type":"object","required":["symbol","address","maxDepositLimitUsd","minDepositLimitUsd"],"properties":{"symbol":{"type":"string","description":"Token symbol (e.g., \"ETH\", \"USDC\").","title":"nonEmptyString","minLength":1},"address":{"type":"string","description":"Token contract address on the deposit chain.","title":"nonEmptyString","minLength":1},"maxDepositLimitUsd":{"type":"number","description":"Maximum deposit amount in USD for this token.","title":"nonNegative","minimum":0},"minDepositLimitUsd":{"type":"number","description":"Minimum deposit amount in USD for this token.","title":"nonNegative","minimum":0}},"additionalProperties":false},"description":"List of tokens that can be deposited to this address."}},"additionalProperties":false},"SearchDepositAddressResponse":{"type":"object","required":["nextPageToken","items"],"properties":{"nextPageToken":{"anyOf":[{"$ref":"#/components/schemas/NonEmptyString"},{"type":"null"}],"description":"Token for the next page of results, null if no more pages."},"items":{"type":"array","items":{"type":"object","required":["depositChain","depositAddress","destinationChain","userId"],"properties":{"depositChain":{"type":"string","description":"The blockchain network identifier where the deposit address is located.","title":"nonEmptyString","minLength":1},"depositAddress":{"type":"string","description":"The generated deposit address where users should send tokens.","title":"nonEmptyString","minLength":1},"destinationChain":{"type":"string","description":"The blockchain network identifier where bridged tokens will be sent.","title":"nonEmptyString","minLength":1},"destinationAddress":{"$ref":"#/components/schemas/NonEmptyString"},"addressNote":{"type":"string","description":"a string at most 80 character(s) long","title":"maxLength(80)","maxLength":80},"postBridgeData":{"anyOf":[{"$ref":"#/components/schemas/ExtendedPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapPostBridgeData"},{"$ref":"#/components/schemas/WirexWrapSandboxPostBridgeData"},{"$ref":"#/components/schemas/StarkwareBtcfiCampaignV2PostBridgeData"},{"$ref":"#/components/schemas/AaveV3SupplyPostBridgeData"},{"$ref":"#/components/schemas/RocketFoundationDepositPostBridgeData"},{"$ref":"#/components/schemas/MapleDepositPostBridgeData"}]},"tokenOut":{"type":"string"},"refundAddress":{"$ref":"#/components/schemas/NonEmptyString"},"bridgeIfNotSwappable":{"type":"boolean"},"_tag":{"type":"string","enum":["legacy"]},"userId":{"type":"string"},"webhookUrl":{"$ref":"#/components/schemas/NonEmptyString"}},"additionalProperties":false},"description":"Array of deposit addresses matching the search criteria."}},"additionalProperties":false}},"securitySchemes":{"bearer":{"description":"JWT token for authentication","type":"http","scheme":"bearer"},"legacyApiKey":{"type":"apiKey","name":"authorization","in":"header"}}},"security":[],"tags":[{"name":"quote"},{"name":"configs"},{"name":"history"},{"name":"swap"},{"name":"depositAddresses"}],"servers":[{"url":"https://api.rhino.fi/bridge"}]}