forked from cerc-io/ipld-eth-server
beginning work on method polling; first need to generate list of token holder address in a completely generic/contratc agnostic fashion. Created address retriever that can iterate through any given contract's watched events, finding the inputs/arguments with address type, and generate a list from those values. Edit: Contract objects now cache every event emitted address as its event logs are transformed into the repo to grow a list of contract associated addresses as we go
This commit is contained in:
1 parent
e9dbd771e5
commit
b459cf35ed
23 files changed
+889
-265
No files matched your search
@@ -47,10 +47,10 @@ func (e Event) String() string {
|
||||
|
||||
func (e Event) Signature() string {
|
||||
strings := [...]string{
|
||||
helpers.GenerateSignature("Transfer(address,address,uint)"),
|
||||
helpers.GenerateSignature("Approval(address,address,uint)"),
|
||||
helpers.GenerateSignature("Burn(address,uint)"),
|
||||
helpers.GenerateSignature("Mint(address,uint)"),
|
||||
helpers.GenerateSignature("Transfer(address,address,uint256)"),
|
||||
helpers.GenerateSignature("Approval(address,address,uint256)"),
|
||||
helpers.GenerateSignature("Burn(address,uint256)"),
|
||||
helpers.GenerateSignature("Mint(address,uint256)"),
|
||||
}
|
||||
|
||||
if e < TransferEvent || e > MintEvent {
|
||||
|
||||
Reference in new issue
Block a user