Skip to content

Commit

Permalink
milkyway <> skip integration endpoints (#173)
Browse files Browse the repository at this point in the history
* add skip index fields

* rename index to indexForSkip

* udpate _package
  • Loading branch information
JSHan94 authored Aug 19, 2024
1 parent c81dba1 commit 5c0ca96
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 7 deletions.
6 changes: 3 additions & 3 deletions _packages/initia-registry/src/testnet/initia/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down Expand Up @@ -105,15 +105,15 @@ 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",
},
{
address: "https://lcd.initiation-1.initia.xyz",
provider: "Initia Labs",
},
{
address: "https://initia-testnet-rpc.polkachu.com",
address: "https://initia-testnet-api.polkachu.com",
provider: "polkachu",
},
{
Expand Down
20 changes: 20 additions & 0 deletions _packages/initia-registry/src/testnet/milkyway/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions _packages/types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions _packages/types/src/types/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,12 @@ export interface Chain {
}[];
};
images?: (
{
| {
[k: string]: unknown;
}
}
| {
[k: string]: unknown;
}
)[];
logo_URIs?: {
png?: string;
Expand Down Expand Up @@ -271,6 +274,7 @@ export interface Endpoint {
provider?: string;
archive?: boolean;
authorizedUser?: string;
indexForSkip?: number;
}
export interface Explorer {
kind?: string;
Expand Down
7 changes: 7 additions & 0 deletions _packages/types/src/zods/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand All @@ -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()
)
Expand All @@ -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()
)
Expand All @@ -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()
)
Expand All @@ -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()
)
Expand All @@ -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()
)
Expand All @@ -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()
)
Expand Down
3 changes: 3 additions & 0 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,9 @@
},
"authorizedUser": {
"type": "string"
},
"indexForSkip": {
"type": "number"
}
},
"additionalProperties": false
Expand Down
20 changes: 20 additions & 0 deletions testnets/milkyway/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
},
Expand Down

0 comments on commit 5c0ca96

Please sign in to comment.