Skip to content

Commit

Permalink
Merge branch 'main' into chore/relocate-base-rpc-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyyconsensys committed Nov 29, 2024
2 parents 1810707 + 2a37d50 commit 569241e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 1,246 deletions.
142 changes: 0 additions & 142 deletions packages/starknet-snap/src/estimateFee.ts

This file was deleted.

51 changes: 0 additions & 51 deletions packages/starknet-snap/src/estimateFees.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/starknet-snap/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { addNetwork } from './addNetwork';
import { Config } from './config';
import { createAccount } from './createAccount';
import { estimateAccDeployFee } from './estimateAccountDeployFee';
import { estimateFees } from './estimateFees';
import { extractPublicKey } from './extractPublicKey';
import { getCurrentNetwork } from './getCurrentNetwork';
import { getErc20TokenBalance } from './getErc20TokenBalance';
Expand Down Expand Up @@ -54,7 +53,6 @@ import {
getDeploymentData,
watchAsset,
} from './rpcs';
import { sendTransaction } from './sendTransaction';
import { signDeployAccountTransaction } from './signDeployAccountTransaction';
import type {
ApiParams,
Expand Down Expand Up @@ -205,12 +203,6 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {
case 'starkNet_getTransactionStatus':
return await getTransactionStatus(apiParams);

case 'starkNet_sendTransaction':
apiParams.keyDeriver = await getAddressKeyDeriver(snap);
return await sendTransaction(
apiParams as unknown as ApiParamsWithKeyDeriver,
);

case 'starkNet_getValue':
return await getValue(apiParams);

Expand Down Expand Up @@ -264,12 +256,6 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {
apiParams.requestParams as unknown as ExecuteTxnParams,
);

case 'starkNet_estimateFees':
apiParams.keyDeriver = await getAddressKeyDeriver(snap);
return await estimateFees(
apiParams as unknown as ApiParamsWithKeyDeriver,
);

case 'starkNet_upgradeAccContract':
apiParams.keyDeriver = await getAddressKeyDeriver(snap);
return upgradeAccContract(
Expand Down
Loading

0 comments on commit 569241e

Please sign in to comment.