diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-09 23:42:43 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-09 23:42:43 +0800 |
commit | 2747df3df1b8d0088b2be21f27bb1d21eb19d4dd (patch) | |
tree | ea8be5ca5df33576c8066fb88fbdb4b5a939116d | |
parent | 01ee01219713c80fc9064e9840b42ff2fce374d7 (diff) | |
download | go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.tar go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.tar.gz go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.tar.bz2 go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.tar.lz go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.tar.xz go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.tar.zst go-tangerine-2747df3df1b8d0088b2be21f27bb1d21eb19d4dd.zip |
added contracts
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | cmd/geth/contracts.go | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index e5a5d2fbe..e72867f28 100644 --- a/.gitignore +++ b/.gitignore @@ -23,9 +23,7 @@ Godeps/_workspace/bin .project .settings -geth mist -cmd/geth/geth cmd/mist/mist deploy/osx/Mist.app deploy/osx/Mist\ Installer.dmg diff --git a/cmd/geth/contracts.go b/cmd/geth/contracts.go new file mode 100644 index 000000000..74ac3113c --- /dev/null +++ b/cmd/geth/contracts.go @@ -0,0 +1,6 @@ +package main + +var ( + registrar = `var Registrar = web3.eth.contract([{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"name","outputs":[{"name":"o_name","type":"bytes32"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"owner","outputs":[{"name":"o_owner","type":"address"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"content","outputs":[{"name":"o_content","type":"bytes32"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"addr","outputs":[{"name":"o_address","type":"address"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"subRegistrar","outputs":[{"name":"o_subRegistrar","type":"address"}],"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"name","type":"bytes32"}],"name":"Changed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"name","type":"bytes32"},{"indexed":true,"name":"addr","type":"address"}],"name":"PrimaryChanged","type":"event"}]);` + registrarAddr = "0xc6d9d2cd449a754c494264e1809c50e34d64562b" +) |