-
Notifications
You must be signed in to change notification settings - Fork 15
Feat/tokenscope #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/tokenscope #970
Conversation
# Conflicts: # apps/ensindexer/package.json # apps/ensindexer/src/plugins/index.ts # packages/datasources/src/mainnet.ts # packages/datasources/src/sepolia.ts # packages/ensnode-schema/src/ponder.schema.ts # packages/ensnode-sdk/src/utils/types.ts # pnpm-lock.yaml
# Conflicts: # packages/datasources/src/mainnet.ts # pnpm-lock.yaml
…ll index Seaport-Sales across all other name-plugins we support (ENS, 3dns etc)
# Conflicts: # packages/ensnode-sdk/src/ens/constants.ts # packages/ensnode-sdk/src/ens/index.ts # packages/ensnode-sdk/src/ens/types.ts # packages/ensnode-sdk/src/index.ts # pnpm-lock.yaml
# Conflicts: # apps/ensindexer/.env.local.example # packages/datasources/src/index.ts # packages/datasources/src/mainnet.ts # packages/datasources/src/sepolia.ts # pnpm-lock.yaml
🦋 Changeset detectedLatest commit: 522619f The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
lightwalker-eth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super updates and fixed 👍 Just 1 point of feedback that I'll add a reference to in #972 for the future
| } | ||
|
|
||
| return null; | ||
| export const getCurrencyIdForContract = (contract: AccountId): CurrencyId | null => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For strict correctness it seems we should:
- Keep a namespace param on
getCurrencyIdForContract. - Update the data model for
KNOWN_CURRENCY_CONTRACTSso that each record includes its associated namespace. - Update
getSupportedCurrencyContractsForChainso that it also takes a namespace param.- Update logic in this function so that it filters by namespace in addition to the existing chain filtering logic.
Replaces #872 and closes #832