Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
600c9dd2
Commit
600c9dd2
authored
Jan 29, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
topics are deprecated
parent
e3804625
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
10 deletions
+16
-10
ethereum.js
dist/ethereum.js
+6
-3
ethereum.js.map
dist/ethereum.js.map
+3
-3
ethereum.min.js
dist/ethereum.min.js
+1
-1
contract.js
lib/contract.js
+2
-2
filter.js
lib/filter.js
+4
-1
No files found.
dist/ethereum.js
View file @
600c9dd2
...
...
@@ -541,7 +541,7 @@ var addFunctionsToContract = function (contract, desc, address) {
var
addEventRelatedPropertiesToContract
=
function
(
contract
,
desc
,
address
)
{
contract
.
address
=
address
;
Object
.
defineProperty
(
contract
,
'topic
s
'
,
{
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
,
'topic
s
'
,
{
Object
.
defineProperty
(
impl
,
'topic'
,
{
get
:
function
()
{
return
[
abi
.
methodSignature
(
e
.
name
)];
}
...
...
@@ -706,10 +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
,
topic
:
options
.
topic
,
topics
:
options
.
topics
,
earliest
:
options
.
earliest
,
latest
:
options
.
latest
,
max
:
options
.
max
,
...
...
dist/ethereum.js.map
View file @
600c9dd2
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
600c9dd2
This diff is collapsed.
Click to expand it.
lib/contract.js
View file @
600c9dd2
...
...
@@ -110,7 +110,7 @@ var addFunctionsToContract = function (contract, desc, address) {
var
addEventRelatedPropertiesToContract
=
function
(
contract
,
desc
,
address
)
{
contract
.
address
=
address
;
Object
.
defineProperty
(
contract
,
'topic
s
'
,
{
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
,
'topic
s
'
,
{
Object
.
defineProperty
(
impl
,
'topic'
,
{
get
:
function
()
{
return
[
abi
.
methodSignature
(
e
.
name
)];
}
...
...
lib/filter.js
View file @
600c9dd2
...
...
@@ -33,10 +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
,
topic
:
options
.
topic
,
topics
:
options
.
topics
,
earliest
:
options
.
earliest
,
latest
:
options
.
latest
,
max
:
options
.
max
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment