Skip to content
Draft
Changes from all commits
Commits
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
106 changes: 56 additions & 50 deletions src/types/chain/neutron-1/IRangeBlockNeutron1TrxMsg.ts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an automated generated comment
Block Data
network: neutron-1
height: 13015185
data:

[
  {
    "clientState": {
      "@type": "/ibc.lightclients.tendermint.v1.ClientState",
      "chainId": "penumbra-1",
      "trustLevel": {
        "numerator": "2",
        "denominator": "3"
      },
      "trustingPeriod": "403200s",
      "unbondingPeriod": "604800s",
      "maxClockDrift": "15s",
      "frozenHeight": {},
      "latestHeight": {
        "revisionNumber": "1",
        "revisionHeight": "423107"
      },
      "proofSpecs": [
        {
          "leafSpec": {
            "hash": "SHA256",
            "prehashKey": "SHA256",
            "prehashValue": "SHA256",
            "prefix": "Sk1UOjpMZWFmTm9kZQ=="
          },
          "innerSpec": {
            "childOrder": [
              0,
              1
            ],
            "childSize": 32,
            "minPrefixLength": 16,
            "maxPrefixLength": 16,
            "emptyChild": "U1BBUlNFX01FUktMRV9QTEFDRUhPTERFUl9IQVNIX18=",
            "hash": "SHA256"
          },
          "maxDepth": 64,
          "prehashKeyBeforeComparison": true
        },
        {
          "leafSpec": {
            "hash": "SHA256",
            "prehashKey": "SHA256",
            "prehashValue": "SHA256",
            "prefix": "Sk1UOjpMZWFmTm9kZQ=="
          },
          "innerSpec": {
            "childOrder": [
              0,
              1
            ],
            "childSize": 32,
            "minPrefixLength": 16,
            "maxPrefixLength": 16,
            "emptyChild": "U1BBUlNFX01FUktMRV9QTEFDRUhPTERFUl9IQVNIX18=",
            "hash": "SHA256"
          },
          "maxDepth": 64,
          "prehashKeyBeforeComparison": true
        }
      ],
      "upgradePath": [
        "upgrade",
        "upgradedIBCState"
      ],
      "allowUpdateAfterExpiry": true,
      "allowUpdateAfterMisbehaviour": true
    },
    "consensusState": {
      "@type": "/ibc.lightclients.tendermint.v1.ConsensusState",
      "timestamp": "2024-08-01T15:20:30.955253157Z",
      "root": {
        "hash": "v0zofwYO330cbT+TO+0TPaVWJIVHjuCiLMbCTeRBpBY="
      },
      "nextValidatorsHash": "YcMJO0oTjLqCkxpD9Efg8CXrvm5K2x5v8McpxKhZbPI="
    },
    "signer": "neutron1yghndrffay859ma2ue4pa2cltw640vtaqx2096"
  }
]

errors:

[
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[0].leafSpec.length",
    "expected": "string"
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[0].innerSpec.emptyChild",
    "expected": "undefined",
    "value": "U1BBUlNFX01FUktMRV9QTEFDRUhPTERFUl9IQVNIX18="
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[0].maxDepth",
    "expected": "undefined",
    "value": 64
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[0].prehashKeyBeforeComparison",
    "expected": "undefined",
    "value": true
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[1].leafSpec.length",
    "expected": "string"
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[1].innerSpec.emptyChild",
    "expected": "undefined",
    "value": "U1BBUlNFX01FUktMRV9QTEFDRUhPTERFUl9IQVNIX18="
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[1].maxDepth",
    "expected": "undefined",
    "value": 64
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.proofSpecs[1].prehashKeyBeforeComparison",
    "expected": "undefined",
    "value": true
  }
]

interface:

export interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClient {
    type: string;
    data: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientData;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientData {
    clientState: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientClientState;
    consensusState: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientConsensusState;
    signer: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientClientState {
    '@type': string;
    chainId: string;
    trustLevel: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientTrustLevel;
    trustingPeriod: string;
    unbondingPeriod: string;
    maxClockDrift: string;
    frozenHeight: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientFrozenHeight;
    latestHeight: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLatestHeight;
    proofSpecs: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientProofSpecsItem[];
    upgradePath: string[];
    allowUpdateAfterExpiry: boolean;
    allowUpdateAfterMisbehaviour: boolean;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientTrustLevel {
    numerator: string;
    denominator: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientFrozenHeight {
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLatestHeight {
    revisionNumber: string;
    revisionHeight: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientProofSpecsItem {
    leafSpec: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLeafSpec;
    innerSpec: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientInnerSpec;
    maxDepth: number;
    prehashKeyBeforeComparison: boolean;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLeafSpec {
    hash: string;
    prehashKey: string;
    prehashValue: string;
    prefix: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientInnerSpec {
    childOrder: number[];
    childSize: number;
    minPrefixLength: number;
    maxPrefixLength: number;
    emptyChild: string;
    hash: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientConsensusState {
    '@type': string;
    timestamp: string;
    root: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientRoot;
    nextValidatorsHash: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientRoot {
    hash: string;
}

Original file line number Diff line number Diff line change
Expand Up @@ -219,58 +219,64 @@ export interface Neutron1TrxMsgIbcCoreChannelV1MsgTimeout
}

// types for mgs type:: /ibc.core.client.v1.MsgCreateClient
export interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClient
extends IRangeMessage {
type: Neutron1TrxMsgTypes.IbcCoreClientV1MsgCreateClient;
data: {
clientState: {
'@type': string;
chainId: string;
trustLevel: {
numerator: string;
denominator: string;
};
trustingPeriod: string;
unbondingPeriod: string;
maxClockDrift: string;
frozenHeight?: {
revisionHeight?: string;
revisionNumber?: string;
};
latestHeight: {
revisionNumber: string;
revisionHeight: string;
};
proofSpecs: {
leafSpec: {
hash: string;
prehashValue: string;
length: string;
prefix: string;
};
innerSpec: {
childOrder: number[];
childSize: number;
minPrefixLength: number;
maxPrefixLength: number;
hash: string;
};
}[];
upgradePath: string[];
allowUpdateAfterExpiry: boolean;
allowUpdateAfterMisbehaviour: boolean;
};
consensusState: {
'@type': string;
timestamp: string;
root: {
hash: string;
};
nextValidatorsHash: string;
};
export interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClient {
type: string;
data: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientData;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientData {
clientState: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientClientState;
consensusState: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientConsensusState;
signer: string;
};
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientClientState {
'@type': string;
chainId: string;
trustLevel: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientTrustLevel;
trustingPeriod: string;
unbondingPeriod: string;
maxClockDrift: string;
frozenHeight: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientFrozenHeight;
latestHeight: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLatestHeight;
proofSpecs: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientProofSpecsItem[];
upgradePath: string[];
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientTrustLevel {
numerator: string;
denominator: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientFrozenHeight {
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLatestHeight {
revisionNumber: string;
revisionHeight: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientProofSpecsItem {
leafSpec: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLeafSpec;
innerSpec: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientInnerSpec;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientLeafSpec {
hash: string;
prehashValue: string;
length: string;
prefix: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientInnerSpec {
childOrder: number[];
childSize: number;
minPrefixLength: number;
maxPrefixLength: number;
hash: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientConsensusState {
'@type': string;
timestamp: string;
root: Neutron1TrxMsgIbcCoreClientV1MsgCreateClientRoot;
nextValidatorsHash: string;
}
interface Neutron1TrxMsgIbcCoreClientV1MsgCreateClientRoot {
hash: string;
}


// types for mgs type:: ibc.core.client.v1.MsgUpdateClient
export interface Neutron1TrxMsgIbcCoreClientV1MsgUpdateClient
Expand Down