In complete typings for viem
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Start by reading the ResponseListener typings shown in the issue and locating their definition in the functions-toolkit package. Check how the listener uses its provider and whether the viem client can be supported alongside ethers. Done means viem users can pass a client without a type mismatch; the issue names no test or implementation file to guide verification.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
chainlink ts sdk have in complete typings with viem for example
import type { providers } from 'ethers';
import { type FunctionsResponse } from './types';
export declare class ResponseListener {
private functionsRouter;
private provider;
constructor({ provider, functionsRouterAddress, }: {
provider: providers.Provider;
functionsRouterAddress: string;
});
listenForResponse(requestId: string, timeout?: number): Promise<FunctionsResponse>;
listenForResponseFromTransaction(txHash: string, timeout?: number, confirmations?: number, checkInterval?: number): Promise<FunctionsResponse>;
listenForResponses(subscriptionId: number | string, callback: (functionsResponse: FunctionsResponse) => any): void;
stopListeningForResponses(): void;
}
Response listener accepts provider that i asume is a json rpc provider but when i pass a from viem it's mis matched types
import { createPublicClient, http } from 'viem'
import { mainnet } from 'viem/chains'
const client = createPublicClient({
chain: mainnet,
transport: http('https://eth-mainnet.g.alchemy.com/v2/<apiKey>')
})
here client is equalent to json rpc provider from ethers
- Ngôn ngữ chính
- TypeScript
- Star
- 36
- Fork
- 15
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của smartcontractkit/functions-toolkit
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
smartcontractkit/functions-toolkit#94 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
smartcontractkit/functions-toolkit#92 · 1 reaction ·
Tất cả issue của smartcontractkit/functions-toolkit
Issue tương tự
-
area/plugins platform/linux reproduced type/bug version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/opencode#66970 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:tui enhancement platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Đang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Có thể đã có người làm @chaitanya0305 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
i-am-bee/beeai-framework#2049 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ardia-browser/ardia#4778 ·
Maintainer thường phản hồi trong vòng 1 ngày