Skip to content

Commit

Permalink
Benny/zora rest (#1224)
Browse files Browse the repository at this point in the history
* zora rest instead of gql

* uncomment dev

* filter by owner

* no owner found
  • Loading branch information
benny-conn authored Oct 11, 2023
1 parent 3499624 commit a159774
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 291 deletions.
7 changes: 6 additions & 1 deletion service/multichain/multichain.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (p *Provider) SyncTokensByUserID(ctx context.Context, userID persist.DBID,
wg.Wait()
}()

_, err = p.receiveSyncedTokensForUser(ctx, user, chains, incomingTokens, incomingContracts, errChan, false)
_, err = p.receiveSyncedTokensForUser(ctx, user, chains, incomingTokens, incomingContracts, errChan, true)
return err
}

Expand Down Expand Up @@ -776,6 +776,8 @@ func (p *Provider) syncCreatedTokensForContract(ctx context.Context, user persis
return
}

logger.For(ctx).Infof("got %d tokens for contract %s", len(tokens), address)

incomingTokens <- chainTokens{chain: chain, tokens: tokens, priority: priority}
incomingContracts <- chainContracts{chain: chain, contracts: []ChainAgnosticContract{contract}, priority: priority}
})
Expand Down Expand Up @@ -1618,6 +1620,9 @@ func (p *Provider) SyncContractsOwnedByUser(ctx context.Context, userID persist.
if err != nil {
return ContractOwnerResult{Priority: pr}, err
}

logger.For(ctx).Debugf("found %d contracts for address %s", len(contracts), a)

return ContractOwnerResult{Contracts: contracts, Chain: c, Priority: pr}, nil
})
}
Expand Down
Loading

0 comments on commit a159774

Please sign in to comment.