Skip to content

Commit

Permalink
feat: Add Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyjones committed Nov 8, 2024
1 parent d974b82 commit fffd8b0
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

### Minor Changes

## 3.4.8

### Minor Changes

- Added networks for `FLOW`.

## 3.4.7

### Minor Changes
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The SDK currently supports the following chains (chains with '(d)' after are dep
- **Soneium**: Minato
- **Worldchain**: Mainnet, Sepolia
- **Rootstock**: Mainnet, Testnet
- **Flow**: Mainnet, Testnet

You can find per-method documentation of the Alchemy SDK endpoints at the [Alchemy Docs linked in the sidebar](https://docs.alchemy.com/reference/alchemy-sdk-quickstart).

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alchemy-sdk",
"version": "3.4.7",
"version": "3.4.8",
"description": "Extended Ethers.js SDK for Alchemy APIs",
"author": "Alchemy",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export enum Network {
WORLDCHAIN_MAINNET = 'worldchain-mainnet',
WORLDCHAIN_SEPOLIA = 'worldchain-sepolia',
ROOTSTOCK_MAINNET = 'rootstock-mainnet',
ROOTSTOCK_TESTNET = 'rootstock-testnet'
ROOTSTOCK_TESTNET = 'rootstock-testnet',
FLOW_MAINNET = 'flow-mainnet',
FLOW_TESTNET = 'flow-testnet'
}

/** Token Types for the `getTokenBalances()` endpoint. */
Expand Down
12 changes: 11 additions & 1 deletion src/util/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export const EthersNetwork = {
[Network.WORLDCHAIN_MAINNET]: 'worldchain-mainnet',
[Network.WORLDCHAIN_SEPOLIA]: 'worldchain-sepolia',
[Network.ROOTSTOCK_MAINNET]: 'rootstock-mainnet',
[Network.ROOTSTOCK_TESTNET]: 'rootstock-testnet'
[Network.ROOTSTOCK_TESTNET]: 'rootstock-testnet',
[Network.FLOW_MAINNET]: 'flow-mainnet',
[Network.FLOW_TESTNET]: 'flow-testnet'
};

/**
Expand Down Expand Up @@ -284,6 +286,14 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
'rootstock-testnet': {
chainId: 0x1f,
name: 'rootstock-testnet'
},
'flow-mainnet': {
chainId: 747,
name: 'flow-mainnet'
},
'flow-testnet': {
chainId: 545,
name: 'flow-testnet'
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is autogenerated by injectVersion.js. Any changes will be
// overwritten on commit!
export const VERSION = '3.4.7';
export const VERSION = '3.4.8';

0 comments on commit fffd8b0

Please sign in to comment.