Repository: alchemyplatform/aa-sdk
Pull request #1580: feat: add story mainnet and aeneid testnet
Author: login: alex-miao
Created: 2025-05-02T02:26:36Z | Merged: 2025-05-02T17:50:27Z

# Pull Request Checklist

- [ ] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [ ] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [ ] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [ ] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [ ] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces two new blockchain configurations for `Story Mainnet` and `Story Aeneid` in the `chains.ts` file, enhancing the existing chain definitions.

### Detailed summary
- Added `storyMainnet` with ID `1514`, native currency `IP`, and RPC URLs.
- Added `storyAeneid` with ID `1315`, native currency `IP`, and RPC URLs.
- Both chains include block explorer information and specify their testnet status.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->


Diff:
diff --git a/account-kit/infra/src/chains.ts b/account-kit/infra/src/chains.ts
index 37f0b174c8..d5a2e83eff 100644
--- a/account-kit/infra/src/chains.ts
+++ b/account-kit/infra/src/chains.ts
@@ -592,3 +592,51 @@ export const riseTestnet: Chain = defineChain({
   },
   testnet: true,
 });
+
+export const storyMainnet: Chain = defineChain({
+  id: 1514,
+  name: "Story Mainnet",
+  nativeCurrency: { name: "IP", symbol: "IP", decimals: 18 },
+  rpcUrls: {
+    default: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+    public: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+    alchemy: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+  },
+  blockExplorers: {
+    default: {
+      name: "Block Explorer",
+      url: "https://www.storyscan.io",
+    },
+  },
+  testnet: false,
+});
+
+export const storyAeneid: Chain = defineChain({
+  id: 1315,
+  name: "Story Aeneid",
+  nativeCurrency: { name: "IP", symbol: "IP", decimals: 18 },
+  rpcUrls: {
+    default: {
+      http: ["https://story-aeneid.g.alchemy.com/v2"],
+    },
+    public: {
+      http: ["https://story-aeneid.g.alchemy.com/v2"],
+    },
+    alchemy: {
+      http: ["https://story-aeneid.g.alchemy.com/v2"],
+    },
+  },
+  blockExplorers: {
+    default: {
+      name: "Block Explorer",
+      url: "https://aeneid.storyscan.io",
+    },
+  },
+  testnet: true,
+});
diff --git a/account-kit/infra/src/index.ts b/account-kit/infra/src/index.ts
index c8cf8a89de..580d1a796d 100644
--- a/account-kit/infra/src/index.ts
+++ b/account-kit/infra/src/index.ts
@@ -44,6 +44,8 @@ export {
   openlootSepolia,
   gensynTestnet,
   riseTestnet,
+  storyMainnet,
+  storyAeneid,
 } from "./chains.js";
 export type * from "./client/decorators/alchemyEnhancedApis.js";
 export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js";


Reviews:
user: login: moldy530
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-02T16:06:49Z
user: login: moldy530
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-02T16:07:14Z
user: login: jakehobbs
state: CHANGES_REQUESTED
author_association: COLLABORATOR
submitted_at: 2025-05-02T16:27:56Z
user: login: jakehobbs
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-05-02T17:35:34Z

Review comments:
diff_hunk: @@ -592,3 +592,51 @@ export const riseTestnet: Chain = defineChain({
   },
   testnet: true,
 });
