Conversation
fe627d3 to
8318011
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #660, adds Tempo with Relay + Uniswap v4. Tempo has no native gas token
(
eth_getBalanceis a sentinel,CALLVALUEis always 0; fees are USD-denominated but paidin 6-dec TIP-20 stablecoins), so this is not a standard chain addition:
ChainStack::Tempo— all behavior keys offis_tempo_stack(), no per-chain branchingbalanceOf,native sends encode ERC-20
transfer(), native swaps use the tokenized-native pathcalls = [approve, swap]and explicit
fee_token; transfers/approvals stay type-2 (TIP-20 methods auto-pay in the token)fee_asset_idcrosses UniFFI with the fee ceil-scaled to the feetoken's decimals (gas values stay 18-dec for signing); resolution follows the spec precedence —
FeeManager
userTokens()preference → USD-currency()transfer auto-selection → pathUSD;explicit swap fee tokens restricted to fee-eligible pathUSD/USDC.e (fee AMM rejects e.g. cbBTC)
from the sent token; single fee rate (priority is always 0) hides the picker
calls[]objects decode without failing blocks (last call = primary action),receipt
feeTokenmapped, indexed/confirmed fees scaled to the fee asset,inbound pathUSD logs keep the native asset identity
AssetType::TIP20+ PostgresALTER TYPEmigration