Browse Source

Merge commit 'f3012d7dc0222eec540a810def136e09d62c5675' into ethereumjs

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
c986ee03a1
  1. 10
      libjsqrc/ethereumjs/dist/ethereum.js
  2. 6
      libjsqrc/ethereumjs/dist/ethereum.js.map
  3. 2
      libjsqrc/ethereumjs/dist/ethereum.min.js
  4. 4
      libjsqrc/ethereumjs/lib/contract.js
  5. 6
      libjsqrc/ethereumjs/lib/filter.js

10
libjsqrc/ethereumjs/dist/ethereum.js

@ -541,7 +541,7 @@ var addFunctionsToContract = function (contract, desc, address) {
var addEventRelatedPropertiesToContract = function (contract, desc, address) {
contract.address = address;
Object.defineProperty(contract, 'topics', {
Object.defineProperty(contract, 'topic', {
get: function() {
return abi.filterEvents(desc).map(function (e) {
return abi.methodSignature(e.name);
@ -565,7 +565,7 @@ var addEventsToContract = function (contract, desc, address) {
impl.address = address;
Object.defineProperty(impl, 'topics', {
Object.defineProperty(impl, 'topic', {
get: function() {
return [abi.methodSignature(e.name)];
}
@ -706,9 +706,13 @@ var Filter = function(options, impl) {
if (typeof options !== "string") {
// evaluate lazy properties
if (options.topics) {
console.warn('"topics" is deprecated, use "topic" instead');
}
options = {
to: options.to,
topics: options.topics,
topic: options.topic,
earliest: options.earliest,
latest: options.latest,
max: options.max,

6
libjsqrc/ethereumjs/dist/ethereum.js.map

File diff suppressed because one or more lines are too long

2
libjsqrc/ethereumjs/dist/ethereum.min.js

File diff suppressed because one or more lines are too long

4
libjsqrc/ethereumjs/lib/contract.js

@ -110,7 +110,7 @@ var addFunctionsToContract = function (contract, desc, address) {
var addEventRelatedPropertiesToContract = function (contract, desc, address) {
contract.address = address;
Object.defineProperty(contract, 'topics', {
Object.defineProperty(contract, 'topic', {
get: function() {
return abi.filterEvents(desc).map(function (e) {
return abi.methodSignature(e.name);
@ -134,7 +134,7 @@ var addEventsToContract = function (contract, desc, address) {
impl.address = address;
Object.defineProperty(impl, 'topics', {
Object.defineProperty(impl, 'topic', {
get: function() {
return [abi.methodSignature(e.name)];
}

6
libjsqrc/ethereumjs/lib/filter.js

@ -33,9 +33,13 @@ var Filter = function(options, impl) {
if (typeof options !== "string") {
// evaluate lazy properties
if (options.topics) {
console.warn('"topics" is deprecated, use "topic" instead');
}
options = {
to: options.to,
topics: options.topics,
topic: options.topic,
earliest: options.earliest,
latest: options.latest,
max: options.max,

Loading…
Cancel
Save