From f47ec98e91514318e61f140c699def21ddda53b1 Mon Sep 17 00:00:00 2001 From: danny Date: Wed, 16 Aug 2017 19:10:50 -0400 Subject: [PATCH 01/12] apply EthBlocks.init fix --- interface/client/appStart.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interface/client/appStart.js b/interface/client/appStart.js index 459fc08c3..f4891574d 100644 --- a/interface/client/appStart.js +++ b/interface/client/appStart.js @@ -7,6 +7,13 @@ mistInit = function () { console.info('Initialise Mist Interface'); EthBlocks.init(); + const ethBlocksInterval = setInterval(() => { + if (_.isEmpty(EthBlocks.latest)) { + EthBlocks.init(); + } else { + clearInterval(ethBlocksInterval); + } + }, 500); Tabs.onceSynced.then(function () { if (location.search.indexOf('reset-tabs') >= 0) { From b86fcf36bf385c623b8c8931f493c8bfebe06fd0 Mon Sep 17 00:00:00 2001 From: Ev Date: Tue, 17 Oct 2017 18:45:55 -0200 Subject: [PATCH 02/12] Create CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 84 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..0fba6705f --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,84 @@ +# Code of Conduct + +## 1. Purpose + +A primary goal of Mist project is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof). + +This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior. + +We invite all those who participate in Mist project to help us create safe and positive experiences for everyone. + +## 2. Open Source Citizenship + +A supplemental goal of this Code of Conduct is to increase open source citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community. + +Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society. + +If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know. + +## 3. Expected Behavior + +The following behaviors are expected and requested of all community members: + +* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community. +* Exercise consideration and respect in your speech and actions. +* Attempt collaboration before conflict. +* Refrain from demeaning, discriminatory, or harassing behavior and speech. +* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential. +* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations. + +## 4. Unacceptable Behavior + +The following behaviors are considered harassment and are unacceptable within our community: + +* Violence, threats of violence or violent language directed against another person. +* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language. +* Posting or displaying sexually explicit or violent material. +* Posting or threatening to post other people’s personally identifying information ("doxing"). +* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability. +* Inappropriate photography or recording. +* Inappropriate physical contact. You should have someone’s consent before touching them. +* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances. +* Deliberate intimidation, stalking or following (online or in person). +* Advocating for, or encouraging, any of the above behavior. +* Sustained disruption of community events, including talks and presentations. + +## 5. Consequences of Unacceptable Behavior + +Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated. + +Anyone asked to stop unacceptable behavior is expected to comply immediately. + +If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event). + +## 6. Reporting Guidelines + +If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. ev@ethereum.org. + + + +Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress. + +## 7. Addressing Grievances + +If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify the Mist team with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. + + + +## 8. Scope + +We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues–online and in-person–as well as in all one-on-one communications pertaining to community business. + +This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members. + +## 9. Contact info + +ev@ethereum.org + +## 10. License and attribution + +This Code of Conduct is distributed under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/). + +Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy). + +Retrieved on November 22, 2016 from [http://citizencodeofconduct.org/](http://citizencodeofconduct.org/) From 780ba3dde7eea853a3e421d0d3ab79dff609e256 Mon Sep 17 00:00:00 2001 From: Aleix Date: Thu, 19 Oct 2017 11:01:31 +0200 Subject: [PATCH 03/12] Catalan language support. --- interface/i18n/app.ca.i18n.json | 36 ++++ interface/i18n/mist.ca.i18n.json | 309 +++++++++++++++++++++++++++++++ interface/i18n/mist.en.i18n.json | 1 + interface/project-tap.i18n | 2 +- 4 files changed, 347 insertions(+), 1 deletion(-) create mode 100644 interface/i18n/app.ca.i18n.json create mode 100644 interface/i18n/mist.ca.i18n.json diff --git a/interface/i18n/app.ca.i18n.json b/interface/i18n/app.ca.i18n.json new file mode 100644 index 000000000..88a1e22d5 --- /dev/null +++ b/interface/i18n/app.ca.i18n.json @@ -0,0 +1,36 @@ +{ + "app": { + "loading": "Carregant...", + "offline": "No s'ha pogut connectar, estàs desconectat?", + "logginIn": "iniciant sessió..." + }, + "error": { + "insufficientRights": "No tens prous drets per aquesta acció." + }, + "buttons": { + "ok": "OK", + "cancel": "Cancel·lar", + "save": "Desa", + "edit": "Edita", + "send": "Envia", + "next": "Següent", + "previous": "Anterior", + "back": "Enrere", + "skip": "Omet", + "sending": "Enviant...", + "create": "Crea", + "tryToReconnect": "Intenta reconnectar", + "stayAnonymous": "Mantenir l'anonimat", + "authorize": "Authoritza" + }, + "commonWords": { + "you": "Tu", + "send": "Envia", + "or": "o", + "of": "de", + "with": "amb", + "and": "i", + "on": "a", + "per": "per" + } +} diff --git a/interface/i18n/mist.ca.i18n.json b/interface/i18n/mist.ca.i18n.json new file mode 100644 index 000000000..5d3e775f6 --- /dev/null +++ b/interface/i18n/mist.ca.i18n.json @@ -0,0 +1,309 @@ +{ + "mist": { + "applicationMenu": { + "app": { + "label": "__app__", + "about": "Sobre __app__", + "checkForUpdates": "Buscar actualitzacions...", + "checkForNodeUpdates": "Busca actualitzacions dels nodes d'Ethereum...", + "services": "Serveis", + "hide": "Hide __app__", + "hideOthers": "Ocultar els altres", + "showAll": "Mostrar tot", + "quit": "Sortir __app__" + }, + "file": { + "label": "Fitxer", + "importPresale": "Importa compte", + "newAccount": "Nou compte", + "backup": "Copia de seguretat", + "backupKeyStore": "Comptes", + "backupMist": "Dades de l'aplicació", + "swarmUpload": "Pujar a Swarm..." + }, + "edit": { + "label": "Editar", + "undo": "Desfer", + "redo": "Refer", + "cut": "Tallar", + "copy": "Copiar", + "paste": "Enganxar", + "selectAll": "Seleccionar tot" + }, + "view": { + "label": "Veure", + "fullscreen": "Commutar pantalla completa", + "languages": "Idioma", + "default": "Defecte", + "langCodes": { + "ca": "Català", + "de": "Deutsch", + "en": "English", + "es": "Español", + "fa": "فارسى", + "fr": "Français", + "it": "Italiano", + "ja": "日本語", + "ko": "한국어 ", + "nl": "Nederlands", + "nb": "Norsk", + "pt": "Português", + "sq": "Shqip", + "ru": "Pусский", + "zh": "普通話", + "zh-TW": "國語" + } + }, + "develop": { + "label": "Desenvolupar", + "devTools": "Commutar eines de desenvolupador", + "devToolsMistUI": "Mist UI", + "devToolsWalletUI": "Wallet UI", + "devToolsWebview": "__webview__", + "runTests": "Executar tests", + "logFiles": "Mostrar fitxer de log", + "openRemix": "Obrir Remix IDE", + "externalNode": "utilitzar un node extern", + "ethereumNode": "Node d'Ethereum", + "network": "Xarxa", + "mainNetwork": "Xarxa Principal", + "nodeMode": "Descàrrega de la Cadena", + "fullNode": "Desar la blockchain completa", + "lightNode": "Utilitzar el Node lleuger (experimental!)", + "startMining": "⛏ Començar a minar (només Testnet)", + "stopMining": "⛏ Parar de minar" + }, + "window": { + "label": "Finestra", + "minimize": "Minimitza", + "close": "Tancar", + "toFront": "Portar tot al front" + }, + "help": { + "label": "Ajuda", + "mistWiki": "Solució de problemes i Ajuda", + "gitter": "Canal de Mist a Gitter", + "reportBug": "Reportar un problema a Github" + } + }, + "errors": { + "nodeConnect": "No has pogut connectar al node? Mira els logs per més:", + "nodeStartup": "Sembla que el node no s'ha pogut iniciar. Ja en tens un executant-se? Està actualitzant la base de dades just ara?", + "timeSync": { + "title": "El rellotge de l'ordinador no està sincronitzat.", + "description": "Per estar del tot sincronitzat amb la xarxa Ethereum, necessites sincronitzar el rellotge del teu ordinador amb un servidor de sincronització.", + "win32": "Vés a les teves preferències del rellotge d'internet i marca la casella. Mira aquesta guia per tenir-ne més detalls: http://www.guidingtech.com/3119/windows-clock-sync/", + "linux": "Per habilitar la sincronització del rellotge, instal·la \"ntp\" mitjançant \"apt-get install ntp\".", + "darwin": "Per habilitar la sincronització del rellotge, obre les preferències de Data i hora i activa \"Ajustar la data i l'hora automàticament\"." + }, + "nodeChecksumMismatch": { + "title": "La suma de verificació no coincideix amb el node descarregat!", + "description": "__algorithm__: __hash__\n\nSi us plau instal·la el __type__ node versió __version__ manualment." + }, + "legacyChain": { + "title": "Cadena 'legacy' detectada", + "description": "El teu node està actualment a la cadena d'Ethereum Classic. Per utilitzar aquesta cadena, utilitza les eines proporcionades pel projecte ethereum classic a\nhttps://ethereumclassic.github.io.\n\nPer canviar a la cadena principal d'ethereum segueix el aquest tutorial:\nhttps://github.com/ethereum/mist/releases/0.8.2" + } + }, + "rightClick": { + "reload": "Recarregar", + "openDevTools": "Obre les eines de desenvolupador", + "inspectElements": "Inspecciona element" + }, + "nodeInfo": { + "nodeSyncing": "Resten __blockDiff__ blocs", + "blockReceived": "Nou bloc rebut", + "blockReceivedShort": "Nou bloc", + "blockNumber": "El teu últim número de bloc", + "timeSinceBlock": "Temps transcorregut des de l'últim bloc", + "checkingWhichNetwork": "Comprovant la xarxa...", + "mainNetwork": "Main-net", + "testNetwork": "Test-net", + "privateNetwork": "Private-net", + "mainnetExplain": "Ets a la xarxa gobal d'Ethereum principal", + "testnetExplain": "Ets a la __name__. NO ENVIÏS cap Ether real a aquestes adreces", + "privatenetExplain": "Ets a la xara privada. NO ENVIÏS cap Ether real a aquestes adreces", + "unknownnetExplain": "Incapaç de determinar a quina xarxa ets", + "peers": "peers" + }, + "sidebar": { + "buttons": { + "browser": "Navega" + }, + "submenu": { + "account": "Compte", + "account_plural": "Comptes", + "connectAccounts": "Connectar Comptes" + } + }, + "browserBar": { + "buttons": { + "noAccounts": "Comptes no establerts", + "connect": "Connectar" + } + }, + "startScreen": { + "runningNodeFound": "Trobat node d'Ethereum executant-se!", + "startingNode": "Iniciant node d'Ethereum...", + "stoppingNode": "Aturant node d'Ethereum...", + "startedNode": "Iniciant l'aplicació...", + "nodeConnectionTimeout": "No s'ha pogut iniciar el node d'Ethereum!
Si has instal·lat Geth, utilitza aquesta comanda per executar-lo:
geth --ipcpath __path__

O notifica l'error ", + "nodeBinaryNotFound": "No s'ha torbat el binari del node d'Ethereum!
Si us plau inicia'n un manualment primer. ", + "nodeStarting": "Node d'Ethereum iniciant-se...", + "nodeStarted": "Node d'Ethereum iniciat", + "nodeConnected": "Node d'Ethereum connectat", + "nodeStopping": "Ethereum node aturant-se...", + "nodeStopped": "Node d'Ethereum aturat", + "nodeError": "Error de connectivitat del node d'Ethereum:'(", + "unableToBindPort": "El node d'Ethereum no pot executar-se. N'hi ha alguna altra instància excutant-se?", + "nodeSyncing": "El node d'Ethereum necessita sincronitzar-se, si us plau espera...", + "nodeSyncInfo": "Descarregant bloc __displayBlock__ de __highestBlock__", + "nodeSyncInfoStates": "Descarregant bloc __displayBlock__ de __highestBlock__,
Descarregant l'estructura de la cadena __displayState__ de __displayKnownStates__", + "nodeSyncConnecting": "Cercant peers...", + "nodeSyncFoundPeers": "Connectant amb __peers__ peers...", + "peerSearchTimeout": "Passar cerca de peers", + "launchApp": "Iniciar Aplicació", + "clientBinaries": { + "scanning": "Comprovant actualitzacions del node...", + "downloading": "Descarregant un nou node...", + "loadConfig": "Carregant configuració del client...", + "filtering": "Filtrant binaris del client...", + "done": "Node d'Ethereum actualitzat...", + "error": "Error executant el binari descarregat." + } + }, + "popupWindows": { + "updateAvailable": { + "newVersionAvailable": "Nova __name__ versió disponible", + "version": "Versió", + "downloadURL": "URL de descàrrega", + "checksum": "Checksum", + "downloadAndRestart": "Actualitza i Reinicia", + "download": "Descarrega la nova versió", + "skipUpdate": "Omet l'actualització", + "notNow": "Pregunta-m'ho després", + "checking": "Comprovant actualitzacions a __name__...", + "noUpdateFound": "No s'ha trobat cap actualització. Estàs executant l'última versió de __name__." + }, + "requestAccount": { + "title": "Crear un compte", + "enterPassword": "Introdueix una contrasenya", + "repeatPassword": "Repeteix la contrasenya", + "creating": "Generant el compte...", + "backupHint": "Assegura't que fas una còpia de seguretat dels teus fitxer de claus I contrasenya!\n\nPots trobar el teu fitxer de claus mitjançant el menú principal -> Comptes -> Copia de seguretat -> Comptes. Desa una copia de la carpeta del \"fitxer de claus\" on no puguis perdre-la!", + "errors": { + "passwordMismatch": "Les teves contrasenyes no coincideixen.", + "passwordTooShort": "Utilitza una contrasenya més llarga" + } + }, + "unlockMasterPassword": { + "title": "Introdueix una contrasenya mestra", + "enterPassword": "Introdueix contrasenya mestra", + "unlocking": "Desbloquejant...", + "errors": { + "wrongPassword": "La contrasenya és incorrecta. Torna-ho a provar." + } + }, + "sendTransactionConfirmation": { + "title": { + "sendTransaction": "Enviar transacció", + "contractExecution": "Executar contracte", + "createContract": "Crear contracte" + }, + "contractExecutionInfo": "Estàs a punt d'executar una funció d'un contracte. Això podria implicar una transferència de valor.", + "contractCreationInfo": "Estàs a punt de crear un contracte de les dades proporcionades.", + "enterPassword": "Introdueix la contrasenya per confirmar la transacció", + "unlocking": "Confirmant...", + "createContract": "Crear contracte", + "estimatedFee": "Comissió estimada", + "estimatedGasError": "Sembla que la transacció fallarà. Si l'envieu, pot consumir tot el gas proporcionat.", + "transactionThrow": "El contracte no et permetrà executar aquesta transacció", + "overBlockGasLimit": "El gas necesàri per aquesta execució pot sobrepassar el limit de gas pel bloc.", + "notEnoughGas": "El gas pot no ser suficient per acabar aquesta execució amb èxit.
Fés clic aquí per augmentar la quantitat de gas.", + "noEstimate": "No s'ha pogut calcular el gas necessari.", + "gasPrice": "Preu del Gas", + "perMillionGas": "ether per un milió de gas", + "gasLimit": "Proporciona la comissió màxima", + "data": "Dades en brut", + "parameters": "Paràmetres", + "buttons": { + "sendTransaction": "Enviar transacció" + }, + "errors": { + "connectionTimeout": "No s'ha pogut connectar al node, ha fallat la tasca al fons?", + "wrongPassword": "Contrasenya errònia", + "multipleKeysMatchAddress": "Multiples claus coincideixen amb l'adreça. Si us plau eliminar els duplicats del fitxer de claus (menú -> comptes -> copia de seguretat -> comptes)", + "insufficientFundsForGas": "Saldo insuficient al compte principal (etherbase) per pagar el gas", + "sameAccount": "No es pot enviar a un mateix" + }, + "showRawBytecode": "mostrar dades en brut", + "showDecodedParameters": "mostra els paràmetres descodificats", + "lookupData": "Intentar descodificar les dades", + "lookupDataExplainer": "Mira això a internet" + }, + "onboarding": { + "description": "Ethereum és una plataforma per aplicacions descentralitzades de la blockchain amb un llenguatge de programació complet", + "goToTestnet": "Utilitza la xarxa de test (Rinkeby)", + "goToTestnetDescription": "Prova la tecnologia lliurement a la xarxa de test 'sandboxed', sembla utilitzar Ether real.", + "gotoMainnet": "Utilitza la xarxa principal", + "gotoMainnetDescription": "Necessitaràs Ether per crear i executar contractes. No et preocupis, t'ajudarem a aconseguir-ne una mica...", + "doYouHaveAWalletFile": "Tens un fitxer de wallet?", + "walletFileDescription": "

Mou qualsevol wallet aquí per a importar-lo.
Si va participar a la Pre-venda d'Ethereum el 2014, hauries de tenir un fitxer anomenat ethereum_wallet_backup.json. El vas poder descarregar després de la venda i també se't va enviar al teu email

", + "dropFilesHere": "Deixa anar el fitxer de wallet", + "creating": "Creant...", + "importing": "Important...", + "skip": "Saltar aquest pas", + "next": "Següent", + "protectTitle": "Protegeix el teu compte", + "protectDescription": "Escull una contrasenya pel teu nou compte. Assegura't que és tant fort com si hagués de protegir les claus de casa teva!", + "accountTitle": "Carrega'l!", + "accountTitleTestnet": "Minar una mica!", + "etherDescription": "La xarxa d'ethereum es basa en un token anomenat “Ether”. En necessitaràs una petita quantitat per fer qualsevol cosa a la xarxa d'Ethereum.", + "loadItDescription": "Si ja tens Bitcoin, o qualsevol altra criptomoneda, pots canviar-la a Ether fàcilment utilitzant Shapeshift.

Et recomanem carregar entre 0.25 i 1 Ether.", + "faucetDescription": "La xarxa de test Rinkeby utilitza 'Clique Proof of Authority' com a mecanisme de consens, pertant no hi ha minat. Si vols obtenir una mica d'ether de prova, vés a la Rinkeby Faucet: faucet.rinkeby.io ", + "you": "TU", + "etherbase": "Compte principal (etherbase)", + "depositBitcoin": "Depositar utilitzant Bitcoin", + "viaShapeshift": "Conversió instantània mitjançant Shapeshift", + "learnIt": "Aprèn mentre esperes", + "downloadingBlocks": "Descarregant blocs", + "syncMessage": "Bloc __displayBlock__ de __highestBlockString__", + "syncMessageWithStates": "Bloc __displayBlock__ de __highestBlockString__ (Estructura de cadena __statesPercent__%)", + "startingSync": "Preparant-se per sinc..", + "tutorial1Description": "

Ara l'última cosa que queda és esperar que la descàrrega acabi. Aquí tens alguna lectura suggerida:

Crea els teu propis diners

Crea una criptomoneda amb una quantitat fixa, tokens representant actius reals, etc.

", + "tutorial2Description": "

Crea una venda a multituds

Aixeca capital per un objectiu comú, absolutament confiable sense tercers. Evita l'obstacle del finançament tradicional i vés directament a l'origen finançant una organització mitjançant la blockchain.

", + "tutorial3Description": "

Crea una organització a la blockchain

Crea una organització autònoma amb normes de com es gasten els diners i es prenen les decisions per tu i els teus inversors.

", + "buttons": { + "showPassword": "Mostra la contrasenya", + "importAccount": "Importar compte", + "launchApp": "Llança l'aplicació!", + "learnReceipt": "Aprèn aquesta recepta" + }, + "errors": { + "nodeNotStartedYet": "Espera uns quants segons més fins que el teu node s'hagi iniciat completament i torna-ho a provar", + "unknownFile": "Fitxer no reconegut.", + "wrongPassword": "Contrasenya incorrecta.", + "importFailed": "No s'ha pogut importar el fitxer, s'ha obtingut l'error: __error__" + } + }, + "connectAccount": { + "chooseAccountTitle": "Escull compte", + "createAccount": "Crea un nou compte", + "pinToSidebar": "Fixa app a la barra lateral", + "connectAccountDescription": "Estàs compartint la teva identitat amb __dappName__. Això permet a la app veure qualsevol informació pública rellevant relacionada amb els teus comptes, incloent els saldos." + } + } + }, + "elements": { + "checksumAlert":"Aquesta adreça sembla vàlida, però no té mesures de seguretat que ajuden a no equivocar-te errors tipogràfics, re-comprova que és la correcta. Si pots, comprova que la icona de seguretat coincideix.", + "identiconHelper": "Aquesta és la icona de seguretat. Si hi hagués cap canvi a l'adreça, la icona seria una completament diferent", + "type": { + "address": "Adreça", + "bool": "Booleà", + "int": "Enter", + "uint": "Nombre Natural", + "string": "Cadena", + "bytes": "Octets" + } + } +} diff --git a/interface/i18n/mist.en.i18n.json b/interface/i18n/mist.en.i18n.json index bfa012e9c..9b97efbc6 100644 --- a/interface/i18n/mist.en.i18n.json +++ b/interface/i18n/mist.en.i18n.json @@ -36,6 +36,7 @@ "languages": "Language", "default": "Default", "langCodes": { + "ca": "Català", "de": "Deutsch", "en": "English", "es": "Español", diff --git a/interface/project-tap.i18n b/interface/project-tap.i18n index 0c215d17d..c0fafaa44 100644 --- a/interface/project-tap.i18n +++ b/interface/project-tap.i18n @@ -2,6 +2,6 @@ "cdn_path": "i18n", "helper_name": "i18n", "supported_languages": [ - "de", "en", "es", "fa", "fr", "it", "ja", "ko", "nb", "nl", "pt", "ru", "sq", "zh", "zh-TW" + "ca", "de", "en", "es", "fa", "fr", "it", "ja", "ko", "nb", "nl", "pt", "ru", "sq", "zh", "zh-TW" ] } From a18bb0578d59b0a4427d5005ad869d18b20447c3 Mon Sep 17 00:00:00 2001 From: Ilya Brin Date: Sat, 4 Nov 2017 23:27:49 +0300 Subject: [PATCH 04/12] Typo fixed [ci skip] --- modules/ethereumNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ethereumNode.js b/modules/ethereumNode.js index 731f20d7d..f3f8b49c0 100644 --- a/modules/ethereumNode.js +++ b/modules/ethereumNode.js @@ -515,7 +515,7 @@ class EthereumNode extends EventEmitter { // add node type nodelog = `Node type: ${nodeType}\n` + `Network: ${network}\n` + - `Platform: ${process.platform} (Architecure ${process.arch})\n\n${ + `Platform: ${process.platform} (Architecture ${process.arch})\n\n${ nodelog}`; dialog.showMessageBox({ From f635d569d7be24bf11255f274986ad4e2e973cd6 Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Thu, 9 Nov 2017 14:51:11 -0500 Subject: [PATCH 05/12] Updating 4byte signatures --- interface/client/lib/signatures.js | 1701 ++++++++++++++++++++++++++++ 1 file changed, 1701 insertions(+) diff --git a/interface/client/lib/signatures.js b/interface/client/lib/signatures.js index befdbdfe8..695c6df57 100644 --- a/interface/client/lib/signatures.js +++ b/interface/client/lib/signatures.js @@ -16987,5 +16987,1706 @@ window.SIGNATURES = { ], "0xae1a0b0c": [ "launchLength()" + ], + "0x0a40f15f": [ + "fundDeal(string,address)" + ], + "0x1504ce95": [ + "payout(string)" + ], + "0x2de90801": [ + "hashtagToken()" + ], + "0x2e788443": [ + "resolve(string,address,uint256)" + ], + "0x5e717e2d": [ + "readDeal(string,address)" + ], + "0xac56c52b": [ + "makeDealForTwo(string,uint256)" + ], + "0xcdcf0c4a": [ + "dispute(string,address)" + ], + "0xf089b7dd": [ + "hashtag()" + ], + "0xf3227dc4": [ + "cancelDeal(string)" + ], + "0x3cebb823": [ + "changeController(address)" + ], + "0xf77c4791": [ + "controller()" + ], + "0x085d4883": [ + "provider()" + ], + "0x0e429ecc": [ + "providerValue()" + ], + "0x117de2fd": [ + "payout(address,uint256)" + ], + "0x200d2ed2": [ + "status()" + ], + "0x2e49d78b": [ + "setStatus(uint8)" + ], + "0x30cfac6c": [ + "assignTo(uint256,address,uint256)" + ], + "0xf3ab7ea9": [ + "seeker()" + ], + "0xfef1dc7d": [ + "seekerValue()" + ], + "0x0e4355d4": [ + "validFactories(address)" + ], + "0x10fe9ae8": [ + "getTokenAddress()" + ], + "0x29ce1ec5": [ + "addFactory(address)" + ], + "0x355e6b43": [ + "setCommission(uint256)" + ], + "0x4b37c73f": [ + "removeFactory(address)" + ], + "0x6985e46e": [ + "getConflictResolver()" + ], + "0x7f301b83": [ + "setMetadataHash(string)" + ], + "0x24664106": [ + "mintRep(int256,address,uint256)" + ], + "0xa4a75edc": [ + "registerDeal(address,address)" + ], + "0xaaf73ef7": [ + "registeredDeals()" + ], + "0xc5a1d7f0": [ + "metadataHash()" + ], + "0xcffee328": [ + "successfulDeals()" + ], + "0xe1489191": [ + "commission()" + ], + "0xf34f43f6": [ + "getRepTokenAddress()" + ], + "0xf6b44d03": [ + "validFactories()" + ], + "0x2dc2dbf2": [ + "makeSimpleDeal(address,address,uint256,bytes32)" + ], + "0x12424e3f": [ + "approve()" + ], + "0xb85477c5": [ + "dealStatus()" + ], + "0xe344606b": [ + "hashtagCommission()" + ], + "0x4a393149": [ + "onTransfer(address,address,uint256)" + ], + "0xda682aeb": [ + "onApprove(address,address,uint256)" + ], + "0xf48c3054": [ + "proxyPayment(address)" + ], + "0x55a373d6": [ + "tokenContract()" + ], + "0xc0112678": [ + "arcToken()" + ], + "0x921b2d64": [ + "mintTokens(int256,address,uint256)" + ], + "0x3290ce29": [ + "purchaseTokens()" + ], + "0x38cde380": [ + "changeWeight(uint256)" + ], + "0x4f995d08": [ + "getPeople()" + ], + "0x74607d91": [ + "patient(uint256)" + ], + "0x7b464e93": [ + "prescriptions(bytes32)" + ], + "0x86590955": [ + "changeHeight(uint256)" + ], + "0xd72dec33": [ + "changeVaccinHistory(address)" + ], + "0xdc3d4203": [ + "createPatient(bytes32,bytes32,uint256,uint256,uint256,bytes32,uint256)" + ], + "0xe571fd2d": [ + "addPrescription(uint256,string)" + ], + "0xfbbf93a0": [ + "getDetails()" + ], + "0x077dadb2": [ + "coinBalanceMultisig(address)" + ], + "0x249b4d4f": [ + "transferContractUser(address)" + ], + "0x388f3cd3": [ + "cashin(address,uint256)" + ], + "0x527f4ff1": [ + "setTransferAddressUser(address,address)" + ], + "0x6ba2aefc": [ + "transferMultisig(address,address,uint256)" + ], + "0x9d16aca6": [ + "changeExchangeContract(address)" + ], + "0xd126dac4": [ + "cashout(address,address,uint256)" + ], + "0xf1679095": [ + "getTransferAddressUser(address)" + ], + "0x0bf77989": [ + "debug_coinbaseTxSha(bytes,uint256)" + ], + "0x107b1f8c": [ + "debug_verifyShare(bytes,uint256[],uint256[],bytes,uint256,uint256)" + ], + "0x14ca5398": [ + "submitFullBlock(bytes,uint256[],uint256[],bytes,bytes,bytes,bytes,bytes,bytes,uint256)" + ], + "0x2850c72a": [ + "debug_extendCoinbaseTxOutput(uint256,uint256)" + ], + "0x3e2ee39e": [ + "debug_resetuser()" + ], + "0x43c33ac9": [ + "submitShares(uint256,uint256)" + ], + "0x579d5fba": [ + "debug_hash3Int(uint256)" + ], + "0x83cd5e13": [ + "debug_multiplehash(uint256,uint256)" + ], + "0x88702cc4": [ + "debug_hash256Double(bytes)" + ], + "0x88f6d5a4": [ + "constructCoinbaseTx(uint256,uint256)" + ], + "0x9559225c": [ + "debug_hash3Byte(bytes)" + ], + "0x99d1d002": [ + "debug_blockHeaderMerkle(bytes)" + ], + "0xa68393a2": [ + "debug_getCoinbaseTxOutputLen(uint256)" + ], + "0xad076bfc": [ + "debug_hash256Double_concat(bytes,bytes,bytes)" + ], + "0xb2b0aefb": [ + "verifyPendingShares(uint256[],uint256[],uint256,uint256[],uint256[],bytes,bytes,uint256)" + ], + "0xed47ca94": [ + "debug_verifySharesTreeSubmission(uint256[],uint256[],uint256,uint256,uint256,uint256)" + ], + "0xf16fa954": [ + "debug_resizeRealPrefix(uint256,uint256)" + ], + "0x6104464f": [ + "previousPublishedVersion()" + ], + "0x6737c877": [ + "setAttributes(bytes)" + ], + "0x884179d8": [ + "ipfsAttributeLookup(address)" + ], + "0x9352fad2": [ + "run(string)" + ], + "0x98e7ea43": [ + "reward(uint32[],address[])" + ], + "0x0456860a": [ + "acceptAtCommunity(address,uint256)" + ], + "0x0a90c704": [ + "createCommunity(string,string,string,string,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,uint256,uint256)" + ], + "0x197f3c29": [ + "notLike(address)" + ], + "0x1b7db340": [ + "sysAdmin()" + ], + "0x2925ffc2": [ + "modifyCommunityTaxes(uint256,uint256,uint256,uint256)" + ], + "0x33b85b73": [ + "modifyCommunityRates(uint256,uint256,uint256,uint256,uint256,bool,uint256,uint256,uint256)" + ], + "0x3500a48d": [ + "transferCommunityCommune(uint256,address)" + ], + "0x36b33415": [ + "modifyMemberInfo(string,string,string,string)" + ], + "0x47c66140": [ + "getProposalVotes(uint256)" + ], + "0x519a078f": [ + "getCommunitybyIndex(uint256)" + ], + "0x526b91d1": [ + "transferSysAdmin(address)" + ], + "0x52ea5667": [ + "getMPbyIndex(uint256)" + ], + "0x67a09c23": [ + "payment(address,uint256)" + ], + "0x71efeff1": [ + "transferCommunityBank(uint256,address)" + ], + "0x721a1f57": [ + "endorseCredit(address,uint256,uint256)" + ], + "0x84e10a90": [ + "getTotals()" + ], + "0x8b343e8f": [ + "getMemberCredit(address)" + ], + "0x9431e412": [ + "getCommunityRates(uint256)" + ], + "0xa5496e60": [ + "newProposal(uint256,string,string,uint256,uint256)" + ], + "0xad71c687": [ + "registerSystem(string,string,string,string)" + ], + "0xb122a0ef": [ + "joinCommunity(uint256)" + ], + "0xbcabb54c": [ + "modifyCommunityInfo(uint256,string,string,string,string)" + ], + "0xbfb04c60": [ + "proposeAcceptanceAsMember(uint256)" + ], + "0xd21cbffc": [ + "getIfVoted(uint256,address)" + ], + "0xd95ab72d": [ + "getMemberWallet(address)" + ], + "0xdde8535f": [ + "getMemberStatus(address)" + ], + "0xe05e3028": [ + "getCommunityManagement(uint256)" + ], + "0xe465c465": [ + "like(address)" + ], + "0xee650248": [ + "vote(uint256,int8)" + ], + "0xf47efbca": [ + "getMemberLinks(address)" + ], + "0xf6df26d2": [ + "kickOutCommunity(address,uint256)" + ], + "0xf82c2301": [ + "resignFromCommunity()" + ], + "0xfba6651c": [ + "getCommunityTaxes(uint256)" + ], + "0xfcc101ba": [ + "getCommunityDescription(uint256)" + ], + "0x04029f23": [ + "_setBugFixVersion(string,uint32,bytes32,uint32)" + ], + "0x1f9ea25d": [ + "_setDepositAccount(address)" + ], + "0x49593f53": [ + "submit(string,uint64,uint32,uint32,bytes32)" + ], + "0x569aa0d8": [ + "getPlayerSubmissionFromCompetition(string,uint8,address)" + ], + "0x59a4669f": [ + "increaseJackpot(string)" + ], + "0x656104f5": [ + "_setOrganiser(address)" + ], + "0x70de8c6e": [ + "start(string,uint64,uint8,uint32)" + ], + "0x71bde852": [ + "_startNextCompetition(string,uint32,uint88,uint8,uint8,uint16,uint64,uint32,bytes32,uint32[])" + ], + "0x8d909ad9": [ + "getSeedAndState(string,address)" + ], + "0x8f30435d": [ + "getCompetitionValues(string,uint8)" + ], + "0x916dbc17": [ + "getPlayersFromCompetition(string,uint8)" + ], + "0xc91540f6": [ + "getCurrentCompetitionValues(string)" + ], + "0xfedc2a28": [ + "_rewardWinners(string,uint8,address[])" + ], + "0x224ccc49": [ + "chainLastMessageHash(bytes32)" + ], + "0x482f63b0": [ + "postMessage(bytes32,bytes)" + ], + "0x590a4595": [ + "createNewChain(bytes)" + ], + "0x858c7559": [ + "chainIDSeed()" + ], + "0x52c98e33": [ + "checkClaim(address,uint256,uint256)" + ], + "0x598aa1fc": [ + "checkEndorsement(address,uint256,address)" + ], + "0xa16c6a73": [ + "setClaim(uint256,uint256)" + ], + "0xa1bdd146": [ + "setEndorsement(address,uint256,uint256)" + ], + "0xa3a48785": [ + "unsetClaim(uint256)" + ], + "0xd7789a9f": [ + "unsetEndorsement(address,uint256)" + ], + "0xa9d0ddc7": [ + "addContractWithInfo(string,string)" + ], + "0xfa3559f7": [ + "attestToContract(uint256,bool,string)" + ], + "0x179fc99f": [ + "etherBalanceOf(address)" + ], + "0x3b0c197e": [ + "getBook()" + ], + "0x42da3b6b": [ + "getAmount(uint256,address)" + ], + "0x6dee2032": [ + "getOpenOrdersOf(address)" + ], + "0x836e4158": [ + "numOrdersOf(address)" + ], + "0x8ab1a5d4": [ + "sell(uint256,uint256,bool)" + ], + "0x8b7afe2e": [ + "contractBalance()" + ], + "0x8c3f914a": [ + "spread(bool)" + ], + "0x8f70ccf7": [ + "setTrading(bool)" + ], + "0x975289fd": [ + "getPriceVolume(uint256)" + ], + "0xc3434883": [ + "buy(uint256,uint256,bool)" + ], + "0xd07866d2": [ + "sizeOf(uint256)" + ], + "0xe1725c92": [ + "decimalPlaces()" + ], + "0xe2dede94": [ + "getNode(uint256,uint256)" + ], + "0xec44acf2": [ + "trading()" + ], + "0x11456b47": [ + "addName(string)" + ], + "0x14bfd6d0": [ + "admins(uint256)" + ], + "0x4deb68a3": [ + "auctionStart(bytes32,uint256,uint256)" + ], + "0x663e90d9": [ + "setBuyNowListing(bytes32,uint256,bool)" + ], + "0x71c79588": [ + "releaseName(bytes32)" + ], + "0x7c72e273": [ + "auctionFinalize(bytes32)" + ], + "0x9bdd7cdb": [ + "forceRelease(bytes32)" + ], + "0xbfcf63b0": [ + "claimEther(address,uint256)" + ], + "0xc415b95c": [ + "feeCollector()" + ], + "0xd7ad4931": [ + "buyNow(bytes32)" + ], + "0xe2acf75d": [ + "auctionCancel(bytes32)" + ], + "0xf747a5eb": [ + "auctionBid(bytes32)" + ], + "0x13831693": [ + "getLevitatingUnicorns(bytes32,uint64)" + ], + "0x50fe533b": [ + "getLevitatingBirds(bytes32,uint64)" + ], + "0xc9aa71b8": [ + "getFlyingUnicorns(bytes32,uint64)" + ], + "0xfeb50430": [ + "getLevitatingKittens(bytes32,uint64)" + ], + "0x78c2c849": [ + "burnUnicorns()" + ], + "0xbd8b452e": [ + "eatUnicorns()" + ], + "0x4b06fb28": [ + "eatUnicornsAlive()" + ], + "0x5b303e16": [ + "eatUnicorns(uint256)" + ], + "0xa1e95792": [ + "eatUnicornsAlive(uint256)" + ], + "0x10867877": [ + "eatUnicornWithoutCorn()" + ], + "0x4b269a00": [ + "withdraw(int256[])" + ], + "0x2c7cce9e": [ + "auctionMinPriceIncrease()" + ], + "0x801c334e": [ + "auctionIncreaseBid(bytes32)" + ], + "0x95e911a8": [ + "feeBase()" + ], + "0xb4628c8a": [ + "ENSRegistrar()" + ], + "0xddca3f43": [ + "fee()" + ], + "0xe765cb44": [ + "auctionMinPrice()" + ], + "0x69f30401": [ + "bid(address,uint256[],uint256[])" + ], + "0x6e67b803": [ + "bid3(address,uint256[],uint256[])" + ], + "0x21462191": [ + "bid3(address,uint8[],uint8[])" + ], + "0x92584d80": [ + "finalize(bytes32)" + ], + "0xf3bf93a0": [ + "forceReleaseAdmin(bytes32)" + ], + "0x5b372532": [ + "press()" + ], + "0x9f095e88": [ + "asdf()" + ], + "0xb0459d49": [ + "LoanStandard(address,address,uint256,uint256,uint256,uint256,uint256)" + ], + "0xa2fb342d": [ + "lend(address,uint256)" + ], + "0xd334d75b": [ + "expireLoan()" + ], + "0xb7019744": [ + "payBack(address,uint256)" + ], + "0x60aeac18": [ + "neverPayBack()" + ], + "0xaad3ec96": [ + "claim(address,uint256)" + ], + "0x4c123019": [ + "tokenFallback(address,address,uint256,bytes)" + ], + "0xcb7acdd9": [ + "hola()" + ], + "0xacb6e9b1": [ + "testControlItemStoreNotRegistered()" + ], + "0xac767539": [ + "testFailItemStoreNotRegistered()" + ], + "0x1649cdcd": [ + "testGetItemStore()" + ], + "0xe41cc093": [ + "getItemStore(bytes12)" + ], + "0x79ba5097": [ + "acceptOwnership()" + ], + "0x58e9b208": [ + "Controlled()" + ], + "0x30311898": [ + "Account(address)" + ], + "0xce3f865f": [ + "collect(uint256)" + ], + "0x55ee6afb": [ + "Wallet(address,address)" + ], + "0x2268a358": [ + "changeMultisig(address)" + ], + "0xea2c23da": [ + "createAccounts(uint256)" + ], + "0xa5e8c5d6": [ + "setVoteRight(address,uint256)" + ], + "0x9cc0c5e3": [ + "experty_io()" + ], + "0x5022e940": [ + "experty()" + ], + "0xb7090bb5": [ + "www_experty_io()" + ], + "0x0edfb0f7": [ + "withdrawCollectedInterest()" + ], + "0x21856b36": [ + "interestOwed()" + ], + "0x402d8883": [ + "repay()" + ], + "0x4665096d": [ + "expiration()" + ], + "0x58f33e98": [ + "isTaker(address)" + ], + "0x5eda5b9a": [ + "interestCollected()" + ], + "0x6cbdb7d0": [ + "takers(uint256)" + ], + "0x7c3a00fd": [ + "interestRate()" + ], + "0xaa8116be": [ + "fundedPrincipal()" + ], + "0xbc99c8be": [ + "takerAddressAt(uint256)" + ], + "0xc41f4cc0": [ + "takerStatus(address)" + ], + "0xc537a210": [ + "principalOutstanding()" + ], + "0xc5ebeaec": [ + "borrow(uint256)" + ], + "0xcb6da9da": [ + "takerCount()" + ], + "0xfb775b46": [ + "giver()" + ], + "0xe1a27ad3": [ + "needsAdministration()" + ], + "0xb6253539": [ + "needsInitialization()" + ], + "0xb6f98e53": [ + "needsAllowancePayment()" + ], + "0xb5931f7c": [ + "safeDiv(uint256,uint256)" + ], + "0x3a4faf7f": [ + "max64(uint64,uint64)" + ], + "0x36b1315c": [ + "min64(uint64,uint64)" + ], + "0x0c255c94": [ + "max256(uint256,uint256)" + ], + "0xb1e9292f": [ + "min256(uint256,uint256)" + ], + "0x1d3b9edf": [ + "times(uint256,uint256)" + ], + "0xf4f3bdc1": [ + "minus(uint256,uint256)" + ], + "0x66098d4f": [ + "plus(uint256,uint256)" + ], + "0x8afc3605": [ + "Ownable()" + ], + "0x04bbc255": [ + "isPricingStrategy()" + ], + "0x8e768288": [ + "isSane(address)" + ], + "0x18a4155e": [ + "calculatePrice(uint256,uint256,uint256,address,uint256)" + ], + "0x614cb904": [ + "isFinalizeAgent()" + ], + "0x82771c8e": [ + "isSane()" + ], + "0x0bf318a3": [ + "finalizeCrowdsale()" + ], + "0x96f47800": [ + "investInternal(address,uint128)" + ], + "0x32013ac3": [ + "preallocate(address,uint256,uint256)" + ], + "0x1a49803b": [ + "investWithSignedAddress(address,uint128,uint8,bytes32,bytes32)" + ], + "0xef869443": [ + "investWithCustomerId(address,uint128)" + ], + "0x03f9c793": [ + "invest(address)" + ], + "0xf4869726": [ + "buyWithSignedAddress(uint128,uint8,bytes32,bytes32)" + ], + "0x99e9376c": [ + "buyWithCustomerId(uint128)" + ], + "0x7f7d711e": [ + "setRequireCustomerId(bool)" + ], + "0xed68ff2c": [ + "setRequireSignedAddress(bool,address)" + ], + "0xeac24932": [ + "setEarlyParicipantWhitelist(address,bool)" + ], + "0x6e50eb3f": [ + "setEndsAt(uint256)" + ], + "0xf3283fba": [ + "setMultisig(address)" + ], + "0x87612102": [ + "loadRefund()" + ], + "0x7c2e08a3": [ + "isMinimumGoalReached()" + ], + "0xa7ba44c3": [ + "isFinalizerSane()" + ], + "0x062b01ce": [ + "isPricingSane()" + ], + "0x1865c57d": [ + "getState()" + ], + "0x8d51faec": [ + "setOwnerTestValue(uint256)" + ], + "0x4551dd59": [ + "isCrowdsale()" + ], + "0x9d3c663f": [ + "isBreakingCap(uint256,uint256,uint256,uint256)" + ], + "0xd5d09021": [ + "isCrowdsaleFull()" + ], + "0x4d7edc15": [ + "assignTokens(address,uint256)" + ], + "0xeefa597b": [ + "isToken()" + ], + "0x09ae9452": [ + "PreICOProxyBuyer(address,uint256,uint256,uint256,uint256)" + ], + "0x21df0da7": [ + "getToken()" + ], + "0xbaeb91ae": [ + "invest(uint128)" + ], + "0x1fb00cdc": [ + "investWithId(uint128)" + ], + "0xdbb833df": [ + "investWithoutId()" + ], + "0xd4607048": [ + "buyForEverybody()" + ], + "0xdde070e8": [ + "getClaimAmount(address)" + ], + "0x3c67b6b7": [ + "getClaimLeft(address)" + ], + "0xd1058e59": [ + "claimAll()" + ], + "0x4042b66f": [ + "weiRaised()" + ], + "0xf6368f8a": [ + "transfer(address,uint256,bytes,string)" + ], + "0x3ef13367": [ + "flushTokens(address)" + ], + "0x083c6323": [ + "endBlock()" + ], + "0x7055060f": [ + "bulkStoreHeader(bytes)" + ], + "0x3115b4c4": [ + "bulkStoreHeader(bytes,uint256)" + ], + "0x01725a0b": [ + "demo()" + ], + "0xdce5c757": [ + "cool()" + ], + "0x939a79ac": [ + "demo(string)" + ], + "0x071bd079": [ + "demo(uint256)" + ], + "0x43b1c529": [ + "getSig(string,bytes4)" + ], + "0x1d03842f": [ + "onePlus(uint256)" + ], + "0x42966c68": [ + "burn(uint256)" + ], + "0x457f4d41": [ + "hammer()" + ], + "0x58292a3d": [ + "emission(uint256)" + ], + "0xd31fdffd": [ + "setHammer(address)" + ], + "0xb8c48f8c": [ + "setInitialParent(int256,int256,int256)" + ], + "0x08f75d17": [ + "move_reveal(bytes32,uint8)" + ], + "0x2e9c91a8": [ + "getStartParams(bytes32)" + ], + "0x497777d5": [ + "collect(bytes32)" + ], + "0x5598c576": [ + "reveal_move(bytes32,uint8,bytes32,bytes32)" + ], + "0x5cf34bcf": [ + "getMinFee()" + ], + "0x6a7bf76a": [ + "create_game(bytes32,uint32,uint32,uint8,uint16,uint8,address,uint256,bool)" + ], + "0x73931bbf": [ + "getGame(bytes32)" + ], + "0x87287fd7": [ + "setMinFee(uint8)" + ], + "0x89d61d77": [ + "setOrganizer(address)" + ], + "0xa361b184": [ + "move(bytes32,bytes32)" + ], + "0xe4083daf": [ + "create_game_invite(bytes32,address,uint32,uint32,uint8,uint16,uint8,address,uint256)" + ], + "0xf223446c": [ + "start_game(bytes32,uint8,uint32,uint16,address,uint256,uint8)" + ], + "0x3a4de190": [ + "repost(bytes32)" + ], + "0x4b91ab35": [ + "unfollow(bytes32)" + ], + "0x66e34dc6": [ + "registerUsername(bytes32)" + ], + "0x699f200f": [ + "addresses(bytes32)" + ], + "0x7e93163b": [ + "tip(bytes32,bytes32)" + ], + "0x8ee93cf3": [ + "post(string)" + ], + "0x9d7eb375": [ + "updateUserDetails(string)" + ], + "0xa66b7748": [ + "follow(bytes32)" + ], + "0xa83b1e21": [ + "reply(string,bytes32)" + ], + "0xd38d0f28": [ + "updateSplit(uint256)" + ], + "0xee91877c": [ + "usernames(address)" + ], + "0xf59823cf": [ + "Congress(uint256,uint256,int256)" + ], + "0xb3bb9b58": [ + "LiquidDemocracy(address,string,uint256)" + ], + "0x6dd7d8ea": [ + "vote(address)" + ], + "0xc0d061f4": [ + "execute(address,uint256,bytes32)" + ], + "0xf2ba18ed": [ + "calculateVotes()" + ], + "0xb154224e": [ + "TimeLockMultisig(address,address[],uint256)" + ], + "0x15bef9cd": [ + "changeMembers(address[],bool)" + ], + "0xc01f9e37": [ + "proposalDeadline(uint256)" + ], + "0x159887d1": [ + "calculateFactor(uint256,uint256)" + ], + "0x7207c19f": [ + "MyToken(uint256)" + ], + "0x73e9f3e6": [ + "Crowdsale(address,uint256,uint256,uint256,address,address)" + ], + "0xfd6b7ef8": [ + "safeWithdrawal()" + ], + "0x9dbf0087": [ + "TokenERC20(uint256,string,string)" + ], + "0x79cc6790": [ + "burnFrom(address,uint256)" + ], + "0x7e4f6b95": [ + "MyAdvancedToken(uint256,string,string)" + ], + "0xbc0c868c": [ + "stocksOf(uint256)" + ], + "0x8262fc7d": [ + "addrBalance(address)" + ], + "0x6dfe869b": [ + "Preallocation(address,uint256)" + ], + "0xa357880d": [ + "whitelistedAddrs(address)" + ], + "0x54da5393": [ + "Utils()" + ], + "0xe4edf852": [ + "transferManagement(address)" + ], + "0xc8c2fe6c": [ + "acceptManagement()" + ], + "0x67cc4882": [ + "TokenHolder()" + ], + "0x21e6b53d": [ + "transferTokenOwnership(address)" + ], + "0x38a5e016": [ + "acceptTokenOwnership()" + ], + "0x85d5e631": [ + "disableTokenTransfers(bool)" + ], + "0x205c2878": [ + "withdrawTo(address,uint256)" + ], + "0x1608f18f": [ + "disableTransfers(bool)" + ], + "0x29a00e7c": [ + "calculatePurchaseReturn(uint256,uint256,uint32,uint256)" + ], + "0x49f9b0f7": [ + "calculateSaleReturn(uint256,uint256,uint32,uint256)" + ], + "0x59f8714b": [ + "changeableTokenCount()" + ], + "0x503adbf6": [ + "changeableToken(uint16)" + ], + "0x9b99a8e2": [ + "reserveTokenCount()" + ], + "0x4e2280c4": [ + "clearQuickBuyPath()" + ], + "0x9396a7f0": [ + "getQuickBuyPathLength()" + ], + "0xabeb5f9f": [ + "hasQuickBuyEtherToken()" + ], + "0xb3a9afb7": [ + "getQuickBuyEtherToken()" + ], + "0x0b3f191a": [ + "disableChanging(bool)" + ], + "0x88c0b8a7": [ + "setChangeFee(uint32)" + ], + "0x48d6ca55": [ + "getChangeFeeAmount(uint256)" + ], + "0x7758c4f8": [ + "quickBuy(uint256)" + ], + "0x74214c92": [ + "StandardERC223Token(uint256)" + ], + "0x16279055": [ + "isContract(address)" + ], + "0x03ba3a88": [ + "notifyContract(address,address,uint256,bytes)" + ], + "0x27e235e3": [ + "balances(address)" + ], + "0x3f4ba83a": [ + "unpause()" + ], + "0x5c658165": [ + "allowed(address,address)" + ], + "0x5c975abb": [ + "paused()" + ], + "0x8456cb59": [ + "pause()" + ], + "0xa0821be3": [ + "availableBalance(address)" + ], + "0xe9ed8667": [ + "balanceLocks(address)" + ], + "0xf339c504": [ + "lockBalance(uint256)" + ], + "0x1d4d691d": [ + "fill(address,uint256,address,address,uint256,address,uint256,uint256,uint8,bytes32,bytes32)" + ], + "0x20158c44": [ + "fills(bytes32)" + ], + "0x66a26419": [ + "cancel(address,uint256,address,address,uint256,address,uint256,uint256,uint8,bytes32,bytes32)" + ], + "0x673a5ae3": [ + "Sale(address,address,uint256,string,uint8,string,uint256,uint256,uint256,uint256,uint256,uint256)" + ], + "0x94b5255b": [ + "distributePreBuyersRewards(address[],uint256[])" + ], + "0x555c4758": [ + "distributeTimelockedTokens(address[],uint256[],uint256[],uint256[])" + ], + "0x8b9b1cbd": [ + "withdrawRemainder()" + ], + "0xa2b40d19": [ + "changePrice(uint256)" + ], + "0x98b9a2dc": [ + "changeWallet(address)" + ], + "0x5437f098": [ + "changeStartBlock(uint256)" + ], + "0x82222674": [ + "changeEndBlock(uint256)" + ], + "0x00a53598": [ + "emergencyToggle()" + ], + "0xe382b854": [ + "_setPackedTimestamp(bytes20,uint256)" + ], + "0x31861423": [ + "_deleteAllPackedRevisionTimestamps(bytes20)" + ], + "0x4ae6ab70": [ + "_getRevisionTimestamp(bytes20,uint256)" + ], + "0x4e57d27d": [ + "_getAllRevisionTimestamps(bytes20)" + ], + "0xc5cd3bec": [ + "getRevisionTimestamp(bytes20,uint256)" + ], + "0x261c42dd": [ + "getAllRevisionTimestamps(bytes20)" + ], + "0x50035eb8": [ + "getInUse(bytes20)" + ], + "0xf25e7bb4": [ + "getState(bytes20)" + ], + "0x634bc7db": [ + "create(bytes32,bytes32)" + ], + "0xb0673d57": [ + "getItemStore(bytes32)" + ], + "0x455ea98c": [ + "getInUse(bytes32)" + ], + "0xa6c09381": [ + "_setPackedTimestamp(bytes32,uint256)" + ], + "0x001a4f5e": [ + "createNewRevision(bytes32,bytes32)" + ], + "0x032b0824": [ + "updateLatestRevision(bytes32,bytes32)" + ], + "0x1b5710ed": [ + "_deleteAllPackedRevisionTimestamps(bytes32)" + ], + "0x165ffd10": [ + "restart(bytes32,bytes32)" + ], + "0x2ab7d104": [ + "_getAllRevisionIpfsHashes(bytes32)" + ], + "0xf50f1ba9": [ + "_getRevisionTimestamp(bytes32,uint256)" + ], + "0xcd22f418": [ + "_getAllRevisionTimestamps(bytes32)" + ], + "0x09648a9d": [ + "getState(bytes32)" + ], + "0x72cef34b": [ + "getRevisionIpfsHash(bytes32,uint256)" + ], + "0x7c699401": [ + "getAllRevisionIpfsHashes(bytes32)" + ], + "0x05664cea": [ + "getRevisionTimestamp(bytes32,uint256)" + ], + "0x8cb3728c": [ + "getAllRevisionTimestamps(bytes32)" + ], + "0x93c8b0d4": [ + "addForeignChild(bytes32,bytes32)" + ], + "0x4048c449": [ + "getParent(bytes32)" + ], + "0x31230e23": [ + "createWithParent(bytes32,bytes32,bytes32)" + ], + "0x2eaad0b0": [ + "_getAllChildren(bytes32)" + ], + "0xa09e3d0a": [ + "getChildCount(bytes32)" + ], + "0x958d1725": [ + "getChild(bytes32,uint256)" + ], + "0xfbdf0378": [ + "getAllChildren(bytes32)" + ], + "0x9643aef4": [ + "testControlCreateWithParentSameNonce()" + ], + "0x8dc1c44d": [ + "testFailCreateWithParentSameNonce()" + ], + "0x2aaf1685": [ + "testControlCreateWithParentSameItemId()" + ], + "0xa121d8df": [ + "testFailCreateWithParentSameItemId()" + ], + "0x64d0d64c": [ + "testControlCreateWithParentNotInUse()" + ], + "0x75f208bf": [ + "testFailCreateWithParentNotInUse()" + ], + "0x473ae9fe": [ + "testCreateWithParent()" + ], + "0x59e1667d": [ + "testControlCreateWithForeignParentNotInUse()" + ], + "0xca615662": [ + "testFailCreateWithForeignParentNotInUse()" + ], + "0x121f2081": [ + "testCreateWithForeignParent()" + ], + "0xfc13a76a": [ + "testFailAddForeignChildNotInUse()" + ], + "0x4e6c61aa": [ + "testFailAddForeignChildNotChild()" + ], + "0x590ba734": [ + "getUint(int256)" + ], + "0x732e632e": [ + "assemblyTest()" + ], + "0x215de48a": [ + "getParentCount(bytes32)" + ], + "0x33ac7256": [ + "getParent(bytes32,uint256)" + ], + "0x32c4903d": [ + "getAllParents(bytes32)" + ], + "0x6844ab43": [ + "testControlCreateSameItemId()" + ], + "0x343f40a0": [ + "testFailCreateSameItemId()" + ], + "0x9d9c9a0d": [ + "testControlCreateWithParentParentSameItemId()" + ], + "0x3ce54ac3": [ + "testFailCreateWithParentParentSameItemId()" + ], + "0xbca9e546": [ + "testControlCreateWithParentParentNotInUse()" + ], + "0xbab9fc63": [ + "testFailCreateWithParentParentNotInUse()" + ], + "0x30840c31": [ + "testControlCreateWithParentForeignNotInUse()" + ], + "0x3d6b0cb7": [ + "testFailCreateWithParentForeignNotInUse()" + ], + "0x0de04691": [ + "testCreateWithParentForeign()" + ], + "0x3d608572": [ + "testControlCreateWithParentsSameItemId()" + ], + "0xba907b7e": [ + "testFailCreateWithParentsSameItemId()" + ], + "0x015689c6": [ + "testControlCreateWithParentsParentSameItemId()" + ], + "0x28e47076": [ + "testFailCreateWithParentsParentSameItemId0()" + ], + "0x8a7ef3df": [ + "testFailCreateWithParentsParentSameItemId1()" + ], + "0x041dd3f6": [ + "testControlCreateWithParentsParentNotInUse()" + ], + "0x46d47cdf": [ + "testFailCreateWithParentsParentNotInUse0()" + ], + "0x89a45223": [ + "testFailCreateWithParentsParentNotInUse1()" + ], + "0x44019db3": [ + "testCreateWithParents()" + ], + "0xbf0d44d5": [ + "testControlCreateWithParentsForeignNotInUse()" + ], + "0x0ee8e338": [ + "testFailCreateWithParentsForeignNotInUse0()" + ], + "0xdddb983b": [ + "testFailCreateWithParentsForeignNotInUse1()" + ], + "0xf94497fe": [ + "testCreateWithParentsForeign0()" + ], + "0xf6951038": [ + "testCreateWithParentsForeign1()" + ], + "0x26d3e889": [ + "testCreateWithParentsForeign2()" + ], + "0x98f69aeb": [ + "_addChildToParent(bytes32,bytes32)" + ], + "0x7fdd458d": [ + "createWithParents(bytes32,bytes32,bytes32[])" + ], + "0xa300eadf": [ + "_getAllParents(bytes32)" + ], + "0xa172045d": [ + "PUSH1()" + ], + "0x22a7118d": [ + "buyTokensFor(uint256,address,uint256,bool)" + ], + "0x9e1a00aa": [ + "sendTo(address,uint256)" + ], + "0x00b172d7": [ + "buyTokensForProposal(uint256,address)" + ], + "0x4913732e": [ + "buyTokenFromModerator(uint256,address,uint256,bool)" + ], + "0xdb6a3652": [ + "addOrder(address,uint256)" + ], + "0x9645337a": [ + "removeOrder(uint256)" + ], + "0x709ef231": [ + "sellTokens(uint256,uint256,uint256)" + ], + "0x868eb6bf": [ + "removeOrders(uint256,uint256)" + ], + "0x02d05d3f": [ + "creator()" + ], + "0x1f21f9af": [ + "marketMaker()" + ], + "0x28c05d32": [ + "shortSell(uint8,uint256,uint256)" + ], + "0x46280a80": [ + "sell(uint8,uint256,uint256)" + ], + "0x476343ee": [ + "withdrawFees()" + ], + "0x59acb42c": [ + "createdAtBlock()" + ], + "0xa157979c": [ + "netOutcomeTokensSold(uint256)" + ], + "0xb0011509": [ + "calcMarketFee(uint256)" + ], + "0xcb4c86b7": [ + "funding()" + ], + "0xe274fd24": [ + "eventContract()" + ], + "0xf6d956df": [ + "buy(uint8,uint256,uint256)" + ], + "0xfbde47f6": [ + "FEE_RANGE()" + ], + "0x27793f87": [ + "outcome()" + ], + "0x717a195a": [ + "setOutcome(int256)" + ], + "0x7e7e4b47": [ + "getOutcome()" + ], + "0xc623674f": [ + "ipfsHash()" + ], + "0xc65fb380": [ + "isSet()" + ], + "0xccdf68f3": [ + "isOutcomeSet()" + ], + "0x4e2f220c": [ + "createCentralizedOracle(bytes)" + ], + "0x5ea194a3": [ + "createScalarEvent(address,address,int256,int256)" + ], + "0x8d1d2c21": [ + "categoricalEvents(bytes32)" + ], + "0x9897e8a5": [ + "scalarEvents(bytes32)" + ], + "0x9df0c176": [ + "createCategoricalEvent(address,address,uint8)" + ], + "0xeac449d9": [ + "revoke(address,uint256)" + ], + "0x7abeb6a0": [ + "createMarket(address,address,uint24)" + ], + "0x42958b54": [ + "issue(address[],uint256)" + ], + "0x061a85c7": [ + "forwardedOracle()" + ], + "0x0853f7eb": [ + "frontRunnerPeriod()" + ], + "0x0f3e9438": [ + "frontRunner()" + ], + "0x1a39d8ef": [ + "totalAmount()" + ], + "0x1a4f5b67": [ + "isFrontRunnerPeriodOver()" + ], + "0x1ff14311": [ + "totalOutcomeAmounts(int256)" + ], + "0x466ae314": [ + "forwardedOutcomeSetTimestamp()" + ], + "0x72b8de14": [ + "isChallengePeriodOver()" + ], + "0x739b8c48": [ + "setForwardedOutcome()" + ], + "0x8ef8125e": [ + "frontRunnerSetTimestamp()" + ], + "0x984a470a": [ + "forwardedOutcome()" + ], + "0x9d89e7d4": [ + "challengeAmount()" + ], + "0x9df4d0fe": [ + "isChallenged()" + ], + "0x9f0de490": [ + "challengeOutcome(int256)" + ], + "0xb2016bd4": [ + "collateralToken()" + ], + "0xc427af9b": [ + "outcomeAmounts(address,int256)" + ], + "0xd84d2a47": [ + "spreadMultiplier()" + ], + "0xf3f480d9": [ + "challengePeriod()" + ], + "0xf7553098": [ + "voteForOutcome(int256,uint256)" + ], + "0xce70faec": [ + "createUltimateOracle(address,address,uint8,uint256,uint256,uint256)" + ], + "0x91e8609f": [ + "getParentId(bytes32,uint256)" + ], + "0xb4a39dfd": [ + "getChildId(bytes32,uint256)" + ], + "0x5de4381b": [ + "_addItemToParent(bytes32,bytes32)" + ], + "0x059417da": [ + "_getAllParentIds(bytes32)" + ], + "0xeca85419": [ + "_getAllChildIds(bytes32)" + ], + "0xaa0372e7": [ + "getItem(bytes32)" + ], + "0xdcf946c2": [ + "getAllParentIds(bytes32)" + ], + "0x1733043f": [ + "getAllChildIds(bytes32)" + ], + "0x025e7c27": [ + "owners(uint256)" + ], + "0x0cbe1eb8": [ + "USDDOWNLOADPRICE()" + ], + "0x11851b5e": [ + "BOARD_3()" + ], + "0x1e9be6a1": [ + "usdEthPrice()" + ], + "0x3c540687": [ + "txCount()" + ], + "0x436da5fe": [ + "transferLog(uint256)" + ], + "0x44fddeb7": [ + "BLOCKAPPS()" + ], + "0x52aaead8": [ + "priceLastUpdated()" + ], + "0x6695b592": [ + "stemPriceInWei()" + ], + "0x7dc0d1d0": [ + "oracle()" + ], + "0x7fa28d75": [ + "transferRightIfApproved(address,bytes32)" + ], + "0x83db0680": [ + "TOTALSHARES()" + ], + "0x977eda79": [ + "txLog(uint256)" + ], + "0xb9488546": [ + "ownersCount()" + ], + "0xcc445611": [ + "purchase(bytes32)" + ], + "0xda60d7e8": [ + "BOARD_2()" + ], + "0xe347a773": [ + "shares(bytes32,bytes32)" + ], + "0xe3d33fc9": [ + "transferCount()" + ], + "0xe80d47dd": [ + "USDSTEMPRICE()" + ], + "0xf267035f": [ + "BOARD_1()" + ], + "0xf7701b47": [ + "downloadPriceInWei()" + ], + "0xf851a440": [ + "admin()" + ], + "0x8a252194": [ + "betGanjilGenap(bool)" + ], + "0xa89171e3": [ + "checkHasilBet(address)" + ], + "0xdd365b8b": [ + "pwn()" + ], + "0x0537665d": [ + "setOutcome()" + ], + "0x28da850b": [ + "buyAllOutcomes(uint256)" + ], + "0x69c19d4c": [ + "getOutcomeTokenDistribution(address)" + ], + "0x6fb1edcd": [ + "sellAllOutcomes(uint256)" + ], + "0x7dc8f086": [ + "getOutcomeCount()" + ], + "0x8abe59ea": [ + "outcomeTokens(uint256)" + ], + "0xad0b2bec": [ + "redeemWinnings()" + ], + "0xe96e5950": [ + "getEventHash()" + ], + "0xf21a1468": [ + "getOutcomeTokens()" + ], + "0x561cce0a": [ + "LONG()" + ], + "0x6e5452fe": [ + "OUTCOME_RANGE()" + ], + "0xa384d6ff": [ + "lowerBound()" + ], + "0xa871da91": [ + "SHORT()" + ], + "0xb09ad8a0": [ + "upperBound()" + ], + "0x0a6fbb05": [ + "SetPass(bytes32)" + ], + "0x31fd725a": [ + "PassHasBeenSet(bytes32)" + ], + "0x6cd5c39b": [ + "deployContract()" + ], + "0xe79487da": [ + "checkInvariant()" ] }; \ No newline at end of file From d697f4932d35b57d0179046b1a2bc848721fd53e Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Thu, 9 Nov 2017 14:53:40 -0500 Subject: [PATCH 06/12] Adding ethereumjs-util --- modules/ipc/methods/base.js | 2 +- package.json | 1 + yarn.lock | 267 ++++++++++++++++++++++++++++++++++-- 3 files changed, 259 insertions(+), 11 deletions(-) diff --git a/modules/ipc/methods/base.js b/modules/ipc/methods/base.js index 8e61516d0..57f1d3072 100644 --- a/modules/ipc/methods/base.js +++ b/modules/ipc/methods/base.js @@ -31,7 +31,7 @@ module.exports = class BaseProcessor { const ret = await conn.socket.send(payload, { fullResult: true, - }) + }); return ret.result; } diff --git a/package.json b/package.json index 0fc5eed76..08d0bd4c0 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "ethereum-client-binaries": "^1.6.1", "ethereum-keyfile-recognizer": "^1.0.2", "ethereumjs-abi": "^0.6.3", + "ethereumjs-util": "^5.1.2", "fs-promise": "^2.0.0", "got": "^6.7.1", "i18next": "^7.1.3", diff --git a/yarn.lock b/yarn.lock index 67cf1416b..7f08ca10c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -261,7 +261,7 @@ babel-code-frame@^6.16.0, babel-code-frame@^6.26.0: esutils "^2.0.2" js-tokens "^3.0.2" -babel-core@^6.26.0: +babel-core@^6.0.14, babel-core@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" dependencies: @@ -307,6 +307,15 @@ babel-helper-call-delegate@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" +babel-helper-define-map@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + babel-helper-function-name@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" @@ -331,6 +340,13 @@ babel-helper-hoist-variables@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + babel-helper-regex@^6.24.1: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" @@ -349,6 +365,17 @@ babel-helper-remap-async-to-generator@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" + dependencies: + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + babel-helpers@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" @@ -362,6 +389,12 @@ babel-messages@^6.23.0: dependencies: babel-runtime "^6.22.0" +babel-plugin-check-es2015-constants@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" + dependencies: + babel-runtime "^6.22.0" + babel-plugin-syntax-async-functions@^6.1.4, babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" @@ -378,13 +411,91 @@ babel-plugin-transform-async-to-generator@^6.1.4: babel-plugin-syntax-async-functions "^6.8.0" babel-runtime "^6.22.0" -babel-plugin-transform-es2015-destructuring@^6.0.2: +babel-plugin-transform-es2015-arrow-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoping@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" + dependencies: + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-plugin-transform-es2015-classes@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" + dependencies: + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-computed-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-destructuring@^6.0.2, babel-plugin-transform-es2015-destructuring@^6.22.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-modules-commonjs@^6.0.12: +babel-plugin-transform-es2015-duplicate-keys@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-for-of@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-modules-amd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" + dependencies: + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-commonjs@^6.0.12, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" dependencies: @@ -393,7 +504,30 @@ babel-plugin-transform-es2015-modules-commonjs@^6.0.12: babel-template "^6.26.0" babel-types "^6.26.0" -babel-plugin-transform-es2015-parameters@^6.0.2: +babel-plugin-transform-es2015-modules-systemjs@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-umd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" + dependencies: + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-object-super@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" + dependencies: + babel-helper-replace-supers "^6.24.1" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-parameters@^6.0.2, babel-plugin-transform-es2015-parameters@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" dependencies: @@ -404,13 +538,20 @@ babel-plugin-transform-es2015-parameters@^6.0.2: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-plugin-transform-es2015-spread@^6.1.4: +babel-plugin-transform-es2015-shorthand-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-spread@^6.1.4, babel-plugin-transform-es2015-spread@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-sticky-regex@^6.0.2: +babel-plugin-transform-es2015-sticky-regex@^6.0.2, babel-plugin-transform-es2015-sticky-regex@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" dependencies: @@ -418,7 +559,19 @@ babel-plugin-transform-es2015-sticky-regex@^6.0.2: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-plugin-transform-es2015-unicode-regex@^6.0.2: +babel-plugin-transform-es2015-template-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-typeof-symbol@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-unicode-regex@^6.0.2, babel-plugin-transform-es2015-unicode-regex@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" dependencies: @@ -426,6 +579,12 @@ babel-plugin-transform-es2015-unicode-regex@^6.0.2: babel-runtime "^6.22.0" regexpu-core "^2.0.0" +babel-plugin-transform-regenerator@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" + dependencies: + regenerator-transform "^0.10.0" + babel-plugin-transform-strict-mode@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" @@ -433,6 +592,35 @@ babel-plugin-transform-strict-mode@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" +babel-preset-es2015@^6.24.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.24.1" + babel-plugin-transform-es2015-classes "^6.24.1" + babel-plugin-transform-es2015-computed-properties "^6.24.1" + babel-plugin-transform-es2015-destructuring "^6.22.0" + babel-plugin-transform-es2015-duplicate-keys "^6.24.1" + babel-plugin-transform-es2015-for-of "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.24.1" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-plugin-transform-es2015-modules-systemjs "^6.24.1" + babel-plugin-transform-es2015-modules-umd "^6.24.1" + babel-plugin-transform-es2015-object-super "^6.24.1" + babel-plugin-transform-es2015-parameters "^6.24.1" + babel-plugin-transform-es2015-shorthand-properties "^6.24.1" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.24.1" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-es2015-typeof-symbol "^6.22.0" + babel-plugin-transform-es2015-unicode-regex "^6.24.1" + babel-plugin-transform-regenerator "^6.24.1" + babel-preset-es2016-node5@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/babel-preset-es2016-node5/-/babel-preset-es2016-node5-1.1.2.tgz#5ec43d2d8bf41d5315804740cc38f0ddeab26986" @@ -459,7 +647,7 @@ babel-register@^6.26.0: mkdirp "^0.5.1" source-map-support "^0.4.15" -babel-runtime@^6.22.0, babel-runtime@^6.26.0: +babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: @@ -497,7 +685,7 @@ babel-traverse@^6.24.1, babel-traverse@^6.26.0: invariant "^2.2.2" lodash "^4.17.4" -babel-types@^6.24.1, babel-types@^6.26.0: +babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" dependencies: @@ -506,6 +694,13 @@ babel-types@^6.24.1, babel-types@^6.26.0: lodash "^4.17.4" to-fast-properties "^1.0.3" +babelify@^7.3.0: + version "7.3.0" + resolved "https://registry.yarnpkg.com/babelify/-/babelify-7.3.0.tgz#aa56aede7067fd7bd549666ee16dc285087e88e5" + dependencies: + babel-core "^6.0.14" + object-assign "^4.0.0" + babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -1757,6 +1952,26 @@ ethereumjs-util@^4.3.0: rlp "^2.0.0" secp256k1 "^3.0.1" +ethereumjs-util@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-5.1.2.tgz#25ba0215cbb4c2f0b108a6f96af2a2e62e45921f" + dependencies: + babel-preset-es2015 "^6.24.0" + babelify "^7.3.0" + bn.js "^4.8.0" + create-hash "^1.1.2" + ethjs-util "^0.1.3" + keccak "^1.0.2" + rlp "^2.0.0" + secp256k1 "^3.0.1" + +ethjs-util@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/ethjs-util/-/ethjs-util-0.1.4.tgz#1c8b6879257444ef4d3f3fbbac2ded12cd997d93" + dependencies: + is-hex-prefixed "1.0.0" + strip-hex-prefix "1.0.0" + event-emitter@~0.3.5: version "0.3.5" resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" @@ -2832,6 +3047,10 @@ is-glob@^2.0.0, is-glob@^2.0.1: dependencies: is-extglob "^1.0.0" +is-hex-prefixed@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" + is-my-json-valid@^2.10.0: version "2.16.1" resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.1.tgz#5a846777e2c2620d1e69104e5d3a03b1f6088f11" @@ -3074,6 +3293,16 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" +keccak@^1.0.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-1.3.0.tgz#3681bd99ad3d0354ddb29b9040c1b6560cce08ac" + dependencies: + bindings "^1.2.1" + inherits "^2.0.3" + nan "^2.2.1" + prebuild-install "^2.0.0" + safe-buffer "^5.1.0" + keccakjs@^0.2.0, keccakjs@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/keccakjs/-/keccakjs-0.2.1.tgz#1d633af907ef305bbf9f2fa616d56c44561dfa4d" @@ -3706,7 +3935,7 @@ object-assign@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2" -object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0: +object-assign@^4, object-assign@^4.0.0, object-assign@^4.0.1, object-assign@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -4046,6 +4275,10 @@ pretty-hrtime@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1" +private@^0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + private@^0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" @@ -4266,6 +4499,14 @@ regenerator-runtime@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1" +regenerator-transform@^0.10.0: + version "0.10.1" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + regex-cache@^0.4.2: version "0.4.4" resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" @@ -4864,6 +5105,12 @@ strip-dirs@^2.0.0: dependencies: is-natural-number "^4.0.1" +strip-hex-prefix@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz#0c5f155fef1151373377de9dbb588da05500e36f" + dependencies: + is-hex-prefixed "1.0.0" + strip-indent@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" From 5dbeb4600637157b23cf426b95536599092e71f5 Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Thu, 9 Nov 2017 17:13:39 -0500 Subject: [PATCH 07/12] Overriding eth_getTransactionReceipt call --- .../ipc/methods/eth_getTransactionReceipt.js | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 modules/ipc/methods/eth_getTransactionReceipt.js diff --git a/modules/ipc/methods/eth_getTransactionReceipt.js b/modules/ipc/methods/eth_getTransactionReceipt.js new file mode 100644 index 000000000..46b4f8549 --- /dev/null +++ b/modules/ipc/methods/eth_getTransactionReceipt.js @@ -0,0 +1,60 @@ +const _ = global._; +const BaseProcessor = require('./base'); +const eth = require('ethereumjs-util'); + +/** + * Process method: eth_getTransactionReceipt + */ + +module.exports = class extends BaseProcessor { + + sanitizeRequestPayload(conn, payload, isPartOfABatch) { + return super.sanitizeRequestPayload(conn, payload, isPartOfABatch); + } + + async exec(conn, payload) { + const txHash = payload.params[0]; + + // Sends regular eth_getTransactionReceipt request + const ret = await conn.socket.send(payload, { + fullResult: true + }); + + // If that contains a contractAddress already, fine. + if (ret.result.result.contractAddress != null) { + return ret.result; + } + + // Due to a geth's light client v1 bug, it does not return + // contractAddress value on the receipts. Let's fix that. + // 1. GET TRANSACTION from AND nonce VALUES + const transactionInfo = await conn.socket.send({ + jsonrpc: '2.0', + id: _.uuid(), + method: 'eth_getTransactionByHash', + params: [txHash] + }, { fullResult: true }); + + + const fromAddress = transactionInfo.result.result.from; + const nonce = parseInt(transactionInfo.result.result.nonce, 16); + const possibleContractAddress = `0x${eth.generateAddress(fromAddress, nonce).toString('hex')}`; + + + // 2. GET CODE FROM ADDRESS + const contractCode = await conn.socket.send({ + jsonrpc: '2.0', + id: _.uuid(), + method: 'eth_getCode', + params: [possibleContractAddress, 'latest'] + }, { fullResult: true }); + const contractCodeResult = contractCode.result.result; + + // 3. IF IT EXISTS, ASSIGN TO RETURN VALUE + if (contractCodeResult && contractCodeResult.length > 2) { + ret.result.result.contractAddress = possibleContractAddress; + } + + return ret.result; + } +}; From 32b40de49d462ef1362821475d77b74ef96245c1 Mon Sep 17 00:00:00 2001 From: William Morriss Date: Sat, 11 Nov 2017 15:56:10 -0800 Subject: [PATCH 08/12] update solc --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0fc5eed76..6f45d0f27 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "oboe": "^2.1.3", "os-timesync": "^1.0.8", "semver": "^5.1.0", - "solc": "^0.4.15", + "solc": "^0.4.18", "swarm-js": "^0.1.21", "typescript": "^2.2.2", "underscore": "^1.8.3", diff --git a/yarn.lock b/yarn.lock index 67cf1416b..074787fb7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4676,9 +4676,9 @@ sntp@2.x.x: dependencies: hoek "4.x.x" -solc@^0.4.15: - version "0.4.16" - resolved "https://registry.yarnpkg.com/solc/-/solc-0.4.16.tgz#809a5b1257c7c200e11a841b377eaec274698539" +solc@^0.4.18: + version "0.4.18" + resolved "https://registry.yarnpkg.com/solc/-/solc-0.4.18.tgz#83ac6d871dd16a9710e67dbb76dad7f614100702" dependencies: fs-extra "^0.30.0" memorystream "^0.3.1" From 433d9d87945efd59f42f2bdc05e84794f06505bd Mon Sep 17 00:00:00 2001 From: Marc Garreau Date: Tue, 14 Nov 2017 17:53:41 -0700 Subject: [PATCH 09/12] Prevents duplicate Dynamic View entries --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 9e57d70f2..05b75c8a5 100644 --- a/main.js +++ b/main.js @@ -506,8 +506,7 @@ startMainWindow = () => { // observe Tabs for changes and refresh menu const Tabs = global.db.getCollection('UI_tabs'); - - const sortedTabs = Tabs.addDynamicView('sorted_tabs'); + const sortedTabs = Tabs.getDynamicView('sorted_tabs') || Tabs.addDynamicView('sorted_tabs'); sortedTabs.applySimpleSort('position', false); const refreshMenu = () => { From 6f142841b963fce5884895cd6166262b25362500 Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Wed, 15 Nov 2017 16:44:12 -0500 Subject: [PATCH 10/12] Auto-generating SHA256 checksums --- gulpTasks/publishing.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gulpTasks/publishing.js b/gulpTasks/publishing.js index 6207c6d6b..06d45a8b7 100644 --- a/gulpTasks/publishing.js +++ b/gulpTasks/publishing.js @@ -21,16 +21,11 @@ gulp.task('checksums', (cb) => { let command; let argument = ''; - switch (process.platform) { - case 'darwin': - command = 'md5'; - break; - case 'win32': + if (process.platform === 'win32') { command = 'certUtil -hashfile'; - argument = 'md5'; - break; - default: - command = 'md5sum'; + argument = 'SHA256'; + } else { + command = 'shasum -a 256'; } files.forEach((file) => { @@ -90,14 +85,22 @@ gulp.task('upload-binaries', (cb) => { }) // append checksums to draft text .then(() => { + console.info('Appending checksums to release notes...', checksums); if (draft.body && checksums) { got.patch(`https://api.github.com/repos/ethereum/mist/releases/${draft.id}?access_token=${GITHUB_TOKEN}`, { body: JSON.stringify({ tag_name: `v${version}`, - body: `${draft.body}\n\n## Checksums\n\`\`\`\n${checksums.join('')}\`\`\`` + // String manipulation to create a checksums table + body: String.concat('File | Checksum (SHA256)\n-- | --', checksums.map((e) => { + const line = e.replace('\n', '').split(' '); + return `${line[1]} | ${line[0]}`; + }).join('\n')) }) }); } + }) + .catch((err) => { + console.log(err); }); } }) From 7141a00c5c842c04a0be74a175a3007c1dc9a433 Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Wed, 15 Nov 2017 16:53:56 -0500 Subject: [PATCH 11/12] Formatting checksum table contents --- gulpTasks/publishing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpTasks/publishing.js b/gulpTasks/publishing.js index 06d45a8b7..9556f6467 100644 --- a/gulpTasks/publishing.js +++ b/gulpTasks/publishing.js @@ -93,7 +93,7 @@ gulp.task('upload-binaries', (cb) => { // String manipulation to create a checksums table body: String.concat('File | Checksum (SHA256)\n-- | --', checksums.map((e) => { const line = e.replace('\n', '').split(' '); - return `${line[1]} | ${line[0]}`; + return `${line[1]} | \`${line[0]}\``; }).join('\n')) }) }); From 8a7cb63b4e091afb54561f131e420dd3c9ad3049 Mon Sep 17 00:00:00 2001 From: Everton Fraga Date: Mon, 20 Nov 2017 15:50:48 -0500 Subject: [PATCH 12/12] Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fe2f8b78d..0a0a02c9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Mist", - "version": "0.9.2", + "version": "0.9.3", "license": "GPL-3.0", "author": "Ethereum Mist Team ", "repository": {