Skip to content

Commit

Permalink
CP-8941: handle avalanche_signTransaction (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruijialin-avalabs authored Aug 19, 2024
1 parent abf5c17 commit 4c4eda1
Show file tree
Hide file tree
Showing 13 changed files with 196 additions and 1,082 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ import {
ApprovalPopupParams,
AvalancheSendTransactionV2Params,
AvalancheSetDeveloperModeParams,
AvalancheSignTransactionV2Params,
BitcoinSendTransactionParams,
BridgeAssetV2Params,
BridgeTransactionStatusParams,
Expand Down Expand Up @@ -172,8 +171,6 @@ export type WalletScreenStackParams = {
[AppNavigation.Modal.ApprovalPopup]: ApprovalPopupParams
[AppNavigation.Modal
.AvalancheSendTransactionV2]: AvalancheSendTransactionV2Params
[AppNavigation.Modal
.AvalancheSignTransactionV2]: AvalancheSignTransactionV2Params
[AppNavigation.Modal
.AvalancheSetDeveloperMode]: AvalancheSetDeveloperModeParams
[AppNavigation.Modal.StakeDisclaimer]: undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ export const createModals = (WalletScreenS: WalletScreenSType): JSX.Element => {
name={AppNavigation.Modal.AvalancheSendTransactionV2}
component={AvalancheSendTransactionV2}
/>
<WalletScreenS.Screen
name={AppNavigation.Modal.AvalancheSignTransactionV2}
component={AvalancheSendTransactionV2}
/>
<WalletScreenS.Screen
name={AppNavigation.Modal.BitcoinSendTransaction}
component={BitcoinSendTransaction}
Expand Down
9 changes: 0 additions & 9 deletions packages/core-mobile/app/navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ import {
SendTransactionApproveData,
AvalancheSendTransactionRpcRequest as AvalancheSendTransactionRpcRequestV2
} from 'store/rpc/handlers/avalanche_sendTransaction/avalanche_sendTransaction'
import {
AvalancheSignTransactionApproveData as AvalancheSignTransactionApproveDataV2,
AvalancheSignTransactionRpcRequest as AvalancheSignTransactionRpcRequestV2
} from 'store/rpc/handlers/avalanche_signTransaction/avalanche_signTransaction'
import { EarnStackParamList } from 'navigation/wallet/EarnScreenStack/EarnScreenStack'
import { RefreshTokenScreenStackParamList } from 'navigation/RefreshTokenScreenStack'
import { BrowserStackParamList } from 'navigation/wallet/BrowserScreenStack'
Expand Down Expand Up @@ -152,11 +148,6 @@ export type AvalancheSendTransactionV2Params = {
data: SendTransactionApproveData
}

export type AvalancheSignTransactionV2Params = {
request: AvalancheSignTransactionRpcRequestV2
data: AvalancheSignTransactionApproveDataV2
}

export type AvalancheSetDeveloperModeParams = {
request: AvalancheSetDeveloperModeRpcRequest
data: AvalancheSetDeveloperModeApproveData
Expand Down
Loading

0 comments on commit 4c4eda1

Please sign in to comment.