+
+export const storyMainnet: Chain = defineChain({
+  id: 11155931,
+  name: "Story Mainnet",
+  nativeCurrency: { name: "IP", symbol: "IP", decimals: 18 },
+  rpcUrls: {
+    default: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+    public: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+    alchemy: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+  },
+  blockExplorers: {
+    default: {
+      name: "Block Explorer",
+      url: "https://www.storyscan.io",
+    },
+  },
+  testnet: false,
+});
+
+export const storyAeneid: Chain = defineChain({
+  id: 11155931,
path: account-kit/infra/src/chains.ts
user: login: moldy530
body: should this ID be the same as the one above? seems odd?
created_at: 2025-05-02T16:06:48Z
author_association: CONTRIBUTOR
diff_hunk: @@ -592,3 +592,51 @@ export const riseTestnet: Chain = defineChain({
   },
   testnet: true,
 });
+
+export const storyMainnet: Chain = defineChain({
+  id: 11155931,
path: account-kit/infra/src/chains.ts
user: login: moldy530
body: wait this ID is the same as `riseTestnet` above too
created_at: 2025-05-02T16:07:14Z
author_association: CONTRIBUTOR
diff_hunk: @@ -592,3 +592,51 @@ export const riseTestnet: Chain = defineChain({
   },
   testnet: true,
 });
+
+export const storyMainnet: Chain = defineChain({
+  id: 11155931,
path: account-kit/infra/src/chains.ts
user: login: jakehobbs
body: i believe this should be `1514`
created_at: 2025-05-02T16:26:03Z
author_association: COLLABORATOR
diff_hunk: @@ -592,3 +592,51 @@ export const riseTestnet: Chain = defineChain({
   },
   testnet: true,
 });
+
+export const storyMainnet: Chain = defineChain({
+  id: 11155931,
+  name: "Story Mainnet",
+  nativeCurrency: { name: "IP", symbol: "IP", decimals: 18 },
+  rpcUrls: {
+    default: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+    public: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+    alchemy: {
+      http: ["https://story-mainnet.g.alchemy.com/v2"],
+    },
+  },
+  blockExplorers: {
+    default: {
+      name: "Block Explorer",
+      url: "https://www.storyscan.io",
+    },
+  },
+  testnet: false,
+});
+
+export const storyAeneid: Chain = defineChain({
+  id: 11155931,
path: account-kit/infra/src/chains.ts
user: login: jakehobbs
body: `1315`
created_at: 2025-05-02T16:27:43Z
author_association: COLLABORATOR

PR comments:
user: login: vercel[bot]
created_at: 2025-05-02T02:26:40Z
body: [vc]: #JvRs3eNbGi+F9RLpeDupRI5DfLYtC7UuHvjA3ePX1bU=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJhYS1zZGstc2l0ZSIsInJvb3REaXJlY3RvcnkiOiJzaXRlIiwiaW5zcGVjdG9yVXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL2FsY2hlbXktZG90LWNvbS9hYS1zZGstc2l0ZS9HdlQxUXY4d29YeW1wZ21oUFhvdE1OOWNxclRyIiwicHJldmlld1VybCI6ImFhLXNkay1zaXRlLWdpdC1hbGV4LXN0b3J5LWFsY2hlbXktZG90LWNvbS52ZXJjZWwuYXBwIiwibmV4dENvbW1pdFN0YXR1cyI6IkRFUExPWUVEIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6ImFhLXNkay1zaXRlLWdpdC1hbGV4LXN0b3J5LWFsY2hlbXktZG90LWNvbS52ZXJjZWwuYXBwIn19LHsibmFtZSI6ImFhLXNkay11aS1kZW1vIiwicm9vdERpcmVjdG9yeSI6ImV4YW1wbGVzL3VpLWRlbW8iLCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vYWxjaGVteS1kb3QtY29tL2FhLXNkay11aS1kZW1vL0J5Q0VMWHFaQmJEQ3dhS1JQYWdwV0FYd29XcWYiLCJwcmV2aWV3VXJsIjoiYWEtc2RrLXVpLWRlbW8tZ2l0LWFsZXgtc3RvcnktYWxjaGVteS1kb3QtY29tLnZlcmNlbC5hcHAiLCJuZXh0Q29tbWl0U3RhdHVzIjoiREVQTE9ZRUQiLCJsaXZlRmVlZGJhY2siOnsicmVzb2x2ZWQiOjAsInVucmVzb2x2ZWQiOjAsInRvdGFsIjowLCJsaW5rIjoiYWEtc2RrLXVpLWRlbW8tZ2l0LWFsZXgtc3RvcnktYWxjaGVteS1kb3QtY29tLnZlcmNlbC5hcHAifX1dfQ==
**The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more)

| Name | Status | Preview | Comments | Updated (UTC) |
| :--- | :----- | :------ | :------- | :------ |
| **aa-sdk-site** | ✅ Ready ([Inspect](https://vercel.com/alchemy-dot-com/aa-sdk-site/GvT1Qv8woXympgmhPXotMN9cqrTr)) | [Visit Preview](https://aa-sdk-site-git-alex-story-alchemy-dot-com.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/aa-sdk-site-git-alex-story-alchemy-dot-com.vercel.app?via=pr-comment-feedback-link) | May 2, 2025 5:21pm |
| **aa-sdk-ui-demo** | ✅ Ready ([Inspect](https://vercel.com/alchemy-dot-com/aa-sdk-ui-demo/ByCELXqZBbDCwaKRPagpWAXwoWqf)) | [Visit Preview](https://aa-sdk-ui-demo-git-alex-story-alchemy-dot-com.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/aa-sdk-ui-demo-git-alex-story-alchemy-dot-com.vercel.app?via=pr-comment-feedback-link) | May 2, 2025 5:21pm |



author_association: NONE
user: login: github-actions[bot]
created_at: 2025-05-02T02:26:58Z
body: ## 🌿 Documentation Preview

| Name | Status | Preview | Updated (UTC) |
| :--- | :------ | :------ | :------ |
| **Alchemy Docs** | ✅ Ready | [🔗 Visit Preview](https://alchemy-preview-df14904d-ca75-48f9-b9c5-dbfcfae9e3f8.docs.buildwithfern.com/docs) | May 2, 2025, 5:17 PM |

>
author_association: CONTRIBUTOR