| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376 |
- {
- "source": {
- "hash": "0xd3f781649eacf23e57a65b0dd8f59142c92e6e2cd4656da874a594431d7399a9",
- "language": "ink! 5.0.0",
- "compiler": "rustc 1.73.0",
- "build_info": {
- "build_mode": "Debug",
- "cargo_contract_version": "4.0.2",
- "rust_toolchain": "stable-x86_64-unknown-linux-gnu",
- "wasm_opt_settings": {
- "keep_debug_symbols": false,
- "optimization_passes": "Z"
- }
- }
- },
- "contract": {
- "name": "mother",
- "version": "5.0.0",
- "authors": [
- "Parity Technologies <admin@parity.io>"
- ],
- "description": "Mother of all contracts"
- },
- "image": null,
- "spec": {
- "constructors": [
- {
- "args": [
- {
- "label": "auction",
- "type": {
- "displayName": [
- "Auction"
- ],
- "type": 24
- }
- }
- ],
- "default": false,
- "docs": [],
- "label": "new",
- "payable": false,
- "returnType": {
- "displayName": [
- "ink_primitives",
- "ConstructorResult"
- ],
- "type": 29
- },
- "selector": "0x9bae9d5e"
- },
- {
- "args": [],
- "default": false,
- "docs": [],
- "label": "new_default",
- "payable": false,
- "returnType": {
- "displayName": [
- "ink_primitives",
- "ConstructorResult"
- ],
- "type": 29
- },
- "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": 31
- },
- "selector": "0x87a495f6"
- }
- ],
- "docs": [],
- "environment": {
- "accountId": {
- "displayName": [
- "AccountId"
- ],
- "type": 8
- },
- "balance": {
- "displayName": [
- "Balance"
- ],
- "type": 9
- },
- "blockNumber": {
- "displayName": [
- "BlockNumber"
- ],
- "type": 10
- },
- "chainExtension": {
- "displayName": [
- "ChainExtension"
- ],
- "type": 38
- },
- "hash": {
- "displayName": [
- "Hash"
- ],
- "type": 1
- },
- "maxEventTopics": 4,
- "staticBufferSize": 16384,
- "timestamp": {
- "displayName": [
- "Timestamp"
- ],
- "type": 37
- }
- },
- "events": [
- {
- "args": [
- {
- "docs": [],
- "indexed": false,
- "label": "auction",
- "type": {
- "displayName": [
- "Auction"
- ],
- "type": 24
- }
- }
- ],
- "docs": [
- "Event emitted when an auction being echoed."
- ],
- "label": "AuctionEchoed",
- "module_path": "mother::mother",
- "signature_topic": "0x9f3c1597e0c1071a300ddb58b0474976b0d066c9a445c8a4677e5cebb5f8980a"
- }
- ],
- "lang_error": {
- "displayName": [
- "ink",
- "LangError"
- ],
- "type": 30
- },
- "messages": [
- {
- "args": [
- {
- "label": "auction",
- "type": {
- "displayName": [
- "Auction"
- ],
- "type": 24
- }
- }
- ],
- "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": 34
- },
- "selector": "0xbc7ac4cf"
- },
- {
- "args": [
- {
- "label": "fail",
- "type": {
- "displayName": [
- "Option"
- ],
- "type": 35
- }
- }
- ],
- "default": false,
- "docs": [
- " Fails contract execution in the required way."
- ],
- "label": "revert_or_trap",
- "mutates": true,
- "payable": false,
- "returnType": {
- "displayName": [
- "ink",
- "MessageResult"
- ],
- "type": 31
- },
- "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": 29
- },
- "selector": "0x238582df"
- },
- {
- "args": [
- {
- "label": "message",
- "type": {
- "displayName": [
- "String"
- ],
- "type": 0
- }
- }
- ],
- "default": false,
- "docs": [
- " Mutates the input string to return \"Hello, { name }\""
- ],
- "label": "mut_hello_world",
- "mutates": false,
- "payable": false,
- "returnType": {
- "displayName": [
- "ink",
- "MessageResult"
- ],
- "type": 36
- },
- "selector": "0x23c47128"
- }
- ]
- },
- "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": "0x2b6e3a01",
- "ty": 9
- }
- },
- "root_key": "0x2b6e3a01",
- "ty": 13
- }
- },
- "name": "balances"
- },
- {
- "layout": {
- "root": {
- "layout": {
- "leaf": {
- "key": "0x8482a36e",
- "ty": 0
- }
- },
- "root_key": "0x8482a36e",
- "ty": 18
- }
- },
- "name": "log"
- }
- ],
- "name": "Mother"
- }
- },
- "root_key": "0x00000000",
- "ty": 23
- }
- },
- "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": {}
- },
- "params": [
- {
- "name": "K",
- "type": 8
- },
- {
- "name": "V",
- "type": 9
- },
- {
- "name": "KeyType",
- "type": 14
- }
- ],
- "path": [
- "ink_storage",
- "lazy",
- "mapping",
- "Mapping"
- ]
- }
- },
- {
- "id": 14,
- "type": {
- "def": {
- "composite": {}
- },
- "params": [
- {
- "name": "L",
- "type": 15
- },
- {
- "name": "R",
- "type": 16
- }
- ],
- "path": [
- "ink_storage_traits",
- "impls",
- "ResolverKey"
- ]
- }
- },
- {
- "id": 15,
- "type": {
- "def": {
- "composite": {}
- },
- "path": [
- "ink_storage_traits",
- "impls",
- "AutoKey"
- ]
- }
- },
- {
- "id": 16,
- "type": {
- "def": {
- "composite": {}
- },
- "params": [
- {
- "name": "ParentKey",
- "type": 17
- }
- ],
- "path": [
- "ink_storage_traits",
- "impls",
- "ManualKey"
- ]
- }
- },
- {
- "id": 17,
- "type": {
- "def": {
- "tuple": []
- }
- }
- },
- {
- "id": 18,
- "type": {
- "def": {
- "composite": {
- "fields": [
- {
- "name": "len",
- "type": 21,
- "typeName": "Lazy<u32, KeyType>"
- },
- {
- "name": "elements",
- "type": 22,
- "typeName": "Mapping<u32, V, KeyType>"
- }
- ]
- }
- },
- "params": [
- {
- "name": "V",
- "type": 0
- },
- {
- "name": "KeyType",
- "type": 19
- }
- ],
- "path": [
- "ink_storage",
- "lazy",
- "vec",
- "StorageVec"
- ]
- }
- },
- {
- "id": 19,
- "type": {
- "def": {
- "composite": {}
- },
- "params": [
- {
- "name": "L",
- "type": 15
- },
- {
- "name": "R",
- "type": 20
- }
- ],
- "path": [
- "ink_storage_traits",
- "impls",
- "ResolverKey"
- ]
- }
- },
- {
- "id": 20,
- "type": {
- "def": {
- "composite": {}
- },
- "params": [
- {
- "name": "ParentKey",
- "type": 17
- }
- ],
- "path": [
- "ink_storage_traits",
- "impls",
- "ManualKey"
- ]
- }
- },
- {
- "id": 21,
- "type": {
- "def": {
- "composite": {}
- },
- "params": [
- {
- "name": "V",
- "type": 10
- },
- {
- "name": "KeyType",
- "type": 19
- }
- ],
- "path": [
- "ink_storage",
- "lazy",
- "Lazy"
- ]
- }
- },
- {
- "id": 22,
- "type": {
- "def": {
- "composite": {}
- },
- "params": [
- {
- "name": "K",
- "type": 10
- },
- {
- "name": "V",
- "type": 0
- },
- {
- "name": "KeyType",
- "type": 19
- }
- ],
- "path": [
- "ink_storage",
- "lazy",
- "mapping",
- "Mapping"
- ]
- }
- },
- {
- "id": 23,
- "type": {
- "def": {
- "composite": {
- "fields": [
- {
- "name": "auction",
- "type": 24,
- "typeName": "<Auction as::ink::storage::traits::AutoStorableHint<::ink::\nstorage::traits::ManualKey<1146968252u32, ()>,>>::Type"
- },
- {
- "name": "balances",
- "type": 13,
- "typeName": "<Mapping<AccountId, Balance> as::ink::storage::traits::\nAutoStorableHint<::ink::storage::traits::ManualKey<20606507u32, ()\n>,>>::Type"
- },
- {
- "name": "log",
- "type": 18,
- "typeName": "<StorageVec<String> as::ink::storage::traits::AutoStorableHint<\n::ink::storage::traits::ManualKey<1856209540u32, ()>,>>::Type"
- }
- ]
- }
- },
- "path": [
- "mother",
- "mother",
- "Mother"
- ]
- }
- },
- {
- "id": 24,
- "type": {
- "def": {
- "composite": {
- "fields": [
- {
- "name": "name",
- "type": 0,
- "typeName": "String"
- },
- {
- "name": "subject",
- "type": 1,
- "typeName": "Hash"
- },
- {
- "name": "bids",
- "type": 25,
- "typeName": "Bids"
- },
- {
- "name": "terms",
- "type": 26,
- "typeName": "[BlockNumber; 3]"
- },
- {
- "name": "status",
- "type": 27,
- "typeName": "Status"
- },
- {
- "name": "finalized",
- "type": 11,
- "typeName": "bool"
- },
- {
- "name": "vector",
- "type": 12,
- "typeName": "Vec<u8>"
- }
- ]
- }
- },
- "path": [
- "mother",
- "mother",
- "Auction"
- ]
- }
- },
- {
- "id": 25,
- "type": {
- "def": {
- "composite": {
- "fields": [
- {
- "type": 4,
- "typeName": "Vec<Vec<Option<(AccountId, Balance)>>>"
- }
- ]
- }
- },
- "path": [
- "mother",
- "mother",
- "Bids"
- ]
- }
- },
- {
- "id": 26,
- "type": {
- "def": {
- "array": {
- "len": 3,
- "type": 10
- }
- }
- }
- },
- {
- "id": 27,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "index": 0,
- "name": "NotStarted"
- },
- {
- "index": 1,
- "name": "OpeningPeriod"
- },
- {
- "fields": [
- {
- "type": 10,
- "typeName": "BlockNumber"
- }
- ],
- "index": 2,
- "name": "EndingPeriod"
- },
- {
- "fields": [
- {
- "type": 28,
- "typeName": "Outline"
- }
- ],
- "index": 3,
- "name": "Ended"
- },
- {
- "fields": [
- {
- "type": 10,
- "typeName": "BlockNumber"
- }
- ],
- "index": 4,
- "name": "RfDelay"
- }
- ]
- }
- },
- "path": [
- "mother",
- "mother",
- "Status"
- ]
- }
- },
- {
- "id": 28,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "index": 0,
- "name": "NoWinner"
- },
- {
- "index": 1,
- "name": "WinnerDetected"
- },
- {
- "index": 2,
- "name": "PayoutCompleted"
- }
- ]
- }
- },
- "path": [
- "mother",
- "mother",
- "Outline"
- ]
- }
- },
- {
- "id": 29,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "fields": [
- {
- "type": 17
- }
- ],
- "index": 0,
- "name": "Ok"
- },
- {
- "fields": [
- {
- "type": 30
- }
- ],
- "index": 1,
- "name": "Err"
- }
- ]
- }
- },
- "params": [
- {
- "name": "T",
- "type": 17
- },
- {
- "name": "E",
- "type": 30
- }
- ],
- "path": [
- "Result"
- ]
- }
- },
- {
- "id": 30,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "index": 1,
- "name": "CouldNotReadInput"
- }
- ]
- }
- },
- "path": [
- "ink_primitives",
- "LangError"
- ]
- }
- },
- {
- "id": 31,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "fields": [
- {
- "type": 32
- }
- ],
- "index": 0,
- "name": "Ok"
- },
- {
- "fields": [
- {
- "type": 30
- }
- ],
- "index": 1,
- "name": "Err"
- }
- ]
- }
- },
- "params": [
- {
- "name": "T",
- "type": 32
- },
- {
- "name": "E",
- "type": 30
- }
- ],
- "path": [
- "Result"
- ]
- }
- },
- {
- "id": 32,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "fields": [
- {
- "type": 17
- }
- ],
- "index": 0,
- "name": "Ok"
- },
- {
- "fields": [
- {
- "type": 33
- }
- ],
- "index": 1,
- "name": "Err"
- }
- ]
- }
- },
- "params": [
- {
- "name": "T",
- "type": 17
- },
- {
- "name": "E",
- "type": 33
- }
- ],
- "path": [
- "Result"
- ]
- }
- },
- {
- "id": 33,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "fields": [
- {
- "type": 0,
- "typeName": "String"
- }
- ],
- "index": 0,
- "name": "Revert"
- },
- {
- "index": 1,
- "name": "Panic"
- }
- ]
- }
- },
- "path": [
- "mother",
- "mother",
- "Failure"
- ]
- }
- },
- {
- "id": 34,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "fields": [
- {
- "type": 24
- }
- ],
- "index": 0,
- "name": "Ok"
- },
- {
- "fields": [
- {
- "type": 30
- }
- ],
- "index": 1,
- "name": "Err"
- }
- ]
- }
- },
- "params": [
- {
- "name": "T",
- "type": 24
- },
- {
- "name": "E",
- "type": 30
- }
- ],
- "path": [
- "Result"
- ]
- }
- },
- {
- "id": 35,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "index": 0,
- "name": "None"
- },
- {
- "fields": [
- {
- "type": 33
- }
- ],
- "index": 1,
- "name": "Some"
- }
- ]
- }
- },
- "params": [
- {
- "name": "T",
- "type": 33
- }
- ],
- "path": [
- "Option"
- ]
- }
- },
- {
- "id": 36,
- "type": {
- "def": {
- "variant": {
- "variants": [
- {
- "fields": [
- {
- "type": 0
- }
- ],
- "index": 0,
- "name": "Ok"
- },
- {
- "fields": [
- {
- "type": 30
- }
- ],
- "index": 1,
- "name": "Err"
- }
- ]
- }
- },
- "params": [
- {
- "name": "T",
- "type": 0
- },
- {
- "name": "E",
- "type": 30
- }
- ],
- "path": [
- "Result"
- ]
- }
- },
- {
- "id": 37,
- "type": {
- "def": {
- "primitive": "u64"
- }
- }
- },
- {
- "id": 38,
- "type": {
- "def": {
- "variant": {}
- },
- "path": [
- "ink_env",
- "types",
- "NoChainExtension"
- ]
- }
- }
- ],
- "version": 5
- }
|