Skip to content

Latest commit

 

History

History
479 lines (464 loc) · 12.2 KB

test-chain-info.js.md

File metadata and controls

479 lines (464 loc) · 12.2 KB

Snapshot report for test/test-chain-info.js

The actual snapshot is saved in test-chain-info.js.snap.

Generated by AVA.

IBC Connections and Channels

IdentifiedConnection Full (1 example of many)

{
  clientState: {
    allowUpdateAfterExpiry: true,
    allowUpdateAfterMisbehaviour: true,
    chainId: 'osmosis-test',
    frozenHeight: {
      revisionHeight: 0n,
      revisionNumber: 0n,
    },
    latestHeight: {
      revisionHeight: 831n,
      revisionNumber: 0n,
    },
    maxClockDrift: {
      nanos: 0,
      seconds: 35n,
    },
    proofSpecs: [
      {
        innerSpec: {
          childOrder: [
            0,
            1,
          ],
          childSize: 33,
          emptyChild: Uint8Array [],
          hash: 1,
          maxPrefixLength: 12,
          minPrefixLength: 4,
        },
        leafSpec: {
          hash: 1,
          length: 1,
          prefix: Uint8Array [
            00
          ],
          prehashKey: 0,
          prehashValue: 1,
        },
        maxDepth: 0,
        minDepth: 0,
      },
      {
        innerSpec: {
          childOrder: [
            0,
            1,
          ],
          childSize: 32,
          emptyChild: Uint8Array [],
          hash: 1,
          maxPrefixLength: 1,
          minPrefixLength: 1,
        },
        leafSpec: {
          hash: 1,
          length: 1,
          prefix: Uint8Array [
            00
          ],
          prehashKey: 0,
          prehashValue: 1,
        },
        maxDepth: 0,
        minDepth: 0,
      },
    ],
    trustLevel: {
      denominator: 3n,
      numerator: 1n,
    },
    trustingPeriod: {
      nanos: 0,
      seconds: 86400n,
    },
    unbondingPeriod: {
      nanos: 0,
      seconds: 172800n,
    },
    upgradePath: [
      'upgrade',
      'upgradedIBCState',
    ],
  },
  connectionInfo: {
    clientId: '07-tendermint-2',
    counterparty: {
      clientId: '07-tendermint-2',
      connectionId: 'connection-1',
      prefix: {
        keyPrefix: 'aWJj',
      },
    },
    delayPeriod: '0',
    id: 'connection-0',
    state: 'STATE_OPEN',
    versions: [
      {
        features: [
          'ORDER_ORDERED',
          'ORDER_UNORDERED',
        ],
        identifier: '1',
      },
    ],
  },
  transferChannels: [
    {
      channelId: 'channel-0',
      connectionHops: [
        'connection-0',
      ],
      counterparty: {
        channelId: 'channel-1',
        portId: 'transfer',
      },
      ordering: 'ORDER_UNORDERED',
      portId: 'transfer',
      state: 'STATE_OPEN',
      version: 'ics20-1',
    },
  ],
}

IBC Connections and Channels

{
  agoric: [
    {
      chainId: 'osmosis-test',
      connectionInfo: {
        clientId: '07-tendermint-2',
        counterparty: {
          clientId: '07-tendermint-2',
          connectionId: 'connection-1',
        },
        id: 'connection-0',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 831n,
        revisionNumber: 0n,
      },
      transferChannels: [
        {
          counterpartyChannelId: 'channel-1',
          counterpartyPortId: 'transfer',
          ordering: 'ORDER_UNORDERED',
          sourceChannelId: 'channel-0',
          sourcePortId: 'transfer',
          state: 'STATE_OPEN',
          version: 'ics20-1',
        },
      ],
    },
    {
      chainId: 'gaia-test',
      connectionInfo: {
        clientId: '07-tendermint-3',
        counterparty: {
          clientId: '07-tendermint-2',
          connectionId: 'connection-1',
        },
        id: 'connection-1',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 854n,
        revisionNumber: 0n,
      },
      transferChannels: [
        {
          counterpartyChannelId: 'channel-1',
          counterpartyPortId: 'transfer',
          ordering: 'ORDER_UNORDERED',
          sourceChannelId: 'channel-1',
          sourcePortId: 'transfer',
          state: 'STATE_OPEN',
          version: 'ics20-1',
        },
      ],
    },
  ],
  cosmos: [
    {
      chainId: 'osmosis-test',
      connectionInfo: {
        clientId: '07-tendermint-0',
        counterparty: {
          clientId: '07-tendermint-0',
          connectionId: 'connection-0',
        },
        id: 'connection-0',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 12056n,
        revisionNumber: 0n,
      },
      transferChannels: [
        {
          counterpartyChannelId: 'channel-0',
          counterpartyPortId: 'transfer',
          ordering: 'ORDER_UNORDERED',
          sourceChannelId: 'channel-0',
          sourcePortId: 'transfer',
          state: 'STATE_OPEN',
          version: 'ics20-1',
        },
      ],
    },
    {
      chainId: 'agoriclocal',
      connectionInfo: {
        clientId: '07-tendermint-2',
        counterparty: {
          clientId: '07-tendermint-3',
          connectionId: 'connection-1',
        },
        id: 'connection-1',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 113n,
        revisionNumber: 0n,
      },
      transferChannels: [
        {
          counterpartyChannelId: 'channel-1',
          counterpartyPortId: 'transfer',
          ordering: 'ORDER_UNORDERED',
          sourceChannelId: 'channel-1',
          sourcePortId: 'transfer',
          state: 'STATE_OPEN',
          version: 'ics20-1',
        },
      ],
    },
  ],
  osmosis: [
    {
      chainId: 'gaia-test',
      connectionInfo: {
        clientId: '07-tendermint-0',
        counterparty: {
          clientId: '07-tendermint-0',
          connectionId: 'connection-0',
        },
        id: 'connection-0',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 7836n,
        revisionNumber: 0n,
      },
      transferChannels: [
        {
          counterpartyChannelId: 'channel-0',
          counterpartyPortId: 'transfer',
          ordering: 'ORDER_UNORDERED',
          sourceChannelId: 'channel-0',
          sourcePortId: 'transfer',
          state: 'STATE_OPEN',
          version: 'ics20-1',
        },
      ],
    },
    {
      chainId: 'agoriclocal',
      connectionInfo: {
        clientId: '07-tendermint-2',
        counterparty: {
          clientId: '07-tendermint-2',
          connectionId: 'connection-0',
        },
        id: 'connection-1',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 110n,
        revisionNumber: 0n,
      },
      transferChannels: [
        {
          counterpartyChannelId: 'channel-0',
          counterpartyPortId: 'transfer',
          ordering: 'ORDER_UNORDERED',
          sourceChannelId: 'channel-1',
          sourcePortId: 'transfer',
          state: 'STATE_OPEN',
          version: 'ics20-1',
        },
      ],
    },
    {
      chainId: '�Ԟ',
      connectionInfo: {
        clientId: '09-localhost',
        counterparty: {
          clientId: '09-localhost',
          connectionId: 'connection-localhost',
        },
        id: 'connection-localhost',
        state: 'STATE_OPEN',
      },
      lastUpdated: {
        revisionHeight: 0n,
        revisionNumber: 0n,
      },
      transferChannels: [],
    },
  ],
}

stakeAtomParams

{
  controllerConnectionId: 'connection-1',
  counterpartyChannelId: 'channel-1',
  counterpartyPortId: 'transfer',
  hostConnectionId: 'connection-1',
  sourceChannelId: 'channel-1',
  sourcePortId: 'transfer',
}

Denom Info

Chain Info

{
  agoric: {
    bondDenom: 'ubld',
    denoms: [
      {
        denom: 'provisionpass',
        native: true,
      },
      {
        denom: 'sendpacketpass',
        native: true,
      },
      {
        denom: 'ubld',
        native: true,
      },
      {
        denom: 'uist',
        native: true,
      },
      {
        baseDenom: 'uion',
        denom: 'ibc/F7E92EE59B5428793F3EF5C1A4CB2494F61A9D0C9A69469D02390714A1372E16',
        path: 'transfer/channel-0',
      },
      {
        baseDenom: 'uosmo',
        denom: 'ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518',
        path: 'transfer/channel-0',
      },
      {
        baseDenom: 'uatom',
        denom: 'ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9',
        path: 'transfer/channel-1',
      },
    ],
  },
  cosmos: {
    bondDenom: 'uatom',
    denoms: [
      {
        denom: 'uatom',
        native: true,
      },
      {
        baseDenom: 'uion',
        denom: 'ibc/F7E92EE59B5428793F3EF5C1A4CB2494F61A9D0C9A69469D02390714A1372E16',
        path: 'transfer/channel-0',
      },
      {
        baseDenom: 'uosmo',
        denom: 'ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518',
        path: 'transfer/channel-0',
      },
      {
        baseDenom: 'ubld',
        denom: 'ibc/E7827844CB818EE9C4DB2C159F1543FF62B26213B44CE8029D5CEFE52F0EE596',
        path: 'transfer/channel-1',
      },
      {
        baseDenom: 'uist',
        denom: 'ibc/16CD81E12F05F5397CA2D580B4BA786A12A8F48B6FB3823D82EBE95D80B5287B',
        path: 'transfer/channel-1',
      },
    ],
  },
  osmosis: {
    bondDenom: 'uosmo',
    denoms: [
      {
        denom: 'uion',
        native: true,
      },
      {
        denom: 'uosmo',
        native: true,
      },
      {
        baseDenom: 'uatom',
        denom: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
        path: 'transfer/channel-0',
      },
      {
        baseDenom: 'ubld',
        denom: 'ibc/E7827844CB818EE9C4DB2C159F1543FF62B26213B44CE8029D5CEFE52F0EE596',
        path: 'transfer/channel-1',
      },
      {
        baseDenom: 'uist',
        denom: 'ibc/16CD81E12F05F5397CA2D580B4BA786A12A8F48B6FB3823D82EBE95D80B5287B',
        path: 'transfer/channel-1',
      },
    ],
  },
}

Allow Queries and Messages

Allow Queries and Messages

{
  agoric: {
    interchainAccountsParams: {
      allowMessages: [
        '/agoric.*',
        '/ibc.*',
        '/cosmos.[a-rt-z]*',
        '/cosmos.s[a-su-z]*',
      ],
      hostEnabled: true,
    },
    interchainQueryParams: {
      hostEnabled: false,
    },
  },
  cosmos: {
    interchainAccountsParams: {
      allowMessages: [],
      hostEnabled: true,
    },
    interchainQueryParams: {
      hostEnabled: false,
    },
  },
  osmosis: {
    interchainAccountsParams: {
      allowMessages: [
        '*',
      ],
      hostEnabled: true,
    },
    interchainQueryParams: {
      allowQueries: [
        '/cosmos.bank.v1beta1.Query/Balance',
        '/cosmos.staking.v1beta1.Query/Delegation',
      ],
      hostEnabled: true,
    },
  },
}