{
  "source": {
    "hash": "0x05cc2edbb7547b2311d2a442aac3c183e055bf1f3faa96568b4a68e3ac5e17f0",
    "language": "ink! 4.2.0",
    "compiler": "rustc 1.69.0",
    "build_info": {
      "build_mode": "Debug",
      "cargo_contract_version": "3.0.1",
      "rust_toolchain": "stable-x86_64-unknown-linux-gnu",
      "wasm_opt_settings": {
        "keep_debug_symbols": false,
        "optimization_passes": "Zero"
      }
    }
  },
  "contract": {
    "name": "mother",
    "version": "4.2.0",
    "authors": [
      "Parity Technologies <admin@parity.io>"
    ],
    "description": "Mother of all contracts"
  },
  "spec": {
    "constructors": [
      {
        "args": [
          {
            "label": "auction",
            "type": {
              "displayName": [
                "Auction"
              ],
              "type": 13
            }
          }
        ],
        "default": false,
        "docs": [],
        "label": "new",
        "payable": false,
        "returnType": {
          "displayName": [
            "ink_primitives",
            "ConstructorResult"
          ],
          "type": 18
        },
        "selector": "0x9bae9d5e"
      },
      {
        "args": [],
        "default": false,
        "docs": [],
        "label": "new_default",
        "payable": false,
        "returnType": {
          "displayName": [
            "ink_primitives",
            "ConstructorResult"
          ],
          "type": 18
        },
        "selector": "0x61ef7e3e"
      },
      {
        "args": [
          {
            "label": "fail",
            "type": {
              "displayName": [
                "bool"
              ],
              "type": 11
            }
          }
        ],
        "default": false,
        "docs": [
          "Demonstrates the ability to fail a constructor safely."
        ],
        "label": "failed_new",
        "payable": false,
        "returnType": {
          "displayName": [
            "ink_primitives",
            "ConstructorResult"
          ],
          "type": 21
        },
        "selector": "0x87a495f6"
      }
    ],
    "docs": [],
    "environment": {
      "accountId": {
        "displayName": [
          "AccountId"
        ],
        "type": 8
      },
      "balance": {
        "displayName": [
          "Balance"
        ],
        "type": 9
      },
      "blockNumber": {
        "displayName": [
          "BlockNumber"
        ],
        "type": 10
      },
      "chainExtension": {
        "displayName": [
          "ChainExtension"
        ],
        "type": 27
      },
      "hash": {
        "displayName": [
          "Hash"
        ],
        "type": 1
      },
      "maxEventTopics": 4,
      "timestamp": {
        "displayName": [
          "Timestamp"
        ],
        "type": 26
      }
    },
    "events": [
      {
        "args": [
          {
            "docs": [],
            "indexed": false,
            "label": "auction",
            "type": {
              "displayName": [
                "Auction"
              ],
              "type": 13
            }
          }
        ],
        "docs": [
          "Event emitted when an auction being echoed."
        ],
        "label": "AuctionEchoed"
      }
    ],
    "lang_error": {
      "displayName": [
        "ink",
        "LangError"
      ],
      "type": 20
    },
    "messages": [
      {
        "args": [
          {
            "label": "auction",
            "type": {
              "displayName": [
                "Auction"
              ],
              "type": 13
            }
          }
        ],
        "default": false,
        "docs": [
          " Takes an auction data struct as input and returns it back."
        ],
        "label": "echo_auction",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 24
        },
        "selector": "0xbc7ac4cf"
      },
      {
        "args": [
          {
            "label": "fail",
            "type": {
              "displayName": [
                "Option"
              ],
              "type": 25
            }
          }
        ],
        "default": false,
        "docs": [
          " Fails contract execution in the required way."
        ],
        "label": "revert_or_trap",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 21
        },
        "selector": "0xe62a1df5"
      },
      {
        "args": [
          {
            "label": "_message",
            "type": {
              "displayName": [
                "String"
              ],
              "type": 0
            }
          }
        ],
        "default": false,
        "docs": [
          " Prints the specified string into node's debug log."
        ],
        "label": "debug_log",
        "mutates": true,
        "payable": false,
        "returnType": {
          "displayName": [
            "ink",
            "MessageResult"
          ],
          "type": 18
        },
        "selector": "0x238582df"
      }
    ]
  },
  "storage": {
    "root": {
      "layout": {
        "struct": {
          "fields": [
            {
              "layout": {
                "struct": {
                  "fields": [
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 0
                        }
                      },
                      "name": "name"
                    },
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 1
                        }
                      },
                      "name": "subject"
                    },
                    {
                      "layout": {
                        "struct": {
                          "fields": [
                            {
                              "layout": {
                                "leaf": {
                                  "key": "0x00000000",
                                  "ty": 4
                                }
                              },
                              "name": "0"
                            }
                          ],
                          "name": "Bids"
                        }
                      },
                      "name": "bids"
                    },
                    {
                      "layout": {
                        "array": {
                          "layout": {
                            "leaf": {
                              "key": "0x00000000",
                              "ty": 10
                            }
                          },
                          "len": 3,
                          "offset": "0x00000000"
                        }
                      },
                      "name": "terms"
                    },
                    {
                      "layout": {
                        "enum": {
                          "dispatchKey": "0x00000000",
                          "name": "Status",
                          "variants": {
                            "0": {
                              "fields": [],
                              "name": "NotStarted"
                            },
                            "1": {
                              "fields": [],
                              "name": "OpeningPeriod"
                            },
                            "2": {
                              "fields": [
                                {
                                  "layout": {
                                    "leaf": {
                                      "key": "0x00000000",
                                      "ty": 10
                                    }
                                  },
                                  "name": "0"
                                }
                              ],
                              "name": "EndingPeriod"
                            },
                            "3": {
                              "fields": [
                                {
                                  "layout": {
                                    "enum": {
                                      "dispatchKey": "0x00000000",
                                      "name": "Outline",
                                      "variants": {
                                        "0": {
                                          "fields": [],
                                          "name": "NoWinner"
                                        },
                                        "1": {
                                          "fields": [],
                                          "name": "WinnerDetected"
                                        },
                                        "2": {
                                          "fields": [],
                                          "name": "PayoutCompleted"
                                        }
                                      }
                                    }
                                  },
                                  "name": "0"
                                }
                              ],
                              "name": "Ended"
                            },
                            "4": {
                              "fields": [
                                {
                                  "layout": {
                                    "leaf": {
                                      "key": "0x00000000",
                                      "ty": 10
                                    }
                                  },
                                  "name": "0"
                                }
                              ],
                              "name": "RfDelay"
                            }
                          }
                        }
                      },
                      "name": "status"
                    },
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 11
                        }
                      },
                      "name": "finalized"
                    },
                    {
                      "layout": {
                        "leaf": {
                          "key": "0x00000000",
                          "ty": 12
                        }
                      },
                      "name": "vector"
                    }
                  ],
                  "name": "Auction"
                }
              },
              "name": "auction"
            },
            {
              "layout": {
                "root": {
                  "layout": {
                    "leaf": {
                      "key": "0x013a6e2b",
                      "ty": 9
                    }
                  },
                  "root_key": "0x013a6e2b"
                }
              },
              "name": "balances"
            }
          ],
          "name": "Mother"
        }
      },
      "root_key": "0x00000000"
    }
  },
  "types": [
    {
      "id": 0,
      "type": {
        "def": {
          "primitive": "str"
        }
      }
    },
    {
      "id": 1,
      "type": {
        "def": {
          "composite": {
            "fields": [
              {
                "type": 2,
                "typeName": "[u8; 32]"
              }
            ]
          }
        },
        "path": [
          "ink_primitives",
          "types",
          "Hash"
        ]
      }
    },
    {
      "id": 2,
      "type": {
        "def": {
          "array": {
            "len": 32,
            "type": 3
          }
        }
      }
    },
    {
      "id": 3,
      "type": {
        "def": {
          "primitive": "u8"
        }
      }
    },
    {
      "id": 4,
      "type": {
        "def": {
          "sequence": {
            "type": 5
          }
        }
      }
    },
    {
      "id": 5,
      "type": {
        "def": {
          "sequence": {
            "type": 6
          }
        }
      }
    },
    {
      "id": 6,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "None"
              },
              {
                "fields": [
                  {
                    "type": 7
                  }
                ],
                "index": 1,
                "name": "Some"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 7
          }
        ],
        "path": [
          "Option"
        ]
      }
    },
    {
      "id": 7,
      "type": {
        "def": {
          "tuple": [
            8,
            9
          ]
        }
      }
    },
    {
      "id": 8,
      "type": {
        "def": {
          "composite": {
            "fields": [
              {
                "type": 2,
                "typeName": "[u8; 32]"
              }
            ]
          }
        },
        "path": [
          "ink_primitives",
          "types",
          "AccountId"
        ]
      }
    },
    {
      "id": 9,
      "type": {
        "def": {
          "primitive": "u128"
        }
      }
    },
    {
      "id": 10,
      "type": {
        "def": {
          "primitive": "u32"
        }
      }
    },
    {
      "id": 11,
      "type": {
        "def": {
          "primitive": "bool"
        }
      }
    },
    {
      "id": 12,
      "type": {
        "def": {
          "sequence": {
            "type": 3
          }
        }
      }
    },
    {
      "id": 13,
      "type": {
        "def": {
          "composite": {
            "fields": [
              {
                "name": "name",
                "type": 0,
                "typeName": "String"
              },
              {
                "name": "subject",
                "type": 1,
                "typeName": "Hash"
              },
              {
                "name": "bids",
                "type": 14,
                "typeName": "Bids"
              },
              {
                "name": "terms",
                "type": 15,
                "typeName": "[BlockNumber; 3]"
              },
              {
                "name": "status",
                "type": 16,
                "typeName": "Status"
              },
              {
                "name": "finalized",
                "type": 11,
                "typeName": "bool"
              },
              {
                "name": "vector",
                "type": 12,
                "typeName": "Vec<u8>"
              }
            ]
          }
        },
        "path": [
          "mother",
          "mother",
          "Auction"
        ]
      }
    },
    {
      "id": 14,
      "type": {
        "def": {
          "composite": {
            "fields": [
              {
                "type": 4,
                "typeName": "Vec<Vec<Option<(AccountId, Balance)>>>"
              }
            ]
          }
        },
        "path": [
          "mother",
          "mother",
          "Bids"
        ]
      }
    },
    {
      "id": 15,
      "type": {
        "def": {
          "array": {
            "len": 3,
            "type": 10
          }
        }
      }
    },
    {
      "id": 16,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "NotStarted"
              },
              {
                "index": 1,
                "name": "OpeningPeriod"
              },
              {
                "fields": [
                  {
                    "type": 10,
                    "typeName": "BlockNumber"
                  }
                ],
                "index": 2,
                "name": "EndingPeriod"
              },
              {
                "fields": [
                  {
                    "type": 17,
                    "typeName": "Outline"
                  }
                ],
                "index": 3,
                "name": "Ended"
              },
              {
                "fields": [
                  {
                    "type": 10,
                    "typeName": "BlockNumber"
                  }
                ],
                "index": 4,
                "name": "RfDelay"
              }
            ]
          }
        },
        "path": [
          "mother",
          "mother",
          "Status"
        ]
      }
    },
    {
      "id": 17,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "NoWinner"
              },
              {
                "index": 1,
                "name": "WinnerDetected"
              },
              {
                "index": 2,
                "name": "PayoutCompleted"
              }
            ]
          }
        },
        "path": [
          "mother",
          "mother",
          "Outline"
        ]
      }
    },
    {
      "id": 18,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 19
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 20
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 19
          },
          {
            "name": "E",
            "type": 20
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 19,
      "type": {
        "def": {
          "tuple": []
        }
      }
    },
    {
      "id": 20,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 1,
                "name": "CouldNotReadInput"
              }
            ]
          }
        },
        "path": [
          "ink_primitives",
          "LangError"
        ]
      }
    },
    {
      "id": 21,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 22
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 20
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 22
          },
          {
            "name": "E",
            "type": 20
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 22,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 19
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 23
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 19
          },
          {
            "name": "E",
            "type": 23
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 23,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 0,
                    "typeName": "String"
                  }
                ],
                "index": 0,
                "name": "Revert"
              },
              {
                "index": 1,
                "name": "Panic"
              }
            ]
          }
        },
        "path": [
          "mother",
          "mother",
          "Failure"
        ]
      }
    },
    {
      "id": 24,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "fields": [
                  {
                    "type": 13
                  }
                ],
                "index": 0,
                "name": "Ok"
              },
              {
                "fields": [
                  {
                    "type": 20
                  }
                ],
                "index": 1,
                "name": "Err"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 13
          },
          {
            "name": "E",
            "type": 20
          }
        ],
        "path": [
          "Result"
        ]
      }
    },
    {
      "id": 25,
      "type": {
        "def": {
          "variant": {
            "variants": [
              {
                "index": 0,
                "name": "None"
              },
              {
                "fields": [
                  {
                    "type": 23
                  }
                ],
                "index": 1,
                "name": "Some"
              }
            ]
          }
        },
        "params": [
          {
            "name": "T",
            "type": 23
          }
        ],
        "path": [
          "Option"
        ]
      }
    },
    {
      "id": 26,
      "type": {
        "def": {
          "primitive": "u64"
        }
      }
    },
    {
      "id": 27,
      "type": {
        "def": {
          "variant": {}
        },
        "path": [
          "ink_env",
          "types",
          "NoChainExtension"
        ]
      }
    }
  ],
  "version": "4"
}