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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
15 changes: 14 additions & 1 deletion dist/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,18 @@ type UseNearPriceReturn = {
error: string | null;
};
declare const useNearPrice: () => UseNearPriceReturn;
interface ParsedDataReturn<T> {
error?: null | string;
data?: T | null;
}
interface NearPriceData {
price?: string;
}
interface CoinGeckoNearPriceData {
near?: {
usd: string;
};
}
declare const nearPrice: () => Promise<ParsedDataReturn<string>>;

export { BitteWalletContext, BitteWalletContextProvider, useBitteWallet, useNearPrice };
export { BitteWalletContext, BitteWalletContextProvider, type CoinGeckoNearPriceData, type NearPriceData, type ParsedDataReturn, nearPrice, useBitteWallet, useNearPrice };
15 changes: 14 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,18 @@ type UseNearPriceReturn = {
error: string | null;
};
declare const useNearPrice: () => UseNearPriceReturn;
interface ParsedDataReturn<T> {
error?: null | string;
data?: T | null;
}
interface NearPriceData {
price?: string;
}
interface CoinGeckoNearPriceData {
near?: {
usd: string;
};
}
declare const nearPrice: () => Promise<ParsedDataReturn<string>>;

export { BitteWalletContext, BitteWalletContextProvider, useBitteWallet, useNearPrice };
export { BitteWalletContext, BitteWalletContextProvider, type CoinGeckoNearPriceData, type NearPriceData, type ParsedDataReturn, nearPrice, useBitteWallet, useNearPrice };
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"devDependencies": {
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"rxjs": "^7.8.2",
"tsup": "^8.5.0",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
},
"optionalDependencies": {
"fsevents": "^2.3.3"
Expand All @@ -44,15 +44,19 @@
},
"dependencies": {
"@bitte-ai/wallet": "0.8.2",
"@mintbase-js/data": "^0.6.6",
"@mintbase-js/sdk": "^0.6.6",
"@near-wallet-selector/core": "^9.0.2",
"@near-wallet-selector/here-wallet": "^9.0.2",
"@near-wallet-selector/meteor-wallet": "^9.0.2",
"@near-wallet-selector/modal-ui": "^9.0.2",
"@near-wallet-selector/my-near-wallet": "^9.0.2",
"@near-wallet-selector/core": "^9.5.1",
"@near-wallet-selector/here-wallet": "^9.5.1",
"@near-wallet-selector/meteor-wallet": "^9.5.1",
"@near-wallet-selector/modal-ui": "^9.5.1",
"@near-wallet-selector/my-near-wallet": "^9.5.1",
"buffer": "^6.0.3",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"pnpm": {
"overrides": {
"secp256k1": "^5.0.1",
"base-x": "^3.0.11"
}
}
}
Loading