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

Improve types for LN Custodian wallet #6254

Open
limpbrains opened this issue Mar 10, 2024 · 2 comments
Open

Improve types for LN Custodian wallet #6254

limpbrains opened this issue Mar 10, 2024 · 2 comments
Labels
good first issue 🥇 Good for newcomers

Comments

@limpbrains
Copy link
Collaborator

draft:

type TTxRaw = {
  fee: number;
  fee_msat: number;
  memo: string;
  payment_hash: string;
  payment_preimage: string;
  received: string;
  timestamp: number;
  type: 'paid_invoice' | 'bitcoind_tx' | 'user_invoice';
  value: number;
  walletID: string;
  walletPreferredBalanceUnit: string;
};

type TInvoiceRaw = {
  add_index: string;
  amt: number;
  description: string;
  expire_time: number;
  ispaid: boolean;
  memo: string;
  payment_hash: string;
  payment_request: string;
  r_hash: {
    data: number[];
    type: string;
  };
  received: string;
  timestamp: number;
  type: 'user_invoice';
  value: number;
  walletID: string;
  walletPreferredBalanceUnit: string;
};
@limpbrains limpbrains added the good first issue 🥇 Good for newcomers label Mar 10, 2024
@Overtorment
Copy link
Member

did it make to a recent wallet refactoring..?

@limpbrains
Copy link
Collaborator Author

Nope.
I think to do it right, you will have to look at the LND Hub API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue 🥇 Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants