Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[ecosystem] Viem support for Nibiru EVM needed for Uniswap V3 integration #2109

Open
4 tasks
Unique-Divine opened this issue Nov 9, 2024 · 0 comments
Open
4 tasks
Labels
ecosytem-tools Tooling or infrastructure with clear demand from applications or end users of Nibiru x: evm Relates to Nibiru EVM or the EVM Module

Comments

@Unique-Divine
Copy link
Member

Objective

Enable integration with Uniswap V3 powered by Oku by implementing "Viem support" that was requested on Telegram.

The Ask

  • Write a TypeScript example demonstrating how to use Viem to interact with Nibiru and add it to the docs.
  • Chain Support for Nibiru
    • (i) Add Nibiru as one of the supported "viem/chains" → But first, investigate this further to see if a pull request against the Viem repository is a hard requirement.
    • (ii) As an alternative to (i), we could export a constant from @nibiruchain/nibijs that implements the Chain type from viem. Another option could be to simply add TS code that can be copy-pasted right out of the docs in case people don't want to import another dependency.

What is Viem?

Viem - TypeScript Interface for Ethereum

Usage

import { createPublicClient, http } from 'viem'
import { mainnet } from 'viem/chains'
 
const publicClient = createPublicClient({ 
  chain: mainnet,
  transport: http()
})

Background

@Unique-Divine Unique-Divine added x: evm Relates to Nibiru EVM or the EVM Module ecosytem-tools Tooling or infrastructure with clear demand from applications or end users of Nibiru labels Nov 9, 2024
@github-project-automation github-project-automation bot moved this to ⚡ Building 🧱 in ⚛️ Nibiru (Hougyoku) Nov 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
ecosytem-tools Tooling or infrastructure with clear demand from applications or end users of Nibiru x: evm Relates to Nibiru EVM or the EVM Module
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

1 participant