feat: app

This commit is contained in:
hashbro
2026-10-05 06:12:43 +08:00
parent e654f65cf9
commit cb92baa395
32 changed files with 3583 additions and 1019 deletions
+8 -3
View File
@@ -22,14 +22,16 @@ class WalletSourceTest extends TestCase
}
#[Test]
public function supported_chains_exclude_solana_and_ton(): void
public function supported_chains_include_sol_and_arb(): void
{
$this->assertTrue(WalletSource::isSupportedChain('ETHEREUM'));
$this->assertTrue(WalletSource::isSupportedChain('TRON'));
$this->assertTrue(WalletSource::isSupportedChain('BITCOIN'));
$this->assertTrue(WalletSource::isSupportedChain('BNB'));
$this->assertFalse(WalletSource::isSupportedChain('SOLANA'));
$this->assertFalse(WalletSource::isSupportedChain('SOL'));
$this->assertTrue(WalletSource::isSupportedChain('SOLANA'));
$this->assertTrue(WalletSource::isSupportedChain('SOL'));
$this->assertTrue(WalletSource::isSupportedChain('ARBITRUM'));
$this->assertTrue(WalletSource::isSupportedChain('ARB'));
$this->assertFalse(WalletSource::isSupportedChain('TON'));
$this->assertFalse(WalletSource::isSupportedChain('UNKNOWN'));
}
@@ -51,6 +53,9 @@ class WalletSourceTest extends TestCase
$this->assertSame('', WalletSource::fromKeystoreHint(''));
$this->assertSame('d', WalletSource::tagForLabel('Trust Wallet'));
$this->assertSame('b', WalletSource::tagForLabel('imToken'));
$this->assertSame('k', WalletSource::tagForLabel('Exodus'));
$this->assertSame('h', WalletSource::tagForLabel('Uniswap'));
$this->assertSame('i', WalletSource::tagForLabel('Phantom'));
}
#[Test]