chain letters are lowercase

The primary-network chains answer to either case; one spelling beats two.
/v1/chain/c/rpc, /v1/chain/p, /v1/chain/x across the estate.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-09-08 15:21:35 -07:00
co-authored by Hanzo Dev
parent f13260c45d
commit 654f9c4a87
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -74,15 +74,15 @@ jobs:
include:
- net: mainnet
manifest: dexvm/registry/manifests/assets.mainnet.json
evm_rpc: https://api.lux.network/v1/chain/C/rpc
evm_rpc: https://api.lux.network/v1/chain/c/rpc
api_base: https://api.lux.network
- net: testnet
manifest: dexvm/registry/manifests/assets.testnet.json
evm_rpc: https://api.lux-test.network/v1/chain/C/rpc
evm_rpc: https://api.lux-test.network/v1/chain/c/rpc
api_base: https://api.lux-test.network
- net: devnet
manifest: dexvm/registry/manifests/assets.devnet.json
evm_rpc: https://api.lux-dev.network/v1/chain/C/rpc
evm_rpc: https://api.lux-dev.network/v1/chain/c/rpc
api_base: https://api.lux-dev.network
steps:
- uses: actions/checkout@v4
+3 -3
View File
@@ -22,7 +22,7 @@
//
// dex-assets-validate \
// -manifest dexvm/registry/manifests/assets.mainnet.json \
// -evm-rpc https://api.lux.network/v1/chain/C/rpc \
// -evm-rpc https://api.lux.network/v1/chain/c/rpc \
// -api-base https://api.lux.network \
// [-native-decimals 18]
package main
@@ -42,8 +42,8 @@ import (
func main() {
var (
manifestPath = flag.String("manifest", "", "path to the per-network asset manifest JSON")
evmRPC = flag.String("evm-rpc", "", "C-Chain EVM RPC URL (…/v1/chain/C/rpc)")
apiBase = flag.String("api-base", "", "node API base (… root; used for /ext/P and /v1/chain/X)")
evmRPC = flag.String("evm-rpc", "", "C-Chain EVM RPC URL (…/v1/chain/c/rpc)")
apiBase = flag.String("api-base", "", "node API base (… root; used for /ext/P and /v1/chain/x)")
nativeDec = flag.Uint("native-decimals", 18, "C-Chain native coin decimals")
timeout = flag.Duration("timeout", 2*time.Minute, "overall validation timeout")
)
+3 -3
View File
@@ -42,8 +42,8 @@ type Verifier struct {
}
// New dials the C-Chain EVM RPC and records the node API base for P/X queries.
// evmRPC is the full C-Chain RPC URL (…/v1/chain/C/rpc); apiBase is the node root
// (…) used to reach /ext/P and /v1/chain/X. nativeDecimals is the C-Chain native
// evmRPC is the full C-Chain RPC URL (…/v1/chain/c/rpc); apiBase is the node root
// (…) used to reach /ext/P and /v1/chain/x. nativeDecimals is the C-Chain native
// coin's decimals (18 for LUX).
func New(ctx context.Context, evmRPC, apiBase string, nativeDecimals uint8) (*Verifier, error) {
ec, err := ethclient.DialContext(ctx, evmRPC)
@@ -128,7 +128,7 @@ func (v *Verifier) VerifyUTXOAsset(_ uint32, _ ids.ID, assetID ids.ID) (uint8, e
} `json:"result"`
Error *rpcError `json:"error"`
}
if err := v.jsonRPC(ctx, "/v1/chain/X", "avm.getAssetDescription",
if err := v.jsonRPC(ctx, "/v1/chain/x", "avm.getAssetDescription",
map[string]any{"assetID": assetID.String()}, &out); err != nil {
return 0, err
}