mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.SubmittableResult = void 0;\n const recordIdentity = record => record;\n function filterAndApply(events, section, methods, onFound) {\n return events.filter(({\n event\n }) => section === event.section && methods.includes(event.method)).map(record => onFound(record));\n }\n function getDispatchError({\n event: {\n data: [dispatchError]\n }\n }) {\n return dispatchError;\n }\n function getDispatchInfo({\n event: {\n data,\n method\n }\n }) {\n return method === 'ExtrinsicSuccess' ? data[0] : data[1];\n }\n function extractError(events = []) {\n return filterAndApply(events, 'system', ['ExtrinsicFailed'], getDispatchError)[0];\n }\n function extractInfo(events = []) {\n return filterAndApply(events, 'system', ['ExtrinsicFailed', 'ExtrinsicSuccess'], getDispatchInfo)[0];\n }\n class SubmittableResult {\n constructor({\n blockNumber,\n dispatchError,\n dispatchInfo,\n events,\n internalError,\n status,\n txHash,\n txIndex\n }) {\n this.dispatchError = dispatchError || extractError(events);\n this.dispatchInfo = dispatchInfo || extractInfo(events);\n this.events = events || [];\n this.internalError = internalError;\n this.status = status;\n this.txHash = txHash;\n this.txIndex = txIndex;\n this.blockNumber = blockNumber;\n }\n get isCompleted() {\n return this.isError || this.status.isInBlock || this.status.isFinalized;\n }\n get isError() {\n return this.status.isDropped || this.status.isFinalityTimeout || this.status.isInvalid || this.status.isUsurped;\n }\n get isFinalized() {\n return this.status.isFinalized;\n }\n get isInBlock() {\n return this.status.isInBlock;\n }\n get isWarning() {\n return this.status.isRetracted;\n }\n /**\n * @description Filters EventRecords for the specified method & section (there could be multiple)\n */\n filterRecords(section, method) {\n return filterAndApply(this.events, section, Array.isArray(method) ? method : [method], recordIdentity);\n }\n /**\n * @description Finds an EventRecord for the specified method & section\n */\n findRecord(section, method) {\n return this.filterRecords(section, method)[0];\n }\n /**\n * @description Creates a human representation of the output\n */\n toHuman(isExtended) {\n return {\n dispatchError: this.dispatchError?.toHuman(),\n dispatchInfo: this.dispatchInfo?.toHuman(),\n events: this.events.map(e => e.toHuman(isExtended)),\n internalError: this.internalError?.message.toString(),\n status: this.status.toHuman(isExtended)\n };\n }\n }\n exports.SubmittableResult = SubmittableResult;\n});","lineCount":96,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"SubmittableResult"],[7,27,3,25],[7,30,3,28],[7,35,3,33],[7,36,3,34],[8,2,4,0],[8,8,4,6,"recordIdentity"],[8,22,4,20],[8,25,4,24,"record"],[8,31,4,30],[8,35,4,35,"record"],[8,41,4,41],[9,2,5,0],[9,11,5,9,"filterAndApply"],[9,25,5,23,"filterAndApply"],[9,26,5,24,"events"],[9,32,5,30],[9,34,5,32,"section"],[9,41,5,39],[9,43,5,41,"methods"],[9,50,5,48],[9,52,5,50,"onFound"],[9,59,5,57],[9,61,5,59],[10,4,6,4],[10,11,6,11,"events"],[10,17,6,17],[10,18,7,9,"filter"],[10,24,7,15],[10,25,7,16],[10,26,7,17],[11,6,7,19,"event"],[12,4,7,25],[12,5,7,26],[12,10,7,31,"section"],[12,17,7,38],[12,22,7,43,"event"],[12,27,7,48],[12,28,7,49,"section"],[12,35,7,56],[12,39,8,8,"methods"],[12,46,8,15],[12,47,8,16,"includes"],[12,55,8,24],[12,56,8,25,"event"],[12,61,8,30],[12,62,8,31,"method"],[12,68,8,37],[12,69,8,38],[12,70,8,39],[12,71,9,9,"map"],[12,74,9,12],[12,75,9,14,"record"],[12,81,9,20],[12,85,9,25,"onFound"],[12,92,9,32],[12,93,9,33,"record"],[12,99,9,39],[12,100,9,40],[12,101,9,41],[13,2,10,0],[14,2,11,0],[14,11,11,9,"getDispatchError"],[14,27,11,25,"getDispatchError"],[14,28,11,26],[15,4,11,28,"event"],[15,9,11,33],[15,11,11,35],[16,6,11,37,"data"],[16,10,11,41],[16,12,11,43],[16,13,11,44,"dispatchError"],[16,26,11,57],[17,4,11,59],[18,2,11,61],[18,3,11,62],[18,5,11,64],[19,4,12,4],[19,11,12,11,"dispatchError"],[19,24,12,24],[20,2,13,0],[21,2,14,0],[21,11,14,9,"getDispatchInfo"],[21,26,14,24,"getDispatchInfo"],[21,27,14,25],[22,4,14,27,"event"],[22,9,14,32],[22,11,14,34],[23,6,14,36,"data"],[23,10,14,40],[24,6,14,42,"method"],[25,4,14,49],[26,2,14,51],[26,3,14,52],[26,5,14,54],[27,4,15,4],[27,11,15,11,"method"],[27,17,15,17],[27,22,15,22],[27,40,15,40],[27,43,16,10,"data"],[27,47,16,14],[27,48,16,15],[27,49,16,16],[27,50,16,17],[27,53,17,10,"data"],[27,57,17,14],[27,58,17,15],[27,59,17,16],[27,60,17,17],[28,2,18,0],[29,2,19,0],[29,11,19,9,"extractError"],[29,23,19,21,"extractError"],[29,24,19,22,"events"],[29,30,19,28],[29,33,19,31],[29,35,19,33],[29,37,19,35],[30,4,20,4],[30,11,20,11,"filterAndApply"],[30,25,20,25],[30,26,20,26,"events"],[30,32,20,32],[30,34,20,34],[30,42,20,42],[30,44,20,44],[30,45,20,45],[30,62,20,62],[30,63,20,63],[30,65,20,65,"getDispatchError"],[30,81,20,81],[30,82,20,82],[30,83,20,83],[30,84,20,84],[30,85,20,85],[31,2,21,0],[32,2,22,0],[32,11,22,9,"extractInfo"],[32,22,22,20,"extractInfo"],[32,23,22,21,"events"],[32,29,22,27],[32,32,22,30],[32,34,22,32],[32,36,22,34],[33,4,23,4],[33,11,23,11,"filterAndApply"],[33,25,23,25],[33,26,23,26,"events"],[33,32,23,32],[33,34,23,34],[33,42,23,42],[33,44,23,44],[33,45,23,45],[33,62,23,62],[33,64,23,64],[33,82,23,82],[33,83,23,83],[33,85,23,85,"getDispatchInfo"],[33,100,23,100],[33,101,23,101],[33,102,23,102],[33,103,23,103],[33,104,23,104],[34,2,24,0],[35,2,25,0],[35,8,25,6,"SubmittableResult"],[35,25,25,23],[35,26,25,24],[36,4,34,4,"constructor"],[36,15,34,15,"constructor"],[36,16,34,16],[37,6,34,18,"blockNumber"],[37,17,34,29],[38,6,34,31,"dispatchError"],[38,19,34,44],[39,6,34,46,"dispatchInfo"],[39,18,34,58],[40,6,34,60,"events"],[40,12,34,66],[41,6,34,68,"internalError"],[41,19,34,81],[42,6,34,83,"status"],[42,12,34,89],[43,6,34,91,"txHash"],[43,12,34,97],[44,6,34,99,"txIndex"],[45,4,34,107],[45,5,34,108],[45,7,34,110],[46,6,35,8],[46,10,35,12],[46,11,35,13,"dispatchError"],[46,24,35,26],[46,27,35,29,"dispatchError"],[46,40,35,42],[46,44,35,46,"extractError"],[46,56,35,58],[46,57,35,59,"events"],[46,63,35,65],[46,64,35,66],[47,6,36,8],[47,10,36,12],[47,11,36,13,"dispatchInfo"],[47,23,36,25],[47,26,36,28,"dispatchInfo"],[47,38,36,40],[47,42,36,44,"extractInfo"],[47,53,36,55],[47,54,36,56,"events"],[47,60,36,62],[47,61,36,63],[48,6,37,8],[48,10,37,12],[48,11,37,13,"events"],[48,17,37,19],[48,20,37,22,"events"],[48,26,37,28],[48,30,37,32],[48,32,37,34],[49,6,38,8],[49,10,38,12],[49,11,38,13,"internalError"],[49,24,38,26],[49,27,38,29,"internalError"],[49,40,38,42],[50,6,39,8],[50,10,39,12],[50,11,39,13,"status"],[50,17,39,19],[50,20,39,22,"status"],[50,26,39,28],[51,6,40,8],[51,10,40,12],[51,11,40,13,"txHash"],[51,17,40,19],[51,20,40,22,"txHash"],[51,26,40,28],[52,6,41,8],[52,10,41,12],[52,11,41,13,"txIndex"],[52,18,41,20],[52,21,41,23,"txIndex"],[52,28,41,30],[53,6,42,8],[53,10,42,12],[53,11,42,13,"blockNumber"],[53,22,42,24],[53,25,42,27,"blockNumber"],[53,36,42,38],[54,4,43,4],[55,4,44,4],[55,8,44,8,"isCompleted"],[55,19,44,19,"isCompleted"],[55,20,44,19],[55,22,44,22],[56,6,45,8],[56,13,45,15],[56,17,45,19],[56,18,45,20,"isError"],[56,25,45,27],[56,29,45,31],[56,33,45,35],[56,34,45,36,"status"],[56,40,45,42],[56,41,45,43,"isInBlock"],[56,50,45,52],[56,54,45,56],[56,58,45,60],[56,59,45,61,"status"],[56,65,45,67],[56,66,45,68,"isFinalized"],[56,77,45,79],[57,4,46,4],[58,4,47,4],[58,8,47,8,"isError"],[58,15,47,15,"isError"],[58,16,47,15],[58,18,47,18],[59,6,48,8],[59,13,48,15],[59,17,48,19],[59,18,48,20,"status"],[59,24,48,26],[59,25,48,27,"isDropped"],[59,34,48,36],[59,38,48,40],[59,42,48,44],[59,43,48,45,"status"],[59,49,48,51],[59,50,48,52,"isFinalityTimeout"],[59,67,48,69],[59,71,48,73],[59,75,48,77],[59,76,48,78,"status"],[59,82,48,84],[59,83,48,85,"isInvalid"],[59,92,48,94],[59,96,48,98],[59,100,48,102],[59,101,48,103,"status"],[59,107,48,109],[59,108,48,110,"isUsurped"],[59,117,48,119],[60,4,49,4],[61,4,50,4],[61,8,50,8,"isFinalized"],[61,19,50,19,"isFinalized"],[61,20,50,19],[61,22,50,22],[62,6,51,8],[62,13,51,15],[62,17,51,19],[62,18,51,20,"status"],[62,24,51,26],[62,25,51,27,"isFinalized"],[62,36,51,38],[63,4,52,4],[64,4,53,4],[64,8,53,8,"isInBlock"],[64,17,53,17,"isInBlock"],[64,18,53,17],[64,20,53,20],[65,6,54,8],[65,13,54,15],[65,17,54,19],[65,18,54,20,"status"],[65,24,54,26],[65,25,54,27,"isInBlock"],[65,34,54,36],[66,4,55,4],[67,4,56,4],[67,8,56,8,"isWarning"],[67,17,56,17,"isWarning"],[67,18,56,17],[67,20,56,20],[68,6,57,8],[68,13,57,15],[68,17,57,19],[68,18,57,20,"status"],[68,24,57,26],[68,25,57,27,"isRetracted"],[68,36,57,38],[69,4,58,4],[70,4,59,4],[71,0,60,0],[72,0,61,0],[73,4,62,4,"filterRecords"],[73,17,62,17,"filterRecords"],[73,18,62,18,"section"],[73,25,62,25],[73,27,62,27,"method"],[73,33,62,33],[73,35,62,35],[74,6,63,8],[74,13,63,15,"filterAndApply"],[74,27,63,29],[74,28,63,30],[74,32,63,34],[74,33,63,35,"events"],[74,39,63,41],[74,41,63,43,"section"],[74,48,63,50],[74,50,63,52,"Array"],[74,55,63,57],[74,56,63,58,"isArray"],[74,63,63,65],[74,64,63,66,"method"],[74,70,63,72],[74,71,63,73],[74,74,63,76,"method"],[74,80,63,82],[74,83,63,85],[74,84,63,86,"method"],[74,90,63,92],[74,91,63,93],[74,93,63,95,"recordIdentity"],[74,107,63,109],[74,108,63,110],[75,4,64,4],[76,4,65,4],[77,0,66,0],[78,0,67,0],[79,4,68,4,"findRecord"],[79,14,68,14,"findRecord"],[79,15,68,15,"section"],[79,22,68,22],[79,24,68,24,"method"],[79,30,68,30],[79,32,68,32],[80,6,69,8],[80,13,69,15],[80,17,69,19],[80,18,69,20,"filterRecords"],[80,31,69,33],[80,32,69,34,"section"],[80,39,69,41],[80,41,69,43,"method"],[80,47,69,49],[80,48,69,50],[80,49,69,51],[80,50,69,52],[80,51,69,53],[81,4,70,4],[82,4,71,4],[83,0,72,0],[84,0,73,0],[85,4,74,4,"toHuman"],[85,11,74,11,"toHuman"],[85,12,74,12,"isExtended"],[85,22,74,22],[85,24,74,24],[86,6,75,8],[86,13,75,15],[87,8,76,12,"dispatchError"],[87,21,76,25],[87,23,76,27],[87,27,76,31],[87,28,76,32,"dispatchError"],[87,41,76,45],[87,43,76,47,"toHuman"],[87,50,76,54],[87,51,76,55],[87,52,76,56],[88,8,77,12,"dispatchInfo"],[88,20,77,24],[88,22,77,26],[88,26,77,30],[88,27,77,31,"dispatchInfo"],[88,39,77,43],[88,41,77,45,"toHuman"],[88,48,77,52],[88,49,77,53],[88,50,77,54],[89,8,78,12,"events"],[89,14,78,18],[89,16,78,20],[89,20,78,24],[89,21,78,25,"events"],[89,27,78,31],[89,28,78,32,"map"],[89,31,78,35],[89,32,78,37,"e"],[89,33,78,38],[89,37,78,43,"e"],[89,38,78,44],[89,39,78,45,"toHuman"],[89,46,78,52],[89,47,78,53,"isExtended"],[89,57,78,63],[89,58,78,64],[89,59,78,65],[90,8,79,12,"internalError"],[90,21,79,25],[90,23,79,27],[90,27,79,31],[90,28,79,32,"internalError"],[90,41,79,45],[90,43,79,47,"message"],[90,50,79,54],[90,51,79,55,"toString"],[90,59,79,63],[90,60,79,64],[90,61,79,65],[91,8,80,12,"status"],[91,14,80,18],[91,16,80,20],[91,20,80,24],[91,21,80,25,"status"],[91,27,80,31],[91,28,80,32,"toHuman"],[91,35,80,39],[91,36,80,40,"isExtended"],[91,46,80,50],[92,6,81,8],[92,7,81,9],[93,4,82,4],[94,2,83,0],[95,2,84,0,"exports"],[95,9,84,7],[95,10,84,8,"SubmittableResult"],[95,27,84,25],[95,30,84,28,"SubmittableResult"],[95,47,84,45],[96,0,84,46],[96,3]],"functionMap":{"names":["<global>","recordIdentity","filterAndApply","events.filter$argument_0","events.filter.map$argument_0","getDispatchError","getDispatchInfo","extractError","extractInfo","SubmittableResult","SubmittableResult#constructor","SubmittableResult#get__isCompleted","SubmittableResult#get__isError","SubmittableResult#get__isFinalized","SubmittableResult#get__isInBlock","SubmittableResult#get__isWarning","SubmittableResult#filterRecords","SubmittableResult#findRecord","SubmittableResult#toHuman","events.map$argument_0"],"mappings":"AAA;uBCG,kBD;AEC;gBCE;sCDC;aEC,2BF;CFC;AKC;CLE;AMC;CNI;AOC;CPE;AQC;CRE;ASC;ICS;KDS;IEC;KFE;IGC;KHE;IIC;KJE;IKC;KLE;IMC;KNE;IOI;KPE;IQI;KRE;ISI;oCCI,4BD;KTI;CTC"},"hasCjsExports":true},"type":"js/module"}]} |