Created
April 4, 2016 09:40
-
-
Save raymens/ee3b50cc57cd34764922edbec1a35a83 to your computer and use it in GitHub Desktop.
Mist Wallet Contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_owner", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> owner", | |
"template": "elements_input_address" | |
} | |
], | |
"name": "removeOwner", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "remove Owner" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_addr", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> addr", | |
"template": "elements_input_address" | |
} | |
], | |
"name": "isOwner", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"type": "function", | |
"displayName": "is Owner" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ ], | |
"name": "m_numOwners", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256", | |
"value": "2", | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "m<span class=\"punctuation\">_</span>num Owners" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ ], | |
"name": "m_lastDay", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256", | |
"value": "16891", | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "m<span class=\"punctuation\">_</span>last Day" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ ], | |
"name": "version", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256", | |
"value": "2", | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "version" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ ], | |
"name": "resetSpentToday", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "reset Spent Today" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ ], | |
"name": "m_spentToday", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256", | |
"value": "0", | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "m<span class=\"punctuation\">_</span>spent Today" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_owner", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> owner", | |
"template": "elements_input_address" | |
} | |
], | |
"name": "addOwner", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "add Owner" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ ], | |
"name": "m_required", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256", | |
"value": "0", | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "m<span class=\"punctuation\">_</span>required" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_h", | |
"type": "bytes32", | |
"typeShort": "bytes", | |
"bits": "32", | |
"displayName": " <span class=\"punctuation\">_</span> h", | |
"template": "elements_input_bytes" | |
} | |
], | |
"name": "confirm", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"type": "function", | |
"displayName": "confirm" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_newLimit", | |
"type": "uint256", | |
"typeShort": "uint", | |
"bits": "256", | |
"displayName": " <span class=\"punctuation\">_</span> new Limit", | |
"template": "elements_input_uint" | |
} | |
], | |
"name": "setDailyLimit", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "set Daily Limit" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_to", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> to", | |
"template": "elements_input_address" | |
}, | |
{ | |
"name": "_value", | |
"type": "uint256", | |
"typeShort": "uint", | |
"bits": "256", | |
"displayName": " <span class=\"punctuation\">_</span> value", | |
"template": "elements_input_uint" | |
}, | |
{ | |
"name": "_data", | |
"type": "bytes", | |
"typeShort": "bytes", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> data", | |
"template": "elements_input_bytes" | |
} | |
], | |
"name": "execute", | |
"outputs": [ | |
{ | |
"name": "_r", | |
"type": "bytes32" | |
} | |
], | |
"type": "function", | |
"displayName": "execute" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_operation", | |
"type": "bytes32", | |
"typeShort": "bytes", | |
"bits": "32", | |
"displayName": " <span class=\"punctuation\">_</span> operation", | |
"template": "elements_input_bytes" | |
} | |
], | |
"name": "revoke", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "revoke" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_newRequired", | |
"type": "uint256", | |
"typeShort": "uint", | |
"bits": "256", | |
"displayName": " <span class=\"punctuation\">_</span> new Required", | |
"template": "elements_input_uint" | |
} | |
], | |
"name": "changeRequirement", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "change Requirement" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_operation", | |
"type": "bytes32", | |
"typeShort": "bytes", | |
"bits": "32", | |
"displayName": " <span class=\"punctuation\">_</span> operation", | |
"template": "elements_input_bytes" | |
}, | |
{ | |
"name": "_owner", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> owner", | |
"template": "elements_input_address" | |
} | |
], | |
"name": "hasConfirmed", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool", | |
"value": false, | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "has Confirmed" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_to", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> to", | |
"template": "elements_input_address" | |
} | |
], | |
"name": "kill", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "kill" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_from", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> from", | |
"template": "elements_input_address" | |
}, | |
{ | |
"name": "_to", | |
"type": "address", | |
"typeShort": "address", | |
"bits": "", | |
"displayName": " <span class=\"punctuation\">_</span> to", | |
"template": "elements_input_address" | |
} | |
], | |
"name": "changeOwner", | |
"outputs": [ ], | |
"type": "function", | |
"displayName": "change Owner" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ ], | |
"name": "m_dailyLimit", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256", | |
"value": "1e+26", | |
"displayName": "" | |
} | |
], | |
"type": "function", | |
"displayName": "m<span class=\"punctuation\">_</span>daily Limit" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"name": "_owners", | |
"type": "address[]" | |
}, | |
{ | |
"name": "_required", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_daylimit", | |
"type": "uint256" | |
} | |
], | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "operation", | |
"type": "bytes32" | |
} | |
], | |
"name": "Confirmation", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "operation", | |
"type": "bytes32" | |
} | |
], | |
"name": "Revoke", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "oldOwner", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnerChanged", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnerAdded", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "oldOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnerRemoved", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "newRequirement", | |
"type": "uint256" | |
} | |
], | |
"name": "RequirementChanged", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Deposit", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "value", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "data", | |
"type": "bytes" | |
} | |
], | |
"name": "SingleTransact", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "operation", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"name": "value", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "data", | |
"type": "bytes" | |
} | |
], | |
"name": "MultiTransact", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "operation", | |
"type": "bytes32" | |
}, | |
{ | |
"indexed": false, | |
"name": "initiator", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "value", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "data", | |
"type": "bytes" | |
} | |
], | |
"name": "ConfirmationNeeded", | |
"type": "event" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// testnet | |
var contract = web3.Eth.GetContract(System.IO.File.ReadAllText(Environment.CurrentDirectory + "\\contract.json"), "0xa3969327661Ad9632638b8fe8d5dEF6ceFd94738"); | |
var e = contract.GetEvent("OwnerAdded"); | |
var filterId = await e.CreateFilterAsync(); | |
var changes = await e.GetAllChanges<OwnerAdded>(filterId); | |
// changes.Length == 0 | |
public class OwnerAdded | |
{ | |
[Parameter("address", "newOwner", 1, false)] | |
public int NewOwner { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment