Skip to content

Commit

Permalink
smart relay fee quote field changes (#200)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Liu <[email protected]>
  • Loading branch information
dhfang and NotJeremyLiu authored Aug 30, 2024
1 parent 769f3da commit 89a201c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
File renamed without changes.
9 changes: 4 additions & 5 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2341,12 +2341,11 @@ components:
fee_amount:
description: The USDC fee amount
type: string
fee_address:
description: The address the fee should be sent to
fee_denom:
description: The fee asset denomination
type: string
nullable: true
payment_contract_address:
description: The address of the payment contract the fee should be submitted to
fee_payment_address:
description: The address the fee should be sent to
type: string
nullable: true
relayer_address:
Expand Down
8 changes: 4 additions & 4 deletions packages/client/src/types/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,10 +1527,10 @@ export function smartRelayFeeQuoteFromJSON(
): SmartRelayFeeQuote {
return {
feeAmount: value.fee_amount,
feeAddress: value.fee_address,
paymentContractAddress: value.payment_contract_address,
relayerAddress: value.relayer_address,
expiration: value.expiration,
feePaymentAddress: value.fee_payment_address,
feeDenom: value.fee_denom,
};
}

Expand All @@ -1539,10 +1539,10 @@ export function smartRelayFeeQuoteToJSON(
): SmartRelayFeeQuoteJSON {
return {
fee_amount: value.feeAmount,
fee_address: value.feeAddress,
payment_contract_address: value.paymentContractAddress,
relayer_address: value.relayerAddress,
expiration: value.expiration,
fee_payment_address: value.feePaymentAddress,
fee_denom: value.feeDenom,
};
}

Expand Down
8 changes: 4 additions & 4 deletions packages/client/src/types/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,18 @@ export type OPInitTransfer = {

export type SmartRelayFeeQuoteJSON = {
fee_amount: string;
fee_address?: string;
payment_contract_address?: string;
relayer_address: string;
expiration: Date;
fee_payment_address: string;
fee_denom: string;
};

export type SmartRelayFeeQuote = {
feeAmount: string;
feeAddress?: string;
paymentContractAddress?: string;
relayerAddress: string;
expiration: Date;
feePaymentAddress: string;
feeDenom: string;
};

export type SwapVenueJSON = {
Expand Down

0 comments on commit 89a201c

Please sign in to comment.