Kupmios: PlutusV4 scripts and Byron addresses from Kupo

オープン
#572 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #624 @Kshot3000 による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

Start with ScriptSchema in packages/evolution/src/sdk/provider/internal/Kupo.ts and the handling in KupmiosEffects.ts:152-153 and 173, then compare the referenced Kupo source locations. Verify that PlutusV4 scripts and Byron base58 addresses no longer surface defects; unsupported cases should result in ProviderError as described.

索引モデルが issue の本文から書いたものです。

説明

bug

Two Kupo responses the Kupmios provider does not handle, found by checking the Kupo source at v2.10.0 to v2.12.0.

  1. PlutusV4 scripts. From v2.12.0, /scripts/{hash} can return language: "plutus:v4" (src/Kupo/Data/Cardano/Script.hs:126). ScriptSchema (packages/evolution/src/sdk/provider/internal/Kupo.ts:34) rejects it, and the default: throw in getScriptEffect (KupmiosEffects.ts:152-153) runs inside Effect.map, so it would surface as a defect. Nothing breaks until V4 scripts exist on chain. Fix: accept the literal and fail with a ProviderError until the SDK supports V4.
  2. Byron addresses. Kupo writes Byron addresses in base58 (src/Kupo/Data/Cardano/Address.hs:25-34), but the provider parses every address with CoreAddress.fromBech32 inside Effect.map (KupmiosEffects.ts:173). A Byron output returned by an output-reference or policy query throws a defect. Fix: accept base58, or fail with a ProviderError.
主要言語
TypeScript
スター
22
フォーク
34
平均マージ
16時間 53分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/evolution-sdk のほかの issue

IntersectMBO/evolution-sdk の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。