Skip to content

Commit

Permalink
feat: Add types for configuration and wallet confirmation input
Browse files Browse the repository at this point in the history
This commit adds two new interfaces to the `types.ts` file: `Config` and `AddWalletConfirmationInput`. The `Config` interface represents the configuration options for the application, including the API key, token, URL, and an optional logging flag. The `AddWalletConfirmationInput` interface represents the input data for confirming a wallet, including the wallet address, chain, and signature. These types provide a standardized way to handle configuration and wallet confirmation data in the codebase.
  • Loading branch information
rafagomes committed Jun 27, 2024
1 parent 732f232 commit 01505cd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Chain } from './enums';

export interface Config {
apiKey: string;
token: string;
url: string;
logging?: boolean;
}

export interface AddWalletConfirmationInput {
wallet: string;
chain: Chain;
signature: string;
}

0 comments on commit 01505cd

Please sign in to comment.