You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.1 KiB

Squashed 'libjsqrc/ethereumjs/' changes from 81bbe8c..d223ac0 d223ac0 Additional work on the JS stuff to make it more similar to Solidity. 113a380 Fix string outputs. Auto collapse for < 2 returns. fb34c6c Auto select call or transact depending on constness. 7869294 Fixes to ethereum.js and standard.js. 61a0158 Vanity addresses in AZ. Fixes to ethereum.js eth.flush() c01f0ae Merge commit 'b1971f46cce7d21be5f6277c9f8c406a0d195f78' into natspec 29fa57e natspec.js updated to use sync api 13f39af Merge commit '93fa6855afad7a7eb86e49efe384372a6060da35' into natspec 6c4432d Merge commit 'b32dedc5b54f853cf63bb2663c8bca6aa4272b0b' into natspec 375ca54 Merge commit '8e3ba3a4285cc7e902a018196b3849df56944dd0' into natspec d6a92b1 fixed natspec example 5e623f1 Merge commit 'cdd7af2a6e87363d0ff7d2528f9d9b521bf2ef20' into natspec ad8e92e Merge commit 'eb4984c0d036c1420e782ca136810e851e33fb37' into natspec 81ff253 Merge commit 'c4638ba3edbd14677da5441d61f7845668df2b22' into natspec e68f8e7 natspec changes 689630d Merge commit '53b4fda16d0b191be8ab986379a328aa38aaf916' into natspec 5c79ee4 fixed natspec_contract.html example 83505e6 Merge commit '2b4d38b9bf059014596e1ab00c99dc2ad4ab3761' into ethereumjs 2ce109e Merge commit '6a383d6ed3fb37cf6739f6ac441652adfdb70463' into ethereumjs 1c4d8f3 Merge commit '29333fc213b62b27ef826616cf77430947fb6eab' into ethereumjs de4ea8e Merge commit 'd876522bc0614fea3180a54be57bcb61784b352e' into ethereumjs 6d02c0d Merge commit '1a6dbeff6e86d65cae6d7db366cbaa4182eaff7f' into ethereumjs 508f116 Merge pull request #798 from LefterisJP/natspec_OnContractCreation a4049fb Cleaned up some unused functions dac93ed Natspechandler: Get function hash from transaction data f54c90a A first version of Natspec warning popup b6c0e53 Auto-generated commits, too. e95bb34 Fix for JS API formatting. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: d223ac0379c4c1f8c209e777ec9ed63384590157
10 years ago
<!doctype>
<html>
<head>
<script type="text/javascript" src="../dist/web3.js"></script>
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 81bbe8c..d223ac0 d223ac0 Additional work on the JS stuff to make it more similar to Solidity. 113a380 Fix string outputs. Auto collapse for &lt; 2 returns. fb34c6c Auto select call or transact depending on constness. 7869294 Fixes to ethereum.js and standard.js. 61a0158 Vanity addresses in AZ. Fixes to ethereum.js eth.flush() c01f0ae Merge commit &#39;b1971f46cce7d21be5f6277c9f8c406a0d195f78&#39; into natspec 29fa57e natspec.js updated to use sync api 13f39af Merge commit &#39;93fa6855afad7a7eb86e49efe384372a6060da35&#39; into natspec 6c4432d Merge commit &#39;b32dedc5b54f853cf63bb2663c8bca6aa4272b0b&#39; into natspec 375ca54 Merge commit &#39;8e3ba3a4285cc7e902a018196b3849df56944dd0&#39; into natspec d6a92b1 fixed natspec example 5e623f1 Merge commit &#39;cdd7af2a6e87363d0ff7d2528f9d9b521bf2ef20&#39; into natspec ad8e92e Merge commit &#39;eb4984c0d036c1420e782ca136810e851e33fb37&#39; into natspec 81ff253 Merge commit &#39;c4638ba3edbd14677da5441d61f7845668df2b22&#39; into natspec e68f8e7 natspec changes 689630d Merge commit &#39;53b4fda16d0b191be8ab986379a328aa38aaf916&#39; into natspec 5c79ee4 fixed natspec_contract.html example 83505e6 Merge commit &#39;2b4d38b9bf059014596e1ab00c99dc2ad4ab3761&#39; into ethereumjs 2ce109e Merge commit &#39;6a383d6ed3fb37cf6739f6ac441652adfdb70463&#39; into ethereumjs 1c4d8f3 Merge commit &#39;29333fc213b62b27ef826616cf77430947fb6eab&#39; into ethereumjs de4ea8e Merge commit &#39;d876522bc0614fea3180a54be57bcb61784b352e&#39; into ethereumjs 6d02c0d Merge commit &#39;1a6dbeff6e86d65cae6d7db366cbaa4182eaff7f&#39; into ethereumjs 508f116 Merge pull request #798 from LefterisJP/natspec_OnContractCreation a4049fb Cleaned up some unused functions dac93ed Natspechandler: Get function hash from transaction data f54c90a A first version of Natspec warning popup b6c0e53 Auto-generated commits, too. e95bb34 Fix for JS API formatting. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: d223ac0379c4c1f8c209e777ec9ed63384590157
10 years ago
<script type="text/javascript">
var web3 = require('web3');
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 7d6b35a..9926e27 9926e27 upgraded version to 0.1.0 7a44f76 add shh post formatting 27d5421 merged from ethereum again 3848d3a fixed logs 18e1367 gulp f831dde Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 27fca17 common fixes 1c9f50f changed topic to topics 8d7d00d fixed input parser test 1269731 Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 2c740b0 add filter value conversion 38f6567 fixed examples fa5d4b5 Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 8a2444b add default paramter for getBlock 2850bee fixed eth_getFilterChanges b454587 Merge branch &#39;develop&#39; of https://github.com/ethereum/ethereum.js into apiOverhaul ede88f8 Merge pull request #105 from jorisbontje/balance-example 51a075c add in-output until eth_getBlockByHash 9c0d3e3 fixed to/fromWei a0b5353 changed outputs up to storageAt c2ed233 update balance example for new api 1f6c195 fixed toBigNumber e5cc501 updated readme 4eb857e increased meteor package version c7f8373 separated formatters files 068bdd7 changed project structure ddb90c2 refactoring formatters a6110a5 common changes d3569e4 more coverage tests e2352b4 utils.js docs 344428b tests... 9fe105e fixed from decimal; 50fc611 test for utils.toBigNumber 60ae274 code comments b8505d1 common changes ccb3775 new api method names 2b17ad6 refactoring 0a995e1 common changes in utils, fixing code complexity 3f63109 fix all failing karma tests 1fd1a31 Merge branch &#39;develop&#39; into apiOverhaul 0b9d450 fixed karma test 75e92c8 Merge branch &#39;master&#39; into develop a869780 Merge branch &#39;master&#39; into apiOverhaul 2cdf08b Merge pull request #101 from chevdor/master 437e273 Helping travis a bit... old boy! d88effa Add node 0.12 + virtual screen for browsers/karma. 743eb30 Including Karma to Travis f0da6ef Merge remote-tracking branch &#39;upstream/master&#39; cbb1efe test(eth): Disable few tests b819391 fixed tests c1136a0 Merge branch &#39;master&#39; into develop 1b475aa downgrade to unreachable-branch-transform 0.1.0 636fb4b updated outdated deps cf3fa10 Merge branch &#39;ch&#39; 96f3076 karma 9c72d43 Merge pull request #100 from chevdor/master 96fede8 Merge pull request #98 from kumavis/develop 833b810 doc(readme): Information about Karma in the readme e46f6f1 test(utils): Add test for the toEth() function 1e0d76e Remove phantomjs af5fef0 test(karma): Add Karma support 20c4e28 Move envify and unreachable-branch-transform to normal dependencies for external browserify support. 333c3ff merged develop b07ddb4 add defualt block 024433f Merge branch &#39;master&#39; into develop 601c8ab ignore for maxcomplexity warning d9d190e Merge branch &#39;master&#39; into develop a05742f Add internal defaultBlock 6cd96c9 add net object 48c107e update meteor package 9c4080b made filter polling async 869bb66 add optional callback 4096fb8 merged develop 5c4a36b working on adding callbacks 30111f7 Merge pull request #87 from kumavis/develop f2029b4 Merge pull request #85 from ethers/abiString ee686b0 Move browserify transforms to package.json 4b9bc17 constants should be before (dynamic) string contents 1c136e3 merged develop aef0171 add shh topic auto transformation for filter options 37e6d11 add shh output formatters and test c03a949 add package-init.js a69c04d add version file 487e0ac mdae it a meteor package 8cf8b9e gulp fd85749 Merge pull request #81 from ethers/arraySupport fcab219 vary the length of the arrays f8db634 need to save/concat per iteration ce664d6 fix test descriptions 66196ee constants should be before array contents, fixes #30 2cd4f02 add build files 47412c3 add more tests for blocks 545de25 add more tests 2e9a411 Merge pull request #71 from frozeman/apiOverhaul 30518ae fixed complexities 84900e6 merged with solved conflicts eaef1a2 merged develop 9981b97 fixed ) 8128342 fixed small change request 5ea5be2 add deprecated transact 181f109 changed getCode to getData 1fa7fa6 toFromWei fix ee65b2c add input formatter for transactions fec54d8 add depreaction warnring to contractFromAbi 684c495 changed contract API 36ca47f Changed watch to filter for eth and shh 7fde77d add formatter b41d7b3 Merge branch &#39;master&#39; into develop 5424406 Merge pull request #69 from frozeman/apiOverhaul 1e3edbb Merge branch &#39;develop&#39; of https://github.com/ethereum/ethereum.js into apiOverhaul 60cda4e fixed tests 91c015e Made to/fromWei return strings instead of numbers 85c843e Merge pull request #67 from frozeman/apiOverhaul ed7d473 Removed enumerable from methods, fixed number property ce141d8 Removed circular dependencies 188e9e5 Add toWei/fromWei and isAddress 5c994ff changed most of the function names REVERT: 7d6b35a Merge branch &#39;master&#39; into cpp REVERT: ea250e6 Merge commit &#39;be3bfb76bef1d1f113033cd9093e03a00066d5d1&#39; into ethereumjs_timeout REVERT: c08cea1 Improvement to AZ - confirmation disabler. Fix network crash. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 9926e27a84fe21f3e7250e7e245977a7125ddf63
10 years ago
web3.setProvider(new web3.providers.HttpProvider());
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 81bbe8c..d223ac0 d223ac0 Additional work on the JS stuff to make it more similar to Solidity. 113a380 Fix string outputs. Auto collapse for &lt; 2 returns. fb34c6c Auto select call or transact depending on constness. 7869294 Fixes to ethereum.js and standard.js. 61a0158 Vanity addresses in AZ. Fixes to ethereum.js eth.flush() c01f0ae Merge commit &#39;b1971f46cce7d21be5f6277c9f8c406a0d195f78&#39; into natspec 29fa57e natspec.js updated to use sync api 13f39af Merge commit &#39;93fa6855afad7a7eb86e49efe384372a6060da35&#39; into natspec 6c4432d Merge commit &#39;b32dedc5b54f853cf63bb2663c8bca6aa4272b0b&#39; into natspec 375ca54 Merge commit &#39;8e3ba3a4285cc7e902a018196b3849df56944dd0&#39; into natspec d6a92b1 fixed natspec example 5e623f1 Merge commit &#39;cdd7af2a6e87363d0ff7d2528f9d9b521bf2ef20&#39; into natspec ad8e92e Merge commit &#39;eb4984c0d036c1420e782ca136810e851e33fb37&#39; into natspec 81ff253 Merge commit &#39;c4638ba3edbd14677da5441d61f7845668df2b22&#39; into natspec e68f8e7 natspec changes 689630d Merge commit &#39;53b4fda16d0b191be8ab986379a328aa38aaf916&#39; into natspec 5c79ee4 fixed natspec_contract.html example 83505e6 Merge commit &#39;2b4d38b9bf059014596e1ab00c99dc2ad4ab3761&#39; into ethereumjs 2ce109e Merge commit &#39;6a383d6ed3fb37cf6739f6ac441652adfdb70463&#39; into ethereumjs 1c4d8f3 Merge commit &#39;29333fc213b62b27ef826616cf77430947fb6eab&#39; into ethereumjs de4ea8e Merge commit &#39;d876522bc0614fea3180a54be57bcb61784b352e&#39; into ethereumjs 6d02c0d Merge commit &#39;1a6dbeff6e86d65cae6d7db366cbaa4182eaff7f&#39; into ethereumjs 508f116 Merge pull request #798 from LefterisJP/natspec_OnContractCreation a4049fb Cleaned up some unused functions dac93ed Natspechandler: Get function hash from transaction data f54c90a A first version of Natspec warning popup b6c0e53 Auto-generated commits, too. e95bb34 Fix for JS API formatting. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: d223ac0379c4c1f8c209e777ec9ed63384590157
10 years ago
// solidity source code
var source = "" +
"contract test {\n" +
" /// @notice Will multiply `a` by 7. \n" +
" function multiply(uint a) returns(uint d) {\n" +
" return a * 7;\n" +
" }\n" +
"}\n";
// contract description, this will be autogenerated somehow
var desc = [{
"name": "multiply(uint256)",
"type": "function",
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 81bbe8c..d223ac0 d223ac0 Additional work on the JS stuff to make it more similar to Solidity. 113a380 Fix string outputs. Auto collapse for &lt; 2 returns. fb34c6c Auto select call or transact depending on constness. 7869294 Fixes to ethereum.js and standard.js. 61a0158 Vanity addresses in AZ. Fixes to ethereum.js eth.flush() c01f0ae Merge commit &#39;b1971f46cce7d21be5f6277c9f8c406a0d195f78&#39; into natspec 29fa57e natspec.js updated to use sync api 13f39af Merge commit &#39;93fa6855afad7a7eb86e49efe384372a6060da35&#39; into natspec 6c4432d Merge commit &#39;b32dedc5b54f853cf63bb2663c8bca6aa4272b0b&#39; into natspec 375ca54 Merge commit &#39;8e3ba3a4285cc7e902a018196b3849df56944dd0&#39; into natspec d6a92b1 fixed natspec example 5e623f1 Merge commit &#39;cdd7af2a6e87363d0ff7d2528f9d9b521bf2ef20&#39; into natspec ad8e92e Merge commit &#39;eb4984c0d036c1420e782ca136810e851e33fb37&#39; into natspec 81ff253 Merge commit &#39;c4638ba3edbd14677da5441d61f7845668df2b22&#39; into natspec e68f8e7 natspec changes 689630d Merge commit &#39;53b4fda16d0b191be8ab986379a328aa38aaf916&#39; into natspec 5c79ee4 fixed natspec_contract.html example 83505e6 Merge commit &#39;2b4d38b9bf059014596e1ab00c99dc2ad4ab3761&#39; into ethereumjs 2ce109e Merge commit &#39;6a383d6ed3fb37cf6739f6ac441652adfdb70463&#39; into ethereumjs 1c4d8f3 Merge commit &#39;29333fc213b62b27ef826616cf77430947fb6eab&#39; into ethereumjs de4ea8e Merge commit &#39;d876522bc0614fea3180a54be57bcb61784b352e&#39; into ethereumjs 6d02c0d Merge commit &#39;1a6dbeff6e86d65cae6d7db366cbaa4182eaff7f&#39; into ethereumjs 508f116 Merge pull request #798 from LefterisJP/natspec_OnContractCreation a4049fb Cleaned up some unused functions dac93ed Natspechandler: Get function hash from transaction data f54c90a A first version of Natspec warning popup b6c0e53 Auto-generated commits, too. e95bb34 Fix for JS API formatting. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: d223ac0379c4c1f8c209e777ec9ed63384590157
10 years ago
"inputs": [
{
"name": "a",
"type": "uint256"
}
],
"outputs": [
{
"name": "d",
"type": "uint256"
}
]
}];
var contract;
function createExampleContract() {
// hide create button
document.getElementById('create').style.visibility = 'hidden';
document.getElementById('source').innerText = source;
// create contract
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 7d6b35a..9926e27 9926e27 upgraded version to 0.1.0 7a44f76 add shh post formatting 27d5421 merged from ethereum again 3848d3a fixed logs 18e1367 gulp f831dde Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 27fca17 common fixes 1c9f50f changed topic to topics 8d7d00d fixed input parser test 1269731 Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 2c740b0 add filter value conversion 38f6567 fixed examples fa5d4b5 Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 8a2444b add default paramter for getBlock 2850bee fixed eth_getFilterChanges b454587 Merge branch &#39;develop&#39; of https://github.com/ethereum/ethereum.js into apiOverhaul ede88f8 Merge pull request #105 from jorisbontje/balance-example 51a075c add in-output until eth_getBlockByHash 9c0d3e3 fixed to/fromWei a0b5353 changed outputs up to storageAt c2ed233 update balance example for new api 1f6c195 fixed toBigNumber e5cc501 updated readme 4eb857e increased meteor package version c7f8373 separated formatters files 068bdd7 changed project structure ddb90c2 refactoring formatters a6110a5 common changes d3569e4 more coverage tests e2352b4 utils.js docs 344428b tests... 9fe105e fixed from decimal; 50fc611 test for utils.toBigNumber 60ae274 code comments b8505d1 common changes ccb3775 new api method names 2b17ad6 refactoring 0a995e1 common changes in utils, fixing code complexity 3f63109 fix all failing karma tests 1fd1a31 Merge branch &#39;develop&#39; into apiOverhaul 0b9d450 fixed karma test 75e92c8 Merge branch &#39;master&#39; into develop a869780 Merge branch &#39;master&#39; into apiOverhaul 2cdf08b Merge pull request #101 from chevdor/master 437e273 Helping travis a bit... old boy! d88effa Add node 0.12 + virtual screen for browsers/karma. 743eb30 Including Karma to Travis f0da6ef Merge remote-tracking branch &#39;upstream/master&#39; cbb1efe test(eth): Disable few tests b819391 fixed tests c1136a0 Merge branch &#39;master&#39; into develop 1b475aa downgrade to unreachable-branch-transform 0.1.0 636fb4b updated outdated deps cf3fa10 Merge branch &#39;ch&#39; 96f3076 karma 9c72d43 Merge pull request #100 from chevdor/master 96fede8 Merge pull request #98 from kumavis/develop 833b810 doc(readme): Information about Karma in the readme e46f6f1 test(utils): Add test for the toEth() function 1e0d76e Remove phantomjs af5fef0 test(karma): Add Karma support 20c4e28 Move envify and unreachable-branch-transform to normal dependencies for external browserify support. 333c3ff merged develop b07ddb4 add defualt block 024433f Merge branch &#39;master&#39; into develop 601c8ab ignore for maxcomplexity warning d9d190e Merge branch &#39;master&#39; into develop a05742f Add internal defaultBlock 6cd96c9 add net object 48c107e update meteor package 9c4080b made filter polling async 869bb66 add optional callback 4096fb8 merged develop 5c4a36b working on adding callbacks 30111f7 Merge pull request #87 from kumavis/develop f2029b4 Merge pull request #85 from ethers/abiString ee686b0 Move browserify transforms to package.json 4b9bc17 constants should be before (dynamic) string contents 1c136e3 merged develop aef0171 add shh topic auto transformation for filter options 37e6d11 add shh output formatters and test c03a949 add package-init.js a69c04d add version file 487e0ac mdae it a meteor package 8cf8b9e gulp fd85749 Merge pull request #81 from ethers/arraySupport fcab219 vary the length of the arrays f8db634 need to save/concat per iteration ce664d6 fix test descriptions 66196ee constants should be before array contents, fixes #30 2cd4f02 add build files 47412c3 add more tests for blocks 545de25 add more tests 2e9a411 Merge pull request #71 from frozeman/apiOverhaul 30518ae fixed complexities 84900e6 merged with solved conflicts eaef1a2 merged develop 9981b97 fixed ) 8128342 fixed small change request 5ea5be2 add deprecated transact 181f109 changed getCode to getData 1fa7fa6 toFromWei fix ee65b2c add input formatter for transactions fec54d8 add depreaction warnring to contractFromAbi 684c495 changed contract API 36ca47f Changed watch to filter for eth and shh 7fde77d add formatter b41d7b3 Merge branch &#39;master&#39; into develop 5424406 Merge pull request #69 from frozeman/apiOverhaul 1e3edbb Merge branch &#39;develop&#39; of https://github.com/ethereum/ethereum.js into apiOverhaul 60cda4e fixed tests 91c015e Made to/fromWei return strings instead of numbers 85c843e Merge pull request #67 from frozeman/apiOverhaul ed7d473 Removed enumerable from methods, fixed number property ce141d8 Removed circular dependencies 188e9e5 Add toWei/fromWei and isAddress 5c994ff changed most of the function names REVERT: 7d6b35a Merge branch &#39;master&#39; into cpp REVERT: ea250e6 Merge commit &#39;be3bfb76bef1d1f113033cd9093e03a00066d5d1&#39; into ethereumjs_timeout REVERT: c08cea1 Improvement to AZ - confirmation disabler. Fix network crash. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 9926e27a84fe21f3e7250e7e245977a7125ddf63
10 years ago
var address = web3.eth.sendTransaction({code: web3.eth.solidity(source)});
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 81bbe8c..d223ac0 d223ac0 Additional work on the JS stuff to make it more similar to Solidity. 113a380 Fix string outputs. Auto collapse for &lt; 2 returns. fb34c6c Auto select call or transact depending on constness. 7869294 Fixes to ethereum.js and standard.js. 61a0158 Vanity addresses in AZ. Fixes to ethereum.js eth.flush() c01f0ae Merge commit &#39;b1971f46cce7d21be5f6277c9f8c406a0d195f78&#39; into natspec 29fa57e natspec.js updated to use sync api 13f39af Merge commit &#39;93fa6855afad7a7eb86e49efe384372a6060da35&#39; into natspec 6c4432d Merge commit &#39;b32dedc5b54f853cf63bb2663c8bca6aa4272b0b&#39; into natspec 375ca54 Merge commit &#39;8e3ba3a4285cc7e902a018196b3849df56944dd0&#39; into natspec d6a92b1 fixed natspec example 5e623f1 Merge commit &#39;cdd7af2a6e87363d0ff7d2528f9d9b521bf2ef20&#39; into natspec ad8e92e Merge commit &#39;eb4984c0d036c1420e782ca136810e851e33fb37&#39; into natspec 81ff253 Merge commit &#39;c4638ba3edbd14677da5441d61f7845668df2b22&#39; into natspec e68f8e7 natspec changes 689630d Merge commit &#39;53b4fda16d0b191be8ab986379a328aa38aaf916&#39; into natspec 5c79ee4 fixed natspec_contract.html example 83505e6 Merge commit &#39;2b4d38b9bf059014596e1ab00c99dc2ad4ab3761&#39; into ethereumjs 2ce109e Merge commit &#39;6a383d6ed3fb37cf6739f6ac441652adfdb70463&#39; into ethereumjs 1c4d8f3 Merge commit &#39;29333fc213b62b27ef826616cf77430947fb6eab&#39; into ethereumjs de4ea8e Merge commit &#39;d876522bc0614fea3180a54be57bcb61784b352e&#39; into ethereumjs 6d02c0d Merge commit &#39;1a6dbeff6e86d65cae6d7db366cbaa4182eaff7f&#39; into ethereumjs 508f116 Merge pull request #798 from LefterisJP/natspec_OnContractCreation a4049fb Cleaned up some unused functions dac93ed Natspechandler: Get function hash from transaction data f54c90a A first version of Natspec warning popup b6c0e53 Auto-generated commits, too. e95bb34 Fix for JS API formatting. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: d223ac0379c4c1f8c209e777ec9ed63384590157
10 years ago
contract = web3.eth.contract(address, desc);
document.getElementById('call').style.visibility = 'visible';
}
function callExampleContract() {
// this should be generated by ethereum
var param = parseInt(document.getElementById('value').value);
// transaction does not return any result, cause it's not synchronous and we don't know,
// when it will be processed
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 7d6b35a..9926e27 9926e27 upgraded version to 0.1.0 7a44f76 add shh post formatting 27d5421 merged from ethereum again 3848d3a fixed logs 18e1367 gulp f831dde Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 27fca17 common fixes 1c9f50f changed topic to topics 8d7d00d fixed input parser test 1269731 Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 2c740b0 add filter value conversion 38f6567 fixed examples fa5d4b5 Merge branch &#39;apiOverhaul&#39; of https://github.com/frozeman/ethereum.js into apiOverhaul 8a2444b add default paramter for getBlock 2850bee fixed eth_getFilterChanges b454587 Merge branch &#39;develop&#39; of https://github.com/ethereum/ethereum.js into apiOverhaul ede88f8 Merge pull request #105 from jorisbontje/balance-example 51a075c add in-output until eth_getBlockByHash 9c0d3e3 fixed to/fromWei a0b5353 changed outputs up to storageAt c2ed233 update balance example for new api 1f6c195 fixed toBigNumber e5cc501 updated readme 4eb857e increased meteor package version c7f8373 separated formatters files 068bdd7 changed project structure ddb90c2 refactoring formatters a6110a5 common changes d3569e4 more coverage tests e2352b4 utils.js docs 344428b tests... 9fe105e fixed from decimal; 50fc611 test for utils.toBigNumber 60ae274 code comments b8505d1 common changes ccb3775 new api method names 2b17ad6 refactoring 0a995e1 common changes in utils, fixing code complexity 3f63109 fix all failing karma tests 1fd1a31 Merge branch &#39;develop&#39; into apiOverhaul 0b9d450 fixed karma test 75e92c8 Merge branch &#39;master&#39; into develop a869780 Merge branch &#39;master&#39; into apiOverhaul 2cdf08b Merge pull request #101 from chevdor/master 437e273 Helping travis a bit... old boy! d88effa Add node 0.12 + virtual screen for browsers/karma. 743eb30 Including Karma to Travis f0da6ef Merge remote-tracking branch &#39;upstream/master&#39; cbb1efe test(eth): Disable few tests b819391 fixed tests c1136a0 Merge branch &#39;master&#39; into develop 1b475aa downgrade to unreachable-branch-transform 0.1.0 636fb4b updated outdated deps cf3fa10 Merge branch &#39;ch&#39; 96f3076 karma 9c72d43 Merge pull request #100 from chevdor/master 96fede8 Merge pull request #98 from kumavis/develop 833b810 doc(readme): Information about Karma in the readme e46f6f1 test(utils): Add test for the toEth() function 1e0d76e Remove phantomjs af5fef0 test(karma): Add Karma support 20c4e28 Move envify and unreachable-branch-transform to normal dependencies for external browserify support. 333c3ff merged develop b07ddb4 add defualt block 024433f Merge branch &#39;master&#39; into develop 601c8ab ignore for maxcomplexity warning d9d190e Merge branch &#39;master&#39; into develop a05742f Add internal defaultBlock 6cd96c9 add net object 48c107e update meteor package 9c4080b made filter polling async 869bb66 add optional callback 4096fb8 merged develop 5c4a36b working on adding callbacks 30111f7 Merge pull request #87 from kumavis/develop f2029b4 Merge pull request #85 from ethers/abiString ee686b0 Move browserify transforms to package.json 4b9bc17 constants should be before (dynamic) string contents 1c136e3 merged develop aef0171 add shh topic auto transformation for filter options 37e6d11 add shh output formatters and test c03a949 add package-init.js a69c04d add version file 487e0ac mdae it a meteor package 8cf8b9e gulp fd85749 Merge pull request #81 from ethers/arraySupport fcab219 vary the length of the arrays f8db634 need to save/concat per iteration ce664d6 fix test descriptions 66196ee constants should be before array contents, fixes #30 2cd4f02 add build files 47412c3 add more tests for blocks 545de25 add more tests 2e9a411 Merge pull request #71 from frozeman/apiOverhaul 30518ae fixed complexities 84900e6 merged with solved conflicts eaef1a2 merged develop 9981b97 fixed ) 8128342 fixed small change request 5ea5be2 add deprecated transact 181f109 changed getCode to getData 1fa7fa6 toFromWei fix ee65b2c add input formatter for transactions fec54d8 add depreaction warnring to contractFromAbi 684c495 changed contract API 36ca47f Changed watch to filter for eth and shh 7fde77d add formatter b41d7b3 Merge branch &#39;master&#39; into develop 5424406 Merge pull request #69 from frozeman/apiOverhaul 1e3edbb Merge branch &#39;develop&#39; of https://github.com/ethereum/ethereum.js into apiOverhaul 60cda4e fixed tests 91c015e Made to/fromWei return strings instead of numbers 85c843e Merge pull request #67 from frozeman/apiOverhaul ed7d473 Removed enumerable from methods, fixed number property ce141d8 Removed circular dependencies 188e9e5 Add toWei/fromWei and isAddress 5c994ff changed most of the function names REVERT: 7d6b35a Merge branch &#39;master&#39; into cpp REVERT: ea250e6 Merge commit &#39;be3bfb76bef1d1f113033cd9093e03a00066d5d1&#39; into ethereumjs_timeout REVERT: c08cea1 Improvement to AZ - confirmation disabler. Fix network crash. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 9926e27a84fe21f3e7250e7e245977a7125ddf63
10 years ago
contract.sendTransaction().multiply(param);
Squashed &#39;libjsqrc/ethereumjs/&#39; changes from 81bbe8c..d223ac0 d223ac0 Additional work on the JS stuff to make it more similar to Solidity. 113a380 Fix string outputs. Auto collapse for &lt; 2 returns. fb34c6c Auto select call or transact depending on constness. 7869294 Fixes to ethereum.js and standard.js. 61a0158 Vanity addresses in AZ. Fixes to ethereum.js eth.flush() c01f0ae Merge commit &#39;b1971f46cce7d21be5f6277c9f8c406a0d195f78&#39; into natspec 29fa57e natspec.js updated to use sync api 13f39af Merge commit &#39;93fa6855afad7a7eb86e49efe384372a6060da35&#39; into natspec 6c4432d Merge commit &#39;b32dedc5b54f853cf63bb2663c8bca6aa4272b0b&#39; into natspec 375ca54 Merge commit &#39;8e3ba3a4285cc7e902a018196b3849df56944dd0&#39; into natspec d6a92b1 fixed natspec example 5e623f1 Merge commit &#39;cdd7af2a6e87363d0ff7d2528f9d9b521bf2ef20&#39; into natspec ad8e92e Merge commit &#39;eb4984c0d036c1420e782ca136810e851e33fb37&#39; into natspec 81ff253 Merge commit &#39;c4638ba3edbd14677da5441d61f7845668df2b22&#39; into natspec e68f8e7 natspec changes 689630d Merge commit &#39;53b4fda16d0b191be8ab986379a328aa38aaf916&#39; into natspec 5c79ee4 fixed natspec_contract.html example 83505e6 Merge commit &#39;2b4d38b9bf059014596e1ab00c99dc2ad4ab3761&#39; into ethereumjs 2ce109e Merge commit &#39;6a383d6ed3fb37cf6739f6ac441652adfdb70463&#39; into ethereumjs 1c4d8f3 Merge commit &#39;29333fc213b62b27ef826616cf77430947fb6eab&#39; into ethereumjs de4ea8e Merge commit &#39;d876522bc0614fea3180a54be57bcb61784b352e&#39; into ethereumjs 6d02c0d Merge commit &#39;1a6dbeff6e86d65cae6d7db366cbaa4182eaff7f&#39; into ethereumjs 508f116 Merge pull request #798 from LefterisJP/natspec_OnContractCreation a4049fb Cleaned up some unused functions dac93ed Natspechandler: Get function hash from transaction data f54c90a A first version of Natspec warning popup b6c0e53 Auto-generated commits, too. e95bb34 Fix for JS API formatting. git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: d223ac0379c4c1f8c209e777ec9ed63384590157
10 years ago
document.getElementById('result').innerText = 'transaction made';
}
</script>
</head>
<body>
<h1>contract</h1>
<div id="source"></div>
<div id='create'>
<button type="button" onClick="createExampleContract();">create example contract</button>
</div>
<div id='call' style='visibility: hidden;'>
<input type="number" id="value"></input>
<button type="button" onClick="callExampleContract()">Call Contract</button>
</div>
<div id="result"></div>
</body>
</html>