Skip to content

Commit

Permalink
chore: yarn codegen
Browse files Browse the repository at this point in the history
- add `pfmEnabled: boolean` data
- update snapshot tests
  • Loading branch information
0xpatrickdev committed Oct 29, 2024
1 parent 8f6eec7 commit f0be930
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,55 +14,55 @@ Generated by [AVA](https://avajs.dev).
[
[
'published.agoricNames.chain.agoric',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"agoric-3\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ubld\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"agoric-3\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ubld\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.celestia',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"celestia\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"utia\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"celestia\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"utia\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.cosmoshub',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"cosmoshub-4\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uatom\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"cosmoshub-4\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uatom\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.dydx',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"dydx-mainnet-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"adydx\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"dydx-mainnet-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"adydx\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.juno',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"juno-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ujuno\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"juno-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ujuno\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.neutron',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"neutron-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"untrn\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"neutron-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"untrn\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.noble',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"noble-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"noble-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.omniflixhub',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"omniflixhub-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uflix\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"omniflixhub-1\\\\\\",\\\\\\"icqEnabled\\\\\\":true,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uflix\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.osmosis',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"osmosis-1\\\\\\",\\\\\\"icqEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uosmo\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"osmosis-1\\\\\\",\\\\\\"icqEnabled\\\\\\":true,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uosmo\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.secretnetwork',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"secret-4\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uscrt\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"secret-4\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uscrt\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.stargaze',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"stargaze-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ustars\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"stargaze-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ustars\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.stride',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"stride-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ustrd\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"stride-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"ustrd\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chain.umee',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"umee-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uumee\\\\\\"}]}\\",\\"slots\\":[]}"]}',
'{"blockHeight":"0","values":["{\\"body\\":\\"{\\\\\\"chainId\\\\\\":\\\\\\"umee-1\\\\\\",\\\\\\"icqEnabled\\\\\\":false,\\\\\\"pfmEnabled\\\\\\":true,\\\\\\"stakingTokens\\\\\\":[{\\\\\\"denom\\\\\\":\\\\\\"uumee\\\\\\"}]}\\",\\"slots\\":[]}"]}',
],
[
'published.agoricNames.chainConnection.agoric-3_cosmoshub-4',
Expand Down
Binary file not shown.
51 changes: 32 additions & 19 deletions packages/orchestration/src/fetched-chain-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'cosmoshub-4': {
id: 'connection-8',
Expand Down Expand Up @@ -145,6 +146,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'neutron-1': {
id: 'connection-7',
Expand Down Expand Up @@ -246,25 +248,8 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'stargaze-1': {
id: 'connection-918',
client_id: '07-tendermint-1188',
counterparty: {
client_id: '07-tendermint-320',
connection_id: 'connection-256',
},
state: 3,
transferChannel: {
channelId: 'channel-730',
portId: 'transfer',
counterPartyChannelId: 'channel-239',
counterPartyPortId: 'transfer',
ordering: 0,
state: 3,
version: 'ics20-1',
},
},
'agoric-3': {
id: 'connection-649',
client_id: '07-tendermint-927',
Expand Down Expand Up @@ -391,6 +376,24 @@ export default /** @type {const} } */ ({
version: 'ics20-1',
},
},
'stargaze-1': {
id: 'connection-918',
client_id: '07-tendermint-1188',
counterparty: {
client_id: '07-tendermint-320',
connection_id: 'connection-256',
},
state: 3,
transferChannel: {
channelId: 'channel-730',
portId: 'transfer',
counterPartyChannelId: 'channel-239',
counterPartyPortId: 'transfer',
ordering: 0,
state: 3,
version: 'ics20-1',
},
},
'stride-1': {
id: 'connection-635',
client_id: '07-tendermint-913',
Expand Down Expand Up @@ -419,6 +422,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: false,
connections: {
'neutron-1': {
id: 'connection-17',
Expand Down Expand Up @@ -520,6 +524,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'cosmoshub-4': {
id: 'connection-2',
Expand Down Expand Up @@ -657,6 +662,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
celestia: {
id: 'connection-36',
Expand Down Expand Up @@ -825,6 +831,7 @@ export default /** @type {const} } */ ({
noble: {
chainId: 'noble-1',
icqEnabled: false,
pfmEnabled: true,
connections: {
'agoric-3': {
id: 'connection-40',
Expand Down Expand Up @@ -1015,7 +1022,8 @@ export default /** @type {const} } */ ({
denom: 'uflix',
},
],
icqEnabled: false,
icqEnabled: true,
pfmEnabled: true,
connections: {
'agoric-3': {
id: 'connection-40',
Expand Down Expand Up @@ -1099,6 +1107,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: true,
pfmEnabled: true,
connections: {
'agoric-3': {
id: 'connection-1649',
Expand Down Expand Up @@ -1326,6 +1335,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'agoric-3': {
id: 'connection-80',
Expand Down Expand Up @@ -1517,6 +1527,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
celestia: {
id: 'connection-296',
Expand Down Expand Up @@ -1672,6 +1683,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'agoric-3': {
id: 'connection-118',
Expand Down Expand Up @@ -1863,6 +1875,7 @@ export default /** @type {const} } */ ({
},
],
icqEnabled: false,
pfmEnabled: true,
connections: {
'agoric-3': {
id: 'connection-101',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Generated by [AVA](https://avajs.dev).
agoric: {
chainId: 'agoric-3',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ubld',
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Generated by [AVA](https://avajs.dev).
agoric: {
chainId: 'agoric-3',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ubld',
Expand All @@ -46,6 +47,7 @@ Generated by [AVA](https://avajs.dev).
cosmoshub: {
chainId: 'cosmoshub-4',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uatom',
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Generated by [AVA](https://avajs.dev).
agoric: {
chainId: 'agoric-3',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ubld',
Expand All @@ -44,6 +45,7 @@ Generated by [AVA](https://avajs.dev).
osmosis: {
chainId: 'osmosis-1',
icqEnabled: true,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uosmo',
Expand All @@ -53,6 +55,7 @@ Generated by [AVA](https://avajs.dev).
stride: {
chainId: 'stride-1',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ustrd',
Expand Down
Binary file not shown.
15 changes: 14 additions & 1 deletion packages/orchestration/test/snapshots/chain-info.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'agoric-3',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ubld',
Expand All @@ -26,6 +27,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'celestia',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'utia',
Expand All @@ -38,6 +40,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'cosmoshub-4',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uatom',
Expand All @@ -50,6 +53,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'dydx-mainnet-1',
icqEnabled: false,
pfmEnabled: false,
stakingTokens: [
{
denom: 'adydx',
Expand All @@ -62,6 +66,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'juno-1',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ujuno',
Expand All @@ -74,6 +79,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'neutron-1',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'untrn',
Expand All @@ -86,13 +92,15 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'noble-1',
icqEnabled: false,
pfmEnabled: true,
},
],
[
'omniflixhub',
{
chainId: 'omniflixhub-1',
icqEnabled: false,
icqEnabled: true,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uflix',
Expand All @@ -105,6 +113,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'osmosis-1',
icqEnabled: true,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uosmo',
Expand All @@ -117,6 +126,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'secret-4',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uscrt',
Expand All @@ -129,6 +139,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'stargaze-1',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ustars',
Expand All @@ -141,6 +152,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'stride-1',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'ustrd',
Expand All @@ -153,6 +165,7 @@ Generated by [AVA](https://avajs.dev).
{
chainId: 'umee-1',
icqEnabled: false,
pfmEnabled: true,
stakingTokens: [
{
denom: 'uumee',
Expand Down
Binary file modified packages/orchestration/test/snapshots/chain-info.test.js.snap
Binary file not shown.

0 comments on commit f0be930

Please sign in to comment.