Skip to content

Commit 4c8e5fe

Browse files
authored
fix bot package exports (#4563)
we autogenerate exports, we don’t put slop in index.ts files
1 parent 85229f5 commit 4c8e5fe

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

packages/bot/src/bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ import packageJson from '../package.json' with { type: 'json' }
114114
import { privateKeyToAccount } from 'viem/accounts'
115115
import appRegistryAbi from '@towns-protocol/generated/dev/abis/IAppRegistry.abi'
116116
import { execute } from 'viem/experimental/erc7821'
117-
import { getSmartAccountFromUserIdImpl } from './getSmartAccountFromUserId'
117+
import { getSmartAccountFromUserIdImpl } from './smart-account'
118118
import type { BotIdentityConfig, BotIdentityMetadata, ERC8004Endpoint } from './identity-types'
119119
import channelsFacetAbi from '@towns-protocol/generated/dev/abis/Channels.abi'
120120
import rolesFacetAbi from '@towns-protocol/generated/dev/abis/Roles.abi'

packages/bot/src/index.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
* This file is generated by running 🏕️ scripts/generate_sdk_index.sh 🏕️ *
33
**************************************************************************/
44
export * from './bot'
5-
export { default as simpleAppAbi } from '@towns-protocol/generated/dev/abis/ISimpleApp.abi'
6-
export { getSmartAccountFromUserId } from './getSmartAccountFromUserId'
7-
export type {
8-
BotIdentityConfig,
9-
BotIdentityMetadata,
10-
ERC8004Endpoint,
11-
ERC8004Registration,
12-
ERC8004TrustModel,
13-
} from './identity-types'
5+
export * from './identity-types'
6+
export * from './re-exports'
7+
export * from './smart-account'
8+
export * from './snapshot-getter'

packages/bot/src/re-exports.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as simpleAppAbi } from '@towns-protocol/generated/dev/abis/ISimpleApp.abi'
File renamed without changes.

0 commit comments

Comments
 (0)