|
|
|
/*
|
|
|
|
This file is part of ethereum.js.
|
|
|
|
|
|
|
|
ethereum.js is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
ethereum.js is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with ethereum.js. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
/**
|
|
|
|
* @file contract.js
|
|
|
|
* @author Marek Kotewicz <marek@ethdev.com>
|
|
|
|
* @date 2014
|
|
|
|
*/
|
|
|
|
|
|
|
|
var web3 = require('../web3');
|
|
|
|
var utils = require('../utils/utils');
|
|
|
|
var coder = require('../solidity/coder');
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
var SolidityEvent = require('./event');
|
|
|
|
var SolidityFunction = require('./function');
|
|
|
|
var AllEvents = require('./allevents');
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to encode constructor params
|
|
|
|
*
|
|
|
|
* @method encodeConstructorParams
|
|
|
|
* @param {Array} abi
|
|
|
|
* @param {Array} constructor params
|
|
|
|
*/
|
|
|
|
var encodeConstructorParams = function (abi, params) {
|
|
|
|
return abi.filter(function (json) {
|
|
|
|
return json.type === 'constructor' && json.inputs.length === params.length;
|
|
|
|
}).map(function (json) {
|
|
|
|
return json.inputs.map(function (input) {
|
|
|
|
return input.type;
|
|
|
|
});
|
|
|
|
}).map(function (types) {
|
|
|
|
return coder.encodeParams(types, params);
|
|
|
|
})[0] || '';
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to add functions to contract object
|
|
|
|
*
|
|
|
|
* @method addFunctionsToContract
|
|
|
|
* @param {Contract} contract
|
|
|
|
* @param {Array} abi
|
|
|
|
*/
|
|
|
|
var addFunctionsToContract = function (contract, abi) {
|
|
|
|
abi.filter(function (json) {
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
return json.type === 'function';
|
|
|
|
}).map(function (json) {
|
|
|
|
return new SolidityFunction(json, contract.address);
|
|
|
|
}).forEach(function (f) {
|
|
|
|
f.attachToContract(contract);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to add events to contract object
|
|
|
|
*
|
|
|
|
* @method addEventsToContract
|
|
|
|
* @param {Contract} contract
|
|
|
|
* @param {Array} abi
|
|
|
|
*/
|
|
|
|
var addEventsToContract = function (contract, abi) {
|
|
|
|
var events = abi.filter(function (json) {
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
return json.type === 'event';
|
|
|
|
});
|
|
|
|
|
|
|
|
var All = new AllEvents(events, contract.address);
|
|
|
|
All.attachToContract(contract);
|
|
|
|
|
|
|
|
events.map(function (json) {
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
return new SolidityEvent(json, contract.address);
|
|
|
|
}).forEach(function (e) {
|
|
|
|
e.attachToContract(contract);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to create new ContractFactory
|
|
|
|
*
|
|
|
|
* @method contract
|
|
|
|
* @param {Array} abi
|
|
|
|
* @returns {ContractFactory} new contract factory
|
|
|
|
*/
|
|
|
|
var contract = function (abi) {
|
|
|
|
return new ContractFactory(abi);
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to check if the contract gets properly deployed on the blockchain.
|
|
|
|
*
|
|
|
|
* @method checkForContractAddress
|
|
|
|
* @param {Object} contract
|
|
|
|
* @param {Function} callback
|
|
|
|
* @returns {Undefined}
|
|
|
|
*/
|
|
|
|
var checkForContractAddress = function(contract, abi, callback){
|
|
|
|
var count = 0,
|
|
|
|
callbackFired = false;
|
|
|
|
|
|
|
|
// wait for receipt
|
|
|
|
var filter = web3.eth.filter('latest', function(e){
|
|
|
|
if(!e && !callbackFired) {
|
|
|
|
count++;
|
|
|
|
|
|
|
|
// console.log('Checking for contract address', count);
|
|
|
|
|
|
|
|
// stop watching after 50 blocks (timeout)
|
|
|
|
if(count > 50) {
|
|
|
|
|
|
|
|
filter.stopWatching();
|
|
|
|
callbackFired = true;
|
|
|
|
|
|
|
|
if(callback)
|
|
|
|
callback(new Error('Contract transaction couldn\'t be found after 50 blocks'));
|
|
|
|
else
|
|
|
|
throw new Error('Contract transaction couldn\'t be found after 50 blocks');
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
web3.eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){
|
|
|
|
if(receipt && !callbackFired) {
|
|
|
|
|
|
|
|
web3.eth.getCode(receipt.contractAddress, function(e, code){
|
|
|
|
/*jshint maxcomplexity: 5 */
|
|
|
|
|
|
|
|
if(callbackFired)
|
|
|
|
return;
|
|
|
|
|
|
|
|
filter.stopWatching();
|
|
|
|
callbackFired = true;
|
|
|
|
|
|
|
|
if(code.length > 2) {
|
|
|
|
|
|
|
|
// console.log('Contract code deployed!');
|
|
|
|
|
|
|
|
contract.address = receipt.contractAddress;
|
|
|
|
|
|
|
|
// attach events and methods
|
|
|
|
addFunctionsToContract(contract, abi);
|
|
|
|
addEventsToContract(contract, abi);
|
|
|
|
|
|
|
|
// call callback for the second time
|
|
|
|
if(callback)
|
|
|
|
callback(null, contract);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
if(callback)
|
|
|
|
callback(new Error('The contract code couldn\'t be stored, please check your gas amount.'));
|
|
|
|
else
|
|
|
|
throw new Error('The contract code couldn\'t be stored, please check your gas amount.');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to create new ContractFactory instance
|
|
|
|
*
|
|
|
|
* @method ContractFactory
|
|
|
|
* @param {Array} abi
|
|
|
|
*/
|
|
|
|
var ContractFactory = function (abi) {
|
|
|
|
this.abi = abi;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to create new contract on a blockchain
|
|
|
|
*
|
|
|
|
* @method new
|
|
|
|
* @param {Any} contract constructor param1 (optional)
|
|
|
|
* @param {Any} contract constructor param2 (optional)
|
|
|
|
* @param {Object} contract transaction object (required)
|
|
|
|
* @param {Function} callback
|
|
|
|
* @returns {Contract} returns contract instance
|
|
|
|
*/
|
|
|
|
ContractFactory.prototype.new = function () {
|
|
|
|
var _this = this;
|
|
|
|
var contract = new Contract(this.abi);
|
|
|
|
|
|
|
|
// parse arguments
|
|
|
|
var options = {}; // required!
|
|
|
|
var callback;
|
|
|
|
|
|
|
|
var args = Array.prototype.slice.call(arguments);
|
|
|
|
if (utils.isFunction(args[args.length - 1])) {
|
|
|
|
callback = args.pop();
|
|
|
|
}
|
|
|
|
|
|
|
|
var last = args[args.length - 1];
|
|
|
|
if (utils.isObject(last) && !utils.isArray(last)) {
|
|
|
|
options = args.pop();
|
|
|
|
}
|
|
|
|
|
|
|
|
// throw an error if there are no options
|
|
|
|
|
|
|
|
var bytes = encodeConstructorParams(this.abi, args);
|
|
|
|
options.data += bytes;
|
|
|
|
|
|
|
|
|
|
|
|
if(callback) {
|
|
|
|
|
|
|
|
// wait for the contract address adn check if the code was deployed
|
|
|
|
web3.eth.sendTransaction(options, function (err, hash) {
|
|
|
|
if (err) {
|
|
|
|
callback(err);
|
|
|
|
} else {
|
|
|
|
// add the transaction hash
|
|
|
|
contract.transactionHash = hash;
|
|
|
|
|
|
|
|
// call callback for the first time
|
|
|
|
callback(null, contract);
|
|
|
|
|
|
|
|
checkForContractAddress(contract, _this.abi, callback);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
var hash = web3.eth.sendTransaction(options);
|
|
|
|
// add the transaction hash
|
|
|
|
contract.transactionHash = hash;
|
|
|
|
checkForContractAddress(contract, _this.abi);
|
|
|
|
}
|
|
|
|
|
|
|
|
return contract;
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to get access to existing contract on a blockchain
|
|
|
|
*
|
|
|
|
* @method at
|
|
|
|
* @param {Address} contract address (required)
|
|
|
|
* @param {Function} callback {optional)
|
|
|
|
* @returns {Contract} returns contract if no callback was passed,
|
|
|
|
* otherwise calls callback function (err, contract)
|
|
|
|
*/
|
|
|
|
ContractFactory.prototype.at = function (address, callback) {
|
|
|
|
var contract = new Contract(this.abi, address);
|
|
|
|
// TODO: address is required
|
|
|
|
|
|
|
|
// attach functions
|
|
|
|
addFunctionsToContract(contract, this.abi);
|
|
|
|
addEventsToContract(contract, this.abi);
|
|
|
|
|
|
|
|
if (callback) {
|
|
|
|
callback(null, contract);
|
|
|
|
}
|
|
|
|
return contract;
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be called to create new contract instance
|
|
|
|
*
|
|
|
|
* @method Contract
|
|
|
|
* @param {Array} abi
|
|
|
|
* @param {Address} contract address
|
|
|
|
*/
|
|
|
|
var Contract = function (abi, address) {
|
|
|
|
this.address = address;
|
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed
f8a43ed Merge pull request #180 from ethereum/develop
4dc6e23 realease version 0.3.1
ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop
08dc2b2 add missing inputBlockNumberFormatter
99e89a1 Merge pull request #179 from ethereum/latest_pending
dfbad66 add pending and latest to getBlockTransactionCount and getUncle
dbf3ff0 latest and pending as possible blockNumber arg everywhere
3897bc2 version 0.3.0
d2068eb improved solidity event decoding
11f23ce Merge pull request #178 from ethereum/stringTopics
50f4a2b add new test filter
40c5c9e merged develop
c9cd31b add test for the new toTopic filter
e21ee7a Merge pull request #174 from ethereum/events_refactor
960e9c9 test for explicit sendTransaction && call
a6ac6ed add new toTopic formatter in filters
3d3db61 tests for decoding event logs
7c16dbf one additional test for event encode
9f7d6a9 anonymous events implementation && tests
b5eabd8 proper formatting event options
93b323f removed unused function findIndex from utils
9158ac7 removed unused function
1ac1ef9 cleaned event.encode test
5f2eb33 fixed filters encoding null
4482d5b Merge branch 'develop' into events_refactor
76ced9a basic tests for event encoding
f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
888a970 coder.encodeParam, coder.decodeParam tests template
983e4b1 removed signature.js
f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop
c8f4226 add possible 2d topic arrays fixes #175
e910736 eth_filter complex topics, #175
836529a Merge branch 'develop' into events_refactor
42e759e 0.10 on travis is painfully slow, lets remove it
d411492 call && sendTransaction
f84a68c changed the way functions are being called
c8e5768 fixed log fields
d38f5a2 Merge branch 'develop' into events_refactor
a5c1bcc changed default providor port to 8545 closes #160
9e8cb8d removed non existing eth.flush method
eeb0bc0 Merge branch 'develop' into events_refactor
cdf02ec Merge pull request #173 from ethereum/failing_develop
501e3bc utils cleanup
a88be00 docs
9d8a51d event.js refactored
ea6bda4 event refactor in progress
a827076 fixed tx/block return value tests
99a3696 events refactor, function.js
04cdb6c format also tx nonce to number
385cc2c removed minGasPrice from blocks
c06d75b Merge pull request #170 from ethereum/abi_refactor
e80ff10 Merge branch 'master' into abi_refactor
38641df fixed #154
1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96
4aeba40 fixed event_inc example
5362e2a Merge branch 'develop' into abi_refactor
2a11852 Merge branch 'master' into develop
ea413a8 updated gitter badge
a46b9ea Merge branch 'develop' into abi_refactor
779a608 documentation
941535f SolidityParam moved to its own file && documented
18cef7c removed *collapse in contrat, gulp
677bb68 add bundle version
135b044 Merge pull request #164 from karalabe/empty-topics-fix
b326202 formatters/whisper: polish corner case handling code
0567ba1 outputParser do not require 0x prefix before hash
b5c6aa6 little cleanup && renaming
dccfca1 solidity abi refactor in progress
6a058b6 Allow unset topics in posts too.
af443f2 Fix #162: allow empty topic list in messages
d643d06 solidity abi refactor in progress
271b00f bumped version
f4cf699 rebuild
4eeaf19 rebuild
20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
ac69640 Merge pull request #158 from ethereum/watchImprovement2
96b4468 fixed #161, web3.ssh.post
a320ef8 fixed coverage, unified creating errors
364eab7 add callback for async error
c62f817 picked watch change3
56d13f7 picked watch change2
2215e7c picked watch change
dc0f231 merged meteor package fixes
c89ad86 renamed meteor package
a0709f3 fixed meteor package
1a8032c version 0.2.7
dfb8dea gulp
b1ada8d gulp
a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js
05343ea use version of bignumber.js without lookaheads
2651fd8 Update README.md
git-subtree-dir: libjsqrc/ethereumjs
git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
10 years ago
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = contract;
|
|
|
|
|