|
|
@ -344,6 +344,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do |
|
|
|
select: map(tb, [:address_hash, :token_contract_address_hash, :block_number]), |
|
|
|
select: map(tb, [:address_hash, :token_contract_address_hash, :block_number]), |
|
|
|
# Enforce TokenBalance ShareLocks order (see docs: sharelocks.md) |
|
|
|
# Enforce TokenBalance ShareLocks order (see docs: sharelocks.md) |
|
|
|
order_by: [ |
|
|
|
order_by: [ |
|
|
|
|
|
|
|
tb.token_type, |
|
|
|
tb.token_contract_address_hash, |
|
|
|
tb.token_contract_address_hash, |
|
|
|
tb.address_hash, |
|
|
|
tb.address_hash, |
|
|
|
tb.block_number |
|
|
|
tb.block_number |
|
|
@ -381,6 +382,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do |
|
|
|
select: map(ctb, [:address_hash, :token_contract_address_hash]), |
|
|
|
select: map(ctb, [:address_hash, :token_contract_address_hash]), |
|
|
|
# Enforce CurrentTokenBalance ShareLocks order (see docs: sharelocks.md) |
|
|
|
# Enforce CurrentTokenBalance ShareLocks order (see docs: sharelocks.md) |
|
|
|
order_by: [ |
|
|
|
order_by: [ |
|
|
|
|
|
|
|
ctb.token_type, |
|
|
|
ctb.token_contract_address_hash, |
|
|
|
ctb.token_contract_address_hash, |
|
|
|
ctb.address_hash |
|
|
|
ctb.address_hash |
|
|
|
], |
|
|
|
], |
|
|
|