{ "encoding": "1", "types": [ { "typeId": 0, "type": "()", "components": [], "typeParameters": null }, { "typeId": 1, "type": "(_, _)", "components": [ { "name": "__tuple_element", "type": 10, "typeArguments": null }, { "name": "__tuple_element", "type": 17, "typeArguments": null } ], "typeParameters": null }, { "typeId": 2, "type": "(_, _)", "components": [ { "name": "__tuple_element", "type": 11, "typeArguments": null }, { "name": "__tuple_element", "type": 11, "typeArguments": null } ], "typeParameters": null }, { "typeId": 3, "type": "(_, _, _)", "components": [ { "name": "__tuple_element", "type": 11, "typeArguments": null }, { "name": "__tuple_element", "type": 11, "typeArguments": null }, { "name": "__tuple_element", "type": 6, "typeArguments": [ { "name": "", "type": 12, "typeArguments": null } ] } ], "typeParameters": null }, { "typeId": 4, "type": "b256", "components": null, "typeParameters": null }, { "typeId": 5, "type": "enum AuthError", "components": [ { "name": "Unauthorized", "type": 0, "typeArguments": null } ], "typeParameters": null }, { "typeId": 6, "type": "enum Option", "components": [ { "name": "None", "type": 0, "typeArguments": null }, { "name": "Some", "type": 8, "typeArguments": null } ], "typeParameters": [ 8 ] }, { "typeId": 7, "type": "enum OrderbookError", "components": [ { "name": "MarketAlreadyRegistered", "type": 0, "typeArguments": null }, { "name": "MarketNotRegistered", "type": 0, "typeArguments": null } ], "typeParameters": null }, { "typeId": 8, "type": "generic T", "components": null, "typeParameters": null }, { "typeId": 9, "type": "raw untyped ptr", "components": null, "typeParameters": null }, { "typeId": 10, "type": "struct Address", "components": [ { "name": "bits", "type": 4, "typeArguments": null } ], "typeParameters": null }, { "typeId": 11, "type": "struct AssetId", "components": [ { "name": "bits", "type": 4, "typeArguments": null } ], "typeParameters": null }, { "typeId": 12, "type": "struct ContractId", "components": [ { "name": "bits", "type": 4, "typeArguments": null } ], "typeParameters": null }, { "typeId": 13, "type": "struct MarketRegisterEvent", "components": [ { "name": "base", "type": 11, "typeArguments": null }, { "name": "quote", "type": 11, "typeArguments": null }, { "name": "market", "type": 12, "typeArguments": null } ], "typeParameters": null }, { "typeId": 14, "type": "struct MarketUnregisterEvent", "components": [ { "name": "base", "type": 11, "typeArguments": null }, { "name": "quote", "type": 11, "typeArguments": null }, { "name": "market", "type": 12, "typeArguments": null } ], "typeParameters": null }, { "typeId": 15, "type": "struct RawVec", "components": [ { "name": "ptr", "type": 9, "typeArguments": null }, { "name": "cap", "type": 18, "typeArguments": null } ], "typeParameters": [ 8 ] }, { "typeId": 16, "type": "struct Vec", "components": [ { "name": "buf", "type": 15, "typeArguments": [ { "name": "", "type": 8, "typeArguments": null } ] }, { "name": "len", "type": 18, "typeArguments": null } ], "typeParameters": [ 8 ] }, { "typeId": 17, "type": "u32", "components": null, "typeParameters": null }, { "typeId": 18, "type": "u64", "components": null, "typeParameters": null } ], "functions": [ { "inputs": [], "name": "config", "output": { "name": "", "type": 1, "typeArguments": null }, "attributes": null }, { "inputs": [ { "name": "market_assets", "type": 16, "typeArguments": [ { "name": "", "type": 2, "typeArguments": null } ] } ], "name": "markets", "output": { "name": "", "type": 16, "typeArguments": [ { "name": "", "type": 3, "typeArguments": null } ] }, "attributes": [ { "name": "storage", "arguments": [ "read" ] } ] }, { "inputs": [ { "name": "market", "type": 12, "typeArguments": null } ], "name": "register_market", "output": { "name": "", "type": 0, "typeArguments": null }, "attributes": [ { "name": "storage", "arguments": [ "read", "write" ] } ] }, { "inputs": [ { "name": "market", "type": 12, "typeArguments": null } ], "name": "unregister_market", "output": { "name": "", "type": 0, "typeArguments": null }, "attributes": [ { "name": "storage", "arguments": [ "write" ] } ] } ], "loggedTypes": [ { "logId": "487470194140633944", "loggedType": { "name": "", "type": 5, "typeArguments": [] } }, { "logId": "4518596228011428544", "loggedType": { "name": "", "type": 7, "typeArguments": [] } }, { "logId": "16526329487357911494", "loggedType": { "name": "", "type": 13, "typeArguments": [] } }, { "logId": "8687802410378175690", "loggedType": { "name": "", "type": 14, "typeArguments": [] } } ], "messagesTypes": [], "configurables": [ { "name": "OWNER", "configurableType": { "name": "", "type": 10, "typeArguments": [] }, "offset": 16344 }, { "name": "VERSION", "configurableType": { "name": "", "type": 17, "typeArguments": null }, "offset": 16376 } ] }