Skip to content

Conversation

@gurbaj5124871
Copy link
Contributor

This is an automated generated pr
changelog

  • auto-fix: interface type updated for Neutron1TrxMsgIbcCoreClientV1MsgCreateClient

Block Data
network: neutron-1
height: 12701628

errors

[
  {
    "path": "$input.transactions[0].messages[0].data.clientState.allowUpdateAfterExpiry",
    "expected": "boolean"
  },
  {
    "path": "$input.transactions[0].messages[0].data.clientState.allowUpdateAfterMisbehaviour",
    "expected": "boolean"
  }
]

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants