Skip to content

[auto-fix] interface type updated for Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContract #247

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

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from
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
26 changes: 17 additions & 9 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: 12846985
data:

[
  {
    "sender": "neutron1utv6r92w5w0s4g37qr8qavx8jgfeus6yyux2hs",
    "admin": "neutron1utv6r92w5w0s4g37qr8qavx8jgfeus6yyux2hs",
    "codeId": "1635",
    "label": "cosmoburn ibc transfer 0.1",
    "msg": {},
    "funds": [
      {
        "denom": "untrn",
        "amount": "1000"
      }
    ]
  }
]

errors:

[
  {
    "path": "$input.transactions[0].messages[0].data.funds",
    "expected": "undefined",
    "value": [
      {
        "denom": "untrn",
        "amount": "1000"
      }
    ]
  }
]

interface:

export interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContract {
    type: string;
    data: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractData;
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractData {
    sender: string;
    admin: string;
    codeId: string;
    label: string;
    msg: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractMsg;
    funds: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractFundsItem[];
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractMsg {
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractFundsItem {
    denom: string;
    amount: string;
}

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: 12847546
data:

[
  {
    "sender": "neutron1utv6r92w5w0s4g37qr8qavx8jgfeus6yyux2hs",
    "admin": "neutron1utv6r92w5w0s4g37qr8qavx8jgfeus6yyux2hs",
    "codeId": "1641",
    "label": "cosmoburn funds dist 0.1",
    "msg": {
      "tracker_denom": "factory/neutron1utv6r92w5w0s4g37qr8qavx8jgfeus6yyux2hs/simon",
      "admin_addr": "neutron1utv6r92w5w0s4g37qr8qavx8jgfeus6yyux2hs",
      "tracker_addr": "neutron1jaleqjr625y24sphfrydcmrw7u0c6m2jawwq645wwxvfv063s2msj5vnm9",
      "distrib_strategy": "DistribReceivedCoins",
      "treasury_addr": "neutron1l3k7yexpcchttfestfnfdvfjqml5pfeajrj5ql"
    },
    "funds": [
      {
        "denom": "untrn",
        "amount": "1000"
      }
    ]
  }
]

errors:

[
  {
    "path": "$input.transactions[0].messages[0].data.funds",
    "expected": "undefined",
    "value": [
      {
        "denom": "untrn",
        "amount": "1000"
      }
    ]
  }
]

interface:

export interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContract {
    type: string;
    data: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractData;
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractData {
    sender: string;
    admin: string;
    codeId: string;
    label: string;
    msg: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractMsg;
    funds: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractFundsItem[];
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractMsg {
    tracker_denom: string;
    admin_addr: string;
    tracker_addr: string;
    distrib_strategy: string;
    treasury_addr: string;
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractFundsItem {
    denom: string;
    amount: string;
}

Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,25 @@ export interface Neutron1TrxMsgCosmwasmWasmV1MsgExecuteContract
}

// types for msg type:: /cosmwasm.wasm.v1.MsgInstantiateContract
export interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContract
extends IRangeMessage {
type: Neutron1TrxMsgTypes.CosmwasmWasmV1MsgInstantiateContract;
data: {
admin?: string;
label: string;
codeId: string;
export interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContract {
type: string;
data: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractData;
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractData {
sender: string;
msg: Record<string | number | symbol, unknown>;
};
admin: string;
codeId: string;
label: string;
msg: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractMsg;
funds: Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractFundsItem[];
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractMsg {
}
interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContractFundsItem {
denom: string;
amount: string;
}


// types for msg type:: /cosmwasm.wasm.v1.MsgInstantiateContract2
export interface Neutron1TrxMsgCosmwasmWasmV1MsgInstantiateContract2
Expand Down