Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added offer_only option to create_offer_for_ids #2506

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions packages/api/src/services/WalletService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export default class Wallet extends Service {
validateOnly?: boolean;
disableJSONFormatting?: boolean;
maxTime?: number;
offerOnly?: boolean;
}) {
const { disableJSONFormatting, driverDict, ...restArgs } = args;
return this.command<{ offer: string; tradeRecord: TradeRecord }>(
Expand Down
1 change: 1 addition & 0 deletions packages/gui/src/@types/WalletConnectCommandParamName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum WalletConnectCommandParamName {
OFFER = 'offer',
OFFER_DATA = 'offerData',
OFFER_ID = 'offerId',
OFFER_ONLY = 'offerOnly',
PROOFS = 'proofs',
PROVIDER_INNER_PUZHASH = 'providerInnerPuzhash',
PUBKEY = 'pubkey',
Expand Down
6 changes: 6 additions & 0 deletions packages/gui/src/constants/WalletConnectCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ const walletConnectCommands: WalletConnectCommand[] = [
type: 'BigNumber',
displayComponent: (value) => <MojoToChia value={value} />,
},
{
name: WalletConnectCommandParamName.OFFER_ONLY,
label: <Trans>Omit transactions data</Trans>,
isOptional: true,
type: 'boolean',
},
],
},
{
Expand Down