Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain registry/v2 #103

Merged
merged 35 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
dd71290
new workflows
pyramation Apr 22, 2024
80b3a2d
schema generation
pyramation Apr 22, 2024
90a2215
IBCData
pyramation Apr 22, 2024
82f9ebe
memo keys and versions
pyramation Apr 22, 2024
db69fdd
workflow + cli
pyramation Apr 22, 2024
86db01a
wip CLI
pyramation Apr 22, 2024
c719b95
ibc info
pyramation Apr 22, 2024
5d1e7f2
wip
pyramation Apr 22, 2024
cdb8dd1
tests passing with three autocompletes! simulating `TTY` in `noTTY` e…
pyramation Apr 22, 2024
1ced6e7
setup utils
pyramation Apr 23, 2024
8be4c76
workflows 🛠
pyramation Apr 23, 2024
4a3fe91
CLI tests
pyramation Apr 23, 2024
7e67b62
mkdirp
pyramation Apr 23, 2024
3030d3c
files
pyramation Apr 23, 2024
ec7d9e5
casing
pyramation Apr 23, 2024
5905a38
output fixtures
pyramation Apr 23, 2024
f94fb7d
fixtures
pyramation Apr 23, 2024
b77601d
WorkFlow 🚀
pyramation Apr 23, 2024
1a5d6ec
tighter test harness
pyramation Apr 23, 2024
e2f04cd
submodules
pyramation Apr 23, 2024
97fb01f
🙏🏻
pyramation Apr 23, 2024
d0a4569
update hash 🌎
pyramation Apr 23, 2024
4bf7df6
update then fetch and checkout
pyramation Apr 23, 2024
bbeaab1
hash 🧪
pyramation Apr 23, 2024
9fb2015
Merge branch 'feat/new-chain-utils' into feat/new-chain-utils-merged
pyramation Apr 23, 2024
3908188
🚀
pyramation Apr 23, 2024
8e2a022
workflow 🔎
pyramation Apr 23, 2024
9da15b4
add v2 types and v1 interfaces
pyramation Apr 23, 2024
5e3e254
published v2 interfaces/types
pyramation Apr 23, 2024
7c5faab
📖
pyramation Apr 23, 2024
14b84ca
schema validator
pyramation Apr 23, 2024
c321000
latest fixture
pyramation Apr 23, 2024
95b009d
registry, fixtures
pyramation Apr 24, 2024
800d8f6
registry, validations, cli, tests 🎨
pyramation Apr 24, 2024
6f2410b
workflow
pyramation Apr 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixtures
  • Loading branch information
pyramation committed Apr 23, 2024
commit f94fb7d4dd61809e27ce3a267579cec8ecb93194
52 changes: 25 additions & 27 deletions workflows/cli/__tests__/__snapshots__/assets.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -174,62 +174,60 @@ exports[`Inquirerer prompts user and correctly processes delayed input 1`] = `
exports[`Inquirerer prompts user and correctly processes delayed input 2`] = `
[
"",
"choose a command
"choose<SPACE>a<SPACE>command
[--command]:
$
$<SPACE>
",
"> chain
"><SPACE>chain
",
" asset-lists
"<SPACE><SPACE>asset-lists
",
" ibc-data
"<SPACE><SPACE>ibc-data
",
" schemas
"<SPACE><SPACE>schemas
",
"",
"Select a chain:
"Select<SPACE>a<SPACE>chain:
[--chain]:
$
$<SPACE>
",
"> 8ball
"><SPACE>8ball
",
" acrechain
"<SPACE><SPACE>acrechain
",
" agoric
"<SPACE><SPACE>agoric
",
" aioz
"<SPACE><SPACE>aioz
",
" akash
"<SPACE><SPACE>akash
",
" akiro
"<SPACE><SPACE>akiro
",
" andromeda
"<SPACE><SPACE>andromeda
",
" andromeda1
"<SPACE><SPACE>andromeda1
",
" archway
"<SPACE><SPACE>archway
",
" arkh
"<SPACE><SPACE>arkh
",
" assetmantle
"<SPACE><SPACE>assetmantle
",
" aura
"<SPACE><SPACE>aura
",
" axelar
"<SPACE><SPACE>axelar
",
" bandchain
"<SPACE><SPACE>bandchain
",
" beezee
"<SPACE><SPACE>beezee
",
"",
]
`;

exports[`Inquirerer prompts user and correctly processes delayed input 3`] = `
[
"
",
"
",
"<ENTER>",
"<ENTER>",
]
`;
52 changes: 25 additions & 27 deletions workflows/cli/__tests__/__snapshots__/chain.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -174,62 +174,60 @@ exports[`Inquirerer prompts user and correctly processes delayed input 1`] = `
exports[`Inquirerer prompts user and correctly processes delayed input 2`] = `
[
"",
"choose a command
"choose<SPACE>a<SPACE>command
[--command]:
$
$<SPACE>
",
"> chain
"><SPACE>chain
",
" asset-lists
"<SPACE><SPACE>asset-lists
",
" ibc-data
"<SPACE><SPACE>ibc-data
",
" schemas
"<SPACE><SPACE>schemas
",
"",
"Select a chain:
"Select<SPACE>a<SPACE>chain:
[--chain]:
$
$<SPACE>
",
"> 8ball
"><SPACE>8ball
",
" acrechain
"<SPACE><SPACE>acrechain
",
" agoric
"<SPACE><SPACE>agoric
",
" aioz
"<SPACE><SPACE>aioz
",
" akash
"<SPACE><SPACE>akash
",
" akiro
"<SPACE><SPACE>akiro
",
" andromeda
"<SPACE><SPACE>andromeda
",
" andromeda1
"<SPACE><SPACE>andromeda1
",
" archway
"<SPACE><SPACE>archway
",
" arkh
"<SPACE><SPACE>arkh
",
" assetmantle
"<SPACE><SPACE>assetmantle
",
" aura
"<SPACE><SPACE>aura
",
" axelar
"<SPACE><SPACE>axelar
",
" bandchain
"<SPACE><SPACE>bandchain
",
" beezee
"<SPACE><SPACE>beezee
",
"",
]
`;

exports[`Inquirerer prompts user and correctly processes delayed input 3`] = `
[
"
",
"
",
"<ENTER>",
"<ENTER>",
]
`;
2 changes: 1 addition & 1 deletion workflows/cli/test-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function humanizeKeySequences(data: string): string {
' ': '<SPACE>'
};

return data.replace(/[\u000d\u001b[A\u001b[B ]/g, (match) => keyMap[match]);
return data.replace(/[\u000d\u001b[A\u001b[B ]/g, (match) => keyMap[match] ?? match);
}
interface InputResponse {
type: 'key' | 'read';
Expand Down
Loading