@@ -1093,14 +1093,12 @@ export type CreateCoinbaseLayerswapOrderInput = {
10931093} ;
10941094
10951095export type CreateCoinbaseOnrampOrderInput = {
1096- /** The temporary burner address that will receive the funds initially. */
1097- burnerAddress : Scalars [ 'String' ] ;
1098- /** The presigned transaction to execute after the purchase. */
1099- presignedTxn : Scalars [ 'String' ] ;
11001096 /** The amount of USDC to purchase (e.g., "100.000000" for 100 USDC). */
11011097 purchaseUSDCAmount : Scalars [ 'String' ] ;
11021098 /** If true, use sandbox mode (Base Sepolia). */
11031099 sandbox ?: InputMaybe < Scalars [ 'Boolean' ] > ;
1100+ /** The EIP-3009 authorization for the USDC transfer. */
1101+ usdcTransferAuthorization : UsdcTransferAuthorizationInput ;
11041102} ;
11051103
11061104export type CreateCryptoPaymentInput = {
@@ -3970,6 +3968,11 @@ export type Query = {
39703968 activities : ActivityResult ;
39713969 balance : Balance ;
39723970 balances : BalanceConnection ;
3971+ /**
3972+ * Get a specific Coinbase onramp order by its ID.
3973+ * Queries the internal database for the current status.
3974+ */
3975+ coinbaseOnrampOrder : CoinbaseOnrampOrder ;
39733976 /**
39743977 * Get a quote for a Coinbase onramp purchase without creating a transaction.
39753978 * This is an estimate only and does not guarantee the final price.
@@ -4075,6 +4078,11 @@ export type QueryBalancesArgs = {
40754078} ;
40764079
40774080
4081+ export type QueryCoinbaseOnrampOrderArgs = {
4082+ orderId : Scalars [ 'String' ] ;
4083+ } ;
4084+
4085+
40784086export type QueryCoinbaseOnrampQuoteArgs = {
40794087 input : CoinbaseOnrampQuoteInput ;
40804088} ;
@@ -6505,6 +6513,18 @@ export type TransferResult = {
65056513 items : Array < TransferItem > ;
65066514} ;
65076515
6516+ export type UsdcTransferAuthorizationInput = {
6517+ from : Scalars [ 'String' ] ;
6518+ nonce : Scalars [ 'String' ] ;
6519+ r : Scalars [ 'String' ] ;
6520+ s : Scalars [ 'String' ] ;
6521+ to : Scalars [ 'String' ] ;
6522+ v : Scalars [ 'Int' ] ;
6523+ validAfter : Scalars [ 'Int' ] ;
6524+ validBefore : Scalars [ 'Int' ] ;
6525+ value : Scalars [ 'String' ] ;
6526+ } ;
6527+
65086528/**
65096529 * UpdateMerkleClaimInput is used for update MerkleClaim object.
65106530 * Input was generated by ent.
@@ -6811,7 +6831,7 @@ export type CryptoPaymentQueryVariables = Exact<{
68116831} > ;
68126832
68136833
6814- export type CryptoPaymentQuery = { __typename ?: 'Query' , cryptoPayment ?: { __typename ?: 'CryptoPayment' , tokenAmount : string , status : CryptoPaymentStatus , network : Network , tokenAddress : string , depositAddress : string , expiresAt : string } | null } ;
6834+ export type CryptoPaymentQuery = { __typename ?: 'Query' , cryptoPayment ?: { __typename ?: 'CryptoPayment' , id : string , tokenAmount : string , status : CryptoPaymentStatus , network : Network , tokenAddress : string , depositAddress : string , expiresAt : string } | null } ;
68156835
68166836export type StripePaymentQueryVariables = Exact < {
68176837 id : Scalars [ 'ID' ] ;
@@ -6883,7 +6903,21 @@ export type CreateCoinbaseOnRampOrderMutationVariables = Exact<{
68836903} > ;
68846904
68856905
6886- export type CreateCoinbaseOnRampOrderMutation = { __typename ?: 'Mutation' , createCoinbaseOnrampOrder : { __typename ?: 'CoinbaseOnrampOrderResponse' , coinbaseOrder : { __typename ?: 'CoinbaseOnrampOrder' , orderId : string , paymentLink : string , paymentLinkType : string , paymentTotal : string , paymentCurrency : string , purchaseAmount : string , purchaseCurrency : string , destinationAddress : string , destinationNetwork : string , fees : Array < { __typename ?: 'CoinbaseOnrampFee' , type : string , amount : string , currency : string } > } , layerswapPayment ?: { __typename ?: 'LayerswapPayment' , swapId : string , cryptoPaymentId : string , sourceNetwork : LayerswapSourceNetwork , sourceTokenAmount : string , sourceTokenAddress : string , sourceDepositAddress : string , expiresAt : string } | null } } ;
6906+ export type CreateCoinbaseOnRampOrderMutation = { __typename ?: 'Mutation' , createCoinbaseOnrampOrder : { __typename ?: 'CoinbaseOnrampOrderResponse' , coinbaseOrder : { __typename ?: 'CoinbaseOnrampOrder' , orderId : string , paymentLink : string , paymentLinkType : string , paymentTotal : string , paymentCurrency : string , purchaseAmount : string , purchaseCurrency : string , destinationAddress : string , destinationNetwork : string , fees : Array < { __typename ?: 'CoinbaseOnrampFee' , type : string , amount : string , currency : string } > } , layerswapPayment ?: { __typename ?: 'LayerswapPayment' , cryptoPaymentId : string , swapId : string , status : LayerswapStatus , sourceNetwork : LayerswapSourceNetwork , sourceTokenAmount : string , sourceTokenAddress : string , sourceDepositAddress : string , expiresAt : string } | null } } ;
6907+
6908+ export type CreateCoinbaseLayerswapOrderMutationVariables = Exact < {
6909+ input : CreateCoinbaseLayerswapOrderInput ;
6910+ } > ;
6911+
6912+
6913+ export type CreateCoinbaseLayerswapOrderMutation = { __typename ?: 'Mutation' , createCoinbaseLayerswapOrder : { __typename ?: 'CoinbaseOnrampOrderResponse' , coinbaseOrder : { __typename ?: 'CoinbaseOnrampOrder' , orderId : string , paymentLink : string , paymentLinkType : string , paymentTotal : string , paymentCurrency : string , purchaseAmount : string , purchaseCurrency : string , destinationAddress : string , destinationNetwork : string , fees : Array < { __typename ?: 'CoinbaseOnrampFee' , type : string , amount : string , currency : string } > } , layerswapPayment ?: { __typename ?: 'LayerswapPayment' , cryptoPaymentId : string , swapId : string , status : LayerswapStatus , sourceNetwork : LayerswapSourceNetwork , sourceTokenAmount : string , sourceTokenAddress : string , sourceDepositAddress : string , expiresAt : string } | null } } ;
6914+
6915+ export type CoinbaseOnRampOrderQueryVariables = Exact < {
6916+ orderId : Scalars [ 'String' ] ;
6917+ } > ;
6918+
6919+
6920+ export type CoinbaseOnRampOrderQuery = { __typename ?: 'Query' , coinbaseOnrampOrder : { __typename ?: 'CoinbaseOnrampOrder' , txHash ?: string | null , status : CoinbaseOnrampStatus } } ;
68876921
68886922export type CoinbaseOnRampQuoteQueryVariables = Exact < {
68896923 input : CoinbaseOnrampQuoteInput ;
@@ -6892,6 +6926,14 @@ export type CoinbaseOnRampQuoteQueryVariables = Exact<{
68926926
68936927export type CoinbaseOnRampQuoteQuery = { __typename ?: 'Query' , coinbaseOnrampQuote : { __typename ?: 'CoinbaseOnrampQuote' , quoteId : string , paymentTotal : { __typename ?: 'CoinbaseAmount' , amount : string , currency : string } , purchaseAmount : { __typename ?: 'CoinbaseAmount' , amount : string , currency : string } , layerswapFees : { __typename ?: 'CoinbaseAmount' , amount : string , currency : string } , coinbaseFee : { __typename ?: 'CoinbaseAmount' , amount : string , currency : string } , networkFee : { __typename ?: 'CoinbaseAmount' , amount : string , currency : string } } } ;
68946928
6929+ export type CryptoPaymentFieldsFragment = { __typename ?: 'CryptoPayment' , id : string , tokenAmount : string , status : CryptoPaymentStatus , network : Network , tokenAddress : string , depositAddress : string , expiresAt : string } ;
6930+
6931+ export type LayerswapPaymentFieldsFragment = { __typename ?: 'LayerswapPayment' , cryptoPaymentId : string , swapId : string , status : LayerswapStatus , sourceNetwork : LayerswapSourceNetwork , sourceTokenAmount : string , sourceTokenAddress : string , sourceDepositAddress : string , expiresAt : string } ;
6932+
6933+ export type CoinbaseOnrampOrderFieldsFragment = { __typename ?: 'CoinbaseOnrampOrder' , orderId : string , paymentLink : string , paymentLinkType : string , paymentTotal : string , paymentCurrency : string , purchaseAmount : string , purchaseCurrency : string , destinationAddress : string , destinationNetwork : string , fees : Array < { __typename ?: 'CoinbaseOnrampFee' , type : string , amount : string , currency : string } > } ;
6934+
6935+ export type CoinbaseOnrampOrderResponseFieldsFragment = { __typename ?: 'CoinbaseOnrampOrderResponse' , coinbaseOrder : { __typename ?: 'CoinbaseOnrampOrder' , orderId : string , paymentLink : string , paymentLinkType : string , paymentTotal : string , paymentCurrency : string , purchaseAmount : string , purchaseCurrency : string , destinationAddress : string , destinationNetwork : string , fees : Array < { __typename ?: 'CoinbaseOnrampFee' , type : string , amount : string , currency : string } > } , layerswapPayment ?: { __typename ?: 'LayerswapPayment' , cryptoPaymentId : string , swapId : string , status : LayerswapStatus , sourceNetwork : LayerswapSourceNetwork , sourceTokenAmount : string , sourceTokenAddress : string , sourceDepositAddress : string , expiresAt : string } | null } ;
6936+
68956937export type PlaythroughsQueryVariables = Exact < {
68966938 projects : Array < PlaythroughProject > | PlaythroughProject ;
68976939} > ;
@@ -7004,7 +7046,58 @@ export type TxsHistoryQueryVariables = Exact<{
70047046
70057047export type TxsHistoryQuery = { __typename ?: 'Query' , account ?: { __typename ?: 'Account' , activities : { __typename ?: 'ActivityConnection' , edges ?: Array < { __typename ?: 'ActivityEdge' , node ?: { __typename ?: 'Activity' , id : string , paymasterID ?: string | null , type : ActivityType , status : ActivityStatus , network ?: string | null , transactionHash ?: string | null , feeSource : ActivityFeeSource , updatedAt : string } | null } | null > | null } } | null } ;
70067048
7007-
7049+ export const CryptoPaymentFieldsFragmentDoc = `
7050+ fragment CryptoPaymentFields on CryptoPayment {
7051+ id
7052+ tokenAmount
7053+ status
7054+ network
7055+ tokenAddress
7056+ depositAddress
7057+ expiresAt
7058+ }
7059+ ` ;
7060+ export const CoinbaseOnrampOrderFieldsFragmentDoc = `
7061+ fragment CoinbaseOnrampOrderFields on CoinbaseOnrampOrder {
7062+ orderId
7063+ paymentLink
7064+ paymentLinkType
7065+ paymentTotal
7066+ paymentCurrency
7067+ purchaseAmount
7068+ purchaseCurrency
7069+ destinationAddress
7070+ destinationNetwork
7071+ fees {
7072+ type
7073+ amount
7074+ currency
7075+ }
7076+ }
7077+ ` ;
7078+ export const LayerswapPaymentFieldsFragmentDoc = `
7079+ fragment LayerswapPaymentFields on LayerswapPayment {
7080+ cryptoPaymentId
7081+ swapId
7082+ status
7083+ sourceNetwork
7084+ sourceTokenAmount
7085+ sourceTokenAddress
7086+ sourceDepositAddress
7087+ expiresAt
7088+ }
7089+ ` ;
7090+ export const CoinbaseOnrampOrderResponseFieldsFragmentDoc = `
7091+ fragment CoinbaseOnrampOrderResponseFields on CoinbaseOnrampOrderResponse {
7092+ coinbaseOrder {
7093+ ...CoinbaseOnrampOrderFields
7094+ }
7095+ layerswapPayment {
7096+ ...LayerswapPaymentFields
7097+ }
7098+ }
7099+ ${ CoinbaseOnrampOrderFieldsFragmentDoc }
7100+ ${ LayerswapPaymentFieldsFragmentDoc } `;
70087101export const AccountDocument = `
70097102 query Account($username: String!) {
70107103 account(username: $username) {
@@ -7806,15 +7899,10 @@ export const useOwnershipsQuery = <
78067899export const CryptoPaymentDocument = `
78077900 query CryptoPayment($id: ID!) {
78087901 cryptoPayment(id: $id) {
7809- tokenAmount
7810- status
7811- network
7812- tokenAddress
7813- depositAddress
7814- expiresAt
7902+ ...CryptoPaymentFields
78157903 }
78167904}
7817- ` ;
7905+ ${ CryptoPaymentFieldsFragmentDoc } ` ;
78187906export const useCryptoPaymentQuery = <
78197907 TData = CryptoPaymentQuery ,
78207908 TError = unknown
@@ -7881,16 +7969,10 @@ export const useLayerswapSourcesQuery = <
78817969export const CreateCryptoPaymentDocument = `
78827970 mutation CreateCryptoPayment($input: CreateCryptoPaymentInput!) {
78837971 createCryptoPayment(input: $input) {
7884- id
7885- tokenAmount
7886- status
7887- network
7888- tokenAddress
7889- depositAddress
7890- expiresAt
7972+ ...CryptoPaymentFields
78917973 }
78927974}
7893- ` ;
7975+ ${ CryptoPaymentFieldsFragmentDoc } ` ;
78947976export const useCreateCryptoPaymentMutation = <
78957977 TError = unknown ,
78967978 TContext = unknown
@@ -7925,17 +8007,10 @@ export const useCreateStripePaymentIntentMutation = <
79258007export const CreateLayerswapPaymentDocument = `
79268008 mutation CreateLayerswapPayment($input: CreateLayerswapPaymentInput!) {
79278009 createLayerswapPayment(input: $input) {
7928- cryptoPaymentId
7929- swapId
7930- status
7931- sourceNetwork
7932- sourceTokenAmount
7933- sourceTokenAddress
7934- sourceDepositAddress
7935- expiresAt
8010+ ...LayerswapPaymentFields
79368011 }
79378012}
7938- ` ;
8013+ ${ LayerswapPaymentFieldsFragmentDoc } ` ;
79398014export const useCreateLayerswapPaymentMutation = <
79408015 TError = unknown ,
79418016 TContext = unknown
@@ -7948,17 +8023,10 @@ export const useCreateLayerswapPaymentMutation = <
79488023export const CreateLayerswapDepositDocument = `
79498024 mutation CreateLayerswapDeposit($input: CreateLayerswapDepositInput!) {
79508025 createLayerswapDeposit(input: $input) {
7951- cryptoPaymentId
7952- swapId
7953- status
7954- sourceNetwork
7955- sourceTokenAmount
7956- sourceTokenAddress
7957- sourceDepositAddress
7958- expiresAt
8026+ ...LayerswapPaymentFields
79598027 }
79608028}
7961- ` ;
8029+ ${ LayerswapPaymentFieldsFragmentDoc } ` ;
79628030export const useCreateLayerswapDepositMutation = <
79638031 TError = unknown ,
79648032 TContext = unknown
@@ -8055,34 +8123,10 @@ export const useCoinbaseOnrampTransactionsQuery = <
80558123export const CreateCoinbaseOnRampOrderDocument = `
80568124 mutation CreateCoinbaseOnRampOrder($input: CreateCoinbaseOnrampOrderInput!) {
80578125 createCoinbaseOnrampOrder(input: $input) {
8058- coinbaseOrder {
8059- orderId
8060- paymentLink
8061- paymentLinkType
8062- paymentTotal
8063- paymentCurrency
8064- purchaseAmount
8065- purchaseCurrency
8066- destinationAddress
8067- destinationNetwork
8068- fees {
8069- type
8070- amount
8071- currency
8072- }
8073- }
8074- layerswapPayment {
8075- swapId
8076- cryptoPaymentId
8077- sourceNetwork
8078- sourceTokenAmount
8079- sourceTokenAddress
8080- sourceDepositAddress
8081- expiresAt
8082- }
8126+ ...CoinbaseOnrampOrderResponseFields
80838127 }
80848128}
8085- ` ;
8129+ ${ CoinbaseOnrampOrderResponseFieldsFragmentDoc } ` ;
80868130export const useCreateCoinbaseOnRampOrderMutation = <
80878131 TError = unknown ,
80888132 TContext = unknown
@@ -8092,6 +8136,42 @@ export const useCreateCoinbaseOnRampOrderMutation = <
80928136 useFetchData < CreateCoinbaseOnRampOrderMutation , CreateCoinbaseOnRampOrderMutationVariables > ( CreateCoinbaseOnRampOrderDocument ) ,
80938137 options
80948138 ) ;
8139+ export const CreateCoinbaseLayerswapOrderDocument = `
8140+ mutation CreateCoinbaseLayerswapOrder($input: CreateCoinbaseLayerswapOrderInput!) {
8141+ createCoinbaseLayerswapOrder(input: $input) {
8142+ ...CoinbaseOnrampOrderResponseFields
8143+ }
8144+ }
8145+ ${ CoinbaseOnrampOrderResponseFieldsFragmentDoc } ` ;
8146+ export const useCreateCoinbaseLayerswapOrderMutation = <
8147+ TError = unknown ,
8148+ TContext = unknown
8149+ > ( options ?: UseMutationOptions < CreateCoinbaseLayerswapOrderMutation , TError , CreateCoinbaseLayerswapOrderMutationVariables , TContext > ) =>
8150+ useMutation < CreateCoinbaseLayerswapOrderMutation , TError , CreateCoinbaseLayerswapOrderMutationVariables , TContext > (
8151+ [ 'CreateCoinbaseLayerswapOrder' ] ,
8152+ useFetchData < CreateCoinbaseLayerswapOrderMutation , CreateCoinbaseLayerswapOrderMutationVariables > ( CreateCoinbaseLayerswapOrderDocument ) ,
8153+ options
8154+ ) ;
8155+ export const CoinbaseOnRampOrderDocument = `
8156+ query CoinbaseOnRampOrder($orderId: String!) {
8157+ coinbaseOnrampOrder(orderId: $orderId) {
8158+ txHash
8159+ status
8160+ }
8161+ }
8162+ ` ;
8163+ export const useCoinbaseOnRampOrderQuery = <
8164+ TData = CoinbaseOnRampOrderQuery ,
8165+ TError = unknown
8166+ > (
8167+ variables : CoinbaseOnRampOrderQueryVariables ,
8168+ options ?: UseQueryOptions < CoinbaseOnRampOrderQuery , TError , TData >
8169+ ) =>
8170+ useQuery < CoinbaseOnRampOrderQuery , TError , TData > (
8171+ [ 'CoinbaseOnRampOrder' , variables ] ,
8172+ useFetchData < CoinbaseOnRampOrderQuery , CoinbaseOnRampOrderQueryVariables > ( CoinbaseOnRampOrderDocument ) . bind ( null , variables ) ,
8173+ options
8174+ ) ;
80958175export const CoinbaseOnRampQuoteDocument = `
80968176 query CoinbaseOnRampQuote($input: CoinbaseOnrampQuoteInput!) {
80978177 coinbaseOnrampQuote(input: $input) {
0 commit comments