Skip to content

Commit

Permalink
fix: align chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilbe27 committed Dec 12, 2023
1 parent 0dc149c commit fc5495b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("queryBatchHandler tests", () => {
true
),
],
"https://hm-graphql.itn-3.nibiru.fi/query"
"https://hm-graphql.testnet-1.nibiru.fi/query"
)

expect(resp).toHaveProperty("communityPool")
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-nibi/src/heart-monitor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const checkFields = (objects: any[], fields: any[]) => {
})
}

const nibiruUrl = "itn-3"
const nibiruUrl = "testnet-1"

const heartMonitor = new HeartMonitor(
`https://hm-graphql.${nibiruUrl}.nibiru.fi/query`,
Expand Down
2 changes: 1 addition & 1 deletion packages/nibijs/README.md
2 changes: 1 addition & 1 deletion packages/nibijs/docs/classes/CustomChain.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ based on its chain ID.
```ts
export const TEST_CHAIN = new CustomChain({
prefix: "nibiru",
shortName: "itn",
shortName: "testnet",
number: 1,
}) // v0.19.2
```
Expand Down
6 changes: 3 additions & 3 deletions packages/nibijs/src/chain/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Chain {

export interface ChainIdParts {
prefix?: string // e.g. `nibiru`
shortName: string // e.g. `itn`
shortName: string // e.g. `testnet`
number: number // e.g. `1`
mainnet?: boolean
}
Expand All @@ -39,7 +39,7 @@ export interface ChainIdParts {
* ```ts
* export const TEST_CHAIN = new CustomChain({
* prefix: "nibiru",
* shortName: "itn",
* shortName: "testnet",
* number: 1,
* }) // v0.19.2
* ```
Expand Down Expand Up @@ -112,7 +112,7 @@ export const Localnet: Chain = {
export const Testnet = (chainNumber: number = 1) =>
new CustomChain({
prefix: "nibiru",
shortName: "itn",
shortName: "testnet",
number: chainNumber,
})

Expand Down
4 changes: 2 additions & 2 deletions packages/nibijs/src/test/chain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ describe("chain/chain", () => {

test("IncentivizedTestnet", async () => {
const result = Testnet(1)
expectCreatedChain(result, "itn")
expectCreatedChain(result, "testnet")
})

test("Devnet", async () => {
const result = Devnet(1)
const result = Devnet(2)
expectCreatedChain(result, "devnet")
})

Expand Down
6 changes: 3 additions & 3 deletions packages/nibijs/src/test/faucet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ describe("useFaucet", () => {
endptTm: "",
endptRest: "",
endptGrpc: "",
chainId: "nibiru-itn-3",
chainId: "nibiru-testnet-1",
chainName: "",
feeDenom: "",
}

const grecaptcha = "TEST_GRECAPTCHA_TOKEN"
const address = "0x1234567890"
const expectedUrl = "https://faucet.itn-3.nibiru.fi/"
const expectedUrl = "https://faucet.testnet-1.nibiru.fi/"

test("should request funds from faucet with default amounts", async () => {
await useFaucet({ address, chain, grecaptcha })
Expand Down Expand Up @@ -123,7 +123,7 @@ describe("useFaucet", () => {
endptTm: "",
endptRest: "",
endptGrpc: "",
chainId: "nibiru-itn-3",
chainId: "nibiru-testnet-1",
chainName: "",
feeDenom: "",
})
Expand Down

0 comments on commit fc5495b

Please sign in to comment.