@hfunlabs/hypurr-connect 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/HypurrConnectProvider.tsx +1 -0
- package/src/index.ts +4 -1
- package/src/types.ts +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { HyperliquidTwapCreateRequest, HyperliquidTwapModifyRequest, Hyperliquid
|
|
|
7
7
|
import { TelegramClient } from 'hypurr-grpc/ts/hypurr/telegram/telegram_service.client';
|
|
8
8
|
import { HyperliquidWalletTwapSession, HyperliquidWalletScaleSession } from 'hypurr-grpc/ts/hypurr/tools';
|
|
9
9
|
export { HyperliquidWalletScaleSession, HyperliquidWalletTwapSession } from 'hypurr-grpc/ts/hypurr/tools';
|
|
10
|
-
import { TelegramChatWalletPack } from 'hypurr-grpc/ts/hypurr/user';
|
|
11
|
-
export { TelegramChatWalletPack } from 'hypurr-grpc/ts/hypurr/user';
|
|
10
|
+
import { TelegramUserAddressBookEntry, TelegramChatWalletPack } from 'hypurr-grpc/ts/hypurr/user';
|
|
11
|
+
export { TelegramChatWalletPack, TelegramUserAddressBookEntry } from 'hypurr-grpc/ts/hypurr/user';
|
|
12
12
|
import { HyperliquidWallet } from 'hypurr-grpc/ts/hypurr/wallet';
|
|
13
13
|
export { HyperliquidWallet } from 'hypurr-grpc/ts/hypurr/wallet';
|
|
14
14
|
import { AbstractViemLocalAccount } from '@hfunlabs/hyperliquid/signing';
|
|
@@ -53,6 +53,8 @@ interface HypurrUser {
|
|
|
53
53
|
telegramId?: string;
|
|
54
54
|
hfunScore?: number;
|
|
55
55
|
reputationScore?: number;
|
|
56
|
+
/** Saved address-book entries (Telegram users only). */
|
|
57
|
+
addressBook?: TelegramUserAddressBookEntry[];
|
|
56
58
|
}
|
|
57
59
|
interface StoredAgent {
|
|
58
60
|
privateKey: `0x${string}`;
|
package/dist/index.js
CHANGED
|
@@ -698,7 +698,8 @@ function HypurrConnectProvider({
|
|
|
698
698
|
authMethod: "telegram",
|
|
699
699
|
telegramId: String(tgUser.telegramId),
|
|
700
700
|
hfunScore: tgUser?.reputation?.hfunScore,
|
|
701
|
-
reputationScore: tgUser?.reputation?.reputationScore
|
|
701
|
+
reputationScore: tgUser?.reputation?.reputationScore,
|
|
702
|
+
addressBook: tgUser.addressBook
|
|
702
703
|
};
|
|
703
704
|
}
|
|
704
705
|
if (eoaAddress && authMethod === "eoa") {
|