From 5c0ca96e457a66fd0d1a4322fd6845bedf791add Mon Sep 17 00:00:00 2001 From: Harvey Date: Mon, 19 Aug 2024 23:16:53 +0900 Subject: [PATCH] milkyway <> skip integration endpoints (#173) * add skip index fields * rename index to indexForSkip * udpate _package --- .../src/testnet/initia/chain.ts | 6 +++--- .../src/testnet/milkyway/chain.ts | 20 +++++++++++++++++++ _packages/types/package-lock.json | 4 ++-- _packages/types/src/types/Chain.ts | 8 ++++++-- _packages/types/src/zods/Chain.ts | 7 +++++++ chain.schema.json | 3 +++ testnets/milkyway/chain.json | 20 +++++++++++++++++++ 7 files changed, 61 insertions(+), 7 deletions(-) diff --git a/_packages/initia-registry/src/testnet/initia/chain.ts b/_packages/initia-registry/src/testnet/initia/chain.ts index 1247b20..d1e3b80 100644 --- a/_packages/initia-registry/src/testnet/initia/chain.ts +++ b/_packages/initia-registry/src/testnet/initia/chain.ts @@ -49,7 +49,7 @@ const info: Chain = { rpc: [ { address: - "https://b545809c-5562-4e60-b5a1-22e83df57748.initiation-1.mesa-rpc.ue1-prod.newmetric.xyz", + "https://b545809c-5562-4e60-b5a1-22e83df57748.initiation-1.mesa-rpc.newmetric.xyz", provider: "newmetric", }, { @@ -105,7 +105,7 @@ const info: Chain = { rest: [ { address: - "https://b545809c-5562-4e60-b5a1-22e83df57748.initiation-1.mesa-rest.ue1-prod.newmetric.xyz", + "https://b545809c-5562-4e60-b5a1-22e83df57748.initiation-1.mesa-rest.newmetric.xyz", provider: "newmetric", }, { @@ -113,7 +113,7 @@ const info: Chain = { provider: "Initia Labs", }, { - address: "https://initia-testnet-rpc.polkachu.com", + address: "https://initia-testnet-api.polkachu.com", provider: "polkachu", }, { diff --git a/_packages/initia-registry/src/testnet/milkyway/chain.ts b/_packages/initia-registry/src/testnet/milkyway/chain.ts index 71b5117..fb0dabb 100644 --- a/_packages/initia-registry/src/testnet/milkyway/chain.ts +++ b/_packages/initia-registry/src/testnet/milkyway/chain.ts @@ -41,12 +41,32 @@ const info: Chain = { address: "https://rpc.testnet.milkyway.zone", provider: "MilkyWay Labs", }, + { + address: " https://rpc-skip.testnet.milkyway.zone", + provider: "MilkyWay Labs", + authorizedUser: "skip", + indexForSkip: 0, + }, ], rest: [ { address: "https://lcd.testnet.milkyway.zone", provider: "MilkyWay Labs", }, + { + address: "https://lcd-skip.testnet.milkyway.zone", + provider: "MilkyWay Labs", + authorizedUser: "skip", + indexForSkip: 0, + }, + ], + grpc: [ + { + address: "grpc-skip.testnet.milkyway.zone:443", + provider: "MilkyWay Labs", + authorizedUser: "skip", + indexForSkip: 0, + }, ], }, explorers: [ diff --git a/_packages/types/package-lock.json b/_packages/types/package-lock.json index 7f24290..aa7a33d 100644 --- a/_packages/types/package-lock.json +++ b/_packages/types/package-lock.json @@ -1,12 +1,12 @@ { "name": "@initia/initia-registry-types", - "version": "0.0.14", + "version": "0.0.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@initia/initia-registry-types", - "version": "0.0.14", + "version": "0.0.20", "license": "MIT", "dependencies": { "zod": "^3.22.4" diff --git a/_packages/types/src/types/Chain.ts b/_packages/types/src/types/Chain.ts index 96bcb76..36b5943 100644 --- a/_packages/types/src/types/Chain.ts +++ b/_packages/types/src/types/Chain.ts @@ -170,9 +170,12 @@ export interface Chain { }[]; }; images?: ( - { + | { [k: string]: unknown; - } + } + | { + [k: string]: unknown; + } )[]; logo_URIs?: { png?: string; @@ -271,6 +274,7 @@ export interface Endpoint { provider?: string; archive?: boolean; authorizedUser?: string; + indexForSkip?: number; } export interface Explorer { kind?: string; diff --git a/_packages/types/src/zods/Chain.ts b/_packages/types/src/zods/Chain.ts index 13cf77f..5daf599 100644 --- a/_packages/types/src/zods/Chain.ts +++ b/_packages/types/src/zods/Chain.ts @@ -337,6 +337,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) @@ -349,6 +350,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) @@ -361,6 +363,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) @@ -373,6 +376,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) @@ -385,6 +389,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) @@ -397,6 +402,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) @@ -409,6 +415,7 @@ export const ChainSchema = z provider: z.string().optional(), archive: z.boolean().default(false), authorizedUser: z.string().optional(), + indexForSkip: z.number().optional(), }) .strict() ) diff --git a/chain.schema.json b/chain.schema.json index 0d3128f..3c54599 100644 --- a/chain.schema.json +++ b/chain.schema.json @@ -676,6 +676,9 @@ }, "authorizedUser": { "type": "string" + }, + "indexForSkip": { + "type": "number" } }, "additionalProperties": false diff --git a/testnets/milkyway/chain.json b/testnets/milkyway/chain.json index 9b61fa8..5d2ff11 100644 --- a/testnets/milkyway/chain.json +++ b/testnets/milkyway/chain.json @@ -40,12 +40,32 @@ { "address": "https://rpc.testnet.milkyway.zone", "provider": "MilkyWay Labs" + }, + { + "address": " https://rpc-skip.testnet.milkyway.zone", + "provider": "MilkyWay Labs", + "authorizedUser": "skip", + "indexForSkip": 0 } ], "rest": [ { "address": "https://lcd.testnet.milkyway.zone", "provider": "MilkyWay Labs" + }, + { + "address": "https://lcd-skip.testnet.milkyway.zone", + "provider": "MilkyWay Labs", + "authorizedUser": "skip", + "indexForSkip": 0 + } + ], + "grpc": [ + { + "address": "grpc-skip.testnet.milkyway.zone:443", + "provider": "MilkyWay Labs", + "authorizedUser": "skip", + "indexForSkip": 0 } ] },