├── .gitignore ├── LICENSE ├── LICENSE.md ├── README.md ├── package-lock.json ├── package.json ├── src ├── index.js └── signTx.js └── test └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .idea 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # eth-deploy-crosschain 2 | 3 | This library create a raw transaction to deploy contracts at the same address on different EVM chains. 4 | This method is known as [Nick's method](https://medium.com/@weka/how-to-send-ether-to-11-440-people-187e332566b7). 5 | 6 | 1. We generate a transaction from a new random account. 7 | This transaction MUST NOT use EIP-155 in order to work on any chain. 8 | This transaction MUST have a relatively high gas price to be deployed on any chain. Default is 200 GWEI. 9 | The gas limit should be chosen, to be just enough to deploy the contract, otherwise you would need to over-fund the deployer address. 10 | 2. We replace the r, s values with `0x1234...` and v with 27. This signs by a random address of which nobody knows the private key. 11 | 3. We recover the signer from the raw transaction to get the deployer address. 12 | 4. We send sufficient native coins of the blockchain to the account, and send the raw transaction (e.g. using `web3.eth.sendSignedTransaction(rawTx)`) 13 | 5. The contract deploys at the fixed address, and the same rawTransaction can be used on other EVM blockchains, by repeating step 4. 14 | 15 | *NOTE*: The gas limit should be chosen, to be just enough to deploy the contract, otherwise you would need to over-fund the deployer address. 16 | 17 | Other useful tools by me: 18 | 19 | - [eth-create2-calculator](https://github.com/frozeman/eth-create2-calculator) 20 | 21 | ## Usage 22 | 23 | npm 24 | ```shell script 25 | $ npm install eth-deploy-crosschain 26 | ``` 27 | 28 | ### API 29 | 30 | ```js 31 | import { generateCrossChainTransaction } from 'eth-deploy-crosschain' 32 | 33 | generateCrossChainTransaction(byteCode [, options]) 34 | > { 35 | deployerAddress: '0xaccountToFund', 36 | contractAddress: '0xcontractAddress', // this contract address can be deployed on many EVM chains 37 | rawTransaction: '0xrawTransaction...' 38 | } 39 | ``` 40 | 41 | The optional options object structure: 42 | ```js 43 | options = { 44 | gas: Number, // default: 4000000 // Set this yourself!! The gas limit should be chosen, to be just enough to deploy the contract, otherwise you would need to over-fund the deployer address. 45 | gasPrice: String, // default: 200 GWEI (200000000000) // gas price in WEI, should be choosen high enough, as this transaction might not be able to be used in with future gasprices, and on other chains. 46 | constructorArgs: { 47 | params: [value], 48 | types: [type] // can be a solidty type (`address`, `bytes32`, `string`, `uint256`, etc) 49 | }, 50 | } 51 | ``` 52 | 53 | ### Examples 54 | 55 | Dummy data 56 | ```js 57 | // example contract data for deployment 58 | const someByteCode = '0x60806040523480156200001157600080fd5b50604051620012ec380380620012ec833981810160405260208110156200003757600080fd5b8101908080519060200190929190505050620000606301ffc9a760e01b6200018560201b60201c565b6000620000726200028e60201b60201c565b905080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350620001216200029660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161462000166576200016581620002c060201b60201c565b5b6200017e6344c028fe60e01b6200018560201b60201c565b50620004db565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620002d06200028e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000393576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200041b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180620012c66026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610ddb80620004eb6000396000f3fe60806040526004361061004a5760003560e01c806301ffc9a71461004f57806344c028fe146100c1578063715018a61461016e5780638da5cb5b14610185578063f2fde38b146101dc575b600080fd5b34801561005b57600080fd5b506100a76004803603602081101561007257600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061022d565b604051808215151515815260200191505060405180910390f35b61016c600480360360808110156100d757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561012857600080fd5b82018360208201111561013a57600080fd5b8035906020019184600183028401116401000000008311171561015c57600080fd5b9091929391929390505050610294565b005b34801561017a57600080fd5b5061018361062c565b005b34801561019157600080fd5b5061019a6107b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e857600080fd5b5061022b600480360360208110156101ff57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107e1565b005b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b61029c6109f1565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461035e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b828473ffffffffffffffffffffffffffffffffffffffff16867f1f920dbda597d7bf95035464170fa58d0a4b57f13a1c315ace6793b9f63688b8858560405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a460006109c45a03905060008614156104425761043c858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050846109f9565b50610624565b600386141561049f576104998484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610a12565b50610623565b60028614156105b45760006104fe84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505060208686905003610b0a565b9050606061055885858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050600060208888905003610b32565b90506000610567878484610bbe565b90508073ffffffffffffffffffffffffffffffffffffffff167fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca31260405160405180910390a2505050610622565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f57726f6e67206f7065726174696f6e207479706500000000000000000000000081525060200191505060405180910390fd5b5b5b505050505050565b6106346109f1565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107e96109f1565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146108ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610931576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610d806026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000806000845160208601878987f19050949350505050565b600081516020830184f09050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ac1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f436f756c64206e6f74206465706c6f7920636f6e74726163740000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca31260405160405180910390a292915050565b60006020820183511015610b1d57600080fd5b60008260208501015190508091505092915050565b606081830184511015610b4457600080fd5b6060821560008114610b6157604051915060208201604052610bb2565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610b9f5780518352602083019250602081019050610b82565b50868552601f19601f8301166040525050505b50809150509392505050565b600080843073ffffffffffffffffffffffffffffffffffffffff16311015610c4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f437265617465323a20696e73756666696369656e742062616c616e636500000081525060200191505060405180910390fd5b600083511415610cc6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f437265617465323a2062797465636f6465206c656e677468206973207a65726f81525060200191505060405180910390fd5b8383516020850187f59050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d74576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f437265617465323a204661696c6564206f6e206465706c6f790000000000000081525060200191505060405180910390fd5b80915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220e810537de0bde6978a2e0dd264ce7b13e91d74687e55deca28f7acc4d8b322bd64736f6c634300060100334f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373' 59 | ``` 60 | 61 | #### Example with options 62 | 63 | ```js 64 | let deployTx = generateCrossChainTransaction(someByteCode, { 65 | gas: 800000, // Chose just enough to deploy the contract, otherwise you need to over-fund the deployer address 66 | gasPrice: '100000000000' // 100 gWEI, should be choosen high enough 67 | }) 68 | > { 69 | deployerAddress: '0x6F0993616c3Ee76309C383e2BdbB48945Ab986E5', // this account needs native token, and then 70 | contractAddress: '0x20de4E83527fc4f0Ec78dE670f52FA50661BCCE2', 71 | rawTransaction: '0xf9059380852e90ed...' 72 | } 73 | 74 | // fund account deployTx.deployerAddress: 0x6F0993616c3Ee76309C383e2BdbB48945Ab986E5 75 | await web3.eth.web3.eth.sendTransaction({ 76 | from: '0x...', 77 | to: '0x6F0993616c3Ee76309C383e2BdbB48945Ab986E5', 78 | value: 200000000000000 // whatever is necessary to deploy the contractß 79 | }) 80 | 81 | // send the raw transaction, e.g. 82 | let receipt = await web3.eth.web3.eth.sendSignedTransaction(deployTx.rawTransaction) 83 | 84 | // contract will be deployed at deployTx.contractAddress: 0x20de4E83527fc4f0Ec78dE670f52FA50661BCCE2 85 | ``` 86 | 87 | 88 | #### Example with constructor arguments 89 | 90 | ```js 91 | generateCrossChainTransaction(someByteCode, { 92 | gas: 800000, // Chose just enough to deploy the contract, otherwise you need to over-fund the deployer address 93 | constructorArgs: { 94 | params: ['0x5b38da6a701c568545dcfcb03fcb875f56beddc4'] 95 | types: ['address'] 96 | } 97 | }) 98 | > { 99 | deployerAddress: '0x6F0993616c3Ee76309C383e2BdbB48945Ab986E5', // this account needs native token, and then 100 | contractAddress: '0x20de4E83527fc4f0Ec78dE670f52FA50661BCCE2', 101 | rawTransaction: '0xf9059380852e90ed...' 102 | } 103 | ``` 104 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eth-deploy-crosschain", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@ethersproject/abi": { 8 | "version": "5.0.7", 9 | "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.0.7.tgz", 10 | "integrity": "sha512-Cqktk+hSIckwP/W8O47Eef60VwmoSC/L3lY0+dIBhQPCNn9E4V7rwmm2aFrNRRDJfFlGuZ1khkQUOc3oBX+niw==", 11 | "requires": { 12 | "@ethersproject/address": "^5.0.4", 13 | "@ethersproject/bignumber": "^5.0.7", 14 | "@ethersproject/bytes": "^5.0.4", 15 | "@ethersproject/constants": "^5.0.4", 16 | "@ethersproject/hash": "^5.0.4", 17 | "@ethersproject/keccak256": "^5.0.3", 18 | "@ethersproject/logger": "^5.0.5", 19 | "@ethersproject/properties": "^5.0.3", 20 | "@ethersproject/strings": "^5.0.4" 21 | } 22 | }, 23 | "@ethersproject/abstract-provider": { 24 | "version": "5.0.5", 25 | "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.0.5.tgz", 26 | "integrity": "sha512-i/CjElAkzV7vQBAeoz+IpjGfcFYEP9eD7j3fzZ0fzTq03DO7PPnR+xkEZ1IoDXGwDS+55aLM1xvLDwB/Lx6IOQ==", 27 | "requires": { 28 | "@ethersproject/bignumber": "^5.0.7", 29 | "@ethersproject/bytes": "^5.0.4", 30 | "@ethersproject/logger": "^5.0.5", 31 | "@ethersproject/networks": "^5.0.3", 32 | "@ethersproject/properties": "^5.0.3", 33 | "@ethersproject/transactions": "^5.0.5", 34 | "@ethersproject/web": "^5.0.6" 35 | } 36 | }, 37 | "@ethersproject/abstract-signer": { 38 | "version": "5.0.7", 39 | "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.0.7.tgz", 40 | "integrity": "sha512-8W8gy/QutEL60EoMEpvxZ8MFAEWs/JvH5nmZ6xeLXoZvmBCasGmxqHdYjo2cxg0nevkPkq9SeenSsBBZSCx+SQ==", 41 | "requires": { 42 | "@ethersproject/abstract-provider": "^5.0.4", 43 | "@ethersproject/bignumber": "^5.0.7", 44 | "@ethersproject/bytes": "^5.0.4", 45 | "@ethersproject/logger": "^5.0.5", 46 | "@ethersproject/properties": "^5.0.3" 47 | } 48 | }, 49 | "@ethersproject/address": { 50 | "version": "5.0.5", 51 | "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.0.5.tgz", 52 | "integrity": "sha512-DpkQ6rwk9jTefrRsJzEm6nhRiJd9pvhn1xN0rw5N/jswXG5r7BLk/GVA0mMAVWAsYfvi2xSc5L41FMox43RYEA==", 53 | "requires": { 54 | "@ethersproject/bignumber": "^5.0.7", 55 | "@ethersproject/bytes": "^5.0.4", 56 | "@ethersproject/keccak256": "^5.0.3", 57 | "@ethersproject/logger": "^5.0.5", 58 | "@ethersproject/rlp": "^5.0.3", 59 | "bn.js": "^4.4.0" 60 | } 61 | }, 62 | "@ethersproject/base64": { 63 | "version": "5.0.4", 64 | "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.0.4.tgz", 65 | "integrity": "sha512-4KRykQ7BQMeOXfvio1YITwHjxwBzh92UoXIdzxDE1p53CK28bbHPdsPNYo0wl0El7lJAMpT2SOdL0hhbWRnyIA==", 66 | "requires": { 67 | "@ethersproject/bytes": "^5.0.4" 68 | } 69 | }, 70 | "@ethersproject/basex": { 71 | "version": "5.0.4", 72 | "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.0.4.tgz", 73 | "integrity": "sha512-ixIr/kKiAoSzOnSc777AGIOAhKai5Ivqr4HO/Gz+YG+xkfv6kqD6AW4ga9vM20Wwb0QBhh3LoRWTu4V1K+x9Ew==", 74 | "requires": { 75 | "@ethersproject/bytes": "^5.0.4", 76 | "@ethersproject/properties": "^5.0.3" 77 | } 78 | }, 79 | "@ethersproject/bignumber": { 80 | "version": "5.0.8", 81 | "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.0.8.tgz", 82 | "integrity": "sha512-KXFVAFKS1jdTXYN8BE5Oj+ZfPMh28iRdFeNGBVT6cUFdtiPVqeXqc0ggvBqA3A1VoFFGgM7oAeaagA393aORHA==", 83 | "requires": { 84 | "@ethersproject/bytes": "^5.0.4", 85 | "@ethersproject/logger": "^5.0.5", 86 | "bn.js": "^4.4.0" 87 | } 88 | }, 89 | "@ethersproject/bytes": { 90 | "version": "5.0.5", 91 | "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.0.5.tgz", 92 | "integrity": "sha512-IEj9HpZB+ACS6cZ+QQMTqmu/cnUK2fYNE6ms/PVxjoBjoxc6HCraLpam1KuRvreMy0i523PLmjN8OYeikRdcUQ==", 93 | "requires": { 94 | "@ethersproject/logger": "^5.0.5" 95 | } 96 | }, 97 | "@ethersproject/constants": { 98 | "version": "5.0.5", 99 | "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.0.5.tgz", 100 | "integrity": "sha512-foaQVmxp2+ik9FrLUCtVrLZCj4M3Ibgkqvh+Xw/vFRSerkjVSYePApaVE5essxhoSlF1U9oXfWY09QI2AXtgKA==", 101 | "requires": { 102 | "@ethersproject/bignumber": "^5.0.7" 103 | } 104 | }, 105 | "@ethersproject/contracts": { 106 | "version": "5.0.5", 107 | "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.0.5.tgz", 108 | "integrity": "sha512-tFI255lFbmbqMkgnuyhDWHl3yWqttPlReplYuVvDCT/SuvBjLR4ad2uipBlh1fh5X1ipK9ettAoV4S0HKim4Kw==", 109 | "requires": { 110 | "@ethersproject/abi": "^5.0.5", 111 | "@ethersproject/abstract-provider": "^5.0.4", 112 | "@ethersproject/abstract-signer": "^5.0.4", 113 | "@ethersproject/address": "^5.0.4", 114 | "@ethersproject/bignumber": "^5.0.7", 115 | "@ethersproject/bytes": "^5.0.4", 116 | "@ethersproject/constants": "^5.0.4", 117 | "@ethersproject/logger": "^5.0.5", 118 | "@ethersproject/properties": "^5.0.3" 119 | } 120 | }, 121 | "@ethersproject/hash": { 122 | "version": "5.0.6", 123 | "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.0.6.tgz", 124 | "integrity": "sha512-Gvh57v6BWhwnud6l7tMfQm32PRQ2DYx2WaAAQmAxAfYvmzUkpQCBstnGeNMXIL8/2wdkvcB2u+WZRWaZtsFuUQ==", 125 | "requires": { 126 | "@ethersproject/abstract-signer": "^5.0.6", 127 | "@ethersproject/address": "^5.0.5", 128 | "@ethersproject/bignumber": "^5.0.8", 129 | "@ethersproject/bytes": "^5.0.4", 130 | "@ethersproject/keccak256": "^5.0.3", 131 | "@ethersproject/logger": "^5.0.5", 132 | "@ethersproject/properties": "^5.0.4", 133 | "@ethersproject/strings": "^5.0.4" 134 | } 135 | }, 136 | "@ethersproject/hdnode": { 137 | "version": "5.0.5", 138 | "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.0.5.tgz", 139 | "integrity": "sha512-Ho4HZaK+KijE5adayvjAGusWMnT0mgwGa5hGMBofBOgX9nqiKf6Wxx68SXBGI1/L3rmKo6mlAjxUd8gefs0teQ==", 140 | "requires": { 141 | "@ethersproject/abstract-signer": "^5.0.4", 142 | "@ethersproject/basex": "^5.0.3", 143 | "@ethersproject/bignumber": "^5.0.7", 144 | "@ethersproject/bytes": "^5.0.4", 145 | "@ethersproject/logger": "^5.0.5", 146 | "@ethersproject/pbkdf2": "^5.0.3", 147 | "@ethersproject/properties": "^5.0.3", 148 | "@ethersproject/sha2": "^5.0.3", 149 | "@ethersproject/signing-key": "^5.0.4", 150 | "@ethersproject/strings": "^5.0.4", 151 | "@ethersproject/transactions": "^5.0.5", 152 | "@ethersproject/wordlists": "^5.0.4" 153 | } 154 | }, 155 | "@ethersproject/json-wallets": { 156 | "version": "5.0.7", 157 | "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.0.7.tgz", 158 | "integrity": "sha512-dgOn9JtGgjT28mDXs4LYY2rT4CzS6bG/rxoYuPq3TLHIf6nmvBcr33Fee6RrM/y8UAx4gyIkf6wb2cXsOctvQQ==", 159 | "requires": { 160 | "@ethersproject/abstract-signer": "^5.0.4", 161 | "@ethersproject/address": "^5.0.4", 162 | "@ethersproject/bytes": "^5.0.4", 163 | "@ethersproject/hdnode": "^5.0.4", 164 | "@ethersproject/keccak256": "^5.0.3", 165 | "@ethersproject/logger": "^5.0.5", 166 | "@ethersproject/pbkdf2": "^5.0.3", 167 | "@ethersproject/properties": "^5.0.3", 168 | "@ethersproject/random": "^5.0.3", 169 | "@ethersproject/strings": "^5.0.4", 170 | "@ethersproject/transactions": "^5.0.5", 171 | "aes-js": "3.0.0", 172 | "scrypt-js": "3.0.1" 173 | } 174 | }, 175 | "@ethersproject/keccak256": { 176 | "version": "5.0.4", 177 | "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.0.4.tgz", 178 | "integrity": "sha512-GNpiOUm9PGUxFNqOxYKDQBM0u68bG9XC9iOulEQ8I0tOx/4qUpgVzvgXL6ugxr0RY554Gz/NQsVqknqPzUcxpQ==", 179 | "requires": { 180 | "@ethersproject/bytes": "^5.0.4", 181 | "js-sha3": "0.5.7" 182 | } 183 | }, 184 | "@ethersproject/logger": { 185 | "version": "5.0.6", 186 | "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.0.6.tgz", 187 | "integrity": "sha512-FrX0Vnb3JZ1md/7GIZfmJ06XOAA8r3q9Uqt9O5orr4ZiksnbpXKlyDzQtlZ5Yv18RS8CAUbiKH9vwidJg1BPmQ==" 188 | }, 189 | "@ethersproject/networks": { 190 | "version": "5.0.4", 191 | "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.0.4.tgz", 192 | "integrity": "sha512-/wHDTRms5mpJ09BoDrbNdFWINzONe05wZRgohCXvEv39rrH/Gd/yAnct8wC0RsW3tmFOgjgQxuBvypIxuUynTw==", 193 | "requires": { 194 | "@ethersproject/logger": "^5.0.5" 195 | } 196 | }, 197 | "@ethersproject/pbkdf2": { 198 | "version": "5.0.4", 199 | "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.0.4.tgz", 200 | "integrity": "sha512-9jVBjHXQKfr9+3bkCg01a8Cd1H9e+7Kw3ZMIvAxD0lZtuzrXsJxm1hVwY9KA+PRUvgS/9tTP4viXQYwLAax7zg==", 201 | "requires": { 202 | "@ethersproject/bytes": "^5.0.4", 203 | "@ethersproject/sha2": "^5.0.3" 204 | } 205 | }, 206 | "@ethersproject/properties": { 207 | "version": "5.0.4", 208 | "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.0.4.tgz", 209 | "integrity": "sha512-UdyX3GqBxFt15B0uSESdDNmhvEbK3ACdDXl2soshoPcneXuTswHDeA0LoPlnaZzhbgk4p6jqb4GMms5C26Qu6A==", 210 | "requires": { 211 | "@ethersproject/logger": "^5.0.5" 212 | } 213 | }, 214 | "@ethersproject/providers": { 215 | "version": "5.0.14", 216 | "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.0.14.tgz", 217 | "integrity": "sha512-K9QRRkkHWyprm3g4L8U9aPx5uyivznL4RYemkN2shCQumyGqFJ5SO+OtQrgebVm0JpGwFAUGugnhRUh49sjErw==", 218 | "requires": { 219 | "@ethersproject/abstract-provider": "^5.0.4", 220 | "@ethersproject/abstract-signer": "^5.0.4", 221 | "@ethersproject/address": "^5.0.4", 222 | "@ethersproject/basex": "^5.0.3", 223 | "@ethersproject/bignumber": "^5.0.7", 224 | "@ethersproject/bytes": "^5.0.4", 225 | "@ethersproject/constants": "^5.0.4", 226 | "@ethersproject/hash": "^5.0.4", 227 | "@ethersproject/logger": "^5.0.5", 228 | "@ethersproject/networks": "^5.0.3", 229 | "@ethersproject/properties": "^5.0.3", 230 | "@ethersproject/random": "^5.0.3", 231 | "@ethersproject/rlp": "^5.0.3", 232 | "@ethersproject/sha2": "^5.0.3", 233 | "@ethersproject/strings": "^5.0.4", 234 | "@ethersproject/transactions": "^5.0.5", 235 | "@ethersproject/web": "^5.0.6", 236 | "bech32": "1.1.4", 237 | "ws": "7.2.3" 238 | } 239 | }, 240 | "@ethersproject/random": { 241 | "version": "5.0.4", 242 | "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.0.4.tgz", 243 | "integrity": "sha512-AIZJhqs6Ba4/+U3lOjt3QZbP6b/kuuGLJUYFUonAgWmkTHwqsCwYnFvnHKQSUuHbXHvErp7WFXFlztx+yMn3kQ==", 244 | "requires": { 245 | "@ethersproject/bytes": "^5.0.4", 246 | "@ethersproject/logger": "^5.0.5" 247 | } 248 | }, 249 | "@ethersproject/rlp": { 250 | "version": "5.0.4", 251 | "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.0.4.tgz", 252 | "integrity": "sha512-5qrrZad7VTjofxSsm7Zg/7Dr4ZOln4S2CqiDdOuTv6MBKnXj0CiBojXyuDy52M8O3wxH0CyE924hXWTDV1PQWQ==", 253 | "requires": { 254 | "@ethersproject/bytes": "^5.0.4", 255 | "@ethersproject/logger": "^5.0.5" 256 | } 257 | }, 258 | "@ethersproject/sha2": { 259 | "version": "5.0.4", 260 | "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.0.4.tgz", 261 | "integrity": "sha512-0yFhf1mspxAfWdXXoPtK94adUeu1R7/FzAa+DfEiZTc76sz/vHXf0LSIazoR3znYKFny6haBxME+usbvvEcF3A==", 262 | "requires": { 263 | "@ethersproject/bytes": "^5.0.4", 264 | "@ethersproject/logger": "^5.0.5", 265 | "hash.js": "1.1.3" 266 | }, 267 | "dependencies": { 268 | "hash.js": { 269 | "version": "1.1.3", 270 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", 271 | "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", 272 | "requires": { 273 | "inherits": "^2.0.3", 274 | "minimalistic-assert": "^1.0.0" 275 | } 276 | } 277 | } 278 | }, 279 | "@ethersproject/signing-key": { 280 | "version": "5.0.5", 281 | "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.0.5.tgz", 282 | "integrity": "sha512-Z1wY7JC1HVO4CvQWY2TyTTuAr8xK3bJijZw1a9G92JEmKdv1j255R/0YLBBcFTl2J65LUjtXynNJ2GbArPGi5g==", 283 | "requires": { 284 | "@ethersproject/bytes": "^5.0.4", 285 | "@ethersproject/logger": "^5.0.5", 286 | "@ethersproject/properties": "^5.0.3", 287 | "elliptic": "6.5.3" 288 | } 289 | }, 290 | "@ethersproject/solidity": { 291 | "version": "5.0.5", 292 | "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.0.5.tgz", 293 | "integrity": "sha512-DMFQ0ouXmNVoKWbGEUFGi8Urli4SJip9jXafQyFHWPRr5oJUqDVkNfwcyC37k+mhBG93k7qrYXCH2xJnGEOxHg==", 294 | "requires": { 295 | "@ethersproject/bignumber": "^5.0.7", 296 | "@ethersproject/bytes": "^5.0.4", 297 | "@ethersproject/keccak256": "^5.0.3", 298 | "@ethersproject/sha2": "^5.0.3", 299 | "@ethersproject/strings": "^5.0.4" 300 | } 301 | }, 302 | "@ethersproject/strings": { 303 | "version": "5.0.5", 304 | "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.0.5.tgz", 305 | "integrity": "sha512-JED6WaIV00xM/gvj8vSnd+0VWtDYdidTmavFRCTQakqfz+4tDo6Jz5LHgG+dd45h7ah7ykCHW0C7ZXWEDROCXQ==", 306 | "requires": { 307 | "@ethersproject/bytes": "^5.0.4", 308 | "@ethersproject/constants": "^5.0.4", 309 | "@ethersproject/logger": "^5.0.5" 310 | } 311 | }, 312 | "@ethersproject/transactions": { 313 | "version": "5.0.6", 314 | "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.0.6.tgz", 315 | "integrity": "sha512-htsFhOD+NMBxx676A8ehSuwVV49iqpSB+CkjPZ02tpNew0K6p8g0CZ46Z1ZP946gIHAU80xQ0NACHYrjIUaCFA==", 316 | "requires": { 317 | "@ethersproject/address": "^5.0.4", 318 | "@ethersproject/bignumber": "^5.0.7", 319 | "@ethersproject/bytes": "^5.0.4", 320 | "@ethersproject/constants": "^5.0.4", 321 | "@ethersproject/keccak256": "^5.0.3", 322 | "@ethersproject/logger": "^5.0.5", 323 | "@ethersproject/properties": "^5.0.3", 324 | "@ethersproject/rlp": "^5.0.3", 325 | "@ethersproject/signing-key": "^5.0.4" 326 | } 327 | }, 328 | "@ethersproject/units": { 329 | "version": "5.0.6", 330 | "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.0.6.tgz", 331 | "integrity": "sha512-tsJuy4mipppdmooukRfhXt8fGx9nxvfvG6Xdy0RDm7LzHsjghjwQ69m2bCpId6SDSR1Uq1cQ9irPiUBSyWolUA==", 332 | "requires": { 333 | "@ethersproject/bignumber": "^5.0.7", 334 | "@ethersproject/constants": "^5.0.4", 335 | "@ethersproject/logger": "^5.0.5" 336 | } 337 | }, 338 | "@ethersproject/wallet": { 339 | "version": "5.0.7", 340 | "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.0.7.tgz", 341 | "integrity": "sha512-n2GX1+2Tc0qV8dguUcLkjNugINKvZY7u/5fEsn0skW9rz5+jHTR5IKMV6jSfXA+WjQT8UCNMvkI3CNcdhaPbTQ==", 342 | "requires": { 343 | "@ethersproject/abstract-provider": "^5.0.4", 344 | "@ethersproject/abstract-signer": "^5.0.4", 345 | "@ethersproject/address": "^5.0.4", 346 | "@ethersproject/bignumber": "^5.0.7", 347 | "@ethersproject/bytes": "^5.0.4", 348 | "@ethersproject/hash": "^5.0.4", 349 | "@ethersproject/hdnode": "^5.0.4", 350 | "@ethersproject/json-wallets": "^5.0.6", 351 | "@ethersproject/keccak256": "^5.0.3", 352 | "@ethersproject/logger": "^5.0.5", 353 | "@ethersproject/properties": "^5.0.3", 354 | "@ethersproject/random": "^5.0.3", 355 | "@ethersproject/signing-key": "^5.0.4", 356 | "@ethersproject/transactions": "^5.0.5", 357 | "@ethersproject/wordlists": "^5.0.4" 358 | } 359 | }, 360 | "@ethersproject/web": { 361 | "version": "5.0.9", 362 | "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.0.9.tgz", 363 | "integrity": "sha512-//QNlv1MSkOII1hv3+HQwWoiVFS+BMVGI0KYeUww4cyrEktnx1QIez5bTSab9s9fWTFaWKNmQNBwMbxAqPuYDw==", 364 | "requires": { 365 | "@ethersproject/base64": "^5.0.3", 366 | "@ethersproject/bytes": "^5.0.4", 367 | "@ethersproject/logger": "^5.0.5", 368 | "@ethersproject/properties": "^5.0.3", 369 | "@ethersproject/strings": "^5.0.4" 370 | } 371 | }, 372 | "@ethersproject/wordlists": { 373 | "version": "5.0.5", 374 | "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.0.5.tgz", 375 | "integrity": "sha512-XA3ycFltVrCTQt04w5nHu3Xq5Z6HjqWsXaAYQHFdqtugyUsIumaO9S5MOwFFuUYTNkZUoT3jCRa/OBS+K4tLfA==", 376 | "requires": { 377 | "@ethersproject/bytes": "^5.0.4", 378 | "@ethersproject/hash": "^5.0.4", 379 | "@ethersproject/logger": "^5.0.5", 380 | "@ethersproject/properties": "^5.0.3", 381 | "@ethersproject/strings": "^5.0.4" 382 | } 383 | }, 384 | "@types/bn.js": { 385 | "version": "4.11.6", 386 | "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", 387 | "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", 388 | "requires": { 389 | "@types/node": "*" 390 | } 391 | }, 392 | "@types/node": { 393 | "version": "14.14.10", 394 | "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.10.tgz", 395 | "integrity": "sha512-J32dgx2hw8vXrSbu4ZlVhn1Nm3GbeCFNw2FWL8S5QKucHGY0cyNwjdQdO+KMBZ4wpmC7KhLCiNsdk1RFRIYUQQ==" 396 | }, 397 | "@types/pbkdf2": { 398 | "version": "3.1.0", 399 | "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz", 400 | "integrity": "sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==", 401 | "requires": { 402 | "@types/node": "*" 403 | } 404 | }, 405 | "@types/secp256k1": { 406 | "version": "4.0.1", 407 | "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.1.tgz", 408 | "integrity": "sha512-+ZjSA8ELlOp8SlKi0YLB2tz9d5iPNEmOBd+8Rz21wTMdaXQIa9b6TEnD6l5qKOCypE7FSyPyck12qZJxSDNoog==", 409 | "requires": { 410 | "@types/node": "*" 411 | } 412 | }, 413 | "@ungap/promise-all-settled": { 414 | "version": "1.1.2", 415 | "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", 416 | "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", 417 | "dev": true 418 | }, 419 | "accepts": { 420 | "version": "1.3.7", 421 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 422 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 423 | "requires": { 424 | "mime-types": "~2.1.24", 425 | "negotiator": "0.6.2" 426 | } 427 | }, 428 | "aes-js": { 429 | "version": "3.0.0", 430 | "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", 431 | "integrity": "sha1-4h3xCtbCBTKVvLuNq0Cwnb6ofk0=" 432 | }, 433 | "ajv": { 434 | "version": "6.12.6", 435 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 436 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 437 | "requires": { 438 | "fast-deep-equal": "^3.1.1", 439 | "fast-json-stable-stringify": "^2.0.0", 440 | "json-schema-traverse": "^0.4.1", 441 | "uri-js": "^4.2.2" 442 | } 443 | }, 444 | "ansi-colors": { 445 | "version": "4.1.1", 446 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", 447 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", 448 | "dev": true 449 | }, 450 | "ansi-regex": { 451 | "version": "3.0.0", 452 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 453 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 454 | "dev": true 455 | }, 456 | "ansi-styles": { 457 | "version": "4.3.0", 458 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 459 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 460 | "dev": true, 461 | "requires": { 462 | "color-convert": "^2.0.1" 463 | } 464 | }, 465 | "anymatch": { 466 | "version": "3.1.1", 467 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 468 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 469 | "dev": true, 470 | "requires": { 471 | "normalize-path": "^3.0.0", 472 | "picomatch": "^2.0.4" 473 | } 474 | }, 475 | "argparse": { 476 | "version": "1.0.10", 477 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 478 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 479 | "dev": true, 480 | "requires": { 481 | "sprintf-js": "~1.0.2" 482 | } 483 | }, 484 | "array-flatten": { 485 | "version": "1.1.1", 486 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 487 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 488 | }, 489 | "asn1": { 490 | "version": "0.2.4", 491 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 492 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 493 | "requires": { 494 | "safer-buffer": "~2.1.0" 495 | } 496 | }, 497 | "assert-plus": { 498 | "version": "1.0.0", 499 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 500 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 501 | }, 502 | "async-limiter": { 503 | "version": "1.0.1", 504 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", 505 | "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" 506 | }, 507 | "asynckit": { 508 | "version": "0.4.0", 509 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 510 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 511 | }, 512 | "aws-sign2": { 513 | "version": "0.7.0", 514 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 515 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 516 | }, 517 | "aws4": { 518 | "version": "1.11.0", 519 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", 520 | "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" 521 | }, 522 | "balanced-match": { 523 | "version": "1.0.0", 524 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 525 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 526 | "dev": true 527 | }, 528 | "base-x": { 529 | "version": "3.0.8", 530 | "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.8.tgz", 531 | "integrity": "sha512-Rl/1AWP4J/zRrk54hhlxH4drNxPJXYUaKffODVI53/dAsV4t9fBxyxYKAVPU1XBHxYwOWP9h9H0hM2MVw4YfJA==", 532 | "requires": { 533 | "safe-buffer": "^5.0.1" 534 | } 535 | }, 536 | "bcrypt-pbkdf": { 537 | "version": "1.0.2", 538 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 539 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 540 | "requires": { 541 | "tweetnacl": "^0.14.3" 542 | } 543 | }, 544 | "bech32": { 545 | "version": "1.1.4", 546 | "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", 547 | "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" 548 | }, 549 | "binary-extensions": { 550 | "version": "2.1.0", 551 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", 552 | "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", 553 | "dev": true 554 | }, 555 | "blakejs": { 556 | "version": "1.1.0", 557 | "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.1.0.tgz", 558 | "integrity": "sha1-ad+S75U6qIylGjLfarHFShVfx6U=" 559 | }, 560 | "bn.js": { 561 | "version": "4.11.9", 562 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", 563 | "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==" 564 | }, 565 | "body-parser": { 566 | "version": "1.19.0", 567 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 568 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 569 | "requires": { 570 | "bytes": "3.1.0", 571 | "content-type": "~1.0.4", 572 | "debug": "2.6.9", 573 | "depd": "~1.1.2", 574 | "http-errors": "1.7.2", 575 | "iconv-lite": "0.4.24", 576 | "on-finished": "~2.3.0", 577 | "qs": "6.7.0", 578 | "raw-body": "2.4.0", 579 | "type-is": "~1.6.17" 580 | }, 581 | "dependencies": { 582 | "debug": { 583 | "version": "2.6.9", 584 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 585 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 586 | "requires": { 587 | "ms": "2.0.0" 588 | } 589 | }, 590 | "ms": { 591 | "version": "2.0.0", 592 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 593 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 594 | } 595 | } 596 | }, 597 | "brace-expansion": { 598 | "version": "1.1.11", 599 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 600 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 601 | "dev": true, 602 | "requires": { 603 | "balanced-match": "^1.0.0", 604 | "concat-map": "0.0.1" 605 | } 606 | }, 607 | "braces": { 608 | "version": "3.0.2", 609 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 610 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 611 | "dev": true, 612 | "requires": { 613 | "fill-range": "^7.0.1" 614 | } 615 | }, 616 | "brorand": { 617 | "version": "1.1.0", 618 | "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", 619 | "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" 620 | }, 621 | "browser-stdout": { 622 | "version": "1.3.1", 623 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 624 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 625 | "dev": true 626 | }, 627 | "browserify-aes": { 628 | "version": "1.2.0", 629 | "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", 630 | "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", 631 | "requires": { 632 | "buffer-xor": "^1.0.3", 633 | "cipher-base": "^1.0.0", 634 | "create-hash": "^1.1.0", 635 | "evp_bytestokey": "^1.0.3", 636 | "inherits": "^2.0.1", 637 | "safe-buffer": "^5.0.1" 638 | } 639 | }, 640 | "bs58": { 641 | "version": "4.0.1", 642 | "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", 643 | "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", 644 | "requires": { 645 | "base-x": "^3.0.2" 646 | } 647 | }, 648 | "bs58check": { 649 | "version": "2.1.2", 650 | "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", 651 | "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", 652 | "requires": { 653 | "bs58": "^4.0.0", 654 | "create-hash": "^1.1.0", 655 | "safe-buffer": "^5.1.2" 656 | } 657 | }, 658 | "buffer-to-arraybuffer": { 659 | "version": "0.0.5", 660 | "resolved": "https://registry.npmjs.org/buffer-to-arraybuffer/-/buffer-to-arraybuffer-0.0.5.tgz", 661 | "integrity": "sha1-YGSkD6dutDxyOrqe+PbhIW0QURo=" 662 | }, 663 | "buffer-xor": { 664 | "version": "1.0.3", 665 | "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", 666 | "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" 667 | }, 668 | "bytes": { 669 | "version": "3.1.0", 670 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 671 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 672 | }, 673 | "camelcase": { 674 | "version": "5.3.1", 675 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 676 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 677 | "dev": true 678 | }, 679 | "caseless": { 680 | "version": "0.12.0", 681 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 682 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 683 | }, 684 | "chalk": { 685 | "version": "4.1.0", 686 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", 687 | "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", 688 | "dev": true, 689 | "requires": { 690 | "ansi-styles": "^4.1.0", 691 | "supports-color": "^7.1.0" 692 | } 693 | }, 694 | "chokidar": { 695 | "version": "3.4.3", 696 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.3.tgz", 697 | "integrity": "sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==", 698 | "dev": true, 699 | "requires": { 700 | "anymatch": "~3.1.1", 701 | "braces": "~3.0.2", 702 | "fsevents": "~2.1.2", 703 | "glob-parent": "~5.1.0", 704 | "is-binary-path": "~2.1.0", 705 | "is-glob": "~4.0.1", 706 | "normalize-path": "~3.0.0", 707 | "readdirp": "~3.5.0" 708 | } 709 | }, 710 | "cipher-base": { 711 | "version": "1.0.4", 712 | "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", 713 | "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", 714 | "requires": { 715 | "inherits": "^2.0.1", 716 | "safe-buffer": "^5.0.1" 717 | } 718 | }, 719 | "cliui": { 720 | "version": "5.0.0", 721 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", 722 | "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", 723 | "dev": true, 724 | "requires": { 725 | "string-width": "^3.1.0", 726 | "strip-ansi": "^5.2.0", 727 | "wrap-ansi": "^5.1.0" 728 | }, 729 | "dependencies": { 730 | "ansi-regex": { 731 | "version": "4.1.0", 732 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 733 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 734 | "dev": true 735 | }, 736 | "string-width": { 737 | "version": "3.1.0", 738 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 739 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 740 | "dev": true, 741 | "requires": { 742 | "emoji-regex": "^7.0.1", 743 | "is-fullwidth-code-point": "^2.0.0", 744 | "strip-ansi": "^5.1.0" 745 | } 746 | }, 747 | "strip-ansi": { 748 | "version": "5.2.0", 749 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 750 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 751 | "dev": true, 752 | "requires": { 753 | "ansi-regex": "^4.1.0" 754 | } 755 | } 756 | } 757 | }, 758 | "color-convert": { 759 | "version": "2.0.1", 760 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 761 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 762 | "dev": true, 763 | "requires": { 764 | "color-name": "~1.1.4" 765 | } 766 | }, 767 | "color-name": { 768 | "version": "1.1.4", 769 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 770 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 771 | "dev": true 772 | }, 773 | "combined-stream": { 774 | "version": "1.0.8", 775 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 776 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 777 | "requires": { 778 | "delayed-stream": "~1.0.0" 779 | } 780 | }, 781 | "concat-map": { 782 | "version": "0.0.1", 783 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 784 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 785 | "dev": true 786 | }, 787 | "content-disposition": { 788 | "version": "0.5.3", 789 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 790 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 791 | "requires": { 792 | "safe-buffer": "5.1.2" 793 | }, 794 | "dependencies": { 795 | "safe-buffer": { 796 | "version": "5.1.2", 797 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 798 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 799 | } 800 | } 801 | }, 802 | "content-type": { 803 | "version": "1.0.4", 804 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 805 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 806 | }, 807 | "cookie": { 808 | "version": "0.4.0", 809 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 810 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 811 | }, 812 | "cookie-signature": { 813 | "version": "1.0.6", 814 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 815 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 816 | }, 817 | "core-util-is": { 818 | "version": "1.0.2", 819 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 820 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 821 | }, 822 | "cors": { 823 | "version": "2.8.5", 824 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 825 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 826 | "requires": { 827 | "object-assign": "^4", 828 | "vary": "^1" 829 | } 830 | }, 831 | "create-hash": { 832 | "version": "1.2.0", 833 | "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", 834 | "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", 835 | "requires": { 836 | "cipher-base": "^1.0.1", 837 | "inherits": "^2.0.1", 838 | "md5.js": "^1.3.4", 839 | "ripemd160": "^2.0.1", 840 | "sha.js": "^2.4.0" 841 | } 842 | }, 843 | "create-hmac": { 844 | "version": "1.1.7", 845 | "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", 846 | "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", 847 | "requires": { 848 | "cipher-base": "^1.0.3", 849 | "create-hash": "^1.1.0", 850 | "inherits": "^2.0.1", 851 | "ripemd160": "^2.0.0", 852 | "safe-buffer": "^5.0.1", 853 | "sha.js": "^2.4.8" 854 | } 855 | }, 856 | "dashdash": { 857 | "version": "1.14.1", 858 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 859 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 860 | "requires": { 861 | "assert-plus": "^1.0.0" 862 | } 863 | }, 864 | "debug": { 865 | "version": "4.2.0", 866 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", 867 | "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", 868 | "dev": true, 869 | "requires": { 870 | "ms": "2.1.2" 871 | } 872 | }, 873 | "decamelize": { 874 | "version": "1.2.0", 875 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 876 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 877 | "dev": true 878 | }, 879 | "decode-uri-component": { 880 | "version": "0.2.0", 881 | "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", 882 | "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" 883 | }, 884 | "decompress-response": { 885 | "version": "3.3.0", 886 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 887 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 888 | "requires": { 889 | "mimic-response": "^1.0.0" 890 | } 891 | }, 892 | "delayed-stream": { 893 | "version": "1.0.0", 894 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 895 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 896 | }, 897 | "depd": { 898 | "version": "1.1.2", 899 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 900 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 901 | }, 902 | "destroy": { 903 | "version": "1.0.4", 904 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 905 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 906 | }, 907 | "diff": { 908 | "version": "4.0.2", 909 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 910 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 911 | "dev": true 912 | }, 913 | "dom-walk": { 914 | "version": "0.1.2", 915 | "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", 916 | "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" 917 | }, 918 | "ecc-jsbn": { 919 | "version": "0.1.2", 920 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 921 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 922 | "requires": { 923 | "jsbn": "~0.1.0", 924 | "safer-buffer": "^2.1.0" 925 | } 926 | }, 927 | "ee-first": { 928 | "version": "1.1.1", 929 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 930 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 931 | }, 932 | "elliptic": { 933 | "version": "6.5.3", 934 | "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz", 935 | "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==", 936 | "requires": { 937 | "bn.js": "^4.4.0", 938 | "brorand": "^1.0.1", 939 | "hash.js": "^1.0.0", 940 | "hmac-drbg": "^1.0.0", 941 | "inherits": "^2.0.1", 942 | "minimalistic-assert": "^1.0.0", 943 | "minimalistic-crypto-utils": "^1.0.0" 944 | } 945 | }, 946 | "emoji-regex": { 947 | "version": "7.0.3", 948 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 949 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 950 | "dev": true 951 | }, 952 | "encodeurl": { 953 | "version": "1.0.2", 954 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 955 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 956 | }, 957 | "escape-html": { 958 | "version": "1.0.3", 959 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 960 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 961 | }, 962 | "escape-string-regexp": { 963 | "version": "4.0.0", 964 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 965 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 966 | "dev": true 967 | }, 968 | "esprima": { 969 | "version": "4.0.1", 970 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 971 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 972 | "dev": true 973 | }, 974 | "etag": { 975 | "version": "1.8.1", 976 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 977 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 978 | }, 979 | "eth-lib": { 980 | "version": "0.1.29", 981 | "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.1.29.tgz", 982 | "integrity": "sha512-bfttrr3/7gG4E02HoWTDUcDDslN003OlOoBxk9virpAZQ1ja/jDgwkWB8QfJF7ojuEowrqy+lzp9VcJG7/k5bQ==", 983 | "requires": { 984 | "bn.js": "^4.11.6", 985 | "elliptic": "^6.4.0", 986 | "nano-json-stream-parser": "^0.1.2", 987 | "servify": "^0.1.12", 988 | "ws": "^3.0.0", 989 | "xhr-request-promise": "^0.1.2" 990 | }, 991 | "dependencies": { 992 | "safe-buffer": { 993 | "version": "5.1.2", 994 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 995 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 996 | }, 997 | "ws": { 998 | "version": "3.3.3", 999 | "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", 1000 | "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", 1001 | "requires": { 1002 | "async-limiter": "~1.0.0", 1003 | "safe-buffer": "~5.1.0", 1004 | "ultron": "~1.1.0" 1005 | } 1006 | } 1007 | } 1008 | }, 1009 | "ethereum-cryptography": { 1010 | "version": "0.1.3", 1011 | "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", 1012 | "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", 1013 | "requires": { 1014 | "@types/pbkdf2": "^3.0.0", 1015 | "@types/secp256k1": "^4.0.1", 1016 | "blakejs": "^1.1.0", 1017 | "browserify-aes": "^1.2.0", 1018 | "bs58check": "^2.1.2", 1019 | "create-hash": "^1.2.0", 1020 | "create-hmac": "^1.1.7", 1021 | "hash.js": "^1.1.7", 1022 | "keccak": "^3.0.0", 1023 | "pbkdf2": "^3.0.17", 1024 | "randombytes": "^2.1.0", 1025 | "safe-buffer": "^5.1.2", 1026 | "scrypt-js": "^3.0.0", 1027 | "secp256k1": "^4.0.1", 1028 | "setimmediate": "^1.0.5" 1029 | } 1030 | }, 1031 | "ethereumjs-common": { 1032 | "version": "1.5.2", 1033 | "resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-1.5.2.tgz", 1034 | "integrity": "sha512-hTfZjwGX52GS2jcVO6E2sx4YuFnf0Fhp5ylo4pEPhEffNln7vS59Hr5sLnp3/QCazFLluuBZ+FZ6J5HTp0EqCA==" 1035 | }, 1036 | "ethereumjs-tx": { 1037 | "version": "2.1.2", 1038 | "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-2.1.2.tgz", 1039 | "integrity": "sha512-zZEK1onCeiORb0wyCXUvg94Ve5It/K6GD1K+26KfFKodiBiS6d9lfCXlUKGBBdQ+bv7Day+JK0tj1K+BeNFRAw==", 1040 | "requires": { 1041 | "ethereumjs-common": "^1.5.0", 1042 | "ethereumjs-util": "^6.0.0" 1043 | } 1044 | }, 1045 | "ethereumjs-util": { 1046 | "version": "6.2.1", 1047 | "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", 1048 | "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", 1049 | "requires": { 1050 | "@types/bn.js": "^4.11.3", 1051 | "bn.js": "^4.11.0", 1052 | "create-hash": "^1.1.2", 1053 | "elliptic": "^6.5.2", 1054 | "ethereum-cryptography": "^0.1.3", 1055 | "ethjs-util": "0.1.6", 1056 | "rlp": "^2.2.3" 1057 | } 1058 | }, 1059 | "ethers": { 1060 | "version": "5.0.19", 1061 | "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.0.19.tgz", 1062 | "integrity": "sha512-0AZnUgZh98q888WAd1oI3aLeI+iyDtrupjANVtPPS7O63lVopkR/No8A1NqSkgl/rU+b2iuu2mUZor6GD4RG2w==", 1063 | "requires": { 1064 | "@ethersproject/abi": "5.0.7", 1065 | "@ethersproject/abstract-provider": "5.0.5", 1066 | "@ethersproject/abstract-signer": "5.0.7", 1067 | "@ethersproject/address": "5.0.5", 1068 | "@ethersproject/base64": "5.0.4", 1069 | "@ethersproject/basex": "5.0.4", 1070 | "@ethersproject/bignumber": "5.0.8", 1071 | "@ethersproject/bytes": "5.0.5", 1072 | "@ethersproject/constants": "5.0.5", 1073 | "@ethersproject/contracts": "5.0.5", 1074 | "@ethersproject/hash": "5.0.6", 1075 | "@ethersproject/hdnode": "5.0.5", 1076 | "@ethersproject/json-wallets": "5.0.7", 1077 | "@ethersproject/keccak256": "5.0.4", 1078 | "@ethersproject/logger": "5.0.6", 1079 | "@ethersproject/networks": "5.0.4", 1080 | "@ethersproject/pbkdf2": "5.0.4", 1081 | "@ethersproject/properties": "5.0.4", 1082 | "@ethersproject/providers": "5.0.14", 1083 | "@ethersproject/random": "5.0.4", 1084 | "@ethersproject/rlp": "5.0.4", 1085 | "@ethersproject/sha2": "5.0.4", 1086 | "@ethersproject/signing-key": "5.0.5", 1087 | "@ethersproject/solidity": "5.0.5", 1088 | "@ethersproject/strings": "5.0.5", 1089 | "@ethersproject/transactions": "5.0.6", 1090 | "@ethersproject/units": "5.0.6", 1091 | "@ethersproject/wallet": "5.0.7", 1092 | "@ethersproject/web": "5.0.9", 1093 | "@ethersproject/wordlists": "5.0.5" 1094 | } 1095 | }, 1096 | "ethjs-util": { 1097 | "version": "0.1.6", 1098 | "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz", 1099 | "integrity": "sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==", 1100 | "requires": { 1101 | "is-hex-prefixed": "1.0.0", 1102 | "strip-hex-prefix": "1.0.0" 1103 | } 1104 | }, 1105 | "evp_bytestokey": { 1106 | "version": "1.0.3", 1107 | "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", 1108 | "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", 1109 | "requires": { 1110 | "md5.js": "^1.3.4", 1111 | "safe-buffer": "^5.1.1" 1112 | } 1113 | }, 1114 | "express": { 1115 | "version": "4.17.1", 1116 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 1117 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 1118 | "requires": { 1119 | "accepts": "~1.3.7", 1120 | "array-flatten": "1.1.1", 1121 | "body-parser": "1.19.0", 1122 | "content-disposition": "0.5.3", 1123 | "content-type": "~1.0.4", 1124 | "cookie": "0.4.0", 1125 | "cookie-signature": "1.0.6", 1126 | "debug": "2.6.9", 1127 | "depd": "~1.1.2", 1128 | "encodeurl": "~1.0.2", 1129 | "escape-html": "~1.0.3", 1130 | "etag": "~1.8.1", 1131 | "finalhandler": "~1.1.2", 1132 | "fresh": "0.5.2", 1133 | "merge-descriptors": "1.0.1", 1134 | "methods": "~1.1.2", 1135 | "on-finished": "~2.3.0", 1136 | "parseurl": "~1.3.3", 1137 | "path-to-regexp": "0.1.7", 1138 | "proxy-addr": "~2.0.5", 1139 | "qs": "6.7.0", 1140 | "range-parser": "~1.2.1", 1141 | "safe-buffer": "5.1.2", 1142 | "send": "0.17.1", 1143 | "serve-static": "1.14.1", 1144 | "setprototypeof": "1.1.1", 1145 | "statuses": "~1.5.0", 1146 | "type-is": "~1.6.18", 1147 | "utils-merge": "1.0.1", 1148 | "vary": "~1.1.2" 1149 | }, 1150 | "dependencies": { 1151 | "debug": { 1152 | "version": "2.6.9", 1153 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1154 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1155 | "requires": { 1156 | "ms": "2.0.0" 1157 | } 1158 | }, 1159 | "ms": { 1160 | "version": "2.0.0", 1161 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1162 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1163 | }, 1164 | "safe-buffer": { 1165 | "version": "5.1.2", 1166 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1167 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1168 | } 1169 | } 1170 | }, 1171 | "extend": { 1172 | "version": "3.0.2", 1173 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 1174 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 1175 | }, 1176 | "extsprintf": { 1177 | "version": "1.3.0", 1178 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 1179 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 1180 | }, 1181 | "fast-deep-equal": { 1182 | "version": "3.1.3", 1183 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1184 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 1185 | }, 1186 | "fast-json-stable-stringify": { 1187 | "version": "2.1.0", 1188 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1189 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 1190 | }, 1191 | "fill-range": { 1192 | "version": "7.0.1", 1193 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1194 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1195 | "dev": true, 1196 | "requires": { 1197 | "to-regex-range": "^5.0.1" 1198 | } 1199 | }, 1200 | "finalhandler": { 1201 | "version": "1.1.2", 1202 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 1203 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 1204 | "requires": { 1205 | "debug": "2.6.9", 1206 | "encodeurl": "~1.0.2", 1207 | "escape-html": "~1.0.3", 1208 | "on-finished": "~2.3.0", 1209 | "parseurl": "~1.3.3", 1210 | "statuses": "~1.5.0", 1211 | "unpipe": "~1.0.0" 1212 | }, 1213 | "dependencies": { 1214 | "debug": { 1215 | "version": "2.6.9", 1216 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1217 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1218 | "requires": { 1219 | "ms": "2.0.0" 1220 | } 1221 | }, 1222 | "ms": { 1223 | "version": "2.0.0", 1224 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1225 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1226 | } 1227 | } 1228 | }, 1229 | "find-up": { 1230 | "version": "5.0.0", 1231 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1232 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1233 | "dev": true, 1234 | "requires": { 1235 | "locate-path": "^6.0.0", 1236 | "path-exists": "^4.0.0" 1237 | } 1238 | }, 1239 | "flat": { 1240 | "version": "5.0.2", 1241 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 1242 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 1243 | "dev": true 1244 | }, 1245 | "forever-agent": { 1246 | "version": "0.6.1", 1247 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 1248 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 1249 | }, 1250 | "form-data": { 1251 | "version": "2.3.3", 1252 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 1253 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 1254 | "requires": { 1255 | "asynckit": "^0.4.0", 1256 | "combined-stream": "^1.0.6", 1257 | "mime-types": "^2.1.12" 1258 | } 1259 | }, 1260 | "forwarded": { 1261 | "version": "0.1.2", 1262 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 1263 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 1264 | }, 1265 | "fresh": { 1266 | "version": "0.5.2", 1267 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 1268 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 1269 | }, 1270 | "fs.realpath": { 1271 | "version": "1.0.0", 1272 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1273 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 1274 | "dev": true 1275 | }, 1276 | "fsevents": { 1277 | "version": "2.1.3", 1278 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", 1279 | "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", 1280 | "dev": true, 1281 | "optional": true 1282 | }, 1283 | "get-caller-file": { 1284 | "version": "2.0.5", 1285 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1286 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1287 | "dev": true 1288 | }, 1289 | "getpass": { 1290 | "version": "0.1.7", 1291 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 1292 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 1293 | "requires": { 1294 | "assert-plus": "^1.0.0" 1295 | } 1296 | }, 1297 | "glob": { 1298 | "version": "7.1.6", 1299 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 1300 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 1301 | "dev": true, 1302 | "requires": { 1303 | "fs.realpath": "^1.0.0", 1304 | "inflight": "^1.0.4", 1305 | "inherits": "2", 1306 | "minimatch": "^3.0.4", 1307 | "once": "^1.3.0", 1308 | "path-is-absolute": "^1.0.0" 1309 | } 1310 | }, 1311 | "glob-parent": { 1312 | "version": "5.1.1", 1313 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 1314 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 1315 | "dev": true, 1316 | "requires": { 1317 | "is-glob": "^4.0.1" 1318 | } 1319 | }, 1320 | "global": { 1321 | "version": "4.4.0", 1322 | "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", 1323 | "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", 1324 | "requires": { 1325 | "min-document": "^2.19.0", 1326 | "process": "^0.11.10" 1327 | } 1328 | }, 1329 | "growl": { 1330 | "version": "1.10.5", 1331 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 1332 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 1333 | "dev": true 1334 | }, 1335 | "har-schema": { 1336 | "version": "2.0.0", 1337 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 1338 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 1339 | }, 1340 | "har-validator": { 1341 | "version": "5.1.5", 1342 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", 1343 | "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", 1344 | "requires": { 1345 | "ajv": "^6.12.3", 1346 | "har-schema": "^2.0.0" 1347 | } 1348 | }, 1349 | "has-flag": { 1350 | "version": "4.0.0", 1351 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1352 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1353 | "dev": true 1354 | }, 1355 | "hash-base": { 1356 | "version": "3.1.0", 1357 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", 1358 | "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", 1359 | "requires": { 1360 | "inherits": "^2.0.4", 1361 | "readable-stream": "^3.6.0", 1362 | "safe-buffer": "^5.2.0" 1363 | } 1364 | }, 1365 | "hash.js": { 1366 | "version": "1.1.7", 1367 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", 1368 | "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", 1369 | "requires": { 1370 | "inherits": "^2.0.3", 1371 | "minimalistic-assert": "^1.0.1" 1372 | } 1373 | }, 1374 | "he": { 1375 | "version": "1.2.0", 1376 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1377 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1378 | "dev": true 1379 | }, 1380 | "hmac-drbg": { 1381 | "version": "1.0.1", 1382 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", 1383 | "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", 1384 | "requires": { 1385 | "hash.js": "^1.0.3", 1386 | "minimalistic-assert": "^1.0.0", 1387 | "minimalistic-crypto-utils": "^1.0.1" 1388 | } 1389 | }, 1390 | "http-errors": { 1391 | "version": "1.7.2", 1392 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 1393 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 1394 | "requires": { 1395 | "depd": "~1.1.2", 1396 | "inherits": "2.0.3", 1397 | "setprototypeof": "1.1.1", 1398 | "statuses": ">= 1.5.0 < 2", 1399 | "toidentifier": "1.0.0" 1400 | }, 1401 | "dependencies": { 1402 | "inherits": { 1403 | "version": "2.0.3", 1404 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1405 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1406 | } 1407 | } 1408 | }, 1409 | "http-signature": { 1410 | "version": "1.2.0", 1411 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 1412 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 1413 | "requires": { 1414 | "assert-plus": "^1.0.0", 1415 | "jsprim": "^1.2.2", 1416 | "sshpk": "^1.7.0" 1417 | } 1418 | }, 1419 | "iconv-lite": { 1420 | "version": "0.4.24", 1421 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1422 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1423 | "requires": { 1424 | "safer-buffer": ">= 2.1.2 < 3" 1425 | } 1426 | }, 1427 | "inflight": { 1428 | "version": "1.0.6", 1429 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1430 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1431 | "dev": true, 1432 | "requires": { 1433 | "once": "^1.3.0", 1434 | "wrappy": "1" 1435 | } 1436 | }, 1437 | "inherits": { 1438 | "version": "2.0.4", 1439 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1440 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1441 | }, 1442 | "ipaddr.js": { 1443 | "version": "1.9.1", 1444 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1445 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 1446 | }, 1447 | "is-binary-path": { 1448 | "version": "2.1.0", 1449 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1450 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1451 | "dev": true, 1452 | "requires": { 1453 | "binary-extensions": "^2.0.0" 1454 | } 1455 | }, 1456 | "is-extglob": { 1457 | "version": "2.1.1", 1458 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1459 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 1460 | "dev": true 1461 | }, 1462 | "is-fullwidth-code-point": { 1463 | "version": "2.0.0", 1464 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1465 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1466 | "dev": true 1467 | }, 1468 | "is-function": { 1469 | "version": "1.0.2", 1470 | "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz", 1471 | "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==" 1472 | }, 1473 | "is-glob": { 1474 | "version": "4.0.1", 1475 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 1476 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 1477 | "dev": true, 1478 | "requires": { 1479 | "is-extglob": "^2.1.1" 1480 | } 1481 | }, 1482 | "is-hex-prefixed": { 1483 | "version": "1.0.0", 1484 | "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", 1485 | "integrity": "sha1-fY035q135dEnFIkTxXPggtd39VQ=" 1486 | }, 1487 | "is-number": { 1488 | "version": "7.0.0", 1489 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1490 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1491 | "dev": true 1492 | }, 1493 | "is-plain-obj": { 1494 | "version": "2.1.0", 1495 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 1496 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 1497 | "dev": true 1498 | }, 1499 | "is-typedarray": { 1500 | "version": "1.0.0", 1501 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1502 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 1503 | }, 1504 | "isexe": { 1505 | "version": "2.0.0", 1506 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1507 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1508 | "dev": true 1509 | }, 1510 | "isstream": { 1511 | "version": "0.1.2", 1512 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1513 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 1514 | }, 1515 | "js-sha3": { 1516 | "version": "0.5.7", 1517 | "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", 1518 | "integrity": "sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=" 1519 | }, 1520 | "js-yaml": { 1521 | "version": "3.14.0", 1522 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", 1523 | "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", 1524 | "dev": true, 1525 | "requires": { 1526 | "argparse": "^1.0.7", 1527 | "esprima": "^4.0.0" 1528 | } 1529 | }, 1530 | "jsbn": { 1531 | "version": "0.1.1", 1532 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1533 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" 1534 | }, 1535 | "json-schema": { 1536 | "version": "0.2.3", 1537 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1538 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 1539 | }, 1540 | "json-schema-traverse": { 1541 | "version": "0.4.1", 1542 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1543 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 1544 | }, 1545 | "json-stringify-safe": { 1546 | "version": "5.0.1", 1547 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1548 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 1549 | }, 1550 | "jsprim": { 1551 | "version": "1.4.1", 1552 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1553 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1554 | "requires": { 1555 | "assert-plus": "1.0.0", 1556 | "extsprintf": "1.3.0", 1557 | "json-schema": "0.2.3", 1558 | "verror": "1.10.0" 1559 | } 1560 | }, 1561 | "keccak": { 1562 | "version": "3.0.1", 1563 | "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.1.tgz", 1564 | "integrity": "sha512-epq90L9jlFWCW7+pQa6JOnKn2Xgl2mtI664seYR6MHskvI9agt7AnDqmAlp9TqU4/caMYbA08Hi5DMZAl5zdkA==", 1565 | "requires": { 1566 | "node-addon-api": "^2.0.0", 1567 | "node-gyp-build": "^4.2.0" 1568 | } 1569 | }, 1570 | "locate-path": { 1571 | "version": "6.0.0", 1572 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1573 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1574 | "dev": true, 1575 | "requires": { 1576 | "p-locate": "^5.0.0" 1577 | } 1578 | }, 1579 | "log-symbols": { 1580 | "version": "4.0.0", 1581 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", 1582 | "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", 1583 | "dev": true, 1584 | "requires": { 1585 | "chalk": "^4.0.0" 1586 | } 1587 | }, 1588 | "md5.js": { 1589 | "version": "1.3.5", 1590 | "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", 1591 | "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", 1592 | "requires": { 1593 | "hash-base": "^3.0.0", 1594 | "inherits": "^2.0.1", 1595 | "safe-buffer": "^5.1.2" 1596 | } 1597 | }, 1598 | "media-typer": { 1599 | "version": "0.3.0", 1600 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1601 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1602 | }, 1603 | "merge-descriptors": { 1604 | "version": "1.0.1", 1605 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1606 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1607 | }, 1608 | "methods": { 1609 | "version": "1.1.2", 1610 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1611 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1612 | }, 1613 | "mime": { 1614 | "version": "1.6.0", 1615 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1616 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1617 | }, 1618 | "mime-db": { 1619 | "version": "1.44.0", 1620 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 1621 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 1622 | }, 1623 | "mime-types": { 1624 | "version": "2.1.27", 1625 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 1626 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 1627 | "requires": { 1628 | "mime-db": "1.44.0" 1629 | } 1630 | }, 1631 | "mimic-response": { 1632 | "version": "1.0.1", 1633 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 1634 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 1635 | }, 1636 | "min-document": { 1637 | "version": "2.19.0", 1638 | "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", 1639 | "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=", 1640 | "requires": { 1641 | "dom-walk": "^0.1.0" 1642 | } 1643 | }, 1644 | "minimalistic-assert": { 1645 | "version": "1.0.1", 1646 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 1647 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" 1648 | }, 1649 | "minimalistic-crypto-utils": { 1650 | "version": "1.0.1", 1651 | "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", 1652 | "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" 1653 | }, 1654 | "minimatch": { 1655 | "version": "3.0.4", 1656 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1657 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1658 | "dev": true, 1659 | "requires": { 1660 | "brace-expansion": "^1.1.7" 1661 | } 1662 | }, 1663 | "mocha": { 1664 | "version": "8.2.1", 1665 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.2.1.tgz", 1666 | "integrity": "sha512-cuLBVfyFfFqbNR0uUKbDGXKGk+UDFe6aR4os78XIrMQpZl/nv7JYHcvP5MFIAb374b2zFXsdgEGwmzMtP0Xg8w==", 1667 | "dev": true, 1668 | "requires": { 1669 | "@ungap/promise-all-settled": "1.1.2", 1670 | "ansi-colors": "4.1.1", 1671 | "browser-stdout": "1.3.1", 1672 | "chokidar": "3.4.3", 1673 | "debug": "4.2.0", 1674 | "diff": "4.0.2", 1675 | "escape-string-regexp": "4.0.0", 1676 | "find-up": "5.0.0", 1677 | "glob": "7.1.6", 1678 | "growl": "1.10.5", 1679 | "he": "1.2.0", 1680 | "js-yaml": "3.14.0", 1681 | "log-symbols": "4.0.0", 1682 | "minimatch": "3.0.4", 1683 | "ms": "2.1.2", 1684 | "nanoid": "3.1.12", 1685 | "serialize-javascript": "5.0.1", 1686 | "strip-json-comments": "3.1.1", 1687 | "supports-color": "7.2.0", 1688 | "which": "2.0.2", 1689 | "wide-align": "1.1.3", 1690 | "workerpool": "6.0.2", 1691 | "yargs": "13.3.2", 1692 | "yargs-parser": "13.1.2", 1693 | "yargs-unparser": "2.0.0" 1694 | } 1695 | }, 1696 | "ms": { 1697 | "version": "2.1.2", 1698 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1699 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1700 | "dev": true 1701 | }, 1702 | "nano-json-stream-parser": { 1703 | "version": "0.1.2", 1704 | "resolved": "https://registry.npmjs.org/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz", 1705 | "integrity": "sha1-DMj20OK2IrR5xA1JnEbWS3Vcb18=" 1706 | }, 1707 | "nanoid": { 1708 | "version": "3.1.12", 1709 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.12.tgz", 1710 | "integrity": "sha512-1qstj9z5+x491jfiC4Nelk+f8XBad7LN20PmyWINJEMRSf3wcAjAWysw1qaA8z6NSKe2sjq1hRSDpBH5paCb6A==", 1711 | "dev": true 1712 | }, 1713 | "negotiator": { 1714 | "version": "0.6.2", 1715 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1716 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1717 | }, 1718 | "node-addon-api": { 1719 | "version": "2.0.2", 1720 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", 1721 | "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" 1722 | }, 1723 | "node-gyp-build": { 1724 | "version": "4.2.3", 1725 | "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.2.3.tgz", 1726 | "integrity": "sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg==" 1727 | }, 1728 | "normalize-path": { 1729 | "version": "3.0.0", 1730 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1731 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1732 | "dev": true 1733 | }, 1734 | "oauth-sign": { 1735 | "version": "0.9.0", 1736 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 1737 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 1738 | }, 1739 | "object-assign": { 1740 | "version": "4.1.1", 1741 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1742 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1743 | }, 1744 | "on-finished": { 1745 | "version": "2.3.0", 1746 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1747 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1748 | "requires": { 1749 | "ee-first": "1.1.1" 1750 | } 1751 | }, 1752 | "once": { 1753 | "version": "1.4.0", 1754 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1755 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1756 | "requires": { 1757 | "wrappy": "1" 1758 | } 1759 | }, 1760 | "p-limit": { 1761 | "version": "3.0.2", 1762 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.0.2.tgz", 1763 | "integrity": "sha512-iwqZSOoWIW+Ew4kAGUlN16J4M7OB3ysMLSZtnhmqx7njIHFPlxWBX8xo3lVTyFVq6mI/lL9qt2IsN1sHwaxJkg==", 1764 | "dev": true, 1765 | "requires": { 1766 | "p-try": "^2.0.0" 1767 | } 1768 | }, 1769 | "p-locate": { 1770 | "version": "5.0.0", 1771 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1772 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1773 | "dev": true, 1774 | "requires": { 1775 | "p-limit": "^3.0.2" 1776 | } 1777 | }, 1778 | "p-try": { 1779 | "version": "2.2.0", 1780 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1781 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 1782 | "dev": true 1783 | }, 1784 | "parse-headers": { 1785 | "version": "2.0.3", 1786 | "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.3.tgz", 1787 | "integrity": "sha512-QhhZ+DCCit2Coi2vmAKbq5RGTRcQUOE2+REgv8vdyu7MnYx2eZztegqtTx99TZ86GTIwqiy3+4nQTWZ2tgmdCA==" 1788 | }, 1789 | "parseurl": { 1790 | "version": "1.3.3", 1791 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1792 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1793 | }, 1794 | "path-exists": { 1795 | "version": "4.0.0", 1796 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1797 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1798 | "dev": true 1799 | }, 1800 | "path-is-absolute": { 1801 | "version": "1.0.1", 1802 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1803 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1804 | "dev": true 1805 | }, 1806 | "path-to-regexp": { 1807 | "version": "0.1.7", 1808 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1809 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1810 | }, 1811 | "pbkdf2": { 1812 | "version": "3.1.1", 1813 | "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.1.tgz", 1814 | "integrity": "sha512-4Ejy1OPxi9f2tt1rRV7Go7zmfDQ+ZectEQz3VGUQhgq62HtIRPDyG/JtnwIxs6x3uNMwo2V7q1fMvKjb+Tnpqg==", 1815 | "requires": { 1816 | "create-hash": "^1.1.2", 1817 | "create-hmac": "^1.1.4", 1818 | "ripemd160": "^2.0.1", 1819 | "safe-buffer": "^5.0.1", 1820 | "sha.js": "^2.4.8" 1821 | } 1822 | }, 1823 | "performance-now": { 1824 | "version": "2.1.0", 1825 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 1826 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 1827 | }, 1828 | "picomatch": { 1829 | "version": "2.2.2", 1830 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 1831 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", 1832 | "dev": true 1833 | }, 1834 | "process": { 1835 | "version": "0.11.10", 1836 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 1837 | "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" 1838 | }, 1839 | "proxy-addr": { 1840 | "version": "2.0.6", 1841 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1842 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1843 | "requires": { 1844 | "forwarded": "~0.1.2", 1845 | "ipaddr.js": "1.9.1" 1846 | } 1847 | }, 1848 | "psl": { 1849 | "version": "1.8.0", 1850 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", 1851 | "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" 1852 | }, 1853 | "punycode": { 1854 | "version": "2.1.1", 1855 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1856 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 1857 | }, 1858 | "qs": { 1859 | "version": "6.7.0", 1860 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1861 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1862 | }, 1863 | "query-string": { 1864 | "version": "5.1.1", 1865 | "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", 1866 | "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", 1867 | "requires": { 1868 | "decode-uri-component": "^0.2.0", 1869 | "object-assign": "^4.1.0", 1870 | "strict-uri-encode": "^1.0.0" 1871 | } 1872 | }, 1873 | "randombytes": { 1874 | "version": "2.1.0", 1875 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1876 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1877 | "requires": { 1878 | "safe-buffer": "^5.1.0" 1879 | } 1880 | }, 1881 | "range-parser": { 1882 | "version": "1.2.1", 1883 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1884 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1885 | }, 1886 | "raw-body": { 1887 | "version": "2.4.0", 1888 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1889 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1890 | "requires": { 1891 | "bytes": "3.1.0", 1892 | "http-errors": "1.7.2", 1893 | "iconv-lite": "0.4.24", 1894 | "unpipe": "1.0.0" 1895 | } 1896 | }, 1897 | "readable-stream": { 1898 | "version": "3.6.0", 1899 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1900 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1901 | "requires": { 1902 | "inherits": "^2.0.3", 1903 | "string_decoder": "^1.1.1", 1904 | "util-deprecate": "^1.0.1" 1905 | } 1906 | }, 1907 | "readdirp": { 1908 | "version": "3.5.0", 1909 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", 1910 | "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", 1911 | "dev": true, 1912 | "requires": { 1913 | "picomatch": "^2.2.1" 1914 | } 1915 | }, 1916 | "request": { 1917 | "version": "2.88.2", 1918 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", 1919 | "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", 1920 | "requires": { 1921 | "aws-sign2": "~0.7.0", 1922 | "aws4": "^1.8.0", 1923 | "caseless": "~0.12.0", 1924 | "combined-stream": "~1.0.6", 1925 | "extend": "~3.0.2", 1926 | "forever-agent": "~0.6.1", 1927 | "form-data": "~2.3.2", 1928 | "har-validator": "~5.1.3", 1929 | "http-signature": "~1.2.0", 1930 | "is-typedarray": "~1.0.0", 1931 | "isstream": "~0.1.2", 1932 | "json-stringify-safe": "~5.0.1", 1933 | "mime-types": "~2.1.19", 1934 | "oauth-sign": "~0.9.0", 1935 | "performance-now": "^2.1.0", 1936 | "qs": "~6.5.2", 1937 | "safe-buffer": "^5.1.2", 1938 | "tough-cookie": "~2.5.0", 1939 | "tunnel-agent": "^0.6.0", 1940 | "uuid": "^3.3.2" 1941 | }, 1942 | "dependencies": { 1943 | "qs": { 1944 | "version": "6.5.2", 1945 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 1946 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 1947 | } 1948 | } 1949 | }, 1950 | "require-directory": { 1951 | "version": "2.1.1", 1952 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1953 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 1954 | "dev": true 1955 | }, 1956 | "require-main-filename": { 1957 | "version": "2.0.0", 1958 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 1959 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 1960 | "dev": true 1961 | }, 1962 | "ripemd160": { 1963 | "version": "2.0.2", 1964 | "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", 1965 | "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", 1966 | "requires": { 1967 | "hash-base": "^3.0.0", 1968 | "inherits": "^2.0.1" 1969 | } 1970 | }, 1971 | "rlp": { 1972 | "version": "2.2.6", 1973 | "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.6.tgz", 1974 | "integrity": "sha512-HAfAmL6SDYNWPUOJNrM500x4Thn4PZsEy5pijPh40U9WfNk0z15hUYzO9xVIMAdIHdFtD8CBDHd75Td1g36Mjg==", 1975 | "requires": { 1976 | "bn.js": "^4.11.1" 1977 | } 1978 | }, 1979 | "safe-buffer": { 1980 | "version": "5.2.1", 1981 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1982 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 1983 | }, 1984 | "safer-buffer": { 1985 | "version": "2.1.2", 1986 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1987 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1988 | }, 1989 | "scrypt-js": { 1990 | "version": "3.0.1", 1991 | "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", 1992 | "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==" 1993 | }, 1994 | "secp256k1": { 1995 | "version": "4.0.2", 1996 | "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.2.tgz", 1997 | "integrity": "sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg==", 1998 | "requires": { 1999 | "elliptic": "^6.5.2", 2000 | "node-addon-api": "^2.0.0", 2001 | "node-gyp-build": "^4.2.0" 2002 | } 2003 | }, 2004 | "send": { 2005 | "version": "0.17.1", 2006 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 2007 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 2008 | "requires": { 2009 | "debug": "2.6.9", 2010 | "depd": "~1.1.2", 2011 | "destroy": "~1.0.4", 2012 | "encodeurl": "~1.0.2", 2013 | "escape-html": "~1.0.3", 2014 | "etag": "~1.8.1", 2015 | "fresh": "0.5.2", 2016 | "http-errors": "~1.7.2", 2017 | "mime": "1.6.0", 2018 | "ms": "2.1.1", 2019 | "on-finished": "~2.3.0", 2020 | "range-parser": "~1.2.1", 2021 | "statuses": "~1.5.0" 2022 | }, 2023 | "dependencies": { 2024 | "debug": { 2025 | "version": "2.6.9", 2026 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 2027 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 2028 | "requires": { 2029 | "ms": "2.0.0" 2030 | }, 2031 | "dependencies": { 2032 | "ms": { 2033 | "version": "2.0.0", 2034 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2035 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 2036 | } 2037 | } 2038 | }, 2039 | "ms": { 2040 | "version": "2.1.1", 2041 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 2042 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 2043 | } 2044 | } 2045 | }, 2046 | "serialize-javascript": { 2047 | "version": "5.0.1", 2048 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", 2049 | "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", 2050 | "dev": true, 2051 | "requires": { 2052 | "randombytes": "^2.1.0" 2053 | } 2054 | }, 2055 | "serve-static": { 2056 | "version": "1.14.1", 2057 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 2058 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 2059 | "requires": { 2060 | "encodeurl": "~1.0.2", 2061 | "escape-html": "~1.0.3", 2062 | "parseurl": "~1.3.3", 2063 | "send": "0.17.1" 2064 | } 2065 | }, 2066 | "servify": { 2067 | "version": "0.1.12", 2068 | "resolved": "https://registry.npmjs.org/servify/-/servify-0.1.12.tgz", 2069 | "integrity": "sha512-/xE6GvsKKqyo1BAY+KxOWXcLpPsUUyji7Qg3bVD7hh1eRze5bR1uYiuDA/k3Gof1s9BTzQZEJK8sNcNGFIzeWw==", 2070 | "requires": { 2071 | "body-parser": "^1.16.0", 2072 | "cors": "^2.8.1", 2073 | "express": "^4.14.0", 2074 | "request": "^2.79.0", 2075 | "xhr": "^2.3.3" 2076 | } 2077 | }, 2078 | "set-blocking": { 2079 | "version": "2.0.0", 2080 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2081 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 2082 | "dev": true 2083 | }, 2084 | "setimmediate": { 2085 | "version": "1.0.5", 2086 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 2087 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" 2088 | }, 2089 | "setprototypeof": { 2090 | "version": "1.1.1", 2091 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 2092 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 2093 | }, 2094 | "sha.js": { 2095 | "version": "2.4.11", 2096 | "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", 2097 | "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", 2098 | "requires": { 2099 | "inherits": "^2.0.1", 2100 | "safe-buffer": "^5.0.1" 2101 | } 2102 | }, 2103 | "simple-concat": { 2104 | "version": "1.0.1", 2105 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", 2106 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==" 2107 | }, 2108 | "simple-get": { 2109 | "version": "2.8.1", 2110 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-2.8.1.tgz", 2111 | "integrity": "sha512-lSSHRSw3mQNUGPAYRqo7xy9dhKmxFXIjLjp4KHpf99GEH2VH7C3AM+Qfx6du6jhfUi6Vm7XnbEVEf7Wb6N8jRw==", 2112 | "requires": { 2113 | "decompress-response": "^3.3.0", 2114 | "once": "^1.3.1", 2115 | "simple-concat": "^1.0.0" 2116 | } 2117 | }, 2118 | "sprintf-js": { 2119 | "version": "1.0.3", 2120 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2121 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 2122 | "dev": true 2123 | }, 2124 | "sshpk": { 2125 | "version": "1.16.1", 2126 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 2127 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 2128 | "requires": { 2129 | "asn1": "~0.2.3", 2130 | "assert-plus": "^1.0.0", 2131 | "bcrypt-pbkdf": "^1.0.0", 2132 | "dashdash": "^1.12.0", 2133 | "ecc-jsbn": "~0.1.1", 2134 | "getpass": "^0.1.1", 2135 | "jsbn": "~0.1.0", 2136 | "safer-buffer": "^2.0.2", 2137 | "tweetnacl": "~0.14.0" 2138 | } 2139 | }, 2140 | "statuses": { 2141 | "version": "1.5.0", 2142 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2143 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 2144 | }, 2145 | "strict-uri-encode": { 2146 | "version": "1.1.0", 2147 | "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", 2148 | "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=" 2149 | }, 2150 | "string-width": { 2151 | "version": "2.1.1", 2152 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2153 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2154 | "dev": true, 2155 | "requires": { 2156 | "is-fullwidth-code-point": "^2.0.0", 2157 | "strip-ansi": "^4.0.0" 2158 | } 2159 | }, 2160 | "string_decoder": { 2161 | "version": "1.3.0", 2162 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 2163 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 2164 | "requires": { 2165 | "safe-buffer": "~5.2.0" 2166 | } 2167 | }, 2168 | "strip-ansi": { 2169 | "version": "4.0.0", 2170 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2171 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2172 | "dev": true, 2173 | "requires": { 2174 | "ansi-regex": "^3.0.0" 2175 | } 2176 | }, 2177 | "strip-hex-prefix": { 2178 | "version": "1.0.0", 2179 | "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", 2180 | "integrity": "sha1-DF8VX+8RUTczd96du1iNoFUA428=", 2181 | "requires": { 2182 | "is-hex-prefixed": "1.0.0" 2183 | } 2184 | }, 2185 | "strip-json-comments": { 2186 | "version": "3.1.1", 2187 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2188 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2189 | "dev": true 2190 | }, 2191 | "supports-color": { 2192 | "version": "7.2.0", 2193 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2194 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2195 | "dev": true, 2196 | "requires": { 2197 | "has-flag": "^4.0.0" 2198 | } 2199 | }, 2200 | "timed-out": { 2201 | "version": "4.0.1", 2202 | "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", 2203 | "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" 2204 | }, 2205 | "to-regex-range": { 2206 | "version": "5.0.1", 2207 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2208 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2209 | "dev": true, 2210 | "requires": { 2211 | "is-number": "^7.0.0" 2212 | } 2213 | }, 2214 | "toidentifier": { 2215 | "version": "1.0.0", 2216 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 2217 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 2218 | }, 2219 | "tough-cookie": { 2220 | "version": "2.5.0", 2221 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", 2222 | "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", 2223 | "requires": { 2224 | "psl": "^1.1.28", 2225 | "punycode": "^2.1.1" 2226 | } 2227 | }, 2228 | "tunnel-agent": { 2229 | "version": "0.6.0", 2230 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 2231 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 2232 | "requires": { 2233 | "safe-buffer": "^5.0.1" 2234 | } 2235 | }, 2236 | "tweetnacl": { 2237 | "version": "0.14.5", 2238 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 2239 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" 2240 | }, 2241 | "type-is": { 2242 | "version": "1.6.18", 2243 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2244 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2245 | "requires": { 2246 | "media-typer": "0.3.0", 2247 | "mime-types": "~2.1.24" 2248 | } 2249 | }, 2250 | "ultron": { 2251 | "version": "1.1.1", 2252 | "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", 2253 | "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" 2254 | }, 2255 | "unpipe": { 2256 | "version": "1.0.0", 2257 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2258 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2259 | }, 2260 | "uri-js": { 2261 | "version": "4.4.0", 2262 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz", 2263 | "integrity": "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==", 2264 | "requires": { 2265 | "punycode": "^2.1.0" 2266 | } 2267 | }, 2268 | "url-set-query": { 2269 | "version": "1.0.0", 2270 | "resolved": "https://registry.npmjs.org/url-set-query/-/url-set-query-1.0.0.tgz", 2271 | "integrity": "sha1-AW6M/Xwg7gXK/neV6JK9BwL6ozk=" 2272 | }, 2273 | "util-deprecate": { 2274 | "version": "1.0.2", 2275 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2276 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2277 | }, 2278 | "utils-merge": { 2279 | "version": "1.0.1", 2280 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2281 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2282 | }, 2283 | "uuid": { 2284 | "version": "3.4.0", 2285 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 2286 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" 2287 | }, 2288 | "vary": { 2289 | "version": "1.1.2", 2290 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2291 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2292 | }, 2293 | "verror": { 2294 | "version": "1.10.0", 2295 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 2296 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 2297 | "requires": { 2298 | "assert-plus": "^1.0.0", 2299 | "core-util-is": "1.0.2", 2300 | "extsprintf": "^1.2.0" 2301 | } 2302 | }, 2303 | "which": { 2304 | "version": "2.0.2", 2305 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2306 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2307 | "dev": true, 2308 | "requires": { 2309 | "isexe": "^2.0.0" 2310 | } 2311 | }, 2312 | "which-module": { 2313 | "version": "2.0.0", 2314 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 2315 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 2316 | "dev": true 2317 | }, 2318 | "wide-align": { 2319 | "version": "1.1.3", 2320 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 2321 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 2322 | "dev": true, 2323 | "requires": { 2324 | "string-width": "^1.0.2 || 2" 2325 | } 2326 | }, 2327 | "workerpool": { 2328 | "version": "6.0.2", 2329 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.0.2.tgz", 2330 | "integrity": "sha512-DSNyvOpFKrNusaaUwk+ej6cBj1bmhLcBfj80elGk+ZIo5JSkq+unB1dLKEOcNfJDZgjGICfhQ0Q5TbP0PvF4+Q==", 2331 | "dev": true 2332 | }, 2333 | "wrap-ansi": { 2334 | "version": "5.1.0", 2335 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", 2336 | "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", 2337 | "dev": true, 2338 | "requires": { 2339 | "ansi-styles": "^3.2.0", 2340 | "string-width": "^3.0.0", 2341 | "strip-ansi": "^5.0.0" 2342 | }, 2343 | "dependencies": { 2344 | "ansi-regex": { 2345 | "version": "4.1.0", 2346 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2347 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2348 | "dev": true 2349 | }, 2350 | "ansi-styles": { 2351 | "version": "3.2.1", 2352 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 2353 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 2354 | "dev": true, 2355 | "requires": { 2356 | "color-convert": "^1.9.0" 2357 | } 2358 | }, 2359 | "color-convert": { 2360 | "version": "1.9.3", 2361 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 2362 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 2363 | "dev": true, 2364 | "requires": { 2365 | "color-name": "1.1.3" 2366 | } 2367 | }, 2368 | "color-name": { 2369 | "version": "1.1.3", 2370 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 2371 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 2372 | "dev": true 2373 | }, 2374 | "string-width": { 2375 | "version": "3.1.0", 2376 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2377 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2378 | "dev": true, 2379 | "requires": { 2380 | "emoji-regex": "^7.0.1", 2381 | "is-fullwidth-code-point": "^2.0.0", 2382 | "strip-ansi": "^5.1.0" 2383 | } 2384 | }, 2385 | "strip-ansi": { 2386 | "version": "5.2.0", 2387 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2388 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2389 | "dev": true, 2390 | "requires": { 2391 | "ansi-regex": "^4.1.0" 2392 | } 2393 | } 2394 | } 2395 | }, 2396 | "wrappy": { 2397 | "version": "1.0.2", 2398 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2399 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 2400 | }, 2401 | "ws": { 2402 | "version": "7.2.3", 2403 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.2.3.tgz", 2404 | "integrity": "sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ==" 2405 | }, 2406 | "xhr": { 2407 | "version": "2.6.0", 2408 | "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz", 2409 | "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==", 2410 | "requires": { 2411 | "global": "~4.4.0", 2412 | "is-function": "^1.0.1", 2413 | "parse-headers": "^2.0.0", 2414 | "xtend": "^4.0.0" 2415 | } 2416 | }, 2417 | "xhr-request": { 2418 | "version": "1.1.0", 2419 | "resolved": "https://registry.npmjs.org/xhr-request/-/xhr-request-1.1.0.tgz", 2420 | "integrity": "sha512-Y7qzEaR3FDtL3fP30k9wO/e+FBnBByZeybKOhASsGP30NIkRAAkKD/sCnLvgEfAIEC1rcmK7YG8f4oEnIrrWzA==", 2421 | "requires": { 2422 | "buffer-to-arraybuffer": "^0.0.5", 2423 | "object-assign": "^4.1.1", 2424 | "query-string": "^5.0.1", 2425 | "simple-get": "^2.7.0", 2426 | "timed-out": "^4.0.1", 2427 | "url-set-query": "^1.0.0", 2428 | "xhr": "^2.0.4" 2429 | } 2430 | }, 2431 | "xhr-request-promise": { 2432 | "version": "0.1.3", 2433 | "resolved": "https://registry.npmjs.org/xhr-request-promise/-/xhr-request-promise-0.1.3.tgz", 2434 | "integrity": "sha512-YUBytBsuwgitWtdRzXDDkWAXzhdGB8bYm0sSzMPZT7Z2MBjMSTHFsyCT1yCRATY+XC69DUrQraRAEgcoCRaIPg==", 2435 | "requires": { 2436 | "xhr-request": "^1.1.0" 2437 | } 2438 | }, 2439 | "xtend": { 2440 | "version": "4.0.2", 2441 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 2442 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" 2443 | }, 2444 | "y18n": { 2445 | "version": "4.0.0", 2446 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", 2447 | "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", 2448 | "dev": true 2449 | }, 2450 | "yargs": { 2451 | "version": "13.3.2", 2452 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", 2453 | "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", 2454 | "dev": true, 2455 | "requires": { 2456 | "cliui": "^5.0.0", 2457 | "find-up": "^3.0.0", 2458 | "get-caller-file": "^2.0.1", 2459 | "require-directory": "^2.1.1", 2460 | "require-main-filename": "^2.0.0", 2461 | "set-blocking": "^2.0.0", 2462 | "string-width": "^3.0.0", 2463 | "which-module": "^2.0.0", 2464 | "y18n": "^4.0.0", 2465 | "yargs-parser": "^13.1.2" 2466 | }, 2467 | "dependencies": { 2468 | "ansi-regex": { 2469 | "version": "4.1.0", 2470 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2471 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2472 | "dev": true 2473 | }, 2474 | "find-up": { 2475 | "version": "3.0.0", 2476 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 2477 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 2478 | "dev": true, 2479 | "requires": { 2480 | "locate-path": "^3.0.0" 2481 | } 2482 | }, 2483 | "locate-path": { 2484 | "version": "3.0.0", 2485 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 2486 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 2487 | "dev": true, 2488 | "requires": { 2489 | "p-locate": "^3.0.0", 2490 | "path-exists": "^3.0.0" 2491 | } 2492 | }, 2493 | "p-limit": { 2494 | "version": "2.3.0", 2495 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 2496 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 2497 | "dev": true, 2498 | "requires": { 2499 | "p-try": "^2.0.0" 2500 | } 2501 | }, 2502 | "p-locate": { 2503 | "version": "3.0.0", 2504 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 2505 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 2506 | "dev": true, 2507 | "requires": { 2508 | "p-limit": "^2.0.0" 2509 | } 2510 | }, 2511 | "path-exists": { 2512 | "version": "3.0.0", 2513 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 2514 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 2515 | "dev": true 2516 | }, 2517 | "string-width": { 2518 | "version": "3.1.0", 2519 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2520 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2521 | "dev": true, 2522 | "requires": { 2523 | "emoji-regex": "^7.0.1", 2524 | "is-fullwidth-code-point": "^2.0.0", 2525 | "strip-ansi": "^5.1.0" 2526 | } 2527 | }, 2528 | "strip-ansi": { 2529 | "version": "5.2.0", 2530 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2531 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2532 | "dev": true, 2533 | "requires": { 2534 | "ansi-regex": "^4.1.0" 2535 | } 2536 | } 2537 | } 2538 | }, 2539 | "yargs-parser": { 2540 | "version": "13.1.2", 2541 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", 2542 | "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", 2543 | "dev": true, 2544 | "requires": { 2545 | "camelcase": "^5.0.0", 2546 | "decamelize": "^1.2.0" 2547 | } 2548 | }, 2549 | "yargs-unparser": { 2550 | "version": "2.0.0", 2551 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 2552 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 2553 | "dev": true, 2554 | "requires": { 2555 | "camelcase": "^6.0.0", 2556 | "decamelize": "^4.0.0", 2557 | "flat": "^5.0.2", 2558 | "is-plain-obj": "^2.1.0" 2559 | }, 2560 | "dependencies": { 2561 | "camelcase": { 2562 | "version": "6.2.0", 2563 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", 2564 | "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", 2565 | "dev": true 2566 | }, 2567 | "decamelize": { 2568 | "version": "4.0.0", 2569 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 2570 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 2571 | "dev": true 2572 | } 2573 | } 2574 | } 2575 | } 2576 | } 2577 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eth-deploy-crosschain", 3 | "description": "", 4 | "version": "1.0.1", 5 | "main": "src/index.js", 6 | "scripts": { 7 | "test": "mocha" 8 | }, 9 | "keywords": [ 10 | "ethereum", 11 | "create1", 12 | "nicks method", 13 | "deploy" 14 | ], 15 | "authors": [ 16 | { 17 | "name": "Fabian Vogelsteller", 18 | "email": "fabian@lukso.network", 19 | "homepage": "https://github.com/frozeman" 20 | } 21 | ], 22 | "bugs": { 23 | "url": "https://github.com/frozeman/eth-deploy-crosschain/issues" 24 | }, 25 | "homepage": "https://github.com/frozeman/eth-deploy-crosschain#readme", 26 | "license": "Apache-2.0", 27 | "dependencies": { 28 | "eth-lib": "^0.1.29", 29 | "ethereumjs-tx": "^2.1.2", 30 | "ethers": "^5.0.19" 31 | }, 32 | "devDependencies": { 33 | "mocha": "^8.2.1" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | const { signTransaction, recoverTransaction, calcContractAddress } = require('./signTx.js'); 2 | const { defaultAbiCoder } = require('ethers/lib/utils') 3 | 4 | 5 | const encodeParams = (dataTypes, data) => { 6 | return defaultAbiCoder.encode(dataTypes, data) 7 | } 8 | 9 | const buildBytecode = ( 10 | constructorTypes, 11 | constructorArgs, 12 | contractBytecode, 13 | ) => { 14 | return `${contractBytecode}${encodeParams(constructorTypes, constructorArgs).slice( 15 | 2, 16 | )}` 17 | } 18 | 19 | exports.generateCrossChainTransaction = (bytecode, options) => { 20 | let replaceablePrivateKey = '0x77d9e09cae3006158d1c6f4059e2ff61ca1e110b1c02094baad56ce7381e5f94'; 21 | let signatureReplacement = '1234123412341234123412341234123412341234123412341234123412341234'; 22 | 23 | if(!options) 24 | options = {}; 25 | 26 | // add constructor arguments, if given 27 | if(options.constructorArgs && options.constructorArgs.types && options.constructorArgs.params) { 28 | bytecode = buildBytecode(options.constructorArgs.types, options.constructorArgs.params, bytecode); 29 | } 30 | 31 | 32 | let signedTx = signTransaction({ 33 | data: bytecode, 34 | nonce: 0, 35 | value: options.value || 0, // default, 36 | gas: options.gas || 4000000, // default, 37 | gasPrice: options.gasPrice || '200000000000' // default 38 | }, replaceablePrivateKey) 39 | 40 | // change signature 41 | let r = 'a0' + signedTx.r.replace('0x', '') 42 | let s = 'a0' + signedTx.s.replace('0x', '') 43 | let v = signedTx.v.replace('0x', '') 44 | 45 | let rawTx = signedTx.rawTransaction.replace(r, '').replace(s, '') // remove r, s 46 | rawTx = rawTx.substr(0, rawTx.length - v.length) + '1b' // replace v with 27 (1b) 47 | rawTx = rawTx + 'a0' + signatureReplacement + 'a0' + signatureReplacement // add new r, s 48 | 49 | let deployerAddress = recoverTransaction(rawTx); 50 | 51 | return { 52 | deployerAddress: deployerAddress, 53 | contractAddress: calcContractAddress(deployerAddress), 54 | rawTransaction: rawTx 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/signTx.js: -------------------------------------------------------------------------------- 1 | const Transaction = require('ethereumjs-tx').Transaction; 2 | const { keccak256 } = require('ethers/lib/utils'); 3 | const RLP = require('eth-lib/lib/rlp');// jshint ignore:line 4 | const Account = require('eth-lib/lib/account'); 5 | const Bytes = require('eth-lib/lib/bytes');// jshint ignore:line 6 | const Hash = require('eth-lib/lib/hash'); 7 | const _txInputFormatter = function (options) { 8 | 9 | if (options.data && options.input) { 10 | throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.'); 11 | } 12 | 13 | if (!options.data && options.input) { 14 | options.data = options.input; 15 | delete options.input; 16 | } 17 | 18 | if (options.data && !options.data.startsWith('0x')) { 19 | options.data = '0x' + options.data; 20 | } 21 | 22 | // allow both 23 | if (options.gas || options.gasLimit) { 24 | options.gas = options.gas || options.gasLimit; 25 | } 26 | 27 | ['gasPrice', 'gas', 'value', 'nonce'].filter(function (key) { 28 | return options[key] !== undefined; 29 | }).forEach(function (key) { 30 | options[key] = '0x'+ Number(options[key]).toString(16); 31 | }); 32 | 33 | return options; 34 | }; 35 | 36 | module.exports = { 37 | calcContractAddress: function (sender){ 38 | return Account.toChecksum("0x" + keccak256(RLP.encode([sender, '0x'])).slice(12).substring(14)); 39 | }, 40 | recoverTransaction: function recoverTransaction(rawTx) { 41 | var values = RLP.decode(rawTx); 42 | var signature = Account.encodeSignature(values.slice(6, 9)); 43 | var recovery = Bytes.toNumber(values[6]); 44 | var extraData = recovery < 35 ? [] : [Bytes.fromNumber((recovery - 35) >> 1), '0x', '0x']; 45 | var signingData = values.slice(0, 6).concat(extraData); 46 | var signingDataHex = RLP.encode(signingData); 47 | return Account.recover(Hash.keccak256(signingDataHex), signature); 48 | }, 49 | signTransaction: function signTransaction(tx, privateKey) { 50 | let transactionOptions = {}; 51 | 52 | privateKey = privateKey.replace('0x',''); 53 | 54 | if (!tx) { 55 | throw new Error('No transaction object given!'); 56 | } 57 | 58 | function signed(tx) { 59 | 60 | try { 61 | let transaction = _txInputFormatter(tx); 62 | transaction.to = transaction.to || '0x'; 63 | transaction.data = transaction.data || '0x'; 64 | transaction.value = transaction.value ? '0x'+ Number(transaction.value).toString(16) : '0x'; 65 | transaction.gasLimit = transaction.gas; 66 | 67 | var ethTx = new Transaction(transaction, transactionOptions); 68 | 69 | ethTx.sign(Buffer.from(privateKey, 'hex')); 70 | 71 | var validationResult = ethTx.validate(true); 72 | 73 | if (validationResult !== '') { 74 | throw new Error('Signer Error: ' + validationResult); 75 | } 76 | 77 | var rlpEncoded = ethTx.serialize().toString('hex'); 78 | var rawTransaction = '0x' + rlpEncoded; 79 | var transactionHash = keccak256(rawTransaction); 80 | 81 | var result = { 82 | messageHash: '0x' + Buffer.from(ethTx.hash(false)).toString('hex'), 83 | v: '0x' + Buffer.from(ethTx.v).toString('hex'), 84 | r: '0x' + Buffer.from(ethTx.r).toString('hex'), 85 | s: '0x' + Buffer.from(ethTx.s).toString('hex'), 86 | rawTransaction: rawTransaction, 87 | transactionHash: transactionHash 88 | }; 89 | 90 | return result; 91 | 92 | } catch (e) { 93 | throw new Error(e); 94 | } 95 | } 96 | 97 | // Otherwise, get the missing info from the Ethereum Node 98 | return signed(tx); 99 | } 100 | }; 101 | -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- 1 | const assert = require('assert') 2 | const { generateCrossChainTransaction } = require('../src/index') 3 | 4 | const bytecode = '0x608060405234801561001057600080fd5b50610520806100206000396000f3fe6080604052600436106100345760003560e01c8063481286e61461003957806378065306146100be578063cdcb760a14610163575b600080fd5b34801561004557600080fd5b5061007c6004803603604081101561005c57600080fd5b810190808035906020019092919080359060200190929190505050610268565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100ca57600080fd5b50610121600480360360608110156100e157600080fd5b810190808035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061027d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102266004803603604081101561017957600080fd5b8101908080359060200190929190803590602001906401000000008111156101a057600080fd5b8201836020820111156101b257600080fd5b803590602001918460018302840111640100000000831117156101d457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610346565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600061027583833061027d565b905092915050565b60008060ff60f81b83868660405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018381526020018281526020019450505050506040516020818303038152906040528051906020012090508060001c9150509392505050565b60008060003490506000845114156103c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f437265617465323a2062797465636f6465206c656e677468206973207a65726f81525060200191505060405180910390fd5b8484516020860183f59150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610474576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f437265617465323a204661696c6564206f6e206465706c6f790000000000000081525060200191505060405180910390fd5b7fc16bb3dbd36917c7aa3e76b988c2cd35e74bb230a02fef61e7376d8b4bfaea778286604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a181925050509291505056fea26469706673582212208e45d684157bfc10076a3d284f8c3899cd5ecf31abade0a086223e0886a8a68164736f6c63430006010033' 5 | 6 | describe('calculate create 2', function() { 7 | it('generate using no constructor arguments', function() { 8 | assert.deepEqual(generateCrossChainTransaction(bytecode, { 9 | gas: 5000000, 10 | gasPrice: '200000000000' // 200 gWEI 11 | }), { 12 | deployerAddress: '0x2AB43B408C1062eF97Ff8F4b64f323981fcc3e71', 13 | contractAddress: '0x28D25E70819140daF65b724158D00c373D1a18ee', 14 | rawTransaction: '0xf9059380852e90edd000834c4b408080b90540608060405234801561001057600080fd5b50610520806100206000396000f3fe6080604052600436106100345760003560e01c8063481286e61461003957806378065306146100be578063cdcb760a14610163575b600080fd5b34801561004557600080fd5b5061007c6004803603604081101561005c57600080fd5b810190808035906020019092919080359060200190929190505050610268565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100ca57600080fd5b50610121600480360360608110156100e157600080fd5b810190808035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061027d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102266004803603604081101561017957600080fd5b8101908080359060200190929190803590602001906401000000008111156101a057600080fd5b8201836020820111156101b257600080fd5b803590602001918460018302840111640100000000831117156101d457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610346565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600061027583833061027d565b905092915050565b60008060ff60f81b83868660405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018381526020018281526020019450505050506040516020818303038152906040528051906020012090508060001c9150509392505050565b60008060003490506000845114156103c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f437265617465323a2062797465636f6465206c656e677468206973207a65726f81525060200191505060405180910390fd5b8484516020860183f59150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610474576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f437265617465323a204661696c6564206f6e206465706c6f790000000000000081525060200191505060405180910390fd5b7fc16bb3dbd36917c7aa3e76b988c2cd35e74bb230a02fef61e7376d8b4bfaea778286604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a181925050509291505056fea26469706673582212208e45d684157bfc10076a3d284f8c3899cd5ecf31abade0a086223e0886a8a68164736f6c634300060100331ba01234123412341234123412341234123412341234123412341234123412341234a01234123412341234123412341234123412341234123412341234123412341234' 15 | }) 16 | }) 17 | it('generate using no constructor arguments', function() { 18 | assert.deepEqual(generateCrossChainTransaction(bytecode, { 19 | // gas: 4z000000, default 4000000 20 | // gasPrice: '200000000000' // default 200 gWEI 21 | }), { 22 | deployerAddress: '0x3eD6Fc1234644C5E561A2F664b7bFD1E025E4fc5', 23 | contractAddress: '0x0c9b7b8Fc6131e78b5490f645be37b83202415ee', 24 | rawTransaction: '0xf9059380852e90edd000833d09008080b90540608060405234801561001057600080fd5b50610520806100206000396000f3fe6080604052600436106100345760003560e01c8063481286e61461003957806378065306146100be578063cdcb760a14610163575b600080fd5b34801561004557600080fd5b5061007c6004803603604081101561005c57600080fd5b810190808035906020019092919080359060200190929190505050610268565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100ca57600080fd5b50610121600480360360608110156100e157600080fd5b810190808035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061027d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102266004803603604081101561017957600080fd5b8101908080359060200190929190803590602001906401000000008111156101a057600080fd5b8201836020820111156101b257600080fd5b803590602001918460018302840111640100000000831117156101d457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610346565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600061027583833061027d565b905092915050565b60008060ff60f81b83868660405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018381526020018281526020019450505050506040516020818303038152906040528051906020012090508060001c9150509392505050565b60008060003490506000845114156103c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f437265617465323a2062797465636f6465206c656e677468206973207a65726f81525060200191505060405180910390fd5b8484516020860183f59150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610474576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f437265617465323a204661696c6564206f6e206465706c6f790000000000000081525060200191505060405180910390fd5b7fc16bb3dbd36917c7aa3e76b988c2cd35e74bb230a02fef61e7376d8b4bfaea778286604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a181925050509291505056fea26469706673582212208e45d684157bfc10076a3d284f8c3899cd5ecf31abade0a086223e0886a8a68164736f6c634300060100331ba01234123412341234123412341234123412341234123412341234123412341234a01234123412341234123412341234123412341234123412341234123412341234' 25 | }) 26 | }) 27 | }); 28 | 29 | --------------------------------------------------------------------------------