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 Object.defineProperty(exports, \"SubmittableResult\", {\n enumerable: true,\n get: function () {\n return SubmittableResult;\n }\n });\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});","lineCount":100,"map":[[7,2,22,0,"Object"],[7,8,22,0],[7,9,22,0,"defineProperty"],[7,23,22,0],[7,24,22,0,"exports"],[7,31,22,0],[8,4,22,0,"enumerable"],[8,14,22,0],[9,4,22,0,"get"],[9,7,22,0],[9,18,22,0,"get"],[9,19,22,0],[10,6,22,0],[10,13,22,0,"SubmittableResult"],[10,30,22,0],[11,4,22,0],[12,2,22,0],[13,2,1,0],[13,8,1,6,"recordIdentity"],[13,22,1,20],[13,25,1,24,"record"],[13,31,1,30],[13,35,1,35,"record"],[13,41,1,41],[14,2,2,0],[14,11,2,9,"filterAndApply"],[14,25,2,23,"filterAndApply"],[14,26,2,24,"events"],[14,32,2,30],[14,34,2,32,"section"],[14,41,2,39],[14,43,2,41,"methods"],[14,50,2,48],[14,52,2,50,"onFound"],[14,59,2,57],[14,61,2,59],[15,4,3,4],[15,11,3,11,"events"],[15,17,3,17],[15,18,4,9,"filter"],[15,24,4,15],[15,25,4,16],[15,26,4,17],[16,6,4,19,"event"],[17,4,4,25],[17,5,4,26],[17,10,4,31,"section"],[17,17,4,38],[17,22,4,43,"event"],[17,27,4,48],[17,28,4,49,"section"],[17,35,4,56],[17,39,5,8,"methods"],[17,46,5,15],[17,47,5,16,"includes"],[17,55,5,24],[17,56,5,25,"event"],[17,61,5,30],[17,62,5,31,"method"],[17,68,5,37],[17,69,5,38],[17,70,5,39],[17,71,6,9,"map"],[17,74,6,12],[17,75,6,14,"record"],[17,81,6,20],[17,85,6,25,"onFound"],[17,92,6,32],[17,93,6,33,"record"],[17,99,6,39],[17,100,6,40],[17,101,6,41],[18,2,7,0],[19,2,8,0],[19,11,8,9,"getDispatchError"],[19,27,8,25,"getDispatchError"],[19,28,8,26],[20,4,8,28,"event"],[20,9,8,33],[20,11,8,35],[21,6,8,37,"data"],[21,10,8,41],[21,12,8,43],[21,13,8,44,"dispatchError"],[21,26,8,57],[22,4,8,59],[23,2,8,61],[23,3,8,62],[23,5,8,64],[24,4,9,4],[24,11,9,11,"dispatchError"],[24,24,9,24],[25,2,10,0],[26,2,11,0],[26,11,11,9,"getDispatchInfo"],[26,26,11,24,"getDispatchInfo"],[26,27,11,25],[27,4,11,27,"event"],[27,9,11,32],[27,11,11,34],[28,6,11,36,"data"],[28,10,11,40],[29,6,11,42,"method"],[30,4,11,49],[31,2,11,51],[31,3,11,52],[31,5,11,54],[32,4,12,4],[32,11,12,11,"method"],[32,17,12,17],[32,22,12,22],[32,40,12,40],[32,43,13,10,"data"],[32,47,13,14],[32,48,13,15],[32,49,13,16],[32,50,13,17],[32,53,14,10,"data"],[32,57,14,14],[32,58,14,15],[32,59,14,16],[32,60,14,17],[33,2,15,0],[34,2,16,0],[34,11,16,9,"extractError"],[34,23,16,21,"extractError"],[34,24,16,22,"events"],[34,30,16,28],[34,33,16,31],[34,35,16,33],[34,37,16,35],[35,4,17,4],[35,11,17,11,"filterAndApply"],[35,25,17,25],[35,26,17,26,"events"],[35,32,17,32],[35,34,17,34],[35,42,17,42],[35,44,17,44],[35,45,17,45],[35,62,17,62],[35,63,17,63],[35,65,17,65,"getDispatchError"],[35,81,17,81],[35,82,17,82],[35,83,17,83],[35,84,17,84],[35,85,17,85],[36,2,18,0],[37,2,19,0],[37,11,19,9,"extractInfo"],[37,22,19,20,"extractInfo"],[37,23,19,21,"events"],[37,29,19,27],[37,32,19,30],[37,34,19,32],[37,36,19,34],[38,4,20,4],[38,11,20,11,"filterAndApply"],[38,25,20,25],[38,26,20,26,"events"],[38,32,20,32],[38,34,20,34],[38,42,20,42],[38,44,20,44],[38,45,20,45],[38,62,20,62],[38,64,20,64],[38,82,20,82],[38,83,20,83],[38,85,20,85,"getDispatchInfo"],[38,100,20,100],[38,101,20,101],[38,102,20,102],[38,103,20,103],[38,104,20,104],[39,2,21,0],[40,2,22,7],[40,8,22,13,"SubmittableResult"],[40,25,22,30],[40,26,22,31],[41,4,31,4,"constructor"],[41,15,31,15,"constructor"],[41,16,31,16],[42,6,31,18,"blockNumber"],[42,17,31,29],[43,6,31,31,"dispatchError"],[43,19,31,44],[44,6,31,46,"dispatchInfo"],[44,18,31,58],[45,6,31,60,"events"],[45,12,31,66],[46,6,31,68,"internalError"],[46,19,31,81],[47,6,31,83,"status"],[47,12,31,89],[48,6,31,91,"txHash"],[48,12,31,97],[49,6,31,99,"txIndex"],[50,4,31,107],[50,5,31,108],[50,7,31,110],[51,6,32,8],[51,10,32,12],[51,11,32,13,"dispatchError"],[51,24,32,26],[51,27,32,29,"dispatchError"],[51,40,32,42],[51,44,32,46,"extractError"],[51,56,32,58],[51,57,32,59,"events"],[51,63,32,65],[51,64,32,66],[52,6,33,8],[52,10,33,12],[52,11,33,13,"dispatchInfo"],[52,23,33,25],[52,26,33,28,"dispatchInfo"],[52,38,33,40],[52,42,33,44,"extractInfo"],[52,53,33,55],[52,54,33,56,"events"],[52,60,33,62],[52,61,33,63],[53,6,34,8],[53,10,34,12],[53,11,34,13,"events"],[53,17,34,19],[53,20,34,22,"events"],[53,26,34,28],[53,30,34,32],[53,32,34,34],[54,6,35,8],[54,10,35,12],[54,11,35,13,"internalError"],[54,24,35,26],[54,27,35,29,"internalError"],[54,40,35,42],[55,6,36,8],[55,10,36,12],[55,11,36,13,"status"],[55,17,36,19],[55,20,36,22,"status"],[55,26,36,28],[56,6,37,8],[56,10,37,12],[56,11,37,13,"txHash"],[56,17,37,19],[56,20,37,22,"txHash"],[56,26,37,28],[57,6,38,8],[57,10,38,12],[57,11,38,13,"txIndex"],[57,18,38,20],[57,21,38,23,"txIndex"],[57,28,38,30],[58,6,39,8],[58,10,39,12],[58,11,39,13,"blockNumber"],[58,22,39,24],[58,25,39,27,"blockNumber"],[58,36,39,38],[59,4,40,4],[60,4,41,4],[60,8,41,8,"isCompleted"],[60,19,41,19,"isCompleted"],[60,20,41,19],[60,22,41,22],[61,6,42,8],[61,13,42,15],[61,17,42,19],[61,18,42,20,"isError"],[61,25,42,27],[61,29,42,31],[61,33,42,35],[61,34,42,36,"status"],[61,40,42,42],[61,41,42,43,"isInBlock"],[61,50,42,52],[61,54,42,56],[61,58,42,60],[61,59,42,61,"status"],[61,65,42,67],[61,66,42,68,"isFinalized"],[61,77,42,79],[62,4,43,4],[63,4,44,4],[63,8,44,8,"isError"],[63,15,44,15,"isError"],[63,16,44,15],[63,18,44,18],[64,6,45,8],[64,13,45,15],[64,17,45,19],[64,18,45,20,"status"],[64,24,45,26],[64,25,45,27,"isDropped"],[64,34,45,36],[64,38,45,40],[64,42,45,44],[64,43,45,45,"status"],[64,49,45,51],[64,50,45,52,"isFinalityTimeout"],[64,67,45,69],[64,71,45,73],[64,75,45,77],[64,76,45,78,"status"],[64,82,45,84],[64,83,45,85,"isInvalid"],[64,92,45,94],[64,96,45,98],[64,100,45,102],[64,101,45,103,"status"],[64,107,45,109],[64,108,45,110,"isUsurped"],[64,117,45,119],[65,4,46,4],[66,4,47,4],[66,8,47,8,"isFinalized"],[66,19,47,19,"isFinalized"],[66,20,47,19],[66,22,47,22],[67,6,48,8],[67,13,48,15],[67,17,48,19],[67,18,48,20,"status"],[67,24,48,26],[67,25,48,27,"isFinalized"],[67,36,48,38],[68,4,49,4],[69,4,50,4],[69,8,50,8,"isInBlock"],[69,17,50,17,"isInBlock"],[69,18,50,17],[69,20,50,20],[70,6,51,8],[70,13,51,15],[70,17,51,19],[70,18,51,20,"status"],[70,24,51,26],[70,25,51,27,"isInBlock"],[70,34,51,36],[71,4,52,4],[72,4,53,4],[72,8,53,8,"isWarning"],[72,17,53,17,"isWarning"],[72,18,53,17],[72,20,53,20],[73,6,54,8],[73,13,54,15],[73,17,54,19],[73,18,54,20,"status"],[73,24,54,26],[73,25,54,27,"isRetracted"],[73,36,54,38],[74,4,55,4],[75,4,56,4],[76,0,57,0],[77,0,58,0],[78,4,59,4,"filterRecords"],[78,17,59,17,"filterRecords"],[78,18,59,18,"section"],[78,25,59,25],[78,27,59,27,"method"],[78,33,59,33],[78,35,59,35],[79,6,60,8],[79,13,60,15,"filterAndApply"],[79,27,60,29],[79,28,60,30],[79,32,60,34],[79,33,60,35,"events"],[79,39,60,41],[79,41,60,43,"section"],[79,48,60,50],[79,50,60,52,"Array"],[79,55,60,57],[79,56,60,58,"isArray"],[79,63,60,65],[79,64,60,66,"method"],[79,70,60,72],[79,71,60,73],[79,74,60,76,"method"],[79,80,60,82],[79,83,60,85],[79,84,60,86,"method"],[79,90,60,92],[79,91,60,93],[79,93,60,95,"recordIdentity"],[79,107,60,109],[79,108,60,110],[80,4,61,4],[81,4,62,4],[82,0,63,0],[83,0,64,0],[84,4,65,4,"findRecord"],[84,14,65,14,"findRecord"],[84,15,65,15,"section"],[84,22,65,22],[84,24,65,24,"method"],[84,30,65,30],[84,32,65,32],[85,6,66,8],[85,13,66,15],[85,17,66,19],[85,18,66,20,"filterRecords"],[85,31,66,33],[85,32,66,34,"section"],[85,39,66,41],[85,41,66,43,"method"],[85,47,66,49],[85,48,66,50],[85,49,66,51],[85,50,66,52],[85,51,66,53],[86,4,67,4],[87,4,68,4],[88,0,69,0],[89,0,70,0],[90,4,71,4,"toHuman"],[90,11,71,11,"toHuman"],[90,12,71,12,"isExtended"],[90,22,71,22],[90,24,71,24],[91,6,72,8],[91,13,72,15],[92,8,73,12,"dispatchError"],[92,21,73,25],[92,23,73,27],[92,27,73,31],[92,28,73,32,"dispatchError"],[92,41,73,45],[92,43,73,47,"toHuman"],[92,50,73,54],[92,51,73,55],[92,52,73,56],[93,8,74,12,"dispatchInfo"],[93,20,74,24],[93,22,74,26],[93,26,74,30],[93,27,74,31,"dispatchInfo"],[93,39,74,43],[93,41,74,45,"toHuman"],[93,48,74,52],[93,49,74,53],[93,50,74,54],[94,8,75,12,"events"],[94,14,75,18],[94,16,75,20],[94,20,75,24],[94,21,75,25,"events"],[94,27,75,31],[94,28,75,32,"map"],[94,31,75,35],[94,32,75,37,"e"],[94,33,75,38],[94,37,75,43,"e"],[94,38,75,44],[94,39,75,45,"toHuman"],[94,46,75,52],[94,47,75,53,"isExtended"],[94,57,75,63],[94,58,75,64],[94,59,75,65],[95,8,76,12,"internalError"],[95,21,76,25],[95,23,76,27],[95,27,76,31],[95,28,76,32,"internalError"],[95,41,76,45],[95,43,76,47,"message"],[95,50,76,54],[95,51,76,55,"toString"],[95,59,76,63],[95,60,76,64],[95,61,76,65],[96,8,77,12,"status"],[96,14,77,18],[96,16,77,20],[96,20,77,24],[96,21,77,25,"status"],[96,27,77,31],[96,28,77,32,"toHuman"],[96,35,77,39],[96,36,77,40,"isExtended"],[96,46,77,50],[97,6,78,8],[97,7,78,9],[98,4,79,4],[99,2,80,0],[100,0,80,1],[100,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,uBC,kBD;AEC;gBCE;sCDC;aEC,2BF;CFC;AKC;CLE;AMC;CNI;AOC;CPE;AQC;CRE;OSC;ICS;KDS;IEC;KFE;IGC;KHE;IIC;KJE;IKC;KLE;IMC;KNE;IOI;KPE;IQI;KRE;ISI;oCCI,4BD;KTI;CTC"},"hasCjsExports":false},"type":"js/module"}]} |