Skip to content

Commit

Permalink
feat(LLM): pass some additional params to wallet-connect live-app whe…
Browse files Browse the repository at this point in the history
…n receiving a request [LIVE-13660]
  • Loading branch information
Justkant committed Sep 5, 2024
1 parent 1825bd3 commit 5df9941
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-berries-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

feat(LLM): pass some additional params to wallet-connect live-app when receiving a request
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,23 @@ export default function WalletConnectLiveAppNavigator() {
return (
<Stack.Navigator screenOptions={stackNavigationConfig}>
<Stack.Screen name={ScreenName.WalletConnectConnect} options={options}>
{_props => (
<LiveApp
{..._props}
route={{
key: _props.route.key,
name: ScreenName.PlatformApp,
params: {
platform: PLATFORM,
uri: uri || _props.route.params?.uri,
},
}}
/>
)}
{_props => {
return (
<LiveApp
{..._props}
route={{
key: _props.route.key,
name: ScreenName.PlatformApp,
params: {
platform: PLATFORM,
uri: uri || _props.route.params?.uri,
requestId: _props.route.params?.requestId,
sessionTopic: _props.route.params?.sessionTopic,
},
}}
/>
);
}}
</Stack.Screen>
</Stack.Navigator>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ export type BaseNavigatorStackParamList = {
defaultTicker?: string;
customDappURL?: string;
uri?: string;
requestId?: string;
sessionTopic?: string;
};
[NavigatorName.Web3Hub]: NavigatorScreenParams<Web3HubStackParamList>;
[ScreenName.Recover]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { ScreenName } from "~/const";
export type WalletConnectLiveAppNavigatorParamList = {
[ScreenName.WalletConnectConnect]: {
uri?: string;
requestId?: string;
sessionTopic?: string;
};
};

0 comments on commit 5df9941

Please sign in to comment.