Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/src/gateway/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ export class GatewayApiClient {
{
satAmountToLock: BigInt(quote.amountLockInSat),
satFeesMax: BigInt(quote.feeBreakdown.overallFeeSats),
orderCreationDeadline: BigInt(quote.deadline),
creationDeadline: BigInt(quote.deadline),
outputScript: receiverAddress as `0x${string}`,
token: quote.token,
orderOwner: params.fromUserAddress as Address,
owner: params.fromUserAddress as Address,
},
],
};
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/gateway/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,13 @@ export type OfframpCreateOrderParams = {
/** @dev Max sats to be paid as fees */
satFeesMax: bigint;
/** @dev Timestamp by which the order must be created */
orderCreationDeadline: bigint;
creationDeadline: bigint;
/** @dev Output script for Bitcoin settlement */
outputScript: `0x${string}`;
/** @dev Token to use for payment */
token: Address;
/** @dev EVM address of the user who can unlock the order or bump its fee */
orderOwner: Address;
owner: Address;
},
];
};
Expand Down
4 changes: 2 additions & 2 deletions sdk/test/gateway.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,10 @@ describe('Gateway Tests', () => {
expect(result.offrampArgs[0]).to.deep.equal({
satAmountToLock: BigInt('10'),
satFeesMax: BigInt('100'),
orderCreationDeadline: result.offrampArgs[0].orderCreationDeadline, // timestamp is dynamic
creationDeadline: result.offrampArgs[0].creationDeadline, // timestamp is dynamic
outputScript: '0x1600149d5e60f3b5cc2d246f990692ee4b267d1cd58477',
token: '0xda472456b1a6a2fc9ae7edb0e007064224d4284c',
orderOwner: '0xFAEe001465dE6D7E8414aCDD9eF4aC5A35B2B808',
owner: '0xFAEe001465dE6D7E8414aCDD9eF4aC5A35B2B808',
});
});

Expand Down
Loading