Skip to content

Commit

Permalink
wip: feat(okp4): add devnet specs to fadroma-devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Oct 10, 2023
1 parent 8eb45ab commit 8b815ae
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions fadroma-devnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const thisPackage = dirname(fileURLToPath(import.meta.url))
export type DevnetPortMode = 'lcp'|'grpcWeb'

/** Supported devnet variants. */
export type DevnetPlatform = `scrt_1.${2|3|4|5|6|7|8|9}`
export type DevnetPlatform =
| `scrt_1.${2|3|4|5|6|7|8|9}`
| `okp4_5.0`

/** A private local instance of a network. */
export class Devnet implements DevnetHandle {
Expand Down Expand Up @@ -465,7 +467,8 @@ export class Devnet implements DevnetHandle {
'scrt_1.6': $(thisPackage, 'devnets', 'scrt_1_6.Dockerfile').path,
'scrt_1.7': $(thisPackage, 'devnets', 'scrt_1_7.Dockerfile').path,
'scrt_1.8': $(thisPackage, 'devnets', 'scrt_1_8.Dockerfile').path,
'scrt_1.9': $(thisPackage, 'devnets', 'scrt_1_9.Dockerfile').path
'scrt_1.9': $(thisPackage, 'devnets', 'scrt_1_9.Dockerfile').path,
'okp4_5.0': $(thisPackage, 'devnets', 'okp4_5_0.Dockerfile').path,
}

static dockerTags: Record<DevnetPlatform, string> = {
Expand All @@ -477,6 +480,7 @@ export class Devnet implements DevnetHandle {
'scrt_1.7': 'ghcr.io/hackbg/fadroma-devnet-scrt-1.7:master',
'scrt_1.8': 'ghcr.io/hackbg/fadroma-devnet-scrt-1.8:master',
'scrt_1.9': 'ghcr.io/hackbg/fadroma-devnet-scrt-1.9:master',
'okp4_5.0': 'ghcr.io/hackbg/fadroma-devnet-okp4-5.0:master',
}

static readyMessage: Record<DevnetPlatform, string> = {
Expand All @@ -488,6 +492,7 @@ export class Devnet implements DevnetHandle {
'scrt_1.7': 'indexed block',
'scrt_1.8': 'Done verifying block height',
'scrt_1.9': 'Validating proposal',
'okp4_5.0': 'NOT KNOWN YET',
}

static initScriptMount = 'devnet.init.mjs'
Expand Down Expand Up @@ -518,7 +523,8 @@ export class Devnet implements DevnetHandle {
'scrt_1.6': 'lcp',
'scrt_1.7': 'lcp',
'scrt_1.8': 'lcp',
'scrt_1.9': 'lcp'
'scrt_1.9': 'lcp',
'okp4_5.0': 'lcp',
}
}

Expand Down

0 comments on commit 8b815ae

Please sign in to comment.