Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/2c/03acac4399328651ea0d16caa70ccfb796624fbd905c3913452cc1fcdd1c50282e9cef
T
2025-11-08 10:27:44 +00:00

1 line
37 KiB
Plaintext

{"dependencies":[{"name":"react-native-web/dist/exports/Platform","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"dV3bI3NOD8bfMzaIniMaFGy/nn8=","exportNames":["*"],"imports":1}},{"name":"../constants/blockchain","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":7,"column":0,"index":162},"end":{"line":7,"column":74,"index":236}}],"key":"0dsDZ6huVVlmd1k89YMoPDgpHSE=","exportNames":["*"],"imports":1}},{"name":"@polkadot/api","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":15,"column":22,"index":490},"end":{"line":15,"column":46,"index":514}}],"key":"2cuISN0kir8bNm64u1ZX3Ebd0BU=","exportNames":["*"],"imports":1}}],"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 function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _default;\n }\n });\n Object.defineProperty(exports, \"blockchainService\", {\n enumerable: true,\n get: function () {\n return blockchainService;\n }\n });\n var _reactNativeWebDistExportsPlatform = require(_dependencyMap[0], \"react-native-web/dist/exports/Platform\");\n var Platform = _interopDefault(_reactNativeWebDistExportsPlatform);\n var _constantsBlockchain = require(_dependencyMap[1], \"../constants/blockchain\");\n /**\n * PezkuwiChain Blockchain Service\n * Handles all interactions with the PezkuwiChain blockchain via Polkadot.js\n */\n\n // Only import Polkadot.js on native platforms (not web) to avoid import.meta issues\n let ApiPromise = null;\n let WsProvider = null;\n if (Platform.default.OS !== 'web') {\n const polkadotApi = require(_dependencyMap[2], \"@polkadot/api\");\n ApiPromise = polkadotApi.ApiPromise;\n WsProvider = polkadotApi.WsProvider;\n }\n class BlockchainService {\n api = null;\n provider = null;\n isConnected = false;\n\n /**\n * Initialize connection to PezkuwiChain\n */\n async connect() {\n try {\n console.log(`Connecting to ${_constantsBlockchain.CURRENT_CHAIN_CONFIG.name}...`);\n console.log(`RPC URL: ${_constantsBlockchain.CURRENT_CHAIN_CONFIG.rpcUrl}`);\n this.provider = new WsProvider(_constantsBlockchain.CURRENT_CHAIN_CONFIG.rpcUrl);\n this.api = await ApiPromise.create({\n provider: this.provider\n });\n await this.api.isReady;\n this.isConnected = true;\n console.log('✅ Connected to PezkuwiChain');\n console.log(`Chain: ${await this.api.rpc.system.chain()}`);\n console.log(`Node: ${await this.api.rpc.system.name()}`);\n console.log(`Version: ${await this.api.rpc.system.version()}`);\n return true;\n } catch (error) {\n console.error('❌ Failed to connect to PezkuwiChain:', error);\n this.isConnected = false;\n return false;\n }\n }\n\n /**\n * Disconnect from blockchain\n */\n async disconnect() {\n if (this.api) {\n await this.api.disconnect();\n this.api = null;\n this.provider = null;\n this.isConnected = false;\n console.log('Disconnected from PezkuwiChain');\n }\n }\n\n /**\n * Check if connected to blockchain\n */\n isApiConnected() {\n return this.isConnected && this.api !== null;\n }\n\n /**\n * Get API instance (throws if not connected)\n */\n getApi() {\n if (!this.api || !this.isConnected) {\n throw new Error('Not connected to blockchain. Call connect() first.');\n }\n return this.api;\n }\n\n /**\n * Get account balances (HEZ and PEZ)\n */\n async getBalances(address) {\n try {\n const api = this.getApi();\n\n // Get HEZ balance (native token)\n const {\n data: hezBalance\n } = await api.query.system.account(address);\n const hezFree = hezBalance.free.toString();\n const hezReserved = hezBalance.reserved.toString();\n\n // Get PEZ balance (asset)\n const pezBalance = await api.query.assets.account(_constantsBlockchain.ASSET_IDS.PEZ, address);\n const pezFree = pezBalance.isSome ? pezBalance.unwrap().balance.toString() : '0';\n\n // Get staked HEZ\n const stakingInfo = await api.query.staking.ledger(address);\n const hezStaked = stakingInfo.isSome ? stakingInfo.unwrap().active.toString() : '0';\n\n // Calculate governance power (PEZ balance as percentage)\n const totalPezSupply = '5000000000000000000000'; // 5 billion\n const governancePower = (parseFloat(pezFree) / parseFloat(totalPezSupply) * 100).toFixed(2);\n\n // Mock USD values (would come from price oracle in production)\n const hezUsd = (parseFloat(hezFree) / 1e12 * 1.0).toFixed(2);\n const pezUsd = (parseFloat(pezFree) / 1e12 * 0.1).toFixed(2);\n return {\n hez: this.formatBalance(hezFree, 12),\n pez: this.formatBalance(pezFree, 12),\n hezStaked: this.formatBalance(hezStaked, 12),\n hezUsd,\n pezUsd,\n governancePower\n };\n } catch (error) {\n console.error('Error fetching balances:', error);\n // Return mock data if blockchain not available\n return this.getMockBalances();\n }\n }\n\n /**\n * Get transaction history\n */\n async getTransactions(address, limit = 10) {\n try {\n // This would query blockchain events and filter for transfers\n // For now, return mock data\n return this.getMockTransactions();\n } catch (error) {\n console.error('Error fetching transactions:', error);\n return this.getMockTransactions();\n }\n }\n\n /**\n * Get active governance proposals\n */\n async getProposals() {\n try {\n const api = this.getApi();\n\n // Query welati pallet for active proposals\n const proposals = await api.query.welati.proposals.entries();\n return proposals.map(([key, value]) => {\n const proposalId = key.args[0].toNumber();\n const proposal = value.unwrap();\n return {\n id: proposalId,\n title: `Proposal ${proposalId}`,\n description: proposal.description?.toString() || 'No description',\n proposer: proposal.proposer.toString(),\n votingDeadline: proposal.deadline.toNumber(),\n yesVotes: proposal.yesVotes.toString(),\n noVotes: proposal.noVotes.toString(),\n status: proposal.status.toString()\n };\n });\n } catch (error) {\n console.error('Error fetching proposals:', error);\n return this.getMockProposals();\n }\n }\n\n /**\n * Send HEZ or PEZ tokens\n */\n async sendTokens(from, to, amount, token, signer) {\n try {\n const api = this.getApi();\n let tx;\n if (token === 'HEZ') {\n tx = api.tx.balances.transfer(to, amount);\n } else {\n tx = api.tx.assets.transfer(_constantsBlockchain.ASSET_IDS.PEZ, to, amount);\n }\n const hash = await tx.signAndSend(signer);\n return hash.toString();\n } catch (error) {\n console.error('Error sending tokens:', error);\n throw error;\n }\n }\n\n /**\n * Stake HEZ tokens\n */\n async stakeTokens(address, amount, signer) {\n try {\n const api = this.getApi();\n const tx = api.tx.staking.bond(address, amount, 'Staked');\n const hash = await tx.signAndSend(signer);\n return hash.toString();\n } catch (error) {\n console.error('Error staking tokens:', error);\n throw error;\n }\n }\n\n /**\n * Vote on governance proposal\n */\n async voteOnProposal(proposalId, vote, amount, signer) {\n try {\n const api = this.getApi();\n const tx = api.tx.welati.vote(proposalId, vote === 'yes', amount);\n const hash = await tx.signAndSend(signer);\n return hash.toString();\n } catch (error) {\n console.error('Error voting on proposal:', error);\n throw error;\n }\n }\n\n /**\n * Format balance with decimals\n */\n formatBalance(balance, decimals) {\n const value = parseFloat(balance) / Math.pow(10, decimals);\n return value.toLocaleString('en-US', {\n maximumFractionDigits: 2\n });\n }\n\n /**\n * Mock data for development/testing\n */\n getMockBalances() {\n return {\n hez: '45,750.5',\n pez: '1,234,567',\n hezStaked: '30,000',\n hezUsd: '45,234',\n pezUsd: '123,456',\n governancePower: '2.5'\n };\n }\n getMockTransactions() {\n return [{\n id: '1',\n type: 'send',\n amount: '500',\n token: 'HEZ',\n from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',\n to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',\n timestamp: Date.now() - 86400000,\n blockNumber: 123456,\n hash: '0x1234567890abcdef',\n status: 'confirmed'\n }, {\n id: '2',\n type: 'receive',\n amount: '300',\n token: 'PEZ',\n from: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',\n to: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',\n timestamp: Date.now() - 172800000,\n blockNumber: 123450,\n hash: '0xabcdef1234567890',\n status: 'confirmed'\n }];\n }\n getMockProposals() {\n return [{\n id: 1,\n title: 'Proposal 1',\n description: 'Description of proposal 1',\n proposer: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',\n votingDeadline: Date.now() + 172800000,\n yesVotes: '10400',\n noVotes: '4600',\n status: 'active'\n }, {\n id: 2,\n title: 'Proposal 2',\n description: 'Description of proposal 2',\n proposer: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',\n votingDeadline: Date.now() + 432000000,\n yesVotes: '198',\n noVotes: '0',\n status: 'active'\n }];\n }\n }\n\n // Export singleton instance\n const blockchainService = new BlockchainService();\n var _default = blockchainService;\n});","lineCount":311,"map":[[12,2,316,0,"Object"],[12,8,316,0],[12,9,316,0,"defineProperty"],[12,23,316,0],[12,24,316,0,"exports"],[12,31,316,0],[13,4,316,0,"enumerable"],[13,14,316,0],[14,4,316,0,"get"],[14,7,316,0],[14,18,316,0,"get"],[14,19,316,0],[15,6,316,0],[15,13,316,0,"_default"],[15,21,316,0],[16,4,316,0],[17,2,316,0],[18,2,315,0,"Object"],[18,8,315,0],[18,9,315,0,"defineProperty"],[18,23,315,0],[18,24,315,0,"exports"],[18,31,315,0],[19,4,315,0,"enumerable"],[19,14,315,0],[20,4,315,0,"get"],[20,7,315,0],[20,18,315,0,"get"],[20,19,315,0],[21,6,315,0],[21,13,315,0,"blockchainService"],[21,30,315,0],[22,4,315,0],[23,2,315,0],[24,2,315,57],[24,6,315,57,"_reactNativeWebDistExportsPlatform"],[24,40,315,57],[24,43,315,57,"require"],[24,50,315,57],[24,51,315,57,"_dependencyMap"],[24,65,315,57],[25,2,315,57],[25,6,315,57,"Platform"],[25,14,315,57],[25,17,315,57,"_interopDefault"],[25,32,315,57],[25,33,315,57,"_reactNativeWebDistExportsPlatform"],[25,67,315,57],[26,2,7,0],[26,6,7,0,"_constantsBlockchain"],[26,26,7,0],[26,29,7,0,"require"],[26,36,7,0],[26,37,7,0,"_dependencyMap"],[26,51,7,0],[27,2,1,0],[28,0,2,0],[29,0,3,0],[30,0,4,0],[32,2,10,0],[33,2,11,0],[33,6,11,4,"ApiPromise"],[33,16,11,19],[33,19,11,22],[33,23,11,26],[34,2,12,0],[34,6,12,4,"WsProvider"],[34,16,12,19],[34,19,12,22],[34,23,12,26],[35,2,14,0],[35,6,14,4,"Platform"],[35,14,14,12],[35,15,14,12,"default"],[35,22,14,12],[35,23,14,13,"OS"],[35,25,14,15],[35,30,14,20],[35,35,14,25],[35,37,14,27],[36,4,15,2],[36,10,15,8,"polkadotApi"],[36,21,15,19],[36,24,15,22,"require"],[36,31,15,29],[36,32,15,29,"_dependencyMap"],[36,46,15,29],[36,66,15,45],[36,67,15,46],[37,4,16,2,"ApiPromise"],[37,14,16,12],[37,17,16,15,"polkadotApi"],[37,28,16,26],[37,29,16,27,"ApiPromise"],[37,39,16,37],[38,4,17,2,"WsProvider"],[38,14,17,12],[38,17,17,15,"polkadotApi"],[38,28,17,26],[38,29,17,27,"WsProvider"],[38,39,17,37],[39,2,18,0],[40,2,20,0],[40,8,20,6,"BlockchainService"],[40,25,20,23],[40,26,20,24],[41,4,21,10,"api"],[41,7,21,13],[41,10,21,35],[41,14,21,39],[42,4,22,10,"provider"],[42,12,22,18],[42,15,22,40],[42,19,22,44],[43,4,23,10,"isConnected"],[43,15,23,21],[43,18,23,33],[43,23,23,38],[45,4,25,2],[46,0,26,0],[47,0,27,0],[48,4,28,2],[48,10,28,8,"connect"],[48,17,28,15,"connect"],[48,18,28,15],[48,20,28,36],[49,6,29,4],[49,10,29,8],[50,8,30,6,"console"],[50,15,30,13],[50,16,30,14,"log"],[50,19,30,17],[50,20,30,18],[50,37,30,35,"CURRENT_CHAIN_CONFIG"],[50,57,30,55],[50,58,30,55,"CURRENT_CHAIN_CONFIG"],[50,78,30,55],[50,79,30,56,"name"],[50,83,30,60],[50,88,30,65],[50,89,30,66],[51,8,31,6,"console"],[51,15,31,13],[51,16,31,14,"log"],[51,19,31,17],[51,20,31,18],[51,32,31,30,"CURRENT_CHAIN_CONFIG"],[51,52,31,50],[51,53,31,50,"CURRENT_CHAIN_CONFIG"],[51,73,31,50],[51,74,31,51,"rpcUrl"],[51,80,31,57],[51,82,31,59],[51,83,31,60],[52,8,33,6],[52,12,33,10],[52,13,33,11,"provider"],[52,21,33,19],[52,24,33,22],[52,28,33,26,"WsProvider"],[52,38,33,36],[52,39,33,37,"CURRENT_CHAIN_CONFIG"],[52,59,33,57],[52,60,33,57,"CURRENT_CHAIN_CONFIG"],[52,80,33,57],[52,81,33,58,"rpcUrl"],[52,87,33,64],[52,88,33,65],[53,8,34,6],[53,12,34,10],[53,13,34,11,"api"],[53,16,34,14],[53,19,34,17],[53,25,34,23,"ApiPromise"],[53,35,34,33],[53,36,34,34,"create"],[53,42,34,40],[53,43,34,41],[54,10,34,43,"provider"],[54,18,34,51],[54,20,34,53],[54,24,34,57],[54,25,34,58,"provider"],[55,8,34,67],[55,9,34,68],[55,10,34,69],[56,8,36,6],[56,14,36,12],[56,18,36,16],[56,19,36,17,"api"],[56,22,36,20],[56,23,36,21,"isReady"],[56,30,36,28],[57,8,37,6],[57,12,37,10],[57,13,37,11,"isConnected"],[57,24,37,22],[57,27,37,25],[57,31,37,29],[58,8,39,6,"console"],[58,15,39,13],[58,16,39,14,"log"],[58,19,39,17],[58,20,39,18],[58,49,39,47],[58,50,39,48],[59,8,40,6,"console"],[59,15,40,13],[59,16,40,14,"log"],[59,19,40,17],[59,20,40,18],[59,30,40,28],[59,36,40,34],[59,40,40,38],[59,41,40,39,"api"],[59,44,40,42],[59,45,40,43,"rpc"],[59,48,40,46],[59,49,40,47,"system"],[59,55,40,53],[59,56,40,54,"chain"],[59,61,40,59],[59,62,40,60],[59,63,40,61],[59,65,40,63],[59,66,40,64],[60,8,41,6,"console"],[60,15,41,13],[60,16,41,14,"log"],[60,19,41,17],[60,20,41,18],[60,29,41,27],[60,35,41,33],[60,39,41,37],[60,40,41,38,"api"],[60,43,41,41],[60,44,41,42,"rpc"],[60,47,41,45],[60,48,41,46,"system"],[60,54,41,52],[60,55,41,53,"name"],[60,59,41,57],[60,60,41,58],[60,61,41,59],[60,63,41,61],[60,64,41,62],[61,8,42,6,"console"],[61,15,42,13],[61,16,42,14,"log"],[61,19,42,17],[61,20,42,18],[61,32,42,30],[61,38,42,36],[61,42,42,40],[61,43,42,41,"api"],[61,46,42,44],[61,47,42,45,"rpc"],[61,50,42,48],[61,51,42,49,"system"],[61,57,42,55],[61,58,42,56,"version"],[61,65,42,63],[61,66,42,64],[61,67,42,65],[61,69,42,67],[61,70,42,68],[62,8,44,6],[62,15,44,13],[62,19,44,17],[63,6,45,4],[63,7,45,5],[63,8,45,6],[63,15,45,13,"error"],[63,20,45,18],[63,22,45,20],[64,8,46,6,"console"],[64,15,46,13],[64,16,46,14,"error"],[64,21,46,19],[64,22,46,20],[64,60,46,58],[64,62,46,60,"error"],[64,67,46,65],[64,68,46,66],[65,8,47,6],[65,12,47,10],[65,13,47,11,"isConnected"],[65,24,47,22],[65,27,47,25],[65,32,47,30],[66,8,48,6],[66,15,48,13],[66,20,48,18],[67,6,49,4],[68,4,50,2],[70,4,52,2],[71,0,53,0],[72,0,54,0],[73,4,55,2],[73,10,55,8,"disconnect"],[73,20,55,18,"disconnect"],[73,21,55,18],[73,23,55,36],[74,6,56,4],[74,10,56,8],[74,14,56,12],[74,15,56,13,"api"],[74,18,56,16],[74,20,56,18],[75,8,57,6],[75,14,57,12],[75,18,57,16],[75,19,57,17,"api"],[75,22,57,20],[75,23,57,21,"disconnect"],[75,33,57,31],[75,34,57,32],[75,35,57,33],[76,8,58,6],[76,12,58,10],[76,13,58,11,"api"],[76,16,58,14],[76,19,58,17],[76,23,58,21],[77,8,59,6],[77,12,59,10],[77,13,59,11,"provider"],[77,21,59,19],[77,24,59,22],[77,28,59,26],[78,8,60,6],[78,12,60,10],[78,13,60,11,"isConnected"],[78,24,60,22],[78,27,60,25],[78,32,60,30],[79,8,61,6,"console"],[79,15,61,13],[79,16,61,14,"log"],[79,19,61,17],[79,20,61,18],[79,52,61,50],[79,53,61,51],[80,6,62,4],[81,4,63,2],[83,4,65,2],[84,0,66,0],[85,0,67,0],[86,4,68,2,"isApiConnected"],[86,18,68,16,"isApiConnected"],[86,19,68,16],[86,21,68,28],[87,6,69,4],[87,13,69,11],[87,17,69,15],[87,18,69,16,"isConnected"],[87,29,69,27],[87,33,69,31],[87,37,69,35],[87,38,69,36,"api"],[87,41,69,39],[87,46,69,44],[87,50,69,48],[88,4,70,2],[90,4,72,2],[91,0,73,0],[92,0,74,0],[93,4,75,10,"getApi"],[93,10,75,16,"getApi"],[93,11,75,16],[93,13,75,31],[94,6,76,4],[94,10,76,8],[94,11,76,9],[94,15,76,13],[94,16,76,14,"api"],[94,19,76,17],[94,23,76,21],[94,24,76,22],[94,28,76,26],[94,29,76,27,"isConnected"],[94,40,76,38],[94,42,76,40],[95,8,77,6],[95,14,77,12],[95,18,77,16,"Error"],[95,23,77,21],[95,24,77,22],[95,76,77,74],[95,77,77,75],[96,6,78,4],[97,6,79,4],[97,13,79,11],[97,17,79,15],[97,18,79,16,"api"],[97,21,79,19],[98,4,80,2],[100,4,82,2],[101,0,83,0],[102,0,84,0],[103,4,85,2],[103,10,85,8,"getBalances"],[103,21,85,19,"getBalances"],[103,22,85,20,"address"],[103,29,85,35],[103,31,85,55],[104,6,86,4],[104,10,86,8],[105,8,87,6],[105,14,87,12,"api"],[105,17,87,15],[105,20,87,18],[105,24,87,22],[105,25,87,23,"getApi"],[105,31,87,29],[105,32,87,30],[105,33,87,31],[107,8,89,6],[108,8,90,6],[108,14,90,12],[109,10,90,14,"data"],[109,14,90,18],[109,16,90,20,"hezBalance"],[110,8,90,31],[110,9,90,32],[110,12,90,35],[110,18,90,41,"api"],[110,21,90,44],[110,22,90,45,"query"],[110,27,90,50],[110,28,90,51,"system"],[110,34,90,57],[110,35,90,58,"account"],[110,42,90,65],[110,43,90,66,"address"],[110,50,90,73],[110,51,90,74],[111,8,91,6],[111,14,91,12,"hezFree"],[111,21,91,19],[111,24,91,22,"hezBalance"],[111,34,91,32],[111,35,91,33,"free"],[111,39,91,37],[111,40,91,38,"toString"],[111,48,91,46],[111,49,91,47],[111,50,91,48],[112,8,92,6],[112,14,92,12,"hezReserved"],[112,25,92,23],[112,28,92,26,"hezBalance"],[112,38,92,36],[112,39,92,37,"reserved"],[112,47,92,45],[112,48,92,46,"toString"],[112,56,92,54],[112,57,92,55],[112,58,92,56],[114,8,94,6],[115,8,95,6],[115,14,95,12,"pezBalance"],[115,24,95,22],[115,27,95,25],[115,33,95,31,"api"],[115,36,95,34],[115,37,95,35,"query"],[115,42,95,40],[115,43,95,41,"assets"],[115,49,95,47],[115,50,95,48,"account"],[115,57,95,55],[115,58,95,56,"ASSET_IDS"],[115,78,95,65],[115,79,95,65,"ASSET_IDS"],[115,88,95,65],[115,89,95,66,"PEZ"],[115,92,95,69],[115,94,95,71,"address"],[115,101,95,78],[115,102,95,79],[116,8,96,6],[116,14,96,12,"pezFree"],[116,21,96,19],[116,24,96,22,"pezBalance"],[116,34,96,32],[116,35,96,33,"isSome"],[116,41,96,39],[116,44,96,42,"pezBalance"],[116,54,96,52],[116,55,96,53,"unwrap"],[116,61,96,59],[116,62,96,60],[116,63,96,61],[116,64,96,62,"balance"],[116,71,96,69],[116,72,96,70,"toString"],[116,80,96,78],[116,81,96,79],[116,82,96,80],[116,85,96,83],[116,88,96,86],[118,8,98,6],[119,8,99,6],[119,14,99,12,"stakingInfo"],[119,25,99,23],[119,28,99,26],[119,34,99,32,"api"],[119,37,99,35],[119,38,99,36,"query"],[119,43,99,41],[119,44,99,42,"staking"],[119,51,99,49],[119,52,99,50,"ledger"],[119,58,99,56],[119,59,99,57,"address"],[119,66,99,64],[119,67,99,65],[120,8,100,6],[120,14,100,12,"hezStaked"],[120,23,100,21],[120,26,100,24,"stakingInfo"],[120,37,100,35],[120,38,100,36,"isSome"],[120,44,100,42],[120,47,100,45,"stakingInfo"],[120,58,100,56],[120,59,100,57,"unwrap"],[120,65,100,63],[120,66,100,64],[120,67,100,65],[120,68,100,66,"active"],[120,74,100,72],[120,75,100,73,"toString"],[120,83,100,81],[120,84,100,82],[120,85,100,83],[120,88,100,86],[120,91,100,89],[122,8,102,6],[123,8,103,6],[123,14,103,12,"totalPezSupply"],[123,28,103,26],[123,31,103,29],[123,55,103,53],[123,56,103,54],[123,57,103,55],[124,8,104,6],[124,14,104,12,"governancePower"],[124,29,104,27],[124,32,104,30],[124,33,104,31,"parseFloat"],[124,43,104,41],[124,44,104,42,"pezFree"],[124,51,104,49],[124,52,104,50],[124,55,104,53,"parseFloat"],[124,65,104,63],[124,66,104,64,"totalPezSupply"],[124,80,104,78],[124,81,104,79],[124,84,104,82],[124,87,104,85],[124,89,104,87,"toFixed"],[124,96,104,94],[124,97,104,95],[124,98,104,96],[124,99,104,97],[126,8,106,6],[127,8,107,6],[127,14,107,12,"hezUsd"],[127,20,107,18],[127,23,107,21],[127,24,107,22,"parseFloat"],[127,34,107,32],[127,35,107,33,"hezFree"],[127,42,107,40],[127,43,107,41],[127,46,107,44],[127,50,107,48],[127,53,107,51],[127,56,107,54],[127,58,107,56,"toFixed"],[127,65,107,63],[127,66,107,64],[127,67,107,65],[127,68,107,66],[128,8,108,6],[128,14,108,12,"pezUsd"],[128,20,108,18],[128,23,108,21],[128,24,108,22,"parseFloat"],[128,34,108,32],[128,35,108,33,"pezFree"],[128,42,108,40],[128,43,108,41],[128,46,108,44],[128,50,108,48],[128,53,108,51],[128,56,108,54],[128,58,108,56,"toFixed"],[128,65,108,63],[128,66,108,64],[128,67,108,65],[128,68,108,66],[129,8,110,6],[129,15,110,13],[130,10,111,8,"hez"],[130,13,111,11],[130,15,111,13],[130,19,111,17],[130,20,111,18,"formatBalance"],[130,33,111,31],[130,34,111,32,"hezFree"],[130,41,111,39],[130,43,111,41],[130,45,111,43],[130,46,111,44],[131,10,112,8,"pez"],[131,13,112,11],[131,15,112,13],[131,19,112,17],[131,20,112,18,"formatBalance"],[131,33,112,31],[131,34,112,32,"pezFree"],[131,41,112,39],[131,43,112,41],[131,45,112,43],[131,46,112,44],[132,10,113,8,"hezStaked"],[132,19,113,17],[132,21,113,19],[132,25,113,23],[132,26,113,24,"formatBalance"],[132,39,113,37],[132,40,113,38,"hezStaked"],[132,49,113,47],[132,51,113,49],[132,53,113,51],[132,54,113,52],[133,10,114,8,"hezUsd"],[133,16,114,14],[134,10,115,8,"pezUsd"],[134,16,115,14],[135,10,116,8,"governancePower"],[136,8,117,6],[136,9,117,7],[137,6,118,4],[137,7,118,5],[137,8,118,6],[137,15,118,13,"error"],[137,20,118,18],[137,22,118,20],[138,8,119,6,"console"],[138,15,119,13],[138,16,119,14,"error"],[138,21,119,19],[138,22,119,20],[138,48,119,46],[138,50,119,48,"error"],[138,55,119,53],[138,56,119,54],[139,8,120,6],[140,8,121,6],[140,15,121,13],[140,19,121,17],[140,20,121,18,"getMockBalances"],[140,35,121,33],[140,36,121,34],[140,37,121,35],[141,6,122,4],[142,4,123,2],[144,4,125,2],[145,0,126,0],[146,0,127,0],[147,4,128,2],[147,10,128,8,"getTransactions"],[147,25,128,23,"getTransactions"],[147,26,128,24,"address"],[147,33,128,39],[147,35,128,41,"limit"],[147,40,128,54],[147,43,128,57],[147,45,128,59],[147,47,128,85],[148,6,129,4],[148,10,129,8],[149,8,130,6],[150,8,131,6],[151,8,132,6],[151,15,132,13],[151,19,132,17],[151,20,132,18,"getMockTransactions"],[151,39,132,37],[151,40,132,38],[151,41,132,39],[152,6,133,4],[152,7,133,5],[152,8,133,6],[152,15,133,13,"error"],[152,20,133,18],[152,22,133,20],[153,8,134,6,"console"],[153,15,134,13],[153,16,134,14,"error"],[153,21,134,19],[153,22,134,20],[153,52,134,50],[153,54,134,52,"error"],[153,59,134,57],[153,60,134,58],[154,8,135,6],[154,15,135,13],[154,19,135,17],[154,20,135,18,"getMockTransactions"],[154,39,135,37],[154,40,135,38],[154,41,135,39],[155,6,136,4],[156,4,137,2],[158,4,139,2],[159,0,140,0],[160,0,141,0],[161,4,142,2],[161,10,142,8,"getProposals"],[161,22,142,20,"getProposals"],[161,23,142,20],[161,25,142,44],[162,6,143,4],[162,10,143,8],[163,8,144,6],[163,14,144,12,"api"],[163,17,144,15],[163,20,144,18],[163,24,144,22],[163,25,144,23,"getApi"],[163,31,144,29],[163,32,144,30],[163,33,144,31],[165,8,146,6],[166,8,147,6],[166,14,147,12,"proposals"],[166,23,147,21],[166,26,147,24],[166,32,147,30,"api"],[166,35,147,33],[166,36,147,34,"query"],[166,41,147,39],[166,42,147,40,"welati"],[166,48,147,46],[166,49,147,47,"proposals"],[166,58,147,56],[166,59,147,57,"entries"],[166,66,147,64],[166,67,147,65],[166,68,147,66],[167,8,149,6],[167,15,149,13,"proposals"],[167,24,149,22],[167,25,149,23,"map"],[167,28,149,26],[167,29,149,27],[167,30,149,28],[167,31,149,29,"key"],[167,34,149,32],[167,36,149,34,"value"],[167,41,149,39],[167,42,149,45],[167,47,149,50],[168,10,150,8],[168,16,150,14,"proposalId"],[168,26,150,24],[168,29,150,27,"key"],[168,32,150,30],[168,33,150,31,"args"],[168,37,150,35],[168,38,150,36],[168,39,150,37],[168,40,150,38],[168,41,150,39,"toNumber"],[168,49,150,47],[168,50,150,48],[168,51,150,49],[169,10,151,8],[169,16,151,14,"proposal"],[169,24,151,22],[169,27,151,25,"value"],[169,32,151,30],[169,33,151,31,"unwrap"],[169,39,151,37],[169,40,151,38],[169,41,151,39],[170,10,153,8],[170,17,153,15],[171,12,154,10,"id"],[171,14,154,12],[171,16,154,14,"proposalId"],[171,26,154,24],[172,12,155,10,"title"],[172,17,155,15],[172,19,155,17],[172,31,155,29,"proposalId"],[172,41,155,39],[172,43,155,41],[173,12,156,10,"description"],[173,23,156,21],[173,25,156,23,"proposal"],[173,33,156,31],[173,34,156,32,"description"],[173,45,156,43],[173,47,156,45,"toString"],[173,55,156,53],[173,56,156,54],[173,57,156,55],[173,61,156,59],[173,77,156,75],[174,12,157,10,"proposer"],[174,20,157,18],[174,22,157,20,"proposal"],[174,30,157,28],[174,31,157,29,"proposer"],[174,39,157,37],[174,40,157,38,"toString"],[174,48,157,46],[174,49,157,47],[174,50,157,48],[175,12,158,10,"votingDeadline"],[175,26,158,24],[175,28,158,26,"proposal"],[175,36,158,34],[175,37,158,35,"deadline"],[175,45,158,43],[175,46,158,44,"toNumber"],[175,54,158,52],[175,55,158,53],[175,56,158,54],[176,12,159,10,"yesVotes"],[176,20,159,18],[176,22,159,20,"proposal"],[176,30,159,28],[176,31,159,29,"yesVotes"],[176,39,159,37],[176,40,159,38,"toString"],[176,48,159,46],[176,49,159,47],[176,50,159,48],[177,12,160,10,"noVotes"],[177,19,160,17],[177,21,160,19,"proposal"],[177,29,160,27],[177,30,160,28,"noVotes"],[177,37,160,35],[177,38,160,36,"toString"],[177,46,160,44],[177,47,160,45],[177,48,160,46],[178,12,161,10,"status"],[178,18,161,16],[178,20,161,18,"proposal"],[178,28,161,26],[178,29,161,27,"status"],[178,35,161,33],[178,36,161,34,"toString"],[178,44,161,42],[178,45,161,43],[179,10,162,8],[179,11,162,9],[180,8,163,6],[180,9,163,7],[180,10,163,8],[181,6,164,4],[181,7,164,5],[181,8,164,6],[181,15,164,13,"error"],[181,20,164,18],[181,22,164,20],[182,8,165,6,"console"],[182,15,165,13],[182,16,165,14,"error"],[182,21,165,19],[182,22,165,20],[182,49,165,47],[182,51,165,49,"error"],[182,56,165,54],[182,57,165,55],[183,8,166,6],[183,15,166,13],[183,19,166,17],[183,20,166,18,"getMockProposals"],[183,36,166,34],[183,37,166,35],[183,38,166,36],[184,6,167,4],[185,4,168,2],[187,4,170,2],[188,0,171,0],[189,0,172,0],[190,4,173,2],[190,10,173,8,"sendTokens"],[190,20,173,18,"sendTokens"],[190,21,174,4,"from"],[190,25,174,16],[190,27,175,4,"to"],[190,29,175,14],[190,31,176,4,"amount"],[190,37,176,18],[190,39,177,4,"token"],[190,44,177,24],[190,46,178,4,"signer"],[190,52,178,15],[190,54,179,21],[191,6,180,4],[191,10,180,8],[192,8,181,6],[192,14,181,12,"api"],[192,17,181,15],[192,20,181,18],[192,24,181,22],[192,25,181,23,"getApi"],[192,31,181,29],[192,32,181,30],[192,33,181,31],[193,8,183,6],[193,12,183,10,"tx"],[193,14,183,12],[194,8,184,6],[194,12,184,10,"token"],[194,17,184,15],[194,22,184,20],[194,27,184,25],[194,29,184,27],[195,10,185,8,"tx"],[195,12,185,10],[195,15,185,13,"api"],[195,18,185,16],[195,19,185,17,"tx"],[195,21,185,19],[195,22,185,20,"balances"],[195,30,185,28],[195,31,185,29,"transfer"],[195,39,185,37],[195,40,185,38,"to"],[195,42,185,40],[195,44,185,42,"amount"],[195,50,185,48],[195,51,185,49],[196,8,186,6],[196,9,186,7],[196,15,186,13],[197,10,187,8,"tx"],[197,12,187,10],[197,15,187,13,"api"],[197,18,187,16],[197,19,187,17,"tx"],[197,21,187,19],[197,22,187,20,"assets"],[197,28,187,26],[197,29,187,27,"transfer"],[197,37,187,35],[197,38,187,36,"ASSET_IDS"],[197,58,187,45],[197,59,187,45,"ASSET_IDS"],[197,68,187,45],[197,69,187,46,"PEZ"],[197,72,187,49],[197,74,187,51,"to"],[197,76,187,53],[197,78,187,55,"amount"],[197,84,187,61],[197,85,187,62],[198,8,188,6],[199,8,190,6],[199,14,190,12,"hash"],[199,18,190,16],[199,21,190,19],[199,27,190,25,"tx"],[199,29,190,27],[199,30,190,28,"signAndSend"],[199,41,190,39],[199,42,190,40,"signer"],[199,48,190,46],[199,49,190,47],[200,8,191,6],[200,15,191,13,"hash"],[200,19,191,17],[200,20,191,18,"toString"],[200,28,191,26],[200,29,191,27],[200,30,191,28],[201,6,192,4],[201,7,192,5],[201,8,192,6],[201,15,192,13,"error"],[201,20,192,18],[201,22,192,20],[202,8,193,6,"console"],[202,15,193,13],[202,16,193,14,"error"],[202,21,193,19],[202,22,193,20],[202,45,193,43],[202,47,193,45,"error"],[202,52,193,50],[202,53,193,51],[203,8,194,6],[203,14,194,12,"error"],[203,19,194,17],[204,6,195,4],[205,4,196,2],[207,4,198,2],[208,0,199,0],[209,0,200,0],[210,4,201,2],[210,10,201,8,"stakeTokens"],[210,21,201,19,"stakeTokens"],[210,22,202,4,"address"],[210,29,202,19],[210,31,203,4,"amount"],[210,37,203,18],[210,39,204,4,"signer"],[210,45,204,15],[210,47,205,21],[211,6,206,4],[211,10,206,8],[212,8,207,6],[212,14,207,12,"api"],[212,17,207,15],[212,20,207,18],[212,24,207,22],[212,25,207,23,"getApi"],[212,31,207,29],[212,32,207,30],[212,33,207,31],[213,8,208,6],[213,14,208,12,"tx"],[213,16,208,14],[213,19,208,17,"api"],[213,22,208,20],[213,23,208,21,"tx"],[213,25,208,23],[213,26,208,24,"staking"],[213,33,208,31],[213,34,208,32,"bond"],[213,38,208,36],[213,39,208,37,"address"],[213,46,208,44],[213,48,208,46,"amount"],[213,54,208,52],[213,56,208,54],[213,64,208,62],[213,65,208,63],[214,8,209,6],[214,14,209,12,"hash"],[214,18,209,16],[214,21,209,19],[214,27,209,25,"tx"],[214,29,209,27],[214,30,209,28,"signAndSend"],[214,41,209,39],[214,42,209,40,"signer"],[214,48,209,46],[214,49,209,47],[215,8,210,6],[215,15,210,13,"hash"],[215,19,210,17],[215,20,210,18,"toString"],[215,28,210,26],[215,29,210,27],[215,30,210,28],[216,6,211,4],[216,7,211,5],[216,8,211,6],[216,15,211,13,"error"],[216,20,211,18],[216,22,211,20],[217,8,212,6,"console"],[217,15,212,13],[217,16,212,14,"error"],[217,21,212,19],[217,22,212,20],[217,45,212,43],[217,47,212,45,"error"],[217,52,212,50],[217,53,212,51],[218,8,213,6],[218,14,213,12,"error"],[218,19,213,17],[219,6,214,4],[220,4,215,2],[222,4,217,2],[223,0,218,0],[224,0,219,0],[225,4,220,2],[225,10,220,8,"voteOnProposal"],[225,24,220,22,"voteOnProposal"],[225,25,221,4,"proposalId"],[225,35,221,22],[225,37,222,4,"vote"],[225,41,222,22],[225,43,223,4,"amount"],[225,49,223,18],[225,51,224,4,"signer"],[225,57,224,15],[225,59,225,21],[226,6,226,4],[226,10,226,8],[227,8,227,6],[227,14,227,12,"api"],[227,17,227,15],[227,20,227,18],[227,24,227,22],[227,25,227,23,"getApi"],[227,31,227,29],[227,32,227,30],[227,33,227,31],[228,8,228,6],[228,14,228,12,"tx"],[228,16,228,14],[228,19,228,17,"api"],[228,22,228,20],[228,23,228,21,"tx"],[228,25,228,23],[228,26,228,24,"welati"],[228,32,228,30],[228,33,228,31,"vote"],[228,37,228,35],[228,38,228,36,"proposalId"],[228,48,228,46],[228,50,228,48,"vote"],[228,54,228,52],[228,59,228,57],[228,64,228,62],[228,66,228,64,"amount"],[228,72,228,70],[228,73,228,71],[229,8,229,6],[229,14,229,12,"hash"],[229,18,229,16],[229,21,229,19],[229,27,229,25,"tx"],[229,29,229,27],[229,30,229,28,"signAndSend"],[229,41,229,39],[229,42,229,40,"signer"],[229,48,229,46],[229,49,229,47],[230,8,230,6],[230,15,230,13,"hash"],[230,19,230,17],[230,20,230,18,"toString"],[230,28,230,26],[230,29,230,27],[230,30,230,28],[231,6,231,4],[231,7,231,5],[231,8,231,6],[231,15,231,13,"error"],[231,20,231,18],[231,22,231,20],[232,8,232,6,"console"],[232,15,232,13],[232,16,232,14,"error"],[232,21,232,19],[232,22,232,20],[232,49,232,47],[232,51,232,49,"error"],[232,56,232,54],[232,57,232,55],[233,8,233,6],[233,14,233,12,"error"],[233,19,233,17],[234,6,234,4],[235,4,235,2],[237,4,237,2],[238,0,238,0],[239,0,239,0],[240,4,240,10,"formatBalance"],[240,17,240,23,"formatBalance"],[240,18,240,24,"balance"],[240,25,240,39],[240,27,240,41,"decimals"],[240,35,240,57],[240,37,240,67],[241,6,241,4],[241,12,241,10,"value"],[241,17,241,15],[241,20,241,18,"parseFloat"],[241,30,241,28],[241,31,241,29,"balance"],[241,38,241,36],[241,39,241,37],[241,42,241,40,"Math"],[241,46,241,44],[241,47,241,45,"pow"],[241,50,241,48],[241,51,241,49],[241,53,241,51],[241,55,241,53,"decimals"],[241,63,241,61],[241,64,241,62],[242,6,242,4],[242,13,242,11,"value"],[242,18,242,16],[242,19,242,17,"toLocaleString"],[242,33,242,31],[242,34,242,32],[242,41,242,39],[242,43,242,41],[243,8,242,43,"maximumFractionDigits"],[243,29,242,64],[243,31,242,66],[244,6,242,68],[244,7,242,69],[244,8,242,70],[245,4,243,2],[247,4,245,2],[248,0,246,0],[249,0,247,0],[250,4,248,10,"getMockBalances"],[250,19,248,25,"getMockBalances"],[250,20,248,25],[250,22,248,37],[251,6,249,4],[251,13,249,11],[252,8,250,6,"hez"],[252,11,250,9],[252,13,250,11],[252,23,250,21],[253,8,251,6,"pez"],[253,11,251,9],[253,13,251,11],[253,24,251,22],[254,8,252,6,"hezStaked"],[254,17,252,15],[254,19,252,17],[254,27,252,25],[255,8,253,6,"hezUsd"],[255,14,253,12],[255,16,253,14],[255,24,253,22],[256,8,254,6,"pezUsd"],[256,14,254,12],[256,16,254,14],[256,25,254,23],[257,8,255,6,"governancePower"],[257,23,255,21],[257,25,255,23],[258,6,256,4],[258,7,256,5],[259,4,257,2],[260,4,259,10,"getMockTransactions"],[260,23,259,29,"getMockTransactions"],[260,24,259,29],[260,26,259,47],[261,6,260,4],[261,13,260,11],[261,14,261,6],[262,8,262,8,"id"],[262,10,262,10],[262,12,262,12],[262,15,262,15],[263,8,263,8,"type"],[263,12,263,12],[263,14,263,14],[263,20,263,27],[264,8,264,8,"amount"],[264,14,264,14],[264,16,264,16],[264,21,264,21],[265,8,265,8,"token"],[265,13,265,13],[265,15,265,15],[265,20,265,20],[266,8,266,8,"from"],[266,12,266,12],[266,14,266,14],[266,64,266,64],[267,8,267,8,"to"],[267,10,267,10],[267,12,267,12],[267,62,267,62],[268,8,268,8,"timestamp"],[268,17,268,17],[268,19,268,19,"Date"],[268,23,268,23],[268,24,268,24,"now"],[268,27,268,27],[268,28,268,28],[268,29,268,29],[268,32,268,32],[268,40,268,40],[269,8,269,8,"blockNumber"],[269,19,269,19],[269,21,269,21],[269,27,269,27],[270,8,270,8,"hash"],[270,12,270,12],[270,14,270,14],[270,34,270,34],[271,8,271,8,"status"],[271,14,271,14],[271,16,271,16],[272,6,272,6],[272,7,272,7],[272,9,273,6],[273,8,274,8,"id"],[273,10,274,10],[273,12,274,12],[273,15,274,15],[274,8,275,8,"type"],[274,12,275,12],[274,14,275,14],[274,23,275,30],[275,8,276,8,"amount"],[275,14,276,14],[275,16,276,16],[275,21,276,21],[276,8,277,8,"token"],[276,13,277,13],[276,15,277,15],[276,20,277,20],[277,8,278,8,"from"],[277,12,278,12],[277,14,278,14],[277,64,278,64],[278,8,279,8,"to"],[278,10,279,10],[278,12,279,12],[278,62,279,62],[279,8,280,8,"timestamp"],[279,17,280,17],[279,19,280,19,"Date"],[279,23,280,23],[279,24,280,24,"now"],[279,27,280,27],[279,28,280,28],[279,29,280,29],[279,32,280,32],[279,41,280,41],[280,8,281,8,"blockNumber"],[280,19,281,19],[280,21,281,21],[280,27,281,27],[281,8,282,8,"hash"],[281,12,282,12],[281,14,282,14],[281,34,282,34],[282,8,283,8,"status"],[282,14,283,14],[282,16,283,16],[283,6,284,6],[283,7,284,7],[283,8,285,5],[284,4,286,2],[285,4,288,10,"getMockProposals"],[285,20,288,26,"getMockProposals"],[285,21,288,26],[285,23,288,41],[286,6,289,4],[286,13,289,11],[286,14,290,6],[287,8,291,8,"id"],[287,10,291,10],[287,12,291,12],[287,13,291,13],[288,8,292,8,"title"],[288,13,292,13],[288,15,292,15],[288,27,292,27],[289,8,293,8,"description"],[289,19,293,19],[289,21,293,21],[289,48,293,48],[290,8,294,8,"proposer"],[290,16,294,16],[290,18,294,18],[290,68,294,68],[291,8,295,8,"votingDeadline"],[291,22,295,22],[291,24,295,24,"Date"],[291,28,295,28],[291,29,295,29,"now"],[291,32,295,32],[291,33,295,33],[291,34,295,34],[291,37,295,37],[291,46,295,46],[292,8,296,8,"yesVotes"],[292,16,296,16],[292,18,296,18],[292,25,296,25],[293,8,297,8,"noVotes"],[293,15,297,15],[293,17,297,17],[293,23,297,23],[294,8,298,8,"status"],[294,14,298,14],[294,16,298,16],[295,6,299,6],[295,7,299,7],[295,9,300,6],[296,8,301,8,"id"],[296,10,301,10],[296,12,301,12],[296,13,301,13],[297,8,302,8,"title"],[297,13,302,13],[297,15,302,15],[297,27,302,27],[298,8,303,8,"description"],[298,19,303,19],[298,21,303,21],[298,48,303,48],[299,8,304,8,"proposer"],[299,16,304,16],[299,18,304,18],[299,68,304,68],[300,8,305,8,"votingDeadline"],[300,22,305,22],[300,24,305,24,"Date"],[300,28,305,28],[300,29,305,29,"now"],[300,32,305,32],[300,33,305,33],[300,34,305,34],[300,37,305,37],[300,46,305,46],[301,8,306,8,"yesVotes"],[301,16,306,16],[301,18,306,18],[301,23,306,23],[302,8,307,8,"noVotes"],[302,15,307,15],[302,17,307,17],[302,20,307,20],[303,8,308,8,"status"],[303,14,308,14],[303,16,308,16],[304,6,309,6],[304,7,309,7],[304,8,310,5],[305,4,311,2],[306,2,312,0],[308,2,314,0],[309,2,315,7],[309,8,315,13,"blockchainService"],[309,25,315,30],[309,28,315,33],[309,32,315,37,"BlockchainService"],[309,49,315,54],[309,50,315,55],[309,51,315,56],[310,2,316,0],[310,6,316,0,"_default"],[310,14,316,0],[310,17,316,15,"blockchainService"],[310,34,316,32],[311,0,316,33],[311,3]],"functionMap":{"names":["<global>","BlockchainService","BlockchainService#connect","BlockchainService#disconnect","BlockchainService#isApiConnected","BlockchainService#getApi","BlockchainService#getBalances","BlockchainService#getTransactions","BlockchainService#getProposals","proposals.map$argument_0","BlockchainService#sendTokens","BlockchainService#stakeTokens","BlockchainService#voteOnProposal","BlockchainService#formatBalance","BlockchainService#getMockBalances","BlockchainService#getMockTransactions","BlockchainService#getMockProposals"],"mappings":"AAA;ACmB;ECQ;GDsB;EEK;GFQ;EGK;GHE;EIK;GJK;EKK;GLsC;EMK;GNS;EOK;2BCO;ODc;GPK;ESK;GTuB;EUK;GVc;EWK;GXe;EYK;GZG;EaK;GbS;EcE;Gd2B;EeE;GfuB;CDC"},"hasCjsExports":false},"type":"js/module"}]}