File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727from x402 .http .types import RouteConfig
2828from x402 .mechanisms .evm .exact import ExactEvmServerScheme
2929from x402 .mechanisms .evm .upto import UptoEvmServerScheme
30- from x402 .extensions .eip2612_gas_sponsoring import declare_eip2612_gas_sponsoring_extension
31- from x402 .extensions .erc20_approval_gas_sponsoring import declare_erc20_approval_gas_sponsoring_extension
30+ from x402 .extensions .eip2612_gas_sponsoring import (
31+ declare_eip2612_gas_sponsoring_extension ,
32+ )
33+ from x402 .extensions .erc20_approval_gas_sponsoring import (
34+ declare_erc20_approval_gas_sponsoring_extension ,
35+ )
3236from x402 .schemas import AssetAmount
3337from x402 .server import x402ResourceServerSync
3438from x402 .session import SessionStore
@@ -186,7 +190,7 @@ def _shutdown_heartbeat():
186190 },
187191 ),
188192 network = BASE_MAINNET_NETWORK ,
189- ),
193+ ),
190194 ],
191195 extensions = {
192196 ** declare_eip2612_gas_sponsoring_extension (),
Original file line number Diff line number Diff line change 5353
5454# Maps lowercase contract address → number of decimals for unit conversion.
5555ASSET_DECIMALS_BY_ADDRESS : dict [str , int ] = {
56- USDC_ADDRESS .lower (): 6 , # USDC / OUSDC standard: 6 decimals
5756 BASE_TESTNET_OPG_ADDRESS .lower (): 18 , # OPG: 18 decimals (ERC-20 standard)
5857 BASE_MAINNET_OPG_ADDRESS .lower (): 18 , # OPG: 18 decimals (ERC-20 standard)
5958}
Original file line number Diff line number Diff line change 1111import unittest
1212from decimal import Decimal
1313
14- from tee_gateway .definitions import BASE_TESTNET_OPG_ADDRESS , USDC_ADDRESS
14+ from tee_gateway .definitions import BASE_TESTNET_OPG_ADDRESS
1515from tee_gateway .model_registry import (
1616 _MODEL_LOOKUP ,
1717 get_model_config ,
You can’t perform that action at this time.
0 commit comments