Skip to content

Commit

Permalink
chore: add eth_blobBaseFee
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed May 12, 2024
1 parent 434c324 commit f184b67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mask/entry-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The list is built from what [MetaMask supported](https://docs.metamask.io/wallet
## Readonly ETH methods

- [x] eth_accounts
- [ ] eth_blobBaseFee
- eth_blobBaseFee: not supported by infura
- [x] eth_blockNumber
- [x] eth_call
- [x] eth_chainId
Expand Down
1 change: 1 addition & 0 deletions packages/mask/entry-sdk/bridge/eth/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const methodValidate = {
eth_getEncryptionPublicKey: { args: z.tuple([_.address]), return: z.never() },
eth_requestAccounts: { args: z.tuple([]), return: _.address.array() },
eth_accounts: { args: z.tuple([]), return: _.address.array() },
eth_blobBaseFee: { args: z.tuple([]), return: _.unpadded_hex },
eth_signTypedData_v4: {
args: z.tuple([
_.address,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { EthereumMethodType } from '../types/index.js'
export const readonlyMethodType = [
EthereumMethodType.NET_VERSION,
EthereumMethodType.ETH_BLOCK_NUMBER,
EthereumMethodType.ETH_BLOB_BASE_FEE,
EthereumMethodType.ETH_CALL,
EthereumMethodType.ETH_ESTIMATE_GAS,
EthereumMethodType.ETH_FEE_HISTORY,
Expand Down
1 change: 1 addition & 0 deletions packages/web3-shared/evm/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export enum EthereumMethodType {
WALLET_SWITCH_ETHEREUM_CHAIN = 'wallet_switchEthereumChain',
ETH_CHAIN_ID = 'eth_chainId',
ETH_ACCOUNTS = 'eth_accounts',
ETH_BLOB_BASE_FEE = 'eth_blobBaseFee',
ETH_REQUEST_ACCOUNTS = 'eth_requestAccounts',
ETH_SEND_TRANSACTION = 'eth_sendTransaction',
ETH_SEND_RAW_TRANSACTION = 'eth_sendRawTransaction',
Expand Down

0 comments on commit f184b67

Please sign in to comment.