-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contract L1 Chain #1227
Contract L1 Chain #1227
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, @benny-conn! I love the direction we're going with this. 🚀 🚀 🚀
db/queries/core/contract_gallery.sql
Outdated
, unnest(@description::varchar[]) | ||
, unnest(@profile_image_url::varchar[]) | ||
, unnest(@provider_marked_spam::bool[]) | ||
) | ||
on conflict (chain, address) where parent_id is null | ||
on conflict (l1_chain, address) where parent_id is null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can there be multiple contracts at the same address across L2 chains? This looks like it'd essentially merge all contracts at the same address across L2 chains if they're on the same L1, but that sounds okay to me as long as it's a valid thing to actually do! I defer to your blockchain expertise here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are in fact correct, although infinitesimally improbable, it can happen. Modified the index to include both l1_chain and chain.
service/multichain/multichain.go
Outdated
Chain: ti.Chain, | ||
L1CHain: ti.Chain.L1Chain(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: L1CHain
-> L1Chain
@@ -266,7 +266,7 @@ func (p *Personalization) update(ctx context.Context) { | |||
|
|||
if p.pM == nil { | |||
logger.For(ctx).Infof("no data loaded, reading from cache") | |||
p.readCache(ctx) | |||
// p.readCache(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental commit?
Changes:
L1Chain
to the contracts tablecontract_creators
view to use theL1Chain
of thewallets
andcontracts
tableTODO